create-storybook 10.0.0-beta.3 → 10.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_y2esa1hqt4p from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_y2esa1hqt4p from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_y2esa1hqt4p from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0v69wlcypqha from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v69wlcypqha from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v69wlcypqha from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_y2esa1hqt4p.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_y2esa1hqt4p.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_y2esa1hqt4p.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0v69wlcypqha.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v69wlcypqha.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v69wlcypqha.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __commonJS,
14
+ __export,
14
15
  __name,
15
16
  __require,
16
17
  __toESM,
17
18
  require_dist
18
- } from "./chunk-MPGA5HZK.js";
19
+ } from "./chunk-CELW5TN7.js";
19
20
 
20
21
  // ../../node_modules/eastasianwidth/eastasianwidth.js
21
22
  var require_eastasianwidth = __commonJS({
@@ -943,7 +944,7 @@ var require_prompt = __commonJS({
943
944
  var require_text = __commonJS({
944
945
  "../../node_modules/prompts/dist/elements/text.js"(exports, module) {
945
946
  "use strict";
946
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
947
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
947
948
  try {
948
949
  var info = gen[key](arg);
949
950
  var value = info.value;
@@ -952,7 +953,7 @@ var require_text = __commonJS({
952
953
  return;
953
954
  }
954
955
  if (info.done) {
955
- resolve3(value);
956
+ resolve4(value);
956
957
  } else {
957
958
  Promise.resolve(value).then(_next, _throw);
958
959
  }
@@ -961,14 +962,14 @@ var require_text = __commonJS({
961
962
  function _asyncToGenerator(fn) {
962
963
  return function() {
963
964
  var self2 = this, args = arguments;
964
- return new Promise(function(resolve3, reject) {
965
+ return new Promise(function(resolve4, reject) {
965
966
  var gen = fn.apply(self2, args);
966
967
  function _next(value) {
967
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
968
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
968
969
  }
969
970
  __name(_next, "_next");
970
971
  function _throw(err) {
971
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
972
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
972
973
  }
973
974
  __name(_throw, "_throw");
974
975
  _next(void 0);
@@ -1722,7 +1723,7 @@ var require_dateparts = __commonJS({
1722
1723
  var require_date = __commonJS({
1723
1724
  "../../node_modules/prompts/dist/elements/date.js"(exports, module) {
1724
1725
  "use strict";
1725
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
1726
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
1726
1727
  try {
1727
1728
  var info = gen[key](arg);
1728
1729
  var value = info.value;
@@ -1731,7 +1732,7 @@ var require_date = __commonJS({
1731
1732
  return;
1732
1733
  }
1733
1734
  if (info.done) {
1734
- resolve3(value);
1735
+ resolve4(value);
1735
1736
  } else {
1736
1737
  Promise.resolve(value).then(_next, _throw);
1737
1738
  }
@@ -1740,14 +1741,14 @@ var require_date = __commonJS({
1740
1741
  function _asyncToGenerator(fn) {
1741
1742
  return function() {
1742
1743
  var self2 = this, args = arguments;
1743
- return new Promise(function(resolve3, reject) {
1744
+ return new Promise(function(resolve4, reject) {
1744
1745
  var gen = fn.apply(self2, args);
1745
1746
  function _next(value) {
1746
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
1747
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
1747
1748
  }
1748
1749
  __name(_next, "_next");
1749
1750
  function _throw(err) {
1750
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
1751
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
1751
1752
  }
1752
1753
  __name(_throw, "_throw");
1753
1754
  _next(void 0);
@@ -1955,7 +1956,7 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
1955
1956
  var require_number = __commonJS({
1956
1957
  "../../node_modules/prompts/dist/elements/number.js"(exports, module) {
1957
1958
  "use strict";
1958
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
1959
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
1959
1960
  try {
1960
1961
  var info = gen[key](arg);
1961
1962
  var value = info.value;
@@ -1964,7 +1965,7 @@ var require_number = __commonJS({
1964
1965
  return;
1965
1966
  }
1966
1967
  if (info.done) {
1967
- resolve3(value);
1968
+ resolve4(value);
1968
1969
  } else {
1969
1970
  Promise.resolve(value).then(_next, _throw);
1970
1971
  }
@@ -1973,14 +1974,14 @@ var require_number = __commonJS({
1973
1974
  function _asyncToGenerator(fn) {
1974
1975
  return function() {
1975
1976
  var self2 = this, args = arguments;
1976
- return new Promise(function(resolve3, reject) {
1977
+ return new Promise(function(resolve4, reject) {
1977
1978
  var gen = fn.apply(self2, args);
1978
1979
  function _next(value) {
1979
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
1980
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
1980
1981
  }
1981
1982
  __name(_next, "_next");
1982
1983
  function _throw(err) {
1983
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
1984
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
1984
1985
  }
1985
1986
  __name(_throw, "_throw");
1986
1987
  _next(void 0);
@@ -1999,7 +2000,7 @@ var require_number = __commonJS({
1999
2000
  var clear = _require2.clear;
2000
2001
  var lines = _require2.lines;
2001
2002
  var isNumber = /[0-9]/;
2002
- var isDef = /* @__PURE__ */ __name((any) => any !== void 0, "isDef");
2003
+ var isDef = /* @__PURE__ */ __name((any2) => any2 !== void 0, "isDef");
2003
2004
  var round = /* @__PURE__ */ __name((number, precision) => {
2004
2005
  let factor = Math.pow(10, precision);
2005
2006
  return Math.round(number * factor) / factor;
@@ -2411,7 +2412,7 @@ Instructions:
2411
2412
  var require_autocomplete = __commonJS({
2412
2413
  "../../node_modules/prompts/dist/elements/autocomplete.js"(exports, module) {
2413
2414
  "use strict";
2414
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
2415
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
2415
2416
  try {
2416
2417
  var info = gen[key](arg);
2417
2418
  var value = info.value;
@@ -2420,7 +2421,7 @@ var require_autocomplete = __commonJS({
2420
2421
  return;
2421
2422
  }
2422
2423
  if (info.done) {
2423
- resolve3(value);
2424
+ resolve4(value);
2424
2425
  } else {
2425
2426
  Promise.resolve(value).then(_next, _throw);
2426
2427
  }
@@ -2429,14 +2430,14 @@ var require_autocomplete = __commonJS({
2429
2430
  function _asyncToGenerator(fn) {
2430
2431
  return function() {
2431
2432
  var self2 = this, args = arguments;
2432
- return new Promise(function(resolve3, reject) {
2433
+ return new Promise(function(resolve4, reject) {
2433
2434
  var gen = fn.apply(self2, args);
2434
2435
  function _next(value) {
2435
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
2436
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
2436
2437
  }
2437
2438
  __name(_next, "_next");
2438
2439
  function _throw(err) {
2439
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
2440
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
2440
2441
  }
2441
2442
  __name(_throw, "_throw");
2442
2443
  _next(void 0);
@@ -3085,7 +3086,7 @@ var require_dist2 = __commonJS({
3085
3086
  return arr2;
3086
3087
  }
3087
3088
  __name(_arrayLikeToArray, "_arrayLikeToArray");
3088
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
3089
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
3089
3090
  try {
3090
3091
  var info = gen[key](arg);
3091
3092
  var value = info.value;
@@ -3094,7 +3095,7 @@ var require_dist2 = __commonJS({
3094
3095
  return;
3095
3096
  }
3096
3097
  if (info.done) {
3097
- resolve3(value);
3098
+ resolve4(value);
3098
3099
  } else {
3099
3100
  Promise.resolve(value).then(_next, _throw);
3100
3101
  }
@@ -3103,14 +3104,14 @@ var require_dist2 = __commonJS({
3103
3104
  function _asyncToGenerator(fn) {
3104
3105
  return function() {
3105
3106
  var self2 = this, args = arguments;
3106
- return new Promise(function(resolve3, reject) {
3107
+ return new Promise(function(resolve4, reject) {
3107
3108
  var gen = fn.apply(self2, args);
3108
3109
  function _next(value) {
3109
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
3110
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
3110
3111
  }
3111
3112
  __name(_next, "_next");
3112
3113
  function _throw(err) {
3113
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
3114
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
3114
3115
  }
3115
3116
  __name(_throw, "_throw");
3116
3117
  _next(void 0);
@@ -4410,7 +4411,7 @@ var require_number2 = __commonJS({
4410
4411
  var { cursor, erase } = require_src();
4411
4412
  var { style, figures, clear, lines } = require_util2();
4412
4413
  var isNumber = /[0-9]/;
4413
- var isDef = /* @__PURE__ */ __name((any) => any !== void 0, "isDef");
4414
+ var isDef = /* @__PURE__ */ __name((any2) => any2 !== void 0, "isDef");
4414
4415
  var round = /* @__PURE__ */ __name((number, precision) => {
4415
4416
  let factor = Math.pow(10, precision);
4416
4417
  return Math.round(number * factor) / factor;
@@ -6323,15 +6324,15 @@ var require_route = __commonJS({
6323
6324
  }
6324
6325
  __name(link, "link");
6325
6326
  function wrapConversion(toModel, graph) {
6326
- const path3 = [graph[toModel].parent, toModel];
6327
+ const path = [graph[toModel].parent, toModel];
6327
6328
  let fn = conversions[graph[toModel].parent][toModel];
6328
6329
  let cur = graph[toModel].parent;
6329
6330
  while (graph[cur].parent) {
6330
- path3.unshift(graph[cur].parent);
6331
+ path.unshift(graph[cur].parent);
6331
6332
  fn = link(conversions[graph[cur].parent][cur], fn);
6332
6333
  cur = graph[cur].parent;
6333
6334
  }
6334
- fn.conversion = path3;
6335
+ fn.conversion = path;
6335
6336
  return fn;
6336
6337
  }
6337
6338
  __name(wrapConversion, "wrapConversion");
@@ -7108,11 +7109,11 @@ var require_signals = __commonJS({
7108
7109
  // ../../node_modules/signal-exit/index.js
7109
7110
  var require_signal_exit = __commonJS({
7110
7111
  "../../node_modules/signal-exit/index.js"(exports, module) {
7111
- var process5 = global.process;
7112
- var processOk = /* @__PURE__ */ __name(function(process6) {
7113
- return process6 && typeof process6 === "object" && typeof process6.removeListener === "function" && typeof process6.emit === "function" && typeof process6.reallyExit === "function" && typeof process6.listeners === "function" && typeof process6.kill === "function" && typeof process6.pid === "number" && typeof process6.on === "function";
7112
+ var process4 = global.process;
7113
+ var processOk = /* @__PURE__ */ __name(function(process5) {
7114
+ return process5 && typeof process5 === "object" && typeof process5.removeListener === "function" && typeof process5.emit === "function" && typeof process5.reallyExit === "function" && typeof process5.listeners === "function" && typeof process5.kill === "function" && typeof process5.pid === "number" && typeof process5.on === "function";
7114
7115
  }, "processOk");
7115
- if (!processOk(process5)) {
7116
+ if (!processOk(process4)) {
7116
7117
  module.exports = function() {
7117
7118
  return function() {
7118
7119
  };
@@ -7120,15 +7121,15 @@ var require_signal_exit = __commonJS({
7120
7121
  } else {
7121
7122
  assert = __require("assert");
7122
7123
  signals = require_signals();
7123
- isWin = /^win/i.test(process5.platform);
7124
+ isWin = /^win/i.test(process4.platform);
7124
7125
  EE = __require("events");
7125
7126
  if (typeof EE !== "function") {
7126
7127
  EE = EE.EventEmitter;
7127
7128
  }
7128
- if (process5.__signal_exit_emitter__) {
7129
- emitter = process5.__signal_exit_emitter__;
7129
+ if (process4.__signal_exit_emitter__) {
7130
+ emitter = process4.__signal_exit_emitter__;
7130
7131
  } else {
7131
- emitter = process5.__signal_exit_emitter__ = new EE();
7132
+ emitter = process4.__signal_exit_emitter__ = new EE();
7132
7133
  emitter.count = 0;
7133
7134
  emitter.emitted = {};
7134
7135
  }
@@ -7165,12 +7166,12 @@ var require_signal_exit = __commonJS({
7165
7166
  loaded = false;
7166
7167
  signals.forEach(function(sig) {
7167
7168
  try {
7168
- process5.removeListener(sig, sigListeners[sig]);
7169
+ process4.removeListener(sig, sigListeners[sig]);
7169
7170
  } catch (er) {
7170
7171
  }
7171
7172
  });
7172
- process5.emit = originalProcessEmit;
7173
- process5.reallyExit = originalProcessReallyExit;
7173
+ process4.emit = originalProcessEmit;
7174
+ process4.reallyExit = originalProcessReallyExit;
7174
7175
  emitter.count -= 1;
7175
7176
  }, "unload");
7176
7177
  module.exports.unload = unload;
@@ -7187,7 +7188,7 @@ var require_signal_exit = __commonJS({
7187
7188
  if (!processOk(global.process)) {
7188
7189
  return;
7189
7190
  }
7190
- var listeners = process5.listeners(sig);
7191
+ var listeners = process4.listeners(sig);
7191
7192
  if (listeners.length === emitter.count) {
7192
7193
  unload();
7193
7194
  emit("exit", null, sig);
@@ -7195,7 +7196,7 @@ var require_signal_exit = __commonJS({
7195
7196
  if (isWin && sig === "SIGHUP") {
7196
7197
  sig = "SIGINT";
7197
7198
  }
7198
- process5.kill(process5.pid, sig);
7199
+ process4.kill(process4.pid, sig);
7199
7200
  }
7200
7201
  }, "listener");
7201
7202
  });
@@ -7211,36 +7212,36 @@ var require_signal_exit = __commonJS({
7211
7212
  emitter.count += 1;
7212
7213
  signals = signals.filter(function(sig) {
7213
7214
  try {
7214
- process5.on(sig, sigListeners[sig]);
7215
+ process4.on(sig, sigListeners[sig]);
7215
7216
  return true;
7216
7217
  } catch (er) {
7217
7218
  return false;
7218
7219
  }
7219
7220
  });
7220
- process5.emit = processEmit;
7221
- process5.reallyExit = processReallyExit;
7221
+ process4.emit = processEmit;
7222
+ process4.reallyExit = processReallyExit;
7222
7223
  }, "load");
7223
7224
  module.exports.load = load;
7224
- originalProcessReallyExit = process5.reallyExit;
7225
+ originalProcessReallyExit = process4.reallyExit;
7225
7226
  processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
7226
7227
  if (!processOk(global.process)) {
7227
7228
  return;
7228
7229
  }
7229
- process5.exitCode = code || /* istanbul ignore next */
7230
+ process4.exitCode = code || /* istanbul ignore next */
7230
7231
  0;
7231
- emit("exit", process5.exitCode, null);
7232
- emit("afterexit", process5.exitCode, null);
7233
- originalProcessReallyExit.call(process5, process5.exitCode);
7232
+ emit("exit", process4.exitCode, null);
7233
+ emit("afterexit", process4.exitCode, null);
7234
+ originalProcessReallyExit.call(process4, process4.exitCode);
7234
7235
  }, "processReallyExit");
7235
- originalProcessEmit = process5.emit;
7236
+ originalProcessEmit = process4.emit;
7236
7237
  processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
7237
7238
  if (ev === "exit" && processOk(global.process)) {
7238
7239
  if (arg !== void 0) {
7239
- process5.exitCode = arg;
7240
+ process4.exitCode = arg;
7240
7241
  }
7241
7242
  var ret = originalProcessEmit.apply(this, arguments);
7242
- emit("exit", process5.exitCode, null);
7243
- emit("afterexit", process5.exitCode, null);
7243
+ emit("exit", process4.exitCode, null);
7244
+ emit("afterexit", process4.exitCode, null);
7244
7245
  return ret;
7245
7246
  } else {
7246
7247
  return originalProcessEmit.apply(this, arguments);
@@ -9524,7 +9525,7 @@ var require_buffer_list = __commonJS({
9524
9525
  }, "clear")
9525
9526
  }, {
9526
9527
  key: "join",
9527
- value: /* @__PURE__ */ __name(function join5(s) {
9528
+ value: /* @__PURE__ */ __name(function join7(s) {
9528
9529
  if (this.length === 0) return "";
9529
9530
  var p = this.head;
9530
9531
  var ret = "" + p.data;
@@ -10969,14 +10970,14 @@ var require_async_iterator = __commonJS({
10969
10970
  }
10970
10971
  __name(createIterResult, "createIterResult");
10971
10972
  function readAndResolve(iter) {
10972
- var resolve3 = iter[kLastResolve];
10973
- if (resolve3 !== null) {
10973
+ var resolve4 = iter[kLastResolve];
10974
+ if (resolve4 !== null) {
10974
10975
  var data = iter[kStream].read();
10975
10976
  if (data !== null) {
10976
10977
  iter[kLastPromise] = null;
10977
10978
  iter[kLastResolve] = null;
10978
10979
  iter[kLastReject] = null;
10979
- resolve3(createIterResult(data, false));
10980
+ resolve4(createIterResult(data, false));
10980
10981
  }
10981
10982
  }
10982
10983
  }
@@ -10986,13 +10987,13 @@ var require_async_iterator = __commonJS({
10986
10987
  }
10987
10988
  __name(onReadable, "onReadable");
10988
10989
  function wrapForNext(lastPromise, iter) {
10989
- return function(resolve3, reject) {
10990
+ return function(resolve4, reject) {
10990
10991
  lastPromise.then(function() {
10991
10992
  if (iter[kEnded]) {
10992
- resolve3(createIterResult(void 0, true));
10993
+ resolve4(createIterResult(void 0, true));
10993
10994
  return;
10994
10995
  }
10995
- iter[kHandlePromise](resolve3, reject);
10996
+ iter[kHandlePromise](resolve4, reject);
10996
10997
  }, reject);
10997
10998
  };
10998
10999
  }
@@ -11013,12 +11014,12 @@ var require_async_iterator = __commonJS({
11013
11014
  return Promise.resolve(createIterResult(void 0, true));
11014
11015
  }
11015
11016
  if (this[kStream].destroyed) {
11016
- return new Promise(function(resolve3, reject) {
11017
+ return new Promise(function(resolve4, reject) {
11017
11018
  process.nextTick(function() {
11018
11019
  if (_this[kError]) {
11019
11020
  reject(_this[kError]);
11020
11021
  } else {
11021
- resolve3(createIterResult(void 0, true));
11022
+ resolve4(createIterResult(void 0, true));
11022
11023
  }
11023
11024
  });
11024
11025
  });
@@ -11041,13 +11042,13 @@ var require_async_iterator = __commonJS({
11041
11042
  return this;
11042
11043
  }), _defineProperty(_Object$setPrototypeO, "return", /* @__PURE__ */ __name(function _return() {
11043
11044
  var _this2 = this;
11044
- return new Promise(function(resolve3, reject) {
11045
+ return new Promise(function(resolve4, reject) {
11045
11046
  _this2[kStream].destroy(null, function(err) {
11046
11047
  if (err) {
11047
11048
  reject(err);
11048
11049
  return;
11049
11050
  }
11050
- resolve3(createIterResult(void 0, true));
11051
+ resolve4(createIterResult(void 0, true));
11051
11052
  });
11052
11053
  });
11053
11054
  }, "_return")), _Object$setPrototypeO), AsyncIteratorPrototype);
@@ -11069,15 +11070,15 @@ var require_async_iterator = __commonJS({
11069
11070
  value: stream._readableState.endEmitted,
11070
11071
  writable: true
11071
11072
  }), _defineProperty(_Object$create, kHandlePromise, {
11072
- value: /* @__PURE__ */ __name(function value(resolve3, reject) {
11073
+ value: /* @__PURE__ */ __name(function value(resolve4, reject) {
11073
11074
  var data = iterator[kStream].read();
11074
11075
  if (data) {
11075
11076
  iterator[kLastPromise] = null;
11076
11077
  iterator[kLastResolve] = null;
11077
11078
  iterator[kLastReject] = null;
11078
- resolve3(createIterResult(data, false));
11079
+ resolve4(createIterResult(data, false));
11079
11080
  } else {
11080
- iterator[kLastResolve] = resolve3;
11081
+ iterator[kLastResolve] = resolve4;
11081
11082
  iterator[kLastReject] = reject;
11082
11083
  }
11083
11084
  }, "value"),
@@ -11096,12 +11097,12 @@ var require_async_iterator = __commonJS({
11096
11097
  iterator[kError] = err;
11097
11098
  return;
11098
11099
  }
11099
- var resolve3 = iterator[kLastResolve];
11100
- if (resolve3 !== null) {
11100
+ var resolve4 = iterator[kLastResolve];
11101
+ if (resolve4 !== null) {
11101
11102
  iterator[kLastPromise] = null;
11102
11103
  iterator[kLastResolve] = null;
11103
11104
  iterator[kLastReject] = null;
11104
- resolve3(createIterResult(void 0, true));
11105
+ resolve4(createIterResult(void 0, true));
11105
11106
  }
11106
11107
  iterator[kEnded] = true;
11107
11108
  });
@@ -11116,7 +11117,7 @@ var require_async_iterator = __commonJS({
11116
11117
  var require_from = __commonJS({
11117
11118
  "../../node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) {
11118
11119
  "use strict";
11119
- function asyncGeneratorStep(gen, resolve3, reject, _next, _throw, key, arg) {
11120
+ function asyncGeneratorStep(gen, resolve4, reject, _next, _throw, key, arg) {
11120
11121
  try {
11121
11122
  var info = gen[key](arg);
11122
11123
  var value = info.value;
@@ -11125,7 +11126,7 @@ var require_from = __commonJS({
11125
11126
  return;
11126
11127
  }
11127
11128
  if (info.done) {
11128
- resolve3(value);
11129
+ resolve4(value);
11129
11130
  } else {
11130
11131
  Promise.resolve(value).then(_next, _throw);
11131
11132
  }
@@ -11134,14 +11135,14 @@ var require_from = __commonJS({
11134
11135
  function _asyncToGenerator(fn) {
11135
11136
  return function() {
11136
11137
  var self2 = this, args = arguments;
11137
- return new Promise(function(resolve3, reject) {
11138
+ return new Promise(function(resolve4, reject) {
11138
11139
  var gen = fn.apply(self2, args);
11139
11140
  function _next(value) {
11140
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
11141
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "next", value);
11141
11142
  }
11142
11143
  __name(_next, "_next");
11143
11144
  function _throw(err) {
11144
- asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "throw", err);
11145
+ asyncGeneratorStep(gen, resolve4, reject, _next, _throw, "throw", err);
11145
11146
  }
11146
11147
  __name(_throw, "_throw");
11147
11148
  _next(void 0);
@@ -12960,8 +12961,8 @@ var require_windows = __commonJS({
12960
12961
  "../../node_modules/isexe/windows.js"(exports, module) {
12961
12962
  module.exports = isexe;
12962
12963
  isexe.sync = sync;
12963
- var fs4 = __require("fs");
12964
- function checkPathExt(path3, options) {
12964
+ var fs3 = __require("fs");
12965
+ function checkPathExt(path, options) {
12965
12966
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
12966
12967
  if (!pathext) {
12967
12968
  return true;
@@ -12972,28 +12973,28 @@ var require_windows = __commonJS({
12972
12973
  }
12973
12974
  for (var i = 0; i < pathext.length; i++) {
12974
12975
  var p = pathext[i].toLowerCase();
12975
- if (p && path3.substr(-p.length).toLowerCase() === p) {
12976
+ if (p && path.substr(-p.length).toLowerCase() === p) {
12976
12977
  return true;
12977
12978
  }
12978
12979
  }
12979
12980
  return false;
12980
12981
  }
12981
12982
  __name(checkPathExt, "checkPathExt");
12982
- function checkStat(stat2, path3, options) {
12983
+ function checkStat(stat2, path, options) {
12983
12984
  if (!stat2.isSymbolicLink() && !stat2.isFile()) {
12984
12985
  return false;
12985
12986
  }
12986
- return checkPathExt(path3, options);
12987
+ return checkPathExt(path, options);
12987
12988
  }
12988
12989
  __name(checkStat, "checkStat");
12989
- function isexe(path3, options, cb) {
12990
- fs4.stat(path3, function(er, stat2) {
12991
- cb(er, er ? false : checkStat(stat2, path3, options));
12990
+ function isexe(path, options, cb) {
12991
+ fs3.stat(path, function(er, stat2) {
12992
+ cb(er, er ? false : checkStat(stat2, path, options));
12992
12993
  });
12993
12994
  }
12994
12995
  __name(isexe, "isexe");
12995
- function sync(path3, options) {
12996
- return checkStat(fs4.statSync(path3), path3, options);
12996
+ function sync(path, options) {
12997
+ return checkStat(fs3.statSync(path), path, options);
12997
12998
  }
12998
12999
  __name(sync, "sync");
12999
13000
  }
@@ -13004,15 +13005,15 @@ var require_mode = __commonJS({
13004
13005
  "../../node_modules/isexe/mode.js"(exports, module) {
13005
13006
  module.exports = isexe;
13006
13007
  isexe.sync = sync;
13007
- var fs4 = __require("fs");
13008
- function isexe(path3, options, cb) {
13009
- fs4.stat(path3, function(er, stat2) {
13008
+ var fs3 = __require("fs");
13009
+ function isexe(path, options, cb) {
13010
+ fs3.stat(path, function(er, stat2) {
13010
13011
  cb(er, er ? false : checkStat(stat2, options));
13011
13012
  });
13012
13013
  }
13013
13014
  __name(isexe, "isexe");
13014
- function sync(path3, options) {
13015
- return checkStat(fs4.statSync(path3), options);
13015
+ function sync(path, options) {
13016
+ return checkStat(fs3.statSync(path), options);
13016
13017
  }
13017
13018
  __name(sync, "sync");
13018
13019
  function checkStat(stat2, options) {
@@ -13039,7 +13040,7 @@ var require_mode = __commonJS({
13039
13040
  // ../../node_modules/isexe/index.js
13040
13041
  var require_isexe = __commonJS({
13041
13042
  "../../node_modules/isexe/index.js"(exports, module) {
13042
- var fs4 = __require("fs");
13043
+ var fs3 = __require("fs");
13043
13044
  var core;
13044
13045
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
13045
13046
  core = require_windows();
@@ -13048,7 +13049,7 @@ var require_isexe = __commonJS({
13048
13049
  }
13049
13050
  module.exports = isexe;
13050
13051
  isexe.sync = sync;
13051
- function isexe(path3, options, cb) {
13052
+ function isexe(path, options, cb) {
13052
13053
  if (typeof options === "function") {
13053
13054
  cb = options;
13054
13055
  options = {};
@@ -13057,17 +13058,17 @@ var require_isexe = __commonJS({
13057
13058
  if (typeof Promise !== "function") {
13058
13059
  throw new TypeError("callback not provided");
13059
13060
  }
13060
- return new Promise(function(resolve3, reject) {
13061
- isexe(path3, options || {}, function(er, is) {
13061
+ return new Promise(function(resolve4, reject) {
13062
+ isexe(path, options || {}, function(er, is) {
13062
13063
  if (er) {
13063
13064
  reject(er);
13064
13065
  } else {
13065
- resolve3(is);
13066
+ resolve4(is);
13066
13067
  }
13067
13068
  });
13068
13069
  });
13069
13070
  }
13070
- core(path3, options || {}, function(er, is) {
13071
+ core(path, options || {}, function(er, is) {
13071
13072
  if (er) {
13072
13073
  if (er.code === "EACCES" || options && options.ignoreErrors) {
13073
13074
  er = null;
@@ -13078,9 +13079,9 @@ var require_isexe = __commonJS({
13078
13079
  });
13079
13080
  }
13080
13081
  __name(isexe, "isexe");
13081
- function sync(path3, options) {
13082
+ function sync(path, options) {
13082
13083
  try {
13083
- return core.sync(path3, options || {});
13084
+ return core.sync(path, options || {});
13084
13085
  } catch (er) {
13085
13086
  if (options && options.ignoreErrors || er.code === "EACCES") {
13086
13087
  return false;
@@ -13097,7 +13098,7 @@ var require_isexe = __commonJS({
13097
13098
  var require_which = __commonJS({
13098
13099
  "../../node_modules/which/which.js"(exports, module) {
13099
13100
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
13100
- var path3 = __require("path");
13101
+ var path = __require("path");
13101
13102
  var COLON = isWindows ? ";" : ":";
13102
13103
  var isexe = require_isexe();
13103
13104
  var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
@@ -13130,27 +13131,27 @@ var require_which = __commonJS({
13130
13131
  opt = {};
13131
13132
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
13132
13133
  const found = [];
13133
- const step = /* @__PURE__ */ __name((i) => new Promise((resolve3, reject) => {
13134
+ const step = /* @__PURE__ */ __name((i) => new Promise((resolve4, reject) => {
13134
13135
  if (i === pathEnv.length)
13135
- return opt.all && found.length ? resolve3(found) : reject(getNotFoundError(cmd));
13136
+ return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
13136
13137
  const ppRaw = pathEnv[i];
13137
13138
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
13138
- const pCmd = path3.join(pathPart, cmd);
13139
+ const pCmd = path.join(pathPart, cmd);
13139
13140
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
13140
- resolve3(subStep(p, i, 0));
13141
+ resolve4(subStep(p, i, 0));
13141
13142
  }), "step");
13142
- const subStep = /* @__PURE__ */ __name((p, i, ii) => new Promise((resolve3, reject) => {
13143
+ const subStep = /* @__PURE__ */ __name((p, i, ii) => new Promise((resolve4, reject) => {
13143
13144
  if (ii === pathExt.length)
13144
- return resolve3(step(i + 1));
13145
+ return resolve4(step(i + 1));
13145
13146
  const ext = pathExt[ii];
13146
13147
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
13147
13148
  if (!er && is) {
13148
13149
  if (opt.all)
13149
13150
  found.push(p + ext);
13150
13151
  else
13151
- return resolve3(p + ext);
13152
+ return resolve4(p + ext);
13152
13153
  }
13153
- return resolve3(subStep(p, i, ii + 1));
13154
+ return resolve4(subStep(p, i, ii + 1));
13154
13155
  });
13155
13156
  }), "subStep");
13156
13157
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -13162,7 +13163,7 @@ var require_which = __commonJS({
13162
13163
  for (let i = 0; i < pathEnv.length; i++) {
13163
13164
  const ppRaw = pathEnv[i];
13164
13165
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
13165
- const pCmd = path3.join(pathPart, cmd);
13166
+ const pCmd = path.join(pathPart, cmd);
13166
13167
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
13167
13168
  for (let j = 0; j < pathExt.length; j++) {
13168
13169
  const cur = p + pathExt[j];
@@ -13210,7 +13211,7 @@ var require_path_key = __commonJS({
13210
13211
  var require_resolveCommand = __commonJS({
13211
13212
  "../../node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
13212
13213
  "use strict";
13213
- var path3 = __require("path");
13214
+ var path = __require("path");
13214
13215
  var which = require_which();
13215
13216
  var getPathKey = require_path_key();
13216
13217
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -13228,7 +13229,7 @@ var require_resolveCommand = __commonJS({
13228
13229
  try {
13229
13230
  resolved = which.sync(parsed.command, {
13230
13231
  path: env2[getPathKey({ env: env2 })],
13231
- pathExt: withoutPathExt ? path3.delimiter : void 0
13232
+ pathExt: withoutPathExt ? path.delimiter : void 0
13232
13233
  });
13233
13234
  } catch (e) {
13234
13235
  } finally {
@@ -13237,7 +13238,7 @@ var require_resolveCommand = __commonJS({
13237
13238
  }
13238
13239
  }
13239
13240
  if (resolved) {
13240
- resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
13241
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
13241
13242
  }
13242
13243
  return resolved;
13243
13244
  }
@@ -13295,8 +13296,8 @@ var require_shebang_command = __commonJS({
13295
13296
  if (!match) {
13296
13297
  return null;
13297
13298
  }
13298
- const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
13299
- const binary = path3.split("/").pop();
13299
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
13300
+ const binary = path.split("/").pop();
13300
13301
  if (binary === "env") {
13301
13302
  return argument;
13302
13303
  }
@@ -13309,16 +13310,16 @@ var require_shebang_command = __commonJS({
13309
13310
  var require_readShebang = __commonJS({
13310
13311
  "../../node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
13311
13312
  "use strict";
13312
- var fs4 = __require("fs");
13313
+ var fs3 = __require("fs");
13313
13314
  var shebangCommand = require_shebang_command();
13314
13315
  function readShebang(command) {
13315
13316
  const size = 150;
13316
13317
  const buffer = Buffer.alloc(size);
13317
13318
  let fd;
13318
13319
  try {
13319
- fd = fs4.openSync(command, "r");
13320
- fs4.readSync(fd, buffer, 0, size, 0);
13321
- fs4.closeSync(fd);
13320
+ fd = fs3.openSync(command, "r");
13321
+ fs3.readSync(fd, buffer, 0, size, 0);
13322
+ fs3.closeSync(fd);
13322
13323
  } catch (e) {
13323
13324
  }
13324
13325
  return shebangCommand(buffer.toString());
@@ -13332,7 +13333,7 @@ var require_readShebang = __commonJS({
13332
13333
  var require_parse = __commonJS({
13333
13334
  "../../node_modules/cross-spawn/lib/parse.js"(exports, module) {
13334
13335
  "use strict";
13335
- var path3 = __require("path");
13336
+ var path = __require("path");
13336
13337
  var resolveCommand = require_resolveCommand();
13337
13338
  var escape = require_escape();
13338
13339
  var readShebang = require_readShebang();
@@ -13358,7 +13359,7 @@ var require_parse = __commonJS({
13358
13359
  const needsShell = !isExecutableRegExp.test(commandFile);
13359
13360
  if (parsed.options.forceShell || needsShell) {
13360
13361
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
13361
- parsed.command = path3.normalize(parsed.command);
13362
+ parsed.command = path.normalize(parsed.command);
13362
13363
  parsed.command = escape.command(parsed.command);
13363
13364
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
13364
13365
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -13498,7 +13499,7 @@ var require_strip_final_newline = __commonJS({
13498
13499
  var require_npm_run_path = __commonJS({
13499
13500
  "../../node_modules/npm-run-path/index.js"(exports, module) {
13500
13501
  "use strict";
13501
- var path3 = __require("path");
13502
+ var path = __require("path");
13502
13503
  var pathKey = require_path_key();
13503
13504
  var npmRunPath = /* @__PURE__ */ __name((options) => {
13504
13505
  options = {
@@ -13508,16 +13509,16 @@ var require_npm_run_path = __commonJS({
13508
13509
  ...options
13509
13510
  };
13510
13511
  let previous;
13511
- let cwdPath = path3.resolve(options.cwd);
13512
+ let cwdPath = path.resolve(options.cwd);
13512
13513
  const result = [];
13513
13514
  while (previous !== cwdPath) {
13514
- result.push(path3.join(cwdPath, "node_modules/.bin"));
13515
+ result.push(path.join(cwdPath, "node_modules/.bin"));
13515
13516
  previous = cwdPath;
13516
- cwdPath = path3.resolve(cwdPath, "..");
13517
+ cwdPath = path.resolve(cwdPath, "..");
13517
13518
  }
13518
- const execPathDir = path3.resolve(options.cwd, options.execPath, "..");
13519
+ const execPathDir = path.resolve(options.cwd, options.execPath, "..");
13519
13520
  result.push(execPathDir);
13520
- return result.concat(options.path).join(path3.delimiter);
13521
+ return result.concat(options.path).join(path.delimiter);
13521
13522
  }, "npmRunPath");
13522
13523
  module.exports = npmRunPath;
13523
13524
  module.exports.default = npmRunPath;
@@ -13527,9 +13528,9 @@ var require_npm_run_path = __commonJS({
13527
13528
  ...options
13528
13529
  };
13529
13530
  const env2 = { ...options.env };
13530
- const path4 = pathKey({ env: env2 });
13531
- options.path = env2[path4];
13532
- env2[path4] = module.exports(options);
13531
+ const path2 = pathKey({ env: env2 });
13532
+ options.path = env2[path2];
13533
+ env2[path2] = module.exports(options);
13533
13534
  return env2;
13534
13535
  };
13535
13536
  }
@@ -14106,7 +14107,7 @@ var require_kill = __commonJS({
14106
14107
  return spawnedPromise;
14107
14108
  }
14108
14109
  let timeoutId;
14109
- const timeoutPromise = new Promise((resolve3, reject) => {
14110
+ const timeoutPromise = new Promise((resolve4, reject) => {
14110
14111
  timeoutId = setTimeout(() => {
14111
14112
  timeoutKill(spawned, killSignal, reject);
14112
14113
  }, timeout);
@@ -14228,7 +14229,7 @@ var require_get_stream = __commonJS({
14228
14229
  };
14229
14230
  const { maxBuffer } = options;
14230
14231
  const stream2 = bufferStream(options);
14231
- await new Promise((resolve3, reject) => {
14232
+ await new Promise((resolve4, reject) => {
14232
14233
  const rejectPromise = /* @__PURE__ */ __name((error) => {
14233
14234
  if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
14234
14235
  error.bufferedData = stream2.getBufferedValue();
@@ -14238,7 +14239,7 @@ var require_get_stream = __commonJS({
14238
14239
  (async () => {
14239
14240
  try {
14240
14241
  await streamPipelinePromisified(inputStream, stream2);
14241
- resolve3();
14242
+ resolve4();
14242
14243
  } catch (error) {
14243
14244
  rejectPromise(error);
14244
14245
  }
@@ -14399,9 +14400,9 @@ var require_promise = __commonJS({
14399
14400
  return spawned;
14400
14401
  }, "mergePromise");
14401
14402
  var getSpawnedPromise = /* @__PURE__ */ __name((spawned) => {
14402
- return new Promise((resolve3, reject) => {
14403
+ return new Promise((resolve4, reject) => {
14403
14404
  spawned.on("exit", (exitCode, signal) => {
14404
- resolve3({ exitCode, signal });
14405
+ resolve4({ exitCode, signal });
14405
14406
  });
14406
14407
  spawned.on("error", (error) => {
14407
14408
  reject(error);
@@ -14424,11 +14425,11 @@ var require_promise = __commonJS({
14424
14425
  var require_command = __commonJS({
14425
14426
  "node_modules/execa/lib/command.js"(exports, module) {
14426
14427
  "use strict";
14427
- var normalizeArgs = /* @__PURE__ */ __name((file, args = []) => {
14428
+ var normalizeArgs = /* @__PURE__ */ __name((file2, args = []) => {
14428
14429
  if (!Array.isArray(args)) {
14429
- return [file];
14430
+ return [file2];
14430
14431
  }
14431
- return [file, ...args];
14432
+ return [file2, ...args];
14432
14433
  }, "normalizeArgs");
14433
14434
  var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
14434
14435
  var DOUBLE_QUOTES_REGEXP = /"/g;
@@ -14438,11 +14439,11 @@ var require_command = __commonJS({
14438
14439
  }
14439
14440
  return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
14440
14441
  }, "escapeArg");
14441
- var joinCommand = /* @__PURE__ */ __name((file, args) => {
14442
- return normalizeArgs(file, args).join(" ");
14442
+ var joinCommand = /* @__PURE__ */ __name((file2, args) => {
14443
+ return normalizeArgs(file2, args).join(" ");
14443
14444
  }, "joinCommand");
14444
- var getEscapedCommand = /* @__PURE__ */ __name((file, args) => {
14445
- return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
14445
+ var getEscapedCommand = /* @__PURE__ */ __name((file2, args) => {
14446
+ return normalizeArgs(file2, args).map((arg) => escapeArg(arg)).join(" ");
14446
14447
  }, "getEscapedCommand");
14447
14448
  var SPACES_REGEXP = / +/g;
14448
14449
  var parseCommand = /* @__PURE__ */ __name((command) => {
@@ -14469,7 +14470,7 @@ var require_command = __commonJS({
14469
14470
  var require_execa = __commonJS({
14470
14471
  "node_modules/execa/index.js"(exports, module) {
14471
14472
  "use strict";
14472
- var path3 = __require("path");
14473
+ var path = __require("path");
14473
14474
  var childProcess = __require("child_process");
14474
14475
  var crossSpawn = require_cross_spawn();
14475
14476
  var stripFinalNewline = require_strip_final_newline();
@@ -14489,9 +14490,9 @@ var require_execa = __commonJS({
14489
14490
  }
14490
14491
  return env2;
14491
14492
  }, "getEnv");
14492
- var handleArguments = /* @__PURE__ */ __name((file, args, options = {}) => {
14493
- const parsed = crossSpawn._parse(file, args, options);
14494
- file = parsed.command;
14493
+ var handleArguments = /* @__PURE__ */ __name((file2, args, options = {}) => {
14494
+ const parsed = crossSpawn._parse(file2, args, options);
14495
+ file2 = parsed.command;
14495
14496
  args = parsed.args;
14496
14497
  options = parsed.options;
14497
14498
  options = {
@@ -14511,10 +14512,10 @@ var require_execa = __commonJS({
14511
14512
  };
14512
14513
  options.env = getEnv(options);
14513
14514
  options.stdio = normalizeStdio(options);
14514
- if (process.platform === "win32" && path3.basename(file, ".exe") === "cmd") {
14515
+ if (process.platform === "win32" && path.basename(file2, ".exe") === "cmd") {
14515
14516
  args.unshift("/q");
14516
14517
  }
14517
- return { file, args, options, parsed };
14518
+ return { file: file2, args, options, parsed };
14518
14519
  }, "handleArguments");
14519
14520
  var handleOutput = /* @__PURE__ */ __name((options, value, error) => {
14520
14521
  if (typeof value !== "string" && !Buffer.isBuffer(value)) {
@@ -14525,10 +14526,10 @@ var require_execa = __commonJS({
14525
14526
  }
14526
14527
  return value;
14527
14528
  }, "handleOutput");
14528
- var execa2 = /* @__PURE__ */ __name((file, args, options) => {
14529
- const parsed = handleArguments(file, args, options);
14530
- const command = joinCommand(file, args);
14531
- const escapedCommand = getEscapedCommand(file, args);
14529
+ var execa2 = /* @__PURE__ */ __name((file2, args, options) => {
14530
+ const parsed = handleArguments(file2, args, options);
14531
+ const command = joinCommand(file2, args);
14532
+ const escapedCommand = getEscapedCommand(file2, args);
14532
14533
  validateTimeout(parsed.options);
14533
14534
  let spawned;
14534
14535
  try {
@@ -14599,10 +14600,10 @@ var require_execa = __commonJS({
14599
14600
  return mergePromise(spawned, handlePromiseOnce);
14600
14601
  }, "execa");
14601
14602
  module.exports = execa2;
14602
- module.exports.sync = (file, args, options) => {
14603
- const parsed = handleArguments(file, args, options);
14604
- const command = joinCommand(file, args);
14605
- const escapedCommand = getEscapedCommand(file, args);
14603
+ module.exports.sync = (file2, args, options) => {
14604
+ const parsed = handleArguments(file2, args, options);
14605
+ const command = joinCommand(file2, args);
14606
+ const escapedCommand = getEscapedCommand(file2, args);
14606
14607
  validateInputSync(parsed.options);
14607
14608
  let result;
14608
14609
  try {
@@ -14655,12 +14656,12 @@ var require_execa = __commonJS({
14655
14656
  };
14656
14657
  };
14657
14658
  module.exports.command = (command, options) => {
14658
- const [file, ...args] = parseCommand(command);
14659
- return execa2(file, args, options);
14659
+ const [file2, ...args] = parseCommand(command);
14660
+ return execa2(file2, args, options);
14660
14661
  };
14661
14662
  module.exports.commandSync = (command, options) => {
14662
- const [file, ...args] = parseCommand(command);
14663
- return execa2.sync(file, args, options);
14663
+ const [file2, ...args] = parseCommand(command);
14664
+ return execa2.sync(file2, args, options);
14664
14665
  };
14665
14666
  module.exports.node = (scriptPath, args, options = {}) => {
14666
14667
  if (args && !Array.isArray(args) && typeof args === "object") {
@@ -14695,7 +14696,7 @@ var require_execa = __commonJS({
14695
14696
 
14696
14697
  // src/initiate.ts
14697
14698
  import { execSync as execSync3 } from "node:child_process";
14698
- import fs3 from "node:fs/promises";
14699
+ import fs2 from "node:fs/promises";
14699
14700
  import * as babel2 from "storybook/internal/babel";
14700
14701
  import {
14701
14702
  ProjectType as ProjectType2,
@@ -16062,254 +16063,87 @@ function boxen(text, options) {
16062
16063
  }
16063
16064
  __name(boxen, "boxen");
16064
16065
 
16065
- // ../../node_modules/find-up/index.js
16066
- import path2 from "node:path";
16066
+ // ../../node_modules/empathic/find.mjs
16067
+ var find_exports = {};
16068
+ __export(find_exports, {
16069
+ any: () => any,
16070
+ dir: () => dir,
16071
+ file: () => file,
16072
+ up: () => up2
16073
+ });
16074
+ import { join as join2 } from "node:path";
16075
+ import { existsSync, statSync } from "node:fs";
16067
16076
 
16068
- // ../../node_modules/locate-path/index.js
16069
- import process4 from "node:process";
16070
- import path from "node:path";
16071
- import fs, { promises as fsPromises } from "node:fs";
16072
- import { fileURLToPath } from "node:url";
16077
+ // ../../node_modules/empathic/walk.mjs
16078
+ import { dirname } from "node:path";
16073
16079
 
16074
- // ../../node_modules/yocto-queue/index.js
16075
- var Node = class {
16076
- static {
16077
- __name(this, "Node");
16078
- }
16079
- value;
16080
- next;
16081
- constructor(value) {
16082
- this.value = value;
16083
- }
16084
- };
16085
- var Queue = class {
16086
- static {
16087
- __name(this, "Queue");
16088
- }
16089
- #head;
16090
- #tail;
16091
- #size;
16092
- constructor() {
16093
- this.clear();
16094
- }
16095
- enqueue(value) {
16096
- const node = new Node(value);
16097
- if (this.#head) {
16098
- this.#tail.next = node;
16099
- this.#tail = node;
16100
- } else {
16101
- this.#head = node;
16102
- this.#tail = node;
16103
- }
16104
- this.#size++;
16105
- }
16106
- dequeue() {
16107
- const current = this.#head;
16108
- if (!current) {
16109
- return;
16110
- }
16111
- this.#head = this.#head.next;
16112
- this.#size--;
16113
- return current.value;
16114
- }
16115
- peek() {
16116
- if (!this.#head) {
16117
- return;
16118
- }
16119
- return this.#head.value;
16120
- }
16121
- clear() {
16122
- this.#head = void 0;
16123
- this.#tail = void 0;
16124
- this.#size = 0;
16125
- }
16126
- get size() {
16127
- return this.#size;
16128
- }
16129
- *[Symbol.iterator]() {
16130
- let current = this.#head;
16131
- while (current) {
16132
- yield current.value;
16133
- current = current.next;
16134
- }
16135
- }
16136
- *drain() {
16137
- while (this.#head) {
16138
- yield this.dequeue();
16139
- }
16140
- }
16141
- };
16080
+ // ../../node_modules/empathic/resolve.mjs
16081
+ import { isAbsolute, join, resolve } from "node:path";
16082
+ function absolute(input, root) {
16083
+ return isAbsolute(input) ? input : resolve(root || ".", input);
16084
+ }
16085
+ __name(absolute, "absolute");
16142
16086
 
16143
- // ../../node_modules/locate-path/node_modules/p-limit/index.js
16144
- function pLimit(concurrency) {
16145
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
16146
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
16147
- }
16148
- const queue = new Queue();
16149
- let activeCount = 0;
16150
- const next = /* @__PURE__ */ __name(() => {
16151
- activeCount--;
16152
- if (queue.size > 0) {
16153
- queue.dequeue()();
16154
- }
16155
- }, "next");
16156
- const run = /* @__PURE__ */ __name(async (fn, resolve3, args) => {
16157
- activeCount++;
16158
- const result = (async () => fn(...args))();
16159
- resolve3(result);
16160
- try {
16161
- await result;
16162
- } catch {
16163
- }
16164
- next();
16165
- }, "run");
16166
- const enqueue = /* @__PURE__ */ __name((fn, resolve3, args) => {
16167
- queue.enqueue(run.bind(void 0, fn, resolve3, args));
16168
- (async () => {
16169
- await Promise.resolve();
16170
- if (activeCount < concurrency && queue.size > 0) {
16171
- queue.dequeue()();
16172
- }
16173
- })();
16174
- }, "enqueue");
16175
- const generator19 = /* @__PURE__ */ __name((fn, ...args) => new Promise((resolve3) => {
16176
- enqueue(fn, resolve3, args);
16177
- }), "generator");
16178
- Object.defineProperties(generator19, {
16179
- activeCount: {
16180
- get: /* @__PURE__ */ __name(() => activeCount, "get")
16181
- },
16182
- pendingCount: {
16183
- get: /* @__PURE__ */ __name(() => queue.size, "get")
16184
- },
16185
- clearQueue: {
16186
- value: /* @__PURE__ */ __name(() => {
16187
- queue.clear();
16188
- }, "value")
16189
- }
16190
- });
16191
- return generator19;
16087
+ // ../../node_modules/empathic/walk.mjs
16088
+ function up(base, options) {
16089
+ let { last, cwd } = options || {};
16090
+ let tmp = absolute(base, cwd);
16091
+ let root = absolute(last || "/", cwd);
16092
+ let prev, arr = [];
16093
+ while (prev !== root) {
16094
+ arr.push(tmp);
16095
+ tmp = dirname(prev = tmp);
16096
+ if (tmp === prev) break;
16097
+ }
16098
+ return arr;
16192
16099
  }
16193
- __name(pLimit, "pLimit");
16100
+ __name(up, "up");
16194
16101
 
16195
- // ../../node_modules/locate-path/node_modules/p-locate/index.js
16196
- var EndError = class extends Error {
16197
- static {
16198
- __name(this, "EndError");
16199
- }
16200
- constructor(value) {
16201
- super();
16202
- this.value = value;
16203
- }
16204
- };
16205
- var testElement = /* @__PURE__ */ __name(async (element, tester) => tester(await element), "testElement");
16206
- var finder = /* @__PURE__ */ __name(async (element) => {
16207
- const values = await Promise.all(element);
16208
- if (values[1] === true) {
16209
- throw new EndError(values[0]);
16210
- }
16211
- return false;
16212
- }, "finder");
16213
- async function pLocate(iterable, tester, {
16214
- concurrency = Number.POSITIVE_INFINITY,
16215
- preserveOrder = true
16216
- } = {}) {
16217
- const limit = pLimit(concurrency);
16218
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
16219
- const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
16220
- try {
16221
- await Promise.all(items.map((element) => checkLimit(finder, element)));
16222
- } catch (error) {
16223
- if (error instanceof EndError) {
16224
- return error.value;
16225
- }
16226
- throw error;
16102
+ // ../../node_modules/empathic/find.mjs
16103
+ function up2(name, options) {
16104
+ let dir2, tmp;
16105
+ let start = options && options.cwd || "";
16106
+ for (dir2 of up(start, options)) {
16107
+ tmp = join2(dir2, name);
16108
+ if (existsSync(tmp)) return tmp;
16227
16109
  }
16228
16110
  }
16229
- __name(pLocate, "pLocate");
16230
-
16231
- // ../../node_modules/locate-path/index.js
16232
- var typeMappings = {
16233
- directory: "isDirectory",
16234
- file: "isFile"
16235
- };
16236
- function checkType(type) {
16237
- if (Object.hasOwnProperty.call(typeMappings, type)) {
16238
- return;
16111
+ __name(up2, "up");
16112
+ function any(names, options) {
16113
+ let dir2, start = options && options.cwd || "";
16114
+ let j = 0, len = names.length, tmp;
16115
+ for (dir2 of up(start, options)) {
16116
+ for (j = 0; j < len; j++) {
16117
+ tmp = join2(dir2, names[j]);
16118
+ if (existsSync(tmp)) return tmp;
16119
+ }
16239
16120
  }
16240
- throw new Error(`Invalid type specified: ${type}`);
16241
16121
  }
16242
- __name(checkType, "checkType");
16243
- var matchType = /* @__PURE__ */ __name((type, stat2) => stat2[typeMappings[type]](), "matchType");
16244
- var toPath = /* @__PURE__ */ __name((urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath, "toPath");
16245
- async function locatePath(paths, {
16246
- cwd = process4.cwd(),
16247
- type = "file",
16248
- allowSymlinks = true,
16249
- concurrency,
16250
- preserveOrder
16251
- } = {}) {
16252
- checkType(type);
16253
- cwd = toPath(cwd);
16254
- const statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;
16255
- return pLocate(paths, async (path_) => {
16122
+ __name(any, "any");
16123
+ function file(name, options) {
16124
+ let dir2, tmp;
16125
+ let start = options && options.cwd || "";
16126
+ for (dir2 of up(start, options)) {
16256
16127
  try {
16257
- const stat2 = await statFunction(path.resolve(cwd, path_));
16258
- return matchType(type, stat2);
16128
+ tmp = join2(dir2, name);
16129
+ if (statSync(tmp).isFile()) return tmp;
16259
16130
  } catch {
16260
- return false;
16261
16131
  }
16262
- }, { concurrency, preserveOrder });
16263
- }
16264
- __name(locatePath, "locatePath");
16265
-
16266
- // ../../node_modules/find-up/node_modules/unicorn-magic/node.js
16267
- import { fileURLToPath as fileURLToPath2 } from "node:url";
16268
- function toPath2(urlOrPath) {
16269
- return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
16132
+ }
16270
16133
  }
16271
- __name(toPath2, "toPath");
16272
-
16273
- // ../../node_modules/find-up/index.js
16274
- var findUpStop = Symbol("findUpStop");
16275
- async function findUpMultiple(name, options = {}) {
16276
- let directory = path2.resolve(toPath2(options.cwd) ?? "");
16277
- const { root } = path2.parse(directory);
16278
- const stopAt = path2.resolve(directory, toPath2(options.stopAt ?? root));
16279
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
16280
- const paths = [name].flat();
16281
- const runMatcher = /* @__PURE__ */ __name(async (locateOptions) => {
16282
- if (typeof name !== "function") {
16283
- return locatePath(paths, locateOptions);
16284
- }
16285
- const foundPath = await name(locateOptions.cwd);
16286
- if (typeof foundPath === "string") {
16287
- return locatePath([foundPath], locateOptions);
16288
- }
16289
- return foundPath;
16290
- }, "runMatcher");
16291
- const matches = [];
16292
- while (true) {
16293
- const foundPath = await runMatcher({ ...options, cwd: directory });
16294
- if (foundPath === findUpStop) {
16295
- break;
16296
- }
16297
- if (foundPath) {
16298
- matches.push(path2.resolve(directory, foundPath));
16299
- }
16300
- if (directory === stopAt || matches.length >= limit) {
16301
- break;
16134
+ __name(file, "file");
16135
+ function dir(name, options) {
16136
+ let dir2, tmp;
16137
+ let start = options && options.cwd || "";
16138
+ for (dir2 of up(start, options)) {
16139
+ try {
16140
+ tmp = join2(dir2, name);
16141
+ if (statSync(tmp).isDirectory()) return tmp;
16142
+ } catch {
16302
16143
  }
16303
- directory = path2.dirname(directory);
16304
16144
  }
16305
- return matches;
16306
16145
  }
16307
- __name(findUpMultiple, "findUpMultiple");
16308
- async function findUp(name, options = {}) {
16309
- const matches = await findUpMultiple(name, { ...options, limit: 1 });
16310
- return matches[0];
16311
- }
16312
- __name(findUp, "findUp");
16146
+ __name(dir, "dir");
16313
16147
 
16314
16148
  // src/initiate.ts
16315
16149
  var import_picocolors2 = __toESM(require_picocolors(), 1);
@@ -16446,8 +16280,8 @@ var import_ts_dedent5 = __toESM(require_dist(), 1);
16446
16280
  import { lt, prerelease } from "semver";
16447
16281
 
16448
16282
  // src/generators/ANGULAR/index.ts
16449
- import { dirname as dirname2, join as join2 } from "node:path";
16450
- import { fileURLToPath as fileURLToPath4 } from "node:url";
16283
+ import { dirname as dirname3, join as join4 } from "node:path";
16284
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
16451
16285
  import {
16452
16286
  AngularJSON,
16453
16287
  CoreBuilder,
@@ -16460,8 +16294,8 @@ import { commandLog } from "storybook/internal/common";
16460
16294
  // src/generators/baseGenerator.ts
16461
16295
  var import_ora = __toESM(require_ora(), 1);
16462
16296
  import { mkdir } from "node:fs/promises";
16463
- import { dirname, join } from "node:path";
16464
- import { fileURLToPath as fileURLToPath3 } from "node:url";
16297
+ import { dirname as dirname2, join as join3 } from "node:path";
16298
+ import { fileURLToPath } from "node:url";
16465
16299
  import {
16466
16300
  ProjectType,
16467
16301
  SupportedLanguage as SupportedLanguage2,
@@ -16502,11 +16336,11 @@ var import_ts_dedent2 = __toESM(require_dist(), 1);
16502
16336
  // src/generators/configure.ts
16503
16337
  var import_ts_dedent = __toESM(require_dist(), 1);
16504
16338
  import { stat, writeFile } from "node:fs/promises";
16505
- import { resolve } from "node:path";
16339
+ import { resolve as resolve2 } from "node:path";
16506
16340
  import { SupportedLanguage } from "storybook/internal/cli";
16507
16341
  import { logger } from "storybook/internal/node-logger";
16508
- var pathExists2 = /* @__PURE__ */ __name(async (path3) => {
16509
- return stat(path3).then(() => true).catch(() => false);
16342
+ var pathExists = /* @__PURE__ */ __name(async (path) => {
16343
+ return stat(path).then(() => true).catch(() => false);
16510
16344
  }, "pathExists");
16511
16345
  async function configureMain({
16512
16346
  addons,
@@ -16518,8 +16352,8 @@ async function configureMain({
16518
16352
  features = [],
16519
16353
  ...custom
16520
16354
  }) {
16521
- const srcPath = resolve(storybookConfigFolder, "../src");
16522
- const prefix2 = await pathExists2(srcPath) ? "../src" : "../stories";
16355
+ const srcPath = resolve2(storybookConfigFolder, "../src");
16356
+ const prefix2 = await pathExists(srcPath) ? "../src" : "../stories";
16523
16357
  const stories = features.includes("docs") ? [`${prefix2}/**/*.mdx`] : [];
16524
16358
  stories.push(`${prefix2}/**/*.stories.@(${extensions.join("|")})`);
16525
16359
  const config = {
@@ -16558,7 +16392,7 @@ async function configurePreview(options) {
16558
16392
  const { prefix: frameworkPrefix = "" } = options.frameworkPreviewParts || {};
16559
16393
  const isTypescript = options.language === SupportedLanguage.TYPESCRIPT;
16560
16394
  const previewPath = `./${options.storybookConfigFolder}/preview.${isTypescript ? "ts" : "js"}`;
16561
- if (await pathExists2(previewPath)) {
16395
+ if (await pathExists(previewPath)) {
16562
16396
  return;
16563
16397
  }
16564
16398
  const frameworkPackage = options.frameworkPackage;
@@ -16878,7 +16712,7 @@ async function baseGenerator(packageManager, npmOptions, { language, builder, pn
16878
16712
  addons: shouldApplyRequireWrapperOnPackageNames ? addons.map((addon) => applyAddonGetAbsolutePathWrapper(addon)) : addons,
16879
16713
  extensions,
16880
16714
  language,
16881
- ...staticDir ? { staticDirs: [join("..", staticDir)] } : null,
16715
+ ...staticDir ? { staticDirs: [join3("..", staticDir)] } : null,
16882
16716
  ...extraMain,
16883
16717
  ...type !== "framework" ? {
16884
16718
  core: {
@@ -16911,8 +16745,8 @@ async function baseGenerator(packageManager, npmOptions, { language, builder, pn
16911
16745
  packageManager,
16912
16746
  language,
16913
16747
  destination: componentsDestinationPath,
16914
- commonAssetsDir: join(
16915
- dirname(fileURLToPath3(import.meta.resolve("create-storybook/package.json"))),
16748
+ commonAssetsDir: join3(
16749
+ dirname2(fileURLToPath(import.meta.resolve("create-storybook/package.json"))),
16916
16750
  "rendererAssets",
16917
16751
  "common"
16918
16752
  ),
@@ -16990,8 +16824,8 @@ var generator = /* @__PURE__ */ __name(async (packageManager, npmOptions, option
16990
16824
  if (projectTypeValue !== "application" && projectTypeValue !== "library") {
16991
16825
  projectTypeValue = "application";
16992
16826
  }
16993
- const templateDir = join2(
16994
- dirname2(fileURLToPath4(import.meta.resolve("create-storybook/package.json"))),
16827
+ const templateDir = join4(
16828
+ dirname3(fileURLToPath2(import.meta.resolve("create-storybook/package.json"))),
16995
16829
  "templates",
16996
16830
  "angular",
16997
16831
  projectTypeValue
@@ -17030,12 +16864,12 @@ var generator3 = /* @__PURE__ */ __name(async (packageManager, npmOptions, optio
17030
16864
  var HTML_default = generator3;
17031
16865
 
17032
16866
  // src/generators/NEXTJS/index.ts
17033
- import { existsSync } from "node:fs";
17034
- import { join as join3 } from "node:path";
16867
+ import { existsSync as existsSync2 } from "node:fs";
16868
+ import { join as join5 } from "node:path";
17035
16869
  import { CoreBuilder as CoreBuilder4 } from "storybook/internal/cli";
17036
16870
  var generator4 = /* @__PURE__ */ __name(async (packageManager, npmOptions, options) => {
17037
16871
  let staticDir;
17038
- if (existsSync(join3(process.cwd(), "public"))) {
16872
+ if (existsSync2(join5(process.cwd(), "public"))) {
17039
16873
  staticDir = "public";
17040
16874
  }
17041
16875
  await baseGenerator(
@@ -17169,7 +17003,7 @@ var REACT_NATIVE_default = generator9;
17169
17003
 
17170
17004
  // src/generators/REACT_NATIVE_WEB/index.ts
17171
17005
  import { readdir, rm } from "node:fs/promises";
17172
- import { join as join4 } from "node:path";
17006
+ import { join as join6 } from "node:path";
17173
17007
  import { SupportedLanguage as SupportedLanguage5, cliStoriesTargetPath, detectLanguage as detectLanguage2 } from "storybook/internal/cli";
17174
17008
  var generator10 = /* @__PURE__ */ __name(async (packageManager, npmOptions, options) => {
17175
17009
  const language = await detectLanguage2(packageManager);
@@ -17187,19 +17021,19 @@ var generator10 = /* @__PURE__ */ __name(async (packageManager, npmOptions, opti
17187
17021
  );
17188
17022
  const targetPath = await cliStoriesTargetPath();
17189
17023
  const cssFiles = (await readdir(targetPath)).filter((f) => f.endsWith(".css"));
17190
- await Promise.all(cssFiles.map((f) => rm(join4(targetPath, f))));
17024
+ await Promise.all(cssFiles.map((f) => rm(join6(targetPath, f))));
17191
17025
  }, "generator");
17192
17026
  var REACT_NATIVE_WEB_default = generator10;
17193
17027
 
17194
17028
  // src/generators/REACT_SCRIPTS/index.ts
17195
17029
  var import_ts_dedent3 = __toESM(require_dist(), 1);
17196
- import { existsSync as existsSync2 } from "node:fs";
17197
- import { resolve as resolve2 } from "node:path";
17198
- import { fileURLToPath as fileURLToPath5 } from "node:url";
17030
+ import { existsSync as existsSync3 } from "node:fs";
17031
+ import { resolve as resolve3 } from "node:path";
17032
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
17199
17033
  import { CoreBuilder as CoreBuilder7 } from "storybook/internal/cli";
17200
17034
  import semver from "semver";
17201
17035
  var generator11 = /* @__PURE__ */ __name(async (packageManager, npmOptions, options) => {
17202
- const monorepoRootPath = fileURLToPath5(new URL("../../../../../../..", import.meta.url));
17036
+ const monorepoRootPath = fileURLToPath3(new URL("../../../../../../..", import.meta.url));
17203
17037
  const extraMain = options.linkable ? {
17204
17038
  webpackFinal: `%%(config) => {
17205
17039
  // add monorepo root as a valid directory to import modules from
@@ -17239,7 +17073,7 @@ var generator11 = /* @__PURE__ */ __name(async (packageManager, npmOptions, opti
17239
17073
  webpackCompiler: /* @__PURE__ */ __name(() => void 0, "webpackCompiler"),
17240
17074
  extraAddons,
17241
17075
  extraPackages,
17242
- staticDir: existsSync2(resolve2("./public")) ? "public" : void 0,
17076
+ staticDir: existsSync3(resolve3("./public")) ? "public" : void 0,
17243
17077
  extraMain
17244
17078
  }
17245
17079
  );
@@ -17370,17 +17204,17 @@ var packageVersions = {
17370
17204
  };
17371
17205
 
17372
17206
  // src/ink/steps/checks/vitestConfigFiles.tsx
17373
- import * as fs2 from "node:fs/promises";
17207
+ import * as fs from "node:fs/promises";
17374
17208
  import * as babel from "storybook/internal/babel";
17375
17209
  import { getProjectRoot } from "storybook/internal/common";
17376
- var isCallExpression = /* @__PURE__ */ __name((path3) => path3?.type === "CallExpression", "isCallExpression");
17377
- var isObjectExpression = /* @__PURE__ */ __name((path3) => path3?.type === "ObjectExpression", "isObjectExpression");
17378
- var isArrayExpression = /* @__PURE__ */ __name((path3) => path3?.type === "ArrayExpression", "isArrayExpression");
17379
- var isStringLiteral = /* @__PURE__ */ __name((path3) => path3?.type === "StringLiteral", "isStringLiteral");
17380
- var isWorkspaceConfigArray = /* @__PURE__ */ __name((path3) => isArrayExpression(path3) && path3?.elements.every((el) => isStringLiteral(el) || isObjectExpression(el)), "isWorkspaceConfigArray");
17381
- var isDefineWorkspaceExpression = /* @__PURE__ */ __name((path3) => isCallExpression(path3) && path3.callee.name === "defineWorkspace" && isWorkspaceConfigArray(path3.arguments[0]), "isDefineWorkspaceExpression");
17382
- var isDefineConfigExpression = /* @__PURE__ */ __name((path3) => isCallExpression(path3) && path3.callee.name === "defineConfig" && isObjectExpression(path3.arguments[0]), "isDefineConfigExpression");
17383
- var isSafeToExtendWorkspace = /* @__PURE__ */ __name((path3) => isObjectExpression(path3.arguments[0]) && path3.arguments[0]?.properties.every(
17210
+ var isCallExpression = /* @__PURE__ */ __name((path) => path?.type === "CallExpression", "isCallExpression");
17211
+ var isObjectExpression = /* @__PURE__ */ __name((path) => path?.type === "ObjectExpression", "isObjectExpression");
17212
+ var isArrayExpression = /* @__PURE__ */ __name((path) => path?.type === "ArrayExpression", "isArrayExpression");
17213
+ var isStringLiteral = /* @__PURE__ */ __name((path) => path?.type === "StringLiteral", "isStringLiteral");
17214
+ var isWorkspaceConfigArray = /* @__PURE__ */ __name((path) => isArrayExpression(path) && path?.elements.every((el) => isStringLiteral(el) || isObjectExpression(el)), "isWorkspaceConfigArray");
17215
+ var isDefineWorkspaceExpression = /* @__PURE__ */ __name((path) => isCallExpression(path) && path.callee.name === "defineWorkspace" && isWorkspaceConfigArray(path.arguments[0]), "isDefineWorkspaceExpression");
17216
+ var isDefineConfigExpression = /* @__PURE__ */ __name((path) => isCallExpression(path) && path.callee.name === "defineConfig" && isObjectExpression(path.arguments[0]), "isDefineConfigExpression");
17217
+ var isSafeToExtendWorkspace = /* @__PURE__ */ __name((path) => isObjectExpression(path.arguments[0]) && path.arguments[0]?.properties.every(
17384
17218
  (p) => p.key.name !== "test" || isObjectExpression(p.value) && p.value.properties.every(
17385
17219
  ({ key, value }) => key.name !== "workspace" || isArrayExpression(value)
17386
17220
  )
@@ -17389,43 +17223,43 @@ var isValidWorkspaceConfigFile = /* @__PURE__ */ __name((fileContents) => {
17389
17223
  let isValidWorkspaceConfig = false;
17390
17224
  const parsedFile = babel.babelParse(fileContents);
17391
17225
  babel.traverse(parsedFile, {
17392
- ExportDefaultDeclaration(path3) {
17393
- isValidWorkspaceConfig = isWorkspaceConfigArray(path3.node.declaration) || isDefineWorkspaceExpression(path3.node.declaration);
17226
+ ExportDefaultDeclaration(path) {
17227
+ isValidWorkspaceConfig = isWorkspaceConfigArray(path.node.declaration) || isDefineWorkspaceExpression(path.node.declaration);
17394
17228
  }
17395
17229
  });
17396
17230
  return isValidWorkspaceConfig;
17397
17231
  }, "isValidWorkspaceConfigFile");
17398
17232
  var vitestConfigFiles = {
17399
17233
  condition: /* @__PURE__ */ __name(async (context, state) => {
17400
- const deps = ["babel", "findUp", "fs"];
17401
- if (babel && findUp && fs2) {
17234
+ const deps = ["babel", "empathic", "fs"];
17235
+ if (babel && find_exports && fs) {
17402
17236
  const reasons = [];
17403
17237
  const projectRoot = getProjectRoot();
17404
- const vitestWorkspaceFile = await findUp(
17238
+ const vitestWorkspaceFile = any(
17405
17239
  ["ts", "js", "json"].flatMap((ex) => [`vitest.workspace.${ex}`, `vitest.projects.${ex}`]),
17406
- { cwd: state.directory, stopAt: projectRoot }
17240
+ { cwd: state.directory, last: projectRoot }
17407
17241
  );
17408
17242
  if (vitestWorkspaceFile?.endsWith(".json")) {
17409
17243
  reasons.push(`Cannot auto-update JSON workspace file: ${vitestWorkspaceFile}`);
17410
17244
  } else if (vitestWorkspaceFile) {
17411
- const fileContents = await fs2.readFile(vitestWorkspaceFile, "utf8");
17245
+ const fileContents = await fs.readFile(vitestWorkspaceFile, "utf8");
17412
17246
  if (!isValidWorkspaceConfigFile(fileContents, babel)) {
17413
17247
  reasons.push(`Found an invalid workspace config file: ${vitestWorkspaceFile}`);
17414
17248
  }
17415
17249
  }
17416
- const vitestConfigFile = await findUp(
17250
+ const vitestConfigFile = any(
17417
17251
  ["ts", "js", "tsx", "jsx", "cts", "cjs", "mts", "mjs"].map((ex) => `vitest.config.${ex}`),
17418
- { cwd: state.directory, stopAt: projectRoot }
17252
+ { cwd: state.directory, last: projectRoot }
17419
17253
  );
17420
17254
  if (vitestConfigFile?.endsWith(".cts") || vitestConfigFile?.endsWith(".cjs")) {
17421
17255
  reasons.push(`Cannot auto-update CommonJS config file: ${vitestConfigFile}`);
17422
17256
  } else if (vitestConfigFile) {
17423
17257
  let isValidVitestConfig = false;
17424
- const configContent = await fs2.readFile(vitestConfigFile, "utf8");
17258
+ const configContent = await fs.readFile(vitestConfigFile, "utf8");
17425
17259
  const parsedConfig = babel.babelParse(configContent);
17426
17260
  babel.traverse(parsedConfig, {
17427
- ExportDefaultDeclaration(path3) {
17428
- if (isDefineConfigExpression(path3.node.declaration) && isSafeToExtendWorkspace(path3.node.declaration)) {
17261
+ ExportDefaultDeclaration(path) {
17262
+ if (isDefineConfigExpression(path.node.declaration) && isSafeToExtendWorkspace(path.node.declaration)) {
17429
17263
  isValidVitestConfig = true;
17430
17264
  }
17431
17265
  }
@@ -18075,7 +17909,7 @@ The project types currently supported by Storybook are:
18075
17909
  }
18076
17910
  }
18077
17911
  const vitestConfigFilesData = await vitestConfigFiles.condition(
18078
- { babel: babel2, findUp, fs: fs3 },
17912
+ { babel: babel2, empathic: find_exports, fs: fs2 },
18079
17913
  { directory: process.cwd() }
18080
17914
  );
18081
17915
  if (vitestConfigFilesData.type === "incompatible") {
@@ -18148,10 +17982,10 @@ The project types currently supported by Storybook are:
18148
17982
  }
18149
17983
  return { shouldRunDev: false };
18150
17984
  }
18151
- const foundGitIgnoreFile = await findUp(".gitignore");
17985
+ const foundGitIgnoreFile = up2(".gitignore");
18152
17986
  const rootDirectory = getProjectRoot2();
18153
17987
  if (foundGitIgnoreFile && foundGitIgnoreFile.includes(rootDirectory)) {
18154
- const contents = await fs3.readFile(foundGitIgnoreFile, "utf-8");
17988
+ const contents = await fs2.readFile(foundGitIgnoreFile, "utf-8");
18155
17989
  const hasStorybookLog = contents.includes("*storybook.log");
18156
17990
  const hasStorybookStatic = contents.includes("storybook-static");
18157
17991
  const linesToAdd = [
@@ -18159,7 +17993,7 @@ The project types currently supported by Storybook are:
18159
17993
  !hasStorybookStatic ? "storybook-static" : ""
18160
17994
  ].filter(Boolean).join("\n");
18161
17995
  if (linesToAdd) {
18162
- await fs3.appendFile(foundGitIgnoreFile, `
17996
+ await fs2.appendFile(foundGitIgnoreFile, `
18163
17997
  ${linesToAdd}
18164
17998
  `);
18165
17999
  }