@modern-js/entry-generator 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1871 -817
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1959,8 +1959,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
1959
1959
  if (result2 instanceof LazyWrapper) {
1960
1960
  result2 = result2.value();
1961
1961
  }
1962
- return arrayReduce(actions, function(result3, action) {
1963
- return action.func.apply(action.thisArg, arrayPush([result3], action.args));
1962
+ return arrayReduce(actions, function(result3, action2) {
1963
+ return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
1964
1964
  }, result2);
1965
1965
  }
1966
1966
  function baseXor(arrays, iteratee2, comparator) {
@@ -10792,7 +10792,7 @@ var require_ora = __commonJSMin((exports, module2) => {
10792
10792
  if (typeof Symbol === "function") {
10793
10793
  Readable.prototype[Symbol.asyncIterator] = function() {
10794
10794
  if (S === void 0) {
10795
- S = r2(243);
10795
+ S = r2(87);
10796
10796
  }
10797
10797
  return S(this);
10798
10798
  };
@@ -11417,7 +11417,7 @@ var require_ora = __commonJSMin((exports, module2) => {
11417
11417
  Writable.prototype._destroy = function(e3, t3) {
11418
11418
  t3(e3);
11419
11419
  };
11420
- }, 243: (e2, t2, r2) => {
11420
+ }, 87: (e2, t2, r2) => {
11421
11421
  "use strict";
11422
11422
  var i;
11423
11423
  function _defineProperty3(e3, t3, r3) {
@@ -12173,7 +12173,7 @@ var require_ora = __commonJSMin((exports, module2) => {
12173
12173
  }, 598: (e2, t2, r2) => {
12174
12174
  "use strict";
12175
12175
  const i = r2(591);
12176
- const n = r2(160);
12176
+ const n = r2(580);
12177
12177
  e2.exports = i(() => {
12178
12178
  n(() => {
12179
12179
  process.stderr.write("\x1B[?25h");
@@ -12232,17 +12232,19 @@ var require_ora = __commonJSMin((exports, module2) => {
12232
12232
  }
12233
12233
  return i.SlowBuffer(e3);
12234
12234
  };
12235
- }, 160: (e2, t2, r2) => {
12235
+ }, 580: (e2, t2, r2) => {
12236
12236
  var i = global.process;
12237
12237
  const processOk = function(e3) {
12238
12238
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
12239
12239
  };
12240
12240
  if (!processOk(i)) {
12241
12241
  e2.exports = function() {
12242
+ return function() {
12243
+ };
12242
12244
  };
12243
12245
  } else {
12244
12246
  var n = r2(491);
12245
- var s = r2(87);
12247
+ var s = r2(357);
12246
12248
  var a = /^win/i.test(i.platform);
12247
12249
  var o = r2(361);
12248
12250
  if (typeof o !== "function") {
@@ -12262,7 +12264,8 @@ var require_ora = __commonJSMin((exports, module2) => {
12262
12264
  }
12263
12265
  e2.exports = function(e3, t3) {
12264
12266
  if (!processOk(global.process)) {
12265
- return;
12267
+ return function() {
12268
+ };
12266
12269
  }
12267
12270
  n.equal(typeof e3, "function", "a callback must be provided for exit handler");
12268
12271
  if (d === false) {
@@ -12369,7 +12372,7 @@ var require_ora = __commonJSMin((exports, module2) => {
12369
12372
  }
12370
12373
  };
12371
12374
  }
12372
- }, 87: (e2) => {
12375
+ }, 357: (e2) => {
12373
12376
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
12374
12377
  if (process.platform !== "win32") {
12375
12378
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -12907,13 +12910,13 @@ var require_glob = __commonJSMin((exports, module2) => {
12907
12910
  } else {
12908
12911
  E = String(S);
12909
12912
  if (k) {
12910
- var O = g - E.length;
12911
- if (O > 0) {
12912
- var x = new Array(O + 1).join("0");
12913
+ var x = g - E.length;
12914
+ if (x > 0) {
12915
+ var O = new Array(x + 1).join("0");
12913
12916
  if (S < 0)
12914
- E = "-" + x + E.slice(1);
12917
+ E = "-" + O + E.slice(1);
12915
12918
  else
12916
- E = x + E;
12919
+ E = O + E;
12917
12920
  }
12918
12921
  }
12919
12922
  }
@@ -13220,7 +13223,7 @@ var require_glob = __commonJSMin((exports, module2) => {
13220
13223
  }
13221
13224
  var i = r2(147);
13222
13225
  var a = r2(17);
13223
- var n = r2(435);
13226
+ var n = r2(235);
13224
13227
  var s = r2(249);
13225
13228
  var o = n.Minimatch;
13226
13229
  function alphasort(t3, e3) {
@@ -13395,7 +13398,7 @@ var require_glob = __commonJSMin((exports, module2) => {
13395
13398
  }, 978: (t2, e2, r2) => {
13396
13399
  t2.exports = glob;
13397
13400
  var i = r2(737);
13398
- var a = r2(435);
13401
+ var a = r2(235);
13399
13402
  var n = a.Minimatch;
13400
13403
  var s = r2(315);
13401
13404
  var o = r2(361).EventEmitter;
@@ -13944,7 +13947,7 @@ var require_glob = __commonJSMin((exports, module2) => {
13944
13947
  t2.exports = globSync;
13945
13948
  globSync.GlobSync = GlobSync;
13946
13949
  var i = r2(737);
13947
- var a = r2(435);
13950
+ var a = r2(235);
13948
13951
  var n = a.Minimatch;
13949
13952
  var s = r2(978).Glob;
13950
13953
  var o = r2(837);
@@ -14356,14 +14359,16 @@ var require_glob = __commonJSMin((exports, module2) => {
14356
14359
  }
14357
14360
  };
14358
14361
  }
14359
- }, 435: (t2, e2, r2) => {
14362
+ }, 235: (t2, e2, r2) => {
14360
14363
  t2.exports = minimatch;
14361
14364
  minimatch.Minimatch = Minimatch;
14362
- var i = { sep: "/" };
14363
- try {
14364
- i = r2(17);
14365
- } catch (t3) {
14366
- }
14365
+ var i = function() {
14366
+ try {
14367
+ return r2(17);
14368
+ } catch (t3) {
14369
+ }
14370
+ }() || { sep: "/" };
14371
+ minimatch.sep = i.sep;
14367
14372
  var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
14368
14373
  var n = r2(847);
14369
14374
  var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
@@ -14387,58 +14392,68 @@ var require_glob = __commonJSMin((exports, module2) => {
14387
14392
  };
14388
14393
  }
14389
14394
  function ext(t3, e3) {
14390
- t3 = t3 || {};
14391
14395
  e3 = e3 || {};
14392
14396
  var r3 = {};
14393
- Object.keys(e3).forEach(function(t4) {
14394
- r3[t4] = e3[t4];
14395
- });
14396
14397
  Object.keys(t3).forEach(function(e4) {
14397
14398
  r3[e4] = t3[e4];
14398
14399
  });
14400
+ Object.keys(e3).forEach(function(t4) {
14401
+ r3[t4] = e3[t4];
14402
+ });
14399
14403
  return r3;
14400
14404
  }
14401
14405
  minimatch.defaults = function(t3) {
14402
- if (!t3 || !Object.keys(t3).length)
14406
+ if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
14403
14407
  return minimatch;
14408
+ }
14404
14409
  var e3 = minimatch;
14405
14410
  var r3 = function minimatch2(r4, i2, a2) {
14406
- return e3.minimatch(r4, i2, ext(t3, a2));
14411
+ return e3(r4, i2, ext(t3, a2));
14407
14412
  };
14408
14413
  r3.Minimatch = function Minimatch2(r4, i2) {
14409
14414
  return new e3.Minimatch(r4, ext(t3, i2));
14410
14415
  };
14416
+ r3.Minimatch.defaults = function defaults(r4) {
14417
+ return e3.defaults(ext(t3, r4)).Minimatch;
14418
+ };
14419
+ r3.filter = function filter4(r4, i2) {
14420
+ return e3.filter(r4, ext(t3, i2));
14421
+ };
14422
+ r3.defaults = function defaults(r4) {
14423
+ return e3.defaults(ext(t3, r4));
14424
+ };
14425
+ r3.makeRe = function makeRe2(r4, i2) {
14426
+ return e3.makeRe(r4, ext(t3, i2));
14427
+ };
14428
+ r3.braceExpand = function braceExpand2(r4, i2) {
14429
+ return e3.braceExpand(r4, ext(t3, i2));
14430
+ };
14431
+ r3.match = function(r4, i2, a2) {
14432
+ return e3.match(r4, i2, ext(t3, a2));
14433
+ };
14411
14434
  return r3;
14412
14435
  };
14413
14436
  Minimatch.defaults = function(t3) {
14414
- if (!t3 || !Object.keys(t3).length)
14415
- return Minimatch;
14416
14437
  return minimatch.defaults(t3).Minimatch;
14417
14438
  };
14418
14439
  function minimatch(t3, e3, r3) {
14419
- if (typeof e3 !== "string") {
14420
- throw new TypeError("glob pattern string required");
14421
- }
14440
+ assertValidPattern(e3);
14422
14441
  if (!r3)
14423
14442
  r3 = {};
14424
14443
  if (!r3.nocomment && e3.charAt(0) === "#") {
14425
14444
  return false;
14426
14445
  }
14427
- if (e3.trim() === "")
14428
- return t3 === "";
14429
14446
  return new Minimatch(e3, r3).match(t3);
14430
14447
  }
14431
14448
  function Minimatch(t3, e3) {
14432
14449
  if (!(this instanceof Minimatch)) {
14433
14450
  return new Minimatch(t3, e3);
14434
14451
  }
14435
- if (typeof t3 !== "string") {
14436
- throw new TypeError("glob pattern string required");
14437
- }
14452
+ assertValidPattern(t3);
14438
14453
  if (!e3)
14439
14454
  e3 = {};
14440
14455
  t3 = t3.trim();
14441
- if (i.sep !== "/") {
14456
+ if (!e3.allowWindowsEscape && i.sep !== "/") {
14442
14457
  t3 = t3.split(i.sep).join("/");
14443
14458
  }
14444
14459
  this.options = e3;
@@ -14448,14 +14463,13 @@ var require_glob = __commonJSMin((exports, module2) => {
14448
14463
  this.negate = false;
14449
14464
  this.comment = false;
14450
14465
  this.empty = false;
14466
+ this.partial = !!e3.partial;
14451
14467
  this.make();
14452
14468
  }
14453
14469
  Minimatch.prototype.debug = function() {
14454
14470
  };
14455
14471
  Minimatch.prototype.make = make;
14456
14472
  function make() {
14457
- if (this._made)
14458
- return;
14459
14473
  var t3 = this.pattern;
14460
14474
  var e3 = this.options;
14461
14475
  if (!e3.nocomment && t3.charAt(0) === "#") {
@@ -14469,7 +14483,9 @@ var require_glob = __commonJSMin((exports, module2) => {
14469
14483
  this.parseNegate();
14470
14484
  var r3 = this.globSet = this.braceExpand();
14471
14485
  if (e3.debug)
14472
- this.debug = console.error;
14486
+ this.debug = function debug() {
14487
+ console.error.apply(console, arguments);
14488
+ };
14473
14489
  this.debug(this.pattern, r3);
14474
14490
  r3 = this.globParts = r3.map(function(t4) {
14475
14491
  return t4.split(p);
@@ -14514,23 +14530,32 @@ var require_glob = __commonJSMin((exports, module2) => {
14514
14530
  }
14515
14531
  }
14516
14532
  t3 = typeof t3 === "undefined" ? this.pattern : t3;
14517
- if (typeof t3 === "undefined") {
14518
- throw new TypeError("undefined pattern");
14519
- }
14520
- if (e3.nobrace || !t3.match(/\{.*\}/)) {
14533
+ assertValidPattern(t3);
14534
+ if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
14521
14535
  return [t3];
14522
14536
  }
14523
14537
  return n(t3);
14524
14538
  }
14525
- Minimatch.prototype.parse = parse;
14526
- var v = {};
14527
- function parse(t3, e3) {
14528
- if (t3.length > 1024 * 64) {
14539
+ var v = 1024 * 64;
14540
+ var assertValidPattern = function(t3) {
14541
+ if (typeof t3 !== "string") {
14542
+ throw new TypeError("invalid pattern");
14543
+ }
14544
+ if (t3.length > v) {
14529
14545
  throw new TypeError("pattern is too long");
14530
14546
  }
14547
+ };
14548
+ Minimatch.prototype.parse = parse;
14549
+ var d = {};
14550
+ function parse(t3, e3) {
14551
+ assertValidPattern(t3);
14531
14552
  var r3 = this.options;
14532
- if (!r3.noglobstar && t3 === "**")
14533
- return a;
14553
+ if (t3 === "**") {
14554
+ if (!r3.noglobstar)
14555
+ return a;
14556
+ else
14557
+ t3 = "*";
14558
+ }
14534
14559
  if (t3 === "")
14535
14560
  return "";
14536
14561
  var i2 = "";
@@ -14538,15 +14563,15 @@ var require_glob = __commonJSMin((exports, module2) => {
14538
14563
  var h2 = false;
14539
14564
  var l2 = [];
14540
14565
  var p2 = [];
14541
- var d;
14566
+ var v2;
14542
14567
  var m = false;
14543
14568
  var b = -1;
14544
14569
  var g = -1;
14545
14570
  var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
14546
14571
  var _ = this;
14547
14572
  function clearStateChar() {
14548
- if (d) {
14549
- switch (d) {
14573
+ if (v2) {
14574
+ switch (v2) {
14550
14575
  case "*":
14551
14576
  i2 += c;
14552
14577
  n2 = true;
@@ -14556,11 +14581,11 @@ var require_glob = __commonJSMin((exports, module2) => {
14556
14581
  n2 = true;
14557
14582
  break;
14558
14583
  default:
14559
- i2 += "\\" + d;
14584
+ i2 += "\\" + v2;
14560
14585
  break;
14561
14586
  }
14562
- _.debug("clearStateChar %j %j", d, i2);
14563
- d = false;
14587
+ _.debug("clearStateChar %j %j", v2, i2);
14588
+ v2 = false;
14564
14589
  }
14565
14590
  }
14566
14591
  for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
@@ -14571,8 +14596,9 @@ var require_glob = __commonJSMin((exports, module2) => {
14571
14596
  continue;
14572
14597
  }
14573
14598
  switch (S) {
14574
- case "/":
14599
+ case "/": {
14575
14600
  return false;
14601
+ }
14576
14602
  case "\\":
14577
14603
  clearStateChar();
14578
14604
  h2 = true;
@@ -14590,9 +14616,9 @@ var require_glob = __commonJSMin((exports, module2) => {
14590
14616
  i2 += S;
14591
14617
  continue;
14592
14618
  }
14593
- _.debug("call clearStateChar %j", d);
14619
+ _.debug("call clearStateChar %j", v2);
14594
14620
  clearStateChar();
14595
- d = S;
14621
+ v2 = S;
14596
14622
  if (r3.noext)
14597
14623
  clearStateChar();
14598
14624
  continue;
@@ -14601,14 +14627,14 @@ var require_glob = __commonJSMin((exports, module2) => {
14601
14627
  i2 += "(";
14602
14628
  continue;
14603
14629
  }
14604
- if (!d) {
14630
+ if (!v2) {
14605
14631
  i2 += "\\(";
14606
14632
  continue;
14607
14633
  }
14608
- l2.push({ type: d, start: w - 1, reStart: i2.length, open: s[d].open, close: s[d].close });
14609
- i2 += d === "!" ? "(?:(?!(?:" : "(?:";
14610
- this.debug("plType %j %j", d, i2);
14611
- d = false;
14634
+ l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
14635
+ i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
14636
+ this.debug("plType %j %j", v2, i2);
14637
+ v2 = false;
14612
14638
  continue;
14613
14639
  case ")":
14614
14640
  if (m || !l2.length) {
@@ -14650,17 +14676,15 @@ var require_glob = __commonJSMin((exports, module2) => {
14650
14676
  h2 = false;
14651
14677
  continue;
14652
14678
  }
14653
- if (m) {
14654
- var O = t3.substring(g + 1, w);
14655
- try {
14656
- RegExp("[" + O + "]");
14657
- } catch (t4) {
14658
- var x = this.parse(O, v);
14659
- i2 = i2.substr(0, b) + "\\[" + x[0] + "\\]";
14660
- n2 = n2 || x[1];
14661
- m = false;
14662
- continue;
14663
- }
14679
+ var x = t3.substring(g + 1, w);
14680
+ try {
14681
+ RegExp("[" + x + "]");
14682
+ } catch (t4) {
14683
+ var O = this.parse(x, d);
14684
+ i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
14685
+ n2 = n2 || O[1];
14686
+ m = false;
14687
+ continue;
14664
14688
  }
14665
14689
  n2 = true;
14666
14690
  m = false;
@@ -14677,10 +14701,10 @@ var require_glob = __commonJSMin((exports, module2) => {
14677
14701
  }
14678
14702
  }
14679
14703
  if (m) {
14680
- O = t3.substr(g + 1);
14681
- x = this.parse(O, v);
14682
- i2 = i2.substr(0, b) + "\\[" + x[0];
14683
- n2 = n2 || x[1];
14704
+ x = t3.substr(g + 1);
14705
+ O = this.parse(x, d);
14706
+ i2 = i2.substr(0, b) + "\\[" + O[0];
14707
+ n2 = n2 || O[1];
14684
14708
  }
14685
14709
  for (E = l2.pop(); E; E = l2.pop()) {
14686
14710
  var A = i2.slice(E.reStart + E.open.length);
@@ -14702,29 +14726,29 @@ var require_glob = __commonJSMin((exports, module2) => {
14702
14726
  }
14703
14727
  var j = false;
14704
14728
  switch (i2.charAt(0)) {
14705
- case ".":
14706
14729
  case "[":
14730
+ case ".":
14707
14731
  case "(":
14708
14732
  j = true;
14709
14733
  }
14710
- for (var I = p2.length - 1; I > -1; I--) {
14711
- var M = p2[I];
14712
- var C = i2.slice(0, M.reStart);
14713
- var L = i2.slice(M.reStart, M.reEnd - 8);
14714
- var R = i2.slice(M.reEnd - 8, M.reEnd);
14715
- var T = i2.slice(M.reEnd);
14716
- R += T;
14717
- var N = C.split("(").length - 1;
14718
- var P = T;
14719
- for (w = 0; w < N; w++) {
14734
+ for (var M = p2.length - 1; M > -1; M--) {
14735
+ var I = p2[M];
14736
+ var R = i2.slice(0, I.reStart);
14737
+ var C = i2.slice(I.reStart, I.reEnd - 8);
14738
+ var L = i2.slice(I.reEnd - 8, I.reEnd);
14739
+ var N = i2.slice(I.reEnd);
14740
+ L += N;
14741
+ var T = R.split("(").length - 1;
14742
+ var P = N;
14743
+ for (w = 0; w < T; w++) {
14720
14744
  P = P.replace(/\)[+*?]?/, "");
14721
14745
  }
14722
- T = P;
14746
+ N = P;
14723
14747
  var D = "";
14724
- if (T === "" && e3 !== v) {
14748
+ if (N === "" && e3 !== d) {
14725
14749
  D = "$";
14726
14750
  }
14727
- var $ = C + L + T + D + R;
14751
+ var $ = R + C + N + D + L;
14728
14752
  i2 = $;
14729
14753
  }
14730
14754
  if (i2 !== "" && n2) {
@@ -14733,7 +14757,7 @@ var require_glob = __commonJSMin((exports, module2) => {
14733
14757
  if (j) {
14734
14758
  i2 = y + i2;
14735
14759
  }
14736
- if (e3 === v) {
14760
+ if (e3 === d) {
14737
14761
  return [i2, n2];
14738
14762
  }
14739
14763
  if (!n2) {
@@ -14741,13 +14765,13 @@ var require_glob = __commonJSMin((exports, module2) => {
14741
14765
  }
14742
14766
  var F = r3.nocase ? "i" : "";
14743
14767
  try {
14744
- var q = new RegExp("^" + i2 + "$", F);
14768
+ var B = new RegExp("^" + i2 + "$", F);
14745
14769
  } catch (t4) {
14746
14770
  return new RegExp("$.");
14747
14771
  }
14748
- q._glob = t3;
14749
- q._src = i2;
14750
- return q;
14772
+ B._glob = t3;
14773
+ B._src = i2;
14774
+ return B;
14751
14775
  }
14752
14776
  minimatch.makeRe = function(t3, e3) {
14753
14777
  return new Minimatch(t3, e3 || {}).makeRe();
@@ -14790,8 +14814,9 @@ var require_glob = __commonJSMin((exports, module2) => {
14790
14814
  }
14791
14815
  return t3;
14792
14816
  };
14793
- Minimatch.prototype.match = match;
14794
- function match(t3, e3) {
14817
+ Minimatch.prototype.match = function match(t3, e3) {
14818
+ if (typeof e3 === "undefined")
14819
+ e3 = this.partial;
14795
14820
  this.debug("match", t3, this.pattern);
14796
14821
  if (this.comment)
14797
14822
  return false;
@@ -14830,7 +14855,7 @@ var require_glob = __commonJSMin((exports, module2) => {
14830
14855
  if (r3.flipNegate)
14831
14856
  return false;
14832
14857
  return this.negate;
14833
- }
14858
+ };
14834
14859
  Minimatch.prototype.matchOne = function(t3, e3, r3) {
14835
14860
  var i2 = this.options;
14836
14861
  this.debug("matchOne", { this: this, file: t3, pattern: e3 });
@@ -14876,19 +14901,15 @@ var require_glob = __commonJSMin((exports, module2) => {
14876
14901
  }
14877
14902
  return false;
14878
14903
  }
14879
- var d;
14904
+ var d2;
14880
14905
  if (typeof h2 === "string") {
14881
- if (i2.nocase) {
14882
- d = l2.toLowerCase() === h2.toLowerCase();
14883
- } else {
14884
- d = l2 === h2;
14885
- }
14886
- this.debug("string match", h2, l2, d);
14906
+ d2 = l2 === h2;
14907
+ this.debug("string match", h2, l2, d2);
14887
14908
  } else {
14888
- d = l2.match(h2);
14889
- this.debug("pattern match", h2, l2, d);
14909
+ d2 = l2.match(h2);
14910
+ this.debug("pattern match", h2, l2, d2);
14890
14911
  }
14891
- if (!d)
14912
+ if (!d2)
14892
14913
  return false;
14893
14914
  }
14894
14915
  if (n2 === o2 && s2 === c2) {
@@ -14896,8 +14917,7 @@ var require_glob = __commonJSMin((exports, module2) => {
14896
14917
  } else if (n2 === o2) {
14897
14918
  return r3;
14898
14919
  } else if (s2 === c2) {
14899
- var m = n2 === o2 - 1 && t3[n2] === "";
14900
- return m;
14920
+ return n2 === o2 - 1 && t3[n2] === "";
14901
14921
  }
14902
14922
  throw new Error("wtf?");
14903
14923
  };
@@ -18522,7 +18542,7 @@ ${o.message}` : x;
18522
18542
  }, 878: (e2, t2, n2) => {
18523
18543
  "use strict";
18524
18544
  const r = n2(37);
18525
- const o = n2(160);
18545
+ const o = n2(580);
18526
18546
  const s = 1e3 * 5;
18527
18547
  const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
18528
18548
  const r2 = e3(t3);
@@ -19145,17 +19165,19 @@ ${o.message}` : x;
19145
19165
  }, 609: (e2) => {
19146
19166
  "use strict";
19147
19167
  e2.exports = /^#!(.*)/;
19148
- }, 160: (e2, t2, n2) => {
19168
+ }, 580: (e2, t2, n2) => {
19149
19169
  var r = global.process;
19150
19170
  const processOk = function(e3) {
19151
19171
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
19152
19172
  };
19153
19173
  if (!processOk(r)) {
19154
19174
  e2.exports = function() {
19175
+ return function() {
19176
+ };
19155
19177
  };
19156
19178
  } else {
19157
19179
  var o = n2(491);
19158
- var s = n2(87);
19180
+ var s = n2(357);
19159
19181
  var i = /^win/i.test(r.platform);
19160
19182
  var a = n2(361);
19161
19183
  if (typeof a !== "function") {
@@ -19175,7 +19197,8 @@ ${o.message}` : x;
19175
19197
  }
19176
19198
  e2.exports = function(e3, t3) {
19177
19199
  if (!processOk(global.process)) {
19178
- return;
19200
+ return function() {
19201
+ };
19179
19202
  }
19180
19203
  o.equal(typeof e3, "function", "a callback must be provided for exit handler");
19181
19204
  if (f === false) {
@@ -19282,7 +19305,7 @@ ${o.message}` : x;
19282
19305
  }
19283
19306
  };
19284
19307
  }
19285
- }, 87: (e2) => {
19308
+ }, 357: (e2) => {
19286
19309
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
19287
19310
  if (process.platform !== "win32") {
19288
19311
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -24939,7 +24962,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
24939
24962
  e2.matchAny = e2.convertPatternsToRe = e2.makeRe = e2.getPatternParts = e2.expandBraceExpansion = e2.expandPatternsWithBraceExpansion = e2.isAffectDepthOfReadingPattern = e2.endsWithSlashGlobStar = e2.hasGlobStar = e2.getBaseDirectory = e2.isPatternRelatedToParentDirectory = e2.getPatternsOutsideCurrentDirectory = e2.getPatternsInsideCurrentDirectory = e2.getPositivePatterns = e2.getNegativePatterns = e2.isPositivePattern = e2.isNegativePattern = e2.convertToNegativePattern = e2.convertToPositivePattern = e2.isDynamicPattern = e2.isStaticPattern = void 0;
24940
24963
  const n = r2(1017);
24941
24964
  const s = r2(5976);
24942
- const i = r2(1224);
24965
+ const i = r2(8627);
24943
24966
  const o = "**";
24944
24967
  const a = "\\";
24945
24968
  const u = /[*?]|^!/;
@@ -25794,7 +25817,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
25794
25817
  }
25795
25818
  return t3;
25796
25819
  }
25797
- }, 1224: (t2, e2, r2) => {
25820
+ }, 8627: (t2, e2, r2) => {
25798
25821
  "use strict";
25799
25822
  const n = r2(3837);
25800
25823
  const s = r2(1570);
@@ -25857,9 +25880,9 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
25857
25880
  r3.onResult(t4);
25858
25881
  s2.push(t4.output);
25859
25882
  };
25860
- let i2 = micromatch(t3, e3, { ...r3, onResult });
25883
+ let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
25861
25884
  for (let t4 of s2) {
25862
- if (!i2.includes(t4)) {
25885
+ if (!i2.has(t4)) {
25863
25886
  n2.add(t4);
25864
25887
  }
25865
25888
  }
@@ -30732,11 +30755,11 @@ var require_browserslist = __commonJSMin((exports, module2) => {
30732
30755
  BrowserslistError.prototype = Error.prototype;
30733
30756
  e2.exports = BrowserslistError;
30734
30757
  }, 751: (e2, s2, r2) => {
30735
- var n = r2(936);
30758
+ var n = r2(330);
30736
30759
  var t = r2(768).agents;
30737
- var a = r2(178);
30760
+ var a = r2(97);
30738
30761
  var i = r2(17);
30739
- var o = r2(158);
30762
+ var o = r2(333);
30740
30763
  var l = r2(923);
30741
30764
  var f = r2(347);
30742
30765
  var u = 365.259641 * 24 * 60 * 60 * 1e3;
@@ -31885,8 +31908,8 @@ var require_browserslist = __commonJSMin((exports, module2) => {
31885
31908
  }, currentNode: function currentNode() {
31886
31909
  return "node " + process.versions.node;
31887
31910
  } };
31888
- }, 158: (e2) => {
31889
- e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", "16.0": "96", 16.1: "96", "17.0": "98", 17.1: "98", "18.0": "100" };
31911
+ }, 333: (e2) => {
31912
+ e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", 15.5: "94", "16.0": "96", 16.1: "96", 16.2: "96", "17.0": "98", 17.1: "98", 17.2: "98", 17.3: "98", 17.4: "98", "18.0": "100", 18.1: "100", 18.2: "100", 18.3: "100", "19.0": "102", "20.0": "104" };
31890
31913
  }, 174: (e2) => {
31891
31914
  function webpackEmptyContext(e3) {
31892
31915
  var s2 = new Error("Cannot find module '" + e3 + "'");
@@ -31912,12 +31935,12 @@ var require_browserslist = __commonJSMin((exports, module2) => {
31912
31935
  }, 17: (e2) => {
31913
31936
  "use strict";
31914
31937
  e2.exports = __require("path");
31915
- }, 936: (e2) => {
31938
+ }, 330: (e2) => {
31916
31939
  "use strict";
31917
- e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false}]');
31918
- }, 178: (e2) => {
31940
+ e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false}]');
31941
+ }, 97: (e2) => {
31919
31942
  "use strict";
31920
- e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""}}');
31943
+ e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}');
31921
31944
  } };
31922
31945
  var s = {};
31923
31946
  function __nccwpck_require__(r2) {
@@ -34628,17 +34651,17 @@ var require_logger = __commonJSMin((exports) => {
34628
34651
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
34629
34652
  return;
34630
34653
  }
34631
- let label10 = "";
34654
+ let label25 = "";
34632
34655
  let text = "";
34633
34656
  const logType = this.types[type];
34634
34657
  if (this.config.displayLabel && logType.label) {
34635
- label10 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
34658
+ label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
34636
34659
  if (this.config.underlineLabel) {
34637
- label10 = underline(label10).padEnd(this.longestUnderlinedLabel.length + 1);
34660
+ label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
34638
34661
  } else {
34639
- label10 = label10.padEnd(this.longestLabel.length + 1);
34662
+ label25 = label25.padEnd(this.longestLabel.length + 1);
34640
34663
  }
34641
- label10 = logType.color ? chalk_1.default[logType.color](label10) : label10;
34664
+ label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
34642
34665
  }
34643
34666
  if (message instanceof Error) {
34644
34667
  if (message.stack) {
@@ -34654,15 +34677,15 @@ ${grey(rest.join("\n"))}`;
34654
34677
  if (logType.level === "warn" || logType.level === "error") {
34655
34678
  this.retainLog(type, text);
34656
34679
  }
34657
- const log = label10.length > 0 ? `${label10} ${text}` : text;
34680
+ const log = label25.length > 0 ? `${label25} ${text}` : text;
34658
34681
  console.log(log, ...args);
34659
34682
  }
34660
34683
  getLongestLabel() {
34661
34684
  let longestLabel = "";
34662
34685
  Object.keys(this.types).forEach((type) => {
34663
- const { label: label10 = "" } = this.types[type];
34664
- if (label10.length > longestLabel.length) {
34665
- longestLabel = label10;
34686
+ const { label: label25 = "" } = this.types[type];
34687
+ if (label25.length > longestLabel.length) {
34688
+ longestLabel = label25;
34666
34689
  }
34667
34690
  });
34668
34691
  return longestLabel;
@@ -35567,18 +35590,14 @@ var require_runtimeExports = __commonJSMin((exports) => {
35567
35590
  return res;
35568
35591
  };
35569
35592
  };
35570
- exports.createRuntimeExportsUtils = memo((pwd = "", namespace, ts = false) => {
35571
- const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.js` : "index.js"}`);
35572
- const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
35593
+ exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
35594
+ const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
35573
35595
  const addExport = (statement) => {
35574
35596
  statement = (0, path_2.normalizeOutputPath)(statement);
35575
35597
  try {
35576
35598
  compiled_1.fs.ensureFileSync(entryExportFile);
35577
- compiled_1.fs.ensureFileSync(entryExportTsFile);
35578
35599
  if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
35579
35600
  compiled_1.fs.appendFileSync(entryExportFile, `${statement}
35580
- `);
35581
- ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
35582
35601
  `);
35583
35602
  }
35584
35603
  } catch {
@@ -35654,7 +35673,7 @@ var require_prettyInstructions = __commonJSMin((exports) => {
35654
35673
  return mod && mod.__esModule ? mod : { "default": mod };
35655
35674
  };
35656
35675
  Object.defineProperty(exports, "__esModule", { value: true });
35657
- exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
35676
+ exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
35658
35677
  var os_1 = __importDefault(__require("os"));
35659
35678
  var compiled_1 = require_compiled();
35660
35679
  var is_1 = require_is();
@@ -35688,9 +35707,10 @@ var require_prettyInstructions = __commonJSMin((exports) => {
35688
35707
  return memo;
35689
35708
  }, []);
35690
35709
  };
35710
+ exports.getAddressUrls = getAddressUrls;
35691
35711
  var prettyInstructions = (appContext, config) => {
35692
35712
  const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
35693
- const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
35713
+ const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
35694
35714
  const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
35695
35715
  let message = "App running at:\n\n";
35696
35716
  if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
@@ -36092,8 +36112,9 @@ var require_chainId = __commonJSMin((exports) => {
36092
36112
  LESS: "less",
36093
36113
  SASS: "sass",
36094
36114
  SVG: "svg",
36095
- SVG_INLINE: "svg-inline",
36096
- SVG_URL: "svg-url"
36115
+ PUG: "pug",
36116
+ TOML: "toml",
36117
+ YAML: "yaml"
36097
36118
  },
36098
36119
  ONE_OF: {
36099
36120
  JS: "js",
@@ -36111,6 +36132,7 @@ var require_chainId = __commonJSMin((exports) => {
36111
36132
  SASS_MODULES: "sass-modules",
36112
36133
  SVG: "svg",
36113
36134
  SVG_URL: "svg-url",
36135
+ SVG_ASSET: "svg-asset",
36114
36136
  SVG_INLINE: "svg-inline",
36115
36137
  ASSETS: "assets",
36116
36138
  ASSETS_URL: "assets-url",
@@ -36122,12 +36144,14 @@ var require_chainId = __commonJSMin((exports) => {
36122
36144
  SASS: "sass",
36123
36145
  LESS: "less",
36124
36146
  URL: "url",
36147
+ PUG: "pug",
36125
36148
  FILE: "file",
36126
36149
  SVGR: "svgr",
36127
36150
  YAML: "yaml",
36128
36151
  TOML: "toml",
36129
36152
  HTML: "html",
36130
36153
  BABEL: "babel",
36154
+ ESBUILD: "esbuild",
36131
36155
  STYLE: "style-loader",
36132
36156
  POSTCSS: "postcss",
36133
36157
  MARKDOWN: "markdown",
@@ -36152,7 +36176,8 @@ var require_chainId = __commonJSMin((exports) => {
36152
36176
  HTML_CROSS_ORIGIN: "html-cross-origin",
36153
36177
  MINI_CSS_EXTRACT: "mini-css-extract",
36154
36178
  REACT_FAST_REFRESH: "react-fast-refresh",
36155
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
36179
+ NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
36180
+ MODULE_DEPENDENCY_ERROR: "module-dependency-error"
36156
36181
  },
36157
36182
  MINIMIZER: {
36158
36183
  JS: "js",
@@ -36252,24 +36277,20 @@ var require_dist = __commonJSMin((exports) => {
36252
36277
  __exportStar(require_chainId(), exports);
36253
36278
  __exportStar(require_reactVersion(), exports);
36254
36279
  });
36255
- var require_strip_ansi2 = __commonJSMin((exports) => {
36256
- "use strict";
36257
- Object.defineProperty(exports, "__esModule", {
36258
- value: true
36259
- });
36260
- exports.stripAnsi = stripAnsi;
36261
- function ansiRegex({
36262
- onlyFirst = false
36263
- } = {}) {
36264
- const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
36265
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
36266
- }
36267
- function stripAnsi(string) {
36268
- if (typeof string !== "string") {
36269
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
36270
- }
36271
- return string.replace(ansiRegex(), "");
36280
+ function _defineProperty(obj, key, value) {
36281
+ if (key in obj) {
36282
+ Object.defineProperty(obj, key, {
36283
+ value,
36284
+ enumerable: true,
36285
+ configurable: true,
36286
+ writable: true
36287
+ });
36288
+ } else {
36289
+ obj[key] = value;
36272
36290
  }
36291
+ return obj;
36292
+ }
36293
+ var init_defineProperty = __esmMin(() => {
36273
36294
  });
36274
36295
  function _classCallCheck(instance, Constructor) {
36275
36296
  if (!(instance instanceof Constructor)) {
@@ -36300,21 +36321,6 @@ function _createClass(Constructor, protoProps, staticProps) {
36300
36321
  }
36301
36322
  var init_createClass = __esmMin(() => {
36302
36323
  });
36303
- function _defineProperty(obj, key, value) {
36304
- if (key in obj) {
36305
- Object.defineProperty(obj, key, {
36306
- value,
36307
- enumerable: true,
36308
- configurable: true,
36309
- writable: true
36310
- });
36311
- } else {
36312
- obj[key] = value;
36313
- }
36314
- return obj;
36315
- }
36316
- var init_defineProperty = __esmMin(() => {
36317
- });
36318
36324
  function getObjKeyMap(obj) {
36319
36325
  var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
36320
36326
  var result = {};
@@ -36417,6 +36423,1374 @@ var init_treeshaking = __esmMin(() => {
36417
36423
  return I18n3;
36418
36424
  }();
36419
36425
  });
36426
+ var ZH_LOCALE;
36427
+ var init_zh = __esmMin(() => {
36428
+ ZH_LOCALE = {
36429
+ solution: {
36430
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
36431
+ mwa: "\u5E94\u7528",
36432
+ module: "\u6A21\u5757",
36433
+ monorepo: "Monorepo",
36434
+ custom: "\u81EA\u5B9A\u4E49",
36435
+ "default": "\u9ED8\u8BA4"
36436
+ },
36437
+ scenes: {
36438
+ self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
36439
+ },
36440
+ sub_solution: {
36441
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
36442
+ mwa: "\u5E94\u7528",
36443
+ mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
36444
+ module: "\u6A21\u5757",
36445
+ inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
36446
+ },
36447
+ action: {
36448
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
36449
+ "function": {
36450
+ self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
36451
+ tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
36452
+ less: "\u542F\u7528 Less \u652F\u6301",
36453
+ sass: "\u542F\u7528 Sass \u652F\u6301",
36454
+ bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
36455
+ micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
36456
+ electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
36457
+ i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
36458
+ test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
36459
+ e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
36460
+ doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
36461
+ storybook: "\u542F\u7528\u300CStorybook\u300D",
36462
+ runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
36463
+ mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
36464
+ ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
36465
+ polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
36466
+ proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
36467
+ },
36468
+ element: {
36469
+ self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
36470
+ entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
36471
+ server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
36472
+ },
36473
+ refactor: {
36474
+ self: "\u81EA\u52A8\u91CD\u6784",
36475
+ bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
36476
+ }
36477
+ },
36478
+ "boolean": {
36479
+ yes: "\u662F",
36480
+ no: "\u5426"
36481
+ },
36482
+ language: {
36483
+ self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
36484
+ },
36485
+ packageManager: {
36486
+ self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
36487
+ },
36488
+ runWay: {
36489
+ self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
36490
+ no: "\u4E0D\u9700\u8981",
36491
+ electron: "Electron"
36492
+ },
36493
+ needModifyConfig: {
36494
+ self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
36495
+ enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
36496
+ enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
36497
+ },
36498
+ entry: {
36499
+ name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
36500
+ no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
36501
+ no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
36502
+ needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
36503
+ disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
36504
+ clientRoute: {
36505
+ self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
36506
+ selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
36507
+ conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
36508
+ no: "\u4E0D\u542F\u7528"
36509
+ }
36510
+ },
36511
+ packageName: {
36512
+ self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
36513
+ sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
36514
+ no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
36515
+ },
36516
+ packagePath: {
36517
+ self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
36518
+ no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
36519
+ format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
36520
+ },
36521
+ framework: {
36522
+ self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
36523
+ egg: "Egg",
36524
+ express: "Express",
36525
+ koa: "Koa",
36526
+ nest: "Nest"
36527
+ },
36528
+ bff: {
36529
+ bffType: {
36530
+ self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
36531
+ func: "\u51FD\u6570\u6A21\u5F0F",
36532
+ framework: "\u6846\u67B6\u6A21\u5F0F"
36533
+ }
36534
+ }
36535
+ };
36536
+ });
36537
+ var EN_LOCALE;
36538
+ var init_en = __esmMin(() => {
36539
+ EN_LOCALE = {
36540
+ solution: {
36541
+ self: "Please select the solution you want to create",
36542
+ mwa: "MWA Solution",
36543
+ module: "Module Solution",
36544
+ monorepo: "Monorepo Solution",
36545
+ custom: "Custom Solution",
36546
+ "default": "Default"
36547
+ },
36548
+ scenes: {
36549
+ self: "Please select the scene you want to create"
36550
+ },
36551
+ sub_solution: {
36552
+ self: "Please select the solution you want to create",
36553
+ mwa: "MWA Solution",
36554
+ mwa_test: "MWA Solution(Test)",
36555
+ module: "Module Solution",
36556
+ inner_module: "Module Solution(Inner)",
36557
+ monorepo: "Monorepo Solution"
36558
+ },
36559
+ action: {
36560
+ self: "Action",
36561
+ "function": {
36562
+ self: "Enable features",
36563
+ tailwindcss: "Enable Tailwind CSS",
36564
+ less: "Enable Less",
36565
+ sass: "Enable Sass",
36566
+ bff: "Enable BFF",
36567
+ micro_frontend: "Enable Micro Frontend",
36568
+ electron: "Enable Electron",
36569
+ i18n: "Enable Internationalization (i18n)",
36570
+ test: "Enable Unit Test / Integration Test",
36571
+ e2e_test: "Enable E2E Test",
36572
+ doc: "Enable Document Station",
36573
+ storybook: "Enable Storybook",
36574
+ runtime_api: "Enable Runtime API",
36575
+ mwa_storybook: "Enable Visual Testing (Storybook)",
36576
+ ssg: "Enable SSG",
36577
+ polyfill: "Enable UA-based Polyfill Feature",
36578
+ proxy: "Enable Global Proxy"
36579
+ },
36580
+ element: {
36581
+ self: "Create project element",
36582
+ entry: 'New "entry"',
36583
+ server: 'New "Server Custom" source code directory'
36584
+ },
36585
+ refactor: {
36586
+ self: "Automatic refactor",
36587
+ bff_to_app: "Transform BFF to frame mode"
36588
+ }
36589
+ },
36590
+ "boolean": {
36591
+ yes: "Yes",
36592
+ no: "No"
36593
+ },
36594
+ language: {
36595
+ self: "Development Language"
36596
+ },
36597
+ packageManager: {
36598
+ self: "Package Management Tool"
36599
+ },
36600
+ packageName: {
36601
+ self: "Package Name",
36602
+ sub_name: "Package Name",
36603
+ no_empty: "The package name cannot be empty!"
36604
+ },
36605
+ packagePath: {
36606
+ self: "Package Path",
36607
+ no_empty: "The package path cannot be empty!",
36608
+ format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
36609
+ },
36610
+ runWay: {
36611
+ self: "Do you need to support the following types of applications",
36612
+ no: "Not Enabled",
36613
+ electron: "Electron"
36614
+ },
36615
+ needModifyConfig: {
36616
+ self: "Modify the Default Configuration?",
36617
+ enableLess: "Enable Less?",
36618
+ enableSass: "Enable Sass?"
36619
+ },
36620
+ entry: {
36621
+ name: "Entry name",
36622
+ no_empty: "The entry name cannot be empty!",
36623
+ no_pages: 'The entry name cannot be "pages"!',
36624
+ disableStateManagement: "Disable App State Management?",
36625
+ clientRoute: {
36626
+ self: "Client Routing",
36627
+ selfControlRoute: "Enable Self Control Route",
36628
+ conventionalRoute: "Enable Conventional Route",
36629
+ no: "Not Enabled"
36630
+ }
36631
+ },
36632
+ framework: {
36633
+ self: "Please select the framework you want to use",
36634
+ egg: "Egg",
36635
+ express: "Express",
36636
+ koa: "Koa",
36637
+ nest: "Nest"
36638
+ },
36639
+ bff: {
36640
+ bffType: {
36641
+ self: "BFF Type",
36642
+ func: "Function",
36643
+ framework: "Framework"
36644
+ }
36645
+ }
36646
+ };
36647
+ });
36648
+ var i18n, localeKeys;
36649
+ var init_locale = __esmMin(() => {
36650
+ init_treeshaking();
36651
+ init_zh();
36652
+ init_en();
36653
+ i18n = new I18n();
36654
+ localeKeys = i18n.init("zh", {
36655
+ zh: ZH_LOCALE,
36656
+ en: EN_LOCALE
36657
+ });
36658
+ });
36659
+ var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
36660
+ var init_boolean = __esmMin(() => {
36661
+ init_defineProperty();
36662
+ init_locale();
36663
+ (function(BooleanConfig2) {
36664
+ BooleanConfig2["NO"] = "no";
36665
+ BooleanConfig2["YES"] = "yes";
36666
+ })(BooleanConfig || (BooleanConfig = {}));
36667
+ BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
36668
+ return i18n.t(localeKeys["boolean"].no);
36669
+ }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
36670
+ return i18n.t(localeKeys["boolean"].yes);
36671
+ }), _BooleanConfigName);
36672
+ BooleanSchemas = [{
36673
+ key: BooleanConfig.NO,
36674
+ label: BooleanConfigName[BooleanConfig.NO]
36675
+ }, {
36676
+ key: BooleanConfig.YES,
36677
+ label: BooleanConfigName[BooleanConfig.YES]
36678
+ }];
36679
+ });
36680
+ function _arrayLikeToArray(arr, len) {
36681
+ if (len == null || len > arr.length)
36682
+ len = arr.length;
36683
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
36684
+ arr2[i] = arr[i];
36685
+ }
36686
+ return arr2;
36687
+ }
36688
+ var init_arrayLikeToArray = __esmMin(() => {
36689
+ });
36690
+ function _arrayWithoutHoles(arr) {
36691
+ if (Array.isArray(arr))
36692
+ return _arrayLikeToArray(arr);
36693
+ }
36694
+ var init_arrayWithoutHoles = __esmMin(() => {
36695
+ init_arrayLikeToArray();
36696
+ });
36697
+ function _iterableToArray(iter) {
36698
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
36699
+ return Array.from(iter);
36700
+ }
36701
+ var init_iterableToArray = __esmMin(() => {
36702
+ });
36703
+ function _unsupportedIterableToArray(o, minLen) {
36704
+ if (!o)
36705
+ return;
36706
+ if (typeof o === "string")
36707
+ return _arrayLikeToArray(o, minLen);
36708
+ var n = Object.prototype.toString.call(o).slice(8, -1);
36709
+ if (n === "Object" && o.constructor)
36710
+ n = o.constructor.name;
36711
+ if (n === "Map" || n === "Set")
36712
+ return Array.from(o);
36713
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
36714
+ return _arrayLikeToArray(o, minLen);
36715
+ }
36716
+ var init_unsupportedIterableToArray = __esmMin(() => {
36717
+ init_arrayLikeToArray();
36718
+ });
36719
+ function _nonIterableSpread() {
36720
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
36721
+ }
36722
+ var init_nonIterableSpread = __esmMin(() => {
36723
+ });
36724
+ function _toConsumableArray(arr) {
36725
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
36726
+ }
36727
+ var init_toConsumableArray = __esmMin(() => {
36728
+ init_arrayWithoutHoles();
36729
+ init_iterableToArray();
36730
+ init_unsupportedIterableToArray();
36731
+ init_nonIterableSpread();
36732
+ });
36733
+ function getSolutionNameFromSubSolution(solution) {
36734
+ if (solution === SubSolution.MWATest) {
36735
+ return Solution.MWA;
36736
+ }
36737
+ if (solution === SubSolution.InnerModule) {
36738
+ return Solution.Module;
36739
+ }
36740
+ return solution;
36741
+ }
36742
+ var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
36743
+ var init_solution = __esmMin(() => {
36744
+ init_toConsumableArray();
36745
+ init_defineProperty();
36746
+ init_locale();
36747
+ (function(Solution2) {
36748
+ Solution2["MWA"] = "mwa";
36749
+ Solution2["Module"] = "module";
36750
+ Solution2["Monorepo"] = "monorepo";
36751
+ })(Solution || (Solution = {}));
36752
+ (function(SubSolution2) {
36753
+ SubSolution2["MWA"] = "mwa";
36754
+ SubSolution2["MWATest"] = "mwa_test";
36755
+ SubSolution2["Module"] = "module";
36756
+ SubSolution2["InnerModule"] = "inner_module";
36757
+ })(SubSolution || (SubSolution = {}));
36758
+ SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
36759
+ return i18n.t(localeKeys.solution.mwa);
36760
+ }), _defineProperty(_SolutionText, Solution.Module, function() {
36761
+ return i18n.t(localeKeys.solution.module);
36762
+ }), _defineProperty(_SolutionText, Solution.Monorepo, function() {
36763
+ return i18n.t(localeKeys.solution.monorepo);
36764
+ }), _SolutionText);
36765
+ SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
36766
+ return i18n.t(localeKeys.sub_solution.mwa);
36767
+ }), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
36768
+ return i18n.t(localeKeys.sub_solution.mwa_test);
36769
+ }), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
36770
+ return i18n.t(localeKeys.sub_solution.module);
36771
+ }), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
36772
+ return i18n.t(localeKeys.sub_solution.inner_module);
36773
+ }), _SubSolutionText);
36774
+ SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
36775
+ SolutionSchema = {
36776
+ key: "solution_schema",
36777
+ isObject: true,
36778
+ items: [{
36779
+ key: "solution",
36780
+ label: function label() {
36781
+ return i18n.t(localeKeys.solution.self);
36782
+ },
36783
+ type: ["string"],
36784
+ mutualExclusion: true,
36785
+ items: function items(_data, extra) {
36786
+ var _extra$customPlugin, _extra$customPlugin$c;
36787
+ var items5 = Object.values(Solution).filter(function(solution) {
36788
+ return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
36789
+ }).map(function(solution) {
36790
+ return {
36791
+ key: solution,
36792
+ label: SolutionText[solution]
36793
+ };
36794
+ });
36795
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin = extra.customPlugin) !== null && _extra$customPlugin !== void 0 && (_extra$customPlugin$c = _extra$customPlugin.custom) !== null && _extra$customPlugin$c !== void 0 && _extra$customPlugin$c.length) {
36796
+ return [].concat(_toConsumableArray(items5), [{
36797
+ key: "custom",
36798
+ label: i18n.t(localeKeys.solution.custom)
36799
+ }]);
36800
+ }
36801
+ return items5;
36802
+ }
36803
+ }, {
36804
+ key: "scenes",
36805
+ label: function label2() {
36806
+ return i18n.t(localeKeys.scenes.self);
36807
+ },
36808
+ type: ["string"],
36809
+ mutualExclusion: true,
36810
+ when: function when(data, extra) {
36811
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
36812
+ },
36813
+ items: function items2(data, extra) {
36814
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
36815
+ return {
36816
+ key: plugin.key,
36817
+ label: plugin.name
36818
+ };
36819
+ });
36820
+ if (data.solution && data.solution !== "custom") {
36821
+ items5.unshift({
36822
+ key: data.solution,
36823
+ label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
36824
+ });
36825
+ }
36826
+ return items5;
36827
+ }
36828
+ }]
36829
+ };
36830
+ SubSolutionSchema = {
36831
+ key: "sub_solution_schema",
36832
+ isObject: true,
36833
+ items: [{
36834
+ key: "solution",
36835
+ label: function label3() {
36836
+ return i18n.t(localeKeys.sub_solution.self);
36837
+ },
36838
+ type: ["string"],
36839
+ mutualExclusion: true,
36840
+ items: function items3(_data, extra) {
36841
+ var _extra$customPlugin2, _extra$customPlugin2$;
36842
+ var items5 = Object.values(SubSolution).map(function(solution) {
36843
+ return {
36844
+ key: solution,
36845
+ label: SubSolutionText[solution]
36846
+ };
36847
+ });
36848
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin2 = extra.customPlugin) !== null && _extra$customPlugin2 !== void 0 && (_extra$customPlugin2$ = _extra$customPlugin2.custom) !== null && _extra$customPlugin2$ !== void 0 && _extra$customPlugin2$.length) {
36849
+ return [].concat(_toConsumableArray(items5), [{
36850
+ key: "custom",
36851
+ label: i18n.t(localeKeys.solution.custom)
36852
+ }]);
36853
+ }
36854
+ return items5;
36855
+ }
36856
+ }, {
36857
+ key: "scenes",
36858
+ label: function label4() {
36859
+ return i18n.t(localeKeys.scenes.self);
36860
+ },
36861
+ type: ["string"],
36862
+ mutualExclusion: true,
36863
+ when: function when2(data, extra) {
36864
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
36865
+ },
36866
+ items: function items4(data, extra) {
36867
+ var solution = getSolutionNameFromSubSolution(data.solution);
36868
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
36869
+ return {
36870
+ key: plugin.key,
36871
+ label: plugin.name
36872
+ };
36873
+ });
36874
+ if (data.solution && data.solution !== "custom") {
36875
+ items5.unshift({
36876
+ key: data.solution,
36877
+ label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
36878
+ });
36879
+ }
36880
+ return items5;
36881
+ }
36882
+ }]
36883
+ };
36884
+ BaseGenerator = "@modern-js/base-generator";
36885
+ SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
36886
+ SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
36887
+ ChangesetGenerator = "@modern-js/changeset-generator";
36888
+ DependenceGenerator = "@modern-js/dependence-generator";
36889
+ EntryGenerator = "@modern-js/entry-generator";
36890
+ ElectronGenerator = "@modern-js/electron-generator";
36891
+ EslintGenerator = "@modern-js/eslint-generator";
36892
+ });
36893
+ var _LanguageName, Language, LanguageName, LanguageSchema;
36894
+ var init_language = __esmMin(() => {
36895
+ init_defineProperty();
36896
+ init_locale();
36897
+ (function(Language2) {
36898
+ Language2["TS"] = "ts";
36899
+ Language2["JS"] = "js";
36900
+ })(Language || (Language = {}));
36901
+ LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
36902
+ return "TS";
36903
+ }), _defineProperty(_LanguageName, Language.JS, function() {
36904
+ return "ES6+";
36905
+ }), _LanguageName);
36906
+ LanguageSchema = {
36907
+ key: "language",
36908
+ type: ["string"],
36909
+ label: function label5() {
36910
+ return i18n.t(localeKeys.language.self);
36911
+ },
36912
+ mutualExclusion: true,
36913
+ items: Object.values(Language).map(function(language) {
36914
+ return {
36915
+ key: language,
36916
+ label: LanguageName[language]
36917
+ };
36918
+ })
36919
+ };
36920
+ });
36921
+ var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
36922
+ var init_package_manager = __esmMin(() => {
36923
+ init_defineProperty();
36924
+ init_locale();
36925
+ (function(PackageManager2) {
36926
+ PackageManager2["Pnpm"] = "pnpm";
36927
+ PackageManager2["Yarn"] = "yarn";
36928
+ PackageManager2["Npm"] = "npm";
36929
+ })(PackageManager || (PackageManager = {}));
36930
+ PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
36931
+ return "pnpm";
36932
+ }), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
36933
+ return "Yarn";
36934
+ }), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
36935
+ return "npm";
36936
+ }), _PackageManagerName);
36937
+ PackageManagerSchema = {
36938
+ key: "packageManager",
36939
+ type: ["string"],
36940
+ label: function label6() {
36941
+ return i18n.t(localeKeys.packageManager.self);
36942
+ },
36943
+ mutualExclusion: true,
36944
+ when: function when3(_values, extra) {
36945
+ return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
36946
+ },
36947
+ items: Object.values(PackageManager).map(function(packageManager) {
36948
+ return {
36949
+ key: packageManager,
36950
+ label: PackageManagerName[packageManager]
36951
+ };
36952
+ })
36953
+ };
36954
+ });
36955
+ var PackageNameSchema;
36956
+ var init_package_name = __esmMin(() => {
36957
+ init_locale();
36958
+ PackageNameSchema = {
36959
+ key: "packageName",
36960
+ label: function label7(_, extra) {
36961
+ return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
36962
+ },
36963
+ type: ["string"],
36964
+ when: function when4(_, extra) {
36965
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
36966
+ },
36967
+ validate: function validate(value) {
36968
+ if (!value) {
36969
+ return {
36970
+ success: false,
36971
+ error: i18n.t(localeKeys.packageName.no_empty)
36972
+ };
36973
+ }
36974
+ return {
36975
+ success: true
36976
+ };
36977
+ }
36978
+ };
36979
+ });
36980
+ var PackagePathRegex, PackagePathSchema;
36981
+ var init_package_path = __esmMin(() => {
36982
+ init_locale();
36983
+ PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
36984
+ PackagePathSchema = {
36985
+ key: "packagePath",
36986
+ label: function label8() {
36987
+ return i18n.t(localeKeys.packagePath.self);
36988
+ },
36989
+ type: ["string"],
36990
+ when: function when5(_, extra) {
36991
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
36992
+ },
36993
+ state: {
36994
+ value: {
36995
+ effectedByFields: ["packageName"],
36996
+ action: function action(data) {
36997
+ return "".concat(data.packageName || "");
36998
+ }
36999
+ }
37000
+ },
37001
+ validate: function validate2(value) {
37002
+ if (!value) {
37003
+ return {
37004
+ success: false,
37005
+ error: i18n.t(localeKeys.packagePath.no_empty)
37006
+ };
37007
+ }
37008
+ if (!PackagePathRegex.test(value)) {
37009
+ return {
37010
+ success: false,
37011
+ error: i18n.t(localeKeys.packagePath.format)
37012
+ };
37013
+ }
37014
+ return {
37015
+ success: true
37016
+ };
37017
+ }
37018
+ };
37019
+ });
37020
+ var init_common = __esmMin(() => {
37021
+ init_boolean();
37022
+ init_solution();
37023
+ init_language();
37024
+ init_package_manager();
37025
+ init_package_name();
37026
+ init_package_path();
37027
+ });
37028
+ var BaseSchemas, BaseSchema, BaseDefaultConfig;
37029
+ var init_project = __esmMin(() => {
37030
+ init_common();
37031
+ BaseSchemas = [PackageManagerSchema];
37032
+ BaseSchema = {
37033
+ key: "base",
37034
+ isObject: true,
37035
+ items: BaseSchemas
37036
+ };
37037
+ BaseDefaultConfig = {
37038
+ packageManager: PackageManager.Pnpm
37039
+ };
37040
+ });
37041
+ var init_base = __esmMin(() => {
37042
+ init_project();
37043
+ });
37044
+ function ownKeys(object, enumerableOnly) {
37045
+ var keys = Object.keys(object);
37046
+ if (Object.getOwnPropertySymbols) {
37047
+ var symbols = Object.getOwnPropertySymbols(object);
37048
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
37049
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37050
+ })), keys.push.apply(keys, symbols);
37051
+ }
37052
+ return keys;
37053
+ }
37054
+ function _objectSpread2(target) {
37055
+ for (var i = 1; i < arguments.length; i++) {
37056
+ var source = arguments[i] != null ? arguments[i] : {};
37057
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
37058
+ _defineProperty(target, key, source[key]);
37059
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
37060
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
37061
+ });
37062
+ }
37063
+ return target;
37064
+ }
37065
+ var init_objectSpread2 = __esmMin(() => {
37066
+ init_defineProperty();
37067
+ });
37068
+ var EnableLessSchema, EnableSassSchema;
37069
+ var init_css = __esmMin(() => {
37070
+ init_locale();
37071
+ init_boolean();
37072
+ EnableLessSchema = {
37073
+ key: "enableLess",
37074
+ type: ["string"],
37075
+ label: function label9() {
37076
+ return i18n.t(localeKeys.needModifyConfig.enableLess);
37077
+ },
37078
+ mutualExclusion: true,
37079
+ state: {
37080
+ value: BooleanConfig.NO
37081
+ },
37082
+ items: BooleanSchemas
37083
+ };
37084
+ EnableSassSchema = {
37085
+ key: "enableSass",
37086
+ type: ["string"],
37087
+ label: function label10() {
37088
+ return i18n.t(localeKeys.needModifyConfig.enableSass);
37089
+ },
37090
+ mutualExclusion: true,
37091
+ state: {
37092
+ value: BooleanConfig.NO
37093
+ },
37094
+ items: BooleanSchemas
37095
+ };
37096
+ });
37097
+ var moduleConfigWhenFunc, EnableModuleLessSchema, EnableModuleSassSchema, NeedModifyModuleConfigSchema, ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
37098
+ var init_project2 = __esmMin(() => {
37099
+ init_objectSpread2();
37100
+ init_locale();
37101
+ init_common();
37102
+ init_css();
37103
+ moduleConfigWhenFunc = function moduleConfigWhenFunc2(values) {
37104
+ return values.needModifyModuleConfig === BooleanConfig.YES;
37105
+ };
37106
+ EnableModuleLessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
37107
+ when: moduleConfigWhenFunc
37108
+ });
37109
+ EnableModuleSassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
37110
+ when: moduleConfigWhenFunc
37111
+ });
37112
+ NeedModifyModuleConfigSchema = {
37113
+ key: "needModifyModuleConfig",
37114
+ label: function label11() {
37115
+ return i18n.t(localeKeys.needModifyConfig.self);
37116
+ },
37117
+ type: ["string"],
37118
+ mutualExclusion: true,
37119
+ state: {
37120
+ value: BooleanConfig.NO
37121
+ },
37122
+ items: BooleanSchemas
37123
+ };
37124
+ ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, NeedModifyModuleConfigSchema, EnableModuleLessSchema, EnableModuleSassSchema];
37125
+ ModuleSchema = {
37126
+ key: "module",
37127
+ isObject: true,
37128
+ items: ModuleSchemas
37129
+ };
37130
+ ModuleDefaultConfig = {
37131
+ language: Language.TS,
37132
+ packageManager: PackageManager.Pnpm,
37133
+ needModifyModuleConfig: BooleanConfig.NO,
37134
+ enableLess: BooleanConfig.NO,
37135
+ enableSass: BooleanConfig.NO
37136
+ };
37137
+ });
37138
+ var init_module = __esmMin(() => {
37139
+ init_project2();
37140
+ });
37141
+ var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
37142
+ var init_project3 = __esmMin(() => {
37143
+ init_objectSpread2();
37144
+ init_common();
37145
+ MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
37146
+ items: PackageManagerSchema.items.filter(function(item) {
37147
+ return item.key !== PackageManager.Npm;
37148
+ })
37149
+ });
37150
+ MonorepoSchemas = [MonorepoPackageManagerSchema];
37151
+ MonorepoSchema = {
37152
+ key: "monorepo",
37153
+ isObject: true,
37154
+ items: MonorepoSchemas
37155
+ };
37156
+ MonorepoDefaultConfig = {
37157
+ packageManager: PackageManager.Pnpm
37158
+ };
37159
+ });
37160
+ var init_monorepo = __esmMin(() => {
37161
+ init_project3();
37162
+ });
37163
+ var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
37164
+ var init_common2 = __esmMin(() => {
37165
+ init_defineProperty();
37166
+ init_objectSpread2();
37167
+ init_locale();
37168
+ init_boolean();
37169
+ init_css();
37170
+ mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
37171
+ return values.needModifyMWAConfig === BooleanConfig.YES;
37172
+ };
37173
+ (function(RunWay2) {
37174
+ RunWay2["No"] = "no";
37175
+ RunWay2["Electron"] = "electron";
37176
+ })(RunWay || (RunWay = {}));
37177
+ RunWaySchema = {
37178
+ key: "runWay",
37179
+ type: ["string"],
37180
+ label: function label12() {
37181
+ return i18n.t(localeKeys.runWay.self);
37182
+ },
37183
+ mutualExclusion: true,
37184
+ when: function when6(_, extra) {
37185
+ return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
37186
+ },
37187
+ state: {
37188
+ value: RunWay.No
37189
+ },
37190
+ items: Object.values(RunWay).map(function(runWay) {
37191
+ return {
37192
+ key: runWay,
37193
+ label: function label25() {
37194
+ return i18n.t(localeKeys.runWay[runWay]);
37195
+ }
37196
+ };
37197
+ })
37198
+ };
37199
+ (function(ClientRoute2) {
37200
+ ClientRoute2["SelfControlRoute"] = "selfControlRoute";
37201
+ ClientRoute2["ConventionalRoute"] = "conventionalRoute";
37202
+ ClientRoute2["No"] = "no";
37203
+ })(ClientRoute || (ClientRoute = {}));
37204
+ ClientRouteSchema = {
37205
+ key: "clientRoute",
37206
+ type: ["string"],
37207
+ label: function label13() {
37208
+ return i18n.t(localeKeys.entry.clientRoute.self);
37209
+ },
37210
+ mutualExclusion: true,
37211
+ when: mwaConfigWhenFunc,
37212
+ state: {
37213
+ value: ClientRoute.SelfControlRoute
37214
+ },
37215
+ items: Object.values(ClientRoute).map(function(clientRoute) {
37216
+ return {
37217
+ key: clientRoute,
37218
+ label: function label25() {
37219
+ return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
37220
+ }
37221
+ };
37222
+ })
37223
+ };
37224
+ DisableStateManagementSchema = {
37225
+ key: "disableStateManagement",
37226
+ type: ["string"],
37227
+ label: function label14() {
37228
+ return i18n.t(localeKeys.entry.disableStateManagement);
37229
+ },
37230
+ mutualExclusion: true,
37231
+ when: mwaConfigWhenFunc,
37232
+ state: {
37233
+ value: BooleanConfig.NO
37234
+ },
37235
+ items: BooleanSchemas
37236
+ };
37237
+ EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
37238
+ when: mwaConfigWhenFunc
37239
+ });
37240
+ EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
37241
+ when: mwaConfigWhenFunc
37242
+ });
37243
+ NeedModifyMWAConfigSchema = {
37244
+ key: "needModifyMWAConfig",
37245
+ label: function label15() {
37246
+ return i18n.t(localeKeys.needModifyConfig.self);
37247
+ },
37248
+ type: ["string"],
37249
+ mutualExclusion: true,
37250
+ state: {
37251
+ value: BooleanConfig.NO
37252
+ },
37253
+ items: BooleanSchemas
37254
+ };
37255
+ (function(Framework2) {
37256
+ Framework2["Express"] = "express";
37257
+ Framework2["Koa"] = "koa";
37258
+ Framework2["Egg"] = "egg";
37259
+ Framework2["Nest"] = "nest";
37260
+ })(Framework || (Framework = {}));
37261
+ FrameworkSchema = {
37262
+ key: "framework",
37263
+ type: ["string"],
37264
+ label: function label16() {
37265
+ return i18n.t(localeKeys.framework.self);
37266
+ },
37267
+ mutualExclusion: true,
37268
+ items: Object.values(Framework).map(function(framework) {
37269
+ return {
37270
+ key: framework,
37271
+ label: function label25() {
37272
+ return i18n.t(localeKeys.framework[framework]);
37273
+ }
37274
+ };
37275
+ })
37276
+ };
37277
+ FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
37278
+ });
37279
+ var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
37280
+ var init_entry = __esmMin(() => {
37281
+ init_locale();
37282
+ init_common();
37283
+ init_common2();
37284
+ EntryNameSchema = {
37285
+ key: "name",
37286
+ type: ["string"],
37287
+ label: function label17() {
37288
+ return i18n.t(localeKeys.entry.name);
37289
+ },
37290
+ state: {
37291
+ value: "entry"
37292
+ },
37293
+ validate: function validate3(value) {
37294
+ if (!value) {
37295
+ return {
37296
+ success: false,
37297
+ error: i18n.t(localeKeys.entry.no_empty)
37298
+ };
37299
+ }
37300
+ if (value === "pages") {
37301
+ return {
37302
+ success: false,
37303
+ error: i18n.t(localeKeys.entry.no_pages)
37304
+ };
37305
+ }
37306
+ return {
37307
+ success: true
37308
+ };
37309
+ },
37310
+ when: function when7(_values, extra) {
37311
+ if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
37312
+ return false;
37313
+ }
37314
+ return true;
37315
+ }
37316
+ };
37317
+ EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema];
37318
+ EntrySchema = {
37319
+ key: "entry",
37320
+ label: function label18() {
37321
+ return i18n.t(localeKeys.action.element.entry);
37322
+ },
37323
+ isObject: true,
37324
+ items: EntrySchemas
37325
+ };
37326
+ MWADefaultEntryConfig = {
37327
+ needModifyMWAConfig: BooleanConfig.NO,
37328
+ clientRoute: ClientRoute.SelfControlRoute,
37329
+ disableStateManagement: BooleanConfig.NO
37330
+ };
37331
+ });
37332
+ var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
37333
+ var init_bff = __esmMin(() => {
37334
+ init_locale();
37335
+ init_common2();
37336
+ (function(BFFType2) {
37337
+ BFFType2["Func"] = "func";
37338
+ BFFType2["Framework"] = "framework";
37339
+ })(BFFType || (BFFType = {}));
37340
+ BFFTypeSchema = {
37341
+ key: "bffType",
37342
+ type: ["string"],
37343
+ label: function label19() {
37344
+ return i18n.t(localeKeys.bff.bffType.self);
37345
+ },
37346
+ mutualExclusion: true,
37347
+ items: Object.values(BFFType).map(function(bffType) {
37348
+ return {
37349
+ key: bffType,
37350
+ label: function label25() {
37351
+ return i18n.t(localeKeys.bff.bffType[bffType]);
37352
+ }
37353
+ };
37354
+ })
37355
+ };
37356
+ BFFSchemas = [BFFTypeSchema, FrameworkSchema];
37357
+ BFFSchema = {
37358
+ key: "bff",
37359
+ label: function label20() {
37360
+ return i18n.t(localeKeys.action["function"].bff);
37361
+ },
37362
+ isObject: true,
37363
+ items: BFFSchemas
37364
+ };
37365
+ MWADefaultBffConfig = {
37366
+ bffType: BFFType.Func,
37367
+ frameWork: Framework.Express
37368
+ };
37369
+ });
37370
+ var MWASchemas, MWASchema, MWADefaultConfig;
37371
+ var init_project4 = __esmMin(() => {
37372
+ init_common();
37373
+ init_common2();
37374
+ MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema];
37375
+ MWASchema = {
37376
+ key: "mwa",
37377
+ isObject: true,
37378
+ items: MWASchemas
37379
+ };
37380
+ MWADefaultConfig = {
37381
+ language: Language.TS,
37382
+ packageManager: PackageManager.Pnpm,
37383
+ runWay: RunWay.No,
37384
+ needModifyMWAConfig: BooleanConfig.NO,
37385
+ clientRoute: ClientRoute.SelfControlRoute,
37386
+ disableStateManagement: BooleanConfig.NO,
37387
+ enableLess: BooleanConfig.NO,
37388
+ enableSass: BooleanConfig.NO
37389
+ };
37390
+ });
37391
+ var ServerSchemas, ServerSchema, MWADefaultServerConfig;
37392
+ var init_server = __esmMin(() => {
37393
+ init_locale();
37394
+ init_common2();
37395
+ ServerSchemas = [FrameworkSchema];
37396
+ ServerSchema = {
37397
+ key: "server",
37398
+ label: function label21() {
37399
+ return i18n.t(localeKeys.action.element.server);
37400
+ },
37401
+ isObject: true,
37402
+ items: ServerSchemas
37403
+ };
37404
+ MWADefaultServerConfig = {
37405
+ framework: Framework.Express
37406
+ };
37407
+ });
37408
+ var init_mwa = __esmMin(() => {
37409
+ init_common2();
37410
+ init_entry();
37411
+ init_bff();
37412
+ init_project4();
37413
+ init_server();
37414
+ });
37415
+ var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
37416
+ var init_common3 = __esmMin(() => {
37417
+ init_defineProperty();
37418
+ init_locale();
37419
+ (function(ActionType2) {
37420
+ ActionType2["Function"] = "function";
37421
+ ActionType2["Element"] = "element";
37422
+ ActionType2["Refactor"] = "refactor";
37423
+ })(ActionType || (ActionType = {}));
37424
+ (function(ActionElement2) {
37425
+ ActionElement2["Entry"] = "entry";
37426
+ ActionElement2["Server"] = "server";
37427
+ })(ActionElement || (ActionElement = {}));
37428
+ (function(ActionFunction2) {
37429
+ ActionFunction2["TailwindCSS"] = "tailwindcss";
37430
+ ActionFunction2["Less"] = "less";
37431
+ ActionFunction2["Sass"] = "sass";
37432
+ ActionFunction2["BFF"] = "bff";
37433
+ ActionFunction2["MicroFrontend"] = "micro_frontend";
37434
+ ActionFunction2["Electron"] = "electron";
37435
+ ActionFunction2["I18n"] = "i18n";
37436
+ ActionFunction2["Test"] = "test";
37437
+ ActionFunction2["E2ETest"] = "e2e_test";
37438
+ ActionFunction2["Doc"] = "doc";
37439
+ ActionFunction2["Storybook"] = "storybook";
37440
+ ActionFunction2["RuntimeApi"] = "runtimeApi";
37441
+ ActionFunction2["SSG"] = "ssg";
37442
+ ActionFunction2["Polyfill"] = "polyfill";
37443
+ ActionFunction2["Proxy"] = "proxy";
37444
+ })(ActionFunction || (ActionFunction = {}));
37445
+ (function(ActionRefactor2) {
37446
+ ActionRefactor2["BFFToApp"] = "bff_to_app";
37447
+ })(ActionRefactor || (ActionRefactor = {}));
37448
+ ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
37449
+ return i18n.t(localeKeys.action["function"].self);
37450
+ }), _defineProperty(_ActionTypeText, ActionType.Element, function() {
37451
+ return i18n.t(localeKeys.action.element.self);
37452
+ }), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
37453
+ return i18n.t(localeKeys.action.refactor.self);
37454
+ }), _ActionTypeText);
37455
+ ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
37456
+ return i18n.t(localeKeys.action.element.entry);
37457
+ }), _defineProperty(_ActionElementText, ActionElement.Server, function() {
37458
+ return i18n.t(localeKeys.action.element.server);
37459
+ }), _ActionElementText);
37460
+ ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
37461
+ return i18n.t(localeKeys.action["function"].tailwindcss);
37462
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
37463
+ return i18n.t(localeKeys.action["function"].less);
37464
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
37465
+ return i18n.t(localeKeys.action["function"].sass);
37466
+ }), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
37467
+ return i18n.t(localeKeys.action["function"].bff);
37468
+ }), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
37469
+ return i18n.t(localeKeys.action["function"].micro_frontend);
37470
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
37471
+ return i18n.t(localeKeys.action["function"].electron);
37472
+ }), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
37473
+ return i18n.t(localeKeys.action["function"].i18n);
37474
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
37475
+ return i18n.t(localeKeys.action["function"].test);
37476
+ }), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
37477
+ return i18n.t(localeKeys.action["function"].e2e_test);
37478
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
37479
+ return i18n.t(localeKeys.action["function"].doc);
37480
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
37481
+ return i18n.t(localeKeys.action["function"].storybook);
37482
+ }), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
37483
+ return i18n.t(localeKeys.action["function"].runtime_api);
37484
+ }), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
37485
+ return i18n.t(localeKeys.action["function"].ssg);
37486
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
37487
+ return i18n.t(localeKeys.action["function"].polyfill);
37488
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
37489
+ return i18n.t(localeKeys.action["function"].proxy);
37490
+ }), _ActionFunctionText);
37491
+ ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
37492
+ return i18n.t(localeKeys.action.refactor.bff_to_app);
37493
+ });
37494
+ ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
37495
+ });
37496
+ var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
37497
+ var init_mwa2 = __esmMin(() => {
37498
+ init_defineProperty();
37499
+ init_common3();
37500
+ init_locale();
37501
+ MWAActionTypes = [
37502
+ ActionType.Element,
37503
+ ActionType.Function
37504
+ ];
37505
+ MWAActionFunctions = [
37506
+ ActionFunction.TailwindCSS,
37507
+ ActionFunction.Less,
37508
+ ActionFunction.Sass,
37509
+ ActionFunction.BFF,
37510
+ ActionFunction.SSG,
37511
+ ActionFunction.MicroFrontend,
37512
+ ActionFunction.Electron,
37513
+ ActionFunction.Test,
37514
+ ActionFunction.Storybook,
37515
+ ActionFunction.Polyfill,
37516
+ ActionFunction.Proxy
37517
+ ];
37518
+ MWAActionElements = [ActionElement.Entry, ActionElement.Server];
37519
+ MWAActionReactors = [ActionRefactor.BFFToApp];
37520
+ MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
37521
+ MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
37522
+ key: ActionFunction.Storybook,
37523
+ label: function label22() {
37524
+ return i18n.t(localeKeys.action["function"].mwa_storybook);
37525
+ }
37526
+ });
37527
+ MWANewActionSchema = {
37528
+ key: "mwa_new_action",
37529
+ isObject: true,
37530
+ items: [{
37531
+ key: "actionType",
37532
+ label: function label23() {
37533
+ return i18n.t(localeKeys.action.self);
37534
+ },
37535
+ type: ["string"],
37536
+ mutualExclusion: true,
37537
+ items: MWAActionTypes.map(function(type) {
37538
+ return {
37539
+ key: type,
37540
+ label: ActionTypeText[type],
37541
+ type: ["string"],
37542
+ mutualExclusion: true,
37543
+ items: MWAActionTypesMap[type].map(function(item) {
37544
+ return MWASpecialSchemaMap[item] || {
37545
+ key: item,
37546
+ label: ActionTypeTextMap[type][item]
37547
+ };
37548
+ })
37549
+ };
37550
+ })
37551
+ }]
37552
+ };
37553
+ MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
37554
+ MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
37555
+ MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
37556
+ MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
37557
+ });
37558
+ var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
37559
+ var init_module2 = __esmMin(() => {
37560
+ init_defineProperty();
37561
+ init_common3();
37562
+ init_locale();
37563
+ ModuleActionTypes = [ActionType.Function];
37564
+ ModuleActionFunctions = [
37565
+ ActionFunction.TailwindCSS,
37566
+ ActionFunction.Less,
37567
+ ActionFunction.Sass,
37568
+ ActionFunction.Storybook,
37569
+ ActionFunction.RuntimeApi
37570
+ ];
37571
+ ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
37572
+ ModuleSpecialSchemaMap = {};
37573
+ ModuleNewActionSchema = {
37574
+ key: "Module_new_action",
37575
+ isObject: true,
37576
+ items: [{
37577
+ key: "actionType",
37578
+ label: function label24() {
37579
+ return i18n.t(localeKeys.action.self);
37580
+ },
37581
+ type: ["string"],
37582
+ mutualExclusion: true,
37583
+ items: ModuleActionTypes.map(function(type) {
37584
+ return {
37585
+ key: type,
37586
+ label: ActionTypeText[type],
37587
+ type: ["string"],
37588
+ mutualExclusion: true,
37589
+ items: ModuleActionFunctions.map(function(func) {
37590
+ return ModuleSpecialSchemaMap[func] || {
37591
+ key: func,
37592
+ label: ActionFunctionText[func]
37593
+ };
37594
+ })
37595
+ };
37596
+ })
37597
+ }]
37598
+ };
37599
+ ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
37600
+ ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
37601
+ ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
37602
+ ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
37603
+ });
37604
+ var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
37605
+ var init_monorepo2 = __esmMin(() => {
37606
+ init_defineProperty();
37607
+ init_common();
37608
+ MonorepoNewActionSchema = {
37609
+ key: "monorepo_new_action",
37610
+ isObject: true,
37611
+ items: [SubSolutionSchema]
37612
+ };
37613
+ MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
37614
+ isMonorepoSubProject: true,
37615
+ isTest: false
37616
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
37617
+ isMonorepoSubProject: true,
37618
+ isTest: true
37619
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
37620
+ isMonorepoSubProject: true,
37621
+ isPublic: true
37622
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
37623
+ isMonorepoSubProject: true,
37624
+ isPublic: false
37625
+ }), _MonorepoNewActionCon);
37626
+ });
37627
+ var init_newAction = __esmMin(() => {
37628
+ init_common3();
37629
+ init_mwa2();
37630
+ init_module2();
37631
+ init_monorepo2();
37632
+ });
37633
+ var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
37634
+ var init_generator = __esmMin(() => {
37635
+ init_common();
37636
+ GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
37637
+ GeneratorSchema = {
37638
+ key: "generator-generator",
37639
+ isObject: true,
37640
+ items: Object.values(GeneratorSchemas)
37641
+ };
37642
+ GeneratorDefaultConfig = {
37643
+ packageManager: PackageManager.Pnpm,
37644
+ language: Language.TS
37645
+ };
37646
+ });
37647
+ var init_expand = __esmMin(() => {
37648
+ init_generator();
37649
+ });
37650
+ var treeshaking_exports2 = {};
37651
+ __export2(treeshaking_exports2, {
37652
+ ActionElement: () => ActionElement,
37653
+ ActionElementText: () => ActionElementText,
37654
+ ActionFunction: () => ActionFunction,
37655
+ ActionFunctionText: () => ActionFunctionText,
37656
+ ActionRefactor: () => ActionRefactor,
37657
+ ActionRefactorText: () => ActionRefactorText,
37658
+ ActionType: () => ActionType,
37659
+ ActionTypeText: () => ActionTypeText,
37660
+ ActionTypeTextMap: () => ActionTypeTextMap,
37661
+ BFFSchema: () => BFFSchema,
37662
+ BFFSchemas: () => BFFSchemas,
37663
+ BFFType: () => BFFType,
37664
+ BFFTypeSchema: () => BFFTypeSchema,
37665
+ BaseDefaultConfig: () => BaseDefaultConfig,
37666
+ BaseGenerator: () => BaseGenerator,
37667
+ BaseSchema: () => BaseSchema,
37668
+ BaseSchemas: () => BaseSchemas,
37669
+ BooleanConfig: () => BooleanConfig,
37670
+ BooleanConfigName: () => BooleanConfigName,
37671
+ BooleanSchemas: () => BooleanSchemas,
37672
+ ChangesetGenerator: () => ChangesetGenerator,
37673
+ ClientRoute: () => ClientRoute,
37674
+ ClientRouteSchema: () => ClientRouteSchema,
37675
+ DependenceGenerator: () => DependenceGenerator,
37676
+ DisableStateManagementSchema: () => DisableStateManagementSchema,
37677
+ ElectronGenerator: () => ElectronGenerator,
37678
+ EnableMWALessSchema: () => EnableMWALessSchema,
37679
+ EnableMWASassSchema: () => EnableMWASassSchema,
37680
+ EnableModuleLessSchema: () => EnableModuleLessSchema,
37681
+ EnableModuleSassSchema: () => EnableModuleSassSchema,
37682
+ EntryGenerator: () => EntryGenerator,
37683
+ EntrySchema: () => EntrySchema,
37684
+ EntrySchemas: () => EntrySchemas,
37685
+ EslintGenerator: () => EslintGenerator,
37686
+ Framework: () => Framework,
37687
+ FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
37688
+ FrameworkSchema: () => FrameworkSchema,
37689
+ GeneratorDefaultConfig: () => GeneratorDefaultConfig,
37690
+ GeneratorSchema: () => GeneratorSchema,
37691
+ Language: () => Language,
37692
+ LanguageName: () => LanguageName,
37693
+ LanguageSchema: () => LanguageSchema,
37694
+ MWAActionElements: () => MWAActionElements,
37695
+ MWAActionFunctions: () => MWAActionFunctions,
37696
+ MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
37697
+ MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
37698
+ MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
37699
+ MWAActionReactors: () => MWAActionReactors,
37700
+ MWAActionTypes: () => MWAActionTypes,
37701
+ MWAActionTypesMap: () => MWAActionTypesMap,
37702
+ MWADefaultBffConfig: () => MWADefaultBffConfig,
37703
+ MWADefaultConfig: () => MWADefaultConfig,
37704
+ MWADefaultEntryConfig: () => MWADefaultEntryConfig,
37705
+ MWADefaultServerConfig: () => MWADefaultServerConfig,
37706
+ MWANewActionGenerators: () => MWANewActionGenerators,
37707
+ MWANewActionSchema: () => MWANewActionSchema,
37708
+ MWASchema: () => MWASchema,
37709
+ MWASchemas: () => MWASchemas,
37710
+ MWASpecialSchemaMap: () => MWASpecialSchemaMap,
37711
+ ModuleActionFunctions: () => ModuleActionFunctions,
37712
+ ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
37713
+ ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
37714
+ ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
37715
+ ModuleActionTypes: () => ModuleActionTypes,
37716
+ ModuleActionTypesMap: () => ModuleActionTypesMap,
37717
+ ModuleDefaultConfig: () => ModuleDefaultConfig,
37718
+ ModuleNewActionGenerators: () => ModuleNewActionGenerators,
37719
+ ModuleNewActionSchema: () => ModuleNewActionSchema,
37720
+ ModuleSchema: () => ModuleSchema,
37721
+ ModuleSchemas: () => ModuleSchemas,
37722
+ ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
37723
+ MonorepoDefaultConfig: () => MonorepoDefaultConfig,
37724
+ MonorepoNewActionConfig: () => MonorepoNewActionConfig,
37725
+ MonorepoNewActionSchema: () => MonorepoNewActionSchema,
37726
+ MonorepoSchema: () => MonorepoSchema,
37727
+ MonorepoSchemas: () => MonorepoSchemas,
37728
+ NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
37729
+ NeedModifyModuleConfigSchema: () => NeedModifyModuleConfigSchema,
37730
+ PackageManager: () => PackageManager,
37731
+ PackageManagerName: () => PackageManagerName,
37732
+ PackageManagerSchema: () => PackageManagerSchema,
37733
+ PackageNameSchema: () => PackageNameSchema,
37734
+ PackagePathSchema: () => PackagePathSchema,
37735
+ RunWay: () => RunWay,
37736
+ RunWaySchema: () => RunWaySchema,
37737
+ ServerSchema: () => ServerSchema,
37738
+ ServerSchemas: () => ServerSchemas,
37739
+ Solution: () => Solution,
37740
+ SolutionDefaultConfig: () => SolutionDefaultConfig,
37741
+ SolutionGenerator: () => SolutionGenerator,
37742
+ SolutionSchema: () => SolutionSchema,
37743
+ SolutionSchemas: () => SolutionSchemas,
37744
+ SolutionText: () => SolutionText,
37745
+ SolutionToolsMap: () => SolutionToolsMap,
37746
+ SubSolution: () => SubSolution,
37747
+ SubSolutionGenerator: () => SubSolutionGenerator,
37748
+ SubSolutionSchema: () => SubSolutionSchema,
37749
+ SubSolutionText: () => SubSolutionText,
37750
+ getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
37751
+ i18n: () => i18n,
37752
+ localeKeys: () => localeKeys,
37753
+ moduleConfigWhenFunc: () => moduleConfigWhenFunc,
37754
+ mwaConfigWhenFunc: () => mwaConfigWhenFunc
37755
+ });
37756
+ var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
37757
+ var init_treeshaking2 = __esmMin(() => {
37758
+ init_defineProperty();
37759
+ init_base();
37760
+ init_common();
37761
+ init_module();
37762
+ init_monorepo();
37763
+ init_mwa();
37764
+ init_locale();
37765
+ init_common();
37766
+ init_newAction();
37767
+ init_mwa();
37768
+ init_module();
37769
+ init_monorepo();
37770
+ init_expand();
37771
+ init_base();
37772
+ SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
37773
+ SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
37774
+ });
37775
+ var require_strip_ansi2 = __commonJSMin((exports) => {
37776
+ "use strict";
37777
+ Object.defineProperty(exports, "__esModule", {
37778
+ value: true
37779
+ });
37780
+ exports.stripAnsi = stripAnsi;
37781
+ function ansiRegex({
37782
+ onlyFirst = false
37783
+ } = {}) {
37784
+ const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
37785
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
37786
+ }
37787
+ function stripAnsi(string) {
37788
+ if (typeof string !== "string") {
37789
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
37790
+ }
37791
+ return string.replace(ansiRegex(), "");
37792
+ }
37793
+ });
36420
37794
  var require_zh = __commonJSMin((exports) => {
36421
37795
  "use strict";
36422
37796
  Object.defineProperty(exports, "__esModule", {
@@ -36466,6 +37840,78 @@ var require_locale = __commonJSMin((exports) => {
36466
37840
  });
36467
37841
  exports.localeKeys = localeKeys3;
36468
37842
  });
37843
+ var require_package = __commonJSMin((exports) => {
37844
+ "use strict";
37845
+ Object.defineProperty(exports, "__esModule", {
37846
+ value: true
37847
+ });
37848
+ exports.getAvailableVersion = getAvailableVersion;
37849
+ exports.isPackageDeprecated = isPackageDeprecated;
37850
+ exports.isPackageExist = isPackageExist;
37851
+ exports.semverDecrease = semverDecrease;
37852
+ var _utils = require_dist();
37853
+ async function isPackageExist(packageName, registry) {
37854
+ if (await (0, _utils.canUseNpm)()) {
37855
+ const args = ["view", packageName, "version"];
37856
+ if (registry) {
37857
+ args.push(`--registry=${registry}`);
37858
+ }
37859
+ const result = await (0, _utils.execa)("npm", args);
37860
+ return (0, _utils.stripAnsi)(result.stdout);
37861
+ }
37862
+ throw new Error("not found npm, please install npm before");
37863
+ }
37864
+ async function isPackageDeprecated(packageName, registry) {
37865
+ if (await (0, _utils.canUseNpm)()) {
37866
+ const args = ["view", packageName, "deprecated"];
37867
+ if (registry) {
37868
+ args.push(`--registry=${registry}`);
37869
+ }
37870
+ const result = await (0, _utils.execa)("npm", args);
37871
+ return (0, _utils.stripAnsi)(result.stdout);
37872
+ }
37873
+ throw new Error("not found npm, please install npm before");
37874
+ }
37875
+ function semverDecrease(version4) {
37876
+ const versionObj = _utils.semver.parse(version4, {
37877
+ loose: true
37878
+ });
37879
+ if (!versionObj) {
37880
+ throw new Error(`Version ${version4} is not valid semver`);
37881
+ }
37882
+ versionObj.build = [];
37883
+ versionObj.prerelease = [];
37884
+ versionObj.patch--;
37885
+ const result = versionObj.format();
37886
+ if (!_utils.semver.valid(result)) {
37887
+ _utils.logger.debug(`Version ${result} is not valid semver`);
37888
+ return version4;
37889
+ }
37890
+ return result;
37891
+ }
37892
+ async function getAvailableVersion(packageName, currentVersion, registry) {
37893
+ let times = 5;
37894
+ let version4 = currentVersion;
37895
+ while (times) {
37896
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
37897
+ version4 = _utils.semver.inc(version4, "patch");
37898
+ times--;
37899
+ continue;
37900
+ }
37901
+ return version4;
37902
+ }
37903
+ times = 5;
37904
+ while (times) {
37905
+ version4 = semverDecrease(version4);
37906
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
37907
+ times--;
37908
+ continue;
37909
+ }
37910
+ return version4;
37911
+ }
37912
+ return currentVersion;
37913
+ }
37914
+ });
36469
37915
  var require_utils = __commonJSMin((exports) => {
36470
37916
  "use strict";
36471
37917
  Object.defineProperty(exports, "__esModule", {
@@ -36484,6 +37930,19 @@ var require_utils = __commonJSMin((exports) => {
36484
37930
  }
36485
37931
  });
36486
37932
  });
37933
+ var _package = require_package();
37934
+ Object.keys(_package).forEach(function(key) {
37935
+ if (key === "default" || key === "__esModule")
37936
+ return;
37937
+ if (key in exports && exports[key] === _package[key])
37938
+ return;
37939
+ Object.defineProperty(exports, key, {
37940
+ enumerable: true,
37941
+ get: function() {
37942
+ return _package[key];
37943
+ }
37944
+ });
37945
+ });
36487
37946
  });
