@modern-js/create 2.5.0 → 2.6.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 +564 -109
  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
  ));
@@ -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,
@@ -35490,6 +35564,10 @@ var require_is = __commonJS({
35490
35564
  return false;
35491
35565
  };
35492
35566
  var isFastRefresh = () => (0, import_node_env.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(
@@ -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
  ));
@@ -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
  ));
@@ -37339,6 +37476,10 @@ var require_storage = __commonJS({
37339
37476
  return to;
37340
37477
  };
37341
37478
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37479
+ // If the importer is in node compatibility mode or this is not an ESM
37480
+ // file that has been converted to a CommonJS file using a Babel-
37481
+ // compatible transform (i.e. "__esModule" has not been set), then set
37482
+ // "default" to the CommonJS "module.exports" for node compatibility.
37342
37483
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37343
37484
  mod
37344
37485
  ));
@@ -37494,6 +37635,10 @@ var require_analyzeProject = __commonJS({
37494
37635
  return to;
37495
37636
  };
37496
37637
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37638
+ // If the importer is in node compatibility mode or this is not an ESM
37639
+ // file that has been converted to a CommonJS file using a Babel-
37640
+ // compatible transform (i.e. "__esModule" has not been set), then set
37641
+ // "default" to the CommonJS "module.exports" for node compatibility.
37497
37642
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37498
37643
  mod
37499
37644
  ));
@@ -37560,25 +37705,44 @@ var require_chainId = __commonJS({
37560
37705
  });
37561
37706
  module2.exports = __toCommonJS2(chainId_exports);
37562
37707
  var CHAIN_ID = {
37708
+ /** Predefined rules */
37563
37709
  RULE: {
37710
+ /** Rule for .mjs */
37564
37711
  MJS: "mjs",
37712
+ /** Rule for predefined loaders */
37565
37713
  LOADERS: "loaders",
37714
+ /** Rule for fonts */
37566
37715
  FONT: "font",
37716
+ /** Rule for images */
37567
37717
  IMAGE: "image",
37718
+ /** Rule for media */
37568
37719
  MEDIA: "media",
37720
+ /** Rule for js */
37569
37721
  JS: "js",
37722
+ /** Rule for data uri encoded javascript */
37570
37723
  JS_DATA_URI: "js-data-uri",
37724
+ /** Rule for ts */
37571
37725
  TS: "ts",
37726
+ /** Rule for css */
37572
37727
  CSS: "css",
37728
+ /** Rule for less */
37573
37729
  LESS: "less",
37730
+ /** Rule for sass */
37574
37731
  SASS: "sass",
37732
+ /** Rule for stylus */
37575
37733
  STYLUS: "stylus",
37734
+ /** Rule for svg */
37576
37735
  SVG: "svg",
37736
+ /** Rule for pug */
37577
37737
  PUG: "pug",
37738
+ /** Rule for toml */
37578
37739
  TOML: "toml",
37740
+ /** Rule for yaml */
37579
37741
  YAML: "yaml",
37742
+ /** Rule for bff */
37580
37743
  JS_BFF_API: "js-bff-api"
37581
37744
  },
37745
+ /** Predefined rule groups */
37582
37746
  ONE_OF: {
37583
37747
  JS: "js",
37584
37748
  TS: "ts",
@@ -37602,67 +37766,128 @@ var require_chainId = __commonJS({
37602
37766
  ASSETS_INLINE: "assets-inline",
37603
37767
  IMAGE_COMPRESS: "image-compress"
37604
37768
  },
37769
+ /** Predefined loaders */
37605
37770
  USE: {
37771
+ /** ts-loader */
37606
37772
  TS: "ts",
37773
+ /** css-loader */
37607
37774
  CSS: "css",
37775
+ /** sass-loader */
37608
37776
  SASS: "sass",
37777
+ /** less-loader */
37609
37778
  LESS: "less",
37779
+ /** stylus-loader */
37610
37780
  STYLUS: "stylus",
37781
+ /** url-loader */
37611
37782
  URL: "url",
37783
+ /** pug-loader */
37612
37784
  PUG: "pug",
37785
+ /** file-loader */
37613
37786
  FILE: "file",
37787
+ /** @svgr/webpack */
37614
37788
  SVGR: "svgr",
37789
+ /** yaml-loader */
37615
37790
  YAML: "yaml",
37791
+ /** toml-loader */
37616
37792
  TOML: "toml",
37793
+ /** html-loader */
37617
37794
  HTML: "html",
37795
+ /** babel-loader */
37618
37796
  BABEL: "babel",
37797
+ /** esbuild-loader */
37619
37798
  ESBUILD: "esbuild",
37799
+ /** swc-loader */
37620
37800
  SWC: "swc",
37801
+ /** style-loader */
37621
37802
  STYLE: "style-loader",
37803
+ /** postcss-loader */
37622
37804
  POSTCSS: "postcss",
37805
+ /** markdown-loader */
37623
37806
  MARKDOWN: "markdown",
37807
+ /** ignore-css-loader */
37624
37808
  IGNORE_CSS: "ignore-css",
37809
+ /** css-modules-typescript-loader */
37625
37810
  CSS_MODULES_TS: "css-modules-typescript",
37811
+ /** mini-css-extract-plugin.loader */
37626
37812
  MINI_CSS_EXTRACT: "mini-css-extract",
37813
+ /** builder-plugin-image-compress.loader */
37627
37814
  IMAGE_COMPRESS: "image-compress",
37815
+ /** builder-plugin-image-compress svgo-loader */
37628
37816
  SVGO: "svgo",
37817
+ /** builder-plugin-imagex */
37629
37818
  IMAGEX: "imagex"
37630
37819
  },
37820
+ /** Predefined plugins */
37631
37821
  PLUGIN: {
37822
+ /** HotModuleReplacementPlugin */
37632
37823
  HMR: "hmr",
37824
+ /** CopyWebpackPlugin */
37633
37825
  COPY: "copy",
37826
+ /** HtmlWebpackPlugin */
37634
37827
  HTML: "html",
37828
+ /** DefinePlugin */
37635
37829
  DEFINE: "define",
37830
+ /** IgnorePlugin */
37636
37831
  IGNORE: "ignore",
37832
+ /** BannerPlugin */
37637
37833
  BANNER: "banner",
37834
+ /** Webpackbar */
37638
37835
  PROGRESS: "progress",
37836
+ /** Inspector */
37639
37837
  INSPECTOR: "inspector",
37838
+ /** AppIconPlugin */
37640
37839
  APP_ICON: "app-icon",
37840
+ /** FaviconUrlPlugin */
37841
+ FAVICON_URL: "favicon-url",
37842
+ /** LoadableWebpackPlugin */
37641
37843
  LOADABLE: "loadable",
37844
+ /** WebpackManifestPlugin */
37642
37845
  MANIFEST: "webpack-manifest",
37846
+ /** ForkTsCheckerWebpackPlugin */
37643
37847
  TS_CHECKER: "ts-checker",
37848
+ /** InlineChunkHtmlPlugin */
37644
37849
  INLINE_HTML: "inline-html",
37850
+ /** WebpackBundleAnalyzer */
37645
37851
  BUNDLE_ANALYZER: "bundle-analyze",
37852
+ /** BottomTemplatePlugin */
37646
37853
  BOTTOM_TEMPLATE: "bottom-template",
37854
+ /** HtmlCrossOriginPlugin */
37647
37855
  HTML_CROSS_ORIGIN: "html-cross-origin",
37856
+ /** MiniCssExtractPlugin */
37648
37857
  MINI_CSS_EXTRACT: "mini-css-extract",
37858
+ /** ReactFastRefreshPlugin */
37649
37859
  REACT_FAST_REFRESH: "react-fast-refresh",
37860
+ /** ProvidePlugin for node polyfill */
37650
37861
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
37862
+ /** WebpackSRIPlugin */
37651
37863
  SUBRESOURCE_INTEGRITY: "subresource-integrity",
37864
+ /** WebpackAssetsRetryPlugin */
37652
37865
  ASSETS_RETRY: "ASSETS_RETRY",
37866
+ /** AutoSetRootFontSizePlugin */
37653
37867
  AUTO_SET_ROOT_SIZE: "auto-set-root-size",
37868
+ /** HtmlAsyncChunkPlugin */
37654
37869
  HTML_ASYNC_CHUNK: "html-async-chunk",
37870
+ /** SWC_POLYFILL_CHECKER */
37655
37871
  SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
37872
+ /** HtmlTagsPlugin */
37656
37873
  HTML_TAGS: "html-tags"
37657
37874
  },
37875
+ /** Predefined minimizers */
37658
37876
  MINIMIZER: {
37877
+ /** TerserWebpackPlugin */
37659
37878
  JS: "js",
37879
+ /** CssMinimizerWebpackPlugin */
37660
37880
  CSS: "css",
37881
+ /** ESBuildPlugin */
37661
37882
  ESBUILD: "js-css",
37883
+ /** SWCPlugin */
37662
37884
  SWC: "swc"
37663
37885
  },
37886
+ /** Predefined resolve plugins */
37664
37887
  RESOLVE_PLUGIN: {
37888
+ /** ModuleScopePlugin */
37665
37889
  MODULE_SCOPE: "module-scope",
37890
+ /** TsConfigPathsPlugin */
37666
37891
  TS_CONFIG_PATHS: "ts-config-paths"
37667
37892
  }
37668
37893
  };
@@ -37705,6 +37930,10 @@ var require_version = __commonJS({
37705
37930
  return to;
37706
37931
  };
37707
37932
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
37933
+ // If the importer is in node compatibility mode or this is not an ESM
37934
+ // file that has been converted to a CommonJS file using a Babel-
37935
+ // compatible transform (i.e. "__esModule" has not been set), then set
37936
+ // "default" to the CommonJS "module.exports" for node compatibility.
37708
37937
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37709
37938
  mod
37710
37939
  ));
@@ -37828,6 +38057,10 @@ var require_routes = __commonJS({
37828
38057
  return to;
37829
38058
  };
37830
38059
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38060
+ // If the importer is in node compatibility mode or this is not an ESM
38061
+ // file that has been converted to a CommonJS file using a Babel-
38062
+ // compatible transform (i.e. "__esModule" has not been set), then set
38063
+ // "default" to the CommonJS "module.exports" for node compatibility.
37831
38064
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37832
38065
  mod
37833
38066
  ));
