@uipath/resourcecatalog-tool 1.197.0 → 1.198.0-preview.100

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 +1540 -1040
  2. package/dist/tool.js +1540 -1040
  3. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -14084,7 +14084,7 @@ var require_TimeoutError = __commonJS((exports) => {
14084
14084
  });
14085
14085
 
14086
14086
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
14087
- var require_map2 = __commonJS((exports) => {
14087
+ var require_map = __commonJS((exports) => {
14088
14088
  var __extends = exports && exports.__extends || function() {
14089
14089
  var extendStatics = function(d, b) {
14090
14090
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -14106,7 +14106,7 @@ var require_map2 = __commonJS((exports) => {
14106
14106
  }();
14107
14107
  Object.defineProperty(exports, "__esModule", { value: true });
14108
14108
  var Subscriber_1 = require_Subscriber();
14109
- function map(project, thisArg) {
14109
+ function map2(project, thisArg) {
14110
14110
  return function mapOperation(source) {
14111
14111
  if (typeof project !== "function") {
14112
14112
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -14114,7 +14114,7 @@ var require_map2 = __commonJS((exports) => {
14114
14114
  return source.lift(new MapOperator(project, thisArg));
14115
14115
  };
14116
14116
  }
14117
- exports.map = map;
14117
+ exports.map = map2;
14118
14118
  var MapOperator = function() {
14119
14119
  function MapOperator2(project, thisArg) {
14120
14120
  this.project = project;
@@ -14154,7 +14154,7 @@ var require_bindCallback = __commonJS((exports) => {
14154
14154
  Object.defineProperty(exports, "__esModule", { value: true });
14155
14155
  var Observable_1 = require_Observable();
14156
14156
  var AsyncSubject_1 = require_AsyncSubject();
14157
- var map_1 = require_map2();
14157
+ var map_1 = require_map();
14158
14158
  var canReportError_1 = require_canReportError();
14159
14159
  var isArray_1 = require_isArray();
14160
14160
  var isScheduler_1 = require_isScheduler();
@@ -14258,7 +14258,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
14258
14258
  Object.defineProperty(exports, "__esModule", { value: true });
14259
14259
  var Observable_1 = require_Observable();
14260
14260
  var AsyncSubject_1 = require_AsyncSubject();
14261
- var map_1 = require_map2();
14261
+ var map_1 = require_map();
14262
14262
  var canReportError_1 = require_canReportError();
14263
14263
  var isScheduler_1 = require_isScheduler();
14264
14264
  var isArray_1 = require_isArray();
@@ -15048,7 +15048,7 @@ var require_mergeMap = __commonJS((exports) => {
15048
15048
  };
15049
15049
  }();
15050
15050
  Object.defineProperty(exports, "__esModule", { value: true });
15051
- var map_1 = require_map2();
15051
+ var map_1 = require_map();
15052
15052
  var from_1 = require_from();
15053
15053
  var innerSubscribe_1 = require_innerSubscribe();
15054
15054
  function mergeMap(project, resultSelector, concurrent) {
@@ -15219,7 +15219,7 @@ var require_forkJoin = __commonJS((exports) => {
15219
15219
  Object.defineProperty(exports, "__esModule", { value: true });
15220
15220
  var Observable_1 = require_Observable();
15221
15221
  var isArray_1 = require_isArray();
15222
- var map_1 = require_map2();
15222
+ var map_1 = require_map();
15223
15223
  var isObject_1 = require_isObject();
15224
15224
  var from_1 = require_from();
15225
15225
  function forkJoin() {
@@ -15299,7 +15299,7 @@ var require_fromEvent = __commonJS((exports) => {
15299
15299
  var Observable_1 = require_Observable();
15300
15300
  var isArray_1 = require_isArray();
15301
15301
  var isFunction_1 = require_isFunction();
15302
- var map_1 = require_map2();
15302
+ var map_1 = require_map();
15303
15303
  var toString = function() {
15304
15304
  return Object.prototype.toString;
15305
15305
  }();
@@ -15371,7 +15371,7 @@ var require_fromEventPattern = __commonJS((exports) => {
15371
15371
  var Observable_1 = require_Observable();
15372
15372
  var isArray_1 = require_isArray();
15373
15373
  var isFunction_1 = require_isFunction();
15374
- var map_1 = require_map2();
15374
+ var map_1 = require_map();
15375
15375
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
15376
15376
  if (resultSelector) {
15377
15377
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -15586,13 +15586,13 @@ var require_interval = __commonJS((exports) => {
15586
15586
  });
15587
15587
 
15588
15588
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
15589
- var require_merge2 = __commonJS((exports) => {
15589
+ var require_merge = __commonJS((exports) => {
15590
15590
  Object.defineProperty(exports, "__esModule", { value: true });
15591
15591
  var Observable_1 = require_Observable();
15592
15592
  var isScheduler_1 = require_isScheduler();
15593
15593
  var mergeAll_1 = require_mergeAll();
15594
15594
  var fromArray_1 = require_fromArray();
15595
- function merge() {
15595
+ function merge2() {
15596
15596
  var observables = [];
15597
15597
  for (var _i = 0;_i < arguments.length; _i++) {
15598
15598
  observables[_i] = arguments[_i];
@@ -15613,7 +15613,7 @@ var require_merge2 = __commonJS((exports) => {
15613
15613
  }
15614
15614
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
15615
15615
  }
15616
- exports.merge = merge;
15616
+ exports.merge = merge2;
15617
15617
  });
15618
15618
 
15619
15619
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -15664,11 +15664,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
15664
15664
  });
15665
15665
 
15666
15666
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
15667
- var require_pairs2 = __commonJS((exports) => {
15667
+ var require_pairs = __commonJS((exports) => {
15668
15668
  Object.defineProperty(exports, "__esModule", { value: true });
15669
15669
  var Observable_1 = require_Observable();
15670
15670
  var Subscription_1 = require_Subscription();
15671
- function pairs(obj, scheduler) {
15671
+ function pairs2(obj, scheduler) {
15672
15672
  if (!scheduler) {
15673
15673
  return new Observable_1.Observable(function(subscriber) {
15674
15674
  var keys = Object.keys(obj);
@@ -15689,7 +15689,7 @@ var require_pairs2 = __commonJS((exports) => {
15689
15689
  });
15690
15690
  }
15691
15691
  }
15692
- exports.pairs = pairs;
15692
+ exports.pairs = pairs2;
15693
15693
  function dispatch(state) {
15694
15694
  var { keys, index, subscriber, subscription, obj } = state;
15695
15695
  if (!subscriber.closed) {
@@ -16348,7 +16348,7 @@ var require_rxjs = __commonJS((exports) => {
16348
16348
  exports.iif = iif_1.iif;
16349
16349
  var interval_1 = require_interval();
16350
16350
  exports.interval = interval_1.interval;
16351
- var merge_1 = require_merge2();
16351
+ var merge_1 = require_merge();
16352
16352
  exports.merge = merge_1.merge;
16353
16353
  var never_1 = require_never();
16354
16354
  exports.never = never_1.never;
@@ -16356,7 +16356,7 @@ var require_rxjs = __commonJS((exports) => {
16356
16356
  exports.of = of_1.of;
16357
16357
  var onErrorResumeNext_1 = require_onErrorResumeNext();
16358
16358
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
16359
- var pairs_1 = require_pairs2();
16359
+ var pairs_1 = require_pairs();
16360
16360
  exports.pairs = pairs_1.pairs;
16361
16361
  var partition_1 = require_partition();
16362
16362
  exports.partition = partition_1.partition;
@@ -19137,7 +19137,7 @@ var init_server = __esm(() => {
19137
19137
  var package_default = {
19138
19138
  name: "@uipath/resourcecatalog-tool",
19139
19139
  license: "MIT",
19140
- version: "1.197.0",
19140
+ version: "1.198.0-preview.100",
19141
19141
  description: "CLI plugin for the UiPath Resource Catalog Service.",
19142
19142
  private: false,
19143
19143
  repository: {
@@ -19239,8 +19239,15 @@ var TLS_ERROR_CODES = new Set([
19239
19239
  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.";
19240
19240
  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.";
19241
19241
  function describeConnectivityError(error) {
19242
- let current = error;
19243
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
19242
+ const queue = [error];
19243
+ const seen = new Set;
19244
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
19245
+ const current = queue.shift();
19246
+ if (current === null || typeof current !== "object")
19247
+ continue;
19248
+ if (seen.has(current))
19249
+ continue;
19250
+ seen.add(current);
19244
19251
  const cur = current;
19245
19252
  const code = typeof cur.code === "string" ? cur.code : undefined;
19246
19253
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -19260,7 +19267,10 @@ function describeConnectivityError(error) {
19260
19267
  instructions: NETWORK_INSTRUCTIONS
19261
19268
  };
19262
19269
  }
19263
- current = cur.cause;
19270
+ if (cur.cause !== undefined)
19271
+ queue.push(cur.cause);
19272
+ if (Array.isArray(cur.errors))
19273
+ queue.push(...cur.errors);
19264
19274
  }
19265
19275
  return;
19266
19276
  }
@@ -21534,31 +21544,17 @@ function search(data, expression, options) {
21534
21544
  }
21535
21545
 
21536
21546
  // ../../../node_modules/js-yaml/dist/js-yaml.mjs
21537
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
21538
- var __create2 = Object.create;
21539
- var __defProp2 = Object.defineProperty;
21540
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
21541
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
21542
- var __getProtoOf2 = Object.getPrototypeOf;
21543
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
21544
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
21545
- var __copyProps = (to, from, except, desc) => {
21546
- if (from && typeof from === "object" || typeof from === "function")
21547
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
21548
- key = keys[i];
21549
- if (!__hasOwnProp2.call(to, key) && key !== except)
21550
- __defProp2(to, key, {
21551
- get: ((k) => from[k]).bind(null, key),
21552
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21553
- });
21554
- }
21555
- return to;
21556
- };
21557
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
21558
- value: mod2,
21559
- enumerable: true
21560
- }) : target, mod2));
21561
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
21547
+ function getDefaultExportFromCjs(x) {
21548
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
21549
+ }
21550
+ var jsYaml = {};
21551
+ var loader = {};
21552
+ var common = {};
21553
+ var hasRequiredCommon;
21554
+ function requireCommon() {
21555
+ if (hasRequiredCommon)
21556
+ return common;
21557
+ hasRequiredCommon = 1;
21562
21558
  function isNothing(subject) {
21563
21559
  return typeof subject === "undefined" || subject === null;
21564
21560
  }
@@ -21584,55 +21580,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
21584
21580
  }
21585
21581
  function repeat(string, count) {
21586
21582
  let result = "";
21587
- for (let cycle = 0;cycle < count; cycle += 1)
21583
+ for (let cycle = 0;cycle < count; cycle += 1) {
21588
21584
  result += string;
21585
+ }
21589
21586
  return result;
21590
21587
  }
21591
21588
  function isNegativeZero(number) {
21592
21589
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
21593
21590
  }
21594
- module.exports.isNothing = isNothing;
21595
- module.exports.isObject = isObject2;
21596
- module.exports.toArray = toArray;
21597
- module.exports.repeat = repeat;
21598
- module.exports.isNegativeZero = isNegativeZero;
21599
- module.exports.extend = extend;
21600
- });
21601
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
21602
- function formatError(exception, compact) {
21591
+ common.isNothing = isNothing;
21592
+ common.isObject = isObject2;
21593
+ common.toArray = toArray;
21594
+ common.repeat = repeat;
21595
+ common.isNegativeZero = isNegativeZero;
21596
+ common.extend = extend;
21597
+ return common;
21598
+ }
21599
+ var exception;
21600
+ var hasRequiredException;
21601
+ function requireException() {
21602
+ if (hasRequiredException)
21603
+ return exception;
21604
+ hasRequiredException = 1;
21605
+ function formatError(exception2, compact) {
21603
21606
  let where = "";
21604
- const message = exception.reason || "(unknown reason)";
21605
- if (!exception.mark)
21607
+ const message = exception2.reason || "(unknown reason)";
21608
+ if (!exception2.mark)
21606
21609
  return message;
21607
- if (exception.mark.name)
21608
- where += 'in "' + exception.mark.name + '" ';
21609
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
21610
- if (!compact && exception.mark.snippet)
21610
+ if (exception2.mark.name) {
21611
+ where += 'in "' + exception2.mark.name + '" ';
21612
+ }
21613
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
21614
+ if (!compact && exception2.mark.snippet) {
21611
21615
  where += `
21612
21616
 
21613
- ` + exception.mark.snippet;
21617
+ ` + exception2.mark.snippet;
21618
+ }
21614
21619
  return message + " " + where;
21615
21620
  }
21616
- function YAMLException(reason, mark) {
21621
+ function YAMLException2(reason, mark) {
21617
21622
  Error.call(this);
21618
21623
  this.name = "YAMLException";
21619
21624
  this.reason = reason;
21620
21625
  this.mark = mark;
21621
21626
  this.message = formatError(this, false);
21622
- if (Error.captureStackTrace)
21627
+ if (Error.captureStackTrace) {
21623
21628
  Error.captureStackTrace(this, this.constructor);
21624
- else
21625
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
21629
+ } else {
21630
+ this.stack = new Error().stack || "";
21631
+ }
21626
21632
  }
21627
- YAMLException.prototype = Object.create(Error.prototype);
21628
- YAMLException.prototype.constructor = YAMLException;
21629
- YAMLException.prototype.toString = function toString(compact) {
21633
+ YAMLException2.prototype = Object.create(Error.prototype);
21634
+ YAMLException2.prototype.constructor = YAMLException2;
21635
+ YAMLException2.prototype.toString = function toString(compact) {
21630
21636
  return this.name + ": " + formatError(this, compact);
21631
21637
  };
21632
- module.exports = YAMLException;
21633
- });
21634
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
21635
- var common = require_common();
21638
+ exception = YAMLException2;
21639
+ return exception;
21640
+ }
21641
+ var snippet;
21642
+ var hasRequiredSnippet;
21643
+ function requireSnippet() {
21644
+ if (hasRequiredSnippet)
21645
+ return snippet;
21646
+ hasRequiredSnippet = 1;
21647
+ const common2 = requireCommon();
21636
21648
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
21637
21649
  let head = "";
21638
21650
  let tail = "";
@@ -21651,7 +21663,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
21651
21663
  };
21652
21664
  }
21653
21665
  function padStart(string, max) {
21654
- return common.repeat(" ", max - string.length) + string;
21666
+ return common2.repeat(" ", max - string.length) + string;
21655
21667
  }
21656
21668
  function makeSnippet(mark, options) {
21657
21669
  options = Object.create(options || null);
@@ -21673,8 +21685,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
21673
21685
  while (match = re.exec(mark.buffer)) {
21674
21686
  lineEnds.push(match.index);
21675
21687
  lineStarts.push(match.index + match[0].length);
21676
- if (mark.position <= match.index && foundLineNo < 0)
21688
+ if (mark.position <= match.index && foundLineNo < 0) {
21677
21689
  foundLineNo = lineStarts.length - 2;
21690
+ }
21678
21691
  }
21679
21692
  if (foundLineNo < 0)
21680
21693
  foundLineNo = lineStarts.length - 1;
@@ -21685,28 +21698,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
21685
21698
  if (foundLineNo - i < 0)
21686
21699
  break;
21687
21700
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
21688
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
21701
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
21689
21702
  ` + result;
21690
21703
  }
21691
21704
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
21692
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
21705
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
21693
21706
  `;
21694
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
21707
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
21695
21708
  `;
21696
21709
  for (let i = 1;i <= options.linesAfter; i++) {
21697
21710
  if (foundLineNo + i >= lineEnds.length)
21698
21711
  break;
21699
21712
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
21700
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
21713
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
21701
21714
  `;
21702
21715
  }
21703
21716
  return result.replace(/\n$/, "");
21704
21717
  }
21705
- module.exports = makeSnippet;
21706
- });
21707
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
21708
- var YAMLException = require_exception();
21709
- var TYPE_CONSTRUCTOR_OPTIONS = [
21718
+ snippet = makeSnippet;
21719
+ return snippet;
21720
+ }
21721
+ var type;
21722
+ var hasRequiredType;
21723
+ function requireType() {
21724
+ if (hasRequiredType)
21725
+ return type;
21726
+ hasRequiredType = 1;
21727
+ const YAMLException2 = requireException();
21728
+ const TYPE_CONSTRUCTOR_OPTIONS = [
21710
21729
  "kind",
21711
21730
  "multi",
21712
21731
  "resolve",
@@ -21718,26 +21737,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
21718
21737
  "defaultStyle",
21719
21738
  "styleAliases"
21720
21739
  ];
21721
- var YAML_NODE_KINDS = [
21740
+ const YAML_NODE_KINDS = [
21722
21741
  "scalar",
21723
21742
  "sequence",
21724
21743
  "mapping"
21725
21744
  ];
21726
- function compileStyleAliases(map) {
21745
+ function compileStyleAliases(map2) {
21727
21746
  const result = {};
21728
- if (map !== null)
21729
- Object.keys(map).forEach(function(style) {
21730
- map[style].forEach(function(alias) {
21747
+ if (map2 !== null) {
21748
+ Object.keys(map2).forEach(function(style) {
21749
+ map2[style].forEach(function(alias) {
21731
21750
  result[String(alias)] = style;
21732
21751
  });
21733
21752
  });
21753
+ }
21734
21754
  return result;
21735
21755
  }
21736
- function Type(tag, options) {
21756
+ function Type2(tag, options) {
21737
21757
  options = options || {};
21738
21758
  Object.keys(options).forEach(function(name) {
21739
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
21740
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
21759
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
21760
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
21761
+ }
21741
21762
  });
21742
21763
  this.options = options;
21743
21764
  this.tag = tag;
@@ -21755,21 +21776,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
21755
21776
  this.defaultStyle = options["defaultStyle"] || null;
21756
21777
  this.multi = options["multi"] || false;
21757
21778
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
21758
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
21759
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
21779
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
21780
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
21781
+ }
21760
21782
  }
21761
- module.exports = Type;
21762
- });
21763
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
21764
- var YAMLException = require_exception();
21765
- var Type = require_type();
21766
- function compileList(schema, name) {
21783
+ type = Type2;
21784
+ return type;
21785
+ }
21786
+ var schema;
21787
+ var hasRequiredSchema;
21788
+ function requireSchema() {
21789
+ if (hasRequiredSchema)
21790
+ return schema;
21791
+ hasRequiredSchema = 1;
21792
+ const YAMLException2 = requireException();
21793
+ const Type2 = requireType();
21794
+ function compileList(schema2, name) {
21767
21795
  const result = [];
21768
- schema[name].forEach(function(currentType) {
21796
+ schema2[name].forEach(function(currentType) {
21769
21797
  let newIndex = result.length;
21770
21798
  result.forEach(function(previousType, previousIndex) {
21771
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
21799
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
21772
21800
  newIndex = previousIndex;
21801
+ }
21773
21802
  });
21774
21803
  result[newIndex] = currentType;
21775
21804
  });
@@ -21788,47 +21817,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
21788
21817
  fallback: []
21789
21818
  }
21790
21819
  };
21791
- function collectType(type) {
21792
- if (type.multi) {
21793
- result.multi[type.kind].push(type);
21794
- result.multi["fallback"].push(type);
21795
- } else
21796
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
21820
+ function collectType(type2) {
21821
+ if (type2.multi) {
21822
+ result.multi[type2.kind].push(type2);
21823
+ result.multi["fallback"].push(type2);
21824
+ } else {
21825
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
21826
+ }
21797
21827
  }
21798
- for (let index = 0, length = arguments.length;index < length; index += 1)
21828
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
21799
21829
  arguments[index].forEach(collectType);
21830
+ }
21800
21831
  return result;
21801
21832
  }
21802
- function Schema(definition) {
21833
+ function Schema2(definition) {
21803
21834
  return this.extend(definition);
21804
21835
  }
21805
- Schema.prototype.extend = function extend(definition) {
21836
+ Schema2.prototype.extend = function extend(definition) {
21806
21837
  let implicit = [];
21807
21838
  let explicit = [];
21808
- if (definition instanceof Type)
21839
+ if (definition instanceof Type2) {
21809
21840
  explicit.push(definition);
21810
- else if (Array.isArray(definition))
21841
+ } else if (Array.isArray(definition)) {
21811
21842
  explicit = explicit.concat(definition);
21812
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
21843
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
21813
21844
  if (definition.implicit)
21814
21845
  implicit = implicit.concat(definition.implicit);
21815
21846
  if (definition.explicit)
21816
21847
  explicit = explicit.concat(definition.explicit);
21817
- } else
21818
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
21819
- implicit.forEach(function(type) {
21820
- if (!(type instanceof Type))
21821
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
21822
- if (type.loadKind && type.loadKind !== "scalar")
21823
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
21824
- if (type.multi)
21825
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
21848
+ } else {
21849
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
21850
+ }
21851
+ implicit.forEach(function(type2) {
21852
+ if (!(type2 instanceof Type2)) {
21853
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
21854
+ }
21855
+ if (type2.loadKind && type2.loadKind !== "scalar") {
21856
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
21857
+ }
21858
+ if (type2.multi) {
21859
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
21860
+ }
21826
21861
  });
21827
- explicit.forEach(function(type) {
21828
- if (!(type instanceof Type))
21829
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
21862
+ explicit.forEach(function(type2) {
21863
+ if (!(type2 instanceof Type2)) {
21864
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
21865
+ }
21830
21866
  });
21831
- const result = Object.create(Schema.prototype);
21867
+ const result = Object.create(Schema2.prototype);
21832
21868
  result.implicit = (this.implicit || []).concat(implicit);
21833
21869
  result.explicit = (this.explicit || []).concat(explicit);
21834
21870
  result.compiledImplicit = compileList(result, "implicit");
@@ -21836,41 +21872,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
21836
21872
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
21837
21873
  return result;
21838
21874
  };
21839
- module.exports = Schema;
21840
- });
21841
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
21842
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
21875
+ schema = Schema2;
21876
+ return schema;
21877
+ }
21878
+ var str;
21879
+ var hasRequiredStr;
21880
+ function requireStr() {
21881
+ if (hasRequiredStr)
21882
+ return str;
21883
+ hasRequiredStr = 1;
21884
+ const Type2 = requireType();
21885
+ str = new Type2("tag:yaml.org,2002:str", {
21843
21886
  kind: "scalar",
21844
21887
  construct: function(data) {
21845
21888
  return data !== null ? data : "";
21846
21889
  }
21847
21890
  });
21848
- });
21849
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
21850
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
21891
+ return str;
21892
+ }
21893
+ var seq;
21894
+ var hasRequiredSeq;
21895
+ function requireSeq() {
21896
+ if (hasRequiredSeq)
21897
+ return seq;
21898
+ hasRequiredSeq = 1;
21899
+ const Type2 = requireType();
21900
+ seq = new Type2("tag:yaml.org,2002:seq", {
21851
21901
  kind: "sequence",
21852
21902
  construct: function(data) {
21853
21903
  return data !== null ? data : [];
21854
21904
  }
21855
21905
  });
21856
- });
21857
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
21858
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
21906
+ return seq;
21907
+ }
21908
+ var map;
21909
+ var hasRequiredMap;
21910
+ function requireMap() {
21911
+ if (hasRequiredMap)
21912
+ return map;
21913
+ hasRequiredMap = 1;
21914
+ const Type2 = requireType();
21915
+ map = new Type2("tag:yaml.org,2002:map", {
21859
21916
  kind: "mapping",
21860
21917
  construct: function(data) {
21861
21918
  return data !== null ? data : {};
21862
21919
  }
21863
21920
  });
21864
- });
21865
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
21866
- module.exports = new (require_schema())({ explicit: [
21867
- require_str(),
21868
- require_seq(),
21869
- require_map()
21870
- ] });
21871
- });
21872
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
21873
- var Type = require_type();
21921
+ return map;
21922
+ }
21923
+ var failsafe;
21924
+ var hasRequiredFailsafe;
21925
+ function requireFailsafe() {
21926
+ if (hasRequiredFailsafe)
21927
+ return failsafe;
21928
+ hasRequiredFailsafe = 1;
21929
+ const Schema2 = requireSchema();
21930
+ failsafe = new Schema2({
21931
+ explicit: [
21932
+ requireStr(),
21933
+ requireSeq(),
21934
+ requireMap()
21935
+ ]
21936
+ });
21937
+ return failsafe;
21938
+ }
21939
+ var _null;
21940
+ var hasRequired_null;
21941
+ function require_null() {
21942
+ if (hasRequired_null)
21943
+ return _null;
21944
+ hasRequired_null = 1;
21945
+ const Type2 = requireType();
21874
21946
  function resolveYamlNull(data) {
21875
21947
  if (data === null)
21876
21948
  return true;
@@ -21883,7 +21955,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
21883
21955
  function isNull(object) {
21884
21956
  return object === null;
21885
21957
  }
21886
- module.exports = new Type("tag:yaml.org,2002:null", {
21958
+ _null = new Type2("tag:yaml.org,2002:null", {
21887
21959
  kind: "scalar",
21888
21960
  resolve: resolveYamlNull,
21889
21961
  construct: constructYamlNull,
@@ -21907,9 +21979,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
21907
21979
  },
21908
21980
  defaultStyle: "lowercase"
21909
21981
  });
21910
- });
21911
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
21912
- var Type = require_type();
21982
+ return _null;
21983
+ }
21984
+ var bool;
21985
+ var hasRequiredBool;
21986
+ function requireBool() {
21987
+ if (hasRequiredBool)
21988
+ return bool;
21989
+ hasRequiredBool = 1;
21990
+ const Type2 = requireType();
21913
21991
  function resolveYamlBoolean(data) {
21914
21992
  if (data === null)
21915
21993
  return false;
@@ -21922,7 +22000,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
21922
22000
  function isBoolean(object) {
21923
22001
  return Object.prototype.toString.call(object) === "[object Boolean]";
21924
22002
  }
21925
- module.exports = new Type("tag:yaml.org,2002:bool", {
22003
+ bool = new Type2("tag:yaml.org,2002:bool", {
21926
22004
  kind: "scalar",
21927
22005
  resolve: resolveYamlBoolean,
21928
22006
  construct: constructYamlBoolean,
@@ -21940,10 +22018,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
21940
22018
  },
21941
22019
  defaultStyle: "lowercase"
21942
22020
  });
21943
- });
21944
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
21945
- var common = require_common();
21946
- var Type = require_type();
22021
+ return bool;
22022
+ }
22023
+ var int;
22024
+ var hasRequiredInt;
22025
+ function requireInt() {
22026
+ if (hasRequiredInt)
22027
+ return int;
22028
+ hasRequiredInt = 1;
22029
+ const common2 = requireCommon();
22030
+ const Type2 = requireType();
21947
22031
  function isHexCode(c) {
21948
22032
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
21949
22033
  }
@@ -21962,8 +22046,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
21962
22046
  if (!max)
21963
22047
  return false;
21964
22048
  let ch = data[index];
21965
- if (ch === "-" || ch === "+")
22049
+ if (ch === "-" || ch === "+") {
21966
22050
  ch = data[++index];
22051
+ }
21967
22052
  if (ch === "0") {
21968
22053
  if (index + 1 === max)
21969
22054
  return true;
@@ -21976,7 +22061,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
21976
22061
  return false;
21977
22062
  hasDigits = true;
21978
22063
  }
21979
- return hasDigits && Number.isFinite(parseYamlInteger(data));
22064
+ return hasDigits && isFinite(parseYamlInteger(data));
21980
22065
  }
21981
22066
  if (ch === "x") {
21982
22067
  index++;
@@ -21985,7 +22070,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
21985
22070
  return false;
21986
22071
  hasDigits = true;
21987
22072
  }
21988
- return hasDigits && Number.isFinite(parseYamlInteger(data));
22073
+ return hasDigits && isFinite(parseYamlInteger(data));
21989
22074
  }
21990
22075
  if (ch === "o") {
21991
22076
  index++;
@@ -21994,17 +22079,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
21994
22079
  return false;
21995
22080
  hasDigits = true;
21996
22081
  }
21997
- return hasDigits && Number.isFinite(parseYamlInteger(data));
22082
+ return hasDigits && isFinite(parseYamlInteger(data));
21998
22083
  }
21999
22084
  }
22000
22085
  for (;index < max; index++) {
22001
- if (!isDecCode(data.charCodeAt(index)))
22086
+ if (!isDecCode(data.charCodeAt(index))) {
22002
22087
  return false;
22088
+ }
22003
22089
  hasDigits = true;
22004
22090
  }
22005
22091
  if (!hasDigits)
22006
22092
  return false;
22007
- return Number.isFinite(parseYamlInteger(data));
22093
+ return isFinite(parseYamlInteger(data));
22008
22094
  }
22009
22095
  function parseYamlInteger(data) {
22010
22096
  let value = data;
@@ -22032,9 +22118,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
22032
22118
  return parseYamlInteger(data);
22033
22119
  }
22034
22120
  function isInteger(object) {
22035
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
22121
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
22036
22122
  }
22037
- module.exports = new Type("tag:yaml.org,2002:int", {
22123
+ int = new Type2("tag:yaml.org,2002:int", {
22038
22124
  kind: "scalar",
22039
22125
  resolve: resolveYamlInteger,
22040
22126
  construct: constructYamlInteger,
@@ -22061,35 +22147,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
22061
22147
  hexadecimal: [16, "hex"]
22062
22148
  }
22063
22149
  });
22064
- });
22065
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
22066
- var common = require_common();
22067
- var Type = require_type();
22068
- 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))$");
22069
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
22150
+ return int;
22151
+ }
22152
+ var float;
22153
+ var hasRequiredFloat;
22154
+ function requireFloat() {
22155
+ if (hasRequiredFloat)
22156
+ return float;
22157
+ hasRequiredFloat = 1;
22158
+ const common2 = requireCommon();
22159
+ const Type2 = requireType();
22160
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
22161
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
22070
22162
  function resolveYamlFloat(data) {
22071
22163
  if (data === null)
22072
22164
  return false;
22073
- if (!YAML_FLOAT_PATTERN.test(data))
22165
+ if (!YAML_FLOAT_PATTERN.test(data)) {
22074
22166
  return false;
22075
- if (Number.isFinite(parseFloat(data, 10)))
22167
+ }
22168
+ if (isFinite(parseFloat(data, 10))) {
22076
22169
  return true;
22170
+ }
22077
22171
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
22078
22172
  }
22079
22173
  function constructYamlFloat(data) {
22080
22174
  let value = data.toLowerCase();
22081
22175
  const sign = value[0] === "-" ? -1 : 1;
22082
- if ("+-".indexOf(value[0]) >= 0)
22176
+ if ("+-".indexOf(value[0]) >= 0) {
22083
22177
  value = value.slice(1);
22084
- if (value === ".inf")
22178
+ }
22179
+ if (value === ".inf") {
22085
22180
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
22086
- else if (value === ".nan")
22181
+ } else if (value === ".nan") {
22087
22182
  return NaN;
22183
+ }
22088
22184
  return sign * parseFloat(value, 10);
22089
22185
  }
22090
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
22186
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
22091
22187
  function representYamlFloat(object, style) {
22092
- if (isNaN(object))
22188
+ if (isNaN(object)) {
22093
22189
  switch (style) {
22094
22190
  case "lowercase":
22095
22191
  return ".nan";
@@ -22098,7 +22194,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
22098
22194
  case "camelcase":
22099
22195
  return ".NaN";
22100
22196
  }
22101
- else if (Number.POSITIVE_INFINITY === object)
22197
+ } else if (Number.POSITIVE_INFINITY === object) {
22102
22198
  switch (style) {
22103
22199
  case "lowercase":
22104
22200
  return ".inf";
@@ -22107,7 +22203,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
22107
22203
  case "camelcase":
22108
22204
  return ".Inf";
22109
22205
  }
22110
- else if (Number.NEGATIVE_INFINITY === object)
22206
+ } else if (Number.NEGATIVE_INFINITY === object) {
22111
22207
  switch (style) {
22112
22208
  case "lowercase":
22113
22209
  return "-.inf";
@@ -22116,15 +22212,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
22116
22212
  case "camelcase":
22117
22213
  return "-.Inf";
22118
22214
  }
22119
- else if (common.isNegativeZero(object))
22215
+ } else if (common2.isNegativeZero(object)) {
22120
22216
  return "-0.0";
22217
+ }
22121
22218
  const res = object.toString(10);
22122
22219
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
22123
22220
  }
22124
22221
  function isFloat(object) {
22125
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
22222
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
22126
22223
  }
22127
- module.exports = new Type("tag:yaml.org,2002:float", {
22224
+ float = new Type2("tag:yaml.org,2002:float", {
22128
22225
  kind: "scalar",
22129
22226
  resolve: resolveYamlFloat,
22130
22227
  construct: constructYamlFloat,
@@ -22132,22 +22229,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
22132
22229
  represent: representYamlFloat,
22133
22230
  defaultStyle: "lowercase"
22134
22231
  });
22135
- });
22136
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
22137
- module.exports = require_failsafe().extend({ implicit: [
22138
- require_null(),
22139
- require_bool(),
22140
- require_int(),
22141
- require_float()
22142
- ] });
22143
- });
22144
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
22145
- module.exports = require_json();
22146
- });
22147
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
22148
- var Type = require_type();
22149
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
22150
- 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]))?))?$");
22232
+ return float;
22233
+ }
22234
+ var json;
22235
+ var hasRequiredJson;
22236
+ function requireJson() {
22237
+ if (hasRequiredJson)
22238
+ return json;
22239
+ hasRequiredJson = 1;
22240
+ json = requireFailsafe().extend({
22241
+ implicit: [
22242
+ require_null(),
22243
+ requireBool(),
22244
+ requireInt(),
22245
+ requireFloat()
22246
+ ]
22247
+ });
22248
+ return json;
22249
+ }
22250
+ var core;
22251
+ var hasRequiredCore;
22252
+ function requireCore() {
22253
+ if (hasRequiredCore)
22254
+ return core;
22255
+ hasRequiredCore = 1;
22256
+ core = requireJson();
22257
+ return core;
22258
+ }
22259
+ var timestamp;
22260
+ var hasRequiredTimestamp;
22261
+ function requireTimestamp() {
22262
+ if (hasRequiredTimestamp)
22263
+ return timestamp;
22264
+ hasRequiredTimestamp = 1;
22265
+ const Type2 = requireType();
22266
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
22267
+ 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]))?))?$");
22151
22268
  function resolveYamlTimestamp(data) {
22152
22269
  if (data === null)
22153
22270
  return false;
@@ -22168,15 +22285,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
22168
22285
  const year = +match[1];
22169
22286
  const month = +match[2] - 1;
22170
22287
  const day = +match[3];
22171
- if (!match[4])
22288
+ if (!match[4]) {
22172
22289
  return new Date(Date.UTC(year, month, day));
22290
+ }
22173
22291
  const hour = +match[4];
22174
22292
  const minute = +match[5];
22175
22293
  const second = +match[6];
22176
22294
  if (match[7]) {
22177
22295
  fraction = match[7].slice(0, 3);
22178
- while (fraction.length < 3)
22296
+ while (fraction.length < 3) {
22179
22297
  fraction += "0";
22298
+ }
22180
22299
  fraction = +fraction;
22181
22300
  }
22182
22301
  if (match[9]) {
@@ -22194,36 +22313,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
22194
22313
  function representYamlTimestamp(object) {
22195
22314
  return object.toISOString();
22196
22315
  }
22197
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
22316
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
22198
22317
  kind: "scalar",
22199
22318
  resolve: resolveYamlTimestamp,
22200
22319
  construct: constructYamlTimestamp,
22201
22320
  instanceOf: Date,
22202
22321
  represent: representYamlTimestamp
22203
22322
  });
22204
- });
22205
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
22206
- var Type = require_type();
22323
+ return timestamp;
22324
+ }
22325
+ var merge;
22326
+ var hasRequiredMerge;
22327
+ function requireMerge() {
22328
+ if (hasRequiredMerge)
22329
+ return merge;
22330
+ hasRequiredMerge = 1;
22331
+ const Type2 = requireType();
22207
22332
  function resolveYamlMerge(data) {
22208
22333
  return data === "<<" || data === null;
22209
22334
  }
22210
- module.exports = new Type("tag:yaml.org,2002:merge", {
22335
+ merge = new Type2("tag:yaml.org,2002:merge", {
22211
22336
  kind: "scalar",
22212
22337
  resolve: resolveYamlMerge
22213
22338
  });
22214
- });
22215
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
22216
- var Type = require_type();
22217
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
22339
+ return merge;
22340
+ }
22341
+ var binary;
22342
+ var hasRequiredBinary;
22343
+ function requireBinary() {
22344
+ if (hasRequiredBinary)
22345
+ return binary;
22346
+ hasRequiredBinary = 1;
22347
+ const Type2 = requireType();
22348
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
22218
22349
  \r`;
22219
22350
  function resolveYamlBinary(data) {
22220
22351
  if (data === null)
22221
22352
  return false;
22222
22353
  let bitlen = 0;
22223
22354
  const max = data.length;
22224
- const map = BASE64_MAP;
22355
+ const map2 = BASE64_MAP;
22225
22356
  for (let idx = 0;idx < max; idx++) {
22226
- const code = map.indexOf(data.charAt(idx));
22357
+ const code = map2.indexOf(data.charAt(idx));
22227
22358
  if (code > 64)
22228
22359
  continue;
22229
22360
  if (code < 0)
@@ -22235,7 +22366,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
22235
22366
  function constructYamlBinary(data) {
22236
22367
  const input = data.replace(/[\r\n=]/g, "");
22237
22368
  const max = input.length;
22238
- const map = BASE64_MAP;
22369
+ const map2 = BASE64_MAP;
22239
22370
  let bits = 0;
22240
22371
  const result = [];
22241
22372
  for (let idx = 0;idx < max; idx++) {
@@ -22244,7 +22375,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
22244
22375
  result.push(bits >> 8 & 255);
22245
22376
  result.push(bits & 255);
22246
22377
  }
22247
- bits = bits << 6 | map.indexOf(input.charAt(idx));
22378
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
22248
22379
  }
22249
22380
  const tailbits = max % 4 * 6;
22250
22381
  if (tailbits === 0) {
@@ -22254,58 +22385,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
22254
22385
  } else if (tailbits === 18) {
22255
22386
  result.push(bits >> 10 & 255);
22256
22387
  result.push(bits >> 2 & 255);
22257
- } else if (tailbits === 12)
22388
+ } else if (tailbits === 12) {
22258
22389
  result.push(bits >> 4 & 255);
22390
+ }
22259
22391
  return new Uint8Array(result);
22260
22392
  }
22261
22393
  function representYamlBinary(object) {
22262
22394
  let result = "";
22263
22395
  let bits = 0;
22264
22396
  const max = object.length;
22265
- const map = BASE64_MAP;
22397
+ const map2 = BASE64_MAP;
22266
22398
  for (let idx = 0;idx < max; idx++) {
22267
22399
  if (idx % 3 === 0 && idx) {
22268
- result += map[bits >> 18 & 63];
22269
- result += map[bits >> 12 & 63];
22270
- result += map[bits >> 6 & 63];
22271
- result += map[bits & 63];
22400
+ result += map2[bits >> 18 & 63];
22401
+ result += map2[bits >> 12 & 63];
22402
+ result += map2[bits >> 6 & 63];
22403
+ result += map2[bits & 63];
22272
22404
  }
22273
22405
  bits = (bits << 8) + object[idx];
22274
22406
  }
22275
22407
  const tail = max % 3;
22276
22408
  if (tail === 0) {
22277
- result += map[bits >> 18 & 63];
22278
- result += map[bits >> 12 & 63];
22279
- result += map[bits >> 6 & 63];
22280
- result += map[bits & 63];
22409
+ result += map2[bits >> 18 & 63];
22410
+ result += map2[bits >> 12 & 63];
22411
+ result += map2[bits >> 6 & 63];
22412
+ result += map2[bits & 63];
22281
22413
  } else if (tail === 2) {
22282
- result += map[bits >> 10 & 63];
22283
- result += map[bits >> 4 & 63];
22284
- result += map[bits << 2 & 63];
22285
- result += map[64];
22414
+ result += map2[bits >> 10 & 63];
22415
+ result += map2[bits >> 4 & 63];
22416
+ result += map2[bits << 2 & 63];
22417
+ result += map2[64];
22286
22418
  } else if (tail === 1) {
22287
- result += map[bits >> 2 & 63];
22288
- result += map[bits << 4 & 63];
22289
- result += map[64];
22290
- result += map[64];
22419
+ result += map2[bits >> 2 & 63];
22420
+ result += map2[bits << 4 & 63];
22421
+ result += map2[64];
22422
+ result += map2[64];
22291
22423
  }
22292
22424
  return result;
22293
22425
  }
22294
22426
  function isBinary(obj) {
22295
22427
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
22296
22428
  }
22297
- module.exports = new Type("tag:yaml.org,2002:binary", {
22429
+ binary = new Type2("tag:yaml.org,2002:binary", {
22298
22430
  kind: "scalar",
22299
22431
  resolve: resolveYamlBinary,
22300
22432
  construct: constructYamlBinary,
22301
22433
  predicate: isBinary,
22302
22434
  represent: representYamlBinary
22303
22435
  });
22304
- });
22305
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
22306
- var Type = require_type();
22307
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
22308
- var _toString = Object.prototype.toString;
22436
+ return binary;
22437
+ }
22438
+ var omap;
22439
+ var hasRequiredOmap;
22440
+ function requireOmap() {
22441
+ if (hasRequiredOmap)
22442
+ return omap;
22443
+ hasRequiredOmap = 1;
22444
+ const Type2 = requireType();
22445
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
22446
+ const _toString = Object.prototype.toString;
22309
22447
  function resolveYamlOmap(data) {
22310
22448
  if (data === null)
22311
22449
  return true;
@@ -22317,12 +22455,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
22317
22455
  if (_toString.call(pair) !== "[object Object]")
22318
22456
  return false;
22319
22457
  let pairKey;
22320
- for (pairKey in pair)
22321
- if (_hasOwnProperty.call(pair, pairKey))
22458
+ for (pairKey in pair) {
22459
+ if (_hasOwnProperty.call(pair, pairKey)) {
22322
22460
  if (!pairHasKey)
22323
22461
  pairHasKey = true;
22324
22462
  else
22325
22463
  return false;
22464
+ }
22465
+ }
22326
22466
  if (!pairHasKey)
22327
22467
  return false;
22328
22468
  if (objectKeys.indexOf(pairKey) === -1)
@@ -22335,15 +22475,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
22335
22475
  function constructYamlOmap(data) {
22336
22476
  return data !== null ? data : [];
22337
22477
  }
22338
- module.exports = new Type("tag:yaml.org,2002:omap", {
22478
+ omap = new Type2("tag:yaml.org,2002:omap", {
22339
22479
  kind: "sequence",
22340
22480
  resolve: resolveYamlOmap,
22341
22481
  construct: constructYamlOmap
22342
22482
  });
22343
- });
22344
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
22345
- var Type = require_type();
22346
- var _toString = Object.prototype.toString;
22483
+ return omap;
22484
+ }
22485
+ var pairs;
22486
+ var hasRequiredPairs;
22487
+ function requirePairs() {
22488
+ if (hasRequiredPairs)
22489
+ return pairs;
22490
+ hasRequiredPairs = 1;
22491
+ const Type2 = requireType();
22492
+ const _toString = Object.prototype.toString;
22347
22493
  function resolveYamlPairs(data) {
22348
22494
  if (data === null)
22349
22495
  return true;
@@ -22372,64 +22518,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
22372
22518
  }
22373
22519
  return result;
22374
22520
  }
22375
- module.exports = new Type("tag:yaml.org,2002:pairs", {
22521
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
22376
22522
  kind: "sequence",
22377
22523
  resolve: resolveYamlPairs,
22378
22524
  construct: constructYamlPairs
22379
22525
  });
22380
- });
22381
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
22382
- var Type = require_type();
22383
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
22526
+ return pairs;
22527
+ }
22528
+ var set;
22529
+ var hasRequiredSet;
22530
+ function requireSet() {
22531
+ if (hasRequiredSet)
22532
+ return set;
22533
+ hasRequiredSet = 1;
22534
+ const Type2 = requireType();
22535
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
22384
22536
  function resolveYamlSet(data) {
22385
22537
  if (data === null)
22386
22538
  return true;
22387
22539
  const object = data;
22388
- for (const key in object)
22540
+ for (const key in object) {
22389
22541
  if (_hasOwnProperty.call(object, key)) {
22390
22542
  if (object[key] !== null)
22391
22543
  return false;
22392
22544
  }
22545
+ }
22393
22546
  return true;
22394
22547
  }
22395
22548
  function constructYamlSet(data) {
22396
22549
  return data !== null ? data : {};
22397
22550
  }
22398
- module.exports = new Type("tag:yaml.org,2002:set", {
22551
+ set = new Type2("tag:yaml.org,2002:set", {
22399
22552
  kind: "mapping",
22400
22553
  resolve: resolveYamlSet,
22401
22554
  construct: constructYamlSet
22402
22555
  });
22403
- });
22404
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
22405
- module.exports = require_core().extend({
22406
- implicit: [require_timestamp(), require_merge()],
22556
+ return set;
22557
+ }
22558
+ var _default;
22559
+ var hasRequired_default;
22560
+ function require_default() {
22561
+ if (hasRequired_default)
22562
+ return _default;
22563
+ hasRequired_default = 1;
22564
+ _default = requireCore().extend({
22565
+ implicit: [
22566
+ requireTimestamp(),
22567
+ requireMerge()
22568
+ ],
22407
22569
  explicit: [
22408
- require_binary(),
22409
- require_omap(),
22410
- require_pairs(),
22411
- require_set()
22570
+ requireBinary(),
22571
+ requireOmap(),
22572
+ requirePairs(),
22573
+ requireSet()
22412
22574
  ]
22413
22575
  });
22414
- });
22415
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22416
- var common = require_common();
22417
- var YAMLException = require_exception();
22418
- var makeSnippet = require_snippet();
22419
- var DEFAULT_SCHEMA = require_default();
22420
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
22421
- var CONTEXT_FLOW_IN = 1;
22422
- var CONTEXT_FLOW_OUT = 2;
22423
- var CONTEXT_BLOCK_IN = 3;
22424
- var CONTEXT_BLOCK_OUT = 4;
22425
- var CHOMPING_CLIP = 1;
22426
- var CHOMPING_STRIP = 2;
22427
- var CHOMPING_KEEP = 3;
22428
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
22429
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
22430
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
22431
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
22432
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
22576
+ return _default;
22577
+ }
22578
+ var hasRequiredLoader;
22579
+ function requireLoader() {
22580
+ if (hasRequiredLoader)
22581
+ return loader;
22582
+ hasRequiredLoader = 1;
22583
+ const common2 = requireCommon();
22584
+ const YAMLException2 = requireException();
22585
+ const makeSnippet = requireSnippet();
22586
+ const DEFAULT_SCHEMA2 = require_default();
22587
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
22588
+ const CONTEXT_FLOW_IN = 1;
22589
+ const CONTEXT_FLOW_OUT = 2;
22590
+ const CONTEXT_BLOCK_IN = 3;
22591
+ const CONTEXT_BLOCK_OUT = 4;
22592
+ const CHOMPING_CLIP = 1;
22593
+ const CHOMPING_STRIP = 2;
22594
+ const CHOMPING_KEEP = 3;
22595
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
22596
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
22597
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
22598
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
22599
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
22433
22600
  function _class(obj) {
22434
22601
  return Object.prototype.toString.call(obj);
22435
22602
  }
@@ -22446,25 +22613,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22446
22613
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
22447
22614
  }
22448
22615
  function fromHexCode(c) {
22449
- if (c >= 48 && c <= 57)
22616
+ if (c >= 48 && c <= 57) {
22450
22617
  return c - 48;
22618
+ }
22451
22619
  const lc = c | 32;
22452
- if (lc >= 97 && lc <= 102)
22620
+ if (lc >= 97 && lc <= 102) {
22453
22621
  return lc - 97 + 10;
22622
+ }
22454
22623
  return -1;
22455
22624
  }
22456
22625
  function escapedHexLen(c) {
22457
- if (c === 120)
22626
+ if (c === 120) {
22458
22627
  return 2;
22459
- if (c === 117)
22628
+ }
22629
+ if (c === 117) {
22460
22630
  return 4;
22461
- if (c === 85)
22631
+ }
22632
+ if (c === 85) {
22462
22633
  return 8;
22634
+ }
22463
22635
  return 0;
22464
22636
  }
22465
22637
  function fromDecimalCode(c) {
22466
- if (c >= 48 && c <= 57)
22638
+ if (c >= 48 && c <= 57) {
22467
22639
  return c - 48;
22640
+ }
22468
22641
  return -1;
22469
22642
  }
22470
22643
  function simpleEscapeSequence(c) {
@@ -22511,23 +22684,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22511
22684
  }
22512
22685
  }
22513
22686
  function charFromCodepoint(c) {
22514
- if (c <= 65535)
22687
+ if (c <= 65535) {
22515
22688
  return String.fromCharCode(c);
22689
+ }
22516
22690
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
22517
22691
  }
22518
22692
  function setProperty(object, key, value) {
22519
- if (key === "__proto__")
22693
+ if (key === "__proto__") {
22520
22694
  Object.defineProperty(object, key, {
22521
22695
  configurable: true,
22522
22696
  enumerable: true,
22523
22697
  writable: true,
22524
22698
  value
22525
22699
  });
22526
- else
22700
+ } else {
22527
22701
  object[key] = value;
22702
+ }
22528
22703
  }
22529
- var simpleEscapeCheck = new Array(256);
22530
- var simpleEscapeMap = new Array(256);
22704
+ const simpleEscapeCheck = new Array(256);
22705
+ const simpleEscapeMap = new Array(256);
22531
22706
  for (let i = 0;i < 256; i++) {
22532
22707
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
22533
22708
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -22535,13 +22710,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22535
22710
  function State(input, options) {
22536
22711
  this.input = input;
22537
22712
  this.filename = options["filename"] || null;
22538
- this.schema = options["schema"] || DEFAULT_SCHEMA;
22713
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
22539
22714
  this.onWarning = options["onWarning"] || null;
22540
22715
  this.legacy = options["legacy"] || false;
22541
22716
  this.json = options["json"] || false;
22542
22717
  this.listener = options["listener"] || null;
22543
22718
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
22544
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
22719
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
22545
22720
  this.implicitTypes = this.schema.compiledImplicit;
22546
22721
  this.typeMap = this.schema.compiledTypeMap;
22547
22722
  this.length = input.length;
@@ -22550,6 +22725,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22550
22725
  this.lineStart = 0;
22551
22726
  this.lineIndent = 0;
22552
22727
  this.depth = 0;
22728
+ this.totalMergeKeys = 0;
22553
22729
  this.firstTabInLine = -1;
22554
22730
  this.documents = [];
22555
22731
  this.anchorMapTransactions = [];
@@ -22563,29 +22739,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22563
22739
  column: state.position - state.lineStart
22564
22740
  };
22565
22741
  mark.snippet = makeSnippet(mark);
22566
- return new YAMLException(message, mark);
22742
+ return new YAMLException2(message, mark);
22567
22743
  }
22568
22744
  function throwError(state, message) {
22569
22745
  throw generateError(state, message);
22570
22746
  }
22571
22747
  function throwWarning(state, message) {
22572
- if (state.onWarning)
22748
+ if (state.onWarning) {
22573
22749
  state.onWarning.call(null, generateError(state, message));
22750
+ }
22574
22751
  }
22575
22752
  function storeAnchor(state, name, value) {
22576
22753
  const transactions = state.anchorMapTransactions;
22577
22754
  if (transactions.length !== 0) {
22578
22755
  const transaction = transactions[transactions.length - 1];
22579
- if (!_hasOwnProperty.call(transaction, name))
22756
+ if (!_hasOwnProperty.call(transaction, name)) {
22580
22757
  transaction[name] = {
22581
22758
  existed: _hasOwnProperty.call(state.anchorMap, name),
22582
22759
  value: state.anchorMap[name]
22583
22760
  };
22761
+ }
22584
22762
  }
22585
22763
  state.anchorMap[name] = value;
22586
22764
  }
22587
22765
  function beginAnchorTransaction(state) {
22588
- state.anchorMapTransactions.push(Object.create(null));
22766
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
22589
22767
  }
22590
22768
  function commitAnchorTransaction(state) {
22591
22769
  const transaction = state.anchorMapTransactions.pop();
@@ -22596,8 +22774,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22596
22774
  const names = Object.keys(transaction);
22597
22775
  for (let index = 0, length = names.length;index < length; index += 1) {
22598
22776
  const name = names[index];
22599
- if (!_hasOwnProperty.call(parent, name))
22777
+ if (!_hasOwnProperty.call(parent, name)) {
22600
22778
  parent[name] = transaction[name];
22779
+ }
22601
22780
  }
22602
22781
  }
22603
22782
  function rollbackAnchorTransaction(state) {
@@ -22605,10 +22784,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22605
22784
  const names = Object.keys(transaction);
22606
22785
  for (let index = names.length - 1;index >= 0; index -= 1) {
22607
22786
  const entry = transaction[names[index]];
22608
- if (entry.existed)
22787
+ if (entry.existed) {
22609
22788
  state.anchorMap[names[index]] = entry.value;
22610
- else
22789
+ } else {
22611
22790
  delete state.anchorMap[names[index]];
22791
+ }
22612
22792
  }
22613
22793
  }
22614
22794
  function snapshotState(state) {
@@ -22635,36 +22815,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22635
22815
  state.kind = snapshot.kind;
22636
22816
  state.result = snapshot.result;
22637
22817
  }
22638
- var directiveHandlers = {
22818
+ const directiveHandlers = {
22639
22819
  YAML: function handleYamlDirective(state, name, args) {
22640
- if (state.version !== null)
22820
+ if (state.version !== null) {
22641
22821
  throwError(state, "duplication of %YAML directive");
22642
- if (args.length !== 1)
22822
+ }
22823
+ if (args.length !== 1) {
22643
22824
  throwError(state, "YAML directive accepts exactly one argument");
22825
+ }
22644
22826
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
22645
- if (match === null)
22827
+ if (match === null) {
22646
22828
  throwError(state, "ill-formed argument of the YAML directive");
22829
+ }
22647
22830
  const major = parseInt(match[1], 10);
22648
22831
  const minor = parseInt(match[2], 10);
22649
- if (major !== 1)
22832
+ if (major !== 1) {
22650
22833
  throwError(state, "unacceptable YAML version of the document");
22834
+ }
22651
22835
  state.version = args[0];
22652
22836
  state.checkLineBreaks = minor < 2;
22653
- if (minor !== 1 && minor !== 2)
22837
+ if (minor !== 1 && minor !== 2) {
22654
22838
  throwWarning(state, "unsupported YAML version of the document");
22839
+ }
22655
22840
  },
22656
22841
  TAG: function handleTagDirective(state, name, args) {
22657
22842
  let prefix;
22658
- if (args.length !== 2)
22843
+ if (args.length !== 2) {
22659
22844
  throwError(state, "TAG directive accepts exactly two arguments");
22845
+ }
22660
22846
  const handle = args[0];
22661
22847
  prefix = args[1];
22662
- if (!PATTERN_TAG_HANDLE.test(handle))
22848
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
22663
22849
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
22664
- if (_hasOwnProperty.call(state.tagMap, handle))
22850
+ }
22851
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
22665
22852
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
22666
- if (!PATTERN_TAG_URI.test(prefix))
22853
+ }
22854
+ if (!PATTERN_TAG_URI.test(prefix)) {
22667
22855
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
22856
+ }
22668
22857
  try {
22669
22858
  prefix = decodeURIComponent(prefix);
22670
22859
  } catch (err) {
@@ -22676,23 +22865,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22676
22865
  function captureSegment(state, start, end, checkJson) {
22677
22866
  if (start < end) {
22678
22867
  const _result = state.input.slice(start, end);
22679
- if (checkJson)
22868
+ if (checkJson) {
22680
22869
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
22681
22870
  const _character = _result.charCodeAt(_position);
22682
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
22871
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
22683
22872
  throwError(state, "expected valid JSON character");
22873
+ }
22684
22874
  }
22685
- else if (PATTERN_NON_PRINTABLE.test(_result))
22875
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
22686
22876
  throwError(state, "the stream contains non-printable characters");
22877
+ }
22687
22878
  state.result += _result;
22688
22879
  }
22689
22880
  }
22690
22881
  function mergeMappings(state, destination, source, overridableKeys) {
22691
- if (!common.isObject(source))
22882
+ if (!common2.isObject(source)) {
22692
22883
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
22884
+ }
22693
22885
  const sourceKeys = Object.keys(source);
22694
22886
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
22695
22887
  const key = sourceKeys[index];
22888
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
22889
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
22890
+ }
22696
22891
  if (!_hasOwnProperty.call(destination, key)) {
22697
22892
  setProperty(destination, key, source[key]);
22698
22893
  overridableKeys[key] = true;
@@ -22703,32 +22898,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22703
22898
  if (Array.isArray(keyNode)) {
22704
22899
  keyNode = Array.prototype.slice.call(keyNode);
22705
22900
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
22706
- if (Array.isArray(keyNode[index]))
22901
+ if (Array.isArray(keyNode[index])) {
22707
22902
  throwError(state, "nested arrays are not supported inside keys");
22708
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
22903
+ }
22904
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
22709
22905
  keyNode[index] = "[object Object]";
22906
+ }
22710
22907
  }
22711
22908
  }
22712
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
22909
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
22713
22910
  keyNode = "[object Object]";
22911
+ }
22714
22912
  keyNode = String(keyNode);
22715
- if (_result === null)
22913
+ if (_result === null) {
22716
22914
  _result = {};
22717
- if (keyTag === "tag:yaml.org,2002:merge")
22915
+ }
22916
+ if (keyTag === "tag:yaml.org,2002:merge") {
22718
22917
  if (Array.isArray(valueNode)) {
22719
- if (valueNode.length > state.maxMergeSeqLength)
22720
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
22721
- const seen = /* @__PURE__ */ new Set;
22722
22918
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
22723
- const src = valueNode[index];
22724
- if (seen.has(src))
22725
- continue;
22726
- seen.add(src);
22727
- mergeMappings(state, _result, src, overridableKeys);
22919
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
22728
22920
  }
22729
- } else
22921
+ } else {
22730
22922
  mergeMappings(state, _result, valueNode, overridableKeys);
22731
- else {
22923
+ }
22924
+ } else {
22732
22925
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
22733
22926
  state.line = startLine || state.line;
22734
22927
  state.lineStart = startLineStart || state.lineStart;
@@ -22742,14 +22935,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22742
22935
  }
22743
22936
  function readLineBreak(state) {
22744
22937
  const ch = state.input.charCodeAt(state.position);
22745
- if (ch === 10)
22938
+ if (ch === 10) {
22746
22939
  state.position++;
22747
- else if (ch === 13) {
22940
+ } else if (ch === 13) {
22748
22941
  state.position++;
22749
- if (state.input.charCodeAt(state.position) === 10)
22942
+ if (state.input.charCodeAt(state.position) === 10) {
22750
22943
  state.position++;
22751
- } else
22944
+ }
22945
+ } else {
22752
22946
  throwError(state, "a line break is expected");
22947
+ }
22753
22948
  state.line += 1;
22754
22949
  state.lineStart = state.position;
22755
22950
  state.firstTabInLine = -1;
@@ -22759,14 +22954,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22759
22954
  let ch = state.input.charCodeAt(state.position);
22760
22955
  while (ch !== 0) {
22761
22956
  while (isWhiteSpace(ch)) {
22762
- if (ch === 9 && state.firstTabInLine === -1)
22957
+ if (ch === 9 && state.firstTabInLine === -1) {
22763
22958
  state.firstTabInLine = state.position;
22959
+ }
22764
22960
  ch = state.input.charCodeAt(++state.position);
22765
22961
  }
22766
- if (allowComments && ch === 35)
22767
- do
22962
+ if (allowComments && ch === 35) {
22963
+ do {
22768
22964
  ch = state.input.charCodeAt(++state.position);
22769
- while (ch !== 10 && ch !== 13 && ch !== 0);
22965
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
22966
+ }
22770
22967
  if (isEol(ch)) {
22771
22968
  readLineBreak(state);
22772
22969
  ch = state.input.charCodeAt(state.position);
@@ -22776,11 +22973,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22776
22973
  state.lineIndent++;
22777
22974
  ch = state.input.charCodeAt(++state.position);
22778
22975
  }
22779
- } else
22976
+ } else {
22780
22977
  break;
22978
+ }
22781
22979
  }
22782
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
22980
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
22783
22981
  throwWarning(state, "deficient indentation");
22982
+ }
22784
22983
  return lineBreaks;
22785
22984
  }
22786
22985
  function testDocumentSeparator(state) {
@@ -22789,17 +22988,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22789
22988
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
22790
22989
  _position += 3;
22791
22990
  ch = state.input.charCodeAt(_position);
22792
- if (ch === 0 || isWsOrEol(ch))
22991
+ if (ch === 0 || isWsOrEol(ch)) {
22793
22992
  return true;
22993
+ }
22794
22994
  }
22795
22995
  return false;
22796
22996
  }
22797
22997
  function writeFoldedLines(state, count) {
22798
- if (count === 1)
22998
+ if (count === 1) {
22799
22999
  state.result += " ";
22800
- else if (count > 1)
22801
- state.result += common.repeat(`
23000
+ } else if (count > 1) {
23001
+ state.result += common2.repeat(`
22802
23002
  `, count - 1);
23003
+ }
22803
23004
  }
22804
23005
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
22805
23006
  let captureStart;
@@ -22811,12 +23012,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22811
23012
  const _kind = state.kind;
22812
23013
  const _result = state.result;
22813
23014
  let ch = state.input.charCodeAt(state.position);
22814
- 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)
23015
+ 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) {
22815
23016
  return false;
23017
+ }
22816
23018
  if (ch === 63 || ch === 45) {
22817
23019
  const following = state.input.charCodeAt(state.position + 1);
22818
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
23020
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
22819
23021
  return false;
23022
+ }
22820
23023
  }
22821
23024
  state.kind = "scalar";
22822
23025
  state.result = "";
@@ -22825,14 +23028,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22825
23028
  while (ch !== 0) {
22826
23029
  if (ch === 58) {
22827
23030
  const following = state.input.charCodeAt(state.position + 1);
22828
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
23031
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
22829
23032
  break;
23033
+ }
22830
23034
  } else if (ch === 35) {
22831
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
23035
+ const preceding = state.input.charCodeAt(state.position - 1);
23036
+ if (isWsOrEol(preceding)) {
22832
23037
  break;
22833
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
23038
+ }
23039
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
22834
23040
  break;
22835
- else if (isEol(ch)) {
23041
+ } else if (isEol(ch)) {
22836
23042
  _line = state.line;
22837
23043
  _lineStart = state.lineStart;
22838
23044
  _lineIndent = state.lineIndent;
@@ -22855,13 +23061,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22855
23061
  captureStart = captureEnd = state.position;
22856
23062
  hasPendingContent = false;
22857
23063
  }
22858
- if (!isWhiteSpace(ch))
23064
+ if (!isWhiteSpace(ch)) {
22859
23065
  captureEnd = state.position + 1;
23066
+ }
22860
23067
  ch = state.input.charCodeAt(++state.position);
22861
23068
  }
22862
23069
  captureSegment(state, captureStart, captureEnd, false);
22863
- if (state.result)
23070
+ if (state.result) {
22864
23071
  return true;
23072
+ }
22865
23073
  state.kind = _kind;
22866
23074
  state.result = _result;
22867
23075
  return false;
@@ -22870,13 +23078,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22870
23078
  let captureStart;
22871
23079
  let captureEnd;
22872
23080
  let ch = state.input.charCodeAt(state.position);
22873
- if (ch !== 39)
23081
+ if (ch !== 39) {
22874
23082
  return false;
23083
+ }
22875
23084
  state.kind = "scalar";
22876
23085
  state.result = "";
22877
23086
  state.position++;
22878
23087
  captureStart = captureEnd = state.position;
22879
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
23088
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
22880
23089
  if (ch === 39) {
22881
23090
  captureSegment(state, captureStart, state.position, true);
22882
23091
  ch = state.input.charCodeAt(++state.position);
@@ -22884,19 +23093,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22884
23093
  captureStart = state.position;
22885
23094
  state.position++;
22886
23095
  captureEnd = state.position;
22887
- } else
23096
+ } else {
22888
23097
  return true;
23098
+ }
22889
23099
  } else if (isEol(ch)) {
22890
23100
  captureSegment(state, captureStart, captureEnd, true);
22891
23101
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
22892
23102
  captureStart = captureEnd = state.position;
22893
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
23103
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
22894
23104
  throwError(state, "unexpected end of the document within a single quoted scalar");
22895
- else {
23105
+ } else {
22896
23106
  state.position++;
22897
- if (!isWhiteSpace(ch))
23107
+ if (!isWhiteSpace(ch)) {
22898
23108
  captureEnd = state.position;
23109
+ }
22899
23110
  }
23111
+ }
22900
23112
  throwError(state, "unexpected end of the stream within a single quoted scalar");
22901
23113
  }
22902
23114
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -22904,13 +23116,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22904
23116
  let captureEnd;
22905
23117
  let tmp;
22906
23118
  let ch = state.input.charCodeAt(state.position);
22907
- if (ch !== 34)
23119
+ if (ch !== 34) {
22908
23120
  return false;
23121
+ }
22909
23122
  state.kind = "scalar";
22910
23123
  state.result = "";
22911
23124
  state.position++;
22912
23125
  captureStart = captureEnd = state.position;
22913
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
23126
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
22914
23127
  if (ch === 34) {
22915
23128
  captureSegment(state, captureStart, state.position, true);
22916
23129
  state.position++;
@@ -22918,9 +23131,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22918
23131
  } else if (ch === 92) {
22919
23132
  captureSegment(state, captureStart, state.position, true);
22920
23133
  ch = state.input.charCodeAt(++state.position);
22921
- if (isEol(ch))
23134
+ if (isEol(ch)) {
22922
23135
  skipSeparationSpace(state, false, nodeIndent);
22923
- else if (ch < 256 && simpleEscapeCheck[ch]) {
23136
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
22924
23137
  state.result += simpleEscapeMap[ch];
22925
23138
  state.position++;
22926
23139
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -22928,27 +23141,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22928
23141
  let hexResult = 0;
22929
23142
  for (;hexLength > 0; hexLength--) {
22930
23143
  ch = state.input.charCodeAt(++state.position);
22931
- if ((tmp = fromHexCode(ch)) >= 0)
23144
+ if ((tmp = fromHexCode(ch)) >= 0) {
22932
23145
  hexResult = (hexResult << 4) + tmp;
22933
- else
23146
+ } else {
22934
23147
  throwError(state, "expected hexadecimal character");
23148
+ }
22935
23149
  }
22936
23150
  state.result += charFromCodepoint(hexResult);
22937
23151
  state.position++;
22938
- } else
23152
+ } else {
22939
23153
  throwError(state, "unknown escape sequence");
23154
+ }
22940
23155
  captureStart = captureEnd = state.position;
22941
23156
  } else if (isEol(ch)) {
22942
23157
  captureSegment(state, captureStart, captureEnd, true);
22943
23158
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
22944
23159
  captureStart = captureEnd = state.position;
22945
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
23160
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
22946
23161
  throwError(state, "unexpected end of the document within a double quoted scalar");
22947
- else {
23162
+ } else {
22948
23163
  state.position++;
22949
- if (!isWhiteSpace(ch))
23164
+ if (!isWhiteSpace(ch)) {
22950
23165
  captureEnd = state.position;
23166
+ }
22951
23167
  }
23168
+ }
22952
23169
  throwError(state, "unexpected end of the stream within a double quoted scalar");
22953
23170
  }
22954
23171
  function readFlowCollection(state, nodeIndent) {
@@ -22963,7 +23180,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22963
23180
  let isPair;
22964
23181
  let isExplicitPair;
22965
23182
  let isMapping;
22966
- const overridableKeys = Object.create(null);
23183
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
22967
23184
  let keyNode;
22968
23185
  let keyTag;
22969
23186
  let valueNode;
@@ -22976,10 +23193,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22976
23193
  terminator = 125;
22977
23194
  isMapping = true;
22978
23195
  _result = {};
22979
- } else
23196
+ } else {
22980
23197
  return false;
22981
- if (state.anchor !== null)
23198
+ }
23199
+ if (state.anchor !== null) {
22982
23200
  storeAnchor(state, state.anchor, _result);
23201
+ }
22983
23202
  ch = state.input.charCodeAt(++state.position);
22984
23203
  while (ch !== 0) {
22985
23204
  skipSeparationSpace(state, true, nodeIndent);
@@ -22991,14 +23210,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
22991
23210
  state.kind = isMapping ? "mapping" : "sequence";
22992
23211
  state.result = _result;
22993
23212
  return true;
22994
- } else if (!readNext)
23213
+ } else if (!readNext) {
22995
23214
  throwError(state, "missed comma between flow collection entries");
22996
- else if (ch === 44)
23215
+ } else if (ch === 44) {
22997
23216
  throwError(state, "expected the node content, but found ','");
23217
+ }
22998
23218
  keyTag = keyNode = valueNode = null;
22999
23219
  isPair = isExplicitPair = false;
23000
23220
  if (ch === 63) {
23001
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
23221
+ const following = state.input.charCodeAt(state.position + 1);
23222
+ if (isWsOrEol(following)) {
23002
23223
  isPair = isExplicitPair = true;
23003
23224
  state.position++;
23004
23225
  skipSeparationSpace(state, true, nodeIndent);
@@ -23019,19 +23240,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23019
23240
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
23020
23241
  valueNode = state.result;
23021
23242
  }
23022
- if (isMapping)
23243
+ if (isMapping) {
23023
23244
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
23024
- else if (isPair)
23245
+ } else if (isPair) {
23025
23246
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
23026
- else
23247
+ } else {
23027
23248
  _result.push(keyNode);
23249
+ }
23028
23250
  skipSeparationSpace(state, true, nodeIndent);
23029
23251
  ch = state.input.charCodeAt(state.position);
23030
23252
  if (ch === 44) {
23031
23253
  readNext = true;
23032
23254
  ch = state.input.charCodeAt(++state.position);
23033
- } else
23255
+ } else {
23034
23256
  readNext = false;
23257
+ }
23035
23258
  }
23036
23259
  throwError(state, "unexpected end of the stream within a flow collection");
23037
23260
  }
@@ -23045,40 +23268,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23045
23268
  let atMoreIndented = false;
23046
23269
  let tmp;
23047
23270
  let ch = state.input.charCodeAt(state.position);
23048
- if (ch === 124)
23271
+ if (ch === 124) {
23049
23272
  folding = false;
23050
- else if (ch === 62)
23273
+ } else if (ch === 62) {
23051
23274
  folding = true;
23052
- else
23275
+ } else {
23053
23276
  return false;
23277
+ }
23054
23278
  state.kind = "scalar";
23055
23279
  state.result = "";
23056
23280
  while (ch !== 0) {
23057
23281
  ch = state.input.charCodeAt(++state.position);
23058
- if (ch === 43 || ch === 45)
23059
- if (CHOMPING_CLIP === chomping)
23282
+ if (ch === 43 || ch === 45) {
23283
+ if (CHOMPING_CLIP === chomping) {
23060
23284
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
23061
- else
23285
+ } else {
23062
23286
  throwError(state, "repeat of a chomping mode identifier");
23063
- else if ((tmp = fromDecimalCode(ch)) >= 0)
23064
- if (tmp === 0)
23287
+ }
23288
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
23289
+ if (tmp === 0) {
23065
23290
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
23066
- else if (!detectedIndent) {
23291
+ } else if (!detectedIndent) {
23067
23292
  textIndent = nodeIndent + tmp - 1;
23068
23293
  detectedIndent = true;
23069
- } else
23294
+ } else {
23070
23295
  throwError(state, "repeat of an indentation width identifier");
23071
- else
23296
+ }
23297
+ } else {
23072
23298
  break;
23299
+ }
23073
23300
  }
23074
23301
  if (isWhiteSpace(ch)) {
23075
- do
23302
+ do {
23076
23303
  ch = state.input.charCodeAt(++state.position);
23077
- while (isWhiteSpace(ch));
23078
- if (ch === 35)
23079
- do
23304
+ } while (isWhiteSpace(ch));
23305
+ if (ch === 35) {
23306
+ do {
23080
23307
  ch = state.input.charCodeAt(++state.position);
23081
- while (!isEol(ch) && ch !== 0);
23308
+ } while (!isEol(ch) && ch !== 0);
23309
+ }
23082
23310
  }
23083
23311
  while (ch !== 0) {
23084
23312
  readLineBreak(state);
@@ -23088,49 +23316,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23088
23316
  state.lineIndent++;
23089
23317
  ch = state.input.charCodeAt(++state.position);
23090
23318
  }
23091
- if (!detectedIndent && state.lineIndent > textIndent)
23319
+ if (!detectedIndent && state.lineIndent > textIndent) {
23092
23320
  textIndent = state.lineIndent;
23321
+ }
23093
23322
  if (isEol(ch)) {
23094
23323
  emptyLines++;
23095
23324
  continue;
23096
23325
  }
23097
- if (!detectedIndent && textIndent === 0)
23326
+ if (!detectedIndent && textIndent === 0) {
23098
23327
  throwError(state, "missing indentation for block scalar");
23328
+ }
23099
23329
  if (state.lineIndent < textIndent) {
23100
- if (chomping === CHOMPING_KEEP)
23101
- state.result += common.repeat(`
23330
+ if (chomping === CHOMPING_KEEP) {
23331
+ state.result += common2.repeat(`
23102
23332
  `, didReadContent ? 1 + emptyLines : emptyLines);
23103
- else if (chomping === CHOMPING_CLIP) {
23104
- if (didReadContent)
23333
+ } else if (chomping === CHOMPING_CLIP) {
23334
+ if (didReadContent) {
23105
23335
  state.result += `
23106
23336
  `;
23337
+ }
23107
23338
  }
23108
23339
  break;
23109
23340
  }
23110
- if (folding)
23341
+ if (folding) {
23111
23342
  if (isWhiteSpace(ch)) {
23112
23343
  atMoreIndented = true;
23113
- state.result += common.repeat(`
23344
+ state.result += common2.repeat(`
23114
23345
  `, didReadContent ? 1 + emptyLines : emptyLines);
23115
23346
  } else if (atMoreIndented) {
23116
23347
  atMoreIndented = false;
23117
- state.result += common.repeat(`
23348
+ state.result += common2.repeat(`
23118
23349
  `, emptyLines + 1);
23119
23350
  } else if (emptyLines === 0) {
23120
- if (didReadContent)
23351
+ if (didReadContent) {
23121
23352
  state.result += " ";
23122
- } else
23123
- state.result += common.repeat(`
23353
+ }
23354
+ } else {
23355
+ state.result += common2.repeat(`
23124
23356
  `, emptyLines);
23125
- else
23126
- state.result += common.repeat(`
23357
+ }
23358
+ } else {
23359
+ state.result += common2.repeat(`
23127
23360
  `, didReadContent ? 1 + emptyLines : emptyLines);
23361
+ }
23128
23362
  didReadContent = true;
23129
23363
  detectedIndent = true;
23130
23364
  emptyLines = 0;
23131
23365
  const captureStart = state.position;
23132
- while (!isEol(ch) && ch !== 0)
23366
+ while (!isEol(ch) && ch !== 0) {
23133
23367
  ch = state.input.charCodeAt(++state.position);
23368
+ }
23134
23369
  captureSegment(state, captureStart, state.position, false);
23135
23370
  }
23136
23371
  return true;
@@ -23142,18 +23377,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23142
23377
  let detected = false;
23143
23378
  if (state.firstTabInLine !== -1)
23144
23379
  return false;
23145
- if (state.anchor !== null)
23380
+ if (state.anchor !== null) {
23146
23381
  storeAnchor(state, state.anchor, _result);
23382
+ }
23147
23383
  let ch = state.input.charCodeAt(state.position);
23148
23384
  while (ch !== 0) {
23149
23385
  if (state.firstTabInLine !== -1) {
23150
23386
  state.position = state.firstTabInLine;
23151
23387
  throwError(state, "tab characters must not be used in indentation");
23152
23388
  }
23153
- if (ch !== 45)
23389
+ if (ch !== 45) {
23154
23390
  break;
23155
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
23391
+ }
23392
+ const following = state.input.charCodeAt(state.position + 1);
23393
+ if (!isWsOrEol(following)) {
23156
23394
  break;
23395
+ }
23157
23396
  detected = true;
23158
23397
  state.position++;
23159
23398
  if (skipSeparationSpace(state, true, -1)) {
@@ -23168,10 +23407,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23168
23407
  _result.push(state.result);
23169
23408
  skipSeparationSpace(state, true, -1);
23170
23409
  ch = state.input.charCodeAt(state.position);
23171
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
23410
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
23172
23411
  throwError(state, "bad indentation of a sequence entry");
23173
- else if (state.lineIndent < nodeIndent)
23412
+ } else if (state.lineIndent < nodeIndent) {
23174
23413
  break;
23414
+ }
23175
23415
  }
23176
23416
  if (detected) {
23177
23417
  state.tag = _tag;
@@ -23190,7 +23430,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23190
23430
  const _tag = state.tag;
23191
23431
  const _anchor = state.anchor;
23192
23432
  const _result = {};
23193
- const overridableKeys = Object.create(null);
23433
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
23194
23434
  let keyTag = null;
23195
23435
  let keyNode = null;
23196
23436
  let valueNode = null;
@@ -23198,8 +23438,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23198
23438
  let detected = false;
23199
23439
  if (state.firstTabInLine !== -1)
23200
23440
  return false;
23201
- if (state.anchor !== null)
23441
+ if (state.anchor !== null) {
23202
23442
  storeAnchor(state, state.anchor, _result);
23443
+ }
23203
23444
  let ch = state.input.charCodeAt(state.position);
23204
23445
  while (ch !== 0) {
23205
23446
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -23220,24 +23461,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23220
23461
  } else if (atExplicitKey) {
23221
23462
  atExplicitKey = false;
23222
23463
  allowCompact = true;
23223
- } else
23464
+ } else {
23224
23465
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
23466
+ }
23225
23467
  state.position += 1;
23226
23468
  ch = following;
23227
23469
  } else {
23228
23470
  _keyLine = state.line;
23229
23471
  _keyLineStart = state.lineStart;
23230
23472
  _keyPos = state.position;
23231
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
23473
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
23232
23474
  break;
23475
+ }
23233
23476
  if (state.line === _line) {
23234
23477
  ch = state.input.charCodeAt(state.position);
23235
- while (isWhiteSpace(ch))
23478
+ while (isWhiteSpace(ch)) {
23236
23479
  ch = state.input.charCodeAt(++state.position);
23480
+ }
23237
23481
  if (ch === 58) {
23238
23482
  ch = state.input.charCodeAt(++state.position);
23239
- if (!isWsOrEol(ch))
23483
+ if (!isWsOrEol(ch)) {
23240
23484
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
23485
+ }
23241
23486
  if (atExplicitKey) {
23242
23487
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
23243
23488
  keyTag = keyNode = valueNode = null;
@@ -23247,16 +23492,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23247
23492
  allowCompact = false;
23248
23493
  keyTag = state.tag;
23249
23494
  keyNode = state.result;
23250
- } else if (detected)
23495
+ } else if (detected) {
23251
23496
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
23252
- else {
23497
+ } else {
23253
23498
  state.tag = _tag;
23254
23499
  state.anchor = _anchor;
23255
23500
  return true;
23256
23501
  }
23257
- } else if (detected)
23502
+ } else if (detected) {
23258
23503
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
23259
- else {
23504
+ } else {
23260
23505
  state.tag = _tag;
23261
23506
  state.anchor = _anchor;
23262
23507
  return true;
@@ -23268,11 +23513,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23268
23513
  _keyLineStart = state.lineStart;
23269
23514
  _keyPos = state.position;
23270
23515
  }
23271
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
23272
- if (atExplicitKey)
23516
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
23517
+ if (atExplicitKey) {
23273
23518
  keyNode = state.result;
23274
- else
23519
+ } else {
23275
23520
  valueNode = state.result;
23521
+ }
23522
+ }
23276
23523
  if (!atExplicitKey) {
23277
23524
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
23278
23525
  keyTag = keyNode = valueNode = null;
@@ -23280,13 +23527,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23280
23527
  skipSeparationSpace(state, true, -1);
23281
23528
  ch = state.input.charCodeAt(state.position);
23282
23529
  }
23283
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
23530
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
23284
23531
  throwError(state, "bad indentation of a mapping entry");
23285
- else if (state.lineIndent < nodeIndent)
23532
+ } else if (state.lineIndent < nodeIndent) {
23286
23533
  break;
23534
+ }
23287
23535
  }
23288
- if (atExplicitKey)
23536
+ if (atExplicitKey) {
23289
23537
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
23538
+ }
23290
23539
  if (detected) {
23291
23540
  state.tag = _tag;
23292
23541
  state.anchor = _anchor;
@@ -23303,8 +23552,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23303
23552
  let ch = state.input.charCodeAt(state.position);
23304
23553
  if (ch !== 33)
23305
23554
  return false;
23306
- if (state.tag !== null)
23555
+ if (state.tag !== null) {
23307
23556
  throwError(state, "duplication of a tag property");
23557
+ }
23308
23558
  ch = state.input.charCodeAt(++state.position);
23309
23559
  if (ch === 60) {
23310
23560
  isVerbatim = true;
@@ -23313,66 +23563,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23313
23563
  isNamed = true;
23314
23564
  tagHandle = "!!";
23315
23565
  ch = state.input.charCodeAt(++state.position);
23316
- } else
23566
+ } else {
23317
23567
  tagHandle = "!";
23568
+ }
23318
23569
  let _position = state.position;
23319
23570
  if (isVerbatim) {
23320
- do
23571
+ do {
23321
23572
  ch = state.input.charCodeAt(++state.position);
23322
- while (ch !== 0 && ch !== 62);
23573
+ } while (ch !== 0 && ch !== 62);
23323
23574
  if (state.position < state.length) {
23324
23575
  tagName = state.input.slice(_position, state.position);
23325
23576
  ch = state.input.charCodeAt(++state.position);
23326
- } else
23577
+ } else {
23327
23578
  throwError(state, "unexpected end of the stream within a verbatim tag");
23579
+ }
23328
23580
  } else {
23329
23581
  while (ch !== 0 && !isWsOrEol(ch)) {
23330
- if (ch === 33)
23582
+ if (ch === 33) {
23331
23583
  if (!isNamed) {
23332
23584
  tagHandle = state.input.slice(_position - 1, state.position + 1);
23333
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
23585
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
23334
23586
  throwError(state, "named tag handle cannot contain such characters");
23587
+ }
23335
23588
  isNamed = true;
23336
23589
  _position = state.position + 1;
23337
- } else
23590
+ } else {
23338
23591
  throwError(state, "tag suffix cannot contain exclamation marks");
23592
+ }
23593
+ }
23339
23594
  ch = state.input.charCodeAt(++state.position);
23340
23595
  }
23341
23596
  tagName = state.input.slice(_position, state.position);
23342
- if (PATTERN_FLOW_INDICATORS.test(tagName))
23597
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
23343
23598
  throwError(state, "tag suffix cannot contain flow indicator characters");
23599
+ }
23344
23600
  }
23345
- if (tagName && !PATTERN_TAG_URI.test(tagName))
23601
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
23346
23602
  throwError(state, "tag name cannot contain such characters: " + tagName);
23603
+ }
23347
23604
  try {
23348
23605
  tagName = decodeURIComponent(tagName);
23349
23606
  } catch (err) {
23350
23607
  throwError(state, "tag name is malformed: " + tagName);
23351
23608
  }
23352
- if (isVerbatim)
23609
+ if (isVerbatim) {
23353
23610
  state.tag = tagName;
23354
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
23611
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
23355
23612
  state.tag = state.tagMap[tagHandle] + tagName;
23356
- else if (tagHandle === "!")
23613
+ } else if (tagHandle === "!") {
23357
23614
  state.tag = "!" + tagName;
23358
- else if (tagHandle === "!!")
23615
+ } else if (tagHandle === "!!") {
23359
23616
  state.tag = "tag:yaml.org,2002:" + tagName;
23360
- else
23617
+ } else {
23361
23618
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
23619
+ }
23362
23620
  return true;
23363
23621
  }
23364
23622
  function readAnchorProperty(state) {
23365
23623
  let ch = state.input.charCodeAt(state.position);
23366
23624
  if (ch !== 38)
23367
23625
  return false;
23368
- if (state.anchor !== null)
23626
+ if (state.anchor !== null) {
23369
23627
  throwError(state, "duplication of an anchor property");
23628
+ }
23370
23629
  ch = state.input.charCodeAt(++state.position);
23371
23630
  const _position = state.position;
23372
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
23631
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
23373
23632
  ch = state.input.charCodeAt(++state.position);
23374
- if (state.position === _position)
23633
+ }
23634
+ if (state.position === _position) {
23375
23635
  throwError(state, "name of an anchor node must contain at least one character");
23636
+ }
23376
23637
  state.anchor = state.input.slice(_position, state.position);
23377
23638
  return true;
23378
23639
  }
@@ -23382,13 +23643,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23382
23643
  return false;
23383
23644
  ch = state.input.charCodeAt(++state.position);
23384
23645
  const _position = state.position;
23385
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
23646
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
23386
23647
  ch = state.input.charCodeAt(++state.position);
23387
- if (state.position === _position)
23648
+ }
23649
+ if (state.position === _position) {
23388
23650
  throwError(state, "name of an alias node must contain at least one character");
23651
+ }
23389
23652
  const alias = state.input.slice(_position, state.position);
23390
- if (!_hasOwnProperty.call(state.anchorMap, alias))
23653
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
23391
23654
  throwError(state, 'unidentified alias "' + alias + '"');
23655
+ }
23392
23656
  state.result = state.anchorMap[alias];
23393
23657
  skipSeparationSpace(state, true, -1);
23394
23658
  return true;
@@ -23416,14 +23680,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23416
23680
  let atNewLine = false;
23417
23681
  let hasContent = false;
23418
23682
  let propertyStart = null;
23419
- let type;
23683
+ let type2;
23420
23684
  let flowIndent;
23421
23685
  let blockIndent;
23422
- if (state.depth >= state.maxDepth)
23686
+ if (state.depth >= state.maxDepth) {
23423
23687
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
23688
+ }
23424
23689
  state.depth += 1;
23425
- if (state.listener !== null)
23690
+ if (state.listener !== null) {
23426
23691
  state.listener("open", state);
23692
+ }
23427
23693
  state.tag = null;
23428
23694
  state.anchor = null;
23429
23695
  state.kind = null;
@@ -23432,110 +23698,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23432
23698
  if (allowToSeek) {
23433
23699
  if (skipSeparationSpace(state, true, -1)) {
23434
23700
  atNewLine = true;
23435
- if (state.lineIndent > parentIndent)
23701
+ if (state.lineIndent > parentIndent) {
23436
23702
  indentStatus = 1;
23437
- else if (state.lineIndent === parentIndent)
23703
+ } else if (state.lineIndent === parentIndent) {
23438
23704
  indentStatus = 0;
23439
- else if (state.lineIndent < parentIndent)
23705
+ } else if (state.lineIndent < parentIndent) {
23440
23706
  indentStatus = -1;
23707
+ }
23441
23708
  }
23442
23709
  }
23443
- if (indentStatus === 1)
23710
+ if (indentStatus === 1) {
23444
23711
  while (true) {
23445
23712
  const ch = state.input.charCodeAt(state.position);
23446
23713
  const propertyState = snapshotState(state);
23447
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
23714
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
23448
23715
  break;
23449
- if (!readTagProperty(state) && !readAnchorProperty(state))
23716
+ }
23717
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
23450
23718
  break;
23451
- if (propertyStart === null)
23719
+ }
23720
+ if (propertyStart === null) {
23452
23721
  propertyStart = propertyState;
23722
+ }
23453
23723
  if (skipSeparationSpace(state, true, -1)) {
23454
23724
  atNewLine = true;
23455
23725
  allowBlockCollections = allowBlockStyles;
23456
- if (state.lineIndent > parentIndent)
23726
+ if (state.lineIndent > parentIndent) {
23457
23727
  indentStatus = 1;
23458
- else if (state.lineIndent === parentIndent)
23728
+ } else if (state.lineIndent === parentIndent) {
23459
23729
  indentStatus = 0;
23460
- else if (state.lineIndent < parentIndent)
23730
+ } else if (state.lineIndent < parentIndent) {
23461
23731
  indentStatus = -1;
23462
- } else
23732
+ }
23733
+ } else {
23463
23734
  allowBlockCollections = false;
23735
+ }
23464
23736
  }
23465
- if (allowBlockCollections)
23737
+ }
23738
+ if (allowBlockCollections) {
23466
23739
  allowBlockCollections = atNewLine || allowCompact;
23740
+ }
23467
23741
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
23468
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
23742
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
23469
23743
  flowIndent = parentIndent;
23470
- else
23744
+ } else {
23471
23745
  flowIndent = parentIndent + 1;
23746
+ }
23472
23747
  blockIndent = state.position - state.lineStart;
23473
- if (indentStatus === 1)
23474
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
23748
+ if (indentStatus === 1) {
23749
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
23475
23750
  hasContent = true;
23476
- else {
23751
+ } else {
23477
23752
  const ch = state.input.charCodeAt(state.position);
23478
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
23753
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
23479
23754
  hasContent = true;
23480
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
23755
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
23481
23756
  hasContent = true;
23482
- else if (readAlias(state)) {
23757
+ } else if (readAlias(state)) {
23483
23758
  hasContent = true;
23484
- if (state.tag !== null || state.anchor !== null)
23759
+ if (state.tag !== null || state.anchor !== null) {
23485
23760
  throwError(state, "alias node should not have any properties");
23761
+ }
23486
23762
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
23487
23763
  hasContent = true;
23488
- if (state.tag === null)
23764
+ if (state.tag === null) {
23489
23765
  state.tag = "?";
23766
+ }
23490
23767
  }
23491
- if (state.anchor !== null)
23768
+ if (state.anchor !== null) {
23492
23769
  storeAnchor(state, state.anchor, state.result);
23770
+ }
23493
23771
  }
23494
- else if (indentStatus === 0)
23772
+ } else if (indentStatus === 0) {
23495
23773
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
23774
+ }
23496
23775
  }
23497
23776
  if (state.tag === null) {
23498
- if (state.anchor !== null)
23777
+ if (state.anchor !== null) {
23499
23778
  storeAnchor(state, state.anchor, state.result);
23779
+ }
23500
23780
  } else if (state.tag === "?") {
23501
- if (state.result !== null && state.kind !== "scalar")
23781
+ if (state.result !== null && state.kind !== "scalar") {
23502
23782
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
23783
+ }
23503
23784
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
23504
- type = state.implicitTypes[typeIndex];
23505
- if (type.resolve(state.result)) {
23506
- state.result = type.construct(state.result);
23507
- state.tag = type.tag;
23508
- if (state.anchor !== null)
23785
+ type2 = state.implicitTypes[typeIndex];
23786
+ if (type2.resolve(state.result)) {
23787
+ state.result = type2.construct(state.result);
23788
+ state.tag = type2.tag;
23789
+ if (state.anchor !== null) {
23509
23790
  storeAnchor(state, state.anchor, state.result);
23791
+ }
23510
23792
  break;
23511
23793
  }
23512
23794
  }
23513
23795
  } else if (state.tag !== "!") {
23514
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
23515
- type = state.typeMap[state.kind || "fallback"][state.tag];
23516
- else {
23517
- type = null;
23796
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
23797
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
23798
+ } else {
23799
+ type2 = null;
23518
23800
  const typeList = state.typeMap.multi[state.kind || "fallback"];
23519
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
23801
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
23520
23802
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
23521
- type = typeList[typeIndex];
23803
+ type2 = typeList[typeIndex];
23522
23804
  break;
23523
23805
  }
23806
+ }
23524
23807
  }
23525
- if (!type)
23808
+ if (!type2) {
23526
23809
  throwError(state, "unknown tag !<" + state.tag + ">");
23527
- if (state.result !== null && type.kind !== state.kind)
23528
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
23529
- if (!type.resolve(state.result, state.tag))
23810
+ }
23811
+ if (state.result !== null && type2.kind !== state.kind) {
23812
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
23813
+ }
23814
+ if (!type2.resolve(state.result, state.tag)) {
23530
23815
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
23531
- else {
23532
- state.result = type.construct(state.result, state.tag);
23533
- if (state.anchor !== null)
23816
+ } else {
23817
+ state.result = type2.construct(state.result, state.tag);
23818
+ if (state.anchor !== null) {
23534
23819
  storeAnchor(state, state.anchor, state.result);
23820
+ }
23535
23821
  }
23536
23822
  }
23537
- if (state.listener !== null)
23823
+ if (state.listener !== null) {
23538
23824
  state.listener("close", state);
23825
+ }
23539
23826
  state.depth -= 1;
23540
23827
  return state.tag !== null || state.anchor !== null || hasContent;
23541
23828
  }
@@ -23545,55 +23832,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23545
23832
  let ch;
23546
23833
  state.version = null;
23547
23834
  state.checkLineBreaks = state.legacy;
23548
- state.tagMap = Object.create(null);
23549
- state.anchorMap = Object.create(null);
23835
+ state.tagMap = /* @__PURE__ */ Object.create(null);
23836
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
23550
23837
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
23551
23838
  skipSeparationSpace(state, true, -1);
23552
23839
  ch = state.input.charCodeAt(state.position);
23553
- if (state.lineIndent > 0 || ch !== 37)
23840
+ if (state.lineIndent > 0 || ch !== 37) {
23554
23841
  break;
23842
+ }
23555
23843
  hasDirectives = true;
23556
23844
  ch = state.input.charCodeAt(++state.position);
23557
23845
  let _position = state.position;
23558
- while (ch !== 0 && !isWsOrEol(ch))
23846
+ while (ch !== 0 && !isWsOrEol(ch)) {
23559
23847
  ch = state.input.charCodeAt(++state.position);
23848
+ }
23560
23849
  const directiveName = state.input.slice(_position, state.position);
23561
23850
  const directiveArgs = [];
23562
- if (directiveName.length < 1)
23851
+ if (directiveName.length < 1) {
23563
23852
  throwError(state, "directive name must not be less than one character in length");
23853
+ }
23564
23854
  while (ch !== 0) {
23565
- while (isWhiteSpace(ch))
23855
+ while (isWhiteSpace(ch)) {
23566
23856
  ch = state.input.charCodeAt(++state.position);
23857
+ }
23567
23858
  if (ch === 35) {
23568
- do
23859
+ do {
23569
23860
  ch = state.input.charCodeAt(++state.position);
23570
- while (ch !== 0 && !isEol(ch));
23861
+ } while (ch !== 0 && !isEol(ch));
23571
23862
  break;
23572
23863
  }
23573
23864
  if (isEol(ch))
23574
23865
  break;
23575
23866
  _position = state.position;
23576
- while (ch !== 0 && !isWsOrEol(ch))
23867
+ while (ch !== 0 && !isWsOrEol(ch)) {
23577
23868
  ch = state.input.charCodeAt(++state.position);
23869
+ }
23578
23870
  directiveArgs.push(state.input.slice(_position, state.position));
23579
23871
  }
23580
23872
  if (ch !== 0)
23581
23873
  readLineBreak(state);
23582
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
23874
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
23583
23875
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
23584
- else
23876
+ } else {
23585
23877
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
23878
+ }
23586
23879
  }
23587
23880
  skipSeparationSpace(state, true, -1);
23588
23881
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
23589
23882
  state.position += 3;
23590
23883
  skipSeparationSpace(state, true, -1);
23591
- } else if (hasDirectives)
23884
+ } else if (hasDirectives) {
23592
23885
  throwError(state, "directives end mark is expected");
23886
+ }
23593
23887
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
23594
23888
  skipSeparationSpace(state, true, -1);
23595
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
23889
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
23596
23890
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
23891
+ }
23597
23892
  state.documents.push(state.result);
23598
23893
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
23599
23894
  if (state.input.charCodeAt(state.position) === 46) {
@@ -23602,18 +23897,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23602
23897
  }
23603
23898
  return;
23604
23899
  }
23605
- if (state.position < state.length - 1)
23900
+ if (state.position < state.length - 1) {
23606
23901
  throwError(state, "end of the stream or a document separator is expected");
23902
+ }
23607
23903
  }
23608
23904
  function loadDocuments(input, options) {
23609
23905
  input = String(input);
23610
23906
  options = options || {};
23611
23907
  if (input.length !== 0) {
23612
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
23908
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
23613
23909
  input += `
23614
23910
  `;
23615
- if (input.charCodeAt(0) === 65279)
23911
+ }
23912
+ if (input.charCodeAt(0) === 65279) {
23616
23913
  input = input.slice(1);
23914
+ }
23617
23915
  }
23618
23916
  const state = new State(input, options);
23619
23917
  const nullpos = input.indexOf("\x00");
@@ -23626,64 +23924,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
23626
23924
  state.lineIndent += 1;
23627
23925
  state.position += 1;
23628
23926
  }
23629
- while (state.position < state.length - 1)
23927
+ while (state.position < state.length - 1) {
23630
23928
  readDocument(state);
23929
+ }
23631
23930
  return state.documents;
23632
23931
  }
23633
- function loadAll(input, iterator, options) {
23932
+ function loadAll2(input, iterator, options) {
23634
23933
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
23635
23934
  options = iterator;
23636
23935
  iterator = null;
23637
23936
  }
23638
23937
  const documents = loadDocuments(input, options);
23639
- if (typeof iterator !== "function")
23938
+ if (typeof iterator !== "function") {
23640
23939
  return documents;
23641
- for (let index = 0, length = documents.length;index < length; index += 1)
23940
+ }
23941
+ for (let index = 0, length = documents.length;index < length; index += 1) {
23642
23942
  iterator(documents[index]);
23943
+ }
23643
23944
  }
23644
- function load(input, options) {
23945
+ function load2(input, options) {
23645
23946
  const documents = loadDocuments(input, options);
23646
- if (documents.length === 0)
23947
+ if (documents.length === 0) {
23647
23948
  return;
23648
- else if (documents.length === 1)
23949
+ } else if (documents.length === 1) {
23649
23950
  return documents[0];
23650
- throw new YAMLException("expected a single document in the stream, but found more");
23951
+ }
23952
+ throw new YAMLException2("expected a single document in the stream, but found more");
23651
23953
  }
23652
- module.exports.loadAll = loadAll;
23653
- module.exports.load = load;
23654
- });
23655
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23656
- var common = require_common();
23657
- var YAMLException = require_exception();
23658
- var DEFAULT_SCHEMA = require_default();
23659
- var _toString = Object.prototype.toString;
23660
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
23661
- var CHAR_BOM = 65279;
23662
- var CHAR_TAB = 9;
23663
- var CHAR_LINE_FEED = 10;
23664
- var CHAR_CARRIAGE_RETURN = 13;
23665
- var CHAR_SPACE = 32;
23666
- var CHAR_EXCLAMATION = 33;
23667
- var CHAR_DOUBLE_QUOTE = 34;
23668
- var CHAR_SHARP = 35;
23669
- var CHAR_PERCENT = 37;
23670
- var CHAR_AMPERSAND = 38;
23671
- var CHAR_SINGLE_QUOTE = 39;
23672
- var CHAR_ASTERISK = 42;
23673
- var CHAR_COMMA = 44;
23674
- var CHAR_MINUS = 45;
23675
- var CHAR_COLON = 58;
23676
- var CHAR_EQUALS = 61;
23677
- var CHAR_GREATER_THAN = 62;
23678
- var CHAR_QUESTION = 63;
23679
- var CHAR_COMMERCIAL_AT = 64;
23680
- var CHAR_LEFT_SQUARE_BRACKET = 91;
23681
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
23682
- var CHAR_GRAVE_ACCENT = 96;
23683
- var CHAR_LEFT_CURLY_BRACKET = 123;
23684
- var CHAR_VERTICAL_LINE = 124;
23685
- var CHAR_RIGHT_CURLY_BRACKET = 125;
23686
- var ESCAPE_SEQUENCES = {};
23954
+ loader.loadAll = loadAll2;
23955
+ loader.load = load2;
23956
+ return loader;
23957
+ }
23958
+ var dumper = {};
23959
+ var hasRequiredDumper;
23960
+ function requireDumper() {
23961
+ if (hasRequiredDumper)
23962
+ return dumper;
23963
+ hasRequiredDumper = 1;
23964
+ const common2 = requireCommon();
23965
+ const YAMLException2 = requireException();
23966
+ const DEFAULT_SCHEMA2 = require_default();
23967
+ const _toString = Object.prototype.toString;
23968
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
23969
+ const CHAR_BOM = 65279;
23970
+ const CHAR_TAB = 9;
23971
+ const CHAR_LINE_FEED = 10;
23972
+ const CHAR_CARRIAGE_RETURN = 13;
23973
+ const CHAR_SPACE = 32;
23974
+ const CHAR_EXCLAMATION = 33;
23975
+ const CHAR_DOUBLE_QUOTE = 34;
23976
+ const CHAR_SHARP = 35;
23977
+ const CHAR_PERCENT = 37;
23978
+ const CHAR_AMPERSAND = 38;
23979
+ const CHAR_SINGLE_QUOTE = 39;
23980
+ const CHAR_ASTERISK = 42;
23981
+ const CHAR_COMMA = 44;
23982
+ const CHAR_MINUS = 45;
23983
+ const CHAR_COLON = 58;
23984
+ const CHAR_EQUALS = 61;
23985
+ const CHAR_GREATER_THAN = 62;
23986
+ const CHAR_QUESTION = 63;
23987
+ const CHAR_COMMERCIAL_AT = 64;
23988
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
23989
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
23990
+ const CHAR_GRAVE_ACCENT = 96;
23991
+ const CHAR_LEFT_CURLY_BRACKET = 123;
23992
+ const CHAR_VERTICAL_LINE = 124;
23993
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
23994
+ const ESCAPE_SEQUENCES = {};
23687
23995
  ESCAPE_SEQUENCES[0] = "\\0";
23688
23996
  ESCAPE_SEQUENCES[7] = "\\a";
23689
23997
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -23699,7 +24007,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23699
24007
  ESCAPE_SEQUENCES[160] = "\\_";
23700
24008
  ESCAPE_SEQUENCES[8232] = "\\L";
23701
24009
  ESCAPE_SEQUENCES[8233] = "\\P";
23702
- var DEPRECATED_BOOLEANS_SYNTAX = [
24010
+ const DEPRECATED_BOOLEANS_SYNTAX = [
23703
24011
  "y",
23704
24012
  "Y",
23705
24013
  "yes",
@@ -23717,20 +24025,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23717
24025
  "Off",
23718
24026
  "OFF"
23719
24027
  ];
23720
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
23721
- function compileStyleMap(schema, map) {
23722
- if (map === null)
24028
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
24029
+ function compileStyleMap(schema2, map2) {
24030
+ if (map2 === null)
23723
24031
  return {};
23724
24032
  const result = {};
23725
- const keys = Object.keys(map);
24033
+ const keys = Object.keys(map2);
23726
24034
  for (let index = 0, length = keys.length;index < length; index += 1) {
23727
24035
  let tag = keys[index];
23728
- let style = String(map[tag]);
23729
- if (tag.slice(0, 2) === "!!")
24036
+ let style = String(map2[tag]);
24037
+ if (tag.slice(0, 2) === "!!") {
23730
24038
  tag = "tag:yaml.org,2002:" + tag.slice(2);
23731
- const type = schema.compiledTypeMap["fallback"][tag];
23732
- if (type && _hasOwnProperty.call(type.styleAliases, style))
23733
- style = type.styleAliases[style];
24039
+ }
24040
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
24041
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
24042
+ style = type2.styleAliases[style];
24043
+ }
23734
24044
  result[tag] = style;
23735
24045
  }
23736
24046
  return result;
@@ -23748,18 +24058,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23748
24058
  } else if (character <= 4294967295) {
23749
24059
  handle = "U";
23750
24060
  length = 8;
23751
- } else
23752
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
23753
- return "\\" + handle + common.repeat("0", length - string.length) + string;
24061
+ } else {
24062
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
24063
+ }
24064
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
23754
24065
  }
23755
- var QUOTING_TYPE_SINGLE = 1;
23756
- var QUOTING_TYPE_DOUBLE = 2;
24066
+ const QUOTING_TYPE_SINGLE = 1;
24067
+ const QUOTING_TYPE_DOUBLE = 2;
23757
24068
  function State(options) {
23758
- this.schema = options["schema"] || DEFAULT_SCHEMA;
24069
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
23759
24070
  this.indent = Math.max(1, options["indent"] || 2);
23760
24071
  this.noArrayIndent = options["noArrayIndent"] || false;
23761
24072
  this.skipInvalid = options["skipInvalid"] || false;
23762
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
24073
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
23763
24074
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
23764
24075
  this.sortKeys = options["sortKeys"] || false;
23765
24076
  this.lineWidth = options["lineWidth"] || 80;
@@ -23777,7 +24088,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23777
24088
  this.usedDuplicates = null;
23778
24089
  }
23779
24090
  function indentString(string, spaces) {
23780
- const ind = common.repeat(" ", spaces);
24091
+ const ind = common2.repeat(" ", spaces);
23781
24092
  let position = 0;
23782
24093
  let result = "";
23783
24094
  const length = string.length;
@@ -23801,12 +24112,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23801
24112
  }
23802
24113
  function generateNextLine(state, level) {
23803
24114
  return `
23804
- ` + common.repeat(" ", state.indent * level);
24115
+ ` + common2.repeat(" ", state.indent * level);
23805
24116
  }
23806
- function testImplicitResolving(state, str) {
23807
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
23808
- if (state.implicitTypes[index].resolve(str))
24117
+ function testImplicitResolving(state, str2) {
24118
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
24119
+ const type2 = state.implicitTypes[index];
24120
+ if (type2.resolve(str2)) {
23809
24121
  return true;
24122
+ }
24123
+ }
23810
24124
  return false;
23811
24125
  }
23812
24126
  function isWhitespace(c) {
@@ -23834,19 +24148,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23834
24148
  let second;
23835
24149
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
23836
24150
  second = string.charCodeAt(pos + 1);
23837
- if (second >= 56320 && second <= 57343)
24151
+ if (second >= 56320 && second <= 57343) {
23838
24152
  return (first - 55296) * 1024 + second - 56320 + 65536;
24153
+ }
23839
24154
  }
23840
24155
  return first;
23841
24156
  }
23842
24157
  function needIndentIndicator(string) {
23843
- return /^\n* /.test(string);
23844
- }
23845
- var STYLE_PLAIN = 1;
23846
- var STYLE_SINGLE = 2;
23847
- var STYLE_LITERAL = 3;
23848
- var STYLE_FOLDED = 4;
23849
- var STYLE_DOUBLE = 5;
24158
+ const leadingSpaceRe = /^\n* /;
24159
+ return leadingSpaceRe.test(string);
24160
+ }
24161
+ const STYLE_PLAIN = 1;
24162
+ const STYLE_SINGLE = 2;
24163
+ const STYLE_LITERAL = 3;
24164
+ const STYLE_FOLDED = 4;
24165
+ const STYLE_DOUBLE = 5;
23850
24166
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
23851
24167
  let i;
23852
24168
  let char = 0;
@@ -23856,15 +24172,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23856
24172
  const shouldTrackWidth = lineWidth !== -1;
23857
24173
  let previousLineBreak = -1;
23858
24174
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
23859
- if (singleLineOnly || forceQuotes)
24175
+ if (singleLineOnly || forceQuotes) {
23860
24176
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
23861
24177
  char = codePointAt(string, i);
23862
- if (!isPrintable(char))
24178
+ if (!isPrintable(char)) {
23863
24179
  return STYLE_DOUBLE;
24180
+ }
23864
24181
  plain = plain && isPlainSafe(char, prevChar, inblock);
23865
24182
  prevChar = char;
23866
24183
  }
23867
- else {
24184
+ } else {
23868
24185
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
23869
24186
  char = codePointAt(string, i);
23870
24187
  if (char === CHAR_LINE_FEED) {
@@ -23873,31 +24190,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23873
24190
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
23874
24191
  previousLineBreak = i;
23875
24192
  }
23876
- } else if (!isPrintable(char))
24193
+ } else if (!isPrintable(char)) {
23877
24194
  return STYLE_DOUBLE;
24195
+ }
23878
24196
  plain = plain && isPlainSafe(char, prevChar, inblock);
23879
24197
  prevChar = char;
23880
24198
  }
23881
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
24199
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
23882
24200
  }
23883
24201
  if (!hasLineBreak && !hasFoldableLine) {
23884
- if (plain && !forceQuotes && !testAmbiguousType(string))
24202
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
23885
24203
  return STYLE_PLAIN;
24204
+ }
23886
24205
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
23887
24206
  }
23888
- if (indentPerLevel > 9 && needIndentIndicator(string))
24207
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
23889
24208
  return STYLE_DOUBLE;
23890
- if (!forceQuotes)
24209
+ }
24210
+ if (!forceQuotes) {
23891
24211
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
24212
+ }
23892
24213
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
23893
24214
  }
23894
24215
  function writeScalar(state, string, level, iskey, inblock) {
23895
24216
  state.dump = function() {
23896
- if (string.length === 0)
24217
+ if (string.length === 0) {
23897
24218
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
24219
+ }
23898
24220
  if (!state.noCompatMode) {
23899
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
24221
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
23900
24222
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
24223
+ }
23901
24224
  }
23902
24225
  const indent = state.indent * Math.max(1, level);
23903
24226
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -23915,9 +24238,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23915
24238
  case STYLE_FOLDED:
23916
24239
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
23917
24240
  case STYLE_DOUBLE:
23918
- return '"' + escapeString(string, lineWidth) + '"';
24241
+ return '"' + escapeString(string) + '"';
23919
24242
  default:
23920
- throw new YAMLException("impossible error: invalid scalar style");
24243
+ throw new YAMLException2("impossible error: invalid scalar style");
23921
24244
  }
23922
24245
  }();
23923
24246
  }
@@ -23925,9 +24248,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23925
24248
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
23926
24249
  const clip = string[string.length - 1] === `
23927
24250
  `;
23928
- return indentIndicator + (clip && (string[string.length - 2] === `
24251
+ const keep = clip && (string[string.length - 2] === `
23929
24252
  ` || string === `
23930
- `) ? "+" : clip ? "" : "-") + `
24253
+ `);
24254
+ const chomp = keep ? "+" : clip ? "" : "-";
24255
+ return indentIndicator + chomp + `
23931
24256
  `;
23932
24257
  }
23933
24258
  function dropEndingNewline(string) {
@@ -23979,11 +24304,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23979
24304
  }
23980
24305
  result += `
23981
24306
  `;
23982
- if (line.length - start > width && curr > start)
24307
+ if (line.length - start > width && curr > start) {
23983
24308
  result += line.slice(start, curr) + `
23984
24309
  ` + line.slice(curr + 1);
23985
- else
24310
+ } else {
23986
24311
  result += line.slice(start);
24312
+ }
23987
24313
  return result.slice(1);
23988
24314
  }
23989
24315
  function escapeString(string) {
@@ -23996,8 +24322,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
23996
24322
  result += string[i];
23997
24323
  if (char >= 65536)
23998
24324
  result += string[i + 1];
23999
- } else
24325
+ } else {
24000
24326
  result += escapeSeq || encodeHex(char);
24327
+ }
24001
24328
  }
