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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool.js +1391 -1017
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
16177
16177
  });
16178
16178
 
16179
16179
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
16180
- var require_map2 = __commonJS((exports) => {
16180
+ var require_map = __commonJS((exports) => {
16181
16181
  var __extends = exports && exports.__extends || function() {
16182
16182
  var extendStatics = function(d, b) {
16183
16183
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
16199
16199
  }();
16200
16200
  Object.defineProperty(exports, "__esModule", { value: true });
16201
16201
  var Subscriber_1 = require_Subscriber();
16202
- function map(project, thisArg) {
16202
+ function map2(project, thisArg) {
16203
16203
  return function mapOperation(source) {
16204
16204
  if (typeof project !== "function") {
16205
16205
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
16207
16207
  return source.lift(new MapOperator(project, thisArg));
16208
16208
  };
16209
16209
  }
16210
- exports.map = map;
16210
+ exports.map = map2;
16211
16211
  var MapOperator = function() {
16212
16212
  function MapOperator2(project, thisArg) {
16213
16213
  this.project = project;
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
16247
16247
  Object.defineProperty(exports, "__esModule", { value: true });
16248
16248
  var Observable_1 = require_Observable();
16249
16249
  var AsyncSubject_1 = require_AsyncSubject();
16250
- var map_1 = require_map2();
16250
+ var map_1 = require_map();
16251
16251
  var canReportError_1 = require_canReportError();
16252
16252
  var isArray_1 = require_isArray();
16253
16253
  var isScheduler_1 = require_isScheduler();
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
16351
16351
  Object.defineProperty(exports, "__esModule", { value: true });
16352
16352
  var Observable_1 = require_Observable();
16353
16353
  var AsyncSubject_1 = require_AsyncSubject();
16354
- var map_1 = require_map2();
16354
+ var map_1 = require_map();
16355
16355
  var canReportError_1 = require_canReportError();
16356
16356
  var isScheduler_1 = require_isScheduler();
16357
16357
  var isArray_1 = require_isArray();
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
17141
17141
  };
17142
17142
  }();
17143
17143
  Object.defineProperty(exports, "__esModule", { value: true });
17144
- var map_1 = require_map2();
17144
+ var map_1 = require_map();
17145
17145
  var from_1 = require_from();
17146
17146
  var innerSubscribe_1 = require_innerSubscribe();
17147
17147
  function mergeMap(project, resultSelector, concurrent) {
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
17312
17312
  Object.defineProperty(exports, "__esModule", { value: true });
17313
17313
  var Observable_1 = require_Observable();
17314
17314
  var isArray_1 = require_isArray();
17315
- var map_1 = require_map2();
17315
+ var map_1 = require_map();
17316
17316
  var isObject_1 = require_isObject();
17317
17317
  var from_1 = require_from();
17318
17318
  function forkJoin() {
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
17392
17392
  var Observable_1 = require_Observable();
17393
17393
  var isArray_1 = require_isArray();
17394
17394
  var isFunction_1 = require_isFunction();
17395
- var map_1 = require_map2();
17395
+ var map_1 = require_map();
17396
17396
  var toString = function() {
17397
17397
  return Object.prototype.toString;
17398
17398
  }();
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
17464
17464
  var Observable_1 = require_Observable();
17465
17465
  var isArray_1 = require_isArray();
17466
17466
  var isFunction_1 = require_isFunction();
17467
- var map_1 = require_map2();
17467
+ var map_1 = require_map();
17468
17468
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
17469
17469
  if (resultSelector) {
17470
17470
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
17679
17679
  });
17680
17680
 
17681
17681
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
17682
- var require_merge2 = __commonJS((exports) => {
17682
+ var require_merge = __commonJS((exports) => {
17683
17683
  Object.defineProperty(exports, "__esModule", { value: true });
17684
17684
  var Observable_1 = require_Observable();
17685
17685
  var isScheduler_1 = require_isScheduler();
17686
17686
  var mergeAll_1 = require_mergeAll();
17687
17687
  var fromArray_1 = require_fromArray();
17688
- function merge() {
17688
+ function merge2() {
17689
17689
  var observables = [];
17690
17690
  for (var _i = 0;_i < arguments.length; _i++) {
17691
17691
  observables[_i] = arguments[_i];
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
17706
17706
  }
17707
17707
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
17708
17708
  }
17709
- exports.merge = merge;
17709
+ exports.merge = merge2;
17710
17710
  });
17711
17711
 
17712
17712
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
17757
17757
  });
17758
17758
 
17759
17759
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
17760
- var require_pairs2 = __commonJS((exports) => {
17760
+ var require_pairs = __commonJS((exports) => {
17761
17761
  Object.defineProperty(exports, "__esModule", { value: true });
17762
17762
  var Observable_1 = require_Observable();
17763
17763
  var Subscription_1 = require_Subscription();
17764
- function pairs(obj, scheduler) {
17764
+ function pairs2(obj, scheduler) {
17765
17765
  if (!scheduler) {
17766
17766
  return new Observable_1.Observable(function(subscriber) {
17767
17767
  var keys = Object.keys(obj);
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
17782
17782
  });
17783
17783
  }
17784
17784
  }
17785
- exports.pairs = pairs;
17785
+ exports.pairs = pairs2;
17786
17786
  function dispatch(state) {
17787
17787
  var { keys, index, subscriber, subscription, obj } = state;
17788
17788
  if (!subscriber.closed) {
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
18441
18441
  exports.iif = iif_1.iif;
18442
18442
  var interval_1 = require_interval();
18443
18443
  exports.interval = interval_1.interval;
18444
- var merge_1 = require_merge2();
18444
+ var merge_1 = require_merge();
18445
18445
  exports.merge = merge_1.merge;
18446
18446
  var never_1 = require_never();
18447
18447
  exports.never = never_1.never;
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
18449
18449
  exports.of = of_1.of;
18450
18450
  var onErrorResumeNext_1 = require_onErrorResumeNext();
18451
18451
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
18452
- var pairs_1 = require_pairs2();
18452
+ var pairs_1 = require_pairs();
18453
18453
  exports.pairs = pairs_1.pairs;
18454
18454
  var partition_1 = require_partition();
18455
18455
  exports.partition = partition_1.partition;
@@ -21314,40 +21314,40 @@ var require_global_utils = __commonJS((exports) => {
21314
21314
  var major = version_1.VERSION.split(".")[0];
21315
21315
  var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
21316
21316
  var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
21317
- function registerGlobal(type, instance, diag, allowOverride = false) {
21317
+ function registerGlobal(type2, instance, diag, allowOverride = false) {
21318
21318
  var _a;
21319
21319
  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== undefined ? _a : {
21320
21320
  version: version_1.VERSION
21321
21321
  };
21322
- if (!allowOverride && api[type]) {
21323
- const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
21322
+ if (!allowOverride && api[type2]) {
21323
+ const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type2}`);
21324
21324
  diag.error(err.stack || err.message);
21325
21325
  return false;
21326
21326
  }
21327
21327
  if (api.version !== version_1.VERSION) {
21328
- const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
21328
+ const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type2} does not match previously registered API v${version_1.VERSION}`);
21329
21329
  diag.error(err.stack || err.message);
21330
21330
  return false;
21331
21331
  }
21332
- api[type] = instance;
21333
- diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
21332
+ api[type2] = instance;
21333
+ diag.debug(`@opentelemetry/api: Registered a global for ${type2} v${version_1.VERSION}.`);
21334
21334
  return true;
21335
21335
  }
21336
21336
  exports.registerGlobal = registerGlobal;
21337
- function getGlobal(type) {
21337
+ function getGlobal(type2) {
21338
21338
  var _a, _b;
21339
21339
  const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === undefined ? undefined : _a.version;
21340
21340
  if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
21341
21341
  return;
21342
21342
  }
21343
- return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
21343
+ return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type2];
21344
21344
  }
21345
21345
  exports.getGlobal = getGlobal;
21346
- function unregisterGlobal(type, diag) {
21347
- diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
21346
+ function unregisterGlobal(type2, diag) {
21347
+ diag.debug(`@opentelemetry/api: Unregistering a global for ${type2} v${version_1.VERSION}.`);
21348
21348
  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
21349
21349
  if (api) {
21350
- delete api[type];
21350
+ delete api[type2];
21351
21351
  }
21352
21352
  }
21353
21353
  exports.unregisterGlobal = unregisterGlobal;
@@ -21562,15 +21562,15 @@ var require_utils = __commonJS((exports) => {
21562
21562
  return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
21563
21563
  }
21564
21564
  exports.createBaggage = createBaggage;
21565
- function baggageEntryMetadataFromString(str) {
21566
- if (typeof str !== "string") {
21567
- diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
21568
- str = "";
21565
+ function baggageEntryMetadataFromString(str2) {
21566
+ if (typeof str2 !== "string") {
21567
+ diag.error(`Cannot create baggage metadata from unknown type: ${typeof str2}`);
21568
+ str2 = "";
21569
21569
  }
21570
21570
  return {
21571
21571
  __TYPE__: symbol_1.baggageEntryMetadataSymbol,
21572
21572
  toString() {
21573
- return str;
21573
+ return str2;
21574
21574
  }
21575
21575
  };
21576
21576
  }
@@ -23183,17 +23183,17 @@ var require_attributes = __commonJS((exports) => {
23183
23183
  }
23184
23184
  exports.isAttributeValue = isAttributeValue;
23185
23185
  function isHomogeneousAttributeValueArray(arr) {
23186
- let type;
23186
+ let type2;
23187
23187
  for (const element of arr) {
23188
23188
  if (element == null)
23189
23189
  continue;
23190
23190
  const elementType = typeof element;
23191
- if (elementType === type) {
23191
+ if (elementType === type2) {
23192
23192
  continue;
23193
23193
  }
23194
- if (!type) {
23194
+ if (!type2) {
23195
23195
  if (isValidPrimitiveAttributeValueType(elementType)) {
23196
- type = elementType;
23196
+ type2 = elementType;
23197
23197
  continue;
23198
23198
  }
23199
23199
  return false;
@@ -25405,12 +25405,12 @@ var require_lodash_merge = __commonJS((exports) => {
25405
25405
  });
25406
25406
 
25407
25407
  // ../../node_modules/@opentelemetry/core/build/src/utils/merge.js
25408
- var require_merge3 = __commonJS((exports) => {
25408
+ var require_merge2 = __commonJS((exports) => {
25409
25409
  Object.defineProperty(exports, "__esModule", { value: true });
25410
25410
  exports.merge = undefined;
25411
25411
  var lodash_merge_1 = require_lodash_merge();
25412
25412
  var MAX_LEVEL = 20;
25413
- function merge(...args) {
25413
+ function merge2(...args) {
25414
25414
  let result = args.shift();
25415
25415
  const objects = new WeakMap;
25416
25416
  while (args.length > 0) {
@@ -25418,7 +25418,7 @@ var require_merge3 = __commonJS((exports) => {
25418
25418
  }
25419
25419
  return result;
25420
25420
  }
25421
- exports.merge = merge;
25421
+ exports.merge = merge2;
25422
25422
  function takeValue(value) {
25423
25423
  if (isArray(value)) {
25424
25424
  return value.slice();
@@ -25835,7 +25835,7 @@ var require_src4 = __commonJS((exports) => {
25835
25835
  Object.defineProperty(exports, "TraceState", { enumerable: true, get: function() {
25836
25836
  return TraceState_1.TraceState;
25837
25837
  } });
25838
- var merge_1 = require_merge3();
25838
+ var merge_1 = require_merge2();
25839
25839
  Object.defineProperty(exports, "merge", { enumerable: true, get: function() {
25840
25840
  return merge_1.merge;
25841
25841
  } });
@@ -26132,17 +26132,17 @@ var require_EnvDetector = __commonJS((exports) => {
26132
26132
  _isValid(name) {
26133
26133
  return name.length <= this._MAX_LENGTH && this._isBaggageOctetString(name);
26134
26134
  }
26135
- _isBaggageOctetString(str) {
26136
- for (let i = 0;i < str.length; i++) {
26137
- const ch = str.charCodeAt(i);
26135
+ _isBaggageOctetString(str2) {
26136
+ for (let i = 0;i < str2.length; i++) {
26137
+ const ch = str2.charCodeAt(i);
26138
26138
  if (ch < 33 || ch === 44 || ch === 59 || ch === 92 || ch > 126) {
26139
26139
  return false;
26140
26140
  }
26141
26141
  }
26142
26142
  return true;
26143
26143
  }
26144
- _isValidAndNotEmpty(str) {
26145
- return str.length > 0 && this._isValid(str);
26144
+ _isValidAndNotEmpty(str2) {
26145
+ return str2.length > 0 && this._isValid(str2);
26146
26146
  }
26147
26147
  }
26148
26148
  exports.envDetector = new EnvDetector;
@@ -26654,9 +26654,9 @@ var require_LogRecordImpl = __commonJS((exports) => {
26654
26654
  return this.totalAttributesCount - Object.keys(this.attributes).length;
26655
26655
  }
26656
26656
  constructor(_sharedState, instrumentationScope, logRecord) {
26657
- const { timestamp, observedTimestamp, eventName, severityNumber, severityText, body, attributes = {}, context } = logRecord;
26657
+ const { timestamp: timestamp2, observedTimestamp, eventName, severityNumber, severityText, body, attributes = {}, context } = logRecord;
26658
26658
  const now = Date.now();
26659
- this.hrTime = (0, core_1.timeInputToHrTime)(timestamp ?? now);
26659
+ this.hrTime = (0, core_1.timeInputToHrTime)(timestamp2 ?? now);
26660
26660
  this.hrTimeObserved = (0, core_1.timeInputToHrTime)(observedTimestamp ?? now);
26661
26661
  if (context) {
26662
26662
  const spanContext = api.trace.getSpanContext(context);
@@ -27244,7 +27244,7 @@ var require_src6 = __commonJS((exports) => {
27244
27244
  var package_default = {
27245
27245
  name: "@uipath/tasks-tool",
27246
27246
  license: "MIT",
27247
- version: "1.198.0-preview.85",
27247
+ version: "1.198.0-preview.87",
27248
27248
  description: "Manage Action Center tasks.",
27249
27249
  type: "module",
27250
27250
  main: "./dist/tool.js",
@@ -29665,31 +29665,17 @@ function search(data, expression, options) {
29665
29665
  }
29666
29666
 
29667
29667
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
29668
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
29669
- var __create2 = Object.create;
29670
- var __defProp2 = Object.defineProperty;
29671
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
29672
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
29673
- var __getProtoOf2 = Object.getPrototypeOf;
29674
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
29675
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
29676
- var __copyProps = (to, from, except, desc) => {
29677
- if (from && typeof from === "object" || typeof from === "function")
29678
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
29679
- key = keys[i];
29680
- if (!__hasOwnProp2.call(to, key) && key !== except)
29681
- __defProp2(to, key, {
29682
- get: ((k) => from[k]).bind(null, key),
29683
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29684
- });
29685
- }
29686
- return to;
29687
- };
29688
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
29689
- value: mod2,
29690
- enumerable: true
29691
- }) : target, mod2));
29692
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
29668
+ function getDefaultExportFromCjs(x) {
29669
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
29670
+ }
29671
+ var jsYaml = {};
29672
+ var loader = {};
29673
+ var common = {};
29674
+ var hasRequiredCommon;
29675
+ function requireCommon() {
29676
+ if (hasRequiredCommon)
29677
+ return common;
29678
+ hasRequiredCommon = 1;
29693
29679
  function isNothing(subject) {
29694
29680
  return typeof subject === "undefined" || subject === null;
29695
29681
  }
@@ -29715,55 +29701,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
29715
29701
  }
29716
29702
  function repeat(string, count) {
29717
29703
  let result = "";
29718
- for (let cycle = 0;cycle < count; cycle += 1)
29704
+ for (let cycle = 0;cycle < count; cycle += 1) {
29719
29705
  result += string;
29706
+ }
29720
29707
  return result;
29721
29708
  }
29722
29709
  function isNegativeZero(number) {
29723
29710
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
29724
29711
  }
29725
- module.exports.isNothing = isNothing;
29726
- module.exports.isObject = isObject2;
29727
- module.exports.toArray = toArray;
29728
- module.exports.repeat = repeat;
29729
- module.exports.isNegativeZero = isNegativeZero;
29730
- module.exports.extend = extend;
29731
- });
29732
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
29733
- function formatError(exception, compact) {
29712
+ common.isNothing = isNothing;
29713
+ common.isObject = isObject2;
29714
+ common.toArray = toArray;
29715
+ common.repeat = repeat;
29716
+ common.isNegativeZero = isNegativeZero;
29717
+ common.extend = extend;
29718
+ return common;
29719
+ }
29720
+ var exception;
29721
+ var hasRequiredException;
29722
+ function requireException() {
29723
+ if (hasRequiredException)
29724
+ return exception;
29725
+ hasRequiredException = 1;
29726
+ function formatError(exception2, compact) {
29734
29727
  let where = "";
29735
- const message = exception.reason || "(unknown reason)";
29736
- if (!exception.mark)
29728
+ const message = exception2.reason || "(unknown reason)";
29729
+ if (!exception2.mark)
29737
29730
  return message;
29738
- if (exception.mark.name)
29739
- where += 'in "' + exception.mark.name + '" ';
29740
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
29741
- if (!compact && exception.mark.snippet)
29731
+ if (exception2.mark.name) {
29732
+ where += 'in "' + exception2.mark.name + '" ';
29733
+ }
29734
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
29735
+ if (!compact && exception2.mark.snippet) {
29742
29736
  where += `
29743
29737
 
29744
- ` + exception.mark.snippet;
29738
+ ` + exception2.mark.snippet;
29739
+ }
29745
29740
  return message + " " + where;
29746
29741
  }
29747
- function YAMLException(reason, mark) {
29742
+ function YAMLException2(reason, mark) {
29748
29743
  Error.call(this);
29749
29744
  this.name = "YAMLException";
29750
29745
  this.reason = reason;
29751
29746
  this.mark = mark;
29752
29747
  this.message = formatError(this, false);
29753
- if (Error.captureStackTrace)
29748
+ if (Error.captureStackTrace) {
29754
29749
  Error.captureStackTrace(this, this.constructor);
29755
- else
29756
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
29750
+ } else {
29751
+ this.stack = new Error().stack || "";
29752
+ }
29757
29753
  }
29758
- YAMLException.prototype = Object.create(Error.prototype);
29759
- YAMLException.prototype.constructor = YAMLException;
29760
- YAMLException.prototype.toString = function toString(compact) {
29754
+ YAMLException2.prototype = Object.create(Error.prototype);
29755
+ YAMLException2.prototype.constructor = YAMLException2;
29756
+ YAMLException2.prototype.toString = function toString(compact) {
29761
29757
  return this.name + ": " + formatError(this, compact);
29762
29758
  };
29763
- module.exports = YAMLException;
29764
- });
29765
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29766
- var common = require_common();
29759
+ exception = YAMLException2;
29760
+ return exception;
29761
+ }
29762
+ var snippet;
29763
+ var hasRequiredSnippet;
29764
+ function requireSnippet() {
29765
+ if (hasRequiredSnippet)
29766
+ return snippet;
29767
+ hasRequiredSnippet = 1;
29768
+ const common2 = requireCommon();
29767
29769
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
29768
29770
  let head = "";
29769
29771
  let tail = "";
@@ -29782,7 +29784,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29782
29784
  };
29783
29785
  }
29784
29786
  function padStart(string, max) {
29785
- return common.repeat(" ", max - string.length) + string;
29787
+ return common2.repeat(" ", max - string.length) + string;
29786
29788
  }
29787
29789
  function makeSnippet(mark, options) {
29788
29790
  options = Object.create(options || null);
@@ -29804,8 +29806,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29804
29806
  while (match = re.exec(mark.buffer)) {
29805
29807
  lineEnds.push(match.index);
29806
29808
  lineStarts.push(match.index + match[0].length);
29807
- if (mark.position <= match.index && foundLineNo < 0)
29809
+ if (mark.position <= match.index && foundLineNo < 0) {
29808
29810
  foundLineNo = lineStarts.length - 2;
29811
+ }
29809
29812
  }
29810
29813
  if (foundLineNo < 0)
29811
29814
  foundLineNo = lineStarts.length - 1;
@@ -29816,28 +29819,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29816
29819
  if (foundLineNo - i < 0)
29817
29820
  break;
29818
29821
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
29819
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
29822
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
29820
29823
  ` + result;
29821
29824
  }
29822
29825
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
29823
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
29826
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
29824
29827
  `;
29825
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
29828
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
29826
29829
  `;
29827
29830
  for (let i = 1;i <= options.linesAfter; i++) {
29828
29831
  if (foundLineNo + i >= lineEnds.length)
29829
29832
  break;
29830
29833
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
29831
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
29834
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
29832
29835
  `;
29833
29836
  }
29834
29837
  return result.replace(/\n$/, "");
29835
29838
  }
29836
- module.exports = makeSnippet;
29837
- });
29838
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29839
- var YAMLException = require_exception();
29840
- var TYPE_CONSTRUCTOR_OPTIONS = [
29839
+ snippet = makeSnippet;
29840
+ return snippet;
29841
+ }
29842
+ var type;
29843
+ var hasRequiredType;
29844
+ function requireType() {
29845
+ if (hasRequiredType)
29846
+ return type;
29847
+ hasRequiredType = 1;
29848
+ const YAMLException2 = requireException();
29849
+ const TYPE_CONSTRUCTOR_OPTIONS = [
29841
29850
  "kind",
29842
29851
  "multi",
29843
29852
  "resolve",
@@ -29849,26 +29858,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29849
29858
  "defaultStyle",
29850
29859
  "styleAliases"
29851
29860
  ];
29852
- var YAML_NODE_KINDS = [
29861
+ const YAML_NODE_KINDS = [
29853
29862
  "scalar",
29854
29863
  "sequence",
29855
29864
  "mapping"
29856
29865
  ];
29857
- function compileStyleAliases(map) {
29866
+ function compileStyleAliases(map2) {
29858
29867
  const result = {};
29859
- if (map !== null)
29860
- Object.keys(map).forEach(function(style) {
29861
- map[style].forEach(function(alias) {
29868
+ if (map2 !== null) {
29869
+ Object.keys(map2).forEach(function(style) {
29870
+ map2[style].forEach(function(alias) {
29862
29871
  result[String(alias)] = style;
29863
29872
  });
29864
29873
  });
29874
+ }
29865
29875
  return result;
29866
29876
  }
29867
- function Type(tag, options) {
29877
+ function Type2(tag, options) {
29868
29878
  options = options || {};
29869
29879
  Object.keys(options).forEach(function(name) {
29870
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
29871
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
29880
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
29881
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
29882
+ }
29872
29883
  });
29873
29884
  this.options = options;
29874
29885
  this.tag = tag;
@@ -29886,21 +29897,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29886
29897
  this.defaultStyle = options["defaultStyle"] || null;
29887
29898
  this.multi = options["multi"] || false;
29888
29899
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
29889
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
29890
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
29891
- }
29892
- module.exports = Type;
29893
- });
29894
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29895
- var YAMLException = require_exception();
29896
- var Type = require_type();
29897
- function compileList(schema, name) {
29900
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
29901
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
29902
+ }
29903
+ }
29904
+ type = Type2;
29905
+ return type;
29906
+ }
29907
+ var schema;
29908
+ var hasRequiredSchema;
29909
+ function requireSchema() {
29910
+ if (hasRequiredSchema)
29911
+ return schema;
29912
+ hasRequiredSchema = 1;
29913
+ const YAMLException2 = requireException();
29914
+ const Type2 = requireType();
29915
+ function compileList(schema2, name) {
29898
29916
  const result = [];
29899
- schema[name].forEach(function(currentType) {
29917
+ schema2[name].forEach(function(currentType) {
29900
29918
  let newIndex = result.length;
29901
29919
  result.forEach(function(previousType, previousIndex) {
29902
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
29920
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
29903
29921
  newIndex = previousIndex;
29922
+ }
29904
29923
  });
29905
29924
  result[newIndex] = currentType;
29906
29925
  });
@@ -29919,47 +29938,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29919
29938
  fallback: []
29920
29939
  }
29921
29940
  };
29922
- function collectType(type) {
29923
- if (type.multi) {
29924
- result.multi[type.kind].push(type);
29925
- result.multi["fallback"].push(type);
29926
- } else
29927
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
29941
+ function collectType(type2) {
29942
+ if (type2.multi) {
29943
+ result.multi[type2.kind].push(type2);
29944
+ result.multi["fallback"].push(type2);
29945
+ } else {
29946
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
29947
+ }
29928
29948
  }
29929
- for (let index = 0, length = arguments.length;index < length; index += 1)
29949
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
29930
29950
  arguments[index].forEach(collectType);
29951
+ }
29931
29952
  return result;
29932
29953
  }
29933
- function Schema(definition) {
29954
+ function Schema2(definition) {
29934
29955
  return this.extend(definition);
29935
29956
  }
29936
- Schema.prototype.extend = function extend(definition) {
29957
+ Schema2.prototype.extend = function extend(definition) {
29937
29958
  let implicit = [];
29938
29959
  let explicit = [];
29939
- if (definition instanceof Type)
29960
+ if (definition instanceof Type2) {
29940
29961
  explicit.push(definition);
29941
- else if (Array.isArray(definition))
29962
+ } else if (Array.isArray(definition)) {
29942
29963
  explicit = explicit.concat(definition);
29943
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
29964
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
29944
29965
  if (definition.implicit)
29945
29966
  implicit = implicit.concat(definition.implicit);
29946
29967
  if (definition.explicit)
29947
29968
  explicit = explicit.concat(definition.explicit);
29948
- } else
29949
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
29950
- implicit.forEach(function(type) {
29951
- if (!(type instanceof Type))
29952
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29953
- if (type.loadKind && type.loadKind !== "scalar")
29954
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
29955
- if (type.multi)
29956
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
29969
+ } else {
29970
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
29971
+ }
29972
+ implicit.forEach(function(type2) {
29973
+ if (!(type2 instanceof Type2)) {
29974
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29975
+ }
29976
+ if (type2.loadKind && type2.loadKind !== "scalar") {
29977
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
29978
+ }
29979
+ if (type2.multi) {
29980
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
29981
+ }
29957
29982
  });
29958
- explicit.forEach(function(type) {
29959
- if (!(type instanceof Type))
29960
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29983
+ explicit.forEach(function(type2) {
29984
+ if (!(type2 instanceof Type2)) {
29985
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29986
+ }
29961
29987
  });
29962
- const result = Object.create(Schema.prototype);
29988
+ const result = Object.create(Schema2.prototype);
29963
29989
  result.implicit = (this.implicit || []).concat(implicit);
29964
29990
  result.explicit = (this.explicit || []).concat(explicit);
29965
29991
  result.compiledImplicit = compileList(result, "implicit");
@@ -29967,41 +29993,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29967
29993
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
29968
29994
  return result;
29969
29995
  };
29970
- module.exports = Schema;
29971
- });
29972
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
29973
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
29996
+ schema = Schema2;
29997
+ return schema;
29998
+ }
29999
+ var str;
30000
+ var hasRequiredStr;
30001
+ function requireStr() {
30002
+ if (hasRequiredStr)
30003
+ return str;
30004
+ hasRequiredStr = 1;
30005
+ const Type2 = requireType();
30006
+ str = new Type2("tag:yaml.org,2002:str", {
29974
30007
  kind: "scalar",
29975
30008
  construct: function(data) {
29976
30009
  return data !== null ? data : "";
29977
30010
  }
29978
30011
  });
29979
- });
29980
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
29981
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
30012
+ return str;
30013
+ }
30014
+ var seq;
30015
+ var hasRequiredSeq;
30016
+ function requireSeq() {
30017
+ if (hasRequiredSeq)
30018
+ return seq;
30019
+ hasRequiredSeq = 1;
30020
+ const Type2 = requireType();
30021
+ seq = new Type2("tag:yaml.org,2002:seq", {
29982
30022
  kind: "sequence",
29983
30023
  construct: function(data) {
29984
30024
  return data !== null ? data : [];
29985
30025
  }
29986
30026
  });
29987
- });
29988
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
29989
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
30027
+ return seq;
30028
+ }
30029
+ var map;
30030
+ var hasRequiredMap;
30031
+ function requireMap() {
30032
+ if (hasRequiredMap)
30033
+ return map;
30034
+ hasRequiredMap = 1;
30035
+ const Type2 = requireType();
30036
+ map = new Type2("tag:yaml.org,2002:map", {
29990
30037
  kind: "mapping",
29991
30038
  construct: function(data) {
29992
30039
  return data !== null ? data : {};
29993
30040
  }
29994
30041
  });
29995
- });
29996
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
29997
- module.exports = new (require_schema())({ explicit: [
29998
- require_str(),
29999
- require_seq(),
30000
- require_map()
30001
- ] });
30002
- });
30003
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
30004
- var Type = require_type();
30042
+ return map;
30043
+ }
30044
+ var failsafe;
30045
+ var hasRequiredFailsafe;
30046
+ function requireFailsafe() {
30047
+ if (hasRequiredFailsafe)
30048
+ return failsafe;
30049
+ hasRequiredFailsafe = 1;
30050
+ const Schema2 = requireSchema();
30051
+ failsafe = new Schema2({
30052
+ explicit: [
30053
+ requireStr(),
30054
+ requireSeq(),
30055
+ requireMap()
30056
+ ]
30057
+ });
30058
+ return failsafe;
30059
+ }
30060
+ var _null;
30061
+ var hasRequired_null;
30062
+ function require_null() {
30063
+ if (hasRequired_null)
30064
+ return _null;
30065
+ hasRequired_null = 1;
30066
+ const Type2 = requireType();
30005
30067
  function resolveYamlNull(data) {
30006
30068
  if (data === null)
30007
30069
  return true;
@@ -30014,7 +30076,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
30014
30076
  function isNull(object) {
30015
30077
  return object === null;
30016
30078
  }
30017
- module.exports = new Type("tag:yaml.org,2002:null", {
30079
+ _null = new Type2("tag:yaml.org,2002:null", {
30018
30080
  kind: "scalar",
30019
30081
  resolve: resolveYamlNull,
30020
30082
  construct: constructYamlNull,
@@ -30038,9 +30100,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
30038
30100
  },
30039
30101
  defaultStyle: "lowercase"
30040
30102
  });
30041
- });
30042
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30043
- var Type = require_type();
30103
+ return _null;
30104
+ }
30105
+ var bool;
30106
+ var hasRequiredBool;
30107
+ function requireBool() {
30108
+ if (hasRequiredBool)
30109
+ return bool;
30110
+ hasRequiredBool = 1;
30111
+ const Type2 = requireType();
30044
30112
  function resolveYamlBoolean(data) {
30045
30113
  if (data === null)
30046
30114
  return false;
@@ -30053,7 +30121,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30053
30121
  function isBoolean(object) {
30054
30122
  return Object.prototype.toString.call(object) === "[object Boolean]";
30055
30123
  }
30056
- module.exports = new Type("tag:yaml.org,2002:bool", {
30124
+ bool = new Type2("tag:yaml.org,2002:bool", {
30057
30125
  kind: "scalar",
30058
30126
  resolve: resolveYamlBoolean,
30059
30127
  construct: constructYamlBoolean,
@@ -30071,10 +30139,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30071
30139
  },
30072
30140
  defaultStyle: "lowercase"
30073
30141
  });
30074
- });
30075
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30076
- var common = require_common();
30077
- var Type = require_type();
30142
+ return bool;
30143
+ }
30144
+ var int;
30145
+ var hasRequiredInt;
30146
+ function requireInt() {
30147
+ if (hasRequiredInt)
30148
+ return int;
30149
+ hasRequiredInt = 1;
30150
+ const common2 = requireCommon();
30151
+ const Type2 = requireType();
30078
30152
  function isHexCode(c) {
30079
30153
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
30080
30154
  }
@@ -30093,8 +30167,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30093
30167
  if (!max)
30094
30168
  return false;
30095
30169
  let ch = data[index];
30096
- if (ch === "-" || ch === "+")
30170
+ if (ch === "-" || ch === "+") {
30097
30171
  ch = data[++index];
30172
+ }
30098
30173
  if (ch === "0") {
30099
30174
  if (index + 1 === max)
30100
30175
  return true;
@@ -30107,7 +30182,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30107
30182
  return false;
30108
30183
  hasDigits = true;
30109
30184
  }
30110
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30185
+ return hasDigits && isFinite(parseYamlInteger(data));
30111
30186
  }
30112
30187
  if (ch === "x") {
30113
30188
  index++;
@@ -30116,7 +30191,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30116
30191
  return false;
30117
30192
  hasDigits = true;
30118
30193
  }
30119
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30194
+ return hasDigits && isFinite(parseYamlInteger(data));
30120
30195
  }
30121
30196
  if (ch === "o") {
30122
30197
  index++;
@@ -30125,17 +30200,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30125
30200
  return false;
30126
30201
  hasDigits = true;
30127
30202
  }
30128
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30203
+ return hasDigits && isFinite(parseYamlInteger(data));
30129
30204
  }
30130
30205
  }
30131
30206
  for (;index < max; index++) {
30132
- if (!isDecCode(data.charCodeAt(index)))
30207
+ if (!isDecCode(data.charCodeAt(index))) {
30133
30208
  return false;
30209
+ }
30134
30210
  hasDigits = true;
30135
30211
  }
30136
30212
  if (!hasDigits)
30137
30213
  return false;
30138
- return Number.isFinite(parseYamlInteger(data));
30214
+ return isFinite(parseYamlInteger(data));
30139
30215
  }
30140
30216
  function parseYamlInteger(data) {
30141
30217
  let value = data;
@@ -30163,9 +30239,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30163
30239
  return parseYamlInteger(data);
30164
30240
  }
30165
30241
  function isInteger(object) {
30166
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
30242
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
30167
30243
  }
30168
- module.exports = new Type("tag:yaml.org,2002:int", {
30244
+ int = new Type2("tag:yaml.org,2002:int", {
30169
30245
  kind: "scalar",
30170
30246
  resolve: resolveYamlInteger,
30171
30247
  construct: constructYamlInteger,
@@ -30192,35 +30268,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30192
30268
  hexadecimal: [16, "hex"]
30193
30269
  }
30194
30270
  });
30195
- });
30196
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30197
- var common = require_common();
30198
- var Type = require_type();
30199
- 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))$");
30200
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30271
+ return int;
30272
+ }
30273
+ var float;
30274
+ var hasRequiredFloat;
30275
+ function requireFloat() {
30276
+ if (hasRequiredFloat)
30277
+ return float;
30278
+ hasRequiredFloat = 1;
30279
+ const common2 = requireCommon();
30280
+ const Type2 = requireType();
30281
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30282
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30201
30283
  function resolveYamlFloat(data) {
30202
30284
  if (data === null)
30203
30285
  return false;
30204
- if (!YAML_FLOAT_PATTERN.test(data))
30286
+ if (!YAML_FLOAT_PATTERN.test(data)) {
30205
30287
  return false;
30206
- if (Number.isFinite(parseFloat(data, 10)))
30288
+ }
30289
+ if (isFinite(parseFloat(data, 10))) {
30207
30290
  return true;
30291
+ }
30208
30292
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
30209
30293
  }
30210
30294
  function constructYamlFloat(data) {
30211
30295
  let value = data.toLowerCase();
30212
30296
  const sign = value[0] === "-" ? -1 : 1;
30213
- if ("+-".indexOf(value[0]) >= 0)
30297
+ if ("+-".indexOf(value[0]) >= 0) {
30214
30298
  value = value.slice(1);
30215
- if (value === ".inf")
30299
+ }
30300
+ if (value === ".inf") {
30216
30301
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
30217
- else if (value === ".nan")
30302
+ } else if (value === ".nan") {
30218
30303
  return NaN;
30304
+ }
30219
30305
  return sign * parseFloat(value, 10);
30220
30306
  }
30221
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
30307
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
30222
30308
  function representYamlFloat(object, style) {
30223
- if (isNaN(object))
30309
+ if (isNaN(object)) {
30224
30310
  switch (style) {
30225
30311
  case "lowercase":
30226
30312
  return ".nan";
@@ -30229,7 +30315,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30229
30315
  case "camelcase":
30230
30316
  return ".NaN";
30231
30317
  }
30232
- else if (Number.POSITIVE_INFINITY === object)
30318
+ } else if (Number.POSITIVE_INFINITY === object) {
30233
30319
  switch (style) {
30234
30320
  case "lowercase":
30235
30321
  return ".inf";
@@ -30238,7 +30324,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30238
30324
  case "camelcase":
30239
30325
  return ".Inf";
30240
30326
  }
30241
- else if (Number.NEGATIVE_INFINITY === object)
30327
+ } else if (Number.NEGATIVE_INFINITY === object) {
30242
30328
  switch (style) {
30243
30329
  case "lowercase":
30244
30330
  return "-.inf";
@@ -30247,15 +30333,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30247
30333
  case "camelcase":
30248
30334
  return "-.Inf";
30249
30335
  }
30250
- else if (common.isNegativeZero(object))
30336
+ } else if (common2.isNegativeZero(object)) {
30251
30337
  return "-0.0";
30338
+ }
30252
30339
  const res = object.toString(10);
30253
30340
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
30254
30341
  }
30255
30342
  function isFloat(object) {
30256
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
30343
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
30257
30344
  }
30258
- module.exports = new Type("tag:yaml.org,2002:float", {
30345
+ float = new Type2("tag:yaml.org,2002:float", {
30259
30346
  kind: "scalar",
30260
30347
  resolve: resolveYamlFloat,
30261
30348
  construct: constructYamlFloat,
@@ -30263,22 +30350,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30263
30350
  represent: representYamlFloat,
30264
30351
  defaultStyle: "lowercase"
30265
30352
  });
30266
- });
30267
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
30268
- module.exports = require_failsafe().extend({ implicit: [
30269
- require_null(),
30270
- require_bool(),
30271
- require_int(),
30272
- require_float()
30273
- ] });
30274
- });
30275
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
30276
- module.exports = require_json();
30277
- });
30278
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30279
- var Type = require_type();
30280
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
30281
- 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]))?))?$");
30353
+ return float;
30354
+ }
30355
+ var json;
30356
+ var hasRequiredJson;
30357
+ function requireJson() {
30358
+ if (hasRequiredJson)
30359
+ return json;
30360
+ hasRequiredJson = 1;
30361
+ json = requireFailsafe().extend({
30362
+ implicit: [
30363
+ require_null(),
30364
+ requireBool(),
30365
+ requireInt(),
30366
+ requireFloat()
30367
+ ]
30368
+ });
30369
+ return json;
30370
+ }
30371
+ var core;
30372
+ var hasRequiredCore;
30373
+ function requireCore() {
30374
+ if (hasRequiredCore)
30375
+ return core;
30376
+ hasRequiredCore = 1;
30377
+ core = requireJson();
30378
+ return core;
30379
+ }
30380
+ var timestamp;
30381
+ var hasRequiredTimestamp;
30382
+ function requireTimestamp() {
30383
+ if (hasRequiredTimestamp)
30384
+ return timestamp;
30385
+ hasRequiredTimestamp = 1;
30386
+ const Type2 = requireType();
30387
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
30388
+ 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]))?))?$");
30282
30389
  function resolveYamlTimestamp(data) {
30283
30390
  if (data === null)
30284
30391
  return false;
@@ -30299,15 +30406,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30299
30406
  const year = +match[1];
30300
30407
  const month = +match[2] - 1;
30301
30408
  const day = +match[3];
30302
- if (!match[4])
30409
+ if (!match[4]) {
30303
30410
  return new Date(Date.UTC(year, month, day));
30411
+ }
30304
30412
  const hour = +match[4];
30305
30413
  const minute = +match[5];
30306
30414
  const second = +match[6];
30307
30415
  if (match[7]) {
30308
30416
  fraction = match[7].slice(0, 3);
30309
- while (fraction.length < 3)
30417
+ while (fraction.length < 3) {
30310
30418
  fraction += "0";
30419
+ }
30311
30420
  fraction = +fraction;
30312
30421
  }
30313
30422
  if (match[9]) {
@@ -30325,36 +30434,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30325
30434
  function representYamlTimestamp(object) {
30326
30435
  return object.toISOString();
30327
30436
  }
30328
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
30437
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
30329
30438
  kind: "scalar",
30330
30439
  resolve: resolveYamlTimestamp,
30331
30440
  construct: constructYamlTimestamp,
30332
30441
  instanceOf: Date,
30333
30442
  represent: representYamlTimestamp
30334
30443
  });
30335
- });
30336
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
30337
- var Type = require_type();
30444
+ return timestamp;
30445
+ }
30446
+ var merge;
30447
+ var hasRequiredMerge;
30448
+ function requireMerge() {
30449
+ if (hasRequiredMerge)
30450
+ return merge;
30451
+ hasRequiredMerge = 1;
30452
+ const Type2 = requireType();
30338
30453
  function resolveYamlMerge(data) {
30339
30454
  return data === "<<" || data === null;
30340
30455
  }
30341
- module.exports = new Type("tag:yaml.org,2002:merge", {
30456
+ merge = new Type2("tag:yaml.org,2002:merge", {
30342
30457
  kind: "scalar",
30343
30458
  resolve: resolveYamlMerge
30344
30459
  });
30345
- });
30346
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30347
- var Type = require_type();
30348
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
30460
+ return merge;
30461
+ }
30462
+ var binary;
30463
+ var hasRequiredBinary;
30464
+ function requireBinary() {
30465
+ if (hasRequiredBinary)
30466
+ return binary;
30467
+ hasRequiredBinary = 1;
30468
+ const Type2 = requireType();
30469
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
30349
30470
  \r`;
30350
30471
  function resolveYamlBinary(data) {
30351
30472
  if (data === null)
30352
30473
  return false;
30353
30474
  let bitlen = 0;
30354
30475
  const max = data.length;
30355
- const map = BASE64_MAP;
30476
+ const map2 = BASE64_MAP;
30356
30477
  for (let idx = 0;idx < max; idx++) {
30357
- const code = map.indexOf(data.charAt(idx));
30478
+ const code = map2.indexOf(data.charAt(idx));
30358
30479
  if (code > 64)
30359
30480
  continue;
30360
30481
  if (code < 0)
@@ -30366,7 +30487,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30366
30487
  function constructYamlBinary(data) {
30367
30488
  const input = data.replace(/[\r\n=]/g, "");
30368
30489
  const max = input.length;
30369
- const map = BASE64_MAP;
30490
+ const map2 = BASE64_MAP;
30370
30491
  let bits = 0;
30371
30492
  const result = [];
30372
30493
  for (let idx = 0;idx < max; idx++) {
@@ -30375,7 +30496,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30375
30496
  result.push(bits >> 8 & 255);
30376
30497
  result.push(bits & 255);
30377
30498
  }
30378
- bits = bits << 6 | map.indexOf(input.charAt(idx));
30499
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
30379
30500
  }
30380
30501
  const tailbits = max % 4 * 6;
30381
30502
  if (tailbits === 0) {
@@ -30385,58 +30506,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30385
30506
  } else if (tailbits === 18) {
30386
30507
  result.push(bits >> 10 & 255);
30387
30508
  result.push(bits >> 2 & 255);
30388
- } else if (tailbits === 12)
30509
+ } else if (tailbits === 12) {
30389
30510
  result.push(bits >> 4 & 255);
30511
+ }
30390
30512
  return new Uint8Array(result);
30391
30513
  }
30392
30514
  function representYamlBinary(object) {
30393
30515
  let result = "";
30394
30516
  let bits = 0;
30395
30517
  const max = object.length;
30396
- const map = BASE64_MAP;
30518
+ const map2 = BASE64_MAP;
30397
30519
  for (let idx = 0;idx < max; idx++) {
30398
30520
  if (idx % 3 === 0 && idx) {
30399
- result += map[bits >> 18 & 63];
30400
- result += map[bits >> 12 & 63];
30401
- result += map[bits >> 6 & 63];
30402
- result += map[bits & 63];
30521
+ result += map2[bits >> 18 & 63];
30522
+ result += map2[bits >> 12 & 63];
30523
+ result += map2[bits >> 6 & 63];
30524
+ result += map2[bits & 63];
30403
30525
  }
30404
30526
  bits = (bits << 8) + object[idx];
30405
30527
  }
30406
30528
  const tail = max % 3;
30407
30529
  if (tail === 0) {
30408
- result += map[bits >> 18 & 63];
30409
- result += map[bits >> 12 & 63];
30410
- result += map[bits >> 6 & 63];
30411
- result += map[bits & 63];
30530
+ result += map2[bits >> 18 & 63];
30531
+ result += map2[bits >> 12 & 63];
30532
+ result += map2[bits >> 6 & 63];
30533
+ result += map2[bits & 63];
30412
30534
  } else if (tail === 2) {
30413
- result += map[bits >> 10 & 63];
30414
- result += map[bits >> 4 & 63];
30415
- result += map[bits << 2 & 63];
30416
- result += map[64];
30535
+ result += map2[bits >> 10 & 63];
30536
+ result += map2[bits >> 4 & 63];
30537
+ result += map2[bits << 2 & 63];
30538
+ result += map2[64];
30417
30539
  } else if (tail === 1) {
30418
- result += map[bits >> 2 & 63];
30419
- result += map[bits << 4 & 63];
30420
- result += map[64];
30421
- result += map[64];
30540
+ result += map2[bits >> 2 & 63];
30541
+ result += map2[bits << 4 & 63];
30542
+ result += map2[64];
30543
+ result += map2[64];
30422
30544
  }
30423
30545
  return result;
30424
30546
  }
30425
30547
  function isBinary(obj) {
30426
30548
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
30427
30549
  }
30428
- module.exports = new Type("tag:yaml.org,2002:binary", {
30550
+ binary = new Type2("tag:yaml.org,2002:binary", {
30429
30551
  kind: "scalar",
30430
30552
  resolve: resolveYamlBinary,
30431
30553
  construct: constructYamlBinary,
30432
30554
  predicate: isBinary,
30433
30555
  represent: representYamlBinary
30434
30556
  });
30435
- });
30436
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30437
- var Type = require_type();
30438
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30439
- var _toString = Object.prototype.toString;
30557
+ return binary;
30558
+ }
30559
+ var omap;
30560
+ var hasRequiredOmap;
30561
+ function requireOmap() {
30562
+ if (hasRequiredOmap)
30563
+ return omap;
30564
+ hasRequiredOmap = 1;
30565
+ const Type2 = requireType();
30566
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30567
+ const _toString = Object.prototype.toString;
30440
30568
  function resolveYamlOmap(data) {
30441
30569
  if (data === null)
30442
30570
  return true;
@@ -30448,12 +30576,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30448
30576
  if (_toString.call(pair) !== "[object Object]")
30449
30577
  return false;
30450
30578
  let pairKey;
30451
- for (pairKey in pair)
30452
- if (_hasOwnProperty.call(pair, pairKey))
30579
+ for (pairKey in pair) {
30580
+ if (_hasOwnProperty.call(pair, pairKey)) {
30453
30581
  if (!pairHasKey)
30454
30582
  pairHasKey = true;
30455
30583
  else
30456
30584
  return false;
30585
+ }
30586
+ }
30457
30587
  if (!pairHasKey)
30458
30588
  return false;
30459
30589
  if (objectKeys.indexOf(pairKey) === -1)
@@ -30466,15 +30596,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30466
30596
  function constructYamlOmap(data) {
30467
30597
  return data !== null ? data : [];
30468
30598
  }
30469
- module.exports = new Type("tag:yaml.org,2002:omap", {
30599
+ omap = new Type2("tag:yaml.org,2002:omap", {
30470
30600
  kind: "sequence",
30471
30601
  resolve: resolveYamlOmap,
30472
30602
  construct: constructYamlOmap
30473
30603
  });
30474
- });
30475
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
30476
- var Type = require_type();
30477
- var _toString = Object.prototype.toString;
30604
+ return omap;
30605
+ }
30606
+ var pairs;
30607
+ var hasRequiredPairs;
30608
+ function requirePairs() {
30609
+ if (hasRequiredPairs)
30610
+ return pairs;
30611
+ hasRequiredPairs = 1;
30612
+ const Type2 = requireType();
30613
+ const _toString = Object.prototype.toString;
30478
30614
  function resolveYamlPairs(data) {
30479
30615
  if (data === null)
30480
30616
  return true;
@@ -30503,64 +30639,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
30503
30639
  }
30504
30640
  return result;
30505
30641
  }
30506
- module.exports = new Type("tag:yaml.org,2002:pairs", {
30642
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
30507
30643
  kind: "sequence",
30508
30644
  resolve: resolveYamlPairs,
30509
30645
  construct: constructYamlPairs
30510
30646
  });
30511
- });
30512
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
30513
- var Type = require_type();
30514
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30647
+ return pairs;
30648
+ }
30649
+ var set;
30650
+ var hasRequiredSet;
30651
+ function requireSet() {
30652
+ if (hasRequiredSet)
30653
+ return set;
30654
+ hasRequiredSet = 1;
30655
+ const Type2 = requireType();
30656
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30515
30657
  function resolveYamlSet(data) {
30516
30658
  if (data === null)
30517
30659
  return true;
30518
30660
  const object = data;
30519
- for (const key in object)
30661
+ for (const key in object) {
30520
30662
  if (_hasOwnProperty.call(object, key)) {
30521
30663
  if (object[key] !== null)
30522
30664
  return false;
30523
30665
  }
30666
+ }
30524
30667
  return true;
30525
30668
  }
30526
30669
  function constructYamlSet(data) {
30527
30670
  return data !== null ? data : {};
30528
30671
  }
30529
- module.exports = new Type("tag:yaml.org,2002:set", {
30672
+ set = new Type2("tag:yaml.org,2002:set", {
30530
30673
  kind: "mapping",
30531
30674
  resolve: resolveYamlSet,
30532
30675
  construct: constructYamlSet
30533
30676
  });
30534
- });
30535
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
30536
- module.exports = require_core().extend({
30537
- implicit: [require_timestamp(), require_merge()],
30677
+ return set;
30678
+ }
30679
+ var _default;
30680
+ var hasRequired_default;
30681
+ function require_default() {
30682
+ if (hasRequired_default)
30683
+ return _default;
30684
+ hasRequired_default = 1;
30685
+ _default = requireCore().extend({
30686
+ implicit: [
30687
+ requireTimestamp(),
30688
+ requireMerge()
30689
+ ],
30538
30690
  explicit: [
30539
- require_binary(),
30540
- require_omap(),
30541
- require_pairs(),
30542
- require_set()
30691
+ requireBinary(),
30692
+ requireOmap(),
30693
+ requirePairs(),
30694
+ requireSet()
30543
30695
  ]
30544
30696
  });
30545
- });
30546
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30547
- var common = require_common();
30548
- var YAMLException = require_exception();
30549
- var makeSnippet = require_snippet();
30550
- var DEFAULT_SCHEMA = require_default();
30551
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30552
- var CONTEXT_FLOW_IN = 1;
30553
- var CONTEXT_FLOW_OUT = 2;
30554
- var CONTEXT_BLOCK_IN = 3;
30555
- var CONTEXT_BLOCK_OUT = 4;
30556
- var CHOMPING_CLIP = 1;
30557
- var CHOMPING_STRIP = 2;
30558
- var CHOMPING_KEEP = 3;
30559
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
30560
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
30561
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
30562
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
30563
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
30697
+ return _default;
30698
+ }
30699
+ var hasRequiredLoader;
30700
+ function requireLoader() {
30701
+ if (hasRequiredLoader)
30702
+ return loader;
30703
+ hasRequiredLoader = 1;
30704
+ const common2 = requireCommon();
30705
+ const YAMLException2 = requireException();
30706
+ const makeSnippet = requireSnippet();
30707
+ const DEFAULT_SCHEMA2 = require_default();
30708
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30709
+ const CONTEXT_FLOW_IN = 1;
30710
+ const CONTEXT_FLOW_OUT = 2;
30711
+ const CONTEXT_BLOCK_IN = 3;
30712
+ const CONTEXT_BLOCK_OUT = 4;
30713
+ const CHOMPING_CLIP = 1;
30714
+ const CHOMPING_STRIP = 2;
30715
+ const CHOMPING_KEEP = 3;
30716
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
30717
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
30718
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
30719
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
30720
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
30564
30721
  function _class(obj) {
30565
30722
  return Object.prototype.toString.call(obj);
30566
30723
  }
@@ -30577,25 +30734,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30577
30734
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
30578
30735
  }
30579
30736
  function fromHexCode(c) {
30580
- if (c >= 48 && c <= 57)
30737
+ if (c >= 48 && c <= 57) {
30581
30738
  return c - 48;
30739
+ }
30582
30740
  const lc = c | 32;
30583
- if (lc >= 97 && lc <= 102)
30741
+ if (lc >= 97 && lc <= 102) {
30584
30742
  return lc - 97 + 10;
30743
+ }
30585
30744
  return -1;
30586
30745
  }
30587
30746
  function escapedHexLen(c) {
30588
- if (c === 120)
30747
+ if (c === 120) {
30589
30748
  return 2;
30590
- if (c === 117)
30749
+ }
30750
+ if (c === 117) {
30591
30751
  return 4;
30592
- if (c === 85)
30752
+ }
30753
+ if (c === 85) {
30593
30754
  return 8;
30755
+ }
30594
30756
  return 0;
30595
30757
  }
30596
30758
  function fromDecimalCode(c) {
30597
- if (c >= 48 && c <= 57)
30759
+ if (c >= 48 && c <= 57) {
30598
30760
  return c - 48;
30761
+ }
30599
30762
  return -1;
30600
30763
  }
30601
30764
  function simpleEscapeSequence(c) {
@@ -30642,23 +30805,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30642
30805
  }
30643
30806
  }
30644
30807
  function charFromCodepoint(c) {
30645
- if (c <= 65535)
30808
+ if (c <= 65535) {
30646
30809
  return String.fromCharCode(c);
30810
+ }
30647
30811
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
30648
30812
  }
30649
30813
  function setProperty(object, key, value) {
30650
- if (key === "__proto__")
30814
+ if (key === "__proto__") {
30651
30815
  Object.defineProperty(object, key, {
30652
30816
  configurable: true,
30653
30817
  enumerable: true,
30654
30818
  writable: true,
30655
30819
  value
30656
30820
  });
30657
- else
30821
+ } else {
30658
30822
  object[key] = value;
30823
+ }
30659
30824
  }
30660
- var simpleEscapeCheck = new Array(256);
30661
- var simpleEscapeMap = new Array(256);
30825
+ const simpleEscapeCheck = new Array(256);
30826
+ const simpleEscapeMap = new Array(256);
30662
30827
  for (let i = 0;i < 256; i++) {
30663
30828
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
30664
30829
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -30666,13 +30831,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30666
30831
  function State(input, options) {
30667
30832
  this.input = input;
30668
30833
  this.filename = options["filename"] || null;
30669
- this.schema = options["schema"] || DEFAULT_SCHEMA;
30834
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
30670
30835
  this.onWarning = options["onWarning"] || null;
30671
30836
  this.legacy = options["legacy"] || false;
30672
30837
  this.json = options["json"] || false;
30673
30838
  this.listener = options["listener"] || null;
30674
30839
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
30675
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
30840
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
30676
30841
  this.implicitTypes = this.schema.compiledImplicit;
30677
30842
  this.typeMap = this.schema.compiledTypeMap;
30678
30843
  this.length = input.length;
@@ -30681,6 +30846,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30681
30846
  this.lineStart = 0;
30682
30847
  this.lineIndent = 0;
30683
30848
  this.depth = 0;
30849
+ this.totalMergeKeys = 0;
30684
30850
  this.firstTabInLine = -1;
30685
30851
  this.documents = [];
30686
30852
  this.anchorMapTransactions = [];
@@ -30694,29 +30860,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30694
30860
  column: state.position - state.lineStart
30695
30861
  };
30696
30862
  mark.snippet = makeSnippet(mark);
30697
- return new YAMLException(message, mark);
30863
+ return new YAMLException2(message, mark);
30698
30864
  }
30699
30865
  function throwError(state, message) {
30700
30866
  throw generateError(state, message);
30701
30867
  }
30702
30868
  function throwWarning(state, message) {
30703
- if (state.onWarning)
30869
+ if (state.onWarning) {
30704
30870
  state.onWarning.call(null, generateError(state, message));
30871
+ }
30705
30872
  }
30706
30873
  function storeAnchor(state, name, value) {
30707
30874
  const transactions = state.anchorMapTransactions;
30708
30875
  if (transactions.length !== 0) {
30709
30876
  const transaction = transactions[transactions.length - 1];
30710
- if (!_hasOwnProperty.call(transaction, name))
30877
+ if (!_hasOwnProperty.call(transaction, name)) {
30711
30878
  transaction[name] = {
30712
30879
  existed: _hasOwnProperty.call(state.anchorMap, name),
30713
30880
  value: state.anchorMap[name]
30714
30881
  };
30882
+ }
30715
30883
  }
30716
30884
  state.anchorMap[name] = value;
30717
30885
  }
30718
30886
  function beginAnchorTransaction(state) {
30719
- state.anchorMapTransactions.push(Object.create(null));
30887
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
30720
30888
  }
30721
30889
  function commitAnchorTransaction(state) {
30722
30890
  const transaction = state.anchorMapTransactions.pop();
@@ -30727,8 +30895,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30727
30895
  const names = Object.keys(transaction);
30728
30896
  for (let index = 0, length = names.length;index < length; index += 1) {
30729
30897
  const name = names[index];
30730
- if (!_hasOwnProperty.call(parent, name))
30898
+ if (!_hasOwnProperty.call(parent, name)) {
30731
30899
  parent[name] = transaction[name];
30900
+ }
30732
30901
  }
30733
30902
  }
30734
30903
  function rollbackAnchorTransaction(state) {
@@ -30736,10 +30905,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30736
30905
  const names = Object.keys(transaction);
30737
30906
  for (let index = names.length - 1;index >= 0; index -= 1) {
30738
30907
  const entry = transaction[names[index]];
30739
- if (entry.existed)
30908
+ if (entry.existed) {
30740
30909
  state.anchorMap[names[index]] = entry.value;
30741
- else
30910
+ } else {
30742
30911
  delete state.anchorMap[names[index]];
30912
+ }
30743
30913
  }
30744
30914
  }
30745
30915
  function snapshotState(state) {
@@ -30766,36 +30936,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30766
30936
  state.kind = snapshot.kind;
30767
30937
  state.result = snapshot.result;
30768
30938
  }
30769
- var directiveHandlers = {
30939
+ const directiveHandlers = {
30770
30940
  YAML: function handleYamlDirective(state, name, args) {
30771
- if (state.version !== null)
30941
+ if (state.version !== null) {
30772
30942
  throwError(state, "duplication of %YAML directive");
30773
- if (args.length !== 1)
30943
+ }
30944
+ if (args.length !== 1) {
30774
30945
  throwError(state, "YAML directive accepts exactly one argument");
30946
+ }
30775
30947
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
30776
- if (match === null)
30948
+ if (match === null) {
30777
30949
  throwError(state, "ill-formed argument of the YAML directive");
30950
+ }
30778
30951
  const major = parseInt(match[1], 10);
30779
30952
  const minor = parseInt(match[2], 10);
30780
- if (major !== 1)
30953
+ if (major !== 1) {
30781
30954
  throwError(state, "unacceptable YAML version of the document");
30955
+ }
30782
30956
  state.version = args[0];
30783
30957
  state.checkLineBreaks = minor < 2;
30784
- if (minor !== 1 && minor !== 2)
30958
+ if (minor !== 1 && minor !== 2) {
30785
30959
  throwWarning(state, "unsupported YAML version of the document");
30960
+ }
30786
30961
  },
30787
30962
  TAG: function handleTagDirective(state, name, args) {
30788
30963
  let prefix;
30789
- if (args.length !== 2)
30964
+ if (args.length !== 2) {
30790
30965
  throwError(state, "TAG directive accepts exactly two arguments");
30966
+ }
30791
30967
  const handle = args[0];
30792
30968
  prefix = args[1];
30793
- if (!PATTERN_TAG_HANDLE.test(handle))
30969
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
30794
30970
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
30795
- if (_hasOwnProperty.call(state.tagMap, handle))
30971
+ }
30972
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
30796
30973
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
30797
- if (!PATTERN_TAG_URI.test(prefix))
30974
+ }
30975
+ if (!PATTERN_TAG_URI.test(prefix)) {
30798
30976
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
30977
+ }
30799
30978
  try {
30800
30979
  prefix = decodeURIComponent(prefix);
30801
30980
  } catch (err) {
@@ -30807,23 +30986,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30807
30986
  function captureSegment(state, start, end, checkJson) {
30808
30987
  if (start < end) {
30809
30988
  const _result = state.input.slice(start, end);
30810
- if (checkJson)
30989
+ if (checkJson) {
30811
30990
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
30812
30991
  const _character = _result.charCodeAt(_position);
30813
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
30992
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
30814
30993
  throwError(state, "expected valid JSON character");
30994
+ }
30815
30995
  }
30816
- else if (PATTERN_NON_PRINTABLE.test(_result))
30996
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
30817
30997
  throwError(state, "the stream contains non-printable characters");
30998
+ }
30818
30999
  state.result += _result;
30819
31000
  }
30820
31001
  }
30821
31002
  function mergeMappings(state, destination, source, overridableKeys) {
30822
- if (!common.isObject(source))
31003
+ if (!common2.isObject(source)) {
30823
31004
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
31005
+ }
30824
31006
  const sourceKeys = Object.keys(source);
30825
31007
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
30826
31008
  const key = sourceKeys[index];
31009
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
31010
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
31011
+ }
30827
31012
  if (!_hasOwnProperty.call(destination, key)) {
30828
31013
  setProperty(destination, key, source[key]);
30829
31014
  overridableKeys[key] = true;
@@ -30834,32 +31019,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30834
31019
  if (Array.isArray(keyNode)) {
30835
31020
  keyNode = Array.prototype.slice.call(keyNode);
30836
31021
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
30837
- if (Array.isArray(keyNode[index]))
31022
+ if (Array.isArray(keyNode[index])) {
30838
31023
  throwError(state, "nested arrays are not supported inside keys");
30839
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
31024
+ }
31025
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
30840
31026
  keyNode[index] = "[object Object]";
31027
+ }
30841
31028
  }
30842
31029
  }
30843
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
31030
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
30844
31031
  keyNode = "[object Object]";
31032
+ }
30845
31033
  keyNode = String(keyNode);
30846
- if (_result === null)
31034
+ if (_result === null) {
30847
31035
  _result = {};
30848
- if (keyTag === "tag:yaml.org,2002:merge")
31036
+ }
31037
+ if (keyTag === "tag:yaml.org,2002:merge") {
30849
31038
  if (Array.isArray(valueNode)) {
30850
- if (valueNode.length > state.maxMergeSeqLength)
30851
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
30852
- const seen = /* @__PURE__ */ new Set;
30853
31039
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
30854
- const src = valueNode[index];
30855
- if (seen.has(src))
30856
- continue;
30857
- seen.add(src);
30858
- mergeMappings(state, _result, src, overridableKeys);
31040
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
30859
31041
  }
30860
- } else
31042
+ } else {
30861
31043
  mergeMappings(state, _result, valueNode, overridableKeys);
30862
- else {
31044
+ }
31045
+ } else {
30863
31046
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
30864
31047
  state.line = startLine || state.line;
30865
31048
  state.lineStart = startLineStart || state.lineStart;
@@ -30873,14 +31056,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30873
31056
  }
30874
31057
  function readLineBreak(state) {
30875
31058
  const ch = state.input.charCodeAt(state.position);
30876
- if (ch === 10)
31059
+ if (ch === 10) {
30877
31060
  state.position++;
30878
- else if (ch === 13) {
31061
+ } else if (ch === 13) {
30879
31062
  state.position++;
30880
- if (state.input.charCodeAt(state.position) === 10)
31063
+ if (state.input.charCodeAt(state.position) === 10) {
30881
31064
  state.position++;
30882
- } else
31065
+ }
31066
+ } else {
30883
31067
  throwError(state, "a line break is expected");
31068
+ }
30884
31069
  state.line += 1;
30885
31070
  state.lineStart = state.position;
30886
31071
  state.firstTabInLine = -1;
@@ -30890,14 +31075,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30890
31075
  let ch = state.input.charCodeAt(state.position);
30891
31076
  while (ch !== 0) {
30892
31077
  while (isWhiteSpace(ch)) {
30893
- if (ch === 9 && state.firstTabInLine === -1)
31078
+ if (ch === 9 && state.firstTabInLine === -1) {
30894
31079
  state.firstTabInLine = state.position;
31080
+ }
30895
31081
  ch = state.input.charCodeAt(++state.position);
30896
31082
  }
30897
- if (allowComments && ch === 35)
30898
- do
31083
+ if (allowComments && ch === 35) {
31084
+ do {
30899
31085
  ch = state.input.charCodeAt(++state.position);
30900
- while (ch !== 10 && ch !== 13 && ch !== 0);
31086
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
31087
+ }
30901
31088
  if (isEol(ch)) {
30902
31089
  readLineBreak(state);
30903
31090
  ch = state.input.charCodeAt(state.position);
@@ -30907,11 +31094,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30907
31094
  state.lineIndent++;
30908
31095
  ch = state.input.charCodeAt(++state.position);
30909
31096
  }
30910
- } else
31097
+ } else {
30911
31098
  break;
31099
+ }
30912
31100
  }
30913
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
31101
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
30914
31102
  throwWarning(state, "deficient indentation");
31103
+ }
30915
31104
  return lineBreaks;
30916
31105
  }
30917
31106
  function testDocumentSeparator(state) {
@@ -30920,17 +31109,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30920
31109
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
30921
31110
  _position += 3;
30922
31111
  ch = state.input.charCodeAt(_position);
30923
- if (ch === 0 || isWsOrEol(ch))
31112
+ if (ch === 0 || isWsOrEol(ch)) {
30924
31113
  return true;
31114
+ }
30925
31115
  }
30926
31116
  return false;
30927
31117
  }
30928
31118
  function writeFoldedLines(state, count) {
30929
- if (count === 1)
31119
+ if (count === 1) {
30930
31120
  state.result += " ";
30931
- else if (count > 1)
30932
- state.result += common.repeat(`
31121
+ } else if (count > 1) {
31122
+ state.result += common2.repeat(`
30933
31123
  `, count - 1);
31124
+ }
30934
31125
  }
30935
31126
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
30936
31127
  let captureStart;
@@ -30942,12 +31133,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30942
31133
  const _kind = state.kind;
30943
31134
  const _result = state.result;
30944
31135
  let ch = state.input.charCodeAt(state.position);
30945
- 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)
31136
+ 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) {
30946
31137
  return false;
31138
+ }
30947
31139
  if (ch === 63 || ch === 45) {
30948
31140
  const following = state.input.charCodeAt(state.position + 1);
30949
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
31141
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
30950
31142
  return false;
31143
+ }
30951
31144
  }
30952
31145
  state.kind = "scalar";
30953
31146
  state.result = "";
@@ -30956,14 +31149,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30956
31149
  while (ch !== 0) {
30957
31150
  if (ch === 58) {
30958
31151
  const following = state.input.charCodeAt(state.position + 1);
30959
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
31152
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
30960
31153
  break;
31154
+ }
30961
31155
  } else if (ch === 35) {
30962
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
31156
+ const preceding = state.input.charCodeAt(state.position - 1);
31157
+ if (isWsOrEol(preceding)) {
30963
31158
  break;
30964
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
31159
+ }
31160
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
30965
31161
  break;
30966
- else if (isEol(ch)) {
31162
+ } else if (isEol(ch)) {
30967
31163
  _line = state.line;
30968
31164
  _lineStart = state.lineStart;
30969
31165
  _lineIndent = state.lineIndent;
@@ -30986,13 +31182,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30986
31182
  captureStart = captureEnd = state.position;
30987
31183
  hasPendingContent = false;
30988
31184
  }
30989
- if (!isWhiteSpace(ch))
31185
+ if (!isWhiteSpace(ch)) {
30990
31186
  captureEnd = state.position + 1;
31187
+ }
30991
31188
  ch = state.input.charCodeAt(++state.position);
30992
31189
  }
30993
31190
  captureSegment(state, captureStart, captureEnd, false);
30994
- if (state.result)
31191
+ if (state.result) {
30995
31192
  return true;
31193
+ }
30996
31194
  state.kind = _kind;
30997
31195
  state.result = _result;
30998
31196
  return false;
@@ -31001,13 +31199,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31001
31199
  let captureStart;
31002
31200
  let captureEnd;
31003
31201
  let ch = state.input.charCodeAt(state.position);
31004
- if (ch !== 39)
31202
+ if (ch !== 39) {
31005
31203
  return false;
31204
+ }
31006
31205
  state.kind = "scalar";
31007
31206
  state.result = "";
31008
31207
  state.position++;
31009
31208
  captureStart = captureEnd = state.position;
31010
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
31209
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
31011
31210
  if (ch === 39) {
31012
31211
  captureSegment(state, captureStart, state.position, true);
31013
31212
  ch = state.input.charCodeAt(++state.position);
@@ -31015,19 +31214,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31015
31214
  captureStart = state.position;
31016
31215
  state.position++;
31017
31216
  captureEnd = state.position;
31018
- } else
31217
+ } else {
31019
31218
  return true;
31219
+ }
31020
31220
  } else if (isEol(ch)) {
31021
31221
  captureSegment(state, captureStart, captureEnd, true);
31022
31222
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
31023
31223
  captureStart = captureEnd = state.position;
31024
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
31224
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
31025
31225
  throwError(state, "unexpected end of the document within a single quoted scalar");
31026
- else {
31226
+ } else {
31027
31227
  state.position++;
31028
- if (!isWhiteSpace(ch))
31228
+ if (!isWhiteSpace(ch)) {
31029
31229
  captureEnd = state.position;
31230
+ }
31030
31231
  }
31232
+ }
31031
31233
  throwError(state, "unexpected end of the stream within a single quoted scalar");
31032
31234
  }
31033
31235
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -31035,13 +31237,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31035
31237
  let captureEnd;
31036
31238
  let tmp;
31037
31239
  let ch = state.input.charCodeAt(state.position);
31038
- if (ch !== 34)
31240
+ if (ch !== 34) {
31039
31241
  return false;
31242
+ }
31040
31243
  state.kind = "scalar";
31041
31244
  state.result = "";
31042
31245
  state.position++;
31043
31246
  captureStart = captureEnd = state.position;
31044
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
31247
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
31045
31248
  if (ch === 34) {
31046
31249
  captureSegment(state, captureStart, state.position, true);
31047
31250
  state.position++;
@@ -31049,9 +31252,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31049
31252
  } else if (ch === 92) {
31050
31253
  captureSegment(state, captureStart, state.position, true);
31051
31254
  ch = state.input.charCodeAt(++state.position);
31052
- if (isEol(ch))
31255
+ if (isEol(ch)) {
31053
31256
  skipSeparationSpace(state, false, nodeIndent);
31054
- else if (ch < 256 && simpleEscapeCheck[ch]) {
31257
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
31055
31258
  state.result += simpleEscapeMap[ch];
31056
31259
  state.position++;
31057
31260
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -31059,27 +31262,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31059
31262
  let hexResult = 0;
31060
31263
  for (;hexLength > 0; hexLength--) {
31061
31264
  ch = state.input.charCodeAt(++state.position);
31062
- if ((tmp = fromHexCode(ch)) >= 0)
31265
+ if ((tmp = fromHexCode(ch)) >= 0) {
31063
31266
  hexResult = (hexResult << 4) + tmp;
31064
- else
31267
+ } else {
31065
31268
  throwError(state, "expected hexadecimal character");
31269
+ }
31066
31270
  }
31067
31271
  state.result += charFromCodepoint(hexResult);
31068
31272
  state.position++;
31069
- } else
31273
+ } else {
31070
31274
  throwError(state, "unknown escape sequence");
31275
+ }
31071
31276
  captureStart = captureEnd = state.position;
31072
31277
  } else if (isEol(ch)) {
31073
31278
  captureSegment(state, captureStart, captureEnd, true);
31074
31279
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
31075
31280
  captureStart = captureEnd = state.position;
31076
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
31281
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
31077
31282
  throwError(state, "unexpected end of the document within a double quoted scalar");
31078
- else {
31283
+ } else {
31079
31284
  state.position++;
31080
- if (!isWhiteSpace(ch))
31285
+ if (!isWhiteSpace(ch)) {
31081
31286
  captureEnd = state.position;
31287
+ }
31082
31288
  }
31289
+ }
31083
31290
  throwError(state, "unexpected end of the stream within a double quoted scalar");
31084
31291
  }
31085
31292
  function readFlowCollection(state, nodeIndent) {
@@ -31094,7 +31301,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31094
31301
  let isPair;
31095
31302
  let isExplicitPair;
31096
31303
  let isMapping;
31097
- const overridableKeys = Object.create(null);
31304
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
31098
31305
  let keyNode;
31099
31306
  let keyTag;
31100
31307
  let valueNode;
@@ -31107,10 +31314,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31107
31314
  terminator = 125;
31108
31315
  isMapping = true;
31109
31316
  _result = {};
31110
- } else
31317
+ } else {
31111
31318
  return false;
31112
- if (state.anchor !== null)
31319
+ }
31320
+ if (state.anchor !== null) {
31113
31321
  storeAnchor(state, state.anchor, _result);
31322
+ }
31114
31323
  ch = state.input.charCodeAt(++state.position);
31115
31324
  while (ch !== 0) {
31116
31325
  skipSeparationSpace(state, true, nodeIndent);
@@ -31122,14 +31331,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31122
31331
  state.kind = isMapping ? "mapping" : "sequence";
31123
31332
  state.result = _result;
31124
31333
  return true;
31125
- } else if (!readNext)
31334
+ } else if (!readNext) {
31126
31335
  throwError(state, "missed comma between flow collection entries");
31127
- else if (ch === 44)
31336
+ } else if (ch === 44) {
31128
31337
  throwError(state, "expected the node content, but found ','");
31338
+ }
31129
31339
  keyTag = keyNode = valueNode = null;
31130
31340
  isPair = isExplicitPair = false;
31131
31341
  if (ch === 63) {
31132
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
31342
+ const following = state.input.charCodeAt(state.position + 1);
31343
+ if (isWsOrEol(following)) {
31133
31344
  isPair = isExplicitPair = true;
31134
31345
  state.position++;
31135
31346
  skipSeparationSpace(state, true, nodeIndent);
@@ -31150,19 +31361,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31150
31361
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
31151
31362
  valueNode = state.result;
31152
31363
  }
31153
- if (isMapping)
31364
+ if (isMapping) {
31154
31365
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
31155
- else if (isPair)
31366
+ } else if (isPair) {
31156
31367
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
31157
- else
31368
+ } else {
31158
31369
  _result.push(keyNode);
31370
+ }
31159
31371
  skipSeparationSpace(state, true, nodeIndent);
31160
31372
  ch = state.input.charCodeAt(state.position);
31161
31373
  if (ch === 44) {
31162
31374
  readNext = true;
31163
31375
  ch = state.input.charCodeAt(++state.position);
31164
- } else
31376
+ } else {
31165
31377
  readNext = false;
31378
+ }
31166
31379
  }
31167
31380
  throwError(state, "unexpected end of the stream within a flow collection");
31168
31381
  }
@@ -31176,40 +31389,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31176
31389
  let atMoreIndented = false;
31177
31390
  let tmp;
31178
31391
  let ch = state.input.charCodeAt(state.position);
31179
- if (ch === 124)
31392
+ if (ch === 124) {
31180
31393
  folding = false;
31181
- else if (ch === 62)
31394
+ } else if (ch === 62) {
31182
31395
  folding = true;
31183
- else
31396
+ } else {
31184
31397
  return false;
31398
+ }
31185
31399
  state.kind = "scalar";
31186
31400
  state.result = "";
31187
31401
  while (ch !== 0) {
31188
31402
  ch = state.input.charCodeAt(++state.position);
31189
- if (ch === 43 || ch === 45)
31190
- if (CHOMPING_CLIP === chomping)
31403
+ if (ch === 43 || ch === 45) {
31404
+ if (CHOMPING_CLIP === chomping) {
31191
31405
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
31192
- else
31406
+ } else {
31193
31407
  throwError(state, "repeat of a chomping mode identifier");
31194
- else if ((tmp = fromDecimalCode(ch)) >= 0)
31195
- if (tmp === 0)
31408
+ }
31409
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
31410
+ if (tmp === 0) {
31196
31411
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
31197
- else if (!detectedIndent) {
31412
+ } else if (!detectedIndent) {
31198
31413
  textIndent = nodeIndent + tmp - 1;
31199
31414
  detectedIndent = true;
31200
- } else
31415
+ } else {
31201
31416
  throwError(state, "repeat of an indentation width identifier");
31202
- else
31417
+ }
31418
+ } else {
31203
31419
  break;
31420
+ }
31204
31421
  }
31205
31422
  if (isWhiteSpace(ch)) {
31206
- do
31423
+ do {
31207
31424
  ch = state.input.charCodeAt(++state.position);
31208
- while (isWhiteSpace(ch));
31209
- if (ch === 35)
31210
- do
31425
+ } while (isWhiteSpace(ch));
31426
+ if (ch === 35) {
31427
+ do {
31211
31428
  ch = state.input.charCodeAt(++state.position);
31212
- while (!isEol(ch) && ch !== 0);
31429
+ } while (!isEol(ch) && ch !== 0);
31430
+ }
31213
31431
  }
31214
31432
  while (ch !== 0) {
31215
31433
  readLineBreak(state);
@@ -31219,49 +31437,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31219
31437
  state.lineIndent++;
31220
31438
  ch = state.input.charCodeAt(++state.position);
31221
31439
  }
31222
- if (!detectedIndent && state.lineIndent > textIndent)
31440
+ if (!detectedIndent && state.lineIndent > textIndent) {
31223
31441
  textIndent = state.lineIndent;
31442
+ }
31224
31443
  if (isEol(ch)) {
31225
31444
  emptyLines++;
31226
31445
  continue;
31227
31446
  }
31228
- if (!detectedIndent && textIndent === 0)
31447
+ if (!detectedIndent && textIndent === 0) {
31229
31448
  throwError(state, "missing indentation for block scalar");
31449
+ }
31230
31450
  if (state.lineIndent < textIndent) {
31231
- if (chomping === CHOMPING_KEEP)
31232
- state.result += common.repeat(`
31451
+ if (chomping === CHOMPING_KEEP) {
31452
+ state.result += common2.repeat(`
31233
31453
  `, didReadContent ? 1 + emptyLines : emptyLines);
31234
- else if (chomping === CHOMPING_CLIP) {
31235
- if (didReadContent)
31454
+ } else if (chomping === CHOMPING_CLIP) {
31455
+ if (didReadContent) {
31236
31456
  state.result += `
31237
31457
  `;
31458
+ }
31238
31459
  }
31239
31460
  break;
31240
31461
  }
31241
- if (folding)
31462
+ if (folding) {
31242
31463
  if (isWhiteSpace(ch)) {
31243
31464
  atMoreIndented = true;
31244
- state.result += common.repeat(`
31465
+ state.result += common2.repeat(`
31245
31466
  `, didReadContent ? 1 + emptyLines : emptyLines);
31246
31467
  } else if (atMoreIndented) {
31247
31468
  atMoreIndented = false;
31248
- state.result += common.repeat(`
31469
+ state.result += common2.repeat(`
31249
31470
  `, emptyLines + 1);
31250
31471
  } else if (emptyLines === 0) {
31251
- if (didReadContent)
31472
+ if (didReadContent) {
31252
31473
  state.result += " ";
31253
- } else
31254
- state.result += common.repeat(`
31474
+ }
31475
+ } else {
31476
+ state.result += common2.repeat(`
31255
31477
  `, emptyLines);
31256
- else
31257
- state.result += common.repeat(`
31478
+ }
31479
+ } else {
31480
+ state.result += common2.repeat(`
31258
31481
  `, didReadContent ? 1 + emptyLines : emptyLines);
31482
+ }
31259
31483
  didReadContent = true;
31260
31484
  detectedIndent = true;
31261
31485
  emptyLines = 0;
31262
31486
  const captureStart = state.position;
31263
- while (!isEol(ch) && ch !== 0)
31487
+ while (!isEol(ch) && ch !== 0) {
31264
31488
  ch = state.input.charCodeAt(++state.position);
31489
+ }
31265
31490
  captureSegment(state, captureStart, state.position, false);
31266
31491
  }
31267
31492
  return true;
@@ -31273,18 +31498,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31273
31498
  let detected = false;
31274
31499
  if (state.firstTabInLine !== -1)
31275
31500
  return false;
31276
- if (state.anchor !== null)
31501
+ if (state.anchor !== null) {
31277
31502
  storeAnchor(state, state.anchor, _result);
31503
+ }
31278
31504
  let ch = state.input.charCodeAt(state.position);
31279
31505
  while (ch !== 0) {
31280
31506
  if (state.firstTabInLine !== -1) {
31281
31507
  state.position = state.firstTabInLine;
31282
31508
  throwError(state, "tab characters must not be used in indentation");
31283
31509
  }
31284
- if (ch !== 45)
31510
+ if (ch !== 45) {
31285
31511
  break;
31286
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
31512
+ }
31513
+ const following = state.input.charCodeAt(state.position + 1);
31514
+ if (!isWsOrEol(following)) {
31287
31515
  break;
31516
+ }
31288
31517
  detected = true;
31289
31518
  state.position++;
31290
31519
  if (skipSeparationSpace(state, true, -1)) {
@@ -31299,10 +31528,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31299
31528
  _result.push(state.result);
31300
31529
  skipSeparationSpace(state, true, -1);
31301
31530
  ch = state.input.charCodeAt(state.position);
31302
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
31531
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
31303
31532
  throwError(state, "bad indentation of a sequence entry");
31304
- else if (state.lineIndent < nodeIndent)
31533
+ } else if (state.lineIndent < nodeIndent) {
31305
31534
  break;
31535
+ }
31306
31536
  }
31307
31537
  if (detected) {
31308
31538
  state.tag = _tag;
@@ -31321,7 +31551,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31321
31551
  const _tag = state.tag;
31322
31552
  const _anchor = state.anchor;
31323
31553
  const _result = {};
31324
- const overridableKeys = Object.create(null);
31554
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
31325
31555
  let keyTag = null;
31326
31556
  let keyNode = null;
31327
31557
  let valueNode = null;
@@ -31329,8 +31559,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31329
31559
  let detected = false;
31330
31560
  if (state.firstTabInLine !== -1)
31331
31561
  return false;
31332
- if (state.anchor !== null)
31562
+ if (state.anchor !== null) {
31333
31563
  storeAnchor(state, state.anchor, _result);
31564
+ }
31334
31565
  let ch = state.input.charCodeAt(state.position);
31335
31566
  while (ch !== 0) {
31336
31567
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -31351,24 +31582,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31351
31582
  } else if (atExplicitKey) {
31352
31583
  atExplicitKey = false;
31353
31584
  allowCompact = true;
31354
- } else
31585
+ } else {
31355
31586
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
31587
+ }
31356
31588
  state.position += 1;
31357
31589
  ch = following;
31358
31590
  } else {
31359
31591
  _keyLine = state.line;
31360
31592
  _keyLineStart = state.lineStart;
31361
31593
  _keyPos = state.position;
31362
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
31594
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
31363
31595
  break;
31596
+ }
31364
31597
  if (state.line === _line) {
31365
31598
  ch = state.input.charCodeAt(state.position);
31366
- while (isWhiteSpace(ch))
31599
+ while (isWhiteSpace(ch)) {
31367
31600
  ch = state.input.charCodeAt(++state.position);
31601
+ }
31368
31602
  if (ch === 58) {
31369
31603
  ch = state.input.charCodeAt(++state.position);
31370
- if (!isWsOrEol(ch))
31604
+ if (!isWsOrEol(ch)) {
31371
31605
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
31606
+ }
31372
31607
  if (atExplicitKey) {
31373
31608
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
31374
31609
  keyTag = keyNode = valueNode = null;
@@ -31378,16 +31613,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31378
31613
  allowCompact = false;
31379
31614
  keyTag = state.tag;
31380
31615
  keyNode = state.result;
31381
- } else if (detected)
31616
+ } else if (detected) {
31382
31617
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
31383
- else {
31618
+ } else {
31384
31619
  state.tag = _tag;
31385
31620
  state.anchor = _anchor;
31386
31621
  return true;
31387
31622
  }
31388
- } else if (detected)
31623
+ } else if (detected) {
31389
31624
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
31390
- else {
31625
+ } else {
31391
31626
  state.tag = _tag;
31392
31627
  state.anchor = _anchor;
31393
31628
  return true;
@@ -31399,11 +31634,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31399
31634
  _keyLineStart = state.lineStart;
31400
31635
  _keyPos = state.position;
31401
31636
  }
31402
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
31403
- if (atExplicitKey)
31637
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
31638
+ if (atExplicitKey) {
31404
31639
  keyNode = state.result;
31405
- else
31640
+ } else {
31406
31641
  valueNode = state.result;
31642
+ }
31643
+ }
31407
31644
  if (!atExplicitKey) {
31408
31645
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
31409
31646
  keyTag = keyNode = valueNode = null;
@@ -31411,13 +31648,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31411
31648
  skipSeparationSpace(state, true, -1);
31412
31649
  ch = state.input.charCodeAt(state.position);
31413
31650
  }
31414
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
31651
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
31415
31652
  throwError(state, "bad indentation of a mapping entry");
31416
- else if (state.lineIndent < nodeIndent)
31653
+ } else if (state.lineIndent < nodeIndent) {
31417
31654
  break;
31655
+ }
31418
31656
  }
31419
- if (atExplicitKey)
31657
+ if (atExplicitKey) {
31420
31658
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
31659
+ }
31421
31660
  if (detected) {
31422
31661
  state.tag = _tag;
31423
31662
  state.anchor = _anchor;
@@ -31434,8 +31673,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31434
31673
  let ch = state.input.charCodeAt(state.position);
31435
31674
  if (ch !== 33)
31436
31675
  return false;
31437
- if (state.tag !== null)
31676
+ if (state.tag !== null) {
31438
31677
  throwError(state, "duplication of a tag property");
31678
+ }
31439
31679
  ch = state.input.charCodeAt(++state.position);
31440
31680
  if (ch === 60) {
31441
31681
  isVerbatim = true;
@@ -31444,66 +31684,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31444
31684
  isNamed = true;
31445
31685
  tagHandle = "!!";
31446
31686
  ch = state.input.charCodeAt(++state.position);
31447
- } else
31687
+ } else {
31448
31688
  tagHandle = "!";
31689
+ }
31449
31690
  let _position = state.position;
31450
31691
  if (isVerbatim) {
31451
- do
31692
+ do {
31452
31693
  ch = state.input.charCodeAt(++state.position);
31453
- while (ch !== 0 && ch !== 62);
31694
+ } while (ch !== 0 && ch !== 62);
31454
31695
  if (state.position < state.length) {
31455
31696
  tagName = state.input.slice(_position, state.position);
31456
31697
  ch = state.input.charCodeAt(++state.position);
31457
- } else
31698
+ } else {
31458
31699
  throwError(state, "unexpected end of the stream within a verbatim tag");
31700
+ }
31459
31701
  } else {
31460
31702
  while (ch !== 0 && !isWsOrEol(ch)) {
31461
- if (ch === 33)
31703
+ if (ch === 33) {
31462
31704
  if (!isNamed) {
31463
31705
  tagHandle = state.input.slice(_position - 1, state.position + 1);
31464
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
31706
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
31465
31707
  throwError(state, "named tag handle cannot contain such characters");
31708
+ }
31466
31709
  isNamed = true;
31467
31710
  _position = state.position + 1;
31468
- } else
31711
+ } else {
31469
31712
  throwError(state, "tag suffix cannot contain exclamation marks");
31713
+ }
31714
+ }
31470
31715
  ch = state.input.charCodeAt(++state.position);
31471
31716
  }
31472
31717
  tagName = state.input.slice(_position, state.position);
31473
- if (PATTERN_FLOW_INDICATORS.test(tagName))
31718
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
31474
31719
  throwError(state, "tag suffix cannot contain flow indicator characters");
31720
+ }
31475
31721
  }
31476
- if (tagName && !PATTERN_TAG_URI.test(tagName))
31722
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
31477
31723
  throwError(state, "tag name cannot contain such characters: " + tagName);
31724
+ }
31478
31725
  try {
31479
31726
  tagName = decodeURIComponent(tagName);
31480
31727
  } catch (err) {
31481
31728
  throwError(state, "tag name is malformed: " + tagName);
31482
31729
  }
31483
- if (isVerbatim)
31730
+ if (isVerbatim) {
31484
31731
  state.tag = tagName;
31485
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
31732
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
31486
31733
  state.tag = state.tagMap[tagHandle] + tagName;
31487
- else if (tagHandle === "!")
31734
+ } else if (tagHandle === "!") {
31488
31735
  state.tag = "!" + tagName;
31489
- else if (tagHandle === "!!")
31736
+ } else if (tagHandle === "!!") {
31490
31737
  state.tag = "tag:yaml.org,2002:" + tagName;
31491
- else
31738
+ } else {
31492
31739
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
31740
+ }
31493
31741
  return true;
31494
31742
  }
31495
31743
  function readAnchorProperty(state) {
31496
31744
  let ch = state.input.charCodeAt(state.position);
31497
31745
  if (ch !== 38)
31498
31746
  return false;
31499
- if (state.anchor !== null)
31747
+ if (state.anchor !== null) {
31500
31748
  throwError(state, "duplication of an anchor property");
31749
+ }
31501
31750
  ch = state.input.charCodeAt(++state.position);
31502
31751
  const _position = state.position;
31503
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
31752
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
31504
31753
  ch = state.input.charCodeAt(++state.position);
31505
- if (state.position === _position)
31754
+ }
31755
+ if (state.position === _position) {
31506
31756
  throwError(state, "name of an anchor node must contain at least one character");
31757
+ }
31507
31758
  state.anchor = state.input.slice(_position, state.position);
31508
31759
  return true;
31509
31760
  }
@@ -31513,13 +31764,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31513
31764
  return false;
31514
31765
  ch = state.input.charCodeAt(++state.position);
31515
31766
  const _position = state.position;
31516
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
31767
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
31517
31768
  ch = state.input.charCodeAt(++state.position);
31518
- if (state.position === _position)
31769
+ }
31770
+ if (state.position === _position) {
31519
31771
  throwError(state, "name of an alias node must contain at least one character");
31772
+ }
31520
31773
  const alias = state.input.slice(_position, state.position);
31521
- if (!_hasOwnProperty.call(state.anchorMap, alias))
31774
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
31522
31775
  throwError(state, 'unidentified alias "' + alias + '"');
31776
+ }
31523
31777
  state.result = state.anchorMap[alias];
31524
31778
  skipSeparationSpace(state, true, -1);
31525
31779
  return true;
@@ -31547,14 +31801,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31547
31801
  let atNewLine = false;
31548
31802
  let hasContent = false;
31549
31803
  let propertyStart = null;
31550
- let type;
31804
+ let type2;
31551
31805
  let flowIndent;
31552
31806
  let blockIndent;
31553
- if (state.depth >= state.maxDepth)
31807
+ if (state.depth >= state.maxDepth) {
31554
31808
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
31809
+ }
31555
31810
  state.depth += 1;
31556
- if (state.listener !== null)
31811
+ if (state.listener !== null) {
31557
31812
  state.listener("open", state);
31813
+ }
31558
31814
  state.tag = null;
31559
31815
  state.anchor = null;
31560
31816
  state.kind = null;
@@ -31563,110 +31819,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31563
31819
  if (allowToSeek) {
31564
31820
  if (skipSeparationSpace(state, true, -1)) {
31565
31821
  atNewLine = true;
31566
- if (state.lineIndent > parentIndent)
31822
+ if (state.lineIndent > parentIndent) {
31567
31823
  indentStatus = 1;
31568
- else if (state.lineIndent === parentIndent)
31824
+ } else if (state.lineIndent === parentIndent) {
31569
31825
  indentStatus = 0;
31570
- else if (state.lineIndent < parentIndent)
31826
+ } else if (state.lineIndent < parentIndent) {
31571
31827
  indentStatus = -1;
31828
+ }
31572
31829
  }
31573
31830
  }
31574
- if (indentStatus === 1)
31831
+ if (indentStatus === 1) {
31575
31832
  while (true) {
31576
31833
  const ch = state.input.charCodeAt(state.position);
31577
31834
  const propertyState = snapshotState(state);
31578
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
31835
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
31579
31836
  break;
31580
- if (!readTagProperty(state) && !readAnchorProperty(state))
31837
+ }
31838
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
31581
31839
  break;
31582
- if (propertyStart === null)
31840
+ }
31841
+ if (propertyStart === null) {
31583
31842
  propertyStart = propertyState;
31843
+ }
31584
31844
  if (skipSeparationSpace(state, true, -1)) {
31585
31845
  atNewLine = true;
31586
31846
  allowBlockCollections = allowBlockStyles;
31587
- if (state.lineIndent > parentIndent)
31847
+ if (state.lineIndent > parentIndent) {
31588
31848
  indentStatus = 1;
31589
- else if (state.lineIndent === parentIndent)
31849
+ } else if (state.lineIndent === parentIndent) {
31590
31850
  indentStatus = 0;
31591
- else if (state.lineIndent < parentIndent)
31851
+ } else if (state.lineIndent < parentIndent) {
31592
31852
  indentStatus = -1;
31593
- } else
31853
+ }
31854
+ } else {
31594
31855
  allowBlockCollections = false;
31856
+ }
31595
31857
  }
31596
- if (allowBlockCollections)
31858
+ }
31859
+ if (allowBlockCollections) {
31597
31860
  allowBlockCollections = atNewLine || allowCompact;
31861
+ }
31598
31862
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
31599
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
31863
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
31600
31864
  flowIndent = parentIndent;
31601
- else
31865
+ } else {
31602
31866
  flowIndent = parentIndent + 1;
31867
+ }
31603
31868
  blockIndent = state.position - state.lineStart;
31604
- if (indentStatus === 1)
31605
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
31869
+ if (indentStatus === 1) {
31870
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
31606
31871
  hasContent = true;
31607
- else {
31872
+ } else {
31608
31873
  const ch = state.input.charCodeAt(state.position);
31609
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
31874
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
31610
31875
  hasContent = true;
31611
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
31876
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
31612
31877
  hasContent = true;
31613
- else if (readAlias(state)) {
31878
+ } else if (readAlias(state)) {
31614
31879
  hasContent = true;
31615
- if (state.tag !== null || state.anchor !== null)
31880
+ if (state.tag !== null || state.anchor !== null) {
31616
31881
  throwError(state, "alias node should not have any properties");
31882
+ }
31617
31883
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
31618
31884
  hasContent = true;
31619
- if (state.tag === null)
31885
+ if (state.tag === null) {
31620
31886
  state.tag = "?";
31887
+ }
31621
31888
  }
31622
- if (state.anchor !== null)
31889
+ if (state.anchor !== null) {
31623
31890
  storeAnchor(state, state.anchor, state.result);
31891
+ }
31624
31892
  }
31625
- else if (indentStatus === 0)
31893
+ } else if (indentStatus === 0) {
31626
31894
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
31895
+ }
31627
31896
  }
31628
31897
  if (state.tag === null) {
31629
- if (state.anchor !== null)
31898
+ if (state.anchor !== null) {
31630
31899
  storeAnchor(state, state.anchor, state.result);
31900
+ }
31631
31901
  } else if (state.tag === "?") {
31632
- if (state.result !== null && state.kind !== "scalar")
31902
+ if (state.result !== null && state.kind !== "scalar") {
31633
31903
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
31904
+ }
31634
31905
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
31635
- type = state.implicitTypes[typeIndex];
31636
- if (type.resolve(state.result)) {
31637
- state.result = type.construct(state.result);
31638
- state.tag = type.tag;
31639
- if (state.anchor !== null)
31906
+ type2 = state.implicitTypes[typeIndex];
31907
+ if (type2.resolve(state.result)) {
31908
+ state.result = type2.construct(state.result);
31909
+ state.tag = type2.tag;
31910
+ if (state.anchor !== null) {
31640
31911
  storeAnchor(state, state.anchor, state.result);
31912
+ }
31641
31913
  break;
31642
31914
  }
31643
31915
  }
31644
31916
  } else if (state.tag !== "!") {
31645
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
31646
- type = state.typeMap[state.kind || "fallback"][state.tag];
31647
- else {
31648
- type = null;
31917
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
31918
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
31919
+ } else {
31920
+ type2 = null;
31649
31921
  const typeList = state.typeMap.multi[state.kind || "fallback"];
31650
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
31922
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
31651
31923
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
31652
- type = typeList[typeIndex];
31924
+ type2 = typeList[typeIndex];
31653
31925
  break;
31654
31926
  }
31927
+ }
31655
31928
  }
31656
- if (!type)
31929
+ if (!type2) {
31657
31930
  throwError(state, "unknown tag !<" + state.tag + ">");
31658
- if (state.result !== null && type.kind !== state.kind)
31659
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
31660
- if (!type.resolve(state.result, state.tag))
31931
+ }
31932
+ if (state.result !== null && type2.kind !== state.kind) {
31933
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
31934
+ }
31935
+ if (!type2.resolve(state.result, state.tag)) {
31661
31936
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
31662
- else {
31663
- state.result = type.construct(state.result, state.tag);
31664
- if (state.anchor !== null)
31937
+ } else {
31938
+ state.result = type2.construct(state.result, state.tag);
31939
+ if (state.anchor !== null) {
31665
31940
  storeAnchor(state, state.anchor, state.result);
31941
+ }
31666
31942
  }
31667
31943
  }
31668
- if (state.listener !== null)
31944
+ if (state.listener !== null) {
31669
31945
  state.listener("close", state);
31946
+ }
31670
31947
  state.depth -= 1;
31671
31948
  return state.tag !== null || state.anchor !== null || hasContent;
31672
31949
  }
@@ -31676,55 +31953,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31676
31953
  let ch;
31677
31954
  state.version = null;
31678
31955
  state.checkLineBreaks = state.legacy;
31679
- state.tagMap = Object.create(null);
31680
- state.anchorMap = Object.create(null);
31956
+ state.tagMap = /* @__PURE__ */ Object.create(null);
31957
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
31681
31958
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
31682
31959
  skipSeparationSpace(state, true, -1);
31683
31960
  ch = state.input.charCodeAt(state.position);
31684
- if (state.lineIndent > 0 || ch !== 37)
31961
+ if (state.lineIndent > 0 || ch !== 37) {
31685
31962
  break;
31963
+ }
31686
31964
  hasDirectives = true;
31687
31965
  ch = state.input.charCodeAt(++state.position);
31688
31966
  let _position = state.position;
31689
- while (ch !== 0 && !isWsOrEol(ch))
31967
+ while (ch !== 0 && !isWsOrEol(ch)) {
31690
31968
  ch = state.input.charCodeAt(++state.position);
31969
+ }
31691
31970
  const directiveName = state.input.slice(_position, state.position);
31692
31971
  const directiveArgs = [];
31693
- if (directiveName.length < 1)
31972
+ if (directiveName.length < 1) {
31694
31973
  throwError(state, "directive name must not be less than one character in length");
31974
+ }
31695
31975
  while (ch !== 0) {
31696
- while (isWhiteSpace(ch))
31976
+ while (isWhiteSpace(ch)) {
31697
31977
  ch = state.input.charCodeAt(++state.position);
31978
+ }
31698
31979
  if (ch === 35) {
31699
- do
31980
+ do {
31700
31981
  ch = state.input.charCodeAt(++state.position);
31701
- while (ch !== 0 && !isEol(ch));
31982
+ } while (ch !== 0 && !isEol(ch));
31702
31983
  break;
31703
31984
  }
31704
31985
  if (isEol(ch))
31705
31986
  break;
31706
31987
  _position = state.position;
31707
- while (ch !== 0 && !isWsOrEol(ch))
31988
+ while (ch !== 0 && !isWsOrEol(ch)) {
31708
31989
  ch = state.input.charCodeAt(++state.position);
31990
+ }
31709
31991
  directiveArgs.push(state.input.slice(_position, state.position));
31710
31992
  }
31711
31993
  if (ch !== 0)
31712
31994
  readLineBreak(state);
31713
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
31995
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
31714
31996
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
31715
- else
31997
+ } else {
31716
31998
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
31999
+ }
31717
32000
  }
31718
32001
  skipSeparationSpace(state, true, -1);
31719
32002
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
31720
32003
  state.position += 3;
31721
32004
  skipSeparationSpace(state, true, -1);
31722
- } else if (hasDirectives)
32005
+ } else if (hasDirectives) {
31723
32006
  throwError(state, "directives end mark is expected");
32007
+ }
31724
32008
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
31725
32009
  skipSeparationSpace(state, true, -1);
31726
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
32010
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
31727
32011
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
32012
+ }
31728
32013
  state.documents.push(state.result);
31729
32014
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
31730
32015
  if (state.input.charCodeAt(state.position) === 46) {
@@ -31733,18 +32018,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31733
32018
  }
31734
32019
  return;
31735
32020
  }
31736
- if (state.position < state.length - 1)
32021
+ if (state.position < state.length - 1) {
31737
32022
  throwError(state, "end of the stream or a document separator is expected");
32023
+ }
31738
32024
  }
31739
32025
  function loadDocuments(input, options) {
31740
32026
  input = String(input);
31741
32027
  options = options || {};
31742
32028
  if (input.length !== 0) {
31743
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
32029
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
31744
32030
  input += `
31745
32031
  `;
31746
- if (input.charCodeAt(0) === 65279)
32032
+ }
32033
+ if (input.charCodeAt(0) === 65279) {
31747
32034
  input = input.slice(1);
32035
+ }
31748
32036
  }
31749
32037
  const state = new State(input, options);
31750
32038
  const nullpos = input.indexOf("\x00");
@@ -31757,64 +32045,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31757
32045
  state.lineIndent += 1;
31758
32046
  state.position += 1;
31759
32047
  }
31760
- while (state.position < state.length - 1)
32048
+ while (state.position < state.length - 1) {
31761
32049
  readDocument(state);
32050
+ }
31762
32051
  return state.documents;
31763
32052
  }
31764
- function loadAll(input, iterator, options) {
32053
+ function loadAll2(input, iterator, options) {
31765
32054
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
31766
32055
  options = iterator;
31767
32056
  iterator = null;
31768
32057
  }
31769
32058
  const documents = loadDocuments(input, options);
31770
- if (typeof iterator !== "function")
32059
+ if (typeof iterator !== "function") {
31771
32060
  return documents;
31772
- for (let index = 0, length = documents.length;index < length; index += 1)
32061
+ }
32062
+ for (let index = 0, length = documents.length;index < length; index += 1) {
31773
32063
  iterator(documents[index]);
32064
+ }
31774
32065
  }
31775
- function load(input, options) {
32066
+ function load2(input, options) {
31776
32067
  const documents = loadDocuments(input, options);
31777
- if (documents.length === 0)
32068
+ if (documents.length === 0) {
31778
32069
  return;
31779
- else if (documents.length === 1)
32070
+ } else if (documents.length === 1) {
31780
32071
  return documents[0];
31781
- throw new YAMLException("expected a single document in the stream, but found more");
31782
- }
31783
- module.exports.loadAll = loadAll;
31784
- module.exports.load = load;
31785
- });
31786
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31787
- var common = require_common();
31788
- var YAMLException = require_exception();
31789
- var DEFAULT_SCHEMA = require_default();
31790
- var _toString = Object.prototype.toString;
31791
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
31792
- var CHAR_BOM = 65279;
31793
- var CHAR_TAB = 9;
31794
- var CHAR_LINE_FEED = 10;
31795
- var CHAR_CARRIAGE_RETURN = 13;
31796
- var CHAR_SPACE = 32;
31797
- var CHAR_EXCLAMATION = 33;
31798
- var CHAR_DOUBLE_QUOTE = 34;
31799
- var CHAR_SHARP = 35;
31800
- var CHAR_PERCENT = 37;
31801
- var CHAR_AMPERSAND = 38;
31802
- var CHAR_SINGLE_QUOTE = 39;
31803
- var CHAR_ASTERISK = 42;
31804
- var CHAR_COMMA = 44;
31805
- var CHAR_MINUS = 45;
31806
- var CHAR_COLON = 58;
31807
- var CHAR_EQUALS = 61;
31808
- var CHAR_GREATER_THAN = 62;
31809
- var CHAR_QUESTION = 63;
31810
- var CHAR_COMMERCIAL_AT = 64;
31811
- var CHAR_LEFT_SQUARE_BRACKET = 91;
31812
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
31813
- var CHAR_GRAVE_ACCENT = 96;
31814
- var CHAR_LEFT_CURLY_BRACKET = 123;
31815
- var CHAR_VERTICAL_LINE = 124;
31816
- var CHAR_RIGHT_CURLY_BRACKET = 125;
31817
- var ESCAPE_SEQUENCES = {};
32072
+ }
32073
+ throw new YAMLException2("expected a single document in the stream, but found more");
32074
+ }
32075
+ loader.loadAll = loadAll2;
32076
+ loader.load = load2;
32077
+ return loader;
32078
+ }
32079
+ var dumper = {};
32080
+ var hasRequiredDumper;
32081
+ function requireDumper() {
32082
+ if (hasRequiredDumper)
32083
+ return dumper;
32084
+ hasRequiredDumper = 1;
32085
+ const common2 = requireCommon();
32086
+ const YAMLException2 = requireException();
32087
+ const DEFAULT_SCHEMA2 = require_default();
32088
+ const _toString = Object.prototype.toString;
32089
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
32090
+ const CHAR_BOM = 65279;
32091
+ const CHAR_TAB = 9;
32092
+ const CHAR_LINE_FEED = 10;
32093
+ const CHAR_CARRIAGE_RETURN = 13;
32094
+ const CHAR_SPACE = 32;
32095
+ const CHAR_EXCLAMATION = 33;
32096
+ const CHAR_DOUBLE_QUOTE = 34;
32097
+ const CHAR_SHARP = 35;
32098
+ const CHAR_PERCENT = 37;
32099
+ const CHAR_AMPERSAND = 38;
32100
+ const CHAR_SINGLE_QUOTE = 39;
32101
+ const CHAR_ASTERISK = 42;
32102
+ const CHAR_COMMA = 44;
32103
+ const CHAR_MINUS = 45;
32104
+ const CHAR_COLON = 58;
32105
+ const CHAR_EQUALS = 61;
32106
+ const CHAR_GREATER_THAN = 62;
32107
+ const CHAR_QUESTION = 63;
32108
+ const CHAR_COMMERCIAL_AT = 64;
32109
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
32110
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
32111
+ const CHAR_GRAVE_ACCENT = 96;
32112
+ const CHAR_LEFT_CURLY_BRACKET = 123;
32113
+ const CHAR_VERTICAL_LINE = 124;
32114
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
32115
+ const ESCAPE_SEQUENCES = {};
31818
32116
  ESCAPE_SEQUENCES[0] = "\\0";
31819
32117
  ESCAPE_SEQUENCES[7] = "\\a";
31820
32118
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -31830,7 +32128,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31830
32128
  ESCAPE_SEQUENCES[160] = "\\_";
31831
32129
  ESCAPE_SEQUENCES[8232] = "\\L";
31832
32130
  ESCAPE_SEQUENCES[8233] = "\\P";
31833
- var DEPRECATED_BOOLEANS_SYNTAX = [
32131
+ const DEPRECATED_BOOLEANS_SYNTAX = [
31834
32132
  "y",
31835
32133
  "Y",
31836
32134
  "yes",
@@ -31848,20 +32146,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31848
32146
  "Off",
31849
32147
  "OFF"
31850
32148
  ];
31851
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
31852
- function compileStyleMap(schema, map) {
31853
- if (map === null)
32149
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
32150
+ function compileStyleMap(schema2, map2) {
32151
+ if (map2 === null)
31854
32152
  return {};
31855
32153
  const result = {};
31856
- const keys = Object.keys(map);
32154
+ const keys = Object.keys(map2);
31857
32155
  for (let index = 0, length = keys.length;index < length; index += 1) {
31858
32156
  let tag = keys[index];
31859
- let style = String(map[tag]);
31860
- if (tag.slice(0, 2) === "!!")
32157
+ let style = String(map2[tag]);
32158
+ if (tag.slice(0, 2) === "!!") {
31861
32159
  tag = "tag:yaml.org,2002:" + tag.slice(2);
31862
- const type = schema.compiledTypeMap["fallback"][tag];
31863
- if (type && _hasOwnProperty.call(type.styleAliases, style))
31864
- style = type.styleAliases[style];
32160
+ }
32161
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
32162
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
32163
+ style = type2.styleAliases[style];
32164
+ }
31865
32165
  result[tag] = style;
31866
32166
  }
31867
32167
  return result;
@@ -31879,18 +32179,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31879
32179
  } else if (character <= 4294967295) {
31880
32180
  handle = "U";
31881
32181
  length = 8;
31882
- } else
31883
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
31884
- return "\\" + handle + common.repeat("0", length - string.length) + string;
32182
+ } else {
32183
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
32184
+ }
32185
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
31885
32186
  }
31886
- var QUOTING_TYPE_SINGLE = 1;
31887
- var QUOTING_TYPE_DOUBLE = 2;
32187
+ const QUOTING_TYPE_SINGLE = 1;
32188
+ const QUOTING_TYPE_DOUBLE = 2;
31888
32189
  function State(options) {
31889
- this.schema = options["schema"] || DEFAULT_SCHEMA;
32190
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
31890
32191
  this.indent = Math.max(1, options["indent"] || 2);
31891
32192
  this.noArrayIndent = options["noArrayIndent"] || false;
31892
32193
  this.skipInvalid = options["skipInvalid"] || false;
31893
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
32194
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
31894
32195
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
31895
32196
  this.sortKeys = options["sortKeys"] || false;
31896
32197
  this.lineWidth = options["lineWidth"] || 80;
@@ -31908,7 +32209,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31908
32209
  this.usedDuplicates = null;
31909
32210
  }
31910
32211
  function indentString(string, spaces) {
31911
- const ind = common.repeat(" ", spaces);
32212
+ const ind = common2.repeat(" ", spaces);
31912
32213
  let position = 0;
31913
32214
  let result = "";
31914
32215
  const length = string.length;
@@ -31932,12 +32233,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31932
32233
  }
31933
32234
  function generateNextLine(state, level) {
31934
32235
  return `
31935
- ` + common.repeat(" ", state.indent * level);
32236
+ ` + common2.repeat(" ", state.indent * level);
31936
32237
  }
31937
- function testImplicitResolving(state, str) {
31938
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
31939
- if (state.implicitTypes[index].resolve(str))
32238
+ function testImplicitResolving(state, str2) {
32239
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
32240
+ const type2 = state.implicitTypes[index];
32241
+ if (type2.resolve(str2)) {
31940
32242
  return true;
32243
+ }
32244
+ }
31941
32245
  return false;
31942
32246
  }
31943
32247
  function isWhitespace(c) {
@@ -31965,19 +32269,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31965
32269
  let second;
31966
32270
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
31967
32271
  second = string.charCodeAt(pos + 1);
31968
- if (second >= 56320 && second <= 57343)
32272
+ if (second >= 56320 && second <= 57343) {
31969
32273
  return (first - 55296) * 1024 + second - 56320 + 65536;
32274
+ }
31970
32275
  }
31971
32276
  return first;
31972
32277
  }
31973
32278
  function needIndentIndicator(string) {
31974
- return /^\n* /.test(string);
31975
- }
31976
- var STYLE_PLAIN = 1;
31977
- var STYLE_SINGLE = 2;
31978
- var STYLE_LITERAL = 3;
31979
- var STYLE_FOLDED = 4;
31980
- var STYLE_DOUBLE = 5;
32279
+ const leadingSpaceRe = /^\n* /;
32280
+ return leadingSpaceRe.test(string);
32281
+ }
32282
+ const STYLE_PLAIN = 1;
32283
+ const STYLE_SINGLE = 2;
32284
+ const STYLE_LITERAL = 3;
32285
+ const STYLE_FOLDED = 4;
32286
+ const STYLE_DOUBLE = 5;
31981
32287
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
31982
32288
  let i;
31983
32289
  let char = 0;
@@ -31987,15 +32293,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31987
32293
  const shouldTrackWidth = lineWidth !== -1;
31988
32294
  let previousLineBreak = -1;
31989
32295
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
31990
- if (singleLineOnly || forceQuotes)
32296
+ if (singleLineOnly || forceQuotes) {
31991
32297
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
31992
32298
  char = codePointAt(string, i);
31993
- if (!isPrintable(char))
32299
+ if (!isPrintable(char)) {
31994
32300
  return STYLE_DOUBLE;
32301
+ }
31995
32302
  plain = plain && isPlainSafe(char, prevChar, inblock);
31996
32303
  prevChar = char;
31997
32304
  }
31998
- else {
32305
+ } else {
31999
32306
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
32000
32307
  char = codePointAt(string, i);
32001
32308
  if (char === CHAR_LINE_FEED) {
@@ -32004,31 +32311,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32004
32311
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
32005
32312
  previousLineBreak = i;
32006
32313
  }
32007
- } else if (!isPrintable(char))
32314
+ } else if (!isPrintable(char)) {
32008
32315
  return STYLE_DOUBLE;
32316
+ }
32009
32317
  plain = plain && isPlainSafe(char, prevChar, inblock);
32010
32318
  prevChar = char;
32011
32319
  }
32012
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
32320
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
32013
32321
  }
32014
32322
  if (!hasLineBreak && !hasFoldableLine) {
32015
- if (plain && !forceQuotes && !testAmbiguousType(string))
32323
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
32016
32324
  return STYLE_PLAIN;
32325
+ }
32017
32326
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
32018
32327
  }
32019
- if (indentPerLevel > 9 && needIndentIndicator(string))
32328
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
32020
32329
  return STYLE_DOUBLE;
32021
- if (!forceQuotes)
32330
+ }
32331
+ if (!forceQuotes) {
32022
32332
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
32333
+ }
32023
32334
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
32024
32335
  }
32025
32336
  function writeScalar(state, string, level, iskey, inblock) {
32026
32337
  state.dump = function() {
32027
- if (string.length === 0)
32338
+ if (string.length === 0) {
32028
32339
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
32340
+ }
32029
32341
  if (!state.noCompatMode) {
32030
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
32342
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
32031
32343
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
32344
+ }
32032
32345
  }
32033
32346
  const indent = state.indent * Math.max(1, level);
32034
32347
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -32046,9 +32359,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32046
32359
  case STYLE_FOLDED:
32047
32360
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
32048
32361
  case STYLE_DOUBLE:
32049
- return '"' + escapeString(string, lineWidth) + '"';
32362
+ return '"' + escapeString(string) + '"';
32050
32363
  default:
32051
- throw new YAMLException("impossible error: invalid scalar style");
32364
+ throw new YAMLException2("impossible error: invalid scalar style");
32052
32365
  }
32053
32366
  }();
32054
32367
  }
@@ -32056,9 +32369,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32056
32369
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
32057
32370
  const clip = string[string.length - 1] === `
32058
32371
  `;
32059
- return indentIndicator + (clip && (string[string.length - 2] === `
32372
+ const keep = clip && (string[string.length - 2] === `
32060
32373
  ` || string === `
32061
- `) ? "+" : clip ? "" : "-") + `
32374
+ `);
32375
+ const chomp = keep ? "+" : clip ? "" : "-";
32376
+ return indentIndicator + chomp + `
32062
32377
  `;
32063
32378
  }
32064
32379
  function dropEndingNewline(string) {
@@ -32110,11 +32425,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32110
32425
  }
32111
32426
  result += `
32112
32427
  `;
32113
- if (line.length - start > width && curr > start)
32428
+ if (line.length - start > width && curr > start) {
32114
32429
  result += line.slice(start, curr) + `
32115
32430
  ` + line.slice(curr + 1);
32116
- else
32431
+ } else {
32117
32432
  result += line.slice(start);
32433
+ }
32118
32434
  return result.slice(1);
32119
32435
  }
32120
32436
  function escapeString(string) {
@@ -32127,8 +32443,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32127
32443
  result += string[i];
32128
32444
  if (char >= 65536)
32129
32445
  result += string[i + 1];
32130
- } else
32446
+ } else {
32131
32447
  result += escapeSeq || encodeHex(char);
32448
+ }
32132
32449
  }
32133
32450
  return result;
32134
32451
  }
@@ -32137,8 +32454,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32137
32454
  const _tag = state.tag;
32138
32455
  for (let index = 0, length = object.length;index < length; index += 1) {
32139
32456
  let value = object[index];
32140
- if (state.replacer)
32457
+ if (state.replacer) {
32141
32458
  value = state.replacer.call(object, String(index), value);
32459
+ }
32142
32460
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
32143
32461
  if (_result !== "")
32144
32462
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -32153,15 +32471,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32153
32471
  const _tag = state.tag;
32154
32472
  for (let index = 0, length = object.length;index < length; index += 1) {
32155
32473
  let value = object[index];
32156
- if (state.replacer)
32474
+ if (state.replacer) {
32157
32475
  value = state.replacer.call(object, String(index), value);
32476
+ }
32158
32477
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
32159
- if (!compact || _result !== "")
32478
+ if (!compact || _result !== "") {
32160
32479
  _result += generateNextLine(state, level);
32161
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32480
+ }
32481
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32162
32482
  _result += "-";
32163
- else
32483
+ } else {
32164
32484
  _result += "- ";
32485
+ }
32165
32486
  _result += state.dump;
32166
32487
  }
32167
32488
  }
