@minecraft/core-build-tasks 5.0.0 → 5.2.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.
package/lib/index.js CHANGED
@@ -101,8 +101,8 @@ var require_package = __commonJS({
101
101
  var require_main = __commonJS({
102
102
  "../../node_modules/dotenv/lib/main.js"(exports, module) {
103
103
  "use strict";
104
- var fs3 = __require("fs");
105
- var path9 = __require("path");
104
+ var fs4 = __require("fs");
105
+ var path10 = __require("path");
106
106
  var os = __require("os");
107
107
  var crypto = __require("crypto");
108
108
  var packageJson = require_package();
@@ -208,7 +208,7 @@ var require_main = __commonJS({
208
208
  if (options && options.path && options.path.length > 0) {
209
209
  if (Array.isArray(options.path)) {
210
210
  for (const filepath of options.path) {
211
- if (fs3.existsSync(filepath)) {
211
+ if (fs4.existsSync(filepath)) {
212
212
  possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
213
213
  }
214
214
  }
@@ -216,15 +216,15 @@ var require_main = __commonJS({
216
216
  possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
217
217
  }
218
218
  } else {
219
- possibleVaultPath = path9.resolve(process.cwd(), ".env.vault");
219
+ possibleVaultPath = path10.resolve(process.cwd(), ".env.vault");
220
220
  }
221
- if (fs3.existsSync(possibleVaultPath)) {
221
+ if (fs4.existsSync(possibleVaultPath)) {
222
222
  return possibleVaultPath;
223
223
  }
224
224
  return null;
225
225
  }
226
226
  function _resolveHome(envPath) {
227
- return envPath[0] === "~" ? path9.join(os.homedir(), envPath.slice(1)) : envPath;
227
+ return envPath[0] === "~" ? path10.join(os.homedir(), envPath.slice(1)) : envPath;
228
228
  }
229
229
  function _configVault(options) {
230
230
  _log("Loading env from encrypted .env.vault");
@@ -237,7 +237,7 @@ var require_main = __commonJS({
237
237
  return { parsed };
238
238
  }
239
239
  function configDotenv(options) {
240
- const dotenvPath = path9.resolve(process.cwd(), ".env");
240
+ const dotenvPath = path10.resolve(process.cwd(), ".env");
241
241
  let encoding = "utf8";
242
242
  const debug = Boolean(options && options.debug);
243
243
  if (options && options.encoding) {
@@ -260,13 +260,13 @@ var require_main = __commonJS({
260
260
  }
261
261
  let lastError;
262
262
  const parsedAll = {};
263
- for (const path10 of optionPaths) {
263
+ for (const path11 of optionPaths) {
264
264
  try {
265
- const parsed = DotenvModule.parse(fs3.readFileSync(path10, { encoding }));
265
+ const parsed = DotenvModule.parse(fs4.readFileSync(path11, { encoding }));
266
266
  DotenvModule.populate(parsedAll, parsed, options);
267
267
  } catch (e) {
268
268
  if (debug) {
269
- _debug(`Failed to load ${path10} ${e.message}`);
269
+ _debug(`Failed to load ${path11} ${e.message}`);
270
270
  }
271
271
  lastError = e;
272
272
  }
@@ -371,7 +371,7 @@ var require_old = __commonJS({
371
371
  "use strict";
372
372
  var pathModule = __require("path");
373
373
  var isWindows = process.platform === "win32";
374
- var fs3 = __require("fs");
374
+ var fs4 = __require("fs");
375
375
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
376
376
  function rethrow() {
377
377
  var callback;
@@ -436,7 +436,7 @@ var require_old = __commonJS({
436
436
  base = m[0];
437
437
  previous = "";
438
438
  if (isWindows && !knownHard[base]) {
439
- fs3.lstatSync(base);
439
+ fs4.lstatSync(base);
440
440
  knownHard[base] = true;
441
441
  }
442
442
  }
@@ -454,7 +454,7 @@ var require_old = __commonJS({
454
454
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
455
455
  resolvedLink = cache[base];
456
456
  } else {
457
- var stat = fs3.lstatSync(base);
457
+ var stat = fs4.lstatSync(base);
458
458
  if (!stat.isSymbolicLink()) {
459
459
  knownHard[base] = true;
460
460
  if (cache) cache[base] = base;
@@ -468,8 +468,8 @@ var require_old = __commonJS({
468
468
  }
469
469
  }
470
470
  if (linkTarget === null) {
471
- fs3.statSync(base);
472
- linkTarget = fs3.readlinkSync(base);
471
+ fs4.statSync(base);
472
+ linkTarget = fs4.readlinkSync(base);
473
473
  }
474
474
  resolvedLink = pathModule.resolve(previous, linkTarget);
475
475
  if (cache) cache[base] = resolvedLink;
@@ -503,7 +503,7 @@ var require_old = __commonJS({
503
503
  base = m[0];
504
504
  previous = "";
505
505
  if (isWindows && !knownHard[base]) {
506
- fs3.lstat(base, function(err) {
506
+ fs4.lstat(base, function(err) {
507
507
  if (err) return cb(err);
508
508
  knownHard[base] = true;
509
509
  LOOP();
@@ -529,7 +529,7 @@ var require_old = __commonJS({
529
529
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
530
530
  return gotResolvedLink(cache[base]);
531
531
  }
532
- return fs3.lstat(base, gotStat);
532
+ return fs4.lstat(base, gotStat);
533
533
  }
534
534
  function gotStat(err, stat) {
535
535
  if (err) return cb(err);
@@ -544,9 +544,9 @@ var require_old = __commonJS({
544
544
  return gotTarget(null, seenLinks[id], base);
545
545
  }
546
546
  }
547
- fs3.stat(base, function(err2) {
547
+ fs4.stat(base, function(err2) {
548
548
  if (err2) return cb(err2);
549
- fs3.readlink(base, function(err3, target) {
549
+ fs4.readlink(base, function(err3, target) {
550
550
  if (!isWindows) seenLinks[id] = target;
551
551
  gotTarget(err3, target);
552
552
  });
@@ -576,9 +576,9 @@ var require_fs = __commonJS({
576
576
  realpath.realpathSync = realpathSync;
577
577
  realpath.monkeypatch = monkeypatch;
578
578
  realpath.unmonkeypatch = unmonkeypatch;
579
- var fs3 = __require("fs");
580
- var origRealpath = fs3.realpath;
581
- var origRealpathSync = fs3.realpathSync;
579
+ var fs4 = __require("fs");
580
+ var origRealpath = fs4.realpath;
581
+ var origRealpathSync = fs4.realpathSync;
582
582
  var version = process.version;
583
583
  var ok = /^v[0-5]\./.test(version);
584
584
  var old = require_old();
@@ -616,12 +616,12 @@ var require_fs = __commonJS({
616
616
  }
617
617
  }
618
618
  function monkeypatch() {
619
- fs3.realpath = realpath;
620
- fs3.realpathSync = realpathSync;
619
+ fs4.realpath = realpath;
620
+ fs4.realpathSync = realpathSync;
621
621
  }
622
622
  function unmonkeypatch() {
623
- fs3.realpath = origRealpath;
624
- fs3.realpathSync = origRealpathSync;
623
+ fs4.realpath = origRealpath;
624
+ fs4.realpathSync = origRealpathSync;
625
625
  }
626
626
  }
627
627
  });
@@ -773,7 +773,7 @@ var require_brace_expansion = __commonJS({
773
773
  var isSequence = isNumericSequence || isAlphaSequence;
774
774
  var isOptions = m.body.indexOf(",") >= 0;
775
775
  if (!isSequence && !isOptions) {
776
- if (m.post.match(/,.*\}/)) {
776
+ if (m.post.match(/,(?!,).*\}/)) {
777
777
  str = m.pre + "{" + m.body + escClose + m.post;
778
778
  return expand2(str);
779
779
  }
@@ -854,7 +854,7 @@ var require_minimatch = __commonJS({
854
854
  "use strict";
855
855
  module.exports = minimatch;
856
856
  minimatch.Minimatch = Minimatch;
857
- var path9 = function() {
857
+ var path10 = function() {
858
858
  try {
859
859
  return __require("path");
860
860
  } catch (e) {
@@ -862,7 +862,7 @@ var require_minimatch = __commonJS({
862
862
  }() || {
863
863
  sep: "/"
864
864
  };
865
- minimatch.sep = path9.sep;
865
+ minimatch.sep = path10.sep;
866
866
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
867
867
  var expand2 = require_brace_expansion();
868
868
  var plTypes = {
@@ -951,8 +951,8 @@ var require_minimatch = __commonJS({
951
951
  assertValidPattern(pattern);
952
952
  if (!options) options = {};
953
953
  pattern = pattern.trim();
954
- if (!options.allowWindowsEscape && path9.sep !== "/") {
955
- pattern = pattern.split(path9.sep).join("/");
954
+ if (!options.allowWindowsEscape && path10.sep !== "/") {
955
+ pattern = pattern.split(path10.sep).join("/");
956
956
  }
957
957
  this.options = options;
958
958
  this.set = [];
@@ -1321,8 +1321,8 @@ var require_minimatch = __commonJS({
1321
1321
  if (this.empty) return f === "";
1322
1322
  if (f === "/" && partial) return true;
1323
1323
  var options = this.options;
1324
- if (path9.sep !== "/") {
1325
- f = f.split(path9.sep).join("/");
1324
+ if (path10.sep !== "/") {
1325
+ f = f.split(path10.sep).join("/");
1326
1326
  }
1327
1327
  f = f.split(slashSplit);
1328
1328
  this.debug(this.pattern, "split", f);
@@ -1474,12 +1474,12 @@ var require_inherits = __commonJS({
1474
1474
  var require_path_is_absolute = __commonJS({
1475
1475
  "../../node_modules/path-is-absolute/index.js"(exports, module) {
1476
1476
  "use strict";
1477
- function posix(path9) {
1478
- return path9.charAt(0) === "/";
1477
+ function posix(path10) {
1478
+ return path10.charAt(0) === "/";
1479
1479
  }
1480
- function win32(path9) {
1480
+ function win32(path10) {
1481
1481
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
1482
- var result = splitDeviceRe.exec(path9);
1482
+ var result = splitDeviceRe.exec(path10);
1483
1483
  var device = result[1] || "";
1484
1484
  var isUnc = Boolean(device && device.charAt(1) !== ":");
1485
1485
  return Boolean(result[2] || isUnc);
@@ -1504,8 +1504,8 @@ var require_common = __commonJS({
1504
1504
  function ownProp(obj, field) {
1505
1505
  return Object.prototype.hasOwnProperty.call(obj, field);
1506
1506
  }
1507
- var fs3 = __require("fs");
1508
- var path9 = __require("path");
1507
+ var fs4 = __require("fs");
1508
+ var path10 = __require("path");
1509
1509
  var minimatch = require_minimatch();
1510
1510
  var isAbsolute = require_path_is_absolute();
1511
1511
  var Minimatch = minimatch.Minimatch;
@@ -1559,7 +1559,7 @@ var require_common = __commonJS({
1559
1559
  self2.stat = !!options.stat;
1560
1560
  self2.noprocess = !!options.noprocess;
1561
1561
  self2.absolute = !!options.absolute;
1562
- self2.fs = options.fs || fs3;
1562
+ self2.fs = options.fs || fs4;
1563
1563
  self2.maxLength = options.maxLength || Infinity;
1564
1564
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
1565
1565
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -1570,11 +1570,11 @@ var require_common = __commonJS({
1570
1570
  if (!ownProp(options, "cwd"))
1571
1571
  self2.cwd = cwd;
1572
1572
  else {
1573
- self2.cwd = path9.resolve(options.cwd);
1573
+ self2.cwd = path10.resolve(options.cwd);
1574
1574
  self2.changedCwd = self2.cwd !== cwd;
1575
1575
  }
1576
- self2.root = options.root || path9.resolve(self2.cwd, "/");
1577
- self2.root = path9.resolve(self2.root);
1576
+ self2.root = options.root || path10.resolve(self2.cwd, "/");
1577
+ self2.root = path10.resolve(self2.root);
1578
1578
  if (process.platform === "win32")
1579
1579
  self2.root = self2.root.replace(/\\/g, "/");
1580
1580
  self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
@@ -1656,30 +1656,30 @@ var require_common = __commonJS({
1656
1656
  function makeAbs(self2, f) {
1657
1657
  var abs = f;
1658
1658
  if (f.charAt(0) === "/") {
1659
- abs = path9.join(self2.root, f);
1659
+ abs = path10.join(self2.root, f);
1660
1660
  } else if (isAbsolute(f) || f === "") {
1661
1661
  abs = f;
1662
1662
  } else if (self2.changedCwd) {
1663
- abs = path9.resolve(self2.cwd, f);
1663
+ abs = path10.resolve(self2.cwd, f);
1664
1664
  } else {
1665
- abs = path9.resolve(f);
1665
+ abs = path10.resolve(f);
1666
1666
  }
1667
1667
  if (process.platform === "win32")
1668
1668
  abs = abs.replace(/\\/g, "/");
1669
1669
  return abs;
1670
1670
  }
1671
- function isIgnored(self2, path10) {
1671
+ function isIgnored(self2, path11) {
1672
1672
  if (!self2.ignore.length)
1673
1673
  return false;
1674
1674
  return self2.ignore.some(function(item) {
1675
- return item.matcher.match(path10) || !!(item.gmatcher && item.gmatcher.match(path10));
1675
+ return item.matcher.match(path11) || !!(item.gmatcher && item.gmatcher.match(path11));
1676
1676
  });
1677
1677
  }
1678
- function childrenIgnored(self2, path10) {
1678
+ function childrenIgnored(self2, path11) {
1679
1679
  if (!self2.ignore.length)
1680
1680
  return false;
1681
1681
  return self2.ignore.some(function(item) {
1682
- return !!(item.gmatcher && item.gmatcher.match(path10));
1682
+ return !!(item.gmatcher && item.gmatcher.match(path11));
1683
1683
  });
1684
1684
  }
1685
1685
  }
@@ -1696,7 +1696,7 @@ var require_sync = __commonJS({
1696
1696
  var Minimatch = minimatch.Minimatch;
1697
1697
  var Glob = require_glob().Glob;
1698
1698
  var util = __require("util");
1699
- var path9 = __require("path");
1699
+ var path10 = __require("path");
1700
1700
  var assert = __require("assert");
1701
1701
  var isAbsolute = require_path_is_absolute();
1702
1702
  var common = require_common();
@@ -1825,7 +1825,7 @@ var require_sync = __commonJS({
1825
1825
  e = prefix + e;
1826
1826
  }
1827
1827
  if (e.charAt(0) === "/" && !this.nomount) {
1828
- e = path9.join(this.root, e);
1828
+ e = path10.join(this.root, e);
1829
1829
  }
1830
1830
  this._emitMatch(index, e);
1831
1831
  }
@@ -1976,9 +1976,9 @@ var require_sync = __commonJS({
1976
1976
  if (prefix && isAbsolute(prefix) && !this.nomount) {
1977
1977
  var trail = /[\/\\]$/.test(prefix);
1978
1978
  if (prefix.charAt(0) === "/") {
1979
- prefix = path9.join(this.root, prefix);
1979
+ prefix = path10.join(this.root, prefix);
1980
1980
  } else {
1981
- prefix = path9.resolve(this.root, prefix);
1981
+ prefix = path10.resolve(this.root, prefix);
1982
1982
  if (trail)
1983
1983
  prefix += "/";
1984
1984
  }
@@ -2174,7 +2174,7 @@ var require_glob = __commonJS({
2174
2174
  var Minimatch = minimatch.Minimatch;
2175
2175
  var inherits = require_inherits();
2176
2176
  var EE = __require("events").EventEmitter;
2177
- var path9 = __require("path");
2177
+ var path10 = __require("path");
2178
2178
  var assert = __require("assert");
2179
2179
  var isAbsolute = require_path_is_absolute();
2180
2180
  var globSync = require_sync();
@@ -2456,7 +2456,7 @@ var require_glob = __commonJS({
2456
2456
  e = prefix + e;
2457
2457
  }
2458
2458
  if (e.charAt(0) === "/" && !this.nomount) {
2459
- e = path9.join(this.root, e);
2459
+ e = path10.join(this.root, e);
2460
2460
  }
2461
2461
  this._emitMatch(index, e);
2462
2462
  }
@@ -2645,9 +2645,9 @@ var require_glob = __commonJS({
2645
2645
  if (prefix && isAbsolute(prefix) && !this.nomount) {
2646
2646
  var trail = /[\/\\]$/.test(prefix);
2647
2647
  if (prefix.charAt(0) === "/") {
2648
- prefix = path9.join(this.root, prefix);
2648
+ prefix = path10.join(this.root, prefix);
2649
2649
  } else {
2650
- prefix = path9.resolve(this.root, prefix);
2650
+ prefix = path10.resolve(this.root, prefix);
2651
2651
  if (trail)
2652
2652
  prefix += "/";
2653
2653
  }
@@ -2726,8 +2726,8 @@ var require_rimraf = __commonJS({
2726
2726
  "../../node_modules/rimraf/rimraf.js"(exports, module) {
2727
2727
  "use strict";
2728
2728
  var assert = __require("assert");
2729
- var path9 = __require("path");
2730
- var fs3 = __require("fs");
2729
+ var path10 = __require("path");
2730
+ var fs4 = __require("fs");
2731
2731
  var glob = void 0;
2732
2732
  try {
2733
2733
  glob = require_glob();
@@ -2749,9 +2749,9 @@ var require_rimraf = __commonJS({
2749
2749
  "readdir"
2750
2750
  ];
2751
2751
  methods.forEach((m) => {
2752
- options[m] = options[m] || fs3[m];
2752
+ options[m] = options[m] || fs4[m];
2753
2753
  m = m + "Sync";
2754
- options[m] = options[m] || fs3[m];
2754
+ options[m] = options[m] || fs4[m];
2755
2755
  });
2756
2756
  options.maxBusyTries = options.maxBusyTries || 3;
2757
2757
  options.emfileWait = options.emfileWait || 1e3;
@@ -2907,7 +2907,7 @@ var require_rimraf = __commonJS({
2907
2907
  return options.rmdir(p, cb);
2908
2908
  let errState;
2909
2909
  files.forEach((f) => {
2910
- rimraf3(path9.join(p, f), options, (er2) => {
2910
+ rimraf3(path10.join(p, f), options, (er2) => {
2911
2911
  if (errState)
2912
2912
  return;
2913
2913
  if (er2)
@@ -2982,7 +2982,7 @@ var require_rimraf = __commonJS({
2982
2982
  var rmkidsSync = (p, options) => {
2983
2983
  assert(p);
2984
2984
  assert(options);
2985
- options.readdirSync(p).forEach((f) => rimrafSync(path9.join(p, f), options));
2985
+ options.readdirSync(p).forEach((f) => rimrafSync(path10.join(p, f), options));
2986
2986
  const retries = isWindows ? 100 : 1;
2987
2987
  let i = 0;
2988
2988
  do {
@@ -3188,7 +3188,7 @@ var require_Async = __commonJS({
3188
3188
  return result;
3189
3189
  }
3190
3190
  static async _forEachWeightedAsync(iterable, callback, options) {
3191
- await new Promise((resolve4, reject) => {
3191
+ await new Promise((resolve3, reject) => {
3192
3192
  const concurrency = (options === null || options === void 0 ? void 0 : options.concurrency) && options.concurrency > 0 ? options.concurrency : Infinity;
3193
3193
  let concurrentUnitsInProgress = 0;
3194
3194
  const iterator2 = iterable[Symbol.asyncIterator].call(iterable);
@@ -3226,7 +3226,7 @@ var require_Async = __commonJS({
3226
3226
  if (!promiseHasResolvedOrRejected) {
3227
3227
  if (concurrentUnitsInProgress === 0 && iteratorIsComplete) {
3228
3228
  promiseHasResolvedOrRejected = true;
3229
- resolve4();
3229
+ resolve3();
3230
3230
  } else if (!iteratorIsComplete) {
3231
3231
  await queueOperationsAsync();
3232
3232
  }
@@ -3245,8 +3245,8 @@ var require_Async = __commonJS({
3245
3245
  * Return a promise that resolves after the specified number of milliseconds.
3246
3246
  */
3247
3247
  static async sleepAsync(ms) {
3248
- await new Promise((resolve4) => {
3249
- setTimeout(resolve4, ms);
3248
+ await new Promise((resolve3) => {
3249
+ setTimeout(resolve3, ms);
3250
3250
  });
3251
3251
  }
3252
3252
  /**
@@ -3289,8 +3289,8 @@ var require_Async = __commonJS({
3289
3289
  function getSignal() {
3290
3290
  let resolver;
3291
3291
  let rejecter;
3292
- const promise = new Promise((resolve4, reject) => {
3293
- resolver = resolve4;
3292
+ const promise = new Promise((resolve3, reject) => {
3293
+ resolver = resolve3;
3294
3294
  rejecter = reject;
3295
3295
  });
3296
3296
  return [promise, resolver, rejecter];
@@ -3575,8 +3575,8 @@ var require_universalify = __commonJS({
3575
3575
  return Object.defineProperty(function(...args) {
3576
3576
  if (typeof args[args.length - 1] === "function") fn.apply(this, args);
3577
3577
  else {
3578
- return new Promise((resolve4, reject) => {
3579
- args.push((err, res) => err != null ? reject(err) : resolve4(res));
3578
+ return new Promise((resolve3, reject) => {
3579
+ args.push((err, res) => err != null ? reject(err) : resolve3(res));
3580
3580
  fn.apply(this, args);
3581
3581
  });
3582
3582
  }
@@ -3622,54 +3622,54 @@ var require_polyfills = __commonJS({
3622
3622
  }
3623
3623
  var chdir;
3624
3624
  module.exports = patch;
3625
- function patch(fs3) {
3625
+ function patch(fs4) {
3626
3626
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
3627
- patchLchmod(fs3);
3628
- }
3629
- if (!fs3.lutimes) {
3630
- patchLutimes(fs3);
3631
- }
3632
- fs3.chown = chownFix(fs3.chown);
3633
- fs3.fchown = chownFix(fs3.fchown);
3634
- fs3.lchown = chownFix(fs3.lchown);
3635
- fs3.chmod = chmodFix(fs3.chmod);
3636
- fs3.fchmod = chmodFix(fs3.fchmod);
3637
- fs3.lchmod = chmodFix(fs3.lchmod);
3638
- fs3.chownSync = chownFixSync(fs3.chownSync);
3639
- fs3.fchownSync = chownFixSync(fs3.fchownSync);
3640
- fs3.lchownSync = chownFixSync(fs3.lchownSync);
3641
- fs3.chmodSync = chmodFixSync(fs3.chmodSync);
3642
- fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
3643
- fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
3644
- fs3.stat = statFix(fs3.stat);
3645
- fs3.fstat = statFix(fs3.fstat);
3646
- fs3.lstat = statFix(fs3.lstat);
3647
- fs3.statSync = statFixSync(fs3.statSync);
3648
- fs3.fstatSync = statFixSync(fs3.fstatSync);
3649
- fs3.lstatSync = statFixSync(fs3.lstatSync);
3650
- if (fs3.chmod && !fs3.lchmod) {
3651
- fs3.lchmod = function(path9, mode, cb) {
3627
+ patchLchmod(fs4);
3628
+ }
3629
+ if (!fs4.lutimes) {
3630
+ patchLutimes(fs4);
3631
+ }
3632
+ fs4.chown = chownFix(fs4.chown);
3633
+ fs4.fchown = chownFix(fs4.fchown);
3634
+ fs4.lchown = chownFix(fs4.lchown);
3635
+ fs4.chmod = chmodFix(fs4.chmod);
3636
+ fs4.fchmod = chmodFix(fs4.fchmod);
3637
+ fs4.lchmod = chmodFix(fs4.lchmod);
3638
+ fs4.chownSync = chownFixSync(fs4.chownSync);
3639
+ fs4.fchownSync = chownFixSync(fs4.fchownSync);
3640
+ fs4.lchownSync = chownFixSync(fs4.lchownSync);
3641
+ fs4.chmodSync = chmodFixSync(fs4.chmodSync);
3642
+ fs4.fchmodSync = chmodFixSync(fs4.fchmodSync);
3643
+ fs4.lchmodSync = chmodFixSync(fs4.lchmodSync);
3644
+ fs4.stat = statFix(fs4.stat);
3645
+ fs4.fstat = statFix(fs4.fstat);
3646
+ fs4.lstat = statFix(fs4.lstat);
3647
+ fs4.statSync = statFixSync(fs4.statSync);
3648
+ fs4.fstatSync = statFixSync(fs4.fstatSync);
3649
+ fs4.lstatSync = statFixSync(fs4.lstatSync);
3650
+ if (fs4.chmod && !fs4.lchmod) {
3651
+ fs4.lchmod = function(path10, mode, cb) {
3652
3652
  if (cb) process.nextTick(cb);
3653
3653
  };
3654
- fs3.lchmodSync = function() {
3654
+ fs4.lchmodSync = function() {
3655
3655
  };
3656
3656
  }
3657
- if (fs3.chown && !fs3.lchown) {
3658
- fs3.lchown = function(path9, uid, gid, cb) {
3657
+ if (fs4.chown && !fs4.lchown) {
3658
+ fs4.lchown = function(path10, uid, gid, cb) {
3659
3659
  if (cb) process.nextTick(cb);
3660
3660
  };
3661
- fs3.lchownSync = function() {
3661
+ fs4.lchownSync = function() {
3662
3662
  };
3663
3663
  }
3664
3664
  if (platform === "win32") {
3665
- fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
3665
+ fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : function(fs$rename) {
3666
3666
  function rename(from, to, cb) {
3667
3667
  var start = Date.now();
3668
3668
  var backoff = 0;
3669
3669
  fs$rename(from, to, function CB(er) {
3670
3670
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
3671
3671
  setTimeout(function() {
3672
- fs3.stat(to, function(stater, st) {
3672
+ fs4.stat(to, function(stater, st) {
3673
3673
  if (stater && stater.code === "ENOENT")
3674
3674
  fs$rename(from, to, CB);
3675
3675
  else
@@ -3685,9 +3685,9 @@ var require_polyfills = __commonJS({
3685
3685
  }
3686
3686
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
3687
3687
  return rename;
3688
- }(fs3.rename);
3688
+ }(fs4.rename);
3689
3689
  }
3690
- fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
3690
+ fs4.read = typeof fs4.read !== "function" ? fs4.read : function(fs$read) {
3691
3691
  function read(fd, buffer, offset, length, position, callback_) {
3692
3692
  var callback;
3693
3693
  if (callback_ && typeof callback_ === "function") {
@@ -3695,22 +3695,22 @@ var require_polyfills = __commonJS({
3695
3695
  callback = function(er, _2, __) {
3696
3696
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
3697
3697
  eagCounter++;
3698
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
3698
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
3699
3699
  }
3700
3700
  callback_.apply(this, arguments);
3701
3701
  };
3702
3702
  }
3703
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
3703
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
3704
3704
  }
3705
3705
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
3706
3706
  return read;
3707
- }(fs3.read);
3708
- fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
3707
+ }(fs4.read);
3708
+ fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
3709
3709
  return function(fd, buffer, offset, length, position) {
3710
3710
  var eagCounter = 0;
3711
3711
  while (true) {
3712
3712
  try {
3713
- return fs$readSync.call(fs3, fd, buffer, offset, length, position);
3713
+ return fs$readSync.call(fs4, fd, buffer, offset, length, position);
3714
3714
  } catch (er) {
3715
3715
  if (er.code === "EAGAIN" && eagCounter < 10) {
3716
3716
  eagCounter++;
@@ -3720,11 +3720,11 @@ var require_polyfills = __commonJS({
3720
3720
  }
3721
3721
  }
3722
3722
  };
3723
- }(fs3.readSync);
3724
- function patchLchmod(fs4) {
3725
- fs4.lchmod = function(path9, mode, callback) {
3726
- fs4.open(
3727
- path9,
3723
+ }(fs4.readSync);
3724
+ function patchLchmod(fs5) {
3725
+ fs5.lchmod = function(path10, mode, callback) {
3726
+ fs5.open(
3727
+ path10,
3728
3728
  constants.O_WRONLY | constants.O_SYMLINK,
3729
3729
  mode,
3730
3730
  function(err, fd) {
@@ -3732,80 +3732,80 @@ var require_polyfills = __commonJS({
3732
3732
  if (callback) callback(err);
3733
3733
  return;
3734
3734
  }
3735
- fs4.fchmod(fd, mode, function(err2) {
3736
- fs4.close(fd, function(err22) {
3735
+ fs5.fchmod(fd, mode, function(err2) {
3736
+ fs5.close(fd, function(err22) {
3737
3737
  if (callback) callback(err2 || err22);
3738
3738
  });
3739
3739
  });
3740
3740
  }
3741
3741
  );
3742
3742
  };
3743
- fs4.lchmodSync = function(path9, mode) {
3744
- var fd = fs4.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
3743
+ fs5.lchmodSync = function(path10, mode) {
3744
+ var fd = fs5.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
3745
3745
  var threw = true;
3746
3746
  var ret;
3747
3747
  try {
3748
- ret = fs4.fchmodSync(fd, mode);
3748
+ ret = fs5.fchmodSync(fd, mode);
3749
3749
  threw = false;
3750
3750
  } finally {
3751
3751
  if (threw) {
3752
3752
  try {
3753
- fs4.closeSync(fd);
3753
+ fs5.closeSync(fd);
3754
3754
  } catch (er) {
3755
3755
  }
3756
3756
  } else {
3757
- fs4.closeSync(fd);
3757
+ fs5.closeSync(fd);
3758
3758
  }
3759
3759
  }
3760
3760
  return ret;
3761
3761
  };
3762
3762
  }
3763
- function patchLutimes(fs4) {
3764
- if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
3765
- fs4.lutimes = function(path9, at, mt, cb) {
3766
- fs4.open(path9, constants.O_SYMLINK, function(er, fd) {
3763
+ function patchLutimes(fs5) {
3764
+ if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
3765
+ fs5.lutimes = function(path10, at, mt, cb) {
3766
+ fs5.open(path10, constants.O_SYMLINK, function(er, fd) {
3767
3767
  if (er) {
3768
3768
  if (cb) cb(er);
3769
3769
  return;
3770
3770
  }
3771
- fs4.futimes(fd, at, mt, function(er2) {
3772
- fs4.close(fd, function(er22) {
3771
+ fs5.futimes(fd, at, mt, function(er2) {
3772
+ fs5.close(fd, function(er22) {
3773
3773
  if (cb) cb(er2 || er22);
3774
3774
  });
3775
3775
  });
3776
3776
  });
3777
3777
  };
3778
- fs4.lutimesSync = function(path9, at, mt) {
3779
- var fd = fs4.openSync(path9, constants.O_SYMLINK);
3778
+ fs5.lutimesSync = function(path10, at, mt) {
3779
+ var fd = fs5.openSync(path10, constants.O_SYMLINK);
3780
3780
  var ret;
3781
3781
  var threw = true;
3782
3782
  try {
3783
- ret = fs4.futimesSync(fd, at, mt);
3783
+ ret = fs5.futimesSync(fd, at, mt);
3784
3784
  threw = false;
3785
3785
  } finally {
3786
3786
  if (threw) {
3787
3787
  try {
3788
- fs4.closeSync(fd);
3788
+ fs5.closeSync(fd);
3789
3789
  } catch (er) {
3790
3790
  }
3791
3791
  } else {
3792
- fs4.closeSync(fd);
3792
+ fs5.closeSync(fd);
3793
3793
  }
3794
3794
  }
3795
3795
  return ret;
3796
3796
  };
3797
- } else if (fs4.futimes) {
3798
- fs4.lutimes = function(_a, _b, _c, cb) {
3797
+ } else if (fs5.futimes) {
3798
+ fs5.lutimes = function(_a, _b, _c, cb) {
3799
3799
  if (cb) process.nextTick(cb);
3800
3800
  };
3801
- fs4.lutimesSync = function() {
3801
+ fs5.lutimesSync = function() {
3802
3802
  };
3803
3803
  }
3804
3804
  }
3805
3805
  function chmodFix(orig) {
3806
3806
  if (!orig) return orig;
3807
3807
  return function(target, mode, cb) {
3808
- return orig.call(fs3, target, mode, function(er) {
3808
+ return orig.call(fs4, target, mode, function(er) {
3809
3809
  if (chownErOk(er)) er = null;
3810
3810
  if (cb) cb.apply(this, arguments);
3811
3811
  });
@@ -3815,7 +3815,7 @@ var require_polyfills = __commonJS({
3815
3815
  if (!orig) return orig;
3816
3816
  return function(target, mode) {
3817
3817
  try {
3818
- return orig.call(fs3, target, mode);
3818
+ return orig.call(fs4, target, mode);
3819
3819
  } catch (er) {
3820
3820
  if (!chownErOk(er)) throw er;
3821
3821
  }
@@ -3824,7 +3824,7 @@ var require_polyfills = __commonJS({
3824
3824
  function chownFix(orig) {
3825
3825
  if (!orig) return orig;
3826
3826
  return function(target, uid, gid, cb) {
3827
- return orig.call(fs3, target, uid, gid, function(er) {
3827
+ return orig.call(fs4, target, uid, gid, function(er) {
3828
3828
  if (chownErOk(er)) er = null;
3829
3829
  if (cb) cb.apply(this, arguments);
3830
3830
  });
@@ -3834,7 +3834,7 @@ var require_polyfills = __commonJS({
3834
3834
  if (!orig) return orig;
3835
3835
  return function(target, uid, gid) {
3836
3836
  try {
3837
- return orig.call(fs3, target, uid, gid);
3837
+ return orig.call(fs4, target, uid, gid);
3838
3838
  } catch (er) {
3839
3839
  if (!chownErOk(er)) throw er;
3840
3840
  }
@@ -3854,13 +3854,13 @@ var require_polyfills = __commonJS({
3854
3854
  }
3855
3855
  if (cb) cb.apply(this, arguments);
3856
3856
  }
3857
- return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
3857
+ return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback);
3858
3858
  };
3859
3859
  }
3860
3860
  function statFixSync(orig) {
3861
3861
  if (!orig) return orig;
3862
3862
  return function(target, options) {
3863
- var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
3863
+ var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target);
3864
3864
  if (stats) {
3865
3865
  if (stats.uid < 0) stats.uid += 4294967296;
3866
3866
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -3890,16 +3890,16 @@ var require_legacy_streams = __commonJS({
3890
3890
  "use strict";
3891
3891
  var Stream = __require("stream").Stream;
3892
3892
  module.exports = legacy;
3893
- function legacy(fs3) {
3893
+ function legacy(fs4) {
3894
3894
  return {
3895
3895
  ReadStream,
3896
3896
  WriteStream
3897
3897
  };
3898
- function ReadStream(path9, options) {
3899
- if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
3898
+ function ReadStream(path10, options) {
3899
+ if (!(this instanceof ReadStream)) return new ReadStream(path10, options);
3900
3900
  Stream.call(this);
3901
3901
  var self2 = this;
3902
- this.path = path9;
3902
+ this.path = path10;
3903
3903
  this.fd = null;
3904
3904
  this.readable = true;
3905
3905
  this.paused = false;
@@ -3933,7 +3933,7 @@ var require_legacy_streams = __commonJS({
3933
3933
  });
3934
3934
  return;
3935
3935
  }
3936
- fs3.open(this.path, this.flags, this.mode, function(err, fd) {
3936
+ fs4.open(this.path, this.flags, this.mode, function(err, fd) {
3937
3937
  if (err) {
3938
3938
  self2.emit("error", err);
3939
3939
  self2.readable = false;
@@ -3944,10 +3944,10 @@ var require_legacy_streams = __commonJS({
3944
3944
  self2._read();
3945
3945
  });
3946
3946
  }
3947
- function WriteStream(path9, options) {
3948
- if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
3947
+ function WriteStream(path10, options) {
3948
+ if (!(this instanceof WriteStream)) return new WriteStream(path10, options);
3949
3949
  Stream.call(this);
3950
- this.path = path9;
3950
+ this.path = path10;
3951
3951
  this.fd = null;
3952
3952
  this.writable = true;
3953
3953
  this.flags = "w";
@@ -3972,7 +3972,7 @@ var require_legacy_streams = __commonJS({
3972
3972
  this.busy = false;
3973
3973
  this._queue = [];
3974
3974
  if (this.fd === null) {
3975
- this._open = fs3.open;
3975
+ this._open = fs4.open;
3976
3976
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
3977
3977
  this.flush();
3978
3978
  }
@@ -4008,7 +4008,7 @@ var require_clone = __commonJS({
4008
4008
  var require_graceful_fs = __commonJS({
4009
4009
  "../../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
4010
4010
  "use strict";
4011
- var fs3 = __require("fs");
4011
+ var fs4 = __require("fs");
4012
4012
  var polyfills = require_polyfills();
4013
4013
  var legacy = require_legacy_streams();
4014
4014
  var clone = require_clone();
@@ -4040,12 +4040,12 @@ var require_graceful_fs = __commonJS({
4040
4040
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
4041
4041
  console.error(m);
4042
4042
  };
4043
- if (!fs3[gracefulQueue]) {
4043
+ if (!fs4[gracefulQueue]) {
4044
4044
  queue = global[gracefulQueue] || [];
4045
- publishQueue(fs3, queue);
4046
- fs3.close = function(fs$close) {
4045
+ publishQueue(fs4, queue);
4046
+ fs4.close = function(fs$close) {
4047
4047
  function close(fd, cb) {
4048
- return fs$close.call(fs3, fd, function(err) {
4048
+ return fs$close.call(fs4, fd, function(err) {
4049
4049
  if (!err) {
4050
4050
  resetQueue();
4051
4051
  }
@@ -4057,48 +4057,48 @@ var require_graceful_fs = __commonJS({
4057
4057
  value: fs$close
4058
4058
  });
4059
4059
  return close;
4060
- }(fs3.close);
4061
- fs3.closeSync = function(fs$closeSync) {
4060
+ }(fs4.close);
4061
+ fs4.closeSync = function(fs$closeSync) {
4062
4062
  function closeSync(fd) {
4063
- fs$closeSync.apply(fs3, arguments);
4063
+ fs$closeSync.apply(fs4, arguments);
4064
4064
  resetQueue();
4065
4065
  }
4066
4066
  Object.defineProperty(closeSync, previousSymbol, {
4067
4067
  value: fs$closeSync
4068
4068
  });
4069
4069
  return closeSync;
4070
- }(fs3.closeSync);
4070
+ }(fs4.closeSync);
4071
4071
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
4072
4072
  process.on("exit", function() {
4073
- debug(fs3[gracefulQueue]);
4074
- __require("assert").equal(fs3[gracefulQueue].length, 0);
4073
+ debug(fs4[gracefulQueue]);
4074
+ __require("assert").equal(fs4[gracefulQueue].length, 0);
4075
4075
  });
4076
4076
  }
4077
4077
  }
4078
4078
  var queue;
4079
4079
  if (!global[gracefulQueue]) {
4080
- publishQueue(global, fs3[gracefulQueue]);
4081
- }
4082
- module.exports = patch(clone(fs3));
4083
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
4084
- module.exports = patch(fs3);
4085
- fs3.__patched = true;
4086
- }
4087
- function patch(fs4) {
4088
- polyfills(fs4);
4089
- fs4.gracefulify = patch;
4090
- fs4.createReadStream = createReadStream;
4091
- fs4.createWriteStream = createWriteStream2;
4092
- var fs$readFile = fs4.readFile;
4093
- fs4.readFile = readFile2;
4094
- function readFile2(path9, options, cb) {
4080
+ publishQueue(global, fs4[gracefulQueue]);
4081
+ }
4082
+ module.exports = patch(clone(fs4));
4083
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) {
4084
+ module.exports = patch(fs4);
4085
+ fs4.__patched = true;
4086
+ }
4087
+ function patch(fs5) {
4088
+ polyfills(fs5);
4089
+ fs5.gracefulify = patch;
4090
+ fs5.createReadStream = createReadStream;
4091
+ fs5.createWriteStream = createWriteStream;
4092
+ var fs$readFile = fs5.readFile;
4093
+ fs5.readFile = readFile;
4094
+ function readFile(path10, options, cb) {
4095
4095
  if (typeof options === "function")
4096
4096
  cb = options, options = null;
4097
- return go$readFile(path9, options, cb);
4098
- function go$readFile(path10, options2, cb2, startTime) {
4099
- return fs$readFile(path10, options2, function(err) {
4097
+ return go$readFile(path10, options, cb);
4098
+ function go$readFile(path11, options2, cb2, startTime) {
4099
+ return fs$readFile(path11, options2, function(err) {
4100
4100
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4101
- enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
4101
+ enqueue([go$readFile, [path11, options2, cb2], err, startTime || Date.now(), Date.now()]);
4102
4102
  else {
4103
4103
  if (typeof cb2 === "function")
4104
4104
  cb2.apply(this, arguments);
@@ -4106,16 +4106,16 @@ var require_graceful_fs = __commonJS({
4106
4106
  });
4107
4107
  }
4108
4108
  }
4109
- var fs$writeFile = fs4.writeFile;
4110
- fs4.writeFile = writeFile;
4111
- function writeFile(path9, data, options, cb) {
4109
+ var fs$writeFile = fs5.writeFile;
4110
+ fs5.writeFile = writeFile;
4111
+ function writeFile(path10, data, options, cb) {
4112
4112
  if (typeof options === "function")
4113
4113
  cb = options, options = null;
4114
- return go$writeFile(path9, data, options, cb);
4115
- function go$writeFile(path10, data2, options2, cb2, startTime) {
4116
- return fs$writeFile(path10, data2, options2, function(err) {
4114
+ return go$writeFile(path10, data, options, cb);
4115
+ function go$writeFile(path11, data2, options2, cb2, startTime) {
4116
+ return fs$writeFile(path11, data2, options2, function(err) {
4117
4117
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4118
- enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4118
+ enqueue([go$writeFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4119
4119
  else {
4120
4120
  if (typeof cb2 === "function")
4121
4121
  cb2.apply(this, arguments);
@@ -4123,17 +4123,17 @@ var require_graceful_fs = __commonJS({
4123
4123
  });
4124
4124
  }
4125
4125
  }
4126
- var fs$appendFile = fs4.appendFile;
4126
+ var fs$appendFile = fs5.appendFile;
4127
4127
  if (fs$appendFile)
4128
- fs4.appendFile = appendFile;
4129
- function appendFile(path9, data, options, cb) {
4128
+ fs5.appendFile = appendFile;
4129
+ function appendFile(path10, data, options, cb) {
4130
4130
  if (typeof options === "function")
4131
4131
  cb = options, options = null;
4132
- return go$appendFile(path9, data, options, cb);
4133
- function go$appendFile(path10, data2, options2, cb2, startTime) {
4134
- return fs$appendFile(path10, data2, options2, function(err) {
4132
+ return go$appendFile(path10, data, options, cb);
4133
+ function go$appendFile(path11, data2, options2, cb2, startTime) {
4134
+ return fs$appendFile(path11, data2, options2, function(err) {
4135
4135
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4136
- enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4136
+ enqueue([go$appendFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4137
4137
  else {
4138
4138
  if (typeof cb2 === "function")
4139
4139
  cb2.apply(this, arguments);
@@ -4141,9 +4141,9 @@ var require_graceful_fs = __commonJS({
4141
4141
  });
4142
4142
  }
4143
4143
  }
4144
- var fs$copyFile = fs4.copyFile;
4144
+ var fs$copyFile = fs5.copyFile;
4145
4145
  if (fs$copyFile)
4146
- fs4.copyFile = copyFile;
4146
+ fs5.copyFile = copyFile;
4147
4147
  function copyFile(src, dest, flags, cb) {
4148
4148
  if (typeof flags === "function") {
4149
4149
  cb = flags;
@@ -4161,34 +4161,34 @@ var require_graceful_fs = __commonJS({
4161
4161
  });
4162
4162
  }
4163
4163
  }
4164
- var fs$readdir = fs4.readdir;
4165
- fs4.readdir = readdir;
4164
+ var fs$readdir = fs5.readdir;
4165
+ fs5.readdir = readdir;
4166
4166
  var noReaddirOptionVersions = /^v[0-5]\./;
4167
- function readdir(path9, options, cb) {
4167
+ function readdir(path10, options, cb) {
4168
4168
  if (typeof options === "function")
4169
4169
  cb = options, options = null;
4170
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
4171
- return fs$readdir(path10, fs$readdirCallback(
4172
- path10,
4170
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path11, options2, cb2, startTime) {
4171
+ return fs$readdir(path11, fs$readdirCallback(
4172
+ path11,
4173
4173
  options2,
4174
4174
  cb2,
4175
4175
  startTime
4176
4176
  ));
4177
- } : function go$readdir2(path10, options2, cb2, startTime) {
4178
- return fs$readdir(path10, options2, fs$readdirCallback(
4179
- path10,
4177
+ } : function go$readdir2(path11, options2, cb2, startTime) {
4178
+ return fs$readdir(path11, options2, fs$readdirCallback(
4179
+ path11,
4180
4180
  options2,
4181
4181
  cb2,
4182
4182
  startTime
4183
4183
  ));
4184
4184
  };
4185
- return go$readdir(path9, options, cb);
4186
- function fs$readdirCallback(path10, options2, cb2, startTime) {
4185
+ return go$readdir(path10, options, cb);
4186
+ function fs$readdirCallback(path11, options2, cb2, startTime) {
4187
4187
  return function(err, files) {
4188
4188
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4189
4189
  enqueue([
4190
4190
  go$readdir,
4191
- [path10, options2, cb2],
4191
+ [path11, options2, cb2],
4192
4192
  err,
4193
4193
  startTime || Date.now(),
4194
4194
  Date.now()
@@ -4203,21 +4203,21 @@ var require_graceful_fs = __commonJS({
4203
4203
  }
4204
4204
  }
4205
4205
  if (process.version.substr(0, 4) === "v0.8") {
4206
- var legStreams = legacy(fs4);
4206
+ var legStreams = legacy(fs5);
4207
4207
  ReadStream = legStreams.ReadStream;
4208
4208
  WriteStream = legStreams.WriteStream;
4209
4209
  }
4210
- var fs$ReadStream = fs4.ReadStream;
4210
+ var fs$ReadStream = fs5.ReadStream;
4211
4211
  if (fs$ReadStream) {
4212
4212
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
4213
4213
  ReadStream.prototype.open = ReadStream$open;
4214
4214
  }
4215
- var fs$WriteStream = fs4.WriteStream;
4215
+ var fs$WriteStream = fs5.WriteStream;
4216
4216
  if (fs$WriteStream) {
4217
4217
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
4218
4218
  WriteStream.prototype.open = WriteStream$open;
4219
4219
  }
4220
- Object.defineProperty(fs4, "ReadStream", {
4220
+ Object.defineProperty(fs5, "ReadStream", {
4221
4221
  get: function() {
4222
4222
  return ReadStream;
4223
4223
  },
@@ -4227,7 +4227,7 @@ var require_graceful_fs = __commonJS({
4227
4227
  enumerable: true,
4228
4228
  configurable: true
4229
4229
  });
4230
- Object.defineProperty(fs4, "WriteStream", {
4230
+ Object.defineProperty(fs5, "WriteStream", {
4231
4231
  get: function() {
4232
4232
  return WriteStream;
4233
4233
  },
@@ -4238,7 +4238,7 @@ var require_graceful_fs = __commonJS({
4238
4238
  configurable: true
4239
4239
  });
4240
4240
  var FileReadStream = ReadStream;
4241
- Object.defineProperty(fs4, "FileReadStream", {
4241
+ Object.defineProperty(fs5, "FileReadStream", {
4242
4242
  get: function() {
4243
4243
  return FileReadStream;
4244
4244
  },
@@ -4249,7 +4249,7 @@ var require_graceful_fs = __commonJS({
4249
4249
  configurable: true
4250
4250
  });
4251
4251
  var FileWriteStream = WriteStream;
4252
- Object.defineProperty(fs4, "FileWriteStream", {
4252
+ Object.defineProperty(fs5, "FileWriteStream", {
4253
4253
  get: function() {
4254
4254
  return FileWriteStream;
4255
4255
  },
@@ -4259,7 +4259,7 @@ var require_graceful_fs = __commonJS({
4259
4259
  enumerable: true,
4260
4260
  configurable: true
4261
4261
  });
4262
- function ReadStream(path9, options) {
4262
+ function ReadStream(path10, options) {
4263
4263
  if (this instanceof ReadStream)
4264
4264
  return fs$ReadStream.apply(this, arguments), this;
4265
4265
  else
@@ -4279,7 +4279,7 @@ var require_graceful_fs = __commonJS({
4279
4279
  }
4280
4280
  });
4281
4281
  }
4282
- function WriteStream(path9, options) {
4282
+ function WriteStream(path10, options) {
4283
4283
  if (this instanceof WriteStream)
4284
4284
  return fs$WriteStream.apply(this, arguments), this;
4285
4285
  else
@@ -4297,22 +4297,22 @@ var require_graceful_fs = __commonJS({
4297
4297
  }
4298
4298
  });
4299
4299
  }
4300
- function createReadStream(path9, options) {
4301
- return new fs4.ReadStream(path9, options);
4300
+ function createReadStream(path10, options) {
4301
+ return new fs5.ReadStream(path10, options);
4302
4302
  }
4303
- function createWriteStream2(path9, options) {
4304
- return new fs4.WriteStream(path9, options);
4303
+ function createWriteStream(path10, options) {
4304
+ return new fs5.WriteStream(path10, options);
4305
4305
  }
4306
- var fs$open = fs4.open;
4307
- fs4.open = open;
4308
- function open(path9, flags, mode, cb) {
4306
+ var fs$open = fs5.open;
4307
+ fs5.open = open;
4308
+ function open(path10, flags, mode, cb) {
4309
4309
  if (typeof mode === "function")
4310
4310
  cb = mode, mode = null;
4311
- return go$open(path9, flags, mode, cb);
4312
- function go$open(path10, flags2, mode2, cb2, startTime) {
4313
- return fs$open(path10, flags2, mode2, function(err, fd) {
4311
+ return go$open(path10, flags, mode, cb);
4312
+ function go$open(path11, flags2, mode2, cb2, startTime) {
4313
+ return fs$open(path11, flags2, mode2, function(err, fd) {
4314
4314
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4315
- enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
4315
+ enqueue([go$open, [path11, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
4316
4316
  else {
4317
4317
  if (typeof cb2 === "function")
4318
4318
  cb2.apply(this, arguments);
@@ -4320,20 +4320,20 @@ var require_graceful_fs = __commonJS({
4320
4320
  });
4321
4321
  }
4322
4322
  }
4323
- return fs4;
4323
+ return fs5;
4324
4324
  }
4325
4325
  function enqueue(elem) {
4326
4326
  debug("ENQUEUE", elem[0].name, elem[1]);
4327
- fs3[gracefulQueue].push(elem);
4327
+ fs4[gracefulQueue].push(elem);
4328
4328
  retry();
4329
4329
  }
4330
4330
  var retryTimer;
4331
4331
  function resetQueue() {
4332
4332
  var now = Date.now();
4333
- for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
4334
- if (fs3[gracefulQueue][i].length > 2) {
4335
- fs3[gracefulQueue][i][3] = now;
4336
- fs3[gracefulQueue][i][4] = now;
4333
+ for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
4334
+ if (fs4[gracefulQueue][i].length > 2) {
4335
+ fs4[gracefulQueue][i][3] = now;
4336
+ fs4[gracefulQueue][i][4] = now;
4337
4337
  }
4338
4338
  }
4339
4339
  retry();
@@ -4341,9 +4341,9 @@ var require_graceful_fs = __commonJS({
4341
4341
  function retry() {
4342
4342
  clearTimeout(retryTimer);
4343
4343
  retryTimer = void 0;
4344
- if (fs3[gracefulQueue].length === 0)
4344
+ if (fs4[gracefulQueue].length === 0)
4345
4345
  return;
4346
- var elem = fs3[gracefulQueue].shift();
4346
+ var elem = fs4[gracefulQueue].shift();
4347
4347
  var fn = elem[0];
4348
4348
  var args = elem[1];
4349
4349
  var err = elem[2];
@@ -4365,7 +4365,7 @@ var require_graceful_fs = __commonJS({
4365
4365
  debug("RETRY", fn.name, args);
4366
4366
  fn.apply(null, args.concat([startTime]));
4367
4367
  } else {
4368
- fs3[gracefulQueue].push(elem);
4368
+ fs4[gracefulQueue].push(elem);
4369
4369
  }
4370
4370
  }
4371
4371
  if (retryTimer === void 0) {
@@ -4380,7 +4380,7 @@ var require_fs2 = __commonJS({
4380
4380
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/fs/index.js"(exports) {
4381
4381
  "use strict";
4382
4382
  var u = require_universalify().fromCallback;
4383
- var fs3 = require_graceful_fs();
4383
+ var fs4 = require_graceful_fs();
4384
4384
  var api = [
4385
4385
  "access",
4386
4386
  "appendFile",
@@ -4421,66 +4421,66 @@ var require_fs2 = __commonJS({
4421
4421
  "utimes",
4422
4422
  "writeFile"
4423
4423
  ].filter((key) => {
4424
- return typeof fs3[key] === "function";
4424
+ return typeof fs4[key] === "function";
4425
4425
  });
4426
- Object.assign(exports, fs3);
4426
+ Object.assign(exports, fs4);
4427
4427
  api.forEach((method) => {
4428
- exports[method] = u(fs3[method]);
4428
+ exports[method] = u(fs4[method]);
4429
4429
  });
4430
4430
  exports.exists = function(filename, callback) {
4431
4431
  if (typeof callback === "function") {
4432
- return fs3.exists(filename, callback);
4432
+ return fs4.exists(filename, callback);
4433
4433
  }
4434
- return new Promise((resolve4) => {
4435
- return fs3.exists(filename, resolve4);
4434
+ return new Promise((resolve3) => {
4435
+ return fs4.exists(filename, resolve3);
4436
4436
  });
4437
4437
  };
4438
4438
  exports.read = function(fd, buffer, offset, length, position, callback) {
4439
4439
  if (typeof callback === "function") {
4440
- return fs3.read(fd, buffer, offset, length, position, callback);
4440
+ return fs4.read(fd, buffer, offset, length, position, callback);
4441
4441
  }
4442
- return new Promise((resolve4, reject) => {
4443
- fs3.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
4442
+ return new Promise((resolve3, reject) => {
4443
+ fs4.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
4444
4444
  if (err) return reject(err);
4445
- resolve4({ bytesRead, buffer: buffer2 });
4445
+ resolve3({ bytesRead, buffer: buffer2 });
4446
4446
  });
4447
4447
  });
4448
4448
  };
4449
4449
  exports.write = function(fd, buffer, ...args) {
4450
4450
  if (typeof args[args.length - 1] === "function") {
4451
- return fs3.write(fd, buffer, ...args);
4451
+ return fs4.write(fd, buffer, ...args);
4452
4452
  }
4453
- return new Promise((resolve4, reject) => {
4454
- fs3.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
4453
+ return new Promise((resolve3, reject) => {
4454
+ fs4.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
4455
4455
  if (err) return reject(err);
4456
- resolve4({ bytesWritten, buffer: buffer2 });
4456
+ resolve3({ bytesWritten, buffer: buffer2 });
4457
4457
  });
4458
4458
  });
4459
4459
  };
4460
4460
  exports.readv = function(fd, buffers, ...args) {
4461
4461
  if (typeof args[args.length - 1] === "function") {
4462
- return fs3.readv(fd, buffers, ...args);
4462
+ return fs4.readv(fd, buffers, ...args);
4463
4463
  }
4464
- return new Promise((resolve4, reject) => {
4465
- fs3.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
4464
+ return new Promise((resolve3, reject) => {
4465
+ fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
4466
4466
  if (err) return reject(err);
4467
- resolve4({ bytesRead, buffers: buffers2 });
4467
+ resolve3({ bytesRead, buffers: buffers2 });
4468
4468
  });
4469
4469
  });
4470
4470
  };
4471
4471
  exports.writev = function(fd, buffers, ...args) {
4472
4472
  if (typeof args[args.length - 1] === "function") {
4473
- return fs3.writev(fd, buffers, ...args);
4473
+ return fs4.writev(fd, buffers, ...args);
4474
4474
  }
4475
- return new Promise((resolve4, reject) => {
4476
- fs3.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
4475
+ return new Promise((resolve3, reject) => {
4476
+ fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
4477
4477
  if (err) return reject(err);
4478
- resolve4({ bytesWritten, buffers: buffers2 });
4478
+ resolve3({ bytesWritten, buffers: buffers2 });
4479
4479
  });
4480
4480
  });
4481
4481
  };
4482
- if (typeof fs3.realpath.native === "function") {
4483
- exports.realpath.native = u(fs3.realpath.native);
4482
+ if (typeof fs4.realpath.native === "function") {
4483
+ exports.realpath.native = u(fs4.realpath.native);
4484
4484
  } else {
4485
4485
  process.emitWarning(
4486
4486
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -4495,10 +4495,10 @@ var require_fs2 = __commonJS({
4495
4495
  var require_utils = __commonJS({
4496
4496
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
4497
4497
  "use strict";
4498
- var path9 = __require("path");
4498
+ var path10 = __require("path");
4499
4499
  module.exports.checkPath = function checkPath(pth) {
4500
4500
  if (process.platform === "win32") {
4501
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path9.parse(pth).root, ""));
4501
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path10.parse(pth).root, ""));
4502
4502
  if (pathHasInvalidWinCharacters) {
4503
4503
  const error = new Error(`Path contains invalid characters: ${pth}`);
4504
4504
  error.code = "EINVAL";
@@ -4513,7 +4513,7 @@ var require_utils = __commonJS({
4513
4513
  var require_make_dir = __commonJS({
4514
4514
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
4515
4515
  "use strict";
4516
- var fs3 = require_fs2();
4516
+ var fs4 = require_fs2();
4517
4517
  var { checkPath } = require_utils();
4518
4518
  var getMode = (options) => {
4519
4519
  const defaults = { mode: 511 };
@@ -4522,14 +4522,14 @@ var require_make_dir = __commonJS({
4522
4522
  };
4523
4523
  module.exports.makeDir = async (dir, options) => {
4524
4524
  checkPath(dir);
4525
- return fs3.mkdir(dir, {
4525
+ return fs4.mkdir(dir, {
4526
4526
  mode: getMode(options),
4527
4527
  recursive: true
4528
4528
  });
4529
4529
  };
4530
4530
  module.exports.makeDirSync = (dir, options) => {
4531
4531
  checkPath(dir);
4532
- return fs3.mkdirSync(dir, {
4532
+ return fs4.mkdirSync(dir, {
4533
4533
  mode: getMode(options),
4534
4534
  recursive: true
4535
4535
  });
@@ -4561,13 +4561,13 @@ var require_path_exists = __commonJS({
4561
4561
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
4562
4562
  "use strict";
4563
4563
  var u = require_universalify().fromPromise;
4564
- var fs3 = require_fs2();
4565
- function pathExists(path9) {
4566
- return fs3.access(path9).then(() => true).catch(() => false);
4564
+ var fs4 = require_fs2();
4565
+ function pathExists(path10) {
4566
+ return fs4.access(path10).then(() => true).catch(() => false);
4567
4567
  }
4568
4568
  module.exports = {
4569
4569
  pathExists: u(pathExists),
4570
- pathExistsSync: fs3.existsSync
4570
+ pathExistsSync: fs4.existsSync
4571
4571
  };
4572
4572
  }
4573
4573
  });
@@ -4576,16 +4576,16 @@ var require_path_exists = __commonJS({
4576
4576
  var require_utimes = __commonJS({
4577
4577
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
4578
4578
  "use strict";
4579
- var fs3 = require_fs2();
4579
+ var fs4 = require_fs2();
4580
4580
  var u = require_universalify().fromPromise;
4581
- async function utimesMillis(path9, atime, mtime) {
4582
- const fd = await fs3.open(path9, "r+");
4581
+ async function utimesMillis(path10, atime, mtime) {
4582
+ const fd = await fs4.open(path10, "r+");
4583
4583
  let closeErr = null;
4584
4584
  try {
4585
- await fs3.futimes(fd, atime, mtime);
4585
+ await fs4.futimes(fd, atime, mtime);
4586
4586
  } finally {
4587
4587
  try {
4588
- await fs3.close(fd);
4588
+ await fs4.close(fd);
4589
4589
  } catch (e) {
4590
4590
  closeErr = e;
4591
4591
  }
@@ -4594,10 +4594,10 @@ var require_utimes = __commonJS({
4594
4594
  throw closeErr;
4595
4595
  }
4596
4596
  }
4597
- function utimesMillisSync(path9, atime, mtime) {
4598
- const fd = fs3.openSync(path9, "r+");
4599
- fs3.futimesSync(fd, atime, mtime);
4600
- return fs3.closeSync(fd);
4597
+ function utimesMillisSync(path10, atime, mtime) {
4598
+ const fd = fs4.openSync(path10, "r+");
4599
+ fs4.futimesSync(fd, atime, mtime);
4600
+ return fs4.closeSync(fd);
4601
4601
  }
4602
4602
  module.exports = {
4603
4603
  utimesMillis: u(utimesMillis),
@@ -4610,11 +4610,11 @@ var require_utimes = __commonJS({
4610
4610
  var require_stat = __commonJS({
4611
4611
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
4612
4612
  "use strict";
4613
- var fs3 = require_fs2();
4614
- var path9 = __require("path");
4613
+ var fs4 = require_fs2();
4614
+ var path10 = __require("path");
4615
4615
  var u = require_universalify().fromPromise;
4616
4616
  function getStats(src, dest, opts) {
4617
- const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
4617
+ const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true });
4618
4618
  return Promise.all([
4619
4619
  statFunc(src),
4620
4620
  statFunc(dest).catch((err) => {
@@ -4625,7 +4625,7 @@ var require_stat = __commonJS({
4625
4625
  }
4626
4626
  function getStatsSync(src, dest, opts) {
4627
4627
  let destStat;
4628
- const statFunc = opts.dereference ? (file) => fs3.statSync(file, { bigint: true }) : (file) => fs3.lstatSync(file, { bigint: true });
4628
+ const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true });
4629
4629
  const srcStat = statFunc(src);
4630
4630
  try {
4631
4631
  destStat = statFunc(dest);
@@ -4639,8 +4639,8 @@ var require_stat = __commonJS({
4639
4639
  const { srcStat, destStat } = await getStats(src, dest, opts);
4640
4640
  if (destStat) {
4641
4641
  if (areIdentical(srcStat, destStat)) {
4642
- const srcBaseName = path9.basename(src);
4643
- const destBaseName = path9.basename(dest);
4642
+ const srcBaseName = path10.basename(src);
4643
+ const destBaseName = path10.basename(dest);
4644
4644
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
4645
4645
  return { srcStat, destStat, isChangingCase: true };
4646
4646
  }
@@ -4662,8 +4662,8 @@ var require_stat = __commonJS({
4662
4662
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
4663
4663
  if (destStat) {
4664
4664
  if (areIdentical(srcStat, destStat)) {
4665
- const srcBaseName = path9.basename(src);
4666
- const destBaseName = path9.basename(dest);
4665
+ const srcBaseName = path10.basename(src);
4666
+ const destBaseName = path10.basename(dest);
4667
4667
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
4668
4668
  return { srcStat, destStat, isChangingCase: true };
4669
4669
  }
@@ -4682,12 +4682,12 @@ var require_stat = __commonJS({
4682
4682
  return { srcStat, destStat };
4683
4683
  }
4684
4684
  async function checkParentPaths(src, srcStat, dest, funcName) {
4685
- const srcParent = path9.resolve(path9.dirname(src));
4686
- const destParent = path9.resolve(path9.dirname(dest));
4687
- if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
4685
+ const srcParent = path10.resolve(path10.dirname(src));
4686
+ const destParent = path10.resolve(path10.dirname(dest));
4687
+ if (destParent === srcParent || destParent === path10.parse(destParent).root) return;
4688
4688
  let destStat;
4689
4689
  try {
4690
- destStat = await fs3.stat(destParent, { bigint: true });
4690
+ destStat = await fs4.stat(destParent, { bigint: true });
4691
4691
  } catch (err) {
4692
4692
  if (err.code === "ENOENT") return;
4693
4693
  throw err;
@@ -4698,12 +4698,12 @@ var require_stat = __commonJS({
4698
4698
  return checkParentPaths(src, srcStat, destParent, funcName);
4699
4699
  }
4700
4700
  function checkParentPathsSync(src, srcStat, dest, funcName) {
4701
- const srcParent = path9.resolve(path9.dirname(src));
4702
- const destParent = path9.resolve(path9.dirname(dest));
4703
- if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
4701
+ const srcParent = path10.resolve(path10.dirname(src));
4702
+ const destParent = path10.resolve(path10.dirname(dest));
4703
+ if (destParent === srcParent || destParent === path10.parse(destParent).root) return;
4704
4704
  let destStat;
4705
4705
  try {
4706
- destStat = fs3.statSync(destParent, { bigint: true });
4706
+ destStat = fs4.statSync(destParent, { bigint: true });
4707
4707
  } catch (err) {
4708
4708
  if (err.code === "ENOENT") return;
4709
4709
  throw err;
@@ -4717,8 +4717,8 @@ var require_stat = __commonJS({
4717
4717
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
4718
4718
  }
4719
4719
  function isSrcSubdir(src, dest) {
4720
- const srcArr = path9.resolve(src).split(path9.sep).filter((i) => i);
4721
- const destArr = path9.resolve(dest).split(path9.sep).filter((i) => i);
4720
+ const srcArr = path10.resolve(src).split(path10.sep).filter((i) => i);
4721
+ const destArr = path10.resolve(dest).split(path10.sep).filter((i) => i);
4722
4722
  return srcArr.every((cur, i) => destArr[i] === cur);
4723
4723
  }
4724
4724
  function errMsg(src, dest, funcName) {
@@ -4742,8 +4742,8 @@ var require_stat = __commonJS({
4742
4742
  var require_copy = __commonJS({
4743
4743
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
4744
4744
  "use strict";
4745
- var fs3 = require_fs2();
4746
- var path9 = __require("path");
4745
+ var fs4 = require_fs2();
4746
+ var path10 = __require("path");
4747
4747
  var { mkdirs } = require_mkdirs();
4748
4748
  var { pathExists } = require_path_exists();
4749
4749
  var { utimesMillis } = require_utimes();
@@ -4765,7 +4765,7 @@ var require_copy = __commonJS({
4765
4765
  await stat.checkParentPaths(src, srcStat, dest, "copy");
4766
4766
  const include = await runFilter(src, dest, opts);
4767
4767
  if (!include) return;
4768
- const destParent = path9.dirname(dest);
4768
+ const destParent = path10.dirname(dest);
4769
4769
  const dirExists = await pathExists(destParent);
4770
4770
  if (!dirExists) {
4771
4771
  await mkdirs(destParent);
@@ -4777,7 +4777,7 @@ var require_copy = __commonJS({
4777
4777
  return opts.filter(src, dest);
4778
4778
  }
4779
4779
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
4780
- const statFn = opts.dereference ? fs3.stat : fs3.lstat;
4780
+ const statFn = opts.dereference ? fs4.stat : fs4.lstat;
4781
4781
  const srcStat = await statFn(src);
4782
4782
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
4783
4783
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -4789,7 +4789,7 @@ var require_copy = __commonJS({
4789
4789
  async function onFile(srcStat, destStat, src, dest, opts) {
4790
4790
  if (!destStat) return copyFile(srcStat, src, dest, opts);
4791
4791
  if (opts.overwrite) {
4792
- await fs3.unlink(dest);
4792
+ await fs4.unlink(dest);
4793
4793
  return copyFile(srcStat, src, dest, opts);
4794
4794
  }
4795
4795
  if (opts.errorOnExist) {
@@ -4797,30 +4797,30 @@ var require_copy = __commonJS({
4797
4797
  }
4798
4798
  }
4799
4799
  async function copyFile(srcStat, src, dest, opts) {
4800
- await fs3.copyFile(src, dest);
4800
+ await fs4.copyFile(src, dest);
4801
4801
  if (opts.preserveTimestamps) {
4802
4802
  if (fileIsNotWritable(srcStat.mode)) {
4803
4803
  await makeFileWritable(dest, srcStat.mode);
4804
4804
  }
4805
- const updatedSrcStat = await fs3.stat(src);
4805
+ const updatedSrcStat = await fs4.stat(src);
4806
4806
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
4807
4807
  }
4808
- return fs3.chmod(dest, srcStat.mode);
4808
+ return fs4.chmod(dest, srcStat.mode);
4809
4809
  }
4810
4810
  function fileIsNotWritable(srcMode) {
4811
4811
  return (srcMode & 128) === 0;
4812
4812
  }
4813
4813
  function makeFileWritable(dest, srcMode) {
4814
- return fs3.chmod(dest, srcMode | 128);
4814
+ return fs4.chmod(dest, srcMode | 128);
4815
4815
  }
4816
4816
  async function onDir(srcStat, destStat, src, dest, opts) {
4817
4817
  if (!destStat) {
4818
- await fs3.mkdir(dest);
4818
+ await fs4.mkdir(dest);
4819
4819
  }
4820
4820
  const promises = [];
4821
- for await (const item of await fs3.opendir(src)) {
4822
- const srcItem = path9.join(src, item.name);
4823
- const destItem = path9.join(dest, item.name);
4821
+ for await (const item of await fs4.opendir(src)) {
4822
+ const srcItem = path10.join(src, item.name);
4823
+ const destItem = path10.join(dest, item.name);
4824
4824
  promises.push(
4825
4825
  runFilter(srcItem, destItem, opts).then((include) => {
4826
4826
  if (include) {
@@ -4833,26 +4833,26 @@ var require_copy = __commonJS({
4833
4833
  }
4834
4834
  await Promise.all(promises);
4835
4835
  if (!destStat) {
4836
- await fs3.chmod(dest, srcStat.mode);
4836
+ await fs4.chmod(dest, srcStat.mode);
4837
4837
  }
4838
4838
  }
4839
4839
  async function onLink(destStat, src, dest, opts) {
4840
- let resolvedSrc = await fs3.readlink(src);
4840
+ let resolvedSrc = await fs4.readlink(src);
4841
4841
  if (opts.dereference) {
4842
- resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
4842
+ resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
4843
4843
  }
4844
4844
  if (!destStat) {
4845
- return fs3.symlink(resolvedSrc, dest);
4845
+ return fs4.symlink(resolvedSrc, dest);
4846
4846
  }
4847
4847
  let resolvedDest = null;
4848
4848
  try {
4849
- resolvedDest = await fs3.readlink(dest);
4849
+ resolvedDest = await fs4.readlink(dest);
4850
4850
  } catch (e) {
4851
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs3.symlink(resolvedSrc, dest);
4851
+ if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs4.symlink(resolvedSrc, dest);
4852
4852
  throw e;
4853
4853
  }
4854
4854
  if (opts.dereference) {
4855
- resolvedDest = path9.resolve(process.cwd(), resolvedDest);
4855
+ resolvedDest = path10.resolve(process.cwd(), resolvedDest);
4856
4856
  }
4857
4857
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
4858
4858
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -4860,8 +4860,8 @@ var require_copy = __commonJS({
4860
4860
  if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
4861
4861
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
4862
4862
  }
4863
- await fs3.unlink(dest);
4864
- return fs3.symlink(resolvedSrc, dest);
4863
+ await fs4.unlink(dest);
4864
+ return fs4.symlink(resolvedSrc, dest);
4865
4865
  }
4866
4866
  module.exports = copy;
4867
4867
  }
@@ -4871,8 +4871,8 @@ var require_copy = __commonJS({
4871
4871
  var require_copy_sync = __commonJS({
4872
4872
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
4873
4873
  "use strict";
4874
- var fs3 = require_graceful_fs();
4875
- var path9 = __require("path");
4874
+ var fs4 = require_graceful_fs();
4875
+ var path10 = __require("path");
4876
4876
  var mkdirsSync = require_mkdirs().mkdirsSync;
4877
4877
  var utimesMillisSync = require_utimes().utimesMillisSync;
4878
4878
  var stat = require_stat();
@@ -4893,12 +4893,12 @@ var require_copy_sync = __commonJS({
4893
4893
  const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
4894
4894
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
4895
4895
  if (opts.filter && !opts.filter(src, dest)) return;
4896
- const destParent = path9.dirname(dest);
4897
- if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
4896
+ const destParent = path10.dirname(dest);
4897
+ if (!fs4.existsSync(destParent)) mkdirsSync(destParent);
4898
4898
  return getStats(destStat, src, dest, opts);
4899
4899
  }
4900
4900
  function getStats(destStat, src, dest, opts) {
4901
- const statSync2 = opts.dereference ? fs3.statSync : fs3.lstatSync;
4901
+ const statSync2 = opts.dereference ? fs4.statSync : fs4.lstatSync;
4902
4902
  const srcStat = statSync2(src);
4903
4903
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
4904
4904
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -4913,14 +4913,14 @@ var require_copy_sync = __commonJS({
4913
4913
  }
4914
4914
  function mayCopyFile(srcStat, src, dest, opts) {
4915
4915
  if (opts.overwrite) {
4916
- fs3.unlinkSync(dest);
4916
+ fs4.unlinkSync(dest);
4917
4917
  return copyFile(srcStat, src, dest, opts);
4918
4918
  } else if (opts.errorOnExist) {
4919
4919
  throw new Error(`'${dest}' already exists`);
4920
4920
  }
4921
4921
  }
4922
4922
  function copyFile(srcStat, src, dest, opts) {
4923
- fs3.copyFileSync(src, dest);
4923
+ fs4.copyFileSync(src, dest);
4924
4924
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
4925
4925
  return setDestMode(dest, srcStat.mode);
4926
4926
  }
@@ -4935,10 +4935,10 @@ var require_copy_sync = __commonJS({
4935
4935
  return setDestMode(dest, srcMode | 128);
4936
4936
  }
4937
4937
  function setDestMode(dest, srcMode) {
4938
- return fs3.chmodSync(dest, srcMode);
4938
+ return fs4.chmodSync(dest, srcMode);
4939
4939
  }
4940
4940
  function setDestTimestamps(src, dest) {
4941
- const updatedSrcStat = fs3.statSync(src);
4941
+ const updatedSrcStat = fs4.statSync(src);
4942
4942
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
4943
4943
  }
4944
4944
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -4946,12 +4946,12 @@ var require_copy_sync = __commonJS({
4946
4946
  return copyDir(src, dest, opts);
4947
4947
  }
4948
4948
  function mkDirAndCopy(srcMode, src, dest, opts) {
4949
- fs3.mkdirSync(dest);
4949
+ fs4.mkdirSync(dest);
4950
4950
  copyDir(src, dest, opts);
4951
4951
  return setDestMode(dest, srcMode);
4952
4952
  }
4953
4953
  function copyDir(src, dest, opts) {
4954
- const dir = fs3.opendirSync(src);
4954
+ const dir = fs4.opendirSync(src);
4955
4955
  try {
4956
4956
  let dirent;
4957
4957
  while ((dirent = dir.readSync()) !== null) {
@@ -4962,29 +4962,29 @@ var require_copy_sync = __commonJS({
4962
4962
  }
4963
4963
  }
4964
4964
  function copyDirItem(item, src, dest, opts) {
4965
- const srcItem = path9.join(src, item);
4966
- const destItem = path9.join(dest, item);
4965
+ const srcItem = path10.join(src, item);
4966
+ const destItem = path10.join(dest, item);
4967
4967
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
4968
4968
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
4969
4969
  return getStats(destStat, srcItem, destItem, opts);
4970
4970
  }
4971
4971
  function onLink(destStat, src, dest, opts) {
4972
- let resolvedSrc = fs3.readlinkSync(src);
4972
+ let resolvedSrc = fs4.readlinkSync(src);
4973
4973
  if (opts.dereference) {
4974
- resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
4974
+ resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
4975
4975
  }
4976
4976
  if (!destStat) {
4977
- return fs3.symlinkSync(resolvedSrc, dest);
4977
+ return fs4.symlinkSync(resolvedSrc, dest);
4978
4978
  } else {
4979
4979
  let resolvedDest;
4980
4980
  try {
4981
- resolvedDest = fs3.readlinkSync(dest);
4981
+ resolvedDest = fs4.readlinkSync(dest);
4982
4982
  } catch (err) {
4983
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs3.symlinkSync(resolvedSrc, dest);
4983
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs4.symlinkSync(resolvedSrc, dest);
4984
4984
  throw err;
4985
4985
  }
4986
4986
  if (opts.dereference) {
4987
- resolvedDest = path9.resolve(process.cwd(), resolvedDest);
4987
+ resolvedDest = path10.resolve(process.cwd(), resolvedDest);
4988
4988
  }
4989
4989
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
4990
4990
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -4996,8 +4996,8 @@ var require_copy_sync = __commonJS({
4996
4996
  }
4997
4997
  }
4998
4998
  function copyLink(resolvedSrc, dest) {
4999
- fs3.unlinkSync(dest);
5000
- return fs3.symlinkSync(resolvedSrc, dest);
4999
+ fs4.unlinkSync(dest);
5000
+ return fs4.symlinkSync(resolvedSrc, dest);
5001
5001
  }
5002
5002
  module.exports = copySync;
5003
5003
  }
@@ -5019,13 +5019,13 @@ var require_copy2 = __commonJS({
5019
5019
  var require_remove = __commonJS({
5020
5020
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
5021
5021
  "use strict";
5022
- var fs3 = require_graceful_fs();
5022
+ var fs4 = require_graceful_fs();
5023
5023
  var u = require_universalify().fromCallback;
5024
- function remove(path9, callback) {
5025
- fs3.rm(path9, { recursive: true, force: true }, callback);
5024
+ function remove(path10, callback) {
5025
+ fs4.rm(path10, { recursive: true, force: true }, callback);
5026
5026
  }
5027
- function removeSync(path9) {
5028
- fs3.rmSync(path9, { recursive: true, force: true });
5027
+ function removeSync(path10) {
5028
+ fs4.rmSync(path10, { recursive: true, force: true });
5029
5029
  }
5030
5030
  module.exports = {
5031
5031
  remove: u(remove),
@@ -5039,28 +5039,28 @@ var require_empty = __commonJS({
5039
5039
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
5040
5040
  "use strict";
5041
5041
  var u = require_universalify().fromPromise;
5042
- var fs3 = require_fs2();
5043
- var path9 = __require("path");
5042
+ var fs4 = require_fs2();
5043
+ var path10 = __require("path");
5044
5044
  var mkdir = require_mkdirs();
5045
5045
  var remove = require_remove();
5046
5046
  var emptyDir = u(async function emptyDir2(dir) {
5047
5047
  let items;
5048
5048
  try {
5049
- items = await fs3.readdir(dir);
5049
+ items = await fs4.readdir(dir);
5050
5050
  } catch {
5051
5051
  return mkdir.mkdirs(dir);
5052
5052
  }
5053
- return Promise.all(items.map((item) => remove.remove(path9.join(dir, item))));
5053
+ return Promise.all(items.map((item) => remove.remove(path10.join(dir, item))));
5054
5054
  });
5055
5055
  function emptyDirSync(dir) {
5056
5056
  let items;
5057
5057
  try {
5058
- items = fs3.readdirSync(dir);
5058
+ items = fs4.readdirSync(dir);
5059
5059
  } catch {
5060
5060
  return mkdir.mkdirsSync(dir);
5061
5061
  }
5062
5062
  items.forEach((item) => {
5063
- item = path9.join(dir, item);
5063
+ item = path10.join(dir, item);
5064
5064
  remove.removeSync(item);
5065
5065
  });
5066
5066
  }
@@ -5078,52 +5078,52 @@ var require_file = __commonJS({
5078
5078
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
5079
5079
  "use strict";
5080
5080
  var u = require_universalify().fromPromise;
5081
- var path9 = __require("path");
5082
- var fs3 = require_fs2();
5081
+ var path10 = __require("path");
5082
+ var fs4 = require_fs2();
5083
5083
  var mkdir = require_mkdirs();
5084
5084
  async function createFile(file) {
5085
5085
  let stats;
5086
5086
  try {
5087
- stats = await fs3.stat(file);
5087
+ stats = await fs4.stat(file);
5088
5088
  } catch {
5089
5089
  }
5090
5090
  if (stats && stats.isFile()) return;
5091
- const dir = path9.dirname(file);
5091
+ const dir = path10.dirname(file);
5092
5092
  let dirStats = null;
5093
5093
  try {
5094
- dirStats = await fs3.stat(dir);
5094
+ dirStats = await fs4.stat(dir);
5095
5095
  } catch (err) {
5096
5096
  if (err.code === "ENOENT") {
5097
5097
  await mkdir.mkdirs(dir);
5098
- await fs3.writeFile(file, "");
5098
+ await fs4.writeFile(file, "");
5099
5099
  return;
5100
5100
  } else {
5101
5101
  throw err;
5102
5102
  }
5103
5103
  }
5104
5104
  if (dirStats.isDirectory()) {
5105
- await fs3.writeFile(file, "");
5105
+ await fs4.writeFile(file, "");
5106
5106
  } else {
5107
- await fs3.readdir(dir);
5107
+ await fs4.readdir(dir);
5108
5108
  }
5109
5109
  }
5110
5110
  function createFileSync(file) {
5111
5111
  let stats;
5112
5112
  try {
5113
- stats = fs3.statSync(file);
5113
+ stats = fs4.statSync(file);
5114
5114
  } catch {
5115
5115
  }
5116
5116
  if (stats && stats.isFile()) return;
5117
- const dir = path9.dirname(file);
5117
+ const dir = path10.dirname(file);
5118
5118
  try {
5119
- if (!fs3.statSync(dir).isDirectory()) {
5120
- fs3.readdirSync(dir);
5119
+ if (!fs4.statSync(dir).isDirectory()) {
5120
+ fs4.readdirSync(dir);
5121
5121
  }
5122
5122
  } catch (err) {
5123
5123
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
5124
5124
  else throw err;
5125
5125
  }
5126
- fs3.writeFileSync(file, "");
5126
+ fs4.writeFileSync(file, "");
5127
5127
  }
5128
5128
  module.exports = {
5129
5129
  createFile: u(createFile),
@@ -5137,50 +5137,50 @@ var require_link = __commonJS({
5137
5137
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
5138
5138
  "use strict";
5139
5139
  var u = require_universalify().fromPromise;
5140
- var path9 = __require("path");
5141
- var fs3 = require_fs2();
5140
+ var path10 = __require("path");
5141
+ var fs4 = require_fs2();
5142
5142
  var mkdir = require_mkdirs();
5143
5143
  var { pathExists } = require_path_exists();
5144
5144
  var { areIdentical } = require_stat();
5145
5145
  async function createLink(srcpath, dstpath) {
5146
5146
  let dstStat;
5147
5147
  try {
5148
- dstStat = await fs3.lstat(dstpath);
5148
+ dstStat = await fs4.lstat(dstpath);
5149
5149
  } catch {
5150
5150
  }
5151
5151
  let srcStat;
5152
5152
  try {
5153
- srcStat = await fs3.lstat(srcpath);
5153
+ srcStat = await fs4.lstat(srcpath);
5154
5154
  } catch (err) {
5155
5155
  err.message = err.message.replace("lstat", "ensureLink");
5156
5156
  throw err;
5157
5157
  }
5158
5158
  if (dstStat && areIdentical(srcStat, dstStat)) return;
5159
- const dir = path9.dirname(dstpath);
5159
+ const dir = path10.dirname(dstpath);
5160
5160
  const dirExists = await pathExists(dir);
5161
5161
  if (!dirExists) {
5162
5162
  await mkdir.mkdirs(dir);
5163
5163
  }
5164
- await fs3.link(srcpath, dstpath);
5164
+ await fs4.link(srcpath, dstpath);
5165
5165
  }
5166
5166
  function createLinkSync(srcpath, dstpath) {
5167
5167
  let dstStat;
5168
5168
  try {
5169
- dstStat = fs3.lstatSync(dstpath);
5169
+ dstStat = fs4.lstatSync(dstpath);
5170
5170
  } catch {
5171
5171
  }
5172
5172
  try {
5173
- const srcStat = fs3.lstatSync(srcpath);
5173
+ const srcStat = fs4.lstatSync(srcpath);
5174
5174
  if (dstStat && areIdentical(srcStat, dstStat)) return;
5175
5175
  } catch (err) {
5176
5176
  err.message = err.message.replace("lstat", "ensureLink");
5177
5177
  throw err;
5178
5178
  }
5179
- const dir = path9.dirname(dstpath);
5180
- const dirExists = fs3.existsSync(dir);
5181
- if (dirExists) return fs3.linkSync(srcpath, dstpath);
5179
+ const dir = path10.dirname(dstpath);
5180
+ const dirExists = fs4.existsSync(dir);
5181
+ if (dirExists) return fs4.linkSync(srcpath, dstpath);
5182
5182
  mkdir.mkdirsSync(dir);
5183
- return fs3.linkSync(srcpath, dstpath);
5183
+ return fs4.linkSync(srcpath, dstpath);
5184
5184
  }
5185
5185
  module.exports = {
5186
5186
  createLink: u(createLink),
@@ -5193,14 +5193,14 @@ var require_link = __commonJS({
5193
5193
  var require_symlink_paths = __commonJS({
5194
5194
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
5195
5195
  "use strict";
5196
- var path9 = __require("path");
5197
- var fs3 = require_fs2();
5196
+ var path10 = __require("path");
5197
+ var fs4 = require_fs2();
5198
5198
  var { pathExists } = require_path_exists();
5199
5199
  var u = require_universalify().fromPromise;
5200
5200
  async function symlinkPaths(srcpath, dstpath) {
5201
- if (path9.isAbsolute(srcpath)) {
5201
+ if (path10.isAbsolute(srcpath)) {
5202
5202
  try {
5203
- await fs3.lstat(srcpath);
5203
+ await fs4.lstat(srcpath);
5204
5204
  } catch (err) {
5205
5205
  err.message = err.message.replace("lstat", "ensureSymlink");
5206
5206
  throw err;
@@ -5210,8 +5210,8 @@ var require_symlink_paths = __commonJS({
5210
5210
  toDst: srcpath
5211
5211
  };
5212
5212
  }
5213
- const dstdir = path9.dirname(dstpath);
5214
- const relativeToDst = path9.join(dstdir, srcpath);
5213
+ const dstdir = path10.dirname(dstpath);
5214
+ const relativeToDst = path10.join(dstdir, srcpath);
5215
5215
  const exists = await pathExists(relativeToDst);
5216
5216
  if (exists) {
5217
5217
  return {
@@ -5220,39 +5220,39 @@ var require_symlink_paths = __commonJS({
5220
5220
  };
5221
5221
  }
5222
5222
  try {
5223
- await fs3.lstat(srcpath);
5223
+ await fs4.lstat(srcpath);
5224
5224
  } catch (err) {
5225
5225
  err.message = err.message.replace("lstat", "ensureSymlink");
5226
5226
  throw err;
5227
5227
  }
5228
5228
  return {
5229
5229
  toCwd: srcpath,
5230
- toDst: path9.relative(dstdir, srcpath)
5230
+ toDst: path10.relative(dstdir, srcpath)
5231
5231
  };
5232
5232
  }
5233
5233
  function symlinkPathsSync(srcpath, dstpath) {
5234
- if (path9.isAbsolute(srcpath)) {
5235
- const exists2 = fs3.existsSync(srcpath);
5234
+ if (path10.isAbsolute(srcpath)) {
5235
+ const exists2 = fs4.existsSync(srcpath);
5236
5236
  if (!exists2) throw new Error("absolute srcpath does not exist");
5237
5237
  return {
5238
5238
  toCwd: srcpath,
5239
5239
  toDst: srcpath
5240
5240
  };
5241
5241
  }
5242
- const dstdir = path9.dirname(dstpath);
5243
- const relativeToDst = path9.join(dstdir, srcpath);
5244
- const exists = fs3.existsSync(relativeToDst);
5242
+ const dstdir = path10.dirname(dstpath);
5243
+ const relativeToDst = path10.join(dstdir, srcpath);
5244
+ const exists = fs4.existsSync(relativeToDst);
5245
5245
  if (exists) {
5246
5246
  return {
5247
5247
  toCwd: relativeToDst,
5248
5248
  toDst: srcpath
5249
5249
  };
5250
5250
  }
5251
- const srcExists = fs3.existsSync(srcpath);
5251
+ const srcExists = fs4.existsSync(srcpath);
5252
5252
  if (!srcExists) throw new Error("relative srcpath does not exist");
5253
5253
  return {
5254
5254
  toCwd: srcpath,
5255
- toDst: path9.relative(dstdir, srcpath)
5255
+ toDst: path10.relative(dstdir, srcpath)
5256
5256
  };
5257
5257
  }
5258
5258
  module.exports = {
@@ -5266,13 +5266,13 @@ var require_symlink_paths = __commonJS({
5266
5266
  var require_symlink_type = __commonJS({
5267
5267
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
5268
5268
  "use strict";
5269
- var fs3 = require_fs2();
5269
+ var fs4 = require_fs2();
5270
5270
  var u = require_universalify().fromPromise;
5271
5271
  async function symlinkType(srcpath, type) {
5272
5272
  if (type) return type;
5273
5273
  let stats;
5274
5274
  try {
5275
- stats = await fs3.lstat(srcpath);
5275
+ stats = await fs4.lstat(srcpath);
5276
5276
  } catch {
5277
5277
  return "file";
5278
5278
  }
@@ -5282,7 +5282,7 @@ var require_symlink_type = __commonJS({
5282
5282
  if (type) return type;
5283
5283
  let stats;
5284
5284
  try {
5285
- stats = fs3.lstatSync(srcpath);
5285
+ stats = fs4.lstatSync(srcpath);
5286
5286
  } catch {
5287
5287
  return "file";
5288
5288
  }
@@ -5300,8 +5300,8 @@ var require_symlink = __commonJS({
5300
5300
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
5301
5301
  "use strict";
5302
5302
  var u = require_universalify().fromPromise;
5303
- var path9 = __require("path");
5304
- var fs3 = require_fs2();
5303
+ var path10 = __require("path");
5304
+ var fs4 = require_fs2();
5305
5305
  var { mkdirs, mkdirsSync } = require_mkdirs();
5306
5306
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
5307
5307
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -5310,44 +5310,44 @@ var require_symlink = __commonJS({
5310
5310
  async function createSymlink(srcpath, dstpath, type) {
5311
5311
  let stats;
5312
5312
  try {
5313
- stats = await fs3.lstat(dstpath);
5313
+ stats = await fs4.lstat(dstpath);
5314
5314
  } catch {
5315
5315
  }
5316
5316
  if (stats && stats.isSymbolicLink()) {
5317
5317
  const [srcStat, dstStat] = await Promise.all([
5318
- fs3.stat(srcpath),
5319
- fs3.stat(dstpath)
5318
+ fs4.stat(srcpath),
5319
+ fs4.stat(dstpath)
5320
5320
  ]);
5321
5321
  if (areIdentical(srcStat, dstStat)) return;
5322
5322
  }
5323
5323
  const relative = await symlinkPaths(srcpath, dstpath);
5324
5324
  srcpath = relative.toDst;
5325
5325
  const toType = await symlinkType(relative.toCwd, type);
5326
- const dir = path9.dirname(dstpath);
5326
+ const dir = path10.dirname(dstpath);
5327
5327
  if (!await pathExists(dir)) {
5328
5328
  await mkdirs(dir);
5329
5329
  }
5330
- return fs3.symlink(srcpath, dstpath, toType);
5330
+ return fs4.symlink(srcpath, dstpath, toType);
5331
5331
  }
5332
5332
  function createSymlinkSync(srcpath, dstpath, type) {
5333
5333
  let stats;
5334
5334
  try {
5335
- stats = fs3.lstatSync(dstpath);
5335
+ stats = fs4.lstatSync(dstpath);
5336
5336
  } catch {
5337
5337
  }
5338
5338
  if (stats && stats.isSymbolicLink()) {
5339
- const srcStat = fs3.statSync(srcpath);
5340
- const dstStat = fs3.statSync(dstpath);
5339
+ const srcStat = fs4.statSync(srcpath);
5340
+ const dstStat = fs4.statSync(dstpath);
5341
5341
  if (areIdentical(srcStat, dstStat)) return;
5342
5342
  }
5343
5343
  const relative = symlinkPathsSync(srcpath, dstpath);
5344
5344
  srcpath = relative.toDst;
5345
5345
  type = symlinkTypeSync(relative.toCwd, type);
5346
- const dir = path9.dirname(dstpath);
5347
- const exists = fs3.existsSync(dir);
5348
- if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
5346
+ const dir = path10.dirname(dstpath);
5347
+ const exists = fs4.existsSync(dir);
5348
+ if (exists) return fs4.symlinkSync(srcpath, dstpath, type);
5349
5349
  mkdirsSync(dir);
5350
- return fs3.symlinkSync(srcpath, dstpath, type);
5350
+ return fs4.symlinkSync(srcpath, dstpath, type);
5351
5351
  }
5352
5352
  module.exports = {
5353
5353
  createSymlink: u(createSymlink),
@@ -5416,9 +5416,9 @@ var require_jsonfile = __commonJS({
5416
5416
  if (typeof options === "string") {
5417
5417
  options = { encoding: options };
5418
5418
  }
5419
- const fs3 = options.fs || _fs;
5419
+ const fs4 = options.fs || _fs;
5420
5420
  const shouldThrow = "throws" in options ? options.throws : true;
5421
- let data = await universalify.fromCallback(fs3.readFile)(file, options);
5421
+ let data = await universalify.fromCallback(fs4.readFile)(file, options);
5422
5422
  data = stripBom(data);
5423
5423
  let obj;
5424
5424
  try {
@@ -5433,15 +5433,15 @@ var require_jsonfile = __commonJS({
5433
5433
  }
5434
5434
  return obj;
5435
5435
  }
5436
- var readFile2 = universalify.fromPromise(_readFile);
5437
- function readFileSync2(file, options = {}) {
5436
+ var readFile = universalify.fromPromise(_readFile);
5437
+ function readFileSync(file, options = {}) {
5438
5438
  if (typeof options === "string") {
5439
5439
  options = { encoding: options };
5440
5440
  }
5441
- const fs3 = options.fs || _fs;
5441
+ const fs4 = options.fs || _fs;
5442
5442
  const shouldThrow = "throws" in options ? options.throws : true;
5443
5443
  try {
5444
- let content = fs3.readFileSync(file, options);
5444
+ let content = fs4.readFileSync(file, options);
5445
5445
  content = stripBom(content);
5446
5446
  return JSON.parse(content, options.reviver);
5447
5447
  } catch (err) {
@@ -5454,19 +5454,19 @@ var require_jsonfile = __commonJS({
5454
5454
  }
5455
5455
  }
5456
5456
  async function _writeFile(file, obj, options = {}) {
5457
- const fs3 = options.fs || _fs;
5457
+ const fs4 = options.fs || _fs;
5458
5458
  const str = stringify(obj, options);
5459
- await universalify.fromCallback(fs3.writeFile)(file, str, options);
5459
+ await universalify.fromCallback(fs4.writeFile)(file, str, options);
5460
5460
  }
5461
5461
  var writeFile = universalify.fromPromise(_writeFile);
5462
5462
  function writeFileSync(file, obj, options = {}) {
5463
- const fs3 = options.fs || _fs;
5463
+ const fs4 = options.fs || _fs;
5464
5464
  const str = stringify(obj, options);
5465
- return fs3.writeFileSync(file, str, options);
5465
+ return fs4.writeFileSync(file, str, options);
5466
5466
  }
5467
5467
  var jsonfile = {
5468
- readFile: readFile2,
5469
- readFileSync: readFileSync2,
5468
+ readFile,
5469
+ readFileSync,
5470
5470
  writeFile,
5471
5471
  writeFileSync
5472
5472
  };
@@ -5494,23 +5494,23 @@ var require_output_file = __commonJS({
5494
5494
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
5495
5495
  "use strict";
5496
5496
  var u = require_universalify().fromPromise;
5497
- var fs3 = require_fs2();
5498
- var path9 = __require("path");
5497
+ var fs4 = require_fs2();
5498
+ var path10 = __require("path");
5499
5499
  var mkdir = require_mkdirs();
5500
5500
  var pathExists = require_path_exists().pathExists;
5501
5501
  async function outputFile(file, data, encoding = "utf-8") {
5502
- const dir = path9.dirname(file);
5502
+ const dir = path10.dirname(file);
5503
5503
  if (!await pathExists(dir)) {
5504
5504
  await mkdir.mkdirs(dir);
5505
5505
  }
5506
- return fs3.writeFile(file, data, encoding);
5506
+ return fs4.writeFile(file, data, encoding);
5507
5507
  }
5508
5508
  function outputFileSync(file, ...args) {
5509
- const dir = path9.dirname(file);
5510
- if (!fs3.existsSync(dir)) {
5509
+ const dir = path10.dirname(file);
5510
+ if (!fs4.existsSync(dir)) {
5511
5511
  mkdir.mkdirsSync(dir);
5512
5512
  }
5513
- fs3.writeFileSync(file, ...args);
5513
+ fs4.writeFileSync(file, ...args);
5514
5514
  }
5515
5515
  module.exports = {
5516
5516
  outputFile: u(outputFile),
@@ -5569,8 +5569,8 @@ var require_json = __commonJS({
5569
5569
  var require_move = __commonJS({
5570
5570
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/move/move.js"(exports, module) {
5571
5571
  "use strict";
5572
- var fs3 = require_fs2();
5573
- var path9 = __require("path");
5572
+ var fs4 = require_fs2();
5573
+ var path10 = __require("path");
5574
5574
  var { copy } = require_copy2();
5575
5575
  var { remove } = require_remove();
5576
5576
  var { mkdirp } = require_mkdirs();
@@ -5580,8 +5580,8 @@ var require_move = __commonJS({
5580
5580
  const overwrite = opts.overwrite || opts.clobber || false;
5581
5581
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
5582
5582
  await stat.checkParentPaths(src, srcStat, dest, "move");
5583
- const destParent = path9.dirname(dest);
5584
- const parsedParentPath = path9.parse(destParent);
5583
+ const destParent = path10.dirname(dest);
5584
+ const parsedParentPath = path10.parse(destParent);
5585
5585
  if (parsedParentPath.root !== destParent) {
5586
5586
  await mkdirp(destParent);
5587
5587
  }
@@ -5596,7 +5596,7 @@ var require_move = __commonJS({
5596
5596
  }
5597
5597
  }
5598
5598
  try {
5599
- await fs3.rename(src, dest);
5599
+ await fs4.rename(src, dest);
5600
5600
  } catch (err) {
5601
5601
  if (err.code !== "EXDEV") {
5602
5602
  throw err;
@@ -5621,8 +5621,8 @@ var require_move = __commonJS({
5621
5621
  var require_move_sync = __commonJS({
5622
5622
  "../../node_modules/@rushstack/node-core-library/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
5623
5623
  "use strict";
5624
- var fs3 = require_graceful_fs();
5625
- var path9 = __require("path");
5624
+ var fs4 = require_graceful_fs();
5625
+ var path10 = __require("path");
5626
5626
  var copySync = require_copy2().copySync;
5627
5627
  var removeSync = require_remove().removeSync;
5628
5628
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -5632,12 +5632,12 @@ var require_move_sync = __commonJS({
5632
5632
  const overwrite = opts.overwrite || opts.clobber || false;
5633
5633
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
5634
5634
  stat.checkParentPathsSync(src, srcStat, dest, "move");
5635
- if (!isParentRoot(dest)) mkdirpSync(path9.dirname(dest));
5635
+ if (!isParentRoot(dest)) mkdirpSync(path10.dirname(dest));
5636
5636
  return doRename(src, dest, overwrite, isChangingCase);
5637
5637
  }
5638
5638
  function isParentRoot(dest) {
5639
- const parent = path9.dirname(dest);
5640
- const parsedPath = path9.parse(parent);
5639
+ const parent = path10.dirname(dest);
5640
+ const parsedPath = path10.parse(parent);
5641
5641
  return parsedPath.root === parent;
5642
5642
  }
5643
5643
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -5646,12 +5646,12 @@ var require_move_sync = __commonJS({
5646
5646
  removeSync(dest);
5647
5647
  return rename(src, dest, overwrite);
5648
5648
  }
5649
- if (fs3.existsSync(dest)) throw new Error("dest already exists.");
5649
+ if (fs4.existsSync(dest)) throw new Error("dest already exists.");
5650
5650
  return rename(src, dest, overwrite);
5651
5651
  }
5652
5652
  function rename(src, dest, overwrite) {
5653
5653
  try {
5654
- fs3.renameSync(src, dest);
5654
+ fs4.renameSync(src, dest);
5655
5655
  } catch (err) {
5656
5656
  if (err.code !== "EXDEV") throw err;
5657
5657
  return moveAcrossDevice(src, dest, overwrite);
@@ -5752,14 +5752,14 @@ var require_Text = __commonJS({
5752
5752
  }, i);
5753
5753
  function verb(n) {
5754
5754
  i[n] = o[n] && function(v) {
5755
- return new Promise(function(resolve4, reject) {
5756
- v = o[n](v), settle(resolve4, reject, v.done, v.value);
5755
+ return new Promise(function(resolve3, reject) {
5756
+ v = o[n](v), settle(resolve3, reject, v.done, v.value);
5757
5757
  });
5758
5758
  };
5759
5759
  }
5760
- function settle(resolve4, reject, d, v) {
5760
+ function settle(resolve3, reject, d, v) {
5761
5761
  Promise.resolve(v).then(function(v2) {
5762
- resolve4({ value: v2, done: d });
5762
+ resolve3({ value: v2, done: d });
5763
5763
  }, reject);
5764
5764
  }
5765
5765
  };
@@ -6104,7 +6104,7 @@ var require_FileSystem = __commonJS({
6104
6104
  Object.defineProperty(exports, "__esModule", { value: true });
6105
6105
  exports.FileSystem = exports.AlreadyExistsBehavior = void 0;
6106
6106
  var nodeJsPath = __importStar(__require("path"));
6107
- var fs3 = __importStar(__require("fs"));
6107
+ var fs4 = __importStar(__require("fs"));
6108
6108
  var fsPromises = __importStar(__require("fs/promises"));
6109
6109
  var fsx = __importStar(require_lib());
6110
6110
  var Text_1 = require_Text();
@@ -6156,18 +6156,18 @@ var require_FileSystem = __commonJS({
6156
6156
  * break-on-exception debugging experience. Also, throwing/catching is generally slow.
6157
6157
  * @param path - The absolute or relative path to the filesystem object.
6158
6158
  */
6159
- static exists(path9) {
6159
+ static exists(path10) {
6160
6160
  return _FileSystem._wrapException(() => {
6161
- return fsx.existsSync(path9);
6161
+ return fsx.existsSync(path10);
6162
6162
  });
6163
6163
  }
6164
6164
  /**
6165
6165
  * An async version of {@link FileSystem.exists}.
6166
6166
  */
6167
- static async existsAsync(path9) {
6167
+ static async existsAsync(path10) {
6168
6168
  return await _FileSystem._wrapExceptionAsync(() => {
6169
- return new Promise((resolve4) => {
6170
- fsx.exists(path9, resolve4);
6169
+ return new Promise((resolve3) => {
6170
+ fsx.exists(path10, resolve3);
6171
6171
  });
6172
6172
  });
6173
6173
  }
@@ -6177,17 +6177,17 @@ var require_FileSystem = __commonJS({
6177
6177
  * Behind the scenes it uses `fs.statSync()`.
6178
6178
  * @param path - The absolute or relative path to the filesystem object.
6179
6179
  */
6180
- static getStatistics(path9) {
6180
+ static getStatistics(path10) {
6181
6181
  return _FileSystem._wrapException(() => {
6182
- return fsx.statSync(path9);
6182
+ return fsx.statSync(path10);
6183
6183
  });
6184
6184
  }
6185
6185
  /**
6186
6186
  * An async version of {@link FileSystem.getStatistics}.
6187
6187
  */
6188
- static async getStatisticsAsync(path9) {
6188
+ static async getStatisticsAsync(path10) {
6189
6189
  return await _FileSystem._wrapExceptionAsync(() => {
6190
- return fsx.stat(path9);
6190
+ return fsx.stat(path10);
6191
6191
  });
6192
6192
  }
6193
6193
  /**
@@ -6197,17 +6197,17 @@ var require_FileSystem = __commonJS({
6197
6197
  * @param path - The path of the file that should be modified.
6198
6198
  * @param times - The times that the object should be updated to reflect.
6199
6199
  */
6200
- static updateTimes(path9, times) {
6200
+ static updateTimes(path10, times) {
6201
6201
  return _FileSystem._wrapException(() => {
6202
- fsx.utimesSync(path9, times.accessedTime, times.modifiedTime);
6202
+ fsx.utimesSync(path10, times.accessedTime, times.modifiedTime);
6203
6203
  });
6204
6204
  }
6205
6205
  /**
6206
6206
  * An async version of {@link FileSystem.updateTimes}.
6207
6207
  */
6208
- static async updateTimesAsync(path9, times) {
6208
+ static async updateTimesAsync(path10, times) {
6209
6209
  await _FileSystem._wrapExceptionAsync(() => {
6210
- return fsx.utimes(path9, times.accessedTime, times.modifiedTime);
6210
+ return fsx.utimes(path10, times.accessedTime, times.modifiedTime);
6211
6211
  });
6212
6212
  }
6213
6213
  /**
@@ -6216,17 +6216,17 @@ var require_FileSystem = __commonJS({
6216
6216
  * @param path - The absolute or relative path to the object that should be updated.
6217
6217
  * @param modeBits - POSIX-style file mode bits specified using the {@link PosixModeBits} enum
6218
6218
  */
6219
- static changePosixModeBits(path9, modeBits) {
6219
+ static changePosixModeBits(path10, modeBits) {
6220
6220
  _FileSystem._wrapException(() => {
6221
- fs3.chmodSync(path9, modeBits);
6221
+ fs4.chmodSync(path10, modeBits);
6222
6222
  });
6223
6223
  }
6224
6224
  /**
6225
6225
  * An async version of {@link FileSystem.changePosixModeBits}.
6226
6226
  */
6227
- static async changePosixModeBitsAsync(path9, mode) {
6227
+ static async changePosixModeBitsAsync(path10, mode) {
6228
6228
  await _FileSystem._wrapExceptionAsync(() => {
6229
- return fsx.chmod(path9, mode);
6229
+ return fsx.chmod(path10, mode);
6230
6230
  });
6231
6231
  }
6232
6232
  /**
@@ -6239,17 +6239,17 @@ var require_FileSystem = __commonJS({
6239
6239
  * If statistics in addition to the mode bits are needed, it is more efficient
6240
6240
  * to call {@link FileSystem.getStatistics} directly instead.
6241
6241
  */
6242
- static getPosixModeBits(path9) {
6242
+ static getPosixModeBits(path10) {
6243
6243
  return _FileSystem._wrapException(() => {
6244
- return _FileSystem.getStatistics(path9).mode;
6244
+ return _FileSystem.getStatistics(path10).mode;
6245
6245
  });
6246
6246
  }
6247
6247
  /**
6248
6248
  * An async version of {@link FileSystem.getPosixModeBits}.
6249
6249
  */
6250
- static async getPosixModeBitsAsync(path9) {
6250
+ static async getPosixModeBitsAsync(path10) {
6251
6251
  return await _FileSystem._wrapExceptionAsync(async () => {
6252
- return (await _FileSystem.getStatisticsAsync(path9)).mode;
6252
+ return (await _FileSystem.getStatisticsAsync(path10)).mode;
6253
6253
  });
6254
6254
  }
6255
6255
  /**
@@ -6817,17 +6817,17 @@ var require_FileSystem = __commonJS({
6817
6817
  * Behind the scenes it uses `fs.lstatSync()`.
6818
6818
  * @param path - The absolute or relative path to the filesystem object.
6819
6819
  */
6820
- static getLinkStatistics(path9) {
6820
+ static getLinkStatistics(path10) {
6821
6821
  return _FileSystem._wrapException(() => {
6822
- return fsx.lstatSync(path9);
6822
+ return fsx.lstatSync(path10);
6823
6823
  });
6824
6824
  }
6825
6825
  /**
6826
6826
  * An async version of {@link FileSystem.getLinkStatistics}.
6827
6827
  */
6828
- static async getLinkStatisticsAsync(path9) {
6828
+ static async getLinkStatisticsAsync(path10) {
6829
6829
  return await _FileSystem._wrapExceptionAsync(() => {
6830
- return fsx.lstat(path9);
6830
+ return fsx.lstat(path10);
6831
6831
  });
6832
6832
  }
6833
6833
  /**
@@ -6841,17 +6841,17 @@ var require_FileSystem = __commonJS({
6841
6841
  * @param path - The absolute or relative path to the symbolic link.
6842
6842
  * @returns the path of the link target
6843
6843
  */
6844
- static readLink(path9) {
6844
+ static readLink(path10) {
6845
6845
  return _FileSystem._wrapException(() => {
6846
- return fsx.readlinkSync(path9);
6846
+ return fsx.readlinkSync(path10);
6847
6847
  });
6848
6848
  }
6849
6849
  /**
6850
6850
  * An async version of {@link FileSystem.readLink}.
6851
6851
  */
6852
- static async readLinkAsync(path9) {
6852
+ static async readLinkAsync(path10) {
6853
6853
  return await _FileSystem._wrapExceptionAsync(() => {
6854
- return fsx.readlink(path9);
6854
+ return fsx.readlink(path10);
6855
6855
  });
6856
6856
  }
6857
6857
  /**
@@ -7198,14 +7198,14 @@ var require_Executable = __commonJS({
7198
7198
  }, i);
7199
7199
  function verb(n) {
7200
7200
  i[n] = o[n] && function(v) {
7201
- return new Promise(function(resolve4, reject) {
7202
- v = o[n](v), settle(resolve4, reject, v.done, v.value);
7201
+ return new Promise(function(resolve3, reject) {
7202
+ v = o[n](v), settle(resolve3, reject, v.done, v.value);
7203
7203
  });
7204
7204
  };
7205
7205
  }
7206
- function settle(resolve4, reject, d, v) {
7206
+ function settle(resolve3, reject, d, v) {
7207
7207
  Promise.resolve(v).then(function(v2) {
7208
- resolve4({ value: v2, done: d });
7208
+ resolve3({ value: v2, done: d });
7209
7209
  }, reject);
7210
7210
  }
7211
7211
  };
@@ -7215,7 +7215,7 @@ var require_Executable = __commonJS({
7215
7215
  exports.parseProcessListOutput = parseProcessListOutput;
7216
7216
  var os = __importStar(__require("os"));
7217
7217
  var child_process = __importStar(__require("child_process"));
7218
- var path9 = __importStar(__require("path"));
7218
+ var path10 = __importStar(__require("path"));
7219
7219
  var EnvironmentMap_1 = require_EnvironmentMap();
7220
7220
  var FileSystem_1 = require_FileSystem();
7221
7221
  var PosixModeBits_1 = require_PosixModeBits();
@@ -7438,7 +7438,7 @@ var require_Executable = __commonJS({
7438
7438
  }
7439
7439
  }
7440
7440
  let errorThrown = void 0;
7441
- const { exitCode, signal } = await new Promise((resolve4, reject) => {
7441
+ const { exitCode, signal } = await new Promise((resolve3, reject) => {
7442
7442
  if (encoding) {
7443
7443
  childProcess.stdout.on("data", (chunk) => {
7444
7444
  collectedStdout.push(normalizeChunk(chunk));
@@ -7459,7 +7459,7 @@ var require_Executable = __commonJS({
7459
7459
  } else if (closeExitCode !== 0 && throwOnNonZeroExitCode) {
7460
7460
  reject(new Error(`Process exited with code ${closeExitCode}`));
7461
7461
  } else {
7462
- resolve4({ exitCode: closeExitCode, signal: closeSignal });
7462
+ resolve3({ exitCode: closeExitCode, signal: closeSignal });
7463
7463
  }
7464
7464
  });
7465
7465
  });
@@ -7552,7 +7552,7 @@ var require_Executable = __commonJS({
7552
7552
  // http://www.windowsinspired.com/understanding-the-command-line-string-and-arguments-received-by-a-windows-program/
7553
7553
  // http://www.windowsinspired.com/how-a-windows-programs-splits-its-command-line-into-individual-arguments/
7554
7554
  static _buildCommandLineFixup(resolvedPath, args, context) {
7555
- const fileExtension = path9.extname(resolvedPath);
7555
+ const fileExtension = path10.extname(resolvedPath);
7556
7556
  if (OS_PLATFORM === "win32") {
7557
7557
  switch (fileExtension.toUpperCase()) {
7558
7558
  case ".EXE":
@@ -7566,7 +7566,7 @@ var require_Executable = __commonJS({
7566
7566
  shellPath = _Executable.tryResolve("cmd.exe");
7567
7567
  }
7568
7568
  if (!shellPath) {
7569
- throw new Error(`Unable to execute "${path9.basename(resolvedPath)}" because CMD.exe was not found in the PATH`);
7569
+ throw new Error(`Unable to execute "${path10.basename(resolvedPath)}" because CMD.exe was not found in the PATH`);
7570
7570
  }
7571
7571
  const shellArgs = [];
7572
7572
  shellArgs.push("/d");
@@ -7577,7 +7577,7 @@ var require_Executable = __commonJS({
7577
7577
  return { path: shellPath, args: shellArgs };
7578
7578
  }
7579
7579
  default:
7580
- throw new Error(`Cannot execute "${path9.basename(resolvedPath)}" because the file type is not supported`);
7580
+ throw new Error(`Cannot execute "${path10.basename(resolvedPath)}" because the file type is not supported`);
7581
7581
  }
7582
7582
  }
7583
7583
  return {
@@ -7607,12 +7607,12 @@ var require_Executable = __commonJS({
7607
7607
  static _tryResolve(filename, options, context) {
7608
7608
  const hasPathSeparators = filename.indexOf("/") >= 0 || OS_PLATFORM === "win32" && filename.indexOf("\\") >= 0;
7609
7609
  if (hasPathSeparators) {
7610
- const resolvedPath = path9.resolve(context.currentWorkingDirectory, filename);
7610
+ const resolvedPath = path10.resolve(context.currentWorkingDirectory, filename);
7611
7611
  return _Executable._tryResolveFileExtension(resolvedPath, context);
7612
7612
  } else {
7613
7613
  const pathsToSearch = _Executable._getSearchFolders(context);
7614
7614
  for (const pathToSearch of pathsToSearch) {
7615
- const resolvedPath = path9.join(pathToSearch, filename);
7615
+ const resolvedPath = path10.join(pathToSearch, filename);
7616
7616
  const result = _Executable._tryResolveFileExtension(resolvedPath, context);
7617
7617
  if (result) {
7618
7618
  return result;
@@ -7657,7 +7657,7 @@ var require_Executable = __commonJS({
7657
7657
  return false;
7658
7658
  }
7659
7659
  if (OS_PLATFORM === "win32") {
7660
- if (path9.extname(filePath) === "") {
7660
+ if (path10.extname(filePath) === "") {
7661
7661
  return false;
7662
7662
  }
7663
7663
  } else {
@@ -7678,11 +7678,11 @@ var require_Executable = __commonJS({
7678
7678
  const pathList = context.environmentMap.get("PATH") || "";
7679
7679
  const folders = [];
7680
7680
  const seenPaths = /* @__PURE__ */ new Set();
7681
- for (const splitPath of pathList.split(path9.delimiter)) {
7681
+ for (const splitPath of pathList.split(path10.delimiter)) {
7682
7682
  const trimmedPath = splitPath.trim();
7683
7683
  if (trimmedPath !== "") {
7684
7684
  if (!seenPaths.has(trimmedPath)) {
7685
- const resolvedPath = path9.resolve(context.currentWorkingDirectory, trimmedPath);
7685
+ const resolvedPath = path10.resolve(context.currentWorkingDirectory, trimmedPath);
7686
7686
  if (!seenPaths.has(resolvedPath)) {
7687
7687
  if (FileSystem_1.FileSystem.exists(resolvedPath)) {
7688
7688
  folders.push(resolvedPath);
@@ -7702,7 +7702,7 @@ var require_Executable = __commonJS({
7702
7702
  const environment = _Executable._buildEnvironmentMap(options);
7703
7703
  let currentWorkingDirectory;
7704
7704
  if (options.currentWorkingDirectory) {
7705
- currentWorkingDirectory = path9.resolve(options.currentWorkingDirectory);
7705
+ currentWorkingDirectory = path10.resolve(options.currentWorkingDirectory);
7706
7706
  } else {
7707
7707
  currentWorkingDirectory = process.cwd();
7708
7708
  }
@@ -7793,7 +7793,7 @@ var require_Path = __commonJS({
7793
7793
  }();
7794
7794
  Object.defineProperty(exports, "__esModule", { value: true });
7795
7795
  exports.Path = void 0;
7796
- var path9 = __importStar(__require("path"));
7796
+ var path10 = __importStar(__require("path"));
7797
7797
  var Path2 = class _Path {
7798
7798
  /**
7799
7799
  * Returns true if "childPath" is located inside the "parentFolderPath" folder
@@ -7806,7 +7806,7 @@ var require_Path = __commonJS({
7806
7806
  * If the paths are relative, they will first be resolved using path.resolve().
7807
7807
  */
7808
7808
  static isUnder(childPath, parentFolderPath) {
7809
- const relativePath = path9.relative(childPath, parentFolderPath);
7809
+ const relativePath = path10.relative(childPath, parentFolderPath);
7810
7810
  return _Path._relativePathRegex.test(relativePath);
7811
7811
  }
7812
7812
  /**
@@ -7819,7 +7819,7 @@ var require_Path = __commonJS({
7819
7819
  * If the paths are relative, they will first be resolved using path.resolve().
7820
7820
  */
7821
7821
  static isUnderOrEqual(childPath, parentFolderPath) {
7822
- const relativePath = path9.relative(childPath, parentFolderPath);
7822
+ const relativePath = path10.relative(childPath, parentFolderPath);
7823
7823
  return relativePath === "" || _Path._relativePathRegex.test(relativePath);
7824
7824
  }
7825
7825
  /**
@@ -7830,7 +7830,7 @@ var require_Path = __commonJS({
7830
7830
  * The comparison is performed using `path.relative()`.
7831
7831
  */
7832
7832
  static isEqual(path1, path22) {
7833
- return path9.relative(path1, path22) === "";
7833
+ return path10.relative(path1, path22) === "";
7834
7834
  }
7835
7835
  /**
7836
7836
  * Formats a path to look nice for reporting purposes.
@@ -7842,17 +7842,17 @@ var require_Path = __commonJS({
7842
7842
  * Backslashes will be converted to slashes, unless the path starts with an OS-specific string like `C:\`.
7843
7843
  */
7844
7844
  static formatConcisely(options) {
7845
- const relativePath = path9.relative(options.pathToConvert, options.baseFolder);
7845
+ const relativePath = path10.relative(options.pathToConvert, options.baseFolder);
7846
7846
  const isUnderOrEqual = relativePath === "" || _Path._relativePathRegex.test(relativePath);
7847
7847
  if (isUnderOrEqual) {
7848
- const convertedPath = _Path.convertToSlashes(path9.relative(options.baseFolder, options.pathToConvert));
7848
+ const convertedPath = _Path.convertToSlashes(path10.relative(options.baseFolder, options.pathToConvert));
7849
7849
  if (options.trimLeadingDotSlash) {
7850
7850
  return convertedPath;
7851
7851
  } else {
7852
7852
  return `./${convertedPath}`;
7853
7853
  }
7854
7854
  }
7855
- const absolutePath = path9.resolve(options.pathToConvert);
7855
+ const absolutePath = path10.resolve(options.pathToConvert);
7856
7856
  return absolutePath;
7857
7857
  }
7858
7858
  /**
@@ -7869,7 +7869,7 @@ var require_Path = __commonJS({
7869
7869
  pathToConvert: pathToFormat,
7870
7870
  baseFolder,
7871
7871
  trimLeadingDotSlash: true
7872
- }) : path9.resolve(pathToFormat);
7872
+ }) : path10.resolve(pathToFormat);
7873
7873
  let formattedFileLocation;
7874
7874
  switch (format) {
7875
7875
  case "Unix": {
@@ -7920,7 +7920,7 @@ var require_Path = __commonJS({
7920
7920
  * Replaces slashes or backslashes with the appropriate slash for the current operating system.
7921
7921
  */
7922
7922
  static convertToPlatformDefault(inputPath) {
7923
- return path9.sep === "/" ? _Path.convertToSlashes(inputPath) : _Path.convertToBackslashes(inputPath);
7923
+ return path10.sep === "/" ? _Path.convertToSlashes(inputPath) : _Path.convertToBackslashes(inputPath);
7924
7924
  }
7925
7925
  /**
7926
7926
  * Returns true if the specified path is a relative path and does not use `..` to walk upwards.
@@ -7941,7 +7941,7 @@ var require_Path = __commonJS({
7941
7941
  * ```
7942
7942
  */
7943
7943
  static isDownwardRelative(inputPath) {
7944
- if (path9.isAbsolute(inputPath)) {
7944
+ if (path10.isAbsolute(inputPath)) {
7945
7945
  return false;
7946
7946
  }
7947
7947
  if (_Path._upwardPathSegmentRegex.test(inputPath)) {
@@ -8174,8 +8174,8 @@ var require_path_parse = __commonJS({
8174
8174
  var require_node_modules_paths = __commonJS({
8175
8175
  "../../node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
8176
8176
  "use strict";
8177
- var path9 = __require("path");
8178
- var parse2 = path9.parse || require_path_parse();
8177
+ var path10 = __require("path");
8178
+ var parse2 = path10.parse || require_path_parse();
8179
8179
  var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
8180
8180
  var prefix = "/";
8181
8181
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -8191,7 +8191,7 @@ var require_node_modules_paths = __commonJS({
8191
8191
  }
8192
8192
  return paths.reduce(function(dirs, aPath) {
8193
8193
  return dirs.concat(modules.map(function(moduleDir) {
8194
- return path9.resolve(prefix, aPath, moduleDir);
8194
+ return path10.resolve(prefix, aPath, moduleDir);
8195
8195
  }));
8196
8196
  }, []);
8197
8197
  };
@@ -8554,23 +8554,23 @@ var require_is_core_module = __commonJS({
8554
8554
  var require_async = __commonJS({
8555
8555
  "../../node_modules/resolve/lib/async.js"(exports, module) {
8556
8556
  "use strict";
8557
- var fs3 = __require("fs");
8557
+ var fs4 = __require("fs");
8558
8558
  var getHomedir = require_homedir();
8559
- var path9 = __require("path");
8559
+ var path10 = __require("path");
8560
8560
  var caller = require_caller();
8561
8561
  var nodeModulesPaths = require_node_modules_paths();
8562
8562
  var normalizeOptions = require_normalize_options();
8563
8563
  var isCore = require_is_core_module();
8564
- var realpathFS = process.platform !== "win32" && fs3.realpath && typeof fs3.realpath.native === "function" ? fs3.realpath.native : fs3.realpath;
8564
+ var realpathFS = process.platform !== "win32" && fs4.realpath && typeof fs4.realpath.native === "function" ? fs4.realpath.native : fs4.realpath;
8565
8565
  var homedir = getHomedir();
8566
8566
  var defaultPaths = function() {
8567
8567
  return [
8568
- path9.join(homedir, ".node_modules"),
8569
- path9.join(homedir, ".node_libraries")
8568
+ path10.join(homedir, ".node_modules"),
8569
+ path10.join(homedir, ".node_libraries")
8570
8570
  ];
8571
8571
  };
8572
8572
  var defaultIsFile = function isFile(file, cb) {
8573
- fs3.stat(file, function(err, stat) {
8573
+ fs4.stat(file, function(err, stat) {
8574
8574
  if (!err) {
8575
8575
  return cb(null, stat.isFile() || stat.isFIFO());
8576
8576
  }
@@ -8579,7 +8579,7 @@ var require_async = __commonJS({
8579
8579
  });
8580
8580
  };
8581
8581
  var defaultIsDir = function isDirectory(dir, cb) {
8582
- fs3.stat(dir, function(err, stat) {
8582
+ fs4.stat(dir, function(err, stat) {
8583
8583
  if (!err) {
8584
8584
  return cb(null, stat.isDirectory());
8585
8585
  }
@@ -8600,8 +8600,8 @@ var require_async = __commonJS({
8600
8600
  cb(null, x);
8601
8601
  }
8602
8602
  };
8603
- var defaultReadPackage = function defaultReadPackage2(readFile2, pkgfile, cb) {
8604
- readFile2(pkgfile, function(readFileErr, body) {
8603
+ var defaultReadPackage = function defaultReadPackage2(readFile, pkgfile, cb) {
8604
+ readFile(pkgfile, function(readFileErr, body) {
8605
8605
  if (readFileErr) cb(readFileErr);
8606
8606
  else {
8607
8607
  try {
@@ -8616,11 +8616,11 @@ var require_async = __commonJS({
8616
8616
  var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
8617
8617
  var dirs = nodeModulesPaths(start, opts, x);
8618
8618
  for (var i = 0; i < dirs.length; i++) {
8619
- dirs[i] = path9.join(dirs[i], x);
8619
+ dirs[i] = path10.join(dirs[i], x);
8620
8620
  }
8621
8621
  return dirs;
8622
8622
  };
8623
- module.exports = function resolve4(x, options, callback) {
8623
+ module.exports = function resolve3(x, options, callback) {
8624
8624
  var cb = callback;
8625
8625
  var opts = options;
8626
8626
  if (typeof options === "function") {
@@ -8636,7 +8636,7 @@ var require_async = __commonJS({
8636
8636
  opts = normalizeOptions(x, opts);
8637
8637
  var isFile = opts.isFile || defaultIsFile;
8638
8638
  var isDirectory = opts.isDirectory || defaultIsDir;
8639
- var readFile2 = opts.readFile || fs3.readFile;
8639
+ var readFile = opts.readFile || fs4.readFile;
8640
8640
  var realpath = opts.realpath || defaultRealpath;
8641
8641
  var readPackage = opts.readPackage || defaultReadPackage;
8642
8642
  if (opts.readFile && opts.readPackage) {
@@ -8648,10 +8648,10 @@ var require_async = __commonJS({
8648
8648
  var packageIterator = opts.packageIterator;
8649
8649
  var extensions = opts.extensions || [".js"];
8650
8650
  var includeCoreModules = opts.includeCoreModules !== false;
8651
- var basedir = opts.basedir || path9.dirname(caller());
8651
+ var basedir = opts.basedir || path10.dirname(caller());
8652
8652
  var parent = opts.filename || basedir;
8653
8653
  opts.paths = opts.paths || defaultPaths();
8654
- var absoluteStart = path9.resolve(basedir);
8654
+ var absoluteStart = path10.resolve(basedir);
8655
8655
  maybeRealpath(
8656
8656
  realpath,
8657
8657
  absoluteStart,
@@ -8664,7 +8664,7 @@ var require_async = __commonJS({
8664
8664
  var res;
8665
8665
  function init(basedir2) {
8666
8666
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
8667
- res = path9.resolve(basedir2, x);
8667
+ res = path10.resolve(basedir2, x);
8668
8668
  if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
8669
8669
  if (/\/$/.test(x) && res === basedir2) {
8670
8670
  loadAsDirectory(res, opts.package, onfile);
@@ -8722,17 +8722,17 @@ var require_async = __commonJS({
8722
8722
  var file = x3 + exts2[0];
8723
8723
  var pkg = loadPackage;
8724
8724
  if (pkg) onpkg(null, pkg);
8725
- else loadpkg(path9.dirname(file), onpkg);
8725
+ else loadpkg(path10.dirname(file), onpkg);
8726
8726
  function onpkg(err2, pkg_, dir) {
8727
8727
  pkg = pkg_;
8728
8728
  if (err2) return cb2(err2);
8729
8729
  if (dir && pkg && opts.pathFilter) {
8730
- var rfile = path9.relative(dir, file);
8730
+ var rfile = path10.relative(dir, file);
8731
8731
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
8732
8732
  var r = opts.pathFilter(pkg, x3, rel);
8733
8733
  if (r) return load(
8734
8734
  [""].concat(extensions.slice()),
8735
- path9.resolve(dir, r),
8735
+ path10.resolve(dir, r),
8736
8736
  pkg
8737
8737
  );
8738
8738
  }
@@ -8752,11 +8752,11 @@ var require_async = __commonJS({
8752
8752
  }
8753
8753
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
8754
8754
  maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
8755
- if (unwrapErr) return loadpkg(path9.dirname(dir), cb2);
8756
- var pkgfile = path9.join(pkgdir, "package.json");
8755
+ if (unwrapErr) return loadpkg(path10.dirname(dir), cb2);
8756
+ var pkgfile = path10.join(pkgdir, "package.json");
8757
8757
  isFile(pkgfile, function(err2, ex) {
8758
- if (!ex) return loadpkg(path9.dirname(dir), cb2);
8759
- readPackage(readFile2, pkgfile, function(err3, pkgParam) {
8758
+ if (!ex) return loadpkg(path10.dirname(dir), cb2);
8759
+ readPackage(readFile, pkgfile, function(err3, pkgParam) {
8760
8760
  if (err3) cb2(err3);
8761
8761
  var pkg = pkgParam;
8762
8762
  if (pkg && opts.packageFilter) {
@@ -8776,11 +8776,11 @@ var require_async = __commonJS({
8776
8776
  }
8777
8777
  maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
8778
8778
  if (unwrapErr) return cb2(unwrapErr);
8779
- var pkgfile = path9.join(pkgdir, "package.json");
8779
+ var pkgfile = path10.join(pkgdir, "package.json");
8780
8780
  isFile(pkgfile, function(err2, ex) {
8781
8781
  if (err2) return cb2(err2);
8782
- if (!ex) return loadAsFile(path9.join(x2, "index"), fpkg, cb2);
8783
- readPackage(readFile2, pkgfile, function(err3, pkgParam) {
8782
+ if (!ex) return loadAsFile(path10.join(x2, "index"), fpkg, cb2);
8783
+ readPackage(readFile, pkgfile, function(err3, pkgParam) {
8784
8784
  if (err3) return cb2(err3);
8785
8785
  var pkg = pkgParam;
8786
8786
  if (pkg && opts.packageFilter) {
@@ -8795,20 +8795,20 @@ var require_async = __commonJS({
8795
8795
  if (pkg.main === "." || pkg.main === "./") {
8796
8796
  pkg.main = "index";
8797
8797
  }
8798
- loadAsFile(path9.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
8798
+ loadAsFile(path10.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
8799
8799
  if (err4) return cb2(err4);
8800
8800
  if (m) return cb2(null, m, pkg2);
8801
- if (!pkg2) return loadAsFile(path9.join(x2, "index"), pkg2, cb2);
8802
- var dir = path9.resolve(x2, pkg2.main);
8801
+ if (!pkg2) return loadAsFile(path10.join(x2, "index"), pkg2, cb2);
8802
+ var dir = path10.resolve(x2, pkg2.main);
8803
8803
  loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
8804
8804
  if (err5) return cb2(err5);
8805
8805
  if (n) return cb2(null, n, pkg3);
8806
- loadAsFile(path9.join(x2, "index"), pkg3, cb2);
8806
+ loadAsFile(path10.join(x2, "index"), pkg3, cb2);
8807
8807
  });
8808
8808
  });
8809
8809
  return;
8810
8810
  }
8811
- loadAsFile(path9.join(x2, "/index"), pkg, cb2);
8811
+ loadAsFile(path10.join(x2, "/index"), pkg, cb2);
8812
8812
  });
8813
8813
  });
8814
8814
  });
@@ -8816,7 +8816,7 @@ var require_async = __commonJS({
8816
8816
  function processDirs(cb2, dirs) {
8817
8817
  if (dirs.length === 0) return cb2(null, void 0);
8818
8818
  var dir = dirs[0];
8819
- isDirectory(path9.dirname(dir), isdir);
8819
+ isDirectory(path10.dirname(dir), isdir);
8820
8820
  function isdir(err2, isdir2) {
8821
8821
  if (err2) return cb2(err2);
8822
8822
  if (!isdir2) return processDirs(cb2, dirs.slice(1));
@@ -9047,23 +9047,23 @@ var require_sync2 = __commonJS({
9047
9047
  "../../node_modules/resolve/lib/sync.js"(exports, module) {
9048
9048
  "use strict";
9049
9049
  var isCore = require_is_core_module();
9050
- var fs3 = __require("fs");
9051
- var path9 = __require("path");
9050
+ var fs4 = __require("fs");
9051
+ var path10 = __require("path");
9052
9052
  var getHomedir = require_homedir();
9053
9053
  var caller = require_caller();
9054
9054
  var nodeModulesPaths = require_node_modules_paths();
9055
9055
  var normalizeOptions = require_normalize_options();
9056
- var realpathFS = process.platform !== "win32" && fs3.realpathSync && typeof fs3.realpathSync.native === "function" ? fs3.realpathSync.native : fs3.realpathSync;
9056
+ var realpathFS = process.platform !== "win32" && fs4.realpathSync && typeof fs4.realpathSync.native === "function" ? fs4.realpathSync.native : fs4.realpathSync;
9057
9057
  var homedir = getHomedir();
9058
9058
  var defaultPaths = function() {
9059
9059
  return [
9060
- path9.join(homedir, ".node_modules"),
9061
- path9.join(homedir, ".node_libraries")
9060
+ path10.join(homedir, ".node_modules"),
9061
+ path10.join(homedir, ".node_libraries")
9062
9062
  ];
9063
9063
  };
9064
9064
  var defaultIsFile = function isFile(file) {
9065
9065
  try {
9066
- var stat = fs3.statSync(file, { throwIfNoEntry: false });
9066
+ var stat = fs4.statSync(file, { throwIfNoEntry: false });
9067
9067
  } catch (e) {
9068
9068
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
9069
9069
  throw e;
@@ -9072,7 +9072,7 @@ var require_sync2 = __commonJS({
9072
9072
  };
9073
9073
  var defaultIsDir = function isDirectory(dir) {
9074
9074
  try {
9075
- var stat = fs3.statSync(dir, { throwIfNoEntry: false });
9075
+ var stat = fs4.statSync(dir, { throwIfNoEntry: false });
9076
9076
  } catch (e) {
9077
9077
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
9078
9078
  throw e;
@@ -9095,8 +9095,8 @@ var require_sync2 = __commonJS({
9095
9095
  }
9096
9096
  return x;
9097
9097
  };
9098
- var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync2, pkgfile) {
9099
- var body = readFileSync2(pkgfile);
9098
+ var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) {
9099
+ var body = readFileSync(pkgfile);
9100
9100
  try {
9101
9101
  var pkg = JSON.parse(body);
9102
9102
  return pkg;
@@ -9106,7 +9106,7 @@ var require_sync2 = __commonJS({
9106
9106
  var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
9107
9107
  var dirs = nodeModulesPaths(start, opts, x);
9108
9108
  for (var i = 0; i < dirs.length; i++) {
9109
- dirs[i] = path9.join(dirs[i], x);
9109
+ dirs[i] = path10.join(dirs[i], x);
9110
9110
  }
9111
9111
  return dirs;
9112
9112
  };
@@ -9116,7 +9116,7 @@ var require_sync2 = __commonJS({
9116
9116
  }
9117
9117
  var opts = normalizeOptions(x, options);
9118
9118
  var isFile = opts.isFile || defaultIsFile;
9119
- var readFileSync2 = opts.readFileSync || fs3.readFileSync;
9119
+ var readFileSync = opts.readFileSync || fs4.readFileSync;
9120
9120
  var isDirectory = opts.isDirectory || defaultIsDir;
9121
9121
  var realpathSync = opts.realpathSync || defaultRealpathSync;
9122
9122
  var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
@@ -9126,12 +9126,12 @@ var require_sync2 = __commonJS({
9126
9126
  var packageIterator = opts.packageIterator;
9127
9127
  var extensions = opts.extensions || [".js"];
9128
9128
  var includeCoreModules = opts.includeCoreModules !== false;
9129
- var basedir = opts.basedir || path9.dirname(caller());
9129
+ var basedir = opts.basedir || path10.dirname(caller());
9130
9130
  var parent = opts.filename || basedir;
9131
9131
  opts.paths = opts.paths || defaultPaths();
9132
- var absoluteStart = maybeRealpathSync(realpathSync, path9.resolve(basedir), opts);
9132
+ var absoluteStart = maybeRealpathSync(realpathSync, path10.resolve(basedir), opts);
9133
9133
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
9134
- var res = path9.resolve(absoluteStart, x);
9134
+ var res = path10.resolve(absoluteStart, x);
9135
9135
  if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
9136
9136
  var m = loadAsFileSync(res) || loadAsDirectorySync(res);
9137
9137
  if (m) return maybeRealpathSync(realpathSync, m, opts);
@@ -9145,12 +9145,12 @@ var require_sync2 = __commonJS({
9145
9145
  err.code = "MODULE_NOT_FOUND";
9146
9146
  throw err;
9147
9147
  function loadAsFileSync(x2) {
9148
- var pkg = loadpkg(path9.dirname(x2));
9148
+ var pkg = loadpkg(path10.dirname(x2));
9149
9149
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
9150
- var rfile = path9.relative(pkg.dir, x2);
9150
+ var rfile = path10.relative(pkg.dir, x2);
9151
9151
  var r = opts.pathFilter(pkg.pkg, x2, rfile);
9152
9152
  if (r) {
9153
- x2 = path9.resolve(pkg.dir, r);
9153
+ x2 = path10.resolve(pkg.dir, r);
9154
9154
  }
9155
9155
  }
9156
9156
  if (isFile(x2)) {
@@ -9169,11 +9169,11 @@ var require_sync2 = __commonJS({
9169
9169
  return;
9170
9170
  }
9171
9171
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
9172
- var pkgfile = path9.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
9172
+ var pkgfile = path10.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
9173
9173
  if (!isFile(pkgfile)) {
9174
- return loadpkg(path9.dirname(dir));
9174
+ return loadpkg(path10.dirname(dir));
9175
9175
  }
9176
- var pkg = readPackageSync(readFileSync2, pkgfile);
9176
+ var pkg = readPackageSync(readFileSync, pkgfile);
9177
9177
  if (pkg && opts.packageFilter) {
9178
9178
  pkg = opts.packageFilter(
9179
9179
  pkg,
@@ -9184,10 +9184,10 @@ var require_sync2 = __commonJS({
9184
9184
  return { pkg, dir };
9185
9185
  }
9186
9186
  function loadAsDirectorySync(x2) {
9187
- var pkgfile = path9.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
9187
+ var pkgfile = path10.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
9188
9188
  if (isFile(pkgfile)) {
9189
9189
  try {
9190
- var pkg = readPackageSync(readFileSync2, pkgfile);
9190
+ var pkg = readPackageSync(readFileSync, pkgfile);
9191
9191
  } catch (e) {
9192
9192
  }
9193
9193
  if (pkg && opts.packageFilter) {
@@ -9207,15 +9207,15 @@ var require_sync2 = __commonJS({
9207
9207
  pkg.main = "index";
9208
9208
  }
9209
9209
  try {
9210
- var m2 = loadAsFileSync(path9.resolve(x2, pkg.main));
9210
+ var m2 = loadAsFileSync(path10.resolve(x2, pkg.main));
9211
9211
  if (m2) return m2;
9212
- var n2 = loadAsDirectorySync(path9.resolve(x2, pkg.main));
9212
+ var n2 = loadAsDirectorySync(path10.resolve(x2, pkg.main));
9213
9213
  if (n2) return n2;
9214
9214
  } catch (e) {
9215
9215
  }
9216
9216
  }
9217
9217
  }
9218
- return loadAsFileSync(path9.join(x2, "/index"));
9218
+ return loadAsFileSync(path10.join(x2, "/index"));
9219
9219
  }
9220
9220
  function loadNodeModulesSync(x2, start) {
9221
9221
  var thunk = function() {
@@ -9224,7 +9224,7 @@ var require_sync2 = __commonJS({
9224
9224
  var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
9225
9225
  for (var i = 0; i < dirs.length; i++) {
9226
9226
  var dir = dirs[i];
9227
- if (isDirectory(path9.dirname(dir))) {
9227
+ if (isDirectory(path10.dirname(dir))) {
9228
9228
  var m2 = loadAsFileSync(dir);
9229
9229
  if (m2) return m2;
9230
9230
  var n2 = loadAsDirectorySync(dir);
@@ -10181,12 +10181,12 @@ var require_document = __commonJS({
10181
10181
  result.data = null;
10182
10182
  return result;
10183
10183
  }
10184
- function arg_to_path(path9) {
10185
- if (typeof path9 === "number") path9 = String(path9);
10186
- if (path9 === "") path9 = [];
10187
- if (typeof path9 === "string") path9 = path9.split(".");
10188
- if (!Array.isArray(path9)) throw Error("Invalid path type, string or array expected");
10189
- return path9;
10184
+ function arg_to_path(path10) {
10185
+ if (typeof path10 === "number") path10 = String(path10);
10186
+ if (path10 === "") path10 = [];
10187
+ if (typeof path10 === "string") path10 = path10.split(".");
10188
+ if (!Array.isArray(path10)) throw Error("Invalid path type, string or array expected");
10189
+ return path10;
10190
10190
  }
10191
10191
  function find_element_in_tokenlist(element, lvl, tokens, begin, end) {
10192
10192
  while (tokens[begin].stack[lvl] != element) {
@@ -10310,30 +10310,30 @@ var require_document = __commonJS({
10310
10310
  return true;
10311
10311
  }
10312
10312
  }
10313
- Document.prototype.set = function(path9, value) {
10314
- path9 = arg_to_path(path9);
10315
- if (path9.length === 0) {
10313
+ Document.prototype.set = function(path10, value) {
10314
+ path10 = arg_to_path(path10);
10315
+ if (path10.length === 0) {
10316
10316
  if (value === void 0) throw Error("can't remove root document");
10317
10317
  this._data = value;
10318
10318
  var new_key = false;
10319
10319
  } else {
10320
10320
  var data = this._data;
10321
- for (var i = 0; i < path9.length - 1; i++) {
10322
- check_if_can_be_placed(path9[i], data, false);
10323
- data = data[path9[i]];
10321
+ for (var i = 0; i < path10.length - 1; i++) {
10322
+ check_if_can_be_placed(path10[i], data, false);
10323
+ data = data[path10[i]];
10324
10324
  }
10325
- if (i === path9.length - 1) {
10326
- check_if_can_be_placed(path9[i], data, value === void 0);
10325
+ if (i === path10.length - 1) {
10326
+ check_if_can_be_placed(path10[i], data, value === void 0);
10327
10327
  }
10328
- var new_key = !(path9[i] in data);
10328
+ var new_key = !(path10[i] in data);
10329
10329
  if (value === void 0) {
10330
10330
  if (Array.isArray(data)) {
10331
10331
  data.pop();
10332
10332
  } else {
10333
- delete data[path9[i]];
10333
+ delete data[path10[i]];
10334
10334
  }
10335
10335
  } else {
10336
- data[path9[i]] = value;
10336
+ data[path10[i]] = value;
10337
10337
  }
10338
10338
  }
10339
10339
  if (!this._tokens.length)
@@ -10342,15 +10342,15 @@ var require_document = __commonJS({
10342
10342
  find_first_non_ws_token(this._tokens, 0, this._tokens.length - 1),
10343
10343
  find_last_non_ws_token(this._tokens, 0, this._tokens.length - 1)
10344
10344
  ];
10345
- for (var i = 0; i < path9.length - 1; i++) {
10346
- position = find_element_in_tokenlist(path9[i], i, this._tokens, position[0], position[1]);
10345
+ for (var i = 0; i < path10.length - 1; i++) {
10346
+ position = find_element_in_tokenlist(path10[i], i, this._tokens, position[0], position[1]);
10347
10347
  if (position == false) throw Error("internal error, please report this");
10348
10348
  }
10349
- if (path9.length === 0) {
10350
- var newtokens = value_to_tokenlist(value, path9, this._options);
10349
+ if (path10.length === 0) {
10350
+ var newtokens = value_to_tokenlist(value, path10, this._options);
10351
10351
  } else if (!new_key) {
10352
10352
  var pos_old = position;
10353
- position = find_element_in_tokenlist(path9[i], i, this._tokens, position[0], position[1]);
10353
+ position = find_element_in_tokenlist(path10[i], i, this._tokens, position[0], position[1]);
10354
10354
  if (value === void 0 && position !== false) {
10355
10355
  var newtokens = [];
10356
10356
  if (!Array.isArray(data)) {
@@ -10360,7 +10360,7 @@ var require_document = __commonJS({
10360
10360
  position[0] = pos2;
10361
10361
  var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
10362
10362
  assert.equal(this._tokens[pos2].type, "key");
10363
- assert.equal(this._tokens[pos2].value, path9[path9.length - 1]);
10363
+ assert.equal(this._tokens[pos2].value, path10[path10.length - 1]);
10364
10364
  position[0] = pos2;
10365
10365
  }
10366
10366
  var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
@@ -10376,21 +10376,21 @@ var require_document = __commonJS({
10376
10376
  }
10377
10377
  } else {
10378
10378
  var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), pos_old[0], position[1] - 1, i) : {};
10379
- var newtokens = value_to_tokenlist(value, path9, this._options, false, indent);
10379
+ var newtokens = value_to_tokenlist(value, path10, this._options, false, indent);
10380
10380
  }
10381
10381
  } else {
10382
- var path_1 = path9.slice(0, i);
10382
+ var path_1 = path10.slice(0, i);
10383
10383
  var pos2 = find_last_non_ws_token(this._tokens, position[0] + 1, position[1] - 1);
10384
10384
  assert(pos2 !== false);
10385
10385
  var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), position[0] + 1, pos2, i) : {};
10386
- var newtokens = value_to_tokenlist(value, path9, this._options, false, indent);
10386
+ var newtokens = value_to_tokenlist(value, path10, this._options, false, indent);
10387
10387
  var prefix = [];
10388
10388
  if (indent.newline && indent.newline.length)
10389
10389
  prefix = prefix.concat(indent.newline);
10390
10390
  if (indent.prefix && indent.prefix.length)
10391
10391
  prefix = prefix.concat(indent.prefix);
10392
10392
  if (!Array.isArray(data)) {
10393
- prefix = prefix.concat(value_to_tokenlist(path9[path9.length - 1], path_1, this._options, true));
10393
+ prefix = prefix.concat(value_to_tokenlist(path10[path10.length - 1], path_1, this._options, true));
10394
10394
  if (indent.sep1 && indent.sep1.length)
10395
10395
  prefix = prefix.concat(indent.sep1);
10396
10396
  prefix.push({ raw: ":", type: "separator", stack: path_1 });
@@ -10398,7 +10398,7 @@ var require_document = __commonJS({
10398
10398
  prefix = prefix.concat(indent.sep2);
10399
10399
  }
10400
10400
  newtokens.unshift.apply(newtokens, prefix);
10401
- if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length === path9.length - 1) {
10401
+ if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length === path10.length - 1) {
10402
10402
  if (this._tokens[pos2].raw === ",") {
10403
10403
  newtokens.push({ raw: ",", type: "separator", stack: path_1 });
10404
10404
  }
@@ -10416,24 +10416,24 @@ var require_document = __commonJS({
10416
10416
  this._tokens.splice.apply(this._tokens, newtokens);
10417
10417
  return this;
10418
10418
  };
10419
- Document.prototype.unset = function(path9) {
10420
- return this.set(path9, void 0);
10419
+ Document.prototype.unset = function(path10) {
10420
+ return this.set(path10, void 0);
10421
10421
  };
10422
- Document.prototype.get = function(path9) {
10423
- path9 = arg_to_path(path9);
10422
+ Document.prototype.get = function(path10) {
10423
+ path10 = arg_to_path(path10);
10424
10424
  var data = this._data;
10425
- for (var i = 0; i < path9.length; i++) {
10425
+ for (var i = 0; i < path10.length; i++) {
10426
10426
  if (!isObject(data)) return void 0;
10427
- data = data[path9[i]];
10427
+ data = data[path10[i]];
10428
10428
  }
10429
10429
  return data;
10430
10430
  };
10431
- Document.prototype.has = function(path9) {
10432
- path9 = arg_to_path(path9);
10431
+ Document.prototype.has = function(path10) {
10432
+ path10 = arg_to_path(path10);
10433
10433
  var data = this._data;
10434
- for (var i = 0; i < path9.length; i++) {
10434
+ for (var i = 0; i < path10.length; i++) {
10435
10435
  if (!isObject(data)) return false;
10436
- data = data[path9[i]];
10436
+ data = data[path10[i]];
10437
10437
  }
10438
10438
  return data !== void 0;
10439
10439
  };
@@ -10441,37 +10441,37 @@ var require_document = __commonJS({
10441
10441
  var self2 = this;
10442
10442
  change([], self2._data, value);
10443
10443
  return self2;
10444
- function change(path9, old_data, new_data) {
10444
+ function change(path10, old_data, new_data) {
10445
10445
  if (!isObject(new_data) || !isObject(old_data)) {
10446
10446
  if (new_data !== old_data)
10447
- self2.set(path9, new_data);
10447
+ self2.set(path10, new_data);
10448
10448
  } else if (Array.isArray(new_data) != Array.isArray(old_data)) {
10449
- self2.set(path9, new_data);
10449
+ self2.set(path10, new_data);
10450
10450
  } else if (Array.isArray(new_data)) {
10451
10451
  if (new_data.length > old_data.length) {
10452
10452
  for (var i = 0; i < new_data.length; i++) {
10453
- path9.push(String(i));
10454
- change(path9, old_data[i], new_data[i]);
10455
- path9.pop();
10453
+ path10.push(String(i));
10454
+ change(path10, old_data[i], new_data[i]);
10455
+ path10.pop();
10456
10456
  }
10457
10457
  } else {
10458
10458
  for (var i = old_data.length - 1; i >= 0; i--) {
10459
- path9.push(String(i));
10460
- change(path9, old_data[i], new_data[i]);
10461
- path9.pop();
10459
+ path10.push(String(i));
10460
+ change(path10, old_data[i], new_data[i]);
10461
+ path10.pop();
10462
10462
  }
10463
10463
  }
10464
10464
  } else {
10465
10465
  for (var i in new_data) {
10466
- path9.push(String(i));
10467
- change(path9, old_data[i], new_data[i]);
10468
- path9.pop();
10466
+ path10.push(String(i));
10467
+ change(path10, old_data[i], new_data[i]);
10468
+ path10.pop();
10469
10469
  }
10470
10470
  for (var i in old_data) {
10471
10471
  if (i in new_data) continue;
10472
- path9.push(String(i));
10473
- change(path9, old_data[i], new_data[i]);
10474
- path9.pop();
10472
+ path10.push(String(i));
10473
+ change(path10, old_data[i], new_data[i]);
10474
+ path10.pop();
10475
10475
  }
10476
10476
  }
10477
10477
  }
@@ -10878,7 +10878,7 @@ var require_JsonFile = __commonJS({
10878
10878
  }
10879
10879
  };
10880
10880
  exports.JsonFile = JsonFile;
10881
- JsonFile._formatPathForError = (path9) => path9;
10881
+ JsonFile._formatPathForError = (path10) => path10;
10882
10882
  }
10883
10883
  });
10884
10884
 
@@ -10925,7 +10925,7 @@ var require_PackageJsonLookup = __commonJS({
10925
10925
  }();
10926
10926
  Object.defineProperty(exports, "__esModule", { value: true });
10927
10927
  exports.PackageJsonLookup = void 0;
10928
- var path9 = __importStar(__require("path"));
10928
+ var path10 = __importStar(__require("path"));
10929
10929
  var JsonFile_1 = require_JsonFile();
10930
10930
  var Constants_1 = require_Constants();
10931
10931
  var FileSystem_1 = require_FileSystem();
@@ -11014,7 +11014,7 @@ var require_PackageJsonLookup = __commonJS({
11014
11014
  * @returns an absolute path to a folder containing a package.json file
11015
11015
  */
11016
11016
  tryGetPackageFolderFor(fileOrFolderPath) {
11017
- const resolvedFileOrFolderPath = path9.resolve(fileOrFolderPath);
11017
+ const resolvedFileOrFolderPath = path10.resolve(fileOrFolderPath);
11018
11018
  if (this._packageFolderCache.has(resolvedFileOrFolderPath)) {
11019
11019
  return this._packageFolderCache.get(resolvedFileOrFolderPath);
11020
11020
  }
@@ -11037,7 +11037,7 @@ var require_PackageJsonLookup = __commonJS({
11037
11037
  if (!packageJsonFolder) {
11038
11038
  return void 0;
11039
11039
  }
11040
- return path9.join(packageJsonFolder, Constants_1.FileConstants.PackageJson);
11040
+ return path10.join(packageJsonFolder, Constants_1.FileConstants.PackageJson);
11041
11041
  }
11042
11042
  /**
11043
11043
  * If the specified file or folder is part of a package, this loads and returns the
@@ -11184,7 +11184,7 @@ var require_PackageJsonLookup = __commonJS({
11184
11184
  this._packageFolderCache.set(resolvedFileOrFolderPath, resolvedFileOrFolderPath);
11185
11185
  return resolvedFileOrFolderPath;
11186
11186
  }
11187
- const parentFolder = path9.dirname(resolvedFileOrFolderPath);
11187
+ const parentFolder = path10.dirname(resolvedFileOrFolderPath);
11188
11188
  if (!parentFolder || parentFolder === resolvedFileOrFolderPath) {
11189
11189
  this._packageFolderCache.set(resolvedFileOrFolderPath, void 0);
11190
11190
  return void 0;
@@ -11421,7 +11421,7 @@ var require_Import = __commonJS({
11421
11421
  }();
11422
11422
  Object.defineProperty(exports, "__esModule", { value: true });
11423
11423
  exports.Import = void 0;
11424
- var path9 = __importStar(__require("path"));
11424
+ var path10 = __importStar(__require("path"));
11425
11425
  var importLazy = require_import_lazy();
11426
11426
  var Resolve = __importStar(require_resolve());
11427
11427
  var nodeModule = __require("module");
@@ -11536,12 +11536,12 @@ var require_Import = __commonJS({
11536
11536
  */
11537
11537
  static resolveModule(options) {
11538
11538
  const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath } = options;
11539
- if (path9.isAbsolute(modulePath)) {
11539
+ if (path10.isAbsolute(modulePath)) {
11540
11540
  return modulePath;
11541
11541
  }
11542
11542
  const normalizedRootPath = (getRealPath || FileSystem_1.FileSystem.getRealPath)(baseFolderPath);
11543
11543
  if (modulePath.startsWith(".")) {
11544
- return path9.resolve(normalizedRootPath, modulePath);
11544
+ return path10.resolve(normalizedRootPath, modulePath);
11545
11545
  }
11546
11546
  const slashIndex = modulePath.indexOf("/");
11547
11547
  const moduleName = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex);
@@ -11552,7 +11552,7 @@ var require_Import = __commonJS({
11552
11552
  const ownPackage = _Import._getPackageName(normalizedRootPath);
11553
11553
  if (ownPackage && (modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`))) {
11554
11554
  const packagePath = modulePath.slice(ownPackage.packageName.length + 1);
11555
- return path9.resolve(ownPackage.packageRootPath, packagePath);
11555
+ return path10.resolve(ownPackage.packageRootPath, packagePath);
11556
11556
  }
11557
11557
  }
11558
11558
  try {
@@ -11570,12 +11570,12 @@ var require_Import = __commonJS({
11570
11570
  */
11571
11571
  static async resolveModuleAsync(options) {
11572
11572
  const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath, getRealPathAsync } = options;
11573
- if (path9.isAbsolute(modulePath)) {
11573
+ if (path10.isAbsolute(modulePath)) {
11574
11574
  return modulePath;
11575
11575
  }
11576
11576
  const normalizedRootPath = await (getRealPathAsync || getRealPath || FileSystem_1.FileSystem.getRealPathAsync)(baseFolderPath);
11577
11577
  if (modulePath.startsWith(".")) {
11578
- return path9.resolve(normalizedRootPath, modulePath);
11578
+ return path10.resolve(normalizedRootPath, modulePath);
11579
11579
  }
11580
11580
  const slashIndex = modulePath.indexOf("/");
11581
11581
  const moduleName = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex);
@@ -11586,11 +11586,11 @@ var require_Import = __commonJS({
11586
11586
  const ownPackage = _Import._getPackageName(normalizedRootPath);
11587
11587
  if (ownPackage && (modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`))) {
11588
11588
  const packagePath = modulePath.slice(ownPackage.packageName.length + 1);
11589
- return path9.resolve(ownPackage.packageRootPath, packagePath);
11589
+ return path10.resolve(ownPackage.packageRootPath, packagePath);
11590
11590
  }
11591
11591
  }
11592
11592
  try {
11593
- const resolvePromise = new Promise((resolve4, reject) => {
11593
+ const resolvePromise = new Promise((resolve3, reject) => {
11594
11594
  const realPathFn = getRealPathAsync || getRealPath ? (filePath, callback) => {
11595
11595
  if (getRealPathAsync) {
11596
11596
  getRealPathAsync(filePath).then((resolvedPath) => callback(null, resolvedPath)).catch((error) => callback(error));
@@ -11611,7 +11611,7 @@ var require_Import = __commonJS({
11611
11611
  if (error) {
11612
11612
  reject(error);
11613
11613
  } else {
11614
- resolve4(resolvedPath);
11614
+ resolve3(resolvedPath);
11615
11615
  }
11616
11616
  });
11617
11617
  });
@@ -11665,7 +11665,7 @@ var require_Import = __commonJS({
11665
11665
  realpathSync: getRealPath
11666
11666
  })
11667
11667
  );
11668
- const packagePath = path9.dirname(resolvedPath);
11668
+ const packagePath = path10.dirname(resolvedPath);
11669
11669
  return packagePath;
11670
11670
  } catch (e) {
11671
11671
  throw new Error(`Cannot find package "${packageName}" from "${baseFolderPath}": ${e}.`);
@@ -11688,7 +11688,7 @@ var require_Import = __commonJS({
11688
11688
  }
11689
11689
  PackageName_1.PackageName.parse(packageName);
11690
11690
  try {
11691
- const resolvePromise = new Promise((resolve4, reject) => {
11691
+ const resolvePromise = new Promise((resolve3, reject) => {
11692
11692
  const realPathFn = getRealPathAsync || getRealPath ? (filePath, callback) => {
11693
11693
  if (getRealPathAsync) {
11694
11694
  getRealPathAsync(filePath).then((resolvedPath2) => callback(null, resolvedPath2)).catch((error) => callback(error));
@@ -11714,13 +11714,13 @@ var require_Import = __commonJS({
11714
11714
  if (error) {
11715
11715
  reject(error);
11716
11716
  } else {
11717
- resolve4(resolvedPath2);
11717
+ resolve3(resolvedPath2);
11718
11718
  }
11719
11719
  }
11720
11720
  );
11721
11721
  });
11722
11722
  const resolvedPath = await resolvePromise;
11723
- const packagePath = path9.dirname(resolvedPath);
11723
+ const packagePath = path10.dirname(resolvedPath);
11724
11724
  return packagePath;
11725
11725
  } catch (e) {
11726
11726
  throw new Error(`Cannot find package "${packageName}" from "${baseFolderPath}": ${e}`);
@@ -11731,7 +11731,7 @@ var require_Import = __commonJS({
11731
11731
  if (packageJsonPath) {
11732
11732
  const packageJson = PackageJsonLookup_1.PackageJsonLookup.instance.loadPackageJson(packageJsonPath);
11733
11733
  return {
11734
- packageRootPath: path9.dirname(packageJsonPath),
11734
+ packageRootPath: path10.dirname(packageJsonPath),
11735
11735
  packageName: packageJson.name
11736
11736
  };
11737
11737
  } else {
@@ -14694,7 +14694,7 @@ var require_compile = __commonJS({
14694
14694
  const schOrFunc = root.refs[ref];
14695
14695
  if (schOrFunc)
14696
14696
  return schOrFunc;
14697
- let _sch = resolve4.call(this, root, ref);
14697
+ let _sch = resolve3.call(this, root, ref);
14698
14698
  if (_sch === void 0) {
14699
14699
  const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref];
14700
14700
  const { schemaId } = this.opts;
@@ -14721,7 +14721,7 @@ var require_compile = __commonJS({
14721
14721
  function sameSchemaEnv(s1, s2) {
14722
14722
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
14723
14723
  }
14724
- function resolve4(root, ref) {
14724
+ function resolve3(root, ref) {
14725
14725
  let sch;
14726
14726
  while (typeof (sch = this.refs[ref]) == "string")
14727
14727
  ref = sch;
@@ -15556,7 +15556,7 @@ var require_uri_all = __commonJS({
15556
15556
  target.fragment = relative.fragment;
15557
15557
  return target;
15558
15558
  }
15559
- function resolve4(baseURI, relativeURI, options) {
15559
+ function resolve3(baseURI, relativeURI, options) {
15560
15560
  var schemelessOptions = assign({ scheme: "null" }, options);
15561
15561
  return serialize(resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
15562
15562
  }
@@ -15636,8 +15636,8 @@ var require_uri_all = __commonJS({
15636
15636
  wsComponents.secure = void 0;
15637
15637
  }
15638
15638
  if (wsComponents.resourceName) {
15639
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path9 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
15640
- wsComponents.path = path9 && path9 !== "/" ? path9 : void 0;
15639
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path10 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
15640
+ wsComponents.path = path10 && path10 !== "/" ? path10 : void 0;
15641
15641
  wsComponents.query = query;
15642
15642
  wsComponents.resourceName = void 0;
15643
15643
  }
@@ -15821,7 +15821,7 @@ var require_uri_all = __commonJS({
15821
15821
  exports2.removeDotSegments = removeDotSegments;
15822
15822
  exports2.serialize = serialize;
15823
15823
  exports2.resolveComponents = resolveComponents;
15824
- exports2.resolve = resolve4;
15824
+ exports2.resolve = resolve3;
15825
15825
  exports2.normalize = normalize;
15826
15826
  exports2.equal = equal;
15827
15827
  exports2.escapeComponent = escapeComponent;
@@ -21298,7 +21298,7 @@ var require_compile2 = __commonJS({
21298
21298
  const schOrFunc = root.refs[ref];
21299
21299
  if (schOrFunc)
21300
21300
  return schOrFunc;
21301
- let _sch = resolve4.call(this, root, ref);
21301
+ let _sch = resolve3.call(this, root, ref);
21302
21302
  if (_sch === void 0) {
21303
21303
  const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref];
21304
21304
  const { schemaId } = this.opts;
@@ -21325,7 +21325,7 @@ var require_compile2 = __commonJS({
21325
21325
  function sameSchemaEnv(s1, s2) {
21326
21326
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
21327
21327
  }
21328
- function resolve4(root, ref) {
21328
+ function resolve3(root, ref) {
21329
21329
  let sch;
21330
21330
  while (typeof (sch = this.refs[ref]) == "string")
21331
21331
  ref = sch;
@@ -24728,12 +24728,12 @@ var require_dist2 = __commonJS({
24728
24728
  throw new Error(`Unknown format "${name}"`);
24729
24729
  return f;
24730
24730
  };
24731
- function addFormats(ajv, list, fs3, exportName) {
24731
+ function addFormats(ajv, list, fs4, exportName) {
24732
24732
  var _a;
24733
24733
  var _b;
24734
24734
  (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
24735
24735
  for (const f of list)
24736
- ajv.addFormat(f, fs3[f]);
24736
+ ajv.addFormat(f, fs4[f]);
24737
24737
  }
24738
24738
  module.exports = exports = formatsPlugin;
24739
24739
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24799,7 +24799,7 @@ var require_JsonSchema = __commonJS({
24799
24799
  Object.defineProperty(exports, "__esModule", { value: true });
24800
24800
  exports.JsonSchema = void 0;
24801
24801
  var os = __importStar(__require("os"));
24802
- var path9 = __importStar(__require("path"));
24802
+ var path10 = __importStar(__require("path"));
24803
24803
  var FileSystem_1 = require_FileSystem();
24804
24804
  var JsonFile_1 = require_JsonFile();
24805
24805
  var ajv_1 = __importDefault(require_ajv());
@@ -24915,7 +24915,7 @@ var require_JsonSchema = __commonJS({
24915
24915
  }
24916
24916
  return "(anonymous schema)";
24917
24917
  } else {
24918
- return path9.basename(this._filename);
24918
+ return path10.basename(this._filename);
24919
24919
  }
24920
24920
  }
24921
24921
  /**
@@ -25128,7 +25128,7 @@ var require_LockFile = __commonJS({
25128
25128
  exports.LockFile = void 0;
25129
25129
  exports.getProcessStartTimeFromProcStat = getProcessStartTimeFromProcStat;
25130
25130
  exports.getProcessStartTime = getProcessStartTime;
25131
- var path9 = __importStar(__require("path"));
25131
+ var path10 = __importStar(__require("path"));
25132
25132
  var child_process = __importStar(__require("child_process"));
25133
25133
  var FileSystem_1 = require_FileSystem();
25134
25134
  var FileWriter_1 = require_FileWriter();
@@ -25223,11 +25223,11 @@ var require_LockFile = __commonJS({
25223
25223
  }
25224
25224
  switch (process.platform) {
25225
25225
  case "win32": {
25226
- return path9.resolve(resourceFolder, `${resourceName}.lock`);
25226
+ return path10.resolve(resourceFolder, `${resourceName}.lock`);
25227
25227
  }
25228
25228
  case "linux":
25229
25229
  case "darwin": {
25230
- return path9.resolve(resourceFolder, `${resourceName}#${pid}.lock`);
25230
+ return path10.resolve(resourceFolder, `${resourceName}#${pid}.lock`);
25231
25231
  }
25232
25232
  default: {
25233
25233
  throw new Error(`File locking not implemented for platform: "${process.platform}"`);
@@ -25402,7 +25402,7 @@ var require_LockFile = __commonJS({
25402
25402
  */
25403
25403
  release(deleteFile = true) {
25404
25404
  if (this.isReleased) {
25405
- throw new Error(`The lock for file "${path9.basename(this._filePath)}" has already been released.`);
25405
+ throw new Error(`The lock for file "${path10.basename(this._filePath)}" has already been released.`);
25406
25406
  }
25407
25407
  IN_PROC_LOCKS.delete(this._filePath);
25408
25408
  this._fileWriter.close();
@@ -25736,7 +25736,7 @@ var require_RealNodeModulePath = __commonJS({
25736
25736
  var nodePath = __importStar(__require("path"));
25737
25737
  var RealNodeModulePathResolver = class {
25738
25738
  constructor(options = {}) {
25739
- const { fs: { lstatSync = nodeFs.lstatSync, readlinkSync = nodeFs.readlinkSync } = nodeFs, path: { isAbsolute = nodePath.isAbsolute, join = nodePath.join, resolve: resolve4 = nodePath.resolve, sep = nodePath.sep } = nodePath, ignoreMissingPaths = false } = options;
25739
+ const { fs: { lstatSync = nodeFs.lstatSync, readlinkSync = nodeFs.readlinkSync } = nodeFs, path: { isAbsolute = nodePath.isAbsolute, join = nodePath.join, resolve: resolve3 = nodePath.resolve, sep = nodePath.sep } = nodePath, ignoreMissingPaths = false } = options;
25740
25740
  const cache = this._cache = /* @__PURE__ */ new Map();
25741
25741
  this._errorCache = /* @__PURE__ */ new Map();
25742
25742
  this._fs = {
@@ -25746,7 +25746,7 @@ var require_RealNodeModulePath = __commonJS({
25746
25746
  this._path = {
25747
25747
  isAbsolute,
25748
25748
  join,
25749
- resolve: resolve4,
25749
+ resolve: resolve3,
25750
25750
  sep
25751
25751
  };
25752
25752
  this._lstatOptions = {
@@ -25786,7 +25786,7 @@ var require_RealNodeModulePath = __commonJS({
25786
25786
  }
25787
25787
  const realpathBeforeNodeModules = realNodeModulePathInternal(input.slice(0, nodeModulesIndex));
25788
25788
  if (linkTarget) {
25789
- const resolvedTarget = resolve4(realpathBeforeNodeModules, input.slice(nodeModulesIndex + 1, linkStart), linkTarget);
25789
+ const resolvedTarget = resolve3(realpathBeforeNodeModules, input.slice(nodeModulesIndex + 1, linkStart), linkTarget);
25790
25790
  cache.set(linkCandidate, resolvedTarget);
25791
25791
  cache.set(resolvedTarget, resolvedTarget);
25792
25792
  return join(resolvedTarget, input.slice(linkEnd + 1), ".");
@@ -25794,7 +25794,7 @@ var require_RealNodeModulePath = __commonJS({
25794
25794
  return join(realpathBeforeNodeModules, input.slice(nodeModulesIndex + 1), ".");
25795
25795
  }
25796
25796
  this.realNodeModulePath = (input) => {
25797
- return realNodeModulePathInternal(resolve4(input));
25797
+ return realNodeModulePathInternal(resolve3(input));
25798
25798
  };
25799
25799
  }
25800
25800
  /**
@@ -26080,12 +26080,12 @@ var require_LegacyAdapters = __commonJS({
26080
26080
  exports.LegacyAdapters = void 0;
26081
26081
  var LegacyAdapters = class _LegacyAdapters {
26082
26082
  static convertCallbackToPromise(fn, arg1, arg2, arg3, arg4) {
26083
- return new Promise((resolve4, reject) => {
26083
+ return new Promise((resolve3, reject) => {
26084
26084
  const cb = (error, result) => {
26085
26085
  if (error) {
26086
26086
  reject(_LegacyAdapters.scrubError(error));
26087
26087
  } else {
26088
- resolve4(result);
26088
+ resolve3(result);
26089
26089
  }
26090
26090
  };
26091
26091
  try {
@@ -26622,7 +26622,7 @@ var require_brace_expansion2 = __commonJS({
26622
26622
  var isSequence = isNumericSequence || isAlphaSequence;
26623
26623
  var isOptions = m.body.indexOf(",") >= 0;
26624
26624
  if (!isSequence && !isOptions) {
26625
- if (m.post.match(/,.*\}/)) {
26625
+ if (m.post.match(/,(?!,).*\}/)) {
26626
26626
  str = m.pre + "{" + m.body + escClose + m.post;
26627
26627
  return expand2(str);
26628
26628
  }
@@ -26708,8 +26708,8 @@ var require_minimatch2 = __commonJS({
26708
26708
  return new Minimatch(pattern, options).match(p);
26709
26709
  };
26710
26710
  module.exports = minimatch;
26711
- var path9 = require_path();
26712
- minimatch.sep = path9.sep;
26711
+ var path10 = require_path();
26712
+ minimatch.sep = path10.sep;
26713
26713
  var GLOBSTAR = Symbol("globstar **");
26714
26714
  minimatch.GLOBSTAR = GLOBSTAR;
26715
26715
  var expand2 = require_brace_expansion2();
@@ -27218,8 +27218,8 @@ var require_minimatch2 = __commonJS({
27218
27218
  if (this.empty) return f === "";
27219
27219
  if (f === "/" && partial) return true;
27220
27220
  const options = this.options;
27221
- if (path9.sep !== "/") {
27222
- f = f.split(path9.sep).join("/");
27221
+ if (path10.sep !== "/") {
27222
+ f = f.split(path10.sep).join("/");
27223
27223
  }
27224
27224
  f = f.split(slashSplit);
27225
27225
  this.debug(this.pattern, "split", f);
@@ -27258,20 +27258,20 @@ var require_readdir_glob = __commonJS({
27258
27258
  "../../node_modules/readdir-glob/index.js"(exports, module) {
27259
27259
  "use strict";
27260
27260
  module.exports = readdirGlob;
27261
- var fs3 = __require("fs");
27261
+ var fs4 = __require("fs");
27262
27262
  var { EventEmitter } = __require("events");
27263
27263
  var { Minimatch } = require_minimatch2();
27264
- var { resolve: resolve4 } = __require("path");
27264
+ var { resolve: resolve3 } = __require("path");
27265
27265
  function readdir(dir, strict) {
27266
- return new Promise((resolve5, reject) => {
27267
- fs3.readdir(dir, { withFileTypes: true }, (err, files) => {
27266
+ return new Promise((resolve4, reject) => {
27267
+ fs4.readdir(dir, { withFileTypes: true }, (err, files) => {
27268
27268
  if (err) {
27269
27269
  switch (err.code) {
27270
27270
  case "ENOTDIR":
27271
27271
  if (strict) {
27272
27272
  reject(err);
27273
27273
  } else {
27274
- resolve5([]);
27274
+ resolve4([]);
27275
27275
  }
27276
27276
  break;
27277
27277
  case "ENOTSUP":
@@ -27281,7 +27281,7 @@ var require_readdir_glob = __commonJS({
27281
27281
  case "ENAMETOOLONG":
27282
27282
  // Filename too long
27283
27283
  case "UNKNOWN":
27284
- resolve5([]);
27284
+ resolve4([]);
27285
27285
  break;
27286
27286
  case "ELOOP":
27287
27287
  // Too many levels of symbolic links
@@ -27290,36 +27290,36 @@ var require_readdir_glob = __commonJS({
27290
27290
  break;
27291
27291
  }
27292
27292
  } else {
27293
- resolve5(files);
27293
+ resolve4(files);
27294
27294
  }
27295
27295
  });
27296
27296
  });
27297
27297
  }
27298
27298
  function stat(file, followSymlinks) {
27299
- return new Promise((resolve5, reject) => {
27300
- const statFunc = followSymlinks ? fs3.stat : fs3.lstat;
27299
+ return new Promise((resolve4, reject) => {
27300
+ const statFunc = followSymlinks ? fs4.stat : fs4.lstat;
27301
27301
  statFunc(file, (err, stats) => {
27302
27302
  if (err) {
27303
27303
  switch (err.code) {
27304
27304
  case "ENOENT":
27305
27305
  if (followSymlinks) {
27306
- resolve5(stat(file, false));
27306
+ resolve4(stat(file, false));
27307
27307
  } else {
27308
- resolve5(null);
27308
+ resolve4(null);
27309
27309
  }
27310
27310
  break;
27311
27311
  default:
27312
- resolve5(null);
27312
+ resolve4(null);
27313
27313
  break;
27314
27314
  }
27315
27315
  } else {
27316
- resolve5(stats);
27316
+ resolve4(stats);
27317
27317
  }
27318
27318
  });
27319
27319
  });
27320
27320
  }
27321
- async function* exploreWalkAsync(dir, path9, followSymlinks, useStat, shouldSkip, strict) {
27322
- let files = await readdir(path9 + dir, strict);
27321
+ async function* exploreWalkAsync(dir, path10, followSymlinks, useStat, shouldSkip, strict) {
27322
+ let files = await readdir(path10 + dir, strict);
27323
27323
  for (const file of files) {
27324
27324
  let name = file.name;
27325
27325
  if (name === void 0) {
@@ -27328,7 +27328,7 @@ var require_readdir_glob = __commonJS({
27328
27328
  }
27329
27329
  const filename = dir + "/" + name;
27330
27330
  const relative = filename.slice(1);
27331
- const absolute = path9 + "/" + relative;
27331
+ const absolute = path10 + "/" + relative;
27332
27332
  let stats = null;
27333
27333
  if (useStat || followSymlinks) {
27334
27334
  stats = await stat(absolute, followSymlinks);
@@ -27342,15 +27342,15 @@ var require_readdir_glob = __commonJS({
27342
27342
  if (stats.isDirectory()) {
27343
27343
  if (!shouldSkip(relative)) {
27344
27344
  yield { relative, absolute, stats };
27345
- yield* exploreWalkAsync(filename, path9, followSymlinks, useStat, shouldSkip, false);
27345
+ yield* exploreWalkAsync(filename, path10, followSymlinks, useStat, shouldSkip, false);
27346
27346
  }
27347
27347
  } else {
27348
27348
  yield { relative, absolute, stats };
27349
27349
  }
27350
27350
  }
27351
27351
  }
27352
- async function* explore(path9, followSymlinks, useStat, shouldSkip) {
27353
- yield* exploreWalkAsync("", path9, followSymlinks, useStat, shouldSkip, true);
27352
+ async function* explore(path10, followSymlinks, useStat, shouldSkip) {
27353
+ yield* exploreWalkAsync("", path10, followSymlinks, useStat, shouldSkip, true);
27354
27354
  }
27355
27355
  function readOptions(options) {
27356
27356
  return {
@@ -27403,7 +27403,7 @@ var require_readdir_glob = __commonJS({
27403
27403
  (skip) => new Minimatch(skip, { dot: true })
27404
27404
  );
27405
27405
  }
27406
- this.iterator = explore(resolve4(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
27406
+ this.iterator = explore(resolve3(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
27407
27407
  this.paused = false;
27408
27408
  this.inactive = false;
27409
27409
  this.aborted = false;
@@ -27571,10 +27571,10 @@ var require_async2 = __commonJS({
27571
27571
  if (typeof args[arity - 1] === "function") {
27572
27572
  return asyncFn.apply(this, args);
27573
27573
  }
27574
- return new Promise((resolve4, reject2) => {
27574
+ return new Promise((resolve3, reject2) => {
27575
27575
  args[arity - 1] = (err, ...cbArgs) => {
27576
27576
  if (err) return reject2(err);
27577
- resolve4(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
27577
+ resolve3(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
27578
27578
  };
27579
27579
  asyncFn.apply(this, args);
27580
27580
  });
@@ -27820,13 +27820,13 @@ var require_async2 = __commonJS({
27820
27820
  var applyEachSeries = applyEach$1(mapSeries$1);
27821
27821
  const PROMISE_SYMBOL = Symbol("promiseCallback");
27822
27822
  function promiseCallback() {
27823
- let resolve4, reject2;
27823
+ let resolve3, reject2;
27824
27824
  function callback(err, ...args) {
27825
27825
  if (err) return reject2(err);
27826
- resolve4(args.length > 1 ? args : args[0]);
27826
+ resolve3(args.length > 1 ? args : args[0]);
27827
27827
  }
27828
27828
  callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
27829
- resolve4 = res, reject2 = rej;
27829
+ resolve3 = res, reject2 = rej;
27830
27830
  });
27831
27831
  return callback;
27832
27832
  }
@@ -28173,8 +28173,8 @@ var require_async2 = __commonJS({
28173
28173
  });
28174
28174
  }
28175
28175
  if (rejectOnError || !callback) {
28176
- return new Promise((resolve4, reject2) => {
28177
- res = resolve4;
28176
+ return new Promise((resolve3, reject2) => {
28177
+ res = resolve3;
28178
28178
  rej = reject2;
28179
28179
  });
28180
28180
  }
@@ -28213,10 +28213,10 @@ var require_async2 = __commonJS({
28213
28213
  }
28214
28214
  const eventMethod = (name) => (handler2) => {
28215
28215
  if (!handler2) {
28216
- return new Promise((resolve4, reject2) => {
28216
+ return new Promise((resolve3, reject2) => {
28217
28217
  once2(name, (err, data) => {
28218
28218
  if (err) return reject2(err);
28219
- resolve4(data);
28219
+ resolve3(data);
28220
28220
  });
28221
28221
  });
28222
28222
  }
@@ -31329,22 +31329,22 @@ var require_lazystream = __commonJS({
31329
31329
  var require_normalize_path = __commonJS({
31330
31330
  "../../node_modules/normalize-path/index.js"(exports, module) {
31331
31331
  "use strict";
31332
- module.exports = function(path9, stripTrailing) {
31333
- if (typeof path9 !== "string") {
31332
+ module.exports = function(path10, stripTrailing) {
31333
+ if (typeof path10 !== "string") {
31334
31334
  throw new TypeError("expected path to be a string");
31335
31335
  }
31336
- if (path9 === "\\" || path9 === "/") return "/";
31337
- var len = path9.length;
31338
- if (len <= 1) return path9;
31336
+ if (path10 === "\\" || path10 === "/") return "/";
31337
+ var len = path10.length;
31338
+ if (len <= 1) return path10;
31339
31339
  var prefix = "";
31340
- if (len > 4 && path9[3] === "\\") {
31341
- var ch = path9[2];
31342
- if ((ch === "?" || ch === ".") && path9.slice(0, 2) === "\\\\") {
31343
- path9 = path9.slice(2);
31340
+ if (len > 4 && path10[3] === "\\") {
31341
+ var ch = path10[2];
31342
+ if ((ch === "?" || ch === ".") && path10.slice(0, 2) === "\\\\") {
31343
+ path10 = path10.slice(2);
31344
31344
  prefix = "//";
31345
31345
  }
31346
31346
  }
31347
- var segs = path9.split(/[/\\]+/);
31347
+ var segs = path10.split(/[/\\]+/);
31348
31348
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
31349
31349
  segs.pop();
31350
31350
  }
@@ -33588,14 +33588,14 @@ var require_async_iterator = __commonJS({
33588
33588
  };
33589
33589
  }
33590
33590
  function readAndResolve(iter) {
33591
- var resolve4 = iter[kLastResolve];
33592
- if (resolve4 !== null) {
33591
+ var resolve3 = iter[kLastResolve];
33592
+ if (resolve3 !== null) {
33593
33593
  var data = iter[kStream].read();
33594
33594
  if (data !== null) {
33595
33595
  iter[kLastPromise] = null;
33596
33596
  iter[kLastResolve] = null;
33597
33597
  iter[kLastReject] = null;
33598
- resolve4(createIterResult(data, false));
33598
+ resolve3(createIterResult(data, false));
33599
33599
  }
33600
33600
  }
33601
33601
  }
@@ -33603,13 +33603,13 @@ var require_async_iterator = __commonJS({
33603
33603
  process.nextTick(readAndResolve, iter);
33604
33604
  }
33605
33605
  function wrapForNext(lastPromise, iter) {
33606
- return function(resolve4, reject) {
33606
+ return function(resolve3, reject) {
33607
33607
  lastPromise.then(function() {
33608
33608
  if (iter[kEnded]) {
33609
- resolve4(createIterResult(void 0, true));
33609
+ resolve3(createIterResult(void 0, true));
33610
33610
  return;
33611
33611
  }
33612
- iter[kHandlePromise](resolve4, reject);
33612
+ iter[kHandlePromise](resolve3, reject);
33613
33613
  }, reject);
33614
33614
  };
33615
33615
  }
@@ -33629,12 +33629,12 @@ var require_async_iterator = __commonJS({
33629
33629
  return Promise.resolve(createIterResult(void 0, true));
33630
33630
  }
33631
33631
  if (this[kStream].destroyed) {
33632
- return new Promise(function(resolve4, reject) {
33632
+ return new Promise(function(resolve3, reject) {
33633
33633
  process.nextTick(function() {
33634
33634
  if (_this[kError]) {
33635
33635
  reject(_this[kError]);
33636
33636
  } else {
33637
- resolve4(createIterResult(void 0, true));
33637
+ resolve3(createIterResult(void 0, true));
33638
33638
  }
33639
33639
  });
33640
33640
  });
@@ -33657,13 +33657,13 @@ var require_async_iterator = __commonJS({
33657
33657
  return this;
33658
33658
  }), _defineProperty(_Object$setPrototypeO, "return", function _return() {
33659
33659
  var _this2 = this;
33660
- return new Promise(function(resolve4, reject) {
33660
+ return new Promise(function(resolve3, reject) {
33661
33661
  _this2[kStream].destroy(null, function(err) {
33662
33662
  if (err) {
33663
33663
  reject(err);
33664
33664
  return;
33665
33665
  }
33666
- resolve4(createIterResult(void 0, true));
33666
+ resolve3(createIterResult(void 0, true));
33667
33667
  });
33668
33668
  });
33669
33669
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
@@ -33685,15 +33685,15 @@ var require_async_iterator = __commonJS({
33685
33685
  value: stream._readableState.endEmitted,
33686
33686
  writable: true
33687
33687
  }), _defineProperty(_Object$create, kHandlePromise, {
33688
- value: function value(resolve4, reject) {
33688
+ value: function value(resolve3, reject) {
33689
33689
  var data = iterator2[kStream].read();
33690
33690
  if (data) {
33691
33691
  iterator2[kLastPromise] = null;
33692
33692
  iterator2[kLastResolve] = null;
33693
33693
  iterator2[kLastReject] = null;
33694
- resolve4(createIterResult(data, false));
33694
+ resolve3(createIterResult(data, false));
33695
33695
  } else {
33696
- iterator2[kLastResolve] = resolve4;
33696
+ iterator2[kLastResolve] = resolve3;
33697
33697
  iterator2[kLastReject] = reject;
33698
33698
  }
33699
33699
  },
@@ -33712,12 +33712,12 @@ var require_async_iterator = __commonJS({
33712
33712
  iterator2[kError] = err;
33713
33713
  return;
33714
33714
  }
33715
- var resolve4 = iterator2[kLastResolve];
33716
- if (resolve4 !== null) {
33715
+ var resolve3 = iterator2[kLastResolve];
33716
+ if (resolve3 !== null) {
33717
33717
  iterator2[kLastPromise] = null;
33718
33718
  iterator2[kLastResolve] = null;
33719
33719
  iterator2[kLastReject] = null;
33720
- resolve4(createIterResult(void 0, true));
33720
+ resolve3(createIterResult(void 0, true));
33721
33721
  }
33722
33722
  iterator2[kEnded] = true;
33723
33723
  });
@@ -33732,7 +33732,7 @@ var require_async_iterator = __commonJS({
33732
33732
  var require_from = __commonJS({
33733
33733
  "../../node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
33734
33734
  "use strict";
33735
- function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
33735
+ function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
33736
33736
  try {
33737
33737
  var info = gen[key](arg);
33738
33738
  var value = info.value;
@@ -33741,7 +33741,7 @@ var require_from = __commonJS({
33741
33741
  return;
33742
33742
  }
33743
33743
  if (info.done) {
33744
- resolve4(value);
33744
+ resolve3(value);
33745
33745
  } else {
33746
33746
  Promise.resolve(value).then(_next, _throw);
33747
33747
  }
@@ -33749,13 +33749,13 @@ var require_from = __commonJS({
33749
33749
  function _asyncToGenerator(fn) {
33750
33750
  return function() {
33751
33751
  var self2 = this, args = arguments;
33752
- return new Promise(function(resolve4, reject) {
33752
+ return new Promise(function(resolve3, reject) {
33753
33753
  var gen = fn.apply(self2, args);
33754
33754
  function _next(value) {
33755
- asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
33755
+ asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
33756
33756
  }
33757
33757
  function _throw(err) {
33758
- asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
33758
+ asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
33759
33759
  }
33760
33760
  _next(void 0);
33761
33761
  });
@@ -35745,7 +35745,7 @@ var require_brace_expansion3 = __commonJS({
35745
35745
  var isSequence = isNumericSequence || isAlphaSequence;
35746
35746
  var isOptions = m.body.indexOf(",") >= 0;
35747
35747
  if (!isSequence && !isOptions) {
35748
- if (m.post.match(/,.*\}/)) {
35748
+ if (m.post.match(/,(?!,).*\}/)) {
35749
35749
  str = m.pre + "{" + m.body + escClose + m.post;
35750
35750
  return expand2(str);
35751
35751
  }
@@ -35831,8 +35831,8 @@ var require_minimatch3 = __commonJS({
35831
35831
  return new Minimatch(pattern, options).match(p);
35832
35832
  };
35833
35833
  module.exports = minimatch;
35834
- var path9 = require_path2();
35835
- minimatch.sep = path9.sep;
35834
+ var path10 = require_path2();
35835
+ minimatch.sep = path10.sep;
35836
35836
  var GLOBSTAR = Symbol("globstar **");
35837
35837
  minimatch.GLOBSTAR = GLOBSTAR;
35838
35838
  var expand2 = require_brace_expansion3();
@@ -36341,8 +36341,8 @@ var require_minimatch3 = __commonJS({
36341
36341
  if (this.empty) return f === "";
36342
36342
  if (f === "/" && partial) return true;
36343
36343
  const options = this.options;
36344
- if (path9.sep !== "/") {
36345
- f = f.split(path9.sep).join("/");
36344
+ if (path10.sep !== "/") {
36345
+ f = f.split(path10.sep).join("/");
36346
36346
  }
36347
36347
  f = f.split(slashSplit);
36348
36348
  this.debug(this.pattern, "split", f);
@@ -36390,8 +36390,8 @@ var require_common2 = __commonJS({
36390
36390
  function ownProp(obj, field) {
36391
36391
  return Object.prototype.hasOwnProperty.call(obj, field);
36392
36392
  }
36393
- var fs3 = __require("fs");
36394
- var path9 = __require("path");
36393
+ var fs4 = __require("fs");
36394
+ var path10 = __require("path");
36395
36395
  var minimatch = require_minimatch3();
36396
36396
  var isAbsolute = __require("path").isAbsolute;
36397
36397
  var Minimatch = minimatch.Minimatch;
@@ -36449,7 +36449,7 @@ var require_common2 = __commonJS({
36449
36449
  self2.stat = !!options.stat;
36450
36450
  self2.noprocess = !!options.noprocess;
36451
36451
  self2.absolute = !!options.absolute;
36452
- self2.fs = options.fs || fs3;
36452
+ self2.fs = options.fs || fs4;
36453
36453
  self2.maxLength = options.maxLength || Infinity;
36454
36454
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
36455
36455
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -36458,13 +36458,13 @@ var require_common2 = __commonJS({
36458
36458
  self2.changedCwd = false;
36459
36459
  var cwd = process.cwd();
36460
36460
  if (!ownProp(options, "cwd"))
36461
- self2.cwd = path9.resolve(cwd);
36461
+ self2.cwd = path10.resolve(cwd);
36462
36462
  else {
36463
- self2.cwd = path9.resolve(options.cwd);
36463
+ self2.cwd = path10.resolve(options.cwd);
36464
36464
  self2.changedCwd = self2.cwd !== cwd;
36465
36465
  }
36466
- self2.root = options.root || path9.resolve(self2.cwd, "/");
36467
- self2.root = path9.resolve(self2.root);
36466
+ self2.root = options.root || path10.resolve(self2.cwd, "/");
36467
+ self2.root = path10.resolve(self2.root);
36468
36468
  self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
36469
36469
  self2.nomount = !!options.nomount;
36470
36470
  if (process.platform === "win32") {
@@ -36546,30 +36546,30 @@ var require_common2 = __commonJS({
36546
36546
  function makeAbs(self2, f) {
36547
36547
  var abs = f;
36548
36548
  if (f.charAt(0) === "/") {
36549
- abs = path9.join(self2.root, f);
36549
+ abs = path10.join(self2.root, f);
36550
36550
  } else if (isAbsolute(f) || f === "") {
36551
36551
  abs = f;
36552
36552
  } else if (self2.changedCwd) {
36553
- abs = path9.resolve(self2.cwd, f);
36553
+ abs = path10.resolve(self2.cwd, f);
36554
36554
  } else {
36555
- abs = path9.resolve(f);
36555
+ abs = path10.resolve(f);
36556
36556
  }
36557
36557
  if (process.platform === "win32")
36558
36558
  abs = abs.replace(/\\/g, "/");
36559
36559
  return abs;
36560
36560
  }
36561
- function isIgnored(self2, path10) {
36561
+ function isIgnored(self2, path11) {
36562
36562
  if (!self2.ignore.length)
36563
36563
  return false;
36564
36564
  return self2.ignore.some(function(item) {
36565
- return item.matcher.match(path10) || !!(item.gmatcher && item.gmatcher.match(path10));
36565
+ return item.matcher.match(path11) || !!(item.gmatcher && item.gmatcher.match(path11));
36566
36566
  });
36567
36567
  }
36568
- function childrenIgnored(self2, path10) {
36568
+ function childrenIgnored(self2, path11) {
36569
36569
  if (!self2.ignore.length)
36570
36570
  return false;
36571
36571
  return self2.ignore.some(function(item) {
36572
- return !!(item.gmatcher && item.gmatcher.match(path10));
36572
+ return !!(item.gmatcher && item.gmatcher.match(path11));
36573
36573
  });
36574
36574
  }
36575
36575
  }
@@ -36586,7 +36586,7 @@ var require_sync3 = __commonJS({
36586
36586
  var Minimatch = minimatch.Minimatch;
36587
36587
  var Glob = require_glob2().Glob;
36588
36588
  var util = __require("util");
36589
- var path9 = __require("path");
36589
+ var path10 = __require("path");
36590
36590
  var assert = __require("assert");
36591
36591
  var isAbsolute = __require("path").isAbsolute;
36592
36592
  var common = require_common2();
@@ -36715,7 +36715,7 @@ var require_sync3 = __commonJS({
36715
36715
  e = prefix + e;
36716
36716
  }
36717
36717
  if (e.charAt(0) === "/" && !this.nomount) {
36718
- e = path9.join(this.root, e);
36718
+ e = path10.join(this.root, e);
36719
36719
  }
36720
36720
  this._emitMatch(index, e);
36721
36721
  }
@@ -36866,9 +36866,9 @@ var require_sync3 = __commonJS({
36866
36866
  if (prefix && isAbsolute(prefix) && !this.nomount) {
36867
36867
  var trail = /[\/\\]$/.test(prefix);
36868
36868
  if (prefix.charAt(0) === "/") {
36869
- prefix = path9.join(this.root, prefix);
36869
+ prefix = path10.join(this.root, prefix);
36870
36870
  } else {
36871
- prefix = path9.resolve(this.root, prefix);
36871
+ prefix = path10.resolve(this.root, prefix);
36872
36872
  if (trail)
36873
36873
  prefix += "/";
36874
36874
  }
@@ -36941,7 +36941,7 @@ var require_glob2 = __commonJS({
36941
36941
  var Minimatch = minimatch.Minimatch;
36942
36942
  var inherits = require_inherits();
36943
36943
  var EE = __require("events").EventEmitter;
36944
- var path9 = __require("path");
36944
+ var path10 = __require("path");
36945
36945
  var assert = __require("assert");
36946
36946
  var isAbsolute = __require("path").isAbsolute;
36947
36947
  var globSync = require_sync3();
@@ -37223,7 +37223,7 @@ var require_glob2 = __commonJS({
37223
37223
  e = prefix + e;
37224
37224
  }
37225
37225
  if (e.charAt(0) === "/" && !this.nomount) {
37226
- e = path9.join(this.root, e);
37226
+ e = path10.join(this.root, e);
37227
37227
  }
37228
37228
  this._emitMatch(index, e);
37229
37229
  }
@@ -37412,9 +37412,9 @@ var require_glob2 = __commonJS({
37412
37412
  if (prefix && isAbsolute(prefix) && !this.nomount) {
37413
37413
  var trail = /[\/\\]$/.test(prefix);
37414
37414
  if (prefix.charAt(0) === "/") {
37415
- prefix = path9.join(this.root, prefix);
37415
+ prefix = path10.join(this.root, prefix);
37416
37416
  } else {
37417
- prefix = path9.resolve(this.root, prefix);
37417
+ prefix = path10.resolve(this.root, prefix);
37418
37418
  if (trail)
37419
37419
  prefix += "/";
37420
37420
  }
@@ -37492,8 +37492,8 @@ var require_glob2 = __commonJS({
37492
37492
  var require_file2 = __commonJS({
37493
37493
  "../../node_modules/archiver-utils/file.js"(exports, module) {
37494
37494
  "use strict";
37495
- var fs3 = require_graceful_fs();
37496
- var path9 = __require("path");
37495
+ var fs4 = require_graceful_fs();
37496
+ var path10 = __require("path");
37497
37497
  var flatten = require_flatten();
37498
37498
  var difference = require_difference();
37499
37499
  var union = require_union();
@@ -37518,8 +37518,8 @@ var require_file2 = __commonJS({
37518
37518
  return result;
37519
37519
  };
37520
37520
  file.exists = function() {
37521
- var filepath = path9.join.apply(path9, arguments);
37522
- return fs3.existsSync(filepath);
37521
+ var filepath = path10.join.apply(path10, arguments);
37522
+ return fs4.existsSync(filepath);
37523
37523
  };
37524
37524
  file.expand = function(...args) {
37525
37525
  var options = isPlainObject3(args[0]) ? args.shift() : {};
@@ -37532,12 +37532,12 @@ var require_file2 = __commonJS({
37532
37532
  });
37533
37533
  if (options.filter) {
37534
37534
  matches = matches.filter(function(filepath) {
37535
- filepath = path9.join(options.cwd || "", filepath);
37535
+ filepath = path10.join(options.cwd || "", filepath);
37536
37536
  try {
37537
37537
  if (typeof options.filter === "function") {
37538
37538
  return options.filter(filepath);
37539
37539
  } else {
37540
- return fs3.statSync(filepath)[options.filter]();
37540
+ return fs4.statSync(filepath)[options.filter]();
37541
37541
  }
37542
37542
  } catch (e) {
37543
37543
  return false;
@@ -37549,7 +37549,7 @@ var require_file2 = __commonJS({
37549
37549
  file.expandMapping = function(patterns, destBase, options) {
37550
37550
  options = Object.assign({
37551
37551
  rename: function(destBase2, destPath) {
37552
- return path9.join(destBase2 || "", destPath);
37552
+ return path10.join(destBase2 || "", destPath);
37553
37553
  }
37554
37554
  }, options);
37555
37555
  var files = [];
@@ -37557,14 +37557,14 @@ var require_file2 = __commonJS({
37557
37557
  file.expand(options, patterns).forEach(function(src) {
37558
37558
  var destPath = src;
37559
37559
  if (options.flatten) {
37560
- destPath = path9.basename(destPath);
37560
+ destPath = path10.basename(destPath);
37561
37561
  }
37562
37562
  if (options.ext) {
37563
37563
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
37564
37564
  }
37565
37565
  var dest = options.rename(destBase, destPath, options);
37566
37566
  if (options.cwd) {
37567
- src = path9.join(options.cwd, src);
37567
+ src = path10.join(options.cwd, src);
37568
37568
  }
37569
37569
  dest = dest.replace(pathSeparatorRe, "/");
37570
37570
  src = src.replace(pathSeparatorRe, "/");
@@ -37646,8 +37646,8 @@ var require_file2 = __commonJS({
37646
37646
  var require_archiver_utils = __commonJS({
37647
37647
  "../../node_modules/archiver-utils/index.js"(exports, module) {
37648
37648
  "use strict";
37649
- var fs3 = require_graceful_fs();
37650
- var path9 = __require("path");
37649
+ var fs4 = require_graceful_fs();
37650
+ var path10 = __require("path");
37651
37651
  var lazystream = require_lazystream();
37652
37652
  var normalizePath = require_normalize_path();
37653
37653
  var defaults = require_defaults3();
@@ -37694,7 +37694,7 @@ var require_archiver_utils = __commonJS({
37694
37694
  };
37695
37695
  utils.lazyReadStream = function(filepath) {
37696
37696
  return new lazystream.Readable(function() {
37697
- return fs3.createReadStream(filepath);
37697
+ return fs4.createReadStream(filepath);
37698
37698
  });
37699
37699
  };
37700
37700
  utils.normalizeInputSource = function(source) {
@@ -37722,7 +37722,7 @@ var require_archiver_utils = __commonJS({
37722
37722
  callback = base;
37723
37723
  base = dirpath;
37724
37724
  }
37725
- fs3.readdir(dirpath, function(err, list) {
37725
+ fs4.readdir(dirpath, function(err, list) {
37726
37726
  var i = 0;
37727
37727
  var file;
37728
37728
  var filepath;
@@ -37734,11 +37734,11 @@ var require_archiver_utils = __commonJS({
37734
37734
  if (!file) {
37735
37735
  return callback(null, results);
37736
37736
  }
37737
- filepath = path9.join(dirpath, file);
37738
- fs3.stat(filepath, function(err2, stats) {
37737
+ filepath = path10.join(dirpath, file);
37738
+ fs4.stat(filepath, function(err2, stats) {
37739
37739
  results.push({
37740
37740
  path: filepath,
37741
- relative: path9.relative(base, filepath).replace(/\\/g, "/"),
37741
+ relative: path10.relative(base, filepath).replace(/\\/g, "/"),
37742
37742
  stats
37743
37743
  });
37744
37744
  if (stats && stats.isDirectory()) {
@@ -37799,10 +37799,10 @@ var require_error = __commonJS({
37799
37799
  var require_core9 = __commonJS({
37800
37800
  "../../node_modules/archiver/lib/core.js"(exports, module) {
37801
37801
  "use strict";
37802
- var fs3 = __require("fs");
37802
+ var fs4 = __require("fs");
37803
37803
  var glob = require_readdir_glob();
37804
37804
  var async = require_async2();
37805
- var path9 = __require("path");
37805
+ var path10 = __require("path");
37806
37806
  var util = require_archiver_utils();
37807
37807
  var inherits = __require("util").inherits;
37808
37808
  var ArchiverError = require_error();
@@ -37863,7 +37863,7 @@ var require_core9 = __commonJS({
37863
37863
  data.sourcePath = filepath;
37864
37864
  task5.data = data;
37865
37865
  this._entriesCount++;
37866
- if (data.stats && data.stats instanceof fs3.Stats) {
37866
+ if (data.stats && data.stats instanceof fs4.Stats) {
37867
37867
  task5 = this._updateQueueTaskWithStats(task5, data.stats);
37868
37868
  if (task5) {
37869
37869
  if (data.stats.size) {
@@ -38034,7 +38034,7 @@ var require_core9 = __commonJS({
38034
38034
  callback();
38035
38035
  return;
38036
38036
  }
38037
- fs3.lstat(task5.filepath, function(err, stats) {
38037
+ fs4.lstat(task5.filepath, function(err, stats) {
38038
38038
  if (this._state.aborted) {
38039
38039
  setImmediate(callback);
38040
38040
  return;
@@ -38077,10 +38077,10 @@ var require_core9 = __commonJS({
38077
38077
  task5.data.sourceType = "buffer";
38078
38078
  task5.source = Buffer.concat([]);
38079
38079
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
38080
- var linkPath = fs3.readlinkSync(task5.filepath);
38081
- var dirName = path9.dirname(task5.filepath);
38080
+ var linkPath = fs4.readlinkSync(task5.filepath);
38081
+ var dirName = path10.dirname(task5.filepath);
38082
38082
  task5.data.type = "symlink";
38083
- task5.data.linkname = path9.relative(dirName, path9.resolve(dirName, linkPath));
38083
+ task5.data.linkname = path10.relative(dirName, path10.resolve(dirName, linkPath));
38084
38084
  task5.data.sourceType = "buffer";
38085
38085
  task5.source = Buffer.concat([]);
38086
38086
  } else {
@@ -38254,11 +38254,11 @@ var require_core9 = __commonJS({
38254
38254
  this._finalize();
38255
38255
  }
38256
38256
  var self2 = this;
38257
- return new Promise(function(resolve4, reject) {
38257
+ return new Promise(function(resolve3, reject) {
38258
38258
  var errored;
38259
38259
  self2._module.on("end", function() {
38260
38260
  if (!errored) {
38261
- resolve4();
38261
+ resolve3();
38262
38262
  }
38263
38263
  });
38264
38264
  self2._module.on("error", function(err) {
@@ -40635,8 +40635,8 @@ var require_streamx = __commonJS({
40635
40635
  return this;
40636
40636
  },
40637
40637
  next() {
40638
- return new Promise(function(resolve4, reject) {
40639
- promiseResolve = resolve4;
40638
+ return new Promise(function(resolve3, reject) {
40639
+ promiseResolve = resolve3;
40640
40640
  promiseReject = reject;
40641
40641
  const data = stream.read();
40642
40642
  if (data !== null) ondata(data);
@@ -40665,11 +40665,11 @@ var require_streamx = __commonJS({
40665
40665
  }
40666
40666
  function destroy(err) {
40667
40667
  stream.destroy(err);
40668
- return new Promise((resolve4, reject) => {
40669
- if (stream._duplexState & DESTROYED) return resolve4({ value: void 0, done: true });
40668
+ return new Promise((resolve3, reject) => {
40669
+ if (stream._duplexState & DESTROYED) return resolve3({ value: void 0, done: true });
40670
40670
  stream.once("close", function() {
40671
40671
  if (err) reject(err);
40672
- else resolve4({ value: void 0, done: true });
40672
+ else resolve3({ value: void 0, done: true });
40673
40673
  });
40674
40674
  });
40675
40675
  }
@@ -40713,8 +40713,8 @@ var require_streamx = __commonJS({
40713
40713
  const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
40714
40714
  if (writes === 0) return Promise.resolve(true);
40715
40715
  if (state.drains === null) state.drains = [];
40716
- return new Promise((resolve4) => {
40717
- state.drains.push({ writes, resolve: resolve4 });
40716
+ return new Promise((resolve3) => {
40717
+ state.drains.push({ writes, resolve: resolve3 });
40718
40718
  });
40719
40719
  }
40720
40720
  write(data) {
@@ -40819,10 +40819,10 @@ var require_streamx = __commonJS({
40819
40819
  cb(null);
40820
40820
  }
40821
40821
  function pipelinePromise(...streams) {
40822
- return new Promise((resolve4, reject) => {
40822
+ return new Promise((resolve3, reject) => {
40823
40823
  return pipeline(...streams, (err) => {
40824
40824
  if (err) return reject(err);
40825
- resolve4();
40825
+ resolve3();
40826
40826
  });
40827
40827
  });
40828
40828
  }
@@ -41471,16 +41471,16 @@ var require_extract = __commonJS({
41471
41471
  entryCallback = null;
41472
41472
  cb(err);
41473
41473
  }
41474
- function onnext(resolve4, reject) {
41474
+ function onnext(resolve3, reject) {
41475
41475
  if (error) {
41476
41476
  return reject(error);
41477
41477
  }
41478
41478
  if (entryStream) {
41479
- resolve4({ value: entryStream, done: false });
41479
+ resolve3({ value: entryStream, done: false });
41480
41480
  entryStream = null;
41481
41481
  return;
41482
41482
  }
41483
- promiseResolve = resolve4;
41483
+ promiseResolve = resolve3;
41484
41484
  promiseReject = reject;
41485
41485
  consumeCallback(null);
41486
41486
  if (extract._finished && promiseResolve) {
@@ -41508,11 +41508,11 @@ var require_extract = __commonJS({
41508
41508
  function destroy(err) {
41509
41509
  extract.destroy(err);
41510
41510
  consumeCallback(err);
41511
- return new Promise((resolve4, reject) => {
41512
- if (extract.destroyed) return resolve4({ value: void 0, done: true });
41511
+ return new Promise((resolve3, reject) => {
41512
+ if (extract.destroyed) return resolve3({ value: void 0, done: true });
41513
41513
  extract.once("close", function() {
41514
41514
  if (err) reject(err);
41515
- else resolve4({ value: void 0, done: true });
41515
+ else resolve3({ value: void 0, done: true });
41516
41516
  });
41517
41517
  });
41518
41518
  }
@@ -42285,7 +42285,7 @@ var require_archiver = __commonJS({
42285
42285
  var require_yazl = __commonJS({
42286
42286
  "../../node_modules/yazl/index.js"(exports) {
42287
42287
  "use strict";
42288
- var fs3 = __require("fs");
42288
+ var fs4 = __require("fs");
42289
42289
  var Transform = __require("stream").Transform;
42290
42290
  var PassThrough = __require("stream").PassThrough;
42291
42291
  var zlib = __require("zlib");
@@ -42309,14 +42309,14 @@ var require_yazl = __commonJS({
42309
42309
  if (options == null) options = {};
42310
42310
  var entry = new Entry(metadataPath, false, options);
42311
42311
  self2.entries.push(entry);
42312
- fs3.stat(realPath, function(err, stats) {
42312
+ fs4.stat(realPath, function(err, stats) {
42313
42313
  if (err) return self2.emit("error", err);
42314
42314
  if (!stats.isFile()) return self2.emit("error", new Error("not a file: " + realPath));
42315
42315
  entry.uncompressedSize = stats.size;
42316
42316
  if (options.mtime == null) entry.setLastModDate(stats.mtime);
42317
42317
  if (options.mode == null) entry.setFileAttributesMode(stats.mode);
42318
42318
  entry.setFileDataPumpFunction(function() {
42319
- var readStream = fs3.createReadStream(realPath);
42319
+ var readStream = fs4.createReadStream(realPath);
42320
42320
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
42321
42321
  readStream.on("error", function(err2) {
42322
42322
  self2.emit("error", err2);
@@ -42872,50 +42872,50 @@ var require_util6 = __commonJS({
42872
42872
  "use strict";
42873
42873
  Object.defineProperty(exports, "__esModule", { value: true });
42874
42874
  exports.readlink = exports.symlink = exports.rmdir = exports.access = exports.readdir = exports.chmod = exports.lstat = exports.stat = exports.realpath = exports.mkdir = exports.unlink = void 0;
42875
- var fs3 = __require("fs");
42875
+ var fs4 = __require("fs");
42876
42876
  var util = __require("util");
42877
- function unlink(path9) {
42878
- return util.promisify(fs3.unlink)(path9);
42877
+ function unlink(path10) {
42878
+ return util.promisify(fs4.unlink)(path10);
42879
42879
  }
42880
42880
  exports.unlink = unlink;
42881
- function mkdir(path9, mode) {
42882
- return util.promisify(fs3.mkdir)(path9, mode);
42881
+ function mkdir(path10, mode) {
42882
+ return util.promisify(fs4.mkdir)(path10, mode);
42883
42883
  }
42884
42884
  exports.mkdir = mkdir;
42885
- function realpath(path9) {
42886
- return util.promisify(fs3.realpath)(path9);
42885
+ function realpath(path10) {
42886
+ return util.promisify(fs4.realpath)(path10);
42887
42887
  }
42888
42888
  exports.realpath = realpath;
42889
- function stat(path9) {
42890
- return util.promisify(fs3.stat)(path9);
42889
+ function stat(path10) {
42890
+ return util.promisify(fs4.stat)(path10);
42891
42891
  }
42892
42892
  exports.stat = stat;
42893
- function lstat(path9) {
42894
- return util.promisify(fs3.lstat)(path9);
42893
+ function lstat(path10) {
42894
+ return util.promisify(fs4.lstat)(path10);
42895
42895
  }
42896
42896
  exports.lstat = lstat;
42897
- function chmod(path9, mode) {
42898
- return util.promisify(fs3.chmod)(path9, mode);
42897
+ function chmod(path10, mode) {
42898
+ return util.promisify(fs4.chmod)(path10, mode);
42899
42899
  }
42900
42900
  exports.chmod = chmod;
42901
- function readdir(path9) {
42902
- return util.promisify(fs3.readdir)(path9);
42901
+ function readdir(path10) {
42902
+ return util.promisify(fs4.readdir)(path10);
42903
42903
  }
42904
42904
  exports.readdir = readdir;
42905
- function access(path9, mode) {
42906
- return util.promisify(fs3.access)(path9, mode);
42905
+ function access(path10, mode) {
42906
+ return util.promisify(fs4.access)(path10, mode);
42907
42907
  }
42908
42908
  exports.access = access;
42909
- function rmdir(path9) {
42910
- return util.promisify(fs3.rmdir)(path9);
42909
+ function rmdir(path10) {
42910
+ return util.promisify(fs4.rmdir)(path10);
42911
42911
  }
42912
42912
  exports.rmdir = rmdir;
42913
- function symlink(target, path9, type) {
42914
- return util.promisify(fs3.symlink)(target, path9, type);
42913
+ function symlink(target, path10, type) {
42914
+ return util.promisify(fs4.symlink)(target, path10, type);
42915
42915
  }
42916
42916
  exports.symlink = symlink;
42917
- function readlink(path9) {
42918
- return util.promisify(fs3.readlink)(path9);
42917
+ function readlink(path10) {
42918
+ return util.promisify(fs4.readlink)(path10);
42919
42919
  }
42920
42920
  exports.readlink = readlink;
42921
42921
  }
@@ -42927,13 +42927,13 @@ var require_fs3 = __commonJS({
42927
42927
  "use strict";
42928
42928
  Object.defineProperty(exports, "__esModule", { value: true });
42929
42929
  exports.isRootPath = exports.rimraf = exports.pathExists = exports.ensureFolder = exports.getFileEntry = exports.readdirp = void 0;
42930
- var path9 = __require("path");
42930
+ var path10 = __require("path");
42931
42931
  var util = require_util6();
42932
42932
  async function readdirp(folder) {
42933
42933
  const result = [];
42934
42934
  const files = await util.readdir(folder);
42935
42935
  for (const item of files) {
42936
- const file = path9.join(folder, item);
42936
+ const file = path10.join(folder, item);
42937
42937
  const entry = await getFileEntry(file);
42938
42938
  if (!entry.isSymbolicLink && entry.type === "dir") {
42939
42939
  const subFiles = await readdirp(file);
@@ -42972,14 +42972,14 @@ var require_fs3 = __commonJS({
42972
42972
  }
42973
42973
  exports.getFileEntry = getFileEntry;
42974
42974
  async function ensureFolder(folder) {
42975
- if (folder === path9.dirname(folder)) {
42975
+ if (folder === path10.dirname(folder)) {
42976
42976
  return Promise.resolve();
42977
42977
  }
42978
42978
  try {
42979
42979
  await mkdir(folder);
42980
42980
  } catch (error) {
42981
42981
  if (error.code === "ENOENT") {
42982
- await ensureFolder(path9.dirname(folder));
42982
+ await ensureFolder(path10.dirname(folder));
42983
42983
  return mkdir(folder);
42984
42984
  }
42985
42985
  return Promise.reject(error);
@@ -43003,7 +43003,7 @@ var require_fs3 = __commonJS({
43003
43003
  const stat = await util.lstat(target);
43004
43004
  if (stat.isDirectory() && !stat.isSymbolicLink()) {
43005
43005
  const children = await util.readdir(target);
43006
- await Promise.all(children.map((child) => rimraf3(path9.join(target, child))));
43006
+ await Promise.all(children.map((child) => rimraf3(path10.join(target, child))));
43007
43007
  await util.rmdir(target);
43008
43008
  } else {
43009
43009
  const mode = stat.mode;
@@ -43146,7 +43146,7 @@ var require_zip2 = __commonJS({
43146
43146
  var yazl = require_yazl();
43147
43147
  var fs_1 = __require("fs");
43148
43148
  var exfs = require_fs3();
43149
- var path9 = __require("path");
43149
+ var path10 = __require("path");
43150
43150
  var util = require_util6();
43151
43151
  var cancelable_1 = require_cancelable();
43152
43152
  var Zip2 = class extends cancelable_1.Cancelable {
@@ -43169,7 +43169,7 @@ var require_zip2 = __commonJS({
43169
43169
  addFile(file, metadataPath) {
43170
43170
  let mpath = metadataPath;
43171
43171
  if (!mpath) {
43172
- mpath = path9.basename(file);
43172
+ mpath = path10.basename(file);
43173
43173
  }
43174
43174
  this.zipFiles.push({
43175
43175
  path: file,
@@ -43199,7 +43199,7 @@ var require_zip2 = __commonJS({
43199
43199
  const token = new cancelable_1.CancellationToken();
43200
43200
  this.token = token;
43201
43201
  this.isPipe = false;
43202
- await exfs.ensureFolder(path9.dirname(zipFile));
43202
+ await exfs.ensureFolder(path10.dirname(zipFile));
43203
43203
  this.yazlFile = new yazl.ZipFile();
43204
43204
  return new Promise(async (c, e) => {
43205
43205
  this.yazlFile.once("error", (err) => {
@@ -43309,8 +43309,8 @@ var require_zip2 = __commonJS({
43309
43309
  if (token.isCancelled) {
43310
43310
  return;
43311
43311
  }
43312
- const relativePath = path9.relative(folder.path, entry.path);
43313
- const metadataPath = folder.metadataPath ? path9.join(folder.metadataPath, relativePath) : relativePath;
43312
+ const relativePath = path10.relative(folder.path, entry.path);
43313
+ const metadataPath = folder.metadataPath ? path10.join(folder.metadataPath, relativePath) : relativePath;
43314
43314
  await this.addEntry(this.yazlFile, entry, { path: entry.path, metadataPath }, token);
43315
43315
  }
43316
43316
  } else {
@@ -43399,7 +43399,7 @@ var require_pend = __commonJS({
43399
43399
  var require_fd_slicer = __commonJS({
43400
43400
  "../../node_modules/fd-slicer/index.js"(exports) {
43401
43401
  "use strict";
43402
- var fs3 = __require("fs");
43402
+ var fs4 = __require("fs");
43403
43403
  var util = __require("util");
43404
43404
  var stream = __require("stream");
43405
43405
  var Readable = stream.Readable;
@@ -43424,7 +43424,7 @@ var require_fd_slicer = __commonJS({
43424
43424
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
43425
43425
  var self2 = this;
43426
43426
  self2.pend.go(function(cb) {
43427
- fs3.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
43427
+ fs4.read(self2.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
43428
43428
  cb();
43429
43429
  callback(err, bytesRead, buffer2);
43430
43430
  });
@@ -43433,7 +43433,7 @@ var require_fd_slicer = __commonJS({
43433
43433
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
43434
43434
  var self2 = this;
43435
43435
  self2.pend.go(function(cb) {
43436
- fs3.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
43436
+ fs4.write(self2.fd, buffer, offset, length, position, function(err, written, buffer2) {
43437
43437
  cb();
43438
43438
  callback(err, written, buffer2);
43439
43439
  });
@@ -43454,7 +43454,7 @@ var require_fd_slicer = __commonJS({
43454
43454
  if (self2.refCount > 0) return;
43455
43455
  if (self2.refCount < 0) throw new Error("invalid unref");
43456
43456
  if (self2.autoClose) {
43457
- fs3.close(self2.fd, onCloseDone);
43457
+ fs4.close(self2.fd, onCloseDone);
43458
43458
  }
43459
43459
  function onCloseDone(err) {
43460
43460
  if (err) {
@@ -43491,7 +43491,7 @@ var require_fd_slicer = __commonJS({
43491
43491
  self2.context.pend.go(function(cb) {
43492
43492
  if (self2.destroyed) return cb();
43493
43493
  var buffer = new Buffer(toRead);
43494
- fs3.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
43494
+ fs4.read(self2.context.fd, buffer, 0, toRead, self2.pos, function(err, bytesRead) {
43495
43495
  if (err) {
43496
43496
  self2.destroy(err);
43497
43497
  } else if (bytesRead === 0) {
@@ -43538,7 +43538,7 @@ var require_fd_slicer = __commonJS({
43538
43538
  }
43539
43539
  self2.context.pend.go(function(cb) {
43540
43540
  if (self2.destroyed) return cb();
43541
- fs3.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
43541
+ fs4.write(self2.context.fd, buffer, 0, buffer.length, self2.pos, function(err2, bytes) {
43542
43542
  if (err2) {
43543
43543
  self2.destroy();
43544
43544
  cb();
@@ -43659,7 +43659,7 @@ var require_fd_slicer = __commonJS({
43659
43659
  var require_yauzl = __commonJS({
43660
43660
  "../../node_modules/yauzl/index.js"(exports) {
43661
43661
  "use strict";
43662
- var fs3 = __require("fs");
43662
+ var fs4 = __require("fs");
43663
43663
  var zlib = __require("zlib");
43664
43664
  var fd_slicer = require_fd_slicer();
43665
43665
  var crc32 = require_buffer_crc32();
@@ -43677,7 +43677,7 @@ var require_yauzl = __commonJS({
43677
43677
  exports.ZipFile = ZipFile;
43678
43678
  exports.Entry = Entry;
43679
43679
  exports.RandomAccessReader = RandomAccessReader;
43680
- function open(path9, options, callback) {
43680
+ function open(path10, options, callback) {
43681
43681
  if (typeof options === "function") {
43682
43682
  callback = options;
43683
43683
  options = null;
@@ -43689,10 +43689,10 @@ var require_yauzl = __commonJS({
43689
43689
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
43690
43690
  if (options.strictFileNames == null) options.strictFileNames = false;
43691
43691
  if (callback == null) callback = defaultCallback;
43692
- fs3.open(path9, "r", function(err, fd) {
43692
+ fs4.open(path10, "r", function(err, fd) {
43693
43693
  if (err) return callback(err);
43694
43694
  fromFd(fd, options, function(err2, zipfile) {
43695
- if (err2) fs3.close(fd, defaultCallback);
43695
+ if (err2) fs4.close(fd, defaultCallback);
43696
43696
  callback(err2, zipfile);
43697
43697
  });
43698
43698
  });
@@ -43709,7 +43709,7 @@ var require_yauzl = __commonJS({
43709
43709
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
43710
43710
  if (options.strictFileNames == null) options.strictFileNames = false;
43711
43711
  if (callback == null) callback = defaultCallback;
43712
- fs3.fstat(fd, function(err, stats) {
43712
+ fs4.fstat(fd, function(err, stats) {
43713
43713
  if (err) return callback(err);
43714
43714
  var reader = fd_slicer.createFromFd(fd, { autoClose: true });
43715
43715
  fromRandomAccessReader(reader, stats.size, options, callback);
@@ -44294,7 +44294,7 @@ var require_unzip = __commonJS({
44294
44294
  var yauzl = require_yauzl();
44295
44295
  var exfs = require_fs3();
44296
44296
  var fs_1 = __require("fs");
44297
- var path9 = __require("path");
44297
+ var path10 = __require("path");
44298
44298
  var util = require_util6();
44299
44299
  var cancelable_1 = require_cancelable();
44300
44300
  var EntryEvent = class {
@@ -44347,7 +44347,7 @@ var require_unzip = __commonJS({
44347
44347
  return this._symlinkFileNames;
44348
44348
  }
44349
44349
  getFilePath() {
44350
- return path9.join(this.targetFolder, this.decodeEntryFileName);
44350
+ return path10.join(this.targetFolder, this.decodeEntryFileName);
44351
44351
  }
44352
44352
  async isOutsideTargetFolder(tpath) {
44353
44353
  if (this.symlinkFileNames.length === 0) {
@@ -44506,7 +44506,7 @@ var require_unzip = __commonJS({
44506
44506
  }
44507
44507
  async extractEntry(zfile, entry, entryContext, token) {
44508
44508
  const filePath = entryContext.getFilePath();
44509
- const fileDir = path9.dirname(filePath);
44509
+ const fileDir = path10.dirname(filePath);
44510
44510
  await exfs.ensureFolder(fileDir);
44511
44511
  const outside = await entryContext.isOutsideTargetFolder(fileDir);
44512
44512
  if (outside) {
@@ -44582,8 +44582,8 @@ var require_unzip = __commonJS({
44582
44582
  linkType = "dir";
44583
44583
  } else {
44584
44584
  let targetPath = linkContent;
44585
- if (!path9.isAbsolute(linkContent)) {
44586
- targetPath = path9.join(path9.dirname(des), linkContent);
44585
+ if (!path10.isAbsolute(linkContent)) {
44586
+ targetPath = path10.join(path10.dirname(des), linkContent);
44587
44587
  }
44588
44588
  try {
44589
44589
  const stat = await util.stat(targetPath);
@@ -44745,8 +44745,8 @@ function writeFiles(postProcessOutputFilesResult) {
44745
44745
  if (postProcessOutputFilesResult.sourceMapDirectory !== postProcessOutputFilesResult.outputDirectory) {
44746
44746
  fs.mkdirSync(postProcessOutputFilesResult.sourceMapDirectory, { recursive: true });
44747
44747
  }
44748
- for (const path9 of Object.keys(postProcessOutputFilesResult.generatedFiles)) {
44749
- fs.writeFileSync(path9, postProcessOutputFilesResult.generatedFiles[path9]);
44748
+ for (const path10 of Object.keys(postProcessOutputFilesResult.generatedFiles)) {
44749
+ fs.writeFileSync(path10, postProcessOutputFilesResult.generatedFiles[path10]);
44750
44750
  }
44751
44751
  }
44752
44752
  function postProcessOutputFiles(options, buildResult) {
@@ -44771,7 +44771,8 @@ function bundleTask(options) {
44771
44771
  sourcemap: isRequiredToLinkJs ? "external" : options.sourcemap,
44772
44772
  external: options.external,
44773
44773
  write: !isRequiredToMakeChanges,
44774
- dropLabels: options.dropLabels
44774
+ dropLabels: options.dropLabels,
44775
+ alias: options.alias
44775
44776
  });
44776
44777
  if (buildResult.errors.length === 0) {
44777
44778
  if (isRequiredToMakeChanges) {
@@ -45943,17 +45944,17 @@ function requestLog(octokit) {
45943
45944
  octokit.log.debug("request", options);
45944
45945
  const start = Date.now();
45945
45946
  const requestOptions = octokit.request.endpoint.parse(options);
45946
- const path9 = requestOptions.url.replace(options.baseUrl, "");
45947
+ const path10 = requestOptions.url.replace(options.baseUrl, "");
45947
45948
  return request2(options).then((response) => {
45948
45949
  const requestId = response.headers["x-github-request-id"];
45949
45950
  octokit.log.info(
45950
- `${requestOptions.method} ${path9} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
45951
+ `${requestOptions.method} ${path10} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
45951
45952
  );
45952
45953
  return response;
45953
45954
  }).catch((error) => {
45954
45955
  const requestId = error.response?.headers["x-github-request-id"] || "UNKNOWN";
45955
45956
  octokit.log.error(
45956
- `${requestOptions.method} ${path9} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
45957
+ `${requestOptions.method} ${path10} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
45957
45958
  );
45958
45959
  throw error;
45959
45960
  });
@@ -48160,9 +48161,64 @@ var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRes
48160
48161
 
48161
48162
  // src/tasks/publishRelease.ts
48162
48163
  var import_archiver = __toESM(require_archiver());
48163
- import { createWriteStream, readFileSync, unlinkSync } from "node:fs";
48164
- import { readFile } from "node:fs/promises";
48165
- import { resolve as resolve3 } from "node:path";
48164
+ import fs3 from "node:fs";
48165
+ import path7 from "node:path";
48166
+ async function createFilesArtifactZip(artifact, releaseTag) {
48167
+ if (!artifact.files || artifact.files.length === 0) {
48168
+ throw new Error(`Must specify file paths to include in artifact, cannot create release artifact.`);
48169
+ }
48170
+ const releaseArchiveName = `${releaseTag}.zip`.replaceAll("/", "_").replaceAll("@", "");
48171
+ const outputPath = path7.resolve(`${releaseArchiveName}`);
48172
+ const output = fs3.createWriteStream(outputPath);
48173
+ try {
48174
+ const archive = (0, import_archiver.default)("zip", { zlib: { level: 9 } });
48175
+ archive.on("error", (err) => {
48176
+ throw new Error(`Failed to create archive for release: ${err}`);
48177
+ });
48178
+ archive.pipe(output);
48179
+ for (const filePath of artifact.files) {
48180
+ const resolvedFilePath = path7.resolve(filePath);
48181
+ if (!fs3.existsSync(resolvedFilePath) || fs3.lstatSync(resolvedFilePath).isDirectory() && fs3.readdirSync(resolvedFilePath).length === 0) {
48182
+ throw new Error(
48183
+ `Path '${resolvedFilePath}' does not exist or is an empty directory, cannot create release artifact.`
48184
+ );
48185
+ }
48186
+ if (fs3.lstatSync(resolvedFilePath).isDirectory()) {
48187
+ archive.directory(
48188
+ resolvedFilePath,
48189
+ artifact.files.length > 1 ? path7.basename(resolvedFilePath) : false
48190
+ );
48191
+ } else {
48192
+ archive.file(resolvedFilePath, { name: path7.basename(resolvedFilePath) });
48193
+ }
48194
+ }
48195
+ await archive.finalize();
48196
+ output.close();
48197
+ return outputPath;
48198
+ } catch (err) {
48199
+ fs3.unlinkSync(outputPath);
48200
+ throw err;
48201
+ }
48202
+ }
48203
+ async function uploadArtifact(archivePath, repoOwner, repoName, releaseId, octokit) {
48204
+ const data = fs3.readFileSync(archivePath);
48205
+ const response = await octokit.rest.repos.uploadReleaseAsset({
48206
+ mediaType: {
48207
+ format: "application/zip"
48208
+ },
48209
+ owner: repoOwner,
48210
+ repo: repoName,
48211
+ release_id: releaseId,
48212
+ data,
48213
+ name: path7.basename(archivePath),
48214
+ headers: {
48215
+ "X-GitHub-Api-Version": "2022-11-28"
48216
+ }
48217
+ });
48218
+ if (response.status !== 201) {
48219
+ throw new Error(`Failed to create release. Status: ${response.status}`);
48220
+ }
48221
+ }
48166
48222
  function publishReleaseTask(config) {
48167
48223
  return async () => {
48168
48224
  const token = config.token ?? process.env.REPO_PAT;
@@ -48171,10 +48227,12 @@ function publishReleaseTask(config) {
48171
48227
  "No repo token is available, pass it in via configuration or set the REPO_PAT environment variable. Unable to create release."
48172
48228
  );
48173
48229
  }
48174
- const packageJson = JSON.parse(readFileSync("./package.json", "utf-8"));
48230
+ const packageJson = JSON.parse(fs3.readFileSync("./package.json", "utf-8"));
48175
48231
  const publishedVersion = packageJson["version"];
48176
48232
  const name = packageJson["name"];
48177
- const changelog = JSON.parse(readFileSync("./CHANGELOG.json", "utf-8"));
48233
+ const message = config.message;
48234
+ const artifact = config.artifact ?? { files: ["dist"], sourceFormat: "files" };
48235
+ const changelog = JSON.parse(fs3.readFileSync("./CHANGELOG.json", "utf-8"));
48178
48236
  const firstEntry = changelog["entries"][0];
48179
48237
  if (!firstEntry) {
48180
48238
  throw new Error(
@@ -48182,7 +48240,7 @@ function publishReleaseTask(config) {
48182
48240
  );
48183
48241
  }
48184
48242
  const comments = firstEntry["comments"];
48185
- let body = `${config.message}
48243
+ let body = `${message}
48186
48244
 
48187
48245
  # Changes
48188
48246
 
@@ -48214,37 +48272,19 @@ ${entry.comment}`).join("\n")}
48214
48272
  throw new Error(`Failed to create release. Status: ${response.status}`);
48215
48273
  }
48216
48274
  const releaseId = response.data.id;
48217
- const releaseFile = `${tagName}.zip`.replaceAll("/", "_").replaceAll("@", "");
48218
- const outputPath = resolve3(`${releaseFile}`);
48219
- const output = createWriteStream(outputPath);
48220
- try {
48221
- const archive = (0, import_archiver.default)("zip", { zlib: { level: 9 } });
48222
- archive.on("error", function(err) {
48223
- throw new Error(`Failed to create archive for release: ${err}`);
48224
- });
48225
- archive.pipe(output);
48226
- archive.glob("**/*", { cwd: resolve3("dist") });
48227
- await archive.finalize();
48228
- output.close();
48229
- const data = await readFile(outputPath);
48230
- const response2 = await octokit.rest.repos.uploadReleaseAsset({
48231
- mediaType: {
48232
- format: "application/zip"
48233
- },
48234
- owner: config.repoOwner,
48235
- repo: config.repoName,
48236
- release_id: releaseId,
48237
- data,
48238
- name: releaseFile,
48239
- headers: {
48240
- "X-GitHub-Api-Version": "2022-11-28"
48241
- }
48242
- });
48243
- if (response2.status !== 201) {
48244
- throw new Error(`Failed to create release. Status: ${response2.status}`);
48275
+ if (artifact.sourceFormat === "files") {
48276
+ const artifactPath = await createFilesArtifactZip(artifact, tagName);
48277
+ await uploadArtifact(artifactPath, config.repoOwner, config.repoName, releaseId, octokit);
48278
+ fs3.unlinkSync(artifactPath);
48279
+ } else if (artifact.sourceFormat === "archive") {
48280
+ if (!artifact.path) {
48281
+ throw new Error("Must specify path of the artifact archive file, cannot create release artifact.");
48282
+ }
48283
+ const resolvedArtifactPath = path7.resolve(artifact.path);
48284
+ if (!fs3.existsSync(resolvedArtifactPath)) {
48285
+ throw new Error(`Path ${resolvedArtifactPath} does not exist, cannot create release artifact.`);
48245
48286
  }
48246
- } finally {
48247
- unlinkSync(outputPath);
48287
+ await uploadArtifact(resolvedArtifactPath, config.repoOwner, config.repoName, releaseId, octokit);
48248
48288
  }
48249
48289
  };
48250
48290
  }
@@ -48267,9 +48307,9 @@ function vitestTask(options = {}) {
48267
48307
  // src/tasks/updateWorld.ts
48268
48308
  import { condition, series as series2, task as task2 } from "just-scripts";
48269
48309
  var import_node_core_library2 = __toESM(require_lib2());
48270
- import path7 from "path";
48310
+ import path8 from "path";
48271
48311
  function updateWorldTask(params) {
48272
- const targetWorldPath = path7.resolve(getTargetWorldPath());
48312
+ const targetWorldPath = path8.resolve(getTargetWorldPath());
48273
48313
  task2("clean_localmc_world_backup", cleanTask([params.backupPath]));
48274
48314
  task2("backup_localmc_world", () => copyFiles([targetWorldPath], params.backupPath));
48275
48315
  task2("clean_localmc_world", cleanTask([targetWorldPath]));
@@ -48333,18 +48373,18 @@ function watchTask(globs, taskFunction) {
48333
48373
  // src/tasks/zip.ts
48334
48374
  var import_node_core_library3 = __toESM(require_lib2());
48335
48375
  var import_zip_lib = __toESM(require_lib4());
48336
- import path8 from "path";
48376
+ import path9 from "path";
48337
48377
  import { parallel, series as series4, task as task4 } from "just-scripts";
48338
48378
  function addContentsToZip(zipContents, zip) {
48339
48379
  for (const content of zipContents) {
48340
48380
  for (const originPath of content.contents) {
48341
- const inputPath = path8.resolve(originPath);
48381
+ const inputPath = path9.resolve(originPath);
48342
48382
  const pathStats = import_node_core_library3.FileSystem.getLinkStatistics(inputPath);
48343
48383
  if (pathStats.isDirectory()) {
48344
48384
  console.log(`Adding folder ${inputPath} to package`);
48345
48385
  zip.addFolder(inputPath, content.targetPath);
48346
48386
  } else {
48347
- const metadataPath = content.targetPath ? path8.join(content.targetPath, path8.parse(inputPath).base) : void 0;
48387
+ const metadataPath = content.targetPath ? path9.join(content.targetPath, path9.parse(inputPath).base) : void 0;
48348
48388
  console.log(`Adding file ${inputPath} to package`);
48349
48389
  zip.addFile(inputPath, metadataPath);
48350
48390
  }
@@ -48380,10 +48420,10 @@ function zipTask(outputFile, zipContents) {
48380
48420
  };
48381
48421
  }
48382
48422
  function mcaddonTask(params) {
48383
- const targetFolder = path8.parse(params.outputFile).dir;
48384
- const outputFileName = path8.parse(params.outputFile).name;
48385
- const behaviorPackFile = path8.join(targetFolder, `${outputFileName}_bp.mcpack`);
48386
- const resourcePackFile = path8.join(targetFolder, `${outputFileName}_rp.mcpack`);
48423
+ const targetFolder = path9.parse(params.outputFile).dir;
48424
+ const outputFileName = path9.parse(params.outputFile).name;
48425
+ const behaviorPackFile = path9.join(targetFolder, `${outputFileName}_bp.mcpack`);
48426
+ const resourcePackFile = path9.join(targetFolder, `${outputFileName}_rp.mcpack`);
48387
48427
  const mcaddonContents = { contents: [behaviorPackFile] };
48388
48428
  if (params.copyToResourcePacks && params.copyToResourcePacks.length > 0) {
48389
48429
  mcaddonContents.contents.push(resourcePackFile);