@vercel/backends 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1971 -351
  2. package/package.json +5 -6
package/dist/index.mjs CHANGED
@@ -263,7 +263,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
263
263
  this.head = this.tail = null;
264
264
  this.length = 0;
265
265
  };
266
- BufferList.prototype.join = function join4(s) {
266
+ BufferList.prototype.join = function join6(s) {
267
267
  if (this.length === 0) return "";
268
268
  var p = this.head;
269
269
  var ret = "" + p.data;
@@ -1985,47 +1985,47 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
1985
1985
  }
1986
1986
  var chdir;
1987
1987
  module2.exports = patch;
1988
- function patch(fs6) {
1989
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs6);
1990
- if (!fs6.lutimes) patchLutimes(fs6);
1991
- fs6.chown = chownFix(fs6.chown);
1992
- fs6.fchown = chownFix(fs6.fchown);
1993
- fs6.lchown = chownFix(fs6.lchown);
1994
- fs6.chmod = chmodFix(fs6.chmod);
1995
- fs6.fchmod = chmodFix(fs6.fchmod);
1996
- fs6.lchmod = chmodFix(fs6.lchmod);
1997
- fs6.chownSync = chownFixSync(fs6.chownSync);
1998
- fs6.fchownSync = chownFixSync(fs6.fchownSync);
1999
- fs6.lchownSync = chownFixSync(fs6.lchownSync);
2000
- fs6.chmodSync = chmodFixSync(fs6.chmodSync);
2001
- fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
2002
- fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
2003
- fs6.stat = statFix(fs6.stat);
2004
- fs6.fstat = statFix(fs6.fstat);
2005
- fs6.lstat = statFix(fs6.lstat);
2006
- fs6.statSync = statFixSync(fs6.statSync);
2007
- fs6.fstatSync = statFixSync(fs6.fstatSync);
2008
- fs6.lstatSync = statFixSync(fs6.lstatSync);
2009
- if (fs6.chmod && !fs6.lchmod) {
2010
- fs6.lchmod = function(path7, mode, cb) {
1988
+ function patch(fs7) {
1989
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs7);
1990
+ if (!fs7.lutimes) patchLutimes(fs7);
1991
+ fs7.chown = chownFix(fs7.chown);
1992
+ fs7.fchown = chownFix(fs7.fchown);
1993
+ fs7.lchown = chownFix(fs7.lchown);
1994
+ fs7.chmod = chmodFix(fs7.chmod);
1995
+ fs7.fchmod = chmodFix(fs7.fchmod);
1996
+ fs7.lchmod = chmodFix(fs7.lchmod);
1997
+ fs7.chownSync = chownFixSync(fs7.chownSync);
1998
+ fs7.fchownSync = chownFixSync(fs7.fchownSync);
1999
+ fs7.lchownSync = chownFixSync(fs7.lchownSync);
2000
+ fs7.chmodSync = chmodFixSync(fs7.chmodSync);
2001
+ fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
2002
+ fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
2003
+ fs7.stat = statFix(fs7.stat);
2004
+ fs7.fstat = statFix(fs7.fstat);
2005
+ fs7.lstat = statFix(fs7.lstat);
2006
+ fs7.statSync = statFixSync(fs7.statSync);
2007
+ fs7.fstatSync = statFixSync(fs7.fstatSync);
2008
+ fs7.lstatSync = statFixSync(fs7.lstatSync);
2009
+ if (fs7.chmod && !fs7.lchmod) {
2010
+ fs7.lchmod = function(path7, mode, cb) {
2011
2011
  if (cb) process.nextTick(cb);
2012
2012
  };
2013
- fs6.lchmodSync = function() {};
2013
+ fs7.lchmodSync = function() {};
2014
2014
  }
2015
- if (fs6.chown && !fs6.lchown) {
2016
- fs6.lchown = function(path7, uid, gid, cb) {
2015
+ if (fs7.chown && !fs7.lchown) {
2016
+ fs7.lchown = function(path7, uid, gid, cb) {
2017
2017
  if (cb) process.nextTick(cb);
2018
2018
  };
2019
- fs6.lchownSync = function() {};
2019
+ fs7.lchownSync = function() {};
2020
2020
  }
2021
- if (platform === "win32") fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
2021
+ if (platform === "win32") fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
2022
2022
  function rename2(from, to, cb) {
2023
2023
  var start = Date.now();
2024
2024
  var backoff = 0;
2025
2025
  fs$rename(from, to, function CB(er) {
2026
2026
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2027
2027
  setTimeout(function() {
2028
- fs6.stat(to, function(stater, st) {
2028
+ fs7.stat(to, function(stater, st) {
2029
2029
  if (stater && stater.code === "ENOENT") fs$rename(from, to, CB);
2030
2030
  else cb(er);
2031
2031
  });
@@ -2038,8 +2038,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2038
2038
  }
2039
2039
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename2, fs$rename);
2040
2040
  return rename2;
2041
- }(fs6.rename);
2042
- fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
2041
+ }(fs7.rename);
2042
+ fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
2043
2043
  function read(fd, buffer, offset, length, position, callback_) {
2044
2044
  var callback;
2045
2045
  if (callback_ && typeof callback_ === "function") {
@@ -2047,21 +2047,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2047
2047
  callback = function(er, _, __) {
2048
2048
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
2049
2049
  eagCounter++;
2050
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
2050
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
2051
2051
  }
2052
2052
  callback_.apply(this, arguments);
2053
2053
  };
2054
2054
  }
2055
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
2055
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
2056
2056
  }
2057
2057
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
2058
2058
  return read;
2059
- }(fs6.read);
2060
- fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : function(fs$readSync) {
2059
+ }(fs7.read);
2060
+ fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : function(fs$readSync) {
2061
2061
  return function(fd, buffer, offset, length, position) {
2062
2062
  var eagCounter = 0;
2063
2063
  while (true) try {
2064
- return fs$readSync.call(fs6, fd, buffer, offset, length, position);
2064
+ return fs$readSync.call(fs7, fd, buffer, offset, length, position);
2065
2065
  } catch (er) {
2066
2066
  if (er.code === "EAGAIN" && eagCounter < 10) {
2067
2067
  eagCounter++;
@@ -2070,78 +2070,78 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2070
2070
  throw er;
2071
2071
  }
2072
2072
  };
2073
- }(fs6.readSync);
2074
- function patchLchmod(fs7) {
2075
- fs7.lchmod = function(path7, mode, callback) {
2076
- fs7.open(path7, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
2073
+ }(fs7.readSync);
2074
+ function patchLchmod(fs8) {
2075
+ fs8.lchmod = function(path7, mode, callback) {
2076
+ fs8.open(path7, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
2077
2077
  if (err) {
2078
2078
  if (callback) callback(err);
2079
2079
  return;
2080
2080
  }
2081
- fs7.fchmod(fd, mode, function(err2) {
2082
- fs7.close(fd, function(err22) {
2081
+ fs8.fchmod(fd, mode, function(err2) {
2082
+ fs8.close(fd, function(err22) {
2083
2083
  if (callback) callback(err2 || err22);
2084
2084
  });
2085
2085
  });
2086
2086
  });
2087
2087
  };
2088
- fs7.lchmodSync = function(path7, mode) {
2089
- var fd = fs7.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
2088
+ fs8.lchmodSync = function(path7, mode) {
2089
+ var fd = fs8.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
2090
2090
  var threw = true;
2091
2091
  var ret;
2092
2092
  try {
2093
- ret = fs7.fchmodSync(fd, mode);
2093
+ ret = fs8.fchmodSync(fd, mode);
2094
2094
  threw = false;
2095
2095
  } finally {
2096
2096
  if (threw) try {
2097
- fs7.closeSync(fd);
2097
+ fs8.closeSync(fd);
2098
2098
  } catch (er) {}
2099
- else fs7.closeSync(fd);
2099
+ else fs8.closeSync(fd);
2100
2100
  }
2101
2101
  return ret;
2102
2102
  };
2103
2103
  }
2104
- function patchLutimes(fs7) {
2105
- if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
2106
- fs7.lutimes = function(path7, at, mt, cb) {
2107
- fs7.open(path7, constants.O_SYMLINK, function(er, fd) {
2104
+ function patchLutimes(fs8) {
2105
+ if (constants.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
2106
+ fs8.lutimes = function(path7, at, mt, cb) {
2107
+ fs8.open(path7, constants.O_SYMLINK, function(er, fd) {
2108
2108
  if (er) {
2109
2109
  if (cb) cb(er);
2110
2110
  return;
2111
2111
  }
2112
- fs7.futimes(fd, at, mt, function(er2) {
2113
- fs7.close(fd, function(er22) {
2112
+ fs8.futimes(fd, at, mt, function(er2) {
2113
+ fs8.close(fd, function(er22) {
2114
2114
  if (cb) cb(er2 || er22);
2115
2115
  });
2116
2116
  });
2117
2117
  });
2118
2118
  };
2119
- fs7.lutimesSync = function(path7, at, mt) {
2120
- var fd = fs7.openSync(path7, constants.O_SYMLINK);
2119
+ fs8.lutimesSync = function(path7, at, mt) {
2120
+ var fd = fs8.openSync(path7, constants.O_SYMLINK);
2121
2121
  var ret;
2122
2122
  var threw = true;
2123
2123
  try {
2124
- ret = fs7.futimesSync(fd, at, mt);
2124
+ ret = fs8.futimesSync(fd, at, mt);
2125
2125
  threw = false;
2126
2126
  } finally {
2127
2127
  if (threw) try {
2128
- fs7.closeSync(fd);
2128
+ fs8.closeSync(fd);
2129
2129
  } catch (er) {}
2130
- else fs7.closeSync(fd);
2130
+ else fs8.closeSync(fd);
2131
2131
  }
2132
2132
  return ret;
2133
2133
  };
2134
- } else if (fs7.futimes) {
2135
- fs7.lutimes = function(_a, _b, _c, cb) {
2134
+ } else if (fs8.futimes) {
2135
+ fs8.lutimes = function(_a, _b, _c, cb) {
2136
2136
  if (cb) process.nextTick(cb);
2137
2137
  };
2138
- fs7.lutimesSync = function() {};
2138
+ fs8.lutimesSync = function() {};
2139
2139
  }
2140
2140
  }
2141
2141
  function chmodFix(orig) {
2142
2142
  if (!orig) return orig;
2143
2143
  return function(target, mode, cb) {
2144
- return orig.call(fs6, target, mode, function(er) {
2144
+ return orig.call(fs7, target, mode, function(er) {
2145
2145
  if (chownErOk(er)) er = null;
2146
2146
  if (cb) cb.apply(this, arguments);
2147
2147
  });
@@ -2151,7 +2151,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2151
2151
  if (!orig) return orig;
2152
2152
  return function(target, mode) {
2153
2153
  try {
2154
- return orig.call(fs6, target, mode);
2154
+ return orig.call(fs7, target, mode);
2155
2155
  } catch (er) {
2156
2156
  if (!chownErOk(er)) throw er;
2157
2157
  }
@@ -2160,7 +2160,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2160
2160
  function chownFix(orig) {
2161
2161
  if (!orig) return orig;
2162
2162
  return function(target, uid, gid, cb) {
2163
- return orig.call(fs6, target, uid, gid, function(er) {
2163
+ return orig.call(fs7, target, uid, gid, function(er) {
2164
2164
  if (chownErOk(er)) er = null;
2165
2165
  if (cb) cb.apply(this, arguments);
2166
2166
  });
@@ -2170,7 +2170,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2170
2170
  if (!orig) return orig;
2171
2171
  return function(target, uid, gid) {
2172
2172
  try {
2173
- return orig.call(fs6, target, uid, gid);
2173
+ return orig.call(fs7, target, uid, gid);
2174
2174
  } catch (er) {
2175
2175
  if (!chownErOk(er)) throw er;
2176
2176
  }
@@ -2190,13 +2190,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2190
2190
  }
2191
2191
  if (cb) cb.apply(this, arguments);
2192
2192
  }
2193
- return options ? orig.call(fs6, target, options, callback) : orig.call(fs6, target, callback);
2193
+ return options ? orig.call(fs7, target, options, callback) : orig.call(fs7, target, callback);
2194
2194
  };
2195
2195
  }
2196
2196
  function statFixSync(orig) {
2197
2197
  if (!orig) return orig;
2198
2198
  return function(target, options) {
2199
- var stats = options ? orig.call(fs6, target, options) : orig.call(fs6, target);
2199
+ var stats = options ? orig.call(fs7, target, options) : orig.call(fs7, target);
2200
2200
  if (stats) {
2201
2201
  if (stats.uid < 0) stats.uid += 4294967296;
2202
2202
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -2217,7 +2217,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2217
2217
  var require_legacy_streams = __commonJS({ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2218
2218
  var Stream = __require("stream").Stream;
2219
2219
  module2.exports = legacy;
2220
- function legacy(fs6) {
2220
+ function legacy(fs7) {
2221
2221
  return {
2222
2222
  ReadStream,
2223
2223
  WriteStream
@@ -2253,7 +2253,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2253
2253
  });
2254
2254
  return;
2255
2255
  }
2256
- fs6.open(this.path, this.flags, this.mode, function(err, fd) {
2256
+ fs7.open(this.path, this.flags, this.mode, function(err, fd) {
2257
2257
  if (err) {
2258
2258
  self2.emit("error", err);
2259
2259
  self2.readable = false;
@@ -2288,7 +2288,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2288
2288
  this.busy = false;
2289
2289
  this._queue = [];
2290
2290
  if (this.fd === null) {
2291
- this._open = fs6.open;
2291
+ this._open = fs7.open;
2292
2292
  this._queue.push([
2293
2293
  this._open,
2294
2294
  this.path,
@@ -2317,7 +2317,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2317
2317
  }
2318
2318
  } });
2319
2319
  var require_graceful_fs = __commonJS({ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
2320
- var fs6 = __require("fs");
2320
+ var fs7 = __require("fs");
2321
2321
  var polyfills = require_polyfills();
2322
2322
  var legacy = require_legacy_streams();
2323
2323
  var clone = require_clone();
@@ -2344,46 +2344,46 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2344
2344
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
2345
2345
  console.error(m);
2346
2346
  };
2347
- if (!fs6[gracefulQueue]) {
2347
+ if (!fs7[gracefulQueue]) {
2348
2348
  queue = global[gracefulQueue] || [];
2349
- publishQueue(fs6, queue);
2350
- fs6.close = function(fs$close) {
2349
+ publishQueue(fs7, queue);
2350
+ fs7.close = function(fs$close) {
2351
2351
  function close(fd, cb) {
2352
- return fs$close.call(fs6, fd, function(err) {
2352
+ return fs$close.call(fs7, fd, function(err) {
2353
2353
  if (!err) resetQueue();
2354
2354
  if (typeof cb === "function") cb.apply(this, arguments);
2355
2355
  });
2356
2356
  }
2357
2357
  Object.defineProperty(close, previousSymbol, { value: fs$close });
2358
2358
  return close;
2359
- }(fs6.close);
2360
- fs6.closeSync = function(fs$closeSync) {
2359
+ }(fs7.close);
2360
+ fs7.closeSync = function(fs$closeSync) {
2361
2361
  function closeSync(fd) {
2362
- fs$closeSync.apply(fs6, arguments);
2362
+ fs$closeSync.apply(fs7, arguments);
2363
2363
  resetQueue();
2364
2364
  }
2365
2365
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
2366
2366
  return closeSync;
2367
- }(fs6.closeSync);
2367
+ }(fs7.closeSync);
2368
2368
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
2369
- debug2(fs6[gracefulQueue]);
2370
- __require("assert").equal(fs6[gracefulQueue].length, 0);
2369
+ debug2(fs7[gracefulQueue]);
2370
+ __require("assert").equal(fs7[gracefulQueue].length, 0);
2371
2371
  });
2372
2372
  }
2373
2373
  var queue;
2374
- if (!global[gracefulQueue]) publishQueue(global, fs6[gracefulQueue]);
2375
- module2.exports = patch(clone(fs6));
2376
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
2377
- module2.exports = patch(fs6);
2378
- fs6.__patched = true;
2379
- }
2380
- function patch(fs7) {
2381
- polyfills(fs7);
2382
- fs7.gracefulify = patch;
2383
- fs7.createReadStream = createReadStream;
2384
- fs7.createWriteStream = createWriteStream;
2385
- var fs$readFile = fs7.readFile;
2386
- fs7.readFile = readFile4;
2374
+ if (!global[gracefulQueue]) publishQueue(global, fs7[gracefulQueue]);
2375
+ module2.exports = patch(clone(fs7));
2376
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
2377
+ module2.exports = patch(fs7);
2378
+ fs7.__patched = true;
2379
+ }
2380
+ function patch(fs8) {
2381
+ polyfills(fs8);
2382
+ fs8.gracefulify = patch;
2383
+ fs8.createReadStream = createReadStream;
2384
+ fs8.createWriteStream = createWriteStream;
2385
+ var fs$readFile = fs8.readFile;
2386
+ fs8.readFile = readFile4;
2387
2387
  function readFile4(path7, options, cb) {
2388
2388
  if (typeof options === "function") cb = options, options = null;
2389
2389
  return go$readFile(path7, options, cb);
@@ -2404,8 +2404,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2404
2404
  });
2405
2405
  }
2406
2406
  }
2407
- var fs$writeFile = fs7.writeFile;
2408
- fs7.writeFile = writeFile$1;
2407
+ var fs$writeFile = fs8.writeFile;
2408
+ fs8.writeFile = writeFile$1;
2409
2409
  function writeFile$1(path7, data, options, cb) {
2410
2410
  if (typeof options === "function") cb = options, options = null;
2411
2411
  return go$writeFile(path7, data, options, cb);
@@ -2427,8 +2427,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2427
2427
  });
2428
2428
  }
2429
2429
  }
2430
- var fs$appendFile = fs7.appendFile;
2431
- if (fs$appendFile) fs7.appendFile = appendFile;
2430
+ var fs$appendFile = fs8.appendFile;
2431
+ if (fs$appendFile) fs8.appendFile = appendFile;
2432
2432
  function appendFile(path7, data, options, cb) {
2433
2433
  if (typeof options === "function") cb = options, options = null;
2434
2434
  return go$appendFile(path7, data, options, cb);
@@ -2450,8 +2450,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2450
2450
  });
2451
2451
  }
2452
2452
  }
2453
- var fs$copyFile = fs7.copyFile;
2454
- if (fs$copyFile) fs7.copyFile = copyFile;
2453
+ var fs$copyFile = fs8.copyFile;
2454
+ if (fs$copyFile) fs8.copyFile = copyFile;
2455
2455
  function copyFile(src, dest, flags, cb) {
2456
2456
  if (typeof flags === "function") {
2457
2457
  cb = flags;
@@ -2476,8 +2476,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2476
2476
  });
2477
2477
  }
2478
2478
  }
2479
- var fs$readdir = fs7.readdir;
2480
- fs7.readdir = readdir;
2479
+ var fs$readdir = fs8.readdir;
2480
+ fs8.readdir = readdir;
2481
2481
  var noReaddirOptionVersions = /^v[0-5]\./;
2482
2482
  function readdir(path7, options, cb) {
2483
2483
  if (typeof options === "function") cb = options, options = null;
@@ -2508,21 +2508,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2508
2508
  }
2509
2509
  }
2510
2510
  if (process.version.substr(0, 4) === "v0.8") {
2511
- var legStreams = legacy(fs7);
2511
+ var legStreams = legacy(fs8);
2512
2512
  ReadStream = legStreams.ReadStream;
2513
2513
  WriteStream = legStreams.WriteStream;
2514
2514
  }
2515
- var fs$ReadStream = fs7.ReadStream;
2515
+ var fs$ReadStream = fs8.ReadStream;
2516
2516
  if (fs$ReadStream) {
2517
2517
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
2518
2518
  ReadStream.prototype.open = ReadStream$open;
2519
2519
  }
2520
- var fs$WriteStream = fs7.WriteStream;
2520
+ var fs$WriteStream = fs8.WriteStream;
2521
2521
  if (fs$WriteStream) {
2522
2522
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
2523
2523
  WriteStream.prototype.open = WriteStream$open;
2524
2524
  }
2525
- Object.defineProperty(fs7, "ReadStream", {
2525
+ Object.defineProperty(fs8, "ReadStream", {
2526
2526
  get: function() {
2527
2527
  return ReadStream;
2528
2528
  },
@@ -2532,7 +2532,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2532
2532
  enumerable: true,
2533
2533
  configurable: true
2534
2534
  });
2535
- Object.defineProperty(fs7, "WriteStream", {
2535
+ Object.defineProperty(fs8, "WriteStream", {
2536
2536
  get: function() {
2537
2537
  return WriteStream;
2538
2538
  },
@@ -2543,7 +2543,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2543
2543
  configurable: true
2544
2544
  });
2545
2545
  var FileReadStream = ReadStream;
2546
- Object.defineProperty(fs7, "FileReadStream", {
2546
+ Object.defineProperty(fs8, "FileReadStream", {
2547
2547
  get: function() {
2548
2548
  return FileReadStream;
2549
2549
  },
@@ -2554,7 +2554,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2554
2554
  configurable: true
2555
2555
  });
2556
2556
  var FileWriteStream = WriteStream;
2557
- Object.defineProperty(fs7, "FileWriteStream", {
2557
+ Object.defineProperty(fs8, "FileWriteStream", {
2558
2558
  get: function() {
2559
2559
  return FileWriteStream;
2560
2560
  },
@@ -2598,13 +2598,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2598
2598
  });
2599
2599
  }
2600
2600
  function createReadStream(path7, options) {
2601
- return new fs7.ReadStream(path7, options);
2601
+ return new fs8.ReadStream(path7, options);
2602
2602
  }
2603
2603
  function createWriteStream(path7, options) {
2604
- return new fs7.WriteStream(path7, options);
2604
+ return new fs8.WriteStream(path7, options);
2605
2605
  }
2606
- var fs$open = fs7.open;
2607
- fs7.open = open;
2606
+ var fs$open = fs8.open;
2607
+ fs8.open = open;
2608
2608
  function open(path7, flags, mode, cb) {
2609
2609
  if (typeof mode === "function") cb = mode, mode = null;
2610
2610
  return go$open(path7, flags, mode, cb);
@@ -2626,27 +2626,27 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2626
2626
  });
2627
2627
  }
2628
2628
  }
2629
- return fs7;
2629
+ return fs8;
2630
2630
  }
2631
2631
  function enqueue(elem) {
2632
2632
  debug2("ENQUEUE", elem[0].name, elem[1]);
2633
- fs6[gracefulQueue].push(elem);
2633
+ fs7[gracefulQueue].push(elem);
2634
2634
  retry2();
2635
2635
  }
2636
2636
  var retryTimer;
2637
2637
  function resetQueue() {
2638
2638
  var now = Date.now();
2639
- for (var i = 0; i < fs6[gracefulQueue].length; ++i) if (fs6[gracefulQueue][i].length > 2) {
2640
- fs6[gracefulQueue][i][3] = now;
2641
- fs6[gracefulQueue][i][4] = now;
2639
+ for (var i = 0; i < fs7[gracefulQueue].length; ++i) if (fs7[gracefulQueue][i].length > 2) {
2640
+ fs7[gracefulQueue][i][3] = now;
2641
+ fs7[gracefulQueue][i][4] = now;
2642
2642
  }
2643
2643
  retry2();
2644
2644
  }
2645
2645
  function retry2() {
2646
2646
  clearTimeout(retryTimer);
2647
2647
  retryTimer = void 0;
2648
- if (fs6[gracefulQueue].length === 0) return;
2649
- var elem = fs6[gracefulQueue].shift();
2648
+ if (fs7[gracefulQueue].length === 0) return;
2649
+ var elem = fs7[gracefulQueue].shift();
2650
2650
  var fn = elem[0];
2651
2651
  var args = elem[1];
2652
2652
  var err = elem[2];
@@ -2665,14 +2665,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2665
2665
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
2666
2666
  debug2("RETRY", fn.name, args);
2667
2667
  fn.apply(null, args.concat([startTime]));
2668
- } else fs6[gracefulQueue].push(elem);
2668
+ } else fs7[gracefulQueue].push(elem);
2669
2669
  }
2670
2670
  if (retryTimer === void 0) retryTimer = setTimeout(retry2, 0);
2671
2671
  }
2672
2672
  } });
2673
2673
  var require_fs = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/fs/index.js"(exports2) {
2674
2674
  var u = require_universalify().fromCallback;
2675
- var fs6 = require_graceful_fs();
2675
+ var fs7 = require_graceful_fs();
2676
2676
  var api = [
2677
2677
  "access",
2678
2678
  "appendFile",
@@ -2709,23 +2709,23 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2709
2709
  "utimes",
2710
2710
  "writeFile"
2711
2711
  ].filter((key) => {
2712
- return typeof fs6[key] === "function";
2712
+ return typeof fs7[key] === "function";
2713
2713
  });
2714
- Object.assign(exports2, fs6);
2714
+ Object.assign(exports2, fs7);
2715
2715
  api.forEach((method) => {
2716
- exports2[method] = u(fs6[method]);
2716
+ exports2[method] = u(fs7[method]);
2717
2717
  });
2718
- exports2.realpath.native = u(fs6.realpath.native);
2718
+ exports2.realpath.native = u(fs7.realpath.native);
2719
2719
  exports2.exists = function(filename, callback) {
2720
- if (typeof callback === "function") return fs6.exists(filename, callback);
2720
+ if (typeof callback === "function") return fs7.exists(filename, callback);
2721
2721
  return new Promise((resolve) => {
2722
- return fs6.exists(filename, resolve);
2722
+ return fs7.exists(filename, resolve);
2723
2723
  });
2724
2724
  };
2725
2725
  exports2.read = function(fd, buffer, offset, length, position, callback) {
2726
- if (typeof callback === "function") return fs6.read(fd, buffer, offset, length, position, callback);
2726
+ if (typeof callback === "function") return fs7.read(fd, buffer, offset, length, position, callback);
2727
2727
  return new Promise((resolve, reject) => {
2728
- fs6.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
2728
+ fs7.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
2729
2729
  if (err) return reject(err);
2730
2730
  resolve({
2731
2731
  bytesRead,
@@ -2735,9 +2735,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2735
2735
  });
2736
2736
  };
2737
2737
  exports2.write = function(fd, buffer, ...args) {
2738
- if (typeof args[args.length - 1] === "function") return fs6.write(fd, buffer, ...args);
2738
+ if (typeof args[args.length - 1] === "function") return fs7.write(fd, buffer, ...args);
2739
2739
  return new Promise((resolve, reject) => {
2740
- fs6.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
2740
+ fs7.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
2741
2741
  if (err) return reject(err);
2742
2742
  resolve({
2743
2743
  bytesWritten,
@@ -2746,10 +2746,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2746
2746
  });
2747
2747
  });
2748
2748
  };
2749
- if (typeof fs6.writev === "function") exports2.writev = function(fd, buffers, ...args) {
2750
- if (typeof args[args.length - 1] === "function") return fs6.writev(fd, buffers, ...args);
2749
+ if (typeof fs7.writev === "function") exports2.writev = function(fd, buffers, ...args) {
2750
+ if (typeof args[args.length - 1] === "function") return fs7.writev(fd, buffers, ...args);
2751
2751
  return new Promise((resolve, reject) => {
2752
- fs6.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
2752
+ fs7.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
2753
2753
  if (err) return reject(err);
2754
2754
  resolve({
2755
2755
  bytesWritten,
@@ -2772,7 +2772,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2772
2772
  };
2773
2773
  } });
2774
2774
  var require_make_dir = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
2775
- var fs6 = require_fs();
2775
+ var fs7 = require_fs();
2776
2776
  var { checkPath } = require_utils();
2777
2777
  var getMode = (options) => {
2778
2778
  const defaults = { mode: 511 };
@@ -2784,14 +2784,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2784
2784
  };
2785
2785
  module2.exports.makeDir = async (dir, options) => {
2786
2786
  checkPath(dir);
2787
- return fs6.mkdir(dir, {
2787
+ return fs7.mkdir(dir, {
2788
2788
  mode: getMode(options),
2789
2789
  recursive: true
2790
2790
  });
2791
2791
  };
2792
2792
  module2.exports.makeDirSync = (dir, options) => {
2793
2793
  checkPath(dir);
2794
- return fs6.mkdirSync(dir, {
2794
+ return fs7.mkdirSync(dir, {
2795
2795
  mode: getMode(options),
2796
2796
  recursive: true
2797
2797
  });
@@ -2811,21 +2811,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2811
2811
  };
2812
2812
  } });
2813
2813
  var require_utimes = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
2814
- var fs6 = require_graceful_fs();
2814
+ var fs7 = require_graceful_fs();
2815
2815
  function utimesMillis(path7, atime, mtime2, callback) {
2816
- fs6.open(path7, "r+", (err, fd) => {
2816
+ fs7.open(path7, "r+", (err, fd) => {
2817
2817
  if (err) return callback(err);
2818
- fs6.futimes(fd, atime, mtime2, (futimesErr) => {
2819
- fs6.close(fd, (closeErr) => {
2818
+ fs7.futimes(fd, atime, mtime2, (futimesErr) => {
2819
+ fs7.close(fd, (closeErr) => {
2820
2820
  if (callback) callback(futimesErr || closeErr);
2821
2821
  });
2822
2822
  });
2823
2823
  });
2824
2824
  }
2825
2825
  function utimesMillisSync(path7, atime, mtime2) {
2826
- const fd = fs6.openSync(path7, "r+");
2827
- fs6.futimesSync(fd, atime, mtime2);
2828
- return fs6.closeSync(fd);
2826
+ const fd = fs7.openSync(path7, "r+");
2827
+ fs7.futimesSync(fd, atime, mtime2);
2828
+ return fs7.closeSync(fd);
2829
2829
  }
2830
2830
  module2.exports = {
2831
2831
  utimesMillis,
@@ -2833,11 +2833,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2833
2833
  };
2834
2834
  } });
2835
2835
  var require_stat = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
2836
- var fs6 = require_fs();
2836
+ var fs7 = require_fs();
2837
2837
  var path7 = __require("path");
2838
2838
  var util = __require("util");
2839
2839
  function getStats(src, dest, opts) {
2840
- const statFunc = opts.dereference ? (file) => fs6.stat(file, { bigint: true }) : (file) => fs6.lstat(file, { bigint: true });
2840
+ const statFunc = opts.dereference ? (file) => fs7.stat(file, { bigint: true }) : (file) => fs7.lstat(file, { bigint: true });
2841
2841
  return Promise.all([statFunc(src), statFunc(dest).catch((err) => {
2842
2842
  if (err.code === "ENOENT") return null;
2843
2843
  throw err;
@@ -2848,7 +2848,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2848
2848
  }
2849
2849
  function getStatsSync(src, dest, opts) {
2850
2850
  let destStat;
2851
- const statFunc = opts.dereference ? (file) => fs6.statSync(file, { bigint: true }) : (file) => fs6.lstatSync(file, { bigint: true });
2851
+ const statFunc = opts.dereference ? (file) => fs7.statSync(file, { bigint: true }) : (file) => fs7.lstatSync(file, { bigint: true });
2852
2852
  const srcStat = statFunc(src);
2853
2853
  try {
2854
2854
  destStat = statFunc(dest);
@@ -2915,7 +2915,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2915
2915
  const srcParent = path7.resolve(path7.dirname(src));
2916
2916
  const destParent = path7.resolve(path7.dirname(dest));
2917
2917
  if (destParent === srcParent || destParent === path7.parse(destParent).root) return cb();
2918
- fs6.stat(destParent, { bigint: true }, (err, destStat) => {
2918
+ fs7.stat(destParent, { bigint: true }, (err, destStat) => {
2919
2919
  if (err) {
2920
2920
  if (err.code === "ENOENT") return cb();
2921
2921
  return cb(err);
@@ -2930,7 +2930,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2930
2930
  if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
2931
2931
  let destStat;
2932
2932
  try {
2933
- destStat = fs6.statSync(destParent, { bigint: true });
2933
+ destStat = fs7.statSync(destParent, { bigint: true });
2934
2934
  } catch (err) {
2935
2935
  if (err.code === "ENOENT") return;
2936
2936
  throw err;
@@ -2959,7 +2959,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2959
2959
  };
2960
2960
  } });
2961
2961
  var require_copy_sync = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
2962
- var fs6 = require_graceful_fs();
2962
+ var fs7 = require_graceful_fs();
2963
2963
  var path7 = __require("path");
2964
2964
  var mkdirsSync = require_mkdirs().mkdirsSync;
2965
2965
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -2979,7 +2979,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2979
2979
  function handleFilterAndCopy(destStat, src, dest, opts) {
2980
2980
  if (opts.filter && !opts.filter(src, dest)) return;
2981
2981
  const destParent = path7.dirname(dest);
2982
- if (!fs6.existsSync(destParent)) mkdirsSync(destParent);
2982
+ if (!fs7.existsSync(destParent)) mkdirsSync(destParent);
2983
2983
  return getStats(destStat, src, dest, opts);
2984
2984
  }
2985
2985
  function startCopy(destStat, src, dest, opts) {
@@ -2987,7 +2987,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2987
2987
  return getStats(destStat, src, dest, opts);
2988
2988
  }
2989
2989
  function getStats(destStat, src, dest, opts) {
2990
- const srcStat = (opts.dereference ? fs6.statSync : fs6.lstatSync)(src);
2990
+ const srcStat = (opts.dereference ? fs7.statSync : fs7.lstatSync)(src);
2991
2991
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
2992
2992
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
2993
2993
  else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
@@ -3001,12 +3001,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3001
3001
  }
3002
3002
  function mayCopyFile(srcStat, src, dest, opts) {
3003
3003
  if (opts.overwrite) {
3004
- fs6.unlinkSync(dest);
3004
+ fs7.unlinkSync(dest);
3005
3005
  return copyFile(srcStat, src, dest, opts);
3006
3006
  } else if (opts.errorOnExist) throw new Error(`'${dest}' already exists`);
3007
3007
  }
3008
3008
  function copyFile(srcStat, src, dest, opts) {
3009
- fs6.copyFileSync(src, dest);
3009
+ fs7.copyFileSync(src, dest);
3010
3010
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
3011
3011
  return setDestMode(dest, srcStat.mode);
3012
3012
  }
@@ -3021,10 +3021,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3021
3021
  return setDestMode(dest, srcMode | 128);
3022
3022
  }
3023
3023
  function setDestMode(dest, srcMode) {
3024
- return fs6.chmodSync(dest, srcMode);
3024
+ return fs7.chmodSync(dest, srcMode);
3025
3025
  }
3026
3026
  function setDestTimestamps(src, dest) {
3027
- const updatedSrcStat = fs6.statSync(src);
3027
+ const updatedSrcStat = fs7.statSync(src);
3028
3028
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
3029
3029
  }
3030
3030
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -3032,12 +3032,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3032
3032
  return copyDir(src, dest, opts);
3033
3033
  }
3034
3034
  function mkDirAndCopy(srcMode, src, dest, opts) {
3035
- fs6.mkdirSync(dest);
3035
+ fs7.mkdirSync(dest);
3036
3036
  copyDir(src, dest, opts);
3037
3037
  return setDestMode(dest, srcMode);
3038
3038
  }
3039
3039
  function copyDir(src, dest, opts) {
3040
- fs6.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3040
+ fs7.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3041
3041
  }
3042
3042
  function copyDirItem(item, src, dest, opts) {
3043
3043
  const srcItem = path7.join(src, item);
@@ -3046,26 +3046,26 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3046
3046
  return startCopy(destStat, srcItem, destItem, opts);
3047
3047
  }
3048
3048
  function onLink(destStat, src, dest, opts) {
3049
- let resolvedSrc = fs6.readlinkSync(src);
3049
+ let resolvedSrc = fs7.readlinkSync(src);
3050
3050
  if (opts.dereference) resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
3051
- if (!destStat) return fs6.symlinkSync(resolvedSrc, dest);
3051
+ if (!destStat) return fs7.symlinkSync(resolvedSrc, dest);
3052
3052
  else {
3053
3053
  let resolvedDest;
3054
3054
  try {
3055
- resolvedDest = fs6.readlinkSync(dest);
3055
+ resolvedDest = fs7.readlinkSync(dest);
3056
3056
  } catch (err) {
3057
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs6.symlinkSync(resolvedSrc, dest);
3057
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs7.symlinkSync(resolvedSrc, dest);
3058
3058
  throw err;
3059
3059
  }
3060
3060
  if (opts.dereference) resolvedDest = path7.resolve(process.cwd(), resolvedDest);
3061
3061
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
3062
- if (fs6.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
3062
+ if (fs7.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
3063
3063
  return copyLink(resolvedSrc, dest);
3064
3064
  }
3065
3065
  }
3066
3066
  function copyLink(resolvedSrc, dest) {
3067
- fs6.unlinkSync(dest);
3068
- return fs6.symlinkSync(resolvedSrc, dest);
3067
+ fs7.unlinkSync(dest);
3068
+ return fs7.symlinkSync(resolvedSrc, dest);
3069
3069
  }
3070
3070
  module2.exports = copySync;
3071
3071
  } });
@@ -3074,17 +3074,17 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3074
3074
  } });
3075
3075
  var require_path_exists = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
3076
3076
  var u = require_universalify().fromPromise;
3077
- var fs6 = require_fs();
3077
+ var fs7 = require_fs();
3078
3078
  function pathExists(path7) {
3079
- return fs6.access(path7).then(() => true).catch(() => false);
3079
+ return fs7.access(path7).then(() => true).catch(() => false);
3080
3080
  }
3081
3081
  module2.exports = {
3082
3082
  pathExists: u(pathExists),
3083
- pathExistsSync: fs6.existsSync
3083
+ pathExistsSync: fs7.existsSync
3084
3084
  };
3085
3085
  } });
3086
3086
  var require_copy = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
3087
- var fs6 = require_graceful_fs();
3087
+ var fs7 = require_graceful_fs();
3088
3088
  var path7 = __require("path");
3089
3089
  var mkdirs = require_mkdirs().mkdirs;
3090
3090
  var pathExists = require_path_exists().pathExists;
@@ -3134,7 +3134,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3134
3134
  return getStats(destStat, src, dest, opts, cb);
3135
3135
  }
3136
3136
  function getStats(destStat, src, dest, opts, cb) {
3137
- (opts.dereference ? fs6.stat : fs6.lstat)(src, (err, srcStat) => {
3137
+ (opts.dereference ? fs7.stat : fs7.lstat)(src, (err, srcStat) => {
3138
3138
  if (err) return cb(err);
3139
3139
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
3140
3140
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
@@ -3149,7 +3149,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3149
3149
  return mayCopyFile(srcStat, src, dest, opts, cb);
3150
3150
  }
3151
3151
  function mayCopyFile(srcStat, src, dest, opts, cb) {
3152
- if (opts.overwrite) fs6.unlink(dest, (err) => {
3152
+ if (opts.overwrite) fs7.unlink(dest, (err) => {
3153
3153
  if (err) return cb(err);
3154
3154
  return copyFile(srcStat, src, dest, opts, cb);
3155
3155
  });
@@ -3157,7 +3157,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3157
3157
  else return cb();
3158
3158
  }
3159
3159
  function copyFile(srcStat, src, dest, opts, cb) {
3160
- fs6.copyFile(src, dest, (err) => {
3160
+ fs7.copyFile(src, dest, (err) => {
3161
3161
  if (err) return cb(err);
3162
3162
  if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
3163
3163
  return setDestMode(dest, srcStat.mode, cb);
@@ -3183,10 +3183,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3183
3183
  });
3184
3184
  }
3185
3185
  function setDestMode(dest, srcMode, cb) {
3186
- return fs6.chmod(dest, srcMode, cb);
3186
+ return fs7.chmod(dest, srcMode, cb);
3187
3187
  }
3188
3188
  function setDestTimestamps(src, dest, cb) {
3189
- fs6.stat(src, (err, updatedSrcStat) => {
3189
+ fs7.stat(src, (err, updatedSrcStat) => {
3190
3190
  if (err) return cb(err);
3191
3191
  return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
3192
3192
  });
@@ -3196,7 +3196,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3196
3196
  return copyDir(src, dest, opts, cb);
3197
3197
  }
3198
3198
  function mkDirAndCopy(srcMode, src, dest, opts, cb) {
3199
- fs6.mkdir(dest, (err) => {
3199
+ fs7.mkdir(dest, (err) => {
3200
3200
  if (err) return cb(err);
3201
3201
  copyDir(src, dest, opts, (err2) => {
3202
3202
  if (err2) return cb(err2);
@@ -3205,7 +3205,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3205
3205
  });
3206
3206
  }
3207
3207
  function copyDir(src, dest, opts, cb) {
3208
- fs6.readdir(src, (err, items) => {
3208
+ fs7.readdir(src, (err, items) => {
3209
3209
  if (err) return cb(err);
3210
3210
  return copyDirItems(items, src, dest, opts, cb);
3211
3211
  });
@@ -3228,13 +3228,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3228
3228
  });
3229
3229
  }
3230
3230
  function onLink(destStat, src, dest, opts, cb) {
3231
- fs6.readlink(src, (err, resolvedSrc) => {
3231
+ fs7.readlink(src, (err, resolvedSrc) => {
3232
3232
  if (err) return cb(err);
3233
3233
  if (opts.dereference) resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
3234
- if (!destStat) return fs6.symlink(resolvedSrc, dest, cb);
3235
- else fs6.readlink(dest, (err2, resolvedDest) => {
3234
+ if (!destStat) return fs7.symlink(resolvedSrc, dest, cb);
3235
+ else fs7.readlink(dest, (err2, resolvedDest) => {
3236
3236
  if (err2) {
3237
- if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs6.symlink(resolvedSrc, dest, cb);
3237
+ if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs7.symlink(resolvedSrc, dest, cb);
3238
3238
  return cb(err2);
3239
3239
  }
3240
3240
  if (opts.dereference) resolvedDest = path7.resolve(process.cwd(), resolvedDest);
@@ -3245,9 +3245,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3245
3245
  });
3246
3246
  }
3247
3247
  function copyLink(resolvedSrc, dest, cb) {
3248
- fs6.unlink(dest, (err) => {
3248
+ fs7.unlink(dest, (err) => {
3249
3249
  if (err) return cb(err);
3250
- return fs6.symlink(resolvedSrc, dest, cb);
3250
+ return fs7.symlink(resolvedSrc, dest, cb);
3251
3251
  });
3252
3252
  }
3253
3253
  module2.exports = copy;
@@ -3257,7 +3257,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3257
3257
  module2.exports = { copy: u(require_copy()) };
3258
3258
  } });
3259
3259
  var require_rimraf = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
3260
- var fs6 = require_graceful_fs();
3260
+ var fs7 = require_graceful_fs();
3261
3261
  var path7 = __require("path");
3262
3262
  var assert7 = __require("assert");
3263
3263
  var isWindows = process.platform === "win32";
@@ -3270,9 +3270,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3270
3270
  "rmdir",
3271
3271
  "readdir"
3272
3272
  ].forEach((m) => {
3273
- options[m] = options[m] || fs6[m];
3273
+ options[m] = options[m] || fs7[m];
3274
3274
  m = m + "Sync";
3275
- options[m] = options[m] || fs6[m];
3275
+ options[m] = options[m] || fs7[m];
3276
3276
  });
3277
3277
  options.maxBusyTries = options.maxBusyTries || 3;
3278
3278
  }
@@ -3430,18 +3430,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3430
3430
  rimraf.sync = rimrafSync;
3431
3431
  } });
3432
3432
  var require_remove = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
3433
- var fs6 = require_graceful_fs();
3433
+ var fs7 = require_graceful_fs();
3434
3434
  var u = require_universalify().fromCallback;
3435
3435
  var rimraf = require_rimraf();
3436
3436
  function remove2(path7, callback) {
3437
- if (fs6.rm) return fs6.rm(path7, {
3437
+ if (fs7.rm) return fs7.rm(path7, {
3438
3438
  recursive: true,
3439
3439
  force: true
3440
3440
  }, callback);
3441
3441
  rimraf(path7, callback);
3442
3442
  }
3443
3443
  function removeSync(path7) {
3444
- if (fs6.rmSync) return fs6.rmSync(path7, {
3444
+ if (fs7.rmSync) return fs7.rmSync(path7, {
3445
3445
  recursive: true,
3446
3446
  force: true
3447
3447
  });
@@ -3454,14 +3454,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3454
3454
  } });
3455
3455
  var require_empty = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
3456
3456
  var u = require_universalify().fromPromise;
3457
- var fs6 = require_fs();
3457
+ var fs7 = require_fs();
3458
3458
  var path7 = __require("path");
3459
3459
  var mkdir = require_mkdirs();
3460
3460
  var remove2 = require_remove();
3461
3461
  var emptyDir = u(async function emptyDir2(dir) {
3462
3462
  let items;
3463
3463
  try {
3464
- items = await fs6.readdir(dir);
3464
+ items = await fs7.readdir(dir);
3465
3465
  } catch {
3466
3466
  return mkdir.mkdirs(dir);
3467
3467
  }
@@ -3470,7 +3470,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3470
3470
  function emptyDirSync(dir) {
3471
3471
  let items;
3472
3472
  try {
3473
- items = fs6.readdirSync(dir);
3473
+ items = fs7.readdirSync(dir);
3474
3474
  } catch {
3475
3475
  return mkdir.mkdirsSync(dir);
3476
3476
  }
@@ -3489,19 +3489,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3489
3489
  var require_file = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
3490
3490
  var u = require_universalify().fromCallback;
3491
3491
  var path7 = __require("path");
3492
- var fs6 = require_graceful_fs();
3492
+ var fs7 = require_graceful_fs();
3493
3493
  var mkdir = require_mkdirs();
3494
3494
  function createFile(file, callback) {
3495
3495
  function makeFile() {
3496
- fs6.writeFile(file, "", (err) => {
3496
+ fs7.writeFile(file, "", (err) => {
3497
3497
  if (err) return callback(err);
3498
3498
  callback();
3499
3499
  });
3500
3500
  }
3501
- fs6.stat(file, (err, stats) => {
3501
+ fs7.stat(file, (err, stats) => {
3502
3502
  if (!err && stats.isFile()) return callback();
3503
3503
  const dir = path7.dirname(file);
3504
- fs6.stat(dir, (err2, stats2) => {
3504
+ fs7.stat(dir, (err2, stats2) => {
3505
3505
  if (err2) {
3506
3506
  if (err2.code === "ENOENT") return mkdir.mkdirs(dir, (err3) => {
3507
3507
  if (err3) return callback(err3);
@@ -3510,7 +3510,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3510
3510
  return callback(err2);
3511
3511
  }
3512
3512
  if (stats2.isDirectory()) makeFile();
3513
- else fs6.readdir(dir, (err3) => {
3513
+ else fs7.readdir(dir, (err3) => {
3514
3514
  if (err3) return callback(err3);
3515
3515
  });
3516
3516
  });
@@ -3519,17 +3519,17 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3519
3519
  function createFileSync(file) {
3520
3520
  let stats;
3521
3521
  try {
3522
- stats = fs6.statSync(file);
3522
+ stats = fs7.statSync(file);
3523
3523
  } catch {}
3524
3524
  if (stats && stats.isFile()) return;
3525
3525
  const dir = path7.dirname(file);
3526
3526
  try {
3527
- if (!fs6.statSync(dir).isDirectory()) fs6.readdirSync(dir);
3527
+ if (!fs7.statSync(dir).isDirectory()) fs7.readdirSync(dir);
3528
3528
  } catch (err) {
3529
3529
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
3530
3530
  else throw err;
3531
3531
  }
3532
- fs6.writeFileSync(file, "");
3532
+ fs7.writeFileSync(file, "");
3533
3533
  }
3534
3534
  module2.exports = {
3535
3535
  createFile: u(createFile),
@@ -3539,19 +3539,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3539
3539
  var require_link = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
3540
3540
  var u = require_universalify().fromCallback;
3541
3541
  var path7 = __require("path");
3542
- var fs6 = require_graceful_fs();
3542
+ var fs7 = require_graceful_fs();
3543
3543
  var mkdir = require_mkdirs();
3544
3544
  var pathExists = require_path_exists().pathExists;
3545
3545
  var { areIdentical } = require_stat();
3546
3546
  function createLink(srcpath, dstpath, callback) {
3547
3547
  function makeLink(srcpath2, dstpath2) {
3548
- fs6.link(srcpath2, dstpath2, (err) => {
3548
+ fs7.link(srcpath2, dstpath2, (err) => {
3549
3549
  if (err) return callback(err);
3550
3550
  callback(null);
3551
3551
  });
3552
3552
  }
3553
- fs6.lstat(dstpath, (_, dstStat) => {
3554
- fs6.lstat(srcpath, (err, srcStat) => {
3553
+ fs7.lstat(dstpath, (_, dstStat) => {
3554
+ fs7.lstat(srcpath, (err, srcStat) => {
3555
3555
  if (err) {
3556
3556
  err.message = err.message.replace("lstat", "ensureLink");
3557
3557
  return callback(err);
@@ -3572,19 +3572,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3572
3572
  function createLinkSync(srcpath, dstpath) {
3573
3573
  let dstStat;
3574
3574
  try {
3575
- dstStat = fs6.lstatSync(dstpath);
3575
+ dstStat = fs7.lstatSync(dstpath);
3576
3576
  } catch {}
3577
3577
  try {
3578
- const srcStat = fs6.lstatSync(srcpath);
3578
+ const srcStat = fs7.lstatSync(srcpath);
3579
3579
  if (dstStat && areIdentical(srcStat, dstStat)) return;
3580
3580
  } catch (err) {
3581
3581
  err.message = err.message.replace("lstat", "ensureLink");
3582
3582
  throw err;
3583
3583
  }
3584
3584
  const dir = path7.dirname(dstpath);
3585
- if (fs6.existsSync(dir)) return fs6.linkSync(srcpath, dstpath);
3585
+ if (fs7.existsSync(dir)) return fs7.linkSync(srcpath, dstpath);
3586
3586
  mkdir.mkdirsSync(dir);
3587
- return fs6.linkSync(srcpath, dstpath);
3587
+ return fs7.linkSync(srcpath, dstpath);
3588
3588
  }
3589
3589
  module2.exports = {
3590
3590
  createLink: u(createLink),
@@ -3593,10 +3593,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3593
3593
  } });
3594
3594
  var require_symlink_paths = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
3595
3595
  var path7 = __require("path");
3596
- var fs6 = require_graceful_fs();
3596
+ var fs7 = require_graceful_fs();
3597
3597
  var pathExists = require_path_exists().pathExists;
3598
3598
  function symlinkPaths(srcpath, dstpath, callback) {
3599
- if (path7.isAbsolute(srcpath)) return fs6.lstat(srcpath, (err) => {
3599
+ if (path7.isAbsolute(srcpath)) return fs7.lstat(srcpath, (err) => {
3600
3600
  if (err) {
3601
3601
  err.message = err.message.replace("lstat", "ensureSymlink");
3602
3602
  return callback(err);
@@ -3615,7 +3615,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3615
3615
  toCwd: relativeToDst,
3616
3616
  toDst: srcpath
3617
3617
  });
3618
- else return fs6.lstat(srcpath, (err2) => {
3618
+ else return fs7.lstat(srcpath, (err2) => {
3619
3619
  if (err2) {
3620
3620
  err2.message = err2.message.replace("lstat", "ensureSymlink");
3621
3621
  return callback(err2);
@@ -3631,7 +3631,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3631
3631
  function symlinkPathsSync(srcpath, dstpath) {
3632
3632
  let exists;
3633
3633
  if (path7.isAbsolute(srcpath)) {
3634
- exists = fs6.existsSync(srcpath);
3634
+ exists = fs7.existsSync(srcpath);
3635
3635
  if (!exists) throw new Error("absolute srcpath does not exist");
3636
3636
  return {
3637
3637
  toCwd: srcpath,
@@ -3640,13 +3640,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3640
3640
  } else {
3641
3641
  const dstdir = path7.dirname(dstpath);
3642
3642
  const relativeToDst = path7.join(dstdir, srcpath);
3643
- exists = fs6.existsSync(relativeToDst);
3643
+ exists = fs7.existsSync(relativeToDst);
3644
3644
  if (exists) return {
3645
3645
  toCwd: relativeToDst,
3646
3646
  toDst: srcpath
3647
3647
  };
3648
3648
  else {
3649
- exists = fs6.existsSync(srcpath);
3649
+ exists = fs7.existsSync(srcpath);
3650
3650
  if (!exists) throw new Error("relative srcpath does not exist");
3651
3651
  return {
3652
3652
  toCwd: srcpath,
@@ -3661,12 +3661,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3661
3661
  };
3662
3662
  } });
3663
3663
  var require_symlink_type = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
3664
- var fs6 = require_graceful_fs();
3664
+ var fs7 = require_graceful_fs();
3665
3665
  function symlinkType(srcpath, type, callback) {
3666
3666
  callback = typeof type === "function" ? type : callback;
3667
3667
  type = typeof type === "function" ? false : type;
3668
3668
  if (type) return callback(null, type);
3669
- fs6.lstat(srcpath, (err, stats) => {
3669
+ fs7.lstat(srcpath, (err, stats) => {
3670
3670
  if (err) return callback(null, "file");
3671
3671
  type = stats && stats.isDirectory() ? "dir" : "file";
3672
3672
  callback(null, type);
@@ -3676,7 +3676,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3676
3676
  let stats;
3677
3677
  if (type) return type;
3678
3678
  try {
3679
- stats = fs6.lstatSync(srcpath);
3679
+ stats = fs7.lstatSync(srcpath);
3680
3680
  } catch {
3681
3681
  return "file";
3682
3682
  }
@@ -3690,7 +3690,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3690
3690
  var require_symlink = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
3691
3691
  var u = require_universalify().fromCallback;
3692
3692
  var path7 = __require("path");
3693
- var fs6 = require_fs();
3693
+ var fs7 = require_fs();
3694
3694
  var _mkdirs = require_mkdirs();
3695
3695
  var mkdirs = _mkdirs.mkdirs;
3696
3696
  var mkdirsSync = _mkdirs.mkdirsSync;
@@ -3705,8 +3705,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3705
3705
  function createSymlink(srcpath, dstpath, type, callback) {
3706
3706
  callback = typeof type === "function" ? type : callback;
3707
3707
  type = typeof type === "function" ? false : type;
3708
- fs6.lstat(dstpath, (err, stats) => {
3709
- if (!err && stats.isSymbolicLink()) Promise.all([fs6.stat(srcpath), fs6.stat(dstpath)]).then(([srcStat, dstStat]) => {
3708
+ fs7.lstat(dstpath, (err, stats) => {
3709
+ if (!err && stats.isSymbolicLink()) Promise.all([fs7.stat(srcpath), fs7.stat(dstpath)]).then(([srcStat, dstStat]) => {
3710
3710
  if (areIdentical(srcStat, dstStat)) return callback(null);
3711
3711
  _createSymlink(srcpath, dstpath, type, callback);
3712
3712
  });
@@ -3722,10 +3722,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3722
3722
  const dir = path7.dirname(dstpath);
3723
3723
  pathExists(dir, (err3, dirExists) => {
3724
3724
  if (err3) return callback(err3);
3725
- if (dirExists) return fs6.symlink(srcpath, dstpath, type2, callback);
3725
+ if (dirExists) return fs7.symlink(srcpath, dstpath, type2, callback);
3726
3726
  mkdirs(dir, (err4) => {
3727
3727
  if (err4) return callback(err4);
3728
- fs6.symlink(srcpath, dstpath, type2, callback);
3728
+ fs7.symlink(srcpath, dstpath, type2, callback);
3729
3729
  });
3730
3730
  });
3731
3731
  });
@@ -3734,18 +3734,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3734
3734
  function createSymlinkSync(srcpath, dstpath, type) {
3735
3735
  let stats;
3736
3736
  try {
3737
- stats = fs6.lstatSync(dstpath);
3737
+ stats = fs7.lstatSync(dstpath);
3738
3738
  } catch {}
3739
3739
  if (stats && stats.isSymbolicLink()) {
3740
- if (areIdentical(fs6.statSync(srcpath), fs6.statSync(dstpath))) return;
3740
+ if (areIdentical(fs7.statSync(srcpath), fs7.statSync(dstpath))) return;
3741
3741
  }
3742
3742
  const relative$2 = symlinkPathsSync(srcpath, dstpath);
3743
3743
  srcpath = relative$2.toDst;
3744
3744
  type = symlinkTypeSync(relative$2.toCwd, type);
3745
3745
  const dir = path7.dirname(dstpath);
3746
- if (fs6.existsSync(dir)) return fs6.symlinkSync(srcpath, dstpath, type);
3746
+ if (fs7.existsSync(dir)) return fs7.symlinkSync(srcpath, dstpath, type);
3747
3747
  mkdirsSync(dir);
3748
- return fs6.symlinkSync(srcpath, dstpath, type);
3748
+ return fs7.symlinkSync(srcpath, dstpath, type);
3749
3749
  }
3750
3750
  module2.exports = {
3751
3751
  createSymlink: u(createSymlink),
@@ -3796,9 +3796,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3796
3796
  var { stringify, stripBom } = require_utils2();
3797
3797
  async function _readFile(file, options = {}) {
3798
3798
  if (typeof options === "string") options = { encoding: options };
3799
- const fs6 = options.fs || _fs;
3799
+ const fs7 = options.fs || _fs;
3800
3800
  const shouldThrow = "throws" in options ? options.throws : true;
3801
- let data = await universalify.fromCallback(fs6.readFile)(file, options);
3801
+ let data = await universalify.fromCallback(fs7.readFile)(file, options);
3802
3802
  data = stripBom(data);
3803
3803
  let obj;
3804
3804
  try {
@@ -3814,10 +3814,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3814
3814
  var readFile4 = universalify.fromPromise(_readFile);
3815
3815
  function readFileSync$1(file, options = {}) {
3816
3816
  if (typeof options === "string") options = { encoding: options };
3817
- const fs6 = options.fs || _fs;
3817
+ const fs7 = options.fs || _fs;
3818
3818
  const shouldThrow = "throws" in options ? options.throws : true;
3819
3819
  try {
3820
- let content = fs6.readFileSync(file, options);
3820
+ let content = fs7.readFileSync(file, options);
3821
3821
  content = stripBom(content);
3822
3822
  return JSON.parse(content, options.reviver);
3823
3823
  } catch (err) {
@@ -3828,15 +3828,15 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3828
3828
  }
3829
3829
  }
3830
3830
  async function _writeFile(file, obj, options = {}) {
3831
- const fs6 = options.fs || _fs;
3831
+ const fs7 = options.fs || _fs;
3832
3832
  const str = stringify(obj, options);
3833
- await universalify.fromCallback(fs6.writeFile)(file, str, options);
3833
+ await universalify.fromCallback(fs7.writeFile)(file, str, options);
3834
3834
  }
3835
3835
  var writeFile$1 = universalify.fromPromise(_writeFile);
3836
3836
  function writeFileSync(file, obj, options = {}) {
3837
- const fs6 = options.fs || _fs;
3837
+ const fs7 = options.fs || _fs;
3838
3838
  const str = stringify(obj, options);
3839
- return fs6.writeFileSync(file, str, options);
3839
+ return fs7.writeFileSync(file, str, options);
3840
3840
  }
3841
3841
  module2.exports = {
3842
3842
  readFile: readFile4,
@@ -3856,7 +3856,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3856
3856
  } });
3857
3857
  var require_output = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/output/index.js"(exports2, module2) {
3858
3858
  var u = require_universalify().fromCallback;
3859
- var fs6 = require_graceful_fs();
3859
+ var fs7 = require_graceful_fs();
3860
3860
  var path7 = __require("path");
3861
3861
  var mkdir = require_mkdirs();
3862
3862
  var pathExists = require_path_exists().pathExists;
@@ -3868,18 +3868,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3868
3868
  const dir = path7.dirname(file);
3869
3869
  pathExists(dir, (err, itDoes) => {
3870
3870
  if (err) return callback(err);
3871
- if (itDoes) return fs6.writeFile(file, data, encoding, callback);
3871
+ if (itDoes) return fs7.writeFile(file, data, encoding, callback);
3872
3872
  mkdir.mkdirs(dir, (err2) => {
3873
3873
  if (err2) return callback(err2);
3874
- fs6.writeFile(file, data, encoding, callback);
3874
+ fs7.writeFile(file, data, encoding, callback);
3875
3875
  });
3876
3876
  });
3877
3877
  }
3878
3878
  function outputFileSync(file, ...args) {
3879
3879
  const dir = path7.dirname(file);
3880
- if (fs6.existsSync(dir)) return fs6.writeFileSync(file, ...args);
3880
+ if (fs7.existsSync(dir)) return fs7.writeFileSync(file, ...args);
3881
3881
  mkdir.mkdirsSync(dir);
3882
- fs6.writeFileSync(file, ...args);
3882
+ fs7.writeFileSync(file, ...args);
3883
3883
  }
3884
3884
  module2.exports = {
3885
3885
  outputFile: u(outputFile),
@@ -3916,7 +3916,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3916
3916
  module2.exports = jsonFile;
3917
3917
  } });
3918
3918
  var require_move_sync = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
3919
- var fs6 = require_graceful_fs();
3919
+ var fs7 = require_graceful_fs();
3920
3920
  var path7 = __require("path");
3921
3921
  var copySync = require_copy_sync2().copySync;
3922
3922
  var removeSync = require_remove().removeSync;
@@ -3940,12 +3940,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3940
3940
  removeSync(dest);
3941
3941
  return rename2(src, dest, overwrite);
3942
3942
  }
3943
- if (fs6.existsSync(dest)) throw new Error("dest already exists.");
3943
+ if (fs7.existsSync(dest)) throw new Error("dest already exists.");
3944
3944
  return rename2(src, dest, overwrite);
3945
3945
  }
3946
3946
  function rename2(src, dest, overwrite) {
3947
3947
  try {
3948
- fs6.renameSync(src, dest);
3948
+ fs7.renameSync(src, dest);
3949
3949
  } catch (err) {
3950
3950
  if (err.code !== "EXDEV") throw err;
3951
3951
  return moveAcrossDevice(src, dest, overwrite);
@@ -3964,7 +3964,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3964
3964
  module2.exports = { moveSync: require_move_sync() };
3965
3965
  } });
3966
3966
  var require_move = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
3967
- var fs6 = require_graceful_fs();
3967
+ var fs7 = require_graceful_fs();
3968
3968
  var path7 = __require("path");
3969
3969
  var copy = require_copy2().copy;
3970
3970
  var remove2 = require_remove().remove;
@@ -4007,7 +4007,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
4007
4007
  });
4008
4008
  }
4009
4009
  function rename2(src, dest, overwrite, cb) {
4010
- fs6.rename(src, dest, (err) => {
4010
+ fs7.rename(src, dest, (err) => {
4011
4011
  if (!err) return cb();
4012
4012
  if (err.code !== "EXDEV") return cb(err);
4013
4013
  return moveAcrossDevice(src, dest, overwrite, cb);
@@ -42858,7 +42858,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
42858
42858
  module2.exports = crc32;
42859
42859
  } });
42860
42860
  var require_yazl = __commonJS({ "../../node_modules/.pnpm/yazl@2.5.1/node_modules/yazl/index.js"(exports2) {
42861
- var fs6 = __require("fs");
42861
+ var fs7 = __require("fs");
42862
42862
  var Transform = __require("stream").Transform;
42863
42863
  var PassThrough = __require("stream").PassThrough;
42864
42864
  var zlib = __require("zlib");
@@ -42882,14 +42882,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
42882
42882
  if (options == null) options = {};
42883
42883
  var entry = new Entry(metadataPath, false, options);
42884
42884
  self2.entries.push(entry);
42885
- fs6.stat(realPath, function(err, stats) {
42885
+ fs7.stat(realPath, function(err, stats) {
42886
42886
  if (err) return self2.emit("error", err);
42887
42887
  if (!stats.isFile()) return self2.emit("error", /* @__PURE__ */ new Error("not a file: " + realPath));
42888
42888
  entry.uncompressedSize = stats.size;
42889
42889
  if (options.mtime == null) entry.setLastModDate(stats.mtime);
42890
42890
  if (options.mode == null) entry.setFileAttributesMode(stats.mode);
42891
42891
  entry.setFileDataPumpFunction(function() {
42892
- var readStream = fs6.createReadStream(realPath);
42892
+ var readStream = fs7.createReadStream(realPath);
42893
42893
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
42894
42894
  readStream.on("error", function(err2) {
42895
42895
  self2.emit("error", err2);
@@ -44224,7 +44224,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44224
44224
  var require_old = __commonJS({ "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports2) {
44225
44225
  var pathModule = __require("path");
44226
44226
  var isWindows = process.platform === "win32";
44227
- var fs6 = __require("fs");
44227
+ var fs7 = __require("fs");
44228
44228
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
44229
44229
  function rethrow() {
44230
44230
  var callback;
@@ -44277,7 +44277,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44277
44277
  base = m[0];
44278
44278
  previous = "";
44279
44279
  if (isWindows && !knownHard[base]) {
44280
- fs6.lstatSync(base);
44280
+ fs7.lstatSync(base);
44281
44281
  knownHard[base] = true;
44282
44282
  }
44283
44283
  }
@@ -44292,7 +44292,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44292
44292
  var resolvedLink;
44293
44293
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) resolvedLink = cache[base];
44294
44294
  else {
44295
- var stat = fs6.lstatSync(base);
44295
+ var stat = fs7.lstatSync(base);
44296
44296
  if (!stat.isSymbolicLink()) {
44297
44297
  knownHard[base] = true;
44298
44298
  if (cache) cache[base] = base;
@@ -44304,8 +44304,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44304
44304
  if (seenLinks.hasOwnProperty(id)) linkTarget = seenLinks[id];
44305
44305
  }
44306
44306
  if (linkTarget === null) {
44307
- fs6.statSync(base);
44308
- linkTarget = fs6.readlinkSync(base);
44307
+ fs7.statSync(base);
44308
+ linkTarget = fs7.readlinkSync(base);
44309
44309
  }
44310
44310
  resolvedLink = pathModule.resolve(previous, linkTarget);
44311
44311
  if (cache) cache[base] = resolvedLink;
@@ -44336,7 +44336,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44336
44336
  current = m[0];
44337
44337
  base = m[0];
44338
44338
  previous = "";
44339
- if (isWindows && !knownHard[base]) fs6.lstat(base, function(err) {
44339
+ if (isWindows && !knownHard[base]) fs7.lstat(base, function(err) {
44340
44340
  if (err) return cb(err);
44341
44341
  knownHard[base] = true;
44342
44342
  LOOP();
@@ -44356,7 +44356,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44356
44356
  pos = nextPartRe.lastIndex;
44357
44357
  if (knownHard[base] || cache && cache[base] === base) return process.nextTick(LOOP);
44358
44358
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) return gotResolvedLink(cache[base]);
44359
- return fs6.lstat(base, gotStat);
44359
+ return fs7.lstat(base, gotStat);
44360
44360
  }
44361
44361
  function gotStat(err, stat) {
44362
44362
  if (err) return cb(err);
@@ -44369,9 +44369,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44369
44369
  var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
44370
44370
  if (seenLinks.hasOwnProperty(id)) return gotTarget(null, seenLinks[id], base);
44371
44371
  }
44372
- fs6.stat(base, function(err2) {
44372
+ fs7.stat(base, function(err2) {
44373
44373
  if (err2) return cb(err2);
44374
- fs6.readlink(base, function(err3, target) {
44374
+ fs7.readlink(base, function(err3, target) {
44375
44375
  if (!isWindows) seenLinks[id] = target;
44376
44376
  gotTarget(err3, target);
44377
44377
  });
@@ -44396,9 +44396,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44396
44396
  realpath.realpathSync = realpathSync;
44397
44397
  realpath.monkeypatch = monkeypatch;
44398
44398
  realpath.unmonkeypatch = unmonkeypatch;
44399
- var fs6 = __require("fs");
44400
- var origRealpath = fs6.realpath;
44401
- var origRealpathSync = fs6.realpathSync;
44399
+ var fs7 = __require("fs");
44400
+ var origRealpath = fs7.realpath;
44401
+ var origRealpathSync = fs7.realpathSync;
44402
44402
  var version$1 = process.version;
44403
44403
  var ok = /^v[0-5]\./.test(version$1);
44404
44404
  var old = require_old();
@@ -44426,12 +44426,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44426
44426
  }
44427
44427
  }
44428
44428
  function monkeypatch() {
44429
- fs6.realpath = realpath;
44430
- fs6.realpathSync = realpathSync;
44429
+ fs7.realpath = realpath;
44430
+ fs7.realpathSync = realpathSync;
44431
44431
  }
44432
44432
  function unmonkeypatch() {
44433
- fs6.realpath = origRealpath;
44434
- fs6.realpathSync = origRealpathSync;
44433
+ fs7.realpath = origRealpath;
44434
+ fs7.realpathSync = origRealpathSync;
44435
44435
  }
44436
44436
  } });
44437
44437
  var require_path = __commonJS({ "../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/lib/path.js"(exports2, module2) {
@@ -45048,7 +45048,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45048
45048
  function ownProp(obj, field) {
45049
45049
  return Object.prototype.hasOwnProperty.call(obj, field);
45050
45050
  }
45051
- var fs6 = __require("fs");
45051
+ var fs7 = __require("fs");
45052
45052
  var path7 = __require("path");
45053
45053
  var minimatch2 = require_minimatch2();
45054
45054
  var isAbsolute = __require("path").isAbsolute;
@@ -45093,7 +45093,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45093
45093
  self2.stat = !!options.stat;
45094
45094
  self2.noprocess = !!options.noprocess;
45095
45095
  self2.absolute = !!options.absolute;
45096
- self2.fs = options.fs || fs6;
45096
+ self2.fs = options.fs || fs7;
45097
45097
  self2.maxLength = options.maxLength || Infinity;
45098
45098
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
45099
45099
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -45956,7 +45956,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45956
45956
  var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
45957
45957
  module2.exports = isexe;
45958
45958
  isexe.sync = sync;
45959
- var fs6 = __require("fs");
45959
+ var fs7 = __require("fs");
45960
45960
  function checkPathExt(path7, options) {
45961
45961
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
45962
45962
  if (!pathext) return true;
@@ -45973,25 +45973,25 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45973
45973
  return checkPathExt(path7, options);
45974
45974
  }
45975
45975
  function isexe(path7, options, cb) {
45976
- fs6.stat(path7, function(er, stat) {
45976
+ fs7.stat(path7, function(er, stat) {
45977
45977
  cb(er, er ? false : checkStat(stat, path7, options));
45978
45978
  });
45979
45979
  }
45980
45980
  function sync(path7, options) {
45981
- return checkStat(fs6.statSync(path7), path7, options);
45981
+ return checkStat(fs7.statSync(path7), path7, options);
45982
45982
  }
45983
45983
  } });
45984
45984
  var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
45985
45985
  module2.exports = isexe;
45986
45986
  isexe.sync = sync;
45987
- var fs6 = __require("fs");
45987
+ var fs7 = __require("fs");
45988
45988
  function isexe(path7, options, cb) {
45989
- fs6.stat(path7, function(er, stat) {
45989
+ fs7.stat(path7, function(er, stat) {
45990
45990
  cb(er, er ? false : checkStat(stat, options));
45991
45991
  });
45992
45992
  }
45993
45993
  function sync(path7, options) {
45994
- return checkStat(fs6.statSync(path7), options);
45994
+ return checkStat(fs7.statSync(path7), options);
45995
45995
  }
45996
45996
  function checkStat(stat, options) {
45997
45997
  return stat.isFile() && checkMode(stat, options);
@@ -46010,7 +46010,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46010
46010
  }
46011
46011
  } });
46012
46012
  var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
46013
- var fs6 = __require("fs");
46013
+ var fs7 = __require("fs");
46014
46014
  var core;
46015
46015
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
46016
46016
  else core = require_mode();
@@ -46203,7 +46203,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46203
46203
  };
46204
46204
  } });
46205
46205
  var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
46206
- var fs6 = __require("fs");
46206
+ var fs7 = __require("fs");
46207
46207
  var shebangCommand = require_shebang_command();
46208
46208
  function readShebang(command) {
46209
46209
  const size = 150;
@@ -46215,9 +46215,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46215
46215
  }
46216
46216
  let fd;
46217
46217
  try {
46218
- fd = fs6.openSync(command, "r");
46219
- fs6.readSync(fd, buffer, 0, size, 0);
46220
- fs6.closeSync(fd);
46218
+ fd = fs7.openSync(command, "r");
46219
+ fs7.readSync(fd, buffer, 0, size, 0);
46220
+ fs7.closeSync(fd);
46221
46221
  } catch (e) {}
46222
46222
  return shebangCommand(buffer.toString());
46223
46223
  }
@@ -47057,7 +47057,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47057
47057
  var escape = require_escape();
47058
47058
  var readShebang = require_readShebang();
47059
47059
  var semver = require_semver();
47060
- var isWin2 = process.platform === "win32";
47060
+ var isWin3 = process.platform === "win32";
47061
47061
  var isExecutableRegExp = /\.(?:com|exe)$/i;
47062
47062
  var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
47063
47063
  var supportsShellOption = niceTry(() => semver.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true)) || false;
@@ -47072,7 +47072,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47072
47072
  return parsed.file;
47073
47073
  }
47074
47074
  function parseNonShell(parsed) {
47075
- if (!isWin2) return parsed;
47075
+ if (!isWin3) return parsed;
47076
47076
  const commandFile = detectShebang(parsed);
47077
47077
  const needsShell = !isExecutableRegExp.test(commandFile);
47078
47078
  if (parsed.options.forceShell || needsShell) {
@@ -47094,7 +47094,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47094
47094
  function parseShell(parsed) {
47095
47095
  if (supportsShellOption) return parsed;
47096
47096
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
47097
- if (isWin2) {
47097
+ if (isWin3) {
47098
47098
  parsed.command = typeof parsed.options.shell === "string" ? parsed.options.shell : process.env.comspec || "cmd.exe";
47099
47099
  parsed.args = [
47100
47100
  "/d",
@@ -47133,7 +47133,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47133
47133
  module2.exports = parse3;
47134
47134
  } });
47135
47135
  var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
47136
- var isWin2 = process.platform === "win32";
47136
+ var isWin3 = process.platform === "win32";
47137
47137
  function notFoundError(original, syscall) {
47138
47138
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
47139
47139
  code: "ENOENT",
@@ -47144,7 +47144,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47144
47144
  });
47145
47145
  }
47146
47146
  function hookChildProcess(cp, parsed) {
47147
- if (!isWin2) return;
47147
+ if (!isWin3) return;
47148
47148
  const originalEmit = cp.emit;
47149
47149
  cp.emit = function(name, arg1) {
47150
47150
  if (name === "exit") {
@@ -47155,11 +47155,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47155
47155
  };
47156
47156
  }
47157
47157
  function verifyENOENT(status, parsed) {
47158
- if (isWin2 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
47158
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
47159
47159
  return null;
47160
47160
  }
47161
47161
  function verifyENOENTSync(status, parsed) {
47162
- if (isWin2 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
47162
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
47163
47163
  return null;
47164
47164
  }
47165
47165
  module2.exports = {
@@ -52790,6 +52790,1547 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52790
52790
  }
52791
52791
  module2.exports = (options) => new IgnoreBase(options);
52792
52792
  } });
52793
+ var require_which2 = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
52794
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
52795
+ var path7 = __require("path");
52796
+ var COLON = isWindows ? ";" : ":";
52797
+ var isexe = require_isexe();
52798
+ var getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
52799
+ var getPathInfo = (cmd, opt) => {
52800
+ const colon = opt.colon || COLON;
52801
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
52802
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
52803
+ const pathExt = isWindows ? pathExtExe.split(colon) : [""];
52804
+ if (isWindows) {
52805
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift("");
52806
+ }
52807
+ return {
52808
+ pathEnv,
52809
+ pathExt,
52810
+ pathExtExe
52811
+ };
52812
+ };
52813
+ var which = (cmd, opt, cb) => {
52814
+ if (typeof opt === "function") {
52815
+ cb = opt;
52816
+ opt = {};
52817
+ }
52818
+ if (!opt) opt = {};
52819
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
52820
+ const found = [];
52821
+ const step = (i) => new Promise((resolve, reject) => {
52822
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
52823
+ const ppRaw = pathEnv[i];
52824
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
52825
+ const pCmd = path7.join(pathPart, cmd);
52826
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
52827
+ });
52828
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
52829
+ if (ii === pathExt.length) return resolve(step(i + 1));
52830
+ const ext = pathExt[ii];
52831
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
52832
+ if (!er && is) if (opt.all) found.push(p + ext);
52833
+ else return resolve(p + ext);
52834
+ return resolve(subStep(p, i, ii + 1));
52835
+ });
52836
+ });
52837
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
52838
+ };
52839
+ var whichSync = (cmd, opt) => {
52840
+ opt = opt || {};
52841
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
52842
+ const found = [];
52843
+ for (let i = 0; i < pathEnv.length; i++) {
52844
+ const ppRaw = pathEnv[i];
52845
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
52846
+ const pCmd = path7.join(pathPart, cmd);
52847
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
52848
+ for (let j = 0; j < pathExt.length; j++) {
52849
+ const cur = p + pathExt[j];
52850
+ try {
52851
+ if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
52852
+ else return cur;
52853
+ } catch (ex) {}
52854
+ }
52855
+ }
52856
+ if (opt.all && found.length) return found;
52857
+ if (opt.nothrow) return null;
52858
+ throw getNotFoundError(cmd);
52859
+ };
52860
+ module2.exports = which;
52861
+ which.sync = whichSync;
52862
+ } });
52863
+ var require_path_key2 = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
52864
+ var pathKey = (options = {}) => {
52865
+ const environment = options.env || process.env;
52866
+ if ((options.platform || process.platform) !== "win32") return "PATH";
52867
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
52868
+ };
52869
+ module2.exports = pathKey;
52870
+ module2.exports.default = pathKey;
52871
+ } });
52872
+ var require_resolveCommand2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
52873
+ var path7 = __require("path");
52874
+ var which = require_which2();
52875
+ var getPathKey = require_path_key2();
52876
+ function resolveCommandAttempt(parsed, withoutPathExt) {
52877
+ const env = parsed.options.env || process.env;
52878
+ const cwd = process.cwd();
52879
+ const hasCustomCwd = parsed.options.cwd != null;
52880
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
52881
+ if (shouldSwitchCwd) try {
52882
+ process.chdir(parsed.options.cwd);
52883
+ } catch (err) {}
52884
+ let resolved;
52885
+ try {
52886
+ resolved = which.sync(parsed.command, {
52887
+ path: env[getPathKey({ env })],
52888
+ pathExt: withoutPathExt ? path7.delimiter : void 0
52889
+ });
52890
+ } catch (e) {} finally {
52891
+ if (shouldSwitchCwd) process.chdir(cwd);
52892
+ }
52893
+ if (resolved) resolved = path7.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
52894
+ return resolved;
52895
+ }
52896
+ function resolveCommand(parsed) {
52897
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
52898
+ }
52899
+ module2.exports = resolveCommand;
52900
+ } });
52901
+ var require_escape2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
52902
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
52903
+ function escapeCommand(arg) {
52904
+ arg = arg.replace(metaCharsRegExp, "^$1");
52905
+ return arg;
52906
+ }
52907
+ function escapeArgument(arg, doubleEscapeMetaChars) {
52908
+ arg = `${arg}`;
52909
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
52910
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
52911
+ arg = `"${arg}"`;
52912
+ arg = arg.replace(metaCharsRegExp, "^$1");
52913
+ if (doubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
52914
+ return arg;
52915
+ }
52916
+ module2.exports.command = escapeCommand;
52917
+ module2.exports.argument = escapeArgument;
52918
+ } });
52919
+ var require_shebang_regex2 = __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
52920
+ module2.exports = /^#!(.*)/;
52921
+ } });
52922
+ var require_shebang_command2 = __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
52923
+ var shebangRegex = require_shebang_regex2();
52924
+ module2.exports = (string = "") => {
52925
+ const match = string.match(shebangRegex);
52926
+ if (!match) return null;
52927
+ const [path7, argument] = match[0].replace(/#! ?/, "").split(" ");
52928
+ const binary = path7.split("/").pop();
52929
+ if (binary === "env") return argument;
52930
+ return argument ? `${binary} ${argument}` : binary;
52931
+ };
52932
+ } });
52933
+ var require_readShebang2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
52934
+ var fs7 = __require("fs");
52935
+ var shebangCommand = require_shebang_command2();
52936
+ function readShebang(command) {
52937
+ const size = 150;
52938
+ const buffer = Buffer.alloc(size);
52939
+ let fd;
52940
+ try {
52941
+ fd = fs7.openSync(command, "r");
52942
+ fs7.readSync(fd, buffer, 0, size, 0);
52943
+ fs7.closeSync(fd);
52944
+ } catch (e) {}
52945
+ return shebangCommand(buffer.toString());
52946
+ }
52947
+ module2.exports = readShebang;
52948
+ } });
52949
+ var require_parse4 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
52950
+ var path7 = __require("path");
52951
+ var resolveCommand = require_resolveCommand2();
52952
+ var escape = require_escape2();
52953
+ var readShebang = require_readShebang2();
52954
+ var isWin3 = process.platform === "win32";
52955
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
52956
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
52957
+ function detectShebang(parsed) {
52958
+ parsed.file = resolveCommand(parsed);
52959
+ const shebang = parsed.file && readShebang(parsed.file);
52960
+ if (shebang) {
52961
+ parsed.args.unshift(parsed.file);
52962
+ parsed.command = shebang;
52963
+ return resolveCommand(parsed);
52964
+ }
52965
+ return parsed.file;
52966
+ }
52967
+ function parseNonShell(parsed) {
52968
+ if (!isWin3) return parsed;
52969
+ const commandFile = detectShebang(parsed);
52970
+ const needsShell = !isExecutableRegExp.test(commandFile);
52971
+ if (parsed.options.forceShell || needsShell) {
52972
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
52973
+ parsed.command = path7.normalize(parsed.command);
52974
+ parsed.command = escape.command(parsed.command);
52975
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
52976
+ parsed.args = [
52977
+ "/d",
52978
+ "/s",
52979
+ "/c",
52980
+ `"${[parsed.command].concat(parsed.args).join(" ")}"`
52981
+ ];
52982
+ parsed.command = process.env.comspec || "cmd.exe";
52983
+ parsed.options.windowsVerbatimArguments = true;
52984
+ }
52985
+ return parsed;
52986
+ }
52987
+ function parse3(command, args, options) {
52988
+ if (args && !Array.isArray(args)) {
52989
+ options = args;
52990
+ args = null;
52991
+ }
52992
+ args = args ? args.slice(0) : [];
52993
+ options = Object.assign({}, options);
52994
+ const parsed = {
52995
+ command,
52996
+ args,
52997
+ options,
52998
+ file: void 0,
52999
+ original: {
53000
+ command,
53001
+ args
53002
+ }
53003
+ };
53004
+ return options.shell ? parsed : parseNonShell(parsed);
53005
+ }
53006
+ module2.exports = parse3;
53007
+ } });
53008
+ var require_enoent2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
53009
+ var isWin3 = process.platform === "win32";
53010
+ function notFoundError(original, syscall) {
53011
+ return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
53012
+ code: "ENOENT",
53013
+ errno: "ENOENT",
53014
+ syscall: `${syscall} ${original.command}`,
53015
+ path: original.command,
53016
+ spawnargs: original.args
53017
+ });
53018
+ }
53019
+ function hookChildProcess(cp, parsed) {
53020
+ if (!isWin3) return;
53021
+ const originalEmit = cp.emit;
53022
+ cp.emit = function(name, arg1) {
53023
+ if (name === "exit") {
53024
+ const err = verifyENOENT(arg1, parsed);
53025
+ if (err) return originalEmit.call(cp, "error", err);
53026
+ }
53027
+ return originalEmit.apply(cp, arguments);
53028
+ };
53029
+ }
53030
+ function verifyENOENT(status, parsed) {
53031
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
53032
+ return null;
53033
+ }
53034
+ function verifyENOENTSync(status, parsed) {
53035
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
53036
+ return null;
53037
+ }
53038
+ module2.exports = {
53039
+ hookChildProcess,
53040
+ verifyENOENT,
53041
+ verifyENOENTSync,
53042
+ notFoundError
53043
+ };
53044
+ } });
53045
+ var require_cross_spawn2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
53046
+ var cp = __require("child_process");
53047
+ var parse3 = require_parse4();
53048
+ var enoent = require_enoent2();
53049
+ function spawn2(command, args, options) {
53050
+ const parsed = parse3(command, args, options);
53051
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
53052
+ enoent.hookChildProcess(spawned, parsed);
53053
+ return spawned;
53054
+ }
53055
+ function spawnSync(command, args, options) {
53056
+ const parsed = parse3(command, args, options);
53057
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
53058
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
53059
+ return result;
53060
+ }
53061
+ module2.exports = spawn2;
53062
+ module2.exports.spawn = spawn2;
53063
+ module2.exports.sync = spawnSync;
53064
+ module2.exports._parse = parse3;
53065
+ module2.exports._enoent = enoent;
53066
+ } });
53067
+ var require_strip_final_newline = __commonJS({ "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports2, module2) {
53068
+ module2.exports = (input) => {
53069
+ const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
53070
+ const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
53071
+ if (input[input.length - 1] === LF) input = input.slice(0, input.length - 1);
53072
+ if (input[input.length - 1] === CR) input = input.slice(0, input.length - 1);
53073
+ return input;
53074
+ };
53075
+ } });
53076
+ var require_npm_run_path = __commonJS({ "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) {
53077
+ var path7 = __require("path");
53078
+ var pathKey = require_path_key2();
53079
+ var npmRunPath = (options) => {
53080
+ options = {
53081
+ cwd: process.cwd(),
53082
+ path: process.env[pathKey()],
53083
+ execPath: process.execPath,
53084
+ ...options
53085
+ };
53086
+ let previous;
53087
+ let cwdPath = path7.resolve(options.cwd);
53088
+ const result = [];
53089
+ while (previous !== cwdPath) {
53090
+ result.push(path7.join(cwdPath, "node_modules/.bin"));
53091
+ previous = cwdPath;
53092
+ cwdPath = path7.resolve(cwdPath, "..");
53093
+ }
53094
+ const execPathDir = path7.resolve(options.cwd, options.execPath, "..");
53095
+ result.push(execPathDir);
53096
+ return result.concat(options.path).join(path7.delimiter);
53097
+ };
53098
+ module2.exports = npmRunPath;
53099
+ module2.exports.default = npmRunPath;
53100
+ module2.exports.env = (options) => {
53101
+ options = {
53102
+ env: process.env,
53103
+ ...options
53104
+ };
53105
+ const env = { ...options.env };
53106
+ const path8 = pathKey({ env });
53107
+ options.path = env[path8];
53108
+ env[path8] = module2.exports(options);
53109
+ return env;
53110
+ };
53111
+ } });
53112
+ var require_mimic_fn = __commonJS({ "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports2, module2) {
53113
+ var mimicFn = (to, from) => {
53114
+ for (const prop of Reflect.ownKeys(from)) Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
53115
+ return to;
53116
+ };
53117
+ module2.exports = mimicFn;
53118
+ module2.exports.default = mimicFn;
53119
+ } });
53120
+ var require_onetime = __commonJS({ "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) {
53121
+ var mimicFn = require_mimic_fn();
53122
+ var calledFunctions = /* @__PURE__ */ new WeakMap();
53123
+ var onetime = (function_, options = {}) => {
53124
+ if (typeof function_ !== "function") throw new TypeError("Expected a function");
53125
+ let returnValue;
53126
+ let callCount = 0;
53127
+ const functionName = function_.displayName || function_.name || "<anonymous>";
53128
+ const onetime2 = function(...arguments_) {
53129
+ calledFunctions.set(onetime2, ++callCount);
53130
+ if (callCount === 1) {
53131
+ returnValue = function_.apply(this, arguments_);
53132
+ function_ = null;
53133
+ } else if (options.throw === true) throw new Error(`Function \`${functionName}\` can only be called once`);
53134
+ return returnValue;
53135
+ };
53136
+ mimicFn(onetime2, function_);
53137
+ calledFunctions.set(onetime2, callCount);
53138
+ return onetime2;
53139
+ };
53140
+ module2.exports = onetime;
53141
+ module2.exports.default = onetime;
53142
+ module2.exports.callCount = (function_) => {
53143
+ if (!calledFunctions.has(function_)) throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
53144
+ return calledFunctions.get(function_);
53145
+ };
53146
+ } });
53147
+ var require_core2 = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/core.js"(exports2) {
53148
+ Object.defineProperty(exports2, "__esModule", { value: true });
53149
+ exports2.SIGNALS = void 0;
53150
+ exports2.SIGNALS = [
53151
+ {
53152
+ name: "SIGHUP",
53153
+ number: 1,
53154
+ action: "terminate",
53155
+ description: "Terminal closed",
53156
+ standard: "posix"
53157
+ },
53158
+ {
53159
+ name: "SIGINT",
53160
+ number: 2,
53161
+ action: "terminate",
53162
+ description: "User interruption with CTRL-C",
53163
+ standard: "ansi"
53164
+ },
53165
+ {
53166
+ name: "SIGQUIT",
53167
+ number: 3,
53168
+ action: "core",
53169
+ description: "User interruption with CTRL-\\",
53170
+ standard: "posix"
53171
+ },
53172
+ {
53173
+ name: "SIGILL",
53174
+ number: 4,
53175
+ action: "core",
53176
+ description: "Invalid machine instruction",
53177
+ standard: "ansi"
53178
+ },
53179
+ {
53180
+ name: "SIGTRAP",
53181
+ number: 5,
53182
+ action: "core",
53183
+ description: "Debugger breakpoint",
53184
+ standard: "posix"
53185
+ },
53186
+ {
53187
+ name: "SIGABRT",
53188
+ number: 6,
53189
+ action: "core",
53190
+ description: "Aborted",
53191
+ standard: "ansi"
53192
+ },
53193
+ {
53194
+ name: "SIGIOT",
53195
+ number: 6,
53196
+ action: "core",
53197
+ description: "Aborted",
53198
+ standard: "bsd"
53199
+ },
53200
+ {
53201
+ name: "SIGBUS",
53202
+ number: 7,
53203
+ action: "core",
53204
+ description: "Bus error due to misaligned, non-existing address or paging error",
53205
+ standard: "bsd"
53206
+ },
53207
+ {
53208
+ name: "SIGEMT",
53209
+ number: 7,
53210
+ action: "terminate",
53211
+ description: "Command should be emulated but is not implemented",
53212
+ standard: "other"
53213
+ },
53214
+ {
53215
+ name: "SIGFPE",
53216
+ number: 8,
53217
+ action: "core",
53218
+ description: "Floating point arithmetic error",
53219
+ standard: "ansi"
53220
+ },
53221
+ {
53222
+ name: "SIGKILL",
53223
+ number: 9,
53224
+ action: "terminate",
53225
+ description: "Forced termination",
53226
+ standard: "posix",
53227
+ forced: true
53228
+ },
53229
+ {
53230
+ name: "SIGUSR1",
53231
+ number: 10,
53232
+ action: "terminate",
53233
+ description: "Application-specific signal",
53234
+ standard: "posix"
53235
+ },
53236
+ {
53237
+ name: "SIGSEGV",
53238
+ number: 11,
53239
+ action: "core",
53240
+ description: "Segmentation fault",
53241
+ standard: "ansi"
53242
+ },
53243
+ {
53244
+ name: "SIGUSR2",
53245
+ number: 12,
53246
+ action: "terminate",
53247
+ description: "Application-specific signal",
53248
+ standard: "posix"
53249
+ },
53250
+ {
53251
+ name: "SIGPIPE",
53252
+ number: 13,
53253
+ action: "terminate",
53254
+ description: "Broken pipe or socket",
53255
+ standard: "posix"
53256
+ },
53257
+ {
53258
+ name: "SIGALRM",
53259
+ number: 14,
53260
+ action: "terminate",
53261
+ description: "Timeout or timer",
53262
+ standard: "posix"
53263
+ },
53264
+ {
53265
+ name: "SIGTERM",
53266
+ number: 15,
53267
+ action: "terminate",
53268
+ description: "Termination",
53269
+ standard: "ansi"
53270
+ },
53271
+ {
53272
+ name: "SIGSTKFLT",
53273
+ number: 16,
53274
+ action: "terminate",
53275
+ description: "Stack is empty or overflowed",
53276
+ standard: "other"
53277
+ },
53278
+ {
53279
+ name: "SIGCHLD",
53280
+ number: 17,
53281
+ action: "ignore",
53282
+ description: "Child process terminated, paused or unpaused",
53283
+ standard: "posix"
53284
+ },
53285
+ {
53286
+ name: "SIGCLD",
53287
+ number: 17,
53288
+ action: "ignore",
53289
+ description: "Child process terminated, paused or unpaused",
53290
+ standard: "other"
53291
+ },
53292
+ {
53293
+ name: "SIGCONT",
53294
+ number: 18,
53295
+ action: "unpause",
53296
+ description: "Unpaused",
53297
+ standard: "posix",
53298
+ forced: true
53299
+ },
53300
+ {
53301
+ name: "SIGSTOP",
53302
+ number: 19,
53303
+ action: "pause",
53304
+ description: "Paused",
53305
+ standard: "posix",
53306
+ forced: true
53307
+ },
53308
+ {
53309
+ name: "SIGTSTP",
53310
+ number: 20,
53311
+ action: "pause",
53312
+ description: "Paused using CTRL-Z or \"suspend\"",
53313
+ standard: "posix"
53314
+ },
53315
+ {
53316
+ name: "SIGTTIN",
53317
+ number: 21,
53318
+ action: "pause",
53319
+ description: "Background process cannot read terminal input",
53320
+ standard: "posix"
53321
+ },
53322
+ {
53323
+ name: "SIGBREAK",
53324
+ number: 21,
53325
+ action: "terminate",
53326
+ description: "User interruption with CTRL-BREAK",
53327
+ standard: "other"
53328
+ },
53329
+ {
53330
+ name: "SIGTTOU",
53331
+ number: 22,
53332
+ action: "pause",
53333
+ description: "Background process cannot write to terminal output",
53334
+ standard: "posix"
53335
+ },
53336
+ {
53337
+ name: "SIGURG",
53338
+ number: 23,
53339
+ action: "ignore",
53340
+ description: "Socket received out-of-band data",
53341
+ standard: "bsd"
53342
+ },
53343
+ {
53344
+ name: "SIGXCPU",
53345
+ number: 24,
53346
+ action: "core",
53347
+ description: "Process timed out",
53348
+ standard: "bsd"
53349
+ },
53350
+ {
53351
+ name: "SIGXFSZ",
53352
+ number: 25,
53353
+ action: "core",
53354
+ description: "File too big",
53355
+ standard: "bsd"
53356
+ },
53357
+ {
53358
+ name: "SIGVTALRM",
53359
+ number: 26,
53360
+ action: "terminate",
53361
+ description: "Timeout or timer",
53362
+ standard: "bsd"
53363
+ },
53364
+ {
53365
+ name: "SIGPROF",
53366
+ number: 27,
53367
+ action: "terminate",
53368
+ description: "Timeout or timer",
53369
+ standard: "bsd"
53370
+ },
53371
+ {
53372
+ name: "SIGWINCH",
53373
+ number: 28,
53374
+ action: "ignore",
53375
+ description: "Terminal window size changed",
53376
+ standard: "bsd"
53377
+ },
53378
+ {
53379
+ name: "SIGIO",
53380
+ number: 29,
53381
+ action: "terminate",
53382
+ description: "I/O is available",
53383
+ standard: "other"
53384
+ },
53385
+ {
53386
+ name: "SIGPOLL",
53387
+ number: 29,
53388
+ action: "terminate",
53389
+ description: "Watched event",
53390
+ standard: "other"
53391
+ },
53392
+ {
53393
+ name: "SIGINFO",
53394
+ number: 29,
53395
+ action: "ignore",
53396
+ description: "Request for process information",
53397
+ standard: "other"
53398
+ },
53399
+ {
53400
+ name: "SIGPWR",
53401
+ number: 30,
53402
+ action: "terminate",
53403
+ description: "Device running out of power",
53404
+ standard: "systemv"
53405
+ },
53406
+ {
53407
+ name: "SIGSYS",
53408
+ number: 31,
53409
+ action: "core",
53410
+ description: "Invalid system call",
53411
+ standard: "other"
53412
+ },
53413
+ {
53414
+ name: "SIGUNUSED",
53415
+ number: 31,
53416
+ action: "terminate",
53417
+ description: "Invalid system call",
53418
+ standard: "other"
53419
+ }
53420
+ ];
53421
+ } });
53422
+ var require_realtime = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/realtime.js"(exports2) {
53423
+ Object.defineProperty(exports2, "__esModule", { value: true });
53424
+ exports2.SIGRTMAX = exports2.getRealtimeSignals = void 0;
53425
+ var getRealtimeSignals = function() {
53426
+ const length = SIGRTMAX - SIGRTMIN + 1;
53427
+ return Array.from({ length }, getRealtimeSignal);
53428
+ };
53429
+ exports2.getRealtimeSignals = getRealtimeSignals;
53430
+ var getRealtimeSignal = function(value, index) {
53431
+ return {
53432
+ name: `SIGRT${index + 1}`,
53433
+ number: SIGRTMIN + index,
53434
+ action: "terminate",
53435
+ description: "Application-specific signal (realtime)",
53436
+ standard: "posix"
53437
+ };
53438
+ };
53439
+ var SIGRTMIN = 34;
53440
+ var SIGRTMAX = 64;
53441
+ exports2.SIGRTMAX = SIGRTMAX;
53442
+ } });
53443
+ var require_signals = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/signals.js"(exports2) {
53444
+ Object.defineProperty(exports2, "__esModule", { value: true });
53445
+ exports2.getSignals = void 0;
53446
+ var _os = __require("os");
53447
+ var _core = require_core2();
53448
+ var _realtime = require_realtime();
53449
+ var getSignals = function() {
53450
+ const realtimeSignals = (0, _realtime.getRealtimeSignals)();
53451
+ return [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
53452
+ };
53453
+ exports2.getSignals = getSignals;
53454
+ var normalizeSignal = function({ name, number: defaultNumber, description, action, forced = false, standard }) {
53455
+ const { signals: { [name]: constantSignal } } = _os.constants;
53456
+ const supported = constantSignal !== void 0;
53457
+ return {
53458
+ name,
53459
+ number: supported ? constantSignal : defaultNumber,
53460
+ description,
53461
+ supported,
53462
+ action,
53463
+ forced,
53464
+ standard
53465
+ };
53466
+ };
53467
+ } });
53468
+ var require_main = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/main.js"(exports2) {
53469
+ Object.defineProperty(exports2, "__esModule", { value: true });
53470
+ exports2.signalsByNumber = exports2.signalsByName = void 0;
53471
+ var _os = __require("os");
53472
+ var _signals = require_signals();
53473
+ var _realtime = require_realtime();
53474
+ var getSignalsByName = function() {
53475
+ return (0, _signals.getSignals)().reduce(getSignalByName, {});
53476
+ };
53477
+ var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
53478
+ return {
53479
+ ...signalByNameMemo,
53480
+ [name]: {
53481
+ name,
53482
+ number,
53483
+ description,
53484
+ supported,
53485
+ action,
53486
+ forced,
53487
+ standard
53488
+ }
53489
+ };
53490
+ };
53491
+ exports2.signalsByName = getSignalsByName();
53492
+ var getSignalsByNumber = function() {
53493
+ const signals = (0, _signals.getSignals)();
53494
+ const length = _realtime.SIGRTMAX + 1;
53495
+ const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
53496
+ return Object.assign({}, ...signalsA);
53497
+ };
53498
+ var getSignalByNumber = function(number, signals) {
53499
+ const signal = findSignalByNumber(number, signals);
53500
+ if (signal === void 0) return {};
53501
+ const { name, description, supported, action, forced, standard } = signal;
53502
+ return { [number]: {
53503
+ name,
53504
+ number,
53505
+ description,
53506
+ supported,
53507
+ action,
53508
+ forced,
53509
+ standard
53510
+ } };
53511
+ };
53512
+ var findSignalByNumber = function(number, signals) {
53513
+ const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
53514
+ if (signal !== void 0) return signal;
53515
+ return signals.find((signalA) => signalA.number === number);
53516
+ };
53517
+ exports2.signalsByNumber = getSignalsByNumber();
53518
+ } });
53519
+ var require_error = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/error.js"(exports2, module2) {
53520
+ var { signalsByName } = require_main();
53521
+ var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
53522
+ if (timedOut) return `timed out after ${timeout} milliseconds`;
53523
+ if (isCanceled) return "was canceled";
53524
+ if (errorCode !== void 0) return `failed with ${errorCode}`;
53525
+ if (signal !== void 0) return `was killed with ${signal} (${signalDescription})`;
53526
+ if (exitCode !== void 0) return `failed with exit code ${exitCode}`;
53527
+ return "failed";
53528
+ };
53529
+ var makeError = ({ stdout, stderr, all, error, signal, exitCode, command, timedOut, isCanceled, killed, parsed: { options: { timeout } } }) => {
53530
+ exitCode = exitCode === null ? void 0 : exitCode;
53531
+ signal = signal === null ? void 0 : signal;
53532
+ const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
53533
+ const message = `Command ${getErrorPrefix({
53534
+ timedOut,
53535
+ timeout,
53536
+ errorCode: error && error.code,
53537
+ signal,
53538
+ signalDescription,
53539
+ exitCode,
53540
+ isCanceled
53541
+ })}: ${command}`;
53542
+ if (error instanceof Error) {
53543
+ error.originalMessage = error.message;
53544
+ error.message = `${message}
53545
+ ${error.message}`;
53546
+ } else error = new Error(message);
53547
+ error.command = command;
53548
+ error.exitCode = exitCode;
53549
+ error.signal = signal;
53550
+ error.signalDescription = signalDescription;
53551
+ error.stdout = stdout;
53552
+ error.stderr = stderr;
53553
+ if (all !== void 0) error.all = all;
53554
+ if ("bufferedData" in error) delete error.bufferedData;
53555
+ error.failed = true;
53556
+ error.timedOut = Boolean(timedOut);
53557
+ error.isCanceled = isCanceled;
53558
+ error.killed = killed && !timedOut;
53559
+ return error;
53560
+ };
53561
+ module2.exports = makeError;
53562
+ } });
53563
+ var require_stdio = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stdio.js"(exports2, module2) {
53564
+ var aliases = [
53565
+ "stdin",
53566
+ "stdout",
53567
+ "stderr"
53568
+ ];
53569
+ var hasAlias = (opts) => aliases.some((alias) => opts[alias] !== void 0);
53570
+ var normalizeStdio = (opts) => {
53571
+ if (!opts) return;
53572
+ const { stdio } = opts;
53573
+ if (stdio === void 0) return aliases.map((alias) => opts[alias]);
53574
+ if (hasAlias(opts)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
53575
+ if (typeof stdio === "string") return stdio;
53576
+ if (!Array.isArray(stdio)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
53577
+ const length = Math.max(stdio.length, aliases.length);
53578
+ return Array.from({ length }, (value, index) => stdio[index]);
53579
+ };
53580
+ module2.exports = normalizeStdio;
53581
+ module2.exports.node = (opts) => {
53582
+ const stdio = normalizeStdio(opts);
53583
+ if (stdio === "ipc") return "ipc";
53584
+ if (stdio === void 0 || typeof stdio === "string") return [
53585
+ stdio,
53586
+ stdio,
53587
+ stdio,
53588
+ "ipc"
53589
+ ];
53590
+ if (stdio.includes("ipc")) return stdio;
53591
+ return [...stdio, "ipc"];
53592
+ };
53593
+ } });
53594
+ var require_signals2 = __commonJS({ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
53595
+ module2.exports = [
53596
+ "SIGABRT",
53597
+ "SIGALRM",
53598
+ "SIGHUP",
53599
+ "SIGINT",
53600
+ "SIGTERM"
53601
+ ];
53602
+ if (process.platform !== "win32") module2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
53603
+ if (process.platform === "linux") module2.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
53604
+ } });
53605
+ var require_signal_exit = __commonJS({ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
53606
+ var process2 = global.process;
53607
+ var processOk = function(process3) {
53608
+ return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
53609
+ };
53610
+ if (!processOk(process2)) module2.exports = function() {
53611
+ return function() {};
53612
+ };
53613
+ else {
53614
+ assert7 = __require("assert");
53615
+ signals = require_signals2();
53616
+ isWin3 = /^win/i.test(process2.platform);
53617
+ EE = __require("events");
53618
+ if (typeof EE !== "function") EE = EE.EventEmitter;
53619
+ if (process2.__signal_exit_emitter__) emitter = process2.__signal_exit_emitter__;
53620
+ else {
53621
+ emitter = process2.__signal_exit_emitter__ = new EE();
53622
+ emitter.count = 0;
53623
+ emitter.emitted = {};
53624
+ }
53625
+ if (!emitter.infinite) {
53626
+ emitter.setMaxListeners(Infinity);
53627
+ emitter.infinite = true;
53628
+ }
53629
+ module2.exports = function(cb, opts) {
53630
+ if (!processOk(global.process)) return function() {};
53631
+ assert7.equal(typeof cb, "function", "a callback must be provided for exit handler");
53632
+ if (loaded === false) load();
53633
+ var ev = "exit";
53634
+ if (opts && opts.alwaysLast) ev = "afterexit";
53635
+ var remove2 = function() {
53636
+ emitter.removeListener(ev, cb);
53637
+ if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) unload();
53638
+ };
53639
+ emitter.on(ev, cb);
53640
+ return remove2;
53641
+ };
53642
+ unload = function unload2() {
53643
+ if (!loaded || !processOk(global.process)) return;
53644
+ loaded = false;
53645
+ signals.forEach(function(sig) {
53646
+ try {
53647
+ process2.removeListener(sig, sigListeners[sig]);
53648
+ } catch (er) {}
53649
+ });
53650
+ process2.emit = originalProcessEmit;
53651
+ process2.reallyExit = originalProcessReallyExit;
53652
+ emitter.count -= 1;
53653
+ };
53654
+ module2.exports.unload = unload;
53655
+ emit = function emit2(event, code, signal) {
53656
+ if (emitter.emitted[event]) return;
53657
+ emitter.emitted[event] = true;
53658
+ emitter.emit(event, code, signal);
53659
+ };
53660
+ sigListeners = {};
53661
+ signals.forEach(function(sig) {
53662
+ sigListeners[sig] = function listener() {
53663
+ if (!processOk(global.process)) return;
53664
+ if (process2.listeners(sig).length === emitter.count) {
53665
+ unload();
53666
+ emit("exit", null, sig);
53667
+ emit("afterexit", null, sig);
53668
+ if (isWin3 && sig === "SIGHUP") sig = "SIGINT";
53669
+ process2.kill(process2.pid, sig);
53670
+ }
53671
+ };
53672
+ });
53673
+ module2.exports.signals = function() {
53674
+ return signals;
53675
+ };
53676
+ loaded = false;
53677
+ load = function load2() {
53678
+ if (loaded || !processOk(global.process)) return;
53679
+ loaded = true;
53680
+ emitter.count += 1;
53681
+ signals = signals.filter(function(sig) {
53682
+ try {
53683
+ process2.on(sig, sigListeners[sig]);
53684
+ return true;
53685
+ } catch (er) {
53686
+ return false;
53687
+ }
53688
+ });
53689
+ process2.emit = processEmit;
53690
+ process2.reallyExit = processReallyExit;
53691
+ };
53692
+ module2.exports.load = load;
53693
+ originalProcessReallyExit = process2.reallyExit;
53694
+ processReallyExit = function processReallyExit2(code) {
53695
+ if (!processOk(global.process)) return;
53696
+ process2.exitCode = code || 0;
53697
+ emit("exit", process2.exitCode, null);
53698
+ emit("afterexit", process2.exitCode, null);
53699
+ originalProcessReallyExit.call(process2, process2.exitCode);
53700
+ };
53701
+ originalProcessEmit = process2.emit;
53702
+ processEmit = function processEmit2(ev, arg) {
53703
+ if (ev === "exit" && processOk(global.process)) {
53704
+ if (arg !== void 0) process2.exitCode = arg;
53705
+ var ret = originalProcessEmit.apply(this, arguments);
53706
+ emit("exit", process2.exitCode, null);
53707
+ emit("afterexit", process2.exitCode, null);
53708
+ return ret;
53709
+ } else return originalProcessEmit.apply(this, arguments);
53710
+ };
53711
+ }
53712
+ var assert7;
53713
+ var signals;
53714
+ var isWin3;
53715
+ var EE;
53716
+ var emitter;
53717
+ var unload;
53718
+ var emit;
53719
+ var sigListeners;
53720
+ var loaded;
53721
+ var load;
53722
+ var originalProcessReallyExit;
53723
+ var processReallyExit;
53724
+ var originalProcessEmit;
53725
+ var processEmit;
53726
+ } });
53727
+ var require_p_finally = __commonJS({ "../../node_modules/.pnpm/p-finally@2.0.1/node_modules/p-finally/index.js"(exports2, module2) {
53728
+ module2.exports = async (promise, onFinally = () => {}) => {
53729
+ let value;
53730
+ try {
53731
+ value = await promise;
53732
+ } catch (error) {
53733
+ await onFinally();
53734
+ throw error;
53735
+ }
53736
+ await onFinally();
53737
+ return value;
53738
+ };
53739
+ } });
53740
+ var require_kill = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/kill.js"(exports2, module2) {
53741
+ var os = __require("os");
53742
+ var onExit = require_signal_exit();
53743
+ var pFinally = require_p_finally();
53744
+ var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
53745
+ var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
53746
+ const killResult = kill(signal);
53747
+ setKillTimeout(kill, signal, options, killResult);
53748
+ return killResult;
53749
+ };
53750
+ var setKillTimeout = (kill, signal, options, killResult) => {
53751
+ if (!shouldForceKill(signal, options, killResult)) return;
53752
+ const timeout = getForceKillAfterTimeout(options);
53753
+ setTimeout(() => {
53754
+ kill("SIGKILL");
53755
+ }, timeout).unref();
53756
+ };
53757
+ var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
53758
+ return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
53759
+ };
53760
+ var isSigterm = (signal) => {
53761
+ return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
53762
+ };
53763
+ var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
53764
+ if (forceKillAfterTimeout === true) return DEFAULT_FORCE_KILL_TIMEOUT;
53765
+ if (!Number.isInteger(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
53766
+ return forceKillAfterTimeout;
53767
+ };
53768
+ var spawnedCancel = (spawned, context) => {
53769
+ if (spawned.kill()) context.isCanceled = true;
53770
+ };
53771
+ var timeoutKill = (spawned, signal, reject) => {
53772
+ spawned.kill(signal);
53773
+ reject(Object.assign(/* @__PURE__ */ new Error("Timed out"), {
53774
+ timedOut: true,
53775
+ signal
53776
+ }));
53777
+ };
53778
+ var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
53779
+ if (timeout === 0 || timeout === void 0) return spawnedPromise;
53780
+ if (!Number.isInteger(timeout) || timeout < 0) throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
53781
+ let timeoutId;
53782
+ const timeoutPromise = new Promise((resolve, reject) => {
53783
+ timeoutId = setTimeout(() => {
53784
+ timeoutKill(spawned, killSignal, reject);
53785
+ }, timeout);
53786
+ });
53787
+ const safeSpawnedPromise = pFinally(spawnedPromise, () => {
53788
+ clearTimeout(timeoutId);
53789
+ });
53790
+ return Promise.race([timeoutPromise, safeSpawnedPromise]);
53791
+ };
53792
+ var setExitHandler = (spawned, { cleanup, detached }, timedPromise) => {
53793
+ if (!cleanup || detached) return timedPromise;
53794
+ return pFinally(timedPromise, onExit(() => {
53795
+ spawned.kill();
53796
+ }));
53797
+ };
53798
+ module2.exports = {
53799
+ spawnedKill,
53800
+ spawnedCancel,
53801
+ setupTimeout,
53802
+ setExitHandler
53803
+ };
53804
+ } });
53805
+ var require_is_stream = __commonJS({ "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
53806
+ var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
53807
+ isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
53808
+ isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
53809
+ isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
53810
+ isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function";
53811
+ module2.exports = isStream;
53812
+ } });
53813
+ var require_pump = __commonJS({ "../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js"(exports2, module2) {
53814
+ var once = require_once();
53815
+ var eos2 = require_end_of_stream();
53816
+ var fs7;
53817
+ try {
53818
+ fs7 = __require("fs");
53819
+ } catch (e) {}
53820
+ var noop = function() {};
53821
+ var ancient = /^v?\.0/.test(process.version);
53822
+ var isFn = function(fn) {
53823
+ return typeof fn === "function";
53824
+ };
53825
+ var isFS = function(stream) {
53826
+ if (!ancient) return false;
53827
+ if (!fs7) return false;
53828
+ return (stream instanceof (fs7.ReadStream || noop) || stream instanceof (fs7.WriteStream || noop)) && isFn(stream.close);
53829
+ };
53830
+ var isRequest = function(stream) {
53831
+ return stream.setHeader && isFn(stream.abort);
53832
+ };
53833
+ var destroyer = function(stream, reading, writing, callback) {
53834
+ callback = once(callback);
53835
+ var closed = false;
53836
+ stream.on("close", function() {
53837
+ closed = true;
53838
+ });
53839
+ eos2(stream, {
53840
+ readable: reading,
53841
+ writable: writing
53842
+ }, function(err) {
53843
+ if (err) return callback(err);
53844
+ closed = true;
53845
+ callback();
53846
+ });
53847
+ var destroyed = false;
53848
+ return function(err) {
53849
+ if (closed) return;
53850
+ if (destroyed) return;
53851
+ destroyed = true;
53852
+ if (isFS(stream)) return stream.close(noop);
53853
+ if (isRequest(stream)) return stream.abort();
53854
+ if (isFn(stream.destroy)) return stream.destroy();
53855
+ callback(err || /* @__PURE__ */ new Error("stream was destroyed"));
53856
+ };
53857
+ };
53858
+ var call = function(fn) {
53859
+ fn();
53860
+ };
53861
+ var pipe = function(from, to) {
53862
+ return from.pipe(to);
53863
+ };
53864
+ var pump = function() {
53865
+ var streams = Array.prototype.slice.call(arguments);
53866
+ var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
53867
+ if (Array.isArray(streams[0])) streams = streams[0];
53868
+ if (streams.length < 2) throw new Error("pump requires two streams per minimum");
53869
+ var error;
53870
+ var destroys = streams.map(function(stream, i) {
53871
+ var reading = i < streams.length - 1;
53872
+ return destroyer(stream, reading, i > 0, function(err) {
53873
+ if (!error) error = err;
53874
+ if (err) destroys.forEach(call);
53875
+ if (reading) return;
53876
+ destroys.forEach(call);
53877
+ callback(error);
53878
+ });
53879
+ });
53880
+ return streams.reduce(pipe);
53881
+ };
53882
+ module2.exports = pump;
53883
+ } });
53884
+ var require_buffer_stream = __commonJS({ "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/buffer-stream.js"(exports2, module2) {
53885
+ var { PassThrough: PassThroughStream } = __require("stream");
53886
+ module2.exports = (options) => {
53887
+ options = { ...options };
53888
+ const { array } = options;
53889
+ let { encoding } = options;
53890
+ const isBuffer = encoding === "buffer";
53891
+ let objectMode = false;
53892
+ if (array) objectMode = !(encoding || isBuffer);
53893
+ else encoding = encoding || "utf8";
53894
+ if (isBuffer) encoding = null;
53895
+ const stream = new PassThroughStream({ objectMode });
53896
+ if (encoding) stream.setEncoding(encoding);
53897
+ let length = 0;
53898
+ const chunks = [];
53899
+ stream.on("data", (chunk) => {
53900
+ chunks.push(chunk);
53901
+ if (objectMode) length = chunks.length;
53902
+ else length += chunk.length;
53903
+ });
53904
+ stream.getBufferedValue = () => {
53905
+ if (array) return chunks;
53906
+ return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
53907
+ };
53908
+ stream.getBufferedLength = () => length;
53909
+ return stream;
53910
+ };
53911
+ } });
53912
+ var require_get_stream = __commonJS({ "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/index.js"(exports2, module2) {
53913
+ var { constants: BufferConstants } = __require("buffer");
53914
+ var pump = require_pump();
53915
+ var bufferStream = require_buffer_stream();
53916
+ var MaxBufferError = class extends Error {
53917
+ constructor() {
53918
+ super("maxBuffer exceeded");
53919
+ this.name = "MaxBufferError";
53920
+ }
53921
+ };
53922
+ async function getStream(inputStream, options) {
53923
+ if (!inputStream) return Promise.reject(/* @__PURE__ */ new Error("Expected a stream"));
53924
+ options = {
53925
+ maxBuffer: Infinity,
53926
+ ...options
53927
+ };
53928
+ const { maxBuffer } = options;
53929
+ let stream;
53930
+ await new Promise((resolve, reject) => {
53931
+ const rejectPromise = (error) => {
53932
+ if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();
53933
+ reject(error);
53934
+ };
53935
+ stream = pump(inputStream, bufferStream(options), (error) => {
53936
+ if (error) {
53937
+ rejectPromise(error);
53938
+ return;
53939
+ }
53940
+ resolve();
53941
+ });
53942
+ stream.on("data", () => {
53943
+ if (stream.getBufferedLength() > maxBuffer) rejectPromise(new MaxBufferError());
53944
+ });
53945
+ });
53946
+ return stream.getBufferedValue();
53947
+ }
53948
+ module2.exports = getStream;
53949
+ module2.exports.default = getStream;
53950
+ module2.exports.buffer = (stream, options) => getStream(stream, {
53951
+ ...options,
53952
+ encoding: "buffer"
53953
+ });
53954
+ module2.exports.array = (stream, options) => getStream(stream, {
53955
+ ...options,
53956
+ array: true
53957
+ });
53958
+ module2.exports.MaxBufferError = MaxBufferError;
53959
+ } });
53960
+ var require_merge_stream = __commonJS({ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
53961
+ var { PassThrough } = __require("stream");
53962
+ module2.exports = function() {
53963
+ var sources = [];
53964
+ var output = new PassThrough({ objectMode: true });
53965
+ output.setMaxListeners(0);
53966
+ output.add = add;
53967
+ output.isEmpty = isEmpty;
53968
+ output.on("unpipe", remove2);
53969
+ Array.prototype.slice.call(arguments).forEach(add);
53970
+ return output;
53971
+ function add(source) {
53972
+ if (Array.isArray(source)) {
53973
+ source.forEach(add);
53974
+ return this;
53975
+ }
53976
+ sources.push(source);
53977
+ source.once("end", remove2.bind(null, source));
53978
+ source.once("error", output.emit.bind(output, "error"));
53979
+ source.pipe(output, { end: false });
53980
+ return this;
53981
+ }
53982
+ function isEmpty() {
53983
+ return sources.length == 0;
53984
+ }
53985
+ function remove2(source) {
53986
+ sources = sources.filter(function(it) {
53987
+ return it !== source;
53988
+ });
53989
+ if (!sources.length && output.readable) output.end();
53990
+ }
53991
+ };
53992
+ } });
53993
+ var require_stream2 = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stream.js"(exports2, module2) {
53994
+ var isStream = require_is_stream();
53995
+ var getStream = require_get_stream();
53996
+ var mergeStream = require_merge_stream();
53997
+ var handleInput = (spawned, input) => {
53998
+ if (input === void 0 || spawned.stdin === void 0) return;
53999
+ if (isStream(input)) input.pipe(spawned.stdin);
54000
+ else spawned.stdin.end(input);
54001
+ };
54002
+ var makeAllStream = (spawned, { all }) => {
54003
+ if (!all || !spawned.stdout && !spawned.stderr) return;
54004
+ const mixed = mergeStream();
54005
+ if (spawned.stdout) mixed.add(spawned.stdout);
54006
+ if (spawned.stderr) mixed.add(spawned.stderr);
54007
+ return mixed;
54008
+ };
54009
+ var getBufferedData = async (stream, streamPromise) => {
54010
+ if (!stream) return;
54011
+ stream.destroy();
54012
+ try {
54013
+ return await streamPromise;
54014
+ } catch (error) {
54015
+ return error.bufferedData;
54016
+ }
54017
+ };
54018
+ var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
54019
+ if (!stream || !buffer) return;
54020
+ if (encoding) return getStream(stream, {
54021
+ encoding,
54022
+ maxBuffer
54023
+ });
54024
+ return getStream.buffer(stream, { maxBuffer });
54025
+ };
54026
+ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
54027
+ const stdoutPromise = getStreamPromise(stdout, {
54028
+ encoding,
54029
+ buffer,
54030
+ maxBuffer
54031
+ });
54032
+ const stderrPromise = getStreamPromise(stderr, {
54033
+ encoding,
54034
+ buffer,
54035
+ maxBuffer
54036
+ });
54037
+ const allPromise = getStreamPromise(all, {
54038
+ encoding,
54039
+ buffer,
54040
+ maxBuffer: maxBuffer * 2
54041
+ });
54042
+ try {
54043
+ return await Promise.all([
54044
+ processDone,
54045
+ stdoutPromise,
54046
+ stderrPromise,
54047
+ allPromise
54048
+ ]);
54049
+ } catch (error) {
54050
+ return Promise.all([
54051
+ {
54052
+ error,
54053
+ signal: error.signal,
54054
+ timedOut: error.timedOut
54055
+ },
54056
+ getBufferedData(stdout, stdoutPromise),
54057
+ getBufferedData(stderr, stderrPromise),
54058
+ getBufferedData(all, allPromise)
54059
+ ]);
54060
+ }
54061
+ };
54062
+ var validateInputSync = ({ input }) => {
54063
+ if (isStream(input)) throw new TypeError("The `input` option cannot be a stream in sync mode");
54064
+ };
54065
+ module2.exports = {
54066
+ handleInput,
54067
+ makeAllStream,
54068
+ getSpawnedResult,
54069
+ validateInputSync
54070
+ };
54071
+ } });
54072
+ var require_promise = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/promise.js"(exports2, module2) {
54073
+ var mergePromiseProperty = (spawned, promise, property) => {
54074
+ const value = typeof promise === "function" ? (...args) => promise()[property](...args) : promise[property].bind(promise);
54075
+ Object.defineProperty(spawned, property, {
54076
+ value,
54077
+ writable: true,
54078
+ enumerable: false,
54079
+ configurable: true
54080
+ });
54081
+ };
54082
+ var mergePromise = (spawned, promise) => {
54083
+ mergePromiseProperty(spawned, promise, "then");
54084
+ mergePromiseProperty(spawned, promise, "catch");
54085
+ if (Promise.prototype.finally) mergePromiseProperty(spawned, promise, "finally");
54086
+ return spawned;
54087
+ };
54088
+ var getSpawnedPromise = (spawned) => {
54089
+ return new Promise((resolve, reject) => {
54090
+ spawned.on("exit", (exitCode, signal) => {
54091
+ resolve({
54092
+ exitCode,
54093
+ signal
54094
+ });
54095
+ });
54096
+ spawned.on("error", (error) => {
54097
+ reject(error);
54098
+ });
54099
+ if (spawned.stdin) spawned.stdin.on("error", (error) => {
54100
+ reject(error);
54101
+ });
54102
+ });
54103
+ };
54104
+ module2.exports = {
54105
+ mergePromise,
54106
+ getSpawnedPromise
54107
+ };
54108
+ } });
54109
+ var require_command = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/command.js"(exports2, module2) {
54110
+ var SPACES_REGEXP = / +/g;
54111
+ var joinCommand = (file, args = []) => {
54112
+ if (!Array.isArray(args)) return file;
54113
+ return [file, ...args].join(" ");
54114
+ };
54115
+ var handleEscaping = (tokens, token, index) => {
54116
+ if (index === 0) return [token];
54117
+ const previousToken = tokens[tokens.length - 1];
54118
+ if (previousToken.endsWith("\\")) return [...tokens.slice(0, -1), `${previousToken.slice(0, -1)} ${token}`];
54119
+ return [...tokens, token];
54120
+ };
54121
+ var parseCommand = (command) => {
54122
+ return command.trim().split(SPACES_REGEXP).reduce(handleEscaping, []);
54123
+ };
54124
+ module2.exports = {
54125
+ joinCommand,
54126
+ parseCommand
54127
+ };
54128
+ } });
54129
+ var require_execa = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/index.js"(exports2, module2) {
54130
+ var path7 = __require("path");
54131
+ var childProcess = __require("child_process");
54132
+ var crossSpawn = require_cross_spawn2();
54133
+ var stripFinalNewline = require_strip_final_newline();
54134
+ var npmRunPath = require_npm_run_path();
54135
+ var onetime = require_onetime();
54136
+ var makeError = require_error();
54137
+ var normalizeStdio = require_stdio();
54138
+ var { spawnedKill, spawnedCancel, setupTimeout, setExitHandler } = require_kill();
54139
+ var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream2();
54140
+ var { mergePromise, getSpawnedPromise } = require_promise();
54141
+ var { joinCommand, parseCommand } = require_command();
54142
+ var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
54143
+ var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
54144
+ const env = extendEnv ? {
54145
+ ...process.env,
54146
+ ...envOption
54147
+ } : envOption;
54148
+ if (preferLocal) return npmRunPath.env({
54149
+ env,
54150
+ cwd: localDir,
54151
+ execPath
54152
+ });
54153
+ return env;
54154
+ };
54155
+ var handleArgs = (file, args, options = {}) => {
54156
+ const parsed = crossSpawn._parse(file, args, options);
54157
+ file = parsed.command;
54158
+ args = parsed.args;
54159
+ options = parsed.options;
54160
+ options = {
54161
+ maxBuffer: DEFAULT_MAX_BUFFER,
54162
+ buffer: true,
54163
+ stripFinalNewline: true,
54164
+ extendEnv: true,
54165
+ preferLocal: false,
54166
+ localDir: options.cwd || process.cwd(),
54167
+ execPath: process.execPath,
54168
+ encoding: "utf8",
54169
+ reject: true,
54170
+ cleanup: true,
54171
+ all: false,
54172
+ ...options,
54173
+ windowsHide: true
54174
+ };
54175
+ options.env = getEnv(options);
54176
+ options.stdio = normalizeStdio(options);
54177
+ if (process.platform === "win32" && path7.basename(file, ".exe") === "cmd") args.unshift("/q");
54178
+ return {
54179
+ file,
54180
+ args,
54181
+ options,
54182
+ parsed
54183
+ };
54184
+ };
54185
+ var handleOutput = (options, value, error) => {
54186
+ if (typeof value !== "string" && !Buffer.isBuffer(value)) return error === void 0 ? void 0 : "";
54187
+ if (options.stripFinalNewline) return stripFinalNewline(value);
54188
+ return value;
54189
+ };
54190
+ var execa2 = (file, args, options) => {
54191
+ const parsed = handleArgs(file, args, options);
54192
+ const command = joinCommand(file, args);
54193
+ let spawned;
54194
+ try {
54195
+ spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
54196
+ } catch (error) {
54197
+ return mergePromise(new childProcess.ChildProcess(), Promise.reject(makeError({
54198
+ error,
54199
+ stdout: "",
54200
+ stderr: "",
54201
+ all: "",
54202
+ command,
54203
+ parsed,
54204
+ timedOut: false,
54205
+ isCanceled: false,
54206
+ killed: false
54207
+ })));
54208
+ }
54209
+ const spawnedPromise = getSpawnedPromise(spawned);
54210
+ const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
54211
+ const processDone = setExitHandler(spawned, parsed.options, timedPromise);
54212
+ const context = { isCanceled: false };
54213
+ spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
54214
+ spawned.cancel = spawnedCancel.bind(null, spawned, context);
54215
+ const handlePromise = async () => {
54216
+ const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
54217
+ const stdout = handleOutput(parsed.options, stdoutResult);
54218
+ const stderr = handleOutput(parsed.options, stderrResult);
54219
+ const all = handleOutput(parsed.options, allResult);
54220
+ if (error || exitCode !== 0 || signal !== null) {
54221
+ const returnedError = makeError({
54222
+ error,
54223
+ exitCode,
54224
+ signal,
54225
+ stdout,
54226
+ stderr,
54227
+ all,
54228
+ command,
54229
+ parsed,
54230
+ timedOut,
54231
+ isCanceled: context.isCanceled,
54232
+ killed: spawned.killed
54233
+ });
54234
+ if (!parsed.options.reject) return returnedError;
54235
+ throw returnedError;
54236
+ }
54237
+ return {
54238
+ command,
54239
+ exitCode: 0,
54240
+ stdout,
54241
+ stderr,
54242
+ all,
54243
+ failed: false,
54244
+ timedOut: false,
54245
+ isCanceled: false,
54246
+ killed: false
54247
+ };
54248
+ };
54249
+ const handlePromiseOnce = onetime(handlePromise);
54250
+ crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
54251
+ handleInput(spawned, parsed.options.input);
54252
+ spawned.all = makeAllStream(spawned, parsed.options);
54253
+ return mergePromise(spawned, handlePromiseOnce);
54254
+ };
54255
+ module2.exports = execa2;
54256
+ module2.exports.sync = (file, args, options) => {
54257
+ const parsed = handleArgs(file, args, options);
54258
+ const command = joinCommand(file, args);
54259
+ validateInputSync(parsed.options);
54260
+ let result;
54261
+ try {
54262
+ result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
54263
+ } catch (error) {
54264
+ throw makeError({
54265
+ error,
54266
+ stdout: "",
54267
+ stderr: "",
54268
+ all: "",
54269
+ command,
54270
+ parsed,
54271
+ timedOut: false,
54272
+ isCanceled: false,
54273
+ killed: false
54274
+ });
54275
+ }
54276
+ const stdout = handleOutput(parsed.options, result.stdout, result.error);
54277
+ const stderr = handleOutput(parsed.options, result.stderr, result.error);
54278
+ if (result.error || result.status !== 0 || result.signal !== null) {
54279
+ const error = makeError({
54280
+ stdout,
54281
+ stderr,
54282
+ error: result.error,
54283
+ signal: result.signal,
54284
+ exitCode: result.status,
54285
+ command,
54286
+ parsed,
54287
+ timedOut: result.error && result.error.code === "ETIMEDOUT",
54288
+ isCanceled: false,
54289
+ killed: result.signal !== null
54290
+ });
54291
+ if (!parsed.options.reject) return error;
54292
+ throw error;
54293
+ }
54294
+ return {
54295
+ command,
54296
+ exitCode: 0,
54297
+ stdout,
54298
+ stderr,
54299
+ failed: false,
54300
+ timedOut: false,
54301
+ isCanceled: false,
54302
+ killed: false
54303
+ };
54304
+ };
54305
+ module2.exports.command = (command, options) => {
54306
+ const [file, ...args] = parseCommand(command);
54307
+ return execa2(file, args, options);
54308
+ };
54309
+ module2.exports.commandSync = (command, options) => {
54310
+ const [file, ...args] = parseCommand(command);
54311
+ return execa2.sync(file, args, options);
54312
+ };
54313
+ module2.exports.node = (scriptPath, args, options = {}) => {
54314
+ if (args && !Array.isArray(args) && typeof args === "object") {
54315
+ options = args;
54316
+ args = [];
54317
+ }
54318
+ const stdio = normalizeStdio.node(options);
54319
+ const { nodePath = process.execPath, nodeOptions = process.execArgv } = options;
54320
+ return execa2(nodePath, [
54321
+ ...nodeOptions,
54322
+ scriptPath,
54323
+ ...Array.isArray(args) ? args : []
54324
+ ], {
54325
+ ...options,
54326
+ stdin: void 0,
54327
+ stdout: void 0,
54328
+ stderr: void 0,
54329
+ stdio,
54330
+ shell: false
54331
+ });
54332
+ };
54333
+ } });
52793
54334
  var src_exports = {};
52794
54335
  __export(src_exports, {
52795
54336
  BACKEND_FRAMEWORKS: () => BACKEND_FRAMEWORKS,
@@ -52829,12 +54370,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52829
54370
  getNodeBinPaths: () => getNodeBinPaths$1,
52830
54371
  getNodeVersion: () => getNodeVersion$1,
52831
54372
  getOsRelease: () => getOsRelease,
54373
+ getPackageJson: () => getPackageJson$1,
52832
54374
  getPathForPackageManager: () => getPathForPackageManager,
52833
54375
  getPlatformEnv: () => getPlatformEnv,
52834
54376
  getPrefixedEnvVars: () => getPrefixedEnvVars,
52835
54377
  getPrettyError: () => getPrettyError,
52836
54378
  getProvidedRuntime: () => getProvidedRuntime,
52837
- getScriptName: () => getScriptName,
54379
+ getScriptName: () => getScriptName$1,
52838
54380
  getSpawnOptions: () => getSpawnOptions$1,
52839
54381
  getSupportedBunVersion: () => getSupportedBunVersion,
52840
54382
  getSupportedNodeVersion: () => getSupportedNodeVersion,
@@ -52848,16 +54390,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52848
54390
  isDirectory: () => isDirectory,
52849
54391
  isExperimentalBackendsEnabled: () => isExperimentalBackendsEnabled,
52850
54392
  isExperimentalBackendsWithoutIntrospectionEnabled: () => isExperimentalBackendsWithoutIntrospectionEnabled,
54393
+ isPythonEntrypoint: () => isPythonEntrypoint,
52851
54394
  isSymbolicLink: () => isSymbolicLink,
52852
54395
  normalizePath: () => normalizePath,
52853
54396
  readConfigFile: () => readConfigFile,
52854
54397
  rename: () => rename,
54398
+ resetCustomInstallCommandSet: () => resetCustomInstallCommandSet,
52855
54399
  runBundleInstall: () => runBundleInstall,
52856
54400
  runCustomInstallCommand: () => runCustomInstallCommand,
52857
54401
  runNpmInstall: () => runNpmInstall$1,
52858
54402
  runPackageJsonScript: () => runPackageJsonScript$1,
52859
54403
  runPipInstall: () => runPipInstall,
52860
54404
  runShellScript: () => runShellScript,
54405
+ runStdlibPyScript: () => runStdlibPyScript,
52861
54406
  scanParentDirs: () => scanParentDirs$1,
52862
54407
  shouldServe: () => shouldServe,
52863
54408
  shouldUseExperimentalBackends: () => shouldUseExperimentalBackends,
@@ -53596,7 +55141,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53596
55141
  }
53597
55142
  var import_assert6 = __toESM(__require("assert"));
53598
55143
  var import_fs_extra7 = __toESM(require_lib());
53599
- var import_path5 = __toESM(__require("path"));
55144
+ var import_path6 = __toESM(__require("path"));
53600
55145
  var import_async_sema4 = __toESM(require_async_sema());
53601
55146
  var import_cross_spawn = __toESM(require_cross_spawn());
53602
55147
  var import_semver2 = __toESM(require_semver2());
@@ -53716,14 +55261,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53716
55261
  return (0, import_semver.intersects)(o.range, engineRange) && (availableVersions?.length ? availableVersions.includes(o.major) : true);
53717
55262
  }))) throw new NowBuildError({
53718
55263
  code: "BUILD_UTILS_NODE_VERSION_INVALID",
53719
- link: "http://vercel.link/node-version",
55264
+ link: "https://vercel.link/node-version",
53720
55265
  message: `Found invalid Node.js Version: "${engineRange}". ${getHint(isAuto, availableVersions)}`
53721
55266
  });
53722
55267
  }
53723
55268
  if (!selection) selection = getLatestNodeVersion(availableVersions);
53724
55269
  if (selection.state === "discontinued") throw new NowBuildError({
53725
55270
  code: "BUILD_UTILS_NODE_VERSION_DISCONTINUED",
53726
- link: "http://vercel.link/node-version",
55271
+ link: "https://vercel.link/node-version",
53727
55272
  message: `${`Node.js Version "${selection.range}" is discontinued and must be upgraded.`} ${getHint(isAuto)}`
53728
55273
  });
53729
55274
  debug$1(`Selected Node.js ${selection.range}`);
@@ -53757,6 +55302,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53757
55302
  var import_toml = __toESM(require_toml());
53758
55303
  var import_fs_extra6 = __toESM(require_lib());
53759
55304
  var import_error_utils = __toESM(require_dist());
55305
+ var import_path5 = __require("path");
53760
55306
  async function readFileOrNull(file) {
53761
55307
  try {
53762
55308
  return await (0, import_fs_extra6.readFile)(file);
@@ -53783,6 +55329,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53783
55329
  }
53784
55330
  return null;
53785
55331
  }
55332
+ async function getPackageJson$1(dir) {
55333
+ const packagePath = (0, import_path5.join)(dir, "package.json");
55334
+ try {
55335
+ return JSON.parse(await (0, import_fs_extra6.readFile)(packagePath, "utf8"));
55336
+ } catch (err) {
55337
+ return {};
55338
+ }
55339
+ }
53786
55340
  var { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
53787
55341
  function cloneEnv(...envs) {
53788
55342
  return envs.reduce((obj, env) => {
@@ -53840,12 +55394,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53840
55394
  return true;
53841
55395
  }
53842
55396
  function* traverseUpDirectories({ start, base }) {
53843
- let current = import_path5.default.normalize(start);
53844
- const normalizedRoot = base ? import_path5.default.normalize(base) : void 0;
55397
+ let current = import_path6.default.normalize(start);
55398
+ const normalizedRoot = base ? import_path6.default.normalize(base) : void 0;
53845
55399
  while (current) {
53846
55400
  yield current;
53847
55401
  if (current === normalizedRoot) break;
53848
- const next = import_path5.default.join(current, "..");
55402
+ const next = import_path6.default.join(current, "..");
53849
55403
  current = next === current ? void 0 : next;
53850
55404
  }
53851
55405
  }
@@ -53855,24 +55409,24 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53855
55409
  start,
53856
55410
  base
53857
55411
  })) {
53858
- const packageJsonPath = import_path5.default.join(dir, "package.json");
55412
+ const packageJsonPath = import_path6.default.join(dir, "package.json");
53859
55413
  if (await import_fs_extra7.default.pathExists(packageJsonPath)) curRootPackageJsonPath = packageJsonPath;
53860
55414
  }
53861
55415
  return curRootPackageJsonPath ? {
53862
55416
  packageJson: await import_fs_extra7.default.readJson(curRootPackageJsonPath),
53863
- rootDir: import_path5.default.dirname(curRootPackageJsonPath)
55417
+ rootDir: import_path6.default.dirname(curRootPackageJsonPath)
53864
55418
  } : void 0;
53865
55419
  }
53866
55420
  async function getNodeBinPath({ cwd }) {
53867
55421
  const { lockfilePath } = await scanParentDirs$1(cwd);
53868
- const dir = import_path5.default.dirname(lockfilePath || cwd);
53869
- return import_path5.default.join(dir, "node_modules", ".bin");
55422
+ const dir = import_path6.default.dirname(lockfilePath || cwd);
55423
+ return import_path6.default.join(dir, "node_modules", ".bin");
53870
55424
  }
53871
55425
  function getNodeBinPaths$1({ start, base }) {
53872
55426
  return Array.from(traverseUpDirectories({
53873
55427
  start,
53874
55428
  base
53875
- })).map((dir) => import_path5.default.join(dir, "node_modules/.bin"));
55429
+ })).map((dir) => import_path6.default.join(dir, "node_modules/.bin"));
53876
55430
  }
53877
55431
  async function chmodPlusX(fsPath) {
53878
55432
  const s = await import_fs_extra7.default.stat(fsPath);
@@ -53882,10 +55436,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53882
55436
  await import_fs_extra7.default.chmod(fsPath, base8);
53883
55437
  }
53884
55438
  async function runShellScript(fsPath, args = [], spawnOpts) {
53885
- (0, import_assert6.default)(import_path5.default.isAbsolute(fsPath));
53886
- const destPath = import_path5.default.dirname(fsPath);
55439
+ (0, import_assert6.default)(import_path6.default.isAbsolute(fsPath));
55440
+ const destPath = import_path6.default.dirname(fsPath);
53887
55441
  await chmodPlusX(fsPath);
53888
- const command = `./${import_path5.default.basename(fsPath)}`;
55442
+ const command = `./${import_path6.default.basename(fsPath)}`;
53889
55443
  await spawnAsync(command, args, {
53890
55444
  ...spawnOpts,
53891
55445
  cwd: destPath,
@@ -53898,7 +55452,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53898
55452
  if (isBunVersion$1(nodeVersion)) return opts;
53899
55453
  if (!meta.isDev) {
53900
55454
  let found = false;
53901
- const pathSegments = (opts.env.PATH || process.env.PATH || "").split(import_path5.default.delimiter).map((segment) => {
55455
+ const pathSegments = (opts.env.PATH || process.env.PATH || "").split(import_path6.default.delimiter).map((segment) => {
53902
55456
  if (/^\/node[0-9]+\/bin/.test(segment)) {
53903
55457
  found = true;
53904
55458
  return `/node${nodeVersion.major}/bin`;
@@ -53906,7 +55460,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53906
55460
  return segment;
53907
55461
  });
53908
55462
  if (!found) pathSegments.unshift(`/node${nodeVersion.major}/bin`);
53909
- opts.env.PATH = pathSegments.filter(Boolean).join(import_path5.default.delimiter);
55463
+ opts.env.PATH = pathSegments.filter(Boolean).join(import_path6.default.delimiter);
53910
55464
  }
53911
55465
  return opts;
53912
55466
  }
@@ -53923,14 +55477,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53923
55477
  const supportedNodeVersion = await getSupportedNodeVersion(packageJsonVersion || configuredVersion, !packageJsonVersion, availableVersions);
53924
55478
  if (packageJson?.engines?.node) {
53925
55479
  const { node } = packageJson.engines;
53926
- if (configuredVersion && !(0, import_semver2.intersects)(configuredVersion, supportedNodeVersion.range)) console.warn(`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: http://vercel.link/node-version`);
53927
- if ((0, import_semver2.coerce)(node)?.raw === node) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` with major.minor.patch, but only major Node.js Version can be selected. Learn More: http://vercel.link/node-version`);
53928
- else if ((0, import_semver2.validRange)(node) && (0, import_semver2.intersects)(`${latestVersion.major + 1}.x`, node)) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version`);
55480
+ if (configuredVersion && !(0, import_semver2.intersects)(configuredVersion, supportedNodeVersion.range)) console.warn(`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: https://vercel.link/node-version`);
55481
+ if ((0, import_semver2.coerce)(node)?.raw === node) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` with major.minor.patch, but only major Node.js Version can be selected. Learn More: https://vercel.link/node-version`);
55482
+ else if ((0, import_semver2.validRange)(node) && (0, import_semver2.intersects)(`${latestVersion.major + 1}.x`, node)) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` that will automatically upgrade when a new major Node.js Version is released. Learn More: https://vercel.link/node-version`);
53929
55483
  }
53930
55484
  return supportedNodeVersion;
53931
55485
  }
53932
55486
  async function scanParentDirs$1(destPath, readPackageJson = false, base = "/") {
53933
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
55487
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
53934
55488
  const pkgJsonPath = await walkParentDirs({
53935
55489
  base,
53936
55490
  start: destPath,
@@ -54016,8 +55570,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54016
55570
  }
54017
55571
  async function checkTurboSupportsCorepack(turboVersionRange, rootDir) {
54018
55572
  if (turboVersionSpecifierSupportsCorepack(turboVersionRange)) return true;
54019
- const turboJsonPath = import_path5.default.join(rootDir, "turbo.json");
54020
- const turboJsoncPath = import_path5.default.join(rootDir, "turbo.jsonc");
55573
+ const turboJsonPath = import_path6.default.join(rootDir, "turbo.json");
55574
+ const turboJsoncPath = import_path6.default.join(rootDir, "turbo.jsonc");
54021
55575
  const [turboJsonExists, turboJsoncExists] = await Promise.all([import_fs_extra7.default.pathExists(turboJsonPath), import_fs_extra7.default.pathExists(turboJsoncPath)]);
54022
55576
  let turboJson = null;
54023
55577
  let turboConfigPath = null;
@@ -54026,7 +55580,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54026
55580
  if (turboConfigPath) try {
54027
55581
  turboJson = import_json5.default.parse(await import_fs_extra7.default.readFile(turboConfigPath, "utf8"));
54028
55582
  } catch (err) {
54029
- console.warn(`WARNING: Failed to parse ${import_path5.default.basename(turboConfigPath)}`);
55583
+ console.warn(`WARNING: Failed to parse ${import_path6.default.basename(turboConfigPath)}`);
54030
55584
  }
54031
55585
  return turboJson !== null && typeof turboJson === "object" && "globalPassThroughEnv" in turboJson && Array.isArray(turboJson.globalPassThroughEnv) && turboJson.globalPassThroughEnv.includes("COREPACK_HOME");
54032
55586
  }
@@ -54060,13 +55614,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54060
55614
  return true;
54061
55615
  }
54062
55616
  async function walkParentDirs({ base, start, filename }) {
54063
- (0, import_assert6.default)(import_path5.default.isAbsolute(base), "Expected \"base\" to be absolute path");
54064
- (0, import_assert6.default)(import_path5.default.isAbsolute(start), "Expected \"start\" to be absolute path");
55617
+ (0, import_assert6.default)(import_path6.default.isAbsolute(base), "Expected \"base\" to be absolute path");
55618
+ (0, import_assert6.default)(import_path6.default.isAbsolute(start), "Expected \"start\" to be absolute path");
54065
55619
  for (const dir of traverseUpDirectories({
54066
55620
  start,
54067
55621
  base
54068
55622
  })) {
54069
- const fullPath = import_path5.default.join(dir, filename);
55623
+ const fullPath = import_path6.default.join(dir, filename);
54070
55624
  if (await import_fs_extra7.default.pathExists(fullPath)) return fullPath;
54071
55625
  }
54072
55626
  return null;
@@ -54077,10 +55631,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54077
55631
  start,
54078
55632
  base
54079
55633
  })) {
54080
- const fullPaths = filenames.map((f) => import_path5.default.join(dir, f));
55634
+ const fullPaths = filenames.map((f) => import_path6.default.join(dir, f));
54081
55635
  const existResults = await Promise.all(fullPaths.map((f) => import_fs_extra7.default.pathExists(f)));
54082
55636
  const foundOneOrMore = existResults.some((b) => b);
54083
- const packageJsonPath = import_path5.default.join(dir, "package.json");
55637
+ const packageJsonPath = import_path6.default.join(dir, "package.json");
54084
55638
  const packageJson = await import_fs_extra7.default.readJSON(packageJsonPath).catch(() => null);
54085
55639
  if (packageJson?.packageManager) packageManager = packageJson.packageManager;
54086
55640
  if (foundOneOrMore) return {
@@ -54140,12 +55694,16 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54140
55694
  };
54141
55695
  }
54142
55696
  var runNpmInstallSema = new import_async_sema4.default(1);
55697
+ var customInstallCommandSet;
55698
+ function resetCustomInstallCommandSet() {
55699
+ customInstallCommandSet = void 0;
55700
+ }
54143
55701
  async function runNpmInstall$1(destPath, args = [], spawnOpts, meta, projectCreatedAt) {
54144
55702
  if (meta?.isDev) {
54145
55703
  debug$1("Skipping dependency installation because dev mode is enabled");
54146
55704
  return false;
54147
55705
  }
54148
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
55706
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54149
55707
  try {
54150
55708
  await runNpmInstallSema.acquire();
54151
55709
  const { cliType, packageJsonPath, packageJson, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs$1(destPath, true);
@@ -54157,6 +55715,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54157
55715
  if (meta && packageJsonPath && defaultInstall) {
54158
55716
  const { alreadyInstalled, runNpmInstallSet } = checkIfAlreadyInstalled(meta.runNpmInstallSet, packageJsonPath);
54159
55717
  if (alreadyInstalled) return false;
55718
+ if (process.env.VERCEL_INSTALL_COMPLETED === "1") {
55719
+ debug$1(`Skipping dependency installation for ${packageJsonPath} because VERCEL_INSTALL_COMPLETED is set`);
55720
+ runNpmInstallSet.add(packageJsonPath);
55721
+ meta.runNpmInstallSet = runNpmInstallSet;
55722
+ return false;
55723
+ }
54160
55724
  meta.runNpmInstallSet = runNpmInstallSet;
54161
55725
  }
54162
55726
  if (cliType === "yarn") {
@@ -54212,11 +55776,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54212
55776
  else debug$1(`Detected ${detectedPackageManager}. Added "${newPath}" to path. Based on assumed package manager "${cliType}", lockfile "${detectedLockfile}", and lockfileVersion "${lockfileVersion}"`);
54213
55777
  const newEnv = { ...env };
54214
55778
  const alreadyInPath = (newPath2) => {
54215
- return (env.PATH ?? "").split(import_path5.default.delimiter).includes(newPath2);
55779
+ return (env.PATH ?? "").split(import_path6.default.delimiter).includes(newPath2);
54216
55780
  };
54217
55781
  if (newPath && !alreadyInPath(newPath)) {
54218
55782
  const oldPath = env.PATH + "";
54219
- newEnv.PATH = `${newPath}${import_path5.default.delimiter}${oldPath}`;
55783
+ newEnv.PATH = `${newPath}${import_path6.default.delimiter}${oldPath}`;
54220
55784
  if (detectedLockfile && detectedPackageManager) {
54221
55785
  const detectedV9PnpmLockfile = detectedLockfile === "pnpm-lock.yaml" && lockfileVersion === 9;
54222
55786
  if (detectedPackageManager === "pnpm@10.x" && packageJsonPackageManager) {
@@ -54383,7 +55947,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54383
55947
  });
54384
55948
  if (corepackEnabled) overrides = NO_OVERRIDE;
54385
55949
  const alreadyInPath = (newPath) => {
54386
- return (env.PATH ?? "").split(import_path5.default.delimiter).includes(newPath);
55950
+ return (env.PATH ?? "").split(import_path6.default.delimiter).includes(newPath);
54387
55951
  };
54388
55952
  switch (true) {
54389
55953
  case cliType === "yarn" && !env.YARN_NODE_LINKER: return {
@@ -54403,6 +55967,17 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54403
55967
  }
54404
55968
  }
54405
55969
  async function runCustomInstallCommand({ destPath, installCommand, spawnOpts, projectCreatedAt }) {
55970
+ const normalizedPath = import_path6.default.normalize(destPath);
55971
+ const { alreadyInstalled, runNpmInstallSet } = checkIfAlreadyInstalled(customInstallCommandSet, normalizedPath);
55972
+ customInstallCommandSet = runNpmInstallSet;
55973
+ if (alreadyInstalled) {
55974
+ debug$1(`Skipping custom install command for ${normalizedPath} because it was already run`);
55975
+ return false;
55976
+ }
55977
+ if (process.env.VERCEL_INSTALL_COMPLETED === "1") {
55978
+ debug$1(`Skipping custom install command for ${normalizedPath} because VERCEL_INSTALL_COMPLETED is set`);
55979
+ return false;
55980
+ }
54406
55981
  console.log(`Running "install" command: \`${installCommand}\`...`);
54407
55982
  const { cliType, lockfileVersion, packageJson, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs$1(destPath, true);
54408
55983
  const env = getEnvForPackageManager$1({
@@ -54420,11 +55995,12 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54420
55995
  env,
54421
55996
  cwd: destPath
54422
55997
  });
55998
+ return true;
54423
55999
  }
54424
56000
  async function runPackageJsonScript$1(destPath, scriptNames, spawnOpts, projectCreatedAt) {
54425
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56001
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54426
56002
  const { packageJson, cliType, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs$1(destPath, true);
54427
- const scriptName = getScriptName(packageJson, typeof scriptNames === "string" ? [scriptNames] : scriptNames);
56003
+ const scriptName = getScriptName$1(packageJson, typeof scriptNames === "string" ? [scriptNames] : scriptNames);
54428
56004
  if (!scriptName) return false;
54429
56005
  debug$1("Running user script...");
54430
56006
  const runScriptTime = Date.now();
@@ -54456,7 +56032,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54456
56032
  debug$1("Skipping dependency installation because dev mode is enabled");
54457
56033
  return;
54458
56034
  }
54459
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56035
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54460
56036
  const opts = {
54461
56037
  ...spawnOpts,
54462
56038
  cwd: destPath,
@@ -54469,7 +56045,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54469
56045
  debug$1("Skipping dependency installation because dev mode is enabled");
54470
56046
  return;
54471
56047
  }
54472
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56048
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54473
56049
  const opts = {
54474
56050
  ...spawnOpts,
54475
56051
  cwd: destPath,
@@ -54481,13 +56057,13 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54481
56057
  ...args
54482
56058
  ], opts);
54483
56059
  }
54484
- function getScriptName(pkg, possibleNames) {
56060
+ function getScriptName$1(pkg, possibleNames) {
54485
56061
  if (pkg?.scripts) {
54486
56062
  for (const name of possibleNames) if (name in pkg.scripts) return name;
54487
56063
  }
54488
56064
  }
54489
56065
  var installDependencies = (0, import_util2.deprecate)(runNpmInstall$1, "installDependencies() is deprecated. Please use runNpmInstall() instead.");
54490
- var import_path6 = __toESM(__require("path"));
56066
+ var import_path7 = __toESM(__require("path"));
54491
56067
  var import_fs_extra8 = __toESM(require_lib());
54492
56068
  var import_ignore = __toESM(require_ignore());
54493
56069
  function isCodedError(error) {
@@ -54505,8 +56081,8 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54505
56081
  throw error;
54506
56082
  }
54507
56083
  };
54508
- const vercelIgnorePath = import_path6.default.join(downloadPath, rootDirectory || "", ".vercelignore");
54509
- const nowIgnorePath = import_path6.default.join(downloadPath, rootDirectory || "", ".nowignore");
56084
+ const vercelIgnorePath = import_path7.default.join(downloadPath, rootDirectory || "", ".vercelignore");
56085
+ const nowIgnorePath = import_path7.default.join(downloadPath, rootDirectory || "", ".nowignore");
54510
56086
  const ignoreContents = [];
54511
56087
  try {
54512
56088
  ignoreContents.push(...(await Promise.all([readFile4(vercelIgnorePath), readFile4(nowIgnorePath)])).filter(Boolean));
@@ -54544,18 +56120,18 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54544
56120
  }
54545
56121
  return newEnvs;
54546
56122
  }
54547
- var import_path7 = __toESM(__require("path"));
56123
+ var import_path8 = __toESM(__require("path"));
54548
56124
  var import_fs2 = __require("fs");
54549
56125
  async function hardLinkDir(src, destDirs) {
54550
56126
  if (destDirs.length === 0) return;
54551
- destDirs = destDirs.filter((destDir) => import_path7.default.relative(destDir, src) !== "");
56127
+ destDirs = destDirs.filter((destDir) => import_path8.default.relative(destDir, src) !== "");
54552
56128
  const files = await import_fs2.promises.readdir(src);
54553
56129
  await Promise.all(files.map(async (file) => {
54554
56130
  if (file === "node_modules") return;
54555
- const srcFile = import_path7.default.join(src, file);
56131
+ const srcFile = import_path8.default.join(src, file);
54556
56132
  if ((await import_fs2.promises.lstat(srcFile)).isDirectory()) {
54557
56133
  await hardLinkDir(srcFile, await Promise.all(destDirs.map(async (destDir) => {
54558
- const destSubdir = import_path7.default.join(destDir, file);
56134
+ const destSubdir = import_path8.default.join(destDir, file);
54559
56135
  try {
54560
56136
  await import_fs2.promises.mkdir(destSubdir, { recursive: true });
54561
56137
  } catch (err) {
@@ -54566,7 +56142,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54566
56142
  return;
54567
56143
  }
54568
56144
  await Promise.all(destDirs.map(async (destDir) => {
54569
- const destFile = import_path7.default.join(destDir, file);
56145
+ const destFile = import_path8.default.join(destDir, file);
54570
56146
  try {
54571
56147
  await linkOrCopyFile(srcFile, destFile);
54572
56148
  } catch (err) {
@@ -54581,7 +56157,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54581
56157
  await linkOrCopy(srcFile, destFile);
54582
56158
  } catch (err) {
54583
56159
  if (err.code === "ENOENT") {
54584
- await import_fs2.promises.mkdir(import_path7.default.dirname(destFile), { recursive: true });
56160
+ await import_fs2.promises.mkdir(import_path8.default.dirname(destFile), { recursive: true });
54585
56161
  await linkOrCopy(srcFile, destFile);
54586
56162
  return;
54587
56163
  }
@@ -54596,10 +56172,10 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54596
56172
  await import_fs2.promises.copyFile(srcFile, destFile);
54597
56173
  }
54598
56174
  }
54599
- var import_path8 = __require("path");
56175
+ var import_path9 = __require("path");
54600
56176
  var import_promises = __require("fs/promises");
54601
56177
  async function validateNpmrc(cwd) {
54602
- if ((await (0, import_promises.readFile)((0, import_path8.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
56178
+ if ((await (0, import_promises.readFile)((0, import_path9.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
54603
56179
  if (err.code !== "ENOENT") throw err;
54604
56180
  }))?.match(/(?<!#.*)use-node-version/)) throw new Error("Detected unsupported \"use-node-version\" in your \".npmrc\". Please use \"engines\" in your \"package.json\" instead.");
54605
56181
  }
@@ -54640,12 +56216,12 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54640
56216
  if (!os) return "provided.al2023";
54641
56217
  return os.PRETTY_NAME === "Amazon Linux 2" ? "provided.al2" : "provided.al2023";
54642
56218
  }
54643
- var import_path9 = __require("path");
56219
+ var import_path10 = __require("path");
54644
56220
  var shouldServe = ({ entrypoint, files, requestPath }) => {
54645
56221
  requestPath = requestPath.replace(/\/$/, "");
54646
56222
  entrypoint = entrypoint.replace(/\\/, "/");
54647
56223
  if (entrypoint === requestPath && hasProp(files, entrypoint)) return true;
54648
- const { dir, name } = (0, import_path9.parse)(entrypoint);
56224
+ const { dir, name } = (0, import_path10.parse)(entrypoint);
54649
56225
  if (name === "index" && dir === requestPath && hasProp(files, entrypoint)) return true;
54650
56226
  return false;
54651
56227
  };
@@ -54956,19 +56532,60 @@ ${entrypointsForMessage}`);
54956
56532
  function shouldUseExperimentalBackends(framework) {
54957
56533
  return isExperimentalBackendsEnabled() && isBackendFramework(framework);
54958
56534
  }
56535
+ var import_fs3 = __toESM(__require("fs"));
56536
+ var import_path11 = __require("path");
56537
+ var import_execa = __toESM(require_execa());
56538
+ var isWin2 = process.platform === "win32";
56539
+ async function runStdlibPyScript(options) {
56540
+ const { scriptName, pythonPath, args = [], cwd } = options;
56541
+ const scriptPath = (0, import_path11.join)(__dirname, "..", "lib", "python", `${scriptName}.py`);
56542
+ if (!import_fs3.default.existsSync(scriptPath)) throw new Error(`Python script not found: ${scriptPath}`);
56543
+ const pythonCmd = pythonPath ?? (isWin2 ? "python" : "python3");
56544
+ debug$1(`Running stdlib Python script: ${pythonCmd} ${scriptPath} ${args.join(" ")}`);
56545
+ try {
56546
+ const result = await (0, import_execa.default)(pythonCmd, [scriptPath, ...args], { cwd });
56547
+ return {
56548
+ exitCode: 0,
56549
+ stdout: result.stdout,
56550
+ stderr: result.stderr
56551
+ };
56552
+ } catch (err) {
56553
+ const execaErr = err;
56554
+ return {
56555
+ exitCode: execaErr.exitCode ?? 1,
56556
+ stdout: execaErr.stdout ?? "",
56557
+ stderr: execaErr.stderr ?? ""
56558
+ };
56559
+ }
56560
+ }
56561
+ async function isPythonEntrypoint(file) {
56562
+ try {
56563
+ const fsPath = file.fsPath;
56564
+ if (!fsPath) return false;
56565
+ const content = await import_fs3.default.promises.readFile(fsPath, "utf-8");
56566
+ if (!content.includes("app") && !content.includes("handler") && !content.includes("Handler")) return false;
56567
+ return (await runStdlibPyScript({
56568
+ scriptName: "ast_parser",
56569
+ args: [fsPath]
56570
+ })).exitCode === 0;
56571
+ } catch (err) {
56572
+ debug$1(`Failed to check Python entrypoint: ${err}`);
56573
+ return false;
56574
+ }
56575
+ }
54959
56576
  }) });
54960
56577
 
54961
56578
  //#endregion
54962
56579
  //#region src/utils.ts
54963
- var import_dist$2 = require_dist$1();
56580
+ var import_dist$3 = require_dist$1();
54964
56581
  async function downloadInstallAndBundle(args) {
54965
56582
  const { entrypoint, files, workPath, meta, config, repoRootPath } = args;
54966
- await (0, import_dist$2.download)(files, workPath, meta);
56583
+ await (0, import_dist$3.download)(files, workPath, meta);
54967
56584
  const entrypointFsDirname = join(workPath, dirname(entrypoint));
54968
- const nodeVersion = await (0, import_dist$2.getNodeVersion)(entrypointFsDirname, void 0, config, meta);
54969
- const spawnOpts = (0, import_dist$2.getSpawnOptions)(meta || {}, nodeVersion);
54970
- const { cliType, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await (0, import_dist$2.scanParentDirs)(entrypointFsDirname, true, repoRootPath);
54971
- spawnOpts.env = (0, import_dist$2.getEnvForPackageManager)({
56585
+ const nodeVersion = await (0, import_dist$3.getNodeVersion)(entrypointFsDirname, void 0, config, meta);
56586
+ const spawnOpts = (0, import_dist$3.getSpawnOptions)(meta || {}, nodeVersion);
56587
+ const { cliType, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await (0, import_dist$3.scanParentDirs)(entrypointFsDirname, true, repoRootPath);
56588
+ spawnOpts.env = (0, import_dist$3.getEnvForPackageManager)({
54972
56589
  cliType,
54973
56590
  lockfileVersion,
54974
56591
  packageJsonPackageManager,
@@ -54979,12 +56596,12 @@ async function downloadInstallAndBundle(args) {
54979
56596
  const installCommand = config.projectSettings?.installCommand;
54980
56597
  if (typeof installCommand === "string") if (installCommand.trim()) {
54981
56598
  console.log(`Running "install" command: \`${installCommand}\`...`);
54982
- await (0, import_dist$2.execCommand)(installCommand, {
56599
+ await (0, import_dist$3.execCommand)(installCommand, {
54983
56600
  ...spawnOpts,
54984
56601
  cwd: entrypointFsDirname
54985
56602
  });
54986
56603
  } else console.log(`Skipping "install" command...`);
54987
- else await (0, import_dist$2.runNpmInstall)(entrypointFsDirname, [], spawnOpts, meta, config.projectSettings?.createdAt);
56604
+ else await (0, import_dist$3.runNpmInstall)(entrypointFsDirname, [], spawnOpts, meta, config.projectSettings?.createdAt);
54988
56605
  return {
54989
56606
  entrypointFsDirname,
54990
56607
  nodeVersion,
@@ -54994,7 +56611,7 @@ async function downloadInstallAndBundle(args) {
54994
56611
  async function maybeExecBuildCommand(args, options) {
54995
56612
  const projectBuildCommand = args.config.projectSettings?.buildCommand;
54996
56613
  if (projectBuildCommand) {
54997
- const nodeBinPath = (0, import_dist$2.getNodeBinPaths)({
56614
+ const nodeBinPath = (0, import_dist$3.getNodeBinPaths)({
54998
56615
  base: args.repoRootPath || args.workPath,
54999
56616
  start: args.workPath
55000
56617
  }).join(delimiter);
@@ -55002,23 +56619,23 @@ async function maybeExecBuildCommand(args, options) {
55002
56619
  ...options.spawnOpts.env,
55003
56620
  PATH: `${nodeBinPath}${delimiter}${options.spawnOpts.env?.PATH || process.env.PATH}`
55004
56621
  };
55005
- return (0, import_dist$2.execCommand)(projectBuildCommand, {
56622
+ return (0, import_dist$3.execCommand)(projectBuildCommand, {
55006
56623
  ...options.spawnOpts,
55007
56624
  env,
55008
56625
  cwd: args.workPath
55009
56626
  });
55010
56627
  }
55011
- return (0, import_dist$2.runPackageJsonScript)(options.entrypointFsDirname, ["build"], options.spawnOpts, args.config.projectSettings?.createdAt);
56628
+ return (0, import_dist$3.runPackageJsonScript)(options.entrypointFsDirname, ["build"], options.spawnOpts, args.config.projectSettings?.createdAt);
55012
56629
  }
55013
56630
 
55014
56631
  //#endregion
55015
56632
  //#region src/node-file-trace.ts
55016
- var import_dist$1 = require_dist$1();
56633
+ var import_dist$2 = require_dist$1();
55017
56634
  const nodeFileTrace$1 = async (args, downloadResult, output) => {
55018
56635
  const { dir: outputDir, handler } = output;
55019
56636
  const entry = join(outputDir, handler);
55020
56637
  const files = {};
55021
- const conditions = (0, import_dist$1.isBunVersion)(downloadResult.nodeVersion) ? ["bun"] : void 0;
56638
+ const conditions = (0, import_dist$2.isBunVersion)(downloadResult.nodeVersion) ? ["bun"] : void 0;
55022
56639
  const nftResult = await nodeFileTrace([entry], {
55023
56640
  base: args.repoRootPath,
55024
56641
  ignore: args.config.excludeFiles,
@@ -55030,14 +56647,14 @@ const nodeFileTrace$1 = async (args, downloadResult, output) => {
55030
56647
  const { mode } = lstatSync(packageJsonPath);
55031
56648
  const source = readFileSync(packageJsonPath);
55032
56649
  const relPath = relative(args.repoRootPath, packageJsonPath);
55033
- files[relPath] = new import_dist$1.FileBlob({
56650
+ files[relPath] = new import_dist$2.FileBlob({
55034
56651
  data: source,
55035
56652
  mode
55036
56653
  });
55037
56654
  }
55038
56655
  for (const file of nftResult.fileList) {
55039
56656
  const fullPath = join(args.repoRootPath, file);
55040
- files[file] = new import_dist$1.FileFsRef({
56657
+ files[file] = new import_dist$2.FileFsRef({
55041
56658
  fsPath: fullPath,
55042
56659
  mode: lstatSync(fullPath, {}).mode
55043
56660
  });
@@ -55047,6 +56664,7 @@ const nodeFileTrace$1 = async (args, downloadResult, output) => {
55047
56664
 
55048
56665
  //#endregion
55049
56666
  //#region src/build.ts
56667
+ var import_dist$1 = require_dist$1();
55050
56668
  const defaultOutputDirectory = join$1(".vercel", "node");
55051
56669
  const doBuild = async (args, downloadResult) => {
55052
56670
  const buildCommandResult = await maybeExecBuildCommand(args, downloadResult);
@@ -55104,7 +56722,9 @@ const doBuild = async (args, downloadResult) => {
55104
56722
  };
55105
56723
  }
55106
56724
  const outputDir = join$1(args.workPath, outputSetting);
55107
- if (!buildCommandResult) {
56725
+ const packageJson = await (0, import_dist$1.getPackageJson)(args.workPath);
56726
+ const monorepoWithoutBuildScript = args.config.projectSettings?.monorepoManager && !(0, import_dist$1.getScriptName)(packageJson, ["build"]);
56727
+ if (!buildCommandResult || monorepoWithoutBuildScript) {
55108
56728
  const buildResult = await build$1({
55109
56729
  cwd: args.workPath,
55110
56730
  out: outputDir