24002
24329
  return result;
24003
24330
  }
@@ -24006,8 +24333,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24006
24333
  const _tag = state.tag;
24007
24334
  for (let index = 0, length = object.length;index < length; index += 1) {
24008
24335
  let value = object[index];
24009
- if (state.replacer)
24336
+ if (state.replacer) {
24010
24337
  value = state.replacer.call(object, String(index), value);
24338
+ }
24011
24339
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
24012
24340
  if (_result !== "")
24013
24341
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -24022,15 +24350,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24022
24350
  const _tag = state.tag;
24023
24351
  for (let index = 0, length = object.length;index < length; index += 1) {
24024
24352
  let value = object[index];
24025
- if (state.replacer)
24353
+ if (state.replacer) {
24026
24354
  value = state.replacer.call(object, String(index), value);
24355
+ }
24027
24356
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
24028
- if (!compact || _result !== "")
24357
+ if (!compact || _result !== "") {
24029
24358
  _result += generateNextLine(state, level);
24030
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
24359
+ }
24360
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
24031
24361
  _result += "-";
24032
- else
24362
+ } else {
24033
24363
  _result += "- ";
24364
+ }
24034
24365
  _result += state.dump;
24035
24366
  }
24036
24367
  }
@@ -24049,15 +24380,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24049
24380
  pairBuffer += '"';
