@modern-js/create 2.5.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +634 -244
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -38,6 +38,10 @@ var __copyProps = (to, from, except, desc) => {
38
38
  return to;
39
39
  };
40
40
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
41
+ // If the importer is in node compatibility mode or this is not an ESM
42
+ // file that has been converted to a CommonJS file using a Babel-
43
+ // compatible transform (i.e. "__esModule" has not been set), then set
44
+ // "default" to the CommonJS "module.exports" for node compatibility.
41
45
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
42
46
  mod
43
47
  ));
@@ -12329,7 +12333,7 @@ var require_debug = __commonJS({
12329
12333
  return;
12330
12334
  }
12331
12335
  const r4 = debug2;
12332
- const s2 = Number(new Date());
12336
+ const s2 = Number(/* @__PURE__ */ new Date());
12333
12337
  const n2 = s2 - (t3 || s2);
12334
12338
  r4.diff = n2;
12335
12339
  r4.prev = t3;
@@ -12503,7 +12507,7 @@ var require_debug = __commonJS({
12503
12507
  if (t2.inspectOpts.hideDate) {
12504
12508
  return "";
12505
12509
  }
12506
- return new Date().toISOString() + " ";
12510
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
12507
12511
  }
12508
12512
  function log(...e3) {
12509
12513
  return process.stderr.write(n.format(...e3) + "\n");
@@ -17829,6 +17833,7 @@ var require_lodash = __commonJS({
17829
17833
  cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
17830
17834
  cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
17831
17835
  var deburredLetters = {
17836
+ // Latin-1 Supplement block.
17832
17837
  "À": "A",
17833
17838
  "Á": "A",
17834
17839
  "Â": "A",
@@ -17891,6 +17896,7 @@ var require_lodash = __commonJS({
17891
17896
  "Þ": "Th",
17892
17897
  "þ": "th",
17893
17898
  "ß": "ss",
17899
+ // Latin Extended-A block.
17894
17900
  "Ā": "A",
17895
17901
  "Ă": "A",
17896
17902
  "Ą": "A",
@@ -18476,11 +18482,47 @@ var require_lodash = __commonJS({
18476
18482
  this.__values__ = undefined2;
18477
18483
  }
18478
18484
  lodash2.templateSettings = {
18485
+ /**
18486
+ * Used to detect `data` property values to be HTML-escaped.
18487
+ *
18488
+ * @memberOf _.templateSettings
18489
+ * @type {RegExp}
18490
+ */
18479
18491
  "escape": reEscape,
18492
+ /**
18493
+ * Used to detect code to be evaluated.
18494
+ *
18495
+ * @memberOf _.templateSettings
18496
+ * @type {RegExp}
18497
+ */
18480
18498
  "evaluate": reEvaluate,
18499
+ /**
18500
+ * Used to detect `data` property values to inject.
18501
+ *
18502
+ * @memberOf _.templateSettings
18503
+ * @type {RegExp}
18504
+ */
18481
18505
  "interpolate": reInterpolate,
18506
+ /**
18507
+ * Used to reference the data object in the template text.
18508
+ *
18509
+ * @memberOf _.templateSettings
18510
+ * @type {string}
18511
+ */
18482
18512
  "variable": "",
18513
+ /**
18514
+ * Used to import variables into the compiled template.
18515
+ *
18516
+ * @memberOf _.templateSettings
18517
+ * @type {Object}
18518
+ */
18483
18519
  "imports": {
18520
+ /**
18521
+ * A reference to the `lodash` function.
18522
+ *
18523
+ * @memberOf _.templateSettings.imports
18524
+ * @type {Function}
18525
+ */
18484
18526
  "_": lodash2
18485
18527
  }
18486
18528
  };
@@ -18730,7 +18772,11 @@ var require_lodash = __commonJS({
18730
18772
  function arrayLikeKeys(value, inherited) {
18731
18773
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
18732
18774
  for (var key in value) {
18733
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
18775
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
18776
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
18777
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
18778
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
18779
+ isIndex(key, length)))) {
18734
18780
  result2.push(key);
18735
18781
  }
18736
18782
  }
@@ -29762,10 +29808,10 @@ var require_signale = __commonJS({
29762
29808
  return Object.assign({}, { config: this._config, disabled: this._disabled, types: this._customTypes, interactive: this._interactive, timers: this._timers, stream: this._stream, secrets: this._secrets, logLevel: this._generalLogLevel });
29763
29809
  }
29764
29810
  get date() {
29765
- return new Date().toLocaleDateString();
29811
+ return (/* @__PURE__ */ new Date()).toLocaleDateString();
29766
29812
  }
29767
29813
  get timestamp() {
29768
- return new Date().toLocaleTimeString();
29814
+ return (/* @__PURE__ */ new Date()).toLocaleTimeString();
29769
29815
  }
29770
29816
  get filename() {
29771
29817
  const e3 = Error.prepareStackTrace;
@@ -30852,12 +30898,19 @@ var require_statuses = __commonJS({
30852
30898
  "../../../node_modules/.pnpm/caniuse-lite@1.0.30001451/node_modules/caniuse-lite/dist/lib/statuses.js"(exports, module2) {
30853
30899
  module2.exports = {
30854
30900
  1: "ls",
30901
+ // WHATWG Living Standard
30855
30902
  2: "rec",
30903
+ // W3C Recommendation
30856
30904
  3: "pr",
30905
+ // W3C Proposed Recommendation
30857
30906
  4: "cr",
30907
+ // W3C Candidate Recommendation
30858
30908
  5: "wd",
30909
+ // W3C Working Draft
30859
30910
  6: "other",
30911
+ // Non-W3C, but reputable
30860
30912
  7: "unoff"
30913
+ // Unofficial, Editor's Draft or W3C "Note"
30861
30914
  };
30862
30915
  }
30863
30916
  });
@@ -34617,6 +34670,10 @@ var require_compiled = __commonJS({
34617
34670
  return to;
34618
34671
  };
34619
34672
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
34673
+ // If the importer is in node compatibility mode or this is not an ESM
34674
+ // file that has been converted to a CommonJS file using a Babel-
34675
+ // compatible transform (i.e. "__esModule" has not been set), then set
34676
+ // "default" to the CommonJS "module.exports" for node compatibility.
34620
34677
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
34621
34678
  mod
34622
34679
  ));
@@ -34879,6 +34936,10 @@ var require_logger = __commonJS({
34879
34936
  return to;
34880
34937
  };
34881
34938
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
34939
+ // If the importer is in node compatibility mode or this is not an ESM
34940
+ // file that has been converted to a CommonJS file using a Babel-
34941
+ // compatible transform (i.e. "__esModule" has not been set), then set
34942
+ // "default" to the CommonJS "module.exports" for node compatibility.
34882
34943
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
34883
34944
  mod
34884
34945
  ));
@@ -35008,6 +35069,10 @@ var require_FileSizeReporter = __commonJS({
35008
35069
  return to;
35009
35070
  };
35010
35071
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
35072
+ // If the importer is in node compatibility mode or this is not an ESM
35073
+ // file that has been converted to a CommonJS file using a Babel-
35074
+ // compatible transform (i.e. "__esModule" has not been set), then set
35075
+ // "default" to the CommonJS "module.exports" for node compatibility.
35011
35076
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
35012
35077
  mod
35013
35078
  ));
@@ -35255,6 +35320,10 @@ var require_findExists = __commonJS({
35255
35320
  return to;
35256
35321
  };
35257
35322
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
35323
+ // If the importer is in node compatibility mode or this is not an ESM
35324
+ // file that has been converted to a CommonJS file using a Babel-
35325
+ // compatible transform (i.e. "__esModule" has not been set), then set
35326
+ // "default" to the CommonJS "module.exports" for node compatibility.
35258
35327
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
35259
35328
  mod
35260
35329
  ));
@@ -35276,9 +35345,9 @@ var require_findExists = __commonJS({
35276
35345
  }
35277
35346
  });
35278
35347
 
35279
- // ../utils/dist/is/node-env.js
35280
- var require_node_env = __commonJS({
35281
- "../utils/dist/is/node-env.js"(exports, module2) {
35348
+ // ../utils/dist/is/nodeEnv.js
35349
+ var require_nodeEnv = __commonJS({
35350
+ "../utils/dist/is/nodeEnv.js"(exports, module2) {
35282
35351
  var __defProp2 = Object.defineProperty;
35283
35352
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
35284
35353
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -35296,15 +35365,15 @@ var require_node_env = __commonJS({
35296
35365
  return to;
35297
35366
  };
35298
35367
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
35299
- var node_env_exports = {};
35300
- __export2(node_env_exports, {
35368
+ var nodeEnv_exports = {};
35369
+ __export2(nodeEnv_exports, {
35301
35370
  getNodeEnv: () => getNodeEnv,
35302
35371
  isDev: () => isDev,
35303
35372
  isProd: () => isProd,
35304
35373
  isProdProfile: () => isProdProfile,
35305
35374
  isTest: () => isTest
35306
35375
  });
35307
- module2.exports = __toCommonJS2(node_env_exports);
35376
+ module2.exports = __toCommonJS2(nodeEnv_exports);
35308
35377
  var getNodeEnv = () => process.env.NODE_ENV || "development";
35309
35378
  var isDev = () => getNodeEnv() === "development";
35310
35379
  var isProd = () => getNodeEnv() === "production";
@@ -35426,6 +35495,10 @@ var require_is = __commonJS({
35426
35495
  };
35427
35496
  var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
35428
35497
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
35498
+ // If the importer is in node compatibility mode or this is not an ESM
35499
+ // file that has been converted to a CommonJS file using a Babel-
35500
+ // compatible transform (i.e. "__esModule" has not been set), then set
35501
+ // "default" to the CommonJS "module.exports" for node compatibility.
35429
35502
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
35430
35503
  mod
35431
35504
  ));
@@ -35435,6 +35508,7 @@ var require_is = __commonJS({
35435
35508
  isDepExists: () => isDepExists,
35436
35509
  isEmpty: () => isEmpty,
35437
35510
  isFastRefresh: () => isFastRefresh,
35511
+ isRouterV5: () => isRouterV5,
35438
35512
  isSSR: () => isSSR,
35439
35513
  isServiceWorker: () => isServiceWorker,
35440
35514
  isTypescript: () => isTypescript,
@@ -35444,8 +35518,8 @@ var require_is = __commonJS({
35444
35518
  var import_fs = __toESM2(require("fs"));
35445
35519
  var import_path4 = __toESM2(require("path"));
35446
35520
  var import_debug = require_debug2();
35447
- var import_node_env = require_node_env();
35448
- __reExport(is_exports, require_node_env(), module2.exports);
35521
+ var import_nodeEnv = require_nodeEnv();
35522
+ __reExport(is_exports, require_nodeEnv(), module2.exports);
35449
35523
  __reExport(is_exports, require_platform(), module2.exports);
35450
35524
  __reExport(is_exports, require_type(), module2.exports);
35451
35525
  var debug2 = (0, import_debug.createDebugger)("judge-depExists");
@@ -35489,7 +35563,11 @@ var require_is = __commonJS({
35489
35563
  }
35490
35564
  return false;
35491
35565
  };
35492
- var isFastRefresh = () => (0, import_node_env.isDev)() && process.env.FAST_REFRESH !== "false";
35566
+ var isFastRefresh = () => (0, import_nodeEnv.isDev)() && process.env.FAST_REFRESH !== "false";
35567
+ var isRouterV5 = (config) => {
35568
+ var _a, _b, _c;
35569
+ return typeof ((_a = config.runtime) == null ? void 0 : _a.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
35570
+ };
35493
35571
  }
35494
35572
  });
35495
35573
 
@@ -35598,6 +35676,7 @@ var require_constants = __commonJS({
35598
35676
  API_DIR: () => API_DIR,
35599
35677
  CONFIG_CACHE_DIR: () => CONFIG_CACHE_DIR,
35600
35678
  CONFIG_FILE_EXTENSIONS: () => CONFIG_FILE_EXTENSIONS,
35679
+ DEFAULT_DEV_HOST: () => DEFAULT_DEV_HOST,
35601
35680
  DEFAULT_SERVER_CONFIG: () => DEFAULT_SERVER_CONFIG,
35602
35681
  ENTRY_NAME_PATTERN: () => ENTRY_NAME_PATTERN,
35603
35682
  HMR_SOCK_PATH: () => HMR_SOCK_PATH,
@@ -35650,6 +35729,7 @@ var require_constants = __commonJS({
35650
35729
  var ROUTE_MINIFEST_FILE = "routes-manifest.json";
35651
35730
  var ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
35652
35731
  var LOADER_ROUTES_DIR = `loader-routes`;
35732
+ var DEFAULT_DEV_HOST = "0.0.0.0";
35653
35733
  var INTERNAL_APP_TOOLS_PLUGINS = {
35654
35734
  "@modern-js/app-tools": "@modern-js/app-tools/cli",
35655
35735
  "@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
@@ -35665,6 +35745,7 @@ var require_constants = __commonJS({
35665
35745
  "@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
35666
35746
  "@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
35667
35747
  "@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
35748
+ // legacy router (inner react-router-dom v5)
35668
35749
  "@modern-js/plugin-router-v5": "@modern-js/plugin-router-v5/cli"
35669
35750
  };
35670
35751
  var INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = {
@@ -35677,7 +35758,9 @@ var require_constants = __commonJS({
35677
35758
  "@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
35678
35759
  "@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
35679
35760
  "@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
35761
+ // TODO: Maybe can remove it
35680
35762
  "@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
35763
+ // legacy router (inner react-router-dom v5)
35681
35764
  "@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
35682
35765
  };
35683
35766
  var INTERNAL_MONOREPO_TOOLS_PLUGINS = {
@@ -35709,7 +35792,9 @@ var require_constants = __commonJS({
35709
35792
  "@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
35710
35793
  "@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
35711
35794
  "@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
35795
+ // TODO: Maybe can remove it
35712
35796
  "@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
35797
+ // legacy router (inner react-router-dom v5)
35713
35798
  "@modern-js/plugin-router-v5": "@modern-js/plugin-router-v5/cli"
35714
35799
  };
35715
35800
  var SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
@@ -35800,6 +35885,7 @@ var require_constants = __commonJS({
35800
35885
  }
35801
35886
  ],
35802
35887
  "@modern-js/plugin-design-token": [
35888
+ // Legacy Features
35803
35889
  {
35804
35890
  target: "source.designSystem",
35805
35891
  schema: { typeof: ["object"] }
@@ -35904,6 +35990,10 @@ var require_ensureAbsolutePath = __commonJS({
35904
35990
  return to;
35905
35991
  };
35906
35992
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
35993
+ // If the importer is in node compatibility mode or this is not an ESM
35994
+ // file that has been converted to a CommonJS file using a Babel-
35995
+ // compatible transform (i.e. "__esModule" has not been set), then set
35996
+ // "default" to the CommonJS "module.exports" for node compatibility.
35907
35997
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
35908
35998
  mod
35909
35999
  ));
@@ -36154,6 +36244,10 @@ var require_getPort = __commonJS({
36154
36244
  return to;
36155
36245
  };
36156
36246
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36247
+ // If the importer is in node compatibility mode or this is not an ESM
36248
+ // file that has been converted to a CommonJS file using a Babel-
36249
+ // compatible transform (i.e. "__esModule" has not been set), then set
36250
+ // "default" to the CommonJS "module.exports" for node compatibility.
36157
36251
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36158
36252
  mod
36159
36253
  ));
@@ -36278,6 +36372,10 @@ var require_monorepo = __commonJS({
36278
36372
  return to;
36279
36373
  };
36280
36374
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36375
+ // If the importer is in node compatibility mode or this is not an ESM
36376
+ // file that has been converted to a CommonJS file using a Babel-
36377
+ // compatible transform (i.e. "__esModule" has not been set), then set
36378
+ // "default" to the CommonJS "module.exports" for node compatibility.
36281
36379
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36282
36380
  mod
36283
36381
  ));
@@ -36353,9 +36451,12 @@ var require_monorepo = __commonJS({
36353
36451
  }
36354
36452
  if (packages) {
36355
36453
  return packages.map(
36356
- (name) => import_compiled.glob.sync(import_path4.default.join(root, `${name}/`), {
36357
- ignore: ["**/node_modules/**"]
36358
- })
36454
+ (name) => (
36455
+ // The trailing / ensures only dirs are picked up
36456
+ import_compiled.glob.sync(import_path4.default.join(root, `${name}/`), {
36457
+ ignore: ["**/node_modules/**"]
36458
+ })
36459
+ )
36359
36460
  ).reduce((acc, val) => acc.concat(val), []).filter((filepath) => import_fs.default.existsSync(import_path4.default.resolve(filepath, "package.json"))).map((filepath) => ({
36360
36461
  path: filepath,
36361
36462
  name: JSON.parse(
@@ -36369,7 +36470,7 @@ var require_monorepo = __commonJS({
36369
36470
  });
36370
36471
 
36371
36472
  // ../utils/dist/nodeEnv.js
36372
- var require_nodeEnv = __commonJS({
36473
+ var require_nodeEnv2 = __commonJS({
36373
36474
  "../utils/dist/nodeEnv.js"(exports, module2) {
36374
36475
  var __defProp2 = Object.defineProperty;
36375
36476
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -36471,6 +36572,10 @@ var require_getPackageManager = __commonJS({
36471
36572
  return to;
36472
36573
  };
36473
36574
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36575
+ // If the importer is in node compatibility mode or this is not an ESM
36576
+ // file that has been converted to a CommonJS file using a Babel-
36577
+ // compatible transform (i.e. "__esModule" has not been set), then set
36578
+ // "default" to the CommonJS "module.exports" for node compatibility.
36474
36579
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36475
36580
  mod
36476
36581
  ));
@@ -36503,7 +36608,7 @@ var require_getPackageManager = __commonJS({
36503
36608
  var import_os2 = __toESM2(require("os"));
36504
36609
  var import_path4 = __toESM2(require("path"));
36505
36610
  var import_compiled = require_compiled();
36506
- var import_nodeEnv = require_nodeEnv();
36611
+ var import_nodeEnv = require_nodeEnv2();
36507
36612
  var MAX_TIMES = 5;
36508
36613
  function getPackageManager() {
36509
36614
  return __async2(this, arguments, function* (cwd = process.cwd()) {
@@ -36556,6 +36661,10 @@ var require_path = __commonJS({
36556
36661
  return to;
36557
36662
  };
36558
36663
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36664
+ // If the importer is in node compatibility mode or this is not an ESM
36665
+ // file that has been converted to a CommonJS file using a Babel-
36666
+ // compatible transform (i.e. "__esModule" has not been set), then set
36667
+ // "default" to the CommonJS "module.exports" for node compatibility.
36559
36668
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36560
36669
  mod
36561
36670
  ));
@@ -36637,6 +36746,10 @@ var require_runtimeExports = __commonJS({
36637
36746
  return to;
36638
36747
  };
36639
36748
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36749
+ // If the importer is in node compatibility mode or this is not an ESM
36750
+ // file that has been converted to a CommonJS file using a Babel-
36751
+ // compatible transform (i.e. "__esModule" has not been set), then set
36752
+ // "default" to the CommonJS "module.exports" for node compatibility.
36640
36753
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36641
36754
  mod
36642
36755
  ));
@@ -36708,6 +36821,10 @@ var require_readTsConfig = __commonJS({
36708
36821
  return to;
36709
36822
  };
36710
36823
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36824
+ // If the importer is in node compatibility mode or this is not an ESM
36825
+ // file that has been converted to a CommonJS file using a Babel-
36826
+ // compatible transform (i.e. "__esModule" has not been set), then set
36827
+ // "default" to the CommonJS "module.exports" for node compatibility.
36711
36828
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36712
36829
  mod
36713
36830
  ));
@@ -36752,6 +36869,10 @@ var require_pathSerializer = __commonJS({
36752
36869
  return to;
36753
36870
  };
36754
36871
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
36872
+ // If the importer is in node compatibility mode or this is not an ESM
36873
+ // file that has been converted to a CommonJS file using a Babel-
36874
+ // compatible transform (i.e. "__esModule" has not been set), then set
36875
+ // "default" to the CommonJS "module.exports" for node compatibility.
36755
36876
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36756
36877
  mod
36757
36878
  ));
@@ -36886,6 +37007,10 @@ var require_prettyInstructions = __commonJS({
36886
37007
  return to;
36887
37008
  };
36888
37009
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37010
+ // If the importer is in node compatibility mode or this is not an ESM
37011
+ // file that has been converted to a CommonJS file using a Babel-
37012
+ // compatible transform (i.e. "__esModule" has not been set), then set
37013
+ // "default" to the CommonJS "module.exports" for node compatibility.
36889
37014
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
36890
37015
  mod
36891
37016
  ));
@@ -37013,6 +37138,10 @@ var require_alias = __commonJS({
37013
37138
  return to;
37014
37139
  };
37015
37140
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37141
+ // If the importer is in node compatibility mode or this is not an ESM
37142
+ // file that has been converted to a CommonJS file using a Babel-
37143
+ // compatible transform (i.e. "__esModule" has not been set), then set
37144
+ // "default" to the CommonJS "module.exports" for node compatibility.
37016
37145
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37017
37146
  mod
37018
37147
  ));
@@ -37102,6 +37231,10 @@ var require_watch = __commonJS({
37102
37231
  return to;
37103
37232
  };
37104
37233
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37234
+ // If the importer is in node compatibility mode or this is not an ESM
37235
+ // file that has been converted to a CommonJS file using a Babel-
37236
+ // compatible transform (i.e. "__esModule" has not been set), then set
37237
+ // "default" to the CommonJS "module.exports" for node compatibility.
37105
37238
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37106
37239
  mod
37107
37240
  ));
@@ -37274,6 +37407,10 @@ var require_getServerConfig = __commonJS({
37274
37407
  return to;
37275
37408
  };
37276
37409
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37410
+ // If the importer is in node compatibility mode or this is not an ESM
37411
+ // file that has been converted to a CommonJS file using a Babel-
37412
+ // compatible transform (i.e. "__esModule" has not been set), then set
37413
+ // "default" to the CommonJS "module.exports" for node compatibility.
37277
37414
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37278
37415
  mod
37279
37416
  ));
@@ -37317,110 +37454,6 @@ var require_getServerConfig = __commonJS({
37317
37454
  }
37318
37455
  });
37319
37456
 
37320
- // ../utils/dist/storage.js
37321
- var require_storage = __commonJS({
37322
- "../utils/dist/storage.js"(exports, module2) {
37323
- var __create2 = Object.create;
37324
- var __defProp2 = Object.defineProperty;
37325
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
37326
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
37327
- var __getProtoOf2 = Object.getPrototypeOf;
37328
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
37329
- var __export2 = (target, all) => {
37330
- for (var name in all)
37331
- __defProp2(target, name, { get: all[name], enumerable: true });
37332
- };
37333
- var __copyProps2 = (to, from, except, desc) => {
37334
- if (from && typeof from === "object" || typeof from === "function") {
37335
- for (let key of __getOwnPropNames2(from))
37336
- if (!__hasOwnProp2.call(to, key) && key !== except)
37337
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
37338
- }
37339
- return to;
37340
- };
37341
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37342
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37343
- mod
37344
- ));
37345
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
37346
- var storage_exports = {};
37347
- __export2(storage_exports, {
37348
- createStorage: () => createStorage
37349
- });
37350
- module2.exports = __toCommonJS2(storage_exports);
37351
- var ah = __toESM2(require("async_hooks"));
37352
- var createStorage = () => {
37353
- let storage;
37354
- if (typeof ah.AsyncLocalStorage !== "undefined") {
37355
- storage = new ah.AsyncLocalStorage();
37356
- }
37357
- const run = (context, cb) => {
37358
- if (!storage) {
37359
- throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
37360
- `);
37361
- }
37362
- return new Promise((resolve, reject) => {
37363
- storage.run(context, () => {
37364
- try {
37365
- return resolve(cb());
37366
- } catch (error) {
37367
- return reject(error);
37368
- }
37369
- });
37370
- });
37371
- };
37372
- const useContext = () => {
37373
- if (!storage) {
37374
- throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
37375
- `);
37376
- }
37377
- const context = storage.getStore();
37378
- if (!context) {
37379
- throw new Error(
37380
- `Can't call useContext out of scope, make sure @modern-js/utils is a single version in node_modules`
37381
- );
37382
- }
37383
- return context;
37384
- };
37385
- return {
37386
- run,
37387
- useContext
37388
- };
37389
- };
37390
- }
37391
- });
37392
-
37393
- // ../utils/dist/ssr.js
37394
- var require_ssr = __commonJS({
37395
- "../utils/dist/ssr.js"(exports, module2) {
37396
- var __defProp2 = Object.defineProperty;
37397
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
37398
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
37399
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
37400
- var __export2 = (target, all) => {
37401
- for (var name in all)
37402
- __defProp2(target, name, { get: all[name], enumerable: true });
37403
- };
37404
- var __copyProps2 = (to, from, except, desc) => {
37405
- if (from && typeof from === "object" || typeof from === "function") {
37406
- for (let key of __getOwnPropNames2(from))
37407
- if (!__hasOwnProp2.call(to, key) && key !== except)
37408
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
37409
- }
37410
- return to;
37411
- };
37412
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
37413
- var ssr_exports = {};
37414
- __export2(ssr_exports, {
37415
- run: () => run,
37416
- useHeaders: () => useHeaders
37417
- });
37418
- module2.exports = __toCommonJS2(ssr_exports);
37419
- var import_storage = require_storage();
37420
- var { run, useContext: useHeaders } = (0, import_storage.createStorage)();
37421
- }
37422
- });
37423
-
37424
37457
  // ../utils/dist/tryResolve.js
37425
37458
  var require_tryResolve = __commonJS({
37426
37459
  "../utils/dist/tryResolve.js"(exports, module2) {
@@ -37494,6 +37527,10 @@ var require_analyzeProject = __commonJS({
37494
37527
  return to;
37495
37528
  };
37496
37529
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37530
+ // If the importer is in node compatibility mode or this is not an ESM
37531
+ // file that has been converted to a CommonJS file using a Babel-
37532
+ // compatible transform (i.e. "__esModule" has not been set), then set
37533
+ // "default" to the CommonJS "module.exports" for node compatibility.
37497
37534
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37498
37535
  mod
37499
37536
  ));
@@ -37560,25 +37597,44 @@ var require_chainId = __commonJS({
37560
37597
  });
37561
37598
  module2.exports = __toCommonJS2(chainId_exports);
37562
37599
  var CHAIN_ID = {
37600
+ /** Predefined rules */
37563
37601
  RULE: {
37602
+ /** Rule for .mjs */
37564
37603
  MJS: "mjs",
37604
+ /** Rule for predefined loaders */
37565
37605
  LOADERS: "loaders",
37606
+ /** Rule for fonts */
37566
37607
  FONT: "font",
37608
+ /** Rule for images */
37567
37609
  IMAGE: "image",
37610
+ /** Rule for media */
37568
37611
  MEDIA: "media",
37612
+ /** Rule for js */
37569
37613
  JS: "js",
37614
+ /** Rule for data uri encoded javascript */
37570
37615
  JS_DATA_URI: "js-data-uri",
37616
+ /** Rule for ts */
37571
37617
  TS: "ts",
37618
+ /** Rule for css */
37572
37619
  CSS: "css",
37620
+ /** Rule for less */
37573
37621
  LESS: "less",
37622
+ /** Rule for sass */
37574
37623
  SASS: "sass",
37624
+ /** Rule for stylus */
37575
37625
  STYLUS: "stylus",
37626
+ /** Rule for svg */
37576
37627
  SVG: "svg",
37628
+ /** Rule for pug */
37577
37629
  PUG: "pug",
37630
+ /** Rule for toml */
37578
37631
  TOML: "toml",
37632
+ /** Rule for yaml */
37579
37633
  YAML: "yaml",
37634
+ /** Rule for bff */
37580
37635
  JS_BFF_API: "js-bff-api"
37581
37636
  },
37637
+ /** Predefined rule groups */
37582
37638
  ONE_OF: {
37583
37639
  JS: "js",
37584
37640
  TS: "ts",
@@ -37602,67 +37658,128 @@ var require_chainId = __commonJS({
37602
37658
  ASSETS_INLINE: "assets-inline",
37603
37659
  IMAGE_COMPRESS: "image-compress"
37604
37660
  },
37661
+ /** Predefined loaders */
37605
37662
  USE: {
37663
+ /** ts-loader */
37606
37664
  TS: "ts",
37665
+ /** css-loader */
37607
37666
  CSS: "css",
37667
+ /** sass-loader */
37608
37668
  SASS: "sass",
37669
+ /** less-loader */
37609
37670
  LESS: "less",
37671
+ /** stylus-loader */
37610
37672
  STYLUS: "stylus",
37673
+ /** url-loader */
37611
37674
  URL: "url",
37675
+ /** pug-loader */
37612
37676
  PUG: "pug",
37677
+ /** file-loader */
37613
37678
  FILE: "file",
37679
+ /** @svgr/webpack */
37614
37680
  SVGR: "svgr",
37681
+ /** yaml-loader */
37615
37682
  YAML: "yaml",
37683
+ /** toml-loader */
37616
37684
  TOML: "toml",
37685
+ /** html-loader */
37617
37686
  HTML: "html",
37687
+ /** babel-loader */
37618
37688
  BABEL: "babel",
37689
+ /** esbuild-loader */
37619
37690
  ESBUILD: "esbuild",
37691
+ /** swc-loader */
37620
37692
  SWC: "swc",
37693
+ /** style-loader */
37621
37694
  STYLE: "style-loader",
37695
+ /** postcss-loader */
37622
37696
  POSTCSS: "postcss",
37697
+ /** markdown-loader */
37623
37698
  MARKDOWN: "markdown",
37699
+ /** ignore-css-loader */
37624
37700
  IGNORE_CSS: "ignore-css",
37701
+ /** css-modules-typescript-loader */
37625
37702
  CSS_MODULES_TS: "css-modules-typescript",
37703
+ /** mini-css-extract-plugin.loader */
37626
37704
  MINI_CSS_EXTRACT: "mini-css-extract",
37705
+ /** builder-plugin-image-compress.loader */
37627
37706
  IMAGE_COMPRESS: "image-compress",
37707
+ /** builder-plugin-image-compress svgo-loader */
37628
37708
  SVGO: "svgo",
37709
+ /** builder-plugin-imagex */
37629
37710
  IMAGEX: "imagex"
37630
37711
  },
37712
+ /** Predefined plugins */
37631
37713
  PLUGIN: {
37714
+ /** HotModuleReplacementPlugin */
37632
37715
  HMR: "hmr",
37716
+ /** CopyWebpackPlugin */
37633
37717
  COPY: "copy",
37718
+ /** HtmlWebpackPlugin */
37634
37719
  HTML: "html",
37720
+ /** DefinePlugin */
37635
37721
  DEFINE: "define",
37722
+ /** IgnorePlugin */
37636
37723
  IGNORE: "ignore",
37724
+ /** BannerPlugin */
37637
37725
  BANNER: "banner",
37726
+ /** Webpackbar */
37638
37727
  PROGRESS: "progress",
37728
+ /** Inspector */
37639
37729
  INSPECTOR: "inspector",
37730
+ /** AppIconPlugin */
37640
37731
  APP_ICON: "app-icon",
37732
+ /** FaviconUrlPlugin */
37733
+ FAVICON_URL: "favicon-url",
37734
+ /** LoadableWebpackPlugin */
37641
37735
  LOADABLE: "loadable",
37736
+ /** WebpackManifestPlugin */
37642
37737
  MANIFEST: "webpack-manifest",
37738
+ /** ForkTsCheckerWebpackPlugin */
37643
37739
  TS_CHECKER: "ts-checker",
37740
+ /** InlineChunkHtmlPlugin */
37644
37741
  INLINE_HTML: "inline-html",
37742
+ /** WebpackBundleAnalyzer */
37645
37743
  BUNDLE_ANALYZER: "bundle-analyze",
37744
+ /** BottomTemplatePlugin */
37646
37745
  BOTTOM_TEMPLATE: "bottom-template",
37746
+ /** HtmlCrossOriginPlugin */
37647
37747
  HTML_CROSS_ORIGIN: "html-cross-origin",
37748
+ /** MiniCssExtractPlugin */
37648
37749
  MINI_CSS_EXTRACT: "mini-css-extract",
37750
+ /** ReactFastRefreshPlugin */
37649
37751
  REACT_FAST_REFRESH: "react-fast-refresh",
37752
+ /** ProvidePlugin for node polyfill */
37650
37753
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
37754
+ /** WebpackSRIPlugin */
37651
37755
  SUBRESOURCE_INTEGRITY: "subresource-integrity",
37756
+ /** WebpackAssetsRetryPlugin */
37652
37757
  ASSETS_RETRY: "ASSETS_RETRY",
37758
+ /** AutoSetRootFontSizePlugin */
37653
37759
  AUTO_SET_ROOT_SIZE: "auto-set-root-size",
37760
+ /** HtmlAsyncChunkPlugin */
37654
37761
  HTML_ASYNC_CHUNK: "html-async-chunk",
37762
+ /** SWC_POLYFILL_CHECKER */
37655
37763
  SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
37764
+ /** HtmlTagsPlugin */
37656
37765
  HTML_TAGS: "html-tags"
37657
37766
  },
37767
+ /** Predefined minimizers */
37658
37768
  MINIMIZER: {
37769
+ /** TerserWebpackPlugin */
37659
37770
  JS: "js",
37771
+ /** CssMinimizerWebpackPlugin */
37660
37772
  CSS: "css",
37773
+ /** ESBuildPlugin */
37661
37774
  ESBUILD: "js-css",
37775
+ /** SWCPlugin */
37662
37776
  SWC: "swc"
37663
37777
  },
37778
+ /** Predefined resolve plugins */
37664
37779
  RESOLVE_PLUGIN: {
37780
+ /** ModuleScopePlugin */
37665
37781
  MODULE_SCOPE: "module-scope",
37782
+ /** TsConfigPathsPlugin */
37666
37783
  TS_CONFIG_PATHS: "ts-config-paths"
37667
37784
  }
37668
37785
  };
@@ -37705,6 +37822,10 @@ var require_version = __commonJS({
37705
37822
  return to;
37706
37823
  };
37707
37824
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37825
+ // If the importer is in node compatibility mode or this is not an ESM
37826
+ // file that has been converted to a CommonJS file using a Babel-
37827
+ // compatible transform (i.e. "__esModule" has not been set), then set
37828
+ // "default" to the CommonJS "module.exports" for node compatibility.
37708
37829
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37709
37830
  mod
37710
37831
  ));
@@ -37828,6 +37949,10 @@ var require_routes = __commonJS({
37828
37949
  return to;
37829
37950
  };
37830
37951
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37952
+ // If the importer is in node compatibility mode or this is not an ESM
37953
+ // file that has been converted to a CommonJS file using a Babel-
37954
+ // compatible transform (i.e. "__esModule" has not been set), then set
37955
+ // "default" to the CommonJS "module.exports" for node compatibility.
37831
37956
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37832
37957
  mod
37833
37958
  ));
@@ -37861,9 +37986,9 @@ var require_routes = __commonJS({
37861
37986
  }
37862
37987
  });
37863
37988
 
37864
- // ../utils/dist/test-utils.js
37865
- var require_test_utils = __commonJS({
37866
- "../utils/dist/test-utils.js"(exports, module2) {
37989
+ // ../utils/dist/testUtils.js
37990
+ var require_testUtils = __commonJS({
37991
+ "../utils/dist/testUtils.js"(exports, module2) {
37867
37992
  var __defProp2 = Object.defineProperty;
37868
37993
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
37869
37994
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -37881,15 +38006,21 @@ var require_test_utils = __commonJS({
37881
38006
  return to;
37882
38007
  };
37883
38008
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
37884
- var test_utils_exports = {};
37885
- __export2(test_utils_exports, {
38009
+ var testUtils_exports = {};
38010
+ __export2(testUtils_exports, {
37886
38011
  initSnapshotSerializer: () => initSnapshotSerializer
37887
38012
  });
37888
- module2.exports = __toCommonJS2(test_utils_exports);
38013
+ module2.exports = __toCommonJS2(testUtils_exports);
37889
38014
  var initSnapshotSerializer = (root) => {
37890
38015
  expect.addSnapshotSerializer({
37891
38016
  test: (val) => typeof val === "string" && (val.includes("modern.js") || val.includes("node_modules") || val.includes(root)),
37892
- print: (val) => typeof val === "string" ? val.includes("node_modules") ? `"${val.replace(/.+node_modules/, ``).replace(/\\/g, "/")}"` : val.includes("modern.js") ? `"${val.replace(/.+modern\.js/, ``).replace(/\\/g, "/")}"` : `"${val.replace(root, "").replace(/\\/g, "/")}"` : val
38017
+ print: (val) => (
38018
+ // eslint-disable-next-line no-nested-ternary
38019
+ typeof val === "string" ? (
38020
+ // eslint-disable-next-line no-nested-ternary
38021
+ val.includes("node_modules") ? `"${val.replace(/.+node_modules/, ``).replace(/\\/g, "/")}"` : val.includes("modern.js") ? `"${val.replace(/.+modern\.js/, ``).replace(/\\/g, "/")}"` : `"${val.replace(root, "").replace(/\\/g, "/")}"`
38022
+ ) : val
38023
+ )
37893
38024
  });
37894
38025
  };
37895
38026
  }
@@ -37917,6 +38048,10 @@ var require_getCoreJsVersion = __commonJS({
37917
38048
  return to;
37918
38049
  };
37919
38050
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38051
+ // If the importer is in node compatibility mode or this is not an ESM
38052
+ // file that has been converted to a CommonJS file using a Babel-
38053
+ // compatible transform (i.e. "__esModule" has not been set), then set
38054
+ // "default" to the CommonJS "module.exports" for node compatibility.
37920
38055
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37921
38056
  mod
37922
38057
  ));
@@ -37975,6 +38110,10 @@ var require_react = __commonJS({
37975
38110
  return to;
37976
38111
  };
37977
38112
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38113
+ // If the importer is in node compatibility mode or this is not an ESM
38114
+ // file that has been converted to a CommonJS file using a Babel-
38115
+ // compatible transform (i.e. "__esModule" has not been set), then set
38116
+ // "default" to the CommonJS "module.exports" for node compatibility.
37978
38117
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37979
38118
  mod
37980
38119
  ));
@@ -38001,6 +38140,49 @@ var require_react = __commonJS({
38001
38140
  }
38002
38141
  });
38003
38142
 
38143
+ // ../utils/dist/getTargetDir.js
38144
+ var require_getTargetDir = __commonJS({
38145
+ "../utils/dist/getTargetDir.js"(exports, module2) {
38146
+ var __create2 = Object.create;
38147
+ var __defProp2 = Object.defineProperty;
38148
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
38149
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
38150
+ var __getProtoOf2 = Object.getPrototypeOf;
38151
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
38152
+ var __export2 = (target, all) => {
38153
+ for (var name in all)
38154
+ __defProp2(target, name, { get: all[name], enumerable: true });
38155
+ };
38156
+ var __copyProps2 = (to, from, except, desc) => {
38157
+ if (from && typeof from === "object" || typeof from === "function") {
38158
+ for (let key of __getOwnPropNames2(from))
38159
+ if (!__hasOwnProp2.call(to, key) && key !== except)
38160
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
38161
+ }
38162
+ return to;
38163
+ };
38164
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38165
+ // If the importer is in node compatibility mode or this is not an ESM
38166
+ // file that has been converted to a CommonJS file using a Babel-
38167
+ // compatible transform (i.e. "__esModule" has not been set), then set
38168
+ // "default" to the CommonJS "module.exports" for node compatibility.
38169
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
38170
+ mod
38171
+ ));
38172
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
38173
+ var getTargetDir_exports = {};
38174
+ __export2(getTargetDir_exports, {
38175
+ getTargetDir: () => getTargetDir
38176
+ });
38177
+ module2.exports = __toCommonJS2(getTargetDir_exports);
38178
+ var path4 = __toESM2(require("path"));
38179
+ var getTargetDir = (from, baseDir, targetBaseDir) => {
38180
+ const relativePath = path4.relative(baseDir, from);
38181
+ return path4.resolve(targetBaseDir, relativePath);
38182
+ };
38183
+ }
38184
+ });
38185
+
38004
38186
  // ../utils/dist/index.js
38005
38187
  var require_dist = __commonJS({
38006
38188
  "../utils/dist/index.js"(exports, module2) {
@@ -38050,20 +38232,20 @@ var require_dist = __commonJS({
38050
38232
  __reExport(src_exports2, require_alias(), module2.exports);
38051
38233
  __reExport(src_exports2, require_import(), module2.exports);
38052
38234
  __reExport(src_exports2, require_watch(), module2.exports);
38053
- __reExport(src_exports2, require_nodeEnv(), module2.exports);
38235
+ __reExport(src_exports2, require_nodeEnv2(), module2.exports);
38054
38236
  __reExport(src_exports2, require_wait(), module2.exports);
38055
38237
  __reExport(src_exports2, require_emptyDir(), module2.exports);
38056
38238
  __reExport(src_exports2, require_getServerConfig(), module2.exports);
38057
- __reExport(src_exports2, require_ssr(), module2.exports);
38058
38239
  __reExport(src_exports2, require_tryResolve(), module2.exports);
38059
38240
  __reExport(src_exports2, require_analyzeProject(), module2.exports);
38060
38241
  __reExport(src_exports2, require_chainId(), module2.exports);
38061
38242
  __reExport(src_exports2, require_version(), module2.exports);
38062
38243
  __reExport(src_exports2, require_plugin(), module2.exports);
38063
38244
  __reExport(src_exports2, require_routes(), module2.exports);
38064
- __reExport(src_exports2, require_test_utils(), module2.exports);
38245
+ __reExport(src_exports2, require_testUtils(), module2.exports);
38065
38246
  __reExport(src_exports2, require_getCoreJsVersion(), module2.exports);
38066
38247
  __reExport(src_exports2, require_react(), module2.exports);
38248
+ __reExport(src_exports2, require_getTargetDir(), module2.exports);
38067
38249
  }
38068
38250
  });
38069
38251
 
@@ -50337,7 +50519,7 @@ var require_debug3 = __commonJS({
50337
50519
  return;
50338
50520
  }
50339
50521
  const r4 = debug2;
50340
- const s2 = Number(new Date());
50522
+ const s2 = Number(/* @__PURE__ */ new Date());
50341
50523
  const n2 = s2 - (t3 || s2);
50342
50524
  r4.diff = n2;
50343
50525
  r4.prev = t3;
@@ -50511,7 +50693,7 @@ var require_debug3 = __commonJS({
50511
50693
  if (t2.inspectOpts.hideDate) {
50512
50694
  return "";
50513
50695
  }
50514
- return new Date().toISOString() + " ";
50696
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
50515
50697
  }
50516
50698
  function log(...e3) {
50517
50699
  return process.stderr.write(n.format(...e3) + "\n");
@@ -62320,10 +62502,10 @@ var require_signale2 = __commonJS({
62320
62502
  return Object.assign({}, { config: this._config, disabled: this._disabled, types: this._customTypes, interactive: this._interactive, timers: this._timers, stream: this._stream, secrets: this._secrets, logLevel: this._generalLogLevel });
62321
62503
  }
62322
62504
  get date() {
62323
- return new Date().toLocaleDateString();
62505
+ return (/* @__PURE__ */ new Date()).toLocaleDateString();
62324
62506
  }
62325
62507
  get timestamp() {
62326
- return new Date().toLocaleTimeString();
62508
+ return (/* @__PURE__ */ new Date()).toLocaleTimeString();
62327
62509
  }
62328
62510
  get filename() {
62329
62511
  const e3 = Error.prepareStackTrace;
@@ -67474,7 +67656,7 @@ var require_findExists2 = __commonJS({
67474
67656
  });
67475
67657
 
67476
67658
  // ../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/is/node-env.js
67477
- var require_node_env2 = __commonJS({
67659
+ var require_node_env = __commonJS({
67478
67660
  "../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/is/node-env.js"(exports) {
67479
67661
  "use strict";
67480
67662
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -67575,7 +67757,7 @@ var require_is2 = __commonJS({
67575
67757
  exports.isFastRefresh = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
67576
67758
  var fs_1 = __importDefault(require("fs"));
67577
67759
  var path_1 = __importDefault(require("path"));
67578
- var node_env_1 = require_node_env2();
67760
+ var node_env_1 = require_node_env();
67579
67761
  var isDepExists = (appDirectory, name) => {
67580
67762
  const json = require(path_1.default.resolve(appDirectory, "./package.json"));
67581
67763
  const { dependencies = {}, devDependencies = {} } = json;
@@ -67611,7 +67793,7 @@ var require_is2 = __commonJS({
67611
67793
  exports.isUseSSRBundle = isUseSSRBundle;
67612
67794
  var isFastRefresh = () => (0, node_env_1.isDev)() && process.env.FAST_REFRESH !== "false";
67613
67795
  exports.isFastRefresh = isFastRefresh;
67614
- __exportStar(require_node_env2(), exports);
67796
+ __exportStar(require_node_env(), exports);
67615
67797
  __exportStar(require_platform2(), exports);
67616
67798
  __exportStar(require_type2(), exports);
67617
67799
  }
@@ -67700,6 +67882,7 @@ var require_constants3 = __commonJS({
67700
67882
  cli: "@modern-js/plugin-nest/cli",
67701
67883
  server: "@modern-js/plugin-nest/server"
67702
67884
  },
67885
+ // TODO: remove unbundle configs after we completely deprecate it.
67703
67886
  "@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
67704
67887
  "@modern-js/plugin-server": {
67705
67888
  cli: "@modern-js/plugin-server/cli",
@@ -67713,6 +67896,7 @@ var require_constants3 = __commonJS({
67713
67896
  cli: "@modern-js/plugin-polyfill/cli",
67714
67897
  server: "@modern-js/plugin-polyfill"
67715
67898
  },
67899
+ // TODO: Maybe can remove it
67716
67900
  "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
67717
67901
  };
67718
67902
  exports.PLUGIN_SCHEMAS = {
@@ -67780,6 +67964,7 @@ var require_constants3 = __commonJS({
67780
67964
  schema: { typeof: ["string", "object"] }
67781
67965
  }
67782
67966
  ],
67967
+ // TODO: remove unbundle configs after we completely deprecate it.
67783
67968
  "@modern-js/plugin-unbundle": [
67784
67969
  {
67785
67970
  target: "output.disableAutoImportStyle",
@@ -67820,6 +68005,7 @@ var require_constants3 = __commonJS({
67820
68005
  }
67821
68006
  ],
67822
68007
  "@modern-js/plugin-design-token": [
68008
+ // Legacy Features
67823
68009
  {
67824
68010
  target: "source.designSystem",
67825
68011
  schema: { typeof: ["object"] }
@@ -68120,9 +68306,12 @@ var require_monorepo2 = __commonJS({
68120
68306
  ({ packages } = compiled_1.yaml.load(fs_1.default.readFileSync(path_1.default.join(root, WORKSPACE_FILES.PNPM), "utf8")));
68121
68307
  }
68122
68308
  if (packages) {
68123
- return packages.map((name) => compiled_1.glob.sync(path_1.default.join(root, `${name}/`), {
68124
- ignore: ["**/node_modules/**"]
68125
- })).reduce((acc, val) => acc.concat(val), []).filter((filepath) => fs_1.default.existsSync(path_1.default.resolve(filepath, "package.json"))).map((filepath) => ({
68309
+ return packages.map((name) => (
68310
+ // The trailing / ensures only dirs are picked up
68311
+ compiled_1.glob.sync(path_1.default.join(root, `${name}/`), {
68312
+ ignore: ["**/node_modules/**"]
68313
+ })
68314
+ )).reduce((acc, val) => acc.concat(val), []).filter((filepath) => fs_1.default.existsSync(path_1.default.resolve(filepath, "package.json"))).map((filepath) => ({
68126
68315
  path: filepath,
68127
68316
  name: JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(filepath, "package.json"), "utf8")).name
68128
68317
  }));
@@ -68134,7 +68323,7 @@ var require_monorepo2 = __commonJS({
68134
68323
  });
68135
68324
 
68136
68325
  // ../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/nodeEnv.js
68137
- var require_nodeEnv2 = __commonJS({
68326
+ var require_nodeEnv3 = __commonJS({
68138
68327
  "../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/nodeEnv.js"(exports) {
68139
68328
  "use strict";
68140
68329
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -68188,7 +68377,7 @@ var require_getPackageManager2 = __commonJS({
68188
68377
  var os_1 = __importDefault(require("os"));
68189
68378
  var path_1 = __importDefault(require("path"));
68190
68379
  var compiled_1 = require_compiled2();
68191
- var nodeEnv_1 = require_nodeEnv2();
68380
+ var nodeEnv_1 = require_nodeEnv3();
68192
68381
  var MAX_TIMES = 5;
68193
68382
  function getPackageManager() {
68194
68383
  return __async(this, arguments, function* (cwd = process.cwd()) {
@@ -68655,7 +68844,7 @@ var require_getServerConfig2 = __commonJS({
68655
68844
  });
68656
68845
 
68657
68846
  // ../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/storage.js
68658
- var require_storage2 = __commonJS({
68847
+ var require_storage = __commonJS({
68659
68848
  "../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/storage.js"(exports) {
68660
68849
  "use strict";
68661
68850
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -68734,12 +68923,12 @@ var require_storage2 = __commonJS({
68734
68923
  });
68735
68924
 
68736
68925
  // ../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/ssr.js
68737
- var require_ssr2 = __commonJS({
68926
+ var require_ssr = __commonJS({
68738
68927
  "../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/ssr.js"(exports) {
68739
68928
  "use strict";
68740
68929
  Object.defineProperty(exports, "__esModule", { value: true });
68741
68930
  exports.useHeaders = exports.run = void 0;
68742
- var storage_1 = require_storage2();
68931
+ var storage_1 = require_storage();
68743
68932
  var { run, useContext: useHeaders } = (0, storage_1.createStorage)();
68744
68933
  exports.run = run;
68745
68934
  exports.useHeaders = useHeaders;
@@ -68836,23 +69025,40 @@ var require_chainId2 = __commonJS({
68836
69025
  Object.defineProperty(exports, "__esModule", { value: true });
68837
69026
  exports.CHAIN_ID = void 0;
68838
69027
  exports.CHAIN_ID = {
69028
+ /** Predefined rules */
68839
69029
  RULE: {
69030
+ /** Rule for .mjs */
68840
69031
  MJS: "mjs",
69032
+ /** Rule for predefined loaders */
68841
69033
  LOADERS: "loaders",
69034
+ /** Rule for fonts */
68842
69035
  FONT: "font",
69036
+ /** Rule for images */
68843
69037
  IMAGE: "image",
69038
+ /** Rule for media */
68844
69039
  MEDIA: "media",
69040
+ /** Rule for js */
68845
69041
  JS: "js",
69042
+ /** Rule for data uri encoded javascript */
68846
69043
  JS_DATA_URI: "js-data-uri",
69044
+ /** Rule for ts */
68847
69045
  TS: "ts",
69046
+ /** Rule for css */
68848
69047
  CSS: "css",
69048
+ /** Rule for less */
68849
69049
  LESS: "less",
69050
+ /** Rule for sass */
68850
69051
  SASS: "sass",
69052
+ /** Rule for svg */
68851
69053
  SVG: "svg",
69054
+ /** Rule for pug */
68852
69055
  PUG: "pug",
69056
+ /** Rule for toml */
68853
69057
  TOML: "toml",
69058
+ /** Rule for yaml */
68854
69059
  YAML: "yaml"
68855
69060
  },
69061
+ /** Predefined rule groups */
68856
69062
  ONE_OF: {
68857
69063
  JS: "js",
68858
69064
  TS: "ts",
@@ -68875,57 +69081,106 @@ var require_chainId2 = __commonJS({
68875
69081
  ASSETS_URL: "assets-url",
68876
69082
  ASSETS_INLINE: "assets-inline"
68877
69083
  },
69084
+ /** Predefined loaders */
68878
69085
  USE: {
69086
+ /** ts-loader */
68879
69087
  TS: "ts",
69088
+ /** css-loader */
68880
69089
  CSS: "css",
69090
+ /** sass-loader */
68881
69091
  SASS: "sass",
69092
+ /** less-loader */
68882
69093
  LESS: "less",
69094
+ /** url-loader */
68883
69095
  URL: "url",
69096
+ /** pug-loader */
68884
69097
  PUG: "pug",
69098
+ /** file-loader */
68885
69099
  FILE: "file",
69100
+ /** @svgr/webpack */
68886
69101
  SVGR: "svgr",
69102
+ /** yaml-loader */
68887
69103
  YAML: "yaml",
69104
+ /** toml-loader */
68888
69105
  TOML: "toml",
69106
+ /** html-loader */
68889
69107
  HTML: "html",
69108
+ /** babel-loader */
68890
69109
  BABEL: "babel",
69110
+ /** esbuild-loader */
68891
69111
  ESBUILD: "esbuild",
69112
+ /** style-loader */
68892
69113
  STYLE: "style-loader",
69114
+ /** postcss-loader */
68893
69115
  POSTCSS: "postcss",
69116
+ /** markdown-loader */
68894
69117
  MARKDOWN: "markdown",
69118
+ /** css-modules-typescript-loader */
68895
69119
  CSS_MODULES_TS: "css-modules-typescript",
69120
+ /** mini-css-extract-plugin.loader */
68896
69121
  MINI_CSS_EXTRACT: "mini-css-extract"
68897
69122
  },
69123
+ /** Predefined plugins */
68898
69124
  PLUGIN: {
69125
+ /** HotModuleReplacementPlugin */
68899
69126
  HMR: "hmr",
69127
+ /** CopyWebpackPlugin */
68900
69128
  COPY: "copy",
69129
+ /** HtmlWebpackPlugin */
68901
69130
  HTML: "html",
69131
+ /** DefinePlugin */
68902
69132
  DEFINE: "define",
69133
+ /** IgnorePlugin */
68903
69134
  IGNORE: "ignore",
69135
+ /** BannerPlugin */
68904
69136
  BANNER: "banner",
69137
+ /** Webpackbar */
68905
69138
  PROGRESS: "progress",
69139
+ /** Inspector */
68906
69140
  INSPECTOR: "inspector",
69141
+ /** AppIconPlugin */
68907
69142
  APP_ICON: "app-icon",
69143
+ /** LoadableWebpackPlugin */
68908
69144
  LOADABLE: "loadable",
69145
+ /** WebpackManifestPlugin */
68909
69146
  MANIFEST: "webpack-manifest",
69147
+ /** ForkTsCheckerWebpackPlugin */
68910
69148
  TS_CHECKER: "ts-checker",
69149
+ /** InlineChunkHtmlPlugin */
68911
69150
  INLINE_HTML: "inline-html",
69151
+ /** WebpackBundleAnalyzer */
68912
69152
  BUNDLE_ANALYZER: "bundle-analyze",
69153
+ /** BottomTemplatePlugin */
68913
69154
  BOTTOM_TEMPLATE: "bottom-template",
69155
+ /** HtmlCrossOriginPlugin */
68914
69156
  HTML_CROSS_ORIGIN: "html-cross-origin",
69157
+ /** MiniCssExtractPlugin */
68915
69158
  MINI_CSS_EXTRACT: "mini-css-extract",
69159
+ /** ReactFastRefreshPlugin */
68916
69160
  REACT_FAST_REFRESH: "react-fast-refresh",
69161
+ /** ProvidePlugin for node polyfill */
68917
69162
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
69163
+ /** WebpackSRIPlugin */
68918
69164
  SUBRESOURCE_INTEGRITY: "subresource-integrity",
69165
+ /** WebpackAssetsRetryPlugin */
68919
69166
  ASSETS_RETRY: "ASSETS_RETRY",
69167
+ /** AutoSetRootFontSizePlugin */
68920
69168
  AUTO_SET_ROOT_SIZE: "auto-set-root-size"
68921
69169
  },
69170
+ /** Predefined minimizers */
68922
69171
  MINIMIZER: {
69172
+ /** TerserWebpackPlugin */
68923
69173
  JS: "js",
69174
+ /** CssMinimizerWebpackPlugin */
68924
69175
  CSS: "css",
69176
+ /** ESBuildPlugin */
68925
69177
  ESBUILD: "js-css"
68926
69178
  },
69179
+ /** Predefined resolve plugins */
68927
69180
  RESOLVE_PLUGIN: {
69181
+ /** ModuleScopePlugin */
68928
69182
  MODULE_SCOPE: "module-scope",
69183
+ /** TsConfigPathsPlugin */
68929
69184
  TS_CONFIG_PATHS: "ts-config-paths"
68930
69185
  }
68931
69186
  };
@@ -69019,11 +69274,11 @@ var require_dist2 = __commonJS({
69019
69274
  __exportStar(require_alias2(), exports);
69020
69275
  __exportStar(require_import2(), exports);
69021
69276
  __exportStar(require_watch2(), exports);
69022
- __exportStar(require_nodeEnv2(), exports);
69277
+ __exportStar(require_nodeEnv3(), exports);
69023
69278
  __exportStar(require_wait2(), exports);
69024
69279
  __exportStar(require_emptyDir2(), exports);
69025
69280
  __exportStar(require_getServerConfig2(), exports);
69026
- __exportStar(require_ssr2(), exports);
69281
+ __exportStar(require_ssr(), exports);
69027
69282
  __exportStar(require_tryResolve2(), exports);
69028
69283
  __exportStar(require_analyzeProject2(), exports);
69029
69284
  __exportStar(require_chainId2(), exports);
@@ -69353,6 +69608,7 @@ var require_generator = __commonJS({
69353
69608
  return obj;
69354
69609
  }
69355
69610
  var GeneratorCore = class {
69611
+ // event handles, to handle generator lifecycle
69356
69612
  constructor({
69357
69613
  logger,
69358
69614
  materialsManager,
@@ -69456,6 +69712,7 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
69456
69712
  }
69457
69713
  });
69458
69714
  }
69715
+ // when generator has finish forge template file, can trigger this function to emit `forged` event
69459
69716
  handleForged(generatorName, context, needWait = false, projectPath = "") {
69460
69717
  if (needWait) {
69461
69718
  this.event.emit(`forged`, generatorName, context.materials.default.basePath, _objectSpread(_objectSpread({}, context.data), context.config), projectPath, this);
@@ -69947,14 +70204,18 @@ var require_enhanceError = __commonJS({
69947
70204
  error.isAxiosError = true;
69948
70205
  error.toJSON = function toJSON() {
69949
70206
  return {
70207
+ // Standard
69950
70208
  message: this.message,
69951
70209
  name: this.name,
70210
+ // Microsoft
69952
70211
  description: this.description,
69953
70212
  number: this.number,
70213
+ // Mozilla
69954
70214
  fileName: this.fileName,
69955
70215
  lineNumber: this.lineNumber,
69956
70216
  columnNumber: this.columnNumber,
69957
70217
  stack: this.stack,
70218
+ // Axios
69958
70219
  config: this.config,
69959
70220
  code: this.code
69960
70221
  };
@@ -70003,44 +70264,50 @@ var require_cookies = __commonJS({
70003
70264
  "../../../node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/helpers/cookies.js"(exports, module2) {
70004
70265
  "use strict";
70005
70266
  var utils = require_utils();
70006
- module2.exports = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
70007
- return {
70008
- write: function write(name, value, expires, path4, domain, secure) {
70009
- var cookie = [];
70010
- cookie.push(name + "=" + encodeURIComponent(value));
70011
- if (utils.isNumber(expires)) {
70012
- cookie.push("expires=" + new Date(expires).toGMTString());
70013
- }
70014
- if (utils.isString(path4)) {
70015
- cookie.push("path=" + path4);
70016
- }
70017
- if (utils.isString(domain)) {
70018
- cookie.push("domain=" + domain);
70267
+ module2.exports = utils.isStandardBrowserEnv() ? (
70268
+ // Standard browser envs support document.cookie
70269
+ function standardBrowserEnv() {
70270
+ return {
70271
+ write: function write(name, value, expires, path4, domain, secure) {
70272
+ var cookie = [];
70273
+ cookie.push(name + "=" + encodeURIComponent(value));
70274
+ if (utils.isNumber(expires)) {
70275
+ cookie.push("expires=" + new Date(expires).toGMTString());
70276
+ }
70277
+ if (utils.isString(path4)) {
70278
+ cookie.push("path=" + path4);
70279
+ }
70280
+ if (utils.isString(domain)) {
70281
+ cookie.push("domain=" + domain);
70282
+ }
70283
+ if (secure === true) {
70284
+ cookie.push("secure");
70285
+ }
70286
+ document.cookie = cookie.join("; ");
70287
+ },
70288
+ read: function read(name) {
70289
+ var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
70290
+ return match ? decodeURIComponent(match[3]) : null;
70291
+ },
70292
+ remove: function remove(name) {
70293
+ this.write(name, "", Date.now() - 864e5);
70019
70294
  }
70020
- if (secure === true) {
70021
- cookie.push("secure");
70295
+ };
70296
+ }()
70297
+ ) : (
70298
+ // Non standard browser env (web workers, react-native) lack needed support.
70299
+ function nonStandardBrowserEnv() {
70300
+ return {
70301
+ write: function write() {
70302
+ },
70303
+ read: function read() {
70304
+ return null;
70305
+ },
70306
+ remove: function remove() {
70022
70307
  }
70023
- document.cookie = cookie.join("; ");
70024
- },
70025
- read: function read(name) {
70026
- var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
70027
- return match ? decodeURIComponent(match[3]) : null;
70028
- },
70029
- remove: function remove(name) {
70030
- this.write(name, "", Date.now() - 864e5);
70031
- }
70032
- };
70033
- }() : function nonStandardBrowserEnv() {
70034
- return {
70035
- write: function write() {
70036
- },
70037
- read: function read() {
70038
- return null;
70039
- },
70040
- remove: function remove() {
70041
- }
70042
- };
70043
- }();
70308
+ };
70309
+ }()
70310
+ );
70044
70311
  }
70045
70312
  });
70046
70313
 
@@ -70136,38 +70403,45 @@ var require_isURLSameOrigin = __commonJS({
70136
70403
  "../../../node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module2) {
70137
70404
  "use strict";
70138
70405
  var utils = require_utils();
70139
- module2.exports = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
70140
- var msie = /(msie|trident)/i.test(navigator.userAgent);
70141
- var urlParsingNode = document.createElement("a");
70142
- var originURL;
70143
- function resolveURL(url) {
70144
- var href = url;
70145
- if (msie) {
70406
+ module2.exports = utils.isStandardBrowserEnv() ? (
70407
+ // Standard browser envs have full support of the APIs needed to test
70408
+ // whether the request URL is of the same origin as current location.
70409
+ function standardBrowserEnv() {
70410
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
70411
+ var urlParsingNode = document.createElement("a");
70412
+ var originURL;
70413
+ function resolveURL(url) {
70414
+ var href = url;
70415
+ if (msie) {
70416
+ urlParsingNode.setAttribute("href", href);
70417
+ href = urlParsingNode.href;
70418
+ }
70146
70419
  urlParsingNode.setAttribute("href", href);
70147
- href = urlParsingNode.href;
70420
+ return {
70421
+ href: urlParsingNode.href,
70422
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
70423
+ host: urlParsingNode.host,
70424
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
70425
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
70426
+ hostname: urlParsingNode.hostname,
70427
+ port: urlParsingNode.port,
70428
+ pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
70429
+ };
70148
70430
  }
70149
- urlParsingNode.setAttribute("href", href);
70150
- return {
70151
- href: urlParsingNode.href,
70152
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
70153
- host: urlParsingNode.host,
70154
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
70155
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
70156
- hostname: urlParsingNode.hostname,
70157
- port: urlParsingNode.port,
70158
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
70159
- };
70160
- }
70161
- originURL = resolveURL(window.location.href);
70162
- return function isURLSameOrigin(requestURL) {
70163
- var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
70164
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
70165
- };
70166
- }() : function nonStandardBrowserEnv() {
70167
- return function isURLSameOrigin() {
70168
- return true;
70169
- };
70170
- }();
70431
+ originURL = resolveURL(window.location.href);
70432
+ return function isURLSameOrigin(requestURL) {
70433
+ var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
70434
+ return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
70435
+ };
70436
+ }()
70437
+ ) : (
70438
+ // Non standard browser envs (web workers, react-native) lack needed support.
70439
+ function nonStandardBrowserEnv() {
70440
+ return function isURLSameOrigin() {
70441
+ return true;
70442
+ };
70443
+ }()
70444
+ );
70171
70445
  }
70172
70446
  });
70173
70447
 
@@ -70453,7 +70727,7 @@ var require_common = __commonJS({
70453
70727
  return;
70454
70728
  }
70455
70729
  const self2 = debug2;
70456
- const curr = Number(new Date());
70730
+ const curr = Number(/* @__PURE__ */ new Date());
70457
70731
  const ms = curr - (prevTime || curr);
70458
70732
  self2.diff = ms;
70459
70733
  self2.prev = prevTime;
@@ -70681,7 +70955,11 @@ var require_browser = __commonJS({
70681
70955
  if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
70682
70956
  return false;
70683
70957
  }
70684
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
70958
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
70959
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
70960
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
70961
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
70962
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
70685
70963
  }
70686
70964
  function formatArgs(args) {
70687
70965
  args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
@@ -70975,7 +71253,11 @@ var require_follow_redirects = __commonJS({
70975
71253
  for (var event of events) {
70976
71254
  request.on(event, eventHandlers[event]);
70977
71255
  }
70978
- this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
71256
+ this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : (
71257
+ // When making a request to a proxy, […]
71258
+ // a client MUST send the target URI in absolute-form […].
71259
+ this._currentUrl = this._options.path
71260
+ );
70979
71261
  if (this._isRedirect) {
70980
71262
  var i = 0;
70981
71263
  var self2 = this;
@@ -71023,11 +71305,16 @@ var require_follow_redirects = __commonJS({
71023
71305
  var beforeRedirect = this._options.beforeRedirect;
71024
71306
  if (beforeRedirect) {
71025
71307
  requestHeaders = Object.assign({
71308
+ // The Host header was set by nativeProtocol.request
71026
71309
  Host: response.req.getHeader("host")
71027
71310
  }, this._options.headers);
71028
71311
  }
71029
71312
  var method = this._options.method;
71030
- if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
71313
+ if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
71314
+ // the server is redirecting the user agent to a different resource […]
71315
+ // A user agent can perform a retrieval request targeting that URI
71316
+ // (a GET or HEAD request if using HTTP) […]
71317
+ statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
71031
71318
  this._options.method = "GET";
71032
71319
  this._requestBodyBuffers = [];
71033
71320
  removeMatchingHeaders(/^content-/i, this._options.headers);
@@ -71129,7 +71416,10 @@ var require_follow_redirects = __commonJS({
71129
71416
  function urlToOptions(urlObject) {
71130
71417
  var options = {
71131
71418
  protocol: urlObject.protocol,
71132
- hostname: urlObject.hostname.startsWith("[") ? urlObject.hostname.slice(1, -1) : urlObject.hostname,
71419
+ hostname: urlObject.hostname.startsWith("[") ? (
71420
+ /* istanbul ignore next */
71421
+ urlObject.hostname.slice(1, -1)
71422
+ ) : urlObject.hostname,
71133
71423
  hash: urlObject.hash,
71134
71424
  search: urlObject.search,
71135
71425
  pathname: urlObject.pathname,
@@ -71618,6 +71908,10 @@ var require_defaults = __commonJS({
71618
71908
  }
71619
71909
  return data;
71620
71910
  }],
71911
+ /**
71912
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
71913
+ * timeout is not created.
71914
+ */
71621
71915
  timeout: 0,
71622
71916
  xsrfCookieName: "XSRF-TOKEN",
71623
71917
  xsrfHeaderName: "X-XSRF-TOKEN",
@@ -72203,6 +72497,7 @@ var require_minipass = __commonJS({
72203
72497
  unpipe() {
72204
72498
  this.dest.removeListener("drain", this.ondrain);
72205
72499
  }
72500
+ // istanbul ignore next - only here for the prototype
72206
72501
  proxyErrors() {
72207
72502
  }
72208
72503
  end() {
@@ -72324,7 +72619,8 @@ var require_minipass = __commonJS({
72324
72619
  fn(cb);
72325
72620
  return this.flowing;
72326
72621
  }
72327
- if (typeof chunk === "string" && !(encoding === this[ENCODING] && !this[DECODER].lastNeed)) {
72622
+ if (typeof chunk === "string" && // unless it is a string already ready for us to use
72623
+ !(encoding === this[ENCODING] && !this[DECODER].lastNeed)) {
72328
72624
  chunk = Buffer.from(chunk, encoding);
72329
72625
  }
72330
72626
  if (Buffer.isBuffer(chunk) && this[ENCODING])
@@ -72388,6 +72684,7 @@ var require_minipass = __commonJS({
72388
72684
  this[MAYBE_EMIT_END]();
72389
72685
  return this;
72390
72686
  }
72687
+ // don't let the internal resume be overwritten
72391
72688
  [RESUME]() {
72392
72689
  if (this[DESTROYED])
72393
72690
  return;
@@ -72573,6 +72870,7 @@ var require_minipass = __commonJS({
72573
72870
  this.removeAllListeners("end");
72574
72871
  return ret;
72575
72872
  }
72873
+ // const all = await stream.collect()
72576
72874
  collect() {
72577
72875
  const buf = [];
72578
72876
  if (!this[OBJECTMODE])
@@ -72585,9 +72883,11 @@ var require_minipass = __commonJS({
72585
72883
  });
72586
72884
  return p.then(() => buf);
72587
72885
  }
72886
+ // const data = await stream.concat()
72588
72887
  concat() {
72589
72888
  return this[OBJECTMODE] ? Promise.reject(new Error("cannot concat in objectMode")) : this.collect().then((buf) => this[OBJECTMODE] ? Promise.reject(new Error("cannot concat in objectMode")) : this[ENCODING] ? buf.join("") : Buffer.concat(buf, buf.dataLength));
72590
72889
  }
72890
+ // stream.promise().then(() => done, er => emitted error)
72591
72891
  promise() {
72592
72892
  return new Promise((resolve, reject) => {
72593
72893
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
@@ -72595,6 +72895,7 @@ var require_minipass = __commonJS({
72595
72895
  this.on("end", () => resolve());
72596
72896
  });
72597
72897
  }
72898
+ // for await (let chunk of stream)
72598
72899
  [ASYNCITERATOR]() {
72599
72900
  const next = () => {
72600
72901
  const res = this.read();
@@ -72632,6 +72933,7 @@ var require_minipass = __commonJS({
72632
72933
  };
72633
72934
  return { next };
72634
72935
  }
72936
+ // for (let chunk of stream)
72635
72937
  [ITERATOR]() {
72636
72938
  const next = () => {
72637
72939
  const value = this.read();
@@ -72660,7 +72962,8 @@ var require_minipass = __commonJS({
72660
72962
  return this;
72661
72963
  }
72662
72964
  static isStream(s) {
72663
- return !!s && (s instanceof Minipass || s instanceof Stream || s instanceof EE && (typeof s.pipe === "function" || typeof s.write === "function" && typeof s.end === "function"));
72965
+ return !!s && (s instanceof Minipass || s instanceof Stream || s instanceof EE && (typeof s.pipe === "function" || // readable
72966
+ typeof s.write === "function" && typeof s.end === "function"));
72664
72967
  }
72665
72968
  };
72666
72969
  }
@@ -72669,7 +72972,8 @@ var require_minipass = __commonJS({
72669
72972
  // ../../../node_modules/.pnpm/minizlib@2.1.2/node_modules/minizlib/constants.js
72670
72973
  var require_constants5 = __commonJS({
72671
72974
  "../../../node_modules/.pnpm/minizlib@2.1.2/node_modules/minizlib/constants.js"(exports, module2) {
72672
- var realZlibConstants = require("zlib").constants || { ZLIB_VERNUM: 4736 };
72975
+ var realZlibConstants = require("zlib").constants || /* istanbul ignore next */
72976
+ { ZLIB_VERNUM: 4736 };
72673
72977
  module2.exports = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), {
72674
72978
  Z_NO_FLUSH: 0,
72675
72979
  Z_PARTIAL_FLUSH: 1,
@@ -73146,25 +73450,41 @@ var require_types = __commonJS({
73146
73450
  "use strict";
73147
73451
  exports.name = /* @__PURE__ */ new Map([
73148
73452
  ["0", "File"],
73453
+ // same as File
73149
73454
  ["", "OldFile"],
73150
73455
  ["1", "Link"],
73151
73456
  ["2", "SymbolicLink"],
73457
+ // Devices and FIFOs aren't fully supported
73458
+ // they are parsed, but skipped when unpacking
73152
73459
  ["3", "CharacterDevice"],
73153
73460
  ["4", "BlockDevice"],
73154
73461
  ["5", "Directory"],
73155
73462
  ["6", "FIFO"],
73463
+ // same as File
73156
73464
  ["7", "ContiguousFile"],
73465
+ // pax headers
73157
73466
  ["g", "GlobalExtendedHeader"],
73158
73467
  ["x", "ExtendedHeader"],
73468
+ // vendor-specific stuff
73469
+ // skip
73159
73470
  ["A", "SolarisACL"],
73471
+ // like 5, but with data, which should be skipped
73160
73472
  ["D", "GNUDumpDir"],
73473
+ // metadata only, skip
73161
73474
  ["I", "Inode"],
73475
+ // data = link path of next file
73162
73476
  ["K", "NextFileHasLongLinkpath"],
73477
+ // data = path of next file
73163
73478
  ["L", "NextFileHasLongPath"],
73479
+ // skip
73164
73480
  ["M", "ContinuationFile"],
73481
+ // like L
73165
73482
  ["N", "OldGnuLongPath"],
73483
+ // skip
73166
73484
  ["S", "SparseFile"],
73485
+ // skip
73167
73486
  ["V", "TapeVolumeHeader"],
73487
+ // like x
73168
73488
  ["X", "OldExtendedHeader"]
73169
73489
  ]);
73170
73490
  exports.code = new Map(Array.from(exports.name).map((kv) => [kv[1], kv[0]]));
@@ -73493,6 +73813,9 @@ var require_pax = __commonJS({
73493
73813
  for (let i = 0; i < 512; i++)
73494
73814
  buf[i] = 0;
73495
73815
  new Header({
73816
+ // XXX split the path
73817
+ // then the path should be PaxHeader + basename, but less than 99,
73818
+ // prepend with the dirname
73496
73819
  path: ("PaxHeader/" + path4.basename(this.path)).slice(0, 99),
73497
73820
  mode: this.mode || 420,
73498
73821
  uid: this.uid || null,
@@ -73793,7 +74116,10 @@ var require_write_entry = __commonJS({
73793
74116
  this.noMtime = true;
73794
74117
  this.header = new Header({
73795
74118
  path: this[PREFIX](this.path),
74119
+ // only apply the prefix to hard links.
73796
74120
  linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
74121
+ // only the permissions and setuid/setgid/sticky bitflags
74122
+ // not the higher-order bits that specify file type
73797
74123
  mode: this[MODE](this.stat.mode),
73798
74124
  uid: this.portable ? null : this.stat.uid,
73799
74125
  gid: this.portable ? null : this.stat.gid,
@@ -74029,6 +74355,8 @@ var require_write_entry = __commonJS({
74029
74355
  this.header = new Header({
74030
74356
  path: this[PREFIX](this.path),
74031
74357
  linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
74358
+ // only the permissions and setuid/setgid/sticky bitflags
74359
+ // not the higher-order bits that specify file type
74032
74360
  mode: this.mode,
74033
74361
  uid: this.portable ? null : this.uid,
74034
74362
  gid: this.portable ? null : this.gid,
@@ -74734,6 +75062,7 @@ var require_pack = __commonJS({
74734
75062
  if (this[CURRENT] && this[CURRENT].entry)
74735
75063
  this[CURRENT].entry.resume();
74736
75064
  }
75065
+ // like .pipe() but using super, because our write() is special
74737
75066
  [PIPE](job) {
74738
75067
  job.piped = true;
74739
75068
  if (job.readdir) {
@@ -74768,6 +75097,7 @@ var require_pack = __commonJS({
74768
75097
  super(opt);
74769
75098
  this[WRITEENTRYCLASS] = WriteEntrySync;
74770
75099
  }
75100
+ // pause/resume are no-ops in sync streams.
74771
75101
  pause() {
74772
75102
  }
74773
75103
  resume() {
@@ -74779,6 +75109,7 @@ var require_pack = __commonJS({
74779
75109
  [READDIR](job, stat) {
74780
75110
  this[ONREADDIR](job, fs4.readdirSync(job.absolute));
74781
75111
  }
75112
+ // gotta get it all in this tick
74782
75113
  [PIPE](job) {
74783
75114
  const source = job.entry;
74784
75115
  const zip = this.zip;
@@ -76039,6 +76370,7 @@ var require_find_made = __commonJS({
76039
76370
  return Promise.resolve();
76040
76371
  return opts.statAsync(parent).then(
76041
76372
  (st) => st.isDirectory() ? path4 : void 0,
76373
+ // will fail later
76042
76374
  (er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
76043
76375
  );
76044
76376
  };
@@ -76764,6 +77096,9 @@ var require_unpack = __commonJS({
76764
77096
  this.fmode = opt.fmode || 438 & ~this.umask;
76765
77097
  this.on("entry", (entry) => this[ONENTRY](entry));
76766
77098
  }
77099
+ // a bad or damaged archive is a warning for Parser, but an error
77100
+ // when extracting. Mark those errors as unrecoverable, because
77101
+ // the Unpack contract cannot be met.
76767
77102
  warn(code, msg, data = {}) {
76768
77103
  if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
76769
77104
  data.recoverable = false;
@@ -76928,7 +77263,7 @@ var require_unpack = __commonJS({
76928
77263
  const fd = stream.fd;
76929
77264
  if (entry.mtime && !this.noMtime) {
76930
77265
  actions++;
76931
- const atime = entry.atime || new Date();
77266
+ const atime = entry.atime || /* @__PURE__ */ new Date();
76932
77267
  const mtime = entry.mtime;
76933
77268
  fs4.futimes(fd, atime, mtime, (er) => er ? fs4.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
76934
77269
  }
@@ -76968,7 +77303,7 @@ var require_unpack = __commonJS({
76968
77303
  };
76969
77304
  if (entry.mtime && !this.noMtime) {
76970
77305
  actions++;
76971
- fs4.utimes(entry.absolute, entry.atime || new Date(), entry.mtime, done);
77306
+ fs4.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
76972
77307
  }
76973
77308
  if (this[DOCHOWN](entry)) {
76974
77309
  actions++;
@@ -77004,9 +77339,13 @@ var require_unpack = __commonJS({
77004
77339
  this[UNPEND]();
77005
77340
  entry.resume();
77006
77341
  }
77342
+ // Check if we can reuse an existing filesystem entry safely and
77343
+ // overwrite it, rather than unlinking and recreating
77344
+ // Windows doesn't report a useful nlink, so we just never reuse entries
77007
77345
  [ISREUSABLE](entry, st) {
77008
77346
  return entry.type === "File" && !this.unlink && st.isFile() && st.nlink <= 1 && !isWindows;
77009
77347
  }
77348
+ // check if a thing is there, and if so, try to clobber it
77010
77349
  [CHECKFS](entry) {
77011
77350
  this[PEND]();
77012
77351
  const paths = [entry.path];
@@ -77197,7 +77536,7 @@ var require_unpack = __commonJS({
77197
77536
  tx.on("end", (_) => {
77198
77537
  let er = null;
77199
77538
  if (entry.mtime && !this.noMtime) {
77200
- const atime = entry.atime || new Date();
77539
+ const atime = entry.atime || /* @__PURE__ */ new Date();
77201
77540
  const mtime = entry.mtime;
77202
77541
  try {
77203
77542
  fs4.futimesSync(fd, atime, mtime);
@@ -77235,7 +77574,7 @@ var require_unpack = __commonJS({
77235
77574
  }
77236
77575
  if (entry.mtime && !this.noMtime) {
77237
77576
  try {
77238
- fs4.utimesSync(entry.absolute, entry.atime || new Date(), entry.mtime);
77577
+ fs4.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
77239
77578
  } catch (er2) {
77240
77579
  }
77241
77580
  }
@@ -77495,8 +77834,8 @@ var require_downloadPackage = __commonJS({
77495
77834
  const preCacheTimeStr = yield _utils.fs.readFile(`${cacheDir}/.codesmith.completed`, {
77496
77835
  encoding: "utf-8"
77497
77836
  });
77498
- const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : new Date(0);
77499
- if (Number(new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
77837
+ const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : /* @__PURE__ */ new Date(0);
77838
+ if (Number(/* @__PURE__ */ new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
77500
77839
  return true;
77501
77840
  }
77502
77841
  return false;
@@ -77564,7 +77903,7 @@ var require_downloadPackage = __commonJS({
77564
77903
  if (install) {
77565
77904
  yield (0, _packageManager.runInstall)(targetDir, registryUrl);
77566
77905
  }
77567
- yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
77906
+ yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, (/* @__PURE__ */ new Date()).toISOString(), {
77568
77907
  encoding: "utf-8"
77569
77908
  });
77570
77909
  return targetDir;
@@ -77771,6 +78110,7 @@ var require_codesmith = __commonJS({
77771
78110
  return obj;
77772
78111
  }
77773
78112
  var CodeSmith2 = class {
78113
+ // current mode is debug mode
77774
78114
  constructor({
77775
78115
  debug: debug2,
77776
78116
  logger,
@@ -77932,7 +78272,7 @@ var import_path2 = __toESM(require("path"));
77932
78272
  var import_codesmith = __toESM(require_node());
77933
78273
 
77934
78274
  // package.json
77935
- var version = "2.5.0";
78275
+ var version = "2.7.0";
77936
78276
 
77937
78277
  // ../../cli/plugin-i18n/dist/esm-node/index.js
77938
78278
  var import_lodash2 = __toESM(require_lodash2());
@@ -78063,7 +78403,7 @@ var localeKeys = i18n.init("zh", { zh: ZH_LOCALE, en: EN_LOCALE });
78063
78403
  var import_path = __toESM(require("path"));
78064
78404
  var import_utils2 = __toESM(require_dist());
78065
78405
 
78066
- // ../../cli/plugin-i18n/dist/esm-node/language-detector.js
78406
+ // ../../cli/plugin-i18n/dist/esm-node/languageDetector.js
78067
78407
  var I18CLILanguageDetector = class {
78068
78408
  formatShellLocale(rawLC) {
78069
78409
  if (!rawLC) {
@@ -78276,6 +78616,7 @@ function src_default() {
78276
78616
  }
78277
78617
  // Annotate the CommonJS export names for ESM import in node:
78278
78618
  0 && (module.exports = {});
78619
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78279
78620
  /*!
78280
78621
  * fill-range <https://github.com/jonschlinkert/fill-range>
78281
78622
  *
@@ -78300,23 +78641,14 @@ function src_default() {
78300
78641
  * Copyright (c) 2014-present, Jon Schlinkert.
78301
78642
  * Released under the MIT License.
78302
78643
  */
78644
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78645
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78303
78646
  /*!
78304
78647
  * to-regex-range <https://github.com/micromatch/to-regex-range>
78305
78648
  *
78306
78649
  * Copyright (c) 2015-present, Jon Schlinkert.
78307
78650
  * Released under the MIT License.
78308
78651
  */
78309
- /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78310
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78311
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78312
- /**
78313
- * @license
78314
- * Lodash <https://lodash.com/>
78315
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
78316
- * Released under MIT license <https://lodash.com/license>
78317
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
78318
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
78319
- */
78320
78652
  /**
78321
78653
  * filesize
78322
78654
  *
@@ -78324,3 +78656,61 @@ function src_default() {
78324
78656
  * @license BSD-3-Clause
78325
78657
  * @version 8.0.7
78326
78658
  */
78659
+ /*! Bundled license information:
78660
+
78661
+ lodash/lodash.js:
78662
+ (**
78663
+ * @license
78664
+ * Lodash <https://lodash.com/>
78665
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
78666
+ * Released under MIT license <https://lodash.com/license>
78667
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
78668
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
78669
+ *)
78670
+
78671
+ @modern-js/utils/compiled/ora/index.js:
78672
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78673
+
78674
+ @modern-js/utils/compiled/fast-glob/index.js:
78675
+ (*!
78676
+ * fill-range <https://github.com/jonschlinkert/fill-range>
78677
+ *
78678
+ * Copyright (c) 2014-present, Jon Schlinkert.
78679
+ * Licensed under the MIT License.
78680
+ *)
78681
+ (*!
78682
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
78683
+ *
78684
+ * Copyright (c) 2014-2016, Jon Schlinkert.
78685
+ * Licensed under the MIT License.
78686
+ *)
78687
+ (*!
78688
+ * is-glob <https://github.com/jonschlinkert/is-glob>
78689
+ *
78690
+ * Copyright (c) 2014-2017, Jon Schlinkert.
78691
+ * Released under the MIT License.
78692
+ *)
78693
+ (*!
78694
+ * is-number <https://github.com/jonschlinkert/is-number>
78695
+ *
78696
+ * Copyright (c) 2014-present, Jon Schlinkert.
78697
+ * Released under the MIT License.
78698
+ *)
78699
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78700
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78701
+ (*!
78702
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
78703
+ *
78704
+ * Copyright (c) 2015-present, Jon Schlinkert.
78705
+ * Released under the MIT License.
78706
+ *)
78707
+
78708
+ @modern-js/utils/compiled/filesize/index.js:
78709
+ (**
78710
+ * filesize
78711
+ *
78712
+ * @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
78713
+ * @license BSD-3-Clause
78714
+ * @version 8.0.7
78715
+ *)
78716
+ */