@@ -32180,15 +32501,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32180
32501
  pairBuffer += '"';
32181
32502
  const objectKey = objectKeyList[index];
32182
32503
  let objectValue = object[objectKey];
32183
- if (state.replacer)
32504
+ if (state.replacer) {
32184
32505
  objectValue = state.replacer.call(object, objectKey, objectValue);
32185
- if (!writeNode(state, level, objectKey, false, false))
32506
+ }
32507
+ if (!writeNode(state, level, objectKey, false, false)) {
32186
32508
  continue;
32509
+ }
32187
32510
  if (state.dump.length > 1024)
32188
32511
  pairBuffer += "? ";
32189
32512
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
32190
- if (!writeNode(state, level, objectValue, false, false))
32513
+ if (!writeNode(state, level, objectValue, false, false)) {
32191
32514
  continue;
32515
+ }
32192
32516
  pairBuffer += state.dump;
32193
32517
  _result += pairBuffer;
32194
32518
  }
@@ -32199,37 +32523,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32199
32523
  let _result = "";
32200
32524
  const _tag = state.tag;
32201
32525
  const objectKeyList = Object.keys(object);
32202
- if (state.sortKeys === true)
32526
+ if (state.sortKeys === true) {
32203
32527
  objectKeyList.sort();
32204
- else if (typeof state.sortKeys === "function")
32528
+ } else if (typeof state.sortKeys === "function") {
32205
32529
  objectKeyList.sort(state.sortKeys);
32206
- else if (state.sortKeys)
32207
- throw new YAMLException("sortKeys must be a boolean or a function");
32530
+ } else if (state.sortKeys) {
32531
+ throw new YAMLException2("sortKeys must be a boolean or a function");
32532
+ }
32208
32533
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
32209
32534
  let pairBuffer = "";