24050
24381
  const objectKey = objectKeyList[index];
24051
24382
  let objectValue = object[objectKey];
24052
- if (state.replacer)
24383
+ if (state.replacer) {
24053
24384
  objectValue = state.replacer.call(object, objectKey, objectValue);
24054
- if (!writeNode(state, level, objectKey, false, false))
24385
+ }
24386
+ if (!writeNode(state, level, objectKey, false, false)) {
24055
24387
  continue;
24388
+ }
24056
24389
  if (state.dump.length > 1024)
24057
24390
  pairBuffer += "? ";
24058
24391
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
24059
- if (!writeNode(state, level, objectValue, false, false))
24392
+ if (!writeNode(state, level, objectValue, false, false)) {
24060
24393
  continue;
24394
+ }
24061
24395
  pairBuffer += state.dump;
24062
24396
  _result += pairBuffer;
24063
24397
  }
@@ -24068,37 +24402,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24068
24402
  let _result = "";
24069
24403
  const _tag = state.tag;
24070
24404
  const objectKeyList = Object.keys(object);
24071
- if (state.sortKeys === true)
24405
+ if (state.sortKeys === true) {
24072
24406
  objectKeyList.sort();
24073
- else if (typeof state.sortKeys === "function")
24407
+ } else if (typeof state.sortKeys === "function") {
24074
24408
  objectKeyList.sort(state.sortKeys);
24075
- else if (state.sortKeys)
24076
- throw new YAMLException("sortKeys must be a boolean or a function");
24409
+ } else if (state.sortKeys) {
24410
+ throw new YAMLException2("sortKeys must be a boolean or a function");
24411
+ }
24077
24412
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
24078
24413
  let pairBuffer = "";