@@ -37889,7 +38122,13 @@ var require_test_utils = __commonJS({
37889
38122
  var initSnapshotSerializer = (root) => {
37890
38123
  expect.addSnapshotSerializer({
37891
38124
  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
38125
+ print: (val) => (
38126
+ // eslint-disable-next-line no-nested-ternary
38127
+ typeof val === "string" ? (
38128
+ // eslint-disable-next-line no-nested-ternary
38129
+ 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, "/")}"`
38130
+ ) : val
38131
+ )
37893
38132
  });
37894
38133
  };
37895
38134
  }
@@ -37917,6 +38156,10 @@ var require_getCoreJsVersion = __commonJS({
37917
38156
  return to;
37918
38157
  };
37919
38158
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38159
+ // If the importer is in node compatibility mode or this is not an ESM
38160
+ // file that has been converted to a CommonJS file using a Babel-
38161
+ // compatible transform (i.e. "__esModule" has not been set), then set
38162
+ // "default" to the CommonJS "module.exports" for node compatibility.
37920
38163
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37921
38164
  mod
37922
38165
  ));
@@ -37975,6 +38218,10 @@ var require_react = __commonJS({
37975
38218
  return to;
37976
38219
  };
37977
38220
  var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
38221
+ // If the importer is in node compatibility mode or this is not an ESM
38222
+ // file that has been converted to a CommonJS file using a Babel-
38223
+ // compatible transform (i.e. "__esModule" has not been set), then set
38224
+ // "default" to the CommonJS "module.exports" for node compatibility.
37978
38225
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
37979
38226
  mod
37980
38227
  ));