32210
- if (!compact || _result !== "")
32535
+ if (!compact || _result !== "") {
32211
32536
  pairBuffer += generateNextLine(state, level);
32537
+ }
32212
32538
  const objectKey = objectKeyList[index];
32213
32539
  let objectValue = object[objectKey];
32214
- if (state.replacer)
32540
+ if (state.replacer) {
32215
32541
  objectValue = state.replacer.call(object, objectKey, objectValue);
32216
- if (!writeNode(state, level + 1, objectKey, true, true, true))
32542
+ }
32543
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
32217
32544
  continue;
32545
+ }
32218
32546
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
32219
- if (explicitPair)
32220
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32547
+ if (explicitPair) {
32548
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32221
32549
  pairBuffer += "?";
32222
- else
32550
+ } else {
32223
32551
  pairBuffer += "? ";
32552
+ }
32553
+ }
32224
32554
  pairBuffer += state.dump;
32225
- if (explicitPair)
32555
+ if (explicitPair) {
32226
32556
  pairBuffer += generateNextLine(state, level);
32227
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
32557
+ }
32558
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
32228
32559
  continue;
32229
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32560
+ }
32561
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32230
32562
  pairBuffer += ":";
32231
- else
32563
+ } else {
32232
32564
  pairBuffer += ": ";
32565
+ }
32233
32566
  pairBuffer += state.dump;
