microfox 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -8885,11 +8885,11 @@ var require_mime_types = __commonJS({
8885
8885
  }
8886
8886
  return exts[0];
8887
8887
  }
8888
- function lookup(path11) {
8889
- if (!path11 || typeof path11 !== "string") {
8888
+ function lookup(path12) {
8889
+ if (!path12 || typeof path12 !== "string") {
8890
8890
  return false;
8891
8891
  }
8892
- var extension2 = extname("x." + path11).toLowerCase().substr(1);
8892
+ var extension2 = extname("x." + path12).toLowerCase().substr(1);
8893
8893
  if (!extension2) {
8894
8894
  return false;
8895
8895
  }
@@ -10004,11 +10004,11 @@ var require_form_data = __commonJS({
10004
10004
  "use strict";
10005
10005
  var CombinedStream = require_combined_stream();
10006
10006
  var util3 = __require("util");
10007
- var path11 = __require("path");
10007
+ var path12 = __require("path");
10008
10008
  var http2 = __require("http");
10009
10009
  var https2 = __require("https");
10010
10010
  var parseUrl = __require("url").parse;
10011
- var fs9 = __require("fs");
10011
+ var fs10 = __require("fs");
10012
10012
  var Stream = __require("stream").Stream;
10013
10013
  var crypto2 = __require("crypto");
10014
10014
  var mime = require_mime_types();
@@ -10075,7 +10075,7 @@ var require_form_data = __commonJS({
10075
10075
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
10076
10076
  callback(null, value.end + 1 - (value.start ? value.start : 0));
10077
10077
  } else {
10078
- fs9.stat(value.path, function(err, stat) {
10078
+ fs10.stat(value.path, function(err, stat) {
10079
10079
  if (err) {
10080
10080
  callback(err);
10081
10081
  return;
@@ -10132,11 +10132,11 @@ var require_form_data = __commonJS({
10132
10132
  FormData4.prototype._getContentDisposition = function(value, options) {
10133
10133
  var filename;
10134
10134
  if (typeof options.filepath === "string") {
10135
- filename = path11.normalize(options.filepath).replace(/\\/g, "/");
10135
+ filename = path12.normalize(options.filepath).replace(/\\/g, "/");
10136
10136
  } else if (options.filename || value && (value.name || value.path)) {
10137
- filename = path11.basename(options.filename || value && (value.name || value.path));
10137
+ filename = path12.basename(options.filename || value && (value.name || value.path));
10138
10138
  } else if (value && value.readable && hasOwn(value, "httpVersion")) {
10139
- filename = path11.basename(value.client._httpMessage.path || "");
10139
+ filename = path12.basename(value.client._httpMessage.path || "");
10140
10140
  }
10141
10141
  if (filename) {
10142
10142
  return 'filename="' + filename + '"';
@@ -12644,7 +12644,7 @@ var require_braces = __commonJS({
12644
12644
  var require_constants2 = __commonJS({
12645
12645
  "../../node_modules/picomatch/lib/constants.js"(exports, module) {
12646
12646
  "use strict";
12647
- var path11 = __require("path");
12647
+ var path12 = __require("path");
12648
12648
  var WIN_SLASH = "\\\\/";
12649
12649
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
12650
12650
  var DOT_LITERAL = "\\.";
@@ -12814,7 +12814,7 @@ var require_constants2 = __commonJS({
12814
12814
  /* | */
12815
12815
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
12816
12816
  /* \uFEFF */
12817
- SEP: path11.sep,
12817
+ SEP: path12.sep,
12818
12818
  /**
12819
12819
  * Create EXTGLOB_CHARS
12820
12820
  */
@@ -12841,7 +12841,7 @@ var require_constants2 = __commonJS({
12841
12841
  var require_utils2 = __commonJS({
12842
12842
  "../../node_modules/picomatch/lib/utils.js"(exports) {
12843
12843
  "use strict";
12844
- var path11 = __require("path");
12844
+ var path12 = __require("path");
12845
12845
  var win32 = process.platform === "win32";
12846
12846
  var {
12847
12847
  REGEX_BACKSLASH,
@@ -12870,7 +12870,7 @@ var require_utils2 = __commonJS({
12870
12870
  if (options && typeof options.windows === "boolean") {
12871
12871
  return options.windows;
12872
12872
  }
12873
- return win32 === true || path11.sep === "\\";
12873
+ return win32 === true || path12.sep === "\\";
12874
12874
  };
12875
12875
  exports.escapeLast = (input, char, lastIdx) => {
12876
12876
  const idx = input.lastIndexOf(char, lastIdx);
@@ -14005,7 +14005,7 @@ var require_parse2 = __commonJS({
14005
14005
  var require_picomatch = __commonJS({
14006
14006
  "../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
14007
14007
  "use strict";
14008
- var path11 = __require("path");
14008
+ var path12 = __require("path");
14009
14009
  var scan = require_scan();
14010
14010
  var parse = require_parse2();
14011
14011
  var utils = require_utils2();
@@ -14090,7 +14090,7 @@ var require_picomatch = __commonJS({
14090
14090
  };
14091
14091
  picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
14092
14092
  const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
14093
- return regex.test(path11.basename(input));
14093
+ return regex.test(path12.basename(input));
14094
14094
  };
14095
14095
  picomatch.isMatch = (str2, patterns, options) => picomatch(patterns, options)(str2);
14096
14096
  picomatch.parse = (pattern, options) => {
@@ -14483,8 +14483,8 @@ var require_minimatch = __commonJS({
14483
14483
  return new Minimatch(pattern, options).match(p);
14484
14484
  };
14485
14485
  module.exports = minimatch;
14486
- var path11 = require_path();
14487
- minimatch.sep = path11.sep;
14486
+ var path12 = require_path();
14487
+ minimatch.sep = path12.sep;
14488
14488
  var GLOBSTAR = Symbol("globstar **");
14489
14489
  minimatch.GLOBSTAR = GLOBSTAR;
14490
14490
  var expand = require_brace_expansion2();
@@ -14993,8 +14993,8 @@ var require_minimatch = __commonJS({
14993
14993
  if (this.empty) return f === "";
14994
14994
  if (f === "/" && partial) return true;
14995
14995
  const options = this.options;
14996
- if (path11.sep !== "/") {
14997
- f = f.split(path11.sep).join("/");
14996
+ if (path12.sep !== "/") {
14997
+ f = f.split(path12.sep).join("/");
14998
14998
  }
14999
14999
  f = f.split(slashSplit);
15000
15000
  this.debug(this.pattern, "split", f);
@@ -15033,13 +15033,13 @@ var require_readdir_glob = __commonJS({
15033
15033
  "../../node_modules/readdir-glob/index.js"(exports, module) {
15034
15034
  "use strict";
15035
15035
  module.exports = readdirGlob;
15036
- var fs9 = __require("fs");
15036
+ var fs10 = __require("fs");
15037
15037
  var { EventEmitter: EventEmitter2 } = __require("events");
15038
15038
  var { Minimatch } = require_minimatch();
15039
15039
  var { resolve: resolve3 } = __require("path");
15040
15040
  function readdir(dir2, strict) {
15041
15041
  return new Promise((resolve4, reject2) => {
15042
- fs9.readdir(dir2, { withFileTypes: true }, (err, files) => {
15042
+ fs10.readdir(dir2, { withFileTypes: true }, (err, files) => {
15043
15043
  if (err) {
15044
15044
  switch (err.code) {
15045
15045
  case "ENOTDIR":
@@ -15072,7 +15072,7 @@ var require_readdir_glob = __commonJS({
15072
15072
  }
15073
15073
  function stat(file, followSymlinks) {
15074
15074
  return new Promise((resolve4, reject2) => {
15075
- const statFunc = followSymlinks ? fs9.stat : fs9.lstat;
15075
+ const statFunc = followSymlinks ? fs10.stat : fs10.lstat;
15076
15076
  statFunc(file, (err, stats) => {
15077
15077
  if (err) {
15078
15078
  switch (err.code) {
@@ -15093,8 +15093,8 @@ var require_readdir_glob = __commonJS({
15093
15093
  });
15094
15094
  });
15095
15095
  }
15096
- async function* exploreWalkAsync(dir2, path11, followSymlinks, useStat, shouldSkip, strict) {
15097
- let files = await readdir(path11 + dir2, strict);
15096
+ async function* exploreWalkAsync(dir2, path12, followSymlinks, useStat, shouldSkip, strict) {
15097
+ let files = await readdir(path12 + dir2, strict);
15098
15098
  for (const file of files) {
15099
15099
  let name = file.name;
15100
15100
  if (name === void 0) {
@@ -15103,7 +15103,7 @@ var require_readdir_glob = __commonJS({
15103
15103
  }
15104
15104
  const filename = dir2 + "/" + name;
15105
15105
  const relative = filename.slice(1);
15106
- const absolute = path11 + "/" + relative;
15106
+ const absolute = path12 + "/" + relative;
15107
15107
  let stats = null;
15108
15108
  if (useStat || followSymlinks) {
15109
15109
  stats = await stat(absolute, followSymlinks);
@@ -15117,15 +15117,15 @@ var require_readdir_glob = __commonJS({
15117
15117
  if (stats.isDirectory()) {
15118
15118
  if (!shouldSkip(relative)) {
15119
15119
  yield { relative, absolute, stats };
15120
- yield* exploreWalkAsync(filename, path11, followSymlinks, useStat, shouldSkip, false);
15120
+ yield* exploreWalkAsync(filename, path12, followSymlinks, useStat, shouldSkip, false);
15121
15121
  }
15122
15122
  } else {
15123
15123
  yield { relative, absolute, stats };
15124
15124
  }
15125
15125
  }
15126
15126
  }
15127
- async function* explore(path11, followSymlinks, useStat, shouldSkip) {
15128
- yield* exploreWalkAsync("", path11, followSymlinks, useStat, shouldSkip, true);
15127
+ async function* explore(path12, followSymlinks, useStat, shouldSkip) {
15128
+ yield* exploreWalkAsync("", path12, followSymlinks, useStat, shouldSkip, true);
15129
15129
  }
15130
15130
  function readOptions(options) {
15131
15131
  return {
@@ -17135,54 +17135,54 @@ var require_polyfills = __commonJS({
17135
17135
  }
17136
17136
  var chdir;
17137
17137
  module.exports = patch;
17138
- function patch(fs9) {
17138
+ function patch(fs10) {
17139
17139
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
17140
- patchLchmod(fs9);
17141
- }
17142
- if (!fs9.lutimes) {
17143
- patchLutimes(fs9);
17144
- }
17145
- fs9.chown = chownFix(fs9.chown);
17146
- fs9.fchown = chownFix(fs9.fchown);
17147
- fs9.lchown = chownFix(fs9.lchown);
17148
- fs9.chmod = chmodFix(fs9.chmod);
17149
- fs9.fchmod = chmodFix(fs9.fchmod);
17150
- fs9.lchmod = chmodFix(fs9.lchmod);
17151
- fs9.chownSync = chownFixSync(fs9.chownSync);
17152
- fs9.fchownSync = chownFixSync(fs9.fchownSync);
17153
- fs9.lchownSync = chownFixSync(fs9.lchownSync);
17154
- fs9.chmodSync = chmodFixSync(fs9.chmodSync);
17155
- fs9.fchmodSync = chmodFixSync(fs9.fchmodSync);
17156
- fs9.lchmodSync = chmodFixSync(fs9.lchmodSync);
17157
- fs9.stat = statFix(fs9.stat);
17158
- fs9.fstat = statFix(fs9.fstat);
17159
- fs9.lstat = statFix(fs9.lstat);
17160
- fs9.statSync = statFixSync(fs9.statSync);
17161
- fs9.fstatSync = statFixSync(fs9.fstatSync);
17162
- fs9.lstatSync = statFixSync(fs9.lstatSync);
17163
- if (fs9.chmod && !fs9.lchmod) {
17164
- fs9.lchmod = function(path11, mode, cb) {
17140
+ patchLchmod(fs10);
17141
+ }
17142
+ if (!fs10.lutimes) {
17143
+ patchLutimes(fs10);
17144
+ }
17145
+ fs10.chown = chownFix(fs10.chown);
17146
+ fs10.fchown = chownFix(fs10.fchown);
17147
+ fs10.lchown = chownFix(fs10.lchown);
17148
+ fs10.chmod = chmodFix(fs10.chmod);
17149
+ fs10.fchmod = chmodFix(fs10.fchmod);
17150
+ fs10.lchmod = chmodFix(fs10.lchmod);
17151
+ fs10.chownSync = chownFixSync(fs10.chownSync);
17152
+ fs10.fchownSync = chownFixSync(fs10.fchownSync);
17153
+ fs10.lchownSync = chownFixSync(fs10.lchownSync);
17154
+ fs10.chmodSync = chmodFixSync(fs10.chmodSync);
17155
+ fs10.fchmodSync = chmodFixSync(fs10.fchmodSync);
17156
+ fs10.lchmodSync = chmodFixSync(fs10.lchmodSync);
17157
+ fs10.stat = statFix(fs10.stat);
17158
+ fs10.fstat = statFix(fs10.fstat);
17159
+ fs10.lstat = statFix(fs10.lstat);
17160
+ fs10.statSync = statFixSync(fs10.statSync);
17161
+ fs10.fstatSync = statFixSync(fs10.fstatSync);
17162
+ fs10.lstatSync = statFixSync(fs10.lstatSync);
17163
+ if (fs10.chmod && !fs10.lchmod) {
17164
+ fs10.lchmod = function(path12, mode, cb) {
17165
17165
  if (cb) process.nextTick(cb);
17166
17166
  };
17167
- fs9.lchmodSync = function() {
17167
+ fs10.lchmodSync = function() {
17168
17168
  };
17169
17169
  }
17170
- if (fs9.chown && !fs9.lchown) {
17171
- fs9.lchown = function(path11, uid, gid, cb) {
17170
+ if (fs10.chown && !fs10.lchown) {
17171
+ fs10.lchown = function(path12, uid, gid, cb) {
17172
17172
  if (cb) process.nextTick(cb);
17173
17173
  };
17174
- fs9.lchownSync = function() {
17174
+ fs10.lchownSync = function() {
17175
17175
  };
17176
17176
  }
17177
17177
  if (platform === "win32") {
17178
- fs9.rename = typeof fs9.rename !== "function" ? fs9.rename : function(fs$rename) {
17178
+ fs10.rename = typeof fs10.rename !== "function" ? fs10.rename : function(fs$rename) {
17179
17179
  function rename(from, to, cb) {
17180
17180
  var start = Date.now();
17181
17181
  var backoff = 0;
17182
17182
  fs$rename(from, to, function CB(er) {
17183
17183
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
17184
17184
  setTimeout(function() {
17185
- fs9.stat(to, function(stater, st) {
17185
+ fs10.stat(to, function(stater, st) {
17186
17186
  if (stater && stater.code === "ENOENT")
17187
17187
  fs$rename(from, to, CB);
17188
17188
  else
@@ -17198,9 +17198,9 @@ var require_polyfills = __commonJS({
17198
17198
  }
17199
17199
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
17200
17200
  return rename;
17201
- }(fs9.rename);
17201
+ }(fs10.rename);
17202
17202
  }
17203
- fs9.read = typeof fs9.read !== "function" ? fs9.read : function(fs$read) {
17203
+ fs10.read = typeof fs10.read !== "function" ? fs10.read : function(fs$read) {
17204
17204
  function read(fd, buffer, offset, length, position, callback_) {
17205
17205
  var callback;
17206
17206
  if (callback_ && typeof callback_ === "function") {
@@ -17208,22 +17208,22 @@ var require_polyfills = __commonJS({
17208
17208
  callback = function(er, _2, __) {
17209
17209
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
17210
17210
  eagCounter++;
17211
- return fs$read.call(fs9, fd, buffer, offset, length, position, callback);
17211
+ return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
17212
17212
  }
17213
17213
  callback_.apply(this, arguments);
17214
17214
  };
17215
17215
  }
17216
- return fs$read.call(fs9, fd, buffer, offset, length, position, callback);
17216
+ return fs$read.call(fs10, fd, buffer, offset, length, position, callback);
17217
17217
  }
17218
17218
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
17219
17219
  return read;
17220
- }(fs9.read);
17221
- fs9.readSync = typeof fs9.readSync !== "function" ? fs9.readSync : /* @__PURE__ */ function(fs$readSync) {
17220
+ }(fs10.read);
17221
+ fs10.readSync = typeof fs10.readSync !== "function" ? fs10.readSync : /* @__PURE__ */ function(fs$readSync) {
17222
17222
  return function(fd, buffer, offset, length, position) {
17223
17223
  var eagCounter = 0;
17224
17224
  while (true) {
17225
17225
  try {
17226
- return fs$readSync.call(fs9, fd, buffer, offset, length, position);
17226
+ return fs$readSync.call(fs10, fd, buffer, offset, length, position);
17227
17227
  } catch (er) {
17228
17228
  if (er.code === "EAGAIN" && eagCounter < 10) {
17229
17229
  eagCounter++;
@@ -17233,11 +17233,11 @@ var require_polyfills = __commonJS({
17233
17233
  }
17234
17234
  }
17235
17235
  };
17236
- }(fs9.readSync);
17237
- function patchLchmod(fs10) {
17238
- fs10.lchmod = function(path11, mode, callback) {
17239
- fs10.open(
17240
- path11,
17236
+ }(fs10.readSync);
17237
+ function patchLchmod(fs11) {
17238
+ fs11.lchmod = function(path12, mode, callback) {
17239
+ fs11.open(
17240
+ path12,
17241
17241
  constants.O_WRONLY | constants.O_SYMLINK,
17242
17242
  mode,
17243
17243
  function(err, fd) {
@@ -17245,80 +17245,80 @@ var require_polyfills = __commonJS({
17245
17245
  if (callback) callback(err);
17246
17246
  return;
17247
17247
  }
17248
- fs10.fchmod(fd, mode, function(err2) {
17249
- fs10.close(fd, function(err22) {
17248
+ fs11.fchmod(fd, mode, function(err2) {
17249
+ fs11.close(fd, function(err22) {
17250
17250
  if (callback) callback(err2 || err22);
17251
17251
  });
17252
17252
  });
17253
17253
  }
17254
17254
  );
17255
17255
  };
17256
- fs10.lchmodSync = function(path11, mode) {
17257
- var fd = fs10.openSync(path11, constants.O_WRONLY | constants.O_SYMLINK, mode);
17256
+ fs11.lchmodSync = function(path12, mode) {
17257
+ var fd = fs11.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
17258
17258
  var threw = true;
17259
17259
  var ret;
17260
17260
  try {
17261
- ret = fs10.fchmodSync(fd, mode);
17261
+ ret = fs11.fchmodSync(fd, mode);
17262
17262
  threw = false;
17263
17263
  } finally {
17264
17264
  if (threw) {
17265
17265
  try {
17266
- fs10.closeSync(fd);
17266
+ fs11.closeSync(fd);
17267
17267
  } catch (er) {
17268
17268
  }
17269
17269
  } else {
17270
- fs10.closeSync(fd);
17270
+ fs11.closeSync(fd);
17271
17271
  }
17272
17272
  }
17273
17273
  return ret;
17274
17274
  };
17275
17275
  }
17276
- function patchLutimes(fs10) {
17277
- if (constants.hasOwnProperty("O_SYMLINK") && fs10.futimes) {
17278
- fs10.lutimes = function(path11, at, mt, cb) {
17279
- fs10.open(path11, constants.O_SYMLINK, function(er, fd) {
17276
+ function patchLutimes(fs11) {
17277
+ if (constants.hasOwnProperty("O_SYMLINK") && fs11.futimes) {
17278
+ fs11.lutimes = function(path12, at, mt, cb) {
17279
+ fs11.open(path12, constants.O_SYMLINK, function(er, fd) {
17280
17280
  if (er) {
17281
17281
  if (cb) cb(er);
17282
17282
  return;
17283
17283
  }
17284
- fs10.futimes(fd, at, mt, function(er2) {
17285
- fs10.close(fd, function(er22) {
17284
+ fs11.futimes(fd, at, mt, function(er2) {
17285
+ fs11.close(fd, function(er22) {
17286
17286
  if (cb) cb(er2 || er22);
17287
17287
  });
17288
17288
  });
17289
17289
  });
17290
17290
  };
17291
- fs10.lutimesSync = function(path11, at, mt) {
17292
- var fd = fs10.openSync(path11, constants.O_SYMLINK);
17291
+ fs11.lutimesSync = function(path12, at, mt) {
17292
+ var fd = fs11.openSync(path12, constants.O_SYMLINK);
17293
17293
  var ret;
17294
17294
  var threw = true;
17295
17295
  try {
17296
- ret = fs10.futimesSync(fd, at, mt);
17296
+ ret = fs11.futimesSync(fd, at, mt);
17297
17297
  threw = false;
17298
17298
  } finally {
17299
17299
  if (threw) {
17300
17300
  try {
17301
- fs10.closeSync(fd);
17301
+ fs11.closeSync(fd);
17302
17302
  } catch (er) {
17303
17303
  }
17304
17304
  } else {
17305
- fs10.closeSync(fd);
17305
+ fs11.closeSync(fd);
17306
17306
  }
17307
17307
  }
17308
17308
  return ret;
17309
17309
  };
17310
- } else if (fs10.futimes) {
17311
- fs10.lutimes = function(_a, _b, _c, cb) {
17310
+ } else if (fs11.futimes) {
17311
+ fs11.lutimes = function(_a, _b, _c, cb) {
17312
17312
  if (cb) process.nextTick(cb);
17313
17313
  };
17314
- fs10.lutimesSync = function() {
17314
+ fs11.lutimesSync = function() {
17315
17315
  };
17316
17316
  }
17317
17317
  }
17318
17318
  function chmodFix(orig) {
17319
17319
  if (!orig) return orig;
17320
17320
  return function(target, mode, cb) {
17321
- return orig.call(fs9, target, mode, function(er) {
17321
+ return orig.call(fs10, target, mode, function(er) {
17322
17322
  if (chownErOk(er)) er = null;
17323
17323
  if (cb) cb.apply(this, arguments);
17324
17324
  });
@@ -17328,7 +17328,7 @@ var require_polyfills = __commonJS({
17328
17328
  if (!orig) return orig;
17329
17329
  return function(target, mode) {
17330
17330
  try {
17331
- return orig.call(fs9, target, mode);
17331
+ return orig.call(fs10, target, mode);
17332
17332
  } catch (er) {
17333
17333
  if (!chownErOk(er)) throw er;
17334
17334
  }
@@ -17337,7 +17337,7 @@ var require_polyfills = __commonJS({
17337
17337
  function chownFix(orig) {
17338
17338
  if (!orig) return orig;
17339
17339
  return function(target, uid, gid, cb) {
17340
- return orig.call(fs9, target, uid, gid, function(er) {
17340
+ return orig.call(fs10, target, uid, gid, function(er) {
17341
17341
  if (chownErOk(er)) er = null;
17342
17342
  if (cb) cb.apply(this, arguments);
17343
17343
  });
@@ -17347,7 +17347,7 @@ var require_polyfills = __commonJS({
17347
17347
  if (!orig) return orig;
17348
17348
  return function(target, uid, gid) {
17349
17349
  try {
17350
- return orig.call(fs9, target, uid, gid);
17350
+ return orig.call(fs10, target, uid, gid);
17351
17351
  } catch (er) {
17352
17352
  if (!chownErOk(er)) throw er;
17353
17353
  }
@@ -17367,13 +17367,13 @@ var require_polyfills = __commonJS({
17367
17367
  }
17368
17368
  if (cb) cb.apply(this, arguments);
17369
17369
  }
17370
- return options ? orig.call(fs9, target, options, callback) : orig.call(fs9, target, callback);
17370
+ return options ? orig.call(fs10, target, options, callback) : orig.call(fs10, target, callback);
17371
17371
  };
17372
17372
  }
17373
17373
  function statFixSync(orig) {
17374
17374
  if (!orig) return orig;
17375
17375
  return function(target, options) {
17376
- var stats = options ? orig.call(fs9, target, options) : orig.call(fs9, target);
17376
+ var stats = options ? orig.call(fs10, target, options) : orig.call(fs10, target);
17377
17377
  if (stats) {
17378
17378
  if (stats.uid < 0) stats.uid += 4294967296;
17379
17379
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -17403,16 +17403,16 @@ var require_legacy_streams = __commonJS({
17403
17403
  "use strict";
17404
17404
  var Stream = __require("stream").Stream;
17405
17405
  module.exports = legacy;
17406
- function legacy(fs9) {
17406
+ function legacy(fs10) {
17407
17407
  return {
17408
17408
  ReadStream,
17409
17409
  WriteStream
17410
17410
  };
17411
- function ReadStream(path11, options) {
17412
- if (!(this instanceof ReadStream)) return new ReadStream(path11, options);
17411
+ function ReadStream(path12, options) {
17412
+ if (!(this instanceof ReadStream)) return new ReadStream(path12, options);
17413
17413
  Stream.call(this);
17414
17414
  var self2 = this;
17415
- this.path = path11;
17415
+ this.path = path12;
17416
17416
  this.fd = null;
17417
17417
  this.readable = true;
17418
17418
  this.paused = false;
@@ -17446,7 +17446,7 @@ var require_legacy_streams = __commonJS({
17446
17446
  });
17447
17447
  return;
17448
17448
  }
17449
- fs9.open(this.path, this.flags, this.mode, function(err, fd) {
17449
+ fs10.open(this.path, this.flags, this.mode, function(err, fd) {
17450
17450
  if (err) {
17451
17451
  self2.emit("error", err);
17452
17452
  self2.readable = false;
@@ -17457,10 +17457,10 @@ var require_legacy_streams = __commonJS({
17457
17457
  self2._read();
17458
17458
  });
17459
17459
  }
17460
- function WriteStream(path11, options) {
17461
- if (!(this instanceof WriteStream)) return new WriteStream(path11, options);
17460
+ function WriteStream(path12, options) {
17461
+ if (!(this instanceof WriteStream)) return new WriteStream(path12, options);
17462
17462
  Stream.call(this);
17463
- this.path = path11;
17463
+ this.path = path12;
17464
17464
  this.fd = null;
17465
17465
  this.writable = true;
17466
17466
  this.flags = "w";
@@ -17485,7 +17485,7 @@ var require_legacy_streams = __commonJS({
17485
17485
  this.busy = false;
17486
17486
  this._queue = [];
17487
17487
  if (this.fd === null) {
17488
- this._open = fs9.open;
17488
+ this._open = fs10.open;
17489
17489
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
17490
17490
  this.flush();
17491
17491
  }
@@ -17521,7 +17521,7 @@ var require_clone = __commonJS({
17521
17521
  var require_graceful_fs = __commonJS({
17522
17522
  "../../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
17523
17523
  "use strict";
17524
- var fs9 = __require("fs");
17524
+ var fs10 = __require("fs");
17525
17525
  var polyfills = require_polyfills();
17526
17526
  var legacy = require_legacy_streams();
17527
17527
  var clone = require_clone();
@@ -17553,12 +17553,12 @@ var require_graceful_fs = __commonJS({
17553
17553
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
17554
17554
  console.error(m);
17555
17555
  };
17556
- if (!fs9[gracefulQueue]) {
17556
+ if (!fs10[gracefulQueue]) {
17557
17557
  queue2 = global[gracefulQueue] || [];
17558
- publishQueue(fs9, queue2);
17559
- fs9.close = function(fs$close) {
17558
+ publishQueue(fs10, queue2);
17559
+ fs10.close = function(fs$close) {
17560
17560
  function close(fd, cb) {
17561
- return fs$close.call(fs9, fd, function(err) {
17561
+ return fs$close.call(fs10, fd, function(err) {
17562
17562
  if (!err) {
17563
17563
  resetQueue();
17564
17564
  }
@@ -17570,48 +17570,48 @@ var require_graceful_fs = __commonJS({
17570
17570
  value: fs$close
17571
17571
  });
17572
17572
  return close;
17573
- }(fs9.close);
17574
- fs9.closeSync = function(fs$closeSync) {
17573
+ }(fs10.close);
17574
+ fs10.closeSync = function(fs$closeSync) {
17575
17575
  function closeSync(fd) {
17576
- fs$closeSync.apply(fs9, arguments);
17576
+ fs$closeSync.apply(fs10, arguments);
17577
17577
  resetQueue();
17578
17578
  }
17579
17579
  Object.defineProperty(closeSync, previousSymbol, {
17580
17580
  value: fs$closeSync
17581
17581
  });
17582
17582
  return closeSync;
17583
- }(fs9.closeSync);
17583
+ }(fs10.closeSync);
17584
17584
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
17585
17585
  process.on("exit", function() {
17586
- debug(fs9[gracefulQueue]);
17587
- __require("assert").equal(fs9[gracefulQueue].length, 0);
17586
+ debug(fs10[gracefulQueue]);
17587
+ __require("assert").equal(fs10[gracefulQueue].length, 0);
17588
17588
  });
17589
17589
  }
17590
17590
  }
17591
17591
  var queue2;
17592
17592
  if (!global[gracefulQueue]) {
17593
- publishQueue(global, fs9[gracefulQueue]);
17594
- }
17595
- module.exports = patch(clone(fs9));
17596
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs9.__patched) {
17597
- module.exports = patch(fs9);
17598
- fs9.__patched = true;
17599
- }
17600
- function patch(fs10) {
17601
- polyfills(fs10);
17602
- fs10.gracefulify = patch;
17603
- fs10.createReadStream = createReadStream2;
17604
- fs10.createWriteStream = createWriteStream2;
17605
- var fs$readFile = fs10.readFile;
17606
- fs10.readFile = readFile;
17607
- function readFile(path11, options, cb) {
17593
+ publishQueue(global, fs10[gracefulQueue]);
17594
+ }
17595
+ module.exports = patch(clone(fs10));
17596
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs10.__patched) {
17597
+ module.exports = patch(fs10);
17598
+ fs10.__patched = true;
17599
+ }
17600
+ function patch(fs11) {
17601
+ polyfills(fs11);
17602
+ fs11.gracefulify = patch;
17603
+ fs11.createReadStream = createReadStream2;
17604
+ fs11.createWriteStream = createWriteStream2;
17605
+ var fs$readFile = fs11.readFile;
17606
+ fs11.readFile = readFile;
17607
+ function readFile(path12, options, cb) {
17608
17608
  if (typeof options === "function")
17609
17609
  cb = options, options = null;
17610
- return go$readFile(path11, options, cb);
17611
- function go$readFile(path12, options2, cb2, startTime) {
17612
- return fs$readFile(path12, options2, function(err) {
17610
+ return go$readFile(path12, options, cb);
17611
+ function go$readFile(path13, options2, cb2, startTime) {
17612
+ return fs$readFile(path13, options2, function(err) {
17613
17613
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17614
- enqueue([go$readFile, [path12, options2, cb2], err, startTime || Date.now(), Date.now()]);
17614
+ enqueue([go$readFile, [path13, options2, cb2], err, startTime || Date.now(), Date.now()]);
17615
17615
  else {
17616
17616
  if (typeof cb2 === "function")
17617
17617
  cb2.apply(this, arguments);
@@ -17619,16 +17619,16 @@ var require_graceful_fs = __commonJS({
17619
17619
  });
17620
17620
  }
17621
17621
  }
17622
- var fs$writeFile = fs10.writeFile;
17623
- fs10.writeFile = writeFile;
17624
- function writeFile(path11, data, options, cb) {
17622
+ var fs$writeFile = fs11.writeFile;
17623
+ fs11.writeFile = writeFile;
17624
+ function writeFile(path12, data, options, cb) {
17625
17625
  if (typeof options === "function")
17626
17626
  cb = options, options = null;
17627
- return go$writeFile(path11, data, options, cb);
17628
- function go$writeFile(path12, data2, options2, cb2, startTime) {
17629
- return fs$writeFile(path12, data2, options2, function(err) {
17627
+ return go$writeFile(path12, data, options, cb);
17628
+ function go$writeFile(path13, data2, options2, cb2, startTime) {
17629
+ return fs$writeFile(path13, data2, options2, function(err) {
17630
17630
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17631
- enqueue([go$writeFile, [path12, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
17631
+ enqueue([go$writeFile, [path13, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
17632
17632
  else {
17633
17633
  if (typeof cb2 === "function")
17634
17634
  cb2.apply(this, arguments);
@@ -17636,17 +17636,17 @@ var require_graceful_fs = __commonJS({
17636
17636
  });
17637
17637
  }
17638
17638
  }
17639
- var fs$appendFile = fs10.appendFile;
17639
+ var fs$appendFile = fs11.appendFile;
17640
17640
  if (fs$appendFile)
17641
- fs10.appendFile = appendFile;
17642
- function appendFile(path11, data, options, cb) {
17641
+ fs11.appendFile = appendFile;
17642
+ function appendFile(path12, data, options, cb) {
17643
17643
  if (typeof options === "function")
17644
17644
  cb = options, options = null;
17645
- return go$appendFile(path11, data, options, cb);
17646
- function go$appendFile(path12, data2, options2, cb2, startTime) {
17647
- return fs$appendFile(path12, data2, options2, function(err) {
17645
+ return go$appendFile(path12, data, options, cb);
17646
+ function go$appendFile(path13, data2, options2, cb2, startTime) {
17647
+ return fs$appendFile(path13, data2, options2, function(err) {
17648
17648
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17649
- enqueue([go$appendFile, [path12, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
17649
+ enqueue([go$appendFile, [path13, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
17650
17650
  else {
17651
17651
  if (typeof cb2 === "function")
17652
17652
  cb2.apply(this, arguments);
@@ -17654,9 +17654,9 @@ var require_graceful_fs = __commonJS({
17654
17654
  });
17655
17655
  }
17656
17656
  }
17657
- var fs$copyFile = fs10.copyFile;
17657
+ var fs$copyFile = fs11.copyFile;
17658
17658
  if (fs$copyFile)
17659
- fs10.copyFile = copyFile;
17659
+ fs11.copyFile = copyFile;
17660
17660
  function copyFile(src, dest, flags, cb) {
17661
17661
  if (typeof flags === "function") {
17662
17662
  cb = flags;
@@ -17674,34 +17674,34 @@ var require_graceful_fs = __commonJS({
17674
17674
  });
17675
17675
  }
17676
17676
  }
17677
- var fs$readdir = fs10.readdir;
17678
- fs10.readdir = readdir;
17677
+ var fs$readdir = fs11.readdir;
17678
+ fs11.readdir = readdir;
17679
17679
  var noReaddirOptionVersions = /^v[0-5]\./;
17680
- function readdir(path11, options, cb) {
17680
+ function readdir(path12, options, cb) {
17681
17681
  if (typeof options === "function")
17682
17682
  cb = options, options = null;
17683
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path12, options2, cb2, startTime) {
17684
- return fs$readdir(path12, fs$readdirCallback(
17685
- path12,
17683
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path13, options2, cb2, startTime) {
17684
+ return fs$readdir(path13, fs$readdirCallback(
17685
+ path13,
17686
17686
  options2,
17687
17687
  cb2,
17688
17688
  startTime
17689
17689
  ));
17690
- } : function go$readdir2(path12, options2, cb2, startTime) {
17691
- return fs$readdir(path12, options2, fs$readdirCallback(
17692
- path12,
17690
+ } : function go$readdir2(path13, options2, cb2, startTime) {
17691
+ return fs$readdir(path13, options2, fs$readdirCallback(
17692
+ path13,
17693
17693
  options2,
17694
17694
  cb2,
17695
17695
  startTime
17696
17696
  ));
17697
17697
  };
17698
- return go$readdir(path11, options, cb);
17699
- function fs$readdirCallback(path12, options2, cb2, startTime) {
17698
+ return go$readdir(path12, options, cb);
17699
+ function fs$readdirCallback(path13, options2, cb2, startTime) {
17700
17700
  return function(err, files) {
17701
17701
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17702
17702
  enqueue([
17703
17703
  go$readdir,
17704
- [path12, options2, cb2],
17704
+ [path13, options2, cb2],
17705
17705
  err,
17706
17706
  startTime || Date.now(),
17707
17707
  Date.now()
@@ -17716,21 +17716,21 @@ var require_graceful_fs = __commonJS({
17716
17716
  }
17717
17717
  }
17718
17718
  if (process.version.substr(0, 4) === "v0.8") {
17719
- var legStreams = legacy(fs10);
17719
+ var legStreams = legacy(fs11);
17720
17720
  ReadStream = legStreams.ReadStream;
17721
17721
  WriteStream = legStreams.WriteStream;
17722
17722
  }
17723
- var fs$ReadStream = fs10.ReadStream;
17723
+ var fs$ReadStream = fs11.ReadStream;
17724
17724
  if (fs$ReadStream) {
17725
17725
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
17726
17726
  ReadStream.prototype.open = ReadStream$open;
17727
17727
  }
17728
- var fs$WriteStream = fs10.WriteStream;
17728
+ var fs$WriteStream = fs11.WriteStream;
17729
17729
  if (fs$WriteStream) {
17730
17730
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
17731
17731
  WriteStream.prototype.open = WriteStream$open;
17732
17732
  }
17733
- Object.defineProperty(fs10, "ReadStream", {
17733
+ Object.defineProperty(fs11, "ReadStream", {
17734
17734
  get: function() {
17735
17735
  return ReadStream;
17736
17736
  },
@@ -17740,7 +17740,7 @@ var require_graceful_fs = __commonJS({
17740
17740
  enumerable: true,
17741
17741
  configurable: true
17742
17742
  });
17743
- Object.defineProperty(fs10, "WriteStream", {
17743
+ Object.defineProperty(fs11, "WriteStream", {
17744
17744
  get: function() {
17745
17745
  return WriteStream;
17746
17746
  },
@@ -17751,7 +17751,7 @@ var require_graceful_fs = __commonJS({
17751
17751
  configurable: true
17752
17752
  });
17753
17753
  var FileReadStream = ReadStream;
17754
- Object.defineProperty(fs10, "FileReadStream", {
17754
+ Object.defineProperty(fs11, "FileReadStream", {
17755
17755
  get: function() {
17756
17756
  return FileReadStream;
17757
17757
  },
@@ -17762,7 +17762,7 @@ var require_graceful_fs = __commonJS({
17762
17762
  configurable: true
17763
17763
  });
17764
17764
  var FileWriteStream = WriteStream;
17765
- Object.defineProperty(fs10, "FileWriteStream", {
17765
+ Object.defineProperty(fs11, "FileWriteStream", {
17766
17766
  get: function() {
17767
17767
  return FileWriteStream;
17768
17768
  },
@@ -17772,7 +17772,7 @@ var require_graceful_fs = __commonJS({
17772
17772
  enumerable: true,
17773
17773
  configurable: true
17774
17774
  });
17775
- function ReadStream(path11, options) {
17775
+ function ReadStream(path12, options) {
17776
17776
  if (this instanceof ReadStream)
17777
17777
  return fs$ReadStream.apply(this, arguments), this;
17778
17778
  else
@@ -17792,7 +17792,7 @@ var require_graceful_fs = __commonJS({
17792
17792
  }
17793
17793
  });
17794
17794
  }
17795
- function WriteStream(path11, options) {
17795
+ function WriteStream(path12, options) {
17796
17796
  if (this instanceof WriteStream)
17797
17797
  return fs$WriteStream.apply(this, arguments), this;
17798
17798
  else
@@ -17810,22 +17810,22 @@ var require_graceful_fs = __commonJS({
17810
17810
  }
17811
17811
  });
17812
17812
  }
17813
- function createReadStream2(path11, options) {
17814
- return new fs10.ReadStream(path11, options);
17813
+ function createReadStream2(path12, options) {
17814
+ return new fs11.ReadStream(path12, options);
17815
17815
  }
17816
- function createWriteStream2(path11, options) {
17817
- return new fs10.WriteStream(path11, options);
17816
+ function createWriteStream2(path12, options) {
17817
+ return new fs11.WriteStream(path12, options);
17818
17818
  }
17819
- var fs$open = fs10.open;
17820
- fs10.open = open;
17821
- function open(path11, flags, mode, cb) {
17819
+ var fs$open = fs11.open;
17820
+ fs11.open = open;
17821
+ function open(path12, flags, mode, cb) {
17822
17822
  if (typeof mode === "function")
17823
17823
  cb = mode, mode = null;
17824
- return go$open(path11, flags, mode, cb);
17825
- function go$open(path12, flags2, mode2, cb2, startTime) {
17826
- return fs$open(path12, flags2, mode2, function(err, fd) {
17824
+ return go$open(path12, flags, mode, cb);
17825
+ function go$open(path13, flags2, mode2, cb2, startTime) {
17826
+ return fs$open(path13, flags2, mode2, function(err, fd) {
17827
17827
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17828
- enqueue([go$open, [path12, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
17828
+ enqueue([go$open, [path13, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
17829
17829
  else {
17830
17830
  if (typeof cb2 === "function")
17831
17831
  cb2.apply(this, arguments);
@@ -17833,20 +17833,20 @@ var require_graceful_fs = __commonJS({
17833
17833
  });
17834
17834
  }
17835
17835
  }
17836
- return fs10;
17836
+ return fs11;
17837
17837
  }
17838
17838
  function enqueue(elem) {
17839
17839
  debug("ENQUEUE", elem[0].name, elem[1]);
17840
- fs9[gracefulQueue].push(elem);
17840
+ fs10[gracefulQueue].push(elem);
17841
17841
  retry2();
17842
17842
  }
17843
17843
  var retryTimer;
17844
17844
  function resetQueue() {
17845
17845
  var now = Date.now();
17846
- for (var i = 0; i < fs9[gracefulQueue].length; ++i) {
17847
- if (fs9[gracefulQueue][i].length > 2) {
17848
- fs9[gracefulQueue][i][3] = now;
17849
- fs9[gracefulQueue][i][4] = now;
17846
+ for (var i = 0; i < fs10[gracefulQueue].length; ++i) {
17847
+ if (fs10[gracefulQueue][i].length > 2) {
17848
+ fs10[gracefulQueue][i][3] = now;
17849
+ fs10[gracefulQueue][i][4] = now;
17850
17850
  }
17851
17851
  }
17852
17852
  retry2();
@@ -17854,9 +17854,9 @@ var require_graceful_fs = __commonJS({
17854
17854
  function retry2() {
17855
17855
  clearTimeout(retryTimer);
17856
17856
  retryTimer = void 0;
17857
- if (fs9[gracefulQueue].length === 0)
17857
+ if (fs10[gracefulQueue].length === 0)
17858
17858
  return;
17859
- var elem = fs9[gracefulQueue].shift();
17859
+ var elem = fs10[gracefulQueue].shift();
17860
17860
  var fn = elem[0];
17861
17861
  var args = elem[1];
17862
17862
  var err = elem[2];
@@ -17878,7 +17878,7 @@ var require_graceful_fs = __commonJS({
17878
17878
  debug("RETRY", fn.name, args);
17879
17879
  fn.apply(null, args.concat([startTime]));
17880
17880
  } else {
17881
- fs9[gracefulQueue].push(elem);
17881
+ fs10[gracefulQueue].push(elem);
17882
17882
  }
17883
17883
  }
17884
17884
  if (retryTimer === void 0) {
@@ -18140,7 +18140,7 @@ var require_BufferList = __commonJS({
18140
18140
  this.head = this.tail = null;
18141
18141
  this.length = 0;
18142
18142
  };
18143
- BufferList.prototype.join = function join4(s) {
18143
+ BufferList.prototype.join = function join5(s) {
18144
18144
  if (this.length === 0) return "";
18145
18145
  var p = this.head;
18146
18146
  var ret = "" + p.data;
@@ -19885,22 +19885,22 @@ var require_lazystream = __commonJS({
19885
19885
  var require_normalize_path = __commonJS({
19886
19886
  "../../node_modules/normalize-path/index.js"(exports, module) {
19887
19887
  "use strict";
19888
- module.exports = function(path11, stripTrailing) {
19889
- if (typeof path11 !== "string") {
19888
+ module.exports = function(path12, stripTrailing) {
19889
+ if (typeof path12 !== "string") {
19890
19890
  throw new TypeError("expected path to be a string");
19891
19891
  }
19892
- if (path11 === "\\" || path11 === "/") return "/";
19893
- var len = path11.length;
19894
- if (len <= 1) return path11;
19892
+ if (path12 === "\\" || path12 === "/") return "/";
19893
+ var len = path12.length;
19894
+ if (len <= 1) return path12;
19895
19895
  var prefix = "";
19896
- if (len > 4 && path11[3] === "\\") {
19897
- var ch = path11[2];
19898
- if ((ch === "?" || ch === ".") && path11.slice(0, 2) === "\\\\") {
19899
- path11 = path11.slice(2);
19896
+ if (len > 4 && path12[3] === "\\") {
19897
+ var ch = path12[2];
19898
+ if ((ch === "?" || ch === ".") && path12.slice(0, 2) === "\\\\") {
19899
+ path12 = path12.slice(2);
19900
19900
  prefix = "//";
19901
19901
  }
19902
19902
  }
19903
- var segs = path11.split(/[/\\]+/);
19903
+ var segs = path12.split(/[/\\]+/);
19904
19904
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
19905
19905
  segs.pop();
19906
19906
  }
@@ -28427,11 +28427,11 @@ var require_commonjs = __commonJS({
28427
28427
  return (f) => f.length === len && f !== "." && f !== "..";
28428
28428
  };
28429
28429
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
28430
- var path11 = {
28430
+ var path12 = {
28431
28431
  win32: { sep: "\\" },
28432
28432
  posix: { sep: "/" }
28433
28433
  };
28434
- exports.sep = defaultPlatform === "win32" ? path11.win32.sep : path11.posix.sep;
28434
+ exports.sep = defaultPlatform === "win32" ? path12.win32.sep : path12.posix.sep;
28435
28435
  exports.minimatch.sep = exports.sep;
28436
28436
  exports.GLOBSTAR = Symbol("globstar **");
28437
28437
  exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
@@ -31752,13 +31752,13 @@ var require_commonjs4 = __commonJS({
31752
31752
  /**
31753
31753
  * Get the Path object referenced by the string path, resolved from this Path
31754
31754
  */
31755
- resolve(path11) {
31755
+ resolve(path12) {
31756
31756
  var _a;
31757
- if (!path11) {
31757
+ if (!path12) {
31758
31758
  return this;
31759
31759
  }
31760
- const rootPath = this.getRootString(path11);
31761
- const dir2 = path11.substring(rootPath.length);
31760
+ const rootPath = this.getRootString(path12);
31761
+ const dir2 = path12.substring(rootPath.length);
31762
31762
  const dirParts = dir2.split(this.splitSep);
31763
31763
  const result = rootPath ? __privateMethod(_a = this.getRoot(rootPath), _PathBase_instances, resolveParts_fn).call(_a, dirParts) : __privateMethod(this, _PathBase_instances, resolveParts_fn).call(this, dirParts);
31764
31764
  return result;
@@ -32547,8 +32547,8 @@ var require_commonjs4 = __commonJS({
32547
32547
  /**
32548
32548
  * @internal
32549
32549
  */
32550
- getRootString(path11) {
32551
- return node_path_1.win32.parse(path11).root;
32550
+ getRootString(path12) {
32551
+ return node_path_1.win32.parse(path12).root;
32552
32552
  }
32553
32553
  /**
32554
32554
  * @internal
@@ -32595,8 +32595,8 @@ var require_commonjs4 = __commonJS({
32595
32595
  /**
32596
32596
  * @internal
32597
32597
  */
32598
- getRootString(path11) {
32599
- return path11.startsWith("/") ? "/" : "";
32598
+ getRootString(path12) {
32599
+ return path12.startsWith("/") ? "/" : "";
32600
32600
  }
32601
32601
  /**
32602
32602
  * @internal
@@ -32621,7 +32621,7 @@ var require_commonjs4 = __commonJS({
32621
32621
  *
32622
32622
  * @internal
32623
32623
  */
32624
- constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs9 = defaultFS } = {}) {
32624
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs10 = defaultFS } = {}) {
32625
32625
  /**
32626
32626
  * The root Path entry for the current working directory of this Scurry
32627
32627
  */
@@ -32648,7 +32648,7 @@ var require_commonjs4 = __commonJS({
32648
32648
  */
32649
32649
  __publicField(this, "nocase");
32650
32650
  __privateAdd(this, _fs2);
32651
- __privateSet(this, _fs2, fsFromOption(fs9));
32651
+ __privateSet(this, _fs2, fsFromOption(fs10));
32652
32652
  if (cwd instanceof URL || cwd.startsWith("file://")) {
32653
32653
  cwd = (0, node_url_1.fileURLToPath)(cwd);
32654
32654
  }
@@ -32687,11 +32687,11 @@ var require_commonjs4 = __commonJS({
32687
32687
  /**
32688
32688
  * Get the depth of a provided path, string, or the cwd
32689
32689
  */
32690
- depth(path11 = this.cwd) {
32691
- if (typeof path11 === "string") {
32692
- path11 = this.cwd.resolve(path11);
32690
+ depth(path12 = this.cwd) {
32691
+ if (typeof path12 === "string") {
32692
+ path12 = this.cwd.resolve(path12);
32693
32693
  }
32694
- return path11.depth();
32694
+ return path12.depth();
32695
32695
  }
32696
32696
  /**
32697
32697
  * Return the cache of child entries. Exposed so subclasses can create
@@ -33178,9 +33178,9 @@ var require_commonjs4 = __commonJS({
33178
33178
  process3();
33179
33179
  return results;
33180
33180
  }
33181
- chdir(path11 = this.cwd) {
33181
+ chdir(path12 = this.cwd) {
33182
33182
  const oldCwd = this.cwd;
33183
- this.cwd = typeof path11 === "string" ? this.cwd.resolve(path11) : path11;
33183
+ this.cwd = typeof path12 === "string" ? this.cwd.resolve(path12) : path12;
33184
33184
  this.cwd[setAsCwd](oldCwd);
33185
33185
  }
33186
33186
  };
@@ -33211,8 +33211,8 @@ var require_commonjs4 = __commonJS({
33211
33211
  /**
33212
33212
  * @internal
33213
33213
  */
33214
- newRoot(fs9) {
33215
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs9 });
33214
+ newRoot(fs10) {
33215
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs10 });
33216
33216
  }
33217
33217
  /**
33218
33218
  * Return true if the provided path string is an absolute path
@@ -33241,8 +33241,8 @@ var require_commonjs4 = __commonJS({
33241
33241
  /**
33242
33242
  * @internal
33243
33243
  */
33244
- newRoot(fs9) {
33245
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs9 });
33244
+ newRoot(fs10) {
33245
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs10 });
33246
33246
  }
33247
33247
  /**
33248
33248
  * Return true if the provided path string is an absolute path
@@ -33587,8 +33587,8 @@ var require_processor = __commonJS({
33587
33587
  }
33588
33588
  // match, absolute, ifdir
33589
33589
  entries() {
33590
- return [...this.store.entries()].map(([path11, n]) => [
33591
- path11,
33590
+ return [...this.store.entries()].map(([path12, n]) => [
33591
+ path12,
33592
33592
  !!(n & 2),
33593
33593
  !!(n & 1)
33594
33594
  ]);
@@ -33797,7 +33797,7 @@ var require_walker = __commonJS({
33797
33797
  var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore;
33798
33798
  var _onResume, _ignore, _sep, _GlobUtil_instances, ignored_fn, childrenIgnored_fn;
33799
33799
  var GlobUtil = class {
33800
- constructor(patterns, path11, opts) {
33800
+ constructor(patterns, path12, opts) {
33801
33801
  __privateAdd(this, _GlobUtil_instances);
33802
33802
  __publicField(this, "path");
33803
33803
  __publicField(this, "patterns");
@@ -33813,7 +33813,7 @@ var require_walker = __commonJS({
33813
33813
  __publicField(this, "includeChildMatches");
33814
33814
  var _a;
33815
33815
  this.patterns = patterns;
33816
- this.path = path11;
33816
+ this.path = path12;
33817
33817
  this.opts = opts;
33818
33818
  __privateSet(this, _sep, !opts.posix && opts.platform === "win32" ? "\\" : "/");
33819
33819
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -34055,18 +34055,18 @@ var require_walker = __commonJS({
34055
34055
  _ignore = new WeakMap();
34056
34056
  _sep = new WeakMap();
34057
34057
  _GlobUtil_instances = new WeakSet();
34058
- ignored_fn = function(path11) {
34058
+ ignored_fn = function(path12) {
34059
34059
  var _a, _b;
34060
- return this.seen.has(path11) || !!((_b = (_a = __privateGet(this, _ignore)) == null ? void 0 : _a.ignored) == null ? void 0 : _b.call(_a, path11));
34060
+ return this.seen.has(path12) || !!((_b = (_a = __privateGet(this, _ignore)) == null ? void 0 : _a.ignored) == null ? void 0 : _b.call(_a, path12));
34061
34061
  };
34062
- childrenIgnored_fn = function(path11) {
34062
+ childrenIgnored_fn = function(path12) {
34063
34063
  var _a, _b;
34064
- return !!((_b = (_a = __privateGet(this, _ignore)) == null ? void 0 : _a.childrenIgnored) == null ? void 0 : _b.call(_a, path11));
34064
+ return !!((_b = (_a = __privateGet(this, _ignore)) == null ? void 0 : _a.childrenIgnored) == null ? void 0 : _b.call(_a, path12));
34065
34065
  };
34066
34066
  exports.GlobUtil = GlobUtil;
34067
34067
  var GlobWalker = class extends GlobUtil {
34068
- constructor(patterns, path11, opts) {
34069
- super(patterns, path11, opts);
34068
+ constructor(patterns, path12, opts) {
34069
+ super(patterns, path12, opts);
34070
34070
  __publicField(this, "matches", /* @__PURE__ */ new Set());
34071
34071
  }
34072
34072
  matchEmit(e) {
@@ -34108,8 +34108,8 @@ var require_walker = __commonJS({
34108
34108
  };
34109
34109
  exports.GlobWalker = GlobWalker;
34110
34110
  var GlobStream = class extends GlobUtil {
34111
- constructor(patterns, path11, opts) {
34112
- super(patterns, path11, opts);
34111
+ constructor(patterns, path12, opts) {
34112
+ super(patterns, path12, opts);
34113
34113
  __publicField(this, "results");
34114
34114
  this.results = new minipass_1.Minipass({
34115
34115
  signal: this.signal,
@@ -34466,8 +34466,8 @@ var require_commonjs5 = __commonJS({
34466
34466
  var require_file = __commonJS({
34467
34467
  "node_modules/archiver-utils/file.js"(exports, module) {
34468
34468
  "use strict";
34469
- var fs9 = require_graceful_fs();
34470
- var path11 = __require("path");
34469
+ var fs10 = require_graceful_fs();
34470
+ var path12 = __require("path");
34471
34471
  var flatten = require_flatten();
34472
34472
  var difference = require_difference();
34473
34473
  var union = require_union();
@@ -34492,8 +34492,8 @@ var require_file = __commonJS({
34492
34492
  return result;
34493
34493
  };
34494
34494
  file.exists = function() {
34495
- var filepath = path11.join.apply(path11, arguments);
34496
- return fs9.existsSync(filepath);
34495
+ var filepath = path12.join.apply(path12, arguments);
34496
+ return fs10.existsSync(filepath);
34497
34497
  };
34498
34498
  file.expand = function(...args) {
34499
34499
  var options = isPlainObject2(args[0]) ? args.shift() : {};
@@ -34506,12 +34506,12 @@ var require_file = __commonJS({
34506
34506
  });
34507
34507
  if (options.filter) {
34508
34508
  matches = matches.filter(function(filepath) {
34509
- filepath = path11.join(options.cwd || "", filepath);
34509
+ filepath = path12.join(options.cwd || "", filepath);
34510
34510
  try {
34511
34511
  if (typeof options.filter === "function") {
34512
34512
  return options.filter(filepath);
34513
34513
  } else {
34514
- return fs9.statSync(filepath)[options.filter]();
34514
+ return fs10.statSync(filepath)[options.filter]();
34515
34515
  }
34516
34516
  } catch (e) {
34517
34517
  return false;
@@ -34523,7 +34523,7 @@ var require_file = __commonJS({
34523
34523
  file.expandMapping = function(patterns, destBase, options) {
34524
34524
  options = Object.assign({
34525
34525
  rename: function(destBase2, destPath) {
34526
- return path11.join(destBase2 || "", destPath);
34526
+ return path12.join(destBase2 || "", destPath);
34527
34527
  }
34528
34528
  }, options);
34529
34529
  var files = [];
@@ -34531,14 +34531,14 @@ var require_file = __commonJS({
34531
34531
  file.expand(options, patterns).forEach(function(src) {
34532
34532
  var destPath = src;
34533
34533
  if (options.flatten) {
34534
- destPath = path11.basename(destPath);
34534
+ destPath = path12.basename(destPath);
34535
34535
  }
34536
34536
  if (options.ext) {
34537
34537
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
34538
34538
  }
34539
34539
  var dest = options.rename(destBase, destPath, options);
34540
34540
  if (options.cwd) {
34541
- src = path11.join(options.cwd, src);
34541
+ src = path12.join(options.cwd, src);
34542
34542
  }
34543
34543
  dest = dest.replace(pathSeparatorRe, "/");
34544
34544
  src = src.replace(pathSeparatorRe, "/");
@@ -34620,8 +34620,8 @@ var require_file = __commonJS({
34620
34620
  var require_archiver_utils = __commonJS({
34621
34621
  "node_modules/archiver-utils/index.js"(exports, module) {
34622
34622
  "use strict";
34623
- var fs9 = require_graceful_fs();
34624
- var path11 = __require("path");
34623
+ var fs10 = require_graceful_fs();
34624
+ var path12 = __require("path");
34625
34625
  var isStream2 = require_is_stream();
34626
34626
  var lazystream = require_lazystream();
34627
34627
  var normalizePath = require_normalize_path();
@@ -34669,7 +34669,7 @@ var require_archiver_utils = __commonJS({
34669
34669
  };
34670
34670
  utils.lazyReadStream = function(filepath) {
34671
34671
  return new lazystream.Readable(function() {
34672
- return fs9.createReadStream(filepath);
34672
+ return fs10.createReadStream(filepath);
34673
34673
  });
34674
34674
  };
34675
34675
  utils.normalizeInputSource = function(source) {
@@ -34697,7 +34697,7 @@ var require_archiver_utils = __commonJS({
34697
34697
  callback = base;
34698
34698
  base = dirpath;
34699
34699
  }
34700
- fs9.readdir(dirpath, function(err, list) {
34700
+ fs10.readdir(dirpath, function(err, list) {
34701
34701
  var i = 0;
34702
34702
  var file;
34703
34703
  var filepath;
@@ -34709,11 +34709,11 @@ var require_archiver_utils = __commonJS({
34709
34709
  if (!file) {
34710
34710
  return callback(null, results);
34711
34711
  }
34712
- filepath = path11.join(dirpath, file);
34713
- fs9.stat(filepath, function(err2, stats) {
34712
+ filepath = path12.join(dirpath, file);
34713
+ fs10.stat(filepath, function(err2, stats) {
34714
34714
  results.push({
34715
34715
  path: filepath,
34716
- relative: path11.relative(base, filepath).replace(/\\/g, "/"),
34716
+ relative: path12.relative(base, filepath).replace(/\\/g, "/"),
34717
34717
  stats
34718
34718
  });
34719
34719
  if (stats && stats.isDirectory()) {
@@ -34774,10 +34774,10 @@ var require_error = __commonJS({
34774
34774
  var require_core = __commonJS({
34775
34775
  "node_modules/archiver/lib/core.js"(exports, module) {
34776
34776
  "use strict";
34777
- var fs9 = __require("fs");
34777
+ var fs10 = __require("fs");
34778
34778
  var glob2 = require_readdir_glob();
34779
34779
  var async = (init_async(), __toCommonJS(async_exports));
34780
- var path11 = __require("path");
34780
+ var path12 = __require("path");
34781
34781
  var util3 = require_archiver_utils();
34782
34782
  var inherits2 = __require("util").inherits;
34783
34783
  var ArchiverError = require_error();
@@ -34838,7 +34838,7 @@ var require_core = __commonJS({
34838
34838
  data.sourcePath = filepath;
34839
34839
  task.data = data;
34840
34840
  this._entriesCount++;
34841
- if (data.stats && data.stats instanceof fs9.Stats) {
34841
+ if (data.stats && data.stats instanceof fs10.Stats) {
34842
34842
  task = this._updateQueueTaskWithStats(task, data.stats);
34843
34843
  if (task) {
34844
34844
  if (data.stats.size) {
@@ -35009,7 +35009,7 @@ var require_core = __commonJS({
35009
35009
  callback();
35010
35010
  return;
35011
35011
  }
35012
- fs9.lstat(task.filepath, function(err, stats) {
35012
+ fs10.lstat(task.filepath, function(err, stats) {
35013
35013
  if (this._state.aborted) {
35014
35014
  setImmediate(callback);
35015
35015
  return;
@@ -35052,10 +35052,10 @@ var require_core = __commonJS({
35052
35052
  task.data.sourceType = "buffer";
35053
35053
  task.source = Buffer.concat([]);
35054
35054
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
35055
- var linkPath = fs9.readlinkSync(task.filepath);
35056
- var dirName = path11.dirname(task.filepath);
35055
+ var linkPath = fs10.readlinkSync(task.filepath);
35056
+ var dirName = path12.dirname(task.filepath);
35057
35057
  task.data.type = "symlink";
35058
- task.data.linkname = path11.relative(dirName, path11.resolve(dirName, linkPath));
35058
+ task.data.linkname = path12.relative(dirName, path12.resolve(dirName, linkPath));
35059
35059
  task.data.sourceType = "buffer";
35060
35060
  task.source = Buffer.concat([]);
35061
35061
  } else {
@@ -39935,14 +39935,14 @@ var require_util5 = __commonJS({
39935
39935
  }
39936
39936
  const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80;
39937
39937
  let origin2 = url2.origin != null ? url2.origin : `${url2.protocol}//${url2.hostname}:${port}`;
39938
- let path11 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
39938
+ let path12 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
39939
39939
  if (origin2.endsWith("/")) {
39940
39940
  origin2 = origin2.substring(0, origin2.length - 1);
39941
39941
  }
39942
- if (path11 && !path11.startsWith("/")) {
39943
- path11 = `/${path11}`;
39942
+ if (path12 && !path12.startsWith("/")) {
39943
+ path12 = `/${path12}`;
39944
39944
  }
39945
- url2 = new URL(origin2 + path11);
39945
+ url2 = new URL(origin2 + path12);
39946
39946
  }
39947
39947
  return url2;
39948
39948
  }
@@ -41556,20 +41556,20 @@ var require_parseParams = __commonJS({
41556
41556
  var require_basename = __commonJS({
41557
41557
  "../../node_modules/@fastify/busboy/lib/utils/basename.js"(exports, module) {
41558
41558
  "use strict";
41559
- module.exports = function basename2(path11) {
41560
- if (typeof path11 !== "string") {
41559
+ module.exports = function basename2(path12) {
41560
+ if (typeof path12 !== "string") {
41561
41561
  return "";
41562
41562
  }
41563
- for (var i = path11.length - 1; i >= 0; --i) {
41564
- switch (path11.charCodeAt(i)) {
41563
+ for (var i = path12.length - 1; i >= 0; --i) {
41564
+ switch (path12.charCodeAt(i)) {
41565
41565
  case 47:
41566
41566
  // '/'
41567
41567
  case 92:
41568
- path11 = path11.slice(i + 1);
41569
- return path11 === ".." || path11 === "." ? "" : path11;
41568
+ path12 = path12.slice(i + 1);
41569
+ return path12 === ".." || path12 === "." ? "" : path12;
41570
41570
  }
41571
41571
  }
41572
- return path11 === ".." || path11 === "." ? "" : path11;
41572
+ return path12 === ".." || path12 === "." ? "" : path12;
41573
41573
  };
41574
41574
  }
41575
41575
  });
@@ -44611,7 +44611,7 @@ var require_request = __commonJS({
44611
44611
  }
44612
44612
  var Request2 = class _Request {
44613
44613
  constructor(origin2, {
44614
- path: path11,
44614
+ path: path12,
44615
44615
  method,
44616
44616
  body,
44617
44617
  headers,
@@ -44625,11 +44625,11 @@ var require_request = __commonJS({
44625
44625
  throwOnError,
44626
44626
  expectContinue
44627
44627
  }, handler) {
44628
- if (typeof path11 !== "string") {
44628
+ if (typeof path12 !== "string") {
44629
44629
  throw new InvalidArgumentError("path must be a string");
44630
- } else if (path11[0] !== "/" && !(path11.startsWith("http://") || path11.startsWith("https://")) && method !== "CONNECT") {
44630
+ } else if (path12[0] !== "/" && !(path12.startsWith("http://") || path12.startsWith("https://")) && method !== "CONNECT") {
44631
44631
  throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
44632
- } else if (invalidPathRegex.exec(path11) !== null) {
44632
+ } else if (invalidPathRegex.exec(path12) !== null) {
44633
44633
  throw new InvalidArgumentError("invalid request path");
44634
44634
  }
44635
44635
  if (typeof method !== "string") {
@@ -44692,7 +44692,7 @@ var require_request = __commonJS({
44692
44692
  this.completed = false;
44693
44693
  this.aborted = false;
44694
44694
  this.upgrade = upgrade || null;
44695
- this.path = query ? util3.buildURL(path11, query) : path11;
44695
+ this.path = query ? util3.buildURL(path12, query) : path12;
44696
44696
  this.origin = origin2;
44697
44697
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
44698
44698
  this.blocking = blocking == null ? false : blocking;
@@ -45700,9 +45700,9 @@ var require_RedirectHandler = __commonJS({
45700
45700
  return this.handler.onHeaders(statusCode, headers, resume, statusText);
45701
45701
  }
45702
45702
  const { origin: origin2, pathname, search } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
45703
- const path11 = search ? `${pathname}${search}` : pathname;
45703
+ const path12 = search ? `${pathname}${search}` : pathname;
45704
45704
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin2);
45705
- this.opts.path = path11;
45705
+ this.opts.path = path12;
45706
45706
  this.opts.origin = origin2;
45707
45707
  this.opts.maxRedirections = 0;
45708
45708
  this.opts.query = null;
@@ -46944,7 +46944,7 @@ var require_client = __commonJS({
46944
46944
  writeH2(client, client[kHTTP2Session], request);
46945
46945
  return;
46946
46946
  }
46947
- const { body, method, path: path11, host, upgrade, headers, blocking, reset } = request;
46947
+ const { body, method, path: path12, host, upgrade, headers, blocking, reset } = request;
46948
46948
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
46949
46949
  if (body && typeof body.read === "function") {
46950
46950
  body.read(0);
@@ -46994,7 +46994,7 @@ var require_client = __commonJS({
46994
46994
  if (blocking) {
46995
46995
  socket[kBlocking] = true;
46996
46996
  }
46997
- let header = `${method} ${path11} HTTP/1.1\r
46997
+ let header = `${method} ${path12} HTTP/1.1\r
46998
46998
  `;
46999
46999
  if (typeof host === "string") {
47000
47000
  header += `host: ${host}\r
@@ -47057,7 +47057,7 @@ upgrade: ${upgrade}\r
47057
47057
  return true;
47058
47058
  }
47059
47059
  function writeH2(client, session, request) {
47060
- const { body, method, path: path11, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
47060
+ const { body, method, path: path12, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
47061
47061
  let headers;
47062
47062
  if (typeof reqHeaders === "string") headers = Request2[kHTTP2CopyHeaders](reqHeaders.trim());
47063
47063
  else headers = reqHeaders;
@@ -47100,7 +47100,7 @@ upgrade: ${upgrade}\r
47100
47100
  });
47101
47101
  return true;
47102
47102
  }
47103
- headers[HTTP2_HEADER_PATH] = path11;
47103
+ headers[HTTP2_HEADER_PATH] = path12;
47104
47104
  headers[HTTP2_HEADER_SCHEME] = "https";
47105
47105
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
47106
47106
  if (body && typeof body.read === "function") {
@@ -49343,20 +49343,20 @@ var require_mock_utils = __commonJS({
49343
49343
  }
49344
49344
  return true;
49345
49345
  }
49346
- function safeUrl(path11) {
49347
- if (typeof path11 !== "string") {
49348
- return path11;
49346
+ function safeUrl(path12) {
49347
+ if (typeof path12 !== "string") {
49348
+ return path12;
49349
49349
  }
49350
- const pathSegments = path11.split("?");
49350
+ const pathSegments = path12.split("?");
49351
49351
  if (pathSegments.length !== 2) {
49352
- return path11;
49352
+ return path12;
49353
49353
  }
49354
49354
  const qp = new URLSearchParams(pathSegments.pop());
49355
49355
  qp.sort();
49356
49356
  return [...pathSegments, qp.toString()].join("?");
49357
49357
  }
49358
- function matchKey(mockDispatch2, { path: path11, method, body, headers }) {
49359
- const pathMatch = matchValue(mockDispatch2.path, path11);
49358
+ function matchKey(mockDispatch2, { path: path12, method, body, headers }) {
49359
+ const pathMatch = matchValue(mockDispatch2.path, path12);
49360
49360
  const methodMatch = matchValue(mockDispatch2.method, method);
49361
49361
  const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
49362
49362
  const headersMatch = matchHeaders(mockDispatch2, headers);
@@ -49374,7 +49374,7 @@ var require_mock_utils = __commonJS({
49374
49374
  function getMockDispatch(mockDispatches, key) {
49375
49375
  const basePath = key.query ? buildURL2(key.path, key.query) : key.path;
49376
49376
  const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
49377
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path11 }) => matchValue(safeUrl(path11), resolvedPath));
49377
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path12 }) => matchValue(safeUrl(path12), resolvedPath));
49378
49378
  if (matchedMockDispatches.length === 0) {
49379
49379
  throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
49380
49380
  }
@@ -49411,9 +49411,9 @@ var require_mock_utils = __commonJS({
49411
49411
  }
49412
49412
  }
49413
49413
  function buildKey(opts) {
49414
- const { path: path11, method, body, headers, query } = opts;
49414
+ const { path: path12, method, body, headers, query } = opts;
49415
49415
  return {
49416
- path: path11,
49416
+ path: path12,
49417
49417
  method,
49418
49418
  body,
49419
49419
  headers,
@@ -49862,10 +49862,10 @@ var require_pending_interceptors_formatter = __commonJS({
49862
49862
  }
49863
49863
  format(pendingInterceptors) {
49864
49864
  const withPrettyHeaders = pendingInterceptors.map(
49865
- ({ method, path: path11, data: { statusCode }, persist, times: times2, timesInvoked, origin: origin2 }) => ({
49865
+ ({ method, path: path12, data: { statusCode }, persist, times: times2, timesInvoked, origin: origin2 }) => ({
49866
49866
  Method: method,
49867
49867
  Origin: origin2,
49868
- Path: path11,
49868
+ Path: path12,
49869
49869
  "Status code": statusCode,
49870
49870
  Persistent: persist ? "\u2705" : "\u274C",
49871
49871
  Invocations: timesInvoked,
@@ -54512,8 +54512,8 @@ var require_util10 = __commonJS({
54512
54512
  }
54513
54513
  }
54514
54514
  }
54515
- function validateCookiePath(path11) {
54516
- for (const char of path11) {
54515
+ function validateCookiePath(path12) {
54516
+ for (const char of path12) {
54517
54517
  const code = char.charCodeAt(0);
54518
54518
  if (code < 33 || char === ";") {
54519
54519
  throw new Error("Invalid cookie path");
@@ -56222,11 +56222,11 @@ var require_undici = __commonJS({
56222
56222
  if (typeof opts.path !== "string") {
56223
56223
  throw new InvalidArgumentError("invalid opts.path");
56224
56224
  }
56225
- let path11 = opts.path;
56225
+ let path12 = opts.path;
56226
56226
  if (!opts.path.startsWith("/")) {
56227
- path11 = `/${path11}`;
56227
+ path12 = `/${path12}`;
56228
56228
  }
56229
- url2 = new URL(util3.parseOrigin(url2).origin + path11);
56229
+ url2 = new URL(util3.parseOrigin(url2).origin + path12);
56230
56230
  } else {
56231
56231
  if (!opts) {
56232
56232
  opts = typeof url2 === "object" ? url2 : {};
@@ -56764,9 +56764,9 @@ function isVisitable(thing) {
56764
56764
  function removeBrackets(key) {
56765
56765
  return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
56766
56766
  }
56767
- function renderKey(path11, key, dots) {
56768
- if (!path11) return key;
56769
- return path11.concat(key).map(function each2(token, i) {
56767
+ function renderKey(path12, key, dots) {
56768
+ if (!path12) return key;
56769
+ return path12.concat(key).map(function each2(token, i) {
56770
56770
  token = removeBrackets(token);
56771
56771
  return !dots && i ? "[" + token + "]" : token;
56772
56772
  }).join(dots ? "." : "");
@@ -56814,9 +56814,9 @@ function toFormData(obj, formData, options) {
56814
56814
  }
56815
56815
  return value;
56816
56816
  }
56817
- function defaultVisitor(value, key, path11) {
56817
+ function defaultVisitor(value, key, path12) {
56818
56818
  let arr = value;
56819
- if (value && !path11 && typeof value === "object") {
56819
+ if (value && !path12 && typeof value === "object") {
56820
56820
  if (utils_default.endsWith(key, "{}")) {
56821
56821
  key = metaTokens ? key : key.slice(0, -2);
56822
56822
  value = JSON.stringify(value);
@@ -56835,7 +56835,7 @@ function toFormData(obj, formData, options) {
56835
56835
  if (isVisitable(value)) {
56836
56836
  return true;
56837
56837
  }
56838
- formData.append(renderKey(path11, key, dots), convertValue(value));
56838
+ formData.append(renderKey(path12, key, dots), convertValue(value));
56839
56839
  return false;
56840
56840
  }
56841
56841
  const stack = [];
@@ -56844,10 +56844,10 @@ function toFormData(obj, formData, options) {
56844
56844
  convertValue,
56845
56845
  isVisitable
56846
56846
  });
56847
- function build(value, path11) {
56847
+ function build(value, path12) {
56848
56848
  if (utils_default.isUndefined(value)) return;
56849
56849
  if (stack.indexOf(value) !== -1) {
56850
- throw Error("Circular reference detected in " + path11.join("."));
56850
+ throw Error("Circular reference detected in " + path12.join("."));
56851
56851
  }
56852
56852
  stack.push(value);
56853
56853
  utils_default.forEach(value, function each2(el, key) {
@@ -56855,11 +56855,11 @@ function toFormData(obj, formData, options) {
56855
56855
  formData,
56856
56856
  el,
56857
56857
  utils_default.isString(key) ? key.trim() : key,
56858
- path11,
56858
+ path12,
56859
56859
  exposedHelpers
56860
56860
  );
56861
56861
  if (result === true) {
56862
- build(el, path11 ? path11.concat(key) : [key]);
56862
+ build(el, path12 ? path12.concat(key) : [key]);
56863
56863
  }
56864
56864
  });
56865
56865
  stack.pop();
@@ -57071,7 +57071,7 @@ var platform_default = {
57071
57071
  // ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
57072
57072
  function toURLEncodedForm(data, options) {
57073
57073
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
57074
- visitor: function(value, key, path11, helpers) {
57074
+ visitor: function(value, key, path12, helpers) {
57075
57075
  if (platform_default.isNode && utils_default.isBuffer(value)) {
57076
57076
  this.append(key, value.toString("base64"));
57077
57077
  return false;
@@ -57100,11 +57100,11 @@ function arrayToObject(arr) {
57100
57100
  return obj;
57101
57101
  }
57102
57102
  function formDataToJSON(formData) {
57103
- function buildPath(path11, value, target, index2) {
57104
- let name = path11[index2++];
57103
+ function buildPath(path12, value, target, index2) {
57104
+ let name = path12[index2++];
57105
57105
  if (name === "__proto__") return true;
57106
57106
  const isNumericKey = Number.isFinite(+name);
57107
- const isLast = index2 >= path11.length;
57107
+ const isLast = index2 >= path12.length;
57108
57108
  name = !name && utils_default.isArray(target) ? target.length : name;
57109
57109
  if (isLast) {
57110
57110
  if (utils_default.hasOwnProp(target, name)) {
@@ -57117,7 +57117,7 @@ function formDataToJSON(formData) {
57117
57117
  if (!target[name] || !utils_default.isObject(target[name])) {
57118
57118
  target[name] = [];
57119
57119
  }
57120
- const result = buildPath(path11, value, target[name], index2);
57120
+ const result = buildPath(path12, value, target[name], index2);
57121
57121
  if (result && utils_default.isArray(target[name])) {
57122
57122
  target[name] = arrayToObject(target[name]);
57123
57123
  }
@@ -58252,9 +58252,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
58252
58252
  auth = urlUsername + ":" + urlPassword;
58253
58253
  }
58254
58254
  auth && headers.delete("authorization");
58255
- let path11;
58255
+ let path12;
58256
58256
  try {
58257
- path11 = buildURL(
58257
+ path12 = buildURL(
58258
58258
  parsed.pathname + parsed.search,
58259
58259
  config.params,
58260
58260
  config.paramsSerializer
@@ -58272,7 +58272,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
58272
58272
  false
58273
58273
  );
58274
58274
  const options = {
58275
- path: path11,
58275
+ path: path12,
58276
58276
  method,
58277
58277
  headers: headers.toJSON(),
58278
58278
  agents: { http: config.httpAgent, https: config.httpsAgent },
@@ -58502,10 +58502,10 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
58502
58502
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
58503
58503
  // Standard browser envs support document.cookie
58504
58504
  {
58505
- write(name, value, expires, path11, domain, secure) {
58505
+ write(name, value, expires, path12, domain, secure) {
58506
58506
  const cookie = [name + "=" + encodeURIComponent(value)];
58507
58507
  utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
58508
- utils_default.isString(path11) && cookie.push("path=" + path11);
58508
+ utils_default.isString(path12) && cookie.push("path=" + path12);
58509
58509
  utils_default.isString(domain) && cookie.push("domain=" + domain);
58510
58510
  secure === true && cookie.push("secure");
58511
58511
  document.cookie = cookie.join("; ");
@@ -61206,7 +61206,7 @@ var kickstartCommand = new Command("kickstart").description("Kickstart a new Mic
61206
61206
  });
61207
61207
 
61208
61208
  // package.json
61209
- var version = "1.2.0";
61209
+ var version = "1.2.1";
61210
61210
 
61211
61211
  // src/commands/track.ts
61212
61212
  var track = new Command("track").description("Run tracker scripts locally.").option("--file <path>", "Run a single tracker file instead of all.").action(async (options) => {
@@ -63995,17 +63995,17 @@ var ESC_1_RE = /~1/g;
63995
63995
  var TS_UNION_INTERSECTION_RE = /[&|]/;
63996
63996
  var TS_READONLY_RE = /^readonly\s+/;
63997
63997
  var JS_OBJ_KEY = /^(\d+|[A-Za-z_$][A-Za-z0-9_$]*)$/;
63998
- function walk(obj, cb, path11 = []) {
63998
+ function walk(obj, cb, path12 = []) {
63999
63999
  if (!obj || typeof obj !== "object")
64000
64000
  return;
64001
64001
  if (Array.isArray(obj)) {
64002
64002
  for (let i = 0; i < obj.length; i++)
64003
- walk(obj[i], cb, path11.concat(i));
64003
+ walk(obj[i], cb, path12.concat(i));
64004
64004
  return;
64005
64005
  }
64006
- cb(obj, path11);
64006
+ cb(obj, path12);
64007
64007
  for (const k of Object.keys(obj))
64008
- walk(obj[k], cb, path11.concat(k));
64008
+ walk(obj[k], cb, path12.concat(k));
64009
64009
  }
64010
64010
  function getSchemaObjectComment(v, indentLv) {
64011
64011
  if (!v || typeof v !== "object")
@@ -64060,23 +64060,23 @@ function parseRef(ref) {
64060
64060
  if (ref.includes("#/")) {
64061
64061
  const [filename, pathStr] = ref.split("#");
64062
64062
  const parts = pathStr.split("/");
64063
- const path11 = [];
64063
+ const path12 = [];
64064
64064
  for (const part of parts) {
64065
64065
  if (!part || part === "properties")
64066
64066
  continue;
64067
- path11.push(decodeRef(part));
64067
+ path12.push(decodeRef(part));
64068
64068
  }
64069
- return { filename: filename || ".", path: path11 };
64069
+ return { filename: filename || ".", path: path12 };
64070
64070
  } else if (ref.includes('["')) {
64071
64071
  const parts = ref.split('["');
64072
- const path11 = [];
64072
+ const path12 = [];
64073
64073
  for (const part of parts) {
64074
64074
  const sanitized = part.replace('"]', "").trim();
64075
64075
  if (!sanitized || sanitized === "properties")
64076
64076
  continue;
64077
- path11.push(sanitized);
64077
+ path12.push(sanitized);
64078
64078
  }
64079
- return { filename: ".", path: path11 };
64079
+ return { filename: ".", path: path12 };
64080
64080
  }
64081
64081
  return { filename: ref, path: [] };
64082
64082
  }
@@ -64393,124 +64393,124 @@ function relativePath(src, dest) {
64393
64393
  }
64394
64394
  return dest.href;
64395
64395
  }
64396
- function getHint({ path: path11, external, startFrom }) {
64396
+ function getHint({ path: path12, external, startFrom }) {
64397
64397
  if (startFrom && startFrom !== "OpenAPI3") {
64398
64398
  switch (startFrom) {
64399
64399
  case "OperationObject":
64400
- return getHintFromOperationObject(path11, external);
64400
+ return getHintFromOperationObject(path12, external);
64401
64401
  case "RequestBodyObject":
64402
- return getHintFromRequestBodyObject(path11, external);
64402
+ return getHintFromRequestBodyObject(path12, external);
64403
64403
  case "ResponseObject":
64404
- return getHintFromResponseObject(path11, external);
64404
+ return getHintFromResponseObject(path12, external);
64405
64405
  case "SchemaMap":
64406
64406
  return "SchemaObject";
64407
64407
  default:
64408
64408
  return startFrom;
64409
64409
  }
64410
64410
  }
64411
- switch (path11[0]) {
64411
+ switch (path12[0]) {
64412
64412
  case "paths": {
64413
- if (EXT_RE.test(path11[2])) {
64413
+ if (EXT_RE.test(path12[2])) {
64414
64414
  return "SchemaMap";
64415
64415
  }
64416
- return getHintFromPathItemObject(path11.slice(2), external);
64416
+ return getHintFromPathItemObject(path12.slice(2), external);
64417
64417
  }
64418
64418
  case "components":
64419
- return getHintFromComponentsObject(path11.slice(1), external);
64419
+ return getHintFromComponentsObject(path12.slice(1), external);
64420
64420
  }
64421
64421
  return void 0;
64422
64422
  }
64423
- function getHintFromComponentsObject(path11, external) {
64424
- switch (path11[0]) {
64423
+ function getHintFromComponentsObject(path12, external) {
64424
+ switch (path12[0]) {
64425
64425
  case "schemas":
64426
64426
  case "headers":
64427
- return getHintFromSchemaObject(path11.slice(2), external);
64427
+ return getHintFromSchemaObject(path12.slice(2), external);
64428
64428
  case "parameters":
64429
- return getHintFromParameterObject(path11.slice(2), external);
64429
+ return getHintFromParameterObject(path12.slice(2), external);
64430
64430
  case "responses":
64431
- return getHintFromResponseObject(path11.slice(2), external);
64431
+ return getHintFromResponseObject(path12.slice(2), external);
64432
64432
  case "requestBodies":
64433
- return getHintFromRequestBodyObject(path11.slice(2), external);
64433
+ return getHintFromRequestBodyObject(path12.slice(2), external);
64434
64434
  case "pathItems":
64435
- return getHintFromPathItemObject(path11.slice(2), external);
64435
+ return getHintFromPathItemObject(path12.slice(2), external);
64436
64436
  }
64437
64437
  return "SchemaObject";
64438
64438
  }
64439
- function getHintFromMediaTypeObject(path11, external) {
64440
- switch (path11[0]) {
64439
+ function getHintFromMediaTypeObject(path12, external) {
64440
+ switch (path12[0]) {
64441
64441
  case "schema":
64442
- return getHintFromSchemaObject(path11.slice(1), external);
64442
+ return getHintFromSchemaObject(path12.slice(1), external);
64443
64443
  }
64444
64444
  return "MediaTypeObject";
64445
64445
  }
64446
- function getHintFromOperationObject(path11, external) {
64447
- switch (path11[0]) {
64446
+ function getHintFromOperationObject(path12, external) {
64447
+ switch (path12[0]) {
64448
64448
  case "parameters":
64449
64449
  return "ParameterObject[]";
64450
64450
  case "requestBody":
64451
- return getHintFromRequestBodyObject(path11.slice(1), external);
64451
+ return getHintFromRequestBodyObject(path12.slice(1), external);
64452
64452
  case "responses":
64453
- return getHintFromResponseObject(path11.slice(2), external);
64453
+ return getHintFromResponseObject(path12.slice(2), external);
64454
64454
  }
64455
64455
  return "OperationObject";
64456
64456
  }
64457
- function getHintFromParameterObject(path11, external) {
64458
- switch (path11[0]) {
64457
+ function getHintFromParameterObject(path12, external) {
64458
+ switch (path12[0]) {
64459
64459
  case "content":
64460
- return getHintFromMediaTypeObject(path11.slice(2), external);
64460
+ return getHintFromMediaTypeObject(path12.slice(2), external);
64461
64461
  case "schema":
64462
- return getHintFromSchemaObject(path11.slice(1), external);
64462
+ return getHintFromSchemaObject(path12.slice(1), external);
64463
64463
  }
64464
64464
  return "ParameterObject";
64465
64465
  }
64466
- function getHintFromPathItemObject(path11, external) {
64467
- switch (path11[0]) {
64466
+ function getHintFromPathItemObject(path12, external) {
64467
+ switch (path12[0]) {
64468
64468
  case "parameters": {
64469
- if (typeof path11[1] === "number") {
64469
+ if (typeof path12[1] === "number") {
64470
64470
  return "ParameterObject[]";
64471
64471
  }
64472
- return getHintFromParameterObject(path11.slice(1), external);
64472
+ return getHintFromParameterObject(path12.slice(1), external);
64473
64473
  }
64474
64474
  default:
64475
- return getHintFromOperationObject(path11.slice(1), external);
64475
+ return getHintFromOperationObject(path12.slice(1), external);
64476
64476
  }
64477
64477
  }
64478
- function getHintFromRequestBodyObject(path11, external) {
64479
- switch (path11[0]) {
64478
+ function getHintFromRequestBodyObject(path12, external) {
64479
+ switch (path12[0]) {
64480
64480
  case "content":
64481
- return getHintFromMediaTypeObject(path11.slice(2), external);
64481
+ return getHintFromMediaTypeObject(path12.slice(2), external);
64482
64482
  }
64483
64483
  return "RequestBodyObject";
64484
64484
  }
64485
- function getHintFromResponseObject(path11, external) {
64486
- switch (path11[0]) {
64485
+ function getHintFromResponseObject(path12, external) {
64486
+ switch (path12[0]) {
64487
64487
  case "headers":
64488
- return getHintFromSchemaObject(path11.slice(2), external);
64488
+ return getHintFromSchemaObject(path12.slice(2), external);
64489
64489
  case "content":
64490
- return getHintFromMediaTypeObject(path11.slice(2), external);
64490
+ return getHintFromMediaTypeObject(path12.slice(2), external);
64491
64491
  }
64492
64492
  return "ResponseObject";
64493
64493
  }
64494
- function getHintFromSchemaObject(path11, external) {
64495
- switch (path11[0]) {
64494
+ function getHintFromSchemaObject(path12, external) {
64495
+ switch (path12[0]) {
64496
64496
  case "allOf":
64497
64497
  case "anyOf":
64498
64498
  case "oneOf":
64499
64499
  return "SchemaMap";
64500
64500
  }
64501
- if (path11.length >= 2 && external) {
64501
+ if (path12.length >= 2 && external) {
64502
64502
  return "SchemaMap";
64503
64503
  }
64504
64504
  return "SchemaObject";
64505
64505
  }
64506
64506
 
64507
64507
  // node_modules/openapi-typescript/dist/transform/parameter-object.js
64508
- function transformParameterObject(parameterObject, { path: path11, ctx }) {
64509
- return parameterObject.schema ? transformSchemaObject(parameterObject.schema, { path: path11, ctx }) : "string";
64508
+ function transformParameterObject(parameterObject, { path: path12, ctx }) {
64509
+ return parameterObject.schema ? transformSchemaObject(parameterObject.schema, { path: path12, ctx }) : "string";
64510
64510
  }
64511
64511
 
64512
64512
  // node_modules/openapi-typescript/dist/transform/request-body-object.js
64513
- function transformRequestBodyObject(requestBodyObject, { path: path11, ctx }) {
64513
+ function transformRequestBodyObject(requestBodyObject, { path: path12, ctx }) {
64514
64514
  let { indentLv } = ctx;
64515
64515
  const output = ["{"];
64516
64516
  indentLv++;
@@ -64528,12 +64528,12 @@ function transformRequestBodyObject(requestBodyObject, { path: path11, ctx }) {
64528
64528
  key = tsReadonly(key);
64529
64529
  if ("$ref" in mediaTypeObject) {
64530
64530
  output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, {
64531
- path: `${path11}/${contentType}`,
64531
+ path: `${path12}/${contentType}`,
64532
64532
  ctx: { ...ctx, indentLv }
64533
64533
  })};`, indentLv));
64534
64534
  } else {
64535
64535
  const mediaType = transformMediaTypeObject(mediaTypeObject, {
64536
- path: `${path11}/${contentType}`,
64536
+ path: `${path12}/${contentType}`,
64537
64537
  ctx: { ...ctx, indentLv }
64538
64538
  });
64539
64539
  output.push(indent(`${key}: ${mediaType};`, indentLv));
@@ -64547,7 +64547,7 @@ function transformRequestBodyObject(requestBodyObject, { path: path11, ctx }) {
64547
64547
  }
64548
64548
 
64549
64549
  // node_modules/openapi-typescript/dist/transform/response-object.js
64550
- function transformResponseObject(responseObject, { path: path11, ctx }) {
64550
+ function transformResponseObject(responseObject, { path: path12, ctx }) {
64551
64551
  const output = ["{"];
64552
64552
  let { indentLv } = ctx;
64553
64553
  if (responseObject.headers) {
@@ -64567,7 +64567,7 @@ function transformResponseObject(responseObject, { path: path11, ctx }) {
64567
64567
  if (!headerObject.required)
64568
64568
  key = tsOptionalProperty(key);
64569
64569
  output.push(indent(`${key}: ${transformHeaderObject(headerObject, {
64570
- path: `${path11}/headers/${name}`,
64570
+ path: `${path12}/headers/${name}`,
64571
64571
  ctx: { ...ctx, indentLv }
64572
64572
  })};`, indentLv));
64573
64573
  }
@@ -64585,7 +64585,7 @@ function transformResponseObject(responseObject, { path: path11, ctx }) {
64585
64585
  if (ctx.immutableTypes)
64586
64586
  key = tsReadonly(key);
64587
64587
  output.push(indent(`${key}: ${transformMediaTypeObject(mediaTypeObject, {
64588
- path: `${path11}/content/${contentType}`,
64588
+ path: `${path12}/content/${contentType}`,
64589
64589
  ctx: { ...ctx, indentLv }
64590
64590
  })};`, indentLv));
64591
64591
  }
@@ -64602,7 +64602,7 @@ function transformResponseObject(responseObject, { path: path11, ctx }) {
64602
64602
  }
64603
64603
 
64604
64604
  // node_modules/openapi-typescript/dist/transform/operation-object.js
64605
- function transformOperationObject(operationObject, { path: path11, ctx, wrapObject = true }) {
64605
+ function transformOperationObject(operationObject, { path: path12, ctx, wrapObject = true }) {
64606
64606
  let { indentLv } = ctx;
64607
64607
  const output = wrapObject ? ["{"] : [];
64608
64608
  indentLv++;
@@ -64630,7 +64630,7 @@ function transformOperationObject(operationObject, { path: path11, ctx, wrapObje
64630
64630
  if (c2)
64631
64631
  paramInternalOutput.push(indent(c2, indentLv));
64632
64632
  const parameterType = "$ref" in param ? param.$ref : transformParameterObject(param, {
64633
- path: `${path11}/parameters/${param.name}`,
64633
+ path: `${path12}/parameters/${param.name}`,
64634
64634
  ctx: { ...ctx, indentLv }
64635
64635
  });
64636
64636
  paramInternalOutput.push(indent(`${key}: ${parameterType};`, indentLv));
@@ -64660,12 +64660,12 @@ function transformOperationObject(operationObject, { path: path11, ctx, wrapObje
64660
64660
  if (ctx.immutableTypes)
64661
64661
  key = tsReadonly(key);
64662
64662
  if ("$ref" in operationObject.requestBody) {
64663
- output.push(indent(`${key}: ${transformSchemaObject(operationObject.requestBody, { path: path11, ctx })};`, indentLv));
64663
+ output.push(indent(`${key}: ${transformSchemaObject(operationObject.requestBody, { path: path12, ctx })};`, indentLv));
64664
64664
  } else {
64665
64665
  if (!operationObject.requestBody.required)
64666
64666
  key = tsOptionalProperty(key);
64667
64667
  const requestBody = transformRequestBodyObject(operationObject.requestBody, {
64668
- path: `${path11}/requestBody`,
64668
+ path: `${path12}/requestBody`,
64669
64669
  ctx: { ...ctx, indentLv }
64670
64670
  });
64671
64671
  output.push(indent(`${key}: ${requestBody};`, indentLv));
@@ -64683,12 +64683,12 @@ function transformOperationObject(operationObject, { path: path11, ctx, wrapObje
64683
64683
  output.push(indent(c2, indentLv));
64684
64684
  if ("$ref" in responseObject) {
64685
64685
  output.push(indent(`${key}: ${transformSchemaObject(responseObject, {
64686
- path: `${path11}/responses/${responseCode}`,
64686
+ path: `${path12}/responses/${responseCode}`,
64687
64687
  ctx
64688
64688
  })};`, indentLv));
64689
64689
  } else {
64690
64690
  const responseType = transformResponseObject(responseObject, {
64691
- path: `${path11}/responses/${responseCode}`,
64691
+ path: `${path12}/responses/${responseCode}`,
64692
64692
  ctx: { ...ctx, indentLv }
64693
64693
  });
64694
64694
  output.push(indent(`${key}: ${responseType};`, indentLv));
@@ -64706,7 +64706,7 @@ function transformOperationObject(operationObject, { path: path11, ctx, wrapObje
64706
64706
  }
64707
64707
 
64708
64708
  // node_modules/openapi-typescript/dist/transform/path-item-object.js
64709
- function transformPathItemObject(pathItem, { path: path11, ctx }) {
64709
+ function transformPathItemObject(pathItem, { path: path12, ctx }) {
64710
64710
  var _a, _b;
64711
64711
  let { indentLv } = ctx;
64712
64712
  const output = [];
@@ -64728,19 +64728,19 @@ function transformPathItemObject(pathItem, { path: path11, ctx }) {
64728
64728
  if ("$ref" in operationObject) {
64729
64729
  output.push(indent(`${method}: ${operationObject.$ref}`, indentLv));
64730
64730
  } else if (operationObject.operationId) {
64731
- const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path11, ctx: { ...ctx, indentLv: 1 } });
64731
+ const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path12, ctx: { ...ctx, indentLv: 1 } });
64732
64732
  ctx.operations[operationObject.operationId] = {
64733
64733
  operationType,
64734
64734
  comment: getSchemaObjectComment(operationObject, 1)
64735
64735
  };
64736
64736
  output.push(indent(`${method}: operations[${escStr(operationObject.operationId)}];`, indentLv));
64737
64737
  } else {
64738
- const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path11, ctx: { ...ctx, indentLv } });
64738
+ const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path12, ctx: { ...ctx, indentLv } });
64739
64739
  output.push(indent(`${method}: ${operationType};`, indentLv));
64740
64740
  }
64741
64741
  }
64742
64742
  if ((_b = pathItem.parameters) == null ? void 0 : _b.length) {
64743
- output.push(indent(transformOperationObject({ parameters: pathItem.parameters }, { path: path11, ctx, wrapObject: false }).trim(), indentLv));
64743
+ output.push(indent(transformOperationObject({ parameters: pathItem.parameters }, { path: path12, ctx, wrapObject: false }).trim(), indentLv));
64744
64744
  }
64745
64745
  indentLv--;
64746
64746
  output.push(indent("}", indentLv));
@@ -64748,9 +64748,9 @@ function transformPathItemObject(pathItem, { path: path11, ctx }) {
64748
64748
  }
64749
64749
 
64750
64750
  // node_modules/openapi-typescript/dist/transform/schema-object-map.js
64751
- function transformSchemaObjectMap(schemaObjMap, { path: path11, ctx }) {
64751
+ function transformSchemaObjectMap(schemaObjMap, { path: path12, ctx }) {
64752
64752
  if ("type" in schemaObjMap && typeof schemaObjMap.type === "string" || "allOf" in schemaObjMap && Array.isArray(schemaObjMap.allOf) || "oneOf" in schemaObjMap && Array.isArray(schemaObjMap.oneOf) || "anyOf" in schemaObjMap && Array.isArray(schemaObjMap.anyOf)) {
64753
- return transformSchemaObject(schemaObjMap, { path: path11, ctx });
64753
+ return transformSchemaObject(schemaObjMap, { path: path12, ctx });
64754
64754
  }
64755
64755
  let { indentLv } = ctx;
64756
64756
  const output = ["{"];
@@ -64767,16 +64767,16 @@ function transformSchemaObjectMap(schemaObjMap, { path: path11, ctx }) {
64767
64767
  if (!("type" in schemaObject) && !("$ref" in schemaObject)) {
64768
64768
  for (const method of ["get", "put", "post", "delete", "options", "head", "patch", "trace"]) {
64769
64769
  if (method in schemaObject) {
64770
- output.push(indent(`${key}: ${transformPathItemObject(schemaObject, { path: `${path11}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64770
+ output.push(indent(`${key}: ${transformPathItemObject(schemaObject, { path: `${path12}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64771
64771
  continue outer;
64772
64772
  }
64773
64773
  }
64774
64774
  }
64775
64775
  if ("in" in schemaObject) {
64776
- output.push(indent(`${key}: ${transformParameterObject(schemaObject, { path: `${path11}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64776
+ output.push(indent(`${key}: ${transformParameterObject(schemaObject, { path: `${path12}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64777
64777
  continue;
64778
64778
  }
64779
- output.push(indent(`${key}: ${transformSchemaObject(schemaObject, { path: `${path11}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64779
+ output.push(indent(`${key}: ${transformSchemaObject(schemaObject, { path: `${path12}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
64780
64780
  }
64781
64781
  indentLv--;
64782
64782
  output.push(indent("}", indentLv));
@@ -64793,7 +64793,7 @@ function transformSchemaObject(schemaObject, options) {
64793
64793
  }
64794
64794
  return result;
64795
64795
  }
64796
- function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64796
+ function defaultSchemaObjectTransform(schemaObject, { path: path12, ctx }) {
64797
64797
  var _a, _b, _c;
64798
64798
  let { indentLv } = ctx;
64799
64799
  if (typeof schemaObject === "boolean") {
@@ -64809,13 +64809,13 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64809
64809
  return schemaObject.$ref;
64810
64810
  }
64811
64811
  if (typeof ctx.transform === "function") {
64812
- const result = ctx.transform(schemaObject, { path: path11, ctx });
64812
+ const result = ctx.transform(schemaObject, { path: path12, ctx });
64813
64813
  if (result)
64814
64814
  return result;
64815
64815
  }
64816
64816
  if (schemaObject.const !== null && schemaObject.const !== void 0) {
64817
64817
  return transformSchemaObject(escStr(schemaObject.const), {
64818
- path: path11,
64818
+ path: path12,
64819
64819
  ctx: { ...ctx, immutableTypes: false, indentLv: indentLv + 1 }
64820
64820
  });
64821
64821
  }
@@ -64832,16 +64832,16 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64832
64832
  }
64833
64833
  const oneOf = typeof schemaObject === "object" && !schemaObject.discriminator && schemaObject.oneOf || schemaObject.enum || void 0;
64834
64834
  if (oneOf && !oneOf.some((t) => "$ref" in t && ctx.discriminators[t.$ref])) {
64835
- const oneOfNormalized = oneOf.map((item) => transformSchemaObject(item, { path: path11, ctx }));
64835
+ const oneOfNormalized = oneOf.map((item) => transformSchemaObject(item, { path: path12, ctx }));
64836
64836
  if (schemaObject.nullable)
64837
64837
  oneOfNormalized.push("null");
64838
64838
  if ("type" in schemaObject && Array.isArray(schemaObject.type)) {
64839
- const coreTypes = schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, oneOf: void 0, type: t }, { path: path11, ctx }));
64839
+ const coreTypes = schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, oneOf: void 0, type: t }, { path: path12, ctx }));
64840
64840
  return tsUnionOf(...oneOfNormalized, ...coreTypes);
64841
64841
  }
64842
64842
  const oneOfTypes = oneOfNormalized.some((t) => typeof t === "string" && t.includes("{")) ? tsOneOf(...oneOfNormalized) : tsUnionOf(...oneOfNormalized);
64843
64843
  if ("type" in schemaObject && schemaObject.type === "object" && (schemaObject.properties || schemaObject.additionalProperties)) {
64844
- return tsIntersectionOf(transformSchemaObject({ ...schemaObject, oneOf: void 0, enum: void 0 }, { path: path11, ctx }), oneOfTypes);
64844
+ return tsIntersectionOf(transformSchemaObject({ ...schemaObject, oneOf: void 0, enum: void 0 }, { path: path12, ctx }), oneOfTypes);
64845
64845
  }
64846
64846
  return oneOfTypes;
64847
64847
  }
@@ -64862,11 +64862,11 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64862
64862
  isTupleType = true;
64863
64863
  const result = [];
64864
64864
  for (const item of (_a = schemaObject.prefixItems) != null ? _a : schemaObject.items) {
64865
- result.push(transformSchemaObject(item, { path: path11, ctx: { ...ctx, indentLv } }));
64865
+ result.push(transformSchemaObject(item, { path: path12, ctx: { ...ctx, indentLv } }));
64866
64866
  }
64867
64867
  itemType = `[${result.join(", ")}]`;
64868
64868
  } else if (schemaObject.items) {
64869
- itemType = transformSchemaObject(schemaObject.items, { path: path11, ctx: { ...ctx, indentLv } });
64869
+ itemType = transformSchemaObject(schemaObject.items, { path: path12, ctx: { ...ctx, indentLv } });
64870
64870
  }
64871
64871
  const min = typeof schemaObject.minItems === "number" && schemaObject.minItems >= 0 ? schemaObject.minItems : 0;
64872
64872
  const max = typeof schemaObject.maxItems === "number" && schemaObject.maxItems >= 0 && min <= schemaObject.maxItems ? schemaObject.maxItems : void 0;
@@ -64889,7 +64889,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64889
64889
  return schemaObject.nullable ? tsUnionOf(itemType, "null") : itemType;
64890
64890
  }
64891
64891
  if (Array.isArray(schemaObject.type)) {
64892
- return tsUnionOf(...schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, type: t }, { path: path11, ctx })));
64892
+ return tsUnionOf(...schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, type: t }, { path: path12, ctx })));
64893
64893
  }
64894
64894
  }
64895
64895
  const coreType = [];
@@ -64898,16 +64898,16 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64898
64898
  continue;
64899
64899
  const discriminatorRef = schemaObject[k].find((t) => "$ref" in t && (ctx.discriminators[t.$ref] || Object.values(ctx.discriminators).find((d) => {
64900
64900
  var _a2;
64901
- return (_a2 = d.oneOf) == null ? void 0 : _a2.includes(path11);
64901
+ return (_a2 = d.oneOf) == null ? void 0 : _a2.includes(path12);
64902
64902
  })));
64903
64903
  if (discriminatorRef && ctx.discriminators[discriminatorRef.$ref]) {
64904
- coreType.unshift(indent(getDiscriminatorPropertyName(path11, ctx.discriminators[discriminatorRef.$ref]), indentLv + 1));
64904
+ coreType.unshift(indent(getDiscriminatorPropertyName(path12, ctx.discriminators[discriminatorRef.$ref]), indentLv + 1));
64905
64905
  break;
64906
64906
  }
64907
64907
  }
64908
64908
  for (const d of Object.values(ctx.discriminators)) {
64909
- if ((_b = d.oneOf) == null ? void 0 : _b.includes(path11)) {
64910
- coreType.unshift(indent(getDiscriminatorPropertyName(path11, d), indentLv + 1));
64909
+ if ((_b = d.oneOf) == null ? void 0 : _b.includes(path12)) {
64910
+ coreType.unshift(indent(getDiscriminatorPropertyName(path12, d), indentLv + 1));
64911
64911
  break;
64912
64912
  }
64913
64913
  }
@@ -64925,7 +64925,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64925
64925
  key = tsOptionalProperty(key);
64926
64926
  if (ctx.immutableTypes || schemaObject.readOnly)
64927
64927
  key = tsReadonly(key);
64928
- coreType.push(indent(`${key}: ${transformSchemaObject(v, { path: path11, ctx: { ...ctx, indentLv } })};`, indentLv));
64928
+ coreType.push(indent(`${key}: ${transformSchemaObject(v, { path: path12, ctx: { ...ctx, indentLv } })};`, indentLv));
64929
64929
  }
64930
64930
  if (schemaObject.additionalProperties || ctx.additionalProperties) {
64931
64931
  let addlType = "unknown";
@@ -64934,7 +64934,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64934
64934
  addlType = "unknown";
64935
64935
  } else {
64936
64936
  addlType = transformSchemaObject(schemaObject.additionalProperties, {
64937
- path: path11,
64937
+ path: path12,
64938
64938
  ctx: { ...ctx, indentLv }
64939
64939
  });
64940
64940
  }
@@ -64947,7 +64947,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path11, ctx }) {
64947
64947
  }
64948
64948
  }
64949
64949
  if (schemaObject.$defs && typeof schemaObject.$defs === "object" && Object.keys(schemaObject.$defs).length) {
64950
- coreType.push(indent(`$defs: ${transformSchemaObjectMap(schemaObject.$defs, { path: `${path11}$defs/`, ctx: { ...ctx, indentLv } })};`, indentLv));
64950
+ coreType.push(indent(`$defs: ${transformSchemaObjectMap(schemaObject.$defs, { path: `${path12}$defs/`, ctx: { ...ctx, indentLv } })};`, indentLv));
64951
64951
  }
64952
64952
  indentLv--;
64953
64953
  }
@@ -64957,7 +64957,7 @@ ${indent("}", indentLv)}` : "";
64957
64957
  function collectCompositions(items) {
64958
64958
  const output = [];
64959
64959
  for (const item of items) {
64960
- const itemType = transformSchemaObject(item, { path: path11, ctx: { ...ctx, indentLv } });
64960
+ const itemType = transformSchemaObject(item, { path: path12, ctx: { ...ctx, indentLv } });
64961
64961
  if ("$ref" in item && ctx.discriminators[item.$ref]) {
64962
64962
  output.push(tsOmit(itemType, [ctx.discriminators[item.$ref].propertyName]));
64963
64963
  continue;
@@ -64994,8 +64994,8 @@ ${indent("}", indentLv)}` : "";
64994
64994
  return "unknown";
64995
64995
  return ctx.emptyObjectsUnknown ? "Record<string, unknown>" : "Record<string, never>";
64996
64996
  }
64997
- function getDiscriminatorPropertyName(path11, discriminator) {
64998
- let value = parseRef(path11).path.pop();
64997
+ function getDiscriminatorPropertyName(path12, discriminator) {
64998
+ let value = parseRef(path12).path.pop();
64999
64999
  if (discriminator.mapping) {
65000
65000
  const matchedValue = Object.entries(discriminator.mapping).find(([, v]) => !v.startsWith("#") && v === value || v.startsWith("#") && parseRef(v).path.pop() === value);
65001
65001
  if (matchedValue)
@@ -65005,16 +65005,16 @@ function getDiscriminatorPropertyName(path11, discriminator) {
65005
65005
  }
65006
65006
 
65007
65007
  // node_modules/openapi-typescript/dist/transform/media-type-object.js
65008
- function transformMediaTypeObject(mediaTypeObject, { path: path11, ctx }) {
65008
+ function transformMediaTypeObject(mediaTypeObject, { path: path12, ctx }) {
65009
65009
  if (!mediaTypeObject.schema)
65010
65010
  return "unknown";
65011
- return transformSchemaObject(mediaTypeObject.schema, { path: path11, ctx });
65011
+ return transformSchemaObject(mediaTypeObject.schema, { path: path12, ctx });
65012
65012
  }
65013
65013
 
65014
65014
  // node_modules/openapi-typescript/dist/transform/header-object.js
65015
- function transformHeaderObject(headerObject, { path: path11, ctx }) {
65015
+ function transformHeaderObject(headerObject, { path: path12, ctx }) {
65016
65016
  if (headerObject.schema)
65017
- return transformSchemaObject(headerObject.schema, { path: path11, ctx });
65017
+ return transformSchemaObject(headerObject.schema, { path: path12, ctx });
65018
65018
  if (headerObject.content) {
65019
65019
  let { indentLv } = ctx;
65020
65020
  const output = ["{"];
@@ -65027,9 +65027,9 @@ function transformHeaderObject(headerObject, { path: path11, ctx }) {
65027
65027
  if (ctx.immutableTypes)
65028
65028
  key = tsReadonly(key);
65029
65029
  if ("$ref" in mediaTypeObject) {
65030
- output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, { path: `${path11}/${contentType}`, ctx })};`, indentLv));
65030
+ output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, { path: `${path12}/${contentType}`, ctx })};`, indentLv));
65031
65031
  } else {
65032
- const mediaType = transformMediaTypeObject(mediaTypeObject, { path: `${path11}/${contentType}`, ctx });
65032
+ const mediaType = transformMediaTypeObject(mediaTypeObject, { path: `${path12}/${contentType}`, ctx });
65033
65033
  output.push(indent(`${key}: ${mediaType};`, indentLv));
65034
65034
  }
65035
65035
  }
@@ -65209,25 +65209,25 @@ function transformPathsObject(pathsObject, ctx) {
65209
65209
  for (const [url2, pathItemObject] of getEntries(pathsObject, ctx.alphabetize, ctx.excludeDeprecated)) {
65210
65210
  if (!pathItemObject || typeof pathItemObject !== "object")
65211
65211
  continue;
65212
- let path11 = url2;
65212
+ let path12 = url2;
65213
65213
  if ("$ref" in pathItemObject) {
65214
65214
  const c2 = getSchemaObjectComment(pathItemObject, indentLv);
65215
65215
  if (c2)
65216
65216
  output.push(indent(c2, indentLv));
65217
- output.push(indent(`${escStr(path11)}: ${pathItemObject.$ref};`, indentLv));
65217
+ output.push(indent(`${escStr(path12)}: ${pathItemObject.$ref};`, indentLv));
65218
65218
  continue;
65219
65219
  }
65220
65220
  const pathParams = new Map([...extractPathParams(pathItemObject), ...OPERATIONS.flatMap((op) => Array.from(extractPathParams(pathItemObject[op])))]);
65221
65221
  if (ctx.pathParamsAsTypes && pathParams.size) {
65222
65222
  for (const p of pathParams.values()) {
65223
65223
  const paramType = transformParameterObject(p, { path: `#/paths/${url2}/parameters/${p.name}`, ctx });
65224
- path11 = path11.replace(`{${p.name}}`, `\${${paramType}}`);
65224
+ path12 = path12.replace(`{${p.name}}`, `\${${paramType}}`);
65225
65225
  }
65226
- path11 = `[path: \`${path11}\`]`;
65226
+ path12 = `[path: \`${path12}\`]`;
65227
65227
  } else {
65228
- path11 = escStr(path11);
65228
+ path12 = escStr(path12);
65229
65229
  }
65230
- output.push(indent(`${path11}: ${transformPathItemObject(pathItemObject, {
65230
+ output.push(indent(`${path12}: ${transformPathItemObject(pathItemObject, {
65231
65231
  path: `#/paths/${url2}`,
65232
65232
  ctx: { ...ctx, indentLv }
65233
65233
  })};`, indentLv));
@@ -65278,7 +65278,7 @@ function transformSchema(schema2, ctx) {
65278
65278
  }
65279
65279
 
65280
65280
  // node_modules/openapi-typescript/dist/transform/parameter-object-array.js
65281
- function transformParameterObjectArray(parameterObjectArray, { path: path11, ctx }) {
65281
+ function transformParameterObjectArray(parameterObjectArray, { path: path12, ctx }) {
65282
65282
  const output = [];
65283
65283
  const parameters = Array.isArray(parameterObjectArray) ? parameterObjectArray.map((p) => [p.name, p]) : Object.entries(parameterObjectArray);
65284
65284
  for (const [id, param] of parameters) {
@@ -65291,7 +65291,7 @@ function transformParameterObjectArray(parameterObjectArray, { path: path11, ctx
65291
65291
  if (node.in !== "path" && !node.required)
65292
65292
  key = tsOptionalProperty(key);
65293
65293
  output.push(indent(`${key}: ${transformParameterObject(node, {
65294
- path: `${path11}/${node.in}/${node.name}`,
65294
+ path: `${path12}/${node.in}/${node.name}`,
65295
65295
  ctx: { ...ctx, indentLv: ctx.indentLv + 1 }
65296
65296
  })};`, ctx.indentLv));
65297
65297
  }
@@ -65393,7 +65393,7 @@ async function openapiTS(schema2, options = {}) {
65393
65393
  for (const subschemaID of externalKeys) {
65394
65394
  const subschema = allSchemas[subschemaID];
65395
65395
  const key = escObjKey(subschemaID);
65396
- const path11 = `${subschemaID}#`;
65396
+ const path12 = `${subschemaID}#`;
65397
65397
  let subschemaOutput = "";
65398
65398
  let comment2;
65399
65399
  switch (subschema.hint) {
@@ -65414,25 +65414,25 @@ async function openapiTS(schema2, options = {}) {
65414
65414
  break;
65415
65415
  }
65416
65416
  case "MediaTypeObject": {
65417
- subschemaOutput = transformMediaTypeObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } });
65417
+ subschemaOutput = transformMediaTypeObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } });
65418
65418
  break;
65419
65419
  }
65420
65420
  case "OperationObject": {
65421
65421
  comment2 = getSchemaObjectComment(subschema.schema, indentLv);
65422
- subschemaOutput = transformOperationObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } });
65422
+ subschemaOutput = transformOperationObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } });
65423
65423
  break;
65424
65424
  }
65425
65425
  case "ParameterObject": {
65426
- subschemaOutput = transformParameterObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } });
65426
+ subschemaOutput = transformParameterObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } });
65427
65427
  break;
65428
65428
  }
65429
65429
  case "ParameterObject[]": {
65430
65430
  if (typeof subschema.schema === "object" && ("schema" in subschema.schema || "type" in subschema.schema)) {
65431
- subschemaOutput = transformSchemaObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } });
65431
+ subschemaOutput = transformSchemaObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } });
65432
65432
  } else {
65433
65433
  subschemaOutput += "{\n";
65434
65434
  indentLv++;
65435
- subschemaOutput += transformParameterObjectArray(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } });
65435
+ subschemaOutput += transformParameterObjectArray(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } });
65436
65436
  subschemaOutput += "\n";
65437
65437
  indentLv--;
65438
65438
  subschemaOutput += indent("};", indentLv);
@@ -65440,19 +65440,19 @@ async function openapiTS(schema2, options = {}) {
65440
65440
  break;
65441
65441
  }
65442
65442
  case "RequestBodyObject": {
65443
- subschemaOutput = `${transformRequestBodyObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } })};`;
65443
+ subschemaOutput = `${transformRequestBodyObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } })};`;
65444
65444
  break;
65445
65445
  }
65446
65446
  case "ResponseObject": {
65447
- subschemaOutput = `${transformResponseObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } })};`;
65447
+ subschemaOutput = `${transformResponseObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } })};`;
65448
65448
  break;
65449
65449
  }
65450
65450
  case "SchemaMap": {
65451
- subschemaOutput = `${transformSchemaObjectMap(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } })};`;
65451
+ subschemaOutput = `${transformSchemaObjectMap(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } })};`;
65452
65452
  break;
65453
65453
  }
65454
65454
  case "SchemaObject": {
65455
- subschemaOutput = `${transformSchemaObject(subschema.schema, { path: path11, ctx: { ...ctx, indentLv } })};`;
65455
+ subschemaOutput = `${transformSchemaObject(subschema.schema, { path: path12, ctx: { ...ctx, indentLv } })};`;
65456
65456
  break;
65457
65457
  }
65458
65458
  default: {
@@ -65508,6 +65508,109 @@ var openapi = new Command("openapi:gen").description("Generate TypeScript types
65508
65508
  }
65509
65509
  });
65510
65510
 
65511
+ // src/commands/delete-group.ts
65512
+ import * as fs9 from "fs";
65513
+ import * as path11 from "path";
65514
+ var ENDPOINT_BASE2 = ({ mode, version: version2, port }) => {
65515
+ const normalizedMode = (mode == null ? void 0 : mode.toLowerCase()) === "prod" || (mode == null ? void 0 : mode.toLowerCase()) === "production" ? "prod" : "staging";
65516
+ const normalizedVersion = (version2 == null ? void 0 : version2.toLowerCase()) === "v2" ? "v2" : "v1";
65517
+ if (port) return `http://localhost:${port}`;
65518
+ if (normalizedVersion === "v2") return `https://${normalizedMode}-v2-cicd.microfox.app`;
65519
+ return `https://${normalizedMode}-v1-cicd.microfox.app`;
65520
+ };
65521
+ function resolveMicrofoxConfig(startCwd) {
65522
+ const cwd = startCwd;
65523
+ const configPath = path11.join(cwd, "microfox.json");
65524
+ if (fs9.existsSync(configPath)) {
65525
+ return JSON.parse(fs9.readFileSync(configPath, "utf-8"));
65526
+ }
65527
+ const parentConfigPath = path11.join(path11.dirname(cwd), "microfox.json");
65528
+ if (fs9.existsSync(parentConfigPath)) {
65529
+ return JSON.parse(fs9.readFileSync(parentConfigPath, "utf-8"));
65530
+ }
65531
+ const serverlessDir = findServerlessWorkersDir(cwd);
65532
+ if (serverlessDir) {
65533
+ const inServerlessPath = path11.join(serverlessDir, "microfox.json");
65534
+ const inServerlessParentPath = path11.join(path11.dirname(serverlessDir), "microfox.json");
65535
+ if (!fs9.existsSync(inServerlessPath) && fs9.existsSync(inServerlessParentPath)) {
65536
+ try {
65537
+ fs9.copyFileSync(inServerlessParentPath, inServerlessPath);
65538
+ } catch (e) {
65539
+ }
65540
+ }
65541
+ const finalConfigPath = fs9.existsSync(inServerlessPath) ? inServerlessPath : inServerlessParentPath;
65542
+ if (fs9.existsSync(finalConfigPath)) {
65543
+ return JSON.parse(fs9.readFileSync(finalConfigPath, "utf-8"));
65544
+ }
65545
+ }
65546
+ console.error(source_default.red("\u274C Error: `microfox.json` not found. Run from project root or `.serverless-workers`."));
65547
+ process.exit(1);
65548
+ }
65549
+ async function deleteGroupAction(group) {
65550
+ var _a, _b, _c, _d;
65551
+ const normalizedGroup = group == null ? void 0 : group.trim();
65552
+ if (!normalizedGroup) {
65553
+ console.error(source_default.red("\u274C Error: group name is required."));
65554
+ process.exit(1);
65555
+ }
65556
+ const cfg = resolveMicrofoxConfig(process.cwd());
65557
+ const deploymentConfig = cfg.deployment || {};
65558
+ const apiVersion = (deploymentConfig.apiVersion || cfg.apiVersion || cfg.API_VERSION || "").toString().toLowerCase();
65559
+ if (apiVersion !== "v2") {
65560
+ console.error(source_default.red("\u274C Error: `delete-group` is supported only for v2 deployments."));
65561
+ process.exit(1);
65562
+ }
65563
+ const mode = deploymentConfig.apiMode || cfg.apiMode || cfg.API_MODE;
65564
+ const port = deploymentConfig.port || cfg.port || cfg.PORT;
65565
+ const base = ENDPOINT_BASE2({ mode, version: "v2", port });
65566
+ const projectId = cfg.projectId || process.env.PROJECT_ID;
65567
+ if (!projectId) {
65568
+ console.error(source_default.red("\u274C Error: `projectId` is required. Add `projectId` to your microfox.json."));
65569
+ process.exit(1);
65570
+ }
65571
+ const url2 = `${base}/api/projects/${encodeURIComponent(projectId)}/groups/${encodeURIComponent(normalizedGroup)}`;
65572
+ console.log(source_default.cyan(`\u{1F9F9} Requesting deletion for group "${normalizedGroup}"...`));
65573
+ try {
65574
+ const response = await axios_default.delete(url2, {
65575
+ headers: {
65576
+ "x-project-id": projectId
65577
+ },
65578
+ data: {
65579
+ group: normalizedGroup
65580
+ }
65581
+ });
65582
+ if (response.status >= 200 && response.status < 300) {
65583
+ console.log(source_default.green("\u2705 Group resource deletion initiated."));
65584
+ if ((_a = response.data) == null ? void 0 : _a.message) {
65585
+ console.log(source_default.green(` Message: ${response.data.message}`));
65586
+ }
65587
+ if ((_b = response.data) == null ? void 0 : _b.workerName) {
65588
+ console.log(source_default.green(` Worker: ${response.data.workerName}`));
65589
+ }
65590
+ return;
65591
+ }
65592
+ console.error(source_default.red(`\u274C Failed with status ${response.status}`));
65593
+ process.exit(1);
65594
+ } catch (error2) {
65595
+ if (axios_default.isAxiosError(error2) && error2.response) {
65596
+ console.error(source_default.red(`\u274C Error: ${error2.response.status}`));
65597
+ const message = ((_c = error2.response.data) == null ? void 0 : _c.error) || ((_d = error2.response.data) == null ? void 0 : _d.message);
65598
+ if (message) {
65599
+ console.error(source_default.red(` ${message}`));
65600
+ } else {
65601
+ console.error(source_default.red(` ${JSON.stringify(error2.response.data)}`));
65602
+ }
65603
+ } else {
65604
+ console.error(source_default.red("\u274C Failed to delete group resources."));
65605
+ console.error(error2);
65606
+ }
65607
+ process.exit(1);
65608
+ }
65609
+ }
65610
+ var deleteGroupCommand = new Command("delete-group").description("Delete resources for a specific project group (v2)").argument("<group>", "Group name to delete (e.g. default, core, workflows)").action(async (group) => {
65611
+ await deleteGroupAction(group);
65612
+ });
65613
+
65511
65614
  // src/cli.ts
65512
65615
  var program = new Command();
65513
65616
  program.name("microfox").description("Universal CLI tool for creating and managing Microfox projects").version(version);
@@ -65525,6 +65628,7 @@ program.addCommand(kickstartCommand);
65525
65628
  program.addCommand(track);
65526
65629
  program.addCommand(trackCi);
65527
65630
  program.addCommand(openapi);
65631
+ program.addCommand(deleteGroupCommand);
65528
65632
  program.addCommand(addCommand);
65529
65633
  program.action(() => {
65530
65634
  if (process.argv.length <= 2) {