36488
37947
  var require_node = __commonJSMin((exports) => {
36489
37948
  "use strict";
@@ -36493,6 +37952,7 @@ var require_node = __commonJSMin((exports) => {
36493
37952
  var _exportNames = {
36494
37953
  getPackageVersion: true,
36495
37954
  getModernVersion: true,
37955
+ getModernPluginVersion: true,
36496
37956
  getPackageManagerText: true,
36497
37957
  isTsProject: true,
36498
37958
  getPackageObj: true,
@@ -36501,7 +37961,9 @@ var require_node = __commonJSMin((exports) => {
36501
37961
  validatePackagePath: true,
36502
37962
  getModuleProjectPath: true,
36503
37963
  getMWAProjectPath: true,
37964
+ ora: true,
36504
37965
  fs: true,
37966
+ semver: true,
36505
37967
  execa: true,
36506
37968
  readTsConfigByFile: true,
36507
37969
  getPackageManager: true,
@@ -36543,6 +38005,7 @@ var require_node = __commonJSMin((exports) => {
36543
38005
  });
36544
38006
  exports.getAllPackages = getAllPackages;
36545
38007
  exports.getMWAProjectPath = getMWAProjectPath;
38008
+ exports.getModernPluginVersion = getModernPluginVersion;
36546
38009
  exports.getModernVersion = getModernVersion;
36547
38010
  exports.getModuleProjectPath = getModuleProjectPath;
36548
38011
  Object.defineProperty(exports, "getPackageManager", {
@@ -36567,18 +38030,32 @@ var require_node = __commonJSMin((exports) => {
36567
38030
  }
36568
38031
  });
36569
38032
  exports.isTsProject = isTsProject2;
38033
+ Object.defineProperty(exports, "ora", {
38034
+ enumerable: true,
38035
+ get: function() {
38036
+ return _utils.ora;
38037
+ }
38038
+ });
36570
38039
  Object.defineProperty(exports, "readTsConfigByFile", {
36571
38040
  enumerable: true,
36572
38041
  get: function() {
36573
38042
  return _utils.readTsConfigByFile;
36574
38043
  }
36575
38044
  });
38045
+ Object.defineProperty(exports, "semver", {
38046
+ enumerable: true,
38047
+ get: function() {
38048
+ return _utils.semver;
38049
+ }
38050
+ });
36576
38051
  exports.validatePackageName = validatePackageName;
36577
38052
  exports.validatePackagePath = validatePackagePath;
36578
38053
  var _path = _interopRequireDefault(__require("path"));
36579
38054
  var _utils = require_dist();
38055
+ var _generatorCommon = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
36580
38056
  var _stripAnsi = require_strip_ansi2();
36581
38057
  var _locale = require_locale();
38058
+ var _package = require_package();
36582
38059
  var _utils2 = require_utils();
36583
38060
  Object.keys(_utils2).forEach(function(key) {
36584
38061
  if (key === "default" || key === "__esModule")
@@ -36630,16 +38107,39 @@ var require_node = __commonJSMin((exports) => {
36630
38107
  spinner.stop();
36631
38108
  throw new Error("not found npm, please install npm before");
36632
38109
  }
36633
- var SolutionDep = {
36634
- mwa: "@modern-js/app-tools",
36635
- module: "@modern-js/module-tools",
36636
- monorepo: "@modern-js/monorepo-tools"
36637
- };
36638
- async function getModernVersion(solution) {
36639
- const dep = SolutionDep[solution];
36640
- const modernVersion = await getPackageVersion(dep);
38110
+ async function getModernVersion(solution, registry) {
38111
+ const dep = _generatorCommon.SolutionToolsMap[solution];
38112
+ const modernVersion = await getPackageVersion(dep, registry);
36641
38113
  return modernVersion;
36642
38114
  }
38115
+ async function getModernPluginVersion(solution, packageName, options3 = {}) {
38116
+ const {
38117
+ cwd = process.cwd(),
38118
+ registry
38119
+ } = options3;
38120
+ const getLatetPluginVersion = async () => {
38121
+ const version4 = await getPackageVersion(packageName, registry);
38122
+ return version4;
38123
+ };
38124
+ if (!packageName.startsWith("@modern-js")) {
38125
+ return getLatetPluginVersion();
38126
+ }
38127
+ const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
38128
+ paths: [cwd]
38129
+ }), "../../../../", "package.json");
38130
+ if (_utils.fs.existsSync(pkgPath)) {
38131
+ const pkgInfo = _utils.fs.readJSONSync(pkgPath);
38132
+ const modernVersion = pkgInfo.version;
38133
+ if (typeof modernVersion !== "string") {
38134
+ return getLatetPluginVersion();
38135
+ }
38136
+ if (_utils.semver.lt(modernVersion, "1.15.0")) {
38137
+ return getLatetPluginVersion();
38138
+ }
38139
+ return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
38140
+ }
38141
+ return getLatetPluginVersion();
38142
+ }
36643
38143
  function getPackageManagerText(packageManager) {
36644
38144
  return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
36645
38145
  }
@@ -67085,17 +68585,17 @@ var require_logger2 = __commonJSMin((exports) => {
67085
68585
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
67086
68586
  return;
67087
68587
  }
67088
- let label10 = "";
68588
+ let label25 = "";
67089
68589
  let text = "";
67090
68590
  const logType = this.types[type];
67091
68591
  if (this.config.displayLabel && logType.label) {
67092
- label10 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
68592
+ label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
67093
68593
  if (this.config.underlineLabel) {
67094
- label10 = underline(label10).padEnd(this.longestUnderlinedLabel.length + 1);
68594
+ label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
67095
68595
  } else {
67096
- label10 = label10.padEnd(this.longestLabel.length + 1);
68596
+ label25 = label25.padEnd(this.longestLabel.length + 1);
67097
68597
  }
67098
- label10 = logType.color ? chalk_1.default[logType.color](label10) : label10;
68598
+ label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
67099
68599
  }
67100
68600
  if (message instanceof Error) {
67101
68601
  if (message.stack) {
@@ -67111,15 +68611,15 @@ ${grey(rest.join("\n"))}`;
67111
68611
  if (logType.level === "warn" || logType.level === "error") {
67112
68612
  this.retainLog(type, text);
67113
68613
  }
67114
- const log = label10.length > 0 ? `${label10} ${text}` : text;
68614
+ const log = label25.length > 0 ? `${label25} ${text}` : text;
67115
68615
  console.log(log, ...args);
67116
68616
  }
67117
68617
  getLongestLabel() {
67118
68618
  let longestLabel = "";
67119
68619
  Object.keys(this.types).forEach((type) => {
67120
- const { label: label10 = "" } = this.types[type];
67121
- if (label10.length > longestLabel.length) {
67122
- longestLabel = label10;
68620
+ const { label: label25 = "" } = this.types[type];
68621
+ if (label25.length > longestLabel.length) {
68622
+ longestLabel = label25;
67123
68623
  }
67124
68624
  });
67125
68625
  return longestLabel;
@@ -69807,9 +71307,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
69807
71307
  }();
69808
71308
  exports2.BlockStatement = BlockStatement;
69809
71309
  var BreakStatement = function() {
69810
- function BreakStatement2(label10) {
71310
+ function BreakStatement2(label25) {
69811
71311
  this.type = syntax_1.Syntax.BreakStatement;
69812
- this.label = label10;
71312
+ this.label = label25;
69813
71313
  }
69814
71314
  return BreakStatement2;
69815
71315
  }();
@@ -69881,9 +71381,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
69881
71381
  }();
69882
71382
  exports2.ConditionalExpression = ConditionalExpression;
69883
71383
  var ContinueStatement = function() {
69884
- function ContinueStatement2(label10) {
71384
+ function ContinueStatement2(label25) {
69885
71385
  this.type = syntax_1.Syntax.ContinueStatement;
69886
- this.label = label10;
71386
+ this.label = label25;
69887
71387
  }
69888
71388
  return ContinueStatement2;
69889
71389
  }();
@@ -70074,9 +71574,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
70074
71574
  }();
70075
71575
  exports2.ImportSpecifier = ImportSpecifier;
70076
71576
  var LabeledStatement = function() {
70077
- function LabeledStatement2(label10, body) {
71577
+ function LabeledStatement2(label25, body) {
70078
71578
  this.type = syntax_1.Syntax.LabeledStatement;
70079
- this.label = label10;
71579
+ this.label = label25;
70080
71580
  this.body = body;
70081
71581
  }
70082
71582
  return LabeledStatement2;
@@ -72223,38 +73723,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
72223
73723
  Parser2.prototype.parseContinueStatement = function() {
72224
73724
  var node = this.createNode();
72225
73725
  this.expectKeyword("continue");
72226
- var label10 = null;
73726
+ var label25 = null;
72227
73727
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
72228
73728
  var id = this.parseVariableIdentifier();
72229
- label10 = id;
73729
+ label25 = id;
72230
73730
  var key = "$" + id.name;
72231
73731
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
72232
73732
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
72233
73733
  }
72234
73734
  }
72235
73735
  this.consumeSemicolon();
72236
- if (label10 === null && !this.context.inIteration) {
73736
+ if (label25 === null && !this.context.inIteration) {
72237
73737
  this.throwError(messages_1.Messages.IllegalContinue);
72238
73738
  }
72239
- return this.finalize(node, new Node.ContinueStatement(label10));
73739
+ return this.finalize(node, new Node.ContinueStatement(label25));
72240
73740
  };
72241
73741
  Parser2.prototype.parseBreakStatement = function() {
72242
73742
  var node = this.createNode();
72243
73743
  this.expectKeyword("break");
72244
- var label10 = null;
73744
+ var label25 = null;
72245
73745
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
72246
73746
  var id = this.parseVariableIdentifier();
72247
73747
  var key = "$" + id.name;
72248
73748
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
72249
73749
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
72250
73750
  }
72251
- label10 = id;
73751
+ label25 = id;
72252
73752
  }
72253
73753
  this.consumeSemicolon();
72254
- if (label10 === null && !this.context.inIteration && !this.context.inSwitch) {
73754
+ if (label25 === null && !this.context.inIteration && !this.context.inSwitch) {
72255
73755
  this.throwError(messages_1.Messages.IllegalBreak);
72256
73756
  }
72257
- return this.finalize(node, new Node.BreakStatement(label10));
73757
+ return this.finalize(node, new Node.BreakStatement(label25));
72258
73758
  };
72259
73759
  Parser2.prototype.parseReturnStatement = function() {
72260
73760
  if (!this.context.inFunctionBody) {
@@ -75733,7 +77233,7 @@ var require_array = __commonJSMin((exports, module2) => {
75733
77233
  splice(...args) {
75734
77234
  const { length } = this;
75735
77235
  const ret = super.splice(...args);
75736
- let [begin, deleteCount, ...items] = args;
77236
+ let [begin, deleteCount, ...items5] = args;
75737
77237
  if (begin < 0) {
75738
77238
  begin += length;
75739
77239
  }
@@ -75744,7 +77244,7 @@ var require_array = __commonJSMin((exports, module2) => {
75744
77244
  }
75745
77245
  const {
75746
77246
  length: item_length
75747
- } = items;
77247
+ } = items5;
75748
77248
  const offset = item_length - deleteCount;
75749
77249
  const start = begin + deleteCount;
75750
77250
  const count = length - start;
@@ -75771,12 +77271,12 @@ var require_array = __commonJSMin((exports, module2) => {
75771
77271
  move_comments(array, this, begin, before - begin, -begin);
75772
77272
  return array;
75773
77273
  }
75774
- unshift(...items) {
77274
+ unshift(...items5) {
75775
77275
  const { length } = this;
75776
- const ret = super.unshift(...items);
77276
+ const ret = super.unshift(...items5);
75777
77277
  const {
75778
77278
  length: items_length
75779
- } = items;
77279
+ } = items5;
75780
77280
  if (items_length > 0) {
75781
77281
  move_comments(this, this, 0, length, items_length, true);
75782
77282
  }
@@ -75799,14 +77299,14 @@ var require_array = __commonJSMin((exports, module2) => {
75799
77299
  remove_comments(this, this.length);
75800
77300
  return ret;
75801
77301
  }
75802
- concat(...items) {
77302
+ concat(...items5) {
75803
77303
  let { length } = this;
75804
- const ret = super.concat(...items);
75805
- if (!items.length) {
77304
+ const ret = super.concat(...items5);
77305
+ if (!items5.length) {
75806
77306
  return ret;
75807
77307
  }
75808
77308
  move_comments(ret, this, 0, this.length, 0);
75809
- items.forEach((item) => {
77309
+ items5.forEach((item) => {
75810
77310
  const prev = length;
75811
77311
  length += isArray(item) ? item.length : 1;
75812
77312
  if (!(item instanceof CommentArray)) {
@@ -86513,18 +88013,18 @@ var require_parser = __commonJSMin((exports, module2) => {
86513
88013
  }
86514
88014
  return token;
86515
88015
  }
86516
- var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
88016
+ var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
86517
88017
  while (true) {
86518
88018
  state = stack[stack.length - 1];
86519
88019
  if (this.defaultActions[state]) {
86520
- action = this.defaultActions[state];
88020
+ action2 = this.defaultActions[state];
86521
88021
  } else {
86522
88022
  if (symbol === null || typeof symbol == "undefined") {
86523
88023
  symbol = lex();
86524
88024
  }
86525
- action = table[state] && table[state][symbol];
88025
+ action2 = table[state] && table[state][symbol];
86526
88026
  }
86527
- if (typeof action === "undefined" || !action.length || !action[0]) {
88027
+ if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
86528
88028
  var errStr = "";
86529
88029
  if (!recovering) {
86530
88030
  expected = [];
@@ -86540,15 +88040,15 @@ var require_parser = __commonJSMin((exports, module2) => {
86540
88040
  this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
86541
88041
  }
86542
88042
  }
86543
- if (action[0] instanceof Array && action.length > 1) {
88043
+ if (action2[0] instanceof Array && action2.length > 1) {
86544
88044
  throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
86545
88045
  }
86546
- switch (action[0]) {
88046
+ switch (action2[0]) {
86547
88047
  case 1:
86548
88048
  stack.push(symbol);
86549
88049
  vstack.push(this.lexer.yytext);
86550
88050
  lstack.push(this.lexer.yylloc);
86551
- stack.push(action[1]);
88051
+ stack.push(action2[1]);
86552
88052
  symbol = null;
86553
88053
  if (!preErrorSymbol) {
86554
88054
  yyleng = this.lexer.yyleng;
@@ -86563,13 +88063,13 @@ var require_parser = __commonJSMin((exports, module2) => {
86563
88063
  }
86564
88064
  break;
86565
88065
  case 2:
86566
- len = this.productions_[action[1]][1];
88066
+ len = this.productions_[action2[1]][1];
86567
88067
  yyval.$ = vstack[vstack.length - len];
86568
88068
  yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column };
86569
88069
  if (ranges) {
86570
88070
  yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
86571
88071
  }
86572
- r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
88072
+ r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
86573
88073
  if (typeof r !== "undefined") {
86574
88074
  return r;
86575
88075
  }
@@ -86578,7 +88078,7 @@ var require_parser = __commonJSMin((exports, module2) => {
86578
88078
  vstack = vstack.slice(0, -1 * len);
86579
88079
  lstack = lstack.slice(0, -1 * len);
86580
88080
  }
86581
- stack.push(this.productions_[action[1]][0]);
88081
+ stack.push(this.productions_[action2[1]][0]);
86582
88082
  vstack.push(yyval.$);
86583
88083
  lstack.push(yyval._$);
86584
88084
  newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
@@ -90043,11 +91543,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
90043
91543
  var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
90044
91544
  this.push(functionCall);
90045
91545
  },
90046
- itemsSeparatedBy: function itemsSeparatedBy(items, separator) {
91546
+ itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
90047
91547
  var result = [];
90048
- result.push(items[0]);
90049
- for (var i = 1; i < items.length; i++) {
90050
- result.push(separator, items[i]);
91548
+ result.push(items5[0]);
91549
+ for (var i = 1; i < items5.length; i++) {
91550
+ result.push(separator, items5[i]);
90051
91551
  }
90052
91552
  return result;
90053
91553
  },
@@ -95422,8 +96922,8 @@ var require_AsapAction = __commonJSMin((exports) => {
95422
96922
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
95423
96923
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
95424
96924
  }
95425
- if (!scheduler.actions.some(function(action) {
95426
- return action.id === id;
96925
+ if (!scheduler.actions.some(function(action2) {
96926
+ return action2.id === id;
95427
96927
  })) {
95428
96928
  immediateProvider_1.immediateProvider.clearImmediate(id);
95429
96929
  scheduler._scheduled = void 0;
@@ -95496,23 +96996,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
95496
96996
  _this._scheduled = void 0;
95497
96997
  return _this;
95498
96998
  }
95499
- AsyncScheduler2.prototype.flush = function(action) {
96999
+ AsyncScheduler2.prototype.flush = function(action2) {
95500
97000
  var actions = this.actions;
95501
97001
  if (this._active) {
95502
- actions.push(action);
97002
+ actions.push(action2);
95503
97003
  return;
95504
97004
  }
95505
97005
  var error;
95506
97006
  this._active = true;
95507
97007
  do {
95508
- if (error = action.execute(action.state, action.delay)) {
97008
+ if (error = action2.execute(action2.state, action2.delay)) {
95509
97009
  break;
95510
97010
  }
95511
- } while (action = actions.shift());
97011
+ } while (action2 = actions.shift());
95512
97012
  this._active = false;
95513
97013
  if (error) {
95514
- while (action = actions.shift()) {
95515
- action.unsubscribe();
97014
+ while (action2 = actions.shift()) {
97015
+ action2.unsubscribe();
95516
97016
  }
95517
97017
  throw error;
95518
97018
  }
@@ -95552,22 +97052,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
95552
97052
  function AsapScheduler2() {
95553
97053
  return _super !== null && _super.apply(this, arguments) || this;
95554
97054
  }
95555
- AsapScheduler2.prototype.flush = function(action) {
97055
+ AsapScheduler2.prototype.flush = function(action2) {
95556
97056
  this._active = true;
95557
97057
  var flushId = this._scheduled;
95558
97058
  this._scheduled = void 0;
95559
97059
  var actions = this.actions;
95560
97060
  var error;
95561
- action = action || actions.shift();
97061
+ action2 = action2 || actions.shift();
95562
97062
  do {
95563
- if (error = action.execute(action.state, action.delay)) {
97063
+ if (error = action2.execute(action2.state, action2.delay)) {
95564
97064
  break;
95565
97065
  }
95566
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
97066
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
95567
97067
  this._active = false;
95568
97068
  if (error) {
95569
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
95570
- action.unsubscribe();
97069
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
97070
+ action2.unsubscribe();
95571
97071
  }
95572
97072
  throw error;
95573
97073
  }
@@ -95754,8 +97254,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
95754
97254
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
95755
97255
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
95756
97256
  }
95757
- if (!scheduler.actions.some(function(action) {
95758
- return action.id === id;
97257
+ if (!scheduler.actions.some(function(action2) {
97258
+ return action2.id === id;
95759
97259
  })) {
95760
97260
  animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
95761
97261
  scheduler._scheduled = void 0;
@@ -95797,22 +97297,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
95797
97297
  function AnimationFrameScheduler2() {
95798
97298
  return _super !== null && _super.apply(this, arguments) || this;
95799
97299
  }
95800
- AnimationFrameScheduler2.prototype.flush = function(action) {
97300
+ AnimationFrameScheduler2.prototype.flush = function(action2) {
95801
97301
  this._active = true;
95802
97302
  var flushId = this._scheduled;
95803
97303
  this._scheduled = void 0;
95804
97304
  var actions = this.actions;
95805
97305
  var error;
95806
- action = action || actions.shift();
97306
+ action2 = action2 || actions.shift();
95807
97307
  do {
95808
- if (error = action.execute(action.state, action.delay)) {
97308
+ if (error = action2.execute(action2.state, action2.delay)) {
95809
97309
  break;
95810
97310
  }
95811
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
97311
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
95812
97312
  this._active = false;
95813
97313
  if (error) {
95814
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
95815
- action.unsubscribe();
97314
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
97315
+ action2.unsubscribe();
95816
97316
  }
95817
97317
  throw error;
95818
97318
  }
@@ -95878,17 +97378,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
95878
97378
  VirtualTimeScheduler2.prototype.flush = function() {
95879
97379
  var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
95880
97380
  var error;
95881
- var action;
95882
- while ((action = actions[0]) && action.delay <= maxFrames) {
97381
+ var action2;
97382
+ while ((action2 = actions[0]) && action2.delay <= maxFrames) {
95883
97383
  actions.shift();
95884
- this.frame = action.delay;
95885
- if (error = action.execute(action.state, action.delay)) {
97384
+ this.frame = action2.delay;
97385
+ if (error = action2.execute(action2.state, action2.delay)) {
95886
97386
  break;
95887
97387
  }
95888
97388
  }
95889
97389
  if (error) {
95890
- while (action = actions.shift()) {
95891
- action.unsubscribe();
97390
+ while (action2 = actions.shift()) {
97391
+ action2.unsubscribe();
95892
97392
  }
95893
97393
  throw error;
95894
97394
  }
@@ -95920,9 +97420,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
95920
97420
  return _super.prototype.schedule.call(this, state, delay);
95921
97421
  }
95922
97422
  this.active = false;
95923
- var action = new VirtualAction2(this.scheduler, this.work);
95924
- this.add(action);
95925
- return action.schedule(state, delay);
97423
+ var action2 = new VirtualAction2(this.scheduler, this.work);
97424
+ this.add(action2);
97425
+ return action2.schedule(state, delay);
95926
97426
  } else {
95927
97427
  return Subscription_1.Subscription.EMPTY;
95928
97428
  }
@@ -109632,15 +111132,15 @@ var require_ora3 = __commonJSMin((exports, module2) => {
109632
111132
  return new Ora(options3);
109633
111133
  };
109634
111134
  module2.exports = oraFactory;
109635
- module2.exports.promise = (action, options3) => {
109636
- if (typeof action.then !== "function") {
111135
+ module2.exports.promise = (action2, options3) => {
111136
+ if (typeof action2.then !== "function") {
109637
111137
  throw new TypeError("Parameter `action` must be a Promise");
109638
111138
  }
109639
111139
  const spinner = new Ora(options3);
109640
111140
  spinner.start();
109641
111141
  (async () => {
109642
111142
  try {
109643
- await action;
111143
+ await action2;
109644
111144
  spinner.succeed();
109645
111145
  } catch {
109646
111146
  spinner.fail();
@@ -109821,13 +111321,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
109821
111321
  }
109822
111322
  handleSubmitEvents(submit) {
109823
111323
  const self2 = this;
109824
- const validate2 = runAsync(this.opt.validate);
111324
+ const validate4 = runAsync(this.opt.validate);
109825
111325
  const asyncFilter = runAsync(this.opt.filter);
109826
111326
  const validation = submit.pipe(flatMap((value) => {
109827
111327
  this.startSpinner(value, this.opt.filteringText);
109828
111328
  return asyncFilter(value, self2.answers).then((filteredValue) => {
109829
111329
  this.startSpinner(filteredValue, this.opt.validatingText);
109830
- return validate2(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
111330
+ return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
109831
111331
  }, (err) => ({ isValid: err }));
109832
111332
  }), share());
109833
111333
  const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
@@ -129313,8 +130813,8 @@ var require_AsapAction2 = __commonJSMin((exports) => {
129313
130813
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
129314
130814
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
129315
130815
  }
129316
- if (!scheduler.actions.some(function(action) {
129317
- return action.id === id;
130816
+ if (!scheduler.actions.some(function(action2) {
130817
+ return action2.id === id;
129318
130818
  })) {
129319
130819
  immediateProvider_1.immediateProvider.clearImmediate(id);
129320
130820
  scheduler._scheduled = void 0;
@@ -129387,23 +130887,23 @@ var require_AsyncScheduler2 = __commonJSMin((exports) => {
129387
130887
  _this._scheduled = void 0;
129388
130888
  return _this;
129389
130889
  }
129390
- AsyncScheduler2.prototype.flush = function(action) {
130890
+ AsyncScheduler2.prototype.flush = function(action2) {
129391
130891
  var actions = this.actions;
129392
130892
  if (this._active) {
129393
- actions.push(action);
130893
+ actions.push(action2);
129394
130894
  return;
129395
130895
  }
129396
130896
  var error;
129397
130897
  this._active = true;
129398
130898
  do {
129399
- if (error = action.execute(action.state, action.delay)) {
130899
+ if (error = action2.execute(action2.state, action2.delay)) {
129400
130900
  break;
129401
130901
  }
129402
- } while (action = actions.shift());
130902
+ } while (action2 = actions.shift());
129403
130903
  this._active = false;
129404
130904
  if (error) {
129405
- while (action = actions.shift()) {
129406
- action.unsubscribe();
130905
+ while (action2 = actions.shift()) {
130906
+ action2.unsubscribe();
129407
130907
  }
129408
130908
  throw error;
129409
130909
  }
@@ -129443,22 +130943,22 @@ var require_AsapScheduler2 = __commonJSMin((exports) => {
129443
130943
  function AsapScheduler2() {
129444
130944
  return _super !== null && _super.apply(this, arguments) || this;
129445
130945
  }
129446
- AsapScheduler2.prototype.flush = function(action) {
130946
+ AsapScheduler2.prototype.flush = function(action2) {
129447
130947
  this._active = true;
129448
130948
  var flushId = this._scheduled;
129449
130949
  this._scheduled = void 0;
129450
130950
  var actions = this.actions;
129451
130951
  var error;
129452
- action = action || actions.shift();
130952
+ action2 = action2 || actions.shift();
129453
130953
  do {
129454
- if (error = action.execute(action.state, action.delay)) {
130954
+ if (error = action2.execute(action2.state, action2.delay)) {
129455
130955
  break;
129456
130956
  }
129457
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
130957
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
129458
130958
  this._active = false;
129459
130959
  if (error) {
129460
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
129461
- action.unsubscribe();
130960
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
130961
+ action2.unsubscribe();
129462
130962
  }
129463
130963
  throw error;
129464
130964
  }
@@ -129645,8 +131145,8 @@ var require_AnimationFrameAction2 = __commonJSMin((exports) => {
129645
131145
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
129646
131146
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
129647
131147
  }
129648
- if (!scheduler.actions.some(function(action) {
129649
- return action.id === id;
131148
+ if (!scheduler.actions.some(function(action2) {
131149
+ return action2.id === id;
129650
131150
  })) {
129651
131151
  animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
129652
131152
  scheduler._scheduled = void 0;
@@ -129688,22 +131188,22 @@ var require_AnimationFrameScheduler2 = __commonJSMin((exports) => {
129688
131188
  function AnimationFrameScheduler2() {
129689
131189
  return _super !== null && _super.apply(this, arguments) || this;
129690
131190
  }
129691
- AnimationFrameScheduler2.prototype.flush = function(action) {
131191
+ AnimationFrameScheduler2.prototype.flush = function(action2) {
129692
131192
  this._active = true;
129693
131193
  var flushId = this._scheduled;
129694
131194
  this._scheduled = void 0;
129695
131195
  var actions = this.actions;
129696
131196
  var error;
129697
- action = action || actions.shift();
131197
+ action2 = action2 || actions.shift();
129698
131198
  do {
129699
- if (error = action.execute(action.state, action.delay)) {
131199
+ if (error = action2.execute(action2.state, action2.delay)) {
129700
131200
  break;
129701
131201
  }
129702
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
131202
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
129703
131203
  this._active = false;
129704
131204
  if (error) {
129705
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
129706
- action.unsubscribe();
131205
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
131206
+ action2.unsubscribe();
129707
131207
  }
129708
131208
  throw error;
129709
131209
  }
@@ -129769,17 +131269,17 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
129769
131269
  VirtualTimeScheduler2.prototype.flush = function() {
129770
131270
  var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
129771
131271
  var error;
129772
- var action;
129773
- while ((action = actions[0]) && action.delay <= maxFrames) {
131272
+ var action2;
131273
+ while ((action2 = actions[0]) && action2.delay <= maxFrames) {
129774
131274
  actions.shift();
129775
- this.frame = action.delay;
129776
- if (error = action.execute(action.state, action.delay)) {
131275
+ this.frame = action2.delay;
131276
+ if (error = action2.execute(action2.state, action2.delay)) {
129777
131277
  break;
129778
131278
  }
129779
131279
  }
129780
131280
  if (error) {
129781
- while (action = actions.shift()) {
129782
- action.unsubscribe();
131281
+ while (action2 = actions.shift()) {
131282
+ action2.unsubscribe();
129783
131283
  }
129784
131284
  throw error;
129785
131285
  }
@@ -129811,9 +131311,9 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
129811
131311
  return _super.prototype.schedule.call(this, state, delay);
129812
131312
  }
129813
131313
  this.active = false;
129814
- var action = new VirtualAction2(this.scheduler, this.work);
129815
- this.add(action);
129816
- return action.schedule(state, delay);
131314
+ var action2 = new VirtualAction2(this.scheduler, this.work);
131315
+ this.add(action2);
131316
+ return action2.schedule(state, delay);
129817
131317
  } else {
129818
131318
  return Subscription_1.Subscription.EMPTY;
129819
131319
  }
@@ -136171,7 +137671,7 @@ var require_cjs2 = __commonJSMin((exports) => {
136171
137671
  return zipWith_1.zipWith;
136172
137672
  } });
136173
137673
  });
136174
- function _arrayLikeToArray(arr, len) {
137674
+ function _arrayLikeToArray2(arr, len) {
136175
137675
  if (len == null || len > arr.length)
136176
137676
  len = arr.length;
136177
137677
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
@@ -136179,28 +137679,28 @@ function _arrayLikeToArray(arr, len) {
136179
137679
  }
136180
137680
  return arr2;
136181
137681
  }
136182
- var init_arrayLikeToArray = __esmMin(() => {
137682
+ var init_arrayLikeToArray2 = __esmMin(() => {
136183
137683
  });
136184
- function _unsupportedIterableToArray(o, minLen) {
137684
+ function _unsupportedIterableToArray2(o, minLen) {
136185
137685
  if (!o)
136186
137686
  return;
136187
137687
  if (typeof o === "string")
136188
- return _arrayLikeToArray(o, minLen);
137688
+ return _arrayLikeToArray2(o, minLen);
136189
137689
  var n = Object.prototype.toString.call(o).slice(8, -1);
136190
137690
  if (n === "Object" && o.constructor)
136191
137691
  n = o.constructor.name;
136192
137692
  if (n === "Map" || n === "Set")
136193
137693
  return Array.from(o);
136194
137694
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
136195
- return _arrayLikeToArray(o, minLen);
137695
+ return _arrayLikeToArray2(o, minLen);
136196
137696
  }
136197
- var init_unsupportedIterableToArray = __esmMin(() => {
136198
- init_arrayLikeToArray();
137697
+ var init_unsupportedIterableToArray2 = __esmMin(() => {
137698
+ init_arrayLikeToArray2();
136199
137699
  });
136200
137700
  function _createForOfIteratorHelper(o, allowArrayLike) {
136201
137701
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
136202
137702
  if (!it) {
136203
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
137703
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length === "number") {
136204
137704
  if (it)
136205
137705
  o = it;
136206
137706
  var i = 0;
@@ -136252,7 +137752,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
136252
137752
  };
136253
137753
  }
136254
137754
  var init_createForOfIteratorHelper = __esmMin(() => {
136255
- init_unsupportedIterableToArray();
137755
+ init_unsupportedIterableToArray2();
136256
137756
  });
136257
137757
  function _defineProperty2(obj, key, value) {
136258
137758
  if (key in obj) {
@@ -136269,7 +137769,7 @@ function _defineProperty2(obj, key, value) {
136269
137769
  }
136270
137770
  var init_defineProperty2 = __esmMin(() => {
136271
137771
  });
136272
- function ownKeys(object, enumerableOnly) {
137772
+ function ownKeys2(object, enumerableOnly) {
136273
137773
  var keys = Object.keys(object);
136274
137774
  if (Object.getOwnPropertySymbols) {
136275
137775
  var symbols = Object.getOwnPropertySymbols(object);
@@ -136279,18 +137779,18 @@ function ownKeys(object, enumerableOnly) {
136279
137779
  }
136280
137780
  return keys;
136281
137781
  }
136282
- function _objectSpread2(target) {
137782
+ function _objectSpread22(target) {
136283
137783
  for (var i = 1; i < arguments.length; i++) {
136284
137784
  var source = arguments[i] != null ? arguments[i] : {};
136285
- i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
137785
+ i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
136286
137786
  _defineProperty2(target, key, source[key]);
136287
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
137787
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
136288
137788
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
136289
137789
  });
136290
137790
  }
136291
137791
  return target;
136292
137792
  }
136293
- var init_objectSpread2 = __esmMin(() => {
137793
+ var init_objectSpread22 = __esmMin(() => {
136294
137794
  init_defineProperty2();
136295
137795
  });
136296
137796
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -136421,32 +137921,32 @@ var init_constant = __esmMin(() => {
136421
137921
  SCHEMA_SHOULD_NOT_BE_EMPTY: "schema should not be empty"
136422
137922
  };
136423
137923
  });
136424
- function _arrayWithoutHoles(arr) {
137924
+ function _arrayWithoutHoles2(arr) {
136425
137925
  if (Array.isArray(arr))
136426
- return _arrayLikeToArray(arr);
137926
+ return _arrayLikeToArray2(arr);
136427
137927
  }
136428
- var init_arrayWithoutHoles = __esmMin(() => {
136429
- init_arrayLikeToArray();
137928
+ var init_arrayWithoutHoles2 = __esmMin(() => {
137929
+ init_arrayLikeToArray2();
136430
137930
  });
136431
- function _iterableToArray(iter) {
137931
+ function _iterableToArray2(iter) {
136432
137932
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
136433
137933
  return Array.from(iter);
136434
137934
  }
136435
- var init_iterableToArray = __esmMin(() => {
137935
+ var init_iterableToArray2 = __esmMin(() => {
136436
137936
  });
136437
- function _nonIterableSpread() {
137937
+ function _nonIterableSpread2() {
136438
137938
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
136439
137939
  }
136440
- var init_nonIterableSpread = __esmMin(() => {
137940
+ var init_nonIterableSpread2 = __esmMin(() => {
136441
137941
  });
136442
- function _toConsumableArray(arr) {
136443
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
137942
+ function _toConsumableArray2(arr) {
137943
+ return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _unsupportedIterableToArray2(arr) || _nonIterableSpread2();
136444
137944
  }
136445
- var init_toConsumableArray = __esmMin(() => {
136446
- init_arrayWithoutHoles();
136447
- init_iterableToArray();
136448
- init_unsupportedIterableToArray();
136449
- init_nonIterableSpread();
137945
+ var init_toConsumableArray2 = __esmMin(() => {
137946
+ init_arrayWithoutHoles2();
137947
+ init_iterableToArray2();
137948
+ init_unsupportedIterableToArray2();
137949
+ init_nonIterableSpread2();
136450
137950
  });
136451
137951
  var require_mergeWith3 = __commonJSMin((exports, module2) => {
136452
137952
  var baseMerge = require_baseMerge();
@@ -136458,13 +137958,13 @@ var require_mergeWith3 = __commonJSMin((exports, module2) => {
136458
137958
  });
136459
137959
  var import_mergeWith, import_isArray, mergeObjWithCombineArray, toBoolean, booleanToString;
136460
137960
  var init_tools = __esmMin(() => {
136461
- init_toConsumableArray();
137961
+ init_toConsumableArray2();
136462
137962
  import_mergeWith = __toESM2(require_mergeWith3());
136463
137963
  import_isArray = __toESM2(require_isArray());
136464
137964
  mergeObjWithCombineArray = function mergeObjWithCombineArray2(src, obj) {
136465
137965
  var customizer = function customizer2(objValue, srcValue) {
136466
137966
  if ((0, import_isArray.default)(objValue)) {
136467
- return [].concat(_toConsumableArray(srcValue), _toConsumableArray(objValue));
137967
+ return [].concat(_toConsumableArray2(srcValue), _toConsumableArray2(objValue));
136468
137968
  }
136469
137969
  return void 0;
136470
137970
  };
@@ -136526,7 +138026,7 @@ var init_stateField = __esmMin(() => {
136526
138026
  if (typeof value.action === "function") {
136527
138027
  schema.state.value = {
136528
138028
  effectedByFields: value.effectedByFields,
136529
- action: function action(data, lastValue) {
138029
+ action: function action2(data, lastValue) {
136530
138030
  return value.action(data, lastValue || initValue);
136531
138031
  }
136532
138032
  };
@@ -136733,7 +138233,7 @@ var init_keyField = __esmMin(() => {
136733
138233
  });
136734
138234
  var fieldValue, getSchemaLabel, getSchemaDisabled, getSchemaType, getSchemaDefaultState, getNodeInfo;
136735
138235
  var init_nodeInfo = __esmMin(() => {
136736
- init_objectSpread2();
138236
+ init_objectSpread22();
136737
138237
  fieldValue = function fieldValue2(key, schema, data, extra) {
136738
138238
  if (schema[key] && typeof schema[key] === "function") {
136739
138239
  return schema[key](data, extra);
@@ -136770,7 +138270,7 @@ var init_nodeInfo = __esmMin(() => {
136770
138270
  return schema.state;
136771
138271
  };
136772
138272
  getNodeInfo = function getNodeInfo2(schema, data, extra) {
136773
- return _objectSpread2(_objectSpread2({
138273
+ return _objectSpread22(_objectSpread22({
136774
138274
  label: getSchemaLabel(schema, data, extra),
136775
138275
  state: schema.state,
136776
138276
  formState: data,
@@ -136844,8 +138344,8 @@ var init_checkSchema = __esmMin(() => {
136844
138344
  };
136845
138345
  checkRepeatItems = function checkRepeatItems2(schema, extra) {
136846
138346
  if (schema.items && schema.items.length > 0) {
136847
- var items = getItems(schema, {}, extra);
136848
- var keys = items.map(function(x) {
138347
+ var items5 = getItems(schema, {}, extra);
138348
+ var keys = items5.map(function(x) {
136849
138349
  return x.key;
136850
138350
  });
136851
138351
  var tmp = [];
@@ -136889,7 +138389,7 @@ var init_checkSchema = __esmMin(() => {
136889
138389
  var _excluded, BaseReader;
136890
138390
  var init_baseReader = __esmMin(() => {
136891
138391
  init_createForOfIteratorHelper();
136892
- init_objectSpread2();
138392
+ init_objectSpread22();
136893
138393
  init_objectWithoutProperties();
136894
138394
  init_typeof();
136895
138395
  init_classCallCheck2();
@@ -137027,9 +138527,9 @@ var init_baseReader = __esmMin(() => {
137027
138527
  initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
137028
138528
  }
137029
138529
  if (_schema.items) {
137030
- var items = getItems(_schema, _this.data, _this.extra);
137031
- items.forEach(function(each) {
137032
- return readDefaultValue2(each, items.map(function(x) {
138530
+ var items5 = getItems(_schema, _this.data, _this.extra);
138531
+ items5.forEach(function(each) {
138532
+ return readDefaultValue2(each, items5.map(function(x) {
137033
138533
  return x.key;
137034
138534
  }), false);
137035
138535
  });
@@ -137047,7 +138547,7 @@ var init_baseReader = __esmMin(() => {
137047
138547
  if (!isEffectedValue(val)) {
137048
138548
  return val;
137049
138549
  }
137050
- var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
138550
+ var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
137051
138551
  if (isRoot) {
137052
138552
  throw Error("[".concat(schema.key, "] top level should not have effects"));
137053
138553
  }
@@ -137057,9 +138557,9 @@ var init_baseReader = __esmMin(() => {
137057
138557
  if (curNodeEffectedByFields.length === 0) {
137058
138558
  return rest;
137059
138559
  }
137060
- return _objectSpread2({
138560
+ return _objectSpread22({
137061
138561
  effectedByFields: curNodeEffectedByFields,
137062
- action
138562
+ action: action2
137063
138563
  }, rest);
137064
138564
  };
137065
138565
  return handleEffects(state.value);
@@ -137468,7 +138968,7 @@ var init_graph = __esmMin(() => {
137468
138968
  var CycleEffectError, EffectUtil;
137469
138969
  var init_effectUtil = __esmMin(() => {
137470
138970
  init_createForOfIteratorHelper();
137471
- init_objectSpread2();
138971
+ init_objectSpread22();
137472
138972
  init_defineProperty2();
137473
138973
  init_createClass2();
137474
138974
  init_classCallCheck2();
@@ -137502,12 +139002,12 @@ var init_effectUtil = __esmMin(() => {
137502
139002
  roots.forEach(function(root) {
137503
139003
  result[root.data.key] = root.data.value;
137504
139004
  });
137505
- return _objectSpread2(_objectSpread2({}, result), _this2.doGetEffectedValue(result, roots));
139005
+ return _objectSpread22(_objectSpread22({}, result), _this2.doGetEffectedValue(result, roots));
137506
139006
  });
137507
139007
  _defineProperty2(this, "getEffectedValue", function(value, formData) {
137508
139008
  var keys = Object.keys(value);
137509
139009
  var rootNodes = _this2.graph.getNodesByKeys(keys);
137510
- return _this2.doGetEffectedValue(_objectSpread2(_objectSpread2({}, formData), value), rootNodes);
139010
+ return _this2.doGetEffectedValue(_objectSpread22(_objectSpread22({}, formData), value), rootNodes);
137511
139011
  });
137512
139012
  _defineProperty2(this, "doGetEffectedValue", function(formData, rootNodes) {
137513
139013
  var result = {};
@@ -137623,8 +139123,8 @@ var init_effectUtil = __esmMin(() => {
137623
139123
  return EffectUtil2;
137624
139124
  }();
137625
139125
  });
137626
- var treeshaking_exports2 = {};
137627
- __export2(treeshaking_exports2, {
139126
+ var treeshaking_exports3 = {};
139127
+ __export2(treeshaking_exports3, {
137628
139128
  BaseReader: () => BaseReader,
137629
139129
  EffectUtil: () => EffectUtil,
137630
139130
  MESSAGE: () => MESSAGE,
@@ -137653,7 +139153,7 @@ __export2(treeshaking_exports2, {
137653
139153
  setSchemaInitValue: () => setSchemaInitValue,
137654
139154
  toBoolean: () => toBoolean
137655
139155
  });
137656
- var init_treeshaking2 = __esmMin(() => {
139156
+ var init_treeshaking3 = __esmMin(() => {
137657
139157
  init_baseReader();
137658
139158
  init_types();
137659
139159
  init_constant();
@@ -137685,7 +139185,7 @@ var require_baseCliReader = __commonJSMin((exports) => {
137685
139185
  value: true
137686
139186
  });
137687
139187
  exports.BaseCliReader = void 0;
137688
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
139188
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
137689
139189
  var _constant = require_constant2();
137690
139190
  function ownKeys3(object, enumerableOnly) {
137691
139191
  var keys = Object.keys(object);
@@ -137863,7 +139363,7 @@ var require_utils9 = __commonJSMin((exports) => {
137863
139363
  value: true
137864
139364
  });
137865
139365
  exports.toPromiseQuestionHandlerLoop = exports.toPromiseQuestionHandler = exports.getWhen = exports.getValidate = exports.getTransformer = exports.getQuestion = exports.getMessage = exports.getFilter = exports.getDefaultValue = exports.getChoices = void 0;
137866
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
139366
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
137867
139367
  function ownKeys3(object, enumerableOnly) {
137868
139368
  var keys = Object.keys(object);
137869
139369
  if (Object.getOwnPropertySymbols) {
@@ -138043,7 +139543,7 @@ var require_utils9 = __commonJSMin((exports) => {
138043
139543
  }, choices);
138044
139544
  };
138045
139545
  exports.getQuestion = getQuestion;
138046
- var when3 = (schema, answers, extra) => {
139546
+ var when8 = (schema, answers, extra) => {
138047
139547
  if (schema.when && typeof schema.when === "function") {
138048
139548
  return schema.when(answers, extra);
138049
139549
  }
@@ -138069,7 +139569,7 @@ var require_utils9 = __commonJSMin((exports) => {
138069
139569
  });
138070
139570
  return (answers) => {
138071
139571
  try {
138072
- if (!when3(schema, answers, nodeInfo.extra)) {
139572
+ if (!when8(schema, answers, nodeInfo.extra)) {
138073
139573
  return Promise.resolve(true);
138074
139574
  }
138075
139575
  const question = getQuestion({
@@ -138689,7 +140189,7 @@ var require_node6 = __commonJSMin((exports) => {
138689
140189
  }
138690
140190
  });
138691
140191
  });
138692
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
140192
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
138693
140193
  Object.keys(_easyFormCore).forEach(function(key) {
138694
140194
  if (key === "default" || key === "__esModule")
138695
140195
  return;
@@ -138727,18 +140227,18 @@ var require_transformSchema = __commonJSMin((exports) => {
138727
140227
  schemaItem.label = schemaItem.state.cliLabel;
138728
140228
  }
138729
140229
  const {
138730
- when: when3,
138731
- validate: validate2
140230
+ when: when8,
140231
+ validate: validate4
138732
140232
  } = schemaItem;
138733
140233
  schemaItem.when = (values, extra) => {
138734
140234
  if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
138735
140235
  return false;
138736
140236
  }
138737
- return when3 ? when3(values, extra) : true;
140237
+ return when8 ? when8(values, extra) : true;
138738
140238
  };
138739
140239
  schemaItem.validate = async (value, data, extra) => {
138740
- if (validate2) {
138741
- const result = await validate2(value, data, extra);
140240
+ if (validate4) {
140241
+ const result = await validate4(value, data, extra);
138742
140242
  if (!result.success) {
138743
140243
  return result;
138744
140244
  }
@@ -139616,12 +141116,12 @@ var import_lodash3;
139616
141116
  var init_utils3 = __esmMin(() => {
139617
141117
  import_lodash3 = __toESM2(require_lodash3());
139618
141118
  });
139619
- var treeshaking_exports3 = {};
139620
- __export2(treeshaking_exports3, {
141119
+ var treeshaking_exports4 = {};
141120
+ __export2(treeshaking_exports4, {
139621
141121
  I18n: () => I18n2
139622
141122
  });
139623
141123
  var import_lodash4, I18n2;
139624
- var init_treeshaking3 = __esmMin(() => {
141124
+ var init_treeshaking4 = __esmMin(() => {
139625
141125
  init_classCallCheck();
139626
141126
  init_createClass();
139627
141127
  init_defineProperty();
@@ -139780,7 +141280,7 @@ var require_locale2 = __commonJSMin((exports) => {
139780
141280
  }
139781
141281
  });
139782
141282
  exports.localeKeys = exports.i18n = void 0;
139783
- var _pluginI18n = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
141283
+ var _pluginI18n = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
139784
141284
  var _zh = require_zh2();
139785
141285
  var _en = require_en2();
139786
141286
  var i18n3 = new _pluginI18n.I18n();
@@ -140996,453 +142496,7 @@ var import_generator_utils2 = __toESM2(require_node());
140996
142496
  var import_codesmith_api_app = __toESM2(require_node8());
140997
142497
  var import_codesmith_api_json = __toESM2(require_node9());
140998
142498
  var import_codesmith_api_handlebars = __toESM2(require_node5());
140999
- init_defineProperty();
141000
- init_treeshaking();
141001
- var ZH_LOCALE = {
141002
- solution: {
141003
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
141004
- mwa: "\u5E94\u7528",
141005
- module: "\u6A21\u5757",
141006
- monorepo: "Monorepo",
141007
- custom: "\u81EA\u5B9A\u4E49",
141008
- "default": "\u9ED8\u8BA4"
141009
- },
141010
- scenes: {
141011
- self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
141012
- },
141013
- sub_solution: {
141014
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
141015
- mwa: "\u5E94\u7528",
141016
- mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
141017
- module: "\u6A21\u5757",
141018
- inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
141019
- },
141020
- action: {
141021
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
141022
- "function": {
141023
- self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
141024
- tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
141025
- less: "\u542F\u7528 Less \u652F\u6301",
141026
- sass: "\u542F\u7528 Sass \u652F\u6301",
141027
- bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
141028
- micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
141029
- electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
141030
- i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
141031
- test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
141032
- e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
141033
- doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
141034
- storybook: "\u542F\u7528\u300CStorybook\u300D",
141035
- runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
141036
- mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
141037
- ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
141038
- polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
141039
- proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
141040
- },
141041
- element: {
141042
- self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
141043
- entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
141044
- server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
141045
- },
141046
- refactor: {
141047
- self: "\u81EA\u52A8\u91CD\u6784",
141048
- bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
141049
- }
141050
- },
141051
- "boolean": {
141052
- yes: "\u662F",
141053
- no: "\u5426"
141054
- },
141055
- language: {
141056
- self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
141057
- },
141058
- packageManager: {
141059
- self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
141060
- },
141061
- runWay: {
141062
- self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
141063
- no: "\u4E0D\u9700\u8981",
141064
- electron: "Electron"
141065
- },
141066
- needModifyConfig: {
141067
- self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
141068
- enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
141069
- enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
141070
- },
141071
- entry: {
141072
- name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
141073
- no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
141074
- no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
141075
- needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
141076
- disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
141077
- clientRoute: {
141078
- self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
141079
- selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
141080
- conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
141081
- no: "\u4E0D\u542F\u7528"
141082
- }
141083
- },
141084
- packageName: {
141085
- self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
141086
- sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
141087
- no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
141088
- },
141089
- packagePath: {
141090
- self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
141091
- no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
141092
- format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
141093
- },
141094
- framework: {
141095
- self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
141096
- egg: "Egg",
141097
- express: "Express",
141098
- koa: "Koa",
141099
- nest: "Nest"
141100
- },
141101
- bff: {
141102
- bffType: {
141103
- self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
141104
- func: "\u51FD\u6570\u6A21\u5F0F",
141105
- framework: "\u6846\u67B6\u6A21\u5F0F"
141106
- }
141107
- }
141108
- };
141109
- var EN_LOCALE = {
141110
- solution: {
141111
- self: "Please select the solution you want to create",
141112
- mwa: "MWA Solution",
141113
- module: "Module Solution",
141114
- monorepo: "Monorepo Solution",
141115
- custom: "Custom Solution",
141116
- "default": "Default"
141117
- },
141118
- scenes: {
141119
- self: "Please select the scene you want to create"
141120
- },
141121
- sub_solution: {
141122
- self: "Please select the solution you want to create",
141123
- mwa: "MWA Solution",
141124
- mwa_test: "MWA Solution(Test)",
141125
- module: "Module Solution",
141126
- inner_module: "Module Solution(Inner)",
141127
- monorepo: "Monorepo Solution"
141128
- },
141129
- action: {
141130
- self: "Action",
141131
- "function": {
141132
- self: "Enable features",
141133
- tailwindcss: "Enable Tailwind CSS",
141134
- less: "Enable Less",
141135
- sass: "Enable Sass",
141136
- bff: "Enable BFF",
141137
- micro_frontend: "Enable Micro Frontend",
141138
- electron: "Enable Electron",
141139
- i18n: "Enable Internationalization (i18n)",
141140
- test: "Enable Unit Test / Integration Test",
141141
- e2e_test: "Enable E2E Test",
141142
- doc: "Enable Document Station",
141143
- storybook: "Enable Storybook",
141144
- runtime_api: "Enable Runtime API",
141145
- mwa_storybook: "Enable Visual Testing (Storybook)",
141146
- ssg: "Enable SSG",
141147
- polyfill: "Enable UA-based Polyfill Feature",
141148
- proxy: "Enable Global Proxy"
141149
- },
141150
- element: {
141151
- self: "Create project element",
141152
- entry: 'New "entry"',
141153
- server: 'New "Server Custom" source code directory'
141154
- },
141155
- refactor: {
141156
- self: "Automatic refactor",
141157
- bff_to_app: "Transform BFF to frame mode"
141158
- }
141159
- },
141160
- "boolean": {
141161
- yes: "Yes",
141162
- no: "No"
141163
- },
141164
- language: {
141165
- self: "Development Language"
141166
- },
141167
- packageManager: {
141168
- self: "Package Management Tool"
141169
- },
141170
- packageName: {
141171
- self: "Package Name",
141172
- sub_name: "Package Name",
141173
- no_empty: "The package name cannot be empty!"
141174
- },
141175
- packagePath: {
141176
- self: "Package Path",
141177
- no_empty: "The package path cannot be empty!",
141178
- format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
141179
- },
141180
- runWay: {
141181
- self: "Do you need to support the following types of applications",
141182
- no: "Not Enabled",
141183
- electron: "Electron"
141184
- },
141185
- needModifyConfig: {
141186
- self: "Modify the Default Configuration?",
141187
- enableLess: "Enable Less?",
141188
- enableSass: "Enable Sass?"
141189
- },
141190
- entry: {
141191
- name: "Entry name",
141192
- no_empty: "The entry name cannot be empty!",
141193
- no_pages: 'The entry name cannot be "pages"!',
141194
- disableStateManagement: "Disable App State Management?",
141195
- clientRoute: {
141196
- self: "Client Routing",
141197
- selfControlRoute: "Enable Self Control Route",
141198
- conventionalRoute: "Enable Conventional Route",
141199
- no: "Not Enabled"
141200
- }
141201
- },
141202
- framework: {
141203
- self: "Please select the framework you want to use",
141204
- egg: "Egg",
141205
- express: "Express",
141206
- koa: "Koa",
141207
- nest: "Nest"
141208
- },
141209
- bff: {
141210
- bffType: {
141211
- self: "BFF Type",
141212
- func: "Function",
141213
- framework: "Framework"
141214
- }
141215
- }
141216
- };
141217
- var i18n = new I18n();
141218
- var localeKeys = i18n.init("zh", {
141219
- zh: ZH_LOCALE,
141220
- en: EN_LOCALE
141221
- });
141222
- var _BooleanConfigName;
141223
- var BooleanConfig;
141224
- (function(BooleanConfig2) {
141225
- BooleanConfig2["NO"] = "no";
141226
- BooleanConfig2["YES"] = "yes";
141227
- })(BooleanConfig || (BooleanConfig = {}));
141228
- var BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
141229
- return i18n.t(localeKeys["boolean"].no);
141230
- }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
141231
- return i18n.t(localeKeys["boolean"].yes);
141232
- }), _BooleanConfigName);
141233
- var BooleanSchemas = [{
141234
- key: BooleanConfig.NO,
141235
- label: BooleanConfigName[BooleanConfig.NO]
141236
- }, {
141237
- key: BooleanConfig.YES,
141238
- label: BooleanConfigName[BooleanConfig.YES]
141239
- }];
141240
- init_defineProperty();
141241
- function ownKeys2(object, enumerableOnly) {
141242
- var keys = Object.keys(object);
141243
- if (Object.getOwnPropertySymbols) {
141244
- var symbols = Object.getOwnPropertySymbols(object);
141245
- enumerableOnly && (symbols = symbols.filter(function(sym) {
141246
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
141247
- })), keys.push.apply(keys, symbols);
141248
- }
141249
- return keys;
141250
- }
141251
- function _objectSpread22(target) {
141252
- for (var i = 1; i < arguments.length; i++) {
141253
- var source = arguments[i] != null ? arguments[i] : {};
141254
- i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
141255
- _defineProperty(target, key, source[key]);
141256
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
141257
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
141258
- });
141259
- }
141260
- return target;
141261
- }
141262
- var EnableLessSchema = {
141263
- key: "enableLess",
141264
- type: ["string"],
141265
- label: function label() {
141266
- return i18n.t(localeKeys.needModifyConfig.enableLess);
141267
- },
141268
- mutualExclusion: true,
141269
- state: {
141270
- value: BooleanConfig.NO
141271
- },
141272
- items: BooleanSchemas
141273
- };
141274
- var EnableSassSchema = {
141275
- key: "enableSass",
141276
- type: ["string"],
141277
- label: function label2() {
141278
- return i18n.t(localeKeys.needModifyConfig.enableSass);
141279
- },
141280
- mutualExclusion: true,
141281
- state: {
141282
- value: BooleanConfig.NO
141283
- },
141284
- items: BooleanSchemas
141285
- };
141286
- init_defineProperty();
141287
- var _FrameworkAppendTypeC;
141288
- var mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
141289
- return values.needModifyMWAConfig === BooleanConfig.YES;
141290
- };
141291
- var RunWay;
141292
- (function(RunWay2) {
141293
- RunWay2["No"] = "no";
141294
- RunWay2["Electron"] = "electron";
141295
- })(RunWay || (RunWay = {}));
141296
- var RunWaySchema = {
141297
- key: "runWay",
141298
- type: ["string"],
141299
- label: function label3() {
141300
- return i18n.t(localeKeys.runWay.self);
141301
- },
141302
- mutualExclusion: true,
141303
- when: function when(_, extra) {
141304
- return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
141305
- },
141306
- state: {
141307
- value: RunWay.No
141308
- },
141309
- items: Object.values(RunWay).map(function(runWay) {
141310
- return {
141311
- key: runWay,
141312
- label: function label10() {
141313
- return i18n.t(localeKeys.runWay[runWay]);
141314
- }
141315
- };
141316
- })
141317
- };
141318
- var ClientRoute;
141319
- (function(ClientRoute2) {
141320
- ClientRoute2["SelfControlRoute"] = "selfControlRoute";
141321
- ClientRoute2["ConventionalRoute"] = "conventionalRoute";
141322
- ClientRoute2["No"] = "no";
141323
- })(ClientRoute || (ClientRoute = {}));
141324
- var ClientRouteSchema = {
141325
- key: "clientRoute",
141326
- type: ["string"],
141327
- label: function label4() {
141328
- return i18n.t(localeKeys.entry.clientRoute.self);
141329
- },
141330
- mutualExclusion: true,
141331
- when: mwaConfigWhenFunc,
141332
- state: {
141333
- value: ClientRoute.SelfControlRoute
141334
- },
141335
- items: Object.values(ClientRoute).map(function(clientRoute) {
141336
- return {
141337
- key: clientRoute,
141338
- label: function label10() {
141339
- return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
141340
- }
141341
- };
141342
- })
141343
- };
141344
- var DisableStateManagementSchema = {
141345
- key: "disableStateManagement",
141346
- type: ["string"],
141347
- label: function label5() {
141348
- return i18n.t(localeKeys.entry.disableStateManagement);
141349
- },
141350
- mutualExclusion: true,
141351
- when: mwaConfigWhenFunc,
141352
- state: {
141353
- value: BooleanConfig.NO
141354
- },
141355
- items: BooleanSchemas
141356
- };
141357
- var EnableMWALessSchema = _objectSpread22(_objectSpread22({}, EnableLessSchema), {}, {
141358
- when: mwaConfigWhenFunc
141359
- });
141360
- var EnableMWASassSchema = _objectSpread22(_objectSpread22({}, EnableSassSchema), {}, {
141361
- when: mwaConfigWhenFunc
141362
- });
141363
- var NeedModifyMWAConfigSchema = {
141364
- key: "needModifyMWAConfig",
141365
- label: function label6() {
141366
- return i18n.t(localeKeys.needModifyConfig.self);
141367
- },
141368
- type: ["string"],
141369
- mutualExclusion: true,
141370
- state: {
141371
- value: BooleanConfig.NO
141372
- },
141373
- items: BooleanSchemas
141374
- };
141375
- var Framework;
141376
- (function(Framework2) {
141377
- Framework2["Express"] = "express";
141378
- Framework2["Koa"] = "koa";
141379
- Framework2["Egg"] = "egg";
141380
- Framework2["Nest"] = "nest";
141381
- })(Framework || (Framework = {}));
141382
- var FrameworkSchema = {
141383
- key: "framework",
141384
- type: ["string"],
141385
- label: function label7() {
141386
- return i18n.t(localeKeys.framework.self);
141387
- },
141388
- mutualExclusion: true,
141389
- items: Object.values(Framework).map(function(framework) {
141390
- return {
141391
- key: framework,
141392
- label: function label10() {
141393
- return i18n.t(localeKeys.framework[framework]);
141394
- }
141395
- };
141396
- })
141397
- };
141398
- var FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
141399
- var EntryNameSchema = {
141400
- key: "name",
141401
- type: ["string"],
141402
- label: function label8() {
141403
- return i18n.t(localeKeys.entry.name);
141404
- },
141405
- state: {
141406
- value: "entry"
141407
- },
141408
- validate: function validate(value) {
141409
- if (!value) {
141410
- return {
141411
- success: false,
141412
- error: i18n.t(localeKeys.entry.no_empty)
141413
- };
141414
- }
141415
- if (value === "pages") {
141416
- return {
141417
- success: false,
141418
- error: i18n.t(localeKeys.entry.no_pages)
141419
- };
141420
- }
141421
- return {
141422
- success: true
141423
- };
141424
- },
141425
- when: function when2(_values, extra) {
141426
- if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
141427
- return false;
141428
- }
141429
- return true;
141430
- }
141431
- };
141432
- var EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema];
141433
- var EntrySchema = {
141434
- key: "entry",
141435
- label: function label9() {
141436
- return i18n.t(localeKeys.action.element.entry);
141437
- },
141438
- isObject: true,
141439
- items: EntrySchemas
141440
- };
141441
- var MWADefaultEntryConfig = {
141442
- needModifyMWAConfig: BooleanConfig.NO,
141443
- clientRoute: ClientRoute.SelfControlRoute,
141444
- disableStateManagement: BooleanConfig.NO
141445
- };
142499
+ init_treeshaking2();
141446
142500
  var import_generator_utils = __toESM2(require_node());
141447
142501
  function isEmptySource(appDir, entriesDir) {
141448
142502
  let files;