32234
32567
  _result += pairBuffer;
32235
32568
  }
@@ -32239,24 +32572,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32239
32572
  function detectType(state, object, explicit) {
32240
32573
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
32241
32574
  for (let index = 0, length = typeList.length;index < length; index += 1) {
32242
- const type = typeList[index];
32243
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
32244
- if (explicit)
32245
- if (type.multi && type.representName)
32246
- state.tag = type.representName(object);
32247
- else
32248
- state.tag = type.tag;
32249
- else
32575
+ const type2 = typeList[index];
32576
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
32577
+ if (explicit) {
32578
+ if (type2.multi && type2.representName) {
32579
+ state.tag = type2.representName(object);
32580
+ } else {
32581
+ state.tag = type2.tag;
32582
+ }
32583
+ } else {
32250
32584
  state.tag = "?";
32251
- if (type.represent) {
32252
- const style = state.styleMap[type.tag] || type.defaultStyle;
32585
+ }
32586
+ if (type2.represent) {
32587
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
32253
32588
  let _result;
32254
- if (_toString.call(type.represent) === "[object Function]")
32255
- _result = type.represent(object, style);
32256
- else if (_hasOwnProperty.call(type.represent, style))
32257
- _result = type.represent[style](object, style);
32258
- else
32259
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
32589
+ if (_toString.call(type2.represent) === "[object Function]") {
32590
+ _result = type2.represent(object, style);
32591
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
32592
+ _result = type2.represent[style](object, style);
32593
+ } else {
32594
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
32595
+ }
32260
32596
  state.dump = _result;
32261
32597
  }
32262
32598
  return true;
@@ -32267,67 +32603,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32267
32603
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
32268
32604
  state.tag = null;
32269
32605
  state.dump = object;
32270
- if (!detectType(state, object, false))
32606
+ if (!detectType(state, object, false)) {
32271
32607
  detectType(state, object, true);
32272
- const type = _toString.call(state.dump);
32608
+ }
32609
+ const type2 = _toString.call(state.dump);
32273
32610
  const inblock = block;
32274
- if (block)
32611
+ if (block) {
32275
32612
  block = state.flowLevel < 0 || state.flowLevel > level;
32276
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
32613
+ }
32614
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
32277
32615
  let duplicateIndex;
32278
32616
  let duplicate;
32279
32617
  if (objectOrArray) {
32280
32618
  duplicateIndex = state.duplicates.indexOf(object);
32281
32619
  duplicate = duplicateIndex !== -1;
32282
32620
  }
32283
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
32621
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
32284
32622
  compact = false;
32285
- if (duplicate && state.usedDuplicates[duplicateIndex])
32623
+ }
32624
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
32286
32625
  state.dump = "*ref_" + duplicateIndex;
32287
- else {
32288
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
32626
+ } else {
32627
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
32289
32628
  state.usedDuplicates[duplicateIndex] = true;
32290
- if (type === "[object Object]")
32629
+ }
32630
+ if (type2 === "[object Object]") {
32291
32631
  if (block && Object.keys(state.dump).length !== 0) {
32292
32632
  writeBlockMapping(state, level, state.dump, compact);
32293
- if (duplicate)
32633
+ if (duplicate) {
32294
32634
  state.dump = "&ref_" + duplicateIndex + state.dump;
32635
+ }
32295
32636
  } else {
32296
32637
  writeFlowMapping(state, level, state.dump);
32297
- if (duplicate)
32638
+ if (duplicate) {
32298
32639
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
32640
+ }
32299
32641
  }
32300
- else if (type === "[object Array]")
32642
+ } else if (type2 === "[object Array]") {
32301
32643
  if (block && state.dump.length !== 0) {
32302
- if (state.noArrayIndent && !isblockseq && level > 0)
32644
+ if (state.noArrayIndent && !isblockseq && level > 0) {
32303
32645
  writeBlockSequence(state, level - 1, state.dump, compact);
32304
- else
32646
+ } else {
32305
32647
  writeBlockSequence(state, level, state.dump, compact);
32306
- if (duplicate)
32648
+ }
32649
+ if (duplicate) {
32307
32650
  state.dump = "&ref_" + duplicateIndex + state.dump;
32651
+ }
32308
32652
  } else {
32309
32653
  writeFlowSequence(state, level, state.dump);
32310
- if (duplicate)
32654
+ if (duplicate) {
32311
32655
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
32656
+ }
32312
32657
  }
32313
- else if (type === "[object String]") {
32314
- if (state.tag !== "?")
32658
+ } else if (type2 === "[object String]") {
32659
+ if (state.tag !== "?") {
32315
32660
  writeScalar(state, state.dump, level, iskey, inblock);
32316
- } else if (type === "[object Undefined]")
32661
+ }
32662
+ } else if (type2 === "[object Undefined]") {
32317
32663
  return false;
32318
- else {
32664
+ } else {
32319
32665
  if (state.skipInvalid)
32320
32666
  return false;
32321
- throw new YAMLException("unacceptable kind of an object to dump " + type);
32667
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
32322
32668
  }
32323
32669
  if (state.tag !== null && state.tag !== "?") {
32324
32670
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
32325
- if (state.tag[0] === "!")
32671
+ if (state.tag[0] === "!") {
32326
32672
  tagStr = "!" + tagStr;
32327
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
32673
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
32328
32674
  tagStr = "!!" + tagStr.slice(18);
32329
- else
32675
+ } else {
32330
32676
  tagStr = "!<" + tagStr + ">";
32677
+ }
32331
32678
  state.dump = tagStr + " " + state.dump;
32332
32679
  }
32333
32680
  }
@@ -32338,83 +32685,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32338
32685
  const duplicatesIndexes = [];
32339
32686
  inspectNode(object, objects, duplicatesIndexes);
32340
32687
  const length = duplicatesIndexes.length;
32341
- for (let index = 0;index < length; index += 1)
32688
+ for (let index = 0;index < length; index += 1) {
32342
32689
  state.duplicates.push(objects[duplicatesIndexes[index]]);
32690
+ }
32343
32691
  state.usedDuplicates = new Array(length);
32344
32692
  }
32345
32693
  function inspectNode(object, objects, duplicatesIndexes) {
32346
32694
  if (object !== null && typeof object === "object") {
32347
32695
  const index = objects.indexOf(object);
32348
32696
  if (index !== -1) {
32349
- if (duplicatesIndexes.indexOf(index) === -1)
32697
+ if (duplicatesIndexes.indexOf(index) === -1) {
32350
32698
  duplicatesIndexes.push(index);
32699
+ }
32351
32700
  } else {
32352
32701
  objects.push(object);
32353
- if (Array.isArray(object))
32354
- for (let i = 0, length = object.length;i < length; i += 1)
32702
+ if (Array.isArray(object)) {
32703
+ for (let i = 0, length = object.length;i < length; i += 1) {
32355
32704
  inspectNode(object[i], objects, duplicatesIndexes);
32356
- else {
32705
+ }
32706
+ } else {
32357
32707
  const objectKeyList = Object.keys(object);
32358
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
32708
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
32359
32709
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
32710
+ }
32360
32711
  }
32361
32712
  }
32362
32713
  }
32363
32714
  }
32364
- function dump(input, options) {
32715
+ function dump2(input, options) {
32365
32716
  options = options || {};
32366
32717
  const state = new State(options);
32367
32718
  if (!state.noRefs)
32368
32719
  getDuplicateReferences(input, state);
32369
32720
  let value = input;
32370
- if (state.replacer)
32721
+ if (state.replacer) {
32371
32722
  value = state.replacer.call({ "": value }, "", value);
32723
+ }
32372
32724
  if (writeNode(state, 0, value, true, true))
32373
32725
  return state.dump + `
32374
32726
  `;
32375
32727
  return "";
32376
32728
  }
32377
- module.exports.dump = dump;
32378
- });
32379
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
32380
- var loader = require_loader();
32381
- var dumper = require_dumper();
32729
+ dumper.dump = dump2;
32730
+ return dumper;
32731
+ }
32732
+ var hasRequiredJsYaml;
32733
+ function requireJsYaml() {
32734
+ if (hasRequiredJsYaml)
32735
+ return jsYaml;
32736
+ hasRequiredJsYaml = 1;
32737
+ const loader2 = requireLoader();
32738
+ const dumper2 = requireDumper();
32382
32739
  function renamed(from, to) {
32383
32740
  return function() {
32384
32741
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
32385
32742
  };
32386
32743
  }
32387
- module.exports.Type = require_type();
32388
- module.exports.Schema = require_schema();
32389
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
32390
- module.exports.JSON_SCHEMA = require_json();
32391
- module.exports.CORE_SCHEMA = require_core();
32392
- module.exports.DEFAULT_SCHEMA = require_default();
32393
- module.exports.load = loader.load;
32394
- module.exports.loadAll = loader.loadAll;
32395
- module.exports.dump = dumper.dump;
32396
- module.exports.YAMLException = require_exception();
32397
- module.exports.types = {
32398
- binary: require_binary(),
32399
- float: require_float(),
32400
- map: require_map(),
32744
+ jsYaml.Type = requireType();
32745
+ jsYaml.Schema = requireSchema();
32746
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
32747
+ jsYaml.JSON_SCHEMA = requireJson();
32748
+ jsYaml.CORE_SCHEMA = requireCore();
32749
+ jsYaml.DEFAULT_SCHEMA = require_default();
32750
+ jsYaml.load = loader2.load;
32751
+ jsYaml.loadAll = loader2.loadAll;
32752
+ jsYaml.dump = dumper2.dump;
32753
+ jsYaml.YAMLException = requireException();
32754
+ jsYaml.types = {
32755
+ binary: requireBinary(),
32756
+ float: requireFloat(),
32757
+ map: requireMap(),
32401
32758
  null: require_null(),
32402
- pairs: require_pairs(),
32403
- set: require_set(),
32404
- timestamp: require_timestamp(),
32405
- bool: require_bool(),
32406
- int: require_int(),
32407
- merge: require_merge(),
32408
- omap: require_omap(),
32409
- seq: require_seq(),
32410
- str: require_str()
32759
+ pairs: requirePairs(),
32760
+ set: requireSet(),
32761
+ timestamp: requireTimestamp(),
32762
+ bool: requireBool(),
32763
+ int: requireInt(),
32764
+ merge: requireMerge(),
32765
+ omap: requireOmap(),
32766
+ seq: requireSeq(),
32767
+ str: requireStr()
32411
32768
  };
32412
- module.exports.safeLoad = renamed("safeLoad", "load");
32413
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
32414
- module.exports.safeDump = renamed("safeDump", "dump");
32415
- }))(), 1);
32416
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
32417
- var index_vite_proxy_tmp_default = import_js_yaml.default;
32769
+ jsYaml.safeLoad = renamed("safeLoad", "load");
32770
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
32771
+ jsYaml.safeDump = renamed("safeDump", "dump");
32772
+ return jsYaml;
32773
+ }
32774
+ var jsYamlExports = requireJsYaml();
32775
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
32776
+ var {
32777
+ Type,
32778
+ Schema,
32779
+ FAILSAFE_SCHEMA,
32780
+ JSON_SCHEMA,
32781
+ CORE_SCHEMA,
32782
+ DEFAULT_SCHEMA,
32783
+ load,
32784
+ loadAll,
32785
+ dump,
32786
+ YAMLException,
32787
+ types,
32788
+ safeLoad,
32789
+ safeLoadAll,
32790
+ safeDump
32791
+ } = yaml;
32418
32792
 
