@apps-in-toss/framework 0.0.0-dev.1741252452371 → 0.0.0-dev.1741346821380

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.
@@ -1,4 +1,3 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -40,9 +39,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
39
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
40
 
42
41
  // ../../.yarn/__virtual__/tsup-virtual-7254073ea3/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
42
+ import { fileURLToPath } from "url";
43
+ import path from "path";
44
+ var getFilename, getDirname, __dirname;
43
45
  var init_esm_shims = __esm({
44
46
  "../../.yarn/__virtual__/tsup-virtual-7254073ea3/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js"() {
45
47
  "use strict";
48
+ getFilename = () => fileURLToPath(import.meta.url);
49
+ getDirname = () => path.dirname(getFilename());
50
+ __dirname = /* @__PURE__ */ getDirname();
46
51
  }
47
52
  });
48
53
 
@@ -354,8 +359,8 @@ var require_minimatch = __commonJS({
354
359
  return new Minimatch(pattern, options).match(p);
355
360
  };
356
361
  module.exports = minimatch;
357
- var path14 = require_path();
358
- minimatch.sep = path14.sep;
362
+ var path17 = require_path();
363
+ minimatch.sep = path17.sep;
359
364
  var GLOBSTAR = Symbol("globstar **");
360
365
  minimatch.GLOBSTAR = GLOBSTAR;
361
366
  var expand = require_brace_expansion();
@@ -864,8 +869,8 @@ var require_minimatch = __commonJS({
864
869
  if (this.empty) return f === "";
865
870
  if (f === "/" && partial) return true;
866
871
  const options = this.options;
867
- if (path14.sep !== "/") {
868
- f = f.split(path14.sep).join("/");
872
+ if (path17.sep !== "/") {
873
+ f = f.split(path17.sep).join("/");
869
874
  }
870
875
  f = f.split(slashSplit);
871
876
  this.debug(this.pattern, "split", f);
@@ -905,13 +910,13 @@ var require_readdir_glob = __commonJS({
905
910
  "use strict";
906
911
  init_esm_shims();
907
912
  module.exports = readdirGlob;
908
- var fs9 = __require("fs");
913
+ var fs10 = __require("fs");
909
914
  var { EventEmitter: EventEmitter2 } = __require("events");
910
915
  var { Minimatch } = require_minimatch();
911
916
  var { resolve } = __require("path");
912
917
  function readdir(dir2, strict) {
913
918
  return new Promise((resolve2, reject2) => {
914
- fs9.readdir(dir2, { withFileTypes: true }, (err, files) => {
919
+ fs10.readdir(dir2, { withFileTypes: true }, (err, files) => {
915
920
  if (err) {
916
921
  switch (err.code) {
917
922
  case "ENOTDIR":
@@ -944,7 +949,7 @@ var require_readdir_glob = __commonJS({
944
949
  }
945
950
  function stat(file, followSymlinks) {
946
951
  return new Promise((resolve2, reject2) => {
947
- const statFunc = followSymlinks ? fs9.stat : fs9.lstat;
952
+ const statFunc = followSymlinks ? fs10.stat : fs10.lstat;
948
953
  statFunc(file, (err, stats) => {
949
954
  if (err) {
950
955
  switch (err.code) {
@@ -965,8 +970,8 @@ var require_readdir_glob = __commonJS({
965
970
  });
966
971
  });
967
972
  }
968
- async function* exploreWalkAsync(dir2, path14, followSymlinks, useStat, shouldSkip, strict) {
969
- let files = await readdir(path14 + dir2, strict);
973
+ async function* exploreWalkAsync(dir2, path17, followSymlinks, useStat, shouldSkip, strict) {
974
+ let files = await readdir(path17 + dir2, strict);
970
975
  for (const file of files) {
971
976
  let name = file.name;
972
977
  if (name === void 0) {
@@ -975,7 +980,7 @@ var require_readdir_glob = __commonJS({
975
980
  }
976
981
  const filename = dir2 + "/" + name;
977
982
  const relative = filename.slice(1);
978
- const absolute = path14 + "/" + relative;
983
+ const absolute = path17 + "/" + relative;
979
984
  let stats = null;
980
985
  if (useStat || followSymlinks) {
981
986
  stats = await stat(absolute, followSymlinks);
@@ -989,15 +994,15 @@ var require_readdir_glob = __commonJS({
989
994
  if (stats.isDirectory()) {
990
995
  if (!shouldSkip(relative)) {
991
996
  yield { relative, absolute, stats };
992
- yield* exploreWalkAsync(filename, path14, followSymlinks, useStat, shouldSkip, false);
997
+ yield* exploreWalkAsync(filename, path17, followSymlinks, useStat, shouldSkip, false);
993
998
  }
994
999
  } else {
995
1000
  yield { relative, absolute, stats };
996
1001
  }
997
1002
  }
998
1003
  }
999
- async function* explore(path14, followSymlinks, useStat, shouldSkip) {
1000
- yield* exploreWalkAsync("", path14, followSymlinks, useStat, shouldSkip, true);
1004
+ async function* explore(path17, followSymlinks, useStat, shouldSkip) {
1005
+ yield* exploreWalkAsync("", path17, followSymlinks, useStat, shouldSkip, true);
1001
1006
  }
1002
1007
  function readOptions(options) {
1003
1008
  return {
@@ -3010,54 +3015,54 @@ var require_polyfills = __commonJS({
3010
3015
  }
3011
3016
  var chdir;
3012
3017
  module.exports = patch;
3013
- function patch(fs9) {
3018
+ function patch(fs10) {
3014
3019
  if (constants5.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
3015
- patchLchmod(fs9);
3016
- }
3017
- if (!fs9.lutimes) {
3018
- patchLutimes(fs9);
3019
- }
3020
- fs9.chown = chownFix(fs9.chown);
3021
- fs9.fchown = chownFix(fs9.fchown);
3022
- fs9.lchown = chownFix(fs9.lchown);
3023
- fs9.chmod = chmodFix(fs9.chmod);
3024
- fs9.fchmod = chmodFix(fs9.fchmod);
3025
- fs9.lchmod = chmodFix(fs9.lchmod);
3026
- fs9.chownSync = chownFixSync(fs9.chownSync);
3027
- fs9.fchownSync = chownFixSync(fs9.fchownSync);
3028
- fs9.lchownSync = chownFixSync(fs9.lchownSync);
3029
- fs9.chmodSync = chmodFixSync(fs9.chmodSync);
3030
- fs9.fchmodSync = chmodFixSync(fs9.fchmodSync);
3031
- fs9.lchmodSync = chmodFixSync(fs9.lchmodSync);
3032
- fs9.stat = statFix(fs9.stat);
3033
- fs9.fstat = statFix(fs9.fstat);
3034
- fs9.lstat = statFix(fs9.lstat);
3035
- fs9.statSync = statFixSync(fs9.statSync);
3036
- fs9.fstatSync = statFixSync(fs9.fstatSync);
3037
- fs9.lstatSync = statFixSync(fs9.lstatSync);
3038
- if (fs9.chmod && !fs9.lchmod) {
3039
- fs9.lchmod = function(path14, mode, cb) {
3020
+ patchLchmod(fs10);
3021
+ }
3022
+ if (!fs10.lutimes) {
3023
+ patchLutimes(fs10);
3024
+ }
3025
+ fs10.chown = chownFix(fs10.chown);
3026
+ fs10.fchown = chownFix(fs10.fchown);
3027
+ fs10.lchown = chownFix(fs10.lchown);
3028
+ fs10.chmod = chmodFix(fs10.chmod);
3029
+ fs10.fchmod = chmodFix(fs10.fchmod);
3030
+ fs10.lchmod = chmodFix(fs10.lchmod);
3031
+ fs10.chownSync = chownFixSync(fs10.chownSync);
3032
+ fs10.fchownSync = chownFixSync(fs10.fchownSync);
3033
+ fs10.lchownSync = chownFixSync(fs10.lchownSync);
3034
+ fs10.chmodSync = chmodFixSync(fs10.chmodSync);
3035
+ fs10.fchmodSync = chmodFixSync(fs10.fchmodSync);
3036
+ fs10.lchmodSync = chmodFixSync(fs10.lchmodSync);
3037
+ fs10.stat = statFix(fs10.stat);
3038
+ fs10.fstat = statFix(fs10.fstat);
3039
+ fs10.lstat = statFix(fs10.lstat);
3040
+ fs10.statSync = statFixSync(fs10.statSync);
3041
+ fs10.fstatSync = statFixSync(fs10.fstatSync);
3042
+ fs10.lstatSync = statFixSync(fs10.lstatSync);
3043
+ if (fs10.chmod && !fs10.lchmod) {
3044
+ fs10.lchmod = function(path17, mode, cb) {
3040
3045
  if (cb) process.nextTick(cb);
3041
3046
  };
3042
- fs9.lchmodSync = function() {
3047
+ fs10.lchmodSync = function() {
3043
3048
  };
3044
3049
  }
3045
- if (fs9.chown && !fs9.lchown) {
3046
- fs9.lchown = function(path14, uid, gid, cb) {
3050
+ if (fs10.chown && !fs10.lchown) {
3051
+ fs10.lchown = function(path17, uid, gid, cb) {
3047
3052
  if (cb) process.nextTick(cb);
3048
3053
  };
3049
- fs9.lchownSync = function() {
3054
+ fs10.lchownSync = function() {
3050
3055
  };
3051
3056
  }
3052
3057
  if (platform2 === "win32") {
3053
- fs9.rename = typeof fs9.rename !== "function" ? fs9.rename : function(fs$rename) {
3058
+ fs10.rename = typeof fs10.rename !== "function" ? fs10.rename : function(fs$rename) {
3054
3059
  function rename(from, to, cb) {
3055
3060
  var start = Date.now();
3056
3061
  var backoff = 0;
3057
3062
  fs$rename(from, to, function CB(er) {
3058
3063
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
3059
3064
  setTimeout(function() {
3060
- fs9.stat(to, function(stater, st) {
3065
+ fs10.stat(to, function(stater, st) {
3061
3066
  if (stater && stater.code === "ENOENT")
3062
3067
  fs$rename(from, to, CB);
3063
3068
  else
@@ -3073,9 +3078,9 @@ var require_polyfills = __commonJS({
3073
3078
  }
3074
3079
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
3075
3080
  return rename;
3076
- }(fs9.rename);
3081
+ }(fs10.rename);
3077
3082
  }
3078
- fs9.read = typeof fs9.read !== "function" ? fs9.read : function(fs$read) {
3083
+ fs10.read = typeof fs10.read !== "function" ? fs10.read : function(fs$read) {
3079
3084
  function read(fd, buffer, offset, length, position, callback_) {
3080
3085
  var callback;
3081
3086
  if (callback_ && typeof callback_ === "function") {
@@ -3083,22 +3088,22 @@ var require_polyfills = __commonJS({
3083
3088
  callback = function(er, _2, __) {
3084
3089
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
3085
3090
  eagCounter++;
3086
- return fs$read.call(fs9, fd, buffer, offset, length, position, callback);
3091
+ return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
3087
3092
  }
3088
3093
  callback_.apply(this, arguments);
3089
3094
  };
3090
3095
  }
3091
- return fs$read.call(fs9, fd, buffer, offset, length, position, callback);
3096
+ return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
3092
3097
  }
3093
3098
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
3094
3099
  return read;
3095
- }(fs9.read);
3096
- fs9.readSync = typeof fs9.readSync !== "function" ? fs9.readSync : /* @__PURE__ */ function(fs$readSync) {
3100
+ }(fs10.read);
3101
+ fs10.readSync = typeof fs10.readSync !== "function" ? fs10.readSync : /* @__PURE__ */ function(fs$readSync) {
3097
3102
  return function(fd, buffer, offset, length, position) {
3098
3103
  var eagCounter = 0;
3099
3104
  while (true) {
3100
3105
  try {
3101
- return fs$readSync.call(fs9, fd, buffer, offset, length, position);
3106
+ return fs$readSync.call(fs10, fd, buffer, offset, length, position);
3102
3107
  } catch (er) {
3103
3108
  if (er.code === "EAGAIN" && eagCounter < 10) {
3104
3109
  eagCounter++;
@@ -3108,11 +3113,11 @@ var require_polyfills = __commonJS({
3108
3113
  }
3109
3114
  }
3110
3115
  };
3111
- }(fs9.readSync);
3112
- function patchLchmod(fs10) {
3113
- fs10.lchmod = function(path14, mode, callback) {
3114
- fs10.open(
3115
- path14,
3116
+ }(fs10.readSync);
3117
+ function patchLchmod(fs11) {
3118
+ fs11.lchmod = function(path17, mode, callback) {
3119
+ fs11.open(
3120
+ path17,
3116
3121
  constants5.O_WRONLY | constants5.O_SYMLINK,
3117
3122
  mode,
3118
3123
  function(err, fd) {
@@ -3120,80 +3125,80 @@ var require_polyfills = __commonJS({
3120
3125
  if (callback) callback(err);
3121
3126
  return;
3122
3127
  }
3123
- fs10.fchmod(fd, mode, function(err2) {
3124
- fs10.close(fd, function(err22) {
3128
+ fs11.fchmod(fd, mode, function(err2) {
3129
+ fs11.close(fd, function(err22) {
3125
3130
  if (callback) callback(err2 || err22);
3126
3131
  });
3127
3132
  });
3128
3133
  }
3129
3134
  );
3130
3135
  };
3131
- fs10.lchmodSync = function(path14, mode) {
3132
- var fd = fs10.openSync(path14, constants5.O_WRONLY | constants5.O_SYMLINK, mode);
3136
+ fs11.lchmodSync = function(path17, mode) {
3137
+ var fd = fs11.openSync(path17, constants5.O_WRONLY | constants5.O_SYMLINK, mode);
3133
3138
  var threw = true;
3134
3139
  var ret;
3135
3140
  try {
3136
- ret = fs10.fchmodSync(fd, mode);
3141
+ ret = fs11.fchmodSync(fd, mode);
3137
3142
  threw = false;
3138
3143
  } finally {
3139
3144
  if (threw) {
3140
3145
  try {
3141
- fs10.closeSync(fd);
3146
+ fs11.closeSync(fd);
3142
3147
  } catch (er) {
3143
3148
  }
3144
3149
  } else {
3145
- fs10.closeSync(fd);
3150
+ fs11.closeSync(fd);
3146
3151
  }
3147
3152
  }
3148
3153
  return ret;
3149
3154
  };
3150
3155
  }
3151
- function patchLutimes(fs10) {
3152
- if (constants5.hasOwnProperty("O_SYMLINK") && fs10.futimes) {
3153
- fs10.lutimes = function(path14, at, mt, cb) {
3154
- fs10.open(path14, constants5.O_SYMLINK, function(er, fd) {
3156
+ function patchLutimes(fs11) {
3157
+ if (constants5.hasOwnProperty("O_SYMLINK") && fs11.futimes) {
3158
+ fs11.lutimes = function(path17, at, mt, cb) {
3159
+ fs11.open(path17, constants5.O_SYMLINK, function(er, fd) {
3155
3160
  if (er) {
3156
3161
  if (cb) cb(er);
3157
3162
  return;
3158
3163
  }
3159
- fs10.futimes(fd, at, mt, function(er2) {
3160
- fs10.close(fd, function(er22) {
3164
+ fs11.futimes(fd, at, mt, function(er2) {
3165
+ fs11.close(fd, function(er22) {
3161
3166
  if (cb) cb(er2 || er22);
3162
3167
  });
3163
3168
  });
3164
3169
  });
3165
3170
  };
3166
- fs10.lutimesSync = function(path14, at, mt) {
3167
- var fd = fs10.openSync(path14, constants5.O_SYMLINK);
3171
+ fs11.lutimesSync = function(path17, at, mt) {
3172
+ var fd = fs11.openSync(path17, constants5.O_SYMLINK);
3168
3173
  var ret;
3169
3174
  var threw = true;
3170
3175
  try {
3171
- ret = fs10.futimesSync(fd, at, mt);
3176
+ ret = fs11.futimesSync(fd, at, mt);
3172
3177
  threw = false;
3173
3178
  } finally {
3174
3179
  if (threw) {
3175
3180
  try {
3176
- fs10.closeSync(fd);
3181
+ fs11.closeSync(fd);
3177
3182
  } catch (er) {
3178
3183
  }
3179
3184
  } else {
3180
- fs10.closeSync(fd);
3185
+ fs11.closeSync(fd);
3181
3186
  }
3182
3187
  }
3183
3188
  return ret;
3184
3189
  };
3185
- } else if (fs10.futimes) {
3186
- fs10.lutimes = function(_a, _b, _c, cb) {
3190
+ } else if (fs11.futimes) {
3191
+ fs11.lutimes = function(_a, _b, _c, cb) {
3187
3192
  if (cb) process.nextTick(cb);
3188
3193
  };
3189
- fs10.lutimesSync = function() {
3194
+ fs11.lutimesSync = function() {
3190
3195
  };
3191
3196
  }
3192
3197
  }
3193
3198
  function chmodFix(orig) {
3194
3199
  if (!orig) return orig;
3195
3200
  return function(target, mode, cb) {
3196
- return orig.call(fs9, target, mode, function(er) {
3201
+ return orig.call(fs10, target, mode, function(er) {
3197
3202
  if (chownErOk(er)) er = null;
3198
3203
  if (cb) cb.apply(this, arguments);
3199
3204
  });
@@ -3203,7 +3208,7 @@ var require_polyfills = __commonJS({
3203
3208
  if (!orig) return orig;
3204
3209
  return function(target, mode) {
3205
3210
  try {
3206
- return orig.call(fs9, target, mode);
3211
+ return orig.call(fs10, target, mode);
3207
3212
  } catch (er) {
3208
3213
  if (!chownErOk(er)) throw er;
3209
3214
  }
@@ -3212,7 +3217,7 @@ var require_polyfills = __commonJS({
3212
3217
  function chownFix(orig) {
3213
3218
  if (!orig) return orig;
3214
3219
  return function(target, uid, gid, cb) {
3215
- return orig.call(fs9, target, uid, gid, function(er) {
3220
+ return orig.call(fs10, target, uid, gid, function(er) {
3216
3221
  if (chownErOk(er)) er = null;
3217
3222
  if (cb) cb.apply(this, arguments);
3218
3223
  });
@@ -3222,7 +3227,7 @@ var require_polyfills = __commonJS({
3222
3227
  if (!orig) return orig;
3223
3228
  return function(target, uid, gid) {
3224
3229
  try {
3225
- return orig.call(fs9, target, uid, gid);
3230
+ return orig.call(fs10, target, uid, gid);
3226
3231
  } catch (er) {
3227
3232
  if (!chownErOk(er)) throw er;
3228
3233
  }
@@ -3242,13 +3247,13 @@ var require_polyfills = __commonJS({
3242
3247
  }
3243
3248
  if (cb) cb.apply(this, arguments);
3244
3249
  }
3245
- return options ? orig.call(fs9, target, options, callback) : orig.call(fs9, target, callback);
3250
+ return options ? orig.call(fs10, target, options, callback) : orig.call(fs10, target, callback);
3246
3251
  };
3247
3252
  }
3248
3253
  function statFixSync(orig) {
3249
3254
  if (!orig) return orig;
3250
3255
  return function(target, options) {
3251
- var stats = options ? orig.call(fs9, target, options) : orig.call(fs9, target);
3256
+ var stats = options ? orig.call(fs10, target, options) : orig.call(fs10, target);
3252
3257
  if (stats) {
3253
3258
  if (stats.uid < 0) stats.uid += 4294967296;
3254
3259
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -3279,16 +3284,16 @@ var require_legacy_streams = __commonJS({
3279
3284
  init_esm_shims();
3280
3285
  var Stream = __require("stream").Stream;
3281
3286
  module.exports = legacy;
3282
- function legacy(fs9) {
3287
+ function legacy(fs10) {
3283
3288
  return {
3284
3289
  ReadStream,
3285
3290
  WriteStream
3286
3291
  };
3287
- function ReadStream(path14, options) {
3288
- if (!(this instanceof ReadStream)) return new ReadStream(path14, options);
3292
+ function ReadStream(path17, options) {
3293
+ if (!(this instanceof ReadStream)) return new ReadStream(path17, options);
3289
3294
  Stream.call(this);
3290
3295
  var self2 = this;
3291
- this.path = path14;
3296
+ this.path = path17;
3292
3297
  this.fd = null;
3293
3298
  this.readable = true;
3294
3299
  this.paused = false;
@@ -3322,7 +3327,7 @@ var require_legacy_streams = __commonJS({
3322
3327
  });
3323
3328
  return;
3324
3329
  }
3325
- fs9.open(this.path, this.flags, this.mode, function(err, fd) {
3330
+ fs10.open(this.path, this.flags, this.mode, function(err, fd) {
3326
3331
  if (err) {
3327
3332
  self2.emit("error", err);
3328
3333
  self2.readable = false;
@@ -3333,10 +3338,10 @@ var require_legacy_streams = __commonJS({
3333
3338
  self2._read();
3334
3339
  });
3335
3340
  }
3336
- function WriteStream(path14, options) {
3337
- if (!(this instanceof WriteStream)) return new WriteStream(path14, options);
3341
+ function WriteStream(path17, options) {
3342
+ if (!(this instanceof WriteStream)) return new WriteStream(path17, options);
3338
3343
  Stream.call(this);
3339
- this.path = path14;
3344
+ this.path = path17;
3340
3345
  this.fd = null;
3341
3346
  this.writable = true;
3342
3347
  this.flags = "w";
@@ -3361,7 +3366,7 @@ var require_legacy_streams = __commonJS({
3361
3366
  this.busy = false;
3362
3367
  this._queue = [];
3363
3368
  if (this.fd === null) {
3364
- this._open = fs9.open;
3369
+ this._open = fs10.open;
3365
3370
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
3366
3371
  this.flush();
3367
3372
  }
@@ -3399,7 +3404,7 @@ var require_graceful_fs = __commonJS({
3399
3404
  "../../.yarn/cache/graceful-fs-npm-4.2.11-b94d8104d4-386d011a55.zip/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
3400
3405
  "use strict";
3401
3406
  init_esm_shims();
3402
- var fs9 = __require("fs");
3407
+ var fs10 = __require("fs");
3403
3408
  var polyfills = require_polyfills();
3404
3409
  var legacy = require_legacy_streams();
3405
3410
  var clone = require_clone();
@@ -3431,12 +3436,12 @@ var require_graceful_fs = __commonJS({
3431
3436
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
3432
3437
  console.error(m);
3433
3438
  };
3434
- if (!fs9[gracefulQueue]) {
3439
+ if (!fs10[gracefulQueue]) {
3435
3440
  queue2 = global[gracefulQueue] || [];
3436
- publishQueue(fs9, queue2);
3437
- fs9.close = function(fs$close) {
3441
+ publishQueue(fs10, queue2);
3442
+ fs10.close = function(fs$close) {
3438
3443
  function close(fd, cb) {
3439
- return fs$close.call(fs9, fd, function(err) {
3444
+ return fs$close.call(fs10, fd, function(err) {
3440
3445
  if (!err) {
3441
3446
  resetQueue();
3442
3447
  }
@@ -3448,48 +3453,48 @@ var require_graceful_fs = __commonJS({
3448
3453
  value: fs$close
3449
3454
  });
3450
3455
  return close;
3451
- }(fs9.close);
3452
- fs9.closeSync = function(fs$closeSync) {
3456
+ }(fs10.close);
3457
+ fs10.closeSync = function(fs$closeSync) {
3453
3458
  function closeSync(fd) {
3454
- fs$closeSync.apply(fs9, arguments);
3459
+ fs$closeSync.apply(fs10, arguments);
3455
3460
  resetQueue();
3456
3461
  }
3457
3462
  Object.defineProperty(closeSync, previousSymbol, {
3458
3463
  value: fs$closeSync
3459
3464
  });
3460
3465
  return closeSync;
3461
- }(fs9.closeSync);
3466
+ }(fs10.closeSync);
3462
3467
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
3463
3468
  process.on("exit", function() {
3464
- debug(fs9[gracefulQueue]);
3465
- __require("assert").equal(fs9[gracefulQueue].length, 0);
3469
+ debug(fs10[gracefulQueue]);
3470
+ __require("assert").equal(fs10[gracefulQueue].length, 0);
3466
3471
  });
3467
3472
  }
3468
3473
  }
3469
3474
  var queue2;
3470
3475
  if (!global[gracefulQueue]) {
3471
- publishQueue(global, fs9[gracefulQueue]);
3472
- }
3473
- module.exports = patch(clone(fs9));
3474
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs9.__patched) {
3475
- module.exports = patch(fs9);
3476
- fs9.__patched = true;
3477
- }
3478
- function patch(fs10) {
3479
- polyfills(fs10);
3480
- fs10.gracefulify = patch;
3481
- fs10.createReadStream = createReadStream3;
3482
- fs10.createWriteStream = createWriteStream3;
3483
- var fs$readFile = fs10.readFile;
3484
- fs10.readFile = readFile3;
3485
- function readFile3(path14, options, cb) {
3476
+ publishQueue(global, fs10[gracefulQueue]);
3477
+ }
3478
+ module.exports = patch(clone(fs10));
3479
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs10.__patched) {
3480
+ module.exports = patch(fs10);
3481
+ fs10.__patched = true;
3482
+ }
3483
+ function patch(fs11) {
3484
+ polyfills(fs11);
3485
+ fs11.gracefulify = patch;
3486
+ fs11.createReadStream = createReadStream3;
3487
+ fs11.createWriteStream = createWriteStream3;
3488
+ var fs$readFile = fs11.readFile;
3489
+ fs11.readFile = readFile2;
3490
+ function readFile2(path17, options, cb) {
3486
3491
  if (typeof options === "function")
3487
3492
  cb = options, options = null;
3488
- return go$readFile(path14, options, cb);
3489
- function go$readFile(path15, options2, cb2, startTime) {
3490
- return fs$readFile(path15, options2, function(err) {
3493
+ return go$readFile(path17, options, cb);
3494
+ function go$readFile(path18, options2, cb2, startTime) {
3495
+ return fs$readFile(path18, options2, function(err) {
3491
3496
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3492
- enqueue([go$readFile, [path15, options2, cb2], err, startTime || Date.now(), Date.now()]);
3497
+ enqueue([go$readFile, [path18, options2, cb2], err, startTime || Date.now(), Date.now()]);
3493
3498
  else {
3494
3499
  if (typeof cb2 === "function")
3495
3500
  cb2.apply(this, arguments);
@@ -3497,16 +3502,16 @@ var require_graceful_fs = __commonJS({
3497
3502
  });
3498
3503
  }
3499
3504
  }
3500
- var fs$writeFile = fs10.writeFile;
3501
- fs10.writeFile = writeFile2;
3502
- function writeFile2(path14, data, options, cb) {
3505
+ var fs$writeFile = fs11.writeFile;
3506
+ fs11.writeFile = writeFile2;
3507
+ function writeFile2(path17, data, options, cb) {
3503
3508
  if (typeof options === "function")
3504
3509
  cb = options, options = null;
3505
- return go$writeFile(path14, data, options, cb);
3506
- function go$writeFile(path15, data2, options2, cb2, startTime) {
3507
- return fs$writeFile(path15, data2, options2, function(err) {
3510
+ return go$writeFile(path17, data, options, cb);
3511
+ function go$writeFile(path18, data2, options2, cb2, startTime) {
3512
+ return fs$writeFile(path18, data2, options2, function(err) {
3508
3513
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3509
- enqueue([go$writeFile, [path15, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3514
+ enqueue([go$writeFile, [path18, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3510
3515
  else {
3511
3516
  if (typeof cb2 === "function")
3512
3517
  cb2.apply(this, arguments);
@@ -3514,17 +3519,17 @@ var require_graceful_fs = __commonJS({
3514
3519
  });
3515
3520
  }
3516
3521
  }
3517
- var fs$appendFile = fs10.appendFile;
3522
+ var fs$appendFile = fs11.appendFile;
3518
3523
  if (fs$appendFile)
3519
- fs10.appendFile = appendFile;
3520
- function appendFile(path14, data, options, cb) {
3524
+ fs11.appendFile = appendFile;
3525
+ function appendFile(path17, data, options, cb) {
3521
3526
  if (typeof options === "function")
3522
3527
  cb = options, options = null;
3523
- return go$appendFile(path14, data, options, cb);
3524
- function go$appendFile(path15, data2, options2, cb2, startTime) {
3525
- return fs$appendFile(path15, data2, options2, function(err) {
3528
+ return go$appendFile(path17, data, options, cb);
3529
+ function go$appendFile(path18, data2, options2, cb2, startTime) {
3530
+ return fs$appendFile(path18, data2, options2, function(err) {
3526
3531
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3527
- enqueue([go$appendFile, [path15, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3532
+ enqueue([go$appendFile, [path18, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3528
3533
  else {
3529
3534
  if (typeof cb2 === "function")
3530
3535
  cb2.apply(this, arguments);
@@ -3532,9 +3537,9 @@ var require_graceful_fs = __commonJS({
3532
3537
  });
3533
3538
  }
3534
3539
  }
3535
- var fs$copyFile = fs10.copyFile;
3540
+ var fs$copyFile = fs11.copyFile;
3536
3541
  if (fs$copyFile)
3537
- fs10.copyFile = copyFile;
3542
+ fs11.copyFile = copyFile;
3538
3543
  function copyFile(src, dest, flags, cb) {
3539
3544
  if (typeof flags === "function") {
3540
3545
  cb = flags;
@@ -3552,34 +3557,34 @@ var require_graceful_fs = __commonJS({
3552
3557
  });
3553
3558
  }
3554
3559
  }
3555
- var fs$readdir = fs10.readdir;
3556
- fs10.readdir = readdir;
3560
+ var fs$readdir = fs11.readdir;
3561
+ fs11.readdir = readdir;
3557
3562
  var noReaddirOptionVersions = /^v[0-5]\./;
3558
- function readdir(path14, options, cb) {
3563
+ function readdir(path17, options, cb) {
3559
3564
  if (typeof options === "function")
3560
3565
  cb = options, options = null;
3561
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path15, options2, cb2, startTime) {
3562
- return fs$readdir(path15, fs$readdirCallback(
3563
- path15,
3566
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path18, options2, cb2, startTime) {
3567
+ return fs$readdir(path18, fs$readdirCallback(
3568
+ path18,
3564
3569
  options2,
3565
3570
  cb2,
3566
3571
  startTime
3567
3572
  ));
3568
- } : function go$readdir2(path15, options2, cb2, startTime) {
3569
- return fs$readdir(path15, options2, fs$readdirCallback(
3570
- path15,
3573
+ } : function go$readdir2(path18, options2, cb2, startTime) {
3574
+ return fs$readdir(path18, options2, fs$readdirCallback(
3575
+ path18,
3571
3576
  options2,
3572
3577
  cb2,
3573
3578
  startTime
3574
3579
  ));
3575
3580
  };
3576
- return go$readdir(path14, options, cb);
3577
- function fs$readdirCallback(path15, options2, cb2, startTime) {
3581
+ return go$readdir(path17, options, cb);
3582
+ function fs$readdirCallback(path18, options2, cb2, startTime) {
3578
3583
  return function(err, files) {
3579
3584
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3580
3585
  enqueue([
3581
3586
  go$readdir,
3582
- [path15, options2, cb2],
3587
+ [path18, options2, cb2],
3583
3588
  err,
3584
3589
  startTime || Date.now(),
3585
3590
  Date.now()
@@ -3594,21 +3599,21 @@ var require_graceful_fs = __commonJS({
3594
3599
  }
3595
3600
  }
3596
3601
  if (process.version.substr(0, 4) === "v0.8") {
3597
- var legStreams = legacy(fs10);
3602
+ var legStreams = legacy(fs11);
3598
3603
  ReadStream = legStreams.ReadStream;
3599
3604
  WriteStream = legStreams.WriteStream;
3600
3605
  }
3601
- var fs$ReadStream = fs10.ReadStream;
3606
+ var fs$ReadStream = fs11.ReadStream;
3602
3607
  if (fs$ReadStream) {
3603
3608
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3604
3609
  ReadStream.prototype.open = ReadStream$open;
3605
3610
  }
3606
- var fs$WriteStream = fs10.WriteStream;
3611
+ var fs$WriteStream = fs11.WriteStream;
3607
3612
  if (fs$WriteStream) {
3608
3613
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3609
3614
  WriteStream.prototype.open = WriteStream$open;
3610
3615
  }
3611
- Object.defineProperty(fs10, "ReadStream", {
3616
+ Object.defineProperty(fs11, "ReadStream", {
3612
3617
  get: function() {
3613
3618
  return ReadStream;
3614
3619
  },
@@ -3618,7 +3623,7 @@ var require_graceful_fs = __commonJS({
3618
3623
  enumerable: true,
3619
3624
  configurable: true
3620
3625
  });
3621
- Object.defineProperty(fs10, "WriteStream", {
3626
+ Object.defineProperty(fs11, "WriteStream", {
3622
3627
  get: function() {
3623
3628
  return WriteStream;
3624
3629
  },
@@ -3629,7 +3634,7 @@ var require_graceful_fs = __commonJS({
3629
3634
  configurable: true
3630
3635
  });
3631
3636
  var FileReadStream = ReadStream;
3632
- Object.defineProperty(fs10, "FileReadStream", {
3637
+ Object.defineProperty(fs11, "FileReadStream", {
3633
3638
  get: function() {
3634
3639
  return FileReadStream;
3635
3640
  },
@@ -3640,7 +3645,7 @@ var require_graceful_fs = __commonJS({
3640
3645
  configurable: true
3641
3646
  });
3642
3647
  var FileWriteStream = WriteStream;
3643
- Object.defineProperty(fs10, "FileWriteStream", {
3648
+ Object.defineProperty(fs11, "FileWriteStream", {
3644
3649
  get: function() {
3645
3650
  return FileWriteStream;
3646
3651
  },
@@ -3650,7 +3655,7 @@ var require_graceful_fs = __commonJS({
3650
3655
  enumerable: true,
3651
3656
  configurable: true
3652
3657
  });
3653
- function ReadStream(path14, options) {
3658
+ function ReadStream(path17, options) {
3654
3659
  if (this instanceof ReadStream)
3655
3660
  return fs$ReadStream.apply(this, arguments), this;
3656
3661
  else
@@ -3670,7 +3675,7 @@ var require_graceful_fs = __commonJS({
3670
3675
  }
3671
3676
  });
3672
3677
  }
3673
- function WriteStream(path14, options) {
3678
+ function WriteStream(path17, options) {
3674
3679
  if (this instanceof WriteStream)
3675
3680
  return fs$WriteStream.apply(this, arguments), this;
3676
3681
  else
@@ -3688,22 +3693,22 @@ var require_graceful_fs = __commonJS({
3688
3693
  }
3689
3694
  });
3690
3695
  }
3691
- function createReadStream3(path14, options) {
3692
- return new fs10.ReadStream(path14, options);
3696
+ function createReadStream3(path17, options) {
3697
+ return new fs11.ReadStream(path17, options);
3693
3698
  }
3694
- function createWriteStream3(path14, options) {
3695
- return new fs10.WriteStream(path14, options);
3699
+ function createWriteStream3(path17, options) {
3700
+ return new fs11.WriteStream(path17, options);
3696
3701
  }
3697
- var fs$open = fs10.open;
3698
- fs10.open = open;
3699
- function open(path14, flags, mode, cb) {
3702
+ var fs$open = fs11.open;
3703
+ fs11.open = open;
3704
+ function open(path17, flags, mode, cb) {
3700
3705
  if (typeof mode === "function")
3701
3706
  cb = mode, mode = null;
3702
- return go$open(path14, flags, mode, cb);
3703
- function go$open(path15, flags2, mode2, cb2, startTime) {
3704
- return fs$open(path15, flags2, mode2, function(err, fd) {
3707
+ return go$open(path17, flags, mode, cb);
3708
+ function go$open(path18, flags2, mode2, cb2, startTime) {
3709
+ return fs$open(path18, flags2, mode2, function(err, fd) {
3705
3710
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3706
- enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3711
+ enqueue([go$open, [path18, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3707
3712
  else {
3708
3713
  if (typeof cb2 === "function")
3709
3714
  cb2.apply(this, arguments);
@@ -3711,20 +3716,20 @@ var require_graceful_fs = __commonJS({
3711
3716
  });
3712
3717
  }
3713
3718
  }
3714
- return fs10;
3719
+ return fs11;
3715
3720
  }
3716
3721
  function enqueue(elem) {
3717
3722
  debug("ENQUEUE", elem[0].name, elem[1]);
3718
- fs9[gracefulQueue].push(elem);
3723
+ fs10[gracefulQueue].push(elem);
3719
3724
  retry2();
3720
3725
  }
3721
3726
  var retryTimer;
3722
3727
  function resetQueue() {
3723
3728
  var now = Date.now();
3724
- for (var i2 = 0; i2 < fs9[gracefulQueue].length; ++i2) {
3725
- if (fs9[gracefulQueue][i2].length > 2) {
3726
- fs9[gracefulQueue][i2][3] = now;
3727
- fs9[gracefulQueue][i2][4] = now;
3729
+ for (var i2 = 0; i2 < fs10[gracefulQueue].length; ++i2) {
3730
+ if (fs10[gracefulQueue][i2].length > 2) {
3731
+ fs10[gracefulQueue][i2][3] = now;
3732
+ fs10[gracefulQueue][i2][4] = now;
3728
3733
  }
3729
3734
  }
3730
3735
  retry2();
@@ -3732,9 +3737,9 @@ var require_graceful_fs = __commonJS({
3732
3737
  function retry2() {
3733
3738
  clearTimeout(retryTimer);
3734
3739
  retryTimer = void 0;
3735
- if (fs9[gracefulQueue].length === 0)
3740
+ if (fs10[gracefulQueue].length === 0)
3736
3741
  return;
3737
- var elem = fs9[gracefulQueue].shift();
3742
+ var elem = fs10[gracefulQueue].shift();
3738
3743
  var fn = elem[0];
3739
3744
  var args = elem[1];
3740
3745
  var err = elem[2];
@@ -3756,7 +3761,7 @@ var require_graceful_fs = __commonJS({
3756
3761
  debug("RETRY", fn.name, args);
3757
3762
  fn.apply(null, args.concat([startTime]));
3758
3763
  } else {
3759
- fs9[gracefulQueue].push(elem);
3764
+ fs10[gracefulQueue].push(elem);
3760
3765
  }
3761
3766
  }
3762
3767
  if (retryTimer === void 0) {
@@ -5840,22 +5845,22 @@ var require_normalize_path = __commonJS({
5840
5845
  "../../.yarn/cache/normalize-path-npm-3.0.0-a747cc5237-e008c8142b.zip/node_modules/normalize-path/index.js"(exports, module) {
5841
5846
  "use strict";
5842
5847
  init_esm_shims();
5843
- module.exports = function(path14, stripTrailing) {
5844
- if (typeof path14 !== "string") {
5848
+ module.exports = function(path17, stripTrailing) {
5849
+ if (typeof path17 !== "string") {
5845
5850
  throw new TypeError("expected path to be a string");
5846
5851
  }
5847
- if (path14 === "\\" || path14 === "/") return "/";
5848
- var len = path14.length;
5849
- if (len <= 1) return path14;
5852
+ if (path17 === "\\" || path17 === "/") return "/";
5853
+ var len = path17.length;
5854
+ if (len <= 1) return path17;
5850
5855
  var prefix = "";
5851
- if (len > 4 && path14[3] === "\\") {
5852
- var ch = path14[2];
5853
- if ((ch === "?" || ch === ".") && path14.slice(0, 2) === "\\\\") {
5854
- path14 = path14.slice(2);
5856
+ if (len > 4 && path17[3] === "\\") {
5857
+ var ch = path17[2];
5858
+ if ((ch === "?" || ch === ".") && path17.slice(0, 2) === "\\\\") {
5859
+ path17 = path17.slice(2);
5855
5860
  prefix = "//";
5856
5861
  }
5857
5862
  }
5858
- var segs = path14.split(/[/\\]+/);
5863
+ var segs = path17.split(/[/\\]+/);
5859
5864
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
5860
5865
  segs.pop();
5861
5866
  }
@@ -7675,7 +7680,7 @@ var require_errors = __commonJS({
7675
7680
  var classRegExp = /^([A-Z][a-z0-9]*)+$/;
7676
7681
  var nodeInternalPrefix = "__node_internal_";
7677
7682
  var codes = {};
7678
- function assert3(value, message) {
7683
+ function assert(value, message) {
7679
7684
  if (!value) {
7680
7685
  throw new codes.ERR_INTERNAL_ASSERTION(message);
7681
7686
  }
@@ -7691,7 +7696,7 @@ var require_errors = __commonJS({
7691
7696
  }
7692
7697
  function getMessage2(key, msg, args) {
7693
7698
  if (typeof msg === "function") {
7694
- assert3(
7699
+ assert(
7695
7700
  msg.length <= args.length,
7696
7701
  // Default options do not count.
7697
7702
  `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`
@@ -7699,7 +7704,7 @@ var require_errors = __commonJS({
7699
7704
  return msg(...args);
7700
7705
  }
7701
7706
  const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
7702
- assert3(
7707
+ assert(
7703
7708
  expectedLength === args.length,
7704
7709
  `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
7705
7710
  );
@@ -7773,7 +7778,7 @@ var require_errors = __commonJS({
7773
7778
  E(
7774
7779
  "ERR_INVALID_ARG_TYPE",
7775
7780
  (name, expected, actual) => {
7776
- assert3(typeof name === "string", "'name' must be a string");
7781
+ assert(typeof name === "string", "'name' must be a string");
7777
7782
  if (!Array.isArray(expected)) {
7778
7783
  expected = [expected];
7779
7784
  }
@@ -7788,13 +7793,13 @@ var require_errors = __commonJS({
7788
7793
  const instances = [];
7789
7794
  const other = [];
7790
7795
  for (const value of expected) {
7791
- assert3(typeof value === "string", "All expected entries have to be of type string");
7796
+ assert(typeof value === "string", "All expected entries have to be of type string");
7792
7797
  if (kTypes.includes(value)) {
7793
7798
  types.push(value.toLowerCase());
7794
7799
  } else if (classRegExp.test(value)) {
7795
7800
  instances.push(value);
7796
7801
  } else {
7797
- assert3(value !== "object", 'The value "object" should be written as "Object"');
7802
+ assert(value !== "object", 'The value "object" should be written as "Object"');
7798
7803
  other.push(value);
7799
7804
  }
7800
7805
  }
@@ -7907,7 +7912,7 @@ var require_errors = __commonJS({
7907
7912
  E(
7908
7913
  "ERR_MISSING_ARGS",
7909
7914
  (...args) => {
7910
- assert3(args.length > 0, "At least one arg needs to be specified");
7915
+ assert(args.length > 0, "At least one arg needs to be specified");
7911
7916
  let msg;
7912
7917
  const len = args.length;
7913
7918
  args = (Array.isArray(args) ? args : [args]).map((a2) => `"${a2}"`).join(" or ");
@@ -7932,7 +7937,7 @@ var require_errors = __commonJS({
7932
7937
  E(
7933
7938
  "ERR_OUT_OF_RANGE",
7934
7939
  (str, range2, input) => {
7935
- assert3(range2, 'Missing "range" argument');
7940
+ assert(range2, 'Missing "range" argument');
7936
7941
  let received;
7937
7942
  if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
7938
7943
  received = addNumericalSeparator(String(input));
@@ -8458,7 +8463,7 @@ var require_end_of_stream = __commonJS({
8458
8463
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) {
8459
8464
  "use strict";
8460
8465
  init_esm_shims();
8461
- var process10 = require_process();
8466
+ var process11 = require_process();
8462
8467
  var { AbortError, codes } = require_errors();
8463
8468
  var { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_STREAM_PREMATURE_CLOSE } = codes;
8464
8469
  var { kEmptyObject, once: once10 } = require_util2();
@@ -8594,17 +8599,17 @@ var require_end_of_stream = __commonJS({
8594
8599
  }
8595
8600
  stream2.on("close", onclose);
8596
8601
  if (closed) {
8597
- process10.nextTick(onclose);
8602
+ process11.nextTick(onclose);
8598
8603
  } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
8599
8604
  if (!willEmitClose) {
8600
- process10.nextTick(onclosed);
8605
+ process11.nextTick(onclosed);
8601
8606
  }
8602
8607
  } else if (!readable2 && (!willEmitClose || isReadable(stream2)) && (writableFinished || isWritable(stream2) === false)) {
8603
- process10.nextTick(onclosed);
8608
+ process11.nextTick(onclosed);
8604
8609
  } else if (!writable2 && (!willEmitClose || isWritable(stream2)) && (readableFinished || isReadable(stream2) === false)) {
8605
- process10.nextTick(onclosed);
8610
+ process11.nextTick(onclosed);
8606
8611
  } else if (rState && stream2.req && stream2.aborted) {
8607
- process10.nextTick(onclosed);
8612
+ process11.nextTick(onclosed);
8608
8613
  }
8609
8614
  const cleanup = () => {
8610
8615
  callback = nop;
@@ -8632,7 +8637,7 @@ var require_end_of_stream = __commonJS({
8632
8637
  );
8633
8638
  };
8634
8639
  if (options.signal.aborted) {
8635
- process10.nextTick(abort);
8640
+ process11.nextTick(abort);
8636
8641
  } else {
8637
8642
  addAbortListener3 = addAbortListener3 || require_util2().addAbortListener;
8638
8643
  const disposable = addAbortListener3(options.signal, abort);
@@ -8659,7 +8664,7 @@ var require_end_of_stream = __commonJS({
8659
8664
  );
8660
8665
  };
8661
8666
  if (options.signal.aborted) {
8662
- process10.nextTick(abort);
8667
+ process11.nextTick(abort);
8663
8668
  } else {
8664
8669
  addAbortListener3 = addAbortListener3 || require_util2().addAbortListener;
8665
8670
  const disposable = addAbortListener3(options.signal, abort);
@@ -8672,7 +8677,7 @@ var require_end_of_stream = __commonJS({
8672
8677
  }
8673
8678
  const resolverFn = (...args) => {
8674
8679
  if (!isAborted) {
8675
- process10.nextTick(() => callback.apply(stream2, args));
8680
+ process11.nextTick(() => callback.apply(stream2, args));
8676
8681
  }
8677
8682
  };
8678
8683
  PromisePrototypeThen(stream2[kIsClosedPromise].promise, resolverFn, resolverFn);
@@ -8711,7 +8716,7 @@ var require_destroy2 = __commonJS({
8711
8716
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) {
8712
8717
  "use strict";
8713
8718
  init_esm_shims();
8714
- var process10 = require_process();
8719
+ var process11 = require_process();
8715
8720
  var {
8716
8721
  aggregateTwoErrors,
8717
8722
  codes: { ERR_MULTIPLE_CALLBACK },
@@ -8778,9 +8783,9 @@ var require_destroy2 = __commonJS({
8778
8783
  cb(err2);
8779
8784
  }
8780
8785
  if (err2) {
8781
- process10.nextTick(emitErrorCloseNT, self2, err2);
8786
+ process11.nextTick(emitErrorCloseNT, self2, err2);
8782
8787
  } else {
8783
- process10.nextTick(emitCloseNT, self2);
8788
+ process11.nextTick(emitCloseNT, self2);
8784
8789
  }
8785
8790
  }
8786
8791
  try {
@@ -8865,7 +8870,7 @@ var require_destroy2 = __commonJS({
8865
8870
  r.errored = err;
8866
8871
  }
8867
8872
  if (sync) {
8868
- process10.nextTick(emitErrorNT, stream2, err);
8873
+ process11.nextTick(emitErrorNT, stream2, err);
8869
8874
  } else {
8870
8875
  emitErrorNT(stream2, err);
8871
8876
  }
@@ -8887,7 +8892,7 @@ var require_destroy2 = __commonJS({
8887
8892
  if (stream2.listenerCount(kConstruct) > 1) {
8888
8893
  return;
8889
8894
  }
8890
- process10.nextTick(constructNT, stream2);
8895
+ process11.nextTick(constructNT, stream2);
8891
8896
  }
8892
8897
  function constructNT(stream2) {
8893
8898
  let called = false;
@@ -8911,15 +8916,15 @@ var require_destroy2 = __commonJS({
8911
8916
  } else if (err) {
8912
8917
  errorOrDestroy(stream2, err, true);
8913
8918
  } else {
8914
- process10.nextTick(emitConstructNT, stream2);
8919
+ process11.nextTick(emitConstructNT, stream2);
8915
8920
  }
8916
8921
  }
8917
8922
  try {
8918
8923
  stream2._construct((err) => {
8919
- process10.nextTick(onConstruct, err);
8924
+ process11.nextTick(onConstruct, err);
8920
8925
  });
8921
8926
  } catch (err) {
8922
- process10.nextTick(onConstruct, err);
8927
+ process11.nextTick(onConstruct, err);
8923
8928
  }
8924
8929
  }
8925
8930
  function emitConstructNT(stream2) {
@@ -8933,7 +8938,7 @@ var require_destroy2 = __commonJS({
8933
8938
  }
8934
8939
  function emitErrorCloseLegacy(stream2, err) {
8935
8940
  stream2.emit("error", err);
8936
- process10.nextTick(emitCloseLegacy, stream2);
8941
+ process11.nextTick(emitCloseLegacy, stream2);
8937
8942
  }
8938
8943
  function destroyer(stream2, err) {
8939
8944
  if (!stream2 || isDestroyed(stream2)) {
@@ -8954,9 +8959,9 @@ var require_destroy2 = __commonJS({
8954
8959
  } else if (typeof stream2.close === "function") {
8955
8960
  stream2.close();
8956
8961
  } else if (err) {
8957
- process10.nextTick(emitErrorCloseLegacy, stream2, err);
8962
+ process11.nextTick(emitErrorCloseLegacy, stream2, err);
8958
8963
  } else {
8959
- process10.nextTick(emitCloseLegacy, stream2);
8964
+ process11.nextTick(emitCloseLegacy, stream2);
8960
8965
  }
8961
8966
  if (!stream2.destroyed) {
8962
8967
  stream2[kIsDestroyed] = true;
@@ -9307,7 +9312,7 @@ var require_from = __commonJS({
9307
9312
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
9308
9313
  "use strict";
9309
9314
  init_esm_shims();
9310
- var process10 = require_process();
9315
+ var process11 = require_process();
9311
9316
  var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
9312
9317
  var { Buffer: Buffer5 } = __require("buffer");
9313
9318
  var { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_STREAM_NULL_VALUES } = require_errors().codes;
@@ -9349,9 +9354,9 @@ var require_from = __commonJS({
9349
9354
  readable2._destroy = function(error, cb) {
9350
9355
  PromisePrototypeThen(
9351
9356
  close(error),
9352
- () => process10.nextTick(cb, error),
9357
+ () => process11.nextTick(cb, error),
9353
9358
  // nextTick is here in case cb throws
9354
- (e) => process10.nextTick(cb, e || error)
9359
+ (e) => process11.nextTick(cb, e || error)
9355
9360
  );
9356
9361
  };
9357
9362
  async function close(error) {
@@ -9403,7 +9408,7 @@ var require_readable2 = __commonJS({
9403
9408
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/readable.js"(exports, module) {
9404
9409
  "use strict";
9405
9410
  init_esm_shims();
9406
- var process10 = require_process();
9411
+ var process11 = require_process();
9407
9412
  var {
9408
9413
  ArrayPrototypeIndexOf,
9409
9414
  NumberIsInteger,
@@ -9788,7 +9793,7 @@ var require_readable2 = __commonJS({
9788
9793
  if (!state.emittedReadable) {
9789
9794
  debug("emitReadable", state.flowing);
9790
9795
  state.emittedReadable = true;
9791
- process10.nextTick(emitReadable_, stream2);
9796
+ process11.nextTick(emitReadable_, stream2);
9792
9797
  }
9793
9798
  }
9794
9799
  function emitReadable_(stream2) {
@@ -9804,7 +9809,7 @@ var require_readable2 = __commonJS({
9804
9809
  function maybeReadMore(stream2, state) {
9805
9810
  if (!state.readingMore && state.constructed) {
9806
9811
  state.readingMore = true;
9807
- process10.nextTick(maybeReadMore_, stream2, state);
9812
+ process11.nextTick(maybeReadMore_, stream2, state);
9808
9813
  }
9809
9814
  }
9810
9815
  function maybeReadMore_(stream2, state) {
@@ -9831,9 +9836,9 @@ var require_readable2 = __commonJS({
9831
9836
  }
9832
9837
  state.pipes.push(dest);
9833
9838
  debug("pipe count=%d opts=%j", state.pipes.length, pipeOpts);
9834
- const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process10.stdout && dest !== process10.stderr;
9839
+ const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process11.stdout && dest !== process11.stderr;
9835
9840
  const endFn = doEnd ? onend : unpipe;
9836
- if (state.endEmitted) process10.nextTick(endFn);
9841
+ if (state.endEmitted) process11.nextTick(endFn);
9837
9842
  else src.once("end", endFn);
9838
9843
  dest.on("unpipe", onunpipe);
9839
9844
  function onunpipe(readable2, unpipeInfo) {
@@ -9983,7 +9988,7 @@ var require_readable2 = __commonJS({
9983
9988
  if (state.length) {
9984
9989
  emitReadable(this);
9985
9990
  } else if (!state.reading) {
9986
- process10.nextTick(nReadingNextTick, this);
9991
+ process11.nextTick(nReadingNextTick, this);
9987
9992
  }
9988
9993
  }
9989
9994
  }
@@ -9993,7 +9998,7 @@ var require_readable2 = __commonJS({
9993
9998
  Readable4.prototype.removeListener = function(ev, fn) {
9994
9999
  const res = Stream.prototype.removeListener.call(this, ev, fn);
9995
10000
  if (ev === "readable") {
9996
- process10.nextTick(updateReadableListening, this);
10001
+ process11.nextTick(updateReadableListening, this);
9997
10002
  }
9998
10003
  return res;
9999
10004
  };
@@ -10001,7 +10006,7 @@ var require_readable2 = __commonJS({
10001
10006
  Readable4.prototype.removeAllListeners = function(ev) {
10002
10007
  const res = Stream.prototype.removeAllListeners.apply(this, arguments);
10003
10008
  if (ev === "readable" || ev === void 0) {
10004
- process10.nextTick(updateReadableListening, this);
10009
+ process11.nextTick(updateReadableListening, this);
10005
10010
  }
10006
10011
  return res;
10007
10012
  };
@@ -10033,7 +10038,7 @@ var require_readable2 = __commonJS({
10033
10038
  function resume(stream2, state) {
10034
10039
  if (!state.resumeScheduled) {
10035
10040
  state.resumeScheduled = true;
10036
- process10.nextTick(resume_, stream2, state);
10041
+ process11.nextTick(resume_, stream2, state);
10037
10042
  }
10038
10043
  }
10039
10044
  function resume_(stream2, state) {
@@ -10310,7 +10315,7 @@ var require_readable2 = __commonJS({
10310
10315
  debug("endReadable", state.endEmitted);
10311
10316
  if (!state.endEmitted) {
10312
10317
  state.ended = true;
10313
- process10.nextTick(endReadableNT, state, stream2);
10318
+ process11.nextTick(endReadableNT, state, stream2);
10314
10319
  }
10315
10320
  }
10316
10321
  function endReadableNT(state, stream2) {
@@ -10319,7 +10324,7 @@ var require_readable2 = __commonJS({
10319
10324
  state.endEmitted = true;
10320
10325
  stream2.emit("end");
10321
10326
  if (stream2.writable && stream2.allowHalfOpen === false) {
10322
- process10.nextTick(endWritableNT, stream2);
10327
+ process11.nextTick(endWritableNT, stream2);
10323
10328
  } else if (state.autoDestroy) {
10324
10329
  const wState = stream2._writableState;
10325
10330
  const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
@@ -10370,7 +10375,7 @@ var require_writable = __commonJS({
10370
10375
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/writable.js"(exports, module) {
10371
10376
  "use strict";
10372
10377
  init_esm_shims();
10373
- var process10 = require_process();
10378
+ var process11 = require_process();
10374
10379
  var {
10375
10380
  ArrayPrototypeSlice,
10376
10381
  Error: Error2,
@@ -10523,7 +10528,7 @@ var require_writable = __commonJS({
10523
10528
  err = new ERR_STREAM_DESTROYED("write");
10524
10529
  }
10525
10530
  if (err) {
10526
- process10.nextTick(cb, err);
10531
+ process11.nextTick(cb, err);
10527
10532
  errorOrDestroy(stream2, err, true);
10528
10533
  return err;
10529
10534
  }
@@ -10613,7 +10618,7 @@ var require_writable = __commonJS({
10613
10618
  stream2._readableState.errored = er;
10614
10619
  }
10615
10620
  if (sync) {
10616
- process10.nextTick(onwriteError, stream2, state, er, cb);
10621
+ process11.nextTick(onwriteError, stream2, state, er, cb);
10617
10622
  } else {
10618
10623
  onwriteError(stream2, state, er, cb);
10619
10624
  }
@@ -10631,7 +10636,7 @@ var require_writable = __commonJS({
10631
10636
  stream: stream2,
10632
10637
  state
10633
10638
  };
10634
- process10.nextTick(afterWriteTick, state.afterWriteTickInfo);
10639
+ process11.nextTick(afterWriteTick, state.afterWriteTickInfo);
10635
10640
  }
10636
10641
  } else {
10637
10642
  afterWrite(stream2, state, 1, cb);
@@ -10768,7 +10773,7 @@ var require_writable = __commonJS({
10768
10773
  }
10769
10774
  if (typeof cb === "function") {
10770
10775
  if (err || state.finished) {
10771
- process10.nextTick(cb, err);
10776
+ process11.nextTick(cb, err);
10772
10777
  } else {
10773
10778
  state[kOnFinished].push(cb);
10774
10779
  }
@@ -10797,7 +10802,7 @@ var require_writable = __commonJS({
10797
10802
  state.prefinished = true;
10798
10803
  stream2.emit("prefinish");
10799
10804
  state.pendingcb++;
10800
- process10.nextTick(finish, stream2, state);
10805
+ process11.nextTick(finish, stream2, state);
10801
10806
  }
10802
10807
  }
10803
10808
  state.sync = true;
@@ -10826,7 +10831,7 @@ var require_writable = __commonJS({
10826
10831
  if (state.pendingcb === 0) {
10827
10832
  if (sync) {
10828
10833
  state.pendingcb++;
10829
- process10.nextTick(
10834
+ process11.nextTick(
10830
10835
  (stream3, state2) => {
10831
10836
  if (needFinish(state2)) {
10832
10837
  finish(stream3, state2);
@@ -10961,7 +10966,7 @@ var require_writable = __commonJS({
10961
10966
  Writable4.prototype.destroy = function(err, cb) {
10962
10967
  const state = this._writableState;
10963
10968
  if (!state.destroyed && (state.bufferedIndex < state.buffered.length || state[kOnFinished].length)) {
10964
- process10.nextTick(errorBuffer, state);
10969
+ process11.nextTick(errorBuffer, state);
10965
10970
  }
10966
10971
  destroy.call(this, err, cb);
10967
10972
  return this;
@@ -10992,7 +10997,7 @@ var require_duplexify = __commonJS({
10992
10997
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports, module) {
10993
10998
  "use strict";
10994
10999
  init_esm_shims();
10995
- var process10 = require_process();
11000
+ var process11 = require_process();
10996
11001
  var bufferModule = __require("buffer");
10997
11002
  var {
10998
11003
  isReadable,
@@ -11105,9 +11110,9 @@ var require_duplexify = __commonJS({
11105
11110
  final(async () => {
11106
11111
  try {
11107
11112
  await promise;
11108
- process10.nextTick(cb, null);
11113
+ process11.nextTick(cb, null);
11109
11114
  } catch (err) {
11110
- process10.nextTick(cb, err);
11115
+ process11.nextTick(cb, err);
11111
11116
  }
11112
11117
  });
11113
11118
  },
@@ -11186,7 +11191,7 @@ var require_duplexify = __commonJS({
11186
11191
  const _promise = promise;
11187
11192
  promise = null;
11188
11193
  const { chunk, done, cb } = await _promise;
11189
- process10.nextTick(cb);
11194
+ process11.nextTick(cb);
11190
11195
  if (done) return;
11191
11196
  if (signal.aborted)
11192
11197
  throw new AbortError(void 0, {
@@ -11582,7 +11587,7 @@ var require_pipeline = __commonJS({
11582
11587
  "../../.yarn/cache/readable-stream-npm-4.5.2-2c754e52ef-a2c80e0e53.zip/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) {
11583
11588
  "use strict";
11584
11589
  init_esm_shims();
11585
- var process10 = require_process();
11590
+ var process11 = require_process();
11586
11591
  var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials();
11587
11592
  var eos = require_end_of_stream();
11588
11593
  var { once: once10 } = require_util2();
@@ -11784,7 +11789,7 @@ var require_pipeline = __commonJS({
11784
11789
  if (!error) {
11785
11790
  lastStreamCleanup.forEach((fn) => fn());
11786
11791
  }
11787
- process10.nextTick(callback, error, value);
11792
+ process11.nextTick(callback, error, value);
11788
11793
  }
11789
11794
  }
11790
11795
  let ret;
@@ -11863,11 +11868,11 @@ var require_pipeline = __commonJS({
11863
11868
  if (end) {
11864
11869
  pt.end();
11865
11870
  }
11866
- process10.nextTick(finish);
11871
+ process11.nextTick(finish);
11867
11872
  },
11868
11873
  (err) => {
11869
11874
  pt.destroy(err);
11870
- process10.nextTick(finish, err);
11875
+ process11.nextTick(finish, err);
11871
11876
  }
11872
11877
  );
11873
11878
  } else if (isIterable(ret, true)) {
@@ -11948,7 +11953,7 @@ var require_pipeline = __commonJS({
11948
11953
  }
11949
11954
  }
11950
11955
  if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
11951
- process10.nextTick(abort);
11956
+ process11.nextTick(abort);
11952
11957
  }
11953
11958
  return ret;
11954
11959
  }
@@ -11969,7 +11974,7 @@ var require_pipeline = __commonJS({
11969
11974
  };
11970
11975
  var endFn = endFn2;
11971
11976
  if (isReadableFinished(src)) {
11972
- process10.nextTick(endFn2);
11977
+ process11.nextTick(endFn2);
11973
11978
  } else {
11974
11979
  src.once("end", endFn2);
11975
11980
  }
@@ -14470,11 +14475,11 @@ var require_commonjs = __commonJS({
14470
14475
  return (f) => f.length === len && f !== "." && f !== "..";
14471
14476
  };
14472
14477
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
14473
- var path14 = {
14478
+ var path17 = {
14474
14479
  win32: { sep: "\\" },
14475
14480
  posix: { sep: "/" }
14476
14481
  };
14477
- exports.sep = defaultPlatform === "win32" ? path14.win32.sep : path14.posix.sep;
14482
+ exports.sep = defaultPlatform === "win32" ? path17.win32.sep : path17.posix.sep;
14478
14483
  exports.minimatch.sep = exports.sep;
14479
14484
  exports.GLOBSTAR = Symbol("globstar **");
14480
14485
  exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
@@ -17725,12 +17730,12 @@ var require_commonjs4 = __commonJS({
17725
17730
  /**
17726
17731
  * Get the Path object referenced by the string path, resolved from this Path
17727
17732
  */
17728
- resolve(path14) {
17729
- if (!path14) {
17733
+ resolve(path17) {
17734
+ if (!path17) {
17730
17735
  return this;
17731
17736
  }
17732
- const rootPath = this.getRootString(path14);
17733
- const dir2 = path14.substring(rootPath.length);
17737
+ const rootPath = this.getRootString(path17);
17738
+ const dir2 = path17.substring(rootPath.length);
17734
17739
  const dirParts = dir2.split(this.splitSep);
17735
17740
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
17736
17741
  return result;
@@ -18483,8 +18488,8 @@ var require_commonjs4 = __commonJS({
18483
18488
  /**
18484
18489
  * @internal
18485
18490
  */
18486
- getRootString(path14) {
18487
- return node_path_1.win32.parse(path14).root;
18491
+ getRootString(path17) {
18492
+ return node_path_1.win32.parse(path17).root;
18488
18493
  }
18489
18494
  /**
18490
18495
  * @internal
@@ -18531,8 +18536,8 @@ var require_commonjs4 = __commonJS({
18531
18536
  /**
18532
18537
  * @internal
18533
18538
  */
18534
- getRootString(path14) {
18535
- return path14.startsWith("/") ? "/" : "";
18539
+ getRootString(path17) {
18540
+ return path17.startsWith("/") ? "/" : "";
18536
18541
  }
18537
18542
  /**
18538
18543
  * @internal
@@ -18582,8 +18587,8 @@ var require_commonjs4 = __commonJS({
18582
18587
  *
18583
18588
  * @internal
18584
18589
  */
18585
- constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs9 = defaultFS } = {}) {
18586
- this.#fs = fsFromOption(fs9);
18590
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs10 = defaultFS } = {}) {
18591
+ this.#fs = fsFromOption(fs10);
18587
18592
  if (cwd instanceof URL || cwd.startsWith("file://")) {
18588
18593
  cwd = (0, node_url_1.fileURLToPath)(cwd);
18589
18594
  }
@@ -18622,11 +18627,11 @@ var require_commonjs4 = __commonJS({
18622
18627
  /**
18623
18628
  * Get the depth of a provided path, string, or the cwd
18624
18629
  */
18625
- depth(path14 = this.cwd) {
18626
- if (typeof path14 === "string") {
18627
- path14 = this.cwd.resolve(path14);
18630
+ depth(path17 = this.cwd) {
18631
+ if (typeof path17 === "string") {
18632
+ path17 = this.cwd.resolve(path17);
18628
18633
  }
18629
- return path14.depth();
18634
+ return path17.depth();
18630
18635
  }
18631
18636
  /**
18632
18637
  * Return the cache of child entries. Exposed so subclasses can create
@@ -19005,7 +19010,7 @@ var require_commonjs4 = __commonJS({
19005
19010
  const dirs = /* @__PURE__ */ new Set();
19006
19011
  const queue2 = [entry];
19007
19012
  let processing = 0;
19008
- const process10 = () => {
19013
+ const process11 = () => {
19009
19014
  let paused = false;
19010
19015
  while (!paused) {
19011
19016
  const dir2 = queue2.shift();
@@ -19046,9 +19051,9 @@ var require_commonjs4 = __commonJS({
19046
19051
  }
19047
19052
  }
19048
19053
  if (paused && !results.flowing) {
19049
- results.once("drain", process10);
19054
+ results.once("drain", process11);
19050
19055
  } else if (!sync) {
19051
- process10();
19056
+ process11();
19052
19057
  }
19053
19058
  };
19054
19059
  let sync = true;
@@ -19056,7 +19061,7 @@ var require_commonjs4 = __commonJS({
19056
19061
  sync = false;
19057
19062
  }
19058
19063
  };
19059
- process10();
19064
+ process11();
19060
19065
  return results;
19061
19066
  }
19062
19067
  streamSync(entry = this.cwd, opts = {}) {
@@ -19074,7 +19079,7 @@ var require_commonjs4 = __commonJS({
19074
19079
  }
19075
19080
  const queue2 = [entry];
19076
19081
  let processing = 0;
19077
- const process10 = () => {
19082
+ const process11 = () => {
19078
19083
  let paused = false;
19079
19084
  while (!paused) {
19080
19085
  const dir2 = queue2.shift();
@@ -19108,14 +19113,14 @@ var require_commonjs4 = __commonJS({
19108
19113
  }
19109
19114
  }
19110
19115
  if (paused && !results.flowing)
19111
- results.once("drain", process10);
19116
+ results.once("drain", process11);
19112
19117
  };
19113
- process10();
19118
+ process11();
19114
19119
  return results;
19115
19120
  }
19116
- chdir(path14 = this.cwd) {
19121
+ chdir(path17 = this.cwd) {
19117
19122
  const oldCwd = this.cwd;
19118
- this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
19123
+ this.cwd = typeof path17 === "string" ? this.cwd.resolve(path17) : path17;
19119
19124
  this.cwd[setAsCwd](oldCwd);
19120
19125
  }
19121
19126
  };
@@ -19142,8 +19147,8 @@ var require_commonjs4 = __commonJS({
19142
19147
  /**
19143
19148
  * @internal
19144
19149
  */
19145
- newRoot(fs9) {
19146
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs9 });
19150
+ newRoot(fs10) {
19151
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs10 });
19147
19152
  }
19148
19153
  /**
19149
19154
  * Return true if the provided path string is an absolute path
@@ -19172,8 +19177,8 @@ var require_commonjs4 = __commonJS({
19172
19177
  /**
19173
19178
  * @internal
19174
19179
  */
19175
- newRoot(fs9) {
19176
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs9 });
19180
+ newRoot(fs10) {
19181
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs10 });
19177
19182
  }
19178
19183
  /**
19179
19184
  * Return true if the provided path string is an absolute path
@@ -19506,8 +19511,8 @@ var require_processor = __commonJS({
19506
19511
  }
19507
19512
  // match, absolute, ifdir
19508
19513
  entries() {
19509
- return [...this.store.entries()].map(([path14, n2]) => [
19510
- path14,
19514
+ return [...this.store.entries()].map(([path17, n2]) => [
19515
+ path17,
19511
19516
  !!(n2 & 2),
19512
19517
  !!(n2 & 1)
19513
19518
  ]);
@@ -19726,9 +19731,9 @@ var require_walker = __commonJS({
19726
19731
  signal;
19727
19732
  maxDepth;
19728
19733
  includeChildMatches;
19729
- constructor(patterns, path14, opts) {
19734
+ constructor(patterns, path17, opts) {
19730
19735
  this.patterns = patterns;
19731
- this.path = path14;
19736
+ this.path = path17;
19732
19737
  this.opts = opts;
19733
19738
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
19734
19739
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -19747,11 +19752,11 @@ var require_walker = __commonJS({
19747
19752
  });
19748
19753
  }
19749
19754
  }
19750
- #ignored(path14) {
19751
- return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
19755
+ #ignored(path17) {
19756
+ return this.seen.has(path17) || !!this.#ignore?.ignored?.(path17);
19752
19757
  }
19753
- #childrenIgnored(path14) {
19754
- return !!this.#ignore?.childrenIgnored?.(path14);
19758
+ #childrenIgnored(path17) {
19759
+ return !!this.#ignore?.childrenIgnored?.(path17);
19755
19760
  }
19756
19761
  // backpressure mechanism
19757
19762
  pause() {
@@ -19967,8 +19972,8 @@ var require_walker = __commonJS({
19967
19972
  exports.GlobUtil = GlobUtil;
19968
19973
  var GlobWalker = class extends GlobUtil {
19969
19974
  matches = /* @__PURE__ */ new Set();
19970
- constructor(patterns, path14, opts) {
19971
- super(patterns, path14, opts);
19975
+ constructor(patterns, path17, opts) {
19976
+ super(patterns, path17, opts);
19972
19977
  }
19973
19978
  matchEmit(e) {
19974
19979
  this.matches.add(e);
@@ -20006,8 +20011,8 @@ var require_walker = __commonJS({
20006
20011
  exports.GlobWalker = GlobWalker;
20007
20012
  var GlobStream = class extends GlobUtil {
20008
20013
  results;
20009
- constructor(patterns, path14, opts) {
20010
- super(patterns, path14, opts);
20014
+ constructor(patterns, path17, opts) {
20015
+ super(patterns, path17, opts);
20011
20016
  this.results = new minipass_1.Minipass({
20012
20017
  signal: this.signal,
20013
20018
  objectMode: true
@@ -20367,8 +20372,8 @@ var require_file = __commonJS({
20367
20372
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/file.js"(exports, module) {
20368
20373
  "use strict";
20369
20374
  init_esm_shims();
20370
- var fs9 = require_graceful_fs();
20371
- var path14 = __require("path");
20375
+ var fs10 = require_graceful_fs();
20376
+ var path17 = __require("path");
20372
20377
  var flatten = require_flatten();
20373
20378
  var difference = require_difference();
20374
20379
  var union = require_union();
@@ -20393,8 +20398,8 @@ var require_file = __commonJS({
20393
20398
  return result;
20394
20399
  };
20395
20400
  file.exists = function() {
20396
- var filepath = path14.join.apply(path14, arguments);
20397
- return fs9.existsSync(filepath);
20401
+ var filepath = path17.join.apply(path17, arguments);
20402
+ return fs10.existsSync(filepath);
20398
20403
  };
20399
20404
  file.expand = function(...args) {
20400
20405
  var options = isPlainObject2(args[0]) ? args.shift() : {};
@@ -20407,12 +20412,12 @@ var require_file = __commonJS({
20407
20412
  });
20408
20413
  if (options.filter) {
20409
20414
  matches = matches.filter(function(filepath) {
20410
- filepath = path14.join(options.cwd || "", filepath);
20415
+ filepath = path17.join(options.cwd || "", filepath);
20411
20416
  try {
20412
20417
  if (typeof options.filter === "function") {
20413
20418
  return options.filter(filepath);
20414
20419
  } else {
20415
- return fs9.statSync(filepath)[options.filter]();
20420
+ return fs10.statSync(filepath)[options.filter]();
20416
20421
  }
20417
20422
  } catch (e) {
20418
20423
  return false;
@@ -20424,7 +20429,7 @@ var require_file = __commonJS({
20424
20429
  file.expandMapping = function(patterns, destBase, options) {
20425
20430
  options = Object.assign({
20426
20431
  rename: function(destBase2, destPath) {
20427
- return path14.join(destBase2 || "", destPath);
20432
+ return path17.join(destBase2 || "", destPath);
20428
20433
  }
20429
20434
  }, options);
20430
20435
  var files = [];
@@ -20432,14 +20437,14 @@ var require_file = __commonJS({
20432
20437
  file.expand(options, patterns).forEach(function(src) {
20433
20438
  var destPath = src;
20434
20439
  if (options.flatten) {
20435
- destPath = path14.basename(destPath);
20440
+ destPath = path17.basename(destPath);
20436
20441
  }
20437
20442
  if (options.ext) {
20438
20443
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
20439
20444
  }
20440
20445
  var dest = options.rename(destBase, destPath, options);
20441
20446
  if (options.cwd) {
20442
- src = path14.join(options.cwd, src);
20447
+ src = path17.join(options.cwd, src);
20443
20448
  }
20444
20449
  dest = dest.replace(pathSeparatorRe, "/");
20445
20450
  src = src.replace(pathSeparatorRe, "/");
@@ -20522,8 +20527,8 @@ var require_archiver_utils = __commonJS({
20522
20527
  "../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/index.js"(exports, module) {
20523
20528
  "use strict";
20524
20529
  init_esm_shims();
20525
- var fs9 = require_graceful_fs();
20526
- var path14 = __require("path");
20530
+ var fs10 = require_graceful_fs();
20531
+ var path17 = __require("path");
20527
20532
  var isStream2 = require_is_stream();
20528
20533
  var lazystream = require_lazystream();
20529
20534
  var normalizePath = require_normalize_path();
@@ -20571,7 +20576,7 @@ var require_archiver_utils = __commonJS({
20571
20576
  };
20572
20577
  utils.lazyReadStream = function(filepath) {
20573
20578
  return new lazystream.Readable(function() {
20574
- return fs9.createReadStream(filepath);
20579
+ return fs10.createReadStream(filepath);
20575
20580
  });
20576
20581
  };
20577
20582
  utils.normalizeInputSource = function(source) {
@@ -20599,7 +20604,7 @@ var require_archiver_utils = __commonJS({
20599
20604
  callback = base;
20600
20605
  base = dirpath;
20601
20606
  }
20602
- fs9.readdir(dirpath, function(err, list) {
20607
+ fs10.readdir(dirpath, function(err, list) {
20603
20608
  var i2 = 0;
20604
20609
  var file;
20605
20610
  var filepath;
@@ -20611,11 +20616,11 @@ var require_archiver_utils = __commonJS({
20611
20616
  if (!file) {
20612
20617
  return callback(null, results);
20613
20618
  }
20614
- filepath = path14.join(dirpath, file);
20615
- fs9.stat(filepath, function(err2, stats) {
20619
+ filepath = path17.join(dirpath, file);
20620
+ fs10.stat(filepath, function(err2, stats) {
20616
20621
  results.push({
20617
20622
  path: filepath,
20618
- relative: path14.relative(base, filepath).replace(/\\/g, "/"),
20623
+ relative: path17.relative(base, filepath).replace(/\\/g, "/"),
20619
20624
  stats
20620
20625
  });
20621
20626
  if (stats && stats.isDirectory()) {
@@ -20678,10 +20683,10 @@ var require_core = __commonJS({
20678
20683
  "../../.yarn/cache/archiver-npm-7.0.1-dc24339f78-02afd87ca1.zip/node_modules/archiver/lib/core.js"(exports, module) {
20679
20684
  "use strict";
20680
20685
  init_esm_shims();
20681
- var fs9 = __require("fs");
20686
+ var fs10 = __require("fs");
20682
20687
  var glob = require_readdir_glob();
20683
20688
  var async = (init_async(), __toCommonJS(async_exports));
20684
- var path14 = __require("path");
20689
+ var path17 = __require("path");
20685
20690
  var util2 = require_archiver_utils();
20686
20691
  var inherits = __require("util").inherits;
20687
20692
  var ArchiverError = require_error();
@@ -20742,7 +20747,7 @@ var require_core = __commonJS({
20742
20747
  data.sourcePath = filepath;
20743
20748
  task.data = data;
20744
20749
  this._entriesCount++;
20745
- if (data.stats && data.stats instanceof fs9.Stats) {
20750
+ if (data.stats && data.stats instanceof fs10.Stats) {
20746
20751
  task = this._updateQueueTaskWithStats(task, data.stats);
20747
20752
  if (task) {
20748
20753
  if (data.stats.size) {
@@ -20913,7 +20918,7 @@ var require_core = __commonJS({
20913
20918
  callback();
20914
20919
  return;
20915
20920
  }
20916
- fs9.lstat(task.filepath, function(err, stats) {
20921
+ fs10.lstat(task.filepath, function(err, stats) {
20917
20922
  if (this._state.aborted) {
20918
20923
  setImmediate(callback);
20919
20924
  return;
@@ -20956,10 +20961,10 @@ var require_core = __commonJS({
20956
20961
  task.data.sourceType = "buffer";
20957
20962
  task.source = Buffer.concat([]);
20958
20963
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
20959
- var linkPath = fs9.readlinkSync(task.filepath);
20960
- var dirName = path14.dirname(task.filepath);
20964
+ var linkPath = fs10.readlinkSync(task.filepath);
20965
+ var dirName = path17.dirname(task.filepath);
20961
20966
  task.data.type = "symlink";
20962
- task.data.linkname = path14.relative(dirName, path14.resolve(dirName, linkPath));
20967
+ task.data.linkname = path17.relative(dirName, path17.resolve(dirName, linkPath));
20963
20968
  task.data.sourceType = "buffer";
20964
20969
  task.source = Buffer.concat([]);
20965
20970
  } else {
@@ -22115,22 +22120,22 @@ var require_zip_archive_output_stream = __commonJS({
22115
22120
  };
22116
22121
  ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {
22117
22122
  var deflate = ae.getMethod() === constants5.METHOD_DEFLATED;
22118
- var process10 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
22123
+ var process11 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
22119
22124
  var error = null;
22120
22125
  function handleStuff() {
22121
- var digest = process10.digest().readUInt32BE(0);
22126
+ var digest = process11.digest().readUInt32BE(0);
22122
22127
  ae.setCrc(digest);
22123
- ae.setSize(process10.size());
22124
- ae.setCompressedSize(process10.size(true));
22128
+ ae.setSize(process11.size());
22129
+ ae.setCompressedSize(process11.size(true));
22125
22130
  this._afterAppend(ae);
22126
22131
  callback(error, ae);
22127
22132
  }
22128
- process10.once("end", handleStuff.bind(this));
22129
- process10.once("error", function(err) {
22133
+ process11.once("end", handleStuff.bind(this));
22134
+ process11.once("error", function(err) {
22130
22135
  error = err;
22131
22136
  });
22132
- process10.pipe(this, { end: false });
22133
- return process10;
22137
+ process11.pipe(this, { end: false });
22138
+ return process11;
22134
22139
  };
22135
22140
  ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {
22136
22141
  var records = this._entries.length;
@@ -25133,8 +25138,8 @@ var require_windows = __commonJS({
25133
25138
  init_esm_shims();
25134
25139
  module.exports = isexe;
25135
25140
  isexe.sync = sync;
25136
- var fs9 = __require("fs");
25137
- function checkPathExt(path14, options) {
25141
+ var fs10 = __require("fs");
25142
+ function checkPathExt(path17, options) {
25138
25143
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
25139
25144
  if (!pathext) {
25140
25145
  return true;
@@ -25145,25 +25150,25 @@ var require_windows = __commonJS({
25145
25150
  }
25146
25151
  for (var i2 = 0; i2 < pathext.length; i2++) {
25147
25152
  var p = pathext[i2].toLowerCase();
25148
- if (p && path14.substr(-p.length).toLowerCase() === p) {
25153
+ if (p && path17.substr(-p.length).toLowerCase() === p) {
25149
25154
  return true;
25150
25155
  }
25151
25156
  }
25152
25157
  return false;
25153
25158
  }
25154
- function checkStat(stat, path14, options) {
25159
+ function checkStat(stat, path17, options) {
25155
25160
  if (!stat.isSymbolicLink() && !stat.isFile()) {
25156
25161
  return false;
25157
25162
  }
25158
- return checkPathExt(path14, options);
25163
+ return checkPathExt(path17, options);
25159
25164
  }
25160
- function isexe(path14, options, cb) {
25161
- fs9.stat(path14, function(er, stat) {
25162
- cb(er, er ? false : checkStat(stat, path14, options));
25165
+ function isexe(path17, options, cb) {
25166
+ fs10.stat(path17, function(er, stat) {
25167
+ cb(er, er ? false : checkStat(stat, path17, options));
25163
25168
  });
25164
25169
  }
25165
- function sync(path14, options) {
25166
- return checkStat(fs9.statSync(path14), path14, options);
25170
+ function sync(path17, options) {
25171
+ return checkStat(fs10.statSync(path17), path17, options);
25167
25172
  }
25168
25173
  }
25169
25174
  });
@@ -25175,14 +25180,14 @@ var require_mode = __commonJS({
25175
25180
  init_esm_shims();
25176
25181
  module.exports = isexe;
25177
25182
  isexe.sync = sync;
25178
- var fs9 = __require("fs");
25179
- function isexe(path14, options, cb) {
25180
- fs9.stat(path14, function(er, stat) {
25183
+ var fs10 = __require("fs");
25184
+ function isexe(path17, options, cb) {
25185
+ fs10.stat(path17, function(er, stat) {
25181
25186
  cb(er, er ? false : checkStat(stat, options));
25182
25187
  });
25183
25188
  }
25184
- function sync(path14, options) {
25185
- return checkStat(fs9.statSync(path14), options);
25189
+ function sync(path17, options) {
25190
+ return checkStat(fs10.statSync(path17), options);
25186
25191
  }
25187
25192
  function checkStat(stat, options) {
25188
25193
  return stat.isFile() && checkMode(stat, options);
@@ -25208,7 +25213,7 @@ var require_isexe = __commonJS({
25208
25213
  "../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/index.js"(exports, module) {
25209
25214
  "use strict";
25210
25215
  init_esm_shims();
25211
- var fs9 = __require("fs");
25216
+ var fs10 = __require("fs");
25212
25217
  var core;
25213
25218
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
25214
25219
  core = require_windows();
@@ -25217,7 +25222,7 @@ var require_isexe = __commonJS({
25217
25222
  }
25218
25223
  module.exports = isexe;
25219
25224
  isexe.sync = sync;
25220
- function isexe(path14, options, cb) {
25225
+ function isexe(path17, options, cb) {
25221
25226
  if (typeof options === "function") {
25222
25227
  cb = options;
25223
25228
  options = {};
@@ -25227,7 +25232,7 @@ var require_isexe = __commonJS({
25227
25232
  throw new TypeError("callback not provided");
25228
25233
  }
25229
25234
  return new Promise(function(resolve, reject2) {
25230
- isexe(path14, options || {}, function(er, is) {
25235
+ isexe(path17, options || {}, function(er, is) {
25231
25236
  if (er) {
25232
25237
  reject2(er);
25233
25238
  } else {
@@ -25236,7 +25241,7 @@ var require_isexe = __commonJS({
25236
25241
  });
25237
25242
  });
25238
25243
  }
25239
- core(path14, options || {}, function(er, is) {
25244
+ core(path17, options || {}, function(er, is) {
25240
25245
  if (er) {
25241
25246
  if (er.code === "EACCES" || options && options.ignoreErrors) {
25242
25247
  er = null;
@@ -25246,9 +25251,9 @@ var require_isexe = __commonJS({
25246
25251
  cb(er, is);
25247
25252
  });
25248
25253
  }
25249
- function sync(path14, options) {
25254
+ function sync(path17, options) {
25250
25255
  try {
25251
- return core.sync(path14, options || {});
25256
+ return core.sync(path17, options || {});
25252
25257
  } catch (er) {
25253
25258
  if (options && options.ignoreErrors || er.code === "EACCES") {
25254
25259
  return false;
@@ -25266,7 +25271,7 @@ var require_which = __commonJS({
25266
25271
  "use strict";
25267
25272
  init_esm_shims();
25268
25273
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
25269
- var path14 = __require("path");
25274
+ var path17 = __require("path");
25270
25275
  var COLON = isWindows ? ";" : ":";
25271
25276
  var isexe = require_isexe();
25272
25277
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -25304,7 +25309,7 @@ var require_which = __commonJS({
25304
25309
  return opt.all && found.length ? resolve(found) : reject2(getNotFoundError(cmd));
25305
25310
  const ppRaw = pathEnv[i2];
25306
25311
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
25307
- const pCmd = path14.join(pathPart, cmd);
25312
+ const pCmd = path17.join(pathPart, cmd);
25308
25313
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
25309
25314
  resolve(subStep(p, i2, 0));
25310
25315
  });
@@ -25331,7 +25336,7 @@ var require_which = __commonJS({
25331
25336
  for (let i2 = 0; i2 < pathEnv.length; i2++) {
25332
25337
  const ppRaw = pathEnv[i2];
25333
25338
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
25334
- const pCmd = path14.join(pathPart, cmd);
25339
+ const pCmd = path17.join(pathPart, cmd);
25335
25340
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
25336
25341
  for (let j = 0; j < pathExt.length; j++) {
25337
25342
  const cur = p + pathExt[j];
@@ -25381,7 +25386,7 @@ var require_resolveCommand = __commonJS({
25381
25386
  "../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
25382
25387
  "use strict";
25383
25388
  init_esm_shims();
25384
- var path14 = __require("path");
25389
+ var path17 = __require("path");
25385
25390
  var which = require_which();
25386
25391
  var getPathKey = require_path_key();
25387
25392
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -25399,7 +25404,7 @@ var require_resolveCommand = __commonJS({
25399
25404
  try {
25400
25405
  resolved = which.sync(parsed.command, {
25401
25406
  path: env[getPathKey({ env })],
25402
- pathExt: withoutPathExt ? path14.delimiter : void 0
25407
+ pathExt: withoutPathExt ? path17.delimiter : void 0
25403
25408
  });
25404
25409
  } catch (e) {
25405
25410
  } finally {
@@ -25408,7 +25413,7 @@ var require_resolveCommand = __commonJS({
25408
25413
  }
25409
25414
  }
25410
25415
  if (resolved) {
25411
- resolved = path14.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
25416
+ resolved = path17.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
25412
25417
  }
25413
25418
  return resolved;
25414
25419
  }
@@ -25465,12 +25470,12 @@ var require_shebang_command = __commonJS({
25465
25470
  if (!match) {
25466
25471
  return null;
25467
25472
  }
25468
- const [path14, argument] = match[0].replace(/#! ?/, "").split(" ");
25469
- const binary2 = path14.split("/").pop();
25470
- if (binary2 === "env") {
25473
+ const [path17, argument] = match[0].replace(/#! ?/, "").split(" ");
25474
+ const binary = path17.split("/").pop();
25475
+ if (binary === "env") {
25471
25476
  return argument;
25472
25477
  }
25473
- return argument ? `${binary2} ${argument}` : binary2;
25478
+ return argument ? `${binary} ${argument}` : binary;
25474
25479
  };
25475
25480
  }
25476
25481
  });
@@ -25480,16 +25485,16 @@ var require_readShebang = __commonJS({
25480
25485
  "../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
25481
25486
  "use strict";
25482
25487
  init_esm_shims();
25483
- var fs9 = __require("fs");
25488
+ var fs10 = __require("fs");
25484
25489
  var shebangCommand = require_shebang_command();
25485
25490
  function readShebang(command) {
25486
25491
  const size = 150;
25487
25492
  const buffer = Buffer.alloc(size);
25488
25493
  let fd;
25489
25494
  try {
25490
- fd = fs9.openSync(command, "r");
25491
- fs9.readSync(fd, buffer, 0, size, 0);
25492
- fs9.closeSync(fd);
25495
+ fd = fs10.openSync(command, "r");
25496
+ fs10.readSync(fd, buffer, 0, size, 0);
25497
+ fs10.closeSync(fd);
25493
25498
  } catch (e) {
25494
25499
  }
25495
25500
  return shebangCommand(buffer.toString());
@@ -25503,7 +25508,7 @@ var require_parse = __commonJS({
25503
25508
  "../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/parse.js"(exports, module) {
25504
25509
  "use strict";
25505
25510
  init_esm_shims();
25506
- var path14 = __require("path");
25511
+ var path17 = __require("path");
25507
25512
  var resolveCommand = require_resolveCommand();
25508
25513
  var escape = require_escape2();
25509
25514
  var readShebang = require_readShebang();
@@ -25528,7 +25533,7 @@ var require_parse = __commonJS({
25528
25533
  const needsShell = !isExecutableRegExp.test(commandFile);
25529
25534
  if (parsed.options.forceShell || needsShell) {
25530
25535
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
25531
- parsed.command = path14.normalize(parsed.command);
25536
+ parsed.command = path17.normalize(parsed.command);
25532
25537
  parsed.command = escape.command(parsed.command);
25533
25538
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
25534
25539
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -25646,8 +25651,8 @@ init_esm_shims();
25646
25651
  // src/plugins/appsInToss.ts
25647
25652
  init_esm_shims();
25648
25653
  var import_picocolors = __toESM(require_picocolors(), 1);
25649
- import fs8 from "fs";
25650
- import path13 from "path";
25654
+ import fs9 from "fs";
25655
+ import path16 from "path";
25651
25656
 
25652
25657
  // src/plugins/constants.ts
25653
25658
  init_esm_shims();
@@ -25655,14 +25660,14 @@ var APP_MANIFEST_NAME = "app.json";
25655
25660
 
25656
25661
  // src/plugins/utils/createArtifact.ts
25657
25662
  init_esm_shims();
25658
- import fs6 from "fs/promises";
25659
- import * as path11 from "path";
25663
+ import fs8 from "fs/promises";
25664
+ import * as path15 from "path";
25660
25665
 
25661
25666
  // src/plugins/utils/compressToZip.ts
25662
25667
  init_esm_shims();
25663
25668
  var import_archiver = __toESM(require_archiver(), 1);
25664
25669
  import * as fs from "fs";
25665
- import * as path from "path";
25670
+ import * as path2 from "path";
25666
25671
  async function compressToZip(config) {
25667
25672
  const { files, outfile } = config;
25668
25673
  return new Promise((resolve, reject2) => {
@@ -25672,7 +25677,7 @@ async function compressToZip(config) {
25672
25677
  outputStream.on("error", (error) => reject2(error));
25673
25678
  archive.on("error", (error) => reject2(error)).pipe(outputStream);
25674
25679
  files.forEach(({ path: filePath, name }) => {
25675
- const fileName = name ?? path.basename(filePath);
25680
+ const fileName = name ?? path2.basename(filePath);
25676
25681
  archive.append(fs.createReadStream(filePath), { name: fileName });
25677
25682
  });
25678
25683
  archive.finalize();
@@ -25681,12 +25686,12 @@ async function compressToZip(config) {
25681
25686
 
25682
25687
  // src/plugins/utils/createCompressedBytecode.ts
25683
25688
  init_esm_shims();
25689
+ import path12 from "path";
25684
25690
 
25685
25691
  // src/plugins/utils/compileHbc.ts
25686
25692
  init_esm_shims();
25687
- import assert from "assert";
25688
- import os from "os";
25689
- import path7 from "path";
25693
+ import fs4 from "fs";
25694
+ import path11 from "path";
25690
25695
 
25691
25696
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/index.js
25692
25697
  init_esm_shims();
@@ -25709,7 +25714,7 @@ init_esm_shims();
25709
25714
 
25710
25715
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/arguments/file-url.js
25711
25716
  init_esm_shims();
25712
- import { fileURLToPath } from "node:url";
25717
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
25713
25718
  var safeNormalizeFileUrl = (file, name) => {
25714
25719
  const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
25715
25720
  if (typeof fileString !== "string") {
@@ -25719,7 +25724,7 @@ var safeNormalizeFileUrl = (file, name) => {
25719
25724
  };
25720
25725
  var normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
25721
25726
  var isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
25722
- var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
25727
+ var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath2(file) : file;
25723
25728
 
25724
25729
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/methods/parameters.js
25725
25730
  var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -26570,13 +26575,13 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
26570
26575
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/arguments/options.js
26571
26576
  init_esm_shims();
26572
26577
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
26573
- import path6 from "node:path";
26578
+ import path7 from "node:path";
26574
26579
  import process6 from "node:process";
26575
26580
 
26576
26581
  // ../../.yarn/cache/npm-run-path-npm-6.0.0-e1f8e169a9-b223c8a0dc.zip/node_modules/npm-run-path/index.js
26577
26582
  init_esm_shims();
26578
26583
  import process4 from "node:process";
26579
- import path3 from "node:path";
26584
+ import path4 from "node:path";
26580
26585
 
26581
26586
  // ../../.yarn/cache/path-key-npm-4.0.0-9f9fba604f-794efeef32.zip/node_modules/path-key/index.js
26582
26587
  init_esm_shims();
@@ -26595,21 +26600,21 @@ function pathKey(options = {}) {
26595
26600
  init_esm_shims();
26596
26601
  import { promisify } from "node:util";
26597
26602
  import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
26598
- import path2 from "node:path";
26599
- import { fileURLToPath as fileURLToPath2 } from "node:url";
26603
+ import path3 from "node:path";
26604
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
26600
26605
  var execFileOriginal = promisify(execFileCallback);
26601
26606
  function toPath(urlOrPath) {
26602
- return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
26607
+ return urlOrPath instanceof URL ? fileURLToPath3(urlOrPath) : urlOrPath;
26603
26608
  }
26604
26609
  function traversePathUp(startPath) {
26605
26610
  return {
26606
26611
  *[Symbol.iterator]() {
26607
- let currentPath = path2.resolve(toPath(startPath));
26612
+ let currentPath = path3.resolve(toPath(startPath));
26608
26613
  let previousPath;
26609
26614
  while (previousPath !== currentPath) {
26610
26615
  yield currentPath;
26611
26616
  previousPath = currentPath;
26612
- currentPath = path2.resolve(currentPath, "..");
26617
+ currentPath = path3.resolve(currentPath, "..");
26613
26618
  }
26614
26619
  }
26615
26620
  };
@@ -26624,27 +26629,27 @@ var npmRunPath = ({
26624
26629
  execPath: execPath2 = process4.execPath,
26625
26630
  addExecPath = true
26626
26631
  } = {}) => {
26627
- const cwdPath = path3.resolve(toPath(cwd));
26632
+ const cwdPath = path4.resolve(toPath(cwd));
26628
26633
  const result = [];
26629
- const pathParts = pathOption.split(path3.delimiter);
26634
+ const pathParts = pathOption.split(path4.delimiter);
26630
26635
  if (preferLocal) {
26631
26636
  applyPreferLocal(result, pathParts, cwdPath);
26632
26637
  }
26633
26638
  if (addExecPath) {
26634
26639
  applyExecPath(result, pathParts, execPath2, cwdPath);
26635
26640
  }
26636
- return pathOption === "" || pathOption === path3.delimiter ? `${result.join(path3.delimiter)}${pathOption}` : [...result, pathOption].join(path3.delimiter);
26641
+ return pathOption === "" || pathOption === path4.delimiter ? `${result.join(path4.delimiter)}${pathOption}` : [...result, pathOption].join(path4.delimiter);
26637
26642
  };
26638
26643
  var applyPreferLocal = (result, pathParts, cwdPath) => {
26639
26644
  for (const directory of traversePathUp(cwdPath)) {
26640
- const pathPart = path3.join(directory, "node_modules/.bin");
26645
+ const pathPart = path4.join(directory, "node_modules/.bin");
26641
26646
  if (!pathParts.includes(pathPart)) {
26642
26647
  result.push(pathPart);
26643
26648
  }
26644
26649
  }
26645
26650
  };
26646
26651
  var applyExecPath = (result, pathParts, execPath2, cwdPath) => {
26647
- const pathPart = path3.resolve(cwdPath, toPath(execPath2), "..");
26652
+ const pathPart = path4.resolve(cwdPath, toPath(execPath2), "..");
26648
26653
  if (!pathParts.includes(pathPart)) {
26649
26654
  result.push(pathPart);
26650
26655
  }
@@ -27828,7 +27833,7 @@ var killAfterTimeout = async (subprocess, timeout2, context, { signal }) => {
27828
27833
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/methods/node.js
27829
27834
  init_esm_shims();
27830
27835
  import { execPath, execArgv } from "node:process";
27831
- import path4 from "node:path";
27836
+ import path5 from "node:path";
27832
27837
  var mapNode = ({ options }) => {
27833
27838
  if (options.node === false) {
27834
27839
  throw new TypeError('The "node" option cannot be false with `execaNode()`.');
@@ -27847,7 +27852,7 @@ var handleNodeOption = (file, commandArguments, {
27847
27852
  throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');
27848
27853
  }
27849
27854
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, 'The "nodePath" option');
27850
- const resolvedNodePath = path4.resolve(cwd, normalizedNodePath);
27855
+ const resolvedNodePath = path5.resolve(cwd, normalizedNodePath);
27851
27856
  const newOptions = {
27852
27857
  ...options,
27853
27858
  nodePath: resolvedNodePath,
@@ -27857,7 +27862,7 @@ var handleNodeOption = (file, commandArguments, {
27857
27862
  if (!shouldHandleNode) {
27858
27863
  return [file, commandArguments, newOptions];
27859
27864
  }
27860
- if (path4.basename(file, ".exe") === "node") {
27865
+ if (path5.basename(file, ".exe") === "node") {
27861
27866
  throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');
27862
27867
  }
27863
27868
  return [
@@ -27950,11 +27955,11 @@ var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encodin
27950
27955
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/arguments/cwd.js
27951
27956
  init_esm_shims();
27952
27957
  import { statSync } from "node:fs";
27953
- import path5 from "node:path";
27958
+ import path6 from "node:path";
27954
27959
  import process5 from "node:process";
27955
27960
  var normalizeCwd = (cwd = getDefaultCwd()) => {
27956
27961
  const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
27957
- return path5.resolve(cwdString);
27962
+ return path6.resolve(cwdString);
27958
27963
  };
27959
27964
  var getDefaultCwd = () => {
27960
27965
  try {
@@ -28001,7 +28006,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
28001
28006
  options.killSignal = normalizeKillSignal(options.killSignal);
28002
28007
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
28003
28008
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
28004
- if (process6.platform === "win32" && path6.basename(file, ".exe") === "cmd") {
28009
+ if (process6.platform === "win32" && path7.basename(file, ".exe") === "cmd") {
28005
28010
  commandArguments.unshift("/q");
28006
28011
  }
28007
28012
  return { file, commandArguments, options };
@@ -29068,9 +29073,9 @@ var getTransformStreamType = (value, optionName) => {
29068
29073
  validateNonGeneratorType(value, optionName, "web TransformStream");
29069
29074
  return "webTransform";
29070
29075
  };
29071
- var validateNonGeneratorType = ({ final, binary: binary2, objectMode }, optionName, typeName) => {
29076
+ var validateNonGeneratorType = ({ final, binary, objectMode }, optionName, typeName) => {
29072
29077
  checkUndefinedOption(final, `${optionName}.final`, typeName);
29073
- checkUndefinedOption(binary2, `${optionName}.binary`, typeName);
29078
+ checkUndefinedOption(binary, `${optionName}.binary`, typeName);
29074
29079
  checkBooleanOption(objectMode, `${optionName}.objectMode`);
29075
29080
  };
29076
29081
  var checkUndefinedOption = (value, optionName, typeName) => {
@@ -29078,7 +29083,7 @@ var checkUndefinedOption = (value, optionName, typeName) => {
29078
29083
  throw new TypeError(`The \`${optionName}\` option can only be defined when using a generator, not a ${typeName}.`);
29079
29084
  }
29080
29085
  };
29081
- var getGeneratorObjectType = ({ transform: transform2, final, binary: binary2, objectMode }, optionName) => {
29086
+ var getGeneratorObjectType = ({ transform: transform2, final, binary, objectMode }, optionName) => {
29082
29087
  if (transform2 !== void 0 && !isGenerator(transform2)) {
29083
29088
  throw new TypeError(`The \`${optionName}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);
29084
29089
  }
@@ -29091,7 +29096,7 @@ var getGeneratorObjectType = ({ transform: transform2, final, binary: binary2, o
29091
29096
  if (final !== void 0 && !isGenerator(final)) {
29092
29097
  throw new TypeError(`The \`${optionName}.final\` option must be a generator.`);
29093
29098
  }
29094
- checkBooleanOption(binary2, `${optionName}.binary`);
29099
+ checkBooleanOption(binary, `${optionName}.binary`);
29095
29100
  checkBooleanOption(objectMode, `${optionName}.objectMode`);
29096
29101
  return isAsyncGenerator2(transform2) || isAsyncGenerator2(final) ? "asyncGenerator" : "generator";
29097
29102
  };
@@ -29239,14 +29244,14 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index: index2, newT
29239
29244
  preserveNewlines = false,
29240
29245
  objectMode
29241
29246
  } = isPlainObject(value) ? value : { transform: value };
29242
- const binary2 = binaryOption || BINARY_ENCODINGS.has(encoding);
29247
+ const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
29243
29248
  const { writableObjectMode, readableObjectMode } = getTransformObjectModes(objectMode, index2, newTransforms, direction);
29244
29249
  return {
29245
29250
  ...stdioItem,
29246
29251
  value: {
29247
29252
  transform: transform2,
29248
29253
  final,
29249
- binary: binary2,
29254
+ binary,
29250
29255
  preserveNewlines,
29251
29256
  writableObjectMode,
29252
29257
  readableObjectMode
@@ -29750,7 +29755,7 @@ import { Transform, getDefaultHighWaterMark } from "node:stream";
29750
29755
 
29751
29756
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/transform/split.js
29752
29757
  init_esm_shims();
29753
- var getSplitLinesGenerator = (binary2, preserveNewlines, skipped, state) => binary2 || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
29758
+ var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
29754
29759
  var splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
29755
29760
  var splitLinesItemSync = (chunk, preserveNewlines) => {
29756
29761
  const { transform: transform2, final } = initializeSplitLines(preserveNewlines, {});
@@ -29799,7 +29804,7 @@ var linesFinal = function* ({ previousChunks }) {
29799
29804
  yield previousChunks;
29800
29805
  }
29801
29806
  };
29802
- var getAppendNewlineGenerator = ({ binary: binary2, preserveNewlines, readableObjectMode, state }) => binary2 || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
29807
+ var getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
29803
29808
  var appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
29804
29809
  const { unixNewline, windowsNewline, LF: LF2, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
29805
29810
  if (chunk.at(-1) === LF2) {
@@ -29863,11 +29868,11 @@ Instead, \`yield\` should either be called with a value, or not be called at all
29863
29868
  init_esm_shims();
29864
29869
  import { Buffer as Buffer3 } from "node:buffer";
29865
29870
  import { StringDecoder as StringDecoder2 } from "node:string_decoder";
29866
- var getEncodingTransformGenerator = (binary2, encoding, skipped) => {
29871
+ var getEncodingTransformGenerator = (binary, encoding, skipped) => {
29867
29872
  if (skipped) {
29868
29873
  return;
29869
29874
  }
29870
- if (binary2) {
29875
+ if (binary) {
29871
29876
  return { transform: encodingUint8ArrayGenerator.bind(void 0, new TextEncoder()) };
29872
29877
  }
29873
29878
  const stringDecoder = new StringDecoder2(encoding);
@@ -30024,16 +30029,16 @@ var runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
30024
30029
  }
30025
30030
  return chunks;
30026
30031
  };
30027
- var addInternalGenerators = ({ transform: transform2, final, binary: binary2, writableObjectMode, readableObjectMode, preserveNewlines }, encoding, optionName) => {
30032
+ var addInternalGenerators = ({ transform: transform2, final, binary, writableObjectMode, readableObjectMode, preserveNewlines }, encoding, optionName) => {
30028
30033
  const state = {};
30029
30034
  return [
30030
30035
  { transform: getValidateTransformInput(writableObjectMode, optionName) },
30031
- getEncodingTransformGenerator(binary2, encoding, writableObjectMode),
30032
- getSplitLinesGenerator(binary2, preserveNewlines, writableObjectMode, state),
30036
+ getEncodingTransformGenerator(binary, encoding, writableObjectMode),
30037
+ getSplitLinesGenerator(binary, preserveNewlines, writableObjectMode, state),
30033
30038
  { transform: transform2, final },
30034
30039
  { transform: getValidateTransformReturn(readableObjectMode, optionName) },
30035
30040
  getAppendNewlineGenerator({
30036
- binary: binary2,
30041
+ binary,
30037
30042
  preserveNewlines,
30038
30043
  readableObjectMode,
30039
30044
  state
@@ -30198,13 +30203,13 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
30198
30203
  }
30199
30204
  };
30200
30205
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
30201
- for (const { path: path14, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
30202
- const pathString = typeof path14 === "string" ? path14 : path14.toString();
30206
+ for (const { path: path17, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
30207
+ const pathString = typeof path17 === "string" ? path17 : path17.toString();
30203
30208
  if (append || outputFiles.has(pathString)) {
30204
- appendFileSync(path14, serializedResult);
30209
+ appendFileSync(path17, serializedResult);
30205
30210
  } else {
30206
30211
  outputFiles.add(pathString);
30207
- writeFileSync(path14, serializedResult);
30212
+ writeFileSync(path17, serializedResult);
30208
30213
  }
30209
30214
  }
30210
30215
  };
@@ -31053,7 +31058,7 @@ if (process.platform === "linux") {
31053
31058
  }
31054
31059
 
31055
31060
  // ../../.yarn/cache/signal-exit-npm-4.1.0-abb7bd2c45-41602dce54.zip/node_modules/signal-exit/dist/mjs/index.js
31056
- var processOk = (process10) => !!process10 && typeof process10 === "object" && typeof process10.removeListener === "function" && typeof process10.emit === "function" && typeof process10.reallyExit === "function" && typeof process10.listeners === "function" && typeof process10.kill === "function" && typeof process10.pid === "number" && typeof process10.on === "function";
31061
+ var processOk = (process11) => !!process11 && typeof process11 === "object" && typeof process11.removeListener === "function" && typeof process11.emit === "function" && typeof process11.reallyExit === "function" && typeof process11.listeners === "function" && typeof process11.kill === "function" && typeof process11.pid === "number" && typeof process11.on === "function";
31057
31062
  var kExitEmitter = Symbol.for("signal-exit emitter");
31058
31063
  var global2 = globalThis;
31059
31064
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -31146,15 +31151,15 @@ var SignalExit = class extends SignalExitBase {
31146
31151
  #originalProcessReallyExit;
31147
31152
  #sigListeners = {};
31148
31153
  #loaded = false;
31149
- constructor(process10) {
31154
+ constructor(process11) {
31150
31155
  super();
31151
- this.#process = process10;
31156
+ this.#process = process11;
31152
31157
  this.#sigListeners = {};
31153
31158
  for (const sig of signals) {
31154
31159
  this.#sigListeners[sig] = () => {
31155
31160
  const listeners = this.#process.listeners(sig);
31156
31161
  let { count: count2 } = this.#emitter;
31157
- const p = process10;
31162
+ const p = process11;
31158
31163
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
31159
31164
  count2 += p.__signal_exit_emitter__.count;
31160
31165
  }
@@ -31163,12 +31168,12 @@ var SignalExit = class extends SignalExitBase {
31163
31168
  const ret = this.#emitter.emit("exit", null, sig);
31164
31169
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
31165
31170
  if (!ret)
31166
- process10.kill(process10.pid, s);
31171
+ process11.kill(process11.pid, s);
31167
31172
  }
31168
31173
  };
31169
31174
  }
31170
- this.#originalProcessReallyExit = process10.reallyExit;
31171
- this.#originalProcessEmit = process10.emit;
31175
+ this.#originalProcessReallyExit = process11.reallyExit;
31176
+ this.#originalProcessEmit = process11.emit;
31172
31177
  }
31173
31178
  onExit(cb, opts) {
31174
31179
  if (!processOk(this.#process)) {
@@ -31559,13 +31564,13 @@ import { setImmediate as setImmediate2 } from "node:timers/promises";
31559
31564
  init_esm_shims();
31560
31565
  import { on as on5 } from "node:events";
31561
31566
  import { getDefaultHighWaterMark as getDefaultHighWaterMark3 } from "node:stream";
31562
- var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary: binary2, shouldEncode, encoding, preserveNewlines }) => {
31567
+ var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
31563
31568
  const controller = new AbortController();
31564
31569
  stopReadingOnExit(subprocess, controller);
31565
31570
  return iterateOnStream({
31566
31571
  stream: subprocessStdout,
31567
31572
  controller,
31568
- binary: binary2,
31573
+ binary,
31569
31574
  shouldEncode: !subprocessStdout.readableObjectMode && shouldEncode,
31570
31575
  encoding,
31571
31576
  shouldSplit: !subprocessStdout.readableObjectMode,
@@ -31603,7 +31608,7 @@ var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream2) => {
31603
31608
  controller.abort();
31604
31609
  }
31605
31610
  };
31606
- var iterateOnStream = ({ stream: stream2, controller, binary: binary2, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
31611
+ var iterateOnStream = ({ stream: stream2, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
31607
31612
  const onStdoutChunk = on5(stream2, "data", {
31608
31613
  signal: controller.signal,
31609
31614
  highWaterMark: HIGH_WATER_MARK,
@@ -31615,7 +31620,7 @@ var iterateOnStream = ({ stream: stream2, controller, binary: binary2, shouldEnc
31615
31620
  return iterateOnData({
31616
31621
  onStdoutChunk,
31617
31622
  controller,
31618
- binary: binary2,
31623
+ binary,
31619
31624
  shouldEncode,
31620
31625
  encoding,
31621
31626
  shouldSplit,
@@ -31624,9 +31629,9 @@ var iterateOnStream = ({ stream: stream2, controller, binary: binary2, shouldEnc
31624
31629
  };
31625
31630
  var DEFAULT_OBJECT_HIGH_WATER_MARK = getDefaultHighWaterMark3(true);
31626
31631
  var HIGH_WATER_MARK = DEFAULT_OBJECT_HIGH_WATER_MARK;
31627
- var iterateOnData = async function* ({ onStdoutChunk, controller, binary: binary2, shouldEncode, encoding, shouldSplit, preserveNewlines }) {
31632
+ var iterateOnData = async function* ({ onStdoutChunk, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) {
31628
31633
  const generators = getGenerators({
31629
- binary: binary2,
31634
+ binary,
31630
31635
  shouldEncode,
31631
31636
  encoding,
31632
31637
  shouldSplit,
@@ -31644,9 +31649,9 @@ var iterateOnData = async function* ({ onStdoutChunk, controller, binary: binary
31644
31649
  yield* finalChunksSync(generators);
31645
31650
  }
31646
31651
  };
31647
- var getGenerators = ({ binary: binary2, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [
31648
- getEncodingTransformGenerator(binary2, encoding, !shouldEncode),
31649
- getSplitLinesGenerator(binary2, preserveNewlines, !shouldSplit, {})
31652
+ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [
31653
+ getEncodingTransformGenerator(binary, encoding, !shouldEncode),
31654
+ getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})
31650
31655
  ].filter(Boolean);
31651
31656
 
31652
31657
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/io/contents.js
@@ -32115,13 +32120,13 @@ var destroyOtherStream = (stream2, isOpen, error) => {
32115
32120
 
32116
32121
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/lib/convert/readable.js
32117
32122
  var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
32118
- const binary2 = binaryOption || BINARY_ENCODINGS.has(encoding);
32123
+ const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
32119
32124
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
32120
- const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary2);
32125
+ const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
32121
32126
  const { read, onStdoutDataDone } = getReadableMethods({
32122
32127
  subprocessStdout,
32123
32128
  subprocess,
32124
- binary: binary2,
32129
+ binary,
32125
32130
  encoding,
32126
32131
  preserveNewlines
32127
32132
  });
@@ -32145,14 +32150,14 @@ var getSubprocessStdout = (subprocess, from, concurrentStreams) => {
32145
32150
  const waitReadableDestroy = addConcurrentStream(concurrentStreams, subprocessStdout, "readableDestroy");
32146
32151
  return { subprocessStdout, waitReadableDestroy };
32147
32152
  };
32148
- var getReadableOptions = ({ readableEncoding, readableObjectMode, readableHighWaterMark }, binary2) => binary2 ? { readableEncoding, readableObjectMode, readableHighWaterMark } : { readableEncoding, readableObjectMode: true, readableHighWaterMark: DEFAULT_OBJECT_HIGH_WATER_MARK };
32149
- var getReadableMethods = ({ subprocessStdout, subprocess, binary: binary2, encoding, preserveNewlines }) => {
32153
+ var getReadableOptions = ({ readableEncoding, readableObjectMode, readableHighWaterMark }, binary) => binary ? { readableEncoding, readableObjectMode, readableHighWaterMark } : { readableEncoding, readableObjectMode: true, readableHighWaterMark: DEFAULT_OBJECT_HIGH_WATER_MARK };
32154
+ var getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, preserveNewlines }) => {
32150
32155
  const onStdoutDataDone = createDeferred();
32151
32156
  const onStdoutData = iterateOnSubprocessStream({
32152
32157
  subprocessStdout,
32153
32158
  subprocess,
32154
- binary: binary2,
32155
- shouldEncode: !binary2,
32159
+ binary,
32160
+ shouldEncode: !binary,
32156
32161
  encoding,
32157
32162
  preserveNewlines
32158
32163
  });
@@ -32270,14 +32275,14 @@ init_esm_shims();
32270
32275
  import { Duplex as Duplex3 } from "node:stream";
32271
32276
  import { callbackify as callbackify4 } from "node:util";
32272
32277
  var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
32273
- const binary2 = binaryOption || BINARY_ENCODINGS.has(encoding);
32278
+ const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
32274
32279
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
32275
32280
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
32276
- const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary2);
32281
+ const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
32277
32282
  const { read, onStdoutDataDone } = getReadableMethods({
32278
32283
  subprocessStdout,
32279
32284
  subprocess,
32280
- binary: binary2,
32285
+ binary,
32281
32286
  encoding,
32282
32287
  preserveNewlines
32283
32288
  });
@@ -32327,12 +32332,12 @@ var createIterable = (subprocess, encoding, {
32327
32332
  binary: binaryOption = false,
32328
32333
  preserveNewlines = false
32329
32334
  } = {}) => {
32330
- const binary2 = binaryOption || BINARY_ENCODINGS.has(encoding);
32335
+ const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
32331
32336
  const subprocessStdout = getFromStream(subprocess, from);
32332
32337
  const onStdoutData = iterateOnSubprocessStream({
32333
32338
  subprocessStdout,
32334
32339
  subprocess,
32335
- binary: binary2,
32340
+ binary,
32336
32341
  shouldEncode: true,
32337
32342
  encoding,
32338
32343
  preserveNewlines
@@ -32653,133 +32658,372 @@ var {
32653
32658
  getCancelSignal: getCancelSignal2
32654
32659
  } = getIpcExport();
32655
32660
 
32661
+ // ../../.yarn/cache/find-up-npm-7.0.0-a80086f7af-e6ee3e6154.zip/node_modules/find-up/index.js
32662
+ init_esm_shims();
32663
+ import path9 from "node:path";
32664
+
32665
+ // ../../.yarn/cache/locate-path-npm-7.2.0-454f209f37-139e8a7fe1.zip/node_modules/locate-path/index.js
32666
+ init_esm_shims();
32667
+ import process10 from "node:process";
32668
+ import path8 from "node:path";
32669
+ import fs2, { promises as fsPromises } from "node:fs";
32670
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
32671
+
32672
+ // ../../.yarn/cache/p-locate-npm-6.0.0-d73b86f7fc-d72fa2f41a.zip/node_modules/p-locate/index.js
32673
+ init_esm_shims();
32674
+
32675
+ // ../../.yarn/cache/p-limit-npm-4.0.0-6161fa2142-a56af34a77.zip/node_modules/p-limit/index.js
32676
+ init_esm_shims();
32677
+
32678
+ // ../../.yarn/cache/yocto-queue-npm-1.1.1-3796fef980-cb287fe5e6.zip/node_modules/yocto-queue/index.js
32679
+ init_esm_shims();
32680
+ var Node = class {
32681
+ value;
32682
+ next;
32683
+ constructor(value) {
32684
+ this.value = value;
32685
+ }
32686
+ };
32687
+ var Queue = class {
32688
+ #head;
32689
+ #tail;
32690
+ #size;
32691
+ constructor() {
32692
+ this.clear();
32693
+ }
32694
+ enqueue(value) {
32695
+ const node = new Node(value);
32696
+ if (this.#head) {
32697
+ this.#tail.next = node;
32698
+ this.#tail = node;
32699
+ } else {
32700
+ this.#head = node;
32701
+ this.#tail = node;
32702
+ }
32703
+ this.#size++;
32704
+ }
32705
+ dequeue() {
32706
+ const current = this.#head;
32707
+ if (!current) {
32708
+ return;
32709
+ }
32710
+ this.#head = this.#head.next;
32711
+ this.#size--;
32712
+ return current.value;
32713
+ }
32714
+ peek() {
32715
+ if (!this.#head) {
32716
+ return;
32717
+ }
32718
+ return this.#head.value;
32719
+ }
32720
+ clear() {
32721
+ this.#head = void 0;
32722
+ this.#tail = void 0;
32723
+ this.#size = 0;
32724
+ }
32725
+ get size() {
32726
+ return this.#size;
32727
+ }
32728
+ *[Symbol.iterator]() {
32729
+ let current = this.#head;
32730
+ while (current) {
32731
+ yield current.value;
32732
+ current = current.next;
32733
+ }
32734
+ }
32735
+ };
32736
+
32737
+ // ../../.yarn/cache/p-limit-npm-4.0.0-6161fa2142-a56af34a77.zip/node_modules/p-limit/index.js
32738
+ function pLimit(concurrency) {
32739
+ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
32740
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
32741
+ }
32742
+ const queue2 = new Queue();
32743
+ let activeCount = 0;
32744
+ const next = () => {
32745
+ activeCount--;
32746
+ if (queue2.size > 0) {
32747
+ queue2.dequeue()();
32748
+ }
32749
+ };
32750
+ const run = async (fn, resolve, args) => {
32751
+ activeCount++;
32752
+ const result = (async () => fn(...args))();
32753
+ resolve(result);
32754
+ try {
32755
+ await result;
32756
+ } catch {
32757
+ }
32758
+ next();
32759
+ };
32760
+ const enqueue = (fn, resolve, args) => {
32761
+ queue2.enqueue(run.bind(void 0, fn, resolve, args));
32762
+ (async () => {
32763
+ await Promise.resolve();
32764
+ if (activeCount < concurrency && queue2.size > 0) {
32765
+ queue2.dequeue()();
32766
+ }
32767
+ })();
32768
+ };
32769
+ const generator = (fn, ...args) => new Promise((resolve) => {
32770
+ enqueue(fn, resolve, args);
32771
+ });
32772
+ Object.defineProperties(generator, {
32773
+ activeCount: {
32774
+ get: () => activeCount
32775
+ },
32776
+ pendingCount: {
32777
+ get: () => queue2.size
32778
+ },
32779
+ clearQueue: {
32780
+ value: () => {
32781
+ queue2.clear();
32782
+ }
32783
+ }
32784
+ });
32785
+ return generator;
32786
+ }
32787
+
32788
+ // ../../.yarn/cache/p-locate-npm-6.0.0-d73b86f7fc-d72fa2f41a.zip/node_modules/p-locate/index.js
32789
+ var EndError = class extends Error {
32790
+ constructor(value) {
32791
+ super();
32792
+ this.value = value;
32793
+ }
32794
+ };
32795
+ var testElement = async (element, tester) => tester(await element);
32796
+ var finder = async (element) => {
32797
+ const values = await Promise.all(element);
32798
+ if (values[1] === true) {
32799
+ throw new EndError(values[0]);
32800
+ }
32801
+ return false;
32802
+ };
32803
+ async function pLocate(iterable, tester, {
32804
+ concurrency = Number.POSITIVE_INFINITY,
32805
+ preserveOrder = true
32806
+ } = {}) {
32807
+ const limit = pLimit(concurrency);
32808
+ const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
32809
+ const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
32810
+ try {
32811
+ await Promise.all(items.map((element) => checkLimit(finder, element)));
32812
+ } catch (error) {
32813
+ if (error instanceof EndError) {
32814
+ return error.value;
32815
+ }
32816
+ throw error;
32817
+ }
32818
+ }
32819
+
32820
+ // ../../.yarn/cache/locate-path-npm-7.2.0-454f209f37-139e8a7fe1.zip/node_modules/locate-path/index.js
32821
+ var typeMappings = {
32822
+ directory: "isDirectory",
32823
+ file: "isFile"
32824
+ };
32825
+ function checkType(type) {
32826
+ if (Object.hasOwnProperty.call(typeMappings, type)) {
32827
+ return;
32828
+ }
32829
+ throw new Error(`Invalid type specified: ${type}`);
32830
+ }
32831
+ var matchType = (type, stat) => stat[typeMappings[type]]();
32832
+ var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath4(urlOrPath) : urlOrPath;
32833
+ async function locatePath(paths, {
32834
+ cwd = process10.cwd(),
32835
+ type = "file",
32836
+ allowSymlinks = true,
32837
+ concurrency,
32838
+ preserveOrder
32839
+ } = {}) {
32840
+ checkType(type);
32841
+ cwd = toPath2(cwd);
32842
+ const statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;
32843
+ return pLocate(paths, async (path_) => {
32844
+ try {
32845
+ const stat = await statFunction(path8.resolve(cwd, path_));
32846
+ return matchType(type, stat);
32847
+ } catch {
32848
+ return false;
32849
+ }
32850
+ }, { concurrency, preserveOrder });
32851
+ }
32852
+
32853
+ // ../../.yarn/cache/unicorn-magic-npm-0.1.0-352b6e3681-e4ed0de05b.zip/node_modules/unicorn-magic/node.js
32854
+ init_esm_shims();
32855
+ import { fileURLToPath as fileURLToPath5 } from "node:url";
32856
+ function toPath3(urlOrPath) {
32857
+ return urlOrPath instanceof URL ? fileURLToPath5(urlOrPath) : urlOrPath;
32858
+ }
32859
+
32860
+ // ../../.yarn/cache/path-exists-npm-5.0.0-126b43894b-b170f3060b.zip/node_modules/path-exists/index.js
32861
+ init_esm_shims();
32862
+
32863
+ // ../../.yarn/cache/find-up-npm-7.0.0-a80086f7af-e6ee3e6154.zip/node_modules/find-up/index.js
32864
+ var findUpStop = Symbol("findUpStop");
32865
+ async function findUpMultiple(name, options = {}) {
32866
+ let directory = path9.resolve(toPath3(options.cwd) ?? "");
32867
+ const { root } = path9.parse(directory);
32868
+ const stopAt = path9.resolve(directory, toPath3(options.stopAt ?? root));
32869
+ const limit = options.limit ?? Number.POSITIVE_INFINITY;
32870
+ const paths = [name].flat();
32871
+ const runMatcher = async (locateOptions) => {
32872
+ if (typeof name !== "function") {
32873
+ return locatePath(paths, locateOptions);
32874
+ }
32875
+ const foundPath = await name(locateOptions.cwd);
32876
+ if (typeof foundPath === "string") {
32877
+ return locatePath([foundPath], locateOptions);
32878
+ }
32879
+ return foundPath;
32880
+ };
32881
+ const matches = [];
32882
+ while (true) {
32883
+ const foundPath = await runMatcher({ ...options, cwd: directory });
32884
+ if (foundPath === findUpStop) {
32885
+ break;
32886
+ }
32887
+ if (foundPath) {
32888
+ matches.push(path9.resolve(directory, foundPath));
32889
+ }
32890
+ if (directory === stopAt || matches.length >= limit) {
32891
+ break;
32892
+ }
32893
+ directory = path9.dirname(directory);
32894
+ }
32895
+ return matches;
32896
+ }
32897
+ async function findUp(name, options = {}) {
32898
+ const matches = await findUpMultiple(name, { ...options, limit: 1 });
32899
+ return matches[0];
32900
+ }
32901
+
32902
+ // src/plugins/utils/getPackageRoot.ts
32903
+ init_esm_shims();
32904
+ import fs3 from "fs";
32905
+ import path10 from "path";
32906
+ function getPackageRoot() {
32907
+ let cwd = process.cwd();
32908
+ const root = path10.parse(cwd).root;
32909
+ while (cwd !== root) {
32910
+ if (fs3.existsSync(path10.join(cwd, "package.json"))) {
32911
+ return cwd;
32912
+ }
32913
+ cwd = path10.dirname(cwd);
32914
+ }
32915
+ return cwd;
32916
+ }
32917
+
32918
+ // src/constants.ts
32919
+ init_esm_shims();
32920
+ var REACT_NATIVE_VERSION = "0_72_6";
32921
+
32656
32922
  // src/plugins/utils/compileHbc.ts
32657
- var binary = {
32658
- Darwin: "react-native/sdks/hermesc/osx-bin/hermesc",
32659
- Linux: "react-native/sdks/hermesc/linux64-bin/hermesc",
32660
- Windows_NT: void 0
32661
- };
32662
- async function compileHbc({ rootDir, reactNativeProjectDir, filePath }) {
32663
- const bindary = getHermesc(reactNativeProjectDir);
32664
- const outfile = path7.resolve(rootDir, filePath.replace(new RegExp(`${path7.extname(filePath)}$`), ".hbc"));
32665
- await execa(bindary, ["-w", "-emit-binary", "-out", outfile, filePath]);
32923
+ async function compileHbc({ outdir, filePath }) {
32924
+ const packageRoot = getPackageRoot();
32925
+ const bindary = await findHermesBinary();
32926
+ const binaryPath = path11.join(packageRoot, ".bedrock", "hermesc");
32927
+ await fs4.promises.copyFile(bindary, binaryPath);
32928
+ const outfile = path11.resolve(outdir, filePath.replace(new RegExp(`${path11.extname(filePath)}$`), ".hbc"));
32929
+ await execa(binaryPath, ["-w", "-emit-binary", "-out", outfile, filePath]);
32666
32930
  return { outfile };
32667
32931
  }
32668
- function getHermesc(rootDir) {
32669
- const os3 = getOs();
32670
- const binarySource = binary[os3];
32671
- assert(binarySource, `\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 OS \uC785\uB2C8\uB2E4: ${os3}`);
32672
- return resolveFromRoot(rootDir, binarySource);
32932
+ function getHermesOSBin() {
32933
+ switch (process.platform) {
32934
+ case "win32":
32935
+ return "win64-bin";
32936
+ case "darwin":
32937
+ return "osx-bin";
32938
+ default:
32939
+ return "linux64-bin";
32940
+ }
32673
32941
  }
32674
- function getOs() {
32675
- return os.type();
32942
+ function getHermesOSExe() {
32943
+ const hermesExecutableName = "hermesc";
32944
+ return process.platform === "win32" ? `${hermesExecutableName}.exe` : hermesExecutableName;
32676
32945
  }
32677
- function resolveFromRoot(rootDir, request) {
32678
- return __require.resolve(request, { paths: [rootDir] });
32946
+ async function findHermesBinary() {
32947
+ const hermescPath = await findUp("hermesc", {
32948
+ cwd: __dirname,
32949
+ type: "directory"
32950
+ });
32951
+ if (!hermescPath) {
32952
+ throw new Error("hermesc \uBC14\uC774\uB108\uB9AC\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
32953
+ }
32954
+ return path11.join(hermescPath, REACT_NATIVE_VERSION, getHermesOSBin(), getHermesOSExe());
32679
32955
  }
32680
32956
 
32681
32957
  // src/plugins/utils/compressToGzip.ts
32682
32958
  init_esm_shims();
32683
- import fs2 from "fs";
32684
- import path8 from "path";
32959
+ import fs5 from "fs";
32685
32960
  import stream from "stream";
32686
32961
  import util from "util";
32687
32962
  import zlib from "zlib";
32688
32963
  var pipelinePromisify = util.promisify(stream.pipeline);
32689
32964
  async function compressToGzip(options) {
32690
- const { rootDir, filePath } = options;
32691
- const inputPath = path8.resolve(rootDir, filePath);
32692
- const outfile = `${inputPath}.gz`;
32693
- await pipelinePromisify(fs2.createReadStream(inputPath), zlib.createGzip({ level: 9 }), fs2.createWriteStream(outfile));
32965
+ const { inputPath, outfile } = options;
32966
+ await pipelinePromisify(fs5.createReadStream(inputPath), zlib.createGzip({ level: 9 }), fs5.createWriteStream(outfile));
32694
32967
  return { outfile };
32695
32968
  }
32696
32969
 
32697
32970
  // src/plugins/utils/createCompressedBytecode.ts
32698
- async function createCompressedBytecode(buildResult, { rootDir, reactNativeProjectDir }) {
32971
+ async function createCompressedBytecode(buildResult, { outdir }) {
32699
32972
  const { outfile: jsBundle } = buildResult;
32700
32973
  const { outfile: hbcFile } = await compileHbc({
32701
- reactNativeProjectDir,
32702
- rootDir,
32974
+ outdir,
32703
32975
  filePath: jsBundle
32704
32976
  });
32705
32977
  const { outfile: gzipFile } = await compressToGzip({
32706
- rootDir,
32707
- filePath: hbcFile
32978
+ inputPath: path12.resolve(outdir, hbcFile),
32979
+ outfile: path12.resolve(outdir, `${hbcFile}.gz`)
32708
32980
  });
32709
32981
  return { origin: hbcFile, compressed: gzipFile };
32710
32982
  }
32711
32983
 
32712
32984
  // src/plugins/utils/createManifestWithBuildMeta.ts
32713
32985
  init_esm_shims();
32714
- import * as fs3 from "fs/promises";
32715
- import * as os2 from "os";
32716
- import * as path9 from "path";
32986
+ import * as fs6 from "fs/promises";
32987
+ import * as os from "os";
32988
+ import * as path13 from "path";
32717
32989
  async function createManifestWithBuildMeta(manifest, metadata) {
32718
32990
  const newManifest = { ...manifest, _metadata: metadata };
32719
32991
  const data = JSON.stringify(newManifest, null, 2);
32720
- const outfile = path9.join(os2.tmpdir(), APP_MANIFEST_NAME);
32721
- await fs3.writeFile(outfile, data, "utf-8");
32992
+ const outfile = path13.join(os.tmpdir(), APP_MANIFEST_NAME);
32993
+ await fs6.writeFile(outfile, data, "utf-8");
32722
32994
  return outfile;
32723
32995
  }
32724
32996
 
32725
- // src/plugins/utils/getBundleName.ts
32726
- init_esm_shims();
32727
- function normalizeRuntimeVersion(version) {
32728
- return version.replace(/[^0-9]/g, "_");
32729
- }
32730
- function getBundleName({ platform: platform2, runtime, tag }) {
32731
- const taggedSuffix = tag ? `-${tag}` : "";
32732
- return `bundle.${platform2}.${normalizeRuntimeVersion(runtime)}${taggedSuffix}`;
32733
- }
32734
-
32735
- // src/plugins/utils/getRuntimeVersion.ts
32736
- init_esm_shims();
32737
- import assert2 from "assert";
32738
- import * as fs4 from "fs/promises";
32739
- async function getRuntimeVersion(rootDir) {
32740
- const reactNativePackageJson = __require.resolve("react-native/package.json", { paths: [rootDir] });
32741
- const rawPackageJson = await fs4.readFile(reactNativePackageJson, "utf-8");
32742
- const packageJson = JSON.parse(rawPackageJson);
32743
- assert2(packageJson.version, "invalid react-native version");
32744
- return packageJson.version;
32745
- }
32746
-
32747
32997
  // src/plugins/utils/loadAppManifest.ts
32748
32998
  init_esm_shims();
32749
- import * as fs5 from "fs/promises";
32750
- import * as path10 from "path";
32999
+ import * as fs7 from "fs/promises";
33000
+ import * as path14 from "path";
32751
33001
  async function resolveAppManifestPath(rootDir) {
32752
- const appManifestPath = path10.join(rootDir, ".bedrock", APP_MANIFEST_NAME);
32753
- await fs5.access(appManifestPath, fs5.constants.F_OK);
33002
+ const appManifestPath = path14.join(rootDir, ".bedrock", APP_MANIFEST_NAME);
33003
+ await fs7.access(appManifestPath, fs7.constants.F_OK);
32754
33004
  return appManifestPath;
32755
33005
  }
32756
33006
  async function loadAppManifest(rootDir) {
32757
33007
  const appJsonPath = await resolveAppManifestPath(rootDir);
32758
- const appJson = await fs5.readFile(appJsonPath, "utf8");
33008
+ const appJson = await fs7.readFile(appJsonPath, "utf8");
32759
33009
  return JSON.parse(appJson);
32760
33010
  }
32761
33011
 
32762
33012
  // src/plugins/utils/createArtifact.ts
32763
33013
  async function createArtifact({
32764
33014
  buildResults,
32765
- rootDir,
33015
+ outdir,
32766
33016
  deploymentId,
32767
33017
  webOutDir,
32768
- reactNativeProjectDir
33018
+ cwd
32769
33019
  }) {
32770
- const manifest = await loadAppManifest(rootDir);
32771
- const runtimeVersion = await getRuntimeVersion(reactNativeProjectDir);
33020
+ const manifest = await loadAppManifest(cwd);
32772
33021
  const bundleFiles = await Promise.all(
32773
33022
  buildResults.map(async (buildResult) => {
32774
33023
  const { compressed } = await createCompressedBytecode(buildResult, {
32775
- rootDir,
32776
- reactNativeProjectDir
32777
- });
32778
- const basename2 = getBundleName({
32779
- platform: buildResult.platform,
32780
- runtime: runtimeVersion
33024
+ outdir
32781
33025
  });
32782
- return { path: compressed, name: `${basename2}.hbc.gz` };
33026
+ return { path: compressed, name: `bundle.${buildResult.platform}.${REACT_NATIVE_VERSION}.hbc.gz` };
32783
33027
  })
32784
33028
  );
32785
33029
  const manifestPath = await createManifestWithBuildMeta(manifest, {
@@ -32787,20 +33031,20 @@ async function createArtifact({
32787
33031
  bundleFiles: bundleFiles.map(({ name }) => name)
32788
33032
  });
32789
33033
  const manifestFile = { path: manifestPath, name: APP_MANIFEST_NAME };
32790
- const outfile = path11.join(rootDir, `${manifest.appName}.ait`);
33034
+ const outfile = path15.join(cwd, `${manifest.appName}.ait`);
32791
33035
  const webFilesWithPath = [];
32792
33036
  if (webOutDir) {
32793
33037
  try {
32794
- const allFiles = await fs6.readdir(webOutDir, { recursive: true });
33038
+ const allFiles = await fs8.readdir(webOutDir, { recursive: true });
32795
33039
  const webFiles = await Promise.all(
32796
33040
  allFiles.map(async (file) => {
32797
- const filePath = path11.join(webOutDir, file);
32798
- const stat = await fs6.stat(filePath);
33041
+ const filePath = path15.join(webOutDir, file);
33042
+ const stat = await fs8.stat(filePath);
32799
33043
  return stat.isFile() ? file : null;
32800
33044
  })
32801
33045
  ).then((files) => files.filter((file) => file !== null));
32802
33046
  webFilesWithPath.push(
32803
- ...webFiles.map((file) => ({ path: path11.join(webOutDir, file), name: path11.join("web", file) }))
33047
+ ...webFiles.map((file) => ({ path: path15.join(webOutDir, file), name: path15.join("web", file) }))
32804
33048
  );
32805
33049
  } catch {
32806
33050
  }
@@ -32966,42 +33210,25 @@ function generateDeploymentId() {
32966
33210
  return v7_default();
32967
33211
  }
32968
33212
 
32969
- // src/plugins/utils/getPackageRoot.ts
32970
- init_esm_shims();
32971
- import fs7 from "fs";
32972
- import path12 from "path";
32973
- function getPackageRoot() {
32974
- let cwd = process.cwd();
32975
- const root = path12.parse(cwd).root;
32976
- while (cwd !== root) {
32977
- if (fs7.existsSync(path12.join(cwd, "package.json"))) {
32978
- return cwd;
32979
- }
32980
- cwd = path12.dirname(cwd);
32981
- }
32982
- return cwd;
32983
- }
32984
-
32985
33213
  // src/plugins/appsInToss.ts
32986
33214
  function appsInTossCreateArtifact(deploymentId) {
32987
- const packageRoot = getPackageRoot();
32988
33215
  return {
32989
33216
  name: "apps-in-toss:create-artifact",
32990
33217
  build: {
32991
33218
  order: "post",
32992
33219
  handler: async ({ buildResults, cwd, outdir }) => {
32993
- const webDistDir = path13.join(outdir, "web");
33220
+ const webDistDir = path16.join(outdir, "web");
32994
33221
  const artifactOutfile = await createArtifact({
32995
33222
  buildResults,
32996
33223
  deploymentId,
32997
- rootDir: packageRoot,
32998
- reactNativeProjectDir: cwd,
32999
- webOutDir: webDistDir
33224
+ outdir,
33225
+ webOutDir: webDistDir,
33226
+ cwd
33000
33227
  });
33001
33228
  if (!artifactOutfile) {
33002
33229
  throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
33003
33230
  }
33004
- const filename = path13.basename(artifactOutfile);
33231
+ const filename = path16.basename(artifactOutfile);
33005
33232
  console.log(`\u2705 ${import_picocolors.default.green(`${filename}`)} \uBE4C\uB4DC \uC644\uB8CC`);
33006
33233
  }
33007
33234
  }
@@ -33055,20 +33282,24 @@ function appsInTossDevServer(options) {
33055
33282
  async function appsInTossAppJson(options) {
33056
33283
  const packageRoot = getPackageRoot();
33057
33284
  const handleAppJson = async (appName) => {
33058
- const appJsonPath = path13.join(packageRoot, ".bedrock", APP_MANIFEST_NAME);
33285
+ const appJsonPath = path16.join(packageRoot, ".bedrock", APP_MANIFEST_NAME);
33059
33286
  const appJsonObject = {
33060
33287
  appName,
33061
33288
  permissions: options.permissions,
33062
33289
  oauth: options.oauth
33063
33290
  };
33064
- await fs8.promises.mkdir(path13.dirname(appJsonPath), { recursive: true });
33291
+ await fs9.promises.mkdir(path16.dirname(appJsonPath), { recursive: true });
33065
33292
  try {
33066
- const existingAppJson = await fs8.promises.readFile(appJsonPath, "utf8");
33293
+ const existingAppJson = await fs9.promises.readFile(appJsonPath, "utf8");
33067
33294
  const existingAppJsonObject = JSON.parse(existingAppJson);
33068
- Object.assign(appJsonObject, existingAppJsonObject, { appName, permissions: appJsonObject.permissions });
33295
+ Object.assign(appJsonObject, existingAppJsonObject, {
33296
+ appName,
33297
+ permissions: appJsonObject.permissions,
33298
+ oauth: appJsonObject.oauth
33299
+ });
33069
33300
  } catch (error) {
33070
33301
  }
33071
- await fs8.promises.writeFile(appJsonPath, JSON.stringify(appJsonObject, null, 2), "utf8");
33302
+ await fs9.promises.writeFile(appJsonPath, JSON.stringify(appJsonObject, null, 2), "utf8");
33072
33303
  };
33073
33304
  return {
33074
33305
  name: "apps-in-toss:app-json",