@modern-js/base-generator 3.1.16 → 3.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +309 -481
- package/package.json +8 -9
package/dist/index.js
CHANGED
|
@@ -84360,6 +84360,79 @@ var require_lodash3 = __commonJS({
|
|
|
84360
84360
|
}
|
|
84361
84361
|
});
|
|
84362
84362
|
|
|
84363
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
84364
|
+
var require_export_star = __commonJS({
|
|
84365
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
84366
|
+
"use strict";
|
|
84367
|
+
exports._ = exports._export_star = _export_star;
|
|
84368
|
+
function _export_star(from, to) {
|
|
84369
|
+
Object.keys(from).forEach(function(k) {
|
|
84370
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
84371
|
+
Object.defineProperty(to, k, {
|
|
84372
|
+
enumerable: true,
|
|
84373
|
+
get: function() {
|
|
84374
|
+
return from[k];
|
|
84375
|
+
}
|
|
84376
|
+
});
|
|
84377
|
+
}
|
|
84378
|
+
});
|
|
84379
|
+
return from;
|
|
84380
|
+
}
|
|
84381
|
+
}
|
|
84382
|
+
});
|
|
84383
|
+
|
|
84384
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
84385
|
+
var require_interop_require_default = __commonJS({
|
|
84386
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
84387
|
+
"use strict";
|
|
84388
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
84389
|
+
function _interop_require_default(obj) {
|
|
84390
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
84391
|
+
}
|
|
84392
|
+
}
|
|
84393
|
+
});
|
|
84394
|
+
|
|
84395
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
84396
|
+
var require_interop_require_wildcard = __commonJS({
|
|
84397
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
84398
|
+
"use strict";
|
|
84399
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
84400
|
+
if (typeof WeakMap !== "function")
|
|
84401
|
+
return null;
|
|
84402
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
84403
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
84404
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
84405
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
84406
|
+
})(nodeInterop);
|
|
84407
|
+
}
|
|
84408
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
84409
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
84410
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
84411
|
+
return obj;
|
|
84412
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
84413
|
+
return { default: obj };
|
|
84414
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
84415
|
+
if (cache && cache.has(obj))
|
|
84416
|
+
return cache.get(obj);
|
|
84417
|
+
var newObj = {};
|
|
84418
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
84419
|
+
for (var key in obj) {
|
|
84420
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
84421
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
84422
|
+
if (desc && (desc.get || desc.set))
|
|
84423
|
+
Object.defineProperty(newObj, key, desc);
|
|
84424
|
+
else
|
|
84425
|
+
newObj[key] = obj[key];
|
|
84426
|
+
}
|
|
84427
|
+
}
|
|
84428
|
+
newObj.default = obj;
|
|
84429
|
+
if (cache)
|
|
84430
|
+
cache.set(obj, newObj);
|
|
84431
|
+
return newObj;
|
|
84432
|
+
}
|
|
84433
|
+
}
|
|
84434
|
+
});
|
|
84435
|
+
|
|
84363
84436
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
84364
84437
|
var require_import_lazy2 = __commonJS({
|
|
84365
84438
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -113511,80 +113584,37 @@ var require_compiled = __commonJS({
|
|
|
113511
113584
|
chokidar: () => chokidar2,
|
|
113512
113585
|
inquirer: () => inquirer4
|
|
113513
113586
|
});
|
|
113587
|
+
var _interop_require_default = require_interop_require_default();
|
|
113588
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
113514
113589
|
var _import = require_import();
|
|
113515
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra2());
|
|
113516
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora3());
|
|
113517
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob2());
|
|
113518
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml2());
|
|
113519
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk2());
|
|
113520
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug2());
|
|
113521
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash2());
|
|
113522
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa2());
|
|
113523
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json52());
|
|
113524
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath2());
|
|
113525
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up2());
|
|
113590
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra2());
|
|
113591
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora3());
|
|
113592
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob2());
|
|
113593
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml2());
|
|
113594
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
113595
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug2());
|
|
113596
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash2());
|
|
113597
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa2());
|
|
113598
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json52());
|
|
113599
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath2());
|
|
113600
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
113526
113601
|
var _nanoid = require_nanoid2();
|
|
113527
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver2());
|
|
113528
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv2());
|
|
113529
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash4());
|
|
113530
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby2());
|
|
113531
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address2());
|
|
113532
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale2());
|
|
113533
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join2());
|
|
113534
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist2());
|
|
113535
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob2());
|
|
113536
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize2());
|
|
113537
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size2());
|
|
113538
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi3());
|
|
113539
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand2());
|
|
113540
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist2());
|
|
113541
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir2());
|
|
113602
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver2());
|
|
113603
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv2());
|
|
113604
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash4());
|
|
113605
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby2());
|
|
113606
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address2());
|
|
113607
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale2());
|
|
113608
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join2());
|
|
113609
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist2());
|
|
113610
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob2());
|
|
113611
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize2());
|
|
113612
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size2());
|
|
113613
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi3());
|
|
113614
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand2());
|
|
113615
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist2());
|
|
113616
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir2());
|
|
113542
113617
|
var _commander = require_commander2();
|
|
113543
|
-
function _interop_require_default(obj) {
|
|
113544
|
-
return obj && obj.__esModule ? obj : {
|
|
113545
|
-
default: obj
|
|
113546
|
-
};
|
|
113547
|
-
}
|
|
113548
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
113549
|
-
if (typeof WeakMap !== "function")
|
|
113550
|
-
return null;
|
|
113551
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
113552
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
113553
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
113554
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
113555
|
-
})(nodeInterop);
|
|
113556
|
-
}
|
|
113557
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
113558
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
113559
|
-
return obj;
|
|
113560
|
-
}
|
|
113561
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
113562
|
-
return {
|
|
113563
|
-
default: obj
|
|
113564
|
-
};
|
|
113565
|
-
}
|
|
113566
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
113567
|
-
if (cache && cache.has(obj)) {
|
|
113568
|
-
return cache.get(obj);
|
|
113569
|
-
}
|
|
113570
|
-
var newObj = {};
|
|
113571
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
113572
|
-
for (var key in obj) {
|
|
113573
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
113574
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
113575
|
-
if (desc && (desc.get || desc.set)) {
|
|
113576
|
-
Object.defineProperty(newObj, key, desc);
|
|
113577
|
-
} else {
|
|
113578
|
-
newObj[key] = obj[key];
|
|
113579
|
-
}
|
|
113580
|
-
}
|
|
113581
|
-
}
|
|
113582
|
-
newObj.default = obj;
|
|
113583
|
-
if (cache) {
|
|
113584
|
-
cache.set(obj, newObj);
|
|
113585
|
-
}
|
|
113586
|
-
return newObj;
|
|
113587
|
-
}
|
|
113588
113618
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
113589
113619
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
113590
113620
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -113734,6 +113764,8 @@ var require_chainId = __commonJS({
|
|
|
113734
113764
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
113735
113765
|
/** HtmlCrossOriginPlugin */
|
|
113736
113766
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
113767
|
+
/** HtmlNoncePlugin */
|
|
113768
|
+
HTML_NONCE: "html-nonce",
|
|
113737
113769
|
/** MiniCssExtractPlugin */
|
|
113738
113770
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
113739
113771
|
/** ReactFastRefreshPlugin */
|
|
@@ -113822,20 +113854,8 @@ var require_constants = __commonJS({
|
|
|
113822
113854
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
113823
113855
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
113824
113856
|
});
|
|
113825
|
-
_export_star(
|
|
113826
|
-
|
|
113827
|
-
Object.keys(from).forEach(function(k) {
|
|
113828
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
113829
|
-
Object.defineProperty(to, k, {
|
|
113830
|
-
enumerable: true,
|
|
113831
|
-
get: function() {
|
|
113832
|
-
return from[k];
|
|
113833
|
-
}
|
|
113834
|
-
});
|
|
113835
|
-
}
|
|
113836
|
-
});
|
|
113837
|
-
return from;
|
|
113838
|
-
}
|
|
113857
|
+
var _export_star = require_export_star();
|
|
113858
|
+
_export_star._(require_chainId(), exports);
|
|
113839
113859
|
var ROUTE_SPEC_FILE = "route.json";
|
|
113840
113860
|
var MAIN_ENTRY_NAME = "main";
|
|
113841
113861
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -114448,12 +114468,8 @@ var require_ensure = __commonJS({
|
|
|
114448
114468
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
114449
114469
|
ensureArray: () => ensureArray
|
|
114450
114470
|
});
|
|
114451
|
-
var
|
|
114452
|
-
|
|
114453
|
-
return obj && obj.__esModule ? obj : {
|
|
114454
|
-
default: obj
|
|
114455
|
-
};
|
|
114456
|
-
}
|
|
114471
|
+
var _interop_require_default = require_interop_require_default();
|
|
114472
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
114457
114473
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
114458
114474
|
var ensureArray = (params) => {
|
|
114459
114475
|
if (Array.isArray(params)) {
|
|
@@ -114489,16 +114505,12 @@ var require_project = __commonJS({
|
|
|
114489
114505
|
isReact18: () => isReact182,
|
|
114490
114506
|
isTypescript: () => isTypescript
|
|
114491
114507
|
});
|
|
114492
|
-
var
|
|
114508
|
+
var _interop_require_default = require_interop_require_default();
|
|
114509
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
114493
114510
|
var _commands = require_commands();
|
|
114494
114511
|
var _compiled = require_compiled();
|
|
114495
114512
|
var _common = require_common2();
|
|
114496
114513
|
var _ensure = require_ensure();
|
|
114497
|
-
function _interop_require_default(obj) {
|
|
114498
|
-
return obj && obj.__esModule ? obj : {
|
|
114499
|
-
default: obj
|
|
114500
|
-
};
|
|
114501
|
-
}
|
|
114502
114514
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
114503
114515
|
var isDepExists = (appDirectory, name) => {
|
|
114504
114516
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -114565,24 +114577,12 @@ var require_is = __commonJS({
|
|
|
114565
114577
|
Object.defineProperty(exports, "__esModule", {
|
|
114566
114578
|
value: true
|
|
114567
114579
|
});
|
|
114568
|
-
_export_star(
|
|
114569
|
-
_export_star(
|
|
114570
|
-
_export_star(
|
|
114571
|
-
_export_star(
|
|
114572
|
-
_export_star(
|
|
114573
|
-
|
|
114574
|
-
Object.keys(from).forEach(function(k) {
|
|
114575
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
114576
|
-
Object.defineProperty(to, k, {
|
|
114577
|
-
enumerable: true,
|
|
114578
|
-
get: function() {
|
|
114579
|
-
return from[k];
|
|
114580
|
-
}
|
|
114581
|
-
});
|
|
114582
|
-
}
|
|
114583
|
-
});
|
|
114584
|
-
return from;
|
|
114585
|
-
}
|
|
114580
|
+
var _export_star = require_export_star();
|
|
114581
|
+
_export_star._(require_env(), exports);
|
|
114582
|
+
_export_star._(require_platform(), exports);
|
|
114583
|
+
_export_star._(require_type(), exports);
|
|
114584
|
+
_export_star._(require_config2(), exports);
|
|
114585
|
+
_export_star._(require_project(), exports);
|
|
114586
114586
|
}
|
|
114587
114587
|
});
|
|
114588
114588
|
|
|
@@ -114684,17 +114684,13 @@ var require_data = __commonJS({
|
|
|
114684
114684
|
readTsConfig: () => readTsConfig,
|
|
114685
114685
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
114686
114686
|
});
|
|
114687
|
-
var
|
|
114688
|
-
var
|
|
114687
|
+
var _interop_require_default = require_interop_require_default();
|
|
114688
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
114689
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
114689
114690
|
var _compiled = require_compiled();
|
|
114690
114691
|
var _constants = require_constants();
|
|
114691
114692
|
var _is = require_is();
|
|
114692
114693
|
var _package = require_package4();
|
|
114693
|
-
function _interop_require_default(obj) {
|
|
114694
|
-
return obj && obj.__esModule ? obj : {
|
|
114695
|
-
default: obj
|
|
114696
|
-
};
|
|
114697
|
-
}
|
|
114698
114694
|
var MAX_TIMES = 5;
|
|
114699
114695
|
function getPackageManager2() {
|
|
114700
114696
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -114826,29 +114822,13 @@ var require_get2 = __commonJS({
|
|
|
114826
114822
|
getServerConfig: () => getServerConfig,
|
|
114827
114823
|
getTargetDir: () => getTargetDir
|
|
114828
114824
|
});
|
|
114829
|
-
var
|
|
114825
|
+
var _export_star = require_export_star();
|
|
114826
|
+
var _interop_require_default = require_interop_require_default();
|
|
114827
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
114830
114828
|
var _constants = require_constants();
|
|
114831
114829
|
var _fs = require_fs();
|
|
114832
|
-
_export_star(require_data(), exports);
|
|
114833
|
-
_export_star(require_config3(), exports);
|
|
114834
|
-
function _export_star(from, to) {
|
|
114835
|
-
Object.keys(from).forEach(function(k) {
|
|
114836
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
114837
|
-
Object.defineProperty(to, k, {
|
|
114838
|
-
enumerable: true,
|
|
114839
|
-
get: function() {
|
|
114840
|
-
return from[k];
|
|
114841
|
-
}
|
|
114842
|
-
});
|
|
114843
|
-
}
|
|
114844
|
-
});
|
|
114845
|
-
return from;
|
|
114846
|
-
}
|
|
114847
|
-
function _interop_require_default(obj) {
|
|
114848
|
-
return obj && obj.__esModule ? obj : {
|
|
114849
|
-
default: obj
|
|
114850
|
-
};
|
|
114851
|
-
}
|
|
114830
|
+
_export_star._(require_data(), exports);
|
|
114831
|
+
_export_star._(require_config3(), exports);
|
|
114852
114832
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
114853
114833
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
114854
114834
|
return configFilePath;
|
|
@@ -114860,6 +114840,21 @@ var require_get2 = __commonJS({
|
|
|
114860
114840
|
}
|
|
114861
114841
|
});
|
|
114862
114842
|
|
|
114843
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
114844
|
+
var require_define_property = __commonJS({
|
|
114845
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
114846
|
+
"use strict";
|
|
114847
|
+
exports._ = exports._define_property = _define_property14;
|
|
114848
|
+
function _define_property14(obj, key, value) {
|
|
114849
|
+
if (key in obj) {
|
|
114850
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
114851
|
+
} else
|
|
114852
|
+
obj[key] = value;
|
|
114853
|
+
return obj;
|
|
114854
|
+
}
|
|
114855
|
+
}
|
|
114856
|
+
});
|
|
114857
|
+
|
|
114863
114858
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
114864
114859
|
var require_logger2 = __commonJS({
|
|
114865
114860
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -114878,25 +114873,9 @@ var require_logger2 = __commonJS({
|
|
|
114878
114873
|
Logger: () => Logger,
|
|
114879
114874
|
logger: () => logger
|
|
114880
114875
|
});
|
|
114881
|
-
var
|
|
114882
|
-
|
|
114883
|
-
|
|
114884
|
-
Object.defineProperty(obj, key, {
|
|
114885
|
-
value,
|
|
114886
|
-
enumerable: true,
|
|
114887
|
-
configurable: true,
|
|
114888
|
-
writable: true
|
|
114889
|
-
});
|
|
114890
|
-
} else {
|
|
114891
|
-
obj[key] = value;
|
|
114892
|
-
}
|
|
114893
|
-
return obj;
|
|
114894
|
-
}
|
|
114895
|
-
function _interop_require_default(obj) {
|
|
114896
|
-
return obj && obj.__esModule ? obj : {
|
|
114897
|
-
default: obj
|
|
114898
|
-
};
|
|
114899
|
-
}
|
|
114876
|
+
var _define_property14 = require_define_property();
|
|
114877
|
+
var _interop_require_default = require_interop_require_default();
|
|
114878
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
114900
114879
|
var LOG_LEVEL = {
|
|
114901
114880
|
error: 0,
|
|
114902
114881
|
warn: 1,
|
|
@@ -114980,10 +114959,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
114980
114959
|
return longestLabel;
|
|
114981
114960
|
}
|
|
114982
114961
|
constructor(options = {}) {
|
|
114983
|
-
_define_property14(this, "level", void 0);
|
|
114984
|
-
_define_property14(this, "config", void 0);
|
|
114985
|
-
_define_property14(this, "types", void 0);
|
|
114986
|
-
_define_property14(this, "longestLabel", void 0);
|
|
114962
|
+
_define_property14._(this, "level", void 0);
|
|
114963
|
+
_define_property14._(this, "config", void 0);
|
|
114964
|
+
_define_property14._(this, "types", void 0);
|
|
114965
|
+
_define_property14._(this, "longestLabel", void 0);
|
|
114987
114966
|
this.level = options.level || LOG_TYPES.log.level;
|
|
114988
114967
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
114989
114968
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -115056,16 +115035,12 @@ var require_alias = __commonJS({
|
|
|
115056
115035
|
getAliasConfig: () => getAliasConfig,
|
|
115057
115036
|
getUserAlias: () => getUserAlias
|
|
115058
115037
|
});
|
|
115059
|
-
var
|
|
115060
|
-
var
|
|
115038
|
+
var _interop_require_default = require_interop_require_default();
|
|
115039
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
115040
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115061
115041
|
var _compiled = require_compiled();
|
|
115062
115042
|
var _get = require_get2();
|
|
115063
115043
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
115064
|
-
function _interop_require_default(obj) {
|
|
115065
|
-
return obj && obj.__esModule ? obj : {
|
|
115066
|
-
default: obj
|
|
115067
|
-
};
|
|
115068
|
-
}
|
|
115069
115044
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
115070
115045
|
const { source: { alias } } = modernConfig;
|
|
115071
115046
|
if (!alias) {
|
|
@@ -115141,15 +115116,11 @@ var require_path = __commonJS({
|
|
|
115141
115116
|
removeTailSlash: () => removeTailSlash,
|
|
115142
115117
|
removeSlash: () => removeSlash
|
|
115143
115118
|
});
|
|
115144
|
-
var
|
|
115145
|
-
var
|
|
115146
|
-
var
|
|
115119
|
+
var _interop_require_default = require_interop_require_default();
|
|
115120
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115121
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
115122
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
115147
115123
|
var _compiled = require_compiled();
|
|
115148
|
-
function _interop_require_default(obj) {
|
|
115149
|
-
return obj && obj.__esModule ? obj : {
|
|
115150
|
-
default: obj
|
|
115151
|
-
};
|
|
115152
|
-
}
|
|
115153
115124
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
115154
115125
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
115155
115126
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -115313,54 +115284,6 @@ var require_babel = __commonJS({
|
|
|
115313
115284
|
}
|
|
115314
115285
|
});
|
|
115315
115286
|
|
|
115316
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
115317
|
-
var require_generateMetaTags = __commonJS({
|
|
115318
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
115319
|
-
"use strict";
|
|
115320
|
-
Object.defineProperty(exports, "__esModule", {
|
|
115321
|
-
value: true
|
|
115322
|
-
});
|
|
115323
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
115324
|
-
enumerable: true,
|
|
115325
|
-
get: () => generateMetaTags
|
|
115326
|
-
});
|
|
115327
|
-
var tagObjectToString = (tagDefinition) => {
|
|
115328
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
115329
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
115330
|
-
return attributeName;
|
|
115331
|
-
}
|
|
115332
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
115333
|
-
});
|
|
115334
|
-
return `<${[
|
|
115335
|
-
tagDefinition.tagName
|
|
115336
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
115337
|
-
};
|
|
115338
|
-
var generateMetaTags = (metaOptions) => {
|
|
115339
|
-
if (!metaOptions) {
|
|
115340
|
-
return "";
|
|
115341
|
-
}
|
|
115342
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
115343
|
-
const metaTagContent = metaOptions[metaName];
|
|
115344
|
-
return typeof metaTagContent === "string" ? {
|
|
115345
|
-
name: metaName,
|
|
115346
|
-
content: metaTagContent
|
|
115347
|
-
} : metaTagContent;
|
|
115348
|
-
}).filter((attribute) => attribute !== false);
|
|
115349
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
115350
|
-
if (metaTagAttributes === false) {
|
|
115351
|
-
throw new Error("Invalid meta tag");
|
|
115352
|
-
}
|
|
115353
|
-
return {
|
|
115354
|
-
tagName: "meta",
|
|
115355
|
-
voidTag: true,
|
|
115356
|
-
attributes: metaTagAttributes
|
|
115357
|
-
};
|
|
115358
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
115359
|
-
${tagObjectToString(tagObject)}`, "");
|
|
115360
|
-
};
|
|
115361
|
-
}
|
|
115362
|
-
});
|
|
115363
|
-
|
|
115364
115287
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
115365
115288
|
var require_monorepo = __commonJS({
|
|
115366
115289
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -115384,14 +115307,10 @@ var require_monorepo = __commonJS({
|
|
|
115384
115307
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
115385
115308
|
getMonorepoPackages: () => getMonorepoPackages
|
|
115386
115309
|
});
|
|
115387
|
-
var
|
|
115388
|
-
var
|
|
115310
|
+
var _interop_require_default = require_interop_require_default();
|
|
115311
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
115312
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115389
115313
|
var _compiled = require_compiled();
|
|
115390
|
-
function _interop_require_default(obj) {
|
|
115391
|
-
return obj && obj.__esModule ? obj : {
|
|
115392
|
-
default: obj
|
|
115393
|
-
};
|
|
115394
|
-
}
|
|
115395
115314
|
var PACKAGE_MAX_DEPTH = 5;
|
|
115396
115315
|
var WORKSPACE_FILES = {
|
|
115397
115316
|
YARN: "package.json",
|
|
@@ -115479,14 +115398,10 @@ var require_pathSerializer = __commonJS({
|
|
|
115479
115398
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
115480
115399
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
115481
115400
|
});
|
|
115482
|
-
var
|
|
115483
|
-
var
|
|
115401
|
+
var _interop_require_default = require_interop_require_default();
|
|
115402
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
115403
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash4());
|
|
115484
115404
|
var _path = require_path();
|
|
115485
|
-
function _interop_require_default(obj) {
|
|
115486
|
-
return obj && obj.__esModule ? obj : {
|
|
115487
|
-
default: obj
|
|
115488
|
-
};
|
|
115489
|
-
}
|
|
115490
115405
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
115491
115406
|
match,
|
|
115492
115407
|
mark: "unknown"
|
|
@@ -115544,14 +115459,10 @@ var require_port = __commonJS({
|
|
|
115544
115459
|
enumerable: true,
|
|
115545
115460
|
get: () => getPort
|
|
115546
115461
|
});
|
|
115547
|
-
var
|
|
115462
|
+
var _interop_require_default = require_interop_require_default();
|
|
115463
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
115548
115464
|
var _compiled = require_compiled();
|
|
115549
115465
|
var _logger = require_logger2();
|
|
115550
|
-
function _interop_require_default(obj) {
|
|
115551
|
-
return obj && obj.__esModule ? obj : {
|
|
115552
|
-
default: obj
|
|
115553
|
-
};
|
|
115554
|
-
}
|
|
115555
115466
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
115556
115467
|
if (typeof port === "string") {
|
|
115557
115468
|
port = parseInt(port, 10);
|
|
@@ -115614,15 +115525,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
115614
115525
|
getAddressUrls: () => getAddressUrls,
|
|
115615
115526
|
prettyInstructions: () => prettyInstructions
|
|
115616
115527
|
});
|
|
115617
|
-
var
|
|
115528
|
+
var _interop_require_default = require_interop_require_default();
|
|
115529
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
115618
115530
|
var _compiled = require_compiled();
|
|
115619
115531
|
var _is = require_is();
|
|
115620
115532
|
var _constants = require_constants();
|
|
115621
|
-
function _interop_require_default(obj) {
|
|
115622
|
-
return obj && obj.__esModule ? obj : {
|
|
115623
|
-
default: obj
|
|
115624
|
-
};
|
|
115625
|
-
}
|
|
115626
115533
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
115627
115534
|
var getIpv4Interfaces = () => {
|
|
115628
115535
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -115826,14 +115733,10 @@ var require_routes = __commonJS({
|
|
|
115826
115733
|
enumerable: true,
|
|
115827
115734
|
get: () => getRouteId
|
|
115828
115735
|
});
|
|
115829
|
-
var
|
|
115736
|
+
var _interop_require_default = require_interop_require_default();
|
|
115737
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115830
115738
|
var _constants = require_constants();
|
|
115831
115739
|
var _path1 = require_path();
|
|
115832
|
-
function _interop_require_default(obj) {
|
|
115833
|
-
return obj && obj.__esModule ? obj : {
|
|
115834
|
-
default: obj
|
|
115835
|
-
};
|
|
115836
|
-
}
|
|
115837
115740
|
var getPathWithoutExt = (filename) => {
|
|
115838
115741
|
const extname = _path.default.extname(filename);
|
|
115839
115742
|
return filename.slice(0, -extname.length);
|
|
@@ -115863,14 +115766,10 @@ var require_runtimeExports = __commonJS({
|
|
|
115863
115766
|
enumerable: true,
|
|
115864
115767
|
get: () => createRuntimeExportsUtils
|
|
115865
115768
|
});
|
|
115866
|
-
var
|
|
115769
|
+
var _interop_require_default = require_interop_require_default();
|
|
115770
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115867
115771
|
var _compiled = require_compiled();
|
|
115868
115772
|
var _path1 = require_path();
|
|
115869
|
-
function _interop_require_default(obj) {
|
|
115870
|
-
return obj && obj.__esModule ? obj : {
|
|
115871
|
-
default: obj
|
|
115872
|
-
};
|
|
115873
|
-
}
|
|
115874
115773
|
var memo = (fn) => {
|
|
115875
115774
|
const cache = /* @__PURE__ */ new Map();
|
|
115876
115775
|
return (...params) => {
|
|
@@ -115947,13 +115846,9 @@ var require_watch = __commonJS({
|
|
|
115947
115846
|
WatchChangeType: () => WatchChangeType,
|
|
115948
115847
|
watch: () => watch
|
|
115949
115848
|
});
|
|
115950
|
-
var
|
|
115849
|
+
var _interop_require_default = require_interop_require_default();
|
|
115850
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
115951
115851
|
var _compiled = require_compiled();
|
|
115952
|
-
function _interop_require_default(obj) {
|
|
115953
|
-
return obj && obj.__esModule ? obj : {
|
|
115954
|
-
default: obj
|
|
115955
|
-
};
|
|
115956
|
-
}
|
|
115957
115852
|
var WatchChangeType = {
|
|
115958
115853
|
ADD: "add",
|
|
115959
115854
|
UNLINK: "unlink",
|
|
@@ -116003,43 +115898,30 @@ var require_cli = __commonJS({
|
|
|
116003
115898
|
Object.defineProperty(exports, "__esModule", {
|
|
116004
115899
|
value: true
|
|
116005
115900
|
});
|
|
116006
|
-
_export_star(
|
|
116007
|
-
_export_star(
|
|
116008
|
-
_export_star(
|
|
116009
|
-
_export_star(
|
|
116010
|
-
_export_star(
|
|
116011
|
-
_export_star(
|
|
116012
|
-
_export_star(
|
|
116013
|
-
_export_star(
|
|
116014
|
-
_export_star(
|
|
116015
|
-
_export_star(
|
|
116016
|
-
_export_star(
|
|
116017
|
-
_export_star(require_logger2(), exports);
|
|
116018
|
-
_export_star(require_monorepo(), exports);
|
|
116019
|
-
_export_star(require_package4(), exports);
|
|
116020
|
-
_export_star(require_path(), exports);
|
|
116021
|
-
_export_star(require_pathSerializer(), exports);
|
|
116022
|
-
_export_star(require_port(), exports);
|
|
116023
|
-
_export_star(require_prettyInstructions(), exports);
|
|
116024
|
-
_export_star(require_print(), exports);
|
|
116025
|
-
_export_star(require_require(), exports);
|
|
116026
|
-
_export_star(require_routes(), exports);
|
|
116027
|
-
_export_star(require_runtimeExports(), exports);
|
|
116028
|
-
_export_star(require_test(), exports);
|
|
116029
|
-
_export_star(require_watch(), exports);
|
|
116030
|
-
function _export_star(from, to) {
|
|
116031
|
-
Object.keys(from).forEach(function(k) {
|
|
116032
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116033
|
-
Object.defineProperty(to, k, {
|
|
116034
|
-
enumerable: true,
|
|
116035
|
-
get: function() {
|
|
116036
|
-
return from[k];
|
|
116037
|
-
}
|
|
116038
|
-
});
|
|
116039
|
-
}
|
|
116040
|
-
});
|
|
116041
|
-
return from;
|
|
116042
|
-
}
|
|
115901
|
+
var _export_star = require_export_star();
|
|
115902
|
+
_export_star._(require_constants(), exports);
|
|
115903
|
+
_export_star._(require_get2(), exports);
|
|
115904
|
+
_export_star._(require_is(), exports);
|
|
115905
|
+
_export_star._(require_alias(), exports);
|
|
115906
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
115907
|
+
_export_star._(require_babel(), exports);
|
|
115908
|
+
_export_star._(require_commands(), exports);
|
|
115909
|
+
_export_star._(require_common2(), exports);
|
|
115910
|
+
_export_star._(require_ensure(), exports);
|
|
115911
|
+
_export_star._(require_fs(), exports);
|
|
115912
|
+
_export_star._(require_logger2(), exports);
|
|
115913
|
+
_export_star._(require_monorepo(), exports);
|
|
115914
|
+
_export_star._(require_package4(), exports);
|
|
115915
|
+
_export_star._(require_path(), exports);
|
|
115916
|
+
_export_star._(require_pathSerializer(), exports);
|
|
115917
|
+
_export_star._(require_port(), exports);
|
|
115918
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
115919
|
+
_export_star._(require_print(), exports);
|
|
115920
|
+
_export_star._(require_require(), exports);
|
|
115921
|
+
_export_star._(require_routes(), exports);
|
|
115922
|
+
_export_star._(require_runtimeExports(), exports);
|
|
115923
|
+
_export_star._(require_test(), exports);
|
|
115924
|
+
_export_star._(require_watch(), exports);
|
|
116043
115925
|
}
|
|
116044
115926
|
});
|
|
116045
115927
|
|
|
@@ -116050,22 +115932,10 @@ var require_cjs2 = __commonJS({
|
|
|
116050
115932
|
Object.defineProperty(exports, "__esModule", {
|
|
116051
115933
|
value: true
|
|
116052
115934
|
});
|
|
116053
|
-
_export_star(
|
|
116054
|
-
_export_star(
|
|
116055
|
-
_export_star(
|
|
116056
|
-
|
|
116057
|
-
Object.keys(from).forEach(function(k) {
|
|
116058
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116059
|
-
Object.defineProperty(to, k, {
|
|
116060
|
-
enumerable: true,
|
|
116061
|
-
get: function() {
|
|
116062
|
-
return from[k];
|
|
116063
|
-
}
|
|
116064
|
-
});
|
|
116065
|
-
}
|
|
116066
|
-
});
|
|
116067
|
-
return from;
|
|
116068
|
-
}
|
|
115935
|
+
var _export_star = require_export_star();
|
|
115936
|
+
_export_star._(require_compiled(), exports);
|
|
115937
|
+
_export_star._(require_cli(), exports);
|
|
115938
|
+
_export_star._(require_import(), exports);
|
|
116069
115939
|
}
|
|
116070
115940
|
});
|
|
116071
115941
|
|
|
@@ -116120,11 +115990,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
116120
115990
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
116121
115991
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
116122
115992
|
|
|
116123
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
115993
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
116124
115994
|
var import_lodash6 = __toESM(require_lodash2());
|
|
116125
115995
|
var import_comment_json = __toESM(require_src2());
|
|
116126
115996
|
|
|
116127
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
115997
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
116128
115998
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116129
115999
|
try {
|
|
116130
116000
|
var info = gen[key](arg);
|
|
@@ -116432,7 +116302,7 @@ function _canUsePnpm() {
|
|
|
116432
116302
|
return _canUsePnpm.apply(this, arguments);
|
|
116433
116303
|
}
|
|
116434
116304
|
|
|
116435
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116305
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
116436
116306
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116437
116307
|
try {
|
|
116438
116308
|
var info = gen[key](arg);
|
|
@@ -116799,7 +116669,7 @@ function _pnpmInstall() {
|
|
|
116799
116669
|
return _pnpmInstall.apply(this, arguments);
|
|
116800
116670
|
}
|
|
116801
116671
|
|
|
116802
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
116672
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
116803
116673
|
function _class_call_check(instance, Constructor) {
|
|
116804
116674
|
if (!(instance instanceof Constructor)) {
|
|
116805
116675
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -116880,7 +116750,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
116880
116750
|
return NpmAPI2;
|
|
116881
116751
|
}();
|
|
116882
116752
|
|
|
116883
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
116753
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
|
116884
116754
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
116885
116755
|
try {
|
|
116886
116756
|
var info = gen[key](arg);
|
|
@@ -117222,7 +117092,7 @@ function _gitCommit() {
|
|
|
117222
117092
|
return _gitCommit.apply(this, arguments);
|
|
117223
117093
|
}
|
|
117224
117094
|
|
|
117225
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
117095
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
|
117226
117096
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117227
117097
|
try {
|
|
117228
117098
|
var info = gen[key](arg);
|
|
@@ -117553,11 +117423,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
117553
117423
|
return GitAPI2;
|
|
117554
117424
|
}();
|
|
117555
117425
|
|
|
117556
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117426
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
117557
117427
|
var import_path = __toESM(require("path"));
|
|
117558
117428
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
117559
117429
|
|
|
117560
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
117430
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
117561
117431
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117562
117432
|
try {
|
|
117563
117433
|
var info = gen[key](arg);
|
|
@@ -117730,7 +117600,7 @@ function _fsExists() {
|
|
|
117730
117600
|
return _fsExists.apply(this, arguments);
|
|
117731
117601
|
}
|
|
117732
117602
|
|
|
117733
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117603
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
|
117734
117604
|
var import_handlebars = __toESM(require_lib());
|
|
117735
117605
|
function _define_property4(obj, key, value) {
|
|
117736
117606
|
if (key in obj) {
|
|
@@ -117772,7 +117642,7 @@ function renderString(template, fullData, registers) {
|
|
|
117772
117642
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
117773
117643
|
}
|
|
117774
117644
|
|
|
117775
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
117645
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
|
117776
117646
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117777
117647
|
try {
|
|
117778
117648
|
var info = gen[key](arg);
|
|
@@ -118090,13 +117960,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
118090
117960
|
return HandlebarsAPI2;
|
|
118091
117961
|
}();
|
|
118092
117962
|
|
|
118093
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
117963
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
|
118094
117964
|
var import_ejs = __toESM(require_ejs());
|
|
118095
117965
|
function renderString2(template, fullData) {
|
|
118096
117966
|
return import_ejs.default.render(template, fullData) || "";
|
|
118097
117967
|
}
|
|
118098
117968
|
|
|
118099
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
117969
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
|
118100
117970
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118101
117971
|
try {
|
|
118102
117972
|
var info = gen[key](arg);
|
|
@@ -118366,24 +118236,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
118366
118236
|
return EjsAPI2;
|
|
118367
118237
|
}();
|
|
118368
118238
|
|
|
118369
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
118239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
118370
118240
|
var import_path2 = __toESM(require("path"));
|
|
118371
|
-
|
|
118372
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
|
118373
|
-
var imageExtNameList = [
|
|
118374
|
-
".jpg",
|
|
118375
|
-
".jpeg",
|
|
118376
|
-
".png",
|
|
118377
|
-
".gif",
|
|
118378
|
-
".bmp",
|
|
118379
|
-
".ico",
|
|
118380
|
-
".icon",
|
|
118381
|
-
".mpt",
|
|
118382
|
-
".psd",
|
|
118383
|
-
".wmf"
|
|
118384
|
-
];
|
|
118385
|
-
|
|
118386
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
118387
118241
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118388
118242
|
try {
|
|
118389
118243
|
var info = gen[key](arg);
|
|
@@ -118563,48 +118417,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118563
118417
|
value: function renderFile(resource, target) {
|
|
118564
118418
|
var _this = this;
|
|
118565
118419
|
return _async_to_generator8(function() {
|
|
118566
|
-
var
|
|
118420
|
+
var filePath;
|
|
118567
118421
|
return __generator8(this, function(_state) {
|
|
118568
118422
|
switch (_state.label) {
|
|
118569
118423
|
case 0:
|
|
118570
118424
|
if (resource._type !== FS_RESOURCE) {
|
|
118571
118425
|
throw new Error("resource not match");
|
|
118572
118426
|
}
|
|
118427
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
118573
118428
|
return [
|
|
118574
118429
|
4,
|
|
118575
|
-
|
|
118430
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
118576
118431
|
];
|
|
118577
118432
|
case 1:
|
|
118578
|
-
resourceValue = _state.sent();
|
|
118579
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
118580
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
118581
|
-
return [
|
|
118582
|
-
3,
|
|
118583
|
-
3
|
|
118584
|
-
];
|
|
118585
|
-
return [
|
|
118586
|
-
4,
|
|
118587
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
118588
|
-
encoding: "binary"
|
|
118589
|
-
})
|
|
118590
|
-
];
|
|
118591
|
-
case 2:
|
|
118592
118433
|
_state.sent();
|
|
118593
|
-
return [
|
|
118594
|
-
3,
|
|
118595
|
-
5
|
|
118596
|
-
];
|
|
118597
|
-
case 3:
|
|
118598
118434
|
return [
|
|
118599
118435
|
4,
|
|
118600
|
-
|
|
118601
|
-
encoding: "utf-8"
|
|
118602
|
-
})
|
|
118436
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
118603
118437
|
];
|
|
118604
|
-
case
|
|
118438
|
+
case 2:
|
|
118605
118439
|
_state.sent();
|
|
118606
|
-
_state.label = 5;
|
|
118607
|
-
case 5:
|
|
118608
118440
|
return [
|
|
118609
118441
|
2
|
|
118610
118442
|
];
|
|
@@ -118667,7 +118499,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
118667
118499
|
return FsAPI2;
|
|
118668
118500
|
}();
|
|
118669
118501
|
|
|
118670
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118502
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
118671
118503
|
var toString = Object.prototype.toString;
|
|
118672
118504
|
var isType = function(type) {
|
|
118673
118505
|
return function(obj) {
|
|
@@ -118693,7 +118525,7 @@ var isObj = function(val) {
|
|
|
118693
118525
|
};
|
|
118694
118526
|
var isRegExp = isType("RegExp");
|
|
118695
118527
|
|
|
118696
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118528
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
118697
118529
|
var toArr = function(val) {
|
|
118698
118530
|
return isArr(val) ? val : val ? [val] : [];
|
|
118699
118531
|
};
|
|
@@ -118744,7 +118576,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
118744
118576
|
return result;
|
|
118745
118577
|
}
|
|
118746
118578
|
|
|
118747
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118579
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
118748
118580
|
function globalSelf() {
|
|
118749
118581
|
try {
|
|
118750
118582
|
if (typeof self !== "undefined") {
|
|
@@ -118768,7 +118600,7 @@ function globalSelf() {
|
|
|
118768
118600
|
}
|
|
118769
118601
|
var globalThisPolyfill = globalSelf();
|
|
118770
118602
|
|
|
118771
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118603
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
118772
118604
|
var instOf = function(value, cls) {
|
|
118773
118605
|
if (isFn(cls))
|
|
118774
118606
|
return value instanceof cls;
|
|
@@ -118777,7 +118609,7 @@ var instOf = function(value, cls) {
|
|
|
118777
118609
|
return false;
|
|
118778
118610
|
};
|
|
118779
118611
|
|
|
118780
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118612
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
118781
118613
|
var isArray = isArr;
|
|
118782
118614
|
var keyList = Object.keys;
|
|
118783
118615
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -118884,7 +118716,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
118884
118716
|
}
|
|
118885
118717
|
};
|
|
118886
118718
|
|
|
118887
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118719
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
118888
118720
|
var clone = function(values) {
|
|
118889
118721
|
if (Array.isArray(values)) {
|
|
118890
118722
|
var res_1 = [];
|
|
@@ -118920,7 +118752,7 @@ var clone = function(values) {
|
|
|
118920
118752
|
}
|
|
118921
118753
|
};
|
|
118922
118754
|
|
|
118923
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118755
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
118924
118756
|
var has = Object.prototype.hasOwnProperty;
|
|
118925
118757
|
var toString2 = Object.prototype.toString;
|
|
118926
118758
|
var isUndef = function(val) {
|
|
@@ -119048,7 +118880,7 @@ function pascalCase(input, options) {
|
|
|
119048
118880
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
119049
118881
|
}
|
|
119050
118882
|
|
|
119051
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
118883
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
119052
118884
|
var ansiRegex = function() {
|
|
119053
118885
|
var pattern = [
|
|
119054
118886
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -119067,7 +118899,7 @@ var stringLength = function(input) {
|
|
|
119067
118899
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
119068
118900
|
};
|
|
119069
118901
|
|
|
119070
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
118902
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
119071
118903
|
var __assign2 = function() {
|
|
119072
118904
|
__assign2 = Object.assign || function(t) {
|
|
119073
118905
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119090,7 +118922,7 @@ var parenContext = ContextType("()");
|
|
|
119090
118922
|
var braceContext = ContextType("{}");
|
|
119091
118923
|
var destructorContext = ContextType("{x}");
|
|
119092
118924
|
|
|
119093
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
118925
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
119094
118926
|
var __assign3 = function() {
|
|
119095
118927
|
__assign3 = Object.assign || function(t) {
|
|
119096
118928
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -119258,7 +119090,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
119258
119090
|
});
|
|
119259
119091
|
var eofTok = TokenType("eof");
|
|
119260
119092
|
|
|
119261
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119093
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
119262
119094
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
119263
119095
|
var fullCharCodeAtPos = function(input, pos) {
|
|
119264
119096
|
if (String.fromCharCode)
|
|
@@ -119510,7 +119342,7 @@ var Tokenizer = (
|
|
|
119510
119342
|
}()
|
|
119511
119343
|
);
|
|
119512
119344
|
|
|
119513
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119345
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
119514
119346
|
var isType2 = function(type) {
|
|
119515
119347
|
return function(obj) {
|
|
119516
119348
|
return obj && obj.type === type;
|
|
@@ -119528,7 +119360,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
119528
119360
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
119529
119361
|
var isArrayPattern = isType2("ArrayPattern");
|
|
119530
119362
|
|
|
119531
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119363
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
119532
119364
|
var toString3 = Object.prototype.toString;
|
|
119533
119365
|
var isType3 = function(type) {
|
|
119534
119366
|
return function(obj) {
|
|
@@ -119605,7 +119437,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
119605
119437
|
return a === b;
|
|
119606
119438
|
};
|
|
119607
119439
|
|
|
119608
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119440
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
119609
119441
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
119610
119442
|
var isValid2 = function(val) {
|
|
119611
119443
|
return val !== void 0 && val !== null;
|
|
@@ -119723,7 +119555,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
119723
119555
|
});
|
|
119724
119556
|
};
|
|
119725
119557
|
|
|
119726
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119558
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
119727
119559
|
var __extends = function() {
|
|
119728
119560
|
var extendStatics = function(d, b) {
|
|
119729
119561
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -120114,7 +119946,7 @@ var Parser = (
|
|
|
120114
119946
|
}(Tokenizer)
|
|
120115
119947
|
);
|
|
120116
119948
|
|
|
120117
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
119949
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
120118
119950
|
var Matcher = (
|
|
120119
119951
|
/** @class */
|
|
120120
119952
|
function() {
|
|
@@ -120296,7 +120128,7 @@ var Matcher = (
|
|
|
120296
120128
|
}()
|
|
120297
120129
|
);
|
|
120298
120130
|
|
|
120299
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120131
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
120300
120132
|
var __read = function(o, n) {
|
|
120301
120133
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
120302
120134
|
if (!m)
|
|
@@ -120850,7 +120682,7 @@ var Path = (
|
|
|
120850
120682
|
}()
|
|
120851
120683
|
);
|
|
120852
120684
|
|
|
120853
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120685
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
120854
120686
|
var Subscribable = (
|
|
120855
120687
|
/** @class */
|
|
120856
120688
|
function() {
|
|
@@ -120902,7 +120734,7 @@ var Subscribable = (
|
|
|
120902
120734
|
}()
|
|
120903
120735
|
);
|
|
120904
120736
|
|
|
120905
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120737
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
120906
120738
|
function defaultIsMergeableObject(value) {
|
|
120907
120739
|
return isNonNullObject(value) && !isSpecial(value);
|
|
120908
120740
|
}
|
|
@@ -121095,7 +120927,7 @@ var lazyMerge = function(target) {
|
|
|
121095
120927
|
};
|
|
121096
120928
|
var merge = deepmerge;
|
|
121097
120929
|
|
|
121098
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120930
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
121099
120931
|
var IDX = 36;
|
|
121100
120932
|
var HEX = "";
|
|
121101
120933
|
while (IDX--)
|
|
@@ -121107,7 +120939,7 @@ function uid(len) {
|
|
|
121107
120939
|
return str;
|
|
121108
120940
|
}
|
|
121109
120941
|
|
|
121110
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
120942
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
121111
120943
|
var toString4 = Object.prototype.toString;
|
|
121112
120944
|
var isMap = function(val) {
|
|
121113
120945
|
return val && val instanceof Map;
|
|
@@ -121138,7 +120970,7 @@ var isNormalType = function(target) {
|
|
|
121138
120970
|
return isPlainObj3(target) || isArr3(target);
|
|
121139
120971
|
};
|
|
121140
120972
|
|
|
121141
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
120973
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
121142
120974
|
var toArray = function(value) {
|
|
121143
120975
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
121144
120976
|
};
|
|
@@ -121202,7 +121034,7 @@ var ArraySet = (
|
|
|
121202
121034
|
}()
|
|
121203
121035
|
);
|
|
121204
121036
|
|
|
121205
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121037
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
121206
121038
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
121207
121039
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
121208
121040
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -121221,7 +121053,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
121221
121053
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
121222
121054
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
121223
121055
|
|
|
121224
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121056
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
121225
121057
|
var ITERATION_KEY = Symbol("iteration key");
|
|
121226
121058
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
121227
121059
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -121451,7 +121283,7 @@ var disposeEffects = function(reaction2) {
|
|
|
121451
121283
|
}
|
|
121452
121284
|
};
|
|
121453
121285
|
|
|
121454
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121286
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
121455
121287
|
var DataChange = (
|
|
121456
121288
|
/** @class */
|
|
121457
121289
|
function() {
|
|
@@ -121547,7 +121379,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
121547
121379
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
121548
121380
|
};
|
|
121549
121381
|
|
|
121550
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121382
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
121551
121383
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
121552
121384
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
121553
121385
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -121649,7 +121481,7 @@ var hasCollected = function(callback) {
|
|
|
121649
121481
|
return DependencyCollected.value;
|
|
121650
121482
|
};
|
|
121651
121483
|
|
|
121652
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121484
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
121653
121485
|
var __read2 = function(o, n) {
|
|
121654
121486
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121655
121487
|
if (!m)
|
|
@@ -121905,7 +121737,7 @@ var baseHandlers = {
|
|
|
121905
121737
|
}
|
|
121906
121738
|
};
|
|
121907
121739
|
|
|
121908
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121740
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
121909
121741
|
var createNormalProxy = function(target, shallow2) {
|
|
121910
121742
|
var proxy = new Proxy(target, baseHandlers);
|
|
121911
121743
|
ProxyRaw.set(proxy, target);
|
|
@@ -122020,7 +121852,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
122020
121852
|
return boundary;
|
|
122021
121853
|
};
|
|
122022
121854
|
|
|
122023
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121855
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
122024
121856
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
122025
121857
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
122026
121858
|
batch.endpoint = function(callback) {
|
|
@@ -122033,7 +121865,7 @@ batch.endpoint = function(callback) {
|
|
|
122033
121865
|
}
|
|
122034
121866
|
};
|
|
122035
121867
|
|
|
122036
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121868
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
122037
121869
|
var action = createBoundaryAnnotation(function() {
|
|
122038
121870
|
batchStart();
|
|
122039
121871
|
untrackStart();
|
|
@@ -122049,10 +121881,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
122049
121881
|
batchScopeEnd();
|
|
122050
121882
|
});
|
|
122051
121883
|
|
|
122052
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121884
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
122053
121885
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
122054
121886
|
|
|
122055
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121887
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
122056
121888
|
var observable = createAnnotation(function(_a2) {
|
|
122057
121889
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122058
121890
|
var store = {
|
|
@@ -122092,7 +121924,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
122092
121924
|
return store.value;
|
|
122093
121925
|
});
|
|
122094
121926
|
|
|
122095
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121927
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
122096
121928
|
var box = createAnnotation(function(_a2) {
|
|
122097
121929
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122098
121930
|
var store = {
|
|
@@ -122138,7 +121970,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
122138
121970
|
return proxy;
|
|
122139
121971
|
});
|
|
122140
121972
|
|
|
122141
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
121973
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
122142
121974
|
var ref = createAnnotation(function(_a2) {
|
|
122143
121975
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122144
121976
|
var store = {
|
|
@@ -122186,7 +122018,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
122186
122018
|
return proxy;
|
|
122187
122019
|
});
|
|
122188
122020
|
|
|
122189
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122021
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
122190
122022
|
var shallow = createAnnotation(function(_a2) {
|
|
122191
122023
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
122192
122024
|
var store = {
|
|
@@ -122226,7 +122058,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
122226
122058
|
return store.value;
|
|
122227
122059
|
});
|
|
122228
122060
|
|
|
122229
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122061
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
122230
122062
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
122231
122063
|
var getProto = Object.getPrototypeOf;
|
|
122232
122064
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -122347,7 +122179,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
122347
122179
|
return proxy;
|
|
122348
122180
|
});
|
|
122349
122181
|
|
|
122350
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122182
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
122351
122183
|
function observable2(target) {
|
|
122352
122184
|
return createObservable(null, null, target);
|
|
122353
122185
|
}
|
|
@@ -122358,7 +122190,7 @@ observable2.shallow = shallow;
|
|
|
122358
122190
|
observable2.computed = computed;
|
|
122359
122191
|
observable2[MakeObModelSymbol] = observable;
|
|
122360
122192
|
|
|
122361
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122193
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
122362
122194
|
function define2(target, annotations) {
|
|
122363
122195
|
if (isObservable(target))
|
|
122364
122196
|
return target;
|
|
@@ -122378,7 +122210,7 @@ function define2(target, annotations) {
|
|
|
122378
122210
|
return target;
|
|
122379
122211
|
}
|
|
122380
122212
|
|
|
122381
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122213
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
122382
122214
|
var __assign4 = function() {
|
|
122383
122215
|
__assign4 = Object.assign || function(t) {
|
|
122384
122216
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -122524,7 +122356,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
122524
122356
|
};
|
|
122525
122357
|
};
|
|
122526
122358
|
|
|
122527
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122359
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
122528
122360
|
var Tracker = (
|
|
122529
122361
|
/** @class */
|
|
122530
122362
|
function() {
|
|
@@ -122569,7 +122401,7 @@ var Tracker = (
|
|
|
122569
122401
|
}()
|
|
122570
122402
|
);
|
|
122571
122403
|
|
|
122572
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122404
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
122573
122405
|
var observe = function(target, observer, deep) {
|
|
122574
122406
|
if (deep === void 0) {
|
|
122575
122407
|
deep = true;
|
|
@@ -122602,7 +122434,7 @@ var observe = function(target, observer, deep) {
|
|
|
122602
122434
|
return addListener(target);
|
|
122603
122435
|
};
|
|
122604
122436
|
|
|
122605
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122437
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
122606
122438
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
122607
122439
|
var SchemaNestedMap = {
|
|
122608
122440
|
parent: true,
|
|
@@ -122789,7 +122621,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
122789
122621
|
});
|
|
122790
122622
|
};
|
|
122791
122623
|
|
|
122792
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
122624
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
122793
122625
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
122794
122626
|
var Registry = {
|
|
122795
122627
|
silent: false,
|
|
@@ -122893,7 +122725,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
122893
122725
|
});
|
|
122894
122726
|
};
|
|
122895
122727
|
|
|
122896
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122728
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
122897
122729
|
var LifeCycle = (
|
|
122898
122730
|
/** @class */
|
|
122899
122731
|
function() {
|
|
@@ -122939,7 +122771,7 @@ var LifeCycle = (
|
|
|
122939
122771
|
}()
|
|
122940
122772
|
);
|
|
122941
122773
|
|
|
122942
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122774
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
122943
122775
|
var __extends2 = function() {
|
|
122944
122776
|
var extendStatics = function(d, b) {
|
|
122945
122777
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -123035,7 +122867,7 @@ var Heart = (
|
|
|
123035
122867
|
}(Subscribable)
|
|
123036
122868
|
);
|
|
123037
122869
|
|
|
123038
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122870
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
123039
122871
|
var isForm = function(node) {
|
|
123040
122872
|
return node instanceof Form;
|
|
123041
122873
|
};
|
|
@@ -123081,7 +122913,7 @@ var isQuery = function(query) {
|
|
|
123081
122913
|
return query && query instanceof Query;
|
|
123082
122914
|
};
|
|
123083
122915
|
|
|
123084
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
122916
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
123085
122917
|
var Graph = (
|
|
123086
122918
|
/** @class */
|
|
123087
122919
|
function() {
|
|
@@ -123133,12 +122965,12 @@ var Graph = (
|
|
|
123133
122965
|
}()
|
|
123134
122966
|
);
|
|
123135
122967
|
|
|
123136
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
122968
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
123137
122969
|
var isValidateResult = function(obj) {
|
|
123138
122970
|
return !!obj["type"] && !!obj["message"];
|
|
123139
122971
|
};
|
|
123140
122972
|
|
|
123141
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
122973
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
123142
122974
|
var getIn2 = Path.getIn;
|
|
123143
122975
|
var self2 = globalThisPolyfill;
|
|
123144
122976
|
var defaultLanguage = "en";
|
|
@@ -123209,7 +123041,7 @@ var registerValidateFormats = function(formats) {
|
|
|
123209
123041
|
});
|
|
123210
123042
|
};
|
|
123211
123043
|
|
|
123212
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123044
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
123213
123045
|
var render = function(result, rules) {
|
|
123214
123046
|
var message = result.message;
|
|
123215
123047
|
if (isStr(result.message)) {
|
|
@@ -123224,7 +123056,7 @@ var render = function(result, rules) {
|
|
|
123224
123056
|
return result;
|
|
123225
123057
|
};
|
|
123226
123058
|
|
|
123227
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123059
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
123228
123060
|
var __assign5 = function() {
|
|
123229
123061
|
__assign5 = Object.assign || function(t) {
|
|
123230
123062
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -123475,7 +123307,7 @@ var parseValidator = function(validator, options) {
|
|
|
123475
123307
|
}, []);
|
|
123476
123308
|
};
|
|
123477
123309
|
|
|
123478
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123310
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
123479
123311
|
var locale_default = {
|
|
123480
123312
|
en: {
|
|
123481
123313
|
pattern: "This field is invalid",
|
|
@@ -123695,7 +123527,7 @@ var locale_default = {
|
|
|
123695
123527
|
}
|
|
123696
123528
|
};
|
|
123697
123529
|
|
|
123698
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123530
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
123699
123531
|
var formats_default = {
|
|
123700
123532
|
url: new RegExp(
|
|
123701
123533
|
// protocol identifier
|
|
@@ -123715,7 +123547,7 @@ var formats_default = {
|
|
|
123715
123547
|
zip: /^[0-9]{6}$/
|
|
123716
123548
|
};
|
|
123717
123549
|
|
|
123718
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123550
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
123719
123551
|
var __assign6 = function() {
|
|
123720
123552
|
__assign6 = Object.assign || function(t) {
|
|
123721
123553
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124030,7 +123862,7 @@ extendSameRules(RULES, {
|
|
|
124030
123862
|
});
|
|
124031
123863
|
var rules_default = RULES;
|
|
124032
123864
|
|
|
124033
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
123865
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
124034
123866
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
124035
123867
|
function adopt(value) {
|
|
124036
123868
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -124175,7 +124007,7 @@ var validate = function(value, validator, options) {
|
|
|
124175
124007
|
});
|
|
124176
124008
|
};
|
|
124177
124009
|
|
|
124178
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124010
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
124179
124011
|
var LifeCycleTypes;
|
|
124180
124012
|
(function(LifeCycleTypes2) {
|
|
124181
124013
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -124227,7 +124059,7 @@ var LifeCycleTypes;
|
|
|
124227
124059
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
124228
124060
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
124229
124061
|
|
|
124230
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124062
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
124231
124063
|
var ReservedProperties = {
|
|
124232
124064
|
form: true,
|
|
124233
124065
|
parent: true,
|
|
@@ -124279,7 +124111,7 @@ var GlobalState = {
|
|
|
124279
124111
|
};
|
|
124280
124112
|
var NumberIndexReg = /^\.(\d+)/;
|
|
124281
124113
|
|
|
124282
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124114
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
124283
124115
|
var __assign7 = function() {
|
|
124284
124116
|
__assign7 = Object.assign || function(t) {
|
|
124285
124117
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125386,7 +125218,7 @@ var getObjectParent = function(field) {
|
|
|
125386
125218
|
}
|
|
125387
125219
|
};
|
|
125388
125220
|
|
|
125389
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125221
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
125390
125222
|
var output = function(field, taker) {
|
|
125391
125223
|
if (!field)
|
|
125392
125224
|
return;
|
|
@@ -125469,7 +125301,7 @@ var Query = (
|
|
|
125469
125301
|
}()
|
|
125470
125302
|
);
|
|
125471
125303
|
|
|
125472
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125304
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
125473
125305
|
var __read4 = function(o, n) {
|
|
125474
125306
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
125475
125307
|
if (!m)
|
|
@@ -125849,7 +125681,7 @@ var BaseField = (
|
|
|
125849
125681
|
}()
|
|
125850
125682
|
);
|
|
125851
125683
|
|
|
125852
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125684
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
125853
125685
|
var __extends3 = function() {
|
|
125854
125686
|
var extendStatics = function(d, b) {
|
|
125855
125687
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126490,7 +126322,7 @@ var Field = (
|
|
|
126490
126322
|
}(BaseField)
|
|
126491
126323
|
);
|
|
126492
126324
|
|
|
126493
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126325
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
126494
126326
|
var __read5 = function(o, n) {
|
|
126495
126327
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
126496
126328
|
if (!m)
|
|
@@ -126584,7 +126416,7 @@ var runEffects = function(context) {
|
|
|
126584
126416
|
return GlobalState.lifecycles;
|
|
126585
126417
|
};
|
|
126586
126418
|
|
|
126587
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126419
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
126588
126420
|
var __extends4 = function() {
|
|
126589
126421
|
var extendStatics = function(d, b) {
|
|
126590
126422
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126774,7 +126606,7 @@ var ArrayField = (
|
|
|
126774
126606
|
}(Field)
|
|
126775
126607
|
);
|
|
126776
126608
|
|
|
126777
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126609
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
126778
126610
|
var __extends5 = function() {
|
|
126779
126611
|
var extendStatics = function(d, b) {
|
|
126780
126612
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126835,7 +126667,7 @@ var ObjectField = (
|
|
|
126835
126667
|
}(Field)
|
|
126836
126668
|
);
|
|
126837
126669
|
|
|
126838
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126670
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
126839
126671
|
var __extends6 = function() {
|
|
126840
126672
|
var extendStatics = function(d, b) {
|
|
126841
126673
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -126950,7 +126782,7 @@ var VoidField = (
|
|
|
126950
126782
|
}(BaseField)
|
|
126951
126783
|
);
|
|
126952
126784
|
|
|
126953
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126785
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
126954
126786
|
var __assign8 = function() {
|
|
126955
126787
|
__assign8 = Object.assign || function(t) {
|
|
126956
126788
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127478,7 +127310,7 @@ var Form = (
|
|
|
127478
127310
|
}()
|
|
127479
127311
|
);
|
|
127480
127312
|
|
|
127481
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127313
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
127482
127314
|
function createFormEffect(type) {
|
|
127483
127315
|
return createEffectHook(type, function(form) {
|
|
127484
127316
|
return function(callback) {
|
|
@@ -127511,7 +127343,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
127511
127343
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
127512
127344
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
127513
127345
|
|
|
127514
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127346
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
127515
127347
|
function createFieldEffect(type) {
|
|
127516
127348
|
return createEffectHook(type, function(field, form) {
|
|
127517
127349
|
return function(pattern, callback) {
|
|
@@ -127556,7 +127388,7 @@ function onFieldInit(pattern, callback) {
|
|
|
127556
127388
|
}
|
|
127557
127389
|
}
|
|
127558
127390
|
|
|
127559
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127391
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
127560
127392
|
var __read7 = function(o, n) {
|
|
127561
127393
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127562
127394
|
if (!m)
|
|
@@ -127781,7 +127613,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
127781
127613
|
};
|
|
127782
127614
|
};
|
|
127783
127615
|
|
|
127784
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127616
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
127785
127617
|
var __assign9 = function() {
|
|
127786
127618
|
__assign9 = Object.assign || function(t) {
|
|
127787
127619
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127830,7 +127662,7 @@ var enablePolyfills = function(versions) {
|
|
|
127830
127662
|
}
|
|
127831
127663
|
};
|
|
127832
127664
|
|
|
127833
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127665
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
127834
127666
|
var __assign10 = function() {
|
|
127835
127667
|
__assign10 = Object.assign || function(t) {
|
|
127836
127668
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127987,7 +127819,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
127987
127819
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
127988
127820
|
};
|
|
127989
127821
|
|
|
127990
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
127822
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
127991
127823
|
var Schema = (
|
|
127992
127824
|
/** @class */
|
|
127993
127825
|
function() {
|
|
@@ -128223,10 +128055,10 @@ var Schema = (
|
|
|
128223
128055
|
}()
|
|
128224
128056
|
);
|
|
128225
128057
|
|
|
128226
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128058
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128227
128059
|
var import_inquirer = __toESM(require_inquirer());
|
|
128228
128060
|
|
|
128229
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128061
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
128230
128062
|
var import_lodash2 = __toESM(require_lodash2());
|
|
128231
128063
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128232
128064
|
try {
|
|
@@ -128573,7 +128405,7 @@ function transformForm(schema) {
|
|
|
128573
128405
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128574
128406
|
}
|
|
128575
128407
|
|
|
128576
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128408
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128577
128409
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128578
128410
|
try {
|
|
128579
128411
|
var info = gen[key](arg);
|
|
@@ -129097,7 +128929,7 @@ function _prompt() {
|
|
|
129097
128929
|
return _prompt.apply(this, arguments);
|
|
129098
128930
|
}
|
|
129099
128931
|
|
|
129100
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128932
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
129101
128933
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129102
128934
|
try {
|
|
129103
128935
|
var info = gen[key](arg);
|
|
@@ -129337,7 +129169,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
129337
129169
|
return CLIReader2;
|
|
129338
129170
|
}();
|
|
129339
129171
|
|
|
129340
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129172
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129341
129173
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
129342
129174
|
|
|
129343
129175
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -129416,7 +129248,7 @@ var I18n = class {
|
|
|
129416
129248
|
}
|
|
129417
129249
|
};
|
|
129418
129250
|
|
|
129419
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129251
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
129420
129252
|
var ZH_LOCALE = {
|
|
129421
129253
|
environment: {
|
|
129422
129254
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -129443,7 +129275,7 @@ var ZH_LOCALE = {
|
|
|
129443
129275
|
}
|
|
129444
129276
|
};
|
|
129445
129277
|
|
|
129446
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129278
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
129447
129279
|
var EN_LOCALE = {
|
|
129448
129280
|
environment: {
|
|
129449
129281
|
node_version: "please upgrade node to lts version",
|
|
@@ -129470,14 +129302,14 @@ var EN_LOCALE = {
|
|
|
129470
129302
|
}
|
|
129471
129303
|
};
|
|
129472
129304
|
|
|
129473
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129305
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
129474
129306
|
var i18n = new I18n();
|
|
129475
129307
|
var localeKeys = i18n.init("zh", {
|
|
129476
129308
|
zh: ZH_LOCALE,
|
|
129477
129309
|
en: EN_LOCALE
|
|
129478
129310
|
});
|
|
129479
129311
|
|
|
129480
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129312
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
129481
129313
|
var import_lodash5 = __toESM(require_lodash2());
|
|
129482
129314
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129483
129315
|
try {
|
|
@@ -129686,7 +129518,7 @@ function transformInquirerSchema(questions) {
|
|
|
129686
129518
|
return questions;
|
|
129687
129519
|
}
|
|
129688
129520
|
|
|
129689
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129521
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
129690
129522
|
var import_path4 = __toESM(require("path"));
|
|
129691
129523
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129692
129524
|
try {
|
|
@@ -129950,7 +129782,7 @@ function _checkUseNvm() {
|
|
|
129950
129782
|
return _checkUseNvm.apply(this, arguments);
|
|
129951
129783
|
}
|
|
129952
129784
|
|
|
129953
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129785
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129954
129786
|
function _array_like_to_array(arr, len) {
|
|
129955
129787
|
if (len == null || len > arr.length)
|
|
129956
129788
|
len = arr.length;
|
|
@@ -130531,7 +130363,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
130531
130363
|
switch (_state2.label) {
|
|
130532
130364
|
case 0:
|
|
130533
130365
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
130534
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
130366
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
130535
130367
|
return [
|
|
130536
130368
|
4,
|
|
130537
130369
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -130880,6 +130712,15 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
130880
130712
|
return AppAPI2;
|
|
130881
130713
|
}();
|
|
130882
130714
|
|
|
130715
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
130716
|
+
function _define_property13(obj, key, value) {
|
|
130717
|
+
if (key in obj) {
|
|
130718
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
130719
|
+
} else
|
|
130720
|
+
obj[key] = value;
|
|
130721
|
+
return obj;
|
|
130722
|
+
}
|
|
130723
|
+
|
|
130883
130724
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
130884
130725
|
var import_lodash8 = __toESM(require_lodash3());
|
|
130885
130726
|
|
|
@@ -130898,19 +130739,6 @@ function getObjKeyMap2(obj, prefix = "") {
|
|
|
130898
130739
|
}
|
|
130899
130740
|
|
|
130900
130741
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
130901
|
-
function _define_property13(obj, key, value) {
|
|
130902
|
-
if (key in obj) {
|
|
130903
|
-
Object.defineProperty(obj, key, {
|
|
130904
|
-
value,
|
|
130905
|
-
enumerable: true,
|
|
130906
|
-
configurable: true,
|
|
130907
|
-
writable: true
|
|
130908
|
-
});
|
|
130909
|
-
} else {
|
|
130910
|
-
obj[key] = value;
|
|
130911
|
-
}
|
|
130912
|
-
return obj;
|
|
130913
|
-
}
|
|
130914
130742
|
var I18n2 = class {
|
|
130915
130743
|
format(msg, vars) {
|
|
130916
130744
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -131208,7 +131036,7 @@ var BaseDefaultConfig = {
|
|
|
131208
131036
|
|
|
131209
131037
|
// ../../generator-utils/dist/esm/index.js
|
|
131210
131038
|
var import_path5 = __toESM(require("path"));
|
|
131211
|
-
var
|
|
131039
|
+
var import_utils14 = __toESM(require_cjs2());
|
|
131212
131040
|
|
|
131213
131041
|
// src/index.ts
|
|
131214
131042
|
var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, function* () {
|
|
@@ -131247,7 +131075,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
131247
131075
|
(resourceKey) => resourceKey.replace("templates/pnpm-templates/npmrc", ".npmrc").replace(".handlebars", "")
|
|
131248
131076
|
);
|
|
131249
131077
|
}
|
|
131250
|
-
|
|
131078
|
+
import_utils14.fs.chmodSync(import_path6.default.join(generator.outputPath, ".husky", "pre-commit"), "755");
|
|
131251
131079
|
});
|
|
131252
131080
|
var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
131253
131081
|
const appApi = new AppAPI(context, generator);
|