@carbon/upgrade 11.0.0 → 11.1.0-rc.0

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/cli.js +1130 -1030
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
21
21
  return a;
22
22
  };
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
24
  var __commonJS = (cb, mod) => function __require() {
26
25
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
26
  };
@@ -29,22 +28,16 @@ var __export = (target, all) => {
29
28
  for (var name2 in all)
30
29
  __defProp(target, name2, { get: all[name2], enumerable: true });
31
30
  };
32
- var __reExport = (target, module2, copyDefault, desc) => {
33
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
34
- for (let key of __getOwnPropNames(module2))
35
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
36
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
31
+ var __copyProps = (to, from, except, desc) => {
32
+ if (from && typeof from === "object" || typeof from === "function") {
33
+ for (let key of __getOwnPropNames(from))
34
+ if (!__hasOwnProp.call(to, key) && key !== except)
35
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
37
36
  }
38
- return target;
37
+ return to;
39
38
  };
40
- var __toESM = (module2, isNodeMode) => {
41
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
42
- };
43
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
44
- return (module2, temp) => {
45
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
46
- };
47
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
39
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
40
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
41
  var __publicField = (obj, key, value) => {
49
42
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
50
43
  return value;
@@ -1159,9 +1152,9 @@ var require_has_flag = __commonJS({
1159
1152
  }
1160
1153
  });
1161
1154
 
1162
- // ../../node_modules/chalk/node_modules/supports-color/index.js
1155
+ // ../../node_modules/supports-color/index.js
1163
1156
  var require_supports_color = __commonJS({
1164
- "../../node_modules/chalk/node_modules/supports-color/index.js"(exports, module2) {
1157
+ "../../node_modules/supports-color/index.js"(exports, module2) {
1165
1158
  "use strict";
1166
1159
  var os = require("os");
1167
1160
  var tty = require("tty");
@@ -1591,9 +1584,9 @@ var require_source = __commonJS({
1591
1584
  }
1592
1585
  });
1593
1586
 
1594
- // ../../node_modules/is-git-clean/node_modules/is-obj/index.js
1587
+ // ../../node_modules/is-obj/index.js
1595
1588
  var require_is_obj = __commonJS({
1596
- "../../node_modules/is-git-clean/node_modules/is-obj/index.js"(exports, module2) {
1589
+ "../../node_modules/is-obj/index.js"(exports, module2) {
1597
1590
  "use strict";
1598
1591
  module2.exports = function(x) {
1599
1592
  var type = typeof x;
@@ -3372,11 +3365,15 @@ var require_minimatch = __commonJS({
3372
3365
  "../../node_modules/minimatch/minimatch.js"(exports, module2) {
3373
3366
  module2.exports = minimatch;
3374
3367
  minimatch.Minimatch = Minimatch;
3375
- var path3 = { sep: "/" };
3376
- try {
3377
- path3 = require("path");
3378
- } catch (er) {
3379
- }
3368
+ var path3 = function() {
3369
+ try {
3370
+ return require("path");
3371
+ } catch (e) {
3372
+ }
3373
+ }() || {
3374
+ sep: "/"
3375
+ };
3376
+ minimatch.sep = path3.sep;
3380
3377
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
3381
3378
  var expand = require_brace_expansion();
3382
3379
  var plTypes = {
@@ -3406,58 +3403,68 @@ var require_minimatch = __commonJS({
3406
3403
  };
3407
3404
  }
3408
3405
  function ext(a, b) {
3409
- a = a || {};
3410
3406
  b = b || {};
3411
3407
  var t = {};
3412
- Object.keys(b).forEach(function(k) {
3413
- t[k] = b[k];
3414
- });
3415
3408
  Object.keys(a).forEach(function(k) {
3416
3409
  t[k] = a[k];
3417
3410
  });
3411
+ Object.keys(b).forEach(function(k) {
3412
+ t[k] = b[k];
3413
+ });
3418
3414
  return t;
3419
3415
  }
3420
3416
  minimatch.defaults = function(def) {
3421
- if (!def || !Object.keys(def).length)
3417
+ if (!def || typeof def !== "object" || !Object.keys(def).length) {
3422
3418
  return minimatch;
3419
+ }
3423
3420
  var orig = minimatch;
3424
3421
  var m = function minimatch2(p, pattern, options) {
3425
- return orig.minimatch(p, pattern, ext(def, options));
3422
+ return orig(p, pattern, ext(def, options));
3426
3423
  };
3427
3424
  m.Minimatch = function Minimatch2(pattern, options) {
3428
3425
  return new orig.Minimatch(pattern, ext(def, options));
3429
3426
  };
3427
+ m.Minimatch.defaults = function defaults(options) {
3428
+ return orig.defaults(ext(def, options)).Minimatch;
3429
+ };
3430
+ m.filter = function filter2(pattern, options) {
3431
+ return orig.filter(pattern, ext(def, options));
3432
+ };
3433
+ m.defaults = function defaults(options) {
3434
+ return orig.defaults(ext(def, options));
3435
+ };
3436
+ m.makeRe = function makeRe2(pattern, options) {
3437
+ return orig.makeRe(pattern, ext(def, options));
3438
+ };
3439
+ m.braceExpand = function braceExpand2(pattern, options) {
3440
+ return orig.braceExpand(pattern, ext(def, options));
3441
+ };
3442
+ m.match = function(list, pattern, options) {
3443
+ return orig.match(list, pattern, ext(def, options));
3444
+ };
3430
3445
  return m;
3431
3446
  };
3432
3447
  Minimatch.defaults = function(def) {
3433
- if (!def || !Object.keys(def).length)
3434
- return Minimatch;
3435
3448
  return minimatch.defaults(def).Minimatch;
3436
3449
  };
3437
3450
  function minimatch(p, pattern, options) {
3438
- if (typeof pattern !== "string") {
3439
- throw new TypeError("glob pattern string required");
3440
- }
3451
+ assertValidPattern(pattern);
3441
3452
  if (!options)
3442
3453
  options = {};
3443
3454
  if (!options.nocomment && pattern.charAt(0) === "#") {
3444
3455
  return false;
3445
3456
  }
3446
- if (pattern.trim() === "")
3447
- return p === "";
3448
3457
  return new Minimatch(pattern, options).match(p);
3449
3458
  }
3450
3459
  function Minimatch(pattern, options) {
3451
3460
  if (!(this instanceof Minimatch)) {
3452
3461
  return new Minimatch(pattern, options);
3453
3462
  }
3454
- if (typeof pattern !== "string") {
3455
- throw new TypeError("glob pattern string required");
3456
- }
3463
+ assertValidPattern(pattern);
3457
3464
  if (!options)
3458
3465
  options = {};
3459
3466
  pattern = pattern.trim();
3460
- if (path3.sep !== "/") {
3467
+ if (!options.allowWindowsEscape && path3.sep !== "/") {
3461
3468
  pattern = pattern.split(path3.sep).join("/");
3462
3469
  }
3463
3470
  this.options = options;
@@ -3467,14 +3474,13 @@ var require_minimatch = __commonJS({
3467
3474
  this.negate = false;
3468
3475
  this.comment = false;
3469
3476
  this.empty = false;
3477
+ this.partial = !!options.partial;
3470
3478
  this.make();
3471
3479
  }
3472
3480
  Minimatch.prototype.debug = function() {
3473
3481
  };
3474
3482
  Minimatch.prototype.make = make;
3475
3483
  function make() {
3476
- if (this._made)
3477
- return;
3478
3484
  var pattern = this.pattern;
3479
3485
  var options = this.options;
3480
3486
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -3488,7 +3494,9 @@ var require_minimatch = __commonJS({
3488
3494
  this.parseNegate();
3489
3495
  var set = this.globSet = this.braceExpand();
3490
3496
  if (options.debug)
3491
- this.debug = console.error;
3497
+ this.debug = function debug() {
3498
+ console.error.apply(console, arguments);
3499
+ };
3492
3500
  this.debug(this.pattern, set);
3493
3501
  set = this.globParts = set.map(function(s) {
3494
3502
  return s.split(slashSplit);
@@ -3533,23 +3541,32 @@ var require_minimatch = __commonJS({
3533
3541
  }
3534
3542
  }
3535
3543
  pattern = typeof pattern === "undefined" ? this.pattern : pattern;
3536
- if (typeof pattern === "undefined") {
3537
- throw new TypeError("undefined pattern");
3538
- }
3539
- if (options.nobrace || !pattern.match(/\{.*\}/)) {
3544
+ assertValidPattern(pattern);
3545
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
3540
3546
  return [pattern];
3541
3547
  }
3542
3548
  return expand(pattern);
3543
3549
  }
3550
+ var MAX_PATTERN_LENGTH = 1024 * 64;
3551
+ var assertValidPattern = function(pattern) {
3552
+ if (typeof pattern !== "string") {
3553
+ throw new TypeError("invalid pattern");
3554
+ }
3555
+ if (pattern.length > MAX_PATTERN_LENGTH) {
3556
+ throw new TypeError("pattern is too long");
3557
+ }
3558
+ };
3544
3559
  Minimatch.prototype.parse = parse;
3545
3560
  var SUBPARSE = {};
3546
3561
  function parse(pattern, isSub) {
3547
- if (pattern.length > 1024 * 64) {
3548
- throw new TypeError("pattern is too long");
3549
- }
3562
+ assertValidPattern(pattern);
3550
3563
  var options = this.options;
3551
- if (!options.noglobstar && pattern === "**")
3552
- return GLOBSTAR;
3564
+ if (pattern === "**") {
3565
+ if (!options.noglobstar)
3566
+ return GLOBSTAR;
3567
+ else
3568
+ pattern = "*";
3569
+ }
3553
3570
  if (pattern === "")
3554
3571
  return "";
3555
3572
  var re = "";
@@ -3590,8 +3607,9 @@ var require_minimatch = __commonJS({
3590
3607
  continue;
3591
3608
  }
3592
3609
  switch (c) {
3593
- case "/":
3610
+ case "/": {
3594
3611
  return false;
3612
+ }
3595
3613
  case "\\":
3596
3614
  clearStateChar();
3597
3615
  escaping = true;
@@ -3675,17 +3693,15 @@ var require_minimatch = __commonJS({
3675
3693
  escaping = false;
3676
3694
  continue;
3677
3695
  }
3678
- if (inClass) {
3679
- var cs = pattern.substring(classStart + 1, i);
3680
- try {
3681
- RegExp("[" + cs + "]");
3682
- } catch (er) {
3683
- var sp = this.parse(cs, SUBPARSE);
3684
- re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
3685
- hasMagic = hasMagic || sp[1];
3686
- inClass = false;
3687
- continue;
3688
- }
3696
+ var cs = pattern.substring(classStart + 1, i);
3697
+ try {
3698
+ RegExp("[" + cs + "]");
3699
+ } catch (er) {
3700
+ var sp = this.parse(cs, SUBPARSE);
3701
+ re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
3702
+ hasMagic = hasMagic || sp[1];
3703
+ inClass = false;
3704
+ continue;
3689
3705
  }
3690
3706
  hasMagic = true;
3691
3707
  inClass = false;
@@ -3727,8 +3743,8 @@ var require_minimatch = __commonJS({
3727
3743
  }
3728
3744
  var addPatternStart = false;
3729
3745
  switch (re.charAt(0)) {
3730
- case ".":
3731
3746
  case "[":
3747
+ case ".":
3732
3748
  case "(":
3733
3749
  addPatternStart = true;
3734
3750
  }
@@ -3815,8 +3831,9 @@ var require_minimatch = __commonJS({
3815
3831
  }
3816
3832
  return list;
3817
3833
  };
3818
- Minimatch.prototype.match = match;
3819
- function match(f, partial) {
3834
+ Minimatch.prototype.match = function match(f, partial) {
3835
+ if (typeof partial === "undefined")
3836
+ partial = this.partial;
3820
3837
  this.debug("match", f, this.pattern);
3821
3838
  if (this.comment)
3822
3839
  return false;
@@ -3855,7 +3872,7 @@ var require_minimatch = __commonJS({
3855
3872
  if (options.flipNegate)
3856
3873
  return false;
3857
3874
  return this.negate;
3858
- }
3875
+ };
3859
3876
  Minimatch.prototype.matchOne = function(file, pattern, partial) {
3860
3877
  var options = this.options;
3861
3878
  this.debug("matchOne", { "this": this, file, pattern });
@@ -3903,11 +3920,7 @@ var require_minimatch = __commonJS({
3903
3920
  }
3904
3921
  var hit;
3905
3922
  if (typeof p === "string") {
3906
- if (options.nocase) {
3907
- hit = f.toLowerCase() === p.toLowerCase();
3908
- } else {
3909
- hit = f === p;
3910
- }
3923
+ hit = f === p;
3911
3924
  this.debug("string match", p, f, hit);
3912
3925
  } else {
3913
3926
  hit = f.match(p);
@@ -3921,8 +3934,7 @@ var require_minimatch = __commonJS({
3921
3934
  } else if (fi === fl) {
3922
3935
  return partial;
3923
3936
  } else if (pi === pl) {
3924
- var emptyFileEnd = fi === fl - 1 && file[fi] === "";
3925
- return emptyFileEnd;
3937
+ return fi === fl - 1 && file[fi] === "";
3926
3938
  }
3927
3939
  throw new Error("wtf?");
3928
3940
  };
@@ -20130,6 +20142,8 @@ var require_signal_exit = __commonJS({
20130
20142
  };
20131
20143
  if (!processOk(process2)) {
20132
20144
  module2.exports = function() {
20145
+ return function() {
20146
+ };
20133
20147
  };
20134
20148
  } else {
20135
20149
  assert = require("assert");
@@ -20152,7 +20166,8 @@ var require_signal_exit = __commonJS({
20152
20166
  }
20153
20167
  module2.exports = function(cb, opts) {
20154
20168
  if (!processOk(global.process)) {
20155
- return;
20169
+ return function() {
20170
+ };
20156
20171
  }
20157
20172
  assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
20158
20173
  if (loaded === false) {
@@ -22258,9 +22273,9 @@ var require_is_unicode_supported = __commonJS({
22258
22273
  }
22259
22274
  });
22260
22275
 
22261
- // ../../node_modules/log-symbols/index.js
22276
+ // node_modules/log-symbols/index.js
22262
22277
  var require_log_symbols = __commonJS({
22263
- "../../node_modules/log-symbols/index.js"(exports, module2) {
22278
+ "node_modules/log-symbols/index.js"(exports, module2) {
22264
22279
  "use strict";
22265
22280
  var chalk4 = require_source();
22266
22281
  var isUnicodeSupported = require_is_unicode_supported();
@@ -39401,9 +39416,9 @@ var require_semver2 = __commonJS({
39401
39416
  }
39402
39417
  });
39403
39418
 
39404
- // ../../node_modules/fs-extra/node_modules/universalify/index.js
39419
+ // ../../node_modules/universalify/index.js
39405
39420
  var require_universalify = __commonJS({
39406
- "../../node_modules/fs-extra/node_modules/universalify/index.js"(exports) {
39421
+ "../../node_modules/universalify/index.js"(exports) {
39407
39422
  "use strict";
39408
39423
  exports.fromCallback = function(fn) {
39409
39424
  return Object.defineProperty(function(...args) {
@@ -44024,7 +44039,8 @@ var require_parse4 = __commonJS({
44024
44039
  output = token.close = `)$))${extglobStar}`;
44025
44040
  }
44026
44041
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
44027
- output = token.close = `)${rest})${extglobStar})`;
44042
+ const expression = parse(rest, __spreadProps(__spreadValues({}, options), { fastpaths: false })).output;
44043
+ output = token.close = `)${expression})${extglobStar})`;
44028
44044
  }
44029
44045
  if (token.prev.type === "bos") {
44030
44046
  state.negatedExtglob = true;
@@ -44842,9 +44858,9 @@ var require_micromatch = __commonJS({
44842
44858
  options.onResult(state);
44843
44859
  items.push(state.output);
44844
44860
  };
44845
- let matches = micromatch(list, patterns, __spreadProps(__spreadValues({}, options), { onResult }));
44861
+ let matches = new Set(micromatch(list, patterns, __spreadProps(__spreadValues({}, options), { onResult })));
44846
44862
  for (let item of items) {
44847
- if (!matches.includes(item)) {
44863
+ if (!matches.has(item)) {
44848
44864
  result.add(item);
44849
44865
  }
44850
44866
  }
@@ -47703,9 +47719,9 @@ var require_lodash = __commonJS({
47703
47719
  }
47704
47720
  });
47705
47721
 
47706
- // ../../node_modules/jest-get-type/build/index.js
47722
+ // ../../node_modules/jest-diff/node_modules/jest-get-type/build/index.js
47707
47723
  var require_build = __commonJS({
47708
- "../../node_modules/jest-get-type/build/index.js"(exports) {
47724
+ "../../node_modules/jest-diff/node_modules/jest-get-type/build/index.js"(exports) {
47709
47725
  "use strict";
47710
47726
  Object.defineProperty(exports, "__esModule", {
47711
47727
  value: true
@@ -47752,9 +47768,9 @@ var require_build = __commonJS({
47752
47768
  }
47753
47769
  });
47754
47770
 
47755
- // ../../node_modules/pretty-format/node_modules/ansi-styles/index.js
47771
+ // ../../node_modules/jest-diff/node_modules/ansi-styles/index.js
47756
47772
  var require_ansi_styles2 = __commonJS({
47757
- "../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module2) {
47773
+ "../../node_modules/jest-diff/node_modules/ansi-styles/index.js"(exports, module2) {
47758
47774
  "use strict";
47759
47775
  var ANSI_BACKGROUND_OFFSET = 10;
47760
47776
  var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -47887,9 +47903,9 @@ var require_ansi_styles2 = __commonJS({
47887
47903
  }
47888
47904
  });
47889
47905
 
47890
- // ../../node_modules/pretty-format/build/collections.js
47906
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/collections.js
47891
47907
  var require_collections = __commonJS({
47892
- "../../node_modules/pretty-format/build/collections.js"(exports) {
47908
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/collections.js"(exports) {
47893
47909
  "use strict";
47894
47910
  Object.defineProperty(exports, "__esModule", {
47895
47911
  value: true
@@ -47911,17 +47927,23 @@ var require_collections = __commonJS({
47911
47927
  };
47912
47928
  function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
47913
47929
  let result = "";
47930
+ let width = 0;
47914
47931
  let current = iterator.next();
47915
47932
  if (!current.done) {
47916
47933
  result += config.spacingOuter;
47917
47934
  const indentationNext = indentation + config.indent;
47918
47935
  while (!current.done) {
47936
+ result += indentationNext;
47937
+ if (width++ === config.maxWidth) {
47938
+ result += "\u2026";
47939
+ break;
47940
+ }
47919
47941
  const name2 = printer(current.value[0], config, indentationNext, depth, refs);
47920
47942
  const value = printer(current.value[1], config, indentationNext, depth, refs);
47921
- result += indentationNext + name2 + separator + value;
47943
+ result += name2 + separator + value;
47922
47944
  current = iterator.next();
47923
47945
  if (!current.done) {
47924
- result += "," + config.spacingInner;
47946
+ result += `,${config.spacingInner}`;
47925
47947
  } else if (!config.min) {
47926
47948
  result += ",";
47927
47949
  }
@@ -47932,15 +47954,21 @@ var require_collections = __commonJS({
47932
47954
  }
47933
47955
  function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
47934
47956
  let result = "";
47957
+ let width = 0;
47935
47958
  let current = iterator.next();
47936
47959
  if (!current.done) {
47937
47960
  result += config.spacingOuter;
47938
47961
  const indentationNext = indentation + config.indent;
47939
47962
  while (!current.done) {
47940
- result += indentationNext + printer(current.value, config, indentationNext, depth, refs);
47963
+ result += indentationNext;
47964
+ if (width++ === config.maxWidth) {
47965
+ result += "\u2026";
47966
+ break;
47967
+ }
47968
+ result += printer(current.value, config, indentationNext, depth, refs);
47941
47969
  current = iterator.next();
47942
47970
  if (!current.done) {
47943
- result += "," + config.spacingInner;
47971
+ result += `,${config.spacingInner}`;
47944
47972
  } else if (!config.min) {
47945
47973
  result += ",";
47946
47974
  }
@@ -47956,11 +47984,15 @@ var require_collections = __commonJS({
47956
47984
  const indentationNext = indentation + config.indent;
47957
47985
  for (let i = 0; i < list.length; i++) {
47958
47986
  result += indentationNext;
47987
+ if (i === config.maxWidth) {
47988
+ result += "\u2026";
47989
+ break;
47990
+ }
47959
47991
  if (i in list) {
47960
47992
  result += printer(list[i], config, indentationNext, depth, refs);
47961
47993
  }
47962
47994
  if (i < list.length - 1) {
47963
- result += "," + config.spacingInner;
47995
+ result += `,${config.spacingInner}`;
47964
47996
  } else if (!config.min) {
47965
47997
  result += ",";
47966
47998
  }
@@ -47979,9 +48011,9 @@ var require_collections = __commonJS({
47979
48011
  const key = keys[i];
47980
48012
  const name2 = printer(key, config, indentationNext, depth, refs);
47981
48013
  const value = printer(val[key], config, indentationNext, depth, refs);
47982
- result += indentationNext + name2 + ": " + value;
48014
+ result += `${indentationNext + name2}: ${value}`;
47983
48015
  if (i < keys.length - 1) {
47984
- result += "," + config.spacingInner;
48016
+ result += `,${config.spacingInner}`;
47985
48017
  } else if (!config.min) {
47986
48018
  result += ",";
47987
48019
  }
@@ -47993,44 +48025,31 @@ var require_collections = __commonJS({
47993
48025
  }
47994
48026
  });
47995
48027
 
47996
- // ../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
48028
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
47997
48029
  var require_AsymmetricMatcher = __commonJS({
47998
- "../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
48030
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
47999
48031
  "use strict";
48000
48032
  Object.defineProperty(exports, "__esModule", {
48001
48033
  value: true
48002
48034
  });
48003
48035
  exports.test = exports.serialize = exports.default = void 0;
48004
48036
  var _collections = require_collections();
48005
- var global2 = function() {
48006
- if (typeof globalThis !== "undefined") {
48007
- return globalThis;
48008
- } else if (typeof global2 !== "undefined") {
48009
- return global2;
48010
- } else if (typeof self !== "undefined") {
48011
- return self;
48012
- } else if (typeof window !== "undefined") {
48013
- return window;
48014
- } else {
48015
- return Function("return this")();
48016
- }
48017
- }();
48018
- var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
48037
+ var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
48019
48038
  var asymmetricMatcher = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621;
48020
48039
  var SPACE = " ";
48021
48040
  var serialize = (val, config, indentation, depth, refs, printer) => {
48022
48041
  const stringedValue = val.toString();
48023
48042
  if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
48024
48043
  if (++depth > config.maxDepth) {
48025
- return "[" + stringedValue + "]";
48044
+ return `[${stringedValue}]`;
48026
48045
  }
48027
- return stringedValue + SPACE + "[" + (0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer) + "]";
48046
+ return `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
48028
48047
  }
48029
48048
  if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
48030
48049
  if (++depth > config.maxDepth) {
48031
- return "[" + stringedValue + "]";
48050
+ return `[${stringedValue}]`;
48032
48051
  }
48033
- return stringedValue + SPACE + "{" + (0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer) + "}";
48052
+ return `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
48034
48053
  }
48035
48054
  if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") {
48036
48055
  return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
@@ -48038,6 +48057,9 @@ var require_AsymmetricMatcher = __commonJS({
48038
48057
  if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") {
48039
48058
  return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
48040
48059
  }
48060
+ if (typeof val.toAsymmetricMatcher !== "function") {
48061
+ throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
48062
+ }
48041
48063
  return val.toAsymmetricMatcher();
48042
48064
  };
48043
48065
  exports.serialize = serialize;
@@ -48052,9 +48074,9 @@ var require_AsymmetricMatcher = __commonJS({
48052
48074
  }
48053
48075
  });
48054
48076
 
48055
- // ../../node_modules/pretty-format/build/plugins/ConvertAnsi.js
48077
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ConvertAnsi.js
48056
48078
  var require_ConvertAnsi = __commonJS({
48057
- "../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
48079
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
48058
48080
  "use strict";
48059
48081
  Object.defineProperty(exports, "__esModule", {
48060
48082
  value: true
@@ -48123,9 +48145,9 @@ var require_ConvertAnsi = __commonJS({
48123
48145
  }
48124
48146
  });
48125
48147
 
48126
- // ../../node_modules/pretty-format/build/plugins/DOMCollection.js
48148
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMCollection.js
48127
48149
  var require_DOMCollection = __commonJS({
48128
- "../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
48150
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
48129
48151
  "use strict";
48130
48152
  Object.defineProperty(exports, "__esModule", {
48131
48153
  value: true
@@ -48142,12 +48164,12 @@ var require_DOMCollection = __commonJS({
48142
48164
  var serialize = (collection, config, indentation, depth, refs, printer) => {
48143
48165
  const name2 = collection.constructor.name;
48144
48166
  if (++depth > config.maxDepth) {
48145
- return "[" + name2 + "]";
48167
+ return `[${name2}]`;
48146
48168
  }
48147
- return (config.min ? "" : name2 + SPACE) + (OBJECT_NAMES.indexOf(name2) !== -1 ? "{" + (0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
48169
+ return (config.min ? "" : name2 + SPACE) + (OBJECT_NAMES.indexOf(name2) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
48148
48170
  props[attribute.name] = attribute.value;
48149
48171
  return props;
48150
- }, {}) : __spreadValues({}, collection), config, indentation, depth, refs, printer) + "}" : "[" + (0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer) + "]");
48172
+ }, {}) : __spreadValues({}, collection), config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
48151
48173
  };
48152
48174
  exports.serialize = serialize;
48153
48175
  var plugin = {
@@ -48159,9 +48181,9 @@ var require_DOMCollection = __commonJS({
48159
48181
  }
48160
48182
  });
48161
48183
 
48162
- // ../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js
48184
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
48163
48185
  var require_escapeHTML = __commonJS({
48164
- "../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
48186
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
48165
48187
  "use strict";
48166
48188
  Object.defineProperty(exports, "__esModule", {
48167
48189
  value: true
@@ -48173,9 +48195,9 @@ var require_escapeHTML = __commonJS({
48173
48195
  }
48174
48196
  });
48175
48197
 
48176
- // ../../node_modules/pretty-format/build/plugins/lib/markup.js
48198
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/markup.js
48177
48199
  var require_markup = __commonJS({
48178
- "../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
48200
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
48179
48201
  "use strict";
48180
48202
  Object.defineProperty(exports, "__esModule", {
48181
48203
  value: true
@@ -48195,9 +48217,9 @@ var require_markup = __commonJS({
48195
48217
  if (printed.indexOf("\n") !== -1) {
48196
48218
  printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
48197
48219
  }
48198
- printed = "{" + printed + "}";
48220
+ printed = `{${printed}}`;
48199
48221
  }
48200
- return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + "=" + colors.value.open + printed + colors.value.close;
48222
+ return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
48201
48223
  }).join("");
48202
48224
  };
48203
48225
  exports.printProps = printProps;
@@ -48210,25 +48232,25 @@ var require_markup = __commonJS({
48210
48232
  exports.printText = printText;
48211
48233
  var printComment = (comment, config) => {
48212
48234
  const commentColor = config.colors.comment;
48213
- return commentColor.open + "<!--" + (0, _escapeHTML.default)(comment) + "-->" + commentColor.close;
48235
+ return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
48214
48236
  };
48215
48237
  exports.printComment = printComment;
48216
48238
  var printElement = (type, printedProps, printedChildren, config, indentation) => {
48217
48239
  const tagColor = config.colors.tag;
48218
- return tagColor.open + "<" + type + (printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open) + (printedChildren ? ">" + tagColor.close + printedChildren + config.spacingOuter + indentation + tagColor.open + "</" + type : (printedProps && !config.min ? "" : " ") + "/") + ">" + tagColor.close;
48240
+ return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
48219
48241
  };
48220
48242
  exports.printElement = printElement;
48221
48243
  var printElementAsLeaf = (type, config) => {
48222
48244
  const tagColor = config.colors.tag;
48223
- return tagColor.open + "<" + type + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close;
48245
+ return `${tagColor.open}<${type}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
48224
48246
  };
48225
48247
  exports.printElementAsLeaf = printElementAsLeaf;
48226
48248
  }
48227
48249
  });
48228
48250
 
48229
- // ../../node_modules/pretty-format/build/plugins/DOMElement.js
48251
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMElement.js
48230
48252
  var require_DOMElement = __commonJS({
48231
- "../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
48253
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
48232
48254
  "use strict";
48233
48255
  Object.defineProperty(exports, "__esModule", {
48234
48256
  value: true
@@ -48274,7 +48296,7 @@ var require_DOMElement = __commonJS({
48274
48296
  if (nodeIsComment(node)) {
48275
48297
  return (0, _markup.printComment)(node.data, config);
48276
48298
  }
48277
- const type = nodeIsFragment(node) ? `DocumentFragment` : node.tagName.toLowerCase();
48299
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
48278
48300
  if (++depth > config.maxDepth) {
48279
48301
  return (0, _markup.printElementAsLeaf)(type, config);
48280
48302
  }
@@ -48293,9 +48315,9 @@ var require_DOMElement = __commonJS({
48293
48315
  }
48294
48316
  });
48295
48317
 
48296
- // ../../node_modules/pretty-format/build/plugins/Immutable.js
48318
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/Immutable.js
48297
48319
  var require_Immutable = __commonJS({
48298
- "../../node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
48320
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
48299
48321
  "use strict";
48300
48322
  Object.defineProperty(exports, "__esModule", {
48301
48323
  value: true
@@ -48311,11 +48333,11 @@ var require_Immutable = __commonJS({
48311
48333
  var IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
48312
48334
  var IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
48313
48335
  var IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
48314
- var getImmutableName = (name2) => "Immutable." + name2;
48315
- var printAsLeaf = (name2) => "[" + name2 + "]";
48336
+ var getImmutableName = (name2) => `Immutable.${name2}`;
48337
+ var printAsLeaf = (name2) => `[${name2}]`;
48316
48338
  var SPACE = " ";
48317
48339
  var LAZY = "\u2026";
48318
- var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + "{" + (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) + "}";
48340
+ var printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`;
48319
48341
  function getRecordEntries(val) {
48320
48342
  let i = 0;
48321
48343
  return {
@@ -48336,7 +48358,7 @@ var require_Immutable = __commonJS({
48336
48358
  }
48337
48359
  var printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
48338
48360
  const name2 = getImmutableName(val._name || "Record");
48339
- return ++depth > config.maxDepth ? printAsLeaf(name2) : name2 + SPACE + "{" + (0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer) + "}";
48361
+ return ++depth > config.maxDepth ? printAsLeaf(name2) : `${name2 + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
48340
48362
  };
48341
48363
  var printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
48342
48364
  const name2 = getImmutableName("Seq");
@@ -48344,11 +48366,11 @@ var require_Immutable = __commonJS({
48344
48366
  return printAsLeaf(name2);
48345
48367
  }
48346
48368
  if (val[IS_KEYED_SENTINEL]) {
48347
- return name2 + SPACE + "{" + (val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY) + "}";
48369
+ return `${name2 + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
48348
48370
  }
48349
- return name2 + SPACE + "[" + (val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY) + "]";
48371
+ return `${name2 + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
48350
48372
  };
48351
- var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : getImmutableName(type) + SPACE + "[" + (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + "]";
48373
+ var printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`;
48352
48374
  var serialize = (val, config, indentation, depth, refs, printer) => {
48353
48375
  if (val[IS_MAP_SENTINEL]) {
48354
48376
  return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
@@ -48721,9 +48743,9 @@ var require_react_is = __commonJS({
48721
48743
  }
48722
48744
  });
48723
48745
 
48724
- // ../../node_modules/pretty-format/build/plugins/ReactElement.js
48746
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactElement.js
48725
48747
  var require_ReactElement = __commonJS({
48726
- "../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
48748
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
48727
48749
  "use strict";
48728
48750
  Object.defineProperty(exports, "__esModule", {
48729
48751
  value: true
@@ -48805,11 +48827,11 @@ var require_ReactElement = __commonJS({
48805
48827
  return type.displayName;
48806
48828
  }
48807
48829
  const functionName = type.render.displayName || type.render.name || "";
48808
- return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef";
48830
+ return functionName !== "" ? `ForwardRef(${functionName})` : "ForwardRef";
48809
48831
  }
48810
48832
  if (ReactIs.isMemo(element)) {
48811
48833
  const functionName = type.displayName || type.type.displayName || type.type.name || "";
48812
- return functionName !== "" ? "Memo(" + functionName + ")" : "Memo";
48834
+ return functionName !== "" ? `Memo(${functionName})` : "Memo";
48813
48835
  }
48814
48836
  }
48815
48837
  return "UNDEFINED";
@@ -48831,29 +48853,16 @@ var require_ReactElement = __commonJS({
48831
48853
  }
48832
48854
  });
48833
48855
 
48834
- // ../../node_modules/pretty-format/build/plugins/ReactTestComponent.js
48856
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactTestComponent.js
48835
48857
  var require_ReactTestComponent = __commonJS({
48836
- "../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
48858
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
48837
48859
  "use strict";
48838
48860
  Object.defineProperty(exports, "__esModule", {
48839
48861
  value: true
48840
48862
  });
48841
48863
  exports.test = exports.serialize = exports.default = void 0;
48842
48864
  var _markup = require_markup();
48843
- var global2 = function() {
48844
- if (typeof globalThis !== "undefined") {
48845
- return globalThis;
48846
- } else if (typeof global2 !== "undefined") {
48847
- return global2;
48848
- } else if (typeof self !== "undefined") {
48849
- return self;
48850
- } else if (typeof window !== "undefined") {
48851
- return window;
48852
- } else {
48853
- return Function("return this")();
48854
- }
48855
- }();
48856
- var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
48865
+ var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
48857
48866
  var testSymbol = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487;
48858
48867
  var getPropKeys = (object) => {
48859
48868
  const { props } = object;
@@ -48872,9 +48881,9 @@ var require_ReactTestComponent = __commonJS({
48872
48881
  }
48873
48882
  });
48874
48883
 
48875
- // ../../node_modules/pretty-format/build/index.js
48884
+ // ../../node_modules/jest-diff/node_modules/pretty-format/build/index.js
48876
48885
  var require_build2 = __commonJS({
48877
- "../../node_modules/pretty-format/build/index.js"(exports) {
48886
+ "../../node_modules/jest-diff/node_modules/pretty-format/build/index.js"(exports) {
48878
48887
  "use strict";
48879
48888
  Object.defineProperty(exports, "__esModule", {
48880
48889
  value: true
@@ -48922,17 +48931,17 @@ var require_build2 = __commonJS({
48922
48931
  if (!printFunctionName) {
48923
48932
  return "[Function]";
48924
48933
  }
48925
- return "[Function " + (val.name || "anonymous") + "]";
48934
+ return `[Function ${val.name || "anonymous"}]`;
48926
48935
  }
48927
48936
  function printSymbol(val) {
48928
48937
  return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
48929
48938
  }
48930
48939
  function printError(val) {
48931
- return "[" + errorToString.call(val) + "]";
48940
+ return `[${errorToString.call(val)}]`;
48932
48941
  }
48933
48942
  function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
48934
48943
  if (val === true || val === false) {
48935
- return "" + val;
48944
+ return `${val}`;
48936
48945
  }
48937
48946
  if (val === void 0) {
48938
48947
  return "undefined";
@@ -48949,9 +48958,9 @@ var require_build2 = __commonJS({
48949
48958
  }
48950
48959
  if (typeOf === "string") {
48951
48960
  if (escapeString) {
48952
- return '"' + val.replace(/"|\\/g, "\\$&") + '"';
48961
+ return `"${val.replace(/"|\\/g, "\\$&")}"`;
48953
48962
  }
48954
- return '"' + val + '"';
48963
+ return `"${val}"`;
48955
48964
  }
48956
48965
  if (typeOf === "function") {
48957
48966
  return printFunction(val, printFunctionName);
@@ -49002,18 +49011,18 @@ var require_build2 = __commonJS({
49002
49011
  }
49003
49012
  const toStringed = toString.call(val);
49004
49013
  if (toStringed === "[object Arguments]") {
49005
- return hitMaxDepth ? "[Arguments]" : (min ? "" : "Arguments ") + "[" + (0, _collections.printListItems)(val, config, indentation, depth, refs, printer) + "]";
49014
+ return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
49006
49015
  }
49007
49016
  if (isToStringedArrayType(toStringed)) {
49008
- return hitMaxDepth ? "[" + val.constructor.name + "]" : (min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : val.constructor.name + " ") + "[" + (0, _collections.printListItems)(val, config, indentation, depth, refs, printer) + "]";
49017
+ return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
49009
49018
  }
49010
49019
  if (toStringed === "[object Map]") {
49011
- return hitMaxDepth ? "[Map]" : "Map {" + (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ") + "}";
49020
+ return hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
49012
49021
  }
49013
49022
  if (toStringed === "[object Set]") {
49014
- return hitMaxDepth ? "[Set]" : "Set {" + (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) + "}";
49023
+ return hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}`;
49015
49024
  }
49016
- return hitMaxDepth || isWindow(val) ? "[" + getConstructorName(val) + "]" : (min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : getConstructorName(val) + " ") + "{" + (0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer) + "}";
49025
+ return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
49017
49026
  }
49018
49027
  function isNewPlugin(plugin) {
49019
49028
  return plugin.serialize != null;
@@ -49023,7 +49032,8 @@ var require_build2 = __commonJS({
49023
49032
  try {
49024
49033
  printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
49025
49034
  const indentationNext = indentation + config.indent;
49026
- return indentationNext + str.replace(NEWLINE_REGEXP, "\n" + indentationNext);
49035
+ return indentationNext + str.replace(NEWLINE_REGEXP, `
49036
+ ${indentationNext}`);
49027
49037
  }, {
49028
49038
  edgeSpacing: config.spacingOuter,
49029
49039
  min: config.min,
@@ -49076,6 +49086,7 @@ var require_build2 = __commonJS({
49076
49086
  highlight: false,
49077
49087
  indent: 2,
49078
49088
  maxDepth: Infinity,
49089
+ maxWidth: Infinity,
49079
49090
  min: false,
49080
49091
  plugins: [],
49081
49092
  printBasicPrototype: true,
@@ -49085,7 +49096,7 @@ var require_build2 = __commonJS({
49085
49096
  exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
49086
49097
  function validateOptions(options) {
49087
49098
  Object.keys(options).forEach((key) => {
49088
- if (!DEFAULT_OPTIONS.hasOwnProperty(key)) {
49099
+ if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {
49089
49100
  throw new Error(`pretty-format: Unknown option "${key}".`);
49090
49101
  }
49091
49102
  });
@@ -49094,7 +49105,7 @@ var require_build2 = __commonJS({
49094
49105
  }
49095
49106
  if (options.theme !== void 0) {
49096
49107
  if (options.theme === null) {
49097
- throw new Error(`pretty-format: Option "theme" must not be null.`);
49108
+ throw new Error('pretty-format: Option "theme" must not be null.');
49098
49109
  }
49099
49110
  if (typeof options.theme !== "object") {
49100
49111
  throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
@@ -49118,25 +49129,35 @@ var require_build2 = __commonJS({
49118
49129
  };
49119
49130
  return colors;
49120
49131
  }, /* @__PURE__ */ Object.create(null));
49121
- var getPrintFunctionName = (options) => options && options.printFunctionName !== void 0 ? options.printFunctionName : DEFAULT_OPTIONS.printFunctionName;
49122
- var getEscapeRegex = (options) => options && options.escapeRegex !== void 0 ? options.escapeRegex : DEFAULT_OPTIONS.escapeRegex;
49123
- var getEscapeString = (options) => options && options.escapeString !== void 0 ? options.escapeString : DEFAULT_OPTIONS.escapeString;
49132
+ var getPrintFunctionName = (options) => {
49133
+ var _options$printFunctio;
49134
+ return (_options$printFunctio = options === null || options === void 0 ? void 0 : options.printFunctionName) !== null && _options$printFunctio !== void 0 ? _options$printFunctio : DEFAULT_OPTIONS.printFunctionName;
49135
+ };
49136
+ var getEscapeRegex = (options) => {
49137
+ var _options$escapeRegex;
49138
+ return (_options$escapeRegex = options === null || options === void 0 ? void 0 : options.escapeRegex) !== null && _options$escapeRegex !== void 0 ? _options$escapeRegex : DEFAULT_OPTIONS.escapeRegex;
49139
+ };
49140
+ var getEscapeString = (options) => {
49141
+ var _options$escapeString;
49142
+ return (_options$escapeString = options === null || options === void 0 ? void 0 : options.escapeString) !== null && _options$escapeString !== void 0 ? _options$escapeString : DEFAULT_OPTIONS.escapeString;
49143
+ };
49124
49144
  var getConfig = (options) => {
49125
- var _options$printBasicPr;
49145
+ var _options$callToJSON, _options$indent, _options$maxDepth, _options$maxWidth, _options$min, _options$plugins, _options$printBasicPr;
49126
49146
  return {
49127
- callToJSON: options && options.callToJSON !== void 0 ? options.callToJSON : DEFAULT_OPTIONS.callToJSON,
49128
- colors: options && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
49129
- compareKeys: options && typeof options.compareKeys === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
49147
+ callToJSON: (_options$callToJSON = options === null || options === void 0 ? void 0 : options.callToJSON) !== null && _options$callToJSON !== void 0 ? _options$callToJSON : DEFAULT_OPTIONS.callToJSON,
49148
+ colors: options !== null && options !== void 0 && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
49149
+ compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
49130
49150
  escapeRegex: getEscapeRegex(options),
49131
49151
  escapeString: getEscapeString(options),
49132
- indent: options && options.min ? "" : createIndent(options && options.indent !== void 0 ? options.indent : DEFAULT_OPTIONS.indent),
49133
- maxDepth: options && options.maxDepth !== void 0 ? options.maxDepth : DEFAULT_OPTIONS.maxDepth,
49134
- min: options && options.min !== void 0 ? options.min : DEFAULT_OPTIONS.min,
49135
- plugins: options && options.plugins !== void 0 ? options.plugins : DEFAULT_OPTIONS.plugins,
49152
+ indent: options !== null && options !== void 0 && options.min ? "" : createIndent((_options$indent = options === null || options === void 0 ? void 0 : options.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent),
49153
+ maxDepth: (_options$maxDepth = options === null || options === void 0 ? void 0 : options.maxDepth) !== null && _options$maxDepth !== void 0 ? _options$maxDepth : DEFAULT_OPTIONS.maxDepth,
49154
+ maxWidth: (_options$maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_OPTIONS.maxWidth,
49155
+ min: (_options$min = options === null || options === void 0 ? void 0 : options.min) !== null && _options$min !== void 0 ? _options$min : DEFAULT_OPTIONS.min,
49156
+ plugins: (_options$plugins = options === null || options === void 0 ? void 0 : options.plugins) !== null && _options$plugins !== void 0 ? _options$plugins : DEFAULT_OPTIONS.plugins,
49136
49157
  printBasicPrototype: (_options$printBasicPr = options === null || options === void 0 ? void 0 : options.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : true,
49137
49158
  printFunctionName: getPrintFunctionName(options),
49138
- spacingInner: options && options.min ? " " : "\n",
49139
- spacingOuter: options && options.min ? "" : "\n"
49159
+ spacingInner: options !== null && options !== void 0 && options.min ? " " : "\n",
49160
+ spacingOuter: options !== null && options !== void 0 && options.min ? "" : "\n"
49140
49161
  };
49141
49162
  };
49142
49163
  function createIndent(indent) {
@@ -49181,19 +49202,6 @@ var require_cleanupSemantic = __commonJS({
49181
49202
  value: true
49182
49203
  });
49183
49204
  exports.cleanupSemantic = exports.Diff = exports.DIFF_INSERT = exports.DIFF_EQUAL = exports.DIFF_DELETE = void 0;
49184
- function _defineProperty(obj, key, value) {
49185
- if (key in obj) {
49186
- Object.defineProperty(obj, key, {
49187
- value,
49188
- enumerable: true,
49189
- configurable: true,
49190
- writable: true
49191
- });
49192
- } else {
49193
- obj[key] = value;
49194
- }
49195
- return obj;
49196
- }
49197
49205
  var DIFF_DELETE = -1;
49198
49206
  exports.DIFF_DELETE = DIFF_DELETE;
49199
49207
  var DIFF_INSERT = 1;
@@ -49201,9 +49209,9 @@ var require_cleanupSemantic = __commonJS({
49201
49209
  var DIFF_EQUAL = 0;
49202
49210
  exports.DIFF_EQUAL = DIFF_EQUAL;
49203
49211
  var Diff = class {
49212
+ 0;
49213
+ 1;
49204
49214
  constructor(op, text) {
49205
- _defineProperty(this, 0, void 0);
49206
- _defineProperty(this, 1, void 0);
49207
49215
  this[0] = op;
49208
49216
  this[1] = text;
49209
49217
  }
@@ -49547,7 +49555,7 @@ var require_build3 = __commonJS({
49547
49555
  Object.defineProperty(exports, "__esModule", {
49548
49556
  value: true
49549
49557
  });
49550
- exports.default = void 0;
49558
+ exports.default = diffSequence;
49551
49559
  var pkg = "diff-sequences";
49552
49560
  var NOT_YET_SET = 0;
49553
49561
  var countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {
@@ -49837,7 +49845,7 @@ var require_build3 = __commonJS({
49837
49845
  throw new TypeError(`${pkg}: ${name2} typeof ${type} is not a function`);
49838
49846
  }
49839
49847
  };
49840
- var _default = (aLength, bLength, isCommon, foundSubsequence) => {
49848
+ function diffSequence(aLength, bLength, isCommon, foundSubsequence) {
49841
49849
  validateLength("aLength", aLength);
49842
49850
  validateLength("bLength", bLength);
49843
49851
  validateCallback("isCommon", isCommon);
@@ -49884,8 +49892,7 @@ var require_build3 = __commonJS({
49884
49892
  foundSubsequence(nCommonR, aEnd, bEnd);
49885
49893
  }
49886
49894
  }
49887
- };
49888
- exports.default = _default;
49895
+ }
49889
49896
  }
49890
49897
  });
49891
49898
 
@@ -49899,7 +49906,7 @@ var require_joinAlignedDiffs = __commonJS({
49899
49906
  exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
49900
49907
  var _cleanupSemantic = require_cleanupSemantic();
49901
49908
  var formatTrailingSpaces = (line, trailingSpaceFormatter) => line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
49902
- var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(indicator + " " + formatTrailingSpaces(line, trailingSpaceFormatter)) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(indicator + " " + emptyFirstOrLastLinePlaceholder) : "";
49909
+ var printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) => line.length !== 0 ? color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : "";
49903
49910
  var printDeleteLine = (line, isFirstOrLast, {
49904
49911
  aColor,
49905
49912
  aIndicator,
@@ -50170,10 +50177,15 @@ var require_diffLines = __commonJS({
50170
50177
  const baCountLengthDiff = bCount.length - aCount.length;
50171
50178
  const aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff));
50172
50179
  const bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
50173
- aRest = aAnnotationPadding + " " + aIndicator + " " + aCountPadding + aCount;
50174
- bRest = bAnnotationPadding + " " + bIndicator + " " + bCountPadding + bCount;
50180
+ aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`;
50181
+ bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
50175
50182
  }
50176
- return aColor(aIndicator + " " + aAnnotation + aRest) + "\n" + bColor(bIndicator + " " + bAnnotation + bRest) + "\n\n";
50183
+ const a = `${aIndicator} ${aAnnotation}${aRest}`;
50184
+ const b = `${bIndicator} ${bAnnotation}${bRest}`;
50185
+ return `${aColor(a)}
50186
+ ${bColor(b)}
50187
+
50188
+ `;
50177
50189
  };
50178
50190
  var printDiffLines = (diffs, options) => printAnnotation(options, countChanges(diffs)) + (options.expand ? (0, _joinAlignedDiffs.joinAlignedDiffsExpand)(diffs, options) : (0, _joinAlignedDiffs.joinAlignedDiffsNoExpand)(diffs, options));
50179
50191
  exports.printDiffLines = printDiffLines;
@@ -50296,26 +50308,13 @@ var require_getAlignedDiffs = __commonJS({
50296
50308
  });
50297
50309
  exports.default = void 0;
50298
50310
  var _cleanupSemantic = require_cleanupSemantic();
50299
- function _defineProperty(obj, key, value) {
50300
- if (key in obj) {
50301
- Object.defineProperty(obj, key, {
50302
- value,
50303
- enumerable: true,
50304
- configurable: true,
50305
- writable: true
50306
- });
50307
- } else {
50308
- obj[key] = value;
50309
- }
50310
- return obj;
50311
- }
50312
50311
  var concatenateRelevantDiffs = (op, diffs, changeColor) => diffs.reduce((reduced, diff2) => reduced + (diff2[0] === _cleanupSemantic.DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
50313
50312
  var ChangeBuffer = class {
50313
+ op;
50314
+ line;
50315
+ lines;
50316
+ changeColor;
50314
50317
  constructor(op, changeColor) {
50315
- _defineProperty(this, "op", void 0);
50316
- _defineProperty(this, "line", void 0);
50317
- _defineProperty(this, "lines", void 0);
50318
- _defineProperty(this, "changeColor", void 0);
50319
50318
  this.op = op;
50320
50319
  this.line = [];
50321
50320
  this.lines = [];
@@ -50360,10 +50359,10 @@ var require_getAlignedDiffs = __commonJS({
50360
50359
  }
50361
50360
  };
50362
50361
  var CommonBuffer = class {
50362
+ deleteBuffer;
50363
+ insertBuffer;
50364
+ lines;
50363
50365
  constructor(deleteBuffer, insertBuffer) {
50364
- _defineProperty(this, "deleteBuffer", void 0);
50365
- _defineProperty(this, "insertBuffer", void 0);
50366
- _defineProperty(this, "lines", void 0);
50367
50366
  this.deleteBuffer = deleteBuffer;
50368
50367
  this.insertBuffer = insertBuffer;
50369
50368
  this.lines = [];
@@ -50464,7 +50463,9 @@ var require_printDiffs = __commonJS({
50464
50463
  var diffStringsUnified = (a, b, options) => {
50465
50464
  if (a !== b && a.length !== 0 && b.length !== 0) {
50466
50465
  const isMultiline = a.includes("\n") || b.includes("\n");
50467
- const diffs = diffStringsRaw(isMultiline ? a + "\n" : a, isMultiline ? b + "\n" : b, true);
50466
+ const diffs = diffStringsRaw(isMultiline ? `${a}
50467
+ ` : a, isMultiline ? `${b}
50468
+ ` : b, true);
50468
50469
  if (hasCommonDiff(diffs, isMultiline)) {
50469
50470
  const optionsNormalized = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
50470
50471
  const lines = (0, _getAlignedDiffs.default)(diffs, optionsNormalized.changeColor);
@@ -50558,20 +50559,7 @@ var require_build4 = __commonJS({
50558
50559
  function _interopRequireDefault(obj) {
50559
50560
  return obj && obj.__esModule ? obj : { default: obj };
50560
50561
  }
50561
- var global2 = function() {
50562
- if (typeof globalThis !== "undefined") {
50563
- return globalThis;
50564
- } else if (typeof global2 !== "undefined") {
50565
- return global2;
50566
- } else if (typeof self !== "undefined") {
50567
- return self;
50568
- } else if (typeof window !== "undefined") {
50569
- return window;
50570
- } else {
50571
- return Function("return this")();
50572
- }
50573
- }();
50574
- var Symbol2 = global2["jest-symbol-do-not-touch"] || global2.Symbol;
50562
+ var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
50575
50563
  var getCommonMessage = (message, options) => {
50576
50564
  const { commonColor } = (0, _normalizeDiffOptions.normalizeDiffOptions)(options);
50577
50565
  return commonColor(message);
@@ -50662,7 +50650,9 @@ var require_build4 = __commonJS({
50662
50650
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
50663
50651
  difference = getObjectsDifference(a, b, formatOptions, options);
50664
50652
  if (difference !== noDiffMessage && !hasThrown) {
50665
- difference = getCommonMessage(_constants.SIMILAR_MESSAGE, options) + "\n\n" + difference;
50653
+ difference = `${getCommonMessage(_constants.SIMILAR_MESSAGE, options)}
50654
+
50655
+ ${difference}`;
50666
50656
  }
50667
50657
  }
50668
50658
  return difference;
@@ -50872,17 +50862,17 @@ var require_build5 = __commonJS({
50872
50862
  }
50873
50863
  });
50874
50864
 
50875
- // ../../node_modules/yargs-parser/build/index.cjs
50865
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/index.cjs
50876
50866
  var require_build6 = __commonJS({
50877
- "../../node_modules/yargs-parser/build/index.cjs"(exports, module2) {
50867
+ "../../node_modules/yargs/node_modules/yargs-parser/build/index.cjs"(exports, module2) {
50878
50868
  "use strict";
50879
50869
  var util = require("util");
50880
- var fs2 = require("fs");
50881
50870
  var path3 = require("path");
50871
+ var fs2 = require("fs");
50882
50872
  function camelCase(str) {
50883
50873
  const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
50884
50874
  if (!isCamelCase) {
50885
- str = str.toLocaleLowerCase();
50875
+ str = str.toLowerCase();
50886
50876
  }
50887
50877
  if (str.indexOf("-") === -1 && str.indexOf("_") === -1) {
50888
50878
  return str;
@@ -50894,7 +50884,7 @@ var require_build6 = __commonJS({
50894
50884
  let chr = str.charAt(i);
50895
50885
  if (nextChrUpper) {
50896
50886
  nextChrUpper = false;
50897
- chr = chr.toLocaleUpperCase();
50887
+ chr = chr.toUpperCase();
50898
50888
  }
50899
50889
  if (i !== 0 && (chr === "-" || chr === "_")) {
50900
50890
  nextChrUpper = true;
@@ -50906,7 +50896,7 @@ var require_build6 = __commonJS({
50906
50896
  }
50907
50897
  }
50908
50898
  function decamelize(str, joinString) {
50909
- const lowercase = str.toLocaleLowerCase();
50899
+ const lowercase = str.toLowerCase();
50910
50900
  joinString = joinString || "-";
50911
50901
  let notCamelcase = "";
50912
50902
  for (let i = 0; i < str.length; i++) {
@@ -50927,7 +50917,7 @@ var require_build6 = __commonJS({
50927
50917
  return true;
50928
50918
  if (/^0x[0-9a-f]+$/i.test(x))
50929
50919
  return true;
50930
- if (x.length > 1 && x[0] === "0")
50920
+ if (/^0[^.]/.test(x))
50931
50921
  return false;
50932
50922
  return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
50933
50923
  }
@@ -50961,6 +50951,13 @@ var require_build6 = __commonJS({
50961
50951
  }
50962
50952
  return args;
50963
50953
  }
50954
+ var DefaultValuesForTypeKey;
50955
+ (function(DefaultValuesForTypeKey2) {
50956
+ DefaultValuesForTypeKey2["BOOLEAN"] = "boolean";
50957
+ DefaultValuesForTypeKey2["STRING"] = "string";
50958
+ DefaultValuesForTypeKey2["NUMBER"] = "number";
50959
+ DefaultValuesForTypeKey2["ARRAY"] = "array";
50960
+ })(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {}));
50964
50961
  var mixin;
50965
50962
  var YargsParser = class {
50966
50963
  constructor(_mixin) {
@@ -50986,6 +50983,7 @@ var require_build6 = __commonJS({
50986
50983
  key: void 0
50987
50984
  }, options);
50988
50985
  const args = tokenizeArgString(argsInput);
50986
+ const inputIsString = typeof argsInput === "string";
50989
50987
  const aliases = combineAliases(Object.assign(/* @__PURE__ */ Object.create(null), opts.alias));
50990
50988
  const configuration = Object.assign({
50991
50989
  "boolean-negation": true,
@@ -51108,6 +51106,7 @@ var require_build6 = __commonJS({
51108
51106
  const argvReturn = {};
51109
51107
  for (let i = 0; i < args.length; i++) {
51110
51108
  const arg = args[i];
51109
+ const truncatedArg = arg.replace(/^-{3,}/, "---");
51111
51110
  let broken;
51112
51111
  let key;
51113
51112
  let letters;
@@ -51116,7 +51115,7 @@ var require_build6 = __commonJS({
51116
51115
  let value;
51117
51116
  if (arg !== "--" && isUnknownOptionAsArg(arg)) {
51118
51117
  pushPositional(arg);
51119
- } else if (arg.match(/---+(=|$)/)) {
51118
+ } else if (truncatedArg.match(/---+(=|$)/)) {
51120
51119
  pushPositional(arg);
51121
51120
  continue;
51122
51121
  } else if (arg.match(/^--.+=/) || !configuration["short-option-groups"] && arg.match(/^-.+=/)) {
@@ -51127,7 +51126,7 @@ var require_build6 = __commonJS({
51127
51126
  } else if (checkAllAliases(m[1], flags.nargs) !== false) {
51128
51127
  i = eatNargs(i, m[1], args, m[2]);
51129
51128
  } else {
51130
- setArg(m[1], m[2]);
51129
+ setArg(m[1], m[2], true);
51131
51130
  }
51132
51131
  }
51133
51132
  } else if (arg.match(negatedBoolean) && configuration["boolean-negation"]) {
@@ -51327,7 +51326,7 @@ var require_build6 = __commonJS({
51327
51326
  }
51328
51327
  } else {
51329
51328
  if (!isUndefined(argAfterEqualSign)) {
51330
- argsToSet.push(processValue(key, argAfterEqualSign));
51329
+ argsToSet.push(processValue(key, argAfterEqualSign, true));
51331
51330
  }
51332
51331
  for (let ii = i + 1; ii < args2.length; ii++) {
51333
51332
  if (!configuration["greedy-arrays"] && argsToSet.length > 0 || nargsCount && typeof nargsCount === "number" && argsToSet.length >= nargsCount)
@@ -51336,7 +51335,7 @@ var require_build6 = __commonJS({
51336
51335
  if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))
51337
51336
  break;
51338
51337
  i = ii;
51339
- argsToSet.push(processValue(key, next));
51338
+ argsToSet.push(processValue(key, next, inputIsString));
51340
51339
  }
51341
51340
  }
51342
51341
  if (typeof nargsCount === "number" && (nargsCount && argsToSet.length < nargsCount || isNaN(nargsCount) && argsToSet.length === 0)) {
@@ -51345,14 +51344,14 @@ var require_build6 = __commonJS({
51345
51344
  setArg(key, argsToSet);
51346
51345
  return i;
51347
51346
  }
51348
- function setArg(key, val) {
51347
+ function setArg(key, val, shouldStripQuotes = inputIsString) {
51349
51348
  if (/-/.test(key) && configuration["camel-case-expansion"]) {
51350
51349
  const alias = key.split(".").map(function(prop) {
51351
51350
  return camelCase(prop);
51352
51351
  }).join(".");
51353
51352
  addNewAlias(key, alias);
51354
51353
  }
51355
- const value = processValue(key, val);
51354
+ const value = processValue(key, val, shouldStripQuotes);
51356
51355
  const splitKey = key.split(".");
51357
51356
  setKey(argv, splitKey, value);
51358
51357
  if (flags.aliases[key]) {
@@ -51396,9 +51395,9 @@ var require_build6 = __commonJS({
51396
51395
  addNewAlias(alias, key);
51397
51396
  }
51398
51397
  }
51399
- function processValue(key, val) {
51400
- if (typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0]) {
51401
- val = val.substring(1, val.length - 1);
51398
+ function processValue(key, val, shouldStripQuotes) {
51399
+ if (shouldStripQuotes) {
51400
+ val = stripQuotes(val);
51402
51401
  }
51403
51402
  if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
51404
51403
  if (typeof val === "string")
@@ -51682,6 +51681,7 @@ var require_build6 = __commonJS({
51682
51681
  return configuration["unknown-options-as-args"] && isUnknownOption(arg);
51683
51682
  }
51684
51683
  function isUnknownOption(arg) {
51684
+ arg = arg.replace(/^-{3,}/, "--");
51685
51685
  if (arg.match(negative)) {
51686
51686
  return false;
51687
51687
  }
@@ -51704,23 +51704,23 @@ var require_build6 = __commonJS({
51704
51704
  }
51705
51705
  function defaultForType(type) {
51706
51706
  const def = {
51707
- boolean: true,
51708
- string: "",
51709
- number: void 0,
51710
- array: []
51707
+ [DefaultValuesForTypeKey.BOOLEAN]: true,
51708
+ [DefaultValuesForTypeKey.STRING]: "",
51709
+ [DefaultValuesForTypeKey.NUMBER]: void 0,
51710
+ [DefaultValuesForTypeKey.ARRAY]: []
51711
51711
  };
51712
51712
  return def[type];
51713
51713
  }
51714
51714
  function guessType(key) {
51715
- let type = "boolean";
51715
+ let type = DefaultValuesForTypeKey.BOOLEAN;
51716
51716
  if (checkAllAliases(key, flags.strings))
51717
- type = "string";
51717
+ type = DefaultValuesForTypeKey.STRING;
51718
51718
  else if (checkAllAliases(key, flags.numbers))
51719
- type = "number";
51719
+ type = DefaultValuesForTypeKey.NUMBER;
51720
51720
  else if (checkAllAliases(key, flags.bools))
51721
- type = "boolean";
51721
+ type = DefaultValuesForTypeKey.BOOLEAN;
51722
51722
  else if (checkAllAliases(key, flags.arrays))
51723
- type = "array";
51723
+ type = DefaultValuesForTypeKey.ARRAY;
51724
51724
  return type;
51725
51725
  }
51726
51726
  function isUndefined(num) {
@@ -51790,7 +51790,10 @@ var require_build6 = __commonJS({
51790
51790
  return "___proto___";
51791
51791
  return key;
51792
51792
  }
51793
- var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 10;
51793
+ function stripQuotes(val) {
51794
+ return typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0] ? val.substring(1, val.length - 1) : val;
51795
+ }
51796
+ var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
51794
51797
  if (process && process.version) {
51795
51798
  const major = Number(process.version.match(/v([^.]+)/)[1]);
51796
51799
  if (major < minNodeVersion) {
@@ -51810,7 +51813,7 @@ var require_build6 = __commonJS({
51810
51813
  if (typeof require !== "undefined") {
51811
51814
  return require(path4);
51812
51815
  } else if (path4.match(/\.json$/)) {
51813
- return fs2.readFileSync(path4, "utf8");
51816
+ return JSON.parse(fs2.readFileSync(path4, "utf8"));
51814
51817
  } else {
51815
51818
  throw Error("only .json config files are supported in ESM");
51816
51819
  }
@@ -52369,12 +52372,12 @@ var require_build8 = __commonJS({
52369
52372
  var t = require("assert");
52370
52373
  var e = class extends Error {
52371
52374
  constructor(t2) {
52372
- super(t2 || "yargs error"), this.name = "YError", Error.captureStackTrace(this, e);
52375
+ super(t2 || "yargs error"), this.name = "YError", Error.captureStackTrace && Error.captureStackTrace(this, e);
52373
52376
  }
52374
52377
  };
52375
52378
  var s;
52376
- var n = [];
52377
- function i(t2, o2, a2, h2) {
52379
+ var i = [];
52380
+ function n(t2, o2, a2, h2) {
52378
52381
  s = h2;
52379
52382
  let l2 = {};
52380
52383
  if (Object.prototype.hasOwnProperty.call(t2, "extends")) {
@@ -52393,53 +52396,53 @@ var require_build8 = __commonJS({
52393
52396
  return t2;
52394
52397
  }
52395
52398
  !function(t3) {
52396
- if (n.indexOf(t3) > -1)
52399
+ if (i.indexOf(t3) > -1)
52397
52400
  throw new e(`Circular extended configurations: '${t3}'.`);
52398
- }(h3), n.push(h3), l2 = r2 ? JSON.parse(s.readFileSync(h3, "utf8")) : require(t2.extends), delete t2.extends, l2 = i(l2, s.path.dirname(h3), a2, s);
52401
+ }(h3), i.push(h3), l2 = r2 ? JSON.parse(s.readFileSync(h3, "utf8")) : require(t2.extends), delete t2.extends, l2 = n(l2, s.path.dirname(h3), a2, s);
52399
52402
  }
52400
- return n = [], a2 ? r(l2, t2) : Object.assign({}, l2, t2);
52403
+ return i = [], a2 ? r(l2, t2) : Object.assign({}, l2, t2);
52401
52404
  }
52402
52405
  function r(t2, e2) {
52403
52406
  const s2 = {};
52404
- function n2(t3) {
52407
+ function i2(t3) {
52405
52408
  return t3 && typeof t3 == "object" && !Array.isArray(t3);
52406
52409
  }
52407
52410
  Object.assign(s2, t2);
52408
- for (const i2 of Object.keys(e2))
52409
- n2(e2[i2]) && n2(s2[i2]) ? s2[i2] = r(t2[i2], e2[i2]) : s2[i2] = e2[i2];
52411
+ for (const n2 of Object.keys(e2))
52412
+ i2(e2[n2]) && i2(s2[n2]) ? s2[n2] = r(t2[n2], e2[n2]) : s2[n2] = e2[n2];
52410
52413
  return s2;
52411
52414
  }
52412
52415
  function o(t2) {
52413
- const e2 = t2.replace(/\s{2,}/g, " ").split(/\s+(?![^[]*]|[^<]*>)/), s2 = /\.*[\][<>]/g, n2 = e2.shift();
52414
- if (!n2)
52416
+ const e2 = t2.replace(/\s{2,}/g, " ").split(/\s+(?![^[]*]|[^<]*>)/), s2 = /\.*[\][<>]/g, i2 = e2.shift();
52417
+ if (!i2)
52415
52418
  throw new Error(`No command found in: ${t2}`);
52416
- const i2 = { cmd: n2.replace(s2, ""), demanded: [], optional: [] };
52417
- return e2.forEach((t3, n3) => {
52419
+ const n2 = { cmd: i2.replace(s2, ""), demanded: [], optional: [] };
52420
+ return e2.forEach((t3, i3) => {
52418
52421
  let r2 = false;
52419
- t3 = t3.replace(/\s/g, ""), /\.+[\]>]/.test(t3) && n3 === e2.length - 1 && (r2 = true), /^\[/.test(t3) ? i2.optional.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 }) : i2.demanded.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 });
52420
- }), i2;
52422
+ t3 = t3.replace(/\s/g, ""), /\.+[\]>]/.test(t3) && i3 === e2.length - 1 && (r2 = true), /^\[/.test(t3) ? n2.optional.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 }) : n2.demanded.push({ cmd: t3.replace(s2, "").split("|"), variadic: r2 });
52423
+ }), n2;
52421
52424
  }
52422
52425
  var a = ["first", "second", "third", "fourth", "fifth", "sixth"];
52423
- function h(t2, s2, n2) {
52426
+ function h(t2, s2, i2) {
52424
52427
  try {
52425
- let i2 = 0;
52426
- const [r2, a2, h2] = typeof t2 == "object" ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2, n2], d2 = [].slice.call(a2);
52427
- for (; d2.length && d2[d2.length - 1] === void 0; )
52428
- d2.pop();
52429
- const u2 = h2 || d2.length;
52430
- if (u2 < r2.demanded.length)
52431
- throw new e(`Not enough arguments provided. Expected ${r2.demanded.length} but received ${d2.length}.`);
52432
- const p2 = r2.demanded.length + r2.optional.length;
52433
- if (u2 > p2)
52434
- throw new e(`Too many arguments provided. Expected max ${p2} but received ${u2}.`);
52428
+ let n2 = 0;
52429
+ const [r2, a2, h2] = typeof t2 == "object" ? [{ demanded: [], optional: [] }, t2, s2] : [o(`cmd ${t2}`), s2, i2], f2 = [].slice.call(a2);
52430
+ for (; f2.length && f2[f2.length - 1] === void 0; )
52431
+ f2.pop();
52432
+ const d2 = h2 || f2.length;
52433
+ if (d2 < r2.demanded.length)
52434
+ throw new e(`Not enough arguments provided. Expected ${r2.demanded.length} but received ${f2.length}.`);
52435
+ const u2 = r2.demanded.length + r2.optional.length;
52436
+ if (d2 > u2)
52437
+ throw new e(`Too many arguments provided. Expected max ${u2} but received ${d2}.`);
52435
52438
  r2.demanded.forEach((t3) => {
52436
- const e2 = l(d2.shift());
52437
- t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, i2), i2 += 1;
52439
+ const e2 = l(f2.shift());
52440
+ t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
52438
52441
  }), r2.optional.forEach((t3) => {
52439
- if (d2.length === 0)
52442
+ if (f2.length === 0)
52440
52443
  return;
52441
- const e2 = l(d2.shift());
52442
- t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, i2), i2 += 1;
52444
+ const e2 = l(f2.shift());
52445
+ t3.cmd.filter((t4) => t4 === e2 || t4 === "*").length === 0 && c(e2, t3.cmd, n2), n2 += 1;
52443
52446
  });
52444
52447
  } catch (t3) {
52445
52448
  console.warn(t3.stack);
@@ -52448,77 +52451,77 @@ var require_build8 = __commonJS({
52448
52451
  function l(t2) {
52449
52452
  return Array.isArray(t2) ? "array" : t2 === null ? "null" : typeof t2;
52450
52453
  }
52451
- function c(t2, s2, n2) {
52452
- throw new e(`Invalid ${a[n2] || "manyith"} argument. Expected ${s2.join(" or ")} but received ${t2}.`);
52454
+ function c(t2, s2, i2) {
52455
+ throw new e(`Invalid ${a[i2] || "manyith"} argument. Expected ${s2.join(" or ")} but received ${t2}.`);
52453
52456
  }
52454
- function d(t2) {
52457
+ function f(t2) {
52455
52458
  return !!t2 && !!t2.then && typeof t2.then == "function";
52456
52459
  }
52457
- function u(t2, e2, s2, n2) {
52458
- s2.assert.notStrictEqual(t2, e2, n2);
52460
+ function d(t2, e2, s2, i2) {
52461
+ s2.assert.notStrictEqual(t2, e2, i2);
52459
52462
  }
52460
- function p(t2, e2) {
52463
+ function u(t2, e2) {
52461
52464
  e2.assert.strictEqual(typeof t2, "string");
52462
52465
  }
52463
- function g(t2) {
52466
+ function p(t2) {
52464
52467
  return Object.keys(t2);
52465
52468
  }
52466
- function m(t2 = {}, e2 = () => true) {
52469
+ function g(t2 = {}, e2 = () => true) {
52467
52470
  const s2 = {};
52468
- return g(t2).forEach((n2) => {
52469
- e2(n2, t2[n2]) && (s2[n2] = t2[n2]);
52471
+ return p(t2).forEach((i2) => {
52472
+ e2(i2, t2[i2]) && (s2[i2] = t2[i2]);
52470
52473
  }), s2;
52471
52474
  }
52472
- function f() {
52475
+ function m() {
52473
52476
  return process.versions.electron && !process.defaultApp ? 0 : 1;
52474
52477
  }
52475
52478
  function y() {
52476
- return process.argv[f()];
52479
+ return process.argv[m()];
52477
52480
  }
52478
52481
  var b = Object.freeze({ __proto__: null, hideBin: function(t2) {
52479
- return t2.slice(f() + 1);
52482
+ return t2.slice(m() + 1);
52480
52483
  }, getProcessArgvBin: y });
52481
- function O(t2, e2, s2, n2) {
52482
- if (s2 === "a" && !n2)
52484
+ function v(t2, e2, s2, i2) {
52485
+ if (s2 === "a" && !i2)
52483
52486
  throw new TypeError("Private accessor was defined without a getter");
52484
- if (typeof e2 == "function" ? t2 !== e2 || !n2 : !e2.has(t2))
52487
+ if (typeof e2 == "function" ? t2 !== e2 || !i2 : !e2.has(t2))
52485
52488
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
52486
- return s2 === "m" ? n2 : s2 === "a" ? n2.call(t2) : n2 ? n2.value : e2.get(t2);
52489
+ return s2 === "m" ? i2 : s2 === "a" ? i2.call(t2) : i2 ? i2.value : e2.get(t2);
52487
52490
  }
52488
- function v(t2, e2, s2, n2, i2) {
52489
- if (n2 === "m")
52491
+ function O(t2, e2, s2, i2, n2) {
52492
+ if (i2 === "m")
52490
52493
  throw new TypeError("Private method is not writable");
52491
- if (n2 === "a" && !i2)
52494
+ if (i2 === "a" && !n2)
52492
52495
  throw new TypeError("Private accessor was defined without a setter");
52493
- if (typeof e2 == "function" ? t2 !== e2 || !i2 : !e2.has(t2))
52496
+ if (typeof e2 == "function" ? t2 !== e2 || !n2 : !e2.has(t2))
52494
52497
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
52495
- return n2 === "a" ? i2.call(t2, s2) : i2 ? i2.value = s2 : e2.set(t2, s2), s2;
52498
+ return i2 === "a" ? n2.call(t2, s2) : n2 ? n2.value = s2 : e2.set(t2, s2), s2;
52496
52499
  }
52497
52500
  var w = class {
52498
52501
  constructor(t2) {
52499
52502
  this.globalMiddleware = [], this.frozens = [], this.yargs = t2;
52500
52503
  }
52501
- addMiddleware(t2, e2, s2 = true) {
52502
- if (h("<array|function> [boolean] [boolean]", [t2, e2, s2], arguments.length), Array.isArray(t2)) {
52503
- for (let n2 = 0; n2 < t2.length; n2++) {
52504
- if (typeof t2[n2] != "function")
52504
+ addMiddleware(t2, e2, s2 = true, i2 = false) {
52505
+ if (h("<array|function> [boolean] [boolean] [boolean]", [t2, e2, s2], arguments.length), Array.isArray(t2)) {
52506
+ for (let i3 = 0; i3 < t2.length; i3++) {
52507
+ if (typeof t2[i3] != "function")
52505
52508
  throw Error("middleware must be a function");
52506
- const i2 = t2[n2];
52507
- i2.applyBeforeValidation = e2, i2.global = s2;
52509
+ const n2 = t2[i3];
52510
+ n2.applyBeforeValidation = e2, n2.global = s2;
52508
52511
  }
52509
52512
  Array.prototype.push.apply(this.globalMiddleware, t2);
52510
52513
  } else if (typeof t2 == "function") {
52511
52514
  const n2 = t2;
52512
- n2.applyBeforeValidation = e2, n2.global = s2, this.globalMiddleware.push(t2);
52515
+ n2.applyBeforeValidation = e2, n2.global = s2, n2.mutates = i2, this.globalMiddleware.push(t2);
52513
52516
  }
52514
52517
  return this.yargs;
52515
52518
  }
52516
52519
  addCoerceMiddleware(t2, e2) {
52517
52520
  const s2 = this.yargs.getAliases();
52518
52521
  return this.globalMiddleware = this.globalMiddleware.filter((t3) => {
52519
- const n2 = [...s2[e2] || [], e2];
52520
- return !t3.option || !n2.includes(t3.option);
52521
- }), t2.option = e2, this.addMiddleware(t2, true, true);
52522
+ const i2 = [...s2[e2] || [], e2];
52523
+ return !t3.option || !i2.includes(t3.option);
52524
+ }), t2.option = e2, this.addMiddleware(t2, true, true, true);
52522
52525
  }
52523
52526
  getMiddleware() {
52524
52527
  return this.globalMiddleware;
@@ -52534,15 +52537,20 @@ var require_build8 = __commonJS({
52534
52537
  this.globalMiddleware = this.globalMiddleware.filter((t2) => t2.global);
52535
52538
  }
52536
52539
  };
52537
- function C(t2, e2, s2, n2) {
52540
+ function C(t2, e2, s2, i2) {
52538
52541
  return s2.reduce((t3, s3) => {
52539
- if (s3.applyBeforeValidation !== n2)
52542
+ if (s3.applyBeforeValidation !== i2)
52540
52543
  return t3;
52541
- if (d(t3))
52544
+ if (s3.mutates) {
52545
+ if (s3.applied)
52546
+ return t3;
52547
+ s3.applied = true;
52548
+ }
52549
+ if (f(t3))
52542
52550
  return t3.then((t4) => Promise.all([t4, s3(t4, e2)])).then(([t4, e3]) => Object.assign(t4, e3));
52543
52551
  {
52544
- const n3 = s3(t3, e2);
52545
- return d(n3) ? n3.then((e3) => Object.assign(t3, e3)) : Object.assign(t3, n3);
52552
+ const i3 = s3(t3, e2);
52553
+ return f(i3) ? i3.then((e3) => Object.assign(t3, e3)) : Object.assign(t3, i3);
52546
52554
  }
52547
52555
  }, t2);
52548
52556
  }
@@ -52551,35 +52559,35 @@ var require_build8 = __commonJS({
52551
52559
  }) {
52552
52560
  try {
52553
52561
  const s3 = typeof t2 == "function" ? t2() : t2;
52554
- return d(s3) ? s3.then((t3) => e2(t3)) : e2(s3);
52562
+ return f(s3) ? s3.then((t3) => e2(t3)) : e2(s3);
52555
52563
  } catch (t3) {
52556
52564
  return s2(t3);
52557
52565
  }
52558
52566
  }
52559
- var x = /(^\*)|(^\$0)/;
52560
- var _ = class {
52561
- constructor(t2, e2, s2, n2) {
52562
- this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = n2, this.usage = t2, this.globalMiddleware = s2, this.validation = e2;
52567
+ var _ = /(^\*)|(^\$0)/;
52568
+ var M = class {
52569
+ constructor(t2, e2, s2, i2) {
52570
+ this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = i2, this.usage = t2, this.globalMiddleware = s2, this.validation = e2;
52563
52571
  }
52564
- addDirectory(t2, e2, s2, n2) {
52565
- typeof (n2 = n2 || {}).recurse != "boolean" && (n2.recurse = false), Array.isArray(n2.extensions) || (n2.extensions = ["js"]);
52566
- const i2 = typeof n2.visit == "function" ? n2.visit : (t3) => t3;
52567
- n2.visit = (t3, e3, s3) => {
52568
- const n3 = i2(t3, e3, s3);
52569
- if (n3) {
52572
+ addDirectory(t2, e2, s2, i2) {
52573
+ typeof (i2 = i2 || {}).recurse != "boolean" && (i2.recurse = false), Array.isArray(i2.extensions) || (i2.extensions = ["js"]);
52574
+ const n2 = typeof i2.visit == "function" ? i2.visit : (t3) => t3;
52575
+ i2.visit = (t3, e3, s3) => {
52576
+ const i3 = n2(t3, e3, s3);
52577
+ if (i3) {
52570
52578
  if (this.requireCache.has(e3))
52571
- return n3;
52572
- this.requireCache.add(e3), this.addHandler(n3);
52579
+ return i3;
52580
+ this.requireCache.add(e3), this.addHandler(i3);
52573
52581
  }
52574
- return n3;
52575
- }, this.shim.requireDirectory({ require: e2, filename: s2 }, t2, n2);
52582
+ return i3;
52583
+ }, this.shim.requireDirectory({ require: e2, filename: s2 }, t2, i2);
52576
52584
  }
52577
- addHandler(t2, e2, s2, n2, i2, r2) {
52585
+ addHandler(t2, e2, s2, i2, n2, r2) {
52578
52586
  let a2 = [];
52579
52587
  const h2 = function(t3) {
52580
52588
  return t3 ? t3.map((t4) => (t4.applyBeforeValidation = false, t4)) : [];
52581
- }(i2);
52582
- if (n2 = n2 || (() => {
52589
+ }(n2);
52590
+ if (i2 = i2 || (() => {
52583
52591
  }), Array.isArray(t2))
52584
52592
  if (function(t3) {
52585
52593
  return t3.every((t4) => typeof t4 == "string");
@@ -52595,17 +52603,17 @@ var require_build8 = __commonJS({
52595
52603
  let e3 = Array.isArray(t2.command) || typeof t2.command == "string" ? t2.command : this.moduleName(t2);
52596
52604
  return t2.aliases && (e3 = [].concat(e3).concat(t2.aliases)), void this.addHandler(e3, this.extractDesc(t2), t2.builder, t2.handler, t2.middlewares, t2.deprecated);
52597
52605
  }
52598
- if (M(s2))
52606
+ if (k(s2))
52599
52607
  return void this.addHandler([t2].concat(a2), e2, s2.builder, s2.handler, s2.middlewares, s2.deprecated);
52600
52608
  }
52601
52609
  if (typeof t2 == "string") {
52602
- const i3 = o(t2);
52610
+ const n3 = o(t2);
52603
52611
  a2 = a2.map((t3) => o(t3).cmd);
52604
52612
  let l2 = false;
52605
- const c2 = [i3.cmd].concat(a2).filter((t3) => !x.test(t3) || (l2 = true, false));
52606
- c2.length === 0 && l2 && c2.push("$0"), l2 && (i3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(x, i3.cmd)), a2.forEach((t3) => {
52607
- this.aliasMap[t3] = i3.cmd;
52608
- }), e2 !== false && this.usage.command(t2, e2, l2, a2, r2), this.handlers[i3.cmd] = { original: t2, description: e2, handler: n2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: i3.demanded, optional: i3.optional }, l2 && (this.defaultCommand = this.handlers[i3.cmd]);
52613
+ const c2 = [n3.cmd].concat(a2).filter((t3) => !_.test(t3) || (l2 = true, false));
52614
+ c2.length === 0 && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(_, n3.cmd)), a2.forEach((t3) => {
52615
+ this.aliasMap[t3] = n3.cmd;
52616
+ }), e2 !== false && this.usage.command(t2, e2, l2, a2, r2), this.handlers[n3.cmd] = { original: t2, description: e2, handler: i2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: n3.demanded, optional: n3.optional }, l2 && (this.defaultCommand = this.handlers[n3.cmd]);
52609
52617
  }
52610
52618
  }
52611
52619
  getCommandHandlers() {
@@ -52617,130 +52625,141 @@ var require_build8 = __commonJS({
52617
52625
  hasDefaultCommand() {
52618
52626
  return !!this.defaultCommand;
52619
52627
  }
52620
- runCommand(t2, e2, s2, n2, i2, r2) {
52628
+ runCommand(t2, e2, s2, i2, n2, r2) {
52621
52629
  const o2 = this.handlers[t2] || this.handlers[this.aliasMap[t2]] || this.defaultCommand, a2 = e2.getInternalMethods().getContext(), h2 = a2.commands.slice(), l2 = !t2;
52622
52630
  t2 && (a2.commands.push(t2), a2.fullCommands.push(o2.original));
52623
- const c2 = this.applyBuilderUpdateUsageAndParse(l2, o2, e2, s2.aliases, h2, n2, i2, r2);
52624
- return d(c2) ? c2.then((t3) => this.applyMiddlewareAndGetResult(l2, o2, t3.innerArgv, a2, i2, t3.aliases, e2)) : this.applyMiddlewareAndGetResult(l2, o2, c2.innerArgv, a2, i2, c2.aliases, e2);
52631
+ const c2 = this.applyBuilderUpdateUsageAndParse(l2, o2, e2, s2.aliases, h2, i2, n2, r2);
52632
+ return f(c2) ? c2.then((t3) => this.applyMiddlewareAndGetResult(l2, o2, t3.innerArgv, a2, n2, t3.aliases, e2)) : this.applyMiddlewareAndGetResult(l2, o2, c2.innerArgv, a2, n2, c2.aliases, e2);
52625
52633
  }
52626
- applyBuilderUpdateUsageAndParse(t2, e2, s2, n2, i2, r2, o2, a2) {
52634
+ applyBuilderUpdateUsageAndParse(t2, e2, s2, i2, n2, r2, o2, a2) {
52627
52635
  const h2 = e2.builder;
52628
52636
  let l2 = s2;
52629
- if (k(h2)) {
52630
- const c2 = h2(s2.getInternalMethods().reset(n2), a2);
52631
- if (d(c2))
52632
- return c2.then((n3) => {
52637
+ if (x(h2)) {
52638
+ const c2 = h2(s2.getInternalMethods().reset(i2), a2);
52639
+ if (f(c2))
52640
+ return c2.then((i3) => {
52633
52641
  var a3;
52634
- return l2 = (a3 = n3) && typeof a3.getInternalMethods == "function" ? n3 : s2, this.parseAndUpdateUsage(t2, e2, l2, i2, r2, o2);
52642
+ return l2 = (a3 = i3) && typeof a3.getInternalMethods == "function" ? i3 : s2, this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
52635
52643
  });
52636
52644
  } else
52637
52645
  (function(t3) {
52638
52646
  return typeof t3 == "object";
52639
- })(h2) && (l2 = s2.getInternalMethods().reset(n2), Object.keys(e2.builder).forEach((t3) => {
52647
+ })(h2) && (l2 = s2.getInternalMethods().reset(i2), Object.keys(e2.builder).forEach((t3) => {
52640
52648
  l2.option(t3, h2[t3]);
52641
52649
  }));
52642
- return this.parseAndUpdateUsage(t2, e2, l2, i2, r2, o2);
52650
+ return this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
52643
52651
  }
52644
- parseAndUpdateUsage(t2, e2, s2, n2, i2, r2) {
52645
- t2 && s2.getInternalMethods().getUsageInstance().unfreeze(), this.shouldUpdateUsage(s2) && s2.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n2, e2), e2.description);
52646
- const o2 = s2.getInternalMethods().runYargsParserAndExecuteCommands(null, void 0, true, i2, r2);
52647
- return d(o2) ? o2.then((t3) => ({ aliases: s2.parsed.aliases, innerArgv: t3 })) : { aliases: s2.parsed.aliases, innerArgv: o2 };
52652
+ parseAndUpdateUsage(t2, e2, s2, i2, n2, r2) {
52653
+ t2 && s2.getInternalMethods().getUsageInstance().unfreeze(true), this.shouldUpdateUsage(s2) && s2.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i2, e2), e2.description);
52654
+ const o2 = s2.getInternalMethods().runYargsParserAndExecuteCommands(null, void 0, true, n2, r2);
52655
+ return f(o2) ? o2.then((t3) => ({ aliases: s2.parsed.aliases, innerArgv: t3 })) : { aliases: s2.parsed.aliases, innerArgv: o2 };
52648
52656
  }
52649
52657
  shouldUpdateUsage(t2) {
52650
52658
  return !t2.getInternalMethods().getUsageInstance().getUsageDisabled() && t2.getInternalMethods().getUsageInstance().getUsage().length === 0;
52651
52659
  }
52652
52660
  usageFromParentCommandsCommandHandler(t2, e2) {
52653
- const s2 = x.test(e2.original) ? e2.original.replace(x, "").trim() : e2.original, n2 = t2.filter((t3) => !x.test(t3));
52654
- return n2.push(s2), `$0 ${n2.join(" ")}`;
52661
+ const s2 = _.test(e2.original) ? e2.original.replace(_, "").trim() : e2.original, i2 = t2.filter((t3) => !_.test(t3));
52662
+ return i2.push(s2), `$0 ${i2.join(" ")}`;
52655
52663
  }
52656
- applyMiddlewareAndGetResult(t2, e2, s2, n2, i2, r2, o2) {
52657
- let a2 = {};
52658
- if (i2)
52659
- return s2;
52660
- o2.getInternalMethods().getHasOutput() || (a2 = this.populatePositionals(e2, s2, n2, o2));
52661
- const h2 = this.globalMiddleware.getMiddleware().slice(0).concat(e2.middlewares);
52662
- if (s2 = C(s2, o2, h2, true), !o2.getInternalMethods().getHasOutput()) {
52663
- const e3 = o2.getInternalMethods().runValidation(r2, a2, o2.parsed.error, t2);
52664
+ handleValidationAndGetResult(t2, e2, s2, i2, n2, r2, o2, a2) {
52665
+ if (!r2.getInternalMethods().getHasOutput()) {
52666
+ const e3 = r2.getInternalMethods().runValidation(n2, a2, r2.parsed.error, t2);
52664
52667
  s2 = j(s2, (t3) => (e3(t3), t3));
52665
52668
  }
52666
- if (e2.handler && !o2.getInternalMethods().getHasOutput()) {
52667
- o2.getInternalMethods().setHasOutput();
52668
- const n3 = !!o2.getOptions().configuration["populate--"];
52669
- o2.getInternalMethods().postProcess(s2, n3, false, false), s2 = j(s2 = C(s2, o2, h2, false), (t3) => {
52669
+ if (e2.handler && !r2.getInternalMethods().getHasOutput()) {
52670
+ r2.getInternalMethods().setHasOutput();
52671
+ const i3 = !!r2.getOptions().configuration["populate--"];
52672
+ r2.getInternalMethods().postProcess(s2, i3, false, false), s2 = j(s2 = C(s2, r2, o2, false), (t3) => {
52670
52673
  const s3 = e2.handler(t3);
52671
- return d(s3) ? s3.then(() => t3) : t3;
52672
- }), t2 || o2.getInternalMethods().getUsageInstance().cacheHelpMessage(), d(s2) && !o2.getInternalMethods().hasParseCallback() && s2.catch((t3) => {
52674
+ return f(s3) ? s3.then(() => t3) : t3;
52675
+ }), t2 || r2.getInternalMethods().getUsageInstance().cacheHelpMessage(), f(s2) && !r2.getInternalMethods().hasParseCallback() && s2.catch((t3) => {
52673
52676
  try {
52674
- o2.getInternalMethods().getUsageInstance().fail(null, t3);
52677
+ r2.getInternalMethods().getUsageInstance().fail(null, t3);
52675
52678
  } catch (t4) {
52676
52679
  }
52677
52680
  });
52678
52681
  }
52679
- return t2 || (n2.commands.pop(), n2.fullCommands.pop()), s2;
52682
+ return t2 || (i2.commands.pop(), i2.fullCommands.pop()), s2;
52680
52683
  }
52681
- populatePositionals(t2, e2, s2, n2) {
52684
+ applyMiddlewareAndGetResult(t2, e2, s2, i2, n2, r2, o2) {
52685
+ let a2 = {};
52686
+ if (n2)
52687
+ return s2;
52688
+ o2.getInternalMethods().getHasOutput() || (a2 = this.populatePositionals(e2, s2, i2, o2));
52689
+ const h2 = this.globalMiddleware.getMiddleware().slice(0).concat(e2.middlewares), l2 = C(s2, o2, h2, true);
52690
+ return f(l2) ? l2.then((s3) => this.handleValidationAndGetResult(t2, e2, s3, i2, r2, o2, h2, a2)) : this.handleValidationAndGetResult(t2, e2, l2, i2, r2, o2, h2, a2);
52691
+ }
52692
+ populatePositionals(t2, e2, s2, i2) {
52682
52693
  e2._ = e2._.slice(s2.commands.length);
52683
- const i2 = t2.demanded.slice(0), r2 = t2.optional.slice(0), o2 = {};
52684
- for (this.validation.positionalCount(i2.length, e2._.length); i2.length; ) {
52685
- const t3 = i2.shift();
52694
+ const n2 = t2.demanded.slice(0), r2 = t2.optional.slice(0), o2 = {};
52695
+ for (this.validation.positionalCount(n2.length, e2._.length); n2.length; ) {
52696
+ const t3 = n2.shift();
52686
52697
  this.populatePositional(t3, e2, o2);
52687
52698
  }
52688
52699
  for (; r2.length; ) {
52689
52700
  const t3 = r2.shift();
52690
52701
  this.populatePositional(t3, e2, o2);
52691
52702
  }
52692
- return e2._ = s2.commands.concat(e2._.map((t3) => "" + t3)), this.postProcessPositionals(e2, o2, this.cmdToParseOptions(t2.original), n2), o2;
52703
+ return e2._ = s2.commands.concat(e2._.map((t3) => "" + t3)), this.postProcessPositionals(e2, o2, this.cmdToParseOptions(t2.original), i2), o2;
52693
52704
  }
52694
52705
  populatePositional(t2, e2, s2) {
52695
- const n2 = t2.cmd[0];
52696
- t2.variadic ? s2[n2] = e2._.splice(0).map(String) : e2._.length && (s2[n2] = [String(e2._.shift())]);
52706
+ const i2 = t2.cmd[0];
52707
+ t2.variadic ? s2[i2] = e2._.splice(0).map(String) : e2._.length && (s2[i2] = [String(e2._.shift())]);
52697
52708
  }
52698
52709
  cmdToParseOptions(t2) {
52699
52710
  const e2 = { array: [], default: {}, alias: {}, demand: {} }, s2 = o(t2);
52700
52711
  return s2.demanded.forEach((t3) => {
52701
- const [s3, ...n2] = t3.cmd;
52702
- t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = n2, e2.demand[s3] = true;
52712
+ const [s3, ...i2] = t3.cmd;
52713
+ t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = i2, e2.demand[s3] = true;
52703
52714
  }), s2.optional.forEach((t3) => {
52704
- const [s3, ...n2] = t3.cmd;
52705
- t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = n2;
52715
+ const [s3, ...i2] = t3.cmd;
52716
+ t3.variadic && (e2.array.push(s3), e2.default[s3] = []), e2.alias[s3] = i2;
52706
52717
  }), e2;
52707
52718
  }
52708
- postProcessPositionals(t2, e2, s2, n2) {
52709
- const i2 = Object.assign({}, n2.getOptions());
52710
- i2.default = Object.assign(s2.default, i2.default);
52719
+ postProcessPositionals(t2, e2, s2, i2) {
52720
+ const n2 = Object.assign({}, i2.getOptions());
52721
+ n2.default = Object.assign(s2.default, n2.default);
52711
52722
  for (const t3 of Object.keys(s2.alias))
52712
- i2.alias[t3] = (i2.alias[t3] || []).concat(s2.alias[t3]);
52713
- i2.array = i2.array.concat(s2.array), i2.config = {};
52723
+ n2.alias[t3] = (n2.alias[t3] || []).concat(s2.alias[t3]);
52724
+ n2.array = n2.array.concat(s2.array), n2.config = {};
52714
52725
  const r2 = [];
52715
52726
  if (Object.keys(e2).forEach((t3) => {
52716
52727
  e2[t3].map((e3) => {
52717
- i2.configuration["unknown-options-as-args"] && (i2.key[t3] = true), r2.push(`--${t3}`), r2.push(e3);
52728
+ n2.configuration["unknown-options-as-args"] && (n2.key[t3] = true), r2.push(`--${t3}`), r2.push(e3);
52718
52729
  });
52719
52730
  }), !r2.length)
52720
52731
  return;
52721
- const o2 = Object.assign({}, i2.configuration, { "populate--": false }), a2 = this.shim.Parser.detailed(r2, Object.assign({}, i2, { configuration: o2 }));
52732
+ const o2 = Object.assign({}, n2.configuration, { "populate--": false }), a2 = this.shim.Parser.detailed(r2, Object.assign({}, n2, { configuration: o2 }));
52722
52733
  if (a2.error)
52723
- n2.getInternalMethods().getUsageInstance().fail(a2.error.message, a2.error);
52734
+ i2.getInternalMethods().getUsageInstance().fail(a2.error.message, a2.error);
52724
52735
  else {
52725
52736
  const s3 = Object.keys(e2);
52726
52737
  Object.keys(e2).forEach((t3) => {
52727
52738
  s3.push(...a2.aliases[t3]);
52728
52739
  }), Object.keys(a2.argv).forEach((n3) => {
52729
- s3.indexOf(n3) !== -1 && (e2[n3] || (e2[n3] = a2.argv[n3]), t2[n3] = a2.argv[n3]);
52740
+ s3.includes(n3) && (e2[n3] || (e2[n3] = a2.argv[n3]), !this.isInConfigs(i2, n3) && !this.isDefaulted(i2, n3) && Object.prototype.hasOwnProperty.call(t2, n3) && Object.prototype.hasOwnProperty.call(a2.argv, n3) && (Array.isArray(t2[n3]) || Array.isArray(a2.argv[n3])) ? t2[n3] = [].concat(t2[n3], a2.argv[n3]) : t2[n3] = a2.argv[n3]);
52730
52741
  });
52731
52742
  }
52732
52743
  }
52744
+ isDefaulted(t2, e2) {
52745
+ const { default: s2 } = t2.getOptions();
52746
+ return Object.prototype.hasOwnProperty.call(s2, e2) || Object.prototype.hasOwnProperty.call(s2, this.shim.Parser.camelCase(e2));
52747
+ }
52748
+ isInConfigs(t2, e2) {
52749
+ const { configObjects: s2 } = t2.getOptions();
52750
+ return s2.some((t3) => Object.prototype.hasOwnProperty.call(t3, e2)) || s2.some((t3) => Object.prototype.hasOwnProperty.call(t3, this.shim.Parser.camelCase(e2)));
52751
+ }
52733
52752
  runDefaultBuilderOn(t2) {
52734
52753
  if (!this.defaultCommand)
52735
52754
  return;
52736
52755
  if (this.shouldUpdateUsage(t2)) {
52737
- const e3 = x.test(this.defaultCommand.original) ? this.defaultCommand.original : this.defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
52756
+ const e3 = _.test(this.defaultCommand.original) ? this.defaultCommand.original : this.defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
52738
52757
  t2.getInternalMethods().getUsageInstance().usage(e3, this.defaultCommand.description);
52739
52758
  }
52740
52759
  const e2 = this.defaultCommand.builder;
52741
- if (k(e2))
52760
+ if (x(e2))
52742
52761
  return e2(t2, true);
52743
- M(e2) || Object.keys(e2).forEach((s2) => {
52762
+ k(e2) || Object.keys(e2).forEach((s2) => {
52744
52763
  t2.option(s2, e2[s2]);
52745
52764
  });
52746
52765
  }
@@ -52748,8 +52767,8 @@ var require_build8 = __commonJS({
52748
52767
  const e2 = function(t3) {
52749
52768
  if (typeof require == "undefined")
52750
52769
  return null;
52751
- for (let e3, s2 = 0, n2 = Object.keys(require.cache); s2 < n2.length; s2++)
52752
- if (e3 = require.cache[n2[s2]], e3.exports === t3)
52770
+ for (let e3, s2 = 0, i2 = Object.keys(require.cache); s2 < i2.length; s2++)
52771
+ if (e3 = require.cache[i2[s2]], e3.exports === t3)
52753
52772
  return e3;
52754
52773
  return null;
52755
52774
  }(t2);
@@ -52761,10 +52780,10 @@ var require_build8 = __commonJS({
52761
52780
  return this.shim.path.basename(t2, this.shim.path.extname(t2));
52762
52781
  }
52763
52782
  extractDesc({ describe: t2, description: e2, desc: s2 }) {
52764
- for (const n2 of [t2, e2, s2]) {
52765
- if (typeof n2 == "string" || n2 === false)
52766
- return n2;
52767
- u(n2, true, this.shim);
52783
+ for (const i2 of [t2, e2, s2]) {
52784
+ if (typeof i2 == "string" || i2 === false)
52785
+ return i2;
52786
+ d(i2, true, this.shim);
52768
52787
  }
52769
52788
  return false;
52770
52789
  }
@@ -52773,16 +52792,16 @@ var require_build8 = __commonJS({
52773
52792
  }
52774
52793
  unfreeze() {
52775
52794
  const t2 = this.frozens.pop();
52776
- u(t2, void 0, this.shim), { handlers: this.handlers, aliasMap: this.aliasMap, defaultCommand: this.defaultCommand } = t2;
52795
+ d(t2, void 0, this.shim), { handlers: this.handlers, aliasMap: this.aliasMap, defaultCommand: this.defaultCommand } = t2;
52777
52796
  }
52778
52797
  reset() {
52779
52798
  return this.handlers = {}, this.aliasMap = {}, this.defaultCommand = void 0, this.requireCache = /* @__PURE__ */ new Set(), this;
52780
52799
  }
52781
52800
  };
52782
- function M(t2) {
52801
+ function k(t2) {
52783
52802
  return typeof t2 == "object" && !!t2.builder && typeof t2.handler == "function";
52784
52803
  }
52785
- function k(t2) {
52804
+ function x(t2) {
52786
52805
  return typeof t2 == "function";
52787
52806
  }
52788
52807
  function E(t2) {
@@ -52791,85 +52810,90 @@ var require_build8 = __commonJS({
52791
52810
  s2._handle && s2.isTTY && typeof s2._handle.setBlocking == "function" && s2._handle.setBlocking(t2);
52792
52811
  });
52793
52812
  }
52794
- function S(t2) {
52813
+ function A(t2) {
52795
52814
  return typeof t2 == "boolean";
52796
52815
  }
52797
- function $(t2, s2) {
52798
- const n2 = s2.y18n.__, i2 = {}, r2 = [];
52799
- i2.failFn = function(t3) {
52816
+ function P(t2, s2) {
52817
+ const i2 = s2.y18n.__, n2 = {}, r2 = [];
52818
+ n2.failFn = function(t3) {
52800
52819
  r2.push(t3);
52801
52820
  };
52802
- let o2 = null, a2 = true;
52803
- i2.showHelpOnFail = function(t3 = true, e2) {
52804
- const [s3, n3] = typeof t3 == "string" ? [true, t3] : [t3, e2];
52805
- return o2 = n3, a2 = s3, i2;
52821
+ let o2 = null, a2 = null, h2 = true;
52822
+ n2.showHelpOnFail = function(e2 = true, s3) {
52823
+ const [i3, r3] = typeof e2 == "string" ? [true, e2] : [e2, s3];
52824
+ return t2.getInternalMethods().isGlobalContext() && (a2 = r3), o2 = r3, h2 = i3, n2;
52806
52825
  };
52807
- let h2 = false;
52808
- i2.fail = function(s3, n3) {
52809
- const l3 = t2.getInternalMethods().getLoggerInstance();
52826
+ let l2 = false;
52827
+ n2.fail = function(s3, i3) {
52828
+ const c3 = t2.getInternalMethods().getLoggerInstance();
52810
52829
  if (!r2.length) {
52811
- if (t2.getExitProcess() && E(true), h2 || (h2 = true, a2 && (t2.showHelp("error"), l3.error()), (s3 || n3) && l3.error(s3 || n3), o2 && ((s3 || n3) && l3.error(""), l3.error(o2))), n3 = n3 || new e(s3), t2.getExitProcess())
52830
+ if (t2.getExitProcess() && E(true), !l2) {
52831
+ l2 = true, h2 && (t2.showHelp("error"), c3.error()), (s3 || i3) && c3.error(s3 || i3);
52832
+ const e2 = o2 || a2;
52833
+ e2 && ((s3 || i3) && c3.error(""), c3.error(e2));
52834
+ }
52835
+ if (i3 = i3 || new e(s3), t2.getExitProcess())
52812
52836
  return t2.exit(1);
52813
52837
  if (t2.getInternalMethods().hasParseCallback())
52814
- return t2.exit(1, n3);
52815
- throw n3;
52838
+ return t2.exit(1, i3);
52839
+ throw i3;
52816
52840
  }
52817
52841
  for (let t3 = r2.length - 1; t3 >= 0; --t3) {
52818
52842
  const e2 = r2[t3];
52819
- if (S(e2)) {
52820
- if (n3)
52821
- throw n3;
52843
+ if (A(e2)) {
52844
+ if (i3)
52845
+ throw i3;
52822
52846
  if (s3)
52823
52847
  throw Error(s3);
52824
52848
  } else
52825
- e2(s3, n3, i2);
52849
+ e2(s3, i3, n2);
52826
52850
  }
52827
52851
  };
52828
- let l2 = [], c2 = false;
52829
- i2.usage = (t3, e2) => t3 === null ? (c2 = true, l2 = [], i2) : (c2 = false, l2.push([t3, e2 || ""]), i2), i2.getUsage = () => l2, i2.getUsageDisabled = () => c2, i2.getPositionalGroupName = () => n2("Positionals:");
52852
+ let c2 = [], f2 = false;
52853
+ n2.usage = (t3, e2) => t3 === null ? (f2 = true, c2 = [], n2) : (f2 = false, c2.push([t3, e2 || ""]), n2), n2.getUsage = () => c2, n2.getUsageDisabled = () => f2, n2.getPositionalGroupName = () => i2("Positionals:");
52830
52854
  let d2 = [];
52831
- i2.example = (t3, e2) => {
52855
+ n2.example = (t3, e2) => {
52832
52856
  d2.push([t3, e2 || ""]);
52833
52857
  };
52834
52858
  let u2 = [];
52835
- i2.command = function(t3, e2, s3, n3, i3 = false) {
52836
- s3 && (u2 = u2.map((t4) => (t4[2] = false, t4))), u2.push([t3, e2 || "", s3, n3, i3]);
52837
- }, i2.getCommands = () => u2;
52859
+ n2.command = function(t3, e2, s3, i3, n3 = false) {
52860
+ s3 && (u2 = u2.map((t4) => (t4[2] = false, t4))), u2.push([t3, e2 || "", s3, i3, n3]);
52861
+ }, n2.getCommands = () => u2;
52838
52862
  let p2 = {};
52839
- i2.describe = function(t3, e2) {
52863
+ n2.describe = function(t3, e2) {
52840
52864
  Array.isArray(t3) ? t3.forEach((t4) => {
52841
- i2.describe(t4, e2);
52865
+ n2.describe(t4, e2);
52842
52866
  }) : typeof t3 == "object" ? Object.keys(t3).forEach((e3) => {
52843
- i2.describe(e3, t3[e3]);
52867
+ n2.describe(e3, t3[e3]);
52844
52868
  }) : p2[t3] = e2;
52845
- }, i2.getDescriptions = () => p2;
52846
- let g2 = [];
52847
- i2.epilog = (t3) => {
52848
- g2.push(t3);
52849
- };
52850
- let f2, y2 = false;
52851
- function b2() {
52852
- return y2 || (f2 = function() {
52869
+ }, n2.getDescriptions = () => p2;
52870
+ let m2 = [];
52871
+ n2.epilog = (t3) => {
52872
+ m2.push(t3);
52873
+ };
52874
+ let y2, b2 = false;
52875
+ function v2() {
52876
+ return b2 || (y2 = function() {
52853
52877
  const t3 = 80;
52854
52878
  return s2.process.stdColumns ? Math.min(t3, s2.process.stdColumns) : t3;
52855
- }(), y2 = true), f2;
52879
+ }(), b2 = true), y2;
52856
52880
  }
52857
- i2.wrap = (t3) => {
52858
- y2 = true, f2 = t3;
52881
+ n2.wrap = (t3) => {
52882
+ b2 = true, y2 = t3;
52859
52883
  };
52860
52884
  const O2 = "__yargsString__:";
52861
- function v2(t3, e2, n3) {
52862
- let i3 = 0;
52885
+ function w2(t3, e2, i3) {
52886
+ let n3 = 0;
52863
52887
  return Array.isArray(t3) || (t3 = Object.values(t3).map((t4) => [t4])), t3.forEach((t4) => {
52864
- i3 = Math.max(s2.stringWidth(n3 ? `${n3} ${I(t4[0])}` : I(t4[0])) + A(t4[0]), i3);
52865
- }), e2 && (i3 = Math.min(i3, parseInt((0.5 * e2).toString(), 10))), i3;
52888
+ n3 = Math.max(s2.stringWidth(i3 ? `${i3} ${I(t4[0])}` : I(t4[0])) + $(t4[0]), n3);
52889
+ }), e2 && (n3 = Math.min(n3, parseInt((0.5 * e2).toString(), 10))), n3;
52866
52890
  }
52867
- let w2;
52868
- function C2(e2) {
52891
+ let C2;
52892
+ function j2(e2) {
52869
52893
  return t2.getOptions().hiddenOptions.indexOf(e2) < 0 || t2.parsed.argv[t2.getOptions().showHiddenOpt];
52870
52894
  }
52871
- function j2(t3, e2) {
52872
- let s3 = `[${n2("default:")} `;
52895
+ function _2(t3, e2) {
52896
+ let s3 = `[${i2("default:")} `;
52873
52897
  if (t3 === void 0 && !e2)
52874
52898
  return null;
52875
52899
  if (e2)
@@ -52887,216 +52911,255 @@ var require_build8 = __commonJS({
52887
52911
  }
52888
52912
  return `${s3}]`;
52889
52913
  }
52890
- i2.deferY18nLookup = (t3) => O2 + t3, i2.help = function() {
52891
- if (w2)
52892
- return w2;
52914
+ n2.deferY18nLookup = (t3) => O2 + t3, n2.help = function() {
52915
+ if (C2)
52916
+ return C2;
52893
52917
  !function() {
52894
52918
  const e3 = t2.getDemandedOptions(), s3 = t2.getOptions();
52895
- (Object.keys(s3.alias) || []).forEach((n3) => {
52896
- s3.alias[n3].forEach((r4) => {
52897
- p2[r4] && i2.describe(n3, p2[r4]), r4 in e3 && t2.demandOption(n3, e3[r4]), ~s3.boolean.indexOf(r4) && t2.boolean(n3), ~s3.count.indexOf(r4) && t2.count(n3), ~s3.string.indexOf(r4) && t2.string(n3), ~s3.normalize.indexOf(r4) && t2.normalize(n3), ~s3.array.indexOf(r4) && t2.array(n3), ~s3.number.indexOf(r4) && t2.number(n3);
52919
+ (Object.keys(s3.alias) || []).forEach((i3) => {
52920
+ s3.alias[i3].forEach((r4) => {
52921
+ p2[r4] && n2.describe(i3, p2[r4]), r4 in e3 && t2.demandOption(i3, e3[r4]), s3.boolean.includes(r4) && t2.boolean(i3), s3.count.includes(r4) && t2.count(i3), s3.string.includes(r4) && t2.string(i3), s3.normalize.includes(r4) && t2.normalize(i3), s3.array.includes(r4) && t2.array(i3), s3.number.includes(r4) && t2.number(i3);
52898
52922
  });
52899
52923
  });
52900
52924
  }();
52901
- const e2 = t2.customScriptName ? t2.$0 : s2.path.basename(t2.$0), r3 = t2.getDemandedOptions(), o3 = t2.getDemandedCommands(), a3 = t2.getDeprecatedOptions(), h3 = t2.getGroups(), m2 = t2.getOptions();
52902
- let f3 = [];
52903
- f3 = f3.concat(Object.keys(p2)), f3 = f3.concat(Object.keys(r3)), f3 = f3.concat(Object.keys(o3)), f3 = f3.concat(Object.keys(m2.default)), f3 = f3.filter(C2), f3 = Object.keys(f3.reduce((t3, e3) => (e3 !== "_" && (t3[e3] = true), t3), {}));
52904
- const y3 = b2(), x3 = s2.cliui({ width: y3, wrap: !!y3 });
52905
- if (!c2) {
52906
- if (l2.length)
52907
- l2.forEach((t3) => {
52908
- x3.div(`${t3[0].replace(/\$0/g, e2)}`), t3[1] && x3.div({ text: `${t3[1]}`, padding: [1, 0, 0, 0] });
52909
- }), x3.div();
52925
+ const e2 = t2.customScriptName ? t2.$0 : s2.path.basename(t2.$0), r3 = t2.getDemandedOptions(), o3 = t2.getDemandedCommands(), a3 = t2.getDeprecatedOptions(), h3 = t2.getGroups(), l3 = t2.getOptions();
52926
+ let g2 = [];
52927
+ g2 = g2.concat(Object.keys(p2)), g2 = g2.concat(Object.keys(r3)), g2 = g2.concat(Object.keys(o3)), g2 = g2.concat(Object.keys(l3.default)), g2 = g2.filter(j2), g2 = Object.keys(g2.reduce((t3, e3) => (e3 !== "_" && (t3[e3] = true), t3), {}));
52928
+ const y3 = v2(), b3 = s2.cliui({ width: y3, wrap: !!y3 });
52929
+ if (!f2) {
52930
+ if (c2.length)
52931
+ c2.forEach((t3) => {
52932
+ b3.div({ text: `${t3[0].replace(/\$0/g, e2)}` }), t3[1] && b3.div({ text: `${t3[1]}`, padding: [1, 0, 0, 0] });
52933
+ }), b3.div();
52910
52934
  else if (u2.length) {
52911
52935
  let t3 = null;
52912
- t3 = o3._ ? `${e2} <${n2("command")}>
52913
- ` : `${e2} [${n2("command")}]
52914
- `, x3.div(`${t3}`);
52936
+ t3 = o3._ ? `${e2} <${i2("command")}>
52937
+ ` : `${e2} [${i2("command")}]
52938
+ `, b3.div(`${t3}`);
52915
52939
  }
52916
52940
  }
52917
52941
  if (u2.length > 1 || u2.length === 1 && !u2[0][2]) {
52918
- x3.div(n2("Commands:"));
52919
- const s3 = t2.getInternalMethods().getContext(), i3 = s3.commands.length ? `${s3.commands.join(" ")} ` : "";
52920
- t2.getInternalMethods().getParserConfiguration()["sort-commands"] === true && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0]))), u2.forEach((t3) => {
52921
- const s4 = `${e2} ${i3}${t3[0].replace(/^\$0 ?/, "")}`;
52922
- x3.span({ text: s4, padding: [0, 2, 0, 2], width: v2(u2, y3, `${e2}${i3}`) + 4 }, { text: t3[1] });
52923
- const r4 = [];
52924
- t3[2] && r4.push(`[${n2("default")}]`), t3[3] && t3[3].length && r4.push(`[${n2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && (typeof t3[4] == "string" ? r4.push(`[${n2("deprecated: %s", t3[4])}]`) : r4.push(`[${n2("deprecated")}]`)), r4.length ? x3.div({ text: r4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : x3.div();
52925
- }), x3.div();
52926
- }
52927
- const _3 = (Object.keys(m2.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
52928
- f3 = f3.filter((e3) => !t2.parsed.newAliases[e3] && _3.every((t3) => (m2.alias[t3] || []).indexOf(e3) === -1));
52929
- const M2 = n2("Options:");
52930
- h3[M2] || (h3[M2] = []), function(t3, e3, s3, n3) {
52931
- let i3 = [], r4 = null;
52942
+ b3.div(i2("Commands:"));
52943
+ const s3 = t2.getInternalMethods().getContext(), n3 = s3.commands.length ? `${s3.commands.join(" ")} ` : "";
52944
+ t2.getInternalMethods().getParserConfiguration()["sort-commands"] === true && (u2 = u2.sort((t3, e3) => t3[0].localeCompare(e3[0])));
52945
+ const r4 = e2 ? `${e2} ` : "";
52946
+ u2.forEach((t3) => {
52947
+ const s4 = `${r4}${n3}${t3[0].replace(/^\$0 ?/, "")}`;
52948
+ b3.span({ text: s4, padding: [0, 2, 0, 2], width: w2(u2, y3, `${e2}${n3}`) + 4 }, { text: t3[1] });
52949
+ const o4 = [];
52950
+ t3[2] && o4.push(`[${i2("default")}]`), t3[3] && t3[3].length && o4.push(`[${i2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && (typeof t3[4] == "string" ? o4.push(`[${i2("deprecated: %s", t3[4])}]`) : o4.push(`[${i2("deprecated")}]`)), o4.length ? b3.div({ text: o4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52951
+ }), b3.div();
52952
+ }
52953
+ const M3 = (Object.keys(l3.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
52954
+ g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && M3.every((t3) => (l3.alias[t3] || []).indexOf(e3) === -1));
52955
+ const k3 = i2("Options:");
52956
+ h3[k3] || (h3[k3] = []), function(t3, e3, s3, i3) {
52957
+ let n3 = [], r4 = null;
52932
52958
  Object.keys(s3).forEach((t4) => {
52933
- i3 = i3.concat(s3[t4]);
52959
+ n3 = n3.concat(s3[t4]);
52934
52960
  }), t3.forEach((t4) => {
52935
- r4 = [t4].concat(e3[t4]), r4.some((t5) => i3.indexOf(t5) !== -1) || s3[n3].push(t4);
52961
+ r4 = [t4].concat(e3[t4]), r4.some((t5) => n3.indexOf(t5) !== -1) || s3[i3].push(t4);
52936
52962
  });
52937
- }(f3, m2.alias, h3, M2);
52938
- const k2 = (t3) => /^--/.test(I(t3)), E2 = Object.keys(h3).filter((t3) => h3[t3].length > 0).map((t3) => ({ groupName: t3, normalizedKeys: h3[t3].filter(C2).map((t4) => {
52939
- if (~_3.indexOf(t4))
52963
+ }(g2, l3.alias, h3, k3);
52964
+ const x2 = (t3) => /^--/.test(I(t3)), E2 = Object.keys(h3).filter((t3) => h3[t3].length > 0).map((t3) => ({ groupName: t3, normalizedKeys: h3[t3].filter(j2).map((t4) => {
52965
+ if (M3.includes(t4))
52940
52966
  return t4;
52941
- for (let e3, s3 = 0; (e3 = _3[s3]) !== void 0; s3++)
52942
- if (~(m2.alias[e3] || []).indexOf(t4))
52967
+ for (let e3, s3 = 0; (e3 = M3[s3]) !== void 0; s3++)
52968
+ if ((l3.alias[e3] || []).includes(t4))
52943
52969
  return e3;
52944
52970
  return t4;
52945
52971
  }) })).filter(({ normalizedKeys: t3 }) => t3.length > 0).map(({ groupName: t3, normalizedKeys: e3 }) => {
52946
- const s3 = e3.reduce((e4, s4) => (e4[s4] = [s4].concat(m2.alias[s4] || []).map((e5) => t3 === i2.getPositionalGroupName() ? e5 : (/^[0-9]$/.test(e5) ? ~m2.boolean.indexOf(s4) ? "-" : "--" : e5.length > 1 ? "--" : "-") + e5).sort((t4, e5) => k2(t4) === k2(e5) ? 0 : k2(t4) ? 1 : -1).join(", "), e4), {});
52972
+ const s3 = e3.reduce((e4, s4) => (e4[s4] = [s4].concat(l3.alias[s4] || []).map((e5) => t3 === n2.getPositionalGroupName() ? e5 : (/^[0-9]$/.test(e5) ? l3.boolean.includes(s4) ? "-" : "--" : e5.length > 1 ? "--" : "-") + e5).sort((t4, e5) => x2(t4) === x2(e5) ? 0 : x2(t4) ? 1 : -1).join(", "), e4), {});
52947
52973
  return { groupName: t3, normalizedKeys: e3, switches: s3 };
52948
52974
  });
52949
- if (E2.filter(({ groupName: t3 }) => t3 !== i2.getPositionalGroupName()).some(({ normalizedKeys: t3, switches: e3 }) => !t3.every((t4) => k2(e3[t4]))) && E2.filter(({ groupName: t3 }) => t3 !== i2.getPositionalGroupName()).forEach(({ normalizedKeys: t3, switches: e3 }) => {
52975
+ if (E2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).some(({ normalizedKeys: t3, switches: e3 }) => !t3.every((t4) => x2(e3[t4]))) && E2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).forEach(({ normalizedKeys: t3, switches: e3 }) => {
52950
52976
  t3.forEach((t4) => {
52951
- var s3, n3;
52952
- k2(e3[t4]) && (e3[t4] = (s3 = e3[t4], n3 = "-x, ".length, P(s3) ? { text: s3.text, indentation: s3.indentation + n3 } : { text: s3, indentation: n3 }));
52977
+ var s3, i3;
52978
+ x2(e3[t4]) && (e3[t4] = (s3 = e3[t4], i3 = "-x, ".length, S(s3) ? { text: s3.text, indentation: s3.indentation + i3 } : { text: s3, indentation: i3 }));
52953
52979
  });
52954
52980
  }), E2.forEach(({ groupName: t3, normalizedKeys: e3, switches: s3 }) => {
52955
- x3.div(t3), e3.forEach((t4) => {
52981
+ b3.div(t3), e3.forEach((t4) => {
52956
52982
  const e4 = s3[t4];
52957
52983
  let o4 = p2[t4] || "", h4 = null;
52958
- ~o4.lastIndexOf(O2) && (o4 = n2(o4.substring(O2.length))), ~m2.boolean.indexOf(t4) && (h4 = `[${n2("boolean")}]`), ~m2.count.indexOf(t4) && (h4 = `[${n2("count")}]`), ~m2.string.indexOf(t4) && (h4 = `[${n2("string")}]`), ~m2.normalize.indexOf(t4) && (h4 = `[${n2("string")}]`), ~m2.array.indexOf(t4) && (h4 = `[${n2("array")}]`), ~m2.number.indexOf(t4) && (h4 = `[${n2("number")}]`);
52959
- const l3 = [t4 in a3 ? (c3 = a3[t4], typeof c3 == "string" ? `[${n2("deprecated: %s", c3)}]` : `[${n2("deprecated")}]`) : null, h4, t4 in r3 ? `[${n2("required")}]` : null, m2.choices && m2.choices[t4] ? `[${n2("choices:")} ${i2.stringifiedValues(m2.choices[t4])}]` : null, j2(m2.default[t4], m2.defaultDescription[t4])].filter(Boolean).join(" ");
52960
- var c3;
52961
- x3.span({ text: I(e4), padding: [0, 2, 0, 2 + A(e4)], width: v2(s3, y3) + 4 }, o4), l3 ? x3.div({ text: l3, padding: [0, 0, 0, 2], align: "right" }) : x3.div();
52962
- }), x3.div();
52963
- }), d2.length && (x3.div(n2("Examples:")), d2.forEach((t3) => {
52984
+ o4.includes(O2) && (o4 = i2(o4.substring(O2.length))), l3.boolean.includes(t4) && (h4 = `[${i2("boolean")}]`), l3.count.includes(t4) && (h4 = `[${i2("count")}]`), l3.string.includes(t4) && (h4 = `[${i2("string")}]`), l3.normalize.includes(t4) && (h4 = `[${i2("string")}]`), l3.array.includes(t4) && (h4 = `[${i2("array")}]`), l3.number.includes(t4) && (h4 = `[${i2("number")}]`);
52985
+ const c3 = [t4 in a3 ? (f3 = a3[t4], typeof f3 == "string" ? `[${i2("deprecated: %s", f3)}]` : `[${i2("deprecated")}]`) : null, h4, t4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[t4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[t4])}]` : null, _2(l3.default[t4], l3.defaultDescription[t4])].filter(Boolean).join(" ");
52986
+ var f3;
52987
+ b3.span({ text: I(e4), padding: [0, 2, 0, 2 + $(e4)], width: w2(s3, y3) + 4 }, o4), c3 ? b3.div({ text: c3, padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52988
+ }), b3.div();
52989
+ }), d2.length && (b3.div(i2("Examples:")), d2.forEach((t3) => {
52964
52990
  t3[0] = t3[0].replace(/\$0/g, e2);
52965
52991
  }), d2.forEach((t3) => {
52966
- t3[1] === "" ? x3.div({ text: t3[0], padding: [0, 2, 0, 2] }) : x3.div({ text: t3[0], padding: [0, 2, 0, 2], width: v2(d2, y3) + 4 }, { text: t3[1] });
52967
- }), x3.div()), g2.length > 0) {
52968
- const t3 = g2.map((t4) => t4.replace(/\$0/g, e2)).join("\n");
52969
- x3.div(`${t3}
52992
+ t3[1] === "" ? b3.div({ text: t3[0], padding: [0, 2, 0, 2] }) : b3.div({ text: t3[0], padding: [0, 2, 0, 2], width: w2(d2, y3) + 4 }, { text: t3[1] });
52993
+ }), b3.div()), m2.length > 0) {
52994
+ const t3 = m2.map((t4) => t4.replace(/\$0/g, e2)).join("\n");
52995
+ b3.div(`${t3}
52970
52996
  `);
52971
52997
  }
52972
- return x3.toString().replace(/\s*$/, "");
52973
- }, i2.cacheHelpMessage = function() {
52974
- w2 = this.help();
52975
- }, i2.clearCachedHelpMessage = function() {
52976
- w2 = void 0;
52977
- }, i2.hasCachedHelpMessage = function() {
52978
- return !!w2;
52979
- }, i2.showHelp = (e2) => {
52998
+ return b3.toString().replace(/\s*$/, "");
52999
+ }, n2.cacheHelpMessage = function() {
53000
+ C2 = this.help();
53001
+ }, n2.clearCachedHelpMessage = function() {
53002
+ C2 = void 0;
53003
+ }, n2.hasCachedHelpMessage = function() {
53004
+ return !!C2;
53005
+ }, n2.showHelp = (e2) => {
52980
53006
  const s3 = t2.getInternalMethods().getLoggerInstance();
52981
53007
  e2 || (e2 = "error");
52982
- (typeof e2 == "function" ? e2 : s3[e2])(i2.help());
52983
- }, i2.functionDescription = (t3) => ["(", t3.name ? s2.Parser.decamelize(t3.name, "-") : n2("generated-value"), ")"].join(""), i2.stringifiedValues = function(t3, e2) {
53008
+ (typeof e2 == "function" ? e2 : s3[e2])(n2.help());
53009
+ }, n2.functionDescription = (t3) => ["(", t3.name ? s2.Parser.decamelize(t3.name, "-") : i2("generated-value"), ")"].join(""), n2.stringifiedValues = function(t3, e2) {
52984
53010
  let s3 = "";
52985
- const n3 = e2 || ", ", i3 = [].concat(t3);
52986
- return t3 && i3.length ? (i3.forEach((t4) => {
52987
- s3.length && (s3 += n3), s3 += JSON.stringify(t4);
53011
+ const i3 = e2 || ", ", n3 = [].concat(t3);
53012
+ return t3 && n3.length ? (n3.forEach((t4) => {
53013
+ s3.length && (s3 += i3), s3 += JSON.stringify(t4);
52988
53014
  }), s3) : s3;
52989
53015
  };
52990
- let x2 = null;
52991
- i2.version = (t3) => {
52992
- x2 = t3;
52993
- }, i2.showVersion = (e2) => {
53016
+ let M2 = null;
53017
+ n2.version = (t3) => {
53018
+ M2 = t3;
53019
+ }, n2.showVersion = (e2) => {
52994
53020
  const s3 = t2.getInternalMethods().getLoggerInstance();
52995
53021
  e2 || (e2 = "error");
52996
- (typeof e2 == "function" ? e2 : s3[e2])(x2);
52997
- }, i2.reset = function(t3) {
52998
- return o2 = null, h2 = false, l2 = [], c2 = false, g2 = [], d2 = [], u2 = [], p2 = m(p2, (e2) => !t3[e2]), i2;
52999
- };
53000
- const _2 = [];
53001
- return i2.freeze = function() {
53002
- _2.push({ failMessage: o2, failureOutput: h2, usages: l2, usageDisabled: c2, epilogs: g2, examples: d2, commands: u2, descriptions: p2 });
53003
- }, i2.unfreeze = function() {
53004
- const t3 = _2.pop();
53005
- t3 && ({ failMessage: o2, failureOutput: h2, usages: l2, usageDisabled: c2, epilogs: g2, examples: d2, commands: u2, descriptions: p2 } = t3);
53006
- }, i2;
53007
- }
53008
- function P(t2) {
53022
+ (typeof e2 == "function" ? e2 : s3[e2])(M2);
53023
+ }, n2.reset = function(t3) {
53024
+ return o2 = null, l2 = false, c2 = [], f2 = false, m2 = [], d2 = [], u2 = [], p2 = g(p2, (e2) => !t3[e2]), n2;
53025
+ };
53026
+ const k2 = [];
53027
+ return n2.freeze = function() {
53028
+ k2.push({ failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 });
53029
+ }, n2.unfreeze = function(t3 = false) {
53030
+ const e2 = k2.pop();
53031
+ e2 && (t3 ? (p2 = __spreadValues(__spreadValues({}, e2.descriptions), p2), u2 = [...e2.commands, ...u2], c2 = [...e2.usages, ...c2], d2 = [...e2.examples, ...d2], m2 = [...e2.epilogs, ...m2]) : { failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 } = e2);
53032
+ }, n2;
53033
+ }
53034
+ function S(t2) {
53009
53035
  return typeof t2 == "object";
53010
53036
  }
53011
- function A(t2) {
53012
- return P(t2) ? t2.indentation : 0;
53037
+ function $(t2) {
53038
+ return S(t2) ? t2.indentation : 0;
53013
53039
  }
53014
53040
  function I(t2) {
53015
- return P(t2) ? t2.text : t2;
53041
+ return S(t2) ? t2.text : t2;
53016
53042
  }
53017
- var N = class {
53018
- constructor(t2, e2, s2, n2) {
53019
- var i2, r2, o2;
53020
- this.yargs = t2, this.usage = e2, this.command = s2, this.shim = n2, this.completionKey = "get-yargs-completions", this.aliases = null, this.customCompletionFunction = null, this.zshShell = (o2 = ((i2 = this.shim.getEnv("SHELL")) === null || i2 === void 0 ? void 0 : i2.includes("zsh")) || ((r2 = this.shim.getEnv("ZSH_NAME")) === null || r2 === void 0 ? void 0 : r2.includes("zsh"))) !== null && o2 !== void 0 && o2;
53043
+ var D = class {
53044
+ constructor(t2, e2, s2, i2) {
53045
+ var n2, r2, o2;
53046
+ this.yargs = t2, this.usage = e2, this.command = s2, this.shim = i2, this.completionKey = "get-yargs-completions", this.aliases = null, this.customCompletionFunction = null, this.indexAfterLastReset = 0, this.zshShell = (o2 = ((n2 = this.shim.getEnv("SHELL")) === null || n2 === void 0 ? void 0 : n2.includes("zsh")) || ((r2 = this.shim.getEnv("ZSH_NAME")) === null || r2 === void 0 ? void 0 : r2.includes("zsh"))) !== null && o2 !== void 0 && o2;
53021
53047
  }
53022
- defaultCompletion(t2, e2, s2, n2) {
53023
- const i2 = this.command.getCommandHandlers();
53048
+ defaultCompletion(t2, e2, s2, i2) {
53049
+ const n2 = this.command.getCommandHandlers();
53024
53050
  for (let e3 = 0, s3 = t2.length; e3 < s3; ++e3)
53025
- if (i2[t2[e3]] && i2[t2[e3]].builder) {
53026
- const s4 = i2[t2[e3]].builder;
53027
- if (k(s4)) {
53051
+ if (n2[t2[e3]] && n2[t2[e3]].builder) {
53052
+ const s4 = n2[t2[e3]].builder;
53053
+ if (x(s4)) {
53054
+ this.indexAfterLastReset = e3 + 1;
53028
53055
  const t3 = this.yargs.getInternalMethods().reset();
53029
53056
  return s4(t3, true), t3.argv;
53030
53057
  }
53031
53058
  }
53032
53059
  const r2 = [];
53033
- this.commandCompletions(r2, t2, s2), this.optionCompletions(r2, t2, e2, s2), n2(null, r2);
53060
+ this.commandCompletions(r2, t2, s2), this.optionCompletions(r2, t2, e2, s2), this.choicesFromOptionsCompletions(r2, t2, e2, s2), this.choicesFromPositionalsCompletions(r2, t2, e2, s2), i2(null, r2);
53034
53061
  }
53035
53062
  commandCompletions(t2, e2, s2) {
53036
- const n2 = this.yargs.getInternalMethods().getContext().commands;
53037
- s2.match(/^-/) || n2[n2.length - 1] === s2 || this.usage.getCommands().forEach((s3) => {
53038
- const n3 = o(s3[0]).cmd;
53039
- if (e2.indexOf(n3) === -1)
53063
+ const i2 = this.yargs.getInternalMethods().getContext().commands;
53064
+ s2.match(/^-/) || i2[i2.length - 1] === s2 || this.previousArgHasChoices(e2) || this.usage.getCommands().forEach((s3) => {
53065
+ const i3 = o(s3[0]).cmd;
53066
+ if (e2.indexOf(i3) === -1)
53040
53067
  if (this.zshShell) {
53041
53068
  const e3 = s3[1] || "";
53042
- t2.push(n3.replace(/:/g, "\\:") + ":" + e3);
53069
+ t2.push(i3.replace(/:/g, "\\:") + ":" + e3);
53043
53070
  } else
53044
- t2.push(n3);
53071
+ t2.push(i3);
53045
53072
  });
53046
53073
  }
53047
- optionCompletions(t2, e2, s2, n2) {
53048
- if (n2.match(/^-/) || n2 === "" && t2.length === 0) {
53049
- const i2 = this.yargs.getOptions(), r2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [];
53050
- Object.keys(i2.key).forEach((o2) => {
53051
- const a2 = !!i2.configuration["boolean-negation"] && i2.boolean.includes(o2);
53052
- r2.includes(o2) || this.argsContainKey(e2, s2, o2, a2) || (this.completeOptionKey(o2, t2, n2), a2 && i2.default[o2] && this.completeOptionKey(`no-${o2}`, t2, n2));
53074
+ optionCompletions(t2, e2, s2, i2) {
53075
+ if ((i2.match(/^-/) || i2 === "" && t2.length === 0) && !this.previousArgHasChoices(e2)) {
53076
+ const s3 = this.yargs.getOptions(), n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [];
53077
+ Object.keys(s3.key).forEach((r2) => {
53078
+ const o2 = !!s3.configuration["boolean-negation"] && s3.boolean.includes(r2);
53079
+ n2.includes(r2) || s3.hiddenOptions.includes(r2) || this.argsContainKey(e2, r2, o2) || (this.completeOptionKey(r2, t2, i2), o2 && s3.default[r2] && this.completeOptionKey(`no-${r2}`, t2, i2));
53053
53080
  });
53054
53081
  }
53055
53082
  }
53056
- argsContainKey(t2, e2, s2, n2) {
53057
- if (t2.indexOf(`--${s2}`) !== -1)
53083
+ choicesFromOptionsCompletions(t2, e2, s2, i2) {
53084
+ if (this.previousArgHasChoices(e2)) {
53085
+ const s3 = this.getPreviousArgChoices(e2);
53086
+ s3 && s3.length > 0 && t2.push(...s3.map((t3) => t3.replace(/:/g, "\\:")));
53087
+ }
53088
+ }
53089
+ choicesFromPositionalsCompletions(t2, e2, s2, i2) {
53090
+ if (i2 === "" && t2.length > 0 && this.previousArgHasChoices(e2))
53091
+ return;
53092
+ const n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [], r2 = Math.max(this.indexAfterLastReset, this.yargs.getInternalMethods().getContext().commands.length + 1), o2 = n2[s2._.length - r2 - 1];
53093
+ if (!o2)
53094
+ return;
53095
+ const a2 = this.yargs.getOptions().choices[o2] || [];
53096
+ for (const e3 of a2)
53097
+ e3.startsWith(i2) && t2.push(e3.replace(/:/g, "\\:"));
53098
+ }
53099
+ getPreviousArgChoices(t2) {
53100
+ if (t2.length < 1)
53101
+ return;
53102
+ let e2 = t2[t2.length - 1], s2 = "";
53103
+ if (!e2.startsWith("-") && t2.length > 1 && (s2 = e2, e2 = t2[t2.length - 2]), !e2.startsWith("-"))
53104
+ return;
53105
+ const i2 = e2.replace(/^-+/, ""), n2 = this.yargs.getOptions(), r2 = [i2, ...this.yargs.getAliases()[i2] || []];
53106
+ let o2;
53107
+ for (const t3 of r2)
53108
+ if (Object.prototype.hasOwnProperty.call(n2.key, t3) && Array.isArray(n2.choices[t3])) {
53109
+ o2 = n2.choices[t3];
53110
+ break;
53111
+ }
53112
+ return o2 ? o2.filter((t3) => !s2 || t3.startsWith(s2)) : void 0;
53113
+ }
53114
+ previousArgHasChoices(t2) {
53115
+ const e2 = this.getPreviousArgChoices(t2);
53116
+ return e2 !== void 0 && e2.length > 0;
53117
+ }
53118
+ argsContainKey(t2, e2, s2) {
53119
+ const i2 = (e3) => t2.indexOf((/^[^0-9]$/.test(e3) ? "-" : "--") + e3) !== -1;
53120
+ if (i2(e2))
53058
53121
  return true;
53059
- if (n2 && t2.indexOf(`--no-${s2}`) !== -1)
53122
+ if (s2 && i2(`no-${e2}`))
53060
53123
  return true;
53061
53124
  if (this.aliases) {
53062
- for (const t3 of this.aliases[s2])
53063
- if (e2[t3] !== void 0)
53125
+ for (const t3 of this.aliases[e2])
53126
+ if (i2(t3))
53064
53127
  return true;
53065
53128
  }
53066
53129
  return false;
53067
53130
  }
53068
53131
  completeOptionKey(t2, e2, s2) {
53069
- const n2 = this.usage.getDescriptions(), i2 = !/^--/.test(s2) && ((t3) => /^[^0-9]$/.test(t3))(t2) ? "-" : "--";
53132
+ const i2 = this.usage.getDescriptions(), n2 = !/^--/.test(s2) && ((t3) => /^[^0-9]$/.test(t3))(t2) ? "-" : "--";
53070
53133
  if (this.zshShell) {
53071
- const s3 = n2[t2] || "";
53072
- e2.push(i2 + `${t2.replace(/:/g, "\\:")}:${s3.replace("__yargsString__:", "")}`);
53134
+ const s3 = i2[t2] || "";
53135
+ e2.push(n2 + `${t2.replace(/:/g, "\\:")}:${s3.replace("__yargsString__:", "")}`);
53073
53136
  } else
53074
- e2.push(i2 + t2);
53137
+ e2.push(n2 + t2);
53075
53138
  }
53076
- customCompletion(t2, e2, s2, n2) {
53077
- if (u(this.customCompletionFunction, null, this.shim), this.customCompletionFunction.length < 3) {
53139
+ customCompletion(t2, e2, s2, i2) {
53140
+ if (d(this.customCompletionFunction, null, this.shim), this.customCompletionFunction.length < 3) {
53078
53141
  const t3 = this.customCompletionFunction(s2, e2);
53079
- return d(t3) ? t3.then((t4) => {
53142
+ return f(t3) ? t3.then((t4) => {
53080
53143
  this.shim.process.nextTick(() => {
53081
- n2(null, t4);
53144
+ i2(null, t4);
53082
53145
  });
53083
53146
  }).catch((t4) => {
53084
53147
  this.shim.process.nextTick(() => {
53085
- n2(t4, void 0);
53148
+ i2(t4, void 0);
53086
53149
  });
53087
- }) : n2(null, t3);
53150
+ }) : i2(null, t3);
53088
53151
  }
53089
53152
  return function(t3) {
53090
53153
  return t3.length > 3;
53091
- }(this.customCompletionFunction) ? this.customCompletionFunction(s2, e2, (i2 = n2) => this.defaultCompletion(t2, e2, s2, i2), (t3) => {
53092
- n2(null, t3);
53154
+ }(this.customCompletionFunction) ? this.customCompletionFunction(s2, e2, (n2 = i2) => this.defaultCompletion(t2, e2, s2, n2), (t3) => {
53155
+ i2(null, t3);
53093
53156
  }) : this.customCompletionFunction(s2, e2, (t3) => {
53094
- n2(null, t3);
53157
+ i2(null, t3);
53095
53158
  });
53096
53159
  }
53097
53160
  getCompletion(t2, e2) {
53098
- const s2 = t2.length ? t2[t2.length - 1] : "", n2 = this.yargs.parse(t2, true), i2 = this.customCompletionFunction ? (n3) => this.customCompletion(t2, n3, s2, e2) : (n3) => this.defaultCompletion(t2, n3, s2, e2);
53099
- return d(n2) ? n2.then(i2) : i2(n2);
53161
+ const s2 = t2.length ? t2[t2.length - 1] : "", i2 = this.yargs.parse(t2, true), n2 = this.customCompletionFunction ? (i3) => this.customCompletion(t2, i3, s2, e2) : (i3) => this.defaultCompletion(t2, i3, s2, e2);
53162
+ return f(i2) ? i2.then(n2) : n2(i2);
53100
53163
  }
53101
53164
  generateCompletionScript(t2, e2) {
53102
53165
  let s2 = this.zshShell ? `#compdef {{app_name}}
@@ -53105,7 +53168,7 @@ var require_build8 = __commonJS({
53105
53168
  # yargs command completion script
53106
53169
  #
53107
53170
  # Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
53108
- # or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.
53171
+ # or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
53109
53172
  #
53110
53173
  _{{app_name}}_yargs_completions()
53111
53174
  {
@@ -53118,9 +53181,9 @@ _{{app_name}}_yargs_completions()
53118
53181
  }
53119
53182
  compdef _{{app_name}}_yargs_completions {{app_name}}
53120
53183
  ###-end-{{app_name}}-completions-###
53121
- ` : '###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';
53122
- const n2 = this.shim.path.basename(t2);
53123
- return t2.match(/\.js$/) && (t2 = `./${t2}`), s2 = s2.replace(/{{app_name}}/g, n2), s2 = s2.replace(/{{completion_command}}/g, e2), s2.replace(/{{app_path}}/g, t2);
53184
+ ` : '###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';
53185
+ const i2 = this.shim.path.basename(t2);
53186
+ return t2.match(/\.js$/) && (t2 = `./${t2}`), s2 = s2.replace(/{{app_name}}/g, i2), s2 = s2.replace(/{{completion_command}}/g, e2), s2.replace(/{{app_path}}/g, t2);
53124
53187
  }
53125
53188
  registerFunction(t2) {
53126
53189
  this.customCompletionFunction = t2;
@@ -53129,35 +53192,35 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53129
53192
  this.aliases = t2.aliases;
53130
53193
  }
53131
53194
  };
53132
- function D(t2, e2) {
53195
+ function N(t2, e2) {
53133
53196
  if (t2.length === 0)
53134
53197
  return e2.length;
53135
53198
  if (e2.length === 0)
53136
53199
  return t2.length;
53137
53200
  const s2 = [];
53138
- let n2, i2;
53139
- for (n2 = 0; n2 <= e2.length; n2++)
53140
- s2[n2] = [n2];
53141
- for (i2 = 0; i2 <= t2.length; i2++)
53142
- s2[0][i2] = i2;
53143
- for (n2 = 1; n2 <= e2.length; n2++)
53144
- for (i2 = 1; i2 <= t2.length; i2++)
53145
- e2.charAt(n2 - 1) === t2.charAt(i2 - 1) ? s2[n2][i2] = s2[n2 - 1][i2 - 1] : s2[n2][i2] = Math.min(s2[n2 - 1][i2 - 1] + 1, Math.min(s2[n2][i2 - 1] + 1, s2[n2 - 1][i2] + 1));
53201
+ let i2, n2;
53202
+ for (i2 = 0; i2 <= e2.length; i2++)
53203
+ s2[i2] = [i2];
53204
+ for (n2 = 0; n2 <= t2.length; n2++)
53205
+ s2[0][n2] = n2;
53206
+ for (i2 = 1; i2 <= e2.length; i2++)
53207
+ for (n2 = 1; n2 <= t2.length; n2++)
53208
+ e2.charAt(i2 - 1) === t2.charAt(n2 - 1) ? s2[i2][n2] = s2[i2 - 1][n2 - 1] : i2 > 1 && n2 > 1 && e2.charAt(i2 - 2) === t2.charAt(n2 - 1) && e2.charAt(i2 - 1) === t2.charAt(n2 - 2) ? s2[i2][n2] = s2[i2 - 2][n2 - 2] + 1 : s2[i2][n2] = Math.min(s2[i2 - 1][n2 - 1] + 1, Math.min(s2[i2][n2 - 1] + 1, s2[i2 - 1][n2] + 1));
53146
53209
  return s2[e2.length][t2.length];
53147
53210
  }
53148
- var z = ["$0", "--", "_"];
53211
+ var H = ["$0", "--", "_"];
53212
+ var z;
53149
53213
  var q;
53150
- var H;
53214
+ var W;
53151
53215
  var F;
53152
53216
  var U;
53153
- var W;
53154
53217
  var L;
53155
53218
  var V;
53219
+ var G;
53156
53220
  var R;
53157
53221
  var T;
53158
- var G;
53159
- var B;
53160
53222
  var K;
53223
+ var B;
53161
53224
  var Y;
53162
53225
  var J;
53163
53226
  var Z;
@@ -53166,56 +53229,61 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53166
53229
  var tt;
53167
53230
  var et;
53168
53231
  var st;
53169
- var nt;
53170
53232
  var it;
53233
+ var nt;
53171
53234
  var rt;
53172
53235
  var ot;
53173
53236
  var at;
53174
53237
  var ht;
53175
53238
  var lt;
53176
53239
  var ct;
53240
+ var ft;
53177
53241
  var dt;
53178
53242
  var ut;
53179
53243
  var pt;
53180
53244
  var gt;
53181
- var mt = Symbol("copyDoubleDash");
53182
- var ft = Symbol("copyDoubleDash");
53183
- var yt = Symbol("deleteFromParserHintObject");
53184
- var bt = Symbol("freeze");
53185
- var Ot = Symbol("getDollarZero");
53186
- var vt = Symbol("getParserConfiguration");
53187
- var wt = Symbol("guessLocale");
53188
- var Ct = Symbol("guessVersion");
53189
- var jt = Symbol("parsePositionalNumbers");
53245
+ var mt;
53246
+ var yt = Symbol("copyDoubleDash");
53247
+ var bt = Symbol("copyDoubleDash");
53248
+ var vt = Symbol("deleteFromParserHintObject");
53249
+ var Ot = Symbol("emitWarning");
53250
+ var wt = Symbol("freeze");
53251
+ var Ct = Symbol("getDollarZero");
53252
+ var jt = Symbol("getParserConfiguration");
53253
+ var _t = Symbol("guessLocale");
53254
+ var Mt = Symbol("guessVersion");
53255
+ var kt = Symbol("parsePositionalNumbers");
53190
53256
  var xt = Symbol("pkgUp");
53191
- var _t = Symbol("populateParserHintArray");
53192
- var Mt = Symbol("populateParserHintSingleValueDictionary");
53193
- var kt = Symbol("populateParserHintArrayDictionary");
53194
- var Et = Symbol("populateParserHintDictionary");
53195
- var St = Symbol("sanitizeKey");
53196
- var $t = Symbol("setKey");
53197
- var Pt = Symbol("unfreeze");
53198
- var At = Symbol("validateAsync");
53199
- var It = Symbol("getCommandInstance");
53200
- var Nt = Symbol("getContext");
53201
- var Dt = Symbol("getHasOutput");
53202
- var zt = Symbol("getLoggerInstance");
53203
- var qt = Symbol("getParseContext");
53204
- var Ht = Symbol("getUsageInstance");
53205
- var Ft = Symbol("getValidationInstance");
53206
- var Ut = Symbol("hasParseCallback");
53207
- var Wt = Symbol("postProcess");
53208
- var Lt = Symbol("rebase");
53209
- var Vt = Symbol("reset");
53210
- var Rt = Symbol("runYargsParserAndExecuteCommands");
53211
- var Tt = Symbol("runValidation");
53212
- var Gt = Symbol("setHasOutput");
53213
- var Bt = class {
53214
- constructor(t2 = [], e2, s2, n2) {
53215
- this.customScriptName = false, this.parsed = false, q.set(this, void 0), H.set(this, void 0), F.set(this, { commands: [], fullCommands: [] }), U.set(this, null), W.set(this, null), L.set(this, "show-hidden"), V.set(this, null), R.set(this, true), T.set(this, true), G.set(this, []), B.set(this, void 0), K.set(this, {}), Y.set(this, false), J.set(this, null), Z.set(this, void 0), X.set(this, ""), Q.set(this, void 0), tt.set(this, void 0), et.set(this, {}), st.set(this, null), nt.set(this, null), it.set(this, {}), rt.set(this, {}), ot.set(this, void 0), at.set(this, false), ht.set(this, void 0), lt.set(this, false), ct.set(this, false), dt.set(this, false), ut.set(this, void 0), pt.set(this, null), gt.set(this, void 0), v(this, ht, n2), v(this, ot, t2), v(this, H, e2), v(this, tt, s2), v(this, B, new w(this)), this.$0 = this[Ot](), this[Vt](), v(this, q, O(this, q)), v(this, ut, O(this, ut)), v(this, gt, O(this, gt)), v(this, Q, O(this, Q)), O(this, Q).showHiddenOpt = O(this, L), v(this, Z, this[ft]());
53257
+ var Et = Symbol("populateParserHintArray");
53258
+ var At = Symbol("populateParserHintSingleValueDictionary");
53259
+ var Pt = Symbol("populateParserHintArrayDictionary");
53260
+ var St = Symbol("populateParserHintDictionary");
53261
+ var $t = Symbol("sanitizeKey");
53262
+ var It = Symbol("setKey");
53263
+ var Dt = Symbol("unfreeze");
53264
+ var Nt = Symbol("validateAsync");
53265
+ var Ht = Symbol("getCommandInstance");
53266
+ var zt = Symbol("getContext");
53267
+ var qt = Symbol("getHasOutput");
53268
+ var Wt = Symbol("getLoggerInstance");
53269
+ var Ft = Symbol("getParseContext");
53270
+ var Ut = Symbol("getUsageInstance");
53271
+ var Lt = Symbol("getValidationInstance");
53272
+ var Vt = Symbol("hasParseCallback");
53273
+ var Gt = Symbol("isGlobalContext");
53274
+ var Rt = Symbol("postProcess");
53275
+ var Tt = Symbol("rebase");
53276
+ var Kt = Symbol("reset");
53277
+ var Bt = Symbol("runYargsParserAndExecuteCommands");
53278
+ var Yt = Symbol("runValidation");
53279
+ var Jt = Symbol("setHasOutput");
53280
+ var Zt = Symbol("kTrackManuallySetKeys");
53281
+ var Xt = class {
53282
+ constructor(t2 = [], e2, s2, i2) {
53283
+ this.customScriptName = false, this.parsed = false, z.set(this, void 0), q.set(this, void 0), W.set(this, { commands: [], fullCommands: [] }), F.set(this, null), U.set(this, null), L.set(this, "show-hidden"), V.set(this, null), G.set(this, true), R.set(this, {}), T.set(this, true), K.set(this, []), B.set(this, void 0), Y.set(this, {}), J.set(this, false), Z.set(this, null), X.set(this, true), Q.set(this, void 0), tt.set(this, ""), et.set(this, void 0), st.set(this, void 0), it.set(this, {}), nt.set(this, null), rt.set(this, null), ot.set(this, {}), at.set(this, {}), ht.set(this, void 0), lt.set(this, false), ct.set(this, void 0), ft.set(this, false), dt.set(this, false), ut.set(this, false), pt.set(this, void 0), gt.set(this, null), mt.set(this, void 0), O(this, ct, i2, "f"), O(this, ht, t2, "f"), O(this, q, e2, "f"), O(this, st, s2, "f"), O(this, B, new w(this), "f"), this.$0 = this[Ct](), this[Kt](), O(this, z, v(this, z, "f"), "f"), O(this, pt, v(this, pt, "f"), "f"), O(this, mt, v(this, mt, "f"), "f"), O(this, et, v(this, et, "f"), "f"), v(this, et, "f").showHiddenOpt = v(this, L, "f"), O(this, Q, this[bt](), "f");
53216
53284
  }
53217
53285
  addHelpOpt(t2, e2) {
53218
- return h("[string|boolean] [string]", [t2, e2], arguments.length), O(this, J) && (this[yt](O(this, J)), v(this, J, null)), t2 === false && e2 === void 0 || (v(this, J, typeof t2 == "string" ? t2 : "help"), this.boolean(O(this, J)), this.describe(O(this, J), e2 || O(this, ut).deferY18nLookup("Show help"))), this;
53286
+ return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[vt](v(this, Z, "f")), O(this, Z, null, "f")), t2 === false && e2 === void 0 || (O(this, Z, typeof t2 == "string" ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
53219
53287
  }
53220
53288
  help(t2, e2) {
53221
53289
  return this.addHelpOpt(t2, e2);
@@ -53223,26 +53291,26 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53223
53291
  addShowHiddenOpt(t2, e2) {
53224
53292
  if (h("[string|boolean] [string]", [t2, e2], arguments.length), t2 === false && e2 === void 0)
53225
53293
  return this;
53226
- const s2 = typeof t2 == "string" ? t2 : O(this, L);
53227
- return this.boolean(s2), this.describe(s2, e2 || O(this, ut).deferY18nLookup("Show hidden options")), O(this, Q).showHiddenOpt = s2, this;
53294
+ const s2 = typeof t2 == "string" ? t2 : v(this, L, "f");
53295
+ return this.boolean(s2), this.describe(s2, e2 || v(this, pt, "f").deferY18nLookup("Show hidden options")), v(this, et, "f").showHiddenOpt = s2, this;
53228
53296
  }
53229
53297
  showHidden(t2, e2) {
53230
53298
  return this.addShowHiddenOpt(t2, e2);
53231
53299
  }
53232
53300
  alias(t2, e2) {
53233
- return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[kt](this.alias.bind(this), "alias", t2, e2), this;
53301
+ return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.alias.bind(this), "alias", t2, e2), this;
53234
53302
  }
53235
53303
  array(t2) {
53236
- return h("<array|string>", [t2], arguments.length), this[_t]("array", t2), this;
53304
+ return h("<array|string>", [t2], arguments.length), this[Et]("array", t2), this[Zt](t2), this;
53237
53305
  }
53238
53306
  boolean(t2) {
53239
- return h("<array|string>", [t2], arguments.length), this[_t]("boolean", t2), this;
53307
+ return h("<array|string>", [t2], arguments.length), this[Et]("boolean", t2), this[Zt](t2), this;
53240
53308
  }
53241
53309
  check(t2, e2) {
53242
- return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3), (s3) => (s3 ? (typeof s3 == "string" || s3 instanceof Error) && O(this, ut).fail(s3.toString(), s3) : O(this, ut).fail(O(this, ht).y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (O(this, ut).fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
53310
+ return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3, s2.getOptions()), (s3) => (s3 ? (typeof s3 == "string" || s3 instanceof Error) && v(this, pt, "f").fail(s3.toString(), s3) : v(this, pt, "f").fail(v(this, ct, "f").y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (v(this, pt, "f").fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
53243
53311
  }
53244
53312
  choices(t2, e2) {
53245
- return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[kt](this.choices.bind(this), "choices", t2, e2), this;
53313
+ return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.choices.bind(this), "choices", t2, e2), this;
53246
53314
  }
53247
53315
  coerce(t2, s2) {
53248
53316
  if (h("<object|string|array> [function]", [t2, s2], arguments.length), Array.isArray(t2)) {
@@ -53259,179 +53327,181 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53259
53327
  }
53260
53328
  if (!s2)
53261
53329
  throw new e("coerce callback must be provided");
53262
- return O(this, Q).key[t2] = true, O(this, B).addCoerceMiddleware((n2, i2) => {
53330
+ return v(this, et, "f").key[t2] = true, v(this, B, "f").addCoerceMiddleware((i2, n2) => {
53263
53331
  let r2;
53264
- return j(() => (r2 = i2.getAliases(), s2(n2[t2])), (e2) => {
53265
- if (n2[t2] = e2, r2[t2])
53266
- for (const s3 of r2[t2])
53267
- n2[s3] = e2;
53268
- return n2;
53332
+ return Object.prototype.hasOwnProperty.call(i2, t2) ? j(() => (r2 = n2.getAliases(), s2(i2[t2])), (e2) => {
53333
+ i2[t2] = e2;
53334
+ const s3 = n2.getInternalMethods().getParserConfiguration()["strip-aliased"];
53335
+ if (r2[t2] && s3 !== true)
53336
+ for (const s4 of r2[t2])
53337
+ i2[s4] = e2;
53338
+ return i2;
53269
53339
  }, (t3) => {
53270
53340
  throw new e(t3.message);
53271
- });
53341
+ }) : i2;
53272
53342
  }, t2), this;
53273
53343
  }
53274
53344
  conflicts(t2, e2) {
53275
- return h("<string|object> [string|array]", [t2, e2], arguments.length), O(this, gt).conflicts(t2, e2), this;
53345
+ return h("<string|object> [string|array]", [t2, e2], arguments.length), v(this, mt, "f").conflicts(t2, e2), this;
53276
53346
  }
53277
53347
  config(t2 = "config", e2, s2) {
53278
- return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), typeof t2 != "object" || Array.isArray(t2) ? (typeof e2 == "function" && (s2 = e2, e2 = void 0), this.describe(t2, e2 || O(this, ut).deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
53279
- O(this, Q).config[t3] = s2 || true;
53280
- }), this) : (t2 = i(t2, O(this, H), this[vt]()["deep-merge-config"] || false, O(this, ht)), O(this, Q).configObjects = (O(this, Q).configObjects || []).concat(t2), this);
53348
+ return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), typeof t2 != "object" || Array.isArray(t2) ? (typeof e2 == "function" && (s2 = e2, e2 = void 0), this.describe(t2, e2 || v(this, pt, "f").deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
53349
+ v(this, et, "f").config[t3] = s2 || true;
53350
+ }), this) : (t2 = n(t2, v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(t2), this);
53281
53351
  }
53282
53352
  completion(t2, e2, s2) {
53283
- return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), typeof e2 == "function" && (s2 = e2, e2 = void 0), v(this, W, t2 || O(this, W) || "completion"), e2 || e2 === false || (e2 = "generate completion script"), this.command(O(this, W), e2), s2 && O(this, U).registerFunction(s2), this;
53353
+ return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), typeof e2 == "function" && (s2 = e2, e2 = void 0), O(this, U, t2 || v(this, U, "f") || "completion", "f"), e2 || e2 === false || (e2 = "generate completion script"), this.command(v(this, U, "f"), e2), s2 && v(this, F, "f").registerFunction(s2), this;
53284
53354
  }
53285
- command(t2, e2, s2, n2, i2, r2) {
53286
- return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, n2, i2, r2], arguments.length), O(this, q).addHandler(t2, e2, s2, n2, i2, r2), this;
53355
+ command(t2, e2, s2, i2, n2, r2) {
53356
+ return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, i2, n2, r2], arguments.length), v(this, z, "f").addHandler(t2, e2, s2, i2, n2, r2), this;
53287
53357
  }
53288
- commands(t2, e2, s2, n2, i2, r2) {
53289
- return this.command(t2, e2, s2, n2, i2, r2);
53358
+ commands(t2, e2, s2, i2, n2, r2) {
53359
+ return this.command(t2, e2, s2, i2, n2, r2);
53290
53360
  }
53291
53361
  commandDir(t2, e2) {
53292
53362
  h("<string> [object]", [t2, e2], arguments.length);
53293
- const s2 = O(this, tt) || O(this, ht).require;
53294
- return O(this, q).addDirectory(t2, s2, O(this, ht).getCallerFile(), e2), this;
53363
+ const s2 = v(this, st, "f") || v(this, ct, "f").require;
53364
+ return v(this, z, "f").addDirectory(t2, s2, v(this, ct, "f").getCallerFile(), e2), this;
53295
53365
  }
53296
53366
  count(t2) {
53297
- return h("<array|string>", [t2], arguments.length), this[_t]("count", t2), this;
53367
+ return h("<array|string>", [t2], arguments.length), this[Et]("count", t2), this[Zt](t2), this;
53298
53368
  }
53299
53369
  default(t2, e2, s2) {
53300
- return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (p(t2, O(this, ht)), O(this, Q).defaultDescription[t2] = s2), typeof e2 == "function" && (p(t2, O(this, ht)), O(this, Q).defaultDescription[t2] || (O(this, Q).defaultDescription[t2] = O(this, ut).functionDescription(e2)), e2 = e2.call()), this[Mt](this.default.bind(this), "default", t2, e2), this;
53370
+ return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), typeof e2 == "function" && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[At](this.default.bind(this), "default", t2, e2), this;
53301
53371
  }
53302
53372
  defaults(t2, e2, s2) {
53303
53373
  return this.default(t2, e2, s2);
53304
53374
  }
53305
- demandCommand(t2 = 1, e2, s2, n2) {
53306
- return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2, n2], arguments.length), typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), this.global("_", false), O(this, Q).demandedCommands._ = { min: t2, max: e2, minMsg: s2, maxMsg: n2 }, this;
53375
+ demandCommand(t2 = 1, e2, s2, i2) {
53376
+ return h("[number] [number|string] [string|null|undefined] [string|null|undefined]", [t2, e2, s2, i2], arguments.length), typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), this.global("_", false), v(this, et, "f").demandedCommands._ = { min: t2, max: e2, minMsg: s2, maxMsg: i2 }, this;
53307
53377
  }
53308
53378
  demand(t2, e2, s2) {
53309
53379
  return Array.isArray(e2) ? (e2.forEach((t3) => {
53310
- u(s2, true, O(this, ht)), this.demandOption(t3, s2);
53311
- }), e2 = 1 / 0) : typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), typeof t2 == "number" ? (u(s2, true, O(this, ht)), this.demandCommand(t2, e2, s2, s2)) : Array.isArray(t2) ? t2.forEach((t3) => {
53312
- u(s2, true, O(this, ht)), this.demandOption(t3, s2);
53380
+ d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
53381
+ }), e2 = 1 / 0) : typeof e2 != "number" && (s2 = e2, e2 = 1 / 0), typeof t2 == "number" ? (d(s2, true, v(this, ct, "f")), this.demandCommand(t2, e2, s2, s2)) : Array.isArray(t2) ? t2.forEach((t3) => {
53382
+ d(s2, true, v(this, ct, "f")), this.demandOption(t3, s2);
53313
53383
  }) : typeof s2 == "string" ? this.demandOption(t2, s2) : s2 !== true && s2 !== void 0 || this.demandOption(t2), this;
53314
53384
  }
53315
53385
  demandOption(t2, e2) {
53316
- return h("<object|string|array> [string]", [t2, e2], arguments.length), this[Mt](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
53386
+ return h("<object|string|array> [string]", [t2, e2], arguments.length), this[At](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
53317
53387
  }
53318
53388
  deprecateOption(t2, e2) {
53319
- return h("<string> [string|boolean]", [t2, e2], arguments.length), O(this, Q).deprecatedOptions[t2] = e2, this;
53389
+ return h("<string> [string|boolean]", [t2, e2], arguments.length), v(this, et, "f").deprecatedOptions[t2] = e2, this;
53320
53390
  }
53321
53391
  describe(t2, e2) {
53322
- return h("<object|string|array> [string]", [t2, e2], arguments.length), this[$t](t2, true), O(this, ut).describe(t2, e2), this;
53392
+ return h("<object|string|array> [string]", [t2, e2], arguments.length), this[It](t2, true), v(this, pt, "f").describe(t2, e2), this;
53323
53393
  }
53324
53394
  detectLocale(t2) {
53325
- return h("<boolean>", [t2], arguments.length), v(this, R, t2), this;
53395
+ return h("<boolean>", [t2], arguments.length), O(this, G, t2, "f"), this;
53326
53396
  }
53327
53397
  env(t2) {
53328
- return h("[string|boolean]", [t2], arguments.length), t2 === false ? delete O(this, Q).envPrefix : O(this, Q).envPrefix = t2 || "", this;
53398
+ return h("[string|boolean]", [t2], arguments.length), t2 === false ? delete v(this, et, "f").envPrefix : v(this, et, "f").envPrefix = t2 || "", this;
53329
53399
  }
53330
53400
  epilogue(t2) {
53331
- return h("<string>", [t2], arguments.length), O(this, ut).epilog(t2), this;
53401
+ return h("<string>", [t2], arguments.length), v(this, pt, "f").epilog(t2), this;
53332
53402
  }
53333
53403
  epilog(t2) {
53334
53404
  return this.epilogue(t2);
53335
53405
  }
53336
53406
  example(t2, e2) {
53337
- return h("<string|array> [string]", [t2, e2], arguments.length), Array.isArray(t2) ? t2.forEach((t3) => this.example(...t3)) : O(this, ut).example(t2, e2), this;
53407
+ return h("<string|array> [string]", [t2, e2], arguments.length), Array.isArray(t2) ? t2.forEach((t3) => this.example(...t3)) : v(this, pt, "f").example(t2, e2), this;
53338
53408
  }
53339
53409
  exit(t2, e2) {
53340
- v(this, Y, true), v(this, V, e2), O(this, T) && O(this, ht).process.exit(t2);
53410
+ O(this, J, true, "f"), O(this, V, e2, "f"), v(this, T, "f") && v(this, ct, "f").process.exit(t2);
53341
53411
  }
53342
53412
  exitProcess(t2 = true) {
53343
- return h("[boolean]", [t2], arguments.length), v(this, T, t2), this;
53413
+ return h("[boolean]", [t2], arguments.length), O(this, T, t2, "f"), this;
53344
53414
  }
53345
53415
  fail(t2) {
53346
53416
  if (h("<function|boolean>", [t2], arguments.length), typeof t2 == "boolean" && t2 !== false)
53347
53417
  throw new e("Invalid first argument. Expected function or boolean 'false'");
53348
- return O(this, ut).failFn(t2), this;
53418
+ return v(this, pt, "f").failFn(t2), this;
53349
53419
  }
53350
53420
  getAliases() {
53351
53421
  return this.parsed ? this.parsed.aliases : {};
53352
53422
  }
53353
53423
  async getCompletion(t2, e2) {
53354
- return h("<array> [function]", [t2, e2], arguments.length), e2 ? O(this, U).getCompletion(t2, e2) : new Promise((e3, s2) => {
53355
- O(this, U).getCompletion(t2, (t3, n2) => {
53356
- t3 ? s2(t3) : e3(n2);
53424
+ return h("<array> [function]", [t2, e2], arguments.length), e2 ? v(this, F, "f").getCompletion(t2, e2) : new Promise((e3, s2) => {
53425
+ v(this, F, "f").getCompletion(t2, (t3, i2) => {
53426
+ t3 ? s2(t3) : e3(i2);
53357
53427
  });
53358
53428
  });
53359
53429
  }
53360
53430
  getDemandedOptions() {
53361
- return h([], 0), O(this, Q).demandedOptions;
53431
+ return h([], 0), v(this, et, "f").demandedOptions;
53362
53432
  }
53363
53433
  getDemandedCommands() {
53364
- return h([], 0), O(this, Q).demandedCommands;
53434
+ return h([], 0), v(this, et, "f").demandedCommands;
53365
53435
  }
53366
53436
  getDeprecatedOptions() {
53367
- return h([], 0), O(this, Q).deprecatedOptions;
53437
+ return h([], 0), v(this, et, "f").deprecatedOptions;
53368
53438
  }
53369
53439
  getDetectLocale() {
53370
- return O(this, R);
53440
+ return v(this, G, "f");
53371
53441
  }
53372
53442
  getExitProcess() {
53373
- return O(this, T);
53443
+ return v(this, T, "f");
53374
53444
  }
53375
53445
  getGroups() {
53376
- return Object.assign({}, O(this, K), O(this, rt));
53446
+ return Object.assign({}, v(this, Y, "f"), v(this, at, "f"));
53377
53447
  }
53378
53448
  getHelp() {
53379
- if (v(this, Y, true), !O(this, ut).hasCachedHelpMessage()) {
53449
+ if (O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
53380
53450
  if (!this.parsed) {
53381
- const t3 = this[Rt](O(this, ot), void 0, void 0, 0, true);
53382
- if (d(t3))
53383
- return t3.then(() => O(this, ut).help());
53451
+ const t3 = this[Bt](v(this, ht, "f"), void 0, void 0, 0, true);
53452
+ if (f(t3))
53453
+ return t3.then(() => v(this, pt, "f").help());
53384
53454
  }
53385
- const t2 = O(this, q).runDefaultBuilderOn(this);
53386
- if (d(t2))
53387
- return t2.then(() => O(this, ut).help());
53455
+ const t2 = v(this, z, "f").runDefaultBuilderOn(this);
53456
+ if (f(t2))
53457
+ return t2.then(() => v(this, pt, "f").help());
53388
53458
  }
53389
- return Promise.resolve(O(this, ut).help());
53459
+ return Promise.resolve(v(this, pt, "f").help());
53390
53460
  }
53391
53461
  getOptions() {
53392
- return O(this, Q);
53462
+ return v(this, et, "f");
53393
53463
  }
53394
53464
  getStrict() {
53395
- return O(this, lt);
53465
+ return v(this, ft, "f");
53396
53466
  }
53397
53467
  getStrictCommands() {
53398
- return O(this, ct);
53468
+ return v(this, dt, "f");
53399
53469
  }
53400
53470
  getStrictOptions() {
53401
- return O(this, dt);
53471
+ return v(this, ut, "f");
53402
53472
  }
53403
53473
  global(t2, e2) {
53404
- return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), e2 !== false ? O(this, Q).local = O(this, Q).local.filter((e3) => t2.indexOf(e3) === -1) : t2.forEach((t3) => {
53405
- O(this, Q).local.indexOf(t3) === -1 && O(this, Q).local.push(t3);
53474
+ return h("<string|array> [boolean]", [t2, e2], arguments.length), t2 = [].concat(t2), e2 !== false ? v(this, et, "f").local = v(this, et, "f").local.filter((e3) => t2.indexOf(e3) === -1) : t2.forEach((t3) => {
53475
+ v(this, et, "f").local.includes(t3) || v(this, et, "f").local.push(t3);
53406
53476
  }), this;
53407
53477
  }
53408
53478
  group(t2, e2) {
53409
53479
  h("<string|array> <string>", [t2, e2], arguments.length);
53410
- const s2 = O(this, rt)[e2] || O(this, K)[e2];
53411
- O(this, rt)[e2] && delete O(this, rt)[e2];
53412
- const n2 = {};
53413
- return O(this, K)[e2] = (s2 || []).concat(t2).filter((t3) => !n2[t3] && (n2[t3] = true)), this;
53480
+ const s2 = v(this, at, "f")[e2] || v(this, Y, "f")[e2];
53481
+ v(this, at, "f")[e2] && delete v(this, at, "f")[e2];
53482
+ const i2 = {};
53483
+ return v(this, Y, "f")[e2] = (s2 || []).concat(t2).filter((t3) => !i2[t3] && (i2[t3] = true)), this;
53414
53484
  }
53415
53485
  hide(t2) {
53416
- return h("<string>", [t2], arguments.length), O(this, Q).hiddenOptions.push(t2), this;
53486
+ return h("<string>", [t2], arguments.length), v(this, et, "f").hiddenOptions.push(t2), this;
53417
53487
  }
53418
53488
  implies(t2, e2) {
53419
- return h("<string|object> [number|string|array]", [t2, e2], arguments.length), O(this, gt).implies(t2, e2), this;
53489
+ return h("<string|object> [number|string|array]", [t2, e2], arguments.length), v(this, mt, "f").implies(t2, e2), this;
53420
53490
  }
53421
53491
  locale(t2) {
53422
- return h("[string]", [t2], arguments.length), t2 ? (v(this, R, false), O(this, ht).y18n.setLocale(t2), this) : (this[wt](), O(this, ht).y18n.getLocale());
53492
+ return h("[string]", [t2], arguments.length), t2 === void 0 ? (this[_t](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
53423
53493
  }
53424
53494
  middleware(t2, e2, s2) {
53425
- return O(this, B).addMiddleware(t2, !!e2, s2);
53495
+ return v(this, B, "f").addMiddleware(t2, !!e2, s2);
53426
53496
  }
53427
53497
  nargs(t2, e2) {
53428
- return h("<string|object|array> [number]", [t2, e2], arguments.length), this[Mt](this.nargs.bind(this), "narg", t2, e2), this;
53498
+ return h("<string|object|array> [number]", [t2, e2], arguments.length), this[At](this.nargs.bind(this), "narg", t2, e2), this;
53429
53499
  }
53430
53500
  normalize(t2) {
53431
- return h("<array|string>", [t2], arguments.length), this[_t]("normalize", t2), this;
53501
+ return h("<array|string>", [t2], arguments.length), this[Et]("normalize", t2), this;
53432
53502
  }
53433
53503
  number(t2) {
53434
- return h("<array|string>", [t2], arguments.length), this[_t]("number", t2), this;
53504
+ return h("<array|string>", [t2], arguments.length), this[Et]("number", t2), this[Zt](t2), this;
53435
53505
  }
53436
53506
  option(t2, e2) {
53437
53507
  if (h("<string|object> [object]", [t2, e2], arguments.length), typeof t2 == "object")
@@ -53439,13 +53509,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53439
53509
  this.options(e3, t2[e3]);
53440
53510
  });
53441
53511
  else {
53442
- typeof e2 != "object" && (e2 = {}), O(this, Q).key[t2] = true, e2.alias && this.alias(t2, e2.alias);
53512
+ typeof e2 != "object" && (e2 = {}), this[Zt](t2), !v(this, gt, "f") || t2 !== "version" && (e2 == null ? void 0 : e2.alias) !== "version" || this[Ot](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
53443
53513
  const s2 = e2.deprecate || e2.deprecated;
53444
53514
  s2 && this.deprecateOption(t2, s2);
53445
- const n2 = e2.demand || e2.required || e2.require;
53446
- n2 && this.demand(t2, n2), e2.demandOption && this.demandOption(t2, typeof e2.demandOption == "string" ? e2.demandOption : void 0), e2.conflicts && this.conflicts(t2, e2.conflicts), "default" in e2 && this.default(t2, e2.default), e2.implies !== void 0 && this.implies(t2, e2.implies), e2.nargs !== void 0 && this.nargs(t2, e2.nargs), e2.config && this.config(t2, e2.configParser), e2.normalize && this.normalize(t2), e2.choices && this.choices(t2, e2.choices), e2.coerce && this.coerce(t2, e2.coerce), e2.group && this.group(t2, e2.group), (e2.boolean || e2.type === "boolean") && (this.boolean(t2), e2.alias && this.boolean(e2.alias)), (e2.array || e2.type === "array") && (this.array(t2), e2.alias && this.array(e2.alias)), (e2.number || e2.type === "number") && (this.number(t2), e2.alias && this.number(e2.alias)), (e2.string || e2.type === "string") && (this.string(t2), e2.alias && this.string(e2.alias)), (e2.count || e2.type === "count") && this.count(t2), typeof e2.global == "boolean" && this.global(t2, e2.global), e2.defaultDescription && (O(this, Q).defaultDescription[t2] = e2.defaultDescription), e2.skipValidation && this.skipValidation(t2);
53447
- const i2 = e2.describe || e2.description || e2.desc;
53448
- this.describe(t2, i2), e2.hidden && this.hide(t2), e2.requiresArg && this.requiresArg(t2);
53515
+ const i2 = e2.demand || e2.required || e2.require;
53516
+ i2 && this.demand(t2, i2), e2.demandOption && this.demandOption(t2, typeof e2.demandOption == "string" ? e2.demandOption : void 0), e2.conflicts && this.conflicts(t2, e2.conflicts), "default" in e2 && this.default(t2, e2.default), e2.implies !== void 0 && this.implies(t2, e2.implies), e2.nargs !== void 0 && this.nargs(t2, e2.nargs), e2.config && this.config(t2, e2.configParser), e2.normalize && this.normalize(t2), e2.choices && this.choices(t2, e2.choices), e2.coerce && this.coerce(t2, e2.coerce), e2.group && this.group(t2, e2.group), (e2.boolean || e2.type === "boolean") && (this.boolean(t2), e2.alias && this.boolean(e2.alias)), (e2.array || e2.type === "array") && (this.array(t2), e2.alias && this.array(e2.alias)), (e2.number || e2.type === "number") && (this.number(t2), e2.alias && this.number(e2.alias)), (e2.string || e2.type === "string") && (this.string(t2), e2.alias && this.string(e2.alias)), (e2.count || e2.type === "count") && this.count(t2), typeof e2.global == "boolean" && this.global(t2, e2.global), e2.defaultDescription && (v(this, et, "f").defaultDescription[t2] = e2.defaultDescription), e2.skipValidation && this.skipValidation(t2);
53517
+ const n2 = e2.describe || e2.description || e2.desc;
53518
+ this.describe(t2, n2), e2.hidden && this.hide(t2), e2.requiresArg && this.requiresArg(t2);
53449
53519
  }
53450
53520
  return this;
53451
53521
  }
@@ -53453,48 +53523,45 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53453
53523
  return this.option(t2, e2);
53454
53524
  }
53455
53525
  parse(t2, e2, s2) {
53456
- h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[bt](), t2 === void 0 && (t2 = O(this, ot)), typeof e2 == "object" && (v(this, nt, e2), e2 = s2), typeof e2 == "function" && (v(this, st, e2), e2 = false), e2 || v(this, ot, t2), O(this, st) && v(this, T, false);
53457
- const n2 = this[Rt](t2, !!e2), i2 = this.parsed;
53458
- return O(this, U).setParsed(this.parsed), d(n2) ? n2.then((t3) => (O(this, st) && O(this, st).call(this, O(this, V), t3, O(this, X)), t3)).catch((t3) => {
53459
- throw O(this, st) && O(this, st)(t3, this.parsed.argv, O(this, X)), t3;
53526
+ h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[wt](), t2 === void 0 && (t2 = v(this, ht, "f")), typeof e2 == "object" && (O(this, rt, e2, "f"), e2 = s2), typeof e2 == "function" && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
53527
+ const i2 = this[Bt](t2, !!e2), n2 = this.parsed;
53528
+ return v(this, F, "f").setParsed(this.parsed), f(i2) ? i2.then((t3) => (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), t3, v(this, tt, "f")), t3)).catch((t3) => {
53529
+ throw v(this, nt, "f") && v(this, nt, "f")(t3, this.parsed.argv, v(this, tt, "f")), t3;
53460
53530
  }).finally(() => {
53461
- this[Pt](), this.parsed = i2;
53462
- }) : (O(this, st) && O(this, st).call(this, O(this, V), n2, O(this, X)), this[Pt](), this.parsed = i2, n2);
53531
+ this[Dt](), this.parsed = n2;
53532
+ }) : (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), i2, v(this, tt, "f")), this[Dt](), this.parsed = n2, i2);
53463
53533
  }
53464
53534
  parseAsync(t2, e2, s2) {
53465
- const n2 = this.parse(t2, e2, s2);
53466
- return d(n2) ? n2 : Promise.resolve(n2);
53535
+ const i2 = this.parse(t2, e2, s2);
53536
+ return f(i2) ? i2 : Promise.resolve(i2);
53467
53537
  }
53468
- parseSync(t2, s2, n2) {
53469
- const i2 = this.parse(t2, s2, n2);
53470
- if (d(i2))
53538
+ parseSync(t2, s2, i2) {
53539
+ const n2 = this.parse(t2, s2, i2);
53540
+ if (f(n2))
53471
53541
  throw new e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");
53472
- return i2;
53542
+ return n2;
53473
53543
  }
53474
53544
  parserConfiguration(t2) {
53475
- return h("<object>", [t2], arguments.length), v(this, et, t2), this;
53545
+ return h("<object>", [t2], arguments.length), O(this, it, t2, "f"), this;
53476
53546
  }
53477
53547
  pkgConf(t2, e2) {
53478
53548
  h("<string> [string]", [t2, e2], arguments.length);
53479
53549
  let s2 = null;
53480
- const n2 = this[xt](e2 || O(this, H));
53481
- return n2[t2] && typeof n2[t2] == "object" && (s2 = i(n2[t2], e2 || O(this, H), this[vt]()["deep-merge-config"] || false, O(this, ht)), O(this, Q).configObjects = (O(this, Q).configObjects || []).concat(s2)), this;
53550
+ const i2 = this[xt](e2 || v(this, q, "f"));
53551
+ return i2[t2] && typeof i2[t2] == "object" && (s2 = n(i2[t2], e2 || v(this, q, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
53482
53552
  }
53483
53553
  positional(t2, e2) {
53484
53554
  h("<string> <object>", [t2, e2], arguments.length);
53485
53555
  const s2 = ["default", "defaultDescription", "implies", "normalize", "choices", "conflicts", "coerce", "type", "describe", "desc", "description", "alias"];
53486
- e2 = m(e2, (t3, e3) => {
53487
- let n3 = s2.indexOf(t3) !== -1;
53488
- return t3 === "type" && ["string", "number", "boolean"].indexOf(e3) === -1 && (n3 = false), n3;
53489
- });
53490
- const n2 = O(this, F).fullCommands[O(this, F).fullCommands.length - 1], i2 = n2 ? O(this, q).cmdToParseOptions(n2) : { array: [], alias: {}, default: {}, demand: {} };
53491
- return g(i2).forEach((s3) => {
53492
- const n3 = i2[s3];
53493
- Array.isArray(n3) ? n3.indexOf(t2) !== -1 && (e2[s3] = true) : n3[t2] && !(s3 in e2) && (e2[s3] = n3[t2]);
53494
- }), this.group(t2, O(this, ut).getPositionalGroupName()), this.option(t2, e2);
53556
+ e2 = g(e2, (t3, e3) => !(t3 === "type" && !["string", "number", "boolean"].includes(e3)) && s2.includes(t3));
53557
+ const i2 = v(this, W, "f").fullCommands[v(this, W, "f").fullCommands.length - 1], n2 = i2 ? v(this, z, "f").cmdToParseOptions(i2) : { array: [], alias: {}, default: {}, demand: {} };
53558
+ return p(n2).forEach((s3) => {
53559
+ const i3 = n2[s3];
53560
+ Array.isArray(i3) ? i3.indexOf(t2) !== -1 && (e2[s3] = true) : i3[t2] && !(s3 in e2) && (e2[s3] = i3[t2]);
53561
+ }), this.group(t2, v(this, pt, "f").getPositionalGroupName()), this.option(t2, e2);
53495
53562
  }
53496
53563
  recommendCommands(t2 = true) {
53497
- return h("[boolean]", [t2], arguments.length), v(this, at, t2), this;
53564
+ return h("[boolean]", [t2], arguments.length), O(this, lt, t2, "f"), this;
53498
53565
  }
53499
53566
  required(t2, e2, s2) {
53500
53567
  return this.demand(t2, e2, s2);
@@ -53503,85 +53570,85 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53503
53570
  return this.demand(t2, e2, s2);
53504
53571
  }
53505
53572
  requiresArg(t2) {
53506
- return h("<array|string|object> [number]", [t2], arguments.length), typeof t2 == "string" && O(this, Q).narg[t2] || this[Mt](this.requiresArg.bind(this), "narg", t2, NaN), this;
53573
+ return h("<array|string|object> [number]", [t2], arguments.length), typeof t2 == "string" && v(this, et, "f").narg[t2] || this[At](this.requiresArg.bind(this), "narg", t2, NaN), this;
53507
53574
  }
53508
53575
  showCompletionScript(t2, e2) {
53509
- return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, O(this, Z).log(O(this, U).generateCompletionScript(t2, e2 || O(this, W) || "completion")), this;
53576
+ return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, v(this, Q, "f").log(v(this, F, "f").generateCompletionScript(t2, e2 || v(this, U, "f") || "completion")), this;
53510
53577
  }
53511
53578
  showHelp(t2) {
53512
- if (h("[string|function]", [t2], arguments.length), v(this, Y, true), !O(this, ut).hasCachedHelpMessage()) {
53579
+ if (h("[string|function]", [t2], arguments.length), O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
53513
53580
  if (!this.parsed) {
53514
- const e3 = this[Rt](O(this, ot), void 0, void 0, 0, true);
53515
- if (d(e3))
53581
+ const e3 = this[Bt](v(this, ht, "f"), void 0, void 0, 0, true);
53582
+ if (f(e3))
53516
53583
  return e3.then(() => {
53517
- O(this, ut).showHelp(t2);
53584
+ v(this, pt, "f").showHelp(t2);
53518
53585
  }), this;
53519
53586
  }
53520
- const e2 = O(this, q).runDefaultBuilderOn(this);
53521
- if (d(e2))
53587
+ const e2 = v(this, z, "f").runDefaultBuilderOn(this);
53588
+ if (f(e2))
53522
53589
  return e2.then(() => {
53523
- O(this, ut).showHelp(t2);
53590
+ v(this, pt, "f").showHelp(t2);
53524
53591
  }), this;
53525
53592
  }
53526
- return O(this, ut).showHelp(t2), this;
53593
+ return v(this, pt, "f").showHelp(t2), this;
53527
53594
  }
53528
53595
  scriptName(t2) {
53529
53596
  return this.customScriptName = true, this.$0 = t2, this;
53530
53597
  }
53531
53598
  showHelpOnFail(t2, e2) {
53532
- return h("[boolean|string] [string]", [t2, e2], arguments.length), O(this, ut).showHelpOnFail(t2, e2), this;
53599
+ return h("[boolean|string] [string]", [t2, e2], arguments.length), v(this, pt, "f").showHelpOnFail(t2, e2), this;
53533
53600
  }
53534
53601
  showVersion(t2) {
53535
- return h("[string|function]", [t2], arguments.length), O(this, ut).showVersion(t2), this;
53602
+ return h("[string|function]", [t2], arguments.length), v(this, pt, "f").showVersion(t2), this;
53536
53603
  }
53537
53604
  skipValidation(t2) {
53538
- return h("<array|string>", [t2], arguments.length), this[_t]("skipValidation", t2), this;
53605
+ return h("<array|string>", [t2], arguments.length), this[Et]("skipValidation", t2), this;
53539
53606
  }
53540
53607
  strict(t2) {
53541
- return h("[boolean]", [t2], arguments.length), v(this, lt, t2 !== false), this;
53608
+ return h("[boolean]", [t2], arguments.length), O(this, ft, t2 !== false, "f"), this;
53542
53609
  }
53543
53610
  strictCommands(t2) {
53544
- return h("[boolean]", [t2], arguments.length), v(this, ct, t2 !== false), this;
53611
+ return h("[boolean]", [t2], arguments.length), O(this, dt, t2 !== false, "f"), this;
53545
53612
  }
53546
53613
  strictOptions(t2) {
53547
- return h("[boolean]", [t2], arguments.length), v(this, dt, t2 !== false), this;
53614
+ return h("[boolean]", [t2], arguments.length), O(this, ut, t2 !== false, "f"), this;
53548
53615
  }
53549
53616
  string(t2) {
53550
- return h("<array|string>", [t2], arguments.length), this[_t]("string", t2), this;
53617
+ return h("<array|string>", [t2], arguments.length), this[Et]("string", t2), this[Zt](t2), this;
53551
53618
  }
53552
53619
  terminalWidth() {
53553
- return h([], 0), O(this, ht).process.stdColumns;
53620
+ return h([], 0), v(this, ct, "f").process.stdColumns;
53554
53621
  }
53555
53622
  updateLocale(t2) {
53556
53623
  return this.updateStrings(t2);
53557
53624
  }
53558
53625
  updateStrings(t2) {
53559
- return h("<object>", [t2], arguments.length), v(this, R, false), O(this, ht).y18n.updateLocale(t2), this;
53626
+ return h("<object>", [t2], arguments.length), O(this, G, false, "f"), v(this, ct, "f").y18n.updateLocale(t2), this;
53560
53627
  }
53561
- usage(t2, s2, n2, i2) {
53562
- if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2, n2, i2], arguments.length), s2 !== void 0) {
53563
- if (u(t2, null, O(this, ht)), (t2 || "").match(/^\$0( |$)/))
53564
- return this.command(t2, s2, n2, i2);
53628
+ usage(t2, s2, i2, n2) {
53629
+ if (h("<string|null|undefined> [string|boolean] [function|object] [function]", [t2, s2, i2, n2], arguments.length), s2 !== void 0) {
53630
+ if (d(t2, null, v(this, ct, "f")), (t2 || "").match(/^\$0( |$)/))
53631
+ return this.command(t2, s2, i2, n2);
53565
53632
  throw new e(".usage() description must start with $0 if being used as alias for .command()");
53566
53633
  }
53567
- return O(this, ut).usage(t2), this;
53634
+ return v(this, pt, "f").usage(t2), this;
53568
53635
  }
53569
53636
  version(t2, e2, s2) {
53570
- const n2 = "version";
53571
- if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), O(this, pt) && (this[yt](O(this, pt)), O(this, ut).version(void 0), v(this, pt, null)), arguments.length === 0)
53572
- s2 = this[Ct](), t2 = n2;
53637
+ const i2 = "version";
53638
+ if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, gt, "f") && (this[vt](v(this, gt, "f")), v(this, pt, "f").version(void 0), O(this, gt, null, "f")), arguments.length === 0)
53639
+ s2 = this[Mt](), t2 = i2;
53573
53640
  else if (arguments.length === 1) {
53574
53641
  if (t2 === false)
53575
53642
  return this;
53576
- s2 = t2, t2 = n2;
53643
+ s2 = t2, t2 = i2;
53577
53644
  } else
53578
53645
  arguments.length === 2 && (s2 = e2, e2 = void 0);
53579
- return v(this, pt, typeof t2 == "string" ? t2 : n2), e2 = e2 || O(this, ut).deferY18nLookup("Show version number"), O(this, ut).version(s2 || void 0), this.boolean(O(this, pt)), this.describe(O(this, pt), e2), this;
53646
+ return O(this, gt, typeof t2 == "string" ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, gt, "f")), this.describe(v(this, gt, "f"), e2), this;
53580
53647
  }
53581
53648
  wrap(t2) {
53582
- return h("<number|null|undefined>", [t2], arguments.length), O(this, ut).wrap(t2), this;
53649
+ return h("<number|null|undefined>", [t2], arguments.length), v(this, pt, "f").wrap(t2), this;
53583
53650
  }
53584
- [(q = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), mt)](t2) {
53651
+ [(z = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), yt)](t2) {
53585
53652
  if (!t2._ || !t2["--"])
53586
53653
  return t2;
53587
53654
  t2._.push.apply(t2._, t2["--"]);
@@ -53591,257 +53658,270 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
53591
53658
  }
53592
53659
  return t2;
53593
53660
  }
53594
- [ft]() {
53661
+ [bt]() {
53595
53662
  return { log: (...t2) => {
53596
- this[Ut]() || console.log(...t2), v(this, Y, true), O(this, X).length && v(this, X, O(this, X) + "\n"), v(this, X, O(this, X) + t2.join(" "));
53663
+ this[Vt]() || console.log(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
53597
53664
  }, error: (...t2) => {
53598
- this[Ut]() || console.error(...t2), v(this, Y, true), O(this, X).length && v(this, X, O(this, X) + "\n"), v(this, X, O(this, X) + t2.join(" "));
53665
+ this[Vt]() || console.error(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
53599
53666
  } };
53600
53667
  }
53601
- [yt](t2) {
53602
- g(O(this, Q)).forEach((e2) => {
53668
+ [vt](t2) {
53669
+ p(v(this, et, "f")).forEach((e2) => {
53603
53670
  if (e2 === "configObjects")
53604
53671
  return;
53605
- const s2 = O(this, Q)[e2];
53606
- Array.isArray(s2) ? ~s2.indexOf(t2) && s2.splice(s2.indexOf(t2), 1) : typeof s2 == "object" && delete s2[t2];
53607
- }), delete O(this, ut).getDescriptions()[t2];
53672
+ const s2 = v(this, et, "f")[e2];
53673
+ Array.isArray(s2) ? s2.includes(t2) && s2.splice(s2.indexOf(t2), 1) : typeof s2 == "object" && delete s2[t2];
53674
+ }), delete v(this, pt, "f").getDescriptions()[t2];
53608
53675
  }
53609
- [bt]() {
53610
- O(this, G).push({ options: O(this, Q), configObjects: O(this, Q).configObjects.slice(0), exitProcess: O(this, T), groups: O(this, K), strict: O(this, lt), strictCommands: O(this, ct), strictOptions: O(this, dt), completionCommand: O(this, W), output: O(this, X), exitError: O(this, V), hasOutput: O(this, Y), parsed: this.parsed, parseFn: O(this, st), parseContext: O(this, nt) }), O(this, ut).freeze(), O(this, gt).freeze(), O(this, q).freeze(), O(this, B).freeze();
53676
+ [Ot](t2, e2, s2) {
53677
+ v(this, R, "f")[s2] || (v(this, ct, "f").process.emitWarning(t2, e2), v(this, R, "f")[s2] = true);
53678
+ }
53679
+ [wt]() {
53680
+ v(this, K, "f").push({ options: v(this, et, "f"), configObjects: v(this, et, "f").configObjects.slice(0), exitProcess: v(this, T, "f"), groups: v(this, Y, "f"), strict: v(this, ft, "f"), strictCommands: v(this, dt, "f"), strictOptions: v(this, ut, "f"), completionCommand: v(this, U, "f"), output: v(this, tt, "f"), exitError: v(this, V, "f"), hasOutput: v(this, J, "f"), parsed: this.parsed, parseFn: v(this, nt, "f"), parseContext: v(this, rt, "f") }), v(this, pt, "f").freeze(), v(this, mt, "f").freeze(), v(this, z, "f").freeze(), v(this, B, "f").freeze();
53611
53681
  }
53612
- [Ot]() {
53682
+ [Ct]() {
53613
53683
  let t2, e2 = "";
53614
- return t2 = /\b(node|iojs|electron)(\.exe)?$/.test(O(this, ht).process.argv()[0]) ? O(this, ht).process.argv().slice(1, 2) : O(this, ht).process.argv().slice(0, 1), e2 = t2.map((t3) => {
53615
- const e3 = this[Lt](O(this, H), t3);
53684
+ return t2 = /\b(node|iojs|electron)(\.exe)?$/.test(v(this, ct, "f").process.argv()[0]) ? v(this, ct, "f").process.argv().slice(1, 2) : v(this, ct, "f").process.argv().slice(0, 1), e2 = t2.map((t3) => {
53685
+ const e3 = this[Tt](v(this, q, "f"), t3);
53616
53686
  return t3.match(/^(\/|([a-zA-Z]:)?\\)/) && e3.length < t3.length ? e3 : t3;
53617
- }).join(" ").trim(), O(this, ht).getEnv("_") && O(this, ht).getProcessArgvBin() === O(this, ht).getEnv("_") && (e2 = O(this, ht).getEnv("_").replace(`${O(this, ht).path.dirname(O(this, ht).process.execPath())}/`, "")), e2;
53687
+ }).join(" ").trim(), v(this, ct, "f").getEnv("_") && v(this, ct, "f").getProcessArgvBin() === v(this, ct, "f").getEnv("_") && (e2 = v(this, ct, "f").getEnv("_").replace(`${v(this, ct, "f").path.dirname(v(this, ct, "f").process.execPath())}/`, "")), e2;
53618
53688
  }
53619
- [vt]() {
53620
- return O(this, et);
53689
+ [jt]() {
53690
+ return v(this, it, "f");
53621
53691
  }
53622
- [wt]() {
53623
- if (!O(this, R))
53692
+ [_t]() {
53693
+ if (!v(this, G, "f"))
53624
53694
  return;
53625
- const t2 = O(this, ht).getEnv("LC_ALL") || O(this, ht).getEnv("LC_MESSAGES") || O(this, ht).getEnv("LANG") || O(this, ht).getEnv("LANGUAGE") || "en_US";
53695
+ const t2 = v(this, ct, "f").getEnv("LC_ALL") || v(this, ct, "f").getEnv("LC_MESSAGES") || v(this, ct, "f").getEnv("LANG") || v(this, ct, "f").getEnv("LANGUAGE") || "en_US";
53626
53696
  this.locale(t2.replace(/[.:].*/, ""));
53627
53697
  }
53628
- [Ct]() {
53698
+ [Mt]() {
53629
53699
  return this[xt]().version || "unknown";
53630
53700
  }
53631
- [jt](t2) {
53701
+ [kt](t2) {
53632
53702
  const e2 = t2["--"] ? t2["--"] : t2._;
53633
53703
  for (let t3, s2 = 0; (t3 = e2[s2]) !== void 0; s2++)
53634
- O(this, ht).Parser.looksLikeNumber(t3) && Number.isSafeInteger(Math.floor(parseFloat(`${t3}`))) && (e2[s2] = Number(t3));
53704
+ v(this, ct, "f").Parser.looksLikeNumber(t3) && Number.isSafeInteger(Math.floor(parseFloat(`${t3}`))) && (e2[s2] = Number(t3));
53635
53705
  return t2;
53636
53706
  }
53637
53707
  [xt](t2) {
53638
53708
  const e2 = t2 || "*";
53639
- if (O(this, it)[e2])
53640
- return O(this, it)[e2];
53709
+ if (v(this, ot, "f")[e2])
53710
+ return v(this, ot, "f")[e2];
53641
53711
  let s2 = {};
53642
53712
  try {
53643
- let e3 = t2 || O(this, ht).mainFilename;
53644
- !t2 && O(this, ht).path.extname(e3) && (e3 = O(this, ht).path.dirname(e3));
53645
- const n2 = O(this, ht).findUp(e3, (t3, e4) => e4.includes("package.json") ? "package.json" : void 0);
53646
- u(n2, void 0, O(this, ht)), s2 = JSON.parse(O(this, ht).readFileSync(n2, "utf8"));
53713
+ let e3 = t2 || v(this, ct, "f").mainFilename;
53714
+ !t2 && v(this, ct, "f").path.extname(e3) && (e3 = v(this, ct, "f").path.dirname(e3));
53715
+ const i2 = v(this, ct, "f").findUp(e3, (t3, e4) => e4.includes("package.json") ? "package.json" : void 0);
53716
+ d(i2, void 0, v(this, ct, "f")), s2 = JSON.parse(v(this, ct, "f").readFileSync(i2, "utf8"));
53647
53717
  } catch (t3) {
53648
53718
  }
53649
- return O(this, it)[e2] = s2 || {}, O(this, it)[e2];
53719
+ return v(this, ot, "f")[e2] = s2 || {}, v(this, ot, "f")[e2];
53650
53720
  }
53651
- [_t](t2, e2) {
53721
+ [Et](t2, e2) {
53652
53722
  (e2 = [].concat(e2)).forEach((e3) => {
53653
- e3 = this[St](e3), O(this, Q)[t2].push(e3);
53723
+ e3 = this[$t](e3), v(this, et, "f")[t2].push(e3);
53654
53724
  });
53655
53725
  }
53656
- [Mt](t2, e2, s2, n2) {
53657
- this[Et](t2, e2, s2, n2, (t3, e3, s3) => {
53658
- O(this, Q)[t3][e3] = s3;
53726
+ [At](t2, e2, s2, i2) {
53727
+ this[St](t2, e2, s2, i2, (t3, e3, s3) => {
53728
+ v(this, et, "f")[t3][e3] = s3;
53659
53729
  });
53660
53730
  }
53661
- [kt](t2, e2, s2, n2) {
53662
- this[Et](t2, e2, s2, n2, (t3, e3, s3) => {
53663
- O(this, Q)[t3][e3] = (O(this, Q)[t3][e3] || []).concat(s3);
53731
+ [Pt](t2, e2, s2, i2) {
53732
+ this[St](t2, e2, s2, i2, (t3, e3, s3) => {
53733
+ v(this, et, "f")[t3][e3] = (v(this, et, "f")[t3][e3] || []).concat(s3);
53664
53734
  });
53665
53735
  }
53666
- [Et](t2, e2, s2, n2, i2) {
53736
+ [St](t2, e2, s2, i2, n2) {
53667
53737
  if (Array.isArray(s2))
53668
53738
  s2.forEach((e3) => {
53669
- t2(e3, n2);
53739
+ t2(e3, i2);
53670
53740
  });
53671
53741
  else if (((t3) => typeof t3 == "object")(s2))
53672
- for (const e3 of g(s2))
53742
+ for (const e3 of p(s2))
53673
53743
  t2(e3, s2[e3]);
53674
53744
  else
53675
- i2(e2, this[St](s2), n2);
53745
+ n2(e2, this[$t](s2), i2);
53676
53746
  }
53677
- [St](t2) {
53747
+ [$t](t2) {
53678
53748
  return t2 === "__proto__" ? "___proto___" : t2;
53679
53749
  }
53680
- [$t](t2, e2) {
53681
- return this[Mt](this[$t].bind(this), "key", t2, e2), this;
53682
- }
53683
- [Pt]() {
53684
- var t2, e2, s2, n2, i2, r2, o2, a2, h2, l2, c2, d2;
53685
- const p2 = O(this, G).pop();
53686
- let g2;
53687
- u(p2, void 0, O(this, ht)), t2 = this, e2 = this, s2 = this, n2 = this, i2 = this, r2 = this, o2 = this, a2 = this, h2 = this, l2 = this, c2 = this, d2 = this, { options: { set value(e3) {
53688
- v(t2, Q, e3);
53689
- } }.value, configObjects: g2, exitProcess: { set value(t3) {
53690
- v(e2, T, t3);
53750
+ [It](t2, e2) {
53751
+ return this[At](this[It].bind(this), "key", t2, e2), this;
53752
+ }
53753
+ [Dt]() {
53754
+ var t2, e2, s2, i2, n2, r2, o2, a2, h2, l2, c2, f2;
53755
+ const u2 = v(this, K, "f").pop();
53756
+ let p2;
53757
+ d(u2, void 0, v(this, ct, "f")), t2 = this, e2 = this, s2 = this, i2 = this, n2 = this, r2 = this, o2 = this, a2 = this, h2 = this, l2 = this, c2 = this, f2 = this, { options: { set value(e3) {
53758
+ O(t2, et, e3, "f");
53759
+ } }.value, configObjects: p2, exitProcess: { set value(t3) {
53760
+ O(e2, T, t3, "f");
53691
53761
  } }.value, groups: { set value(t3) {
53692
- v(s2, K, t3);
53762
+ O(s2, Y, t3, "f");
53693
53763
  } }.value, output: { set value(t3) {
53694
- v(n2, X, t3);
53764
+ O(i2, tt, t3, "f");
53695
53765
  } }.value, exitError: { set value(t3) {
53696
- v(i2, V, t3);
53766
+ O(n2, V, t3, "f");
53697
53767
  } }.value, hasOutput: { set value(t3) {
53698
- v(r2, Y, t3);
53768
+ O(r2, J, t3, "f");
53699
53769
  } }.value, parsed: this.parsed, strict: { set value(t3) {
53700
- v(o2, lt, t3);
53770
+ O(o2, ft, t3, "f");
53701
53771
  } }.value, strictCommands: { set value(t3) {
53702
- v(a2, ct, t3);
53772
+ O(a2, dt, t3, "f");
53703
53773
  } }.value, strictOptions: { set value(t3) {
53704
- v(h2, dt, t3);
53774
+ O(h2, ut, t3, "f");
53705
53775
  } }.value, completionCommand: { set value(t3) {
53706
- v(l2, W, t3);
53776
+ O(l2, U, t3, "f");
53707
53777
  } }.value, parseFn: { set value(t3) {
53708
- v(c2, st, t3);
53778
+ O(c2, nt, t3, "f");
53709
53779
  } }.value, parseContext: { set value(t3) {
53710
- v(d2, nt, t3);
53711
- } }.value } = p2, O(this, Q).configObjects = g2, O(this, ut).unfreeze(), O(this, gt).unfreeze(), O(this, q).unfreeze(), O(this, B).unfreeze();
53780
+ O(f2, rt, t3, "f");
53781
+ } }.value } = u2, v(this, et, "f").configObjects = p2, v(this, pt, "f").unfreeze(), v(this, mt, "f").unfreeze(), v(this, z, "f").unfreeze(), v(this, B, "f").unfreeze();
53712
53782
  }
53713
- [At](t2, e2) {
53783
+ [Nt](t2, e2) {
53714
53784
  return j(e2, (e3) => (t2(e3), e3));
53715
53785
  }
53716
53786
  getInternalMethods() {
53717
- return { getCommandInstance: this[It].bind(this), getContext: this[Nt].bind(this), getHasOutput: this[Dt].bind(this), getLoggerInstance: this[zt].bind(this), getParseContext: this[qt].bind(this), getParserConfiguration: this[vt].bind(this), getUsageInstance: this[Ht].bind(this), getValidationInstance: this[Ft].bind(this), hasParseCallback: this[Ut].bind(this), postProcess: this[Wt].bind(this), reset: this[Vt].bind(this), runValidation: this[Tt].bind(this), runYargsParserAndExecuteCommands: this[Rt].bind(this), setHasOutput: this[Gt].bind(this) };
53718
- }
53719
- [It]() {
53720
- return O(this, q);
53787
+ return { getCommandInstance: this[Ht].bind(this), getContext: this[zt].bind(this), getHasOutput: this[qt].bind(this), getLoggerInstance: this[Wt].bind(this), getParseContext: this[Ft].bind(this), getParserConfiguration: this[jt].bind(this), getUsageInstance: this[Ut].bind(this), getValidationInstance: this[Lt].bind(this), hasParseCallback: this[Vt].bind(this), isGlobalContext: this[Gt].bind(this), postProcess: this[Rt].bind(this), reset: this[Kt].bind(this), runValidation: this[Yt].bind(this), runYargsParserAndExecuteCommands: this[Bt].bind(this), setHasOutput: this[Jt].bind(this) };
53721
53788
  }
53722
- [Nt]() {
53723
- return O(this, F);
53724
- }
53725
- [Dt]() {
53726
- return O(this, Y);
53789
+ [Ht]() {
53790
+ return v(this, z, "f");
53727
53791
  }
53728
53792
  [zt]() {
53729
- return O(this, Z);
53793
+ return v(this, W, "f");
53730
53794
  }
53731
53795
  [qt]() {
53732
- return O(this, nt) || {};
53796
+ return v(this, J, "f");
53733
53797
  }
53734
- [Ht]() {
53735
- return O(this, ut);
53798
+ [Wt]() {
53799
+ return v(this, Q, "f");
53736
53800
  }
53737
53801
  [Ft]() {
53738
- return O(this, gt);
53802
+ return v(this, rt, "f") || {};
53739
53803
  }
53740
53804
  [Ut]() {
53741
- return !!O(this, st);
53805
+ return v(this, pt, "f");
53806
+ }
53807
+ [Lt]() {
53808
+ return v(this, mt, "f");
53809
+ }
53810
+ [Vt]() {
53811
+ return !!v(this, nt, "f");
53812
+ }
53813
+ [Gt]() {
53814
+ return v(this, X, "f");
53742
53815
  }
53743
- [Wt](t2, e2, s2, n2) {
53816
+ [Rt](t2, e2, s2, i2) {
53744
53817
  if (s2)
53745
53818
  return t2;
53746
- if (d(t2))
53819
+ if (f(t2))
53747
53820
  return t2;
53748
- e2 || (t2 = this[mt](t2));
53749
- return (this[vt]()["parse-positional-numbers"] || this[vt]()["parse-positional-numbers"] === void 0) && (t2 = this[jt](t2)), n2 && (t2 = C(t2, this, O(this, B).getMiddleware(), false)), t2;
53821
+ e2 || (t2 = this[yt](t2));
53822
+ return (this[jt]()["parse-positional-numbers"] || this[jt]()["parse-positional-numbers"] === void 0) && (t2 = this[kt](t2)), i2 && (t2 = C(t2, this, v(this, B, "f").getMiddleware(), false)), t2;
53750
53823
  }
53751
- [Vt](t2 = {}) {
53752
- v(this, Q, O(this, Q) || {});
53824
+ [Kt](t2 = {}) {
53825
+ O(this, et, v(this, et, "f") || {}, "f");
53753
53826
  const e2 = {};
53754
- e2.local = O(this, Q).local ? O(this, Q).local : [], e2.configObjects = O(this, Q).configObjects ? O(this, Q).configObjects : [];
53827
+ e2.local = v(this, et, "f").local || [], e2.configObjects = v(this, et, "f").configObjects || [];
53755
53828
  const s2 = {};
53756
53829
  e2.local.forEach((e3) => {
53757
53830
  s2[e3] = true, (t2[e3] || []).forEach((t3) => {
53758
53831
  s2[t3] = true;
53759
53832
  });
53760
- }), Object.assign(O(this, rt), Object.keys(O(this, K)).reduce((t3, e3) => {
53761
- const n2 = O(this, K)[e3].filter((t4) => !(t4 in s2));
53762
- return n2.length > 0 && (t3[e3] = n2), t3;
53763
- }, {})), v(this, K, {});
53833
+ }), Object.assign(v(this, at, "f"), Object.keys(v(this, Y, "f")).reduce((t3, e3) => {
53834
+ const i2 = v(this, Y, "f")[e3].filter((t4) => !(t4 in s2));
53835
+ return i2.length > 0 && (t3[e3] = i2), t3;
53836
+ }, {})), O(this, Y, {}, "f");
53764
53837
  return ["array", "boolean", "string", "skipValidation", "count", "normalize", "number", "hiddenOptions"].forEach((t3) => {
53765
- e2[t3] = (O(this, Q)[t3] || []).filter((t4) => !s2[t4]);
53838
+ e2[t3] = (v(this, et, "f")[t3] || []).filter((t4) => !s2[t4]);
53766
53839
  }), ["narg", "key", "alias", "default", "defaultDescription", "config", "choices", "demandedOptions", "demandedCommands", "deprecatedOptions"].forEach((t3) => {
53767
- e2[t3] = m(O(this, Q)[t3], (t4) => !s2[t4]);
53768
- }), e2.envPrefix = O(this, Q).envPrefix, v(this, Q, e2), v(this, ut, O(this, ut) ? O(this, ut).reset(s2) : $(this, O(this, ht))), v(this, gt, O(this, gt) ? O(this, gt).reset(s2) : function(t3, e3, s3) {
53769
- const n2 = s3.y18n.__, i2 = s3.y18n.__n, r2 = { nonOptionCount: function(s4) {
53770
- const n3 = t3.getDemandedCommands(), r3 = s4._.length + (s4["--"] ? s4["--"].length : 0) - t3.getInternalMethods().getContext().commands.length;
53771
- n3._ && (r3 < n3._.min || r3 > n3._.max) && (r3 < n3._.min ? n3._.minMsg !== void 0 ? e3.fail(n3._.minMsg ? n3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, n3._.min.toString()) : null) : e3.fail(i2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), n3._.min.toString())) : r3 > n3._.max && (n3._.maxMsg !== void 0 ? e3.fail(n3._.maxMsg ? n3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, n3._.max.toString()) : null) : e3.fail(i2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), n3._.max.toString()))));
53840
+ e2[t3] = g(v(this, et, "f")[t3], (t4) => !s2[t4]);
53841
+ }), e2.envPrefix = v(this, et, "f").envPrefix, O(this, et, e2, "f"), O(this, pt, v(this, pt, "f") ? v(this, pt, "f").reset(s2) : P(this, v(this, ct, "f")), "f"), O(this, mt, v(this, mt, "f") ? v(this, mt, "f").reset(s2) : function(t3, e3, s3) {
53842
+ const i2 = s3.y18n.__, n2 = s3.y18n.__n, r2 = { nonOptionCount: function(s4) {
53843
+ const i3 = t3.getDemandedCommands(), r3 = s4._.length + (s4["--"] ? s4["--"].length : 0) - t3.getInternalMethods().getContext().commands.length;
53844
+ i3._ && (r3 < i3._.min || r3 > i3._.max) && (r3 < i3._.min ? i3._.minMsg !== void 0 ? e3.fail(i3._.minMsg ? i3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.min.toString()) : null) : e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), i3._.min.toString())) : r3 > i3._.max && (i3._.maxMsg !== void 0 ? e3.fail(i3._.maxMsg ? i3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.max.toString()) : null) : e3.fail(n2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), i3._.max.toString()))));
53772
53845
  }, positionalCount: function(t4, s4) {
53773
- s4 < t4 && e3.fail(i2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", s4, s4 + "", t4 + ""));
53846
+ s4 < t4 && e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", s4, s4 + "", t4 + ""));
53774
53847
  }, requiredArguments: function(t4, s4) {
53775
- let n3 = null;
53848
+ let i3 = null;
53776
53849
  for (const e4 of Object.keys(s4))
53777
- Object.prototype.hasOwnProperty.call(t4, e4) && t4[e4] !== void 0 || (n3 = n3 || {}, n3[e4] = s4[e4]);
53778
- if (n3) {
53850
+ Object.prototype.hasOwnProperty.call(t4, e4) && t4[e4] !== void 0 || (i3 = i3 || {}, i3[e4] = s4[e4]);
53851
+ if (i3) {
53779
53852
  const t5 = [];
53780
- for (const e4 of Object.keys(n3)) {
53781
- const s6 = n3[e4];
53853
+ for (const e4 of Object.keys(i3)) {
53854
+ const s6 = i3[e4];
53782
53855
  s6 && t5.indexOf(s6) < 0 && t5.push(s6);
53783
53856
  }
53784
53857
  const s5 = t5.length ? `
53785
53858
  ${t5.join("\n")}` : "";
53786
- e3.fail(i2("Missing required argument: %s", "Missing required arguments: %s", Object.keys(n3).length, Object.keys(n3).join(", ") + s5));
53787
- }
53788
- }, unknownArguments: function(s4, n3, o3, a3, h2 = true) {
53789
- const l3 = t3.getInternalMethods().getCommandInstance().getCommands(), c3 = [], d2 = t3.getInternalMethods().getContext();
53790
- Object.keys(s4).forEach((e4) => {
53791
- z.indexOf(e4) !== -1 || Object.prototype.hasOwnProperty.call(o3, e4) || Object.prototype.hasOwnProperty.call(t3.getInternalMethods().getParseContext(), e4) || r2.isValidAndSomeAliasIsNotNew(e4, n3) || c3.push(e4);
53792
- }), h2 && (d2.commands.length > 0 || l3.length > 0 || a3) && s4._.slice(d2.commands.length).forEach((t4) => {
53793
- l3.indexOf("" + t4) === -1 && c3.push("" + t4);
53794
- }), c3.length > 0 && e3.fail(i2("Unknown argument: %s", "Unknown arguments: %s", c3.length, c3.join(", ")));
53859
+ e3.fail(n2("Missing required argument: %s", "Missing required arguments: %s", Object.keys(i3).length, Object.keys(i3).join(", ") + s5));
53860
+ }
53861
+ }, unknownArguments: function(s4, i3, o3, a3, h2 = true) {
53862
+ var l3;
53863
+ const c3 = t3.getInternalMethods().getCommandInstance().getCommands(), f2 = [], d2 = t3.getInternalMethods().getContext();
53864
+ if (Object.keys(s4).forEach((e4) => {
53865
+ H.includes(e4) || Object.prototype.hasOwnProperty.call(o3, e4) || Object.prototype.hasOwnProperty.call(t3.getInternalMethods().getParseContext(), e4) || r2.isValidAndSomeAliasIsNotNew(e4, i3) || f2.push(e4);
53866
+ }), h2 && (d2.commands.length > 0 || c3.length > 0 || a3) && s4._.slice(d2.commands.length).forEach((t4) => {
53867
+ c3.includes("" + t4) || f2.push("" + t4);
53868
+ }), h2) {
53869
+ const e4 = ((l3 = t3.getDemandedCommands()._) === null || l3 === void 0 ? void 0 : l3.max) || 0, i4 = d2.commands.length + e4;
53870
+ i4 < s4._.length && s4._.slice(i4).forEach((t4) => {
53871
+ t4 = String(t4), d2.commands.includes(t4) || f2.includes(t4) || f2.push(t4);
53872
+ });
53873
+ }
53874
+ f2.length && e3.fail(n2("Unknown argument: %s", "Unknown arguments: %s", f2.length, f2.map((t4) => t4.trim() ? t4 : `"${t4}"`).join(", ")));
53795
53875
  }, unknownCommands: function(s4) {
53796
- const n3 = t3.getInternalMethods().getCommandInstance().getCommands(), r3 = [], o3 = t3.getInternalMethods().getContext();
53797
- return (o3.commands.length > 0 || n3.length > 0) && s4._.slice(o3.commands.length).forEach((t4) => {
53798
- n3.indexOf("" + t4) === -1 && r3.push("" + t4);
53799
- }), r3.length > 0 && (e3.fail(i2("Unknown command: %s", "Unknown commands: %s", r3.length, r3.join(", "))), true);
53876
+ const i3 = t3.getInternalMethods().getCommandInstance().getCommands(), r3 = [], o3 = t3.getInternalMethods().getContext();
53877
+ return (o3.commands.length > 0 || i3.length > 0) && s4._.slice(o3.commands.length).forEach((t4) => {
53878
+ i3.includes("" + t4) || r3.push("" + t4);
53879
+ }), r3.length > 0 && (e3.fail(n2("Unknown command: %s", "Unknown commands: %s", r3.length, r3.join(", "))), true);
53800
53880
  }, isValidAndSomeAliasIsNotNew: function(e4, s4) {
53801
53881
  if (!Object.prototype.hasOwnProperty.call(s4, e4))
53802
53882
  return false;
53803
- const n3 = t3.parsed.newAliases;
53804
- return [e4, ...s4[e4]].some((t4) => !Object.prototype.hasOwnProperty.call(n3, t4) || !n3[e4]);
53883
+ const i3 = t3.parsed.newAliases;
53884
+ return [e4, ...s4[e4]].some((t4) => !Object.prototype.hasOwnProperty.call(i3, t4) || !i3[e4]);
53805
53885
  }, limitedChoices: function(s4) {
53806
- const i3 = t3.getOptions(), r3 = {};
53807
- if (!Object.keys(i3.choices).length)
53886
+ const n3 = t3.getOptions(), r3 = {};
53887
+ if (!Object.keys(n3.choices).length)
53808
53888
  return;
53809
53889
  Object.keys(s4).forEach((t4) => {
53810
- z.indexOf(t4) === -1 && Object.prototype.hasOwnProperty.call(i3.choices, t4) && [].concat(s4[t4]).forEach((e4) => {
53811
- i3.choices[t4].indexOf(e4) === -1 && e4 !== void 0 && (r3[t4] = (r3[t4] || []).concat(e4));
53890
+ H.indexOf(t4) === -1 && Object.prototype.hasOwnProperty.call(n3.choices, t4) && [].concat(s4[t4]).forEach((e4) => {
53891
+ n3.choices[t4].indexOf(e4) === -1 && e4 !== void 0 && (r3[t4] = (r3[t4] || []).concat(e4));
53812
53892
  });
53813
53893
  });
53814
53894
  const o3 = Object.keys(r3);
53815
53895
  if (!o3.length)
53816
53896
  return;
53817
- let a3 = n2("Invalid values:");
53897
+ let a3 = i2("Invalid values:");
53818
53898
  o3.forEach((t4) => {
53819
53899
  a3 += `
53820
- ${n2("Argument: %s, Given: %s, Choices: %s", t4, e3.stringifiedValues(r3[t4]), e3.stringifiedValues(i3.choices[t4]))}`;
53900
+ ${i2("Argument: %s, Given: %s, Choices: %s", t4, e3.stringifiedValues(r3[t4]), e3.stringifiedValues(n3.choices[t4]))}`;
53821
53901
  }), e3.fail(a3);
53822
53902
  } };
53823
53903
  let o2 = {};
53824
53904
  function a2(t4, e4) {
53825
53905
  const s4 = Number(e4);
53826
- return typeof (e4 = isNaN(s4) ? e4 : s4) == "number" ? t4._.length >= e4 : e4.match(/^--no-.+/) ? !t4[e4 = e4.match(/^--no-(.+)/)[1]] : t4[e4];
53906
+ return typeof (e4 = isNaN(s4) ? e4 : s4) == "number" ? e4 = t4._.length >= e4 : e4.match(/^--no-.+/) ? (e4 = e4.match(/^--no-(.+)/)[1], e4 = !Object.prototype.hasOwnProperty.call(t4, e4)) : e4 = Object.prototype.hasOwnProperty.call(t4, e4), e4;
53827
53907
  }
53828
- r2.implies = function(e4, n3) {
53829
- h("<string|object> [array|number|string]", [e4, n3], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
53908
+ r2.implies = function(e4, i3) {
53909
+ h("<string|object> [array|number|string]", [e4, i3], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
53830
53910
  r2.implies(t4, e4[t4]);
53831
- }) : (t3.global(e4), o2[e4] || (o2[e4] = []), Array.isArray(n3) ? n3.forEach((t4) => r2.implies(e4, t4)) : (u(n3, void 0, s3), o2[e4].push(n3)));
53911
+ }) : (t3.global(e4), o2[e4] || (o2[e4] = []), Array.isArray(i3) ? i3.forEach((t4) => r2.implies(e4, t4)) : (d(i3, void 0, s3), o2[e4].push(i3)));
53832
53912
  }, r2.getImplied = function() {
53833
53913
  return o2;
53834
53914
  }, r2.implications = function(t4) {
53835
53915
  const s4 = [];
53836
53916
  if (Object.keys(o2).forEach((e4) => {
53837
- const n3 = e4;
53917
+ const i3 = e4;
53838
53918
  (o2[e4] || []).forEach((e5) => {
53839
- let i3 = n3;
53919
+ let n3 = i3;
53840
53920
  const r3 = e5;
53841
- i3 = a2(t4, i3), e5 = a2(t4, e5), i3 && !e5 && s4.push(` ${n3} -> ${r3}`);
53921
+ n3 = a2(t4, n3), e5 = a2(t4, e5), n3 && !e5 && s4.push(` ${i3} -> ${r3}`);
53842
53922
  });
53843
53923
  }), s4.length) {
53844
- let t5 = `${n2("Implications failed:")}
53924
+ let t5 = `${i2("Implications failed:")}
53845
53925
  `;
53846
53926
  s4.forEach((e4) => {
53847
53927
  t5 += e4;
@@ -53853,141 +53933,152 @@ ${t5.join("\n")}` : "";
53853
53933
  h("<string|object> [array|string]", [e4, s4], arguments.length), typeof e4 == "object" ? Object.keys(e4).forEach((t4) => {
53854
53934
  r2.conflicts(t4, e4[t4]);
53855
53935
  }) : (t3.global(e4), l2[e4] || (l2[e4] = []), Array.isArray(s4) ? s4.forEach((t4) => r2.conflicts(e4, t4)) : l2[e4].push(s4));
53856
- }, r2.getConflicting = () => l2, r2.conflicting = function(t4) {
53857
- Object.keys(t4).forEach((s4) => {
53858
- l2[s4] && l2[s4].forEach((i3) => {
53859
- i3 && t4[s4] !== void 0 && t4[i3] !== void 0 && e3.fail(n2("Arguments %s and %s are mutually exclusive", s4, i3));
53936
+ }, r2.getConflicting = () => l2, r2.conflicting = function(n3) {
53937
+ Object.keys(n3).forEach((t4) => {
53938
+ l2[t4] && l2[t4].forEach((s4) => {
53939
+ s4 && n3[t4] !== void 0 && n3[s4] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, s4));
53940
+ });
53941
+ }), t3.getInternalMethods().getParserConfiguration()["strip-dashed"] && Object.keys(l2).forEach((t4) => {
53942
+ l2[t4].forEach((r3) => {
53943
+ r3 && n3[s3.Parser.camelCase(t4)] !== void 0 && n3[s3.Parser.camelCase(r3)] !== void 0 && e3.fail(i2("Arguments %s and %s are mutually exclusive", t4, r3));
53860
53944
  });
53861
53945
  });
53862
53946
  }, r2.recommendCommands = function(t4, s4) {
53863
53947
  s4 = s4.sort((t5, e4) => e4.length - t5.length);
53864
- let i3 = null, r3 = 1 / 0;
53865
- for (let e4, n3 = 0; (e4 = s4[n3]) !== void 0; n3++) {
53866
- const s5 = D(t4, e4);
53867
- s5 <= 3 && s5 < r3 && (r3 = s5, i3 = e4);
53948
+ let n3 = null, r3 = 1 / 0;
53949
+ for (let e4, i3 = 0; (e4 = s4[i3]) !== void 0; i3++) {
53950
+ const s5 = N(t4, e4);
53951
+ s5 <= 3 && s5 < r3 && (r3 = s5, n3 = e4);
53868
53952
  }
53869
- i3 && e3.fail(n2("Did you mean %s?", i3));
53953
+ n3 && e3.fail(i2("Did you mean %s?", n3));
53870
53954
  }, r2.reset = function(t4) {
53871
- return o2 = m(o2, (e4) => !t4[e4]), l2 = m(l2, (e4) => !t4[e4]), r2;
53955
+ return o2 = g(o2, (e4) => !t4[e4]), l2 = g(l2, (e4) => !t4[e4]), r2;
53872
53956
  };
53873
53957
  const c2 = [];
53874
53958
  return r2.freeze = function() {
53875
53959
  c2.push({ implied: o2, conflicting: l2 });
53876
53960
  }, r2.unfreeze = function() {
53877
53961
  const t4 = c2.pop();
53878
- u(t4, void 0, s3), { implied: o2, conflicting: l2 } = t4;
53962
+ d(t4, void 0, s3), { implied: o2, conflicting: l2 } = t4;
53879
53963
  }, r2;
53880
- }(this, O(this, ut), O(this, ht))), v(this, q, O(this, q) ? O(this, q).reset() : function(t3, e3, s3, n2) {
53881
- return new _(t3, e3, s3, n2);
53882
- }(O(this, ut), O(this, gt), O(this, B), O(this, ht))), O(this, U) || v(this, U, function(t3, e3, s3, n2) {
53883
- return new N(t3, e3, s3, n2);
53884
- }(this, O(this, ut), O(this, q), O(this, ht))), O(this, B).reset(), v(this, W, null), v(this, X, ""), v(this, V, null), v(this, Y, false), this.parsed = false, this;
53885
- }
53886
- [Lt](t2, e2) {
53887
- return O(this, ht).path.relative(t2, e2);
53888
- }
53889
- [Rt](t2, s2, n2, i2 = 0, r2 = false) {
53890
- let o2 = !!n2 || r2;
53891
- t2 = t2 || O(this, ot), O(this, Q).__ = O(this, ht).y18n.__, O(this, Q).configuration = this[vt]();
53892
- const a2 = !!O(this, Q).configuration["populate--"], h2 = Object.assign({}, O(this, Q).configuration, { "populate--": true }), l2 = O(this, ht).Parser.detailed(t2, Object.assign({}, O(this, Q), { configuration: __spreadValues({ "parse-positional-numbers": false }, h2) })), c2 = Object.assign(l2.argv, O(this, nt));
53893
- let u2;
53894
- const p2 = l2.aliases;
53895
- let g2 = false, m2 = false;
53964
+ }(this, v(this, pt, "f"), v(this, ct, "f")), "f"), O(this, z, v(this, z, "f") ? v(this, z, "f").reset() : function(t3, e3, s3, i2) {
53965
+ return new M(t3, e3, s3, i2);
53966
+ }(v(this, pt, "f"), v(this, mt, "f"), v(this, B, "f"), v(this, ct, "f")), "f"), v(this, F, "f") || O(this, F, function(t3, e3, s3, i2) {
53967
+ return new D(t3, e3, s3, i2);
53968
+ }(this, v(this, pt, "f"), v(this, z, "f"), v(this, ct, "f")), "f"), v(this, B, "f").reset(), O(this, U, null, "f"), O(this, tt, "", "f"), O(this, V, null, "f"), O(this, J, false, "f"), this.parsed = false, this;
53969
+ }
53970
+ [Tt](t2, e2) {
53971
+ return v(this, ct, "f").path.relative(t2, e2);
53972
+ }
53973
+ [Bt](t2, s2, i2, n2 = 0, r2 = false) {
53974
+ let o2 = !!i2 || r2;
53975
+ t2 = t2 || v(this, ht, "f"), v(this, et, "f").__ = v(this, ct, "f").y18n.__, v(this, et, "f").configuration = this[jt]();
53976
+ const a2 = !!v(this, et, "f").configuration["populate--"], h2 = Object.assign({}, v(this, et, "f").configuration, { "populate--": true }), l2 = v(this, ct, "f").Parser.detailed(t2, Object.assign({}, v(this, et, "f"), { configuration: __spreadValues({ "parse-positional-numbers": false }, h2) })), c2 = Object.assign(l2.argv, v(this, rt, "f"));
53977
+ let d2;
53978
+ const u2 = l2.aliases;
53979
+ let p2 = false, g2 = false;
53896
53980
  Object.keys(c2).forEach((t3) => {
53897
- t3 === O(this, J) && c2[t3] ? g2 = true : t3 === O(this, pt) && c2[t3] && (m2 = true);
53898
- }), c2.$0 = this.$0, this.parsed = l2, i2 === 0 && O(this, ut).clearCachedHelpMessage();
53981
+ t3 === v(this, Z, "f") && c2[t3] ? p2 = true : t3 === v(this, gt, "f") && c2[t3] && (g2 = true);
53982
+ }), c2.$0 = this.$0, this.parsed = l2, n2 === 0 && v(this, pt, "f").clearCachedHelpMessage();
53899
53983
  try {
53900
- if (this[wt](), s2)
53901
- return this[Wt](c2, a2, !!n2, false);
53902
- if (O(this, J)) {
53903
- ~[O(this, J)].concat(p2[O(this, J)] || []).filter((t3) => t3.length > 1).indexOf("" + c2._[c2._.length - 1]) && (c2._.pop(), g2 = true);
53984
+ if (this[_t](), s2)
53985
+ return this[Rt](c2, a2, !!i2, false);
53986
+ if (v(this, Z, "f")) {
53987
+ [v(this, Z, "f")].concat(u2[v(this, Z, "f")] || []).filter((t3) => t3.length > 1).includes("" + c2._[c2._.length - 1]) && (c2._.pop(), p2 = true);
53904
53988
  }
53905
- const h3 = O(this, q).getCommands(), f2 = O(this, U).completionKey in c2, y2 = g2 || f2 || r2;
53989
+ O(this, X, false, "f");
53990
+ const h3 = v(this, z, "f").getCommands(), m2 = v(this, F, "f").completionKey in c2, y2 = p2 || m2 || r2;
53906
53991
  if (c2._.length) {
53907
53992
  if (h3.length) {
53908
53993
  let t3;
53909
- for (let e2, s3 = i2 || 0; c2._[s3] !== void 0; s3++) {
53910
- if (e2 = String(c2._[s3]), ~h3.indexOf(e2) && e2 !== O(this, W)) {
53911
- const t4 = O(this, q).runCommand(e2, this, l2, s3 + 1, r2, g2 || m2 || r2);
53912
- return this[Wt](t4, a2, !!n2, false);
53994
+ for (let e2, s3 = n2 || 0; c2._[s3] !== void 0; s3++) {
53995
+ if (e2 = String(c2._[s3]), h3.includes(e2) && e2 !== v(this, U, "f")) {
53996
+ const t4 = v(this, z, "f").runCommand(e2, this, l2, s3 + 1, r2, p2 || g2 || r2);
53997
+ return this[Rt](t4, a2, !!i2, false);
53913
53998
  }
53914
- if (!t3 && e2 !== O(this, W)) {
53999
+ if (!t3 && e2 !== v(this, U, "f")) {
53915
54000
  t3 = e2;
53916
54001
  break;
53917
54002
  }
53918
54003
  }
53919
- !O(this, q).hasDefaultCommand() && O(this, at) && t3 && !y2 && O(this, gt).recommendCommands(t3, h3);
54004
+ !v(this, z, "f").hasDefaultCommand() && v(this, lt, "f") && t3 && !y2 && v(this, mt, "f").recommendCommands(t3, h3);
53920
54005
  }
53921
- O(this, W) && ~c2._.indexOf(O(this, W)) && !f2 && (O(this, T) && E(true), this.showCompletionScript(), this.exit(0));
54006
+ v(this, U, "f") && c2._.includes(v(this, U, "f")) && !m2 && (v(this, T, "f") && E(true), this.showCompletionScript(), this.exit(0));
53922
54007
  }
53923
- if (O(this, q).hasDefaultCommand() && !y2) {
53924
- const t3 = O(this, q).runCommand(null, this, l2, 0, r2, g2 || m2 || r2);
53925
- return this[Wt](t3, a2, !!n2, false);
54008
+ if (v(this, z, "f").hasDefaultCommand() && !y2) {
54009
+ const t3 = v(this, z, "f").runCommand(null, this, l2, 0, r2, p2 || g2 || r2);
54010
+ return this[Rt](t3, a2, !!i2, false);
53926
54011
  }
53927
- if (f2) {
53928
- O(this, T) && E(true);
53929
- const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${O(this, U).completionKey}`) + 1);
53930
- return O(this, U).getCompletion(s3, (t3, s4) => {
54012
+ if (m2) {
54013
+ v(this, T, "f") && E(true);
54014
+ const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${v(this, F, "f").completionKey}`) + 1);
54015
+ return v(this, F, "f").getCompletion(s3, (t3, s4) => {
53931
54016
  if (t3)
53932
54017
  throw new e(t3.message);
53933
54018
  (s4 || []).forEach((t4) => {
53934
- O(this, Z).log(t4);
54019
+ v(this, Q, "f").log(t4);
53935
54020
  }), this.exit(0);
53936
- }), this[Wt](c2, !a2, !!n2, false);
54021
+ }), this[Rt](c2, !a2, !!i2, false);
53937
54022
  }
53938
- if (O(this, Y) || (g2 ? (O(this, T) && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : m2 && (O(this, T) && E(true), o2 = true, O(this, ut).showVersion("log"), this.exit(0))), !o2 && O(this, Q).skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => O(this, Q).skipValidation.indexOf(t3) >= 0 && c2[t3] === true)), !o2) {
54023
+ if (v(this, J, "f") || (p2 ? (v(this, T, "f") && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : g2 && (v(this, T, "f") && E(true), o2 = true, v(this, pt, "f").showVersion("log"), this.exit(0))), !o2 && v(this, et, "f").skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => v(this, et, "f").skipValidation.indexOf(t3) >= 0 && c2[t3] === true)), !o2) {
53939
54024
  if (l2.error)
53940
54025
  throw new e(l2.error.message);
53941
- if (!f2) {
53942
- const t3 = this[Tt](p2, {}, l2.error);
53943
- n2 || (u2 = C(c2, this, O(this, B).getMiddleware(), true)), u2 = this[At](t3, u2 != null ? u2 : c2), d(u2) && !n2 && (u2 = u2.then(() => C(c2, this, O(this, B).getMiddleware(), false)));
54026
+ if (!m2) {
54027
+ const t3 = this[Yt](u2, {}, l2.error);
54028
+ i2 || (d2 = C(c2, this, v(this, B, "f").getMiddleware(), true)), d2 = this[Nt](t3, d2 != null ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, B, "f").getMiddleware(), false)));
53944
54029
  }
53945
54030
  }
53946
54031
  } catch (t3) {
53947
54032
  if (!(t3 instanceof e))
53948
54033
  throw t3;
53949
- O(this, ut).fail(t3.message, t3);
54034
+ v(this, pt, "f").fail(t3.message, t3);
53950
54035
  }
53951
- return this[Wt](u2 != null ? u2 : c2, a2, !!n2, true);
54036
+ return this[Rt](d2 != null ? d2 : c2, a2, !!i2, true);
53952
54037
  }
53953
- [Tt](t2, s2, n2, i2) {
53954
- t2 = __spreadValues({}, t2), s2 = __spreadValues({}, s2);
54038
+ [Yt](t2, s2, i2, n2) {
53955
54039
  const r2 = __spreadValues({}, this.getDemandedOptions());
53956
54040
  return (o2) => {
53957
- if (n2)
53958
- throw new e(n2.message);
53959
- O(this, gt).nonOptionCount(o2), O(this, gt).requiredArguments(o2, r2);
54041
+ if (i2)
54042
+ throw new e(i2.message);
54043
+ v(this, mt, "f").nonOptionCount(o2), v(this, mt, "f").requiredArguments(o2, r2);
53960
54044
  let a2 = false;
53961
- O(this, ct) && (a2 = O(this, gt).unknownCommands(o2)), O(this, lt) && !a2 ? O(this, gt).unknownArguments(o2, t2, s2, !!i2) : O(this, dt) && O(this, gt).unknownArguments(o2, t2, {}, false, false), O(this, gt).limitedChoices(o2), O(this, gt).implications(o2), O(this, gt).conflicting(o2);
54045
+ v(this, dt, "f") && (a2 = v(this, mt, "f").unknownCommands(o2)), v(this, ft, "f") && !a2 ? v(this, mt, "f").unknownArguments(o2, t2, s2, !!n2) : v(this, ut, "f") && v(this, mt, "f").unknownArguments(o2, t2, {}, false, false), v(this, mt, "f").limitedChoices(o2), v(this, mt, "f").implications(o2), v(this, mt, "f").conflicting(o2);
53962
54046
  };
53963
54047
  }
53964
- [Gt]() {
53965
- v(this, Y, true);
53966
- }
53967
- };
53968
- var Kt;
53969
- var Yt;
53970
- var { readFileSync: Jt } = require("fs");
53971
- var { inspect: Zt } = require("util");
53972
- var { resolve: Xt } = require("path");
53973
- var Qt = require_build5();
53974
- var te = require_build6();
53975
- var ee;
53976
- var se = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: Zt, mainFilename: (Yt = (Kt = require === null || require === void 0 ? void 0 : require.main) === null || Kt === void 0 ? void 0 : Kt.filename) !== null && Yt !== void 0 ? Yt : process.cwd(), Parser: te, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, execPath: () => process.execPath, exit: (t2) => {
54048
+ [Jt]() {
54049
+ O(this, J, true, "f");
54050
+ }
54051
+ [Zt](t2) {
54052
+ if (typeof t2 == "string")
54053
+ v(this, et, "f").key[t2] = true;
54054
+ else
54055
+ for (const e2 of t2)
54056
+ v(this, et, "f").key[e2] = true;
54057
+ }
54058
+ };
54059
+ var Qt;
54060
+ var te;
54061
+ var { readFileSync: ee } = require("fs");
54062
+ var { inspect: se } = require("util");
54063
+ var { resolve: ie } = require("path");
54064
+ var ne = require_build5();
54065
+ var re = require_build6();
54066
+ var oe;
54067
+ var ae = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: se, mainFilename: (te = (Qt = require === null || require === void 0 ? void 0 : require.main) === null || Qt === void 0 ? void 0 : Qt.filename) !== null && te !== void 0 ? te : process.cwd(), Parser: re, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
53977
54068
  process.exit(t2);
53978
- }, nextTick: process.nextTick, stdColumns: process.stdout.columns !== void 0 ? process.stdout.columns : null }, readFileSync: Jt, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: Qt({ directory: Xt(__dirname, "../locales"), updateFiles: false }) };
53979
- var ne = ((ee = process === null || process === void 0 ? void 0 : process.env) === null || ee === void 0 ? void 0 : ee.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
54069
+ }, nextTick: process.nextTick, stdColumns: process.stdout.columns !== void 0 ? process.stdout.columns : null }, readFileSync: ee, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: ne({ directory: ie(__dirname, "../locales"), updateFiles: false }) };
54070
+ var he = ((oe = process === null || process === void 0 ? void 0 : process.env) === null || oe === void 0 ? void 0 : oe.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
53980
54071
  if (process && process.version) {
53981
- if (Number(process.version.match(/v([^.]+)/)[1]) < ne)
53982
- throw Error(`yargs supports a minimum Node.js version of ${ne}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
54072
+ if (Number(process.version.match(/v([^.]+)/)[1]) < he)
54073
+ throw Error(`yargs supports a minimum Node.js version of ${he}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
53983
54074
  }
53984
- var ie = require_build6();
53985
- var re;
53986
- var oe = { applyExtends: i, cjsPlatformShim: se, Yargs: (re = se, (t2 = [], e2 = re.process.cwd(), s2) => {
53987
- const n2 = new Bt(t2, e2, s2, re);
53988
- return Object.defineProperty(n2, "argv", { get: () => n2.parse(), enumerable: true }), n2.help(), n2.version(), n2;
53989
- }), argsert: h, isPromise: d, objFilter: m, parseCommand: o, Parser: ie, processArgv: b, YError: e };
53990
- module2.exports = oe;
54075
+ var le = require_build6();
54076
+ var ce;
54077
+ var fe = { applyExtends: n, cjsPlatformShim: ae, Yargs: (ce = ae, (t2 = [], e2 = ce.process.cwd(), s2) => {
54078
+ const i2 = new Xt(t2, e2, s2, ce);
54079
+ return Object.defineProperty(i2, "argv", { get: () => i2.parse(), enumerable: true }), i2.help(), i2.version(), i2;
54080
+ }), argsert: h, isPromise: f, objFilter: g, parseCommand: o, Parser: le, processArgv: b, YError: e };
54081
+ module2.exports = fe;
53991
54082
  }
53992
54083
  });
53993
54084
 
@@ -54003,22 +54094,31 @@ var require_yargs = __commonJS({
54003
54094
  singletonify(argv);
54004
54095
  return argv;
54005
54096
  }
54097
+ function defineGetter(obj, key, getter) {
54098
+ Object.defineProperty(obj, key, {
54099
+ configurable: true,
54100
+ enumerable: true,
54101
+ get: getter
54102
+ });
54103
+ }
54104
+ function lookupGetter(obj, key) {
54105
+ const desc = Object.getOwnPropertyDescriptor(obj, key);
54106
+ if (typeof desc !== "undefined") {
54107
+ return desc.get;
54108
+ }
54109
+ }
54006
54110
  function singletonify(inst) {
54007
54111
  [
54008
54112
  ...Object.keys(inst),
54009
54113
  ...Object.getOwnPropertyNames(inst.constructor.prototype)
54010
54114
  ].forEach((key) => {
54011
54115
  if (key === "argv") {
54012
- Argv.__defineGetter__(key, inst.__lookupGetter__(key));
54116
+ defineGetter(Argv, key, lookupGetter(inst, key));
54013
54117
  } else if (typeof inst[key] === "function") {
54014
54118
  Argv[key] = inst[key].bind(inst);
54015
54119
  } else {
54016
- Argv.__defineGetter__("$0", () => {
54017
- return inst.$0;
54018
- });
54019
- Argv.__defineGetter__("parsed", () => {
54020
- return inst.parsed;
54021
- });
54120
+ defineGetter(Argv, "$0", () => inst.$0);
54121
+ defineGetter(Argv, "parsed", () => inst.parsed);
54022
54122
  }
54023
54123
  });
54024
54124
  }
@@ -54030,6 +54130,7 @@ var cli_exports = {};
54030
54130
  __export(cli_exports, {
54031
54131
  main: () => main
54032
54132
  });
54133
+ module.exports = __toCommonJS(cli_exports);
54033
54134
  var import_chalk3 = __toESM(require_source());
54034
54135
  var import_is_git_clean = __toESM(require_is_git_clean());
54035
54136
 
@@ -54797,7 +54898,7 @@ var upgrades = [
54797
54898
  // package.json
54798
54899
  var name = "@carbon/upgrade";
54799
54900
  var description = "A tool for upgrading Carbon versions";
54800
- var version = "11.0.0";
54901
+ var version = "11.1.0-rc.0";
54801
54902
  var license = "Apache-2.0";
54802
54903
  var bin = {
54803
54904
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -54840,7 +54941,7 @@ var devDependencies = {
54840
54941
  "fs-extra": "^10.0.0",
54841
54942
  inquirer: "^8.1.0",
54842
54943
  "is-git-clean": "^1.1.0",
54843
- "jest-diff": "^27.4.6",
54944
+ "jest-diff": "^28.1.0",
54844
54945
  jscodeshift: "^0.13.1",
54845
54946
  "lodash.clonedeep": "^4.5.0",
54846
54947
  "lodash.merge": "^4.6.2",
@@ -54947,7 +55048,6 @@ function run3(command, ignoreSafetyChecks = false) {
54947
55048
  }
54948
55049
  };
54949
55050
  }
54950
- module.exports = __toCommonJS(cli_exports);
54951
55051
  // Annotate the CommonJS export names for ESM import in node:
54952
55052
  0 && (module.exports = {
54953
55053
  main