24079
- if (!compact || _result !== "")
24414
+ if (!compact || _result !== "") {
24080
24415
  pairBuffer += generateNextLine(state, level);
24416
+ }
24081
24417
  const objectKey = objectKeyList[index];
24082
24418
  let objectValue = object[objectKey];
24083
- if (state.replacer)
24419
+ if (state.replacer) {
24084
24420
  objectValue = state.replacer.call(object, objectKey, objectValue);
24085
- if (!writeNode(state, level + 1, objectKey, true, true, true))
24421
+ }
24422
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
24086
24423
  continue;
24424
+ }
24087
24425
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
24088
- if (explicitPair)
24089
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
24426
+ if (explicitPair) {
24427
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
24090
24428
  pairBuffer += "?";
24091
- else
24429
+ } else {
24092
24430
  pairBuffer += "? ";
24431
+ }
24432
+ }
24093
24433
  pairBuffer += state.dump;
24094
- if (explicitPair)
24434
+ if (explicitPair) {
24095
24435
  pairBuffer += generateNextLine(state, level);
24096
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
24436
+ }
24437
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
24097
24438
  continue;
24098
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
24439
+ }
24440
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
24099
24441
  pairBuffer += ":";
24100
- else
24442
+ } else {
24101
24443
  pairBuffer += ": ";
24444
+ }
24102
24445
  pairBuffer += state.dump;