@@ -50337,7 +50584,7 @@ var require_debug3 = __commonJS({
50337
50584
  return;
50338
50585
  }
50339
50586
  const r4 = debug2;
50340
- const s2 = Number(new Date());
50587
+ const s2 = Number(/* @__PURE__ */ new Date());
50341
50588
  const n2 = s2 - (t3 || s2);
50342
50589
  r4.diff = n2;
50343
50590
  r4.prev = t3;
@@ -50511,7 +50758,7 @@ var require_debug3 = __commonJS({
50511
50758
  if (t2.inspectOpts.hideDate) {
50512
50759
  return "";
50513
50760
  }
50514
- return new Date().toISOString() + " ";
50761
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
50515
50762
  }
50516
50763
  function log(...e3) {
50517
50764
  return process.stderr.write(n.format(...e3) + "\n");
@@ -62320,10 +62567,10 @@ var require_signale2 = __commonJS({
62320
62567
  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
62568
  }
62322
62569
  get date() {
62323
- return new Date().toLocaleDateString();
62570
+ return (/* @__PURE__ */ new Date()).toLocaleDateString();
62324
62571
  }
62325
62572
  get timestamp() {
62326
- return new Date().toLocaleTimeString();
62573
+ return (/* @__PURE__ */ new Date()).toLocaleTimeString();
62327
62574
  }
62328
62575
  get filename() {
62329
62576
  const e3 = Error.prepareStackTrace;
@@ -67700,6 +67947,7 @@ var require_constants3 = __commonJS({
67700
67947
  cli: "@modern-js/plugin-nest/cli",
67701
67948
  server: "@modern-js/plugin-nest/server"
67702
67949
  },
67950
+ // TODO: remove unbundle configs after we completely deprecate it.
67703
67951
  "@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
67704
67952
  "@modern-js/plugin-server": {
67705
67953
  cli: "@modern-js/plugin-server/cli",
@@ -67713,6 +67961,7 @@ var require_constants3 = __commonJS({
67713
67961
  cli: "@modern-js/plugin-polyfill/cli",
67714
67962
  server: "@modern-js/plugin-polyfill"
67715
67963
  },
67964
+ // TODO: Maybe can remove it
67716
67965
  "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
67717
67966
  };
67718
67967
  exports.PLUGIN_SCHEMAS = {
@@ -67780,6 +68029,7 @@ var require_constants3 = __commonJS({
67780
68029
  schema: { typeof: ["string", "object"] }
67781
68030
  }
67782
68031
  ],
68032
+ // TODO: remove unbundle configs after we completely deprecate it.
67783
68033
  "@modern-js/plugin-unbundle": [
67784
68034
  {
67785
68035
  target: "output.disableAutoImportStyle",
@@ -67820,6 +68070,7 @@ var require_constants3 = __commonJS({
67820
68070
  }
67821
68071
  ],
67822
68072
  "@modern-js/plugin-design-token": [
68073
+ // Legacy Features
67823
68074
  {
67824
68075
  target: "source.designSystem",
67825
68076
  schema: { typeof: ["object"] }
@@ -68120,9 +68371,12 @@ var require_monorepo2 = __commonJS({
68120
68371
  ({ packages } = compiled_1.yaml.load(fs_1.default.readFileSync(path_1.default.join(root, WORKSPACE_FILES.PNPM), "utf8")));
68121
68372
  }
68122
68373
  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) => ({
68374
+ return packages.map((name) => (
68375
+ // The trailing / ensures only dirs are picked up
68376
+ compiled_1.glob.sync(path_1.default.join(root, `${name}/`), {
68377
+ ignore: ["**/node_modules/**"]
68378
+ })
68379
+ )).reduce((acc, val) => acc.concat(val), []).filter((filepath) => fs_1.default.existsSync(path_1.default.resolve(filepath, "package.json"))).map((filepath) => ({
68126
68380
  path: filepath,
68127
68381
  name: JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(filepath, "package.json"), "utf8")).name
68128
68382
  }));
@@ -68836,23 +69090,40 @@ var require_chainId2 = __commonJS({
68836
69090
  Object.defineProperty(exports, "__esModule", { value: true });
68837
69091
  exports.CHAIN_ID = void 0;
68838
69092
  exports.CHAIN_ID = {
69093
+ /** Predefined rules */
68839
69094
  RULE: {
69095
+ /** Rule for .mjs */
68840
69096
  MJS: "mjs",
69097
+ /** Rule for predefined loaders */
68841
69098
  LOADERS: "loaders",
69099
+ /** Rule for fonts */
68842
69100
  FONT: "font",
69101
+ /** Rule for images */
68843
69102
  IMAGE: "image",
69103
+ /** Rule for media */
68844
69104
  MEDIA: "media",
69105
+ /** Rule for js */
68845
69106
  JS: "js",
69107
+ /** Rule for data uri encoded javascript */
68846
69108
  JS_DATA_URI: "js-data-uri",
69109
+ /** Rule for ts */
68847
69110
  TS: "ts",
69111
+ /** Rule for css */
68848
69112
  CSS: "css",
69113
+ /** Rule for less */
68849
69114
  LESS: "less",
69115
+ /** Rule for sass */
68850
69116
  SASS: "sass",
69117
+ /** Rule for svg */
68851
69118
  SVG: "svg",
69119
+ /** Rule for pug */
68852
69120
  PUG: "pug",
69121
+ /** Rule for toml */
68853
69122
  TOML: "toml",
69123
+ /** Rule for yaml */
68854
69124
  YAML: "yaml"
68855
69125
  },
69126
+ /** Predefined rule groups */
68856
69127
  ONE_OF: {
68857
69128
  JS: "js",
68858
69129
  TS: "ts",
@@ -68875,57 +69146,106 @@ var require_chainId2 = __commonJS({
68875
69146
  ASSETS_URL: "assets-url",
68876
69147
  ASSETS_INLINE: "assets-inline"
68877
69148
  },
69149
+ /** Predefined loaders */
68878
69150
  USE: {
69151
+ /** ts-loader */
68879
69152
  TS: "ts",
69153
+ /** css-loader */
68880
69154
  CSS: "css",
69155
+ /** sass-loader */
68881
69156
  SASS: "sass",
69157
+ /** less-loader */
68882
69158
  LESS: "less",
69159
+ /** url-loader */
68883
69160
  URL: "url",
69161
+ /** pug-loader */
68884
69162
  PUG: "pug",
69163
+ /** file-loader */
68885
69164
  FILE: "file",
69165
+ /** @svgr/webpack */
68886
69166
  SVGR: "svgr",
69167
+ /** yaml-loader */
68887
69168
  YAML: "yaml",
69169
+ /** toml-loader */
68888
69170
  TOML: "toml",
69171
+ /** html-loader */
68889
69172
  HTML: "html",
69173
+ /** babel-loader */
68890
69174
  BABEL: "babel",
69175
+ /** esbuild-loader */
68891
69176
  ESBUILD: "esbuild",
69177
+ /** style-loader */
68892
69178
  STYLE: "style-loader",
69179
+ /** postcss-loader */
68893
69180
  POSTCSS: "postcss",
69181
+ /** markdown-loader */
68894
69182
  MARKDOWN: "markdown",
69183
+ /** css-modules-typescript-loader */
68895
69184
  CSS_MODULES_TS: "css-modules-typescript",
69185
+ /** mini-css-extract-plugin.loader */
68896
69186
  MINI_CSS_EXTRACT: "mini-css-extract"
68897
69187
  },
69188
+ /** Predefined plugins */
68898
69189
  PLUGIN: {
69190
+ /** HotModuleReplacementPlugin */
68899
69191
  HMR: "hmr",
69192
+ /** CopyWebpackPlugin */
68900
69193
  COPY: "copy",
69194
+ /** HtmlWebpackPlugin */
68901
69195
  HTML: "html",
69196
+ /** DefinePlugin */
68902
69197
  DEFINE: "define",
69198
+ /** IgnorePlugin */
68903
69199
  IGNORE: "ignore",
69200
+ /** BannerPlugin */
68904
69201
  BANNER: "banner",
69202
+ /** Webpackbar */
68905
69203
  PROGRESS: "progress",
69204
+ /** Inspector */
68906
69205
  INSPECTOR: "inspector",
69206
+ /** AppIconPlugin */
68907
69207
  APP_ICON: "app-icon",
69208
+ /** LoadableWebpackPlugin */
68908
69209
  LOADABLE: "loadable",
69210
+ /** WebpackManifestPlugin */
68909
69211
  MANIFEST: "webpack-manifest",
69212
+ /** ForkTsCheckerWebpackPlugin */
68910
69213
  TS_CHECKER: "ts-checker",
69214
+ /** InlineChunkHtmlPlugin */
68911
69215
  INLINE_HTML: "inline-html",
69216
+ /** WebpackBundleAnalyzer */
68912
69217
  BUNDLE_ANALYZER: "bundle-analyze",
69218
+ /** BottomTemplatePlugin */
68913
69219
  BOTTOM_TEMPLATE: "bottom-template",
69220
+ /** HtmlCrossOriginPlugin */
68914
69221
  HTML_CROSS_ORIGIN: "html-cross-origin",
69222
+ /** MiniCssExtractPlugin */
68915
69223
  MINI_CSS_EXTRACT: "mini-css-extract",
69224
+ /** ReactFastRefreshPlugin */
68916
69225
  REACT_FAST_REFRESH: "react-fast-refresh",
69226
+ /** ProvidePlugin for node polyfill */
68917
69227
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
69228
+ /** WebpackSRIPlugin */
68918
69229
  SUBRESOURCE_INTEGRITY: "subresource-integrity",
69230
+ /** WebpackAssetsRetryPlugin */
68919
69231
  ASSETS_RETRY: "ASSETS_RETRY",
69232
+ /** AutoSetRootFontSizePlugin */
68920
69233
  AUTO_SET_ROOT_SIZE: "auto-set-root-size"
68921
69234
  },
69235
+ /** Predefined minimizers */
68922
69236
  MINIMIZER: {
69237
+ /** TerserWebpackPlugin */
68923
69238
  JS: "js",
69239
+ /** CssMinimizerWebpackPlugin */
68924
69240
  CSS: "css",
69241
+ /** ESBuildPlugin */
68925
69242
  ESBUILD: "js-css"
68926
69243
  },
69244
+ /** Predefined resolve plugins */
68927
69245
  RESOLVE_PLUGIN: {
69246
+ /** ModuleScopePlugin */
68928
69247
  MODULE_SCOPE: "module-scope",
69248
+ /** TsConfigPathsPlugin */
68929
69249
  TS_CONFIG_PATHS: "ts-config-paths"
68930
69250
  }
68931
69251
  };
@@ -69353,6 +69673,7 @@ var require_generator = __commonJS({
69353
69673
  return obj;
69354
69674
  }
69355
69675
  var GeneratorCore = class {
69676
+ // event handles, to handle generator lifecycle
69356
69677
  constructor({
69357
69678
  logger,
69358
69679
  materialsManager,
@@ -69456,6 +69777,7 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
69456
69777
  }
69457
69778
  });
69458
69779
  }
69780
+ // when generator has finish forge template file, can trigger this function to emit `forged` event
69459
69781
  handleForged(generatorName, context, needWait = false, projectPath = "") {
69460
69782
  if (needWait) {
69461
69783
  this.event.emit(`forged`, generatorName, context.materials.default.basePath, _objectSpread(_objectSpread({}, context.data), context.config), projectPath, this);
@@ -69947,14 +70269,18 @@ var require_enhanceError = __commonJS({
69947
70269
  error.isAxiosError = true;
69948
70270
  error.toJSON = function toJSON() {
69949
70271
  return {
70272
+ // Standard
69950
70273
  message: this.message,
69951
70274
  name: this.name,
70275
+ // Microsoft
69952
70276
  description: this.description,
69953
70277
  number: this.number,
70278
+ // Mozilla
69954
70279
  fileName: this.fileName,
69955
70280
  lineNumber: this.lineNumber,
69956
70281
  columnNumber: this.columnNumber,
69957
70282
  stack: this.stack,
70283
+ // Axios
69958
70284
  config: this.config,
69959
70285
  code: this.code
69960
70286
  };
@@ -70003,44 +70329,50 @@ var require_cookies = __commonJS({
70003
70329
  "../../../node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/helpers/cookies.js"(exports, module2) {
70004
70330
  "use strict";
70005
70331
  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);
70332
+ module2.exports = utils.isStandardBrowserEnv() ? (
70333
+ // Standard browser envs support document.cookie
70334
+ function standardBrowserEnv() {
70335
+ return {
70336
+ write: function write(name, value, expires, path4, domain, secure) {
70337
+ var cookie = [];
70338
+ cookie.push(name + "=" + encodeURIComponent(value));
70339
+ if (utils.isNumber(expires)) {
70340
+ cookie.push("expires=" + new Date(expires).toGMTString());
70341
+ }
70342
+ if (utils.isString(path4)) {
70343
+ cookie.push("path=" + path4);
70344
+ }
70345
+ if (utils.isString(domain)) {
70346
+ cookie.push("domain=" + domain);
70347
+ }
70348
+ if (secure === true) {
70349
+ cookie.push("secure");
70350
+ }
70351
+ document.cookie = cookie.join("; ");
70352
+ },
70353
+ read: function read(name) {
70354
+ var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
70355
+ return match ? decodeURIComponent(match[3]) : null;
70356
+ },
70357
+ remove: function remove(name) {
70358
+ this.write(name, "", Date.now() - 864e5);
70019
70359
  }
70020
- if (secure === true) {
70021
- cookie.push("secure");
70360
+ };
70361
+ }()
70362
+ ) : (
70363
+ // Non standard browser env (web workers, react-native) lack needed support.
70364
+ function nonStandardBrowserEnv() {
70365
+ return {
70366
+ write: function write() {
70367
+ },
70368
+ read: function read() {
70369
+ return null;
70370
+ },
70371
+ remove: function remove() {
70022
70372
  }
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
- }();
70373
+ };
70374
+ }()
70375
+ );
70044
70376
  }
70045
70377
  });
70046
70378
 
@@ -70136,38 +70468,45 @@ var require_isURLSameOrigin = __commonJS({
70136
70468
  "../../../node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module2) {
70137
70469
  "use strict";
70138
70470
  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) {
70471
+ module2.exports = utils.isStandardBrowserEnv() ? (
70472
+ // Standard browser envs have full support of the APIs needed to test
70473
+ // whether the request URL is of the same origin as current location.
70474
+ function standardBrowserEnv() {
70475
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
70476
+ var urlParsingNode = document.createElement("a");
70477
+ var originURL;
70478
+ function resolveURL(url) {
70479
+ var href = url;
70480
+ if (msie) {
70481
+ urlParsingNode.setAttribute("href", href);
70482
+ href = urlParsingNode.href;
70483
+ }
70146
70484
  urlParsingNode.setAttribute("href", href);
70147
- href = urlParsingNode.href;
70485
+ return {
70486
+ href: urlParsingNode.href,
70487
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
70488
+ host: urlParsingNode.host,
70489
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
70490
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
70491
+ hostname: urlParsingNode.hostname,
70492
+ port: urlParsingNode.port,
70493
+ pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
70494
+ };
70148
70495
  }
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
- }();
70496
+ originURL = resolveURL(window.location.href);
70497
+ return function isURLSameOrigin(requestURL) {
70498
+ var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
70499
+ return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
70500
+ };
70501
+ }()
70502
+ ) : (
70503
+ // Non standard browser envs (web workers, react-native) lack needed support.
70504
+ function nonStandardBrowserEnv() {
70505
+ return function isURLSameOrigin() {
70506
+ return true;
70507
+ };
70508
+ }()
70509
+ );
70171
70510
  }
70172
70511
  });
70173
70512
 
@@ -70453,7 +70792,7 @@ var require_common = __commonJS({
70453
70792
  return;
70454
70793
  }
70455
70794
  const self2 = debug2;
70456
- const curr = Number(new Date());
70795
+ const curr = Number(/* @__PURE__ */ new Date());
70457
70796
  const ms = curr - (prevTime || curr);
70458
70797
  self2.diff = ms;
70459
70798
  self2.prev = prevTime;
@@ -70681,7 +71020,11 @@ var require_browser = __commonJS({
70681
71020
  if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
70682
71021
  return false;
70683
71022
  }
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+)/);
71023
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
71024
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
71025
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
71026
+ 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
71027
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
70685
71028
  }
70686
71029
  function formatArgs(args) {
70687
71030
  args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
@@ -70975,7 +71318,11 @@ var require_follow_redirects = __commonJS({
70975
71318
  for (var event of events) {
70976
71319
  request.on(event, eventHandlers[event]);
70977
71320
  }
70978
- this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
71321
+ this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : (
71322
+ // When making a request to a proxy, […]
71323
+ // a client MUST send the target URI in absolute-form […].
71324
+ this._currentUrl = this._options.path
71325
+ );
70979
71326
  if (this._isRedirect) {
70980
71327
  var i = 0;
70981
71328
  var self2 = this;
@@ -71023,11 +71370,16 @@ var require_follow_redirects = __commonJS({
71023
71370
  var beforeRedirect = this._options.beforeRedirect;
71024
71371
  if (beforeRedirect) {
71025
71372
  requestHeaders = Object.assign({
71373
+ // The Host header was set by nativeProtocol.request
71026
71374
  Host: response.req.getHeader("host")
71027
71375
  }, this._options.headers);
71028
71376
  }
71029
71377
  var method = this._options.method;
71030
- if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
71378
+ if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
71379
+ // the server is redirecting the user agent to a different resource […]
71380
+ // A user agent can perform a retrieval request targeting that URI
71381
+ // (a GET or HEAD request if using HTTP) […]
71382
+ statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
71031
71383
  this._options.method = "GET";
71032
71384
  this._requestBodyBuffers = [];
71033
71385
  removeMatchingHeaders(/^content-/i, this._options.headers);
@@ -71129,7 +71481,10 @@ var require_follow_redirects = __commonJS({
71129
71481
  function urlToOptions(urlObject) {
71130
71482
  var options = {
71131
71483
  protocol: urlObject.protocol,
71132
- hostname: urlObject.hostname.startsWith("[") ? urlObject.hostname.slice(1, -1) : urlObject.hostname,
71484
+ hostname: urlObject.hostname.startsWith("[") ? (
71485
+ /* istanbul ignore next */
71486
+ urlObject.hostname.slice(1, -1)
71487
+ ) : urlObject.hostname,
71133
71488
  hash: urlObject.hash,
71134
71489
  search: urlObject.search,
71135
71490
  pathname: urlObject.pathname,
@@ -71618,6 +71973,10 @@ var require_defaults = __commonJS({
71618
71973
  }
71619
71974
  return data;
71620
71975
  }],
71976
+ /**
71977
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
71978
+ * timeout is not created.
71979
+ */
71621
71980
  timeout: 0,
71622
71981
  xsrfCookieName: "XSRF-TOKEN",
71623
71982
  xsrfHeaderName: "X-XSRF-TOKEN",
@@ -72203,6 +72562,7 @@ var require_minipass = __commonJS({
72203
72562
  unpipe() {
72204
72563
  this.dest.removeListener("drain", this.ondrain);
72205
72564
  }
72565
+ // istanbul ignore next - only here for the prototype
72206
72566
  proxyErrors() {
72207
72567
  }
72208
72568
  end() {
@@ -72324,7 +72684,8 @@ var require_minipass = __commonJS({
72324
72684
  fn(cb);
72325
72685
  return this.flowing;
72326
72686
  }
72327
- if (typeof chunk === "string" && !(encoding === this[ENCODING] && !this[DECODER].lastNeed)) {
72687
+ if (typeof chunk === "string" && // unless it is a string already ready for us to use
72688
+ !(encoding === this[ENCODING] && !this[DECODER].lastNeed)) {
72328
72689
  chunk = Buffer.from(chunk, encoding);
72329
72690
  }
72330
72691
  if (Buffer.isBuffer(chunk) && this[ENCODING])
@@ -72388,6 +72749,7 @@ var require_minipass = __commonJS({
72388
72749
  this[MAYBE_EMIT_END]();
72389
72750
  return this;
72390
72751
  }
72752
+ // don't let the internal resume be overwritten
72391
72753
  [RESUME]() {
72392
72754
  if (this[DESTROYED])
72393
72755
  return;
@@ -72573,6 +72935,7 @@ var require_minipass = __commonJS({
72573
72935
  this.removeAllListeners("end");
72574
72936
  return ret;
72575
72937
  }
72938
+ // const all = await stream.collect()
72576
72939
  collect() {
72577
72940
  const buf = [];
72578
72941
  if (!this[OBJECTMODE])
@@ -72585,9 +72948,11 @@ var require_minipass = __commonJS({
72585
72948
  });
72586
72949
  return p.then(() => buf);
72587
72950
  }
72951
+ // const data = await stream.concat()
72588
72952
  concat() {
72589
72953
  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
72954
  }
72955
+ // stream.promise().then(() => done, er => emitted error)
72591
72956
  promise() {
72592
72957
  return new Promise((resolve, reject) => {
72593
72958
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
@@ -72595,6 +72960,7 @@ var require_minipass = __commonJS({
72595
72960
  this.on("end", () => resolve());
72596
72961
  });
72597
72962
  }
72963
+ // for await (let chunk of stream)
72598
72964
  [ASYNCITERATOR]() {
72599
72965
  const next = () => {
72600
72966
  const res = this.read();
@@ -72632,6 +72998,7 @@ var require_minipass = __commonJS({
72632
72998
  };
72633
72999
  return { next };
72634
73000
  }
73001
+ // for (let chunk of stream)
72635
73002
  [ITERATOR]() {
72636
73003
  const next = () => {
72637
73004
  const value = this.read();
@@ -72660,7 +73027,8 @@ var require_minipass = __commonJS({
72660
73027
  return this;
72661
73028
  }
72662
73029
  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"));
73030
+ return !!s && (s instanceof Minipass || s instanceof Stream || s instanceof EE && (typeof s.pipe === "function" || // readable
73031
+ typeof s.write === "function" && typeof s.end === "function"));
72664
73032
  }
72665
73033
  };
72666
73034
  }
@@ -72669,7 +73037,8 @@ var require_minipass = __commonJS({
72669
73037
  // ../../../node_modules/.pnpm/minizlib@2.1.2/node_modules/minizlib/constants.js
72670
73038
  var require_constants5 = __commonJS({
72671
73039
  "../../../node_modules/.pnpm/minizlib@2.1.2/node_modules/minizlib/constants.js"(exports, module2) {
72672
- var realZlibConstants = require("zlib").constants || { ZLIB_VERNUM: 4736 };
73040
+ var realZlibConstants = require("zlib").constants || /* istanbul ignore next */
73041
+ { ZLIB_VERNUM: 4736 };
72673
73042
  module2.exports = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), {
72674
73043
  Z_NO_FLUSH: 0,
72675
73044
  Z_PARTIAL_FLUSH: 1,
@@ -73146,25 +73515,41 @@ var require_types = __commonJS({
73146
73515
  "use strict";
73147
73516
  exports.name = /* @__PURE__ */ new Map([
73148
73517
  ["0", "File"],
73518
+ // same as File
73149
73519
  ["", "OldFile"],
73150
73520
  ["1", "Link"],
73151
73521
  ["2", "SymbolicLink"],
73522
+ // Devices and FIFOs aren't fully supported
73523
+ // they are parsed, but skipped when unpacking
73152
73524
  ["3", "CharacterDevice"],
73153
73525
  ["4", "BlockDevice"],
73154
73526
  ["5", "Directory"],
73155
73527
  ["6", "FIFO"],
73528
+ // same as File
73156
73529
  ["7", "ContiguousFile"],
73530
+ // pax headers
73157
73531
  ["g", "GlobalExtendedHeader"],
73158
73532
  ["x", "ExtendedHeader"],
73533
+ // vendor-specific stuff
73534
+ // skip
73159
73535
  ["A", "SolarisACL"],
73536
+ // like 5, but with data, which should be skipped
73160
73537
  ["D", "GNUDumpDir"],
73538
+ // metadata only, skip
73161
73539
  ["I", "Inode"],
73540
+ // data = link path of next file
73162
73541
  ["K", "NextFileHasLongLinkpath"],
73542
+ // data = path of next file
73163
73543
  ["L", "NextFileHasLongPath"],
73544
+ // skip
73164
73545
  ["M", "ContinuationFile"],
73546
+ // like L
73165
73547
  ["N", "OldGnuLongPath"],
73548
+ // skip
73166
73549
  ["S", "SparseFile"],
73550
+ // skip
73167
73551
  ["V", "TapeVolumeHeader"],
73552
+ // like x
73168
73553
  ["X", "OldExtendedHeader"]
73169
73554
  ]);
73170
73555
  exports.code = new Map(Array.from(exports.name).map((kv) => [kv[1], kv[0]]));
@@ -73493,6 +73878,9 @@ var require_pax = __commonJS({
73493
73878
  for (let i = 0; i < 512; i++)
73494
73879
  buf[i] = 0;
73495
73880
  new Header({
73881
+ // XXX split the path
73882
+ // then the path should be PaxHeader + basename, but less than 99,
73883
+ // prepend with the dirname
73496
73884
  path: ("PaxHeader/" + path4.basename(this.path)).slice(0, 99),
73497
73885
  mode: this.mode || 420,
73498
73886
  uid: this.uid || null,
@@ -73793,7 +74181,10 @@ var require_write_entry = __commonJS({
73793
74181
  this.noMtime = true;
73794
74182
  this.header = new Header({
73795
74183
  path: this[PREFIX](this.path),
74184
+ // only apply the prefix to hard links.
73796
74185
  linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
74186
+ // only the permissions and setuid/setgid/sticky bitflags
74187
+ // not the higher-order bits that specify file type
73797
74188
  mode: this[MODE](this.stat.mode),
73798
74189
  uid: this.portable ? null : this.stat.uid,
73799
74190
  gid: this.portable ? null : this.stat.gid,
@@ -74029,6 +74420,8 @@ var require_write_entry = __commonJS({
74029
74420
  this.header = new Header({
74030
74421
  path: this[PREFIX](this.path),
74031
74422
  linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
74423
+ // only the permissions and setuid/setgid/sticky bitflags
74424
+ // not the higher-order bits that specify file type
74032
74425
  mode: this.mode,
74033
74426
  uid: this.portable ? null : this.uid,
74034
74427
  gid: this.portable ? null : this.gid,
@@ -74734,6 +75127,7 @@ var require_pack = __commonJS({
74734
75127
  if (this[CURRENT] && this[CURRENT].entry)
74735
75128
  this[CURRENT].entry.resume();
74736
75129
  }
75130
+ // like .pipe() but using super, because our write() is special
74737
75131
  [PIPE](job) {
74738
75132
  job.piped = true;
74739
75133
  if (job.readdir) {
@@ -74768,6 +75162,7 @@ var require_pack = __commonJS({
74768
75162
  super(opt);
74769
75163
  this[WRITEENTRYCLASS] = WriteEntrySync;
74770
75164
  }
75165
+ // pause/resume are no-ops in sync streams.
74771
75166
  pause() {
74772
75167
  }
74773
75168
  resume() {
@@ -74779,6 +75174,7 @@ var require_pack = __commonJS({
74779
75174
  [READDIR](job, stat) {
74780
75175
  this[ONREADDIR](job, fs4.readdirSync(job.absolute));
74781
75176
  }
75177
+ // gotta get it all in this tick
74782
75178
  [PIPE](job) {
74783
75179
  const source = job.entry;
74784
75180
  const zip = this.zip;
@@ -76039,6 +76435,7 @@ var require_find_made = __commonJS({
76039
76435
  return Promise.resolve();
76040
76436
  return opts.statAsync(parent).then(
76041
76437
  (st) => st.isDirectory() ? path4 : void 0,
76438
+ // will fail later
76042
76439
  (er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
76043
76440
  );
76044
76441
  };
@@ -76764,6 +77161,9 @@ var require_unpack = __commonJS({
76764
77161
  this.fmode = opt.fmode || 438 & ~this.umask;
76765
77162
  this.on("entry", (entry) => this[ONENTRY](entry));
76766
77163
  }
77164
+ // a bad or damaged archive is a warning for Parser, but an error
77165
+ // when extracting. Mark those errors as unrecoverable, because
77166
+ // the Unpack contract cannot be met.
76767
77167
  warn(code, msg, data = {}) {
76768
77168
  if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
76769
77169
  data.recoverable = false;
@@ -76928,7 +77328,7 @@ var require_unpack = __commonJS({
76928
77328
  const fd = stream.fd;
76929
77329
  if (entry.mtime && !this.noMtime) {
76930
77330
  actions++;
76931
- const atime = entry.atime || new Date();
77331
+ const atime = entry.atime || /* @__PURE__ */ new Date();
76932
77332
  const mtime = entry.mtime;
76933
77333
  fs4.futimes(fd, atime, mtime, (er) => er ? fs4.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
76934
77334
  }
@@ -76968,7 +77368,7 @@ var require_unpack = __commonJS({
76968
77368
  };
76969
77369
  if (entry.mtime && !this.noMtime) {
76970
77370
  actions++;
76971
- fs4.utimes(entry.absolute, entry.atime || new Date(), entry.mtime, done);
77371
+ fs4.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
76972
77372
  }
76973
77373
  if (this[DOCHOWN](entry)) {
76974
77374
  actions++;
@@ -77004,9 +77404,13 @@ var require_unpack = __commonJS({
77004
77404
  this[UNPEND]();
77005
77405
  entry.resume();
77006
77406
  }
77407
+ // Check if we can reuse an existing filesystem entry safely and
77408
+ // overwrite it, rather than unlinking and recreating
77409
+ // Windows doesn't report a useful nlink, so we just never reuse entries
77007
77410
  [ISREUSABLE](entry, st) {
77008
77411
  return entry.type === "File" && !this.unlink && st.isFile() && st.nlink <= 1 && !isWindows;
77009
77412
  }
77413
+ // check if a thing is there, and if so, try to clobber it
77010
77414
  [CHECKFS](entry) {
77011
77415
  this[PEND]();
77012
77416
  const paths = [entry.path];
@@ -77197,7 +77601,7 @@ var require_unpack = __commonJS({
77197
77601
  tx.on("end", (_) => {
77198
77602
  let er = null;
77199
77603
  if (entry.mtime && !this.noMtime) {
77200
- const atime = entry.atime || new Date();
77604
+ const atime = entry.atime || /* @__PURE__ */ new Date();
77201
77605
  const mtime = entry.mtime;
77202
77606
  try {
77203
77607
  fs4.futimesSync(fd, atime, mtime);
@@ -77235,7 +77639,7 @@ var require_unpack = __commonJS({
77235
77639
  }
77236
77640
  if (entry.mtime && !this.noMtime) {
77237
77641
  try {
77238
- fs4.utimesSync(entry.absolute, entry.atime || new Date(), entry.mtime);
77642
+ fs4.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
77239
77643
  } catch (er2) {
77240
77644
  }
77241
77645
  }
@@ -77495,8 +77899,8 @@ var require_downloadPackage = __commonJS({
77495
77899
  const preCacheTimeStr = yield _utils.fs.readFile(`${cacheDir}/.codesmith.completed`, {
77496
77900
  encoding: "utf-8"
77497
77901
  });
77498
- const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : new Date(0);
77499
- if (Number(new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
77902
+ const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : /* @__PURE__ */ new Date(0);
77903
+ if (Number(/* @__PURE__ */ new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
77500
77904
  return true;
77501
77905
  }
77502
77906
  return false;
@@ -77564,7 +77968,7 @@ var require_downloadPackage = __commonJS({
77564
77968
  if (install) {
77565
77969
  yield (0, _packageManager.runInstall)(targetDir, registryUrl);
77566
77970
  }
77567
- yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
77971
+ yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, (/* @__PURE__ */ new Date()).toISOString(), {
77568
77972
  encoding: "utf-8"
77569
77973
  });
77570
77974
  return targetDir;
@@ -77771,6 +78175,7 @@ var require_codesmith = __commonJS({
77771
78175
  return obj;
77772
78176
  }
77773
78177
  var CodeSmith2 = class {
78178
+ // current mode is debug mode
77774
78179
  constructor({
77775
78180
  debug: debug2,
77776
78181
  logger,
@@ -77932,7 +78337,7 @@ var import_path2 = __toESM(require("path"));
77932
78337
  var import_codesmith = __toESM(require_node());
77933
78338
 
77934
78339
  // package.json
77935
- var version = "2.5.0";
78340
+ var version = "2.6.0";
77936
78341
 
77937
78342
  // ../../cli/plugin-i18n/dist/esm-node/index.js
77938
78343
  var import_lodash2 = __toESM(require_lodash2());
@@ -78276,6 +78681,7 @@ function src_default() {
78276
78681
  }
78277
78682
  // Annotate the CommonJS export names for ESM import in node:
78278
78683
  0 && (module.exports = {});
78684
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78279
78685
  /*!
78280
78686
  * fill-range <https://github.com/jonschlinkert/fill-range>
78281
78687
  *
@@ -78300,23 +78706,14 @@ function src_default() {
78300
78706
  * Copyright (c) 2014-present, Jon Schlinkert.
78301
78707
  * Released under the MIT License.
78302
78708
  */
78709
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78710
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
78303
78711
  /*!
78304
78712
  * to-regex-range <https://github.com/micromatch/to-regex-range>
78305
78713
  *
78306
78714
  * Copyright (c) 2015-present, Jon Schlinkert.
78307
78715
  * Released under the MIT License.
78308
78716
  */
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
78717
  /**
78321
78718
  * filesize
78322
78719
  *
@@ -78324,3 +78721,61 @@ function src_default() {
78324
78721
  * @license BSD-3-Clause
78325
78722
  * @version 8.0.7
78326
78723
  */
78724
+ /*! Bundled license information:
78725
+
78726
+ lodash/lodash.js:
78727
+ (**
78728
+ * @license
78729
+ * Lodash <https://lodash.com/>
78730
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
78731
+ * Released under MIT license <https://lodash.com/license>
78732
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
78733
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
78734
+ *)
78735
+
78736
+ @modern-js/utils/compiled/ora/index.js:
78737
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78738
+
78739
+ @modern-js/utils/compiled/fast-glob/index.js:
78740
+ (*!
78741
+ * fill-range <https://github.com/jonschlinkert/fill-range>
78742
+ *
78743
+ * Copyright (c) 2014-present, Jon Schlinkert.
78744
+ * Licensed under the MIT License.
78745
+ *)
78746
+ (*!
78747
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
78748
+ *
78749
+ * Copyright (c) 2014-2016, Jon Schlinkert.
78750
+ * Licensed under the MIT License.
78751
+ *)
78752
+ (*!
78753
+ * is-glob <https://github.com/jonschlinkert/is-glob>
78754
+ *
78755
+ * Copyright (c) 2014-2017, Jon Schlinkert.
78756
+ * Released under the MIT License.
78757
+ *)
78758
+ (*!
78759
+ * is-number <https://github.com/jonschlinkert/is-number>
78760
+ *
78761
+ * Copyright (c) 2014-present, Jon Schlinkert.
78762
+ * Released under the MIT License.
78763
+ *)
78764
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78765
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
78766
+ (*!
78767
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
78768
+ *
78769
+ * Copyright (c) 2015-present, Jon Schlinkert.
78770
+ * Released under the MIT License.
78771
+ *)
78772
+
78773
+ @modern-js/utils/compiled/filesize/index.js:
78774
+ (**
78775
+ * filesize
78776
+ *
78777
+ * @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
78778
+ * @license BSD-3-Clause
78779
+ * @version 8.0.7
78780
+ *)
78781
+ */