32419
32793
  // ../common/src/logger.ts
32420
32794
  init_src();
@@ -32491,11 +32865,11 @@ class SimpleLogger {
32491
32865
  const path3 = this.logFilePath || getGlobalLogFilePath();
32492
32866
  if (!path3)
32493
32867
  return;
32494
- const timestamp = new Date().toISOString();
32868
+ const timestamp2 = new Date().toISOString();
32495
32869
  this.pendingWrites = Promise.all([
32496
32870
  this.pendingWrites,
32497
32871
  this.pendingInit
32498
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
32872
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
32499
32873
  }
32500
32874
  debug(message, ...args) {
32501
32875
  if (this.level > 0 /* DEBUG */)
@@ -32889,10 +33263,10 @@ class LoggerTelemetryProvider {
32889
33263
  success
32890
33264
  })));
32891
33265
  }
32892
- async trackDependency(name, type, duration, success, properties) {
33266
+ async trackDependency(name, type2, duration, success, properties) {
32893
33267
  logger.debug(formatMessage("Dependency", name, this.enrich({
32894
33268
  ...properties,
32895
- type,
33269
+ type: type2,
32896
33270
  duration: `${duration}ms`,
32897
33271
  success
32898
33272
  })));
@@ -33125,7 +33499,7 @@ class TelemetryService {
33125
33499
  throw error;
33126
33500
  }
33127
33501
  }
33128
- async trackDependencyOperation(name, type, fn, properties) {
33502
+ async trackDependencyOperation(name, type2, fn, properties) {
33129
33503
  const parentContext = this.getCurrentContext();
33130
33504
  if (!parentContext) {
33131
33505
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -33140,13 +33514,13 @@ class TelemetryService {
33140
33514
  const result = await this.contextStorage.run(childContext, fn);
33141
33515
  const durationMs = performance.now() - startTime;
33142
33516
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
33143
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
33517
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
33144
33518
  return result;
33145
33519
  } catch (error) {
33146
33520
  const durationMs = performance.now() - startTime;
33147
33521
  const err = error instanceof Error ? error : new Error(String(error));
33148
33522
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
33149
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
33523
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
33150
33524
  throw error;
33151
33525
  }
33152
33526
  }
@@ -33353,8 +33727,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
33353
33727
  }
33354
33728
  switch (format) {
33355
33729
  case "json": {
33356
- const json = JSON.stringify(data, null, 2);
33357
- logFn(asciiSafe ? escapeNonAscii(json) : json);
33730
+ const json2 = JSON.stringify(data, null, 2);
33731
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
33358
33732
  break;
33359
33733
  }
33360
33734
  case "yaml":
@@ -33690,8 +34064,8 @@ var OutputFormatter;
33690
34064
  const sink = getOutputSink();
33691
34065
  const normalized = toPascalCaseData(data);
33692
34066
  if (format === "json") {
33693
- const json = JSON.stringify(normalized);
33694
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
34067
+ const json2 = JSON.stringify(normalized);
34068
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
33695
34069
  sink.writeErr(`${safe}
33696
34070
  `);
33697
34071
  } else {
@@ -33941,8 +34315,8 @@ function redactValueDetectors(value) {
33941
34315
  out = out.replace(JWT_PATTERN, () => REDACTED);
33942
34316
  out = out.replace(URL_PATTERN, (match) => {
33943
34317
  const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
33944
- const core = trailing ? match.slice(0, -trailing.length) : match;
33945
- return `${redactUrl(core)}${trailing}`;
34318
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
34319
+ return `${redactUrl(core2)}${trailing}`;
33946
34320
  });
33947
34321
  out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
33948
34322
  out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
@@ -34877,12 +35251,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
34877
35251
  var saveEnvFileAsync = async ({
34878
35252
  envPath,
34879
35253
  data,
34880
- merge = true
35254
+ merge: merge2 = true
34881
35255
  }) => {
34882
35256
  const fs7 = getFileSystem();
34883
35257
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
34884
35258
  let existingData = {};
34885
- if (merge && await fs7.exists(absolutePath)) {
35259
+ if (merge2 && await fs7.exists(absolutePath)) {
34886
35260
  try {
34887
35261
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
34888
35262
  } catch {}
@@ -35802,8 +36176,8 @@ function mergeDefs(...defs) {
35802
36176
  }
35803
36177
  return Object.defineProperties({}, mergedDescriptors);
35804
36178
  }
35805
- function esc(str) {
35806
- return JSON.stringify(str);
36179
+ function esc(str2) {
36180
+ return JSON.stringify(str2);
35807
36181
  }
35808
36182
  function slugify(input) {
35809
36183
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
@@ -35848,8 +36222,8 @@ function shallowClone(o) {
35848
36222
  return o;
35849
36223
  }
35850
36224
  var propertyKeyTypes = new Set(["string", "number", "symbol"]);
35851
- function escapeRegex(str) {
35852
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36225
+ function escapeRegex(str2) {
36226
+ return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
35853
36227
  }
35854
36228
  function clone(inst, def, params) {
35855
36229
  const cl = new inst._zod.constr(def ?? inst._zod.def);
@@ -35878,14 +36252,14 @@ function optionalKeys(shape) {
35878
36252
  return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
35879
36253
  });
35880
36254
  }
35881
- function pick(schema, mask) {
35882
- const currDef = schema._zod.def;
36255
+ function pick(schema2, mask) {
36256
+ const currDef = schema2._zod.def;
35883
36257
  const checks = currDef.checks;
35884
36258
  const hasChecks = checks && checks.length > 0;
35885
36259
  if (hasChecks) {
35886
36260
  throw new Error(".pick() cannot be used on object schemas containing refinements");
35887
36261
  }
35888
- const def = mergeDefs(schema._zod.def, {
36262
+ const def = mergeDefs(schema2._zod.def, {
35889
36263
  get shape() {
35890
36264
  const newShape = {};
35891
36265
  for (const key in mask) {
@@ -35901,18 +36275,18 @@ function pick(schema, mask) {
35901
36275
  },
35902
36276
  checks: []
35903
36277
  });
35904
- return clone(schema, def);
36278
+ return clone(schema2, def);
35905
36279
  }
35906
- function omit(schema, mask) {
35907
- const currDef = schema._zod.def;
36280
+ function omit(schema2, mask) {
36281
+ const currDef = schema2._zod.def;
35908
36282
  const checks = currDef.checks;
35909
36283
  const hasChecks = checks && checks.length > 0;
35910
36284
  if (hasChecks) {
35911
36285
  throw new Error(".omit() cannot be used on object schemas containing refinements");
35912
36286
  }
35913
- const def = mergeDefs(schema._zod.def, {
36287
+ const def = mergeDefs(schema2._zod.def, {
35914
36288
  get shape() {
35915
- const newShape = { ...schema._zod.def.shape };
36289
+ const newShape = { ...schema2._zod.def.shape };
35916
36290
  for (const key in mask) {
35917
36291
  if (!(key in currDef.shape)) {
35918
36292
  throw new Error(`Unrecognized key: "${key}"`);
@@ -35926,45 +36300,45 @@ function omit(schema, mask) {
35926
36300
  },
35927
36301
  checks: []
35928
36302
  });
35929
- return clone(schema, def);
36303
+ return clone(schema2, def);
35930
36304
  }
35931
- function extend(schema, shape) {
36305
+ function extend(schema2, shape) {
35932
36306
  if (!isPlainObject(shape)) {
35933
36307
  throw new Error("Invalid input to extend: expected a plain object");
35934
36308
  }
35935
- const checks = schema._zod.def.checks;
36309
+ const checks = schema2._zod.def.checks;
35936
36310
  const hasChecks = checks && checks.length > 0;
35937
36311
  if (hasChecks) {
35938
- const existingShape = schema._zod.def.shape;
36312
+ const existingShape = schema2._zod.def.shape;
35939
36313
  for (const key in shape) {
35940
36314
  if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
35941
36315
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
35942
36316
  }
35943
36317
  }
35944
36318
  }
35945
- const def = mergeDefs(schema._zod.def, {
36319
+ const def = mergeDefs(schema2._zod.def, {
35946
36320
  get shape() {
35947
- const _shape = { ...schema._zod.def.shape, ...shape };
36321
+ const _shape = { ...schema2._zod.def.shape, ...shape };
35948
36322
  assignProp(this, "shape", _shape);
35949
36323
  return _shape;
35950
36324
  }
35951
36325
  });
35952
- return clone(schema, def);
36326
+ return clone(schema2, def);
35953
36327
  }
35954
- function safeExtend(schema, shape) {
36328
+ function safeExtend(schema2, shape) {
35955
36329
  if (!isPlainObject(shape)) {
35956
36330
  throw new Error("Invalid input to safeExtend: expected a plain object");
35957
36331
  }
35958
- const def = mergeDefs(schema._zod.def, {
36332
+ const def = mergeDefs(schema2._zod.def, {
35959
36333
  get shape() {
35960
- const _shape = { ...schema._zod.def.shape, ...shape };
36334
+ const _shape = { ...schema2._zod.def.shape, ...shape };
35961
36335
  assignProp(this, "shape", _shape);
35962
36336
  return _shape;
35963
36337
  }
35964
36338
  });
35965
- return clone(schema, def);
36339
+ return clone(schema2, def);
35966
36340
  }
35967
- function merge(a, b) {
36341
+ function merge2(a, b) {
35968
36342
  const def = mergeDefs(a._zod.def, {
35969
36343
  get shape() {
35970
36344
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -35978,16 +36352,16 @@ function merge(a, b) {
35978
36352
  });
35979
36353
  return clone(a, def);
35980
36354
  }
35981
- function partial(Class, schema, mask) {
35982
- const currDef = schema._zod.def;
36355
+ function partial(Class, schema2, mask) {
36356
+ const currDef = schema2._zod.def;
35983
36357
  const checks = currDef.checks;
35984
36358
  const hasChecks = checks && checks.length > 0;
35985
36359
  if (hasChecks) {
35986
36360
  throw new Error(".partial() cannot be used on object schemas containing refinements");
35987
36361
  }
35988
- const def = mergeDefs(schema._zod.def, {
36362
+ const def = mergeDefs(schema2._zod.def, {
35989
36363
  get shape() {
35990
- const oldShape = schema._zod.def.shape;
36364
+ const oldShape = schema2._zod.def.shape;
35991
36365
  const shape = { ...oldShape };
35992
36366
  if (mask) {
35993
36367
  for (const key in mask) {
@@ -36014,12 +36388,12 @@ function partial(Class, schema, mask) {
36014
36388
  },
36015
36389
  checks: []
36016
36390
  });
36017
- return clone(schema, def);
36391
+ return clone(schema2, def);
36018
36392
  }
36019
- function required(Class, schema, mask) {
36020
- const def = mergeDefs(schema._zod.def, {
36393
+ function required(Class, schema2, mask) {
36394
+ const def = mergeDefs(schema2._zod.def, {
36021
36395
  get shape() {
36022
- const oldShape = schema._zod.def.shape;
36396
+ const oldShape = schema2._zod.def.shape;
36023
36397
  const shape = { ...oldShape };
36024
36398
  if (mask) {
36025
36399
  for (const key in mask) {
@@ -36045,7 +36419,7 @@ function required(Class, schema, mask) {
36045
36419
  return shape;
36046
36420
  }
36047
36421
  });
36048
- return clone(schema, def);
36422
+ return clone(schema2, def);
36049
36423
  }
36050
36424
  function aborted(x, startIndex = 0) {
36051
36425
  if (x.aborted === true)
@@ -36164,9 +36538,9 @@ function formatError(error, mapper = (issue2) => issue2.message) {
36164
36538
  processError(error);
36165
36539
  return fieldErrors;
36166
36540
  }
36167
- var _parse = (_Err) => (schema, value, _ctx, _params) => {
36541
+ var _parse = (_Err) => (schema2, value, _ctx, _params) => {
36168
36542
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
36169
- const result = schema._zod.run({ value, issues: [] }, ctx);
36543
+ const result = schema2._zod.run({ value, issues: [] }, ctx);
36170
36544
  if (result instanceof Promise) {
36171
36545
  throw new $ZodAsyncError;
36172
36546
  }
@@ -36177,9 +36551,9 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
36177
36551
  }
36178
36552
  return result.value;
36179
36553
  };
36180
- var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
36554
+ var _parseAsync = (_Err) => async (schema2, value, _ctx, params) => {
36181
36555
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
36182
- let result = schema._zod.run({ value, issues: [] }, ctx);
36556
+ let result = schema2._zod.run({ value, issues: [] }, ctx);
36183
36557
  if (result instanceof Promise)
36184
36558
  result = await result;
36185
36559
  if (result.issues.length) {
@@ -36189,9 +36563,9 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
36189
36563
  }
36190
36564
  return result.value;
36191
36565
  };
36192
- var _safeParse = (_Err) => (schema, value, _ctx) => {
36566
+ var _safeParse = (_Err) => (schema2, value, _ctx) => {
36193
36567
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
36194
- const result = schema._zod.run({ value, issues: [] }, ctx);
36568
+ const result = schema2._zod.run({ value, issues: [] }, ctx);
36195
36569
  if (result instanceof Promise) {
36196
36570
  throw new $ZodAsyncError;
36197
36571
  }
@@ -36201,9 +36575,9 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
36201
36575
  } : { success: true, data: result.value };
36202
36576
  };
36203
36577
  var safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
36204
- var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
36578
+ var _safeParseAsync = (_Err) => async (schema2, value, _ctx) => {
36205
36579
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
36206
- let result = schema._zod.run({ value, issues: [] }, ctx);
36580
+ let result = schema2._zod.run({ value, issues: [] }, ctx);
36207
36581
  if (result instanceof Promise)
36208
36582
  result = await result;
36209
36583
  return result.issues.length ? {
@@ -36212,33 +36586,33 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
36212
36586
  } : { success: true, data: result.value };
36213
36587
  };
36214
36588
  var safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
36215
- var _encode = (_Err) => (schema, value, _ctx) => {
36589
+ var _encode = (_Err) => (schema2, value, _ctx) => {
36216
36590
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36217
- return _parse(_Err)(schema, value, ctx);
36591
+ return _parse(_Err)(schema2, value, ctx);
36218
36592
  };
36219
- var _decode = (_Err) => (schema, value, _ctx) => {
36220
- return _parse(_Err)(schema, value, _ctx);
36593
+ var _decode = (_Err) => (schema2, value, _ctx) => {
36594
+ return _parse(_Err)(schema2, value, _ctx);
36221
36595
  };
36222
- var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
36596
+ var _encodeAsync = (_Err) => async (schema2, value, _ctx) => {
36223
36597
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36224
- return _parseAsync(_Err)(schema, value, ctx);
36598
+ return _parseAsync(_Err)(schema2, value, ctx);
36225
36599
  };
36226
- var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
36227
- return _parseAsync(_Err)(schema, value, _ctx);
36600
+ var _decodeAsync = (_Err) => async (schema2, value, _ctx) => {
36601
+ return _parseAsync(_Err)(schema2, value, _ctx);
36228
36602
  };
36229
- var _safeEncode = (_Err) => (schema, value, _ctx) => {
36603
+ var _safeEncode = (_Err) => (schema2, value, _ctx) => {
36230
36604
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36231
- return _safeParse(_Err)(schema, value, ctx);
36605
+ return _safeParse(_Err)(schema2, value, ctx);
36232
36606
  };
36233
- var _safeDecode = (_Err) => (schema, value, _ctx) => {
36234
- return _safeParse(_Err)(schema, value, _ctx);
36607
+ var _safeDecode = (_Err) => (schema2, value, _ctx) => {
36608
+ return _safeParse(_Err)(schema2, value, _ctx);
36235
36609
  };
36236
- var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
36610
+ var _safeEncodeAsync = (_Err) => async (schema2, value, _ctx) => {
36237
36611
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36238
- return _safeParseAsync(_Err)(schema, value, ctx);
36612
+ return _safeParseAsync(_Err)(schema2, value, ctx);
36239
36613
  };
36240
- var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
36241
- return _safeParseAsync(_Err)(schema, value, _ctx);
36614
+ var _safeDecodeAsync = (_Err) => async (schema2, value, _ctx) => {
36615
+ return _safeParseAsync(_Err)(schema2, value, _ctx);
36242
36616
  };
36243
36617
  var cuid = /^[cC][^\s-]{8,}$/;
36244
36618
  var cuid2 = /^[0-9a-z]+$/;
@@ -37161,8 +37535,8 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
37161
37535
  for (const key of normalized.keys) {
37162
37536
  const id = ids[key];
37163
37537
  const k = esc(key);
37164
- const schema = shape[key];
37165
- const isOptionalOut = schema?._zod?.optout === "optional";
37538
+ const schema2 = shape[key];
37539
+ const isOptionalOut = schema2?._zod?.optout === "optional";
37166
37540
  doc.write(`const ${id} = ${parseStr(key)};`);
37167
37541
  if (isOptionalOut) {
37168
37542
  doc.write(`
@@ -37689,11 +38063,11 @@ class $ZodRegistry {
37689
38063
  this._map = new WeakMap;
37690
38064
  this._idmap = new Map;
37691
38065
  }
37692
- add(schema, ..._meta) {
38066
+ add(schema2, ..._meta) {
37693
38067
  const meta = _meta[0];
37694
- this._map.set(schema, meta);
38068
+ this._map.set(schema2, meta);
37695
38069
  if (meta && typeof meta === "object" && "id" in meta) {
37696
- this._idmap.set(meta.id, schema);
38070
+ this._idmap.set(meta.id, schema2);
37697
38071
  }
37698
38072
  return this;
37699
38073
  }
@@ -37702,26 +38076,26 @@ class $ZodRegistry {
37702
38076
  this._idmap = new Map;
37703
38077
  return this;
37704
38078
  }
37705
- remove(schema) {
37706
- const meta = this._map.get(schema);
38079
+ remove(schema2) {
38080
+ const meta = this._map.get(schema2);
37707
38081
  if (meta && typeof meta === "object" && "id" in meta) {
37708
38082
  this._idmap.delete(meta.id);
37709
38083
  }
37710
- this._map.delete(schema);
38084
+ this._map.delete(schema2);
37711
38085
  return this;
37712
38086
  }
37713
- get(schema) {
37714
- const p = schema._zod.parent;
38087
+ get(schema2) {
38088
+ const p = schema2._zod.parent;
37715
38089
  if (p) {
37716
38090
  const pm = { ...this.get(p) ?? {} };
37717
38091
  delete pm.id;
37718
- const f = { ...pm, ...this._map.get(schema) };
38092
+ const f = { ...pm, ...this._map.get(schema2) };
37719
38093
  return Object.keys(f).length ? f : undefined;
37720
38094
  }
37721
- return this._map.get(schema);
38095
+ return this._map.get(schema2);
37722
38096
  }
37723
- has(schema) {
37724
- return this._map.has(schema);
38097
+ has(schema2) {
38098
+ return this._map.has(schema2);
37725
38099
  }
37726
38100
  }
37727
38101
  function registry2() {
@@ -38080,13 +38454,13 @@ function _array(Class, element, params) {
38080
38454
  });
38081
38455
  }
38082
38456
  function _refine(Class, fn, _params) {
38083
- const schema = new Class({
38457
+ const schema2 = new Class({
38084
38458
  type: "custom",
38085
38459
  check: "custom",
38086
38460
  fn,
38087
38461
  ...normalizeParams(_params)
38088
38462
  });
38089
- return schema;
38463
+ return schema2;
38090
38464
  }
38091
38465
  function _superRefine(fn) {
38092
38466
  const ch = _check((payload) => {
@@ -38136,40 +38510,40 @@ function initializeContext(params) {
38136
38510
  external: params?.external ?? undefined
38137
38511
  };
38138
38512
  }
38139
- function process9(schema, ctx, _params = { path: [], schemaPath: [] }) {
38513
+ function process9(schema2, ctx, _params = { path: [], schemaPath: [] }) {
38140
38514
  var _a2;
38141
- const def = schema._zod.def;
38142
- const seen = ctx.seen.get(schema);
38515
+ const def = schema2._zod.def;
38516
+ const seen = ctx.seen.get(schema2);
38143
38517
  if (seen) {
38144
38518
  seen.count++;
38145
- const isCycle = _params.schemaPath.includes(schema);
38519
+ const isCycle = _params.schemaPath.includes(schema2);
38146
38520
  if (isCycle) {
38147
38521
  seen.cycle = _params.path;
38148
38522
  }
38149
38523
  return seen.schema;
38150
38524
  }
38151
38525
  const result = { schema: {}, count: 1, cycle: undefined, path: _params.path };
38152
- ctx.seen.set(schema, result);
38153
- const overrideSchema = schema._zod.toJSONSchema?.();
38526
+ ctx.seen.set(schema2, result);
38527
+ const overrideSchema = schema2._zod.toJSONSchema?.();
38154
38528
  if (overrideSchema) {
38155
38529
  result.schema = overrideSchema;
38156
38530
  } else {
38157
38531
  const params = {
38158
38532
  ..._params,
38159
- schemaPath: [..._params.schemaPath, schema],
38533
+ schemaPath: [..._params.schemaPath, schema2],
38160
38534
  path: _params.path
38161
38535
  };
38162
- if (schema._zod.processJSONSchema) {
38163
- schema._zod.processJSONSchema(ctx, result.schema, params);
38536
+ if (schema2._zod.processJSONSchema) {
38537
+ schema2._zod.processJSONSchema(ctx, result.schema, params);
38164
38538
  } else {
38165
38539
  const _json = result.schema;
38166
38540
  const processor = ctx.processors[def.type];
38167
38541
  if (!processor) {
38168
38542
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
38169
38543
  }
38170
- processor(schema, ctx, _json, params);
38544
+ processor(schema2, ctx, _json, params);
38171
38545
  }
38172
- const parent = schema._zod.parent;
38546
+ const parent = schema2._zod.parent;
38173
38547
  if (parent) {
38174
38548
  if (!result.ref)
38175
38549
  result.ref = parent;
@@ -38177,21 +38551,21 @@ function process9(schema, ctx, _params = { path: [], schemaPath: [] }) {
38177
38551
  ctx.seen.get(parent).isParent = true;
38178
38552
  }
38179
38553
  }
38180
- const meta = ctx.metadataRegistry.get(schema);
38554
+ const meta = ctx.metadataRegistry.get(schema2);
38181
38555
  if (meta)
38182
38556
  Object.assign(result.schema, meta);
38183
- if (ctx.io === "input" && isTransforming(schema)) {
38557
+ if (ctx.io === "input" && isTransforming(schema2)) {
38184
38558
  delete result.schema.examples;
38185
38559
  delete result.schema.default;
38186
38560
  }
38187
38561
  if (ctx.io === "input" && result.schema._prefault)
38188
38562
  (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
38189
38563
  delete result.schema._prefault;
38190
- const _result = ctx.seen.get(schema);
38564
+ const _result = ctx.seen.get(schema2);
38191
38565
  return _result.schema;
38192
38566
  }
38193
- function extractDefs(ctx, schema) {
38194
- const root = ctx.seen.get(schema);
38567
+ function extractDefs(ctx, schema2) {
38568
+ const root = ctx.seen.get(schema2);
38195
38569
  if (!root)
38196
38570
  throw new Error("Unprocessed schema. This is a bug in Zod.");
38197
38571
  const idToSchema = new Map;
@@ -38234,11 +38608,11 @@ function extractDefs(ctx, schema) {
38234
38608
  seen.def = { ...seen.schema };
38235
38609
  if (defId)
38236
38610
  seen.defId = defId;
38237
- const schema2 = seen.schema;
38238
- for (const key in schema2) {
38239
- delete schema2[key];
38611
+ const schema3 = seen.schema;
38612
+ for (const key in schema3) {
38613
+ delete schema3[key];
38240
38614
  }
38241
- schema2.$ref = ref;
38615
+ schema3.$ref = ref;
38242
38616
  };
38243
38617
  if (ctx.cycles === "throw") {
38244
38618
  for (const entry of ctx.seen.entries()) {
@@ -38250,13 +38624,13 @@ function extractDefs(ctx, schema) {
38250
38624
  }
38251
38625
  for (const entry of ctx.seen.entries()) {
38252
38626
  const seen = entry[1];
38253
- if (schema === entry[0]) {
38627
+ if (schema2 === entry[0]) {
38254
38628
  extractToDef(entry);
38255
38629
  continue;
38256
38630
  }
38257
38631
  if (ctx.external) {
38258
38632
  const ext = ctx.external.registry.get(entry[0])?.id;
38259
- if (schema !== entry[0] && ext) {
38633
+ if (schema2 !== entry[0] && ext) {
38260
38634
  extractToDef(entry);
38261
38635
  continue;
38262
38636
  }
@@ -38278,16 +38652,16 @@ function extractDefs(ctx, schema) {
38278
38652
  }
38279
38653
  }
38280
38654
  }
38281
- function finalize(ctx, schema) {
38282
- const root = ctx.seen.get(schema);
38655
+ function finalize(ctx, schema2) {
38656
+ const root = ctx.seen.get(schema2);
38283
38657
  if (!root)
38284
38658
  throw new Error("Unprocessed schema. This is a bug in Zod.");
38285
38659
  const flattenRef = (zodSchema) => {
38286
38660
  const seen = ctx.seen.get(zodSchema);
38287
38661
  if (seen.ref === null)
38288
38662
  return;
38289
- const schema2 = seen.def ?? seen.schema;
38290
- const _cached = { ...schema2 };
38663
+ const schema3 = seen.def ?? seen.schema;
38664
+ const _cached = { ...schema3 };
38291
38665
  const ref = seen.ref;
38292
38666
  seen.ref = null;
38293
38667
  if (ref) {
@@ -38295,28 +38669,28 @@ function finalize(ctx, schema) {
38295
38669
  const refSeen = ctx.seen.get(ref);
38296
38670
  const refSchema = refSeen.schema;
38297
38671
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
38298
- schema2.allOf = schema2.allOf ?? [];
38299
- schema2.allOf.push(refSchema);
38672
+ schema3.allOf = schema3.allOf ?? [];
38673
+ schema3.allOf.push(refSchema);
38300
38674
  } else {
38301
- Object.assign(schema2, refSchema);
38675
+ Object.assign(schema3, refSchema);
38302
38676
  }
38303
- Object.assign(schema2, _cached);
38677
+ Object.assign(schema3, _cached);
38304
38678
  const isParentRef = zodSchema._zod.parent === ref;
38305
38679
  if (isParentRef) {
38306
- for (const key in schema2) {
38680
+ for (const key in schema3) {
38307
38681
  if (key === "$ref" || key === "allOf")
38308
38682
  continue;
38309
38683
  if (!(key in _cached)) {
38310
- delete schema2[key];
38684
+ delete schema3[key];
38311
38685
  }
38312
38686
  }
38313
38687
  }
38314
38688
  if (refSchema.$ref && refSeen.def) {
38315
- for (const key in schema2) {
38689
+ for (const key in schema3) {
38316
38690
  if (key === "$ref" || key === "allOf")
38317
38691
  continue;
38318
- if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
38319
- delete schema2[key];
38692
+ if (key in refSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(refSeen.def[key])) {
38693
+ delete schema3[key];
38320
38694
  }
38321
38695
  }
38322
38696
  }
@@ -38326,13 +38700,13 @@ function finalize(ctx, schema) {
38326
38700
  flattenRef(parent);
38327
38701
  const parentSeen = ctx.seen.get(parent);
38328
38702
  if (parentSeen?.schema.$ref) {
38329
- schema2.$ref = parentSeen.schema.$ref;
38703
+ schema3.$ref = parentSeen.schema.$ref;
38330
38704
  if (parentSeen.def) {
38331
- for (const key in schema2) {
38705
+ for (const key in schema3) {
38332
38706
  if (key === "$ref" || key === "allOf")
38333
38707
  continue;
38334
- if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
38335
- delete schema2[key];
38708
+ if (key in parentSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(parentSeen.def[key])) {
38709
+ delete schema3[key];
38336
38710
  }
38337
38711
  }
38338
38712
  }
@@ -38340,7 +38714,7 @@ function finalize(ctx, schema) {
38340
38714
  }
38341
38715
  ctx.override({
38342
38716
  zodSchema,
38343
- jsonSchema: schema2,
38717
+ jsonSchema: schema3,
38344
38718
  path: seen.path ?? []
38345
38719
  });
38346
38720
  };
@@ -38357,7 +38731,7 @@ function finalize(ctx, schema) {
38357
38731
  } else if (ctx.target === "openapi-3.0")
38358
38732
  ;
38359
38733
  if (ctx.external?.uri) {
38360
- const id = ctx.external.registry.get(schema)?.id;
38734
+ const id = ctx.external.registry.get(schema2)?.id;
38361
38735
  if (!id)
38362
38736
  throw new Error("Schema is missing an `id` property");
38363
38737
  result.$id = ctx.external.uri(id);
@@ -38385,10 +38759,10 @@ function finalize(ctx, schema) {
38385
38759
  const finalized = JSON.parse(JSON.stringify(result));
38386
38760
  Object.defineProperty(finalized, "~standard", {
38387
38761
  value: {
38388
- ...schema["~standard"],
38762
+ ...schema2["~standard"],
38389
38763
  jsonSchema: {
38390
- input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
38391
- output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
38764
+ input: createStandardJSONSchemaMethod(schema2, "input", ctx.processors),
38765
+ output: createStandardJSONSchemaMethod(schema2, "output", ctx.processors)
38392
38766
  }
38393
38767
  },
38394
38768
  enumerable: false,
@@ -38450,18 +38824,18 @@ function isTransforming(_schema, _ctx) {
38450
38824
  }
38451
38825
  return false;
38452
38826
  }
38453
- var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
38827
+ var createToJSONSchemaMethod = (schema2, processors = {}) => (params) => {
38454
38828
  const ctx = initializeContext({ ...params, processors });
38455
- process9(schema, ctx);
38456
- extractDefs(ctx, schema);
38457
- return finalize(ctx, schema);
38829
+ process9(schema2, ctx);
38830
+ extractDefs(ctx, schema2);
38831
+ return finalize(ctx, schema2);
38458
38832
  };
38459
- var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
38833
+ var createStandardJSONSchemaMethod = (schema2, io, processors = {}) => (params) => {
38460
38834
  const { libraryOptions, target } = params ?? {};
38461
38835
  const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
38462
- process9(schema, ctx);
38463
- extractDefs(ctx, schema);
38464
- return finalize(ctx, schema);
38836
+ process9(schema2, ctx);
38837
+ extractDefs(ctx, schema2);
38838
+ return finalize(ctx, schema2);
38465
38839
  };
38466
38840
  var formatMap = {
38467
38841
  guid: "uuid",
@@ -38470,30 +38844,30 @@ var formatMap = {
38470
38844
  json_string: "json-string",
38471
38845
  regex: ""
38472
38846
  };
38473
- var stringProcessor = (schema, ctx, _json, _params) => {
38474
- const json = _json;
38475
- json.type = "string";
38476
- const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
38847
+ var stringProcessor = (schema2, ctx, _json, _params) => {
38848
+ const json2 = _json;
38849
+ json2.type = "string";
38850
+ const { minimum, maximum, format, patterns, contentEncoding } = schema2._zod.bag;
38477
38851
  if (typeof minimum === "number")
38478
- json.minLength = minimum;
38852
+ json2.minLength = minimum;
38479
38853
  if (typeof maximum === "number")
38480
- json.maxLength = maximum;
38854
+ json2.maxLength = maximum;
38481
38855
  if (format) {
38482
- json.format = formatMap[format] ?? format;
38483
- if (json.format === "")
38484
- delete json.format;
38856
+ json2.format = formatMap[format] ?? format;
38857
+ if (json2.format === "")
38858
+ delete json2.format;
38485
38859
  if (format === "time") {
38486
- delete json.format;
38860
+ delete json2.format;
38487
38861
  }
38488
38862
  }
38489
38863
  if (contentEncoding)
38490
- json.contentEncoding = contentEncoding;
38864
+ json2.contentEncoding = contentEncoding;
38491
38865
  if (patterns && patterns.size > 0) {
38492
38866
  const regexes = [...patterns];
38493
38867
  if (regexes.length === 1)
38494
- json.pattern = regexes[0].source;
38868
+ json2.pattern = regexes[0].source;
38495
38869
  else if (regexes.length > 1) {
38496
- json.allOf = [
38870
+ json2.allOf = [
38497
38871
  ...regexes.map((regex) => ({
38498
38872
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
38499
38873
  pattern: regex.source
@@ -38502,18 +38876,18 @@ var stringProcessor = (schema, ctx, _json, _params) => {
38502
38876
  }
38503
38877
  }
38504
38878
  };
38505
- var neverProcessor = (_schema, _ctx, json, _params) => {
38506
- json.not = {};
38879
+ var neverProcessor = (_schema, _ctx, json2, _params) => {
38880
+ json2.not = {};
38507
38881
  };
38508
38882
  var unknownProcessor = (_schema, _ctx, _json, _params) => {};
38509
- var enumProcessor = (schema, _ctx, json, _params) => {
38510
- const def = schema._zod.def;
38883
+ var enumProcessor = (schema2, _ctx, json2, _params) => {
38884
+ const def = schema2._zod.def;
38511
38885
  const values = getEnumValues(def.entries);
38512
38886
  if (values.every((v) => typeof v === "number"))
38513
- json.type = "number";
38887
+ json2.type = "number";
38514
38888
  if (values.every((v) => typeof v === "string"))
38515
- json.type = "string";
38516
- json.enum = values;
38889
+ json2.type = "string";
38890
+ json2.enum = values;
38517
38891
  };
38518
38892
  var customProcessor = (_schema, ctx, _json, _params) => {
38519
38893
  if (ctx.unrepresentable === "throw") {
@@ -38525,25 +38899,25 @@ var transformProcessor = (_schema, ctx, _json, _params) => {
38525
38899
  throw new Error("Transforms cannot be represented in JSON Schema");
38526
38900
  }
38527
38901
  };
38528
- var arrayProcessor = (schema, ctx, _json, params) => {
38529
- const json = _json;
38530
- const def = schema._zod.def;
38531
- const { minimum, maximum } = schema._zod.bag;
38902
+ var arrayProcessor = (schema2, ctx, _json, params) => {
38903
+ const json2 = _json;
38904
+ const def = schema2._zod.def;
38905
+ const { minimum, maximum } = schema2._zod.bag;
38532
38906
  if (typeof minimum === "number")
38533
- json.minItems = minimum;
38907
+ json2.minItems = minimum;
38534
38908
  if (typeof maximum === "number")
38535
- json.maxItems = maximum;
38536
- json.type = "array";
38537
- json.items = process9(def.element, ctx, { ...params, path: [...params.path, "items"] });
38909
+ json2.maxItems = maximum;
38910
+ json2.type = "array";
38911
+ json2.items = process9(def.element, ctx, { ...params, path: [...params.path, "items"] });
38538
38912
  };
38539
- var objectProcessor = (schema, ctx, _json, params) => {
38540
- const json = _json;
38541
- const def = schema._zod.def;
38542
- json.type = "object";
38543
- json.properties = {};
38913
+ var objectProcessor = (schema2, ctx, _json, params) => {
38914
+ const json2 = _json;
38915
+ const def = schema2._zod.def;
38916
+ json2.type = "object";
38917
+ json2.properties = {};
38544
38918
  const shape = def.shape;
38545
38919
  for (const key in shape) {
38546
- json.properties[key] = process9(shape[key], ctx, {
38920
+ json2.properties[key] = process9(shape[key], ctx, {
38547
38921
  ...params,
38548
38922
  path: [...params.path, "properties", key]
38549
38923
  });
@@ -38558,35 +38932,35 @@ var objectProcessor = (schema, ctx, _json, params) => {
38558
38932
  }
38559
38933
  }));
38560
38934
  if (requiredKeys.size > 0) {
38561
- json.required = Array.from(requiredKeys);
38935
+ json2.required = Array.from(requiredKeys);
38562
38936
  }
38563
38937
  if (def.catchall?._zod.def.type === "never") {
38564
- json.additionalProperties = false;
38938
+ json2.additionalProperties = false;
38565
38939
  } else if (!def.catchall) {
38566
38940
  if (ctx.io === "output")
38567
- json.additionalProperties = false;
38941
+ json2.additionalProperties = false;
38568
38942
  } else if (def.catchall) {
38569
- json.additionalProperties = process9(def.catchall, ctx, {
38943
+ json2.additionalProperties = process9(def.catchall, ctx, {
38570
38944
  ...params,
38571
38945
  path: [...params.path, "additionalProperties"]
38572
38946
  });
38573
38947
  }
38574
38948
  };
38575
- var unionProcessor = (schema, ctx, json, params) => {
38576
- const def = schema._zod.def;
38949
+ var unionProcessor = (schema2, ctx, json2, params) => {
38950
+ const def = schema2._zod.def;
38577
38951
  const isExclusive = def.inclusive === false;
38578
38952
  const options = def.options.map((x, i) => process9(x, ctx, {
38579
38953
  ...params,
38580
38954
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
38581
38955
  }));
38582
38956
  if (isExclusive) {
38583
- json.oneOf = options;
38957
+ json2.oneOf = options;
38584
38958
  } else {
38585
- json.anyOf = options;
38959
+ json2.anyOf = options;
38586
38960
  }
38587
38961
  };
38588
- var intersectionProcessor = (schema, ctx, json, params) => {
38589
- const def = schema._zod.def;
38962
+ var intersectionProcessor = (schema2, ctx, json2, params) => {
38963
+ const def = schema2._zod.def;
38590
38964
  const a = process9(def.left, ctx, {
38591
38965
  ...params,
38592
38966
  path: [...params.path, "allOf", 0]
@@ -38600,44 +38974,44 @@ var intersectionProcessor = (schema, ctx, json, params) => {
38600
38974
  ...isSimpleIntersection(a) ? a.allOf : [a],
38601
38975
  ...isSimpleIntersection(b) ? b.allOf : [b]
38602
38976
  ];
38603
- json.allOf = allOf;
38977
+ json2.allOf = allOf;
38604
38978
  };
38605
- var nullableProcessor = (schema, ctx, json, params) => {
38606
- const def = schema._zod.def;
38979
+ var nullableProcessor = (schema2, ctx, json2, params) => {
38980
+ const def = schema2._zod.def;
38607
38981
  const inner = process9(def.innerType, ctx, params);
38608
- const seen = ctx.seen.get(schema);
38982
+ const seen = ctx.seen.get(schema2);
38609
38983
  if (ctx.target === "openapi-3.0") {
38610
38984
  seen.ref = def.innerType;
38611
- json.nullable = true;
38985
+ json2.nullable = true;
38612
38986
  } else {
38613
- json.anyOf = [inner, { type: "null" }];
38987
+ json2.anyOf = [inner, { type: "null" }];
38614
38988
  }
38615
38989
  };
38616
- var nonoptionalProcessor = (schema, ctx, _json, params) => {
38617
- const def = schema._zod.def;
38990
+ var nonoptionalProcessor = (schema2, ctx, _json, params) => {
38991
+ const def = schema2._zod.def;
38618
38992
  process9(def.innerType, ctx, params);
38619
- const seen = ctx.seen.get(schema);
38993
+ const seen = ctx.seen.get(schema2);
38620
38994
  seen.ref = def.innerType;
38621
38995
  };
38622
- var defaultProcessor = (schema, ctx, json, params) => {
38623
- const def = schema._zod.def;
38996
+ var defaultProcessor = (schema2, ctx, json2, params) => {
38997
+ const def = schema2._zod.def;
38624
38998
  process9(def.innerType, ctx, params);
38625
- const seen = ctx.seen.get(schema);
38999
+ const seen = ctx.seen.get(schema2);
38626
39000
  seen.ref = def.innerType;
38627
- json.default = JSON.parse(JSON.stringify(def.defaultValue));
39001
+ json2.default = JSON.parse(JSON.stringify(def.defaultValue));
38628
39002
  };
38629
- var prefaultProcessor = (schema, ctx, json, params) => {
38630
- const def = schema._zod.def;
39003
+ var prefaultProcessor = (schema2, ctx, json2, params) => {
39004
+ const def = schema2._zod.def;
38631
39005
  process9(def.innerType, ctx, params);
38632
- const seen = ctx.seen.get(schema);
39006
+ const seen = ctx.seen.get(schema2);
38633
39007
  seen.ref = def.innerType;
38634
39008
  if (ctx.io === "input")
38635
- json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
39009
+ json2._prefault = JSON.parse(JSON.stringify(def.defaultValue));
38636
39010
  };
38637
- var catchProcessor = (schema, ctx, json, params) => {
38638
- const def = schema._zod.def;
39011
+ var catchProcessor = (schema2, ctx, json2, params) => {
39012
+ const def = schema2._zod.def;
38639
39013
  process9(def.innerType, ctx, params);
38640
- const seen = ctx.seen.get(schema);
39014
+ const seen = ctx.seen.get(schema2);
38641
39015
  seen.ref = def.innerType;
38642
39016
  let catchValue;
38643
39017
  try {
@@ -38645,26 +39019,26 @@ var catchProcessor = (schema, ctx, json, params) => {
38645
39019
  } catch {
38646
39020
  throw new Error("Dynamic catch values are not supported in JSON Schema");
38647
39021
  }
38648
- json.default = catchValue;
39022
+ json2.default = catchValue;
38649
39023
  };
38650
- var pipeProcessor = (schema, ctx, _json, params) => {
38651
- const def = schema._zod.def;
39024
+ var pipeProcessor = (schema2, ctx, _json, params) => {
39025
+ const def = schema2._zod.def;
38652
39026
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
38653
39027
  process9(innerType, ctx, params);
38654
- const seen = ctx.seen.get(schema);
39028
+ const seen = ctx.seen.get(schema2);
38655
39029
  seen.ref = innerType;
38656
39030
  };
38657
- var readonlyProcessor = (schema, ctx, json, params) => {
38658
- const def = schema._zod.def;
39031
+ var readonlyProcessor = (schema2, ctx, json2, params) => {
39032
+ const def = schema2._zod.def;
38659
39033
  process9(def.innerType, ctx, params);
38660
- const seen = ctx.seen.get(schema);
39034
+ const seen = ctx.seen.get(schema2);
38661
39035
  seen.ref = def.innerType;
38662
- json.readOnly = true;
39036
+ json2.readOnly = true;
38663
39037
  };
38664
- var optionalProcessor = (schema, ctx, _json, params) => {
38665
- const def = schema._zod.def;
39038
+ var optionalProcessor = (schema2, ctx, _json, params) => {
39039
+ const def = schema2._zod.def;
38666
39040
  process9(def.innerType, ctx, params);
38667
- const seen = ctx.seen.get(schema);
39041
+ const seen = ctx.seen.get(schema2);
38668
39042
  seen.ref = def.innerType;
38669
39043
  };
38670
39044
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
@@ -38793,7 +39167,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
38793
39167
  inst.or = (arg) => union([inst, arg]);
38794
39168
  inst.and = (arg) => intersection(inst, arg);
38795
39169
  inst.transform = (tx) => pipe(inst, transform(tx));
38796
- inst.default = (def2) => _default(inst, def2);
39170
+ inst.default = (def2) => _default2(inst, def2);
38797
39171
  inst.prefault = (def2) => prefault(inst, def2);
38798
39172
  inst.catch = (params) => _catch(inst, params);
38799
39173
  inst.pipe = (target) => pipe(inst, target);
@@ -38825,7 +39199,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
38825
39199
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
38826
39200
  $ZodString.init(inst, def);
38827
39201
  ZodType.init(inst, def);
38828
- inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json);
39202
+ inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2);
38829
39203
  const bag = inst._zod.bag;
38830
39204
  inst.format = bag.format ?? null;
38831
39205
  inst.minLength = bag.minimum ?? null;
@@ -38963,7 +39337,7 @@ var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
38963
39337
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
38964
39338
  $ZodUnknown.init(inst, def);
38965
39339
  ZodType.init(inst, def);
38966
- inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor();
39340
+ inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor();
38967
39341
  });
38968
39342
  function unknown() {
38969
39343
  return _unknown(ZodUnknown);
@@ -38971,7 +39345,7 @@ function unknown() {
38971
39345
  var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
38972
39346
  $ZodNever.init(inst, def);
38973
39347
  ZodType.init(inst, def);
38974
- inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json);
39348
+ inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2);
38975
39349
  });
38976
39350
  function never(params) {
38977
39351
  return _never(ZodNever, params);
@@ -38979,7 +39353,7 @@ function never(params) {
38979
39353
  var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
38980
39354
  $ZodArray.init(inst, def);
38981
39355
  ZodType.init(inst, def);
38982
- inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
39356
+ inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
38983
39357
  inst.element = def.element;
38984
39358
  inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
38985
39359
  inst.nonempty = (params) => inst.check(_minLength(1, params));
@@ -38993,7 +39367,7 @@ function array(element, params) {
38993
39367
  var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
38994
39368
  $ZodObjectJIT.init(inst, def);
38995
39369
  ZodType.init(inst, def);
38996
- inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
39370
+ inst._zod.processJSONSchema = (ctx, json2, params) => objectProcessor(inst, ctx, json2, params);
38997
39371
  defineLazy(inst, "shape", () => {
38998
39372
  return def.shape;
38999
39373
  });
@@ -39009,7 +39383,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
39009
39383
  inst.safeExtend = (incoming) => {
39010
39384
  return safeExtend(inst, incoming);
39011
39385
  };
39012
- inst.merge = (other) => merge(inst, other);
39386
+ inst.merge = (other) => merge2(inst, other);
39013
39387
  inst.pick = (mask) => pick(inst, mask);
39014
39388
  inst.omit = (mask) => omit(inst, mask);
39015
39389
  inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
@@ -39026,7 +39400,7 @@ function object(shape, params) {
39026
39400
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
39027
39401
  $ZodUnion.init(inst, def);
39028
39402
  ZodType.init(inst, def);
39029
- inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
39403
+ inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor(inst, ctx, json2, params);
39030
39404
  inst.options = def.options;
39031
39405
  });
39032
39406
  function union(options, params) {
@@ -39039,7 +39413,7 @@ function union(options, params) {
39039
39413
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
39040
39414
  $ZodIntersection.init(inst, def);
39041
39415
  ZodType.init(inst, def);
39042
- inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
39416
+ inst._zod.processJSONSchema = (ctx, json2, params) => intersectionProcessor(inst, ctx, json2, params);
39043
39417
  });
39044
39418
  function intersection(left, right) {
39045
39419
  return new ZodIntersection({
@@ -39051,7 +39425,7 @@ function intersection(left, right) {
39051
39425
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
39052
39426
  $ZodEnum.init(inst, def);
39053
39427
  ZodType.init(inst, def);
39054
- inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json);
39428
+ inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2);
39055
39429
  inst.enum = def.entries;
39056
39430
  inst.options = Object.values(def.entries);
39057
39431
  const keys = new Set(Object.keys(def.entries));
@@ -39097,7 +39471,7 @@ function _enum(values, params) {
39097
39471
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
39098
39472
  $ZodTransform.init(inst, def);
39099
39473
  ZodType.init(inst, def);
39100
- inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx);
39474
+ inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx);
39101
39475
  inst._zod.parse = (payload, _ctx) => {
39102
39476
  if (_ctx.direction === "backward") {
39103
39477
  throw new $ZodEncodeError(inst.constructor.name);
@@ -39135,7 +39509,7 @@ function transform(fn) {
39135
39509
  var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
39136
39510
  $ZodOptional.init(inst, def);
39137
39511
  ZodType.init(inst, def);
39138
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
39512
+ inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params);
39139
39513
  inst.unwrap = () => inst._zod.def.innerType;
39140
39514
  });
39141
39515
  function optional(innerType) {
@@ -39147,7 +39521,7 @@ function optional(innerType) {
39147
39521
  var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
39148
39522
  $ZodExactOptional.init(inst, def);
39149
39523
  ZodType.init(inst, def);
39150
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
39524
+ inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params);
39151
39525
  inst.unwrap = () => inst._zod.def.innerType;
39152
39526
  });
39153
39527
  function exactOptional(innerType) {
@@ -39159,7 +39533,7 @@ function exactOptional(innerType) {
39159
39533
  var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
39160
39534
  $ZodNullable.init(inst, def);
39161
39535
  ZodType.init(inst, def);
39162
- inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
39536
+ inst._zod.processJSONSchema = (ctx, json2, params) => nullableProcessor(inst, ctx, json2, params);
39163
39537
  inst.unwrap = () => inst._zod.def.innerType;
39164
39538
  });
39165
39539
  function nullable(innerType) {
@@ -39171,11 +39545,11 @@ function nullable(innerType) {
39171
39545
  var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
39172
39546
  $ZodDefault.init(inst, def);
39173
39547
  ZodType.init(inst, def);
39174
- inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
39548
+ inst._zod.processJSONSchema = (ctx, json2, params) => defaultProcessor(inst, ctx, json2, params);
39175
39549
  inst.unwrap = () => inst._zod.def.innerType;
39176
39550
  inst.removeDefault = inst.unwrap;
39177
39551
  });
39178
- function _default(innerType, defaultValue) {
39552
+ function _default2(innerType, defaultValue) {
39179
39553
  return new ZodDefault({
39180
39554
  type: "default",
39181
39555
  innerType,
@@ -39187,7 +39561,7 @@ function _default(innerType, defaultValue) {
39187
39561
  var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
39188
39562
  $ZodPrefault.init(inst, def);
39189
39563
  ZodType.init(inst, def);
39190
- inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
39564
+ inst._zod.processJSONSchema = (ctx, json2, params) => prefaultProcessor(inst, ctx, json2, params);
39191
39565
  inst.unwrap = () => inst._zod.def.innerType;
39192
39566
  });
39193
39567
  function prefault(innerType, defaultValue) {
@@ -39202,7 +39576,7 @@ function prefault(innerType, defaultValue) {
39202
39576
  var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
39203
39577
  $ZodNonOptional.init(inst, def);
39204
39578
  ZodType.init(inst, def);
39205
- inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
39579
+ inst._zod.processJSONSchema = (ctx, json2, params) => nonoptionalProcessor(inst, ctx, json2, params);
39206
39580
  inst.unwrap = () => inst._zod.def.innerType;
39207
39581
  });
39208
39582
  function nonoptional(innerType, params) {
@@ -39215,7 +39589,7 @@ function nonoptional(innerType, params) {
39215
39589
  var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
39216
39590
  $ZodCatch.init(inst, def);
39217
39591
  ZodType.init(inst, def);
39218
- inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
39592
+ inst._zod.processJSONSchema = (ctx, json2, params) => catchProcessor(inst, ctx, json2, params);
39219
39593
  inst.unwrap = () => inst._zod.def.innerType;
39220
39594
  inst.removeCatch = inst.unwrap;
39221
39595
  });
@@ -39229,7 +39603,7 @@ function _catch(innerType, catchValue) {
39229
39603
  var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
39230
39604
  $ZodPipe.init(inst, def);
39231
39605
  ZodType.init(inst, def);
39232
- inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
39606
+ inst._zod.processJSONSchema = (ctx, json2, params) => pipeProcessor(inst, ctx, json2, params);
39233
39607
  inst.in = def.in;
39234
39608
  inst.out = def.out;
39235
39609
  });
@@ -39243,7 +39617,7 @@ function pipe(in_, out) {
39243
39617
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
39244
39618
  $ZodReadonly.init(inst, def);
39245
39619
  ZodType.init(inst, def);
39246
- inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
39620
+ inst._zod.processJSONSchema = (ctx, json2, params) => readonlyProcessor(inst, ctx, json2, params);
39247
39621
  inst.unwrap = () => inst._zod.def.innerType;
39248
39622
  });
39249
39623
  function readonly(innerType) {
@@ -39255,7 +39629,7 @@ function readonly(innerType) {
39255
39629
  var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
39256
39630
  $ZodCustom.init(inst, def);
39257
39631
  ZodType.init(inst, def);
39258
- inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx);
39632
+ inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx);
39259
39633
  });
39260
39634
  function refine(fn, _params = {}) {
39261
39635
  return _refine(ZodCustom, fn, _params);
@@ -39329,10 +39703,10 @@ function hasSecretConfig(config2) {
39329
39703
  }
39330
39704
 
39331
39705
  class UiPathError extends Error {
39332
- constructor(type, params) {
39706
+ constructor(type2, params) {
39333
39707
  super(params.message);
39334
- this.name = type;
39335
- this.type = type;
39708
+ this.name = type2;
39709
+ this.type = type2;
39336
39710
  this.statusCode = params.statusCode;
39337
39711
  this.requestId = params.requestId;
39338
39712
  this.timestamp = new Date;
@@ -39923,9 +40297,9 @@ var telemetryClient = {
39923
40297
  sdkClient.setUserId(userId);
39924
40298
  }
39925
40299
  };
39926
- function encodeBase64(str) {
40300
+ function encodeBase64(str2) {
39927
40301
  const encoder = new TextEncoder;
39928
- const data = encoder.encode(str);
40302
+ const data = encoder.encode(str2);
39929
40303
  if (isBrowser2) {
39930
40304
  const binaryString = Array.from(data, (byte) => String.fromCharCode(byte)).join("");
39931
40305
  return btoa(binaryString);
@@ -39954,11 +40328,11 @@ function encodeFolderPathHeader(folderPath) {
39954
40328
  view.setUint16(i * 2, folderPath.charCodeAt(i), true);
39955
40329
  }
39956
40330
  const bytes = new Uint8Array(buf);
39957
- let binary = "";
40331
+ let binary2 = "";
39958
40332
  for (let i = 0;i < bytes.byteLength; i++) {
39959
- binary += String.fromCharCode(bytes[i]);
40333
+ binary2 += String.fromCharCode(bytes[i]);
39960
40334
  }
39961
- return btoa(binary);
40335
+ return btoa(binary2);
39962
40336
  }
39963
40337
  var BASE64URL_DASH_RE = /-/g;
39964
40338
  var BASE64URL_UNDERSCORE_RE = /_/g;
@@ -41029,15 +41403,15 @@ function processODataArrayResponse(oDataResponse, successData) {
41029
41403
  }
41030
41404
 
41031
41405
  class PaginationManager {
41032
- static createCursor({ pageInfo, type }) {
41406
+ static createCursor({ pageInfo, type: type2 }) {
41033
41407
  if (!pageInfo.hasMore) {
41034
41408
  return;
41035
41409
  }
41036
41410
  const cursorData = {
41037
- type,
41411
+ type: type2,
41038
41412
  pageSize: pageInfo.pageSize
41039
41413
  };
41040
- switch (type) {
41414
+ switch (type2) {
41041
41415
  case PaginationType.OFFSET:
41042
41416
  if (pageInfo.currentPage) {
41043
41417
  cursorData.pageNumber = pageInfo.currentPage + 1;
@@ -41055,12 +41429,12 @@ class PaginationManager {
41055
41429
  value: encodeBase64(JSON.stringify(cursorData))
41056
41430
  };
41057
41431
  }
41058
- static createPaginatedResponse({ pageInfo, type }, items) {
41059
- const nextCursor = PaginationManager.createCursor({ pageInfo, type });
41432
+ static createPaginatedResponse({ pageInfo, type: type2 }, items) {
41433
+ const nextCursor = PaginationManager.createCursor({ pageInfo, type: type2 });
41060
41434
  let previousCursor = undefined;
41061
41435
  if (pageInfo.currentPage && pageInfo.currentPage > 1) {
41062
41436
  const prevCursorData = {
41063
- type,
41437
+ type: type2,
41064
41438
  pageNumber: pageInfo.currentPage - 1,
41065
41439
  pageSize: pageInfo.pageSize
41066
41440
  };
@@ -41072,7 +41446,7 @@ class PaginationManager {
41072
41446
  if (pageInfo.totalCount !== undefined && pageInfo.pageSize) {
41073
41447
  totalPages = Math.ceil(pageInfo.totalCount / pageInfo.pageSize);
41074
41448
  }
41075
- const supportsPageJump = type === PaginationType.OFFSET;
41449
+ const supportsPageJump = type2 === PaginationType.OFFSET;
41076
41450
  const result = filterUndefined({
41077
41451
  items,
41078
41452
  totalCount: pageInfo.totalCount,
@@ -41167,15 +41541,15 @@ function transformData(data, fieldMapping) {
41167
41541
  }
41168
41542
  return result;
41169
41543
  }
41170
- function pascalToCamelCase(str) {
41171
- if (!str)
41172
- return str;
41173
- return str.charAt(0).toLowerCase() + str.slice(1);
41544
+ function pascalToCamelCase(str2) {
41545
+ if (!str2)
41546
+ return str2;
41547
+ return str2.charAt(0).toLowerCase() + str2.slice(1);
41174
41548
  }
41175
- function camelToPascalCase(str) {
41176
- if (!str)
41177
- return str;
41178
- return str.charAt(0).toUpperCase() + str.slice(1);
41549
+ function camelToPascalCase(str2) {
41550
+ if (!str2)
41551
+ return str2;
41552
+ return str2.charAt(0).toUpperCase() + str2.slice(1);
41179
41553
  }
41180
41554
  function transformCaseKeys(data, convertCase) {
41181
41555
  if (Array.isArray(data)) {
@@ -41231,8 +41605,8 @@ function addPrefixToKeys(obj, prefix, keys) {
41231
41605
  }
41232
41606
  return result;
41233
41607
  }
41234
- function reverseMap(map) {
41235
- return Object.entries(map).reduce((acc, [key, value]) => {
41608
+ function reverseMap(map2) {
41609
+ return Object.entries(map2).reduce((acc, [key, value]) => {
41236
41610
  acc[value] = key;
41237
41611
  return acc;
41238
41612
  }, {});
@@ -42341,15 +42715,15 @@ class EntityService extends BaseService {
42341
42715
  }
42342
42716
  return mapped;
42343
42717
  }
42344
- validateFieldConstraints(type, field, fieldName) {
42345
- const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type] ?? {};
42718
+ validateFieldConstraints(type2, field, fieldName) {
42719
+ const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type2] ?? {};
42346
42720
  const supported = Object.keys(spec);
42347
42721
  const provided = Object.values(EntityFieldConstraint).filter((name) => field[name] !== undefined);
42348
42722
  const unsupported = provided.filter((p) => !(p in spec));
42349
42723
  if (unsupported.length > 0) {
42350
42724
  const allowedDesc = supported.length > 0 ? supported.join(", ") : "none";
42351
42725
  throw new ValidationError({
42352
- message: `Field '${fieldName}' of type ${type} does not accept ${unsupported.join(", ")}. Allowed constraints for this type: ${allowedDesc}.`
42726
+ message: `Field '${fieldName}' of type ${type2} does not accept ${unsupported.join(", ")}. Allowed constraints for this type: ${allowedDesc}.`
42353
42727
  });
42354
42728
  }
42355
42729
  for (const name of provided) {
@@ -42357,19 +42731,19 @@ class EntityService extends BaseService {
42357
42731
  const value = field[name];
42358
42732
  if (range && value !== undefined && (value < range.min || value > range.max)) {
42359
42733
  throw new ValidationError({
42360
- message: `Field '${fieldName}' of type ${type} has ${name} ${value} out of range [${range.min}, ${range.max}].`
42734
+ message: `Field '${fieldName}' of type ${type2} has ${name} ${value} out of range [${range.min}, ${range.max}].`
42361
42735
  });
42362
42736
  }
42363
42737
  }
42364
42738
  if (field.minValue !== undefined && field.maxValue !== undefined && field.minValue >= field.maxValue) {
42365
42739
  throw new ValidationError({
42366
- message: `Field '${fieldName}' of type ${type} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`
42740
+ message: `Field '${fieldName}' of type ${type2} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`
42367
42741
  });
42368
42742
  }
42369
42743
  }
42370
- buildSqlTypeConstraints(type, field) {
42744
+ buildSqlTypeConstraints(type2, field) {
42371
42745
  const defaults = ENTITY_FIELD_CONSTRAINT_DEFAULTS;
42372
- switch (type) {
42746
+ switch (type2) {
42373
42747
  case EntityFieldDataType.STRING:
42374
42748
  return { lengthLimit: field.lengthLimit ?? defaults.STRING_LENGTH_LIMIT };
42375
42749
  case EntityFieldDataType.MULTILINE_TEXT:
@@ -42594,10 +42968,10 @@ function isDataFabricRole(value) {
42594
42968
  if (!isRecord$1(value)) {
42595
42969
  return false;
42596
42970
  }
42597
- const { id, name, type, directoryEntityCount, folderId } = value;
42971
+ const { id, name, type: type2, directoryEntityCount, folderId } = value;
42598
42972
  const hasValidDirectoryEntityCount = directoryEntityCount === undefined || directoryEntityCount === null || typeof directoryEntityCount === "number";
42599
42973
  const hasValidFolderId = folderId === undefined || typeof folderId === "string";
42600
- return typeof id === "string" && typeof name === "string" && (type === DataFabricRoleType.System || type === DataFabricRoleType.UserDefined) && hasValidDirectoryEntityCount && hasValidFolderId;
42974
+ return typeof id === "string" && typeof name === "string" && (type2 === DataFabricRoleType.System || type2 === DataFabricRoleType.UserDefined) && hasValidDirectoryEntityCount && hasValidFolderId;
42601
42975
  }
42602
42976
  function validateRolesResponse(data) {
42603
42977
  if (Array.isArray(data) && data.every(isDataFabricRole)) {
@@ -42692,16 +43066,16 @@ function normalizePrincipalIds(principalIds) {
42692
43066
  function normalizeRoleIds(roleIds) {
42693
43067
  return [...new Set(roleIds.map((id) => id.trim()).filter(Boolean))];
42694
43068
  }
42695
- function normalizePrincipalType(type) {
42696
- if (typeof type === "number") {
42697
- if (type === DataFabricDirectoryEntityType.User || type === DataFabricDirectoryEntityType.Group || type === DataFabricDirectoryEntityType.Application) {
42698
- return type;
43069
+ function normalizePrincipalType(type2) {
43070
+ if (typeof type2 === "number") {
43071
+ if (type2 === DataFabricDirectoryEntityType.User || type2 === DataFabricDirectoryEntityType.Group || type2 === DataFabricDirectoryEntityType.Application) {
43072
+ return type2;
42699
43073
  }
42700
43074
  throw new ValidationError({
42701
43075
  message: "Invalid Data Fabric principal type."
42702
43076
  });
42703
43077
  }
42704
- switch (type) {
43078
+ switch (type2) {
42705
43079
  case DataFabricDirectoryEntityTypeName.User:
42706
43080
  return DataFabricDirectoryEntityType.User;
42707
43081
  case DataFabricDirectoryEntityTypeName.Group:
@@ -42763,7 +43137,7 @@ class DataFabricDirectoryService extends BaseService {
42763
43137
  if (normalizedRoleIds.length === 0) {
42764
43138
  throw new ValidationError({ message: "At least one Data Fabric role ID is required." });
42765
43139
  }
42766
- const type = normalizePrincipalType(principalType);
43140
+ const type2 = normalizePrincipalType(principalType);
42767
43141
  const preserveExisting = options.preserveExisting ?? true;
42768
43142
  const existingById = new Map;
42769
43143
  if (preserveExisting) {
@@ -42778,7 +43152,7 @@ class DataFabricDirectoryService extends BaseService {
42778
43152
  directoryEntities: [
42779
43153
  {
42780
43154
  externalId: principalId,
42781
- type,
43155
+ type: type2,
42782
43156
  resolved: true
42783
43157
  }
42784
43158
  ],
@@ -43221,7 +43595,7 @@ class BpmnHelpers {
43221
43595
  return elementInfo;
43222
43596
  }
43223
43597
  static formatActivityTypeForIncidents(elementType) {
43224
- return elementType.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).trim();
43598
+ return elementType.replace(/([A-Z])/g, " $1").replace(/^./, (str2) => str2.toUpperCase()).trim();
43225
43599
  }
43226
43600
  static async enrichIncidentsWithBpmnData(incidents, folderKey, service) {
43227
43601
  const uniqueInstanceIds = [...new Set(incidents.map((i) => i.instanceId))];
@@ -46281,4 +46655,4 @@ export {
46281
46655
  metadata
46282
46656
  };
46283
46657
 
46284
- //# debugId=AB9E703A1FAAF9FC64756E2164756E21
46658
+ //# debugId=27958C660888566364756E2164756E21