24103
24446
  _result += pairBuffer;
24104
24447
  }
@@ -24108,24 +24451,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24108
24451
  function detectType(state, object, explicit) {
24109
24452
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
24110
24453
  for (let index = 0, length = typeList.length;index < length; index += 1) {
24111
- const type = typeList[index];
24112
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
24113
- if (explicit)
24114
- if (type.multi && type.representName)
24115
- state.tag = type.representName(object);
24116
- else
24117
- state.tag = type.tag;
24118
- else
24454
+ const type2 = typeList[index];
24455
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
24456
+ if (explicit) {
24457
+ if (type2.multi && type2.representName) {
24458
+ state.tag = type2.representName(object);
24459
+ } else {
24460
+ state.tag = type2.tag;
24461
+ }
24462
+ } else {
24119
24463
  state.tag = "?";
24120
- if (type.represent) {
24121
- const style = state.styleMap[type.tag] || type.defaultStyle;
24464
+ }
24465
+ if (type2.represent) {
24466
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
24122
24467
  let _result;
24123
- if (_toString.call(type.represent) === "[object Function]")
24124
- _result = type.represent(object, style);
24125
- else if (_hasOwnProperty.call(type.represent, style))
24126
- _result = type.represent[style](object, style);
24127
- else
24128
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
24468
+ if (_toString.call(type2.represent) === "[object Function]") {
24469
+ _result = type2.represent(object, style);
24470
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
24471
+ _result = type2.represent[style](object, style);
24472
+ } else {
24473
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
24474
+ }
24129
24475
  state.dump = _result;
24130
24476
  }
24131
24477
  return true;
@@ -24136,67 +24482,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24136
24482
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
24137
24483
  state.tag = null;
24138
24484
  state.dump = object;
24139
- if (!detectType(state, object, false))
24485
+ if (!detectType(state, object, false)) {
24140
24486
  detectType(state, object, true);
24141
- const type = _toString.call(state.dump);
24487
+ }
24488
+ const type2 = _toString.call(state.dump);
24142
24489
  const inblock = block;
24143
- if (block)
24490
+ if (block) {
24144
24491
  block = state.flowLevel < 0 || state.flowLevel > level;
24145
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
24492
+ }
24493
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
24146
24494
  let duplicateIndex;
24147
24495
  let duplicate;
24148
24496
  if (objectOrArray) {
24149
24497
  duplicateIndex = state.duplicates.indexOf(object);
24150
24498
  duplicate = duplicateIndex !== -1;
24151
24499
  }
24152
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
24500
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
24153
24501
  compact = false;
24154
- if (duplicate && state.usedDuplicates[duplicateIndex])
24502
+ }
24503
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
24155
24504
  state.dump = "*ref_" + duplicateIndex;
24156
- else {
24157
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
24505
+ } else {
24506
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
24158
24507
  state.usedDuplicates[duplicateIndex] = true;
24159
- if (type === "[object Object]")
24508
+ }
24509
+ if (type2 === "[object Object]") {
24160
24510
  if (block && Object.keys(state.dump).length !== 0) {
24161
24511
  writeBlockMapping(state, level, state.dump, compact);
24162
- if (duplicate)
24512
+ if (duplicate) {
24163
24513
  state.dump = "&ref_" + duplicateIndex + state.dump;
24514
+ }
24164
24515
  } else {
24165
24516
  writeFlowMapping(state, level, state.dump);
24166
- if (duplicate)
24517
+ if (duplicate) {
24167
24518
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
24519
+ }
24168
24520
  }
24169
- else if (type === "[object Array]")
24521
+ } else if (type2 === "[object Array]") {
24170
24522
  if (block && state.dump.length !== 0) {
24171
- if (state.noArrayIndent && !isblockseq && level > 0)
24523
+ if (state.noArrayIndent && !isblockseq && level > 0) {
24172
24524
  writeBlockSequence(state, level - 1, state.dump, compact);
24173
- else
24525
+ } else {
24174
24526
  writeBlockSequence(state, level, state.dump, compact);
24175
- if (duplicate)
24527
+ }
24528
+ if (duplicate) {
24176
24529
  state.dump = "&ref_" + duplicateIndex + state.dump;
24530
+ }
24177
24531
  } else {
24178
24532
  writeFlowSequence(state, level, state.dump);
24179
- if (duplicate)
24533
+ if (duplicate) {
24180
24534
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
24535
+ }
24181
24536
  }
24182
- else if (type === "[object String]") {
24183
- if (state.tag !== "?")
24537
+ } else if (type2 === "[object String]") {
24538
+ if (state.tag !== "?") {
24184
24539
  writeScalar(state, state.dump, level, iskey, inblock);
24185
- } else if (type === "[object Undefined]")
24540
+ }
24541
+ } else if (type2 === "[object Undefined]") {
24186
24542
  return false;
24187
- else {
24543
+ } else {
24188
24544
  if (state.skipInvalid)
24189
24545
  return false;
24190
- throw new YAMLException("unacceptable kind of an object to dump " + type);
24546
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
24191
24547
  }
24192
24548
  if (state.tag !== null && state.tag !== "?") {
24193
24549
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
24194
- if (state.tag[0] === "!")
24550
+ if (state.tag[0] === "!") {
24195
24551
  tagStr = "!" + tagStr;
24196
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
24552
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
24197
24553
  tagStr = "!!" + tagStr.slice(18);
24198
- else
24554
+ } else {
24199
24555
  tagStr = "!<" + tagStr + ">";
24556
+ }
24200
24557
  state.dump = tagStr + " " + state.dump;
24201
24558
  }
24202
24559
  }
@@ -24207,83 +24564,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
24207
24564
  const duplicatesIndexes = [];
24208
24565
  inspectNode(object, objects, duplicatesIndexes);
24209
24566
  const length = duplicatesIndexes.length;
24210
- for (let index = 0;index < length; index += 1)
24567
+ for (let index = 0;index < length; index += 1) {
24211
24568
  state.duplicates.push(objects[duplicatesIndexes[index]]);
24569
+ }
24212
24570
  state.usedDuplicates = new Array(length);
24213
24571
  }
24214
24572
  function inspectNode(object, objects, duplicatesIndexes) {
24215
24573
  if (object !== null && typeof object === "object") {
24216
24574
  const index = objects.indexOf(object);
24217
24575
  if (index !== -1) {
24218
- if (duplicatesIndexes.indexOf(index) === -1)
24576
+ if (duplicatesIndexes.indexOf(index) === -1) {
24219
24577
  duplicatesIndexes.push(index);
24578
+ }
24220
24579
  } else {
24221
24580
  objects.push(object);
24222
- if (Array.isArray(object))
24223
- for (let i = 0, length = object.length;i < length; i += 1)
24581
+ if (Array.isArray(object)) {
24582
+ for (let i = 0, length = object.length;i < length; i += 1) {
24224
24583
  inspectNode(object[i], objects, duplicatesIndexes);
24225
- else {
24584
+ }
24585
+ } else {
24226
24586
  const objectKeyList = Object.keys(object);
24227
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
24587
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
24228
24588
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
24589
+ }
24229
24590
  }
24230
24591
  }
24231
24592
  }
24232
24593
  }
24233
- function dump(input, options) {
24594
+ function dump2(input, options) {
24234
24595
  options = options || {};
24235
24596
  const state = new State(options);
24236
24597
  if (!state.noRefs)
24237
24598
  getDuplicateReferences(input, state);
24238
24599
  let value = input;
24239
- if (state.replacer)
24600
+ if (state.replacer) {
24240
24601
  value = state.replacer.call({ "": value }, "", value);
24602
+ }
24241
24603
  if (writeNode(state, 0, value, true, true))
24242
24604
  return state.dump + `
24243
24605
  `;
24244
24606
  return "";
24245
24607
  }
24246
- module.exports.dump = dump;
24247
- });
24248
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
24249
- var loader = require_loader();
24250
- var dumper = require_dumper();
24608
+ dumper.dump = dump2;
24609
+ return dumper;
24610
+ }
24611
+ var hasRequiredJsYaml;
24612
+ function requireJsYaml() {
24613
+ if (hasRequiredJsYaml)
24614
+ return jsYaml;
24615
+ hasRequiredJsYaml = 1;
24616
+ const loader2 = requireLoader();
24617
+ const dumper2 = requireDumper();
24251
24618
  function renamed(from, to) {
24252
24619
  return function() {
24253
24620
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
24254
24621
  };
24255
24622
  }
24256
- module.exports.Type = require_type();
24257
- module.exports.Schema = require_schema();
24258
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
24259
- module.exports.JSON_SCHEMA = require_json();
24260
- module.exports.CORE_SCHEMA = require_core();
24261
- module.exports.DEFAULT_SCHEMA = require_default();
24262
- module.exports.load = loader.load;
24263
- module.exports.loadAll = loader.loadAll;
24264
- module.exports.dump = dumper.dump;
24265
- module.exports.YAMLException = require_exception();
24266
- module.exports.types = {
24267
- binary: require_binary(),
24268
- float: require_float(),
24269
- map: require_map(),
24623
+ jsYaml.Type = requireType();
24624
+ jsYaml.Schema = requireSchema();
24625
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
24626
+ jsYaml.JSON_SCHEMA = requireJson();
24627
+ jsYaml.CORE_SCHEMA = requireCore();
24628
+ jsYaml.DEFAULT_SCHEMA = require_default();
24629
+ jsYaml.load = loader2.load;
24630
+ jsYaml.loadAll = loader2.loadAll;
24631
+ jsYaml.dump = dumper2.dump;
24632
+ jsYaml.YAMLException = requireException();
24633
+ jsYaml.types = {
24634
+ binary: requireBinary(),
24635
+ float: requireFloat(),
24636
+ map: requireMap(),
24270
24637
  null: require_null(),
24271
- pairs: require_pairs(),
24272
- set: require_set(),
24273
- timestamp: require_timestamp(),
24274
- bool: require_bool(),
24275
- int: require_int(),
24276
- merge: require_merge(),
24277
- omap: require_omap(),
24278
- seq: require_seq(),
24279
- str: require_str()
24638
+ pairs: requirePairs(),
24639
+ set: requireSet(),
24640
+ timestamp: requireTimestamp(),
24641
+ bool: requireBool(),
24642
+ int: requireInt(),
24643
+ merge: requireMerge(),
24644
+ omap: requireOmap(),
24645
+ seq: requireSeq(),
24646
+ str: requireStr()
24280
24647
  };
24281
- module.exports.safeLoad = renamed("safeLoad", "load");
24282
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
24283
- module.exports.safeDump = renamed("safeDump", "dump");
24284
- }))(), 1);
24285
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
24286
- var index_vite_proxy_tmp_default = import_js_yaml.default;
24648
+ jsYaml.safeLoad = renamed("safeLoad", "load");
24649
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
24650
+ jsYaml.safeDump = renamed("safeDump", "dump");
24651
+ return jsYaml;
24652
+ }
24653
+ var jsYamlExports = requireJsYaml();
24654
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
24655
+ var {
24656
+ Type,
24657
+ Schema,
24658
+ FAILSAFE_SCHEMA,
24659
+ JSON_SCHEMA,
24660
+ CORE_SCHEMA,
24661
+ DEFAULT_SCHEMA,
24662
+ load,
24663
+ loadAll,
24664
+ dump,
24665
+ YAMLException,
24666
+ types,
24667
+ safeLoad,
24668
+ safeLoadAll,
24669
+ safeDump
24670
+ } = yaml;
24287
24671
 
