@modern-js/packages-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 +304 -472
- package/package.json +9 -10
package/dist/index.js
CHANGED
|
@@ -86274,6 +86274,79 @@ var require_dist = __commonJS({
|
|
|
86274
86274
|
}
|
|
86275
86275
|
});
|
|
86276
86276
|
|
|
86277
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
86278
|
+
var require_export_star = __commonJS({
|
|
86279
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
86280
|
+
"use strict";
|
|
86281
|
+
exports._ = exports._export_star = _export_star;
|
|
86282
|
+
function _export_star(from, to) {
|
|
86283
|
+
Object.keys(from).forEach(function(k) {
|
|
86284
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
86285
|
+
Object.defineProperty(to, k, {
|
|
86286
|
+
enumerable: true,
|
|
86287
|
+
get: function() {
|
|
86288
|
+
return from[k];
|
|
86289
|
+
}
|
|
86290
|
+
});
|
|
86291
|
+
}
|
|
86292
|
+
});
|
|
86293
|
+
return from;
|
|
86294
|
+
}
|
|
86295
|
+
}
|
|
86296
|
+
});
|
|
86297
|
+
|
|
86298
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
86299
|
+
var require_interop_require_default = __commonJS({
|
|
86300
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
86301
|
+
"use strict";
|
|
86302
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
86303
|
+
function _interop_require_default(obj) {
|
|
86304
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
86305
|
+
}
|
|
86306
|
+
}
|
|
86307
|
+
});
|
|
86308
|
+
|
|
86309
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
86310
|
+
var require_interop_require_wildcard = __commonJS({
|
|
86311
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
86312
|
+
"use strict";
|
|
86313
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
86314
|
+
if (typeof WeakMap !== "function")
|
|
86315
|
+
return null;
|
|
86316
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
86317
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
86318
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
86319
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
86320
|
+
})(nodeInterop);
|
|
86321
|
+
}
|
|
86322
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
86323
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
86324
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
86325
|
+
return obj;
|
|
86326
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
86327
|
+
return { default: obj };
|
|
86328
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
86329
|
+
if (cache && cache.has(obj))
|
|
86330
|
+
return cache.get(obj);
|
|
86331
|
+
var newObj = {};
|
|
86332
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
86333
|
+
for (var key in obj) {
|
|
86334
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
86335
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
86336
|
+
if (desc && (desc.get || desc.set))
|
|
86337
|
+
Object.defineProperty(newObj, key, desc);
|
|
86338
|
+
else
|
|
86339
|
+
newObj[key] = obj[key];
|
|
86340
|
+
}
|
|
86341
|
+
}
|
|
86342
|
+
newObj.default = obj;
|
|
86343
|
+
if (cache)
|
|
86344
|
+
cache.set(obj, newObj);
|
|
86345
|
+
return newObj;
|
|
86346
|
+
}
|
|
86347
|
+
}
|
|
86348
|
+
});
|
|
86349
|
+
|
|
86277
86350
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
86278
86351
|
var require_import_lazy2 = __commonJS({
|
|
86279
86352
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -115425,80 +115498,37 @@ var require_compiled = __commonJS({
|
|
|
115425
115498
|
chokidar: () => chokidar2,
|
|
115426
115499
|
inquirer: () => inquirer4
|
|
115427
115500
|
});
|
|
115501
|
+
var _interop_require_default = require_interop_require_default();
|
|
115502
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
115428
115503
|
var _import = require_import();
|
|
115429
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra2());
|
|
115430
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora3());
|
|
115431
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob2());
|
|
115432
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml2());
|
|
115433
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk2());
|
|
115434
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug2());
|
|
115435
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash2());
|
|
115436
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa2());
|
|
115437
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json52());
|
|
115438
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath2());
|
|
115439
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up2());
|
|
115504
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra2());
|
|
115505
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora3());
|
|
115506
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob2());
|
|
115507
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml2());
|
|
115508
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
115509
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug2());
|
|
115510
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash2());
|
|
115511
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa2());
|
|
115512
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json52());
|
|
115513
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath2());
|
|
115514
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
115440
115515
|
var _nanoid = require_nanoid2();
|
|
115441
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver2());
|
|
115442
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv2());
|
|
115443
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash3());
|
|
115444
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby2());
|
|
115445
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address2());
|
|
115446
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale2());
|
|
115447
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join2());
|
|
115448
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist2());
|
|
115449
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob2());
|
|
115450
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize2());
|
|
115451
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size2());
|
|
115452
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi3());
|
|
115453
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand2());
|
|
115454
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist2());
|
|
115455
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir2());
|
|
115516
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver2());
|
|
115517
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv2());
|
|
115518
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
|
115519
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby2());
|
|
115520
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address2());
|
|
115521
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale2());
|
|
115522
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join2());
|
|
115523
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist2());
|
|
115524
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob2());
|
|
115525
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize2());
|
|
115526
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size2());
|
|
115527
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi3());
|
|
115528
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand2());
|
|
115529
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist2());
|
|
115530
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir2());
|
|
115456
115531
|
var _commander = require_commander2();
|
|
115457
|
-
function _interop_require_default(obj) {
|
|
115458
|
-
return obj && obj.__esModule ? obj : {
|
|
115459
|
-
default: obj
|
|
115460
|
-
};
|
|
115461
|
-
}
|
|
115462
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
115463
|
-
if (typeof WeakMap !== "function")
|
|
115464
|
-
return null;
|
|
115465
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
115466
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
115467
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
115468
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
115469
|
-
})(nodeInterop);
|
|
115470
|
-
}
|
|
115471
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
115472
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
115473
|
-
return obj;
|
|
115474
|
-
}
|
|
115475
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
115476
|
-
return {
|
|
115477
|
-
default: obj
|
|
115478
|
-
};
|
|
115479
|
-
}
|
|
115480
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
115481
|
-
if (cache && cache.has(obj)) {
|
|
115482
|
-
return cache.get(obj);
|
|
115483
|
-
}
|
|
115484
|
-
var newObj = {};
|
|
115485
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
115486
|
-
for (var key in obj) {
|
|
115487
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
115488
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
115489
|
-
if (desc && (desc.get || desc.set)) {
|
|
115490
|
-
Object.defineProperty(newObj, key, desc);
|
|
115491
|
-
} else {
|
|
115492
|
-
newObj[key] = obj[key];
|
|
115493
|
-
}
|
|
115494
|
-
}
|
|
115495
|
-
}
|
|
115496
|
-
newObj.default = obj;
|
|
115497
|
-
if (cache) {
|
|
115498
|
-
cache.set(obj, newObj);
|
|
115499
|
-
}
|
|
115500
|
-
return newObj;
|
|
115501
|
-
}
|
|
115502
115532
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
115503
115533
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
115504
115534
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -115648,6 +115678,8 @@ var require_chainId = __commonJS({
|
|
|
115648
115678
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115649
115679
|
/** HtmlCrossOriginPlugin */
|
|
115650
115680
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115681
|
+
/** HtmlNoncePlugin */
|
|
115682
|
+
HTML_NONCE: "html-nonce",
|
|
115651
115683
|
/** MiniCssExtractPlugin */
|
|
115652
115684
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115653
115685
|
/** ReactFastRefreshPlugin */
|
|
@@ -115736,20 +115768,8 @@ var require_constants = __commonJS({
|
|
|
115736
115768
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
115737
115769
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
115738
115770
|
});
|
|
115739
|
-
_export_star(
|
|
115740
|
-
|
|
115741
|
-
Object.keys(from).forEach(function(k) {
|
|
115742
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
115743
|
-
Object.defineProperty(to, k, {
|
|
115744
|
-
enumerable: true,
|
|
115745
|
-
get: function() {
|
|
115746
|
-
return from[k];
|
|
115747
|
-
}
|
|
115748
|
-
});
|
|
115749
|
-
}
|
|
115750
|
-
});
|
|
115751
|
-
return from;
|
|
115752
|
-
}
|
|
115771
|
+
var _export_star = require_export_star();
|
|
115772
|
+
_export_star._(require_chainId(), exports);
|
|
115753
115773
|
var ROUTE_SPEC_FILE = "route.json";
|
|
115754
115774
|
var MAIN_ENTRY_NAME = "main";
|
|
115755
115775
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -116362,12 +116382,8 @@ var require_ensure = __commonJS({
|
|
|
116362
116382
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
116363
116383
|
ensureArray: () => ensureArray
|
|
116364
116384
|
});
|
|
116365
|
-
var
|
|
116366
|
-
|
|
116367
|
-
return obj && obj.__esModule ? obj : {
|
|
116368
|
-
default: obj
|
|
116369
|
-
};
|
|
116370
|
-
}
|
|
116385
|
+
var _interop_require_default = require_interop_require_default();
|
|
116386
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116371
116387
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
116372
116388
|
var ensureArray = (params) => {
|
|
116373
116389
|
if (Array.isArray(params)) {
|
|
@@ -116403,16 +116419,12 @@ var require_project = __commonJS({
|
|
|
116403
116419
|
isReact18: () => isReact182,
|
|
116404
116420
|
isTypescript: () => isTypescript
|
|
116405
116421
|
});
|
|
116406
|
-
var
|
|
116422
|
+
var _interop_require_default = require_interop_require_default();
|
|
116423
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116407
116424
|
var _commands = require_commands();
|
|
116408
116425
|
var _compiled = require_compiled();
|
|
116409
116426
|
var _common = require_common3();
|
|
116410
116427
|
var _ensure = require_ensure();
|
|
116411
|
-
function _interop_require_default(obj) {
|
|
116412
|
-
return obj && obj.__esModule ? obj : {
|
|
116413
|
-
default: obj
|
|
116414
|
-
};
|
|
116415
|
-
}
|
|
116416
116428
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
116417
116429
|
var isDepExists = (appDirectory, name) => {
|
|
116418
116430
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -116479,24 +116491,12 @@ var require_is = __commonJS({
|
|
|
116479
116491
|
Object.defineProperty(exports, "__esModule", {
|
|
116480
116492
|
value: true
|
|
116481
116493
|
});
|
|
116482
|
-
_export_star(
|
|
116483
|
-
_export_star(
|
|
116484
|
-
_export_star(
|
|
116485
|
-
_export_star(
|
|
116486
|
-
_export_star(
|
|
116487
|
-
|
|
116488
|
-
Object.keys(from).forEach(function(k) {
|
|
116489
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116490
|
-
Object.defineProperty(to, k, {
|
|
116491
|
-
enumerable: true,
|
|
116492
|
-
get: function() {
|
|
116493
|
-
return from[k];
|
|
116494
|
-
}
|
|
116495
|
-
});
|
|
116496
|
-
}
|
|
116497
|
-
});
|
|
116498
|
-
return from;
|
|
116499
|
-
}
|
|
116494
|
+
var _export_star = require_export_star();
|
|
116495
|
+
_export_star._(require_env(), exports);
|
|
116496
|
+
_export_star._(require_platform(), exports);
|
|
116497
|
+
_export_star._(require_type(), exports);
|
|
116498
|
+
_export_star._(require_config2(), exports);
|
|
116499
|
+
_export_star._(require_project(), exports);
|
|
116500
116500
|
}
|
|
116501
116501
|
});
|
|
116502
116502
|
|
|
@@ -116598,17 +116598,13 @@ var require_data = __commonJS({
|
|
|
116598
116598
|
readTsConfig: () => readTsConfig,
|
|
116599
116599
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
116600
116600
|
});
|
|
116601
|
-
var
|
|
116602
|
-
var
|
|
116601
|
+
var _interop_require_default = require_interop_require_default();
|
|
116602
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116603
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116603
116604
|
var _compiled = require_compiled();
|
|
116604
116605
|
var _constants = require_constants();
|
|
116605
116606
|
var _is = require_is();
|
|
116606
116607
|
var _package = require_package4();
|
|
116607
|
-
function _interop_require_default(obj) {
|
|
116608
|
-
return obj && obj.__esModule ? obj : {
|
|
116609
|
-
default: obj
|
|
116610
|
-
};
|
|
116611
|
-
}
|
|
116612
116608
|
var MAX_TIMES = 5;
|
|
116613
116609
|
function getPackageManager2() {
|
|
116614
116610
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -116740,29 +116736,13 @@ var require_get2 = __commonJS({
|
|
|
116740
116736
|
getServerConfig: () => getServerConfig,
|
|
116741
116737
|
getTargetDir: () => getTargetDir
|
|
116742
116738
|
});
|
|
116743
|
-
var
|
|
116739
|
+
var _export_star = require_export_star();
|
|
116740
|
+
var _interop_require_default = require_interop_require_default();
|
|
116741
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116744
116742
|
var _constants = require_constants();
|
|
116745
116743
|
var _fs = require_fs();
|
|
116746
|
-
_export_star(require_data(), exports);
|
|
116747
|
-
_export_star(require_config3(), exports);
|
|
116748
|
-
function _export_star(from, to) {
|
|
116749
|
-
Object.keys(from).forEach(function(k) {
|
|
116750
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116751
|
-
Object.defineProperty(to, k, {
|
|
116752
|
-
enumerable: true,
|
|
116753
|
-
get: function() {
|
|
116754
|
-
return from[k];
|
|
116755
|
-
}
|
|
116756
|
-
});
|
|
116757
|
-
}
|
|
116758
|
-
});
|
|
116759
|
-
return from;
|
|
116760
|
-
}
|
|
116761
|
-
function _interop_require_default(obj) {
|
|
116762
|
-
return obj && obj.__esModule ? obj : {
|
|
116763
|
-
default: obj
|
|
116764
|
-
};
|
|
116765
|
-
}
|
|
116744
|
+
_export_star._(require_data(), exports);
|
|
116745
|
+
_export_star._(require_config3(), exports);
|
|
116766
116746
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
116767
116747
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
116768
116748
|
return configFilePath;
|
|
@@ -116774,6 +116754,21 @@ var require_get2 = __commonJS({
|
|
|
116774
116754
|
}
|
|
116775
116755
|
});
|
|
116776
116756
|
|
|
116757
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
116758
|
+
var require_define_property = __commonJS({
|
|
116759
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
116760
|
+
"use strict";
|
|
116761
|
+
exports._ = exports._define_property = _define_property14;
|
|
116762
|
+
function _define_property14(obj, key, value) {
|
|
116763
|
+
if (key in obj) {
|
|
116764
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
116765
|
+
} else
|
|
116766
|
+
obj[key] = value;
|
|
116767
|
+
return obj;
|
|
116768
|
+
}
|
|
116769
|
+
}
|
|
116770
|
+
});
|
|
116771
|
+
|
|
116777
116772
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
116778
116773
|
var require_logger2 = __commonJS({
|
|
116779
116774
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -116792,25 +116787,9 @@ var require_logger2 = __commonJS({
|
|
|
116792
116787
|
Logger: () => Logger,
|
|
116793
116788
|
logger: () => logger
|
|
116794
116789
|
});
|
|
116795
|
-
var
|
|
116796
|
-
|
|
116797
|
-
|
|
116798
|
-
Object.defineProperty(obj, key, {
|
|
116799
|
-
value,
|
|
116800
|
-
enumerable: true,
|
|
116801
|
-
configurable: true,
|
|
116802
|
-
writable: true
|
|
116803
|
-
});
|
|
116804
|
-
} else {
|
|
116805
|
-
obj[key] = value;
|
|
116806
|
-
}
|
|
116807
|
-
return obj;
|
|
116808
|
-
}
|
|
116809
|
-
function _interop_require_default(obj) {
|
|
116810
|
-
return obj && obj.__esModule ? obj : {
|
|
116811
|
-
default: obj
|
|
116812
|
-
};
|
|
116813
|
-
}
|
|
116790
|
+
var _define_property14 = require_define_property();
|
|
116791
|
+
var _interop_require_default = require_interop_require_default();
|
|
116792
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
116814
116793
|
var LOG_LEVEL = {
|
|
116815
116794
|
error: 0,
|
|
116816
116795
|
warn: 1,
|
|
@@ -116894,10 +116873,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
116894
116873
|
return longestLabel;
|
|
116895
116874
|
}
|
|
116896
116875
|
constructor(options = {}) {
|
|
116897
|
-
_define_property14(this, "level", void 0);
|
|
116898
|
-
_define_property14(this, "config", void 0);
|
|
116899
|
-
_define_property14(this, "types", void 0);
|
|
116900
|
-
_define_property14(this, "longestLabel", void 0);
|
|
116876
|
+
_define_property14._(this, "level", void 0);
|
|
116877
|
+
_define_property14._(this, "config", void 0);
|
|
116878
|
+
_define_property14._(this, "types", void 0);
|
|
116879
|
+
_define_property14._(this, "longestLabel", void 0);
|
|
116901
116880
|
this.level = options.level || LOG_TYPES.log.level;
|
|
116902
116881
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
116903
116882
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -116970,16 +116949,12 @@ var require_alias = __commonJS({
|
|
|
116970
116949
|
getAliasConfig: () => getAliasConfig,
|
|
116971
116950
|
getUserAlias: () => getUserAlias
|
|
116972
116951
|
});
|
|
116973
|
-
var
|
|
116974
|
-
var
|
|
116952
|
+
var _interop_require_default = require_interop_require_default();
|
|
116953
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116954
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116975
116955
|
var _compiled = require_compiled();
|
|
116976
116956
|
var _get = require_get2();
|
|
116977
116957
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
116978
|
-
function _interop_require_default(obj) {
|
|
116979
|
-
return obj && obj.__esModule ? obj : {
|
|
116980
|
-
default: obj
|
|
116981
|
-
};
|
|
116982
|
-
}
|
|
116983
116958
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
116984
116959
|
const { source: { alias } } = modernConfig;
|
|
116985
116960
|
if (!alias) {
|
|
@@ -117055,15 +117030,11 @@ var require_path = __commonJS({
|
|
|
117055
117030
|
removeTailSlash: () => removeTailSlash,
|
|
117056
117031
|
removeSlash: () => removeSlash
|
|
117057
117032
|
});
|
|
117058
|
-
var
|
|
117059
|
-
var
|
|
117060
|
-
var
|
|
117033
|
+
var _interop_require_default = require_interop_require_default();
|
|
117034
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117035
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
117036
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
117061
117037
|
var _compiled = require_compiled();
|
|
117062
|
-
function _interop_require_default(obj) {
|
|
117063
|
-
return obj && obj.__esModule ? obj : {
|
|
117064
|
-
default: obj
|
|
117065
|
-
};
|
|
117066
|
-
}
|
|
117067
117038
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
117068
117039
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
117069
117040
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -117227,54 +117198,6 @@ var require_babel = __commonJS({
|
|
|
117227
117198
|
}
|
|
117228
117199
|
});
|
|
117229
117200
|
|
|
117230
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
117231
|
-
var require_generateMetaTags = __commonJS({
|
|
117232
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
117233
|
-
"use strict";
|
|
117234
|
-
Object.defineProperty(exports, "__esModule", {
|
|
117235
|
-
value: true
|
|
117236
|
-
});
|
|
117237
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
117238
|
-
enumerable: true,
|
|
117239
|
-
get: () => generateMetaTags
|
|
117240
|
-
});
|
|
117241
|
-
var tagObjectToString = (tagDefinition) => {
|
|
117242
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
117243
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
117244
|
-
return attributeName;
|
|
117245
|
-
}
|
|
117246
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
117247
|
-
});
|
|
117248
|
-
return `<${[
|
|
117249
|
-
tagDefinition.tagName
|
|
117250
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
117251
|
-
};
|
|
117252
|
-
var generateMetaTags = (metaOptions) => {
|
|
117253
|
-
if (!metaOptions) {
|
|
117254
|
-
return "";
|
|
117255
|
-
}
|
|
117256
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
117257
|
-
const metaTagContent = metaOptions[metaName];
|
|
117258
|
-
return typeof metaTagContent === "string" ? {
|
|
117259
|
-
name: metaName,
|
|
117260
|
-
content: metaTagContent
|
|
117261
|
-
} : metaTagContent;
|
|
117262
|
-
}).filter((attribute) => attribute !== false);
|
|
117263
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
117264
|
-
if (metaTagAttributes === false) {
|
|
117265
|
-
throw new Error("Invalid meta tag");
|
|
117266
|
-
}
|
|
117267
|
-
return {
|
|
117268
|
-
tagName: "meta",
|
|
117269
|
-
voidTag: true,
|
|
117270
|
-
attributes: metaTagAttributes
|
|
117271
|
-
};
|
|
117272
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
117273
|
-
${tagObjectToString(tagObject)}`, "");
|
|
117274
|
-
};
|
|
117275
|
-
}
|
|
117276
|
-
});
|
|
117277
|
-
|
|
117278
117201
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
117279
117202
|
var require_monorepo = __commonJS({
|
|
117280
117203
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -117298,14 +117221,10 @@ var require_monorepo = __commonJS({
|
|
|
117298
117221
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
117299
117222
|
getMonorepoPackages: () => getMonorepoPackages
|
|
117300
117223
|
});
|
|
117301
|
-
var
|
|
117302
|
-
var
|
|
117224
|
+
var _interop_require_default = require_interop_require_default();
|
|
117225
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
117226
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117303
117227
|
var _compiled = require_compiled();
|
|
117304
|
-
function _interop_require_default(obj) {
|
|
117305
|
-
return obj && obj.__esModule ? obj : {
|
|
117306
|
-
default: obj
|
|
117307
|
-
};
|
|
117308
|
-
}
|
|
117309
117228
|
var PACKAGE_MAX_DEPTH = 5;
|
|
117310
117229
|
var WORKSPACE_FILES = {
|
|
117311
117230
|
YARN: "package.json",
|
|
@@ -117393,14 +117312,10 @@ var require_pathSerializer = __commonJS({
|
|
|
117393
117312
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
117394
117313
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
117395
117314
|
});
|
|
117396
|
-
var
|
|
117397
|
-
var
|
|
117315
|
+
var _interop_require_default = require_interop_require_default();
|
|
117316
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
117317
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
|
117398
117318
|
var _path = require_path();
|
|
117399
|
-
function _interop_require_default(obj) {
|
|
117400
|
-
return obj && obj.__esModule ? obj : {
|
|
117401
|
-
default: obj
|
|
117402
|
-
};
|
|
117403
|
-
}
|
|
117404
117319
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
117405
117320
|
match,
|
|
117406
117321
|
mark: "unknown"
|
|
@@ -117458,14 +117373,10 @@ var require_port = __commonJS({
|
|
|
117458
117373
|
enumerable: true,
|
|
117459
117374
|
get: () => getPort
|
|
117460
117375
|
});
|
|
117461
|
-
var
|
|
117376
|
+
var _interop_require_default = require_interop_require_default();
|
|
117377
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
117462
117378
|
var _compiled = require_compiled();
|
|
117463
117379
|
var _logger = require_logger2();
|
|
117464
|
-
function _interop_require_default(obj) {
|
|
117465
|
-
return obj && obj.__esModule ? obj : {
|
|
117466
|
-
default: obj
|
|
117467
|
-
};
|
|
117468
|
-
}
|
|
117469
117380
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
117470
117381
|
if (typeof port === "string") {
|
|
117471
117382
|
port = parseInt(port, 10);
|
|
@@ -117528,15 +117439,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
117528
117439
|
getAddressUrls: () => getAddressUrls,
|
|
117529
117440
|
prettyInstructions: () => prettyInstructions
|
|
117530
117441
|
});
|
|
117531
|
-
var
|
|
117442
|
+
var _interop_require_default = require_interop_require_default();
|
|
117443
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
117532
117444
|
var _compiled = require_compiled();
|
|
117533
117445
|
var _is = require_is();
|
|
117534
117446
|
var _constants = require_constants();
|
|
117535
|
-
function _interop_require_default(obj) {
|
|
117536
|
-
return obj && obj.__esModule ? obj : {
|
|
117537
|
-
default: obj
|
|
117538
|
-
};
|
|
117539
|
-
}
|
|
117540
117447
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
117541
117448
|
var getIpv4Interfaces = () => {
|
|
117542
117449
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -117740,14 +117647,10 @@ var require_routes = __commonJS({
|
|
|
117740
117647
|
enumerable: true,
|
|
117741
117648
|
get: () => getRouteId
|
|
117742
117649
|
});
|
|
117743
|
-
var
|
|
117650
|
+
var _interop_require_default = require_interop_require_default();
|
|
117651
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117744
117652
|
var _constants = require_constants();
|
|
117745
117653
|
var _path1 = require_path();
|
|
117746
|
-
function _interop_require_default(obj) {
|
|
117747
|
-
return obj && obj.__esModule ? obj : {
|
|
117748
|
-
default: obj
|
|
117749
|
-
};
|
|
117750
|
-
}
|
|
117751
117654
|
var getPathWithoutExt = (filename) => {
|
|
117752
117655
|
const extname = _path.default.extname(filename);
|
|
117753
117656
|
return filename.slice(0, -extname.length);
|
|
@@ -117777,14 +117680,10 @@ var require_runtimeExports = __commonJS({
|
|
|
117777
117680
|
enumerable: true,
|
|
117778
117681
|
get: () => createRuntimeExportsUtils
|
|
117779
117682
|
});
|
|
117780
|
-
var
|
|
117683
|
+
var _interop_require_default = require_interop_require_default();
|
|
117684
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117781
117685
|
var _compiled = require_compiled();
|
|
117782
117686
|
var _path1 = require_path();
|
|
117783
|
-
function _interop_require_default(obj) {
|
|
117784
|
-
return obj && obj.__esModule ? obj : {
|
|
117785
|
-
default: obj
|
|
117786
|
-
};
|
|
117787
|
-
}
|
|
117788
117687
|
var memo = (fn) => {
|
|
117789
117688
|
const cache = /* @__PURE__ */ new Map();
|
|
117790
117689
|
return (...params) => {
|
|
@@ -117861,13 +117760,9 @@ var require_watch = __commonJS({
|
|
|
117861
117760
|
WatchChangeType: () => WatchChangeType,
|
|
117862
117761
|
watch: () => watch
|
|
117863
117762
|
});
|
|
117864
|
-
var
|
|
117763
|
+
var _interop_require_default = require_interop_require_default();
|
|
117764
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117865
117765
|
var _compiled = require_compiled();
|
|
117866
|
-
function _interop_require_default(obj) {
|
|
117867
|
-
return obj && obj.__esModule ? obj : {
|
|
117868
|
-
default: obj
|
|
117869
|
-
};
|
|
117870
|
-
}
|
|
117871
117766
|
var WatchChangeType = {
|
|
117872
117767
|
ADD: "add",
|
|
117873
117768
|
UNLINK: "unlink",
|
|
@@ -117917,43 +117812,30 @@ var require_cli = __commonJS({
|
|
|
117917
117812
|
Object.defineProperty(exports, "__esModule", {
|
|
117918
117813
|
value: true
|
|
117919
117814
|
});
|
|
117920
|
-
_export_star(
|
|
117921
|
-
_export_star(
|
|
117922
|
-
_export_star(
|
|
117923
|
-
_export_star(
|
|
117924
|
-
_export_star(
|
|
117925
|
-
_export_star(
|
|
117926
|
-
_export_star(
|
|
117927
|
-
_export_star(
|
|
117928
|
-
_export_star(
|
|
117929
|
-
_export_star(
|
|
117930
|
-
_export_star(
|
|
117931
|
-
_export_star(require_logger2(), exports);
|
|
117932
|
-
_export_star(require_monorepo(), exports);
|
|
117933
|
-
_export_star(require_package4(), exports);
|
|
117934
|
-
_export_star(require_path(), exports);
|
|
117935
|
-
_export_star(require_pathSerializer(), exports);
|
|
117936
|
-
_export_star(require_port(), exports);
|
|
117937
|
-
_export_star(require_prettyInstructions(), exports);
|
|
117938
|
-
_export_star(require_print(), exports);
|
|
117939
|
-
_export_star(require_require(), exports);
|
|
117940
|
-
_export_star(require_routes(), exports);
|
|
117941
|
-
_export_star(require_runtimeExports(), exports);
|
|
117942
|
-
_export_star(require_test(), exports);
|
|
117943
|
-
_export_star(require_watch(), exports);
|
|
117944
|
-
function _export_star(from, to) {
|
|
117945
|
-
Object.keys(from).forEach(function(k) {
|
|
117946
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117947
|
-
Object.defineProperty(to, k, {
|
|
117948
|
-
enumerable: true,
|
|
117949
|
-
get: function() {
|
|
117950
|
-
return from[k];
|
|
117951
|
-
}
|
|
117952
|
-
});
|
|
117953
|
-
}
|
|
117954
|
-
});
|
|
117955
|
-
return from;
|
|
117956
|
-
}
|
|
117815
|
+
var _export_star = require_export_star();
|
|
117816
|
+
_export_star._(require_constants(), exports);
|
|
117817
|
+
_export_star._(require_get2(), exports);
|
|
117818
|
+
_export_star._(require_is(), exports);
|
|
117819
|
+
_export_star._(require_alias(), exports);
|
|
117820
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
117821
|
+
_export_star._(require_babel(), exports);
|
|
117822
|
+
_export_star._(require_commands(), exports);
|
|
117823
|
+
_export_star._(require_common3(), exports);
|
|
117824
|
+
_export_star._(require_ensure(), exports);
|
|
117825
|
+
_export_star._(require_fs(), exports);
|
|
117826
|
+
_export_star._(require_logger2(), exports);
|
|
117827
|
+
_export_star._(require_monorepo(), exports);
|
|
117828
|
+
_export_star._(require_package4(), exports);
|
|
117829
|
+
_export_star._(require_path(), exports);
|
|
117830
|
+
_export_star._(require_pathSerializer(), exports);
|
|
117831
|
+
_export_star._(require_port(), exports);
|
|
117832
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
117833
|
+
_export_star._(require_print(), exports);
|
|
117834
|
+
_export_star._(require_require(), exports);
|
|
117835
|
+
_export_star._(require_routes(), exports);
|
|
117836
|
+
_export_star._(require_runtimeExports(), exports);
|
|
117837
|
+
_export_star._(require_test(), exports);
|
|
117838
|
+
_export_star._(require_watch(), exports);
|
|
117957
117839
|
}
|
|
117958
117840
|
});
|
|
117959
117841
|
|
|
@@ -117964,22 +117846,10 @@ var require_cjs2 = __commonJS({
|
|
|
117964
117846
|
Object.defineProperty(exports, "__esModule", {
|
|
117965
117847
|
value: true
|
|
117966
117848
|
});
|
|
117967
|
-
_export_star(
|
|
117968
|
-
_export_star(
|
|
117969
|
-
_export_star(
|
|
117970
|
-
|
|
117971
|
-
Object.keys(from).forEach(function(k) {
|
|
117972
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117973
|
-
Object.defineProperty(to, k, {
|
|
117974
|
-
enumerable: true,
|
|
117975
|
-
get: function() {
|
|
117976
|
-
return from[k];
|
|
117977
|
-
}
|
|
117978
|
-
});
|
|
117979
|
-
}
|
|
117980
|
-
});
|
|
117981
|
-
return from;
|
|
117982
|
-
}
|
|
117849
|
+
var _export_star = require_export_star();
|
|
117850
|
+
_export_star._(require_compiled(), exports);
|
|
117851
|
+
_export_star._(require_cli(), exports);
|
|
117852
|
+
_export_star._(require_import(), exports);
|
|
117983
117853
|
}
|
|
117984
117854
|
});
|
|
117985
117855
|
|
|
@@ -118034,11 +117904,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
118034
117904
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
118035
117905
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
118036
117906
|
|
|
118037
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
117907
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
118038
117908
|
var import_lodash6 = __toESM(require_lodash2());
|
|
118039
117909
|
var import_comment_json = __toESM(require_src2());
|
|
118040
117910
|
|
|
118041
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117911
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
118042
117912
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118043
117913
|
try {
|
|
118044
117914
|
var info = gen[key](arg);
|
|
@@ -118346,7 +118216,7 @@ function _canUsePnpm() {
|
|
|
118346
118216
|
return _canUsePnpm.apply(this, arguments);
|
|
118347
118217
|
}
|
|
118348
118218
|
|
|
118349
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118219
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
118350
118220
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118351
118221
|
try {
|
|
118352
118222
|
var info = gen[key](arg);
|
|
@@ -118713,7 +118583,7 @@ function _pnpmInstall() {
|
|
|
118713
118583
|
return _pnpmInstall.apply(this, arguments);
|
|
118714
118584
|
}
|
|
118715
118585
|
|
|
118716
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118586
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
118717
118587
|
function _class_call_check(instance, Constructor) {
|
|
118718
118588
|
if (!(instance instanceof Constructor)) {
|
|
118719
118589
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -118794,7 +118664,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
118794
118664
|
return NpmAPI2;
|
|
118795
118665
|
}();
|
|
118796
118666
|
|
|
118797
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118667
|
+
// ../../../../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
|
|
118798
118668
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118799
118669
|
try {
|
|
118800
118670
|
var info = gen[key](arg);
|
|
@@ -119136,7 +119006,7 @@ function _gitCommit() {
|
|
|
119136
119006
|
return _gitCommit.apply(this, arguments);
|
|
119137
119007
|
}
|
|
119138
119008
|
|
|
119139
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
119009
|
+
// ../../../../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
|
|
119140
119010
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119141
119011
|
try {
|
|
119142
119012
|
var info = gen[key](arg);
|
|
@@ -119467,11 +119337,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119467
119337
|
return GitAPI2;
|
|
119468
119338
|
}();
|
|
119469
119339
|
|
|
119470
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119340
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119471
119341
|
var import_path = __toESM(require("path"));
|
|
119472
119342
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119473
119343
|
|
|
119474
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119344
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119475
119345
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119476
119346
|
try {
|
|
119477
119347
|
var info = gen[key](arg);
|
|
@@ -119644,7 +119514,7 @@ function _fsExists() {
|
|
|
119644
119514
|
return _fsExists.apply(this, arguments);
|
|
119645
119515
|
}
|
|
119646
119516
|
|
|
119647
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119517
|
+
// ../../../../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
|
|
119648
119518
|
var import_handlebars = __toESM(require_lib());
|
|
119649
119519
|
function _define_property4(obj, key, value) {
|
|
119650
119520
|
if (key in obj) {
|
|
@@ -119686,7 +119556,7 @@ function renderString(template, fullData, registers) {
|
|
|
119686
119556
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
119687
119557
|
}
|
|
119688
119558
|
|
|
119689
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119559
|
+
// ../../../../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
|
|
119690
119560
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119691
119561
|
try {
|
|
119692
119562
|
var info = gen[key](arg);
|
|
@@ -120004,13 +119874,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
120004
119874
|
return HandlebarsAPI2;
|
|
120005
119875
|
}();
|
|
120006
119876
|
|
|
120007
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119877
|
+
// ../../../../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
|
|
120008
119878
|
var import_ejs = __toESM(require_ejs());
|
|
120009
119879
|
function renderString2(template, fullData) {
|
|
120010
119880
|
return import_ejs.default.render(template, fullData) || "";
|
|
120011
119881
|
}
|
|
120012
119882
|
|
|
120013
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119883
|
+
// ../../../../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
|
|
120014
119884
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120015
119885
|
try {
|
|
120016
119886
|
var info = gen[key](arg);
|
|
@@ -120280,24 +120150,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
120280
120150
|
return EjsAPI2;
|
|
120281
120151
|
}();
|
|
120282
120152
|
|
|
120283
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
120153
|
+
// ../../../../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
|
|
120284
120154
|
var import_path2 = __toESM(require("path"));
|
|
120285
|
-
|
|
120286
|
-
// ../../../../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
|
|
120287
|
-
var imageExtNameList = [
|
|
120288
|
-
".jpg",
|
|
120289
|
-
".jpeg",
|
|
120290
|
-
".png",
|
|
120291
|
-
".gif",
|
|
120292
|
-
".bmp",
|
|
120293
|
-
".ico",
|
|
120294
|
-
".icon",
|
|
120295
|
-
".mpt",
|
|
120296
|
-
".psd",
|
|
120297
|
-
".wmf"
|
|
120298
|
-
];
|
|
120299
|
-
|
|
120300
|
-
// ../../../../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
|
|
120301
120155
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120302
120156
|
try {
|
|
120303
120157
|
var info = gen[key](arg);
|
|
@@ -120477,48 +120331,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120477
120331
|
value: function renderFile(resource, target) {
|
|
120478
120332
|
var _this = this;
|
|
120479
120333
|
return _async_to_generator8(function() {
|
|
120480
|
-
var
|
|
120334
|
+
var filePath;
|
|
120481
120335
|
return __generator8(this, function(_state) {
|
|
120482
120336
|
switch (_state.label) {
|
|
120483
120337
|
case 0:
|
|
120484
120338
|
if (resource._type !== FS_RESOURCE) {
|
|
120485
120339
|
throw new Error("resource not match");
|
|
120486
120340
|
}
|
|
120341
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120487
120342
|
return [
|
|
120488
120343
|
4,
|
|
120489
|
-
|
|
120344
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
120490
120345
|
];
|
|
120491
120346
|
case 1:
|
|
120492
|
-
resourceValue = _state.sent();
|
|
120493
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
120494
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120495
|
-
return [
|
|
120496
|
-
3,
|
|
120497
|
-
3
|
|
120498
|
-
];
|
|
120499
|
-
return [
|
|
120500
|
-
4,
|
|
120501
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120502
|
-
encoding: "binary"
|
|
120503
|
-
})
|
|
120504
|
-
];
|
|
120505
|
-
case 2:
|
|
120506
120347
|
_state.sent();
|
|
120507
|
-
return [
|
|
120508
|
-
3,
|
|
120509
|
-
5
|
|
120510
|
-
];
|
|
120511
|
-
case 3:
|
|
120512
120348
|
return [
|
|
120513
120349
|
4,
|
|
120514
|
-
|
|
120515
|
-
encoding: "utf-8"
|
|
120516
|
-
})
|
|
120350
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120517
120351
|
];
|
|
120518
|
-
case
|
|
120352
|
+
case 2:
|
|
120519
120353
|
_state.sent();
|
|
120520
|
-
_state.label = 5;
|
|
120521
|
-
case 5:
|
|
120522
120354
|
return [
|
|
120523
120355
|
2
|
|
120524
120356
|
];
|
|
@@ -120581,7 +120413,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120581
120413
|
return FsAPI2;
|
|
120582
120414
|
}();
|
|
120583
120415
|
|
|
120584
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120416
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
120585
120417
|
var toString = Object.prototype.toString;
|
|
120586
120418
|
var isType = function(type) {
|
|
120587
120419
|
return function(obj) {
|
|
@@ -120607,7 +120439,7 @@ var isObj = function(val) {
|
|
|
120607
120439
|
};
|
|
120608
120440
|
var isRegExp = isType("RegExp");
|
|
120609
120441
|
|
|
120610
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120442
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
120611
120443
|
var toArr = function(val) {
|
|
120612
120444
|
return isArr(val) ? val : val ? [val] : [];
|
|
120613
120445
|
};
|
|
@@ -120658,7 +120490,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
120658
120490
|
return result;
|
|
120659
120491
|
}
|
|
120660
120492
|
|
|
120661
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120493
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
120662
120494
|
function globalSelf() {
|
|
120663
120495
|
try {
|
|
120664
120496
|
if (typeof self !== "undefined") {
|
|
@@ -120682,7 +120514,7 @@ function globalSelf() {
|
|
|
120682
120514
|
}
|
|
120683
120515
|
var globalThisPolyfill = globalSelf();
|
|
120684
120516
|
|
|
120685
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120517
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
120686
120518
|
var instOf = function(value, cls) {
|
|
120687
120519
|
if (isFn(cls))
|
|
120688
120520
|
return value instanceof cls;
|
|
@@ -120691,7 +120523,7 @@ var instOf = function(value, cls) {
|
|
|
120691
120523
|
return false;
|
|
120692
120524
|
};
|
|
120693
120525
|
|
|
120694
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120526
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
120695
120527
|
var isArray = isArr;
|
|
120696
120528
|
var keyList = Object.keys;
|
|
120697
120529
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -120798,7 +120630,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
120798
120630
|
}
|
|
120799
120631
|
};
|
|
120800
120632
|
|
|
120801
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120633
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
120802
120634
|
var clone = function(values) {
|
|
120803
120635
|
if (Array.isArray(values)) {
|
|
120804
120636
|
var res_1 = [];
|
|
@@ -120834,7 +120666,7 @@ var clone = function(values) {
|
|
|
120834
120666
|
}
|
|
120835
120667
|
};
|
|
120836
120668
|
|
|
120837
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120669
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
120838
120670
|
var has = Object.prototype.hasOwnProperty;
|
|
120839
120671
|
var toString2 = Object.prototype.toString;
|
|
120840
120672
|
var isUndef = function(val) {
|
|
@@ -120962,7 +120794,7 @@ function pascalCase(input, options) {
|
|
|
120962
120794
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
120963
120795
|
}
|
|
120964
120796
|
|
|
120965
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120797
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
120966
120798
|
var ansiRegex = function() {
|
|
120967
120799
|
var pattern = [
|
|
120968
120800
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -120981,7 +120813,7 @@ var stringLength = function(input) {
|
|
|
120981
120813
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
120982
120814
|
};
|
|
120983
120815
|
|
|
120984
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120816
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
120985
120817
|
var __assign2 = function() {
|
|
120986
120818
|
__assign2 = Object.assign || function(t) {
|
|
120987
120819
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121004,7 +120836,7 @@ var parenContext = ContextType("()");
|
|
|
121004
120836
|
var braceContext = ContextType("{}");
|
|
121005
120837
|
var destructorContext = ContextType("{x}");
|
|
121006
120838
|
|
|
121007
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120839
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
121008
120840
|
var __assign3 = function() {
|
|
121009
120841
|
__assign3 = Object.assign || function(t) {
|
|
121010
120842
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121172,7 +121004,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
121172
121004
|
});
|
|
121173
121005
|
var eofTok = TokenType("eof");
|
|
121174
121006
|
|
|
121175
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121007
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
121176
121008
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
121177
121009
|
var fullCharCodeAtPos = function(input, pos) {
|
|
121178
121010
|
if (String.fromCharCode)
|
|
@@ -121424,7 +121256,7 @@ var Tokenizer = (
|
|
|
121424
121256
|
}()
|
|
121425
121257
|
);
|
|
121426
121258
|
|
|
121427
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121259
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
121428
121260
|
var isType2 = function(type) {
|
|
121429
121261
|
return function(obj) {
|
|
121430
121262
|
return obj && obj.type === type;
|
|
@@ -121442,7 +121274,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121442
121274
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121443
121275
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121444
121276
|
|
|
121445
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121277
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121446
121278
|
var toString3 = Object.prototype.toString;
|
|
121447
121279
|
var isType3 = function(type) {
|
|
121448
121280
|
return function(obj) {
|
|
@@ -121519,7 +121351,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121519
121351
|
return a === b;
|
|
121520
121352
|
};
|
|
121521
121353
|
|
|
121522
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121354
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121523
121355
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121524
121356
|
var isValid2 = function(val) {
|
|
121525
121357
|
return val !== void 0 && val !== null;
|
|
@@ -121637,7 +121469,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
121637
121469
|
});
|
|
121638
121470
|
};
|
|
121639
121471
|
|
|
121640
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121472
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
121641
121473
|
var __extends = function() {
|
|
121642
121474
|
var extendStatics = function(d, b) {
|
|
121643
121475
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -122028,7 +121860,7 @@ var Parser = (
|
|
|
122028
121860
|
}(Tokenizer)
|
|
122029
121861
|
);
|
|
122030
121862
|
|
|
122031
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121863
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
122032
121864
|
var Matcher = (
|
|
122033
121865
|
/** @class */
|
|
122034
121866
|
function() {
|
|
@@ -122210,7 +122042,7 @@ var Matcher = (
|
|
|
122210
122042
|
}()
|
|
122211
122043
|
);
|
|
122212
122044
|
|
|
122213
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
122045
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
122214
122046
|
var __read = function(o, n) {
|
|
122215
122047
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
122216
122048
|
if (!m)
|
|
@@ -122764,7 +122596,7 @@ var Path = (
|
|
|
122764
122596
|
}()
|
|
122765
122597
|
);
|
|
122766
122598
|
|
|
122767
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122599
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
122768
122600
|
var Subscribable = (
|
|
122769
122601
|
/** @class */
|
|
122770
122602
|
function() {
|
|
@@ -122816,7 +122648,7 @@ var Subscribable = (
|
|
|
122816
122648
|
}()
|
|
122817
122649
|
);
|
|
122818
122650
|
|
|
122819
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122651
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
122820
122652
|
function defaultIsMergeableObject(value) {
|
|
122821
122653
|
return isNonNullObject(value) && !isSpecial(value);
|
|
122822
122654
|
}
|
|
@@ -123009,7 +122841,7 @@ var lazyMerge = function(target) {
|
|
|
123009
122841
|
};
|
|
123010
122842
|
var merge = deepmerge;
|
|
123011
122843
|
|
|
123012
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122844
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
123013
122845
|
var IDX = 36;
|
|
123014
122846
|
var HEX = "";
|
|
123015
122847
|
while (IDX--)
|
|
@@ -123021,7 +122853,7 @@ function uid(len) {
|
|
|
123021
122853
|
return str;
|
|
123022
122854
|
}
|
|
123023
122855
|
|
|
123024
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122856
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
123025
122857
|
var toString4 = Object.prototype.toString;
|
|
123026
122858
|
var isMap = function(val) {
|
|
123027
122859
|
return val && val instanceof Map;
|
|
@@ -123052,7 +122884,7 @@ var isNormalType = function(target) {
|
|
|
123052
122884
|
return isPlainObj3(target) || isArr3(target);
|
|
123053
122885
|
};
|
|
123054
122886
|
|
|
123055
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122887
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
123056
122888
|
var toArray = function(value) {
|
|
123057
122889
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
123058
122890
|
};
|
|
@@ -123116,7 +122948,7 @@ var ArraySet = (
|
|
|
123116
122948
|
}()
|
|
123117
122949
|
);
|
|
123118
122950
|
|
|
123119
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122951
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
123120
122952
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
123121
122953
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
123122
122954
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -123135,7 +122967,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
123135
122967
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
123136
122968
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
123137
122969
|
|
|
123138
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122970
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
123139
122971
|
var ITERATION_KEY = Symbol("iteration key");
|
|
123140
122972
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
123141
122973
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -123365,7 +123197,7 @@ var disposeEffects = function(reaction2) {
|
|
|
123365
123197
|
}
|
|
123366
123198
|
};
|
|
123367
123199
|
|
|
123368
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123200
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
123369
123201
|
var DataChange = (
|
|
123370
123202
|
/** @class */
|
|
123371
123203
|
function() {
|
|
@@ -123461,7 +123293,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123461
123293
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123462
123294
|
};
|
|
123463
123295
|
|
|
123464
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123296
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123465
123297
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123466
123298
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123467
123299
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -123563,7 +123395,7 @@ var hasCollected = function(callback) {
|
|
|
123563
123395
|
return DependencyCollected.value;
|
|
123564
123396
|
};
|
|
123565
123397
|
|
|
123566
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123398
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
123567
123399
|
var __read2 = function(o, n) {
|
|
123568
123400
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
123569
123401
|
if (!m)
|
|
@@ -123819,7 +123651,7 @@ var baseHandlers = {
|
|
|
123819
123651
|
}
|
|
123820
123652
|
};
|
|
123821
123653
|
|
|
123822
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123654
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
123823
123655
|
var createNormalProxy = function(target, shallow2) {
|
|
123824
123656
|
var proxy = new Proxy(target, baseHandlers);
|
|
123825
123657
|
ProxyRaw.set(proxy, target);
|
|
@@ -123934,7 +123766,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
123934
123766
|
return boundary;
|
|
123935
123767
|
};
|
|
123936
123768
|
|
|
123937
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123769
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
123938
123770
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
123939
123771
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
123940
123772
|
batch.endpoint = function(callback) {
|
|
@@ -123947,7 +123779,7 @@ batch.endpoint = function(callback) {
|
|
|
123947
123779
|
}
|
|
123948
123780
|
};
|
|
123949
123781
|
|
|
123950
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123782
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
123951
123783
|
var action = createBoundaryAnnotation(function() {
|
|
123952
123784
|
batchStart();
|
|
123953
123785
|
untrackStart();
|
|
@@ -123963,10 +123795,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
123963
123795
|
batchScopeEnd();
|
|
123964
123796
|
});
|
|
123965
123797
|
|
|
123966
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123798
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
123967
123799
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
123968
123800
|
|
|
123969
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123801
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
123970
123802
|
var observable = createAnnotation(function(_a2) {
|
|
123971
123803
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123972
123804
|
var store = {
|
|
@@ -124006,7 +123838,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
124006
123838
|
return store.value;
|
|
124007
123839
|
});
|
|
124008
123840
|
|
|
124009
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123841
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
124010
123842
|
var box = createAnnotation(function(_a2) {
|
|
124011
123843
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124012
123844
|
var store = {
|
|
@@ -124052,7 +123884,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
124052
123884
|
return proxy;
|
|
124053
123885
|
});
|
|
124054
123886
|
|
|
124055
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123887
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
124056
123888
|
var ref = createAnnotation(function(_a2) {
|
|
124057
123889
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124058
123890
|
var store = {
|
|
@@ -124100,7 +123932,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
124100
123932
|
return proxy;
|
|
124101
123933
|
});
|
|
124102
123934
|
|
|
124103
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123935
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
124104
123936
|
var shallow = createAnnotation(function(_a2) {
|
|
124105
123937
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124106
123938
|
var store = {
|
|
@@ -124140,7 +123972,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
124140
123972
|
return store.value;
|
|
124141
123973
|
});
|
|
124142
123974
|
|
|
124143
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123975
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
124144
123976
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
124145
123977
|
var getProto = Object.getPrototypeOf;
|
|
124146
123978
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -124261,7 +124093,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
124261
124093
|
return proxy;
|
|
124262
124094
|
});
|
|
124263
124095
|
|
|
124264
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124096
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
124265
124097
|
function observable2(target) {
|
|
124266
124098
|
return createObservable(null, null, target);
|
|
124267
124099
|
}
|
|
@@ -124272,7 +124104,7 @@ observable2.shallow = shallow;
|
|
|
124272
124104
|
observable2.computed = computed;
|
|
124273
124105
|
observable2[MakeObModelSymbol] = observable;
|
|
124274
124106
|
|
|
124275
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124107
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
124276
124108
|
function define2(target, annotations) {
|
|
124277
124109
|
if (isObservable(target))
|
|
124278
124110
|
return target;
|
|
@@ -124292,7 +124124,7 @@ function define2(target, annotations) {
|
|
|
124292
124124
|
return target;
|
|
124293
124125
|
}
|
|
124294
124126
|
|
|
124295
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124127
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
124296
124128
|
var __assign4 = function() {
|
|
124297
124129
|
__assign4 = Object.assign || function(t) {
|
|
124298
124130
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124438,7 +124270,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
124438
124270
|
};
|
|
124439
124271
|
};
|
|
124440
124272
|
|
|
124441
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124273
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124442
124274
|
var Tracker = (
|
|
124443
124275
|
/** @class */
|
|
124444
124276
|
function() {
|
|
@@ -124483,7 +124315,7 @@ var Tracker = (
|
|
|
124483
124315
|
}()
|
|
124484
124316
|
);
|
|
124485
124317
|
|
|
124486
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124318
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124487
124319
|
var observe = function(target, observer, deep) {
|
|
124488
124320
|
if (deep === void 0) {
|
|
124489
124321
|
deep = true;
|
|
@@ -124516,7 +124348,7 @@ var observe = function(target, observer, deep) {
|
|
|
124516
124348
|
return addListener(target);
|
|
124517
124349
|
};
|
|
124518
124350
|
|
|
124519
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124351
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124520
124352
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124521
124353
|
var SchemaNestedMap = {
|
|
124522
124354
|
parent: true,
|
|
@@ -124703,7 +124535,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
124703
124535
|
});
|
|
124704
124536
|
};
|
|
124705
124537
|
|
|
124706
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124538
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
124707
124539
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
124708
124540
|
var Registry = {
|
|
124709
124541
|
silent: false,
|
|
@@ -124807,7 +124639,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
124807
124639
|
});
|
|
124808
124640
|
};
|
|
124809
124641
|
|
|
124810
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124642
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
124811
124643
|
var LifeCycle = (
|
|
124812
124644
|
/** @class */
|
|
124813
124645
|
function() {
|
|
@@ -124853,7 +124685,7 @@ var LifeCycle = (
|
|
|
124853
124685
|
}()
|
|
124854
124686
|
);
|
|
124855
124687
|
|
|
124856
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124688
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
124857
124689
|
var __extends2 = function() {
|
|
124858
124690
|
var extendStatics = function(d, b) {
|
|
124859
124691
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -124949,7 +124781,7 @@ var Heart = (
|
|
|
124949
124781
|
}(Subscribable)
|
|
124950
124782
|
);
|
|
124951
124783
|
|
|
124952
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124784
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
124953
124785
|
var isForm = function(node) {
|
|
124954
124786
|
return node instanceof Form;
|
|
124955
124787
|
};
|
|
@@ -124995,7 +124827,7 @@ var isQuery = function(query2) {
|
|
|
124995
124827
|
return query2 && query2 instanceof Query;
|
|
124996
124828
|
};
|
|
124997
124829
|
|
|
124998
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124830
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
124999
124831
|
var Graph = (
|
|
125000
124832
|
/** @class */
|
|
125001
124833
|
function() {
|
|
@@ -125047,12 +124879,12 @@ var Graph = (
|
|
|
125047
124879
|
}()
|
|
125048
124880
|
);
|
|
125049
124881
|
|
|
125050
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124882
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
125051
124883
|
var isValidateResult = function(obj) {
|
|
125052
124884
|
return !!obj["type"] && !!obj["message"];
|
|
125053
124885
|
};
|
|
125054
124886
|
|
|
125055
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124887
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
125056
124888
|
var getIn2 = Path.getIn;
|
|
125057
124889
|
var self2 = globalThisPolyfill;
|
|
125058
124890
|
var defaultLanguage = "en";
|
|
@@ -125123,7 +124955,7 @@ var registerValidateFormats = function(formats) {
|
|
|
125123
124955
|
});
|
|
125124
124956
|
};
|
|
125125
124957
|
|
|
125126
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124958
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
125127
124959
|
var render = function(result, rules) {
|
|
125128
124960
|
var message = result.message;
|
|
125129
124961
|
if (isStr(result.message)) {
|
|
@@ -125138,7 +124970,7 @@ var render = function(result, rules) {
|
|
|
125138
124970
|
return result;
|
|
125139
124971
|
};
|
|
125140
124972
|
|
|
125141
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124973
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
125142
124974
|
var __assign5 = function() {
|
|
125143
124975
|
__assign5 = Object.assign || function(t) {
|
|
125144
124976
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125389,7 +125221,7 @@ var parseValidator = function(validator, options) {
|
|
|
125389
125221
|
}, []);
|
|
125390
125222
|
};
|
|
125391
125223
|
|
|
125392
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125224
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
125393
125225
|
var locale_default = {
|
|
125394
125226
|
en: {
|
|
125395
125227
|
pattern: "This field is invalid",
|
|
@@ -125609,7 +125441,7 @@ var locale_default = {
|
|
|
125609
125441
|
}
|
|
125610
125442
|
};
|
|
125611
125443
|
|
|
125612
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125444
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
125613
125445
|
var formats_default = {
|
|
125614
125446
|
url: new RegExp(
|
|
125615
125447
|
// protocol identifier
|
|
@@ -125629,7 +125461,7 @@ var formats_default = {
|
|
|
125629
125461
|
zip: /^[0-9]{6}$/
|
|
125630
125462
|
};
|
|
125631
125463
|
|
|
125632
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125464
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
125633
125465
|
var __assign6 = function() {
|
|
125634
125466
|
__assign6 = Object.assign || function(t) {
|
|
125635
125467
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125944,7 +125776,7 @@ extendSameRules(RULES, {
|
|
|
125944
125776
|
});
|
|
125945
125777
|
var rules_default = RULES;
|
|
125946
125778
|
|
|
125947
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125779
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
125948
125780
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
125949
125781
|
function adopt(value) {
|
|
125950
125782
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -126089,7 +125921,7 @@ var validate = function(value, validator, options) {
|
|
|
126089
125921
|
});
|
|
126090
125922
|
};
|
|
126091
125923
|
|
|
126092
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125924
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
126093
125925
|
var LifeCycleTypes;
|
|
126094
125926
|
(function(LifeCycleTypes2) {
|
|
126095
125927
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -126141,7 +125973,7 @@ var LifeCycleTypes;
|
|
|
126141
125973
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
126142
125974
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
126143
125975
|
|
|
126144
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125976
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
126145
125977
|
var ReservedProperties = {
|
|
126146
125978
|
form: true,
|
|
126147
125979
|
parent: true,
|
|
@@ -126193,7 +126025,7 @@ var GlobalState = {
|
|
|
126193
126025
|
};
|
|
126194
126026
|
var NumberIndexReg = /^\.(\d+)/;
|
|
126195
126027
|
|
|
126196
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126028
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
126197
126029
|
var __assign7 = function() {
|
|
126198
126030
|
__assign7 = Object.assign || function(t) {
|
|
126199
126031
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127300,7 +127132,7 @@ var getObjectParent = function(field) {
|
|
|
127300
127132
|
}
|
|
127301
127133
|
};
|
|
127302
127134
|
|
|
127303
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127135
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
127304
127136
|
var output = function(field, taker) {
|
|
127305
127137
|
if (!field)
|
|
127306
127138
|
return;
|
|
@@ -127383,7 +127215,7 @@ var Query = (
|
|
|
127383
127215
|
}()
|
|
127384
127216
|
);
|
|
127385
127217
|
|
|
127386
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127218
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
127387
127219
|
var __read4 = function(o, n) {
|
|
127388
127220
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127389
127221
|
if (!m)
|
|
@@ -127763,7 +127595,7 @@ var BaseField = (
|
|
|
127763
127595
|
}()
|
|
127764
127596
|
);
|
|
127765
127597
|
|
|
127766
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127598
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
127767
127599
|
var __extends3 = function() {
|
|
127768
127600
|
var extendStatics = function(d, b) {
|
|
127769
127601
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128404,7 +128236,7 @@ var Field = (
|
|
|
128404
128236
|
}(BaseField)
|
|
128405
128237
|
);
|
|
128406
128238
|
|
|
128407
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128239
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
128408
128240
|
var __read5 = function(o, n) {
|
|
128409
128241
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
128410
128242
|
if (!m)
|
|
@@ -128498,7 +128330,7 @@ var runEffects = function(context) {
|
|
|
128498
128330
|
return GlobalState.lifecycles;
|
|
128499
128331
|
};
|
|
128500
128332
|
|
|
128501
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128333
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128502
128334
|
var __extends4 = function() {
|
|
128503
128335
|
var extendStatics = function(d, b) {
|
|
128504
128336
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128688,7 +128520,7 @@ var ArrayField = (
|
|
|
128688
128520
|
}(Field)
|
|
128689
128521
|
);
|
|
128690
128522
|
|
|
128691
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128523
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
128692
128524
|
var __extends5 = function() {
|
|
128693
128525
|
var extendStatics = function(d, b) {
|
|
128694
128526
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128749,7 +128581,7 @@ var ObjectField = (
|
|
|
128749
128581
|
}(Field)
|
|
128750
128582
|
);
|
|
128751
128583
|
|
|
128752
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128584
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
128753
128585
|
var __extends6 = function() {
|
|
128754
128586
|
var extendStatics = function(d, b) {
|
|
128755
128587
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128864,7 +128696,7 @@ var VoidField = (
|
|
|
128864
128696
|
}(BaseField)
|
|
128865
128697
|
);
|
|
128866
128698
|
|
|
128867
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128699
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
128868
128700
|
var __assign8 = function() {
|
|
128869
128701
|
__assign8 = Object.assign || function(t) {
|
|
128870
128702
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129392,7 +129224,7 @@ var Form = (
|
|
|
129392
129224
|
}()
|
|
129393
129225
|
);
|
|
129394
129226
|
|
|
129395
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129227
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
129396
129228
|
function createFormEffect(type) {
|
|
129397
129229
|
return createEffectHook(type, function(form) {
|
|
129398
129230
|
return function(callback) {
|
|
@@ -129425,7 +129257,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
129425
129257
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
129426
129258
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
129427
129259
|
|
|
129428
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129260
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
129429
129261
|
function createFieldEffect(type) {
|
|
129430
129262
|
return createEffectHook(type, function(field, form) {
|
|
129431
129263
|
return function(pattern, callback) {
|
|
@@ -129470,7 +129302,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129470
129302
|
}
|
|
129471
129303
|
}
|
|
129472
129304
|
|
|
129473
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129305
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129474
129306
|
var __read7 = function(o, n) {
|
|
129475
129307
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129476
129308
|
if (!m)
|
|
@@ -129695,7 +129527,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
129695
129527
|
};
|
|
129696
129528
|
};
|
|
129697
129529
|
|
|
129698
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129530
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
129699
129531
|
var __assign9 = function() {
|
|
129700
129532
|
__assign9 = Object.assign || function(t) {
|
|
129701
129533
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129744,7 +129576,7 @@ var enablePolyfills = function(versions) {
|
|
|
129744
129576
|
}
|
|
129745
129577
|
};
|
|
129746
129578
|
|
|
129747
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129579
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
129748
129580
|
var __assign10 = function() {
|
|
129749
129581
|
__assign10 = Object.assign || function(t) {
|
|
129750
129582
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129901,7 +129733,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
129901
129733
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
129902
129734
|
};
|
|
129903
129735
|
|
|
129904
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129736
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
129905
129737
|
var Schema = (
|
|
129906
129738
|
/** @class */
|
|
129907
129739
|
function() {
|
|
@@ -130137,10 +129969,10 @@ var Schema = (
|
|
|
130137
129969
|
}()
|
|
130138
129970
|
);
|
|
130139
129971
|
|
|
130140
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129972
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130141
129973
|
var import_inquirer = __toESM(require_inquirer());
|
|
130142
129974
|
|
|
130143
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129975
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
130144
129976
|
var import_lodash2 = __toESM(require_lodash2());
|
|
130145
129977
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130146
129978
|
try {
|
|
@@ -130487,7 +130319,7 @@ function transformForm(schema) {
|
|
|
130487
130319
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130488
130320
|
}
|
|
130489
130321
|
|
|
130490
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130322
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130491
130323
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130492
130324
|
try {
|
|
130493
130325
|
var info = gen[key](arg);
|
|
@@ -131011,7 +130843,7 @@ function _prompt() {
|
|
|
131011
130843
|
return _prompt.apply(this, arguments);
|
|
131012
130844
|
}
|
|
131013
130845
|
|
|
131014
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130846
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
131015
130847
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131016
130848
|
try {
|
|
131017
130849
|
var info = gen[key](arg);
|
|
@@ -131251,7 +131083,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
131251
131083
|
return CLIReader2;
|
|
131252
131084
|
}();
|
|
131253
131085
|
|
|
131254
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131086
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131255
131087
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
131256
131088
|
|
|
131257
131089
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -131330,7 +131162,7 @@ var I18n = class {
|
|
|
131330
131162
|
}
|
|
131331
131163
|
};
|
|
131332
131164
|
|
|
131333
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131165
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
131334
131166
|
var ZH_LOCALE = {
|
|
131335
131167
|
environment: {
|
|
131336
131168
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -131357,7 +131189,7 @@ var ZH_LOCALE = {
|
|
|
131357
131189
|
}
|
|
131358
131190
|
};
|
|
131359
131191
|
|
|
131360
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131192
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
131361
131193
|
var EN_LOCALE = {
|
|
131362
131194
|
environment: {
|
|
131363
131195
|
node_version: "please upgrade node to lts version",
|
|
@@ -131384,14 +131216,14 @@ var EN_LOCALE = {
|
|
|
131384
131216
|
}
|
|
131385
131217
|
};
|
|
131386
131218
|
|
|
131387
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131219
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
131388
131220
|
var i18n = new I18n();
|
|
131389
131221
|
var localeKeys = i18n.init("zh", {
|
|
131390
131222
|
zh: ZH_LOCALE,
|
|
131391
131223
|
en: EN_LOCALE
|
|
131392
131224
|
});
|
|
131393
131225
|
|
|
131394
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131226
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
131395
131227
|
var import_lodash5 = __toESM(require_lodash2());
|
|
131396
131228
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131397
131229
|
try {
|
|
@@ -131600,7 +131432,7 @@ function transformInquirerSchema(questions) {
|
|
|
131600
131432
|
return questions;
|
|
131601
131433
|
}
|
|
131602
131434
|
|
|
131603
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131435
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
131604
131436
|
var import_path4 = __toESM(require("path"));
|
|
131605
131437
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131606
131438
|
try {
|
|
@@ -131864,7 +131696,7 @@ function _checkUseNvm() {
|
|
|
131864
131696
|
return _checkUseNvm.apply(this, arguments);
|
|
131865
131697
|
}
|
|
131866
131698
|
|
|
131867
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131699
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131868
131700
|
function _array_like_to_array(arr, len) {
|
|
131869
131701
|
if (len == null || len > arr.length)
|
|
131870
131702
|
len = arr.length;
|
|
@@ -132445,7 +132277,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132445
132277
|
switch (_state2.label) {
|
|
132446
132278
|
case 0:
|
|
132447
132279
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132448
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
132280
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132449
132281
|
return [
|
|
132450
132282
|
4,
|
|
132451
132283
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -132794,11 +132626,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132794
132626
|
return AppAPI2;
|
|
132795
132627
|
}();
|
|
132796
132628
|
|
|
132797
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132629
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132798
132630
|
var import_comment_json2 = __toESM(require_src2());
|
|
132799
132631
|
var declarationUpdate = __toESM(require_dist());
|
|
132800
132632
|
|
|
132801
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132633
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
132802
132634
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132803
132635
|
try {
|
|
132804
132636
|
var info = gen[key](arg);
|
|
@@ -132972,7 +132804,7 @@ function _editJson() {
|
|
|
132972
132804
|
return _editJson.apply(this, arguments);
|
|
132973
132805
|
}
|
|
132974
132806
|
|
|
132975
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132807
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132976
132808
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132977
132809
|
try {
|
|
132978
132810
|
var info = gen[key](arg);
|
|
@@ -133281,7 +133113,7 @@ var PackageManagerName = {
|
|
|
133281
133113
|
|
|
133282
133114
|
// ../../generator-utils/dist/esm/index.js
|
|
133283
133115
|
var import_path5 = __toESM(require("path"));
|
|
133284
|
-
var
|
|
133116
|
+
var import_utils14 = __toESM(require_cjs2());
|
|
133285
133117
|
|
|
133286
133118
|
// src/index.ts
|
|
133287
133119
|
var handleTemplateFile = (context, generator) => __async(void 0, null, function* () {
|
|
@@ -133299,7 +133131,7 @@ var handleTemplateFile = (context, generator) => __async(void 0, null, function*
|
|
|
133299
133131
|
}
|
|
133300
133132
|
});
|
|
133301
133133
|
} else if (packageManager === PackageManager.Yarn) {
|
|
133302
|
-
const pkgInfo =
|
|
133134
|
+
const pkgInfo = import_utils14.fs.readJSONSync(
|
|
133303
133135
|
import_path6.default.join(context.materials.default.basePath, "package.json"),
|
|
133304
133136
|
"utf-8"
|
|
133305
133137
|
);
|
|
@@ -133321,7 +133153,7 @@ var handleTemplateFile = (context, generator) => __async(void 0, null, function*
|
|
|
133321
133153
|
}
|
|
133322
133154
|
});
|
|
133323
133155
|
} else {
|
|
133324
|
-
const pkgInfo =
|
|
133156
|
+
const pkgInfo = import_utils14.fs.readJSONSync(
|
|
133325
133157
|
import_path6.default.join(context.materials.default.basePath, "package.json"),
|
|
133326
133158
|
"utf-8"
|
|
133327
133159
|
);
|