piral-cli 1.11.2-beta.767b0ab → 1.11.2-beta.b677bde

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/external/index.js +1215 -1170
  2. package/package.json +2 -2
@@ -724,7 +724,7 @@ var require_stringify = __commonJS({
724
724
  }
725
725
  } else {
726
726
  braces = "{}";
727
- var fn2 = function(key) {
727
+ var fn = function(key) {
728
728
  var t = _stringify(object[key], options, recursiveLvl + 1, key);
729
729
  if (t !== void 0) {
730
730
  t = _stringify_key(key) + ":" + (options.indent ? " " : "") + t + ",";
@@ -735,12 +735,12 @@ var require_stringify = __commonJS({
735
735
  if (Array.isArray(options.replacer)) {
736
736
  for (var i = 0; i < options.replacer.length; i++)
737
737
  if (hasOwnProperty2.call(object, options.replacer[i]))
738
- fn2(options.replacer[i]);
738
+ fn(options.replacer[i]);
739
739
  } else {
740
740
  var keys = Object.keys(object);
741
741
  if (options.sort_keys)
742
742
  keys = keys.sort(typeof options.sort_keys === "function" ? options.sort_keys : void 0);
743
- keys.forEach(fn2);
743
+ keys.forEach(fn);
744
744
  }
745
745
  }
746
746
  len -= 2;
@@ -3855,15 +3855,15 @@ var require_route = __commonJS({
3855
3855
  }
3856
3856
  function wrapConversion(toModel, graph) {
3857
3857
  const path3 = [graph[toModel].parent, toModel];
3858
- let fn2 = conversions[graph[toModel].parent][toModel];
3858
+ let fn = conversions[graph[toModel].parent][toModel];
3859
3859
  let cur = graph[toModel].parent;
3860
3860
  while (graph[cur].parent) {
3861
3861
  path3.unshift(graph[cur].parent);
3862
- fn2 = link(conversions[graph[cur].parent][cur], fn2);
3862
+ fn = link(conversions[graph[cur].parent][cur], fn);
3863
3863
  cur = graph[cur].parent;
3864
3864
  }
3865
- fn2.conversion = path3;
3866
- return fn2;
3865
+ fn.conversion = path3;
3866
+ return fn;
3867
3867
  }
3868
3868
  module2.exports = function(fromModel) {
3869
3869
  const graph = deriveBFS(fromModel);
@@ -3889,7 +3889,7 @@ var require_color_convert = __commonJS({
3889
3889
  var route = require_route();
3890
3890
  var convert = {};
3891
3891
  var models = Object.keys(conversions);
3892
- function wrapRaw(fn2) {
3892
+ function wrapRaw(fn) {
3893
3893
  const wrappedFn = function(...args) {
3894
3894
  const arg0 = args[0];
3895
3895
  if (arg0 === void 0 || arg0 === null) {
@@ -3898,14 +3898,14 @@ var require_color_convert = __commonJS({
3898
3898
  if (arg0.length > 1) {
3899
3899
  args = arg0;
3900
3900
  }
3901
- return fn2(args);
3901
+ return fn(args);
3902
3902
  };
3903
- if ("conversion" in fn2) {
3904
- wrappedFn.conversion = fn2.conversion;
3903
+ if ("conversion" in fn) {
3904
+ wrappedFn.conversion = fn.conversion;
3905
3905
  }
3906
3906
  return wrappedFn;
3907
3907
  }
3908
- function wrapRounded(fn2) {
3908
+ function wrapRounded(fn) {
3909
3909
  const wrappedFn = function(...args) {
3910
3910
  const arg0 = args[0];
3911
3911
  if (arg0 === void 0 || arg0 === null) {
@@ -3914,7 +3914,7 @@ var require_color_convert = __commonJS({
3914
3914
  if (arg0.length > 1) {
3915
3915
  args = arg0;
3916
3916
  }
3917
- const result = fn2(args);
3917
+ const result = fn(args);
3918
3918
  if (typeof result === "object") {
3919
3919
  for (let len = result.length, i = 0; i < len; i++) {
3920
3920
  result[i] = Math.round(result[i]);
@@ -3922,8 +3922,8 @@ var require_color_convert = __commonJS({
3922
3922
  }
3923
3923
  return result;
3924
3924
  };
3925
- if ("conversion" in fn2) {
3926
- wrappedFn.conversion = fn2.conversion;
3925
+ if ("conversion" in fn) {
3926
+ wrappedFn.conversion = fn.conversion;
3927
3927
  }
3928
3928
  return wrappedFn;
3929
3929
  }
@@ -3934,9 +3934,9 @@ var require_color_convert = __commonJS({
3934
3934
  const routes = route(fromModel);
3935
3935
  const routeModels = Object.keys(routes);
3936
3936
  routeModels.forEach((toModel) => {
3937
- const fn2 = routes[toModel];
3938
- convert[fromModel][toModel] = wrapRounded(fn2);
3939
- convert[fromModel][toModel].raw = wrapRaw(fn2);
3937
+ const fn = routes[toModel];
3938
+ convert[fromModel][toModel] = wrapRounded(fn);
3939
+ convert[fromModel][toModel].raw = wrapRaw(fn);
3940
3940
  });
3941
3941
  });
3942
3942
  module2.exports = convert;
@@ -3947,16 +3947,16 @@ var require_color_convert = __commonJS({
3947
3947
  var require_ansi_styles = __commonJS({
3948
3948
  "../../../node_modules/ansi-styles/index.js"(exports2, module2) {
3949
3949
  "use strict";
3950
- var wrapAnsi164 = (fn2, offset) => (...args) => {
3951
- const code = fn2(...args);
3950
+ var wrapAnsi164 = (fn, offset) => (...args) => {
3951
+ const code = fn(...args);
3952
3952
  return `\x1B[${code + offset}m`;
3953
3953
  };
3954
- var wrapAnsi2564 = (fn2, offset) => (...args) => {
3955
- const code = fn2(...args);
3954
+ var wrapAnsi2564 = (fn, offset) => (...args) => {
3955
+ const code = fn(...args);
3956
3956
  return `\x1B[${38 + offset};5;${code}m`;
3957
3957
  };
3958
- var wrapAnsi16m4 = (fn2, offset) => (...args) => {
3959
- const rgb = fn2(...args);
3958
+ var wrapAnsi16m4 = (fn, offset) => (...args) => {
3959
+ const rgb = fn(...args);
3960
3960
  return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
3961
3961
  };
3962
3962
  var ansi2ansi = (n) => n;
@@ -4863,8 +4863,8 @@ var require_usage = __commonJS({
4863
4863
  const emit = typeof level === "function" ? level : logger[level];
4864
4864
  emit(self2.help());
4865
4865
  };
4866
- self2.functionDescription = (fn2) => {
4867
- const description = fn2.name ? decamelize(fn2.name, "-") : __("generated-value");
4866
+ self2.functionDescription = (fn) => {
4867
+ const description = fn.name ? decamelize(fn.name, "-") : __("generated-value");
4868
4868
  return ["(", description, ")"].join("");
4869
4869
  };
4870
4870
  self2.stringifiedValues = function stringifiedValues(values, separator) {
@@ -5131,8 +5131,8 @@ var require_completion = __commonJS({
5131
5131
  return script.replace(/{{app_path}}/g, $0);
5132
5132
  };
5133
5133
  let completionFunction = null;
5134
- self2.registerFunction = (fn2) => {
5135
- completionFunction = fn2;
5134
+ self2.registerFunction = (fn) => {
5135
+ completionFunction = fn;
5136
5136
  };
5137
5137
  return self2;
5138
5138
  }
@@ -5726,8 +5726,8 @@ var require_y18n = __commonJS({
5726
5726
  var require_p_try = __commonJS({
5727
5727
  "../../../node_modules/p-try/index.js"(exports2, module2) {
5728
5728
  "use strict";
5729
- var pTry = (fn2, ...arguments_) => new Promise((resolve6) => {
5730
- resolve6(fn2(...arguments_));
5729
+ var pTry = (fn, ...arguments_) => new Promise((resolve6) => {
5730
+ resolve6(fn(...arguments_));
5731
5731
  });
5732
5732
  module2.exports = pTry;
5733
5733
  module2.exports.default = pTry;
@@ -5751,20 +5751,20 @@ var require_p_limit = __commonJS({
5751
5751
  queue.shift()();
5752
5752
  }
5753
5753
  };
5754
- const run = (fn2, resolve6, ...args) => {
5754
+ const run = (fn, resolve6, ...args) => {
5755
5755
  activeCount++;
5756
- const result = pTry(fn2, ...args);
5756
+ const result = pTry(fn, ...args);
5757
5757
  resolve6(result);
5758
5758
  result.then(next, next);
5759
5759
  };
5760
- const enqueue = (fn2, resolve6, ...args) => {
5760
+ const enqueue = (fn, resolve6, ...args) => {
5761
5761
  if (activeCount < concurrency) {
5762
- run(fn2, resolve6, ...args);
5762
+ run(fn, resolve6, ...args);
5763
5763
  } else {
5764
- queue.push(run.bind(null, fn2, resolve6, ...args));
5764
+ queue.push(run.bind(null, fn, resolve6, ...args));
5765
5765
  }
5766
5766
  };
5767
- const generator = (fn2, ...args) => new Promise((resolve6) => enqueue(fn2, resolve6, ...args));
5767
+ const generator = (fn, ...args) => new Promise((resolve6) => enqueue(fn, resolve6, ...args));
5768
5768
  Object.defineProperties(generator, {
5769
5769
  activeCount: {
5770
5770
  get: () => activeCount
@@ -6849,10 +6849,10 @@ var require_yargs = __commonJS({
6849
6849
  };
6850
6850
  self2.getExitProcess = () => exitProcess;
6851
6851
  var completionCommand = null;
6852
- self2.completion = function(cmd, desc, fn2) {
6853
- argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn2], arguments.length);
6852
+ self2.completion = function(cmd, desc, fn) {
6853
+ argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn], arguments.length);
6854
6854
  if (typeof desc === "function") {
6855
- fn2 = desc;
6855
+ fn = desc;
6856
6856
  desc = void 0;
6857
6857
  }
6858
6858
  completionCommand = cmd || completionCommand || "completion";
@@ -6860,8 +6860,8 @@ var require_yargs = __commonJS({
6860
6860
  desc = "generate completion script";
6861
6861
  }
6862
6862
  self2.command(completionCommand, desc);
6863
- if (fn2)
6864
- completion.registerFunction(fn2);
6863
+ if (fn)
6864
+ completion.registerFunction(fn);
6865
6865
  return self2;
6866
6866
  };
6867
6867
  self2.showCompletionScript = function($0, cmd) {
@@ -7576,7 +7576,7 @@ var require_brace_expansion = __commonJS({
7576
7576
  }
7577
7577
  }
7578
7578
  }
7579
- var N;
7579
+ var N2;
7580
7580
  if (isSequence) {
7581
7581
  var x = numeric2(n[0]);
7582
7582
  var y2 = numeric2(n[1]);
@@ -7589,7 +7589,7 @@ var require_brace_expansion = __commonJS({
7589
7589
  test2 = gte2;
7590
7590
  }
7591
7591
  var pad = n.some(isPadded2);
7592
- N = [];
7592
+ N2 = [];
7593
7593
  for (var i = x; test2(i, y2); i += incr) {
7594
7594
  var c;
7595
7595
  if (isAlphaSequence) {
@@ -7609,17 +7609,17 @@ var require_brace_expansion = __commonJS({
7609
7609
  }
7610
7610
  }
7611
7611
  }
7612
- N.push(c);
7612
+ N2.push(c);
7613
7613
  }
7614
7614
  } else {
7615
- N = [];
7615
+ N2 = [];
7616
7616
  for (var j2 = 0; j2 < n.length; j2++) {
7617
- N.push.apply(N, expand2(n[j2], false));
7617
+ N2.push.apply(N2, expand2(n[j2], false));
7618
7618
  }
7619
7619
  }
7620
- for (var j2 = 0; j2 < N.length; j2++) {
7620
+ for (var j2 = 0; j2 < N2.length; j2++) {
7621
7621
  for (var k2 = 0; k2 < post.length; k2++) {
7622
- var expansion = pre + N[j2] + post[k2];
7622
+ var expansion = pre + N2[j2] + post[k2];
7623
7623
  if (!isTop || isSequence || expansion)
7624
7624
  expansions.push(expansion);
7625
7625
  }
@@ -8789,12 +8789,12 @@ var require_sync = __commonJS({
8789
8789
  var require_wrappy = __commonJS({
8790
8790
  "../../../node_modules/wrappy/wrappy.js"(exports2, module2) {
8791
8791
  module2.exports = wrappy;
8792
- function wrappy(fn2, cb) {
8793
- if (fn2 && cb) return wrappy(fn2)(cb);
8794
- if (typeof fn2 !== "function")
8792
+ function wrappy(fn, cb) {
8793
+ if (fn && cb) return wrappy(fn)(cb);
8794
+ if (typeof fn !== "function")
8795
8795
  throw new TypeError("need wrapper function");
8796
- Object.keys(fn2).forEach(function(k2) {
8797
- wrapper[k2] = fn2[k2];
8796
+ Object.keys(fn).forEach(function(k2) {
8797
+ wrapper[k2] = fn[k2];
8798
8798
  });
8799
8799
  return wrapper;
8800
8800
  function wrapper() {
@@ -8802,7 +8802,7 @@ var require_wrappy = __commonJS({
8802
8802
  for (var i = 0; i < args.length; i++) {
8803
8803
  args[i] = arguments[i];
8804
8804
  }
8805
- var ret = fn2.apply(this, args);
8805
+ var ret = fn.apply(this, args);
8806
8806
  var cb2 = args[args.length - 1];
8807
8807
  if (typeof ret === "function" && ret !== cb2) {
8808
8808
  Object.keys(cb2).forEach(function(k2) {
@@ -8835,23 +8835,23 @@ var require_once = __commonJS({
8835
8835
  configurable: true
8836
8836
  });
8837
8837
  });
8838
- function once(fn2) {
8838
+ function once(fn) {
8839
8839
  var f2 = function() {
8840
8840
  if (f2.called) return f2.value;
8841
8841
  f2.called = true;
8842
- return f2.value = fn2.apply(this, arguments);
8842
+ return f2.value = fn.apply(this, arguments);
8843
8843
  };
8844
8844
  f2.called = false;
8845
8845
  return f2;
8846
8846
  }
8847
- function onceStrict(fn2) {
8847
+ function onceStrict(fn) {
8848
8848
  var f2 = function() {
8849
8849
  if (f2.called)
8850
8850
  throw new Error(f2.onceError);
8851
8851
  f2.called = true;
8852
- return f2.value = fn2.apply(this, arguments);
8852
+ return f2.value = fn.apply(this, arguments);
8853
8853
  };
8854
- var name = fn2.name || "Function wrapped with `once`";
8854
+ var name = fn.name || "Function wrapped with `once`";
8855
8855
  f2.onceError = name + " shouldn't be called more than once";
8856
8856
  f2.called = false;
8857
8857
  return f2;
@@ -18347,12 +18347,12 @@ var require_mime_types = __commonJS({
18347
18347
  var require_defer = __commonJS({
18348
18348
  "../../../node_modules/asynckit/lib/defer.js"(exports2, module2) {
18349
18349
  module2.exports = defer3;
18350
- function defer3(fn2) {
18350
+ function defer3(fn) {
18351
18351
  var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
18352
18352
  if (nextTick) {
18353
- nextTick(fn2);
18353
+ nextTick(fn);
18354
18354
  } else {
18355
- setTimeout(fn2, 0);
18355
+ setTimeout(fn, 0);
18356
18356
  }
18357
18357
  }
18358
18358
  }
@@ -19178,9 +19178,9 @@ var require_get_intrinsic = __commonJS({
19178
19178
  } else if (name === "%AsyncGeneratorFunction%") {
19179
19179
  value = getEvalledConstructor("async function* () {}");
19180
19180
  } else if (name === "%AsyncGenerator%") {
19181
- var fn2 = doEval2("%AsyncGeneratorFunction%");
19182
- if (fn2) {
19183
- value = fn2.prototype;
19181
+ var fn = doEval2("%AsyncGeneratorFunction%");
19182
+ if (fn) {
19183
+ value = fn.prototype;
19184
19184
  }
19185
19185
  } else if (name === "%AsyncIteratorPrototype%") {
19186
19186
  var gen = doEval2("%AsyncGenerator%");
@@ -20501,10 +20501,10 @@ var require_promisify = __commonJS({
20501
20501
  "../../../node_modules/axios/node_modules/agent-base/dist/src/promisify.js"(exports2) {
20502
20502
  "use strict";
20503
20503
  Object.defineProperty(exports2, "__esModule", { value: true });
20504
- function promisify(fn2) {
20504
+ function promisify(fn) {
20505
20505
  return function(req, opts) {
20506
20506
  return new Promise((resolve6, reject) => {
20507
- fn2.call(this, req, opts, (err, rtn) => {
20507
+ fn.call(this, req, opts, (err, rtn) => {
20508
20508
  if (err) {
20509
20509
  reject(err);
20510
20510
  } else {
@@ -20581,7 +20581,7 @@ var require_src2 = __commonJS({
20581
20581
  set protocol(v2) {
20582
20582
  this.explicitProtocol = v2;
20583
20583
  }
20584
- callback(req, opts, fn2) {
20584
+ callback(req, opts, fn) {
20585
20585
  throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
20586
20586
  }
20587
20587
  /**
@@ -32072,8 +32072,8 @@ var require_Subscriber = __commonJS({
32072
32072
  })(Subscription_1.Subscription);
32073
32073
  exports2.Subscriber = Subscriber;
32074
32074
  var _bind = Function.prototype.bind;
32075
- function bind2(fn2, thisArg) {
32076
- return _bind.call(fn2, thisArg);
32075
+ function bind2(fn, thisArg) {
32076
+ return _bind.call(fn, thisArg);
32077
32077
  }
32078
32078
  var ConsumerObserver = (function() {
32079
32079
  function ConsumerObserver2(partialObserver) {
@@ -32219,8 +32219,8 @@ var require_pipe = __commonJS({
32219
32219
  return fns[0];
32220
32220
  }
32221
32221
  return function piped(input) {
32222
- return fns.reduce(function(prev, fn2) {
32223
- return fn2(prev);
32222
+ return fns.reduce(function(prev, fn) {
32223
+ return fn(prev);
32224
32224
  }, input);
32225
32225
  };
32226
32226
  }
@@ -35376,12 +35376,12 @@ var require_mapOneOrManyArgs = __commonJS({
35376
35376
  exports2.mapOneOrManyArgs = void 0;
35377
35377
  var map_1 = require_map();
35378
35378
  var isArray2 = Array.isArray;
35379
- function callOrApply(fn2, args) {
35380
- return isArray2(args) ? fn2.apply(void 0, __spreadArray([], __read(args))) : fn2(args);
35379
+ function callOrApply(fn, args) {
35380
+ return isArray2(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
35381
35381
  }
35382
- function mapOneOrManyArgs(fn2) {
35382
+ function mapOneOrManyArgs(fn) {
35383
35383
  return map_1.map(function(args) {
35384
- return callOrApply(fn2, args);
35384
+ return callOrApply(fn, args);
35385
35385
  });
35386
35386
  }
35387
35387
  exports2.mapOneOrManyArgs = mapOneOrManyArgs;
@@ -39171,16 +39171,16 @@ var require_share = __commonJS({
39171
39171
  };
39172
39172
  }
39173
39173
  exports2.share = share;
39174
- function handleReset(reset, on2) {
39174
+ function handleReset(reset, on) {
39175
39175
  var args = [];
39176
39176
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
39177
39177
  args[_i2 - 2] = arguments[_i2];
39178
39178
  }
39179
- if (on2 === true) {
39179
+ if (on === true) {
39180
39180
  reset();
39181
39181
  return;
39182
39182
  }
39183
- if (on2 === false) {
39183
+ if (on === false) {
39184
39184
  return;
39185
39185
  }
39186
39186
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -39189,7 +39189,7 @@ var require_share = __commonJS({
39189
39189
  reset();
39190
39190
  }
39191
39191
  });
39192
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
39192
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
39193
39193
  }
39194
39194
  }
39195
39195
  });
@@ -43465,16 +43465,16 @@ var require_graceful_fs = __commonJS({
43465
43465
  if (fs3[gracefulQueue].length === 0)
43466
43466
  return;
43467
43467
  var elem = fs3[gracefulQueue].shift();
43468
- var fn2 = elem[0];
43468
+ var fn = elem[0];
43469
43469
  var args = elem[1];
43470
43470
  var err = elem[2];
43471
43471
  var startTime = elem[3];
43472
43472
  var lastTime = elem[4];
43473
43473
  if (startTime === void 0) {
43474
- debug("RETRY", fn2.name, args);
43475
- fn2.apply(null, args);
43474
+ debug("RETRY", fn.name, args);
43475
+ fn.apply(null, args);
43476
43476
  } else if (Date.now() - startTime >= 6e4) {
43477
- debug("TIMEOUT", fn2.name, args);
43477
+ debug("TIMEOUT", fn.name, args);
43478
43478
  var cb = args.pop();
43479
43479
  if (typeof cb === "function")
43480
43480
  cb.call(null, err);
@@ -43483,8 +43483,8 @@ var require_graceful_fs = __commonJS({
43483
43483
  var sinceStart = Math.max(lastTime - startTime, 1);
43484
43484
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
43485
43485
  if (sinceAttempt >= desiredDelay) {
43486
- debug("RETRY", fn2.name, args);
43487
- fn2.apply(null, args.concat([startTime]));
43486
+ debug("RETRY", fn.name, args);
43487
+ fn.apply(null, args.concat([startTime]));
43488
43488
  } else {
43489
43489
  fs3[gracefulQueue].push(elem);
43490
43490
  }
@@ -43500,7 +43500,7 @@ var require_graceful_fs = __commonJS({
43500
43500
  var require_memoize = __commonJS({
43501
43501
  "../../../node_modules/enhanced-resolve/lib/util/memoize.js"(exports2, module2) {
43502
43502
  "use strict";
43503
- var memoize = (fn2) => {
43503
+ var memoize = (fn) => {
43504
43504
  let cache = false;
43505
43505
  let result;
43506
43506
  return () => {
@@ -43510,9 +43510,9 @@ var require_memoize = __commonJS({
43510
43510
  result
43511
43511
  );
43512
43512
  }
43513
- result = fn2();
43513
+ result = fn();
43514
43514
  cache = true;
43515
- fn2 = void 0;
43515
+ fn = void 0;
43516
43516
  return (
43517
43517
  /** @type {T} */
43518
43518
  result
@@ -46345,7 +46345,7 @@ var require_Hook = __commonJS({
46345
46345
  type
46346
46346
  });
46347
46347
  }
46348
- _tap(type, options, fn2) {
46348
+ _tap(type, options, fn) {
46349
46349
  if (typeof options === "string") {
46350
46350
  options = {
46351
46351
  name: options.trim()
@@ -46359,18 +46359,18 @@ var require_Hook = __commonJS({
46359
46359
  if (typeof options.context !== "undefined") {
46360
46360
  deprecateContext();
46361
46361
  }
46362
- options = Object.assign({ type, fn: fn2 }, options);
46362
+ options = Object.assign({ type, fn }, options);
46363
46363
  options = this._runRegisterInterceptors(options);
46364
46364
  this._insert(options);
46365
46365
  }
46366
- tap(options, fn2) {
46367
- this._tap("sync", options, fn2);
46366
+ tap(options, fn) {
46367
+ this._tap("sync", options, fn);
46368
46368
  }
46369
- tapAsync(options, fn2) {
46370
- this._tap("async", options, fn2);
46369
+ tapAsync(options, fn) {
46370
+ this._tap("async", options, fn);
46371
46371
  }
46372
- tapPromise(options, fn2) {
46373
- this._tap("promise", options, fn2);
46372
+ tapPromise(options, fn) {
46373
+ this._tap("promise", options, fn);
46374
46374
  }
46375
46375
  _runRegisterInterceptors(options) {
46376
46376
  for (const interceptor of this.interceptors) {
@@ -46387,9 +46387,9 @@ var require_Hook = __commonJS({
46387
46387
  const mergeOptions = (opt) => Object.assign({}, options, typeof opt === "string" ? { name: opt } : opt);
46388
46388
  return {
46389
46389
  name: this.name,
46390
- tap: (opt, fn2) => this.tap(mergeOptions(opt), fn2),
46391
- tapAsync: (opt, fn2) => this.tapAsync(mergeOptions(opt), fn2),
46392
- tapPromise: (opt, fn2) => this.tapPromise(mergeOptions(opt), fn2),
46390
+ tap: (opt, fn) => this.tap(mergeOptions(opt), fn),
46391
+ tapAsync: (opt, fn) => this.tapAsync(mergeOptions(opt), fn),
46392
+ tapPromise: (opt, fn) => this.tapPromise(mergeOptions(opt), fn),
46393
46393
  intercept: (interceptor) => this.intercept(interceptor),
46394
46394
  isUsed: () => this.isUsed(),
46395
46395
  withOptions: (opt) => this.withOptions(mergeOptions(opt))
@@ -46465,10 +46465,10 @@ var require_HookCodeFactory = __commonJS({
46465
46465
  }
46466
46466
  create(options) {
46467
46467
  this.init(options);
46468
- let fn2;
46468
+ let fn;
46469
46469
  switch (this.options.type) {
46470
46470
  case "sync":
46471
- fn2 = new Function(
46471
+ fn = new Function(
46472
46472
  this.args(),
46473
46473
  `"use strict";
46474
46474
  ${this.header()}${this.contentWithInterceptors({
@@ -46483,7 +46483,7 @@ ${this.header()}${this.contentWithInterceptors({
46483
46483
  );
46484
46484
  break;
46485
46485
  case "async":
46486
- fn2 = new Function(
46486
+ fn = new Function(
46487
46487
  this.args({
46488
46488
  after: "_callback"
46489
46489
  }),
@@ -46527,12 +46527,12 @@ ${this.header()}${this.contentWithInterceptors({
46527
46527
  code += "_sync = false;\n";
46528
46528
  }
46529
46529
  code += "}));\n";
46530
- fn2 = new Function(this.args(), code);
46530
+ fn = new Function(this.args(), code);
46531
46531
  break;
46532
46532
  }
46533
46533
  }
46534
46534
  this.deinit();
46535
- return fn2;
46535
+ return fn;
46536
46536
  }
46537
46537
  setup(instance, options) {
46538
46538
  instance._x = options.taps.map((t) => t.fn);
@@ -47211,14 +47211,14 @@ var require_HookMap = __commonJS({
47211
47211
  );
47212
47212
  }
47213
47213
  };
47214
- HookMap.prototype.tap = util4.deprecate(function tap(key, options, fn2) {
47215
- return this.for(key).tap(options, fn2);
47214
+ HookMap.prototype.tap = util4.deprecate(function tap(key, options, fn) {
47215
+ return this.for(key).tap(options, fn);
47216
47216
  }, "HookMap#tap(key,\u2026) is deprecated. Use HookMap#for(key).tap(\u2026) instead.");
47217
- HookMap.prototype.tapAsync = util4.deprecate(function tapAsync(key, options, fn2) {
47218
- return this.for(key).tapAsync(options, fn2);
47217
+ HookMap.prototype.tapAsync = util4.deprecate(function tapAsync(key, options, fn) {
47218
+ return this.for(key).tapAsync(options, fn);
47219
47219
  }, "HookMap#tapAsync(key,\u2026) is deprecated. Use HookMap#for(key).tapAsync(\u2026) instead.");
47220
- HookMap.prototype.tapPromise = util4.deprecate(function tapPromise(key, options, fn2) {
47221
- return this.for(key).tapPromise(options, fn2);
47220
+ HookMap.prototype.tapPromise = util4.deprecate(function tapPromise(key, options, fn) {
47221
+ return this.for(key).tapPromise(options, fn);
47222
47222
  }, "HookMap#tapPromise(key,\u2026) is deprecated. Use HookMap#for(key).tapPromise(\u2026) instead.");
47223
47223
  module2.exports = HookMap;
47224
47224
  }
@@ -47233,19 +47233,19 @@ var require_MultiHook = __commonJS({
47233
47233
  this.hooks = hooks;
47234
47234
  this.name = name;
47235
47235
  }
47236
- tap(options, fn2) {
47236
+ tap(options, fn) {
47237
47237
  for (const hook of this.hooks) {
47238
- hook.tap(options, fn2);
47238
+ hook.tap(options, fn);
47239
47239
  }
47240
47240
  }
47241
- tapAsync(options, fn2) {
47241
+ tapAsync(options, fn) {
47242
47242
  for (const hook of this.hooks) {
47243
- hook.tapAsync(options, fn2);
47243
+ hook.tapAsync(options, fn);
47244
47244
  }
47245
47245
  }
47246
- tapPromise(options, fn2) {
47246
+ tapPromise(options, fn) {
47247
47247
  for (const hook of this.hooks) {
47248
- hook.tapPromise(options, fn2);
47248
+ hook.tapPromise(options, fn);
47249
47249
  }
47250
47250
  }
47251
47251
  isUsed() {
@@ -50501,30 +50501,30 @@ var jju = __toESM(require_jju());
50501
50501
  // ../../../node_modules/tar/dist/esm/index.min.js
50502
50502
  var index_min_exports = {};
50503
50503
  __export(index_min_exports, {
50504
- Header: () => C,
50504
+ Header: () => F,
50505
50505
  Pack: () => wt,
50506
- PackJob: () => mi,
50506
+ PackJob: () => pi,
50507
50507
  PackSync: () => kt,
50508
- Parser: () => st,
50509
- Pax: () => ct,
50510
- ReadEntry: () => Ve,
50508
+ Parser: () => rt,
50509
+ Pax: () => ft,
50510
+ ReadEntry: () => $e,
50511
50511
  Unpack: () => Xt,
50512
- UnpackSync: () => Te,
50513
- WriteEntry: () => fe,
50514
- WriteEntrySync: () => ri,
50515
- WriteEntryTar: () => ni,
50516
- c: () => Kn,
50517
- create: () => Kn,
50518
- extract: () => uo,
50519
- filesFilter: () => Xi,
50520
- list: () => Ft,
50512
+ UnpackSync: () => xe,
50513
+ WriteEntry: () => de,
50514
+ WriteEntrySync: () => ni,
50515
+ WriteEntryTar: () => oi,
50516
+ c: () => Qn,
50517
+ create: () => Qn,
50518
+ extract: () => So,
50519
+ filesFilter: () => Qi,
50520
+ list: () => Ct,
50521
50521
  r: () => vt,
50522
50522
  replace: () => vt,
50523
- t: () => Ft,
50524
- types: () => Ui,
50525
- u: () => yo,
50526
- update: () => yo,
50527
- x: () => uo
50523
+ t: () => Ct,
50524
+ types: () => Hi,
50525
+ u: () => Oo,
50526
+ update: () => Oo,
50527
+ x: () => So
50528
50528
  });
50529
50529
  var import_events = __toESM(require("events"), 1);
50530
50530
  var import_fs = __toESM(require("fs"), 1);
@@ -50537,7 +50537,7 @@ var import_path = require("path");
50537
50537
  var import_events2 = require("events");
50538
50538
  var import_assert = __toESM(require("assert"), 1);
50539
50539
  var import_buffer = require("buffer");
50540
- var Ms = __toESM(require("zlib"), 1);
50540
+ var Ps = __toESM(require("zlib"), 1);
50541
50541
  var import_zlib = __toESM(require("zlib"), 1);
50542
50542
  var import_node_path2 = require("node:path");
50543
50543
  var import_node_path3 = require("node:path");
@@ -50560,50 +50560,50 @@ var import_node_path7 = __toESM(require("node:path"), 1);
50560
50560
  var import_node_path8 = require("node:path");
50561
50561
  var import_node_fs6 = __toESM(require("node:fs"), 1);
50562
50562
  var import_node_path9 = __toESM(require("node:path"), 1);
50563
- var Mr = Object.defineProperty;
50564
- var Br = (s3, t) => {
50565
- for (var e in t) Mr(s3, e, { get: t[e], enumerable: true });
50563
+ var zr = Object.defineProperty;
50564
+ var Ur = (s3, t) => {
50565
+ for (var e in t) zr(s3, e, { get: t[e], enumerable: true });
50566
50566
  };
50567
- var xs = typeof process == "object" && process ? process : { stdout: null, stderr: null };
50568
- var zr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof import_node_stream.default || Ur(s3) || Hr(s3));
50569
- var Ur = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
50570
- var Hr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
50571
- var q = /* @__PURE__ */ Symbol("EOF");
50572
- var Q = /* @__PURE__ */ Symbol("maybeEmitEnd");
50573
- var rt = /* @__PURE__ */ Symbol("emittedEnd");
50574
- var Le = /* @__PURE__ */ Symbol("emittingEnd");
50567
+ var Ds = typeof process == "object" && process ? process : { stdout: null, stderr: null };
50568
+ var Wr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof import_node_stream.default || Gr(s3) || Zr(s3));
50569
+ var Gr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
50570
+ var Zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
50571
+ var Q = /* @__PURE__ */ Symbol("EOF");
50572
+ var J = /* @__PURE__ */ Symbol("maybeEmitEnd");
50573
+ var nt = /* @__PURE__ */ Symbol("emittedEnd");
50574
+ var De = /* @__PURE__ */ Symbol("emittingEnd");
50575
50575
  var qt = /* @__PURE__ */ Symbol("emittedError");
50576
50576
  var Ne = /* @__PURE__ */ Symbol("closed");
50577
- var Ls = /* @__PURE__ */ Symbol("read");
50578
- var De = /* @__PURE__ */ Symbol("flush");
50579
- var Ns = /* @__PURE__ */ Symbol("flushChunk");
50577
+ var Ns = /* @__PURE__ */ Symbol("read");
50578
+ var Ae = /* @__PURE__ */ Symbol("flush");
50579
+ var As = /* @__PURE__ */ Symbol("flushChunk");
50580
50580
  var z = /* @__PURE__ */ Symbol("encoding");
50581
50581
  var Mt = /* @__PURE__ */ Symbol("decoder");
50582
50582
  var g = /* @__PURE__ */ Symbol("flowing");
50583
50583
  var Qt = /* @__PURE__ */ Symbol("paused");
50584
50584
  var Bt = /* @__PURE__ */ Symbol("resume");
50585
50585
  var b = /* @__PURE__ */ Symbol("buffer");
50586
- var D = /* @__PURE__ */ Symbol("pipes");
50586
+ var N = /* @__PURE__ */ Symbol("pipes");
50587
50587
  var _ = /* @__PURE__ */ Symbol("bufferLength");
50588
- var gi = /* @__PURE__ */ Symbol("bufferPush");
50589
- var Ae = /* @__PURE__ */ Symbol("bufferShift");
50588
+ var bi = /* @__PURE__ */ Symbol("bufferPush");
50589
+ var Ie = /* @__PURE__ */ Symbol("bufferShift");
50590
50590
  var L = /* @__PURE__ */ Symbol("objectMode");
50591
50591
  var w = /* @__PURE__ */ Symbol("destroyed");
50592
- var bi = /* @__PURE__ */ Symbol("error");
50593
- var _i = /* @__PURE__ */ Symbol("emitData");
50594
- var Ds = /* @__PURE__ */ Symbol("emitEnd");
50595
- var Oi = /* @__PURE__ */ Symbol("emitEnd2");
50592
+ var _i = /* @__PURE__ */ Symbol("error");
50593
+ var Oi = /* @__PURE__ */ Symbol("emitData");
50594
+ var Is = /* @__PURE__ */ Symbol("emitEnd");
50595
+ var Ti = /* @__PURE__ */ Symbol("emitEnd2");
50596
50596
  var Z = /* @__PURE__ */ Symbol("async");
50597
- var Ti = /* @__PURE__ */ Symbol("abort");
50598
- var Ie = /* @__PURE__ */ Symbol("aborted");
50597
+ var xi = /* @__PURE__ */ Symbol("abort");
50598
+ var Ce = /* @__PURE__ */ Symbol("aborted");
50599
50599
  var Jt = /* @__PURE__ */ Symbol("signal");
50600
50600
  var Rt = /* @__PURE__ */ Symbol("dataListeners");
50601
- var F = /* @__PURE__ */ Symbol("discarded");
50601
+ var C = /* @__PURE__ */ Symbol("discarded");
50602
50602
  var jt = (s3) => Promise.resolve().then(s3);
50603
- var Wr = (s3) => s3();
50604
- var Gr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
50605
- var Zr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
50606
- var Yr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
50603
+ var Yr = (s3) => s3();
50604
+ var Kr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
50605
+ var Vr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
50606
+ var $r = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
50607
50607
  var Fe = class {
50608
50608
  src;
50609
50609
  dest;
@@ -50621,7 +50621,7 @@ var Fe = class {
50621
50621
  this.unpipe(), this.opts.end && this.dest.end();
50622
50622
  }
50623
50623
  };
50624
- var xi = class extends Fe {
50624
+ var Li = class extends Fe {
50625
50625
  unpipe() {
50626
50626
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
50627
50627
  }
@@ -50629,36 +50629,36 @@ var xi = class extends Fe {
50629
50629
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
50630
50630
  }
50631
50631
  };
50632
- var Kr = (s3) => !!s3.objectMode;
50633
- var Vr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
50632
+ var Xr = (s3) => !!s3.objectMode;
50633
+ var qr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
50634
50634
  var A = class extends import_node_events.EventEmitter {
50635
50635
  [g] = false;
50636
50636
  [Qt] = false;
50637
- [D] = [];
50637
+ [N] = [];
50638
50638
  [b] = [];
50639
50639
  [L];
50640
50640
  [z];
50641
50641
  [Z];
50642
50642
  [Mt];
50643
- [q] = false;
50644
- [rt] = false;
50645
- [Le] = false;
50643
+ [Q] = false;
50644
+ [nt] = false;
50645
+ [De] = false;
50646
50646
  [Ne] = false;
50647
50647
  [qt] = null;
50648
50648
  [_] = 0;
50649
50649
  [w] = false;
50650
50650
  [Jt];
50651
- [Ie] = false;
50651
+ [Ce] = false;
50652
50652
  [Rt] = 0;
50653
- [F] = false;
50653
+ [C] = false;
50654
50654
  writable = true;
50655
50655
  readable = true;
50656
50656
  constructor(...t) {
50657
50657
  let e = t[0] || {};
50658
50658
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
50659
- Kr(e) ? (this[L] = true, this[z] = null) : Vr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new import_node_string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D] });
50659
+ Xr(e) ? (this[L] = true, this[z] = null) : qr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new import_node_string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[N] });
50660
50660
  let { signal: i } = e;
50661
- i && (this[Jt] = i, i.aborted ? this[Ti]() : i.addEventListener("abort", () => this[Ti]()));
50661
+ i && (this[Jt] = i, i.aborted ? this[xi]() : i.addEventListener("abort", () => this[xi]()));
50662
50662
  }
50663
50663
  get bufferLength() {
50664
50664
  return this[_];
@@ -50684,53 +50684,53 @@ var A = class extends import_node_events.EventEmitter {
50684
50684
  set async(t) {
50685
50685
  this[Z] = this[Z] || !!t;
50686
50686
  }
50687
- [Ti]() {
50688
- this[Ie] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
50687
+ [xi]() {
50688
+ this[Ce] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
50689
50689
  }
50690
50690
  get aborted() {
50691
- return this[Ie];
50691
+ return this[Ce];
50692
50692
  }
50693
50693
  set aborted(t) {
50694
50694
  }
50695
50695
  write(t, e, i) {
50696
- if (this[Ie]) return false;
50697
- if (this[q]) throw new Error("write after end");
50696
+ if (this[Ce]) return false;
50697
+ if (this[Q]) throw new Error("write after end");
50698
50698
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
50699
50699
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
50700
- let r = this[Z] ? jt : Wr;
50700
+ let r = this[Z] ? jt : Yr;
50701
50701
  if (!this[L] && !Buffer.isBuffer(t)) {
50702
- if (Yr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
50703
- else if (Zr(t)) t = Buffer.from(t);
50702
+ if ($r(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
50703
+ else if (Vr(t)) t = Buffer.from(t);
50704
50704
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
50705
50705
  }
50706
- return this[L] ? (this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
50706
+ return this[L] ? (this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[bi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[bi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
50707
50707
  }
50708
50708
  read(t) {
50709
50709
  if (this[w]) return null;
50710
- if (this[F] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[Q](), null;
50710
+ if (this[C] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[J](), null;
50711
50711
  this[L] && (t = null), this[b].length > 1 && !this[L] && (this[b] = [this[z] ? this[b].join("") : Buffer.concat(this[b], this[_])]);
50712
- let e = this[Ls](t || null, this[b][0]);
50713
- return this[Q](), e;
50712
+ let e = this[Ns](t || null, this[b][0]);
50713
+ return this[J](), e;
50714
50714
  }
50715
- [Ls](t, e) {
50716
- if (this[L]) this[Ae]();
50715
+ [Ns](t, e) {
50716
+ if (this[L]) this[Ie]();
50717
50717
  else {
50718
50718
  let i = e;
50719
- t === i.length || t === null ? this[Ae]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
50719
+ t === i.length || t === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
50720
50720
  }
50721
- return this.emit("data", e), !this[b].length && !this[q] && this.emit("drain"), e;
50721
+ return this.emit("data", e), !this[b].length && !this[Q] && this.emit("drain"), e;
50722
50722
  }
50723
50723
  end(t, e, i) {
50724
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[g] || !this[Qt]) && this[Q](), this;
50724
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[Q] = true, this.writable = false, (this[g] || !this[Qt]) && this[J](), this;
50725
50725
  }
50726
50726
  [Bt]() {
50727
- this[w] || (!this[Rt] && !this[D].length && (this[F] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[De]() : this[q] ? this[Q]() : this.emit("drain"));
50727
+ this[w] || (!this[Rt] && !this[N].length && (this[C] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[Ae]() : this[Q] ? this[J]() : this.emit("drain"));
50728
50728
  }
50729
50729
  resume() {
50730
50730
  return this[Bt]();
50731
50731
  }
50732
50732
  pause() {
50733
- this[g] = false, this[Qt] = true, this[F] = false;
50733
+ this[g] = false, this[Qt] = true, this[C] = false;
50734
50734
  }
50735
50735
  get destroyed() {
50736
50736
  return this[w];
@@ -50741,39 +50741,39 @@ var A = class extends import_node_events.EventEmitter {
50741
50741
  get paused() {
50742
50742
  return this[Qt];
50743
50743
  }
50744
- [gi](t) {
50744
+ [bi](t) {
50745
50745
  this[L] ? this[_] += 1 : this[_] += t.length, this[b].push(t);
50746
50746
  }
50747
- [Ae]() {
50747
+ [Ie]() {
50748
50748
  return this[L] ? this[_] -= 1 : this[_] -= this[b][0].length, this[b].shift();
50749
50749
  }
50750
- [De](t = false) {
50750
+ [Ae](t = false) {
50751
50751
  do
50752
50752
  ;
50753
- while (this[Ns](this[Ae]()) && this[b].length);
50754
- !t && !this[b].length && !this[q] && this.emit("drain");
50753
+ while (this[As](this[Ie]()) && this[b].length);
50754
+ !t && !this[b].length && !this[Q] && this.emit("drain");
50755
50755
  }
50756
- [Ns](t) {
50756
+ [As](t) {
50757
50757
  return this.emit("data", t), this[g];
50758
50758
  }
50759
50759
  pipe(t, e) {
50760
50760
  if (this[w]) return t;
50761
- this[F] = false;
50762
- let i = this[rt];
50763
- return e = e || {}, t === xs.stdout || t === xs.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new Fe(this, t, e)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t;
50761
+ this[C] = false;
50762
+ let i = this[nt];
50763
+ return e = e || {}, t === Ds.stdout || t === Ds.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[N].push(e.proxyErrors ? new Li(this, t, e) : new Fe(this, t, e)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t;
50764
50764
  }
50765
50765
  unpipe(t) {
50766
- let e = this[D].find((i) => i.dest === t);
50767
- e && (this[D].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[D] = []) : this[D].splice(this[D].indexOf(e), 1), e.unpipe());
50766
+ let e = this[N].find((i) => i.dest === t);
50767
+ e && (this[N].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[N] = []) : this[N].splice(this[N].indexOf(e), 1), e.unpipe());
50768
50768
  }
50769
50769
  addListener(t, e) {
50770
50770
  return this.on(t, e);
50771
50771
  }
50772
50772
  on(t, e) {
50773
50773
  let i = super.on(t, e);
50774
- if (t === "data") this[F] = false, this[Rt]++, !this[D].length && !this[g] && this[Bt]();
50774
+ if (t === "data") this[C] = false, this[Rt]++, !this[N].length && !this[g] && this[Bt]();
50775
50775
  else if (t === "readable" && this[_] !== 0) super.emit("readable");
50776
- else if (Gr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
50776
+ else if (Kr(t) && this[nt]) super.emit(t), this.removeAllListeners(t);
50777
50777
  else if (t === "error" && this[qt]) {
50778
50778
  let r = e;
50779
50779
  this[Z] ? jt(() => r.call(this, this[qt])) : r.call(this, this[qt]);
@@ -50785,58 +50785,58 @@ var A = class extends import_node_events.EventEmitter {
50785
50785
  }
50786
50786
  off(t, e) {
50787
50787
  let i = super.off(t, e);
50788
- return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[F] && !this[D].length && (this[g] = false)), i;
50788
+ return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[C] && !this[N].length && (this[g] = false)), i;
50789
50789
  }
50790
50790
  removeAllListeners(t) {
50791
50791
  let e = super.removeAllListeners(t);
50792
- return (t === "data" || t === void 0) && (this[Rt] = 0, !this[F] && !this[D].length && (this[g] = false)), e;
50792
+ return (t === "data" || t === void 0) && (this[Rt] = 0, !this[C] && !this[N].length && (this[g] = false)), e;
50793
50793
  }
50794
50794
  get emittedEnd() {
50795
- return this[rt];
50795
+ return this[nt];
50796
50796
  }
50797
- [Q]() {
50798
- !this[Le] && !this[rt] && !this[w] && this[b].length === 0 && this[q] && (this[Le] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[Le] = false);
50797
+ [J]() {
50798
+ !this[De] && !this[nt] && !this[w] && this[b].length === 0 && this[Q] && (this[De] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[De] = false);
50799
50799
  }
50800
50800
  emit(t, ...e) {
50801
50801
  let i = e[0];
50802
50802
  if (t !== "error" && t !== "close" && t !== w && this[w]) return false;
50803
- if (t === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[_i](i)), true) : this[_i](i);
50804
- if (t === "end") return this[Ds]();
50803
+ if (t === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[Oi](i)), true) : this[Oi](i);
50804
+ if (t === "end") return this[Is]();
50805
50805
  if (t === "close") {
50806
- if (this[Ne] = true, !this[rt] && !this[w]) return false;
50806
+ if (this[Ne] = true, !this[nt] && !this[w]) return false;
50807
50807
  let n = super.emit("close");
50808
50808
  return this.removeAllListeners("close"), n;
50809
50809
  } else if (t === "error") {
50810
- this[qt] = i, super.emit(bi, i);
50810
+ this[qt] = i, super.emit(_i, i);
50811
50811
  let n = !this[Jt] || this.listeners("error").length ? super.emit("error", i) : false;
50812
- return this[Q](), n;
50812
+ return this[J](), n;
50813
50813
  } else if (t === "resume") {
50814
50814
  let n = super.emit("resume");
50815
- return this[Q](), n;
50815
+ return this[J](), n;
50816
50816
  } else if (t === "finish" || t === "prefinish") {
50817
50817
  let n = super.emit(t);
50818
50818
  return this.removeAllListeners(t), n;
50819
50819
  }
50820
50820
  let r = super.emit(t, ...e);
50821
- return this[Q](), r;
50821
+ return this[J](), r;
50822
50822
  }
50823
- [_i](t) {
50824
- for (let i of this[D]) i.dest.write(t) === false && this.pause();
50825
- let e = this[F] ? false : super.emit("data", t);
50826
- return this[Q](), e;
50823
+ [Oi](t) {
50824
+ for (let i of this[N]) i.dest.write(t) === false && this.pause();
50825
+ let e = this[C] ? false : super.emit("data", t);
50826
+ return this[J](), e;
50827
50827
  }
50828
- [Ds]() {
50829
- return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (jt(() => this[Oi]()), true) : this[Oi]());
50828
+ [Is]() {
50829
+ return this[nt] ? false : (this[nt] = true, this.readable = false, this[Z] ? (jt(() => this[Ti]()), true) : this[Ti]());
50830
50830
  }
50831
- [Oi]() {
50831
+ [Ti]() {
50832
50832
  if (this[Mt]) {
50833
50833
  let e = this[Mt].end();
50834
50834
  if (e) {
50835
- for (let i of this[D]) i.dest.write(e);
50836
- this[F] || super.emit("data", e);
50835
+ for (let i of this[N]) i.dest.write(e);
50836
+ this[C] || super.emit("data", e);
50837
50837
  }
50838
50838
  }
50839
- for (let e of this[D]) e.end();
50839
+ for (let e of this[N]) e.end();
50840
50840
  let t = super.emit("end");
50841
50841
  return this.removeAllListeners("end"), t;
50842
50842
  }
@@ -50859,22 +50859,22 @@ var A = class extends import_node_events.EventEmitter {
50859
50859
  });
50860
50860
  }
50861
50861
  [Symbol.asyncIterator]() {
50862
- this[F] = false;
50862
+ this[C] = false;
50863
50863
  let t = false, e = async () => (this.pause(), t = true, { value: void 0, done: true });
50864
50864
  return { next: () => {
50865
50865
  if (t) return e();
50866
50866
  let r = this.read();
50867
50867
  if (r !== null) return Promise.resolve({ done: false, value: r });
50868
- if (this[q]) return e();
50869
- let n, o, a = (d) => {
50870
- this.off("data", h), this.off("end", l), this.off(w, c), e(), o(d);
50871
- }, h = (d) => {
50872
- this.off("error", a), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[q] });
50868
+ if (this[Q]) return e();
50869
+ let n, o, h = (d) => {
50870
+ this.off("data", a), this.off("end", l), this.off(w, c), e(), o(d);
50871
+ }, a = (d) => {
50872
+ this.off("error", h), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[Q] });
50873
50873
  }, l = () => {
50874
- this.off("error", a), this.off("data", h), this.off(w, c), e(), n({ done: true, value: void 0 });
50875
- }, c = () => a(new Error("stream destroyed"));
50874
+ this.off("error", h), this.off("data", a), this.off(w, c), e(), n({ done: true, value: void 0 });
50875
+ }, c = () => h(new Error("stream destroyed"));
50876
50876
  return new Promise((d, S) => {
50877
- o = S, n = d, this.once(w, c), this.once("error", a), this.once("end", l), this.once("data", h);
50877
+ o = S, n = d, this.once(w, c), this.once("error", h), this.once("end", l), this.once("data", a);
50878
50878
  });
50879
50879
  }, throw: e, return: e, [Symbol.asyncIterator]() {
50880
50880
  return this;
@@ -50882,71 +50882,71 @@ var A = class extends import_node_events.EventEmitter {
50882
50882
  } };
50883
50883
  }
50884
50884
  [Symbol.iterator]() {
50885
- this[F] = false;
50886
- let t = false, e = () => (this.pause(), this.off(bi, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
50885
+ this[C] = false;
50886
+ let t = false, e = () => (this.pause(), this.off(_i, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
50887
50887
  if (t) return e();
50888
50888
  let r = this.read();
50889
50889
  return r === null ? e() : { done: false, value: r };
50890
50890
  };
50891
- return this.once("end", e), this.once(bi, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
50891
+ return this.once("end", e), this.once(_i, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
50892
50892
  return this;
50893
50893
  }, [Symbol.dispose]: () => {
50894
50894
  } };
50895
50895
  }
50896
50896
  destroy(t) {
50897
50897
  if (this[w]) return t ? this.emit("error", t) : this.emit(w), this;
50898
- this[w] = true, this[F] = true, this[b].length = 0, this[_] = 0;
50898
+ this[w] = true, this[C] = true, this[b].length = 0, this[_] = 0;
50899
50899
  let e = this;
50900
50900
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
50901
50901
  }
50902
50902
  static get isStream() {
50903
- return zr;
50903
+ return Wr;
50904
50904
  }
50905
50905
  };
50906
- var Xr = import_fs.default.writev;
50907
- var ot = /* @__PURE__ */ Symbol("_autoClose");
50906
+ var Jr = import_fs.default.writev;
50907
+ var ht = /* @__PURE__ */ Symbol("_autoClose");
50908
50908
  var H = /* @__PURE__ */ Symbol("_close");
50909
50909
  var te = /* @__PURE__ */ Symbol("_ended");
50910
- var m = /* @__PURE__ */ Symbol("_fd");
50910
+ var u = /* @__PURE__ */ Symbol("_fd");
50911
50911
  var Ni = /* @__PURE__ */ Symbol("_finished");
50912
- var j = /* @__PURE__ */ Symbol("_flags");
50913
- var Di = /* @__PURE__ */ Symbol("_flush");
50914
- var Ci = /* @__PURE__ */ Symbol("_handleChunk");
50915
- var ki = /* @__PURE__ */ Symbol("_makeBuf");
50912
+ var tt = /* @__PURE__ */ Symbol("_flags");
50913
+ var Ai = /* @__PURE__ */ Symbol("_flush");
50914
+ var ki = /* @__PURE__ */ Symbol("_handleChunk");
50915
+ var vi = /* @__PURE__ */ Symbol("_makeBuf");
50916
50916
  var ie = /* @__PURE__ */ Symbol("_mode");
50917
- var Ce = /* @__PURE__ */ Symbol("_needDrain");
50917
+ var ke = /* @__PURE__ */ Symbol("_needDrain");
50918
50918
  var Ut = /* @__PURE__ */ Symbol("_onerror");
50919
50919
  var Ht = /* @__PURE__ */ Symbol("_onopen");
50920
- var Ai = /* @__PURE__ */ Symbol("_onread");
50920
+ var Ii = /* @__PURE__ */ Symbol("_onread");
50921
50921
  var Pt = /* @__PURE__ */ Symbol("_onwrite");
50922
- var ht = /* @__PURE__ */ Symbol("_open");
50922
+ var at = /* @__PURE__ */ Symbol("_open");
50923
50923
  var U = /* @__PURE__ */ Symbol("_path");
50924
- var nt = /* @__PURE__ */ Symbol("_pos");
50924
+ var ot = /* @__PURE__ */ Symbol("_pos");
50925
50925
  var Y = /* @__PURE__ */ Symbol("_queue");
50926
50926
  var zt = /* @__PURE__ */ Symbol("_read");
50927
- var Ii = /* @__PURE__ */ Symbol("_readSize");
50928
- var J = /* @__PURE__ */ Symbol("_reading");
50927
+ var Ci = /* @__PURE__ */ Symbol("_readSize");
50928
+ var j = /* @__PURE__ */ Symbol("_reading");
50929
50929
  var ee = /* @__PURE__ */ Symbol("_remain");
50930
50930
  var Fi = /* @__PURE__ */ Symbol("_size");
50931
- var ke = /* @__PURE__ */ Symbol("_write");
50931
+ var ve = /* @__PURE__ */ Symbol("_write");
50932
50932
  var gt = /* @__PURE__ */ Symbol("_writing");
50933
- var ve = /* @__PURE__ */ Symbol("_defaultFlag");
50933
+ var Me = /* @__PURE__ */ Symbol("_defaultFlag");
50934
50934
  var bt = /* @__PURE__ */ Symbol("_errored");
50935
50935
  var _t = class extends A {
50936
50936
  [bt] = false;
50937
- [m];
50937
+ [u];
50938
50938
  [U];
50939
- [Ii];
50940
- [J] = false;
50939
+ [Ci];
50940
+ [j] = false;
50941
50941
  [Fi];
50942
50942
  [ee];
50943
- [ot];
50943
+ [ht];
50944
50944
  constructor(t, e) {
50945
50945
  if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
50946
- this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[J] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
50946
+ this[bt] = false, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ci] = e.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[u] == "number" ? this[zt]() : this[at]();
50947
50947
  }
50948
50948
  get fd() {
50949
- return this[m];
50949
+ return this[u];
50950
50950
  }
50951
50951
  get path() {
50952
50952
  return this[U];
@@ -50957,36 +50957,36 @@ var _t = class extends A {
50957
50957
  end() {
50958
50958
  throw new TypeError("this is a readable stream");
50959
50959
  }
50960
- [ht]() {
50960
+ [at]() {
50961
50961
  import_fs.default.open(this[U], "r", (t, e) => this[Ht](t, e));
50962
50962
  }
50963
50963
  [Ht](t, e) {
50964
- t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
50964
+ t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[zt]());
50965
50965
  }
50966
- [ki]() {
50967
- return Buffer.allocUnsafe(Math.min(this[Ii], this[ee]));
50966
+ [vi]() {
50967
+ return Buffer.allocUnsafe(Math.min(this[Ci], this[ee]));
50968
50968
  }
50969
50969
  [zt]() {
50970
- if (!this[J]) {
50971
- this[J] = true;
50972
- let t = this[ki]();
50973
- if (t.length === 0) return process.nextTick(() => this[Ai](null, 0, t));
50974
- import_fs.default.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
50970
+ if (!this[j]) {
50971
+ this[j] = true;
50972
+ let t = this[vi]();
50973
+ if (t.length === 0) return process.nextTick(() => this[Ii](null, 0, t));
50974
+ import_fs.default.read(this[u], t, 0, t.length, null, (e, i, r) => this[Ii](e, i, r));
50975
50975
  }
50976
50976
  }
50977
- [Ai](t, e, i) {
50978
- this[J] = false, t ? this[Ut](t) : this[Ci](e, i) && this[zt]();
50977
+ [Ii](t, e, i) {
50978
+ this[j] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
50979
50979
  }
50980
50980
  [H]() {
50981
- if (this[ot] && typeof this[m] == "number") {
50982
- let t = this[m];
50983
- this[m] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
50981
+ if (this[ht] && typeof this[u] == "number") {
50982
+ let t = this[u];
50983
+ this[u] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
50984
50984
  }
50985
50985
  }
50986
50986
  [Ut](t) {
50987
- this[J] = true, this[H](), this.emit("error", t);
50987
+ this[j] = true, this[H](), this.emit("error", t);
50988
50988
  }
50989
- [Ci](t, e) {
50989
+ [ki](t, e) {
50990
50990
  let i = false;
50991
50991
  return this[ee] -= t, t > 0 && (i = super.write(t < e.length ? e.subarray(0, t) : e)), (t === 0 || this[ee] <= 0) && (i = false, this[H](), super.end()), i;
50992
50992
  }
@@ -50996,7 +50996,7 @@ var _t = class extends A {
50996
50996
  case "finish":
50997
50997
  return false;
50998
50998
  case "drain":
50999
- return typeof this[m] == "number" && this[zt](), false;
50999
+ return typeof this[u] == "number" && this[zt](), false;
51000
51000
  case "error":
51001
51001
  return this[bt] ? false : (this[bt] = true, super.emit(t, ...e));
51002
51002
  default:
@@ -51004,8 +51004,8 @@ var _t = class extends A {
51004
51004
  }
51005
51005
  }
51006
51006
  };
51007
- var Me = class extends _t {
51008
- [ht]() {
51007
+ var Be = class extends _t {
51008
+ [at]() {
51009
51009
  let t = true;
51010
51010
  try {
51011
51011
  this[Ht](null, import_fs.default.openSync(this[U], "r")), t = false;
@@ -51016,13 +51016,13 @@ var Me = class extends _t {
51016
51016
  [zt]() {
51017
51017
  let t = true;
51018
51018
  try {
51019
- if (!this[J]) {
51020
- this[J] = true;
51019
+ if (!this[j]) {
51020
+ this[j] = true;
51021
51021
  do {
51022
- let e = this[ki](), i = e.length === 0 ? 0 : import_fs.default.readSync(this[m], e, 0, e.length, null);
51023
- if (!this[Ci](i, e)) break;
51022
+ let e = this[vi](), i = e.length === 0 ? 0 : import_fs.default.readSync(this[u], e, 0, e.length, null);
51023
+ if (!this[ki](i, e)) break;
51024
51024
  } while (true);
51025
- this[J] = false;
51025
+ this[j] = false;
51026
51026
  }
51027
51027
  t = false;
51028
51028
  } finally {
@@ -51030,32 +51030,32 @@ var Me = class extends _t {
51030
51030
  }
51031
51031
  }
51032
51032
  [H]() {
51033
- if (this[ot] && typeof this[m] == "number") {
51034
- let t = this[m];
51035
- this[m] = void 0, import_fs.default.closeSync(t), this.emit("close");
51033
+ if (this[ht] && typeof this[u] == "number") {
51034
+ let t = this[u];
51035
+ this[u] = void 0, import_fs.default.closeSync(t), this.emit("close");
51036
51036
  }
51037
51037
  }
51038
51038
  };
51039
- var tt = class extends import_events.default {
51039
+ var et = class extends import_events.default {
51040
51040
  readable = false;
51041
51041
  writable = true;
51042
51042
  [bt] = false;
51043
51043
  [gt] = false;
51044
51044
  [te] = false;
51045
51045
  [Y] = [];
51046
- [Ce] = false;
51046
+ [ke] = false;
51047
51047
  [U];
51048
51048
  [ie];
51049
- [ot];
51050
- [m];
51051
- [ve];
51052
- [j];
51049
+ [ht];
51050
+ [u];
51051
+ [Me];
51052
+ [tt];
51053
51053
  [Ni] = false;
51054
- [nt];
51054
+ [ot];
51055
51055
  constructor(t, e) {
51056
- e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : void 0, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
51057
- let i = this[nt] !== void 0 ? "r+" : "w";
51058
- this[ve] = e.flags === void 0, this[j] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
51056
+ e = e || {}, super(e), this[U] = t, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[ot] = typeof e.start == "number" ? e.start : void 0, this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true;
51057
+ let i = this[ot] !== void 0 ? "r+" : "w";
51058
+ this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[u] === void 0 && this[at]();
51059
51059
  }
51060
51060
  emit(t, ...e) {
51061
51061
  if (t === "error") {
@@ -51065,7 +51065,7 @@ var tt = class extends import_events.default {
51065
51065
  return super.emit(t, ...e);
51066
51066
  }
51067
51067
  get fd() {
51068
- return this[m];
51068
+ return this[u];
51069
51069
  }
51070
51070
  get path() {
51071
51071
  return this[U];
@@ -51073,61 +51073,61 @@ var tt = class extends import_events.default {
51073
51073
  [Ut](t) {
51074
51074
  this[H](), this[gt] = true, this.emit("error", t);
51075
51075
  }
51076
- [ht]() {
51077
- import_fs.default.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
51076
+ [at]() {
51077
+ import_fs.default.open(this[U], this[tt], this[ie], (t, e) => this[Ht](t, e));
51078
51078
  }
51079
51079
  [Ht](t, e) {
51080
- this[ve] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
51080
+ this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[gt] || this[Ai]());
51081
51081
  }
51082
51082
  end(t, e) {
51083
- return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
51083
+ return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[u] == "number" && this[Pt](null, 0), this;
51084
51084
  }
51085
51085
  write(t, e) {
51086
- return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Ce] = true, false) : (this[gt] = true, this[ke](t), true);
51086
+ return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[u] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[ke] = true, false) : (this[gt] = true, this[ve](t), true);
51087
51087
  }
51088
- [ke](t) {
51089
- import_fs.default.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
51088
+ [ve](t) {
51089
+ import_fs.default.write(this[u], t, 0, t.length, this[ot], (e, i) => this[Pt](e, i));
51090
51090
  }
51091
51091
  [Pt](t, e) {
51092
- t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[Ce] && (this[Ce] = false, this.emit("drain"))));
51092
+ t ? this[Ut](t) : (this[ot] !== void 0 && typeof e == "number" && (this[ot] += e), this[Y].length ? this[Ai]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[ke] && (this[ke] = false, this.emit("drain"))));
51093
51093
  }
51094
- [Di]() {
51094
+ [Ai]() {
51095
51095
  if (this[Y].length === 0) this[te] && this[Pt](null, 0);
51096
- else if (this[Y].length === 1) this[ke](this[Y].pop());
51096
+ else if (this[Y].length === 1) this[ve](this[Y].pop());
51097
51097
  else {
51098
51098
  let t = this[Y];
51099
- this[Y] = [], Xr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
51099
+ this[Y] = [], Jr(this[u], t, this[ot], (e, i) => this[Pt](e, i));
51100
51100
  }
51101
51101
  }
51102
51102
  [H]() {
51103
- if (this[ot] && typeof this[m] == "number") {
51104
- let t = this[m];
51105
- this[m] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
51103
+ if (this[ht] && typeof this[u] == "number") {
51104
+ let t = this[u];
51105
+ this[u] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
51106
51106
  }
51107
51107
  }
51108
51108
  };
51109
- var Wt = class extends tt {
51110
- [ht]() {
51109
+ var Wt = class extends et {
51110
+ [at]() {
51111
51111
  let t;
51112
- if (this[ve] && this[j] === "r+") try {
51113
- t = import_fs.default.openSync(this[U], this[j], this[ie]);
51112
+ if (this[Me] && this[tt] === "r+") try {
51113
+ t = import_fs.default.openSync(this[U], this[tt], this[ie]);
51114
51114
  } catch (e) {
51115
- if (e?.code === "ENOENT") return this[j] = "w", this[ht]();
51115
+ if (e?.code === "ENOENT") return this[tt] = "w", this[at]();
51116
51116
  throw e;
51117
51117
  }
51118
- else t = import_fs.default.openSync(this[U], this[j], this[ie]);
51118
+ else t = import_fs.default.openSync(this[U], this[tt], this[ie]);
51119
51119
  this[Ht](null, t);
51120
51120
  }
51121
51121
  [H]() {
51122
- if (this[ot] && typeof this[m] == "number") {
51123
- let t = this[m];
51124
- this[m] = void 0, import_fs.default.closeSync(t), this.emit("close");
51122
+ if (this[ht] && typeof this[u] == "number") {
51123
+ let t = this[u];
51124
+ this[u] = void 0, import_fs.default.closeSync(t), this.emit("close");
51125
51125
  }
51126
51126
  }
51127
- [ke](t) {
51127
+ [ve](t) {
51128
51128
  let e = true;
51129
51129
  try {
51130
- this[Pt](null, import_fs.default.writeSync(this[m], t, 0, t.length, this[nt])), e = false;
51130
+ this[Pt](null, import_fs.default.writeSync(this[u], t, 0, t.length, this[ot])), e = false;
51131
51131
  } finally {
51132
51132
  if (e) try {
51133
51133
  this[H]();
@@ -51136,50 +51136,50 @@ var Wt = class extends tt {
51136
51136
  }
51137
51137
  }
51138
51138
  };
51139
- var qr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
51140
- var Is = (s3) => !!s3.sync && !!s3.file;
51141
- var Fs = (s3) => !s3.sync && !!s3.file;
51142
- var Cs = (s3) => !!s3.sync && !s3.file;
51143
- var ks = (s3) => !s3.sync && !s3.file;
51144
- var vs = (s3) => !!s3.file;
51145
- var Qr = (s3) => {
51146
- let t = qr.get(s3);
51139
+ var jr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
51140
+ var Fs = (s3) => !!s3.sync && !!s3.file;
51141
+ var ks = (s3) => !s3.sync && !!s3.file;
51142
+ var vs = (s3) => !!s3.sync && !s3.file;
51143
+ var Ms = (s3) => !s3.sync && !s3.file;
51144
+ var Bs = (s3) => !!s3.file;
51145
+ var tn = (s3) => {
51146
+ let t = jr.get(s3);
51147
51147
  return t || s3;
51148
51148
  };
51149
51149
  var se = (s3 = {}) => {
51150
51150
  if (!s3) return {};
51151
51151
  let t = {};
51152
51152
  for (let [e, i] of Object.entries(s3)) {
51153
- let r = Qr(e);
51153
+ let r = tn(e);
51154
51154
  t[r] = i;
51155
51155
  }
51156
51156
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
51157
51157
  };
51158
- var K = (s3, t, e, i, r) => Object.assign((n = [], o, a) => {
51159
- Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (a = o, o = void 0), o = o ? Array.from(o) : [];
51160
- let h = se(n);
51161
- if (r?.(h, o), Is(h)) {
51162
- if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
51163
- return s3(h, o);
51164
- } else if (Fs(h)) {
51165
- let l = t(h, o);
51166
- return a ? l.then(() => a(), a) : l;
51167
- } else if (Cs(h)) {
51168
- if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
51169
- return e(h, o);
51170
- } else if (ks(h)) {
51171
- if (typeof a == "function") throw new TypeError("callback only supported with file option");
51172
- return i(h, o);
51158
+ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
51159
+ Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
51160
+ let a = se(n);
51161
+ if (r?.(a, o), Fs(a)) {
51162
+ if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
51163
+ return s3(a, o);
51164
+ } else if (ks(a)) {
51165
+ let l = t(a, o);
51166
+ return h ? l.then(() => h(), h) : l;
51167
+ } else if (vs(a)) {
51168
+ if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
51169
+ return e(a, o);
51170
+ } else if (Ms(a)) {
51171
+ if (typeof h == "function") throw new TypeError("callback only supported with file option");
51172
+ return i(a, o);
51173
51173
  }
51174
51174
  throw new Error("impossible options??");
51175
51175
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
51176
- var jr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
51177
- var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
51178
- var tn = import_buffer.Buffer.concat;
51179
- var Bs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
51180
- var en = (s3) => s3;
51181
- var Mi = Bs?.writable === true || Bs?.set !== void 0 ? (s3) => {
51182
- import_buffer.Buffer.concat = s3 ? en : tn;
51176
+ var sn = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
51177
+ var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, sn));
51178
+ var rn = import_buffer.Buffer.concat;
51179
+ var zs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
51180
+ var nn = (s3) => s3;
51181
+ var Bi = zs?.writable === true || zs?.set !== void 0 ? (s3) => {
51182
+ import_buffer.Buffer.concat = s3 ? nn : rn;
51183
51183
  } : (s3) => {
51184
51184
  };
51185
51185
  var Tt = /* @__PURE__ */ Symbol("_superWrite");
@@ -51193,7 +51193,7 @@ var Gt = class extends Error {
51193
51193
  return "ZlibError";
51194
51194
  }
51195
51195
  };
51196
- var Bi = /* @__PURE__ */ Symbol("flushFlag");
51196
+ var Pi = /* @__PURE__ */ Symbol("flushFlag");
51197
51197
  var re = class extends A {
51198
51198
  #t = false;
51199
51199
  #i = false;
@@ -51213,9 +51213,9 @@ var re = class extends A {
51213
51213
  }
51214
51214
  constructor(t, e) {
51215
51215
  if (!t || typeof t != "object") throw new TypeError("invalid options for ZlibBase constructor");
51216
- if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof Ms[e] != "function") throw new TypeError("Compression method not supported: " + e);
51216
+ if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof Ps[e] != "function") throw new TypeError("Compression method not supported: " + e);
51217
51217
  try {
51218
- this.#e = new Ms[e](t);
51218
+ this.#e = new Ps[e](t);
51219
51219
  } catch (i) {
51220
51220
  throw new Gt(i, this.constructor);
51221
51221
  }
@@ -51230,7 +51230,7 @@ var re = class extends A {
51230
51230
  if (!this.#t) return (0, import_assert.default)(this.#e, "zlib binding closed"), this.#e.reset?.();
51231
51231
  }
51232
51232
  flush(t) {
51233
- this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Bi]: t })));
51233
+ this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Pi]: t })));
51234
51234
  }
51235
51235
  end(t, e, i) {
51236
51236
  return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), t && (e ? this.write(t, e) : this.write(t)), this.flush(this.#n), this.#i = true, super.end(i);
@@ -51249,27 +51249,27 @@ var re = class extends A {
51249
51249
  };
51250
51250
  let o = this.#e.close;
51251
51251
  this.#e.close = () => {
51252
- }, Mi(true);
51253
- let a;
51252
+ }, Bi(true);
51253
+ let h;
51254
51254
  try {
51255
- let l = typeof t[Bi] == "number" ? t[Bi] : this.#s;
51256
- a = this.#e._processChunk(t, l), Mi(false);
51255
+ let l = typeof t[Pi] == "number" ? t[Pi] : this.#s;
51256
+ h = this.#e._processChunk(t, l), Bi(false);
51257
51257
  } catch (l) {
51258
- Mi(false), this.#o(new Gt(l, this.write));
51258
+ Bi(false), this.#o(new Gt(l, this.write));
51259
51259
  } finally {
51260
51260
  this.#e && (this.#e._handle = r, r.close = n, this.#e.close = o, this.#e.removeAllListeners("error"));
51261
51261
  }
51262
51262
  this.#e && this.#e.on("error", (l) => this.#o(new Gt(l, this.write)));
51263
- let h;
51264
- if (a) if (Array.isArray(a) && a.length > 0) {
51265
- let l = a[0];
51266
- h = this[Tt](import_buffer.Buffer.from(l));
51267
- for (let c = 1; c < a.length; c++) h = this[Tt](a[c]);
51268
- } else h = this[Tt](import_buffer.Buffer.from(a));
51269
- return i && i(), h;
51263
+ let a;
51264
+ if (h) if (Array.isArray(h) && h.length > 0) {
51265
+ let l = h[0];
51266
+ a = this[Tt](import_buffer.Buffer.from(l));
51267
+ for (let c = 1; c < h.length; c++) a = this[Tt](h[c]);
51268
+ } else a = this[Tt](import_buffer.Buffer.from(h));
51269
+ return i && i(), a;
51270
51270
  }
51271
51271
  };
51272
- var Be = class extends re {
51272
+ var Pe = class extends re {
51273
51273
  #t;
51274
51274
  #i;
51275
51275
  constructor(t, e) {
@@ -51295,7 +51295,7 @@ var Be = class extends re {
51295
51295
  }
51296
51296
  }
51297
51297
  };
51298
- var Pe = class extends Be {
51298
+ var ze = class extends Pe {
51299
51299
  #t;
51300
51300
  constructor(t) {
51301
51301
  super(t, "Gzip"), this.#t = t && !!t.portable;
@@ -51304,89 +51304,90 @@ var Pe = class extends Be {
51304
51304
  return this.#t ? (this.#t = false, t[9] = 255, super[Tt](t)) : super[Tt](t);
51305
51305
  }
51306
51306
  };
51307
- var ze = class extends Be {
51307
+ var Ue = class extends Pe {
51308
51308
  constructor(t) {
51309
51309
  super(t, "Unzip");
51310
51310
  }
51311
51311
  };
51312
- var Ue = class extends re {
51312
+ var He = class extends re {
51313
51313
  constructor(t, e) {
51314
51314
  t = t || {}, t.flush = t.flush || M.BROTLI_OPERATION_PROCESS, t.finishFlush = t.finishFlush || M.BROTLI_OPERATION_FINISH, t.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t, e);
51315
51315
  }
51316
51316
  };
51317
- var He = class extends Ue {
51317
+ var We = class extends He {
51318
51318
  constructor(t) {
51319
51319
  super(t, "BrotliCompress");
51320
51320
  }
51321
51321
  };
51322
- var We = class extends Ue {
51322
+ var Ge = class extends He {
51323
51323
  constructor(t) {
51324
51324
  super(t, "BrotliDecompress");
51325
51325
  }
51326
51326
  };
51327
- var Ge = class extends re {
51327
+ var Ze = class extends re {
51328
51328
  constructor(t, e) {
51329
51329
  t = t || {}, t.flush = t.flush || M.ZSTD_e_continue, t.finishFlush = t.finishFlush || M.ZSTD_e_end, t.fullFlushFlag = M.ZSTD_e_flush, super(t, e);
51330
51330
  }
51331
51331
  };
51332
- var Ze = class extends Ge {
51332
+ var Ye = class extends Ze {
51333
51333
  constructor(t) {
51334
51334
  super(t, "ZstdCompress");
51335
51335
  }
51336
51336
  };
51337
- var Ye = class extends Ge {
51337
+ var Ke = class extends Ze {
51338
51338
  constructor(t) {
51339
51339
  super(t, "ZstdDecompress");
51340
51340
  }
51341
51341
  };
51342
- var Ps = (s3, t) => {
51343
- if (Number.isSafeInteger(s3)) s3 < 0 ? nn(s3, t) : rn(s3, t);
51342
+ var Us = (s3, t) => {
51343
+ if (Number.isSafeInteger(s3)) s3 < 0 ? an(s3, t) : hn(s3, t);
51344
51344
  else throw Error("cannot encode number outside of javascript safe integer range");
51345
51345
  return t;
51346
51346
  };
51347
- var rn = (s3, t) => {
51347
+ var hn = (s3, t) => {
51348
51348
  t[0] = 128;
51349
51349
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
51350
51350
  };
51351
- var nn = (s3, t) => {
51351
+ var an = (s3, t) => {
51352
51352
  t[0] = 255;
51353
51353
  var e = false;
51354
51354
  s3 = s3 * -1;
51355
51355
  for (var i = t.length; i > 1; i--) {
51356
51356
  var r = s3 & 255;
51357
- s3 = Math.floor(s3 / 256), e ? t[i - 1] = Us(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Hs(r));
51357
+ s3 = Math.floor(s3 / 256), e ? t[i - 1] = Ws(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Gs(r));
51358
51358
  }
51359
51359
  };
51360
- var zs = (s3) => {
51361
- let t = s3[0], e = t === 128 ? hn(s3.subarray(1, s3.length)) : t === 255 ? on(s3) : null;
51360
+ var Hs = (s3) => {
51361
+ let t = s3[0], e = t === 128 ? cn(s3.subarray(1, s3.length)) : t === 255 ? ln(s3) : null;
51362
51362
  if (e === null) throw Error("invalid base256 encoding");
51363
51363
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
51364
51364
  return e;
51365
51365
  };
51366
- var on = (s3) => {
51366
+ var ln = (s3) => {
51367
51367
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
51368
51368
  var n = Number(s3[r]), o;
51369
- i ? o = Us(n) : n === 0 ? o = n : (i = true, o = Hs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
51369
+ i ? o = Ws(n) : n === 0 ? o = n : (i = true, o = Gs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
51370
51370
  }
51371
51371
  return e;
51372
51372
  };
51373
- var hn = (s3) => {
51373
+ var cn = (s3) => {
51374
51374
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
51375
51375
  var r = Number(s3[i]);
51376
51376
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
51377
51377
  }
51378
51378
  return e;
51379
51379
  };
51380
- var Us = (s3) => (255 ^ s3) & 255;
51381
- var Hs = (s3) => (255 ^ s3) + 1 & 255;
51382
- var Ui = {};
51383
- Br(Ui, { code: () => Ke, isCode: () => ne, isName: () => ln, name: () => oe, normalFsTypes: () => zi });
51380
+ var Ws = (s3) => (255 ^ s3) & 255;
51381
+ var Gs = (s3) => (255 ^ s3) + 1 & 255;
51382
+ var Hi = {};
51383
+ Ur(Hi, { code: () => Ve, isCode: () => ne, isName: () => dn, name: () => oe, normalFsTypes: () => Ui });
51384
51384
  var ne = (s3) => oe.has(s3);
51385
- var ln = (s3) => Ke.has(s3);
51386
- var zi = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
51385
+ var dn = (s3) => Ve.has(s3);
51386
+ var Ui = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
51387
51387
  var oe = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
51388
- var Ke = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
51389
- var C = class {
51388
+ var Ve = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
51389
+ var mn = (s3) => s3 === void 0 || s3 < 0 ? void 0 : s3;
51390
+ var F = class {
51390
51391
  cksumValid = false;
51391
51392
  needPax = false;
51392
51393
  nullBlock = false;
@@ -51413,13 +51414,13 @@ var C = class {
51413
51414
  }
51414
51415
  decode(t, e, i, r) {
51415
51416
  if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
51416
- let n = xt(t, e + 156, 1), o = zi.has(n), a = o ? i : void 0, h = o ? r : void 0;
51417
- if (this.path = a?.path ?? xt(t, e, 100), this.mode = a?.mode ?? h?.mode ?? at(t, e + 100, 8), this.uid = a?.uid ?? h?.uid ?? at(t, e + 108, 8), this.gid = a?.gid ?? h?.gid ?? at(t, e + 116, 8), this.size = a?.size ?? h?.size ?? at(t, e + 124, 12), this.mtime = a?.mtime ?? h?.mtime ?? Hi(t, e + 136, 12), this.cksum = at(t, e + 148, 12), h && this.#i(h, true), a && this.#i(a), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = a?.uname ?? h?.uname ?? xt(t, e + 265, 32), this.gname = a?.gname ?? h?.gname ?? xt(t, e + 297, 32), this.devmaj = a?.devmaj ?? h?.devmaj ?? at(t, e + 329, 8) ?? 0, this.devmin = a?.devmin ?? h?.devmin ?? at(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
51417
+ let n = xt(t, e + 156, 1), o = Ui.has(n), h = o ? i : void 0, a = o ? r : void 0;
51418
+ if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size = mn(h?.size ?? a?.size ?? lt(t, e + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t, e + 136, 12), this.cksum = lt(t, e + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t, e + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t, e + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t, e + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
51418
51419
  let c = xt(t, e + 345, 155);
51419
51420
  this.path = c + "/" + this.path;
51420
51421
  } else {
51421
51422
  let c = xt(t, e + 345, 130);
51422
- c && (this.path = c + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Hi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Hi(t, e + 488, 12);
51423
+ c && (this.path = c + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Wi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Wi(t, e + 488, 12);
51423
51424
  }
51424
51425
  let l = 256;
51425
51426
  for (let c = e; c < e + 148; c++) l += t[c];
@@ -51427,16 +51428,16 @@ var C = class {
51427
51428
  this.cksumValid = l === this.cksum, this.cksum === void 0 && l === 256 && (this.nullBlock = true);
51428
51429
  }
51429
51430
  #i(t, e = false) {
51430
- Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e || i === "linkpath" && e || i === "global"))));
51431
+ Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "size" && Number(r) < 0 || i === "path" && e || i === "linkpath" && e || i === "global"))));
51431
51432
  }
51432
51433
  encode(t, e = 0) {
51433
51434
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
51434
- let i = this.ctime || this.atime ? 130 : 155, r = cn(this.path || "", i), n = r[0], o = r[1];
51435
- this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = Wi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Wi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Wi(t, e + 488, 12, this.ctime) || this.needPax);
51436
- let a = 256;
51437
- for (let h = e; h < e + 148; h++) a += t[h];
51438
- for (let h = e + 156; h < e + 512; h++) a += t[h];
51439
- return this.cksum = a, lt(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
51435
+ let i = this.ctime || this.atime ? 130 : 155, r = un(this.path || "", i), n = r[0], o = r[1];
51436
+ this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = ct(t, e + 100, 8, this.mode) || this.needPax, this.needPax = ct(t, e + 108, 8, this.uid) || this.needPax, this.needPax = ct(t, e + 116, 8, this.gid) || this.needPax, this.needPax = ct(t, e + 124, 12, this.size) || this.needPax, this.needPax = Gi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = ct(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = ct(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Gi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Gi(t, e + 488, 12, this.ctime) || this.needPax);
51437
+ let h = 256;
51438
+ for (let a = e; a < e + 148; a++) h += t[a];
51439
+ for (let a = e + 156; a < e + 512; a++) h += t[a];
51440
+ return this.cksum = h, ct(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
51440
51441
  }
51441
51442
  get type() {
51442
51443
  return this.#t === "Unsupported" ? this.#t : oe.get(this.#t);
@@ -51445,13 +51446,13 @@ var C = class {
51445
51446
  return this.#t;
51446
51447
  }
51447
51448
  set type(t) {
51448
- let e = String(Ke.get(t));
51449
+ let e = String(Ve.get(t));
51449
51450
  if (ne(e) || e === "Unsupported") this.#t = e;
51450
51451
  else if (ne(t)) this.#t = t;
51451
51452
  else throw new TypeError("invalid entry type: " + t);
51452
51453
  }
51453
51454
  };
51454
- var cn = (s3, t) => {
51455
+ var un = (s3, t) => {
51455
51456
  let i = s3, r = "", n, o = import_node_path2.posix.parse(s3).root || ".";
51456
51457
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
51457
51458
  else {
@@ -51464,20 +51465,20 @@ var cn = (s3, t) => {
51464
51465
  return n;
51465
51466
  };
51466
51467
  var xt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
51467
- var Hi = (s3, t, e) => fn(at(s3, t, e));
51468
- var fn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
51469
- var at = (s3, t, e) => Number(s3[t]) & 128 ? zs(s3.subarray(t, t + e)) : un(s3, t, e);
51470
- var dn = (s3) => isNaN(s3) ? void 0 : s3;
51471
- var un = (s3, t, e) => dn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
51472
- var mn = { 12: 8589934591, 8: 2097151 };
51473
- var lt = (s3, t, e, i) => i === void 0 ? false : i > mn[e] || i < 0 ? (Ps(i, s3.subarray(t, t + e)), true) : (pn(s3, t, e, i), false);
51474
- var pn = (s3, t, e, i) => s3.write(En(i, e), t, e, "ascii");
51475
- var En = (s3, t) => wn(Math.floor(s3).toString(8), t);
51476
- var wn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
51477
- var Wi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
51478
- var Sn = new Array(156).join("\0");
51479
- var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + Sn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
51480
- var ct = class s {
51468
+ var Wi = (s3, t, e) => pn(lt(s3, t, e));
51469
+ var pn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
51470
+ var lt = (s3, t, e) => Number(s3[t]) & 128 ? Hs(s3.subarray(t, t + e)) : wn(s3, t, e);
51471
+ var En = (s3) => isNaN(s3) ? void 0 : s3;
51472
+ var wn = (s3, t, e) => En(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
51473
+ var Sn = { 12: 8589934591, 8: 2097151 };
51474
+ var ct = (s3, t, e, i) => i === void 0 ? false : i > Sn[e] || i < 0 ? (Us(i, s3.subarray(t, t + e)), true) : (yn(s3, t, e, i), false);
51475
+ var yn = (s3, t, e, i) => s3.write(Rn(i, e), t, e, "ascii");
51476
+ var Rn = (s3, t) => gn(Math.floor(s3).toString(8), t);
51477
+ var gn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
51478
+ var Gi = (s3, t, e, i) => i === void 0 ? false : ct(s3, t, e, i.getTime() / 1e3);
51479
+ var bn = new Array(156).join("\0");
51480
+ var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + bn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
51481
+ var ft = class s {
51481
51482
  atime;
51482
51483
  mtime;
51483
51484
  ctime;
@@ -51503,7 +51504,7 @@ var ct = class s {
51503
51504
  if (t === "") return Buffer.allocUnsafe(0);
51504
51505
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
51505
51506
  for (let n = 0; n < 512; n++) r[n] = 0;
51506
- new C({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
51507
+ new F({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
51507
51508
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
51508
51509
  return r;
51509
51510
  }
@@ -51517,24 +51518,52 @@ var ct = class s {
51517
51518
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
51518
51519
  }
51519
51520
  static parse(t, e, i = false) {
51520
- return new s(Rn(gn(t), e), i);
51521
+ return new s(On(Tn(t), e), i);
51521
51522
  }
51522
51523
  };
51523
- var Rn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
51524
- var gn = (s3) => s3.replace(/\n$/, "").split(`
51525
- `).reduce(bn, /* @__PURE__ */ Object.create(null));
51526
- var bn = (s3, t) => {
51524
+ var On = (s3, t) => t ? Object.assign({}, t, s3) : s3;
51525
+ var Tn = (s3) => s3.replace(/\n$/, "").split(`
51526
+ `).reduce(xn, /* @__PURE__ */ Object.create(null));
51527
+ var xn = (s3, t) => {
51527
51528
  let e = parseInt(t, 10);
51528
51529
  if (e !== Buffer.byteLength(t) + 1) return s3;
51529
51530
  t = t.slice((e + " ").length);
51530
51531
  let i = t.split("="), r = i.shift();
51531
51532
  if (!r) return s3;
51532
- let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
51533
- return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
51533
+ let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=").replace(/\0.*/, "");
51534
+ switch (n) {
51535
+ case "path":
51536
+ case "linkpath":
51537
+ case "type":
51538
+ case "charset":
51539
+ case "comment":
51540
+ case "gname":
51541
+ case "uname":
51542
+ s3[n] = o;
51543
+ break;
51544
+ case "ctime":
51545
+ case "atime":
51546
+ case "mtime":
51547
+ s3[n] = new Date(Number(o) * 1e3);
51548
+ break;
51549
+ case "size":
51550
+ let h = +o;
51551
+ h >= 0 && (s3[n] = h);
51552
+ break;
51553
+ case "gid":
51554
+ case "uid":
51555
+ case "dev":
51556
+ case "ino":
51557
+ case "nlink":
51558
+ case "mode":
51559
+ s3[n] = +o;
51560
+ break;
51561
+ }
51562
+ return s3;
51534
51563
  };
51535
- var _n = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
51536
- var f = _n !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
51537
- var Ve = class extends A {
51564
+ var Ln = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
51565
+ var f = Ln !== "win32" ? (s3) => String(s3) : (s3) => String(s3).replaceAll(/\\/g, "/");
51566
+ var $e = class extends A {
51538
51567
  extended;
51539
51568
  globalExtended;
51540
51569
  header;
@@ -51598,163 +51627,170 @@ var Ve = class extends A {
51598
51627
  t.path && (t.path = f(t.path)), t.linkpath && (t.linkpath = f(t.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e))));
51599
51628
  }
51600
51629
  };
51601
- var Nt = (s3, t, e, i = {}) => {
51630
+ var Dt = (s3, t, e, i = {}) => {
51602
51631
  s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
51603
51632
  };
51604
- var Tn = 1024 * 1024;
51605
- var Vi = Buffer.from([31, 139]);
51606
- var $i = Buffer.from([40, 181, 47, 253]);
51607
- var xn = Math.max(Vi.length, $i.length);
51633
+ var Nn = 1024 * 1024;
51634
+ var Xi = Buffer.from([31, 139]);
51635
+ var qi = Buffer.from([40, 181, 47, 253]);
51636
+ var An = Math.max(Xi.length, qi.length);
51608
51637
  var B = /* @__PURE__ */ Symbol("state");
51609
- var Dt = /* @__PURE__ */ Symbol("writeEntry");
51610
- var et = /* @__PURE__ */ Symbol("readEntry");
51611
- var Gi = /* @__PURE__ */ Symbol("nextEntry");
51612
- var Ws = /* @__PURE__ */ Symbol("processEntry");
51638
+ var Nt = /* @__PURE__ */ Symbol("writeEntry");
51639
+ var it = /* @__PURE__ */ Symbol("readEntry");
51640
+ var Zi = /* @__PURE__ */ Symbol("nextEntry");
51641
+ var Zs = /* @__PURE__ */ Symbol("processEntry");
51613
51642
  var V = /* @__PURE__ */ Symbol("extendedHeader");
51614
51643
  var he = /* @__PURE__ */ Symbol("globalExtendedHeader");
51615
- var ft = /* @__PURE__ */ Symbol("meta");
51616
- var Gs = /* @__PURE__ */ Symbol("emitMeta");
51644
+ var dt = /* @__PURE__ */ Symbol("meta");
51645
+ var Ys = /* @__PURE__ */ Symbol("emitMeta");
51617
51646
  var p = /* @__PURE__ */ Symbol("buffer");
51618
- var it = /* @__PURE__ */ Symbol("queue");
51619
- var dt = /* @__PURE__ */ Symbol("ended");
51620
- var Zi = /* @__PURE__ */ Symbol("emittedEnd");
51647
+ var st = /* @__PURE__ */ Symbol("queue");
51648
+ var mt = /* @__PURE__ */ Symbol("ended");
51649
+ var Yi = /* @__PURE__ */ Symbol("emittedEnd");
51621
51650
  var At = /* @__PURE__ */ Symbol("emit");
51622
51651
  var y = /* @__PURE__ */ Symbol("unzip");
51623
- var $e = /* @__PURE__ */ Symbol("consumeChunk");
51624
- var Xe = /* @__PURE__ */ Symbol("consumeChunkSub");
51625
- var Yi = /* @__PURE__ */ Symbol("consumeBody");
51626
- var Zs = /* @__PURE__ */ Symbol("consumeMeta");
51627
- var Ys = /* @__PURE__ */ Symbol("consumeHeader");
51652
+ var Xe = /* @__PURE__ */ Symbol("consumeChunk");
51653
+ var qe = /* @__PURE__ */ Symbol("consumeChunkSub");
51654
+ var Ki = /* @__PURE__ */ Symbol("consumeBody");
51655
+ var Ks = /* @__PURE__ */ Symbol("consumeMeta");
51656
+ var Vs = /* @__PURE__ */ Symbol("consumeHeader");
51628
51657
  var ae = /* @__PURE__ */ Symbol("consuming");
51629
- var Ki = /* @__PURE__ */ Symbol("bufferConcat");
51630
- var qe = /* @__PURE__ */ Symbol("maybeEnd");
51658
+ var Vi = /* @__PURE__ */ Symbol("bufferConcat");
51659
+ var Qe = /* @__PURE__ */ Symbol("maybeEnd");
51631
51660
  var Yt = /* @__PURE__ */ Symbol("writing");
51632
- var ut = /* @__PURE__ */ Symbol("aborted");
51633
- var Qe = /* @__PURE__ */ Symbol("onDone");
51661
+ var $ = /* @__PURE__ */ Symbol("aborted");
51662
+ var Je = /* @__PURE__ */ Symbol("onDone");
51634
51663
  var It = /* @__PURE__ */ Symbol("sawValidEntry");
51635
- var Je = /* @__PURE__ */ Symbol("sawNullBlock");
51636
- var je = /* @__PURE__ */ Symbol("sawEOF");
51637
- var Ks = /* @__PURE__ */ Symbol("closeStream");
51638
- var Ln = () => true;
51639
- var st = class extends import_events2.EventEmitter {
51664
+ var je = /* @__PURE__ */ Symbol("sawNullBlock");
51665
+ var ti = /* @__PURE__ */ Symbol("sawEOF");
51666
+ var $s = /* @__PURE__ */ Symbol("closeStream");
51667
+ var In = 1e3;
51668
+ var le = /* @__PURE__ */ Symbol("compressedBytesRead");
51669
+ var $i = /* @__PURE__ */ Symbol("decompressedBytesRead");
51670
+ var Xs = /* @__PURE__ */ Symbol("checkDecompressionRatio");
51671
+ var Cn = () => true;
51672
+ var rt = class extends import_events2.EventEmitter {
51640
51673
  file;
51641
51674
  strict;
51642
51675
  maxMetaEntrySize;
51643
51676
  filter;
51644
51677
  brotli;
51645
51678
  zstd;
51679
+ maxDecompressionRatio;
51646
51680
  writable = true;
51647
51681
  readable = false;
51648
- [it] = [];
51682
+ [st] = [];
51649
51683
  [p];
51650
- [et];
51651
- [Dt];
51684
+ [it];
51685
+ [Nt];
51652
51686
  [B] = "begin";
51653
- [ft] = "";
51687
+ [dt] = "";
51654
51688
  [V];
51655
51689
  [he];
51656
- [dt] = false;
51690
+ [mt] = false;
51657
51691
  [y];
51658
- [ut] = false;
51692
+ [$] = false;
51659
51693
  [It];
51660
- [Je] = false;
51661
51694
  [je] = false;
51695
+ [ti] = false;
51662
51696
  [Yt] = false;
51663
51697
  [ae] = false;
51664
- [Zi] = false;
51698
+ [Yi] = false;
51699
+ [le] = 0;
51700
+ [$i] = 0;
51665
51701
  constructor(t = {}) {
51666
- super(), this.file = t.file || "", this.on(Qe, () => {
51702
+ super(), this.file = t.file || "", this.on(Je, () => {
51667
51703
  (this[B] === "begin" || this[It] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
51668
- }), t.ondone ? this.on(Qe, t.ondone) : this.on(Qe, () => {
51704
+ }), t.ondone ? this.on(Je, t.ondone) : this.on(Je, () => {
51669
51705
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
51670
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || Tn, this.filter = typeof t.filter == "function" ? t.filter : Ln;
51706
+ }), this.strict = !!t.strict, this.maxDecompressionRatio = typeof t.maxDecompressionRatio == "number" ? t.maxDecompressionRatio : In, this.maxMetaEntrySize = t.maxMetaEntrySize || Nn, this.filter = typeof t.filter == "function" ? t.filter : Cn;
51671
51707
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
51672
51708
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
51673
51709
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
51674
- this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[Ks]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
51710
+ this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[$s]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
51675
51711
  }
51676
51712
  warn(t, e, i = {}) {
51677
- Nt(this, t, e, i);
51713
+ Dt(this, t, e, i);
51678
51714
  }
51679
- [Ys](t, e) {
51715
+ [Vs](t, e) {
51680
51716
  this[It] === void 0 && (this[It] = false);
51681
51717
  let i;
51682
51718
  try {
51683
- i = new C(t, e, this[V], this[he]);
51719
+ i = new F(t, e, this[V], this[he]);
51684
51720
  } catch (r) {
51685
51721
  return this.warn("TAR_ENTRY_INVALID", r);
51686
51722
  }
51687
- if (i.nullBlock) this[Je] ? (this[je] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[Je] = true, this[At]("nullBlock"));
51688
- else if (this[Je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
51723
+ if (i.nullBlock) this[je] ? (this[ti] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[je] = true, this[At]("nullBlock"));
51724
+ else if (this[je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
51689
51725
  else if (!i.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i });
51690
51726
  else {
51691
51727
  let r = i.type;
51692
51728
  if (/^(Symbolic)?Link$/.test(r) && !i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: i });
51693
51729
  else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
51694
51730
  else {
51695
- let n = this[Dt] = new Ve(i, this[V], this[he]);
51731
+ let n = this[Nt] = new $e(i, this[V], this[he]);
51696
51732
  if (!this[It]) if (n.remain) {
51697
51733
  let o = () => {
51698
51734
  n.invalid || (this[It] = true);
51699
51735
  };
51700
51736
  n.on("end", o);
51701
51737
  } else this[It] = true;
51702
- n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[ft] = "", n.on("data", (o) => this[ft] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[et] ? this[it].push(n) : (this[it].push(n), this[Gi]())));
51738
+ n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[dt] = "", n.on("data", (o) => this[dt] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[it] ? this[st].push(n) : (this[st].push(n), this[Zi]())));
51703
51739
  }
51704
51740
  }
51705
51741
  }
51706
- [Ks]() {
51742
+ [$s]() {
51707
51743
  queueMicrotask(() => this.emit("close"));
51708
51744
  }
51709
- [Ws](t) {
51745
+ [Zs](t) {
51710
51746
  let e = true;
51711
- if (!t) this[et] = void 0, e = false;
51747
+ if (!t) this[it] = void 0, e = false;
51712
51748
  else if (Array.isArray(t)) {
51713
51749
  let [i, ...r] = t;
51714
51750
  this.emit(i, ...r);
51715
- } else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Gi]()), e = false);
51751
+ } else this[it] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Zi]()), e = false);
51716
51752
  return e;
51717
51753
  }
51718
- [Gi]() {
51754
+ [Zi]() {
51719
51755
  do
51720
51756
  ;
51721
- while (this[Ws](this[it].shift()));
51722
- if (this[it].length === 0) {
51723
- let t = this[et];
51757
+ while (this[Zs](this[st].shift()));
51758
+ if (this[st].length === 0) {
51759
+ let t = this[it];
51724
51760
  !t || t.flowing || t.size === t.remain ? this[Yt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
51725
51761
  }
51726
51762
  }
51727
- [Yi](t, e) {
51728
- let i = this[Dt];
51763
+ [Ki](t, e) {
51764
+ let i = this[Nt];
51729
51765
  if (!i) throw new Error("attempt to consume body without entry??");
51730
51766
  let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
51731
- return i.write(n), i.blockRemain || (this[B] = "header", this[Dt] = void 0, i.end()), n.length;
51767
+ return i.write(n), i.blockRemain || (this[B] = "header", this[Nt] = void 0, i.end()), n.length;
51732
51768
  }
51733
- [Zs](t, e) {
51734
- let i = this[Dt], r = this[Yi](t, e);
51735
- return !this[Dt] && i && this[Gs](i), r;
51769
+ [Ks](t, e) {
51770
+ let i = this[Nt], r = this[Ki](t, e);
51771
+ return !this[Nt] && i && this[Ys](i), r;
51736
51772
  }
51737
51773
  [At](t, e, i) {
51738
- this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
51774
+ this[st].length === 0 && !this[it] ? this.emit(t, e, i) : this[st].push([t, e, i]);
51739
51775
  }
51740
- [Gs](t) {
51741
- switch (this[At]("meta", this[ft]), t.type) {
51776
+ [Ys](t) {
51777
+ switch (this[At]("meta", this[dt]), t.type) {
51742
51778
  case "ExtendedHeader":
51743
51779
  case "OldExtendedHeader":
51744
- this[V] = ct.parse(this[ft], this[V], false);
51780
+ this[V] = ft.parse(this[dt], this[V], false);
51745
51781
  break;
51746
51782
  case "GlobalExtendedHeader":
51747
- this[he] = ct.parse(this[ft], this[he], true);
51783
+ this[he] = ft.parse(this[dt], this[he], true);
51748
51784
  break;
51749
51785
  case "NextFileHasLongPath":
51750
51786
  case "OldGnuLongPath": {
51751
51787
  let e = this[V] ?? /* @__PURE__ */ Object.create(null);
51752
- this[V] = e, e.path = this[ft].replace(/\0.*/, "");
51788
+ this[V] = e, e.path = this[dt].replace(/\0.*/, "");
51753
51789
  break;
51754
51790
  }
51755
51791
  case "NextFileHasLongLinkpath": {
51756
51792
  let e = this[V] || /* @__PURE__ */ Object.create(null);
51757
- this[V] = e, e.linkpath = this[ft].replace(/\0.*/, "");
51793
+ this[V] = e, e.linkpath = this[dt].replace(/\0.*/, "");
51758
51794
  break;
51759
51795
  }
51760
51796
  default:
@@ -51762,86 +51798,95 @@ var st = class extends import_events2.EventEmitter {
51762
51798
  }
51763
51799
  }
51764
51800
  abort(t) {
51765
- this[ut] = true, this.emit("abort", t), this.warn("TAR_ABORT", t, { recoverable: false });
51801
+ this[$] || (this[$] = true, this.emit("abort", t), this.warn("TAR_ABORT", t, { recoverable: false }));
51802
+ }
51803
+ [Xs](t) {
51804
+ this[$i] += t.length;
51805
+ let e = this[$i] / this[le];
51806
+ return e > this.maxDecompressionRatio ? (this.abort(new Error(`max decompression ratio exceeded: ${e.toFixed(2)} > ${this.maxDecompressionRatio}`)), false) : true;
51766
51807
  }
51767
51808
  write(t, e, i) {
51768
- if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
51809
+ if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[$]) return i?.(), false;
51769
51810
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
51770
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < xn) return this[p] = t, i?.(), true;
51771
- for (let h = 0; this[y] === void 0 && h < Vi.length; h++) t[h] !== Vi[h] && (this[y] = false);
51811
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < An) return this[p] = t, i?.(), true;
51812
+ for (let a = 0; this[y] === void 0 && a < Xi.length; a++) t[a] !== Xi[a] && (this[y] = false);
51772
51813
  let o = false;
51773
51814
  if (this[y] === false && this.zstd !== false) {
51774
51815
  o = true;
51775
- for (let h = 0; h < $i.length; h++) if (t[h] !== $i[h]) {
51816
+ for (let a = 0; a < qi.length; a++) if (t[a] !== qi[a]) {
51776
51817
  o = false;
51777
51818
  break;
51778
51819
  }
51779
51820
  }
51780
- let a = this.brotli === void 0 && !o;
51781
- if (this[y] === false && a) if (t.length < 512) if (this[dt]) this.brotli = true;
51821
+ let h = this.brotli === void 0 && !o;
51822
+ if (this[y] === false && h) if (t.length < 512) if (this[mt]) this.brotli = true;
51782
51823
  else return this[p] = t, i?.(), true;
51783
51824
  else try {
51784
- new C(t.subarray(0, 512)), this.brotli = false;
51825
+ new F(t.subarray(0, 512)), this.brotli = false;
51785
51826
  } catch {
51786
51827
  this.brotli = true;
51787
51828
  }
51788
51829
  if (this[y] === void 0 || this[y] === false && (this.brotli || o)) {
51789
- let h = this[dt];
51790
- this[dt] = false, this[y] = this[y] === void 0 ? new ze({}) : o ? new Ye({}) : new We({}), this[y].on("data", (c) => this[$e](c)), this[y].on("error", (c) => this.abort(c)), this[y].on("end", () => {
51791
- this[dt] = true, this[$e]();
51792
- }), this[Yt] = true;
51793
- let l = !!this[y][h ? "end" : "write"](t);
51830
+ let a = this[mt];
51831
+ this[mt] = false, this[y] = this[y] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[y].on("data", (c) => {
51832
+ this[Xs](c) && this[Xe](c);
51833
+ }), this[y].on("error", (c) => {
51834
+ this[$] || this.abort(c);
51835
+ }), this[y].on("end", () => {
51836
+ this[mt] = true, this[Xe]();
51837
+ }), this[Yt] = true, this[le] += t.length;
51838
+ let l = !!this[y][a ? "end" : "write"](t);
51794
51839
  return this[Yt] = false, i?.(), l;
51795
51840
  }
51796
51841
  }
51797
- this[Yt] = true, this[y] ? this[y].write(t) : this[$e](t), this[Yt] = false;
51798
- let n = this[it].length > 0 ? false : this[et] ? this[et].flowing : true;
51799
- return !n && this[it].length === 0 && this[et]?.once("drain", () => this.emit("drain")), i?.(), n;
51842
+ this[Yt] = true, this[y] ? (this[le] += t.length, this[y].write(t)) : this[Xe](t), this[Yt] = false;
51843
+ let n = this[st].length > 0 ? false : this[it] ? this[it].flowing : true;
51844
+ return !n && this[st].length === 0 && this[it]?.once("drain", () => this.emit("drain")), i?.(), n;
51800
51845
  }
51801
- [Ki](t) {
51802
- t && !this[ut] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
51846
+ [Vi](t) {
51847
+ t && !this[$] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
51803
51848
  }
51804
- [qe]() {
51805
- if (this[dt] && !this[Zi] && !this[ut] && !this[ae]) {
51806
- this[Zi] = true;
51807
- let t = this[Dt];
51808
- if (t && t.blockRemain) {
51849
+ [Qe]() {
51850
+ if (this[mt] && !this[Yi] && !this[$] && !this[ae]) {
51851
+ this[Yi] = true;
51852
+ let t = this[Nt];
51853
+ if (t?.blockRemain) {
51809
51854
  let e = this[p] ? this[p].length : 0;
51810
51855
  this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`, { entry: t }), this[p] && t.write(this[p]), t.end();
51811
51856
  }
51812
- this[At](Qe);
51857
+ this[At](Je);
51813
51858
  }
51814
51859
  }
51815
- [$e](t) {
51816
- if (this[ae] && t) this[Ki](t);
51817
- else if (!t && !this[p]) this[qe]();
51860
+ [Xe](t) {
51861
+ if (this[ae] && t) this[Vi](t);
51862
+ else if (!t && !this[p]) this[Qe]();
51818
51863
  else if (t) {
51819
51864
  if (this[ae] = true, this[p]) {
51820
- this[Ki](t);
51865
+ this[Vi](t);
51821
51866
  let e = this[p];
51822
- this[p] = void 0, this[Xe](e);
51823
- } else this[Xe](t);
51824
- for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[je]; ) {
51867
+ this[p] = void 0, this[qe](e);
51868
+ } else this[qe](t);
51869
+ for (; this[p] && this[p]?.length >= 512 && !this[$] && !this[ti]; ) {
51825
51870
  let e = this[p];
51826
- this[p] = void 0, this[Xe](e);
51871
+ this[p] = void 0, this[qe](e);
51827
51872
  }
51828
51873
  this[ae] = false;
51829
51874
  }
51830
- (!this[p] || this[dt]) && this[qe]();
51875
+ (!this[p] || this[mt]) && this[Qe]();
51831
51876
  }
51832
- [Xe](t) {
51877
+ [qe](t) {
51833
51878
  let e = 0, i = t.length;
51834
- for (; e + 512 <= i && !this[ut] && !this[je]; ) switch (this[B]) {
51879
+ for (; e + 512 <= i && !this[$] && !this[ti]; ) switch (this[B]) {
51835
51880
  case "begin":
51836
51881
  case "header":
51837
- this[Ys](t, e), e += 512;
51882
+ this[Vs](t, e), e += 512;
51838
51883
  break;
51839
51884
  case "ignore":
51840
51885
  case "body":
51841
- e += this[Yi](t, e);
51886
+ e += this[Ki](t, e);
51842
51887
  break;
51843
51888
  case "meta":
51844
- e += this[Zs](t, e);
51889
+ e += this[Ks](t, e);
51845
51890
  break;
51846
51891
  default:
51847
51892
  throw new Error("invalid state: " + this[B]);
@@ -51849,46 +51894,46 @@ var st = class extends import_events2.EventEmitter {
51849
51894
  e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
51850
51895
  }
51851
51896
  end(t, e, i) {
51852
- return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[ut] || (this[y] ? (t && this[y].write(t), this[y].end()) : (this[dt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[qe]())), this;
51897
+ return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[y] ? (t && (this[le] += t.length, this[y].write(t)), this[y].end()) : (this[mt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Qe]())), this;
51853
51898
  }
51854
51899
  };
51855
- var mt = (s3) => {
51900
+ var ut = (s3) => {
51856
51901
  let t = s3.length - 1, e = -1;
51857
51902
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
51858
51903
  return e === -1 ? s3 : s3.slice(0, e);
51859
51904
  };
51860
- var An = (s3) => {
51905
+ var vn = (s3) => {
51861
51906
  let t = s3.onReadEntry;
51862
51907
  s3.onReadEntry = t ? (e) => {
51863
51908
  t(e), e.resume();
51864
51909
  } : (e) => e.resume();
51865
51910
  };
51866
- var Xi = (s3, t) => {
51867
- let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
51868
- let a = o || (0, import_path.parse)(n).root || ".", h;
51869
- if (n === a) h = false;
51911
+ var Qi = (s3, t) => {
51912
+ let e = new Map(t.map((n) => [ut(n), true])), i = s3.filter, r = (n, o = "") => {
51913
+ let h = o || (0, import_path.parse)(n).root || ".", a;
51914
+ if (n === h) a = false;
51870
51915
  else {
51871
51916
  let l = e.get(n);
51872
- h = l !== void 0 ? l : r((0, import_path.dirname)(n), a);
51917
+ a = l !== void 0 ? l : r((0, import_path.dirname)(n), h);
51873
51918
  }
51874
- return e.set(n, h), h;
51919
+ return e.set(n, a), a;
51875
51920
  };
51876
- s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
51921
+ s3.filter = i ? (n, o) => i(n, o) && r(ut(n)) : (n) => r(ut(n));
51877
51922
  };
51878
- var In = (s3) => {
51879
- let t = new st(s3), e = s3.file, i;
51923
+ var Mn = (s3) => {
51924
+ let t = new rt(s3), e = s3.file, i;
51880
51925
  try {
51881
51926
  i = import_node_fs.default.openSync(e, "r");
51882
51927
  let r = import_node_fs.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
51883
51928
  if (r.size < n) {
51884
- let o = Buffer.allocUnsafe(r.size), a = import_node_fs.default.readSync(i, o, 0, r.size, 0);
51885
- t.end(a === o.byteLength ? o : o.subarray(0, a));
51929
+ let o = Buffer.allocUnsafe(r.size), h = import_node_fs.default.readSync(i, o, 0, r.size, 0);
51930
+ t.end(h === o.byteLength ? o : o.subarray(0, h));
51886
51931
  } else {
51887
- let o = 0, a = Buffer.allocUnsafe(n);
51932
+ let o = 0, h = Buffer.allocUnsafe(n);
51888
51933
  for (; o < r.size; ) {
51889
- let h = import_node_fs.default.readSync(i, a, 0, n, o);
51890
- if (h === 0) break;
51891
- o += h, t.write(a.subarray(0, h));
51934
+ let a = import_node_fs.default.readSync(i, h, 0, n, o);
51935
+ if (a === 0) break;
51936
+ o += a, t.write(h.subarray(0, a));
51892
51937
  }
51893
51938
  t.end();
51894
51939
  }
@@ -51899,58 +51944,58 @@ var In = (s3) => {
51899
51944
  }
51900
51945
  }
51901
51946
  };
51902
- var Fn = (s3, t) => {
51903
- let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
51904
- return new Promise((o, a) => {
51905
- e.on("error", a), e.on("end", o), import_node_fs.default.stat(r, (h, l) => {
51906
- if (h) a(h);
51947
+ var Bn = (s3, t) => {
51948
+ let e = new rt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
51949
+ return new Promise((o, h) => {
51950
+ e.on("error", h), e.on("end", o), import_node_fs.default.stat(r, (a, l) => {
51951
+ if (a) h(a);
51907
51952
  else {
51908
51953
  let c = new _t(r, { readSize: i, size: l.size });
51909
- c.on("error", a), c.pipe(e);
51954
+ c.on("error", h), c.pipe(e);
51910
51955
  }
51911
51956
  });
51912
51957
  });
51913
51958
  };
51914
- var Ft = K(In, Fn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
51915
- t?.length && Xi(s3, t), s3.noResume || An(s3);
51916
- });
51917
- var qi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
51918
- var { isAbsolute: kn, parse: Vs } = import_node_path4.win32;
51919
- var le = (s3) => {
51920
- let t = "", e = Vs(s3);
51921
- for (; kn(s3) || e.root; ) {
51959
+ var Ct = K(Mn, Bn, (s3) => new rt(s3), (s3) => new rt(s3), (s3, t) => {
51960
+ t?.length && Qi(s3, t), s3.noResume || vn(s3);
51961
+ });
51962
+ var Ji = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
51963
+ var { isAbsolute: zn, parse: qs } = import_node_path4.win32;
51964
+ var ce = (s3) => {
51965
+ let t = "", e = qs(s3);
51966
+ for (; zn(s3) || e.root; ) {
51922
51967
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
51923
- s3 = s3.slice(i.length), t += i, e = Vs(s3);
51968
+ s3 = s3.slice(i.length), t += i, e = qs(s3);
51924
51969
  }
51925
51970
  return [t, s3];
51926
51971
  };
51927
- var ti = ["|", "<", ">", "?", ":"];
51928
- var Qi = ti.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
51929
- var vn = new Map(ti.map((s3, t) => [s3, Qi[t]]));
51930
- var Mn = new Map(Qi.map((s3, t) => [s3, ti[t]]));
51931
- var Ji = (s3) => ti.reduce((t, e) => t.split(e).join(vn.get(e)), s3);
51932
- var $s = (s3) => Qi.reduce((t, e) => t.split(e).join(Mn.get(e)), s3);
51933
- var er = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
51934
- var Bn = 16 * 1024 * 1024;
51935
- var Qs = /* @__PURE__ */ Symbol("process");
51936
- var Js = /* @__PURE__ */ Symbol("file");
51937
- var js = /* @__PURE__ */ Symbol("directory");
51938
- var ts = /* @__PURE__ */ Symbol("symlink");
51939
- var tr = /* @__PURE__ */ Symbol("hardlink");
51940
- var ce = /* @__PURE__ */ Symbol("header");
51941
- var ei = /* @__PURE__ */ Symbol("read");
51942
- var es = /* @__PURE__ */ Symbol("lstat");
51943
- var ii = /* @__PURE__ */ Symbol("onlstat");
51944
- var is = /* @__PURE__ */ Symbol("onread");
51945
- var ss = /* @__PURE__ */ Symbol("onreadlink");
51946
- var rs = /* @__PURE__ */ Symbol("openfile");
51947
- var ns = /* @__PURE__ */ Symbol("onopenfile");
51972
+ var ei = ["|", "<", ">", "?", ":"];
51973
+ var ji = ei.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
51974
+ var Un = new Map(ei.map((s3, t) => [s3, ji[t]]));
51975
+ var Hn = new Map(ji.map((s3, t) => [s3, ei[t]]));
51976
+ var ts = (s3) => ei.reduce((t, e) => t.split(e).join(Un.get(e)), s3);
51977
+ var Qs = (s3) => ji.reduce((t, e) => t.split(e).join(Hn.get(e)), s3);
51978
+ var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), ut(t) + "/" + s3) : f(s3);
51979
+ var Wn = 16 * 1024 * 1024;
51980
+ var tr = /* @__PURE__ */ Symbol("process");
51981
+ var er = /* @__PURE__ */ Symbol("file");
51982
+ var ir = /* @__PURE__ */ Symbol("directory");
51983
+ var is = /* @__PURE__ */ Symbol("symlink");
51984
+ var sr = /* @__PURE__ */ Symbol("hardlink");
51985
+ var fe = /* @__PURE__ */ Symbol("header");
51986
+ var ii = /* @__PURE__ */ Symbol("read");
51987
+ var ss = /* @__PURE__ */ Symbol("lstat");
51988
+ var si = /* @__PURE__ */ Symbol("onlstat");
51989
+ var rs = /* @__PURE__ */ Symbol("onread");
51990
+ var ns = /* @__PURE__ */ Symbol("onreadlink");
51991
+ var os = /* @__PURE__ */ Symbol("openfile");
51992
+ var hs = /* @__PURE__ */ Symbol("onopenfile");
51948
51993
  var pt = /* @__PURE__ */ Symbol("close");
51949
- var si = /* @__PURE__ */ Symbol("mode");
51950
- var os = /* @__PURE__ */ Symbol("awaitDrain");
51951
- var ji = /* @__PURE__ */ Symbol("ondrain");
51952
- var X = /* @__PURE__ */ Symbol("prefix");
51953
- var fe = class extends A {
51994
+ var ri = /* @__PURE__ */ Symbol("mode");
51995
+ var as = /* @__PURE__ */ Symbol("awaitDrain");
51996
+ var es = /* @__PURE__ */ Symbol("ondrain");
51997
+ var q = /* @__PURE__ */ Symbol("prefix");
51998
+ var de = class extends A {
51954
51999
  path;
51955
52000
  portable;
51956
52001
  myuid = process.getuid && process.getuid() || 0;
@@ -51983,109 +52028,109 @@ var fe = class extends A {
51983
52028
  #t = false;
51984
52029
  constructor(t, e = {}) {
51985
52030
  let i = se(e);
51986
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Bn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52031
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Wn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
51987
52032
  let r = false;
51988
52033
  if (!this.preservePaths) {
51989
- let [o, a] = le(this.path);
51990
- o && typeof a == "string" && (this.path = a, r = o);
52034
+ let [o, h] = ce(this.path);
52035
+ o && typeof h == "string" && (this.path = h, r = o);
51991
52036
  }
51992
- this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || import_path2.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
52037
+ this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Qs(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || import_path2.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
51993
52038
  let n = this.statCache.get(this.absolute);
51994
- n ? this[ii](n) : this[es]();
52039
+ n ? this[si](n) : this[ss]();
51995
52040
  }
51996
52041
  warn(t, e, i = {}) {
51997
- return Nt(this, t, e, i);
52042
+ return Dt(this, t, e, i);
51998
52043
  }
51999
52044
  emit(t, ...e) {
52000
52045
  return t === "error" && (this.#t = true), super.emit(t, ...e);
52001
52046
  }
52002
- [es]() {
52047
+ [ss]() {
52003
52048
  import_fs3.default.lstat(this.absolute, (t, e) => {
52004
52049
  if (t) return this.emit("error", t);
52005
- this[ii](e);
52050
+ this[si](e);
52006
52051
  });
52007
52052
  }
52008
- [ii](t) {
52009
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Pn(t), this.emit("stat", t), this[Qs]();
52053
+ [si](t) {
52054
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Gn(t), this.emit("stat", t), this[tr]();
52010
52055
  }
52011
- [Qs]() {
52056
+ [tr]() {
52012
52057
  switch (this.type) {
52013
52058
  case "File":
52014
- return this[Js]();
52059
+ return this[er]();
52015
52060
  case "Directory":
52016
- return this[js]();
52061
+ return this[ir]();
52017
52062
  case "SymbolicLink":
52018
- return this[ts]();
52063
+ return this[is]();
52019
52064
  default:
52020
52065
  return this.end();
52021
52066
  }
52022
52067
  }
52023
- [si](t) {
52024
- return qi(t, this.type === "Directory", this.portable);
52068
+ [ri](t) {
52069
+ return Ji(t, this.type === "Directory", this.portable);
52025
52070
  }
52026
- [X](t) {
52027
- return er(t, this.prefix);
52071
+ [q](t) {
52072
+ return rr(t, this.prefix);
52028
52073
  }
52029
- [ce]() {
52074
+ [fe]() {
52030
52075
  if (!this.stat) throw new Error("cannot write header before stat");
52031
- this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
52076
+ this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new F({ path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, mode: this[ri](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ft({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
52032
52077
  let t = this.header?.block;
52033
52078
  if (!t) throw new Error("failed to encode header");
52034
52079
  super.write(t);
52035
52080
  }
52036
- [js]() {
52081
+ [ir]() {
52037
52082
  if (!this.stat) throw new Error("cannot create directory entry without stat");
52038
- this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce](), this.end();
52083
+ this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
52039
52084
  }
52040
- [ts]() {
52085
+ [is]() {
52041
52086
  import_fs3.default.readlink(this.absolute, (t, e) => {
52042
52087
  if (t) return this.emit("error", t);
52043
- this[ss](e);
52088
+ this[ns](e);
52044
52089
  });
52045
52090
  }
52046
- [ss](t) {
52047
- this.linkpath = f(t), this[ce](), this.end();
52091
+ [ns](t) {
52092
+ this.linkpath = f(t), this[fe](), this.end();
52048
52093
  }
52049
- [tr](t) {
52094
+ [sr](t) {
52050
52095
  if (!this.stat) throw new Error("cannot create link entry without stat");
52051
- this.type = "Link", this.linkpath = f(import_path2.default.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
52096
+ this.type = "Link", this.linkpath = f(import_path2.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
52052
52097
  }
52053
- [Js]() {
52098
+ [er]() {
52054
52099
  if (!this.stat) throw new Error("cannot create file entry without stat");
52055
52100
  if (this.stat.nlink > 1) {
52056
52101
  let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
52057
- if (e?.indexOf(this.cwd) === 0) return this[tr](e);
52102
+ if (e?.indexOf(this.cwd) === 0) return this[sr](e);
52058
52103
  this.linkCache.set(t, this.absolute);
52059
52104
  }
52060
- if (this[ce](), this.stat.size === 0) return this.end();
52061
- this[rs]();
52105
+ if (this[fe](), this.stat.size === 0) return this.end();
52106
+ this[os]();
52062
52107
  }
52063
- [rs]() {
52108
+ [os]() {
52064
52109
  import_fs3.default.open(this.absolute, "r", (t, e) => {
52065
52110
  if (t) return this.emit("error", t);
52066
- this[ns](e);
52111
+ this[hs](e);
52067
52112
  });
52068
52113
  }
52069
- [ns](t) {
52114
+ [hs](t) {
52070
52115
  if (this.fd = t, this.#t) return this[pt]();
52071
52116
  if (!this.stat) throw new Error("should stat before calling onopenfile");
52072
52117
  this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
52073
52118
  let e = Math.min(this.blockLen, this.maxReadSize);
52074
- this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ei]();
52119
+ this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ii]();
52075
52120
  }
52076
- [ei]() {
52121
+ [ii]() {
52077
52122
  let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
52078
52123
  if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
52079
- import_fs3.default.read(t, e, i, r, n, (o, a) => {
52124
+ import_fs3.default.read(t, e, i, r, n, (o, h) => {
52080
52125
  if (o) return this[pt](() => this.emit("error", o));
52081
- this[is](a);
52126
+ this[rs](h);
52082
52127
  });
52083
52128
  }
52084
52129
  [pt](t = () => {
52085
52130
  }) {
52086
52131
  this.fd !== void 0 && import_fs3.default.close(this.fd, t);
52087
52132
  }
52088
- [is](t) {
52133
+ [rs](t) {
52089
52134
  if (t <= 0 && this.remain > 0) {
52090
52135
  let r = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
52091
52136
  return this[pt](() => this.emit("error", r));
@@ -52097,9 +52142,9 @@ var fe = class extends A {
52097
52142
  if (!this.buf) throw new Error("should have created buffer prior to reading");
52098
52143
  if (t === this.remain) for (let r = t; r < this.length && t < this.blockRemain; r++) this.buf[r + this.offset] = 0, t++, this.remain++;
52099
52144
  let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
52100
- this.write(e) ? this[ji]() : this[os](() => this[ji]());
52145
+ this.write(e) ? this[es]() : this[as](() => this[es]());
52101
52146
  }
52102
- [os](t) {
52147
+ [as](t) {
52103
52148
  this.once("drain", t);
52104
52149
  }
52105
52150
  write(t, e, i) {
@@ -52109,30 +52154,30 @@ var fe = class extends A {
52109
52154
  }
52110
52155
  return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
52111
52156
  }
52112
- [ji]() {
52157
+ [es]() {
52113
52158
  if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
52114
52159
  if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
52115
- this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ei]();
52160
+ this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[ii]();
52116
52161
  }
52117
52162
  };
52118
- var ri = class extends fe {
52163
+ var ni = class extends de {
52119
52164
  sync = true;
52120
- [es]() {
52121
- this[ii](import_fs3.default.lstatSync(this.absolute));
52165
+ [ss]() {
52166
+ this[si](import_fs3.default.lstatSync(this.absolute));
52122
52167
  }
52123
- [ts]() {
52124
- this[ss](import_fs3.default.readlinkSync(this.absolute));
52168
+ [is]() {
52169
+ this[ns](import_fs3.default.readlinkSync(this.absolute));
52125
52170
  }
52126
- [rs]() {
52127
- this[ns](import_fs3.default.openSync(this.absolute, "r"));
52171
+ [os]() {
52172
+ this[hs](import_fs3.default.openSync(this.absolute, "r"));
52128
52173
  }
52129
- [ei]() {
52174
+ [ii]() {
52130
52175
  let t = true;
52131
52176
  try {
52132
52177
  let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
52133
52178
  if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
52134
- let a = import_fs3.default.readSync(e, i, r, n, o);
52135
- this[is](a), t = false;
52179
+ let h = import_fs3.default.readSync(e, i, r, n, o);
52180
+ this[rs](h), t = false;
52136
52181
  } finally {
52137
52182
  if (t) try {
52138
52183
  this[pt](() => {
@@ -52141,7 +52186,7 @@ var ri = class extends fe {
52141
52186
  }
52142
52187
  }
52143
52188
  }
52144
- [os](t) {
52189
+ [as](t) {
52145
52190
  t();
52146
52191
  }
52147
52192
  [pt](t = () => {
@@ -52149,7 +52194,7 @@ var ri = class extends fe {
52149
52194
  this.fd !== void 0 && import_fs3.default.closeSync(this.fd), t();
52150
52195
  }
52151
52196
  };
52152
- var ni = class extends A {
52197
+ var oi = class extends A {
52153
52198
  blockLen = 0;
52154
52199
  blockRemain = 0;
52155
52200
  buf = 0;
@@ -52178,29 +52223,29 @@ var ni = class extends A {
52178
52223
  size;
52179
52224
  onWriteEntry;
52180
52225
  warn(t, e, i = {}) {
52181
- return Nt(this, t, e, i);
52226
+ return Dt(this, t, e, i);
52182
52227
  }
52183
52228
  constructor(t, e = {}) {
52184
52229
  let i = se(e);
52185
52230
  super(), this.preservePaths = !!i.preservePaths, this.portable = !!i.portable, this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.onWriteEntry = i.onWriteEntry, this.readEntry = t;
52186
52231
  let { type: r } = t;
52187
52232
  if (r === "Unsupported") throw new Error("writing entry that should be ignored");
52188
- this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[si](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52233
+ this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[ri](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52189
52234
  let n = false;
52190
52235
  if (!this.preservePaths) {
52191
- let [a, h] = le(this.path);
52192
- a && typeof h == "string" && (this.path = h, n = a);
52236
+ let [h, a] = ce(this.path);
52237
+ h && typeof a == "string" && (this.path = a, n = h);
52193
52238
  }
52194
- this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
52239
+ this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new F({ path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ft({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
52195
52240
  let o = this.header?.block;
52196
52241
  if (!o) throw new Error("failed to encode header");
52197
52242
  super.write(o), t.pipe(this);
52198
52243
  }
52199
- [X](t) {
52200
- return er(t, this.prefix);
52244
+ [q](t) {
52245
+ return rr(t, this.prefix);
52201
52246
  }
52202
- [si](t) {
52203
- return qi(t, this.type === "Directory", this.portable);
52247
+ [ri](t) {
52248
+ return Ji(t, this.type === "Directory", this.portable);
52204
52249
  }
52205
52250
  write(t, e, i) {
52206
52251
  typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8"));
@@ -52212,8 +52257,8 @@ var ni = class extends A {
52212
52257
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
52213
52258
  }
52214
52259
  };
52215
- var Pn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
52216
- var oi = class s2 {
52260
+ var Gn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
52261
+ var hi = class s2 {
52217
52262
  tail;
52218
52263
  head;
52219
52264
  length = 0;
@@ -52244,11 +52289,11 @@ var oi = class s2 {
52244
52289
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
52245
52290
  }
52246
52291
  push(...t) {
52247
- for (let e = 0, i = t.length; e < i; e++) Un(this, t[e]);
52292
+ for (let e = 0, i = t.length; e < i; e++) Yn(this, t[e]);
52248
52293
  return this.length;
52249
52294
  }
52250
52295
  unshift(...t) {
52251
- for (var e = 0, i = t.length; e < i; e++) Hn(this, t[e]);
52296
+ for (var e = 0, i = t.length; e < i; e++) Kn(this, t[e]);
52252
52297
  return this.length;
52253
52298
  }
52254
52299
  pop() {
@@ -52344,7 +52389,7 @@ var oi = class s2 {
52344
52389
  let n = [];
52345
52390
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
52346
52391
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
52347
- for (let o of i) r = zn(this, r, o);
52392
+ for (let o of i) r = Zn(this, r, o);
52348
52393
  return n;
52349
52394
  }
52350
52395
  reverse() {
@@ -52356,17 +52401,17 @@ var oi = class s2 {
52356
52401
  return this.head = e, this.tail = t, this;
52357
52402
  }
52358
52403
  };
52359
- function zn(s3, t, e) {
52360
- let i = t, r = t ? t.next : s3.head, n = new de(e, i, r, s3);
52404
+ function Zn(s3, t, e) {
52405
+ let i = t, r = t ? t.next : s3.head, n = new me(e, i, r, s3);
52361
52406
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
52362
52407
  }
52363
- function Un(s3, t) {
52364
- s3.tail = new de(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
52408
+ function Yn(s3, t) {
52409
+ s3.tail = new me(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
52365
52410
  }
52366
- function Hn(s3, t) {
52367
- s3.head = new de(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
52411
+ function Kn(s3, t) {
52412
+ s3.head = new me(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
52368
52413
  }
52369
- var de = class {
52414
+ var me = class {
52370
52415
  list;
52371
52416
  next;
52372
52417
  prev;
@@ -52375,7 +52420,7 @@ var de = class {
52375
52420
  this.list = r, this.value = t, e ? (e.next = this, this.prev = e) : this.prev = void 0, i ? (i.prev = this, this.next = i) : this.next = void 0;
52376
52421
  }
52377
52422
  };
52378
- var mi = class {
52423
+ var pi = class {
52379
52424
  path;
52380
52425
  absolute;
52381
52426
  entry;
@@ -52389,28 +52434,28 @@ var mi = class {
52389
52434
  this.path = t || "./", this.absolute = e;
52390
52435
  }
52391
52436
  };
52392
- var ir = Buffer.alloc(1024);
52393
- var ai = /* @__PURE__ */ Symbol("onStat");
52437
+ var nr = Buffer.alloc(1024);
52438
+ var li = /* @__PURE__ */ Symbol("onStat");
52394
52439
  var ue = /* @__PURE__ */ Symbol("ended");
52395
52440
  var W = /* @__PURE__ */ Symbol("queue");
52396
- var me = /* @__PURE__ */ Symbol("pendingLinks");
52441
+ var pe = /* @__PURE__ */ Symbol("pendingLinks");
52397
52442
  var Et = /* @__PURE__ */ Symbol("current");
52398
- var Ct = /* @__PURE__ */ Symbol("process");
52399
- var pe = /* @__PURE__ */ Symbol("processing");
52400
- var hi = /* @__PURE__ */ Symbol("processJob");
52443
+ var Ft = /* @__PURE__ */ Symbol("process");
52444
+ var Ee = /* @__PURE__ */ Symbol("processing");
52445
+ var ai = /* @__PURE__ */ Symbol("processJob");
52401
52446
  var G = /* @__PURE__ */ Symbol("jobs");
52402
- var hs = /* @__PURE__ */ Symbol("jobDone");
52403
- var li = /* @__PURE__ */ Symbol("addFSEntry");
52404
- var sr = /* @__PURE__ */ Symbol("addTarEntry");
52405
- var cs = /* @__PURE__ */ Symbol("stat");
52406
- var fs = /* @__PURE__ */ Symbol("readdir");
52407
- var ci = /* @__PURE__ */ Symbol("onreaddir");
52408
- var fi = /* @__PURE__ */ Symbol("pipe");
52409
- var rr = /* @__PURE__ */ Symbol("entry");
52410
- var as = /* @__PURE__ */ Symbol("entryOpt");
52411
- var di = /* @__PURE__ */ Symbol("writeEntryClass");
52412
- var or = /* @__PURE__ */ Symbol("write");
52413
- var ls = /* @__PURE__ */ Symbol("ondrain");
52447
+ var ls = /* @__PURE__ */ Symbol("jobDone");
52448
+ var ci = /* @__PURE__ */ Symbol("addFSEntry");
52449
+ var or = /* @__PURE__ */ Symbol("addTarEntry");
52450
+ var ds = /* @__PURE__ */ Symbol("stat");
52451
+ var ms = /* @__PURE__ */ Symbol("readdir");
52452
+ var fi = /* @__PURE__ */ Symbol("onreaddir");
52453
+ var di = /* @__PURE__ */ Symbol("pipe");
52454
+ var hr = /* @__PURE__ */ Symbol("entry");
52455
+ var cs = /* @__PURE__ */ Symbol("entryOpt");
52456
+ var mi = /* @__PURE__ */ Symbol("writeEntryClass");
52457
+ var lr = /* @__PURE__ */ Symbol("write");
52458
+ var fs = /* @__PURE__ */ Symbol("ondrain");
52414
52459
  var wt = class extends A {
52415
52460
  sync = false;
52416
52461
  opt;
@@ -52432,139 +52477,139 @@ var wt = class extends A {
52432
52477
  mtime;
52433
52478
  filter;
52434
52479
  jobs;
52435
- [di];
52480
+ [mi];
52436
52481
  onWriteEntry;
52437
52482
  [W];
52438
- [me] = /* @__PURE__ */ new Map();
52483
+ [pe] = /* @__PURE__ */ new Map();
52439
52484
  [G] = 0;
52440
- [pe] = false;
52485
+ [Ee] = false;
52441
52486
  [ue] = false;
52442
52487
  constructor(t = {}) {
52443
- if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
52488
+ if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[mi] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
52444
52489
  if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
52445
- if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
52490
+ if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new ze(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new We(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ye(t.zstd)), !this.zip) throw new Error("impossible");
52446
52491
  let e = this.zip;
52447
- e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
52448
- } else this.on("drain", this[ls]);
52449
- this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new oi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[pe] = false, this[ue] = false;
52492
+ e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[fs]()), this.on("resume", () => e.resume());
52493
+ } else this.on("drain", this[fs]);
52494
+ this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[ue] = false;
52450
52495
  }
52451
- [or](t) {
52496
+ [lr](t) {
52452
52497
  return super.write(t);
52453
52498
  }
52454
52499
  add(t) {
52455
52500
  return this.write(t), this;
52456
52501
  }
52457
52502
  end(t, e, i) {
52458
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ct](), i && i(), this;
52503
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ft](), i && i(), this;
52459
52504
  }
52460
52505
  write(t) {
52461
52506
  if (this[ue]) throw new Error("write after end");
52462
- return typeof t == "string" ? this[li](t) : this[sr](t), this.flowing;
52507
+ return typeof t == "string" ? this[ci](t) : this[or](t), this.flowing;
52463
52508
  }
52464
- [sr](t) {
52509
+ [or](t) {
52465
52510
  let e = f(import_path3.default.resolve(this.cwd, t.path));
52466
52511
  if (!this.filter(t.path, t)) t.resume();
52467
52512
  else {
52468
- let i = new mi(t.path, e);
52469
- i.entry = new ni(t, this[as](i)), i.entry.on("end", () => this[hs](i)), this[G] += 1, this[W].push(i);
52513
+ let i = new pi(t.path, e);
52514
+ i.entry = new oi(t, this[cs](i)), i.entry.on("end", () => this[ls](i)), this[G] += 1, this[W].push(i);
52470
52515
  }
52471
- this[Ct]();
52516
+ this[Ft]();
52472
52517
  }
52473
- [li](t) {
52518
+ [ci](t) {
52474
52519
  let e = f(import_path3.default.resolve(this.cwd, t));
52475
- this[W].push(new mi(t, e)), this[Ct]();
52520
+ this[W].push(new pi(t, e)), this[Ft]();
52476
52521
  }
52477
- [cs](t) {
52522
+ [ds](t) {
52478
52523
  t.pending = true, this[G] += 1;
52479
52524
  let e = this.follow ? "stat" : "lstat";
52480
52525
  import_fs2.default[e](t.absolute, (i, r) => {
52481
- t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[ai](t, r);
52526
+ t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[li](t, r);
52482
52527
  });
52483
52528
  }
52484
- [ai](t, e) {
52529
+ [li](t, e) {
52485
52530
  if (this.statCache.set(t.absolute, e), t.stat = e, !this.filter(t.path, e)) t.ignore = true;
52486
- else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync) if (t === this[Et]) this[hi](t);
52531
+ else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync) if (t === this[Et]) this[ai](t);
52487
52532
  else {
52488
- let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
52489
- r ? r.push(t) : this[me].set(i, [t]), t.pendingLink = true, t.pending = true;
52533
+ let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
52534
+ r ? r.push(t) : this[pe].set(i, [t]), t.pendingLink = true, t.pending = true;
52490
52535
  }
52491
- this[Ct]();
52536
+ this[Ft]();
52492
52537
  }
52493
- [fs](t) {
52538
+ [ms](t) {
52494
52539
  t.pending = true, this[G] += 1, import_fs2.default.readdir(t.absolute, (e, i) => {
52495
52540
  if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
52496
- this[ci](t, i);
52541
+ this[fi](t, i);
52497
52542
  });
52498
52543
  }
52499
- [ci](t, e) {
52500
- this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ct]();
52544
+ [fi](t, e) {
52545
+ this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ft]();
52501
52546
  }
52502
- [Ct]() {
52503
- if (!this[pe]) {
52504
- this[pe] = true;
52505
- for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[hi](t.value), t.value.ignore) {
52547
+ [Ft]() {
52548
+ if (!this[Ee]) {
52549
+ this[Ee] = true;
52550
+ for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[ai](t.value), t.value.ignore) {
52506
52551
  let e = t.next;
52507
52552
  this[W].removeNode(t), t.next = e;
52508
52553
  }
52509
- this[pe] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(ir) : (super.write(ir), super.end()));
52554
+ this[Ee] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
52510
52555
  }
52511
52556
  }
52512
52557
  get [Et]() {
52513
52558
  return this[W] && this[W].head && this[W].head.value;
52514
52559
  }
52515
- [hs](t) {
52560
+ [ls](t) {
52516
52561
  this[W].shift(), this[G] -= 1;
52517
52562
  let { stat: e } = t;
52518
52563
  if (e && e.isFile() && e.nlink > 1) {
52519
- let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
52564
+ let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
52520
52565
  if (r) {
52521
- this[me].delete(i);
52522
- for (let n of r) n.pending = false, this[hi](n);
52566
+ this[pe].delete(i);
52567
+ for (let n of r) n.pending = false, this[ai](n);
52523
52568
  }
52524
52569
  }
52525
- this[Ct]();
52570
+ this[Ft]();
52526
52571
  }
52527
- [hi](t) {
52572
+ [ai](t) {
52528
52573
  if (t.pending && t.pendingLink && t === this[Et] && (t.pending = false, t.pendingLink = false), !t.pending) {
52529
52574
  if (t.entry) {
52530
- t === this[Et] && !t.piped && this[fi](t);
52575
+ t === this[Et] && !t.piped && this[di](t);
52531
52576
  return;
52532
52577
  }
52533
52578
  if (!t.stat) {
52534
52579
  let e = this.statCache.get(t.absolute);
52535
- e ? this[ai](t, e) : this[cs](t);
52580
+ e ? this[li](t, e) : this[ds](t);
52536
52581
  }
52537
52582
  if (t.stat && !t.ignore) {
52538
52583
  if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
52539
52584
  let e = this.readdirCache.get(t.absolute);
52540
- if (e ? this[ci](t, e) : this[fs](t), !t.readdir) return;
52585
+ if (e ? this[fi](t, e) : this[ms](t), !t.readdir) return;
52541
52586
  }
52542
- if (t.entry = this[rr](t), !t.entry) {
52587
+ if (t.entry = this[hr](t), !t.entry) {
52543
52588
  t.ignore = true;
52544
52589
  return;
52545
52590
  }
52546
- t === this[Et] && !t.piped && this[fi](t);
52591
+ t === this[Et] && !t.piped && this[di](t);
52547
52592
  }
52548
52593
  }
52549
52594
  }
52550
- [as](t) {
52595
+ [cs](t) {
52551
52596
  return { onwarn: (e, i, r) => this.warn(e, i, r), noPax: this.noPax, cwd: this.cwd, absolute: t.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
52552
52597
  }
52553
- [rr](t) {
52598
+ [hr](t) {
52554
52599
  this[G] += 1;
52555
52600
  try {
52556
- return new this[di](t.path, this[as](t)).on("end", () => this[hs](t)).on("error", (i) => this.emit("error", i));
52601
+ return new this[mi](t.path, this[cs](t)).on("end", () => this[ls](t)).on("error", (i) => this.emit("error", i));
52557
52602
  } catch (e) {
52558
52603
  this.emit("error", e);
52559
52604
  }
52560
52605
  }
52561
- [ls]() {
52606
+ [fs]() {
52562
52607
  this[Et] && this[Et].entry && this[Et].entry.resume();
52563
52608
  }
52564
- [fi](t) {
52609
+ [di](t) {
52565
52610
  t.piped = true, t.readdir && t.readdir.forEach((r) => {
52566
52611
  let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
52567
- this[li](o + r);
52612
+ this[ci](o + r);
52568
52613
  });
52569
52614
  let e = t.entry, i = this.zip;
52570
52615
  if (!e) throw new Error("cannot pipe without source");
@@ -52578,137 +52623,137 @@ var wt = class extends A {
52578
52623
  return this.zip && this.zip.pause(), super.pause();
52579
52624
  }
52580
52625
  warn(t, e, i = {}) {
52581
- Nt(this, t, e, i);
52626
+ Dt(this, t, e, i);
52582
52627
  }
52583
52628
  };
52584
52629
  var kt = class extends wt {
52585
52630
  sync = true;
52586
52631
  constructor(t) {
52587
- super(t), this[di] = ri;
52632
+ super(t), this[mi] = ni;
52588
52633
  }
52589
52634
  pause() {
52590
52635
  }
52591
52636
  resume() {
52592
52637
  }
52593
- [cs](t) {
52638
+ [ds](t) {
52594
52639
  let e = this.follow ? "statSync" : "lstatSync";
52595
- this[ai](t, import_fs2.default[e](t.absolute));
52640
+ this[li](t, import_fs2.default[e](t.absolute));
52596
52641
  }
52597
- [fs](t) {
52598
- this[ci](t, import_fs2.default.readdirSync(t.absolute));
52642
+ [ms](t) {
52643
+ this[fi](t, import_fs2.default.readdirSync(t.absolute));
52599
52644
  }
52600
- [fi](t) {
52645
+ [di](t) {
52601
52646
  let e = t.entry, i = this.zip;
52602
52647
  if (t.readdir && t.readdir.forEach((r) => {
52603
52648
  let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
52604
- this[li](o + r);
52649
+ this[ci](o + r);
52605
52650
  }), !e) throw new Error("Cannot pipe without source");
52606
52651
  i ? e.on("data", (r) => {
52607
52652
  i.write(r);
52608
52653
  }) : e.on("data", (r) => {
52609
- super[or](r);
52654
+ super[lr](r);
52610
52655
  });
52611
52656
  }
52612
52657
  };
52613
- var Wn = (s3, t) => {
52658
+ var Vn = (s3, t) => {
52614
52659
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
52615
- e.pipe(i), ar(e, t);
52660
+ e.pipe(i), fr(e, t);
52616
52661
  };
52617
- var Gn = (s3, t) => {
52618
- let e = new wt(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
52662
+ var $n = (s3, t) => {
52663
+ let e = new wt(s3), i = new et(s3.file, { mode: s3.mode || 438 });
52619
52664
  e.pipe(i);
52620
52665
  let r = new Promise((n, o) => {
52621
52666
  i.on("error", o), i.on("close", n), e.on("error", o);
52622
52667
  });
52623
- return lr(e, t).catch((n) => e.emit("error", n)), r;
52668
+ return dr(e, t).catch((n) => e.emit("error", n)), r;
52624
52669
  };
52625
- var ar = (s3, t) => {
52670
+ var fr = (s3, t) => {
52626
52671
  t.forEach((e) => {
52627
- e.charAt(0) === "@" ? Ft({ file: import_node_path.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
52672
+ e.charAt(0) === "@" ? Ct({ file: import_node_path.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
52628
52673
  }), s3.end();
52629
52674
  };
52630
- var lr = async (s3, t) => {
52631
- for (let e of t) e.charAt(0) === "@" ? await Ft({ file: import_node_path.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
52675
+ var dr = async (s3, t) => {
52676
+ for (let e of t) e.charAt(0) === "@" ? await Ct({ file: import_node_path.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
52632
52677
  s3.add(i);
52633
52678
  } }) : s3.add(e);
52634
52679
  s3.end();
52635
52680
  };
52636
- var Zn = (s3, t) => {
52681
+ var Xn = (s3, t) => {
52637
52682
  let e = new kt(s3);
52638
- return ar(e, t), e;
52683
+ return fr(e, t), e;
52639
52684
  };
52640
- var Yn = (s3, t) => {
52685
+ var qn = (s3, t) => {
52641
52686
  let e = new wt(s3);
52642
- return lr(e, t).catch((i) => e.emit("error", i)), e;
52687
+ return dr(e, t).catch((i) => e.emit("error", i)), e;
52643
52688
  };
52644
- var Kn = K(Wn, Gn, Zn, Yn, (s3, t) => {
52689
+ var Qn = K(Vn, $n, Xn, qn, (s3, t) => {
52645
52690
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
52646
52691
  });
52647
- var Vn = process.env.__FAKE_PLATFORM__ || process.platform;
52648
- var ur = Vn === "win32";
52649
- var { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = import_fs4.default.constants;
52650
- var wr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs4.default.constants.UV_FS_O_FILEMAP || 0;
52651
- var $n = ur && !!wr;
52652
- var Xn = 512 * 1024;
52653
- var qn = wr | pr | mr | Er;
52654
- var fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null;
52655
- var ds = fr !== null ? () => fr : $n ? (s3) => s3 < Xn ? qn : "w" : () => "w";
52656
- var us = (s3, t, e) => {
52692
+ var Jn = process.env.__FAKE_PLATFORM__ || process.platform;
52693
+ var Er = Jn === "win32";
52694
+ var { O_CREAT: wr, O_NOFOLLOW: mr, O_TRUNC: Sr, O_WRONLY: yr } = import_fs4.default.constants;
52695
+ var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs4.default.constants.UV_FS_O_FILEMAP || 0;
52696
+ var jn = Er && !!Rr;
52697
+ var to = 512 * 1024;
52698
+ var eo = Rr | Sr | wr | yr;
52699
+ var ur = !Er && typeof mr == "number" ? mr | Sr | wr | yr : null;
52700
+ var us = ur !== null ? () => ur : jn ? (s3) => s3 < to ? eo : "w" : () => "w";
52701
+ var ps = (s3, t, e) => {
52657
52702
  try {
52658
52703
  return import_node_fs4.default.lchownSync(s3, t, e);
52659
52704
  } catch (i) {
52660
52705
  if (i?.code !== "ENOENT") throw i;
52661
52706
  }
52662
52707
  };
52663
- var pi = (s3, t, e, i) => {
52708
+ var Ei = (s3, t, e, i) => {
52664
52709
  import_node_fs4.default.lchown(s3, t, e, (r) => {
52665
52710
  i(r && r?.code !== "ENOENT" ? r : null);
52666
52711
  });
52667
52712
  };
52668
- var Qn = (s3, t, e, i, r) => {
52669
- if (t.isDirectory()) ms(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
52713
+ var io = (s3, t, e, i, r) => {
52714
+ if (t.isDirectory()) Es(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
52670
52715
  if (n) return r(n);
52671
52716
  let o = import_node_path6.default.resolve(s3, t.name);
52672
- pi(o, e, i, r);
52717
+ Ei(o, e, i, r);
52673
52718
  });
52674
52719
  else {
52675
52720
  let n = import_node_path6.default.resolve(s3, t.name);
52676
- pi(n, e, i, r);
52721
+ Ei(n, e, i, r);
52677
52722
  }
52678
52723
  };
52679
- var ms = (s3, t, e, i) => {
52724
+ var Es = (s3, t, e, i) => {
52680
52725
  import_node_fs4.default.readdir(s3, { withFileTypes: true }, (r, n) => {
52681
52726
  if (r) {
52682
52727
  if (r.code === "ENOENT") return i();
52683
52728
  if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
52684
52729
  }
52685
- if (r || !n.length) return pi(s3, t, e, i);
52686
- let o = n.length, a = null, h = (l) => {
52687
- if (!a) {
52688
- if (l) return i(a = l);
52689
- if (--o === 0) return pi(s3, t, e, i);
52730
+ if (r || !n.length) return Ei(s3, t, e, i);
52731
+ let o = n.length, h = null, a = (l) => {
52732
+ if (!h) {
52733
+ if (l) return i(h = l);
52734
+ if (--o === 0) return Ei(s3, t, e, i);
52690
52735
  }
52691
52736
  };
52692
- for (let l of n) Qn(s3, l, t, e, h);
52737
+ for (let l of n) io(s3, l, t, e, a);
52693
52738
  });
52694
52739
  };
52695
- var Jn = (s3, t, e, i) => {
52696
- t.isDirectory() && ps(import_node_path6.default.resolve(s3, t.name), e, i), us(import_node_path6.default.resolve(s3, t.name), e, i);
52740
+ var so = (s3, t, e, i) => {
52741
+ t.isDirectory() && ws(import_node_path6.default.resolve(s3, t.name), e, i), ps(import_node_path6.default.resolve(s3, t.name), e, i);
52697
52742
  };
52698
- var ps = (s3, t, e) => {
52743
+ var ws = (s3, t, e) => {
52699
52744
  let i;
52700
52745
  try {
52701
52746
  i = import_node_fs4.default.readdirSync(s3, { withFileTypes: true });
52702
52747
  } catch (r) {
52703
52748
  let n = r;
52704
52749
  if (n?.code === "ENOENT") return;
52705
- if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return us(s3, t, e);
52750
+ if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return ps(s3, t, e);
52706
52751
  throw n;
52707
52752
  }
52708
- for (let r of i) Jn(s3, r, t, e);
52709
- return us(s3, t, e);
52753
+ for (let r of i) so(s3, r, t, e);
52754
+ return ps(s3, t, e);
52710
52755
  };
52711
- var we = class extends Error {
52756
+ var Se = class extends Error {
52712
52757
  path;
52713
52758
  code;
52714
52759
  syscall = "chdir";
@@ -52731,97 +52776,97 @@ var St = class extends Error {
52731
52776
  return "SymlinkError";
52732
52777
  }
52733
52778
  };
52734
- var to = (s3, t) => {
52779
+ var no = (s3, t) => {
52735
52780
  import_node_fs5.default.stat(s3, (e, i) => {
52736
- (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
52781
+ (e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
52737
52782
  });
52738
52783
  };
52739
- var Sr = (s3, t, e) => {
52784
+ var gr = (s3, t, e) => {
52740
52785
  s3 = f(s3);
52741
- let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, a = t.gid, h = typeof o == "number" && typeof a == "number" && (o !== t.processUid || a !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
52742
- E ? e(E) : x && h ? ms(x, o, a, (xe) => S(xe)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
52786
+ let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
52787
+ E ? e(E) : x && a ? Es(x, o, h, (Le) => S(Le)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
52743
52788
  };
52744
- if (s3 === d) return to(s3, S);
52789
+ if (s3 === d) return no(s3, S);
52745
52790
  if (l) return import_promises.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
52746
- let N = f(import_node_path7.default.relative(d, s3)).split("/");
52747
- Es(d, N, r, c, d, void 0, S);
52791
+ let D = f(import_node_path7.default.relative(d, s3)).split("/");
52792
+ Ss(d, D, r, c, d, void 0, S);
52748
52793
  };
52749
- var Es = (s3, t, e, i, r, n, o) => {
52794
+ var Ss = (s3, t, e, i, r, n, o) => {
52750
52795
  if (t.length === 0) return o(null, n);
52751
- let a = t.shift(), h = f(import_node_path7.default.resolve(s3 + "/" + a));
52752
- import_node_fs5.default.mkdir(h, e, yr(h, t, e, i, r, n, o));
52796
+ let h = t.shift(), a = f(import_node_path7.default.resolve(s3 + "/" + h));
52797
+ import_node_fs5.default.mkdir(a, e, br(a, t, e, i, r, n, o));
52753
52798
  };
52754
- var yr = (s3, t, e, i, r, n, o) => (a) => {
52755
- a ? import_node_fs5.default.lstat(s3, (h, l) => {
52756
- if (h) h.path = h.path && f(h.path), o(h);
52757
- else if (l.isDirectory()) Es(s3, t, e, i, r, n, o);
52799
+ var br = (s3, t, e, i, r, n, o) => (h) => {
52800
+ h ? import_node_fs5.default.lstat(s3, (a, l) => {
52801
+ if (a) a.path = a.path && f(a.path), o(a);
52802
+ else if (l.isDirectory()) Ss(s3, t, e, i, r, n, o);
52758
52803
  else if (i) import_node_fs5.default.unlink(s3, (c) => {
52759
52804
  if (c) return o(c);
52760
- import_node_fs5.default.mkdir(s3, e, yr(s3, t, e, i, r, n, o));
52805
+ import_node_fs5.default.mkdir(s3, e, br(s3, t, e, i, r, n, o));
52761
52806
  });
52762
52807
  else {
52763
52808
  if (l.isSymbolicLink()) return o(new St(s3, s3 + "/" + t.join("/")));
52764
- o(a);
52809
+ o(h);
52765
52810
  }
52766
- }) : (n = n || s3, Es(s3, t, e, i, r, n, o));
52811
+ }) : (n = n || s3, Ss(s3, t, e, i, r, n, o));
52767
52812
  };
52768
- var eo = (s3) => {
52813
+ var oo = (s3) => {
52769
52814
  let t = false, e;
52770
52815
  try {
52771
52816
  t = import_node_fs5.default.statSync(s3).isDirectory();
52772
52817
  } catch (i) {
52773
52818
  e = i?.code;
52774
52819
  } finally {
52775
- if (!t) throw new we(s3, e ?? "ENOTDIR");
52820
+ if (!t) throw new Se(s3, e ?? "ENOTDIR");
52776
52821
  }
52777
52822
  };
52778
- var Rr = (s3, t) => {
52823
+ var _r = (s3, t) => {
52779
52824
  s3 = f(s3);
52780
- let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, a = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), h = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
52781
- E && a && ps(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
52825
+ let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
52826
+ E && h && ws(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
52782
52827
  };
52783
- if (s3 === c) return eo(c), d();
52784
- if (h) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
52785
- let T = f(import_node_path7.default.relative(c, s3)).split("/"), N;
52828
+ if (s3 === c) return oo(c), d();
52829
+ if (a) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
52830
+ let T = f(import_node_path7.default.relative(c, s3)).split("/"), D;
52786
52831
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
52787
52832
  x = f(import_node_path7.default.resolve(x));
52788
52833
  try {
52789
- import_node_fs5.default.mkdirSync(x, i), N = N || x;
52834
+ import_node_fs5.default.mkdirSync(x, i), D = D || x;
52790
52835
  } catch {
52791
- let xe = import_node_fs5.default.lstatSync(x);
52792
- if (xe.isDirectory()) continue;
52836
+ let Le = import_node_fs5.default.lstatSync(x);
52837
+ if (Le.isDirectory()) continue;
52793
52838
  if (l) {
52794
- import_node_fs5.default.unlinkSync(x), import_node_fs5.default.mkdirSync(x, i), N = N || x;
52839
+ import_node_fs5.default.unlinkSync(x), import_node_fs5.default.mkdirSync(x, i), D = D || x;
52795
52840
  continue;
52796
- } else if (xe.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
52841
+ } else if (Le.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
52797
52842
  }
52798
52843
  }
52799
- return d(N);
52844
+ return d(D);
52800
52845
  };
52801
- var ws = /* @__PURE__ */ Object.create(null);
52802
- var gr = 1e4;
52846
+ var ys = /* @__PURE__ */ Object.create(null);
52847
+ var Or = 1e4;
52803
52848
  var Vt = /* @__PURE__ */ new Set();
52804
- var br = (s3) => {
52805
- Vt.has(s3) ? Vt.delete(s3) : ws[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s3);
52806
- let t = ws[s3], e = Vt.size - gr;
52807
- if (e > gr / 10) {
52808
- for (let i of Vt) if (Vt.delete(i), delete ws[i], --e <= 0) break;
52849
+ var Tr = (s3) => {
52850
+ Vt.has(s3) ? Vt.delete(s3) : ys[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s3);
52851
+ let t = ys[s3], e = Vt.size - Or;
52852
+ if (e > Or / 10) {
52853
+ for (let i of Vt) if (Vt.delete(i), delete ys[i], --e <= 0) break;
52809
52854
  }
52810
52855
  return t;
52811
52856
  };
52812
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52813
- var so = io === "win32";
52814
- var ro = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
52857
+ var ho = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52858
+ var ao = ho === "win32";
52859
+ var lo = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
52815
52860
  let r = e.at(-1);
52816
52861
  return r !== void 0 && (i = (0, import_node_path8.join)(r, i)), e.push(i || "/"), e;
52817
52862
  }, []);
52818
- var Si = class {
52863
+ var yi = class {
52819
52864
  #t = /* @__PURE__ */ new Map();
52820
52865
  #i = /* @__PURE__ */ new Map();
52821
52866
  #s = /* @__PURE__ */ new Set();
52822
52867
  reserve(t, e) {
52823
- t = so ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(br(r))));
52824
- let i = new Set(t.map((r) => ro(r)).reduce((r, n) => r.concat(n)));
52868
+ t = ao ? ["win32 parallelization disabled"] : t.map((r) => ut((0, import_node_path8.join)(Tr(r))));
52869
+ let i = new Set(t.map((r) => lo(r)).reduce((r, n) => r.concat(n)));
52825
52870
  this.#i.set(e, { dirs: i, paths: t });
52826
52871
  for (let r of t) {
52827
52872
  let n = this.#t.get(r);
@@ -52855,79 +52900,79 @@ var Si = class {
52855
52900
  if (!e) throw new Error("invalid reservation");
52856
52901
  let { paths: i, dirs: r } = e, n = /* @__PURE__ */ new Set();
52857
52902
  for (let o of i) {
52858
- let a = this.#t.get(o);
52859
- if (!a || a?.[0] !== t) continue;
52860
- let h = a[1];
52861
- if (!h) {
52903
+ let h = this.#t.get(o);
52904
+ if (!h || h?.[0] !== t) continue;
52905
+ let a = h[1];
52906
+ if (!a) {
52862
52907
  this.#t.delete(o);
52863
52908
  continue;
52864
52909
  }
52865
- if (a.shift(), typeof h == "function") n.add(h);
52866
- else for (let l of h) n.add(l);
52910
+ if (h.shift(), typeof a == "function") n.add(a);
52911
+ else for (let l of a) n.add(l);
52867
52912
  }
52868
52913
  for (let o of r) {
52869
- let a = this.#t.get(o), h = a?.[0];
52870
- if (!(!a || !(h instanceof Set))) if (h.size === 1 && a.length === 1) {
52914
+ let h = this.#t.get(o), a = h?.[0];
52915
+ if (!(!h || !(a instanceof Set))) if (a.size === 1 && h.length === 1) {
52871
52916
  this.#t.delete(o);
52872
52917
  continue;
52873
- } else if (h.size === 1) {
52874
- a.shift();
52875
- let l = a[0];
52918
+ } else if (a.size === 1) {
52919
+ h.shift();
52920
+ let l = h[0];
52876
52921
  typeof l == "function" && n.add(l);
52877
- } else h.delete(t);
52922
+ } else a.delete(t);
52878
52923
  }
52879
52924
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
52880
52925
  }
52881
52926
  };
52882
- var Or = () => process.umask();
52883
- var Tr = /* @__PURE__ */ Symbol("onEntry");
52884
- var gs = /* @__PURE__ */ Symbol("checkFs");
52885
- var xr = /* @__PURE__ */ Symbol("checkFs2");
52886
- var bs = /* @__PURE__ */ Symbol("isReusable");
52927
+ var Lr = () => process.umask();
52928
+ var Dr = /* @__PURE__ */ Symbol("onEntry");
52929
+ var _s = /* @__PURE__ */ Symbol("checkFs");
52930
+ var Nr = /* @__PURE__ */ Symbol("checkFs2");
52931
+ var Os = /* @__PURE__ */ Symbol("isReusable");
52887
52932
  var P = /* @__PURE__ */ Symbol("makeFs");
52888
- var _s = /* @__PURE__ */ Symbol("file");
52889
- var Os = /* @__PURE__ */ Symbol("directory");
52890
- var Ri = /* @__PURE__ */ Symbol("link");
52891
- var Lr = /* @__PURE__ */ Symbol("symlink");
52892
- var Nr = /* @__PURE__ */ Symbol("hardlink");
52893
- var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
52894
- var Dr = /* @__PURE__ */ Symbol("unsupported");
52895
- var Ar = /* @__PURE__ */ Symbol("checkPath");
52896
- var Ss = /* @__PURE__ */ Symbol("stripAbsolutePath");
52933
+ var Ts = /* @__PURE__ */ Symbol("file");
52934
+ var xs = /* @__PURE__ */ Symbol("directory");
52935
+ var gi = /* @__PURE__ */ Symbol("link");
52936
+ var Ar = /* @__PURE__ */ Symbol("symlink");
52937
+ var Ir = /* @__PURE__ */ Symbol("hardlink");
52938
+ var Re = /* @__PURE__ */ Symbol("ensureNoSymlink");
52939
+ var Cr = /* @__PURE__ */ Symbol("unsupported");
52940
+ var Fr = /* @__PURE__ */ Symbol("checkPath");
52941
+ var Rs = /* @__PURE__ */ Symbol("stripAbsolutePath");
52897
52942
  var yt = /* @__PURE__ */ Symbol("mkdir");
52898
52943
  var O = /* @__PURE__ */ Symbol("onError");
52899
- var yi = /* @__PURE__ */ Symbol("pending");
52900
- var Ir = /* @__PURE__ */ Symbol("pend");
52944
+ var Ri = /* @__PURE__ */ Symbol("pending");
52945
+ var kr = /* @__PURE__ */ Symbol("pend");
52901
52946
  var $t = /* @__PURE__ */ Symbol("unpend");
52902
- var ys = /* @__PURE__ */ Symbol("ended");
52903
- var Rs = /* @__PURE__ */ Symbol("maybeClose");
52904
- var Ts = /* @__PURE__ */ Symbol("skip");
52905
- var Re = /* @__PURE__ */ Symbol("doChown");
52906
- var ge = /* @__PURE__ */ Symbol("uid");
52907
- var be = /* @__PURE__ */ Symbol("gid");
52908
- var _e = /* @__PURE__ */ Symbol("checkedCwd");
52909
- var oo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52910
- var Oe = oo === "win32";
52911
- var ho = 1024;
52912
- var ao = (s3, t) => {
52913
- if (!Oe) return import_node_fs3.default.unlink(s3, t);
52947
+ var gs = /* @__PURE__ */ Symbol("ended");
52948
+ var bs = /* @__PURE__ */ Symbol("maybeClose");
52949
+ var Ls = /* @__PURE__ */ Symbol("skip");
52950
+ var ge = /* @__PURE__ */ Symbol("doChown");
52951
+ var be = /* @__PURE__ */ Symbol("uid");
52952
+ var _e = /* @__PURE__ */ Symbol("gid");
52953
+ var Oe = /* @__PURE__ */ Symbol("checkedCwd");
52954
+ var fo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52955
+ var Te = fo === "win32";
52956
+ var mo = 1024;
52957
+ var uo = (s3, t) => {
52958
+ if (!Te) return import_node_fs3.default.unlink(s3, t);
52914
52959
  let e = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
52915
52960
  import_node_fs3.default.rename(s3, e, (i) => {
52916
52961
  if (i) return t(i);
52917
52962
  import_node_fs3.default.unlink(e, t);
52918
52963
  });
52919
52964
  };
52920
- var lo = (s3) => {
52921
- if (!Oe) return import_node_fs3.default.unlinkSync(s3);
52965
+ var po = (s3) => {
52966
+ if (!Te) return import_node_fs3.default.unlinkSync(s3);
52922
52967
  let t = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
52923
52968
  import_node_fs3.default.renameSync(s3, t), import_node_fs3.default.unlinkSync(t);
52924
52969
  };
52925
- var Fr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
52926
- var Xt = class extends st {
52927
- [ys] = false;
52928
- [_e] = false;
52929
- [yi] = 0;
52930
- reservations = new Si();
52970
+ var vr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
52971
+ var Xt = class extends rt {
52972
+ [gs] = false;
52973
+ [Oe] = false;
52974
+ [Ri] = 0;
52975
+ reservations = new yi();
52931
52976
  transform;
52932
52977
  writable = true;
52933
52978
  readable = false;
@@ -52954,32 +52999,32 @@ var Xt = class extends st {
52954
52999
  chmod;
52955
53000
  constructor(t = {}) {
52956
53001
  if (t.ondone = () => {
52957
- this[ys] = true, this[Rs]();
53002
+ this[gs] = true, this[bs]();
52958
53003
  }, super(t), this.transform = t.transform, this.chmod = !!t.chmod, typeof t.uid == "number" || typeof t.gid == "number") {
52959
53004
  if (typeof t.uid != "number" || typeof t.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
52960
53005
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
52961
53006
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
52962
53007
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
52963
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : ho, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Or() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Tr](e));
53008
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : mo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Lr() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Dr](e));
52964
53009
  }
52965
53010
  warn(t, e, i = {}) {
52966
53011
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
52967
53012
  }
52968
- [Rs]() {
52969
- this[ys] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
53013
+ [bs]() {
53014
+ this[gs] && this[Ri] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
52970
53015
  }
52971
- [Ss](t, e) {
53016
+ [Rs](t, e) {
52972
53017
  let i = t[e], { type: r } = t;
52973
53018
  if (!i || this.preservePaths) return true;
52974
- let [n, o] = le(i), a = o.replaceAll(/\\/g, "/").split("/");
52975
- if (a.includes("..") || Oe && /^[a-z]:\.\.$/i.test(a[0] ?? "")) {
53019
+ let [n, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
53020
+ if (h.includes("..") || Te && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
52976
53021
  if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
52977
- let h = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(h, a.join("/")));
53022
+ let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, h.join("/")));
52978
53023
  if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
52979
53024
  }
52980
53025
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
52981
53026
  }
52982
- [Ar](t) {
53027
+ [Fr](t) {
52983
53028
  let e = f(t.path), i = e.split("/");
52984
53029
  if (this.strip) {
52985
53030
  if (i.length < this.strip) return false;
@@ -52991,19 +53036,19 @@ var Xt = class extends st {
52991
53036
  i.splice(0, this.strip), t.path = i.join("/");
52992
53037
  }
52993
53038
  if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t, path: e, depth: i.length, maxDepth: this.maxDepth }), false;
52994
- if (!this[Ss](t, "path") || !this[Ss](t, "linkpath")) return false;
53039
+ if (!this[Rs](t, "path") || !this[Rs](t, "linkpath")) return false;
52995
53040
  if (t.absolute = import_node_path5.default.isAbsolute(t.path) ? f(import_node_path5.default.resolve(t.path)) : f(import_node_path5.default.resolve(this.cwd, t.path)), !this.preservePaths && typeof t.absolute == "string" && t.absolute.indexOf(this.cwd + "/") !== 0 && t.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t, path: f(t.path), resolvedPath: t.absolute, cwd: this.cwd }), false;
52996
53041
  if (t.absolute === this.cwd && t.type !== "Directory" && t.type !== "GNUDumpDir") return false;
52997
53042
  if (this.win32) {
52998
53043
  let { root: r } = import_node_path5.default.win32.parse(String(t.absolute));
52999
- t.absolute = r + Ji(String(t.absolute).slice(r.length));
53044
+ t.absolute = r + ts(String(t.absolute).slice(r.length));
53000
53045
  let { root: n } = import_node_path5.default.win32.parse(t.path);
53001
- t.path = n + Ji(t.path.slice(n.length));
53046
+ t.path = n + ts(t.path.slice(n.length));
53002
53047
  }
53003
53048
  return true;
53004
53049
  }
53005
- [Tr](t) {
53006
- if (!this[Ar](t)) return t.resume();
53050
+ [Dr](t) {
53051
+ if (!this[Fr](t)) return t.resume();
53007
53052
  switch (import_node_assert.default.equal(typeof t.absolute, "string"), t.type) {
53008
53053
  case "Directory":
53009
53054
  case "GNUDumpDir":
@@ -53013,36 +53058,36 @@ var Xt = class extends st {
53013
53058
  case "ContiguousFile":
53014
53059
  case "Link":
53015
53060
  case "SymbolicLink":
53016
- return this[gs](t);
53061
+ return this[_s](t);
53017
53062
  default:
53018
- return this[Dr](t);
53063
+ return this[Cr](t);
53019
53064
  }
53020
53065
  }
53021
53066
  [O](t, e) {
53022
53067
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[$t](), e.resume());
53023
53068
  }
53024
53069
  [yt](t, e, i) {
53025
- Sr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
53026
- }
53027
- [Re](t) {
53028
- return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
53070
+ gr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
53029
53071
  }
53030
53072
  [ge](t) {
53031
- return Fr(this.uid, t.uid, this.processUid);
53073
+ return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
53032
53074
  }
53033
53075
  [be](t) {
53034
- return Fr(this.gid, t.gid, this.processGid);
53076
+ return vr(this.uid, t.uid, this.processUid);
53035
53077
  }
53036
- [_s](t, e) {
53037
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: ds(t.size), mode: i, autoClose: false });
53038
- r.on("error", (h) => {
53078
+ [_e](t) {
53079
+ return vr(this.gid, t.gid, this.processGid);
53080
+ }
53081
+ [Ts](t, e) {
53082
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags: us(t.size), mode: i, autoClose: false });
53083
+ r.on("error", (a) => {
53039
53084
  r.fd && import_node_fs3.default.close(r.fd, () => {
53040
- }), r.write = () => true, this[O](h, t), e();
53085
+ }), r.write = () => true, this[O](a, t), e();
53041
53086
  });
53042
- let n = 1, o = (h) => {
53043
- if (h) {
53087
+ let n = 1, o = (a) => {
53088
+ if (a) {
53044
53089
  r.fd && import_node_fs3.default.close(r.fd, () => {
53045
- }), this[O](h, t), e();
53090
+ }), this[O](a, t), e();
53046
53091
  return;
53047
53092
  }
53048
53093
  --n === 0 && r.fd !== void 0 && import_node_fs3.default.close(r.fd, (l) => {
@@ -53050,25 +53095,25 @@ var Xt = class extends st {
53050
53095
  });
53051
53096
  };
53052
53097
  r.on("finish", () => {
53053
- let h = String(t.absolute), l = r.fd;
53098
+ let a = String(t.absolute), l = r.fd;
53054
53099
  if (typeof l == "number" && t.mtime && !this.noMtime) {
53055
53100
  n++;
53056
53101
  let c = t.atime || /* @__PURE__ */ new Date(), d = t.mtime;
53057
- import_node_fs3.default.futimes(l, c, d, (S) => S ? import_node_fs3.default.utimes(h, c, d, (T) => o(T && S)) : o());
53102
+ import_node_fs3.default.futimes(l, c, d, (S) => S ? import_node_fs3.default.utimes(a, c, d, (T) => o(T && S)) : o());
53058
53103
  }
53059
- if (typeof l == "number" && this[Re](t)) {
53104
+ if (typeof l == "number" && this[ge](t)) {
53060
53105
  n++;
53061
- let c = this[ge](t), d = this[be](t);
53062
- typeof c == "number" && typeof d == "number" && import_node_fs3.default.fchown(l, c, d, (S) => S ? import_node_fs3.default.chown(h, c, d, (T) => o(T && S)) : o());
53106
+ let c = this[be](t), d = this[_e](t);
53107
+ typeof c == "number" && typeof d == "number" && import_node_fs3.default.fchown(l, c, d, (S) => S ? import_node_fs3.default.chown(a, c, d, (T) => o(T && S)) : o());
53063
53108
  }
53064
53109
  o();
53065
53110
  });
53066
- let a = this.transform && this.transform(t) || t;
53067
- a !== t && (a.on("error", (h) => {
53068
- this[O](h, t), e();
53069
- }), t.pipe(a)), a.pipe(r);
53111
+ let h = this.transform && this.transform(t) || t;
53112
+ h !== t && (h.on("error", (a) => {
53113
+ this[O](a, t), e();
53114
+ }), t.pipe(h)), h.pipe(r);
53070
53115
  }
53071
- [Os](t, e) {
53116
+ [xs](t, e) {
53072
53117
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
53073
53118
  this[yt](String(t.absolute), i, (r) => {
53074
53119
  if (r) {
@@ -53078,68 +53123,68 @@ var Xt = class extends st {
53078
53123
  let n = 1, o = () => {
53079
53124
  --n === 0 && (e(), this[$t](), t.resume());
53080
53125
  };
53081
- t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[ge](t)), Number(this[be](t)), o)), o();
53126
+ t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
53082
53127
  });
53083
53128
  }
53084
- [Dr](t) {
53129
+ [Cr](t) {
53085
53130
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
53086
53131
  }
53087
- [Lr](t, e) {
53132
+ [Ar](t, e) {
53088
53133
  let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
53089
- this[ye](t, this.cwd, i, () => this[Ri](t, String(t.linkpath), "symlink", e), (r) => {
53134
+ this[Re](t, this.cwd, i, () => this[gi](t, String(t.linkpath), "symlink", e), (r) => {
53090
53135
  this[O](r, t), e();
53091
53136
  });
53092
53137
  }
53093
- [Nr](t, e) {
53138
+ [Ir](t, e) {
53094
53139
  let i = f(import_node_path5.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
53095
- this[ye](t, this.cwd, r, () => this[Ri](t, i, "link", e), (n) => {
53140
+ this[Re](t, this.cwd, r, () => this[gi](t, i, "link", e), (n) => {
53096
53141
  this[O](n, t), e();
53097
53142
  });
53098
53143
  }
53099
- [ye](t, e, i, r, n) {
53144
+ [Re](t, e, i, r, n) {
53100
53145
  let o = i.shift();
53101
53146
  if (this.preservePaths || o === void 0) return r();
53102
- let a = import_node_path5.default.resolve(e, o);
53103
- import_node_fs3.default.lstat(a, (h, l) => {
53104
- if (h) return r();
53105
- if (l?.isSymbolicLink()) return n(new St(a, import_node_path5.default.resolve(a, i.join("/"))));
53106
- this[ye](t, a, i, r, n);
53147
+ let h = import_node_path5.default.resolve(e, o);
53148
+ import_node_fs3.default.lstat(h, (a, l) => {
53149
+ if (a) return r();
53150
+ if (l?.isSymbolicLink()) return n(new St(h, import_node_path5.default.resolve(h, i.join("/"))));
53151
+ this[Re](t, h, i, r, n);
53107
53152
  });
53108
53153
  }
53109
- [Ir]() {
53110
- this[yi]++;
53154
+ [kr]() {
53155
+ this[Ri]++;
53111
53156
  }
53112
53157
  [$t]() {
53113
- this[yi]--, this[Rs]();
53158
+ this[Ri]--, this[bs]();
53114
53159
  }
53115
- [Ts](t) {
53160
+ [Ls](t) {
53116
53161
  this[$t](), t.resume();
53117
53162
  }
53118
- [bs](t, e) {
53119
- return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
53163
+ [Os](t, e) {
53164
+ return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Te;
53120
53165
  }
53121
- [gs](t) {
53122
- this[Ir]();
53166
+ [_s](t) {
53167
+ this[kr]();
53123
53168
  let e = [t.path];
53124
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[xr](t, i));
53169
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Nr](t, i));
53125
53170
  }
53126
- [xr](t, e) {
53127
- let i = (a) => {
53128
- e(a);
53171
+ [Nr](t, e) {
53172
+ let i = (h) => {
53173
+ e(h);
53129
53174
  }, r = () => {
53130
- this[yt](this.cwd, this.dmode, (a) => {
53131
- if (a) {
53132
- this[O](a, t), i();
53175
+ this[yt](this.cwd, this.dmode, (h) => {
53176
+ if (h) {
53177
+ this[O](h, t), i();
53133
53178
  return;
53134
53179
  }
53135
- this[_e] = true, n();
53180
+ this[Oe] = true, n();
53136
53181
  });
53137
53182
  }, n = () => {
53138
53183
  if (t.absolute !== this.cwd) {
53139
- let a = f(import_node_path5.default.dirname(String(t.absolute)));
53140
- if (a !== this.cwd) return this[yt](a, this.dmode, (h) => {
53141
- if (h) {
53142
- this[O](h, t), i();
53184
+ let h = f(import_node_path5.default.dirname(String(t.absolute)));
53185
+ if (h !== this.cwd) return this[yt](h, this.dmode, (a) => {
53186
+ if (a) {
53187
+ this[O](a, t), i();
53143
53188
  return;
53144
53189
  }
53145
53190
  o();
@@ -53147,24 +53192,24 @@ var Xt = class extends st {
53147
53192
  }
53148
53193
  o();
53149
53194
  }, o = () => {
53150
- import_node_fs3.default.lstat(String(t.absolute), (a, h) => {
53151
- if (h && (this.keep || this.newer && h.mtime > (t.mtime ?? h.mtime))) {
53152
- this[Ts](t), i();
53195
+ import_node_fs3.default.lstat(String(t.absolute), (h, a) => {
53196
+ if (a && (this.keep || this.newer && a.mtime > (t.mtime ?? a.mtime))) {
53197
+ this[Ls](t), i();
53153
53198
  return;
53154
53199
  }
53155
- if (a || this[bs](t, h)) return this[P](null, t, i);
53156
- if (h.isDirectory()) {
53200
+ if (h || this[Os](t, a)) return this[P](null, t, i);
53201
+ if (a.isDirectory()) {
53157
53202
  if (t.type === "Directory") {
53158
- let l = this.chmod && t.mode && (h.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
53203
+ let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
53159
53204
  return l ? import_node_fs3.default.chmod(String(t.absolute), Number(t.mode), c) : c();
53160
53205
  }
53161
53206
  if (t.absolute !== this.cwd) return import_node_fs3.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
53162
53207
  }
53163
53208
  if (t.absolute === this.cwd) return this[P](null, t, i);
53164
- ao(String(t.absolute), (l) => this[P](l ?? null, t, i));
53209
+ uo(String(t.absolute), (l) => this[P](l ?? null, t, i));
53165
53210
  });
53166
53211
  };
53167
- this[_e] ? n() : r();
53212
+ this[Oe] ? n() : r();
53168
53213
  }
53169
53214
  [P](t, e, i) {
53170
53215
  if (t) {
@@ -53175,40 +53220,40 @@ var Xt = class extends st {
53175
53220
  case "File":
53176
53221
  case "OldFile":
53177
53222
  case "ContiguousFile":
53178
- return this[_s](e, i);
53223
+ return this[Ts](e, i);
53179
53224
  case "Link":
53180
- return this[Nr](e, i);
53225
+ return this[Ir](e, i);
53181
53226
  case "SymbolicLink":
53182
- return this[Lr](e, i);
53227
+ return this[Ar](e, i);
53183
53228
  case "Directory":
53184
53229
  case "GNUDumpDir":
53185
- return this[Os](e, i);
53230
+ return this[xs](e, i);
53186
53231
  }
53187
53232
  }
53188
- [Ri](t, e, i, r) {
53233
+ [gi](t, e, i, r) {
53189
53234
  import_node_fs3.default[i](e, String(t.absolute), (n) => {
53190
53235
  n ? this[O](n, t) : (this[$t](), t.resume()), r();
53191
53236
  });
53192
53237
  }
53193
53238
  };
53194
- var Se = (s3) => {
53239
+ var ye = (s3) => {
53195
53240
  try {
53196
53241
  return [null, s3()];
53197
53242
  } catch (t) {
53198
53243
  return [t, null];
53199
53244
  }
53200
53245
  };
53201
- var Te = class extends Xt {
53246
+ var xe = class extends Xt {
53202
53247
  sync = true;
53203
53248
  [P](t, e) {
53204
53249
  return super[P](t, e, () => {
53205
53250
  });
53206
53251
  }
53207
- [gs](t) {
53208
- if (!this[_e]) {
53252
+ [_s](t) {
53253
+ if (!this[Oe]) {
53209
53254
  let n = this[yt](this.cwd, this.dmode);
53210
53255
  if (n) return this[O](n, t);
53211
- this[_e] = true;
53256
+ this[Oe] = true;
53212
53257
  }
53213
53258
  if (t.absolute !== this.cwd) {
53214
53259
  let n = f(import_node_path5.default.dirname(String(t.absolute)));
@@ -53217,74 +53262,74 @@ var Te = class extends Xt {
53217
53262
  if (o) return this[O](o, t);
53218
53263
  }
53219
53264
  }
53220
- let [e, i] = Se(() => import_node_fs3.default.lstatSync(String(t.absolute)));
53221
- if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ts](t);
53222
- if (e || this[bs](t, i)) return this[P](null, t);
53265
+ let [e, i] = ye(() => import_node_fs3.default.lstatSync(String(t.absolute)));
53266
+ if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ls](t);
53267
+ if (e || this[Os](t, i)) return this[P](null, t);
53223
53268
  if (i.isDirectory()) {
53224
53269
  if (t.type === "Directory") {
53225
- let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [a] = o ? Se(() => {
53270
+ let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? ye(() => {
53226
53271
  import_node_fs3.default.chmodSync(String(t.absolute), Number(t.mode));
53227
53272
  }) : [];
53228
- return this[P](a, t);
53273
+ return this[P](h, t);
53229
53274
  }
53230
- let [n] = Se(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
53275
+ let [n] = ye(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
53231
53276
  this[P](n, t);
53232
53277
  }
53233
- let [r] = t.absolute === this.cwd ? [] : Se(() => lo(String(t.absolute)));
53278
+ let [r] = t.absolute === this.cwd ? [] : ye(() => po(String(t.absolute)));
53234
53279
  this[P](r, t);
53235
53280
  }
53236
- [_s](t, e) {
53237
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (a) => {
53238
- let h;
53281
+ [Ts](t, e) {
53282
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
53283
+ let a;
53239
53284
  try {
53240
53285
  import_node_fs3.default.closeSync(n);
53241
53286
  } catch (l) {
53242
- h = l;
53287
+ a = l;
53243
53288
  }
53244
- (a || h) && this[O](a || h, t), e();
53289
+ (h || a) && this[O](h || a, t), e();
53245
53290
  }, n;
53246
53291
  try {
53247
- n = import_node_fs3.default.openSync(String(t.absolute), ds(t.size), i);
53248
- } catch (a) {
53249
- return r(a);
53292
+ n = import_node_fs3.default.openSync(String(t.absolute), us(t.size), i);
53293
+ } catch (h) {
53294
+ return r(h);
53250
53295
  }
53251
53296
  let o = this.transform && this.transform(t) || t;
53252
- o !== t && (o.on("error", (a) => this[O](a, t)), t.pipe(o)), o.on("data", (a) => {
53297
+ o !== t && (o.on("error", (h) => this[O](h, t)), t.pipe(o)), o.on("data", (h) => {
53253
53298
  try {
53254
- import_node_fs3.default.writeSync(n, a, 0, a.length);
53255
- } catch (h) {
53256
- r(h);
53299
+ import_node_fs3.default.writeSync(n, h, 0, h.length);
53300
+ } catch (a) {
53301
+ r(a);
53257
53302
  }
53258
53303
  }), o.on("end", () => {
53259
- let a = null;
53304
+ let h = null;
53260
53305
  if (t.mtime && !this.noMtime) {
53261
- let h = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
53306
+ let a = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
53262
53307
  try {
53263
- import_node_fs3.default.futimesSync(n, h, l);
53308
+ import_node_fs3.default.futimesSync(n, a, l);
53264
53309
  } catch (c) {
53265
53310
  try {
53266
- import_node_fs3.default.utimesSync(String(t.absolute), h, l);
53311
+ import_node_fs3.default.utimesSync(String(t.absolute), a, l);
53267
53312
  } catch {
53268
- a = c;
53313
+ h = c;
53269
53314
  }
53270
53315
  }
53271
53316
  }
53272
- if (this[Re](t)) {
53273
- let h = this[ge](t), l = this[be](t);
53317
+ if (this[ge](t)) {
53318
+ let a = this[be](t), l = this[_e](t);
53274
53319
  try {
53275
- import_node_fs3.default.fchownSync(n, Number(h), Number(l));
53320
+ import_node_fs3.default.fchownSync(n, Number(a), Number(l));
53276
53321
  } catch (c) {
53277
53322
  try {
53278
- import_node_fs3.default.chownSync(String(t.absolute), Number(h), Number(l));
53323
+ import_node_fs3.default.chownSync(String(t.absolute), Number(a), Number(l));
53279
53324
  } catch {
53280
- a = a || c;
53325
+ h = h || c;
53281
53326
  }
53282
53327
  }
53283
53328
  }
53284
- r(a);
53329
+ r(h);
53285
53330
  });
53286
53331
  }
53287
- [Os](t, e) {
53332
+ [xs](t, e) {
53288
53333
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[yt](String(t.absolute), i);
53289
53334
  if (r) {
53290
53335
  this[O](r, t), e();
@@ -53294,31 +53339,31 @@ var Te = class extends Xt {
53294
53339
  import_node_fs3.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
53295
53340
  } catch {
53296
53341
  }
53297
- if (this[Re](t)) try {
53298
- import_node_fs3.default.chownSync(String(t.absolute), Number(this[ge](t)), Number(this[be](t)));
53342
+ if (this[ge](t)) try {
53343
+ import_node_fs3.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
53299
53344
  } catch {
53300
53345
  }
53301
53346
  e(), t.resume();
53302
53347
  }
53303
53348
  [yt](t, e) {
53304
53349
  try {
53305
- return Rr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
53350
+ return _r(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
53306
53351
  } catch (i) {
53307
53352
  return i;
53308
53353
  }
53309
53354
  }
53310
- [ye](t, e, i, r, n) {
53355
+ [Re](t, e, i, r, n) {
53311
53356
  if (this.preservePaths || i.length === 0) return r();
53312
53357
  let o = e;
53313
- for (let a of i) {
53314
- o = import_node_path5.default.resolve(o, a);
53315
- let [h, l] = Se(() => import_node_fs3.default.lstatSync(o));
53316
- if (h) return r();
53358
+ for (let h of i) {
53359
+ o = import_node_path5.default.resolve(o, h);
53360
+ let [a, l] = ye(() => import_node_fs3.default.lstatSync(o));
53361
+ if (a) return r();
53317
53362
  if (l.isSymbolicLink()) return n(new St(o, import_node_path5.default.resolve(e, i.join("/"))));
53318
53363
  }
53319
53364
  r();
53320
53365
  }
53321
- [Ri](t, e, i, r) {
53366
+ [gi](t, e, i, r) {
53322
53367
  let n = `${i}Sync`;
53323
53368
  try {
53324
53369
  import_node_fs3.default[n](e, String(t.absolute)), r(), t.resume();
@@ -53327,47 +53372,47 @@ var Te = class extends Xt {
53327
53372
  }
53328
53373
  }
53329
53374
  };
53330
- var co = (s3) => {
53331
- let t = new Te(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
53332
- new Me(e, { readSize: r, size: i.size }).pipe(t);
53375
+ var Eo = (s3) => {
53376
+ let t = new xe(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
53377
+ new Be(e, { readSize: r, size: i.size }).pipe(t);
53333
53378
  };
53334
- var fo = (s3, t) => {
53379
+ var wo = (s3, t) => {
53335
53380
  let e = new Xt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
53336
- return new Promise((o, a) => {
53337
- e.on("error", a), e.on("close", o), import_node_fs2.default.stat(r, (h, l) => {
53338
- if (h) a(h);
53381
+ return new Promise((o, h) => {
53382
+ e.on("error", h), e.on("close", o), import_node_fs2.default.stat(r, (a, l) => {
53383
+ if (a) h(a);
53339
53384
  else {
53340
53385
  let c = new _t(r, { readSize: i, size: l.size });
53341
- c.on("error", a), c.pipe(e);
53386
+ c.on("error", h), c.pipe(e);
53342
53387
  }
53343
53388
  });
53344
53389
  });
53345
53390
  };
53346
- var uo = K(co, fo, (s3) => new Te(s3), (s3) => new Xt(s3), (s3, t) => {
53347
- t?.length && Xi(s3, t);
53391
+ var So = K(Eo, wo, (s3) => new xe(s3), (s3) => new Xt(s3), (s3, t) => {
53392
+ t?.length && Qi(s3, t);
53348
53393
  });
53349
- var mo = (s3, t) => {
53394
+ var yo = (s3, t) => {
53350
53395
  let e = new kt(s3), i = true, r, n;
53351
53396
  try {
53352
53397
  try {
53353
53398
  r = import_node_fs6.default.openSync(s3.file, "r+");
53354
- } catch (h) {
53355
- if (h?.code === "ENOENT") r = import_node_fs6.default.openSync(s3.file, "w+");
53356
- else throw h;
53399
+ } catch (a) {
53400
+ if (a?.code === "ENOENT") r = import_node_fs6.default.openSync(s3.file, "w+");
53401
+ else throw a;
53357
53402
  }
53358
- let o = import_node_fs6.default.fstatSync(r), a = Buffer.alloc(512);
53403
+ let o = import_node_fs6.default.fstatSync(r), h = Buffer.alloc(512);
53359
53404
  t: for (n = 0; n < o.size; n += 512) {
53360
53405
  for (let c = 0, d = 0; c < 512; c += d) {
53361
- if (d = import_node_fs6.default.readSync(r, a, c, a.length - c, n + c), n === 0 && a[0] === 31 && a[1] === 139) throw new Error("cannot append to compressed archives");
53406
+ if (d = import_node_fs6.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
53362
53407
  if (!d) break t;
53363
53408
  }
53364
- let h = new C(a);
53365
- if (!h.cksumValid) break;
53366
- let l = 512 * Math.ceil((h.size || 0) / 512);
53409
+ let a = new F(h);
53410
+ if (!a.cksumValid) break;
53411
+ let l = 512 * Math.ceil((a.size || 0) / 512);
53367
53412
  if (n + l + 512 > o.size) break;
53368
- n += l, s3.mtimeCache && h.mtime && s3.mtimeCache.set(String(h.path), h.mtime);
53413
+ n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
53369
53414
  }
53370
- i = false, po(s3, e, n, r, t);
53415
+ i = false, Ro(s3, e, n, r, t);
53371
53416
  } finally {
53372
53417
  if (i) try {
53373
53418
  import_node_fs6.default.closeSync(r);
@@ -53375,69 +53420,69 @@ var mo = (s3, t) => {
53375
53420
  }
53376
53421
  }
53377
53422
  };
53378
- var po = (s3, t, e, i, r) => {
53423
+ var Ro = (s3, t, e, i, r) => {
53379
53424
  let n = new Wt(s3.file, { fd: i, start: e });
53380
- t.pipe(n), wo(t, r);
53425
+ t.pipe(n), bo(t, r);
53381
53426
  };
53382
- var Eo = (s3, t) => {
53427
+ var go = (s3, t) => {
53383
53428
  t = Array.from(t);
53384
- let e = new wt(s3), i = (n, o, a) => {
53385
- let h = (T, N) => {
53386
- T ? import_node_fs6.default.close(n, (E) => a(T)) : a(null, N);
53429
+ let e = new wt(s3), i = (n, o, h) => {
53430
+ let a = (T, D) => {
53431
+ T ? import_node_fs6.default.close(n, (E) => h(T)) : h(null, D);
53387
53432
  }, l = 0;
53388
- if (o === 0) return h(null, 0);
53389
- let c = 0, d = Buffer.alloc(512), S = (T, N) => {
53390
- if (T || N === void 0) return h(T);
53391
- if (c += N, c < 512 && N) return import_node_fs6.default.read(n, d, c, d.length - c, l + c, S);
53392
- if (l === 0 && d[0] === 31 && d[1] === 139) return h(new Error("cannot append to compressed archives"));
53393
- if (c < 512) return h(null, l);
53394
- let E = new C(d);
53395
- if (!E.cksumValid) return h(null, l);
53433
+ if (o === 0) return a(null, 0);
53434
+ let c = 0, d = Buffer.alloc(512), S = (T, D) => {
53435
+ if (T || D === void 0) return a(T);
53436
+ if (c += D, c < 512 && D) return import_node_fs6.default.read(n, d, c, d.length - c, l + c, S);
53437
+ if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
53438
+ if (c < 512) return a(null, l);
53439
+ let E = new F(d);
53440
+ if (!E.cksumValid) return a(null, l);
53396
53441
  let x = 512 * Math.ceil((E.size ?? 0) / 512);
53397
- if (l + x + 512 > o || (l += x + 512, l >= o)) return h(null, l);
53442
+ if (l + x + 512 > o || (l += x + 512, l >= o)) return a(null, l);
53398
53443
  s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, import_node_fs6.default.read(n, d, 0, 512, l, S);
53399
53444
  };
53400
53445
  import_node_fs6.default.read(n, d, 0, 512, l, S);
53401
53446
  };
53402
53447
  return new Promise((n, o) => {
53403
53448
  e.on("error", o);
53404
- let a = "r+", h = (l, c) => {
53405
- if (l && l.code === "ENOENT" && a === "r+") return a = "w+", import_node_fs6.default.open(s3.file, a, h);
53449
+ let h = "r+", a = (l, c) => {
53450
+ if (l && l.code === "ENOENT" && h === "r+") return h = "w+", import_node_fs6.default.open(s3.file, h, a);
53406
53451
  if (l || !c) return o(l);
53407
53452
  import_node_fs6.default.fstat(c, (d, S) => {
53408
53453
  if (d) return import_node_fs6.default.close(c, () => o(d));
53409
- i(c, S.size, (T, N) => {
53454
+ i(c, S.size, (T, D) => {
53410
53455
  if (T) return o(T);
53411
- let E = new tt(s3.file, { fd: c, start: N });
53412
- e.pipe(E), E.on("error", o), E.on("close", n), So(e, t);
53456
+ let E = new et(s3.file, { fd: c, start: D });
53457
+ e.pipe(E), E.on("error", o), E.on("close", n), _o(e, t);
53413
53458
  });
53414
53459
  });
53415
53460
  };
53416
- import_node_fs6.default.open(s3.file, a, h);
53461
+ import_node_fs6.default.open(s3.file, h, a);
53417
53462
  });
53418
53463
  };
53419
- var wo = (s3, t) => {
53464
+ var bo = (s3, t) => {
53420
53465
  t.forEach((e) => {
53421
- e.charAt(0) === "@" ? Ft({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53466
+ e.charAt(0) === "@" ? Ct({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53422
53467
  }), s3.end();
53423
53468
  };
53424
- var So = async (s3, t) => {
53425
- for (let e of t) e.charAt(0) === "@" ? await Ft({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53469
+ var _o = async (s3, t) => {
53470
+ for (let e of t) e.charAt(0) === "@" ? await Ct({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53426
53471
  s3.end();
53427
53472
  };
53428
- var vt = K(mo, Eo, () => {
53473
+ var vt = K(yo, go, () => {
53429
53474
  throw new TypeError("file is required");
53430
53475
  }, () => {
53431
53476
  throw new TypeError("file is required");
53432
53477
  }, (s3, t) => {
53433
- if (!vs(s3)) throw new TypeError("file is required");
53478
+ if (!Bs(s3)) throw new TypeError("file is required");
53434
53479
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
53435
53480
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
53436
53481
  });
53437
- var yo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
53438
- vt.validate?.(s3, t), Ro(s3);
53482
+ var Oo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
53483
+ vt.validate?.(s3, t), To(s3);
53439
53484
  });
53440
- var Ro = (s3) => {
53485
+ var To = (s3) => {
53441
53486
  let t = s3.filter;
53442
53487
  s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
53443
53488
  };
@@ -54629,9 +54674,9 @@ var Mime_default = Mime;
54629
54674
  var src_default = new Mime_default(standard_default, other_default)._freeze();
54630
54675
 
54631
54676
  // ../../../node_modules/axios/lib/helpers/bind.js
54632
- function bind(fn2, thisArg) {
54677
+ function bind(fn, thisArg) {
54633
54678
  return function wrap2() {
54634
- return fn2.apply(thisArg, arguments);
54679
+ return fn.apply(thisArg, arguments);
54635
54680
  };
54636
54681
  }
54637
54682
 
@@ -54743,7 +54788,7 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
54743
54788
  var trim = (str) => {
54744
54789
  return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
54745
54790
  };
54746
- function forEach(obj, fn2, { allOwnKeys = false } = {}) {
54791
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
54747
54792
  if (obj === null || typeof obj === "undefined") {
54748
54793
  return;
54749
54794
  }
@@ -54754,7 +54799,7 @@ function forEach(obj, fn2, { allOwnKeys = false } = {}) {
54754
54799
  }
54755
54800
  if (isArray(obj)) {
54756
54801
  for (i = 0, l = obj.length; i < l; i++) {
54757
- fn2.call(null, obj[i], i, obj);
54802
+ fn.call(null, obj[i], i, obj);
54758
54803
  }
54759
54804
  } else {
54760
54805
  if (isBuffer(obj)) {
@@ -54765,7 +54810,7 @@ function forEach(obj, fn2, { allOwnKeys = false } = {}) {
54765
54810
  let key;
54766
54811
  for (i = 0; i < len; i++) {
54767
54812
  key = keys[i];
54768
- fn2.call(null, obj[key], key, obj);
54813
+ fn.call(null, obj[key], key, obj);
54769
54814
  }
54770
54815
  }
54771
54816
  }
@@ -54923,13 +54968,13 @@ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
54923
54968
  return TypedArray && thing instanceof TypedArray;
54924
54969
  };
54925
54970
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
54926
- var forEachEntry = (obj, fn2) => {
54971
+ var forEachEntry = (obj, fn) => {
54927
54972
  const generator = obj && obj[iterator];
54928
54973
  const _iterator = generator.call(obj);
54929
54974
  let result;
54930
54975
  while ((result = _iterator.next()) && !result.done) {
54931
54976
  const pair = result.value;
54932
- fn2.call(obj, pair[0], pair[1]);
54977
+ fn.call(obj, pair[0], pair[1]);
54933
54978
  }
54934
54979
  };
54935
54980
  var matchAll = (regExp, str) => {
@@ -55841,10 +55886,10 @@ var InterceptorManager = class {
55841
55886
  *
55842
55887
  * @returns {void}
55843
55888
  */
55844
- forEach(fn2) {
55889
+ forEach(fn) {
55845
55890
  utils_default.forEach(this.handlers, function forEachHandler(h) {
55846
55891
  if (h !== null) {
55847
- fn2(h);
55892
+ fn(h);
55848
55893
  }
55849
55894
  });
55850
55895
  }
@@ -56127,8 +56172,8 @@ function transformData(fns, response) {
56127
56172
  const context = response || config;
56128
56173
  const headers = AxiosHeaders_default.from(context.headers);
56129
56174
  let data = context.data;
56130
- utils_default.forEach(fns, function transform(fn2) {
56131
- data = fn2.call(config, data, headers.normalize(), response ? response.status : void 0);
56175
+ utils_default.forEach(fns, function transform(fn) {
56176
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
56132
56177
  });
56133
56178
  headers.normalize();
56134
56179
  return data;
@@ -56678,17 +56723,17 @@ var Http2Sessions = class {
56678
56723
  var Http2Sessions_default = Http2Sessions;
56679
56724
 
56680
56725
  // ../../../node_modules/axios/lib/helpers/callbackify.js
56681
- var callbackify = (fn2, reducer) => {
56682
- return utils_default.isAsyncFn(fn2) ? function(...args) {
56726
+ var callbackify = (fn, reducer) => {
56727
+ return utils_default.isAsyncFn(fn) ? function(...args) {
56683
56728
  const cb = args.pop();
56684
- fn2.apply(this, args).then((value) => {
56729
+ fn.apply(this, args).then((value) => {
56685
56730
  try {
56686
56731
  reducer ? cb(null, ...reducer(value)) : cb(null, value);
56687
56732
  } catch (err) {
56688
56733
  cb(err);
56689
56734
  }
56690
56735
  }, cb);
56691
- } : fn2;
56736
+ } : fn;
56692
56737
  };
56693
56738
  var callbackify_default = callbackify;
56694
56739
 
@@ -56868,7 +56913,7 @@ function speedometer(samplesCount, min) {
56868
56913
  var speedometer_default = speedometer;
56869
56914
 
56870
56915
  // ../../../node_modules/axios/lib/helpers/throttle.js
56871
- function throttle(fn2, freq) {
56916
+ function throttle(fn, freq) {
56872
56917
  let timestamp = 0;
56873
56918
  let threshold = 1e3 / freq;
56874
56919
  let lastArgs;
@@ -56880,7 +56925,7 @@ function throttle(fn2, freq) {
56880
56925
  clearTimeout(timer);
56881
56926
  timer = null;
56882
56927
  }
56883
- fn2(...args);
56928
+ fn(...args);
56884
56929
  };
56885
56930
  const throttled = (...args) => {
56886
56931
  const now = Date.now();
@@ -56941,7 +56986,7 @@ var progressEventDecorator = (total, throttled) => {
56941
56986
  throttled[1]
56942
56987
  ];
56943
56988
  };
56944
- var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
56989
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
56945
56990
 
56946
56991
  // ../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
56947
56992
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
@@ -58476,9 +58521,9 @@ var decodeURIComponentSafe2 = (value) => {
58476
58521
  return value;
58477
58522
  }
58478
58523
  };
58479
- var test = (fn2, ...args) => {
58524
+ var test = (fn, ...args) => {
58480
58525
  try {
58481
- return !!fn2(...args);
58526
+ return !!fn(...args);
58482
58527
  } catch (e) {
58483
58528
  return false;
58484
58529
  }
@@ -58873,13 +58918,13 @@ var knownAdapters = {
58873
58918
  get: getFetch
58874
58919
  }
58875
58920
  };
58876
- utils_default.forEach(knownAdapters, (fn2, value) => {
58877
- if (fn2) {
58921
+ utils_default.forEach(knownAdapters, (fn, value) => {
58922
+ if (fn) {
58878
58923
  try {
58879
- Object.defineProperty(fn2, "name", { __proto__: null, value });
58924
+ Object.defineProperty(fn, "name", { __proto__: null, value });
58880
58925
  } catch (e) {
58881
58926
  }
58882
- Object.defineProperty(fn2, "adapterName", { __proto__: null, value });
58927
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
58883
58928
  }
58884
58929
  });
58885
58930
  var renderReason = (reason) => `- ${reason}`;
@@ -59576,7 +59621,7 @@ function getStore() {
59576
59621
  function readline() {
59577
59622
  return getStore().rl;
59578
59623
  }
59579
- function withUpdates(fn2) {
59624
+ function withUpdates(fn) {
59580
59625
  const wrapped = (...args) => {
59581
59626
  const store = getStore();
59582
59627
  let shouldUpdate = false;
@@ -59584,7 +59629,7 @@ function withUpdates(fn2) {
59584
59629
  store.handleChange = () => {
59585
59630
  shouldUpdate = true;
59586
59631
  };
59587
- const returnValue = fn2(...args);
59632
+ const returnValue = fn(...args);
59588
59633
  if (shouldUpdate) {
59589
59634
  oldHandleChange();
59590
59635
  }
@@ -60050,11 +60095,11 @@ function usePrefix({ status = "idle", theme }) {
60050
60095
  }
60051
60096
 
60052
60097
  // ../../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
60053
- function useMemo(fn2, dependencies) {
60098
+ function useMemo(fn, dependencies) {
60054
60099
  return withPointer((pointer) => {
60055
60100
  const prev = pointer.get();
60056
60101
  if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
60057
- const value = fn2();
60102
+ const value = fn();
60058
60103
  pointer.set({ value, dependencies });
60059
60104
  return value;
60060
60105
  }
@@ -60241,12 +60286,12 @@ var Emitter = class {
60241
60286
  configurable: false
60242
60287
  });
60243
60288
  }
60244
- on(ev, fn2) {
60245
- this.listeners[ev].push(fn2);
60289
+ on(ev, fn) {
60290
+ this.listeners[ev].push(fn);
60246
60291
  }
60247
- removeListener(ev, fn2) {
60292
+ removeListener(ev, fn) {
60248
60293
  const list = this.listeners[ev];
60249
- const i = list.indexOf(fn2);
60294
+ const i = list.indexOf(fn);
60250
60295
  if (i === -1) {
60251
60296
  return;
60252
60297
  }
@@ -60262,8 +60307,8 @@ var Emitter = class {
60262
60307
  }
60263
60308
  this.emitted[ev] = true;
60264
60309
  let ret = false;
60265
- for (const fn2 of this.listeners[ev]) {
60266
- ret = fn2(code, signal) === true || ret;
60310
+ for (const fn of this.listeners[ev]) {
60311
+ ret = fn(code, signal) === true || ret;
60267
60312
  }
60268
60313
  if (ev === "exit") {
60269
60314
  ret = this.emit("afterExit", code, signal) || ret;
@@ -60357,9 +60402,9 @@ var SignalExit = class extends SignalExitBase {
60357
60402
  this.#emitter.count += 1;
60358
60403
  for (const sig of signals) {
60359
60404
  try {
60360
- const fn2 = this.#sigListeners[sig];
60361
- if (fn2)
60362
- this.#process.on(sig, fn2);
60405
+ const fn = this.#sigListeners[sig];
60406
+ if (fn)
60407
+ this.#process.on(sig, fn);
60363
60408
  } catch (_3) {
60364
60409
  }
60365
60410
  }
@@ -62914,12 +62959,12 @@ var Emitter2 = class {
62914
62959
  configurable: false
62915
62960
  });
62916
62961
  }
62917
- on(ev, fn2) {
62918
- this.listeners[ev].push(fn2);
62962
+ on(ev, fn) {
62963
+ this.listeners[ev].push(fn);
62919
62964
  }
62920
- removeListener(ev, fn2) {
62965
+ removeListener(ev, fn) {
62921
62966
  const list = this.listeners[ev];
62922
- const i = list.indexOf(fn2);
62967
+ const i = list.indexOf(fn);
62923
62968
  if (i === -1) {
62924
62969
  return;
62925
62970
  }
@@ -62935,8 +62980,8 @@ var Emitter2 = class {
62935
62980
  }
62936
62981
  this.emitted[ev] = true;
62937
62982
  let ret = false;
62938
- for (const fn2 of this.listeners[ev]) {
62939
- ret = fn2(code, signal) === true || ret;
62983
+ for (const fn of this.listeners[ev]) {
62984
+ ret = fn(code, signal) === true || ret;
62940
62985
  }
62941
62986
  if (ev === "exit") {
62942
62987
  ret = this.emit("afterExit", code, signal) || ret;
@@ -63030,9 +63075,9 @@ var SignalExit2 = class extends SignalExitBase2 {
63030
63075
  this.#emitter.count += 1;
63031
63076
  for (const sig of signals2) {
63032
63077
  try {
63033
- const fn2 = this.#sigListeners[sig];
63034
- if (fn2)
63035
- this.#process.on(sig, fn2);
63078
+ const fn = this.#sigListeners[sig];
63079
+ if (fn)
63080
+ this.#process.on(sig, fn);
63036
63081
  } catch (_3) {
63037
63082
  }
63038
63083
  }
@@ -64768,7 +64813,7 @@ function expand_(str, isTop) {
64768
64813
  }
64769
64814
  }
64770
64815
  }
64771
- let N;
64816
+ let N2;
64772
64817
  if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
64773
64818
  const x = numeric(n[0]);
64774
64819
  const y2 = numeric(n[1]);
@@ -64781,7 +64826,7 @@ function expand_(str, isTop) {
64781
64826
  test2 = gte;
64782
64827
  }
64783
64828
  const pad = n.some(isPadded);
64784
- N = [];
64829
+ N2 = [];
64785
64830
  for (let i = x; test2(i, y2); i += incr) {
64786
64831
  let c;
64787
64832
  if (isAlphaSequence) {
@@ -64803,17 +64848,17 @@ function expand_(str, isTop) {
64803
64848
  }
64804
64849
  }
64805
64850
  }
64806
- N.push(c);
64851
+ N2.push(c);
64807
64852
  }
64808
64853
  } else {
64809
- N = [];
64854
+ N2 = [];
64810
64855
  for (let j2 = 0; j2 < n.length; j2++) {
64811
- N.push.apply(N, expand_(n[j2], false));
64856
+ N2.push.apply(N2, expand_(n[j2], false));
64812
64857
  }
64813
64858
  }
64814
- for (let j2 = 0; j2 < N.length; j2++) {
64859
+ for (let j2 = 0; j2 < N2.length; j2++) {
64815
64860
  for (let k2 = 0; k2 < post.length; k2++) {
64816
- const expansion = pre + N[j2] + post[k2];
64861
+ const expansion = pre + N2[j2] + post[k2];
64817
64862
  if (!isTop || isSequence || expansion) {
64818
64863
  expansions.push(expansion);
64819
64864
  }
@@ -66171,8 +66216,8 @@ var import_node_url2 = require("node:url");
66171
66216
  var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
66172
66217
  var warned = /* @__PURE__ */ new Set();
66173
66218
  var PROCESS = typeof process === "object" && !!process ? process : {};
66174
- var emitWarning = (msg, type, code, fn2) => {
66175
- typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn2) : console.error(`[${code}] ${type}: ${msg}`);
66219
+ var emitWarning = (msg, type, code, fn) => {
66220
+ typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
66176
66221
  };
66177
66222
  var AC = globalThis.AbortController;
66178
66223
  var AS = globalThis.AbortSignal;
@@ -66182,8 +66227,8 @@ if (typeof AC === "undefined") {
66182
66227
  _onabort = [];
66183
66228
  reason;
66184
66229
  aborted = false;
66185
- addEventListener(_3, fn2) {
66186
- this._onabort.push(fn2);
66230
+ addEventListener(_3, fn) {
66231
+ this._onabort.push(fn);
66187
66232
  }
66188
66233
  };
66189
66234
  AC = class AbortController {
@@ -66196,8 +66241,8 @@ if (typeof AC === "undefined") {
66196
66241
  return;
66197
66242
  this.signal.reason = reason;
66198
66243
  this.signal.aborted = true;
66199
- for (const fn2 of this.signal._onabort) {
66200
- fn2(reason);
66244
+ for (const fn of this.signal._onabort) {
66245
+ fn(reason);
66201
66246
  }
66202
66247
  this.signal.onabort?.(reason);
66203
66248
  }
@@ -66798,13 +66843,13 @@ var LRUCache = class _LRUCache {
66798
66843
  * Find a value for which the supplied fn method returns a truthy value,
66799
66844
  * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
66800
66845
  */
66801
- find(fn2, getOptions = {}) {
66846
+ find(fn, getOptions = {}) {
66802
66847
  for (const i of this.#indexes()) {
66803
66848
  const v2 = this.#valList[i];
66804
66849
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66805
66850
  if (value === void 0)
66806
66851
  continue;
66807
- if (fn2(value, this.#keyList[i], this)) {
66852
+ if (fn(value, this.#keyList[i], this)) {
66808
66853
  return this.get(this.#keyList[i], getOptions);
66809
66854
  }
66810
66855
  }
@@ -66820,26 +66865,26 @@ var LRUCache = class _LRUCache {
66820
66865
  *
66821
66866
  * Does not update age or recenty of use, or iterate over stale values.
66822
66867
  */
66823
- forEach(fn2, thisp = this) {
66868
+ forEach(fn, thisp = this) {
66824
66869
  for (const i of this.#indexes()) {
66825
66870
  const v2 = this.#valList[i];
66826
66871
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66827
66872
  if (value === void 0)
66828
66873
  continue;
66829
- fn2.call(thisp, value, this.#keyList[i], this);
66874
+ fn.call(thisp, value, this.#keyList[i], this);
66830
66875
  }
66831
66876
  }
66832
66877
  /**
66833
66878
  * The same as {@link LRUCache.forEach} but items are iterated over in
66834
66879
  * reverse order. (ie, less recently used items are iterated over first.)
66835
66880
  */
66836
- rforEach(fn2, thisp = this) {
66881
+ rforEach(fn, thisp = this) {
66837
66882
  for (const i of this.#rindexes()) {
66838
66883
  const v2 = this.#valList[i];
66839
66884
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66840
66885
  if (value === void 0)
66841
66886
  continue;
66842
- fn2.call(thisp, value, this.#keyList[i], this);
66887
+ fn.call(thisp, value, this.#keyList[i], this);
66843
66888
  }
66844
66889
  }
66845
66890
  /**
@@ -67617,8 +67662,8 @@ var ABORTED = /* @__PURE__ */ Symbol("aborted");
67617
67662
  var SIGNAL = /* @__PURE__ */ Symbol("signal");
67618
67663
  var DATALISTENERS = /* @__PURE__ */ Symbol("dataListeners");
67619
67664
  var DISCARDED = /* @__PURE__ */ Symbol("discarded");
67620
- var defer2 = (fn2) => Promise.resolve().then(fn2);
67621
- var nodefer = (fn2) => fn2();
67665
+ var defer2 = (fn) => Promise.resolve().then(fn);
67666
+ var nodefer = (fn) => fn();
67622
67667
  var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
67623
67668
  var isArrayBufferLike = (b2) => b2 instanceof ArrayBuffer || !!b2 && typeof b2 === "object" && b2.constructor && b2.constructor.name === "ArrayBuffer" && b2.byteLength >= 0;
67624
67669
  var isArrayBufferView2 = (b2) => !Buffer.isBuffer(b2) && ArrayBuffer.isView(b2);
@@ -67820,7 +67865,7 @@ var Minipass = class extends import_node_events2.EventEmitter {
67820
67865
  }
67821
67866
  if (!encoding)
67822
67867
  encoding = "utf8";
67823
- const fn2 = this[ASYNC] ? defer2 : nodefer;
67868
+ const fn = this[ASYNC] ? defer2 : nodefer;
67824
67869
  if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
67825
67870
  if (isArrayBufferView2(chunk)) {
67826
67871
  chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
@@ -67840,14 +67885,14 @@ var Minipass = class extends import_node_events2.EventEmitter {
67840
67885
  if (this[BUFFERLENGTH] !== 0)
67841
67886
  this.emit("readable");
67842
67887
  if (cb)
67843
- fn2(cb);
67888
+ fn(cb);
67844
67889
  return this[FLOWING];
67845
67890
  }
67846
67891
  if (!chunk.length) {
67847
67892
  if (this[BUFFERLENGTH] !== 0)
67848
67893
  this.emit("readable");
67849
67894
  if (cb)
67850
- fn2(cb);
67895
+ fn(cb);
67851
67896
  return this[FLOWING];
67852
67897
  }
67853
67898
  if (typeof chunk === "string" && // unless it is a string already ready for us to use
@@ -67866,7 +67911,7 @@ var Minipass = class extends import_node_events2.EventEmitter {
67866
67911
  if (this[BUFFERLENGTH] !== 0)
67867
67912
  this.emit("readable");
67868
67913
  if (cb)
67869
- fn2(cb);
67914
+ fn(cb);
67870
67915
  return this[FLOWING];
67871
67916
  }
67872
67917
  /**
@@ -70703,18 +70748,18 @@ var GlobUtil = class {
70703
70748
  if (this.signal?.aborted)
70704
70749
  return;
70705
70750
  this.paused = false;
70706
- let fn2 = void 0;
70707
- while (!this.paused && (fn2 = this.#onResume.shift())) {
70708
- fn2();
70751
+ let fn = void 0;
70752
+ while (!this.paused && (fn = this.#onResume.shift())) {
70753
+ fn();
70709
70754
  }
70710
70755
  }
70711
- onResume(fn2) {
70756
+ onResume(fn) {
70712
70757
  if (this.signal?.aborted)
70713
70758
  return;
70714
70759
  if (!this.paused) {
70715
- fn2();
70760
+ fn();
70716
70761
  } else {
70717
- this.#onResume.push(fn2);
70762
+ this.#onResume.push(fn);
70718
70763
  }
70719
70764
  }
70720
70765
  // do the requisite realpath/stat checking, and return the path
@@ -71360,9 +71405,9 @@ var ignoreENOENT = async (p2, rethrow) => p2.catch((er2) => {
71360
71405
  }
71361
71406
  throw rethrow ?? er2;
71362
71407
  });
71363
- var ignoreENOENTSync = (fn2, rethrow) => {
71408
+ var ignoreENOENTSync = (fn, rethrow) => {
71364
71409
  try {
71365
- return fn2();
71410
+ return fn();
71366
71411
  } catch (er2) {
71367
71412
  if (errorCode(er2) === "ENOENT") {
71368
71413
  return;
@@ -71453,28 +71498,28 @@ var import_path9 = require("path");
71453
71498
 
71454
71499
  // ../../../node_modules/rimraf/dist/esm/fix-eperm.js
71455
71500
  var { chmod } = promises;
71456
- var fixEPERM = (fn2) => async (path3) => {
71501
+ var fixEPERM = (fn) => async (path3) => {
71457
71502
  try {
71458
- return void await ignoreENOENT(fn2(path3));
71503
+ return void await ignoreENOENT(fn(path3));
71459
71504
  } catch (er2) {
71460
71505
  if (errorCode(er2) === "EPERM") {
71461
71506
  if (!await ignoreENOENT(chmod(path3, 438).then(() => true), er2)) {
71462
71507
  return;
71463
71508
  }
71464
- return void await fn2(path3);
71509
+ return void await fn(path3);
71465
71510
  }
71466
71511
  throw er2;
71467
71512
  }
71468
71513
  };
71469
- var fixEPERMSync = (fn2) => (path3) => {
71514
+ var fixEPERMSync = (fn) => (path3) => {
71470
71515
  try {
71471
- return void ignoreENOENTSync(() => fn2(path3));
71516
+ return void ignoreENOENTSync(() => fn(path3));
71472
71517
  } catch (er2) {
71473
71518
  if (errorCode(er2) === "EPERM") {
71474
71519
  if (!ignoreENOENTSync(() => ((0, import_fs8.chmodSync)(path3, 438), true), er2)) {
71475
71520
  return;
71476
71521
  }
71477
- return void fn2(path3);
71522
+ return void fn(path3);
71478
71523
  }
71479
71524
  throw er2;
71480
71525
  }
@@ -71486,7 +71531,7 @@ var MAXBACKOFF = 200;
71486
71531
  var RATE = 1.2;
71487
71532
  var MAXRETRIES = 10;
71488
71533
  var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]);
71489
- var retryBusy = (fn2) => {
71534
+ var retryBusy = (fn) => {
71490
71535
  const method = async (path3, opt, backoff = 1, total = 0) => {
71491
71536
  const mbo = opt.maxBackoff || MAXBACKOFF;
71492
71537
  const rate = opt.backoff || RATE;
@@ -71494,7 +71539,7 @@ var retryBusy = (fn2) => {
71494
71539
  let retries = 0;
71495
71540
  while (true) {
71496
71541
  try {
71497
- return await fn2(path3);
71542
+ return await fn(path3);
71498
71543
  } catch (er2) {
71499
71544
  if (isFsError(er2) && er2.path === path3 && codes.has(er2.code)) {
71500
71545
  backoff = Math.ceil(backoff * rate);
@@ -71514,13 +71559,13 @@ var retryBusy = (fn2) => {
71514
71559
  };
71515
71560
  return method;
71516
71561
  };
71517
- var retryBusySync = (fn2) => {
71562
+ var retryBusySync = (fn) => {
71518
71563
  const method = (path3, opt) => {
71519
71564
  const max = opt.maxRetries || MAXRETRIES;
71520
71565
  let retries = 0;
71521
71566
  while (true) {
71522
71567
  try {
71523
- return fn2(path3);
71568
+ return fn(path3);
71524
71569
  } catch (er2) {
71525
71570
  if (isFsError(er2) && er2.path === path3 && codes.has(er2.code) && retries < max) {
71526
71571
  retries++;
@@ -71829,26 +71874,26 @@ var useNative = !hasNative || process.platform === "win32" ? () => false : (opt)
71829
71874
  var useNativeSync = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
71830
71875
 
71831
71876
  // ../../../node_modules/rimraf/dist/esm/index.js
71832
- var wrap = (fn2) => async (path3, opt) => {
71877
+ var wrap = (fn) => async (path3, opt) => {
71833
71878
  const options = optArg(opt);
71834
71879
  if (options.glob) {
71835
71880
  path3 = await glob(path3, options.glob);
71836
71881
  }
71837
71882
  if (Array.isArray(path3)) {
71838
- return !!(await Promise.all(path3.map((p2) => fn2(path_arg_default(p2, options), options)))).reduce((a, b2) => a && b2, true);
71883
+ return !!(await Promise.all(path3.map((p2) => fn(path_arg_default(p2, options), options)))).reduce((a, b2) => a && b2, true);
71839
71884
  } else {
71840
- return !!await fn2(path_arg_default(path3, options), options);
71885
+ return !!await fn(path_arg_default(path3, options), options);
71841
71886
  }
71842
71887
  };
71843
- var wrapSync = (fn2) => (path3, opt) => {
71888
+ var wrapSync = (fn) => (path3, opt) => {
71844
71889
  const options = optArgSync(opt);
71845
71890
  if (options.glob) {
71846
71891
  path3 = globSync(path3, options.glob);
71847
71892
  }
71848
71893
  if (Array.isArray(path3)) {
71849
- return !!path3.map((p2) => fn2(path_arg_default(p2, options), options)).reduce((a, b2) => a && b2, true);
71894
+ return !!path3.map((p2) => fn(path_arg_default(p2, options), options)).reduce((a, b2) => a && b2, true);
71850
71895
  } else {
71851
- return !!fn2(path_arg_default(path3, options), options);
71896
+ return !!fn(path_arg_default(path3, options), options);
71852
71897
  }
71853
71898
  };
71854
71899
  var nativeSync = wrapSync(rimrafNativeSync);