24288
24672
  // ../../common/src/logger.ts
24289
24673
  init_src();
@@ -24360,11 +24744,11 @@ class SimpleLogger {
24360
24744
  const path3 = this.logFilePath || getGlobalLogFilePath();
24361
24745
  if (!path3)
24362
24746
  return;
24363
- const timestamp = new Date().toISOString();
24747
+ const timestamp2 = new Date().toISOString();
24364
24748
  this.pendingWrites = Promise.all([
24365
24749
  this.pendingWrites,
24366
24750
  this.pendingInit
24367
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
24751
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
24368
24752
  }
24369
24753
  debug(message, ...args) {
24370
24754
  if (this.level > 0 /* DEBUG */)
@@ -24480,6 +24864,7 @@ function getLogFilePath() {
24480
24864
  // ../../common/src/output-format-context.ts
24481
24865
  var formatSlot = singleton("OutputFormat");
24482
24866
  var formatExplicitSlot = singleton("OutputFormatExplicit");
24867
+ var helpRequestedSlot = singleton("HelpRequested");
24483
24868
  var filterSlot = singleton("OutputFilter");
24484
24869
  function getOutputFormat() {
24485
24870
  return formatSlot.get("json");
@@ -24757,10 +25142,10 @@ class LoggerTelemetryProvider {
24757
25142
  success
24758
25143
  })));
24759
25144
  }
24760
- async trackDependency(name, type, duration, success, properties) {
25145
+ async trackDependency(name, type2, duration, success, properties) {
24761
25146
  logger.debug(formatMessage("Dependency", name, this.enrich({
24762
25147
  ...properties,
24763
- type,
25148
+ type: type2,
24764
25149
  duration: `${duration}ms`,
24765
25150
  success
24766
25151
  })));
@@ -24918,11 +25303,36 @@ class NodeContextStorage {
24918
25303
  return this.storage.getStore();
24919
25304
  }
24920
25305
  }
25306
+ // ../../common/src/telemetry/trace-context.ts
25307
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
25308
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
25309
+ function getProcessEnv() {
25310
+ return globalThis.process?.env;
25311
+ }
25312
+ function parseInboundTraceparent(value) {
25313
+ if (!value) {
25314
+ return;
25315
+ }
25316
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
25317
+ if (!match) {
25318
+ return;
25319
+ }
25320
+ const [, traceId, parentSpanId] = match;
25321
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
25322
+ return;
25323
+ }
25324
+ return { traceId, parentSpanId };
25325
+ }
25326
+ function getInboundTraceContext() {
25327
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
25328
+ }
25329
+
24921
25330
  // ../../common/src/telemetry/session-id.ts
24922
25331
  var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
24923
25332
  var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
24924
25333
  var telemetrySessionIdSlot = singleton("TelemetrySessionId");
24925
- function getProcessEnv() {
25334
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
25335
+ function getProcessEnv2() {
24926
25336
  return globalThis.process?.env;
24927
25337
  }
24928
25338
  function normalizeSessionId(value) {
@@ -24933,18 +25343,165 @@ function normalizeSessionId(value) {
24933
25343
  return trimmed || undefined;
24934
25344
  }
24935
25345
  function getConfiguredTelemetrySessionId() {
24936
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
25346
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
24937
25347
  }
24938
25348
  function resolveTelemetrySessionId(existingSessionId) {
24939
25349
  return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
24940
25350
  }
25351
+ function getTelemetryOperationId() {
25352
+ const existing = telemetryOperationIdSlot.get();
25353
+ if (existing) {
25354
+ return existing;
25355
+ }
25356
+ const inboundTraceId = getInboundTraceContext()?.traceId;
25357
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
25358
+ telemetryOperationIdSlot.set(generated);
25359
+ return generated;
25360
+ }
24941
25361
  // ../../common/src/telemetry/global-telemetry-properties.ts
24942
25362
  var telemetryPropsSlot = singleton("TelemetryDefaultProps");
24943
25363
  function getGlobalTelemetryProperties() {
24944
25364
  return telemetryPropsSlot.get();
24945
25365
  }
24946
25366
 
25367
+ // ../../common/src/telemetry/pii-redactor.ts
25368
+ var REDACTED = "[REDACTED]";
25369
+ var MAX_VALUE_LENGTH = 200;
25370
+ var SENSITIVE_NAME_TOKENS = new Set([
25371
+ "token",
25372
+ "tokens",
25373
+ "secret",
25374
+ "secrets",
25375
+ "password",
25376
+ "passwords",
25377
+ "pwd",
25378
+ "credential",
25379
+ "credentials",
25380
+ "auth",
25381
+ "authentication",
25382
+ "authorization",
25383
+ "authority",
25384
+ "cert",
25385
+ "certificate",
25386
+ "certificates"
25387
+ ]);
25388
+ var SENSITIVE_KEY_PREFIXES = new Set([
25389
+ "api",
25390
+ "access",
25391
+ "client",
25392
+ "private",
25393
+ "public",
25394
+ "signing",
25395
+ "encryption",
25396
+ "session",
25397
+ "master",
25398
+ "shared",
25399
+ "root",
25400
+ "ssh",
25401
+ "rsa",
25402
+ "aes",
25403
+ "hmac",
25404
+ "oauth"
25405
+ ]);
25406
+ 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;
25407
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
25408
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
25409
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
25410
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
25411
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
25412
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
25413
+ function shortHash(input) {
25414
+ let hash = 2166136261;
25415
+ for (let i = 0;i < input.length; i++) {
25416
+ hash ^= input.charCodeAt(i);
25417
+ hash = Math.imul(hash, 16777619);
25418
+ }
25419
+ return (hash >>> 0).toString(16).padStart(8, "0");
25420
+ }
25421
+ function redactUrl(raw) {
25422
+ try {
25423
+ const url = new URL(raw);
25424
+ return `${url.protocol}//${url.host}`;
25425
+ } catch {
25426
+ return `url#${shortHash(raw)}`;
25427
+ }
25428
+ }
25429
+ function redactValueDetectors(value) {
25430
+ let out = value;
25431
+ out = out.replace(JWT_PATTERN, () => REDACTED);
25432
+ out = out.replace(URL_PATTERN, (match) => {
25433
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
25434
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
25435
+ return `${redactUrl(core2)}${trailing}`;
25436
+ });
25437
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
25438
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
25439
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
25440
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
25441
+ if (out.length > MAX_VALUE_LENGTH) {
25442
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
25443
+ }
25444
+ return out;
25445
+ }
25446
+ function redactValue(value) {
25447
+ return redactValueDetectors(value);
25448
+ }
25449
+ function redactError(error) {
25450
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
25451
+ safe.name = error.name;
25452
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
25453
+ return safe;
25454
+ }
25455
+ function nameTokens(name) {
25456
+ 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);
25457
+ }
25458
+ function isSensitiveName(name) {
25459
+ const tokens = nameTokens(name);
25460
+ for (let i = 0;i < tokens.length; i++) {
25461
+ const token = tokens[i];
25462
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
25463
+ return true;
25464
+ }
25465
+ if (token === "key" || token === "keys") {
25466
+ const prev = tokens[i - 1];
25467
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
25468
+ return true;
25469
+ }
25470
+ }
25471
+ }
25472
+ return false;
25473
+ }
25474
+ function redactProperty(name, value) {
25475
+ if (value === undefined || value === null) {
25476
+ return;
25477
+ }
25478
+ if (isSensitiveName(name)) {
25479
+ return REDACTED;
25480
+ }
25481
+ if (typeof value === "boolean" || typeof value === "number") {
25482
+ return value;
25483
+ }
25484
+ if (typeof value !== "string") {
25485
+ return "[OBJECT]";
25486
+ }
25487
+ return redactValueDetectors(value);
25488
+ }
25489
+ function redactProperties(properties) {
25490
+ const out = {};
25491
+ for (const [name, value] of Object.entries(properties)) {
25492
+ const redacted = redactProperty(name, value);
25493
+ if (redacted !== undefined) {
25494
+ out[name] = redacted;
25495
+ }
25496
+ }
25497
+ return out;
25498
+ }
25499
+
24947
25500
  // ../../common/src/telemetry/telemetry-service.ts
25501
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
25502
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
25503
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
25504
+
24948
25505
  class TelemetryService {
24949
25506
  telemetryProvider;
24950
25507
  contextStorage;
@@ -24971,11 +25528,15 @@ class TelemetryService {
24971
25528
  trackException(error, properties) {
24972
25529
  const context = this.getCurrentContext();
24973
25530
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
24974
- this.telemetryProvider.trackException(error, enrichedProperties);
25531
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
24975
25532
  }
24976
25533
  async trackRequest(name, fn, properties) {
25534
+ const parentContext = this.getCurrentContext();
25535
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
25536
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
24977
25537
  const context = {
24978
- operationId: this.operationId ?? this.generateId(),
25538
+ operationId,
25539
+ ...parentId !== undefined ? { parentId } : {},
24979
25540
  id: this.generateId()
24980
25541
  };
24981
25542
  const startTime = performance.now();
@@ -24993,7 +25554,46 @@ class TelemetryService {
24993
25554
  throw error;
24994
25555
  }
24995
25556
  }
24996
- async trackDependencyOperation(name, type, fn, properties) {
25557
+ trackRequestResult(name, durationMs, success, properties, context) {
25558
+ const requestContext = context ?? {
25559
+ operationId: this.operationId ?? getTelemetryOperationId(),
25560
+ id: this.generateId()
25561
+ };
25562
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
25563
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
25564
+ }
25565
+ createRequestContext() {
25566
+ const operationId = this.operationId ?? getTelemetryOperationId();
25567
+ const parentId = this.inboundParentIdFor(operationId);
25568
+ return {
25569
+ operationId,
25570
+ ...parentId !== undefined ? { parentId } : {},
25571
+ id: this.generateId()
25572
+ };
25573
+ }
25574
+ inboundParentIdFor(operationId) {
25575
+ const inbound = getInboundTraceContext();
25576
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
25577
+ }
25578
+ runWithContext(context, fn) {
25579
+ return this.contextStorage.run(context, fn);
25580
+ }
25581
+ createDependencyContext() {
25582
+ const parentContext = this.getCurrentContext();
25583
+ if (!parentContext) {
25584
+ return;
25585
+ }
25586
+ return {
25587
+ operationId: parentContext.operationId,
25588
+ parentId: parentContext.id,
25589
+ id: this.generateId()
25590
+ };
25591
+ }
25592
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
25593
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
25594
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
25595
+ }
25596
+ async trackDependencyOperation(name, type2, fn, properties) {
24997
25597
  const parentContext = this.getCurrentContext();
24998
25598
  if (!parentContext) {
24999
25599
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -25008,13 +25608,13 @@ class TelemetryService {
25008
25608
  const result = await this.contextStorage.run(childContext, fn);
25009
25609
  const durationMs = performance.now() - startTime;
25010
25610
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
25011
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
25611
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
25012
25612
  return result;
25013
25613
  } catch (error) {
25014
25614
  const durationMs = performance.now() - startTime;
25015
25615
  const err = error instanceof Error ? error : new Error(String(error));
25016
25616
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
25017
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
25617
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
25018
25618
  throw error;
25019
25619
  }
25020
25620
  }
@@ -25029,8 +25629,12 @@ class TelemetryService {
25029
25629
  ...getExecutionContextTelemetryProperties(),
25030
25630
  ...globalProperties,
25031
25631
  ...this.defaultProperties,
25032
- ...properties,
25033
- ...context
25632
+ ...redactProperties(properties ?? {}),
25633
+ ...context ? {
25634
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
25635
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
25636
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
25637
+ } : {}
25034
25638
  };
25035
25639
  if (sessionId === undefined) {
25036
25640
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -25040,7 +25644,16 @@ class TelemetryService {
25040
25644
  return enriched;
25041
25645
  }
25042
25646
  generateId() {
25043
- return crypto.randomUUID().replaceAll("-", "");
25647
+ const bytes = new Uint8Array(8);
25648
+ let hex = "";
25649
+ do {
25650
+ crypto.getRandomValues(bytes);
25651
+ hex = "";
25652
+ for (const byte of bytes) {
25653
+ hex += byte.toString(16).padStart(2, "0");
25654
+ }
25655
+ } while (/^0+$/.test(hex));
25656
+ return hex;
25044
25657
  }
25045
25658
  }
25046
25659
  // ../../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -25221,8 +25834,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
25221
25834
  }
25222
25835
  switch (format) {
25223
25836
  case "json": {
25224
- const json = JSON.stringify(data, null, 2);
25225
- logFn(asciiSafe ? escapeNonAscii(json) : json);
25837
+ const json2 = JSON.stringify(data, null, 2);
25838
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
25226
25839
  break;
25227
25840
  }
25228
25841
  case "yaml":
@@ -25547,6 +26160,9 @@ var OutputFormatter;
25547
26160
  if (opts?.warning) {
25548
26161
  data.Warning = opts.warning;
25549
26162
  }
26163
+ if (opts?.pagination) {
26164
+ data.Pagination = opts.pagination;
26165
+ }
25550
26166
  success(data);
25551
26167
  }
25552
26168
  OutputFormatter.emitList = emitList;
@@ -25555,8 +26171,8 @@ var OutputFormatter;
25555
26171
  const sink = getOutputSink();
25556
26172
  const normalized = toPascalCaseData(data);
25557
26173
  if (format === "json") {
25558
- const json = JSON.stringify(normalized);
25559
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
26174
+ const json2 = JSON.stringify(normalized);
26175
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
25560
26176
  sink.writeErr(`${safe}
25561
26177
  `);
25562
26178
  } else {
@@ -25742,134 +26358,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
25742
26358
  };
25743
26359
  }
25744
26360
 
25745
- // ../../common/src/telemetry/pii-redactor.ts
25746
- var REDACTED = "[REDACTED]";
25747
- var MAX_VALUE_LENGTH = 200;
25748
- var SENSITIVE_NAME_TOKENS = new Set([
25749
- "token",
25750
- "tokens",
25751
- "secret",
25752
- "secrets",
25753
- "password",
25754
- "passwords",
25755
- "pwd",
25756
- "credential",
25757
- "credentials",
25758
- "auth",
25759
- "authentication",
25760
- "authorization",
25761
- "authority",
25762
- "cert",
25763
- "certificate",
25764
- "certificates"
25765
- ]);
25766
- var SENSITIVE_KEY_PREFIXES = new Set([
25767
- "api",
25768
- "access",
25769
- "client",
25770
- "private",
25771
- "public",
25772
- "signing",
25773
- "encryption",
25774
- "session",
25775
- "master",
25776
- "shared",
25777
- "root",
25778
- "ssh",
25779
- "rsa",
25780
- "aes",
25781
- "hmac",
25782
- "oauth"
25783
- ]);
25784
- 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;
25785
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
25786
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
25787
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
25788
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
25789
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
25790
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
25791
- function shortHash(input) {
25792
- let hash = 2166136261;
25793
- for (let i = 0;i < input.length; i++) {
25794
- hash ^= input.charCodeAt(i);
25795
- hash = Math.imul(hash, 16777619);
25796
- }
25797
- return (hash >>> 0).toString(16).padStart(8, "0");
25798
- }
25799
- function redactUrl(raw) {
25800
- try {
25801
- const url = new URL(raw);
25802
- return `${url.protocol}//${url.host}`;
25803
- } catch {
25804
- return `url#${shortHash(raw)}`;
25805
- }
25806
- }
25807
- function redactValueDetectors(value) {
25808
- let out = value;
25809
- out = out.replace(JWT_PATTERN, () => REDACTED);
25810
- out = out.replace(URL_PATTERN, (match) => {
25811
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
25812
- const core = trailing ? match.slice(0, -trailing.length) : match;
25813
- return `${redactUrl(core)}${trailing}`;
25814
- });
25815
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
25816
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
25817
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
25818
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
25819
- if (out.length > MAX_VALUE_LENGTH) {
25820
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
25821
- }
25822
- return out;
25823
- }
25824
- function nameTokens(name) {
25825
- 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);
25826
- }
25827
- function isSensitiveName(name) {
25828
- const tokens = nameTokens(name);
25829
- for (let i = 0;i < tokens.length; i++) {
25830
- const token = tokens[i];
25831
- if (SENSITIVE_NAME_TOKENS.has(token)) {
25832
- return true;
25833
- }
25834
- if (token === "key" || token === "keys") {
25835
- const prev = tokens[i - 1];
25836
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
25837
- return true;
25838
- }
25839
- }
25840
- }
25841
- return false;
25842
- }
25843
- function redactProperty(name, value) {
25844
- if (value === undefined || value === null) {
25845
- return;
25846
- }
25847
- if (isSensitiveName(name)) {
25848
- return REDACTED;
25849
- }
25850
- if (typeof value === "boolean" || typeof value === "number") {
25851
- return value;
25852
- }
25853
- if (typeof value !== "string") {
25854
- return "[OBJECT]";
25855
- }
25856
- return redactValueDetectors(value);
25857
- }
25858
- function redactProperties(properties) {
25859
- const out = {};
25860
- for (const [name, value] of Object.entries(properties)) {
25861
- const redacted = redactProperty(name, value);
25862
- if (redacted !== undefined) {
25863
- out[name] = redacted;
25864
- }
25865
- }
25866
- return out;
25867
- }
25868
-
25869
26361
  // ../../common/src/trackedAction.ts
25870
26362
  var pollSignalSlot = singleton("PollSignal");
25871
26363
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
25872
26364
  var retryHintValues = new Set(RETRY_HINTS);
26365
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
25873
26366
  var processContext = {
25874
26367
  exit: (code) => {
25875
26368
  process.exitCode = code;
@@ -25880,22 +26373,18 @@ var processContext = {
25880
26373
  };
25881
26374
  function extractCommandParams(cmd) {
25882
26375
  const params = {};
26376
+ const add2 = (name, value) => {
26377
+ if (name && value !== undefined) {
26378
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
26379
+ }
26380
+ };
25883
26381
  const registered = cmd.registeredArguments ?? [];
25884
26382
  const processed = cmd.processedArgs ?? [];
25885
26383
  for (let i = 0;i < registered.length; i++) {
25886
- const value = processed[i];
25887
- if (value === undefined) {
25888
- continue;
25889
- }
25890
- const name = registered[i].name();
25891
- if (name) {
25892
- params[name] = value;
25893
- }
26384
+ add2(registered[i].name(), processed[i]);
25894
26385
  }
25895
26386
  for (const [key, value] of Object.entries(cmd.opts())) {
25896
- if (value !== undefined) {
25897
- params[key] = value;
25898
- }
26387
+ add2(key, value);
25899
26388
  }
25900
26389
  return params;
25901
26390
  }
@@ -25938,11 +26427,12 @@ Command2.prototype.trackedAction = function(context, fn, properties) {
25938
26427
  return this.action(async (...args) => {
25939
26428
  const telemetryName = deriveCommandPath(command);
25940
26429
  const props = typeof properties === "function" ? properties(...args) : properties;
26430
+ const requestContext = telemetry.createRequestContext();
25941
26431
  const startTime = performance.now();
25942
26432
  let errorMessage;
25943
26433
  let fallbackExitCode = EXIT_CODES.Success;
25944
26434
  clearRecordedCommandFailureTelemetry();
25945
- const [error] = await catchError(fn(...args));
26435
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
25946
26436
  if (error) {
25947
26437
  errorMessage = error instanceof Error ? error.message : String(error);
25948
26438
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -25978,16 +26468,21 @@ Command2.prototype.trackedAction = function(context, fn, properties) {
25978
26468
  recordedFailure,
25979
26469
  pollSignal: context.pollSignal
25980
26470
  });
25981
- telemetry.trackEvent(telemetryName, redactProperties({
25982
- ...extractCommandParams(command),
26471
+ const commandParams = extractCommandParams(command);
26472
+ if (props) {
26473
+ for (const key of Object.keys(props)) {
26474
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
26475
+ }
26476
+ }
26477
+ const baseProperties = redactProperties({
26478
+ ...commandParams,
25983
26479
  ...props,
25984
26480
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
25985
26481
  command: "true",
25986
- duration: String(durationMs),
25987
- success: String(success),
25988
26482
  ...terminalTelemetry,
25989
26483
  ...errorMessage ? { errorMessage } : {}
25990
- }));
26484
+ });
26485
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
25991
26486
  });
25992
26487
  };
25993
26488
  // ../../common/src/console-guard.ts
@@ -25998,6 +26493,7 @@ var DEFAULT_PAGE_SIZE = 50;
25998
26493
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
25999
26494
  // ../../common/src/interactivity-context.ts
26000
26495
  var modeSlot = singleton("InteractivityMode");
26496
+ var interactiveFlagSlot = singleton("InteractiveFlag");
26001
26497
  // ../../common/src/option-aliases.ts
26002
26498
  import { Option } from "commander";
26003
26499
  function resolveDeprecatedOptionAlias({
@@ -26427,7 +26923,7 @@ class VoidApiResponse {
26427
26923
  var package_default2 = {
26428
26924
  name: "@uipath/resourcecatalog-sdk",
26429
26925
  license: "MIT",
26430
- version: "1.197.0",
26926
+ version: "1.198.0",
26431
26927
  description: "SDK for the UiPath Resource Catalog Service API.",
26432
26928
  repository: {
26433
26929
  type: "git",
@@ -26475,11 +26971,11 @@ var SDK_USER_AGENT = getSdkUserAgentToken(package_default2);
26475
26971
  installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
26476
26972
 
26477
26973
  // ../resourcecatalog-sdk/generated/src/models/EntitySearchState.ts
26478
- function EntitySearchStateFromJSON(json) {
26479
- return EntitySearchStateFromJSONTyped(json, false);
26974
+ function EntitySearchStateFromJSON(json2) {
26975
+ return EntitySearchStateFromJSONTyped(json2, false);
26480
26976
  }
26481
- function EntitySearchStateFromJSONTyped(json, ignoreDiscriminator) {
26482
- return json;
26977
+ function EntitySearchStateFromJSONTyped(json2, ignoreDiscriminator) {
26978
+ return json2;
26483
26979
  }
26484
26980
 
26485
26981
  // ../resourcecatalog-sdk/generated/src/models/TagType.ts
@@ -26487,193 +26983,193 @@ var TagType = {
26487
26983
  Label: "Label",
26488
26984
  KeyValue: "KeyValue"
26489
26985
  };
26490
- function TagTypeFromJSON(json) {
26491
- return TagTypeFromJSONTyped(json, false);
26986
+ function TagTypeFromJSON(json2) {
26987
+ return TagTypeFromJSONTyped(json2, false);
26492
26988
  }
26493
- function TagTypeFromJSONTyped(json, ignoreDiscriminator) {
26494
- return json;
26989
+ function TagTypeFromJSONTyped(json2, ignoreDiscriminator) {
26990
+ return json2;
26495
26991
  }
26496
26992
  function TagTypeToJSON(value) {
26497
26993
  return value;
26498
26994
  }
26499
26995
 
26500
26996
  // ../resourcecatalog-sdk/generated/src/models/TagModel.ts
26501
- function TagModelFromJSON(json) {
26502
- return TagModelFromJSONTyped(json, false);
26997
+ function TagModelFromJSON(json2) {
26998
+ return TagModelFromJSONTyped(json2, false);
26503
26999
  }
26504
- function TagModelFromJSONTyped(json, ignoreDiscriminator) {
26505
- if (json == null) {
26506
- return json;
27000
+ function TagModelFromJSONTyped(json2, ignoreDiscriminator) {
27001
+ if (json2 == null) {
27002
+ return json2;
26507
27003
  }
26508
27004
  return {
26509
- key: json["key"] == null ? undefined : json["key"],
26510
- displayName: json["displayName"] == null ? undefined : json["displayName"],
26511
- name: json["name"] == null ? undefined : json["name"],
26512
- displayValue: json["displayValue"] == null ? undefined : json["displayValue"],
26513
- value: json["value"] == null ? undefined : json["value"],
26514
- type: json["type"] == null ? undefined : TagTypeFromJSON(json["type"]),
26515
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
26516
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
26517
- userKey: json["userKey"] == null ? undefined : json["userKey"]
27005
+ key: json2["key"] == null ? undefined : json2["key"],
27006
+ displayName: json2["displayName"] == null ? undefined : json2["displayName"],
27007
+ name: json2["name"] == null ? undefined : json2["name"],
27008
+ displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
27009
+ value: json2["value"] == null ? undefined : json2["value"],
27010
+ type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
27011
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
27012
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
27013
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"]
26518
27014
  };
26519
27015
  }
26520
27016
 
26521
27017
  // ../resourcecatalog-sdk/generated/src/models/EntityScope.ts
26522
- function EntityScopeFromJSON(json) {
26523
- return EntityScopeFromJSONTyped(json, false);
27018
+ function EntityScopeFromJSON(json2) {
27019
+ return EntityScopeFromJSONTyped(json2, false);
26524
27020
  }
26525
- function EntityScopeFromJSONTyped(json, ignoreDiscriminator) {
26526
- return json;
27021
+ function EntityScopeFromJSONTyped(json2, ignoreDiscriminator) {
27022
+ return json2;
26527
27023
  }
26528
27024
 
26529
27025
  // ../resourcecatalog-sdk/generated/src/models/FolderType.ts
26530
- function FolderTypeFromJSON(json) {
26531
- return FolderTypeFromJSONTyped(json, false);
27026
+ function FolderTypeFromJSON(json2) {
27027
+ return FolderTypeFromJSONTyped(json2, false);
26532
27028
  }
26533
- function FolderTypeFromJSONTyped(json, ignoreDiscriminator) {
26534
- return json;
27029
+ function FolderTypeFromJSONTyped(json2, ignoreDiscriminator) {
27030
+ return json2;
26535
27031
  }
26536
27032
 
26537
27033
  // ../resourcecatalog-sdk/generated/src/models/FolderModel.ts
26538
- function FolderModelFromJSON(json) {
26539
- return FolderModelFromJSONTyped(json, false);
27034
+ function FolderModelFromJSON(json2) {
27035
+ return FolderModelFromJSONTyped(json2, false);
26540
27036
  }
26541
- function FolderModelFromJSONTyped(json, ignoreDiscriminator) {
26542
- if (json == null) {
26543
- return json;
27037
+ function FolderModelFromJSONTyped(json2, ignoreDiscriminator) {
27038
+ if (json2 == null) {
27039
+ return json2;
26544
27040
  }
26545
27041
  return {
26546
- id: json["id"] == null ? undefined : json["id"],
26547
- key: json["key"] == null ? undefined : json["key"],
26548
- displayName: json["displayName"] == null ? undefined : json["displayName"],
26549
- code: json["code"] == null ? undefined : json["code"],
26550
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
26551
- timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"]),
26552
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
26553
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
26554
- userKey: json["userKey"] == null ? undefined : json["userKey"],
26555
- type: json["type"] == null ? undefined : FolderTypeFromJSON(json["type"]),
26556
- path: json["path"] == null ? undefined : json["path"],
26557
- permissions: json["permissions"] == null ? undefined : json["permissions"]
27042
+ id: json2["id"] == null ? undefined : json2["id"],
27043
+ key: json2["key"] == null ? undefined : json2["key"],
27044
+ displayName: json2["displayName"] == null ? undefined : json2["displayName"],
27045
+ code: json2["code"] == null ? undefined : json2["code"],
27046
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
27047
+ timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
27048
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
27049
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
27050
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
27051
+ type: json2["type"] == null ? undefined : FolderTypeFromJSON(json2["type"]),
27052
+ path: json2["path"] == null ? undefined : json2["path"],
27053
+ permissions: json2["permissions"] == null ? undefined : json2["permissions"]
26558
27054
  };
26559
27055
  }
26560
27056
 
26561
27057
  // ../resourcecatalog-sdk/generated/src/models/EntityModel.ts
26562
- function EntityModelFromJSON(json) {
26563
- return EntityModelFromJSONTyped(json, false);
27058
+ function EntityModelFromJSON(json2) {
27059
+ return EntityModelFromJSONTyped(json2, false);
26564
27060
  }
26565
- function EntityModelFromJSONTyped(json, ignoreDiscriminator) {
26566
- if (json == null) {
26567
- return json;
27061
+ function EntityModelFromJSONTyped(json2, ignoreDiscriminator) {
27062
+ if (json2 == null) {
27063
+ return json2;
26568
27064
  }
26569
27065
  return {
26570
- entityKey: json["entityKey"] == null ? undefined : json["entityKey"],
26571
- name: json["name"] == null ? undefined : json["name"],
26572
- description: json["description"] == null ? undefined : json["description"],
26573
- entityType: json["entityType"] == null ? undefined : json["entityType"],
26574
- tags: json["tags"] == null ? undefined : json["tags"].map(TagModelFromJSON),
26575
- folders: json["folders"] == null ? undefined : json["folders"].map(FolderModelFromJSON),
26576
- linkedFoldersCount: json["linkedFoldersCount"] == null ? undefined : json["linkedFoldersCount"],
26577
- source: json["source"] == null ? undefined : json["source"],
26578
- scope: json["scope"] == null ? undefined : EntityScopeFromJSON(json["scope"]),
26579
- searchState: json["searchState"] == null ? undefined : EntitySearchStateFromJSON(json["searchState"]),
26580
- timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"]),
26581
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
26582
- folderKeys: json["folderKeys"] == null ? undefined : json["folderKeys"],
26583
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
26584
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
26585
- userKey: json["userKey"] == null ? undefined : json["userKey"],
26586
- dependencies: json["dependencies"] == null ? undefined : json["dependencies"],
26587
- customData: json["customData"] == null ? undefined : json["customData"],
26588
- entitySubType: json["entitySubType"] == null ? undefined : json["entitySubType"]
27066
+ entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
27067
+ name: json2["name"] == null ? undefined : json2["name"],
27068
+ description: json2["description"] == null ? undefined : json2["description"],
27069
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
27070
+ tags: json2["tags"] == null ? undefined : json2["tags"].map(TagModelFromJSON),
27071
+ folders: json2["folders"] == null ? undefined : json2["folders"].map(FolderModelFromJSON),
27072
+ linkedFoldersCount: json2["linkedFoldersCount"] == null ? undefined : json2["linkedFoldersCount"],
27073
+ source: json2["source"] == null ? undefined : json2["source"],
27074
+ scope: json2["scope"] == null ? undefined : EntityScopeFromJSON(json2["scope"]),
27075
+ searchState: json2["searchState"] == null ? undefined : EntitySearchStateFromJSON(json2["searchState"]),
27076
+ timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
27077
+ folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
27078
+ folderKeys: json2["folderKeys"] == null ? undefined : json2["folderKeys"],
27079
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
27080
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
27081
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
27082
+ dependencies: json2["dependencies"] == null ? undefined : json2["dependencies"],
27083
+ customData: json2["customData"] == null ? undefined : json2["customData"],
27084
+ entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"]
26589
27085
  };
26590
27086
  }
26591
27087
 
26592
27088
  // ../resourcecatalog-sdk/generated/src/models/EntityModelPaginationResult.ts
26593
- function EntityModelPaginationResultFromJSON(json) {
26594
- return EntityModelPaginationResultFromJSONTyped(json, false);
27089
+ function EntityModelPaginationResultFromJSON(json2) {
27090
+ return EntityModelPaginationResultFromJSONTyped(json2, false);
26595
27091
  }
26596
- function EntityModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
26597
- if (json == null) {
26598
- return json;
27092
+ function EntityModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
27093
+ if (json2 == null) {
27094
+ return json2;
26599
27095
  }
26600
27096
  return {
26601
- count: json["count"] == null ? undefined : json["count"],
26602
- value: json["value"] == null ? undefined : json["value"].map(EntityModelFromJSON)
27097
+ count: json2["count"] == null ? undefined : json2["count"],
27098
+ value: json2["value"] == null ? undefined : json2["value"].map(EntityModelFromJSON)
26603
27099
  };
26604
27100
  }
26605
27101
 
26606
27102
  // ../resourcecatalog-sdk/generated/src/models/FolderDto.ts
26607
- function FolderDtoFromJSON(json) {
26608
- return FolderDtoFromJSONTyped(json, false);
27103
+ function FolderDtoFromJSON(json2) {
27104
+ return FolderDtoFromJSONTyped(json2, false);
26609
27105
  }
26610
- function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
26611
- if (json == null) {
26612
- return json;
27106
+ function FolderDtoFromJSONTyped(json2, ignoreDiscriminator) {
27107
+ if (json2 == null) {
27108
+ return json2;
26613
27109
  }
26614
27110
  return {
26615
- key: json["key"] == null ? undefined : json["key"],
26616
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
26617
- isPersonal: json["isPersonal"] == null ? undefined : json["isPersonal"],
26618
- folderType: json["folderType"] == null ? undefined : FolderTypeFromJSON(json["folderType"])
27111
+ key: json2["key"] == null ? undefined : json2["key"],
27112
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
27113
+ isPersonal: json2["isPersonal"] == null ? undefined : json2["isPersonal"],
27114
+ folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"])
26619
27115
  };
26620
27116
  }
26621
27117
 
26622
27118
  // ../resourcecatalog-sdk/generated/src/models/FolderEntityModel.ts
26623
- function FolderEntityModelFromJSON(json) {
26624
- return FolderEntityModelFromJSONTyped(json, false);
27119
+ function FolderEntityModelFromJSON(json2) {
27120
+ return FolderEntityModelFromJSONTyped(json2, false);
26625
27121
  }
26626
- function FolderEntityModelFromJSONTyped(json, ignoreDiscriminator) {
26627
- if (json == null) {
26628
- return json;
27122
+ function FolderEntityModelFromJSONTyped(json2, ignoreDiscriminator) {
27123
+ if (json2 == null) {
27124
+ return json2;
26629
27125
  }
26630
27126
  return {
26631
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
26632
- folderName: json["folderName"] == null ? undefined : json["folderName"],
26633
- folderCode: json["folderCode"] == null ? undefined : json["folderCode"],
26634
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
26635
- folderType: json["folderType"] == null ? undefined : FolderTypeFromJSON(json["folderType"]),
26636
- folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
26637
- entityKey: json["entityKey"] == null ? undefined : json["entityKey"],
26638
- entityName: json["entityName"] == null ? undefined : json["entityName"],
26639
- entityDescription: json["entityDescription"] == null ? undefined : json["entityDescription"],
26640
- entityType: json["entityType"] == null ? undefined : json["entityType"],
26641
- entitySubType: json["entitySubType"] == null ? undefined : json["entitySubType"],
26642
- entitySource: json["entitySource"] == null ? undefined : json["entitySource"]
27127
+ folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
27128
+ folderName: json2["folderName"] == null ? undefined : json2["folderName"],
27129
+ folderCode: json2["folderCode"] == null ? undefined : json2["folderCode"],
27130
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
27131
+ folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"]),
27132
+ folderPath: json2["folderPath"] == null ? undefined : json2["folderPath"],
27133
+ entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
27134
+ entityName: json2["entityName"] == null ? undefined : json2["entityName"],
27135
+ entityDescription: json2["entityDescription"] == null ? undefined : json2["entityDescription"],
27136
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
27137
+ entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"],
27138
+ entitySource: json2["entitySource"] == null ? undefined : json2["entitySource"]
26643
27139
  };
26644
27140
  }
26645
27141
 
26646
27142
  // ../resourcecatalog-sdk/generated/src/models/FolderEntityModelCursorPaginationResult.ts
26647
- function FolderEntityModelCursorPaginationResultFromJSON(json) {
26648
- return FolderEntityModelCursorPaginationResultFromJSONTyped(json, false);
27143
+ function FolderEntityModelCursorPaginationResultFromJSON(json2) {
27144
+ return FolderEntityModelCursorPaginationResultFromJSONTyped(json2, false);
26649
27145
  }
26650
- function FolderEntityModelCursorPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
26651
- if (json == null) {
26652
- return json;
27146
+ function FolderEntityModelCursorPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
27147
+ if (json2 == null) {
27148
+ return json2;
26653
27149
  }
26654
27150
  return {
26655
- items: json["items"] == null ? undefined : json["items"].map(FolderEntityModelFromJSON),
26656
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
26657
- nextPage: json["nextPage"] == null ? undefined : json["nextPage"],
26658
- previousPage: json["previousPage"] == null ? undefined : json["previousPage"]
27151
+ items: json2["items"] == null ? undefined : json2["items"].map(FolderEntityModelFromJSON),
27152
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
27153
+ nextPage: json2["nextPage"] == null ? undefined : json2["nextPage"],
27154
+ previousPage: json2["previousPage"] == null ? undefined : json2["previousPage"]
26659
27155
  };
26660
27156
  }
26661
27157
 
26662
27158
  // ../resourcecatalog-sdk/generated/src/models/TagReferencesModel.ts
26663
- function TagReferencesModelFromJSON(json) {
26664
- return TagReferencesModelFromJSONTyped(json, false);
27159
+ function TagReferencesModelFromJSON(json2) {
27160
+ return TagReferencesModelFromJSONTyped(json2, false);
26665
27161
  }
26666
- function TagReferencesModelFromJSONTyped(json, ignoreDiscriminator) {
26667
- if (json == null) {
26668
- return json;
27162
+ function TagReferencesModelFromJSONTyped(json2, ignoreDiscriminator) {
27163
+ if (json2 == null) {
27164
+ return json2;
26669
27165
  }
26670
27166
  return {
26671
- entityType: json["entityType"] == null ? undefined : json["entityType"],
26672
- count: json["count"] == null ? undefined : json["count"]
27167
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
27168
+ count: json2["count"] == null ? undefined : json2["count"]
26673
27169
  };
26674
27170
  }
26675
- function TagReferencesModelToJSON(json) {
26676
- return TagReferencesModelToJSONTyped(json, false);
27171
+ function TagReferencesModelToJSON(json2) {
27172
+ return TagReferencesModelToJSONTyped(json2, false);
26677
27173
  }
26678
27174
  function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
26679
27175
  if (value == null) {
@@ -26686,41 +27182,41 @@ function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
26686
27182
  }
26687
27183
 
26688
27184
  // ../resourcecatalog-sdk/generated/src/models/TagDataType.ts
26689
- function TagDataTypeFromJSON(json) {
26690
- return TagDataTypeFromJSONTyped(json, false);
27185
+ function TagDataTypeFromJSON(json2) {
27186
+ return TagDataTypeFromJSONTyped(json2, false);
26691
27187
  }
26692
- function TagDataTypeFromJSONTyped(json, ignoreDiscriminator) {
26693
- return json;
27188
+ function TagDataTypeFromJSONTyped(json2, ignoreDiscriminator) {
27189
+ return json2;
26694
27190
  }
26695
27191
  function TagDataTypeToJSON(value) {
26696
27192
  return value;
26697
27193
  }
26698
27194
 
26699
27195
  // ../resourcecatalog-sdk/generated/src/models/LabelModel.ts
26700
- function LabelModelFromJSON(json) {
26701
- return LabelModelFromJSONTyped(json, false);
27196
+ function LabelModelFromJSON(json2) {
27197
+ return LabelModelFromJSONTyped(json2, false);
26702
27198
  }
26703
- function LabelModelFromJSONTyped(json, ignoreDiscriminator) {
26704
- if (json == null) {
26705
- return json;
27199
+ function LabelModelFromJSONTyped(json2, ignoreDiscriminator) {
27200
+ if (json2 == null) {
27201
+ return json2;
26706
27202
  }
26707
27203
  return {
26708
- key: json["key"] == null ? undefined : json["key"],
26709
- name: json["name"] == null ? undefined : json["name"],
26710
- description: json["description"] == null ? undefined : json["description"],
26711
- referencesCount: json["referencesCount"] == null ? undefined : json["referencesCount"],
26712
- entityReferencesCount: json["entityReferencesCount"] == null ? undefined : json["entityReferencesCount"].map(TagReferencesModelFromJSON),
26713
- dataType: json["dataType"] == null ? undefined : TagDataTypeFromJSON(json["dataType"]),
26714
- regex: json["regex"] == null ? undefined : json["regex"],
26715
- type: json["type"] == null ? undefined : TagTypeFromJSON(json["type"]),
26716
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
26717
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
26718
- userKey: json["userKey"] == null ? undefined : json["userKey"],
26719
- values: json["values"] == null ? undefined : json["values"]
27204
+ key: json2["key"] == null ? undefined : json2["key"],
27205
+ name: json2["name"] == null ? undefined : json2["name"],
27206
+ description: json2["description"] == null ? undefined : json2["description"],
27207
+ referencesCount: json2["referencesCount"] == null ? undefined : json2["referencesCount"],
27208
+ entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON),
27209
+ dataType: json2["dataType"] == null ? undefined : TagDataTypeFromJSON(json2["dataType"]),
27210
+ regex: json2["regex"] == null ? undefined : json2["regex"],
27211
+ type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
27212
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
27213
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
27214
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
27215
+ values: json2["values"] == null ? undefined : json2["values"]
26720
27216
  };
26721
27217
  }
26722
- function LabelModelToJSON(json) {
26723
- return LabelModelToJSONTyped(json, false);
27218
+ function LabelModelToJSON(json2) {
27219
+ return LabelModelToJSONTyped(json2, false);
26724
27220
  }
26725
27221
  function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
26726
27222
  if (value == null) {
@@ -26743,52 +27239,52 @@ function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
26743
27239
  }
26744
27240
 
26745
27241
  // ../resourcecatalog-sdk/generated/src/models/LabelModelPaginationResult.ts
26746
- function LabelModelPaginationResultFromJSON(json) {
26747
- return LabelModelPaginationResultFromJSONTyped(json, false);
27242
+ function LabelModelPaginationResultFromJSON(json2) {
27243
+ return LabelModelPaginationResultFromJSONTyped(json2, false);
26748
27244
  }
26749
- function LabelModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
26750
- if (json == null) {
26751
- return json;
27245
+ function LabelModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
27246
+ if (json2 == null) {
27247
+ return json2;
26752
27248
  }
26753
27249
  return {
26754
- count: json["count"] == null ? undefined : json["count"],
26755
- value: json["value"] == null ? undefined : json["value"].map(LabelModelFromJSON)
27250
+ count: json2["count"] == null ? undefined : json2["count"],
27251
+ value: json2["value"] == null ? undefined : json2["value"].map(LabelModelFromJSON)
26756
27252
  };
26757
27253
  }
26758
27254
 
26759
27255
  // ../resourcecatalog-sdk/generated/src/models/TagValueModel.ts
26760
- function TagValueModelFromJSON(json) {
26761
- return TagValueModelFromJSONTyped(json, false);
27256
+ function TagValueModelFromJSON(json2) {
27257
+ return TagValueModelFromJSONTyped(json2, false);
26762
27258
  }
26763
- function TagValueModelFromJSONTyped(json, ignoreDiscriminator) {
26764
- if (json == null) {
26765
- return json;
27259
+ function TagValueModelFromJSONTyped(json2, ignoreDiscriminator) {
27260
+ if (json2 == null) {
27261
+ return json2;
26766
27262
  }
26767
27263
  return {
26768
- key: json["key"] == null ? undefined : json["key"],
26769
- displayValue: json["displayValue"] == null ? undefined : json["displayValue"],
26770
- normalizedValue: json["normalizedValue"] == null ? undefined : json["normalizedValue"],
26771
- entityReferencesCount: json["entityReferencesCount"] == null ? undefined : json["entityReferencesCount"].map(TagReferencesModelFromJSON)
27264
+ key: json2["key"] == null ? undefined : json2["key"],
27265
+ displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
27266
+ normalizedValue: json2["normalizedValue"] == null ? undefined : json2["normalizedValue"],
27267
+ entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON)
26772
27268
  };
26773
27269
  }
26774
27270
 
26775
27271
  // ../resourcecatalog-sdk/generated/src/models/TagValueModelPaginationResult.ts
26776
- function TagValueModelPaginationResultFromJSON(json) {
26777
- return TagValueModelPaginationResultFromJSONTyped(json, false);
27272
+ function TagValueModelPaginationResultFromJSON(json2) {
27273
+ return TagValueModelPaginationResultFromJSONTyped(json2, false);
26778
27274
  }
26779
- function TagValueModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
26780
- if (json == null) {
26781
- return json;
27275
+ function TagValueModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
27276
+ if (json2 == null) {
27277
+ return json2;
26782
27278
  }
26783
27279
  return {
26784
- count: json["count"] == null ? undefined : json["count"],
26785
- value: json["value"] == null ? undefined : json["value"].map(TagValueModelFromJSON)
27280
+ count: json2["count"] == null ? undefined : json2["count"],
27281
+ value: json2["value"] == null ? undefined : json2["value"].map(TagValueModelFromJSON)
26786
27282
  };
26787
27283
  }
26788
27284
 
26789
27285
  // ../resourcecatalog-sdk/generated/src/models/ValueModel.ts
26790
- function ValueModelToJSON(json) {
26791
- return ValueModelToJSONTyped(json, false);
27286
+ function ValueModelToJSON(json2) {
27287
+ return ValueModelToJSONTyped(json2, false);
26792
27288
  }
26793
27289
  function ValueModelToJSONTyped(value, ignoreDiscriminator = false) {
26794
27290
  if (value == null) {
@@ -28484,12 +28980,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
28484
28980
  var saveEnvFileAsync = async ({
28485
28981
  envPath,
28486
28982
  data,
28487
- merge = true
28983
+ merge: merge2 = true
28488
28984
  }) => {
28489
28985
  const fs7 = getFileSystem();
28490
28986
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
28491
28987
  let existingData = {};
28492
- if (merge && await fs7.exists(absolutePath)) {
28988
+ if (merge2 && await fs7.exists(absolutePath)) {
28493
28989
  try {
28494
28990
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
28495
28991
  } catch {}
@@ -28980,6 +29476,10 @@ function normalizeTokenRefreshUnavailableFailure() {
28980
29476
  function errorMessage(error) {
28981
29477
  return error instanceof Error ? error.message : String(error);
28982
29478
  }
29479
+
29480
+ // ../../auth/src/index.ts
29481
+ init_constants();
29482
+
28983
29483
  // ../../auth/src/interactive.ts
28984
29484
  init_src();
28985
29485
 
@@ -29265,4 +29765,4 @@ export {
29265
29765
  metadata
29266
29766
  };
29267
29767
 
29268
- //# debugId=49872179BE21812364756E2164756E21
29768
+ //# debugId=4856D341022DDBE664756E2164756E21