@modern-js/bff-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 +319 -484
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -67,6 +67,79 @@ var __async = (__this, __arguments, generator) => {
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
71
|
+
var require_export_star = __commonJS({
|
|
72
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
73
|
+
"use strict";
|
|
74
|
+
exports._ = exports._export_star = _export_star;
|
|
75
|
+
function _export_star(from, to) {
|
|
76
|
+
Object.keys(from).forEach(function(k) {
|
|
77
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
78
|
+
Object.defineProperty(to, k, {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function() {
|
|
81
|
+
return from[k];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
return from;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
92
|
+
var require_interop_require_default = __commonJS({
|
|
93
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
94
|
+
"use strict";
|
|
95
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
96
|
+
function _interop_require_default(obj) {
|
|
97
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
103
|
+
var require_interop_require_wildcard = __commonJS({
|
|
104
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
105
|
+
"use strict";
|
|
106
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
107
|
+
if (typeof WeakMap !== "function")
|
|
108
|
+
return null;
|
|
109
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
110
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
111
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
112
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
113
|
+
})(nodeInterop);
|
|
114
|
+
}
|
|
115
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
116
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
117
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
118
|
+
return obj;
|
|
119
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
120
|
+
return { default: obj };
|
|
121
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
122
|
+
if (cache && cache.has(obj))
|
|
123
|
+
return cache.get(obj);
|
|
124
|
+
var newObj = {};
|
|
125
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
126
|
+
for (var key in obj) {
|
|
127
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
128
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
129
|
+
if (desc && (desc.get || desc.set))
|
|
130
|
+
Object.defineProperty(newObj, key, desc);
|
|
131
|
+
else
|
|
132
|
+
newObj[key] = obj[key];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
newObj.default = obj;
|
|
136
|
+
if (cache)
|
|
137
|
+
cache.set(obj, newObj);
|
|
138
|
+
return newObj;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
70
143
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
71
144
|
var require_import_lazy = __commonJS({
|
|
72
145
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -34890,80 +34963,37 @@ var require_compiled = __commonJS({
|
|
|
34890
34963
|
chokidar: () => chokidar2,
|
|
34891
34964
|
inquirer: () => inquirer4
|
|
34892
34965
|
});
|
|
34966
|
+
var _interop_require_default = require_interop_require_default();
|
|
34967
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
34893
34968
|
var _import = require_import();
|
|
34894
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra());
|
|
34895
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora());
|
|
34896
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob());
|
|
34897
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml());
|
|
34898
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk());
|
|
34899
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug());
|
|
34900
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash());
|
|
34901
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa());
|
|
34902
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json5());
|
|
34903
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath());
|
|
34904
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up());
|
|
34969
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra());
|
|
34970
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora());
|
|
34971
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob());
|
|
34972
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml());
|
|
34973
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk());
|
|
34974
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug());
|
|
34975
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash());
|
|
34976
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa());
|
|
34977
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json5());
|
|
34978
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath());
|
|
34979
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up());
|
|
34905
34980
|
var _nanoid = require_nanoid();
|
|
34906
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver());
|
|
34907
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv());
|
|
34908
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash2());
|
|
34909
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby());
|
|
34910
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address());
|
|
34911
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale());
|
|
34912
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join());
|
|
34913
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist());
|
|
34914
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob());
|
|
34915
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize());
|
|
34916
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size());
|
|
34917
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi());
|
|
34918
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand());
|
|
34919
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist());
|
|
34920
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir());
|
|
34981
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver());
|
|
34982
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv());
|
|
34983
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash2());
|
|
34984
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby());
|
|
34985
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address());
|
|
34986
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale());
|
|
34987
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join());
|
|
34988
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist());
|
|
34989
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob());
|
|
34990
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize());
|
|
34991
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size());
|
|
34992
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi());
|
|
34993
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand());
|
|
34994
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist());
|
|
34995
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir());
|
|
34921
34996
|
var _commander = require_commander();
|
|
34922
|
-
function _interop_require_default(obj) {
|
|
34923
|
-
return obj && obj.__esModule ? obj : {
|
|
34924
|
-
default: obj
|
|
34925
|
-
};
|
|
34926
|
-
}
|
|
34927
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
34928
|
-
if (typeof WeakMap !== "function")
|
|
34929
|
-
return null;
|
|
34930
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
34931
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
34932
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
34933
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
34934
|
-
})(nodeInterop);
|
|
34935
|
-
}
|
|
34936
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
34937
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
34938
|
-
return obj;
|
|
34939
|
-
}
|
|
34940
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
34941
|
-
return {
|
|
34942
|
-
default: obj
|
|
34943
|
-
};
|
|
34944
|
-
}
|
|
34945
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34946
|
-
if (cache && cache.has(obj)) {
|
|
34947
|
-
return cache.get(obj);
|
|
34948
|
-
}
|
|
34949
|
-
var newObj = {};
|
|
34950
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
34951
|
-
for (var key in obj) {
|
|
34952
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
34953
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
34954
|
-
if (desc && (desc.get || desc.set)) {
|
|
34955
|
-
Object.defineProperty(newObj, key, desc);
|
|
34956
|
-
} else {
|
|
34957
|
-
newObj[key] = obj[key];
|
|
34958
|
-
}
|
|
34959
|
-
}
|
|
34960
|
-
}
|
|
34961
|
-
newObj.default = obj;
|
|
34962
|
-
if (cache) {
|
|
34963
|
-
cache.set(obj, newObj);
|
|
34964
|
-
}
|
|
34965
|
-
return newObj;
|
|
34966
|
-
}
|
|
34967
34997
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
34968
34998
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
34969
34999
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -35113,6 +35143,8 @@ var require_chainId = __commonJS({
|
|
|
35113
35143
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
35114
35144
|
/** HtmlCrossOriginPlugin */
|
|
35115
35145
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
35146
|
+
/** HtmlNoncePlugin */
|
|
35147
|
+
HTML_NONCE: "html-nonce",
|
|
35116
35148
|
/** MiniCssExtractPlugin */
|
|
35117
35149
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
35118
35150
|
/** ReactFastRefreshPlugin */
|
|
@@ -35201,20 +35233,8 @@ var require_constants = __commonJS({
|
|
|
35201
35233
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
35202
35234
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
35203
35235
|
});
|
|
35204
|
-
_export_star(
|
|
35205
|
-
|
|
35206
|
-
Object.keys(from).forEach(function(k) {
|
|
35207
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
35208
|
-
Object.defineProperty(to, k, {
|
|
35209
|
-
enumerable: true,
|
|
35210
|
-
get: function() {
|
|
35211
|
-
return from[k];
|
|
35212
|
-
}
|
|
35213
|
-
});
|
|
35214
|
-
}
|
|
35215
|
-
});
|
|
35216
|
-
return from;
|
|
35217
|
-
}
|
|
35236
|
+
var _export_star = require_export_star();
|
|
35237
|
+
_export_star._(require_chainId(), exports);
|
|
35218
35238
|
var ROUTE_SPEC_FILE = "route.json";
|
|
35219
35239
|
var MAIN_ENTRY_NAME = "main";
|
|
35220
35240
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -35827,12 +35847,8 @@ var require_ensure = __commonJS({
|
|
|
35827
35847
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
35828
35848
|
ensureArray: () => ensureArray
|
|
35829
35849
|
});
|
|
35830
|
-
var
|
|
35831
|
-
|
|
35832
|
-
return obj && obj.__esModule ? obj : {
|
|
35833
|
-
default: obj
|
|
35834
|
-
};
|
|
35835
|
-
}
|
|
35850
|
+
var _interop_require_default = require_interop_require_default();
|
|
35851
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
35836
35852
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
35837
35853
|
var ensureArray = (params) => {
|
|
35838
35854
|
if (Array.isArray(params)) {
|
|
@@ -35868,16 +35884,12 @@ var require_project = __commonJS({
|
|
|
35868
35884
|
isReact18: () => isReact182,
|
|
35869
35885
|
isTypescript: () => isTypescript
|
|
35870
35886
|
});
|
|
35871
|
-
var
|
|
35887
|
+
var _interop_require_default = require_interop_require_default();
|
|
35888
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
35872
35889
|
var _commands = require_commands();
|
|
35873
35890
|
var _compiled = require_compiled();
|
|
35874
35891
|
var _common = require_common();
|
|
35875
35892
|
var _ensure = require_ensure();
|
|
35876
|
-
function _interop_require_default(obj) {
|
|
35877
|
-
return obj && obj.__esModule ? obj : {
|
|
35878
|
-
default: obj
|
|
35879
|
-
};
|
|
35880
|
-
}
|
|
35881
35893
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
35882
35894
|
var isDepExists = (appDirectory, name) => {
|
|
35883
35895
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -35944,24 +35956,12 @@ var require_is = __commonJS({
|
|
|
35944
35956
|
Object.defineProperty(exports, "__esModule", {
|
|
35945
35957
|
value: true
|
|
35946
35958
|
});
|
|
35947
|
-
_export_star(
|
|
35948
|
-
_export_star(
|
|
35949
|
-
_export_star(
|
|
35950
|
-
_export_star(
|
|
35951
|
-
_export_star(
|
|
35952
|
-
|
|
35953
|
-
Object.keys(from).forEach(function(k) {
|
|
35954
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
35955
|
-
Object.defineProperty(to, k, {
|
|
35956
|
-
enumerable: true,
|
|
35957
|
-
get: function() {
|
|
35958
|
-
return from[k];
|
|
35959
|
-
}
|
|
35960
|
-
});
|
|
35961
|
-
}
|
|
35962
|
-
});
|
|
35963
|
-
return from;
|
|
35964
|
-
}
|
|
35959
|
+
var _export_star = require_export_star();
|
|
35960
|
+
_export_star._(require_env(), exports);
|
|
35961
|
+
_export_star._(require_platform(), exports);
|
|
35962
|
+
_export_star._(require_type(), exports);
|
|
35963
|
+
_export_star._(require_config(), exports);
|
|
35964
|
+
_export_star._(require_project(), exports);
|
|
35965
35965
|
}
|
|
35966
35966
|
});
|
|
35967
35967
|
|
|
@@ -36063,17 +36063,13 @@ var require_data = __commonJS({
|
|
|
36063
36063
|
readTsConfig: () => readTsConfig,
|
|
36064
36064
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
36065
36065
|
});
|
|
36066
|
-
var
|
|
36067
|
-
var
|
|
36066
|
+
var _interop_require_default = require_interop_require_default();
|
|
36067
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36068
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36068
36069
|
var _compiled = require_compiled();
|
|
36069
36070
|
var _constants = require_constants();
|
|
36070
36071
|
var _is = require_is();
|
|
36071
36072
|
var _package = require_package2();
|
|
36072
|
-
function _interop_require_default(obj) {
|
|
36073
|
-
return obj && obj.__esModule ? obj : {
|
|
36074
|
-
default: obj
|
|
36075
|
-
};
|
|
36076
|
-
}
|
|
36077
36073
|
var MAX_TIMES = 5;
|
|
36078
36074
|
function getPackageManager2() {
|
|
36079
36075
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -36205,29 +36201,13 @@ var require_get = __commonJS({
|
|
|
36205
36201
|
getServerConfig: () => getServerConfig,
|
|
36206
36202
|
getTargetDir: () => getTargetDir
|
|
36207
36203
|
});
|
|
36208
|
-
var
|
|
36204
|
+
var _export_star = require_export_star();
|
|
36205
|
+
var _interop_require_default = require_interop_require_default();
|
|
36206
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36209
36207
|
var _constants = require_constants();
|
|
36210
36208
|
var _fs = require_fs();
|
|
36211
|
-
_export_star(require_data(), exports);
|
|
36212
|
-
_export_star(require_config2(), exports);
|
|
36213
|
-
function _export_star(from, to) {
|
|
36214
|
-
Object.keys(from).forEach(function(k) {
|
|
36215
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
36216
|
-
Object.defineProperty(to, k, {
|
|
36217
|
-
enumerable: true,
|
|
36218
|
-
get: function() {
|
|
36219
|
-
return from[k];
|
|
36220
|
-
}
|
|
36221
|
-
});
|
|
36222
|
-
}
|
|
36223
|
-
});
|
|
36224
|
-
return from;
|
|
36225
|
-
}
|
|
36226
|
-
function _interop_require_default(obj) {
|
|
36227
|
-
return obj && obj.__esModule ? obj : {
|
|
36228
|
-
default: obj
|
|
36229
|
-
};
|
|
36230
|
-
}
|
|
36209
|
+
_export_star._(require_data(), exports);
|
|
36210
|
+
_export_star._(require_config2(), exports);
|
|
36231
36211
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
36232
36212
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
36233
36213
|
return configFilePath;
|
|
@@ -36239,6 +36219,21 @@ var require_get = __commonJS({
|
|
|
36239
36219
|
}
|
|
36240
36220
|
});
|
|
36241
36221
|
|
|
36222
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
36223
|
+
var require_define_property = __commonJS({
|
|
36224
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
36225
|
+
"use strict";
|
|
36226
|
+
exports._ = exports._define_property = _define_property15;
|
|
36227
|
+
function _define_property15(obj, key, value) {
|
|
36228
|
+
if (key in obj) {
|
|
36229
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
36230
|
+
} else
|
|
36231
|
+
obj[key] = value;
|
|
36232
|
+
return obj;
|
|
36233
|
+
}
|
|
36234
|
+
}
|
|
36235
|
+
});
|
|
36236
|
+
|
|
36242
36237
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
36243
36238
|
var require_logger = __commonJS({
|
|
36244
36239
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -36257,25 +36252,9 @@ var require_logger = __commonJS({
|
|
|
36257
36252
|
Logger: () => Logger,
|
|
36258
36253
|
logger: () => logger2
|
|
36259
36254
|
});
|
|
36260
|
-
var
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
Object.defineProperty(obj, key, {
|
|
36264
|
-
value,
|
|
36265
|
-
enumerable: true,
|
|
36266
|
-
configurable: true,
|
|
36267
|
-
writable: true
|
|
36268
|
-
});
|
|
36269
|
-
} else {
|
|
36270
|
-
obj[key] = value;
|
|
36271
|
-
}
|
|
36272
|
-
return obj;
|
|
36273
|
-
}
|
|
36274
|
-
function _interop_require_default(obj) {
|
|
36275
|
-
return obj && obj.__esModule ? obj : {
|
|
36276
|
-
default: obj
|
|
36277
|
-
};
|
|
36278
|
-
}
|
|
36255
|
+
var _define_property15 = require_define_property();
|
|
36256
|
+
var _interop_require_default = require_interop_require_default();
|
|
36257
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk());
|
|
36279
36258
|
var LOG_LEVEL = {
|
|
36280
36259
|
error: 0,
|
|
36281
36260
|
warn: 1,
|
|
@@ -36359,10 +36338,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
36359
36338
|
return longestLabel;
|
|
36360
36339
|
}
|
|
36361
36340
|
constructor(options = {}) {
|
|
36362
|
-
_define_property15(this, "level", void 0);
|
|
36363
|
-
_define_property15(this, "config", void 0);
|
|
36364
|
-
_define_property15(this, "types", void 0);
|
|
36365
|
-
_define_property15(this, "longestLabel", void 0);
|
|
36341
|
+
_define_property15._(this, "level", void 0);
|
|
36342
|
+
_define_property15._(this, "config", void 0);
|
|
36343
|
+
_define_property15._(this, "types", void 0);
|
|
36344
|
+
_define_property15._(this, "longestLabel", void 0);
|
|
36366
36345
|
this.level = options.level || LOG_TYPES.log.level;
|
|
36367
36346
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
36368
36347
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -36435,16 +36414,12 @@ var require_alias = __commonJS({
|
|
|
36435
36414
|
getAliasConfig: () => getAliasConfig,
|
|
36436
36415
|
getUserAlias: () => getUserAlias
|
|
36437
36416
|
});
|
|
36438
|
-
var
|
|
36439
|
-
var
|
|
36417
|
+
var _interop_require_default = require_interop_require_default();
|
|
36418
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36419
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36440
36420
|
var _compiled = require_compiled();
|
|
36441
36421
|
var _get = require_get();
|
|
36442
36422
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
36443
|
-
function _interop_require_default(obj) {
|
|
36444
|
-
return obj && obj.__esModule ? obj : {
|
|
36445
|
-
default: obj
|
|
36446
|
-
};
|
|
36447
|
-
}
|
|
36448
36423
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
36449
36424
|
const { source: { alias } } = modernConfig;
|
|
36450
36425
|
if (!alias) {
|
|
@@ -36520,15 +36495,11 @@ var require_path = __commonJS({
|
|
|
36520
36495
|
removeTailSlash: () => removeTailSlash,
|
|
36521
36496
|
removeSlash: () => removeSlash
|
|
36522
36497
|
});
|
|
36523
|
-
var
|
|
36524
|
-
var
|
|
36525
|
-
var
|
|
36498
|
+
var _interop_require_default = require_interop_require_default();
|
|
36499
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36500
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36501
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36526
36502
|
var _compiled = require_compiled();
|
|
36527
|
-
function _interop_require_default(obj) {
|
|
36528
|
-
return obj && obj.__esModule ? obj : {
|
|
36529
|
-
default: obj
|
|
36530
|
-
};
|
|
36531
|
-
}
|
|
36532
36503
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
36533
36504
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
36534
36505
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -36692,54 +36663,6 @@ var require_babel = __commonJS({
|
|
|
36692
36663
|
}
|
|
36693
36664
|
});
|
|
36694
36665
|
|
|
36695
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
36696
|
-
var require_generateMetaTags = __commonJS({
|
|
36697
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
36698
|
-
"use strict";
|
|
36699
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36700
|
-
value: true
|
|
36701
|
-
});
|
|
36702
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
36703
|
-
enumerable: true,
|
|
36704
|
-
get: () => generateMetaTags
|
|
36705
|
-
});
|
|
36706
|
-
var tagObjectToString = (tagDefinition) => {
|
|
36707
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
36708
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
36709
|
-
return attributeName;
|
|
36710
|
-
}
|
|
36711
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
36712
|
-
});
|
|
36713
|
-
return `<${[
|
|
36714
|
-
tagDefinition.tagName
|
|
36715
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
36716
|
-
};
|
|
36717
|
-
var generateMetaTags = (metaOptions) => {
|
|
36718
|
-
if (!metaOptions) {
|
|
36719
|
-
return "";
|
|
36720
|
-
}
|
|
36721
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
36722
|
-
const metaTagContent = metaOptions[metaName];
|
|
36723
|
-
return typeof metaTagContent === "string" ? {
|
|
36724
|
-
name: metaName,
|
|
36725
|
-
content: metaTagContent
|
|
36726
|
-
} : metaTagContent;
|
|
36727
|
-
}).filter((attribute) => attribute !== false);
|
|
36728
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
36729
|
-
if (metaTagAttributes === false) {
|
|
36730
|
-
throw new Error("Invalid meta tag");
|
|
36731
|
-
}
|
|
36732
|
-
return {
|
|
36733
|
-
tagName: "meta",
|
|
36734
|
-
voidTag: true,
|
|
36735
|
-
attributes: metaTagAttributes
|
|
36736
|
-
};
|
|
36737
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
36738
|
-
${tagObjectToString(tagObject)}`, "");
|
|
36739
|
-
};
|
|
36740
|
-
}
|
|
36741
|
-
});
|
|
36742
|
-
|
|
36743
36666
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
36744
36667
|
var require_monorepo = __commonJS({
|
|
36745
36668
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -36763,14 +36686,10 @@ var require_monorepo = __commonJS({
|
|
|
36763
36686
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
36764
36687
|
getMonorepoPackages: () => getMonorepoPackages2
|
|
36765
36688
|
});
|
|
36766
|
-
var
|
|
36767
|
-
var
|
|
36689
|
+
var _interop_require_default = require_interop_require_default();
|
|
36690
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
36691
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
36768
36692
|
var _compiled = require_compiled();
|
|
36769
|
-
function _interop_require_default(obj) {
|
|
36770
|
-
return obj && obj.__esModule ? obj : {
|
|
36771
|
-
default: obj
|
|
36772
|
-
};
|
|
36773
|
-
}
|
|
36774
36693
|
var PACKAGE_MAX_DEPTH = 5;
|
|
36775
36694
|
var WORKSPACE_FILES = {
|
|
36776
36695
|
YARN: "package.json",
|
|
@@ -36858,14 +36777,10 @@ var require_pathSerializer = __commonJS({
|
|
|
36858
36777
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
36859
36778
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
36860
36779
|
});
|
|
36861
|
-
var
|
|
36862
|
-
var
|
|
36780
|
+
var _interop_require_default = require_interop_require_default();
|
|
36781
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36782
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash2());
|
|
36863
36783
|
var _path = require_path();
|
|
36864
|
-
function _interop_require_default(obj) {
|
|
36865
|
-
return obj && obj.__esModule ? obj : {
|
|
36866
|
-
default: obj
|
|
36867
|
-
};
|
|
36868
|
-
}
|
|
36869
36784
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
36870
36785
|
match,
|
|
36871
36786
|
mark: "unknown"
|
|
@@ -36923,14 +36838,10 @@ var require_port = __commonJS({
|
|
|
36923
36838
|
enumerable: true,
|
|
36924
36839
|
get: () => getPort
|
|
36925
36840
|
});
|
|
36926
|
-
var
|
|
36841
|
+
var _interop_require_default = require_interop_require_default();
|
|
36842
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
36927
36843
|
var _compiled = require_compiled();
|
|
36928
36844
|
var _logger = require_logger();
|
|
36929
|
-
function _interop_require_default(obj) {
|
|
36930
|
-
return obj && obj.__esModule ? obj : {
|
|
36931
|
-
default: obj
|
|
36932
|
-
};
|
|
36933
|
-
}
|
|
36934
36845
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
36935
36846
|
if (typeof port === "string") {
|
|
36936
36847
|
port = parseInt(port, 10);
|
|
@@ -36993,15 +36904,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
36993
36904
|
getAddressUrls: () => getAddressUrls,
|
|
36994
36905
|
prettyInstructions: () => prettyInstructions
|
|
36995
36906
|
});
|
|
36996
|
-
var
|
|
36907
|
+
var _interop_require_default = require_interop_require_default();
|
|
36908
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
36997
36909
|
var _compiled = require_compiled();
|
|
36998
36910
|
var _is = require_is();
|
|
36999
36911
|
var _constants = require_constants();
|
|
37000
|
-
function _interop_require_default(obj) {
|
|
37001
|
-
return obj && obj.__esModule ? obj : {
|
|
37002
|
-
default: obj
|
|
37003
|
-
};
|
|
37004
|
-
}
|
|
37005
36912
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
37006
36913
|
var getIpv4Interfaces = () => {
|
|
37007
36914
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -37205,14 +37112,10 @@ var require_routes = __commonJS({
|
|
|
37205
37112
|
enumerable: true,
|
|
37206
37113
|
get: () => getRouteId
|
|
37207
37114
|
});
|
|
37208
|
-
var
|
|
37115
|
+
var _interop_require_default = require_interop_require_default();
|
|
37116
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37209
37117
|
var _constants = require_constants();
|
|
37210
37118
|
var _path1 = require_path();
|
|
37211
|
-
function _interop_require_default(obj) {
|
|
37212
|
-
return obj && obj.__esModule ? obj : {
|
|
37213
|
-
default: obj
|
|
37214
|
-
};
|
|
37215
|
-
}
|
|
37216
37119
|
var getPathWithoutExt = (filename) => {
|
|
37217
37120
|
const extname = _path.default.extname(filename);
|
|
37218
37121
|
return filename.slice(0, -extname.length);
|
|
@@ -37242,14 +37145,10 @@ var require_runtimeExports = __commonJS({
|
|
|
37242
37145
|
enumerable: true,
|
|
37243
37146
|
get: () => createRuntimeExportsUtils
|
|
37244
37147
|
});
|
|
37245
|
-
var
|
|
37148
|
+
var _interop_require_default = require_interop_require_default();
|
|
37149
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37246
37150
|
var _compiled = require_compiled();
|
|
37247
37151
|
var _path1 = require_path();
|
|
37248
|
-
function _interop_require_default(obj) {
|
|
37249
|
-
return obj && obj.__esModule ? obj : {
|
|
37250
|
-
default: obj
|
|
37251
|
-
};
|
|
37252
|
-
}
|
|
37253
37152
|
var memo = (fn) => {
|
|
37254
37153
|
const cache = /* @__PURE__ */ new Map();
|
|
37255
37154
|
return (...params) => {
|
|
@@ -37326,13 +37225,9 @@ var require_watch = __commonJS({
|
|
|
37326
37225
|
WatchChangeType: () => WatchChangeType,
|
|
37327
37226
|
watch: () => watch
|
|
37328
37227
|
});
|
|
37329
|
-
var
|
|
37228
|
+
var _interop_require_default = require_interop_require_default();
|
|
37229
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
37330
37230
|
var _compiled = require_compiled();
|
|
37331
|
-
function _interop_require_default(obj) {
|
|
37332
|
-
return obj && obj.__esModule ? obj : {
|
|
37333
|
-
default: obj
|
|
37334
|
-
};
|
|
37335
|
-
}
|
|
37336
37231
|
var WatchChangeType = {
|
|
37337
37232
|
ADD: "add",
|
|
37338
37233
|
UNLINK: "unlink",
|
|
@@ -37382,43 +37277,30 @@ var require_cli = __commonJS({
|
|
|
37382
37277
|
Object.defineProperty(exports, "__esModule", {
|
|
37383
37278
|
value: true
|
|
37384
37279
|
});
|
|
37385
|
-
_export_star(
|
|
37386
|
-
_export_star(
|
|
37387
|
-
_export_star(
|
|
37388
|
-
_export_star(
|
|
37389
|
-
_export_star(
|
|
37390
|
-
_export_star(
|
|
37391
|
-
_export_star(
|
|
37392
|
-
_export_star(
|
|
37393
|
-
_export_star(
|
|
37394
|
-
_export_star(
|
|
37395
|
-
_export_star(
|
|
37396
|
-
_export_star(require_logger(), exports);
|
|
37397
|
-
_export_star(require_monorepo(), exports);
|
|
37398
|
-
_export_star(require_package2(), exports);
|
|
37399
|
-
_export_star(require_path(), exports);
|
|
37400
|
-
_export_star(require_pathSerializer(), exports);
|
|
37401
|
-
_export_star(require_port(), exports);
|
|
37402
|
-
_export_star(require_prettyInstructions(), exports);
|
|
37403
|
-
_export_star(require_print(), exports);
|
|
37404
|
-
_export_star(require_require(), exports);
|
|
37405
|
-
_export_star(require_routes(), exports);
|
|
37406
|
-
_export_star(require_runtimeExports(), exports);
|
|
37407
|
-
_export_star(require_test(), exports);
|
|
37408
|
-
_export_star(require_watch(), exports);
|
|
37409
|
-
function _export_star(from, to) {
|
|
37410
|
-
Object.keys(from).forEach(function(k) {
|
|
37411
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
37412
|
-
Object.defineProperty(to, k, {
|
|
37413
|
-
enumerable: true,
|
|
37414
|
-
get: function() {
|
|
37415
|
-
return from[k];
|
|
37416
|
-
}
|
|
37417
|
-
});
|
|
37418
|
-
}
|
|
37419
|
-
});
|
|
37420
|
-
return from;
|
|
37421
|
-
}
|
|
37280
|
+
var _export_star = require_export_star();
|
|
37281
|
+
_export_star._(require_constants(), exports);
|
|
37282
|
+
_export_star._(require_get(), exports);
|
|
37283
|
+
_export_star._(require_is(), exports);
|
|
37284
|
+
_export_star._(require_alias(), exports);
|
|
37285
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
37286
|
+
_export_star._(require_babel(), exports);
|
|
37287
|
+
_export_star._(require_commands(), exports);
|
|
37288
|
+
_export_star._(require_common(), exports);
|
|
37289
|
+
_export_star._(require_ensure(), exports);
|
|
37290
|
+
_export_star._(require_fs(), exports);
|
|
37291
|
+
_export_star._(require_logger(), exports);
|
|
37292
|
+
_export_star._(require_monorepo(), exports);
|
|
37293
|
+
_export_star._(require_package2(), exports);
|
|
37294
|
+
_export_star._(require_path(), exports);
|
|
37295
|
+
_export_star._(require_pathSerializer(), exports);
|
|
37296
|
+
_export_star._(require_port(), exports);
|
|
37297
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
37298
|
+
_export_star._(require_print(), exports);
|
|
37299
|
+
_export_star._(require_require(), exports);
|
|
37300
|
+
_export_star._(require_routes(), exports);
|
|
37301
|
+
_export_star._(require_runtimeExports(), exports);
|
|
37302
|
+
_export_star._(require_test(), exports);
|
|
37303
|
+
_export_star._(require_watch(), exports);
|
|
37422
37304
|
}
|
|
37423
37305
|
});
|
|
37424
37306
|
|
|
@@ -37429,22 +37311,10 @@ var require_cjs = __commonJS({
|
|
|
37429
37311
|
Object.defineProperty(exports, "__esModule", {
|
|
37430
37312
|
value: true
|
|
37431
37313
|
});
|
|
37432
|
-
_export_star(
|
|
37433
|
-
_export_star(
|
|
37434
|
-
_export_star(
|
|
37435
|
-
|
|
37436
|
-
Object.keys(from).forEach(function(k) {
|
|
37437
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
37438
|
-
Object.defineProperty(to, k, {
|
|
37439
|
-
enumerable: true,
|
|
37440
|
-
get: function() {
|
|
37441
|
-
return from[k];
|
|
37442
|
-
}
|
|
37443
|
-
});
|
|
37444
|
-
}
|
|
37445
|
-
});
|
|
37446
|
-
return from;
|
|
37447
|
-
}
|
|
37314
|
+
var _export_star = require_export_star();
|
|
37315
|
+
_export_star._(require_compiled(), exports);
|
|
37316
|
+
_export_star._(require_cli(), exports);
|
|
37317
|
+
_export_star._(require_import(), exports);
|
|
37448
37318
|
}
|
|
37449
37319
|
});
|
|
37450
37320
|
|
|
@@ -117673,6 +117543,15 @@ var import_path6 = __toESM(require("path"));
|
|
|
117673
117543
|
var import_path = __toESM(require("path"));
|
|
117674
117544
|
var import_utils4 = __toESM(require_cjs());
|
|
117675
117545
|
|
|
117546
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
117547
|
+
function _define_property(obj, key, value) {
|
|
117548
|
+
if (key in obj) {
|
|
117549
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
117550
|
+
} else
|
|
117551
|
+
obj[key] = value;
|
|
117552
|
+
return obj;
|
|
117553
|
+
}
|
|
117554
|
+
|
|
117676
117555
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
117677
117556
|
var import_lodash2 = __toESM(require_lodash3());
|
|
117678
117557
|
|
|
@@ -117691,19 +117570,6 @@ function getObjKeyMap(obj, prefix = "") {
|
|
|
117691
117570
|
}
|
|
117692
117571
|
|
|
117693
117572
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
117694
|
-
function _define_property(obj, key, value) {
|
|
117695
|
-
if (key in obj) {
|
|
117696
|
-
Object.defineProperty(obj, key, {
|
|
117697
|
-
value,
|
|
117698
|
-
enumerable: true,
|
|
117699
|
-
configurable: true,
|
|
117700
|
-
writable: true
|
|
117701
|
-
});
|
|
117702
|
-
} else {
|
|
117703
|
-
obj[key] = value;
|
|
117704
|
-
}
|
|
117705
|
-
return obj;
|
|
117706
|
-
}
|
|
117707
117573
|
var I18n = class {
|
|
117708
117574
|
format(msg, vars) {
|
|
117709
117575
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -118416,11 +118282,18 @@ function getModernPluginVersion(_0, _1) {
|
|
|
118416
118282
|
if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
|
|
118417
118283
|
return getLatetPluginVersion("latest");
|
|
118418
118284
|
}
|
|
118419
|
-
|
|
118285
|
+
let pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
118420
118286
|
paths: [
|
|
118421
118287
|
cwd
|
|
118422
118288
|
]
|
|
118423
|
-
}), "
|
|
118289
|
+
}), "../../..", "package.json");
|
|
118290
|
+
if (solution === Solution.Module) {
|
|
118291
|
+
pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
118292
|
+
paths: [
|
|
118293
|
+
cwd
|
|
118294
|
+
]
|
|
118295
|
+
}), "../..", "package.json");
|
|
118296
|
+
}
|
|
118424
118297
|
if (import_utils4.fs.existsSync(pkgPath)) {
|
|
118425
118298
|
const pkgInfo = import_utils4.fs.readJSONSync(pkgPath);
|
|
118426
118299
|
const modernVersion = pkgInfo.version;
|
|
@@ -118492,11 +118365,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
118492
118365
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
118493
118366
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
118494
118367
|
|
|
118495
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
118368
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
118496
118369
|
var import_lodash8 = __toESM(require_lodash4());
|
|
118497
118370
|
var import_comment_json = __toESM(require_src2());
|
|
118498
118371
|
|
|
118499
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118372
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
118500
118373
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118501
118374
|
try {
|
|
118502
118375
|
var info = gen[key](arg);
|
|
@@ -118804,7 +118677,7 @@ function _canUsePnpm() {
|
|
|
118804
118677
|
return _canUsePnpm.apply(this, arguments);
|
|
118805
118678
|
}
|
|
118806
118679
|
|
|
118807
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118680
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
118808
118681
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118809
118682
|
try {
|
|
118810
118683
|
var info = gen[key](arg);
|
|
@@ -119171,7 +119044,7 @@ function _pnpmInstall() {
|
|
|
119171
119044
|
return _pnpmInstall.apply(this, arguments);
|
|
119172
119045
|
}
|
|
119173
119046
|
|
|
119174
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
119047
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
119175
119048
|
function _class_call_check(instance, Constructor) {
|
|
119176
119049
|
if (!(instance instanceof Constructor)) {
|
|
119177
119050
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -119252,7 +119125,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
119252
119125
|
return NpmAPI2;
|
|
119253
119126
|
}();
|
|
119254
119127
|
|
|
119255
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
119128
|
+
// ../../../../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
|
|
119256
119129
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119257
119130
|
try {
|
|
119258
119131
|
var info = gen[key](arg);
|
|
@@ -119594,7 +119467,7 @@ function _gitCommit() {
|
|
|
119594
119467
|
return _gitCommit.apply(this, arguments);
|
|
119595
119468
|
}
|
|
119596
119469
|
|
|
119597
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
119470
|
+
// ../../../../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
|
|
119598
119471
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119599
119472
|
try {
|
|
119600
119473
|
var info = gen[key](arg);
|
|
@@ -119925,11 +119798,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119925
119798
|
return GitAPI2;
|
|
119926
119799
|
}();
|
|
119927
119800
|
|
|
119928
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119801
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119929
119802
|
var import_path2 = __toESM(require("path"));
|
|
119930
119803
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119931
119804
|
|
|
119932
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119805
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119933
119806
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119934
119807
|
try {
|
|
119935
119808
|
var info = gen[key](arg);
|
|
@@ -120102,7 +119975,7 @@ function _fsExists() {
|
|
|
120102
119975
|
return _fsExists.apply(this, arguments);
|
|
120103
119976
|
}
|
|
120104
119977
|
|
|
120105
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119978
|
+
// ../../../../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
|
|
120106
119979
|
var import_handlebars = __toESM(require_lib());
|
|
120107
119980
|
function _define_property5(obj, key, value) {
|
|
120108
119981
|
if (key in obj) {
|
|
@@ -120144,7 +120017,7 @@ function renderString(template, fullData, registers) {
|
|
|
120144
120017
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
120145
120018
|
}
|
|
120146
120019
|
|
|
120147
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
120020
|
+
// ../../../../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
|
|
120148
120021
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120149
120022
|
try {
|
|
120150
120023
|
var info = gen[key](arg);
|
|
@@ -120462,13 +120335,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
120462
120335
|
return HandlebarsAPI2;
|
|
120463
120336
|
}();
|
|
120464
120337
|
|
|
120465
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
120338
|
+
// ../../../../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
|
|
120466
120339
|
var import_ejs = __toESM(require_ejs());
|
|
120467
120340
|
function renderString2(template, fullData) {
|
|
120468
120341
|
return import_ejs.default.render(template, fullData) || "";
|
|
120469
120342
|
}
|
|
120470
120343
|
|
|
120471
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
120344
|
+
// ../../../../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
|
|
120472
120345
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120473
120346
|
try {
|
|
120474
120347
|
var info = gen[key](arg);
|
|
@@ -120738,24 +120611,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
120738
120611
|
return EjsAPI2;
|
|
120739
120612
|
}();
|
|
120740
120613
|
|
|
120741
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
120614
|
+
// ../../../../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
|
|
120742
120615
|
var import_path3 = __toESM(require("path"));
|
|
120743
|
-
|
|
120744
|
-
// ../../../../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
|
|
120745
|
-
var imageExtNameList = [
|
|
120746
|
-
".jpg",
|
|
120747
|
-
".jpeg",
|
|
120748
|
-
".png",
|
|
120749
|
-
".gif",
|
|
120750
|
-
".bmp",
|
|
120751
|
-
".ico",
|
|
120752
|
-
".icon",
|
|
120753
|
-
".mpt",
|
|
120754
|
-
".psd",
|
|
120755
|
-
".wmf"
|
|
120756
|
-
];
|
|
120757
|
-
|
|
120758
|
-
// ../../../../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
|
|
120759
120616
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
120760
120617
|
try {
|
|
120761
120618
|
var info = gen[key](arg);
|
|
@@ -120935,48 +120792,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120935
120792
|
value: function renderFile(resource, target) {
|
|
120936
120793
|
var _this = this;
|
|
120937
120794
|
return _async_to_generator8(function() {
|
|
120938
|
-
var
|
|
120795
|
+
var filePath;
|
|
120939
120796
|
return __generator8(this, function(_state) {
|
|
120940
120797
|
switch (_state.label) {
|
|
120941
120798
|
case 0:
|
|
120942
120799
|
if (resource._type !== FS_RESOURCE) {
|
|
120943
120800
|
throw new Error("resource not match");
|
|
120944
120801
|
}
|
|
120802
|
+
filePath = import_path3.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120945
120803
|
return [
|
|
120946
120804
|
4,
|
|
120947
|
-
|
|
120805
|
+
import_fs_extra.default.mkdirp(import_path3.default.dirname(filePath))
|
|
120948
120806
|
];
|
|
120949
120807
|
case 1:
|
|
120950
|
-
resourceValue = _state.sent();
|
|
120951
|
-
resourceFileExt = import_path3.default.extname(resource.filePath);
|
|
120952
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120953
|
-
return [
|
|
120954
|
-
3,
|
|
120955
|
-
3
|
|
120956
|
-
];
|
|
120957
|
-
return [
|
|
120958
|
-
4,
|
|
120959
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120960
|
-
encoding: "binary"
|
|
120961
|
-
})
|
|
120962
|
-
];
|
|
120963
|
-
case 2:
|
|
120964
120808
|
_state.sent();
|
|
120965
|
-
return [
|
|
120966
|
-
3,
|
|
120967
|
-
5
|
|
120968
|
-
];
|
|
120969
|
-
case 3:
|
|
120970
120809
|
return [
|
|
120971
120810
|
4,
|
|
120972
|
-
|
|
120973
|
-
encoding: "utf-8"
|
|
120974
|
-
})
|
|
120811
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120975
120812
|
];
|
|
120976
|
-
case
|
|
120813
|
+
case 2:
|
|
120977
120814
|
_state.sent();
|
|
120978
|
-
_state.label = 5;
|
|
120979
|
-
case 5:
|
|
120980
120815
|
return [
|
|
120981
120816
|
2
|
|
120982
120817
|
];
|
|
@@ -121039,7 +120874,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
121039
120874
|
return FsAPI2;
|
|
121040
120875
|
}();
|
|
121041
120876
|
|
|
121042
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120877
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
121043
120878
|
var toString = Object.prototype.toString;
|
|
121044
120879
|
var isType = function(type) {
|
|
121045
120880
|
return function(obj) {
|
|
@@ -121065,7 +120900,7 @@ var isObj = function(val) {
|
|
|
121065
120900
|
};
|
|
121066
120901
|
var isRegExp = isType("RegExp");
|
|
121067
120902
|
|
|
121068
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120903
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
121069
120904
|
var toArr = function(val) {
|
|
121070
120905
|
return isArr(val) ? val : val ? [val] : [];
|
|
121071
120906
|
};
|
|
@@ -121116,7 +120951,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
121116
120951
|
return result;
|
|
121117
120952
|
}
|
|
121118
120953
|
|
|
121119
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120954
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
121120
120955
|
function globalSelf() {
|
|
121121
120956
|
try {
|
|
121122
120957
|
if (typeof self !== "undefined") {
|
|
@@ -121140,7 +120975,7 @@ function globalSelf() {
|
|
|
121140
120975
|
}
|
|
121141
120976
|
var globalThisPolyfill = globalSelf();
|
|
121142
120977
|
|
|
121143
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120978
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
121144
120979
|
var instOf = function(value, cls) {
|
|
121145
120980
|
if (isFn(cls))
|
|
121146
120981
|
return value instanceof cls;
|
|
@@ -121149,7 +120984,7 @@ var instOf = function(value, cls) {
|
|
|
121149
120984
|
return false;
|
|
121150
120985
|
};
|
|
121151
120986
|
|
|
121152
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120987
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
121153
120988
|
var isArray = isArr;
|
|
121154
120989
|
var keyList = Object.keys;
|
|
121155
120990
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -121256,7 +121091,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
121256
121091
|
}
|
|
121257
121092
|
};
|
|
121258
121093
|
|
|
121259
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121094
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
121260
121095
|
var clone = function(values) {
|
|
121261
121096
|
if (Array.isArray(values)) {
|
|
121262
121097
|
var res_1 = [];
|
|
@@ -121292,7 +121127,7 @@ var clone = function(values) {
|
|
|
121292
121127
|
}
|
|
121293
121128
|
};
|
|
121294
121129
|
|
|
121295
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121130
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
121296
121131
|
var has = Object.prototype.hasOwnProperty;
|
|
121297
121132
|
var toString2 = Object.prototype.toString;
|
|
121298
121133
|
var isUndef = function(val) {
|
|
@@ -121420,7 +121255,7 @@ function pascalCase(input, options) {
|
|
|
121420
121255
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
121421
121256
|
}
|
|
121422
121257
|
|
|
121423
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
121258
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
121424
121259
|
var ansiRegex2 = function() {
|
|
121425
121260
|
var pattern = [
|
|
121426
121261
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -121439,7 +121274,7 @@ var stringLength = function(input) {
|
|
|
121439
121274
|
return stripAnsi3(input).replace(astralRegex(), " ").length;
|
|
121440
121275
|
};
|
|
121441
121276
|
|
|
121442
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121277
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
121443
121278
|
var __assign2 = function() {
|
|
121444
121279
|
__assign2 = Object.assign || function(t) {
|
|
121445
121280
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121462,7 +121297,7 @@ var parenContext = ContextType("()");
|
|
|
121462
121297
|
var braceContext = ContextType("{}");
|
|
121463
121298
|
var destructorContext = ContextType("{x}");
|
|
121464
121299
|
|
|
121465
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121300
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
121466
121301
|
var __assign3 = function() {
|
|
121467
121302
|
__assign3 = Object.assign || function(t) {
|
|
121468
121303
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -121630,7 +121465,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
121630
121465
|
});
|
|
121631
121466
|
var eofTok = TokenType("eof");
|
|
121632
121467
|
|
|
121633
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121468
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
121634
121469
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
121635
121470
|
var fullCharCodeAtPos = function(input, pos) {
|
|
121636
121471
|
if (String.fromCharCode)
|
|
@@ -121882,7 +121717,7 @@ var Tokenizer = (
|
|
|
121882
121717
|
}()
|
|
121883
121718
|
);
|
|
121884
121719
|
|
|
121885
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121720
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
121886
121721
|
var isType2 = function(type) {
|
|
121887
121722
|
return function(obj) {
|
|
121888
121723
|
return obj && obj.type === type;
|
|
@@ -121900,7 +121735,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121900
121735
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121901
121736
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121902
121737
|
|
|
121903
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121738
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121904
121739
|
var toString3 = Object.prototype.toString;
|
|
121905
121740
|
var isType3 = function(type) {
|
|
121906
121741
|
return function(obj) {
|
|
@@ -121977,7 +121812,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121977
121812
|
return a === b;
|
|
121978
121813
|
};
|
|
121979
121814
|
|
|
121980
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121815
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121981
121816
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121982
121817
|
var isValid2 = function(val) {
|
|
121983
121818
|
return val !== void 0 && val !== null;
|
|
@@ -122095,7 +121930,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
122095
121930
|
});
|
|
122096
121931
|
};
|
|
122097
121932
|
|
|
122098
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121933
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
122099
121934
|
var __extends = function() {
|
|
122100
121935
|
var extendStatics = function(d, b) {
|
|
122101
121936
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -122486,7 +122321,7 @@ var Parser = (
|
|
|
122486
122321
|
}(Tokenizer)
|
|
122487
122322
|
);
|
|
122488
122323
|
|
|
122489
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
122324
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
122490
122325
|
var Matcher = (
|
|
122491
122326
|
/** @class */
|
|
122492
122327
|
function() {
|
|
@@ -122668,7 +122503,7 @@ var Matcher = (
|
|
|
122668
122503
|
}()
|
|
122669
122504
|
);
|
|
122670
122505
|
|
|
122671
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
122506
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
122672
122507
|
var __read = function(o, n) {
|
|
122673
122508
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
122674
122509
|
if (!m)
|
|
@@ -123222,7 +123057,7 @@ var Path = (
|
|
|
123222
123057
|
}()
|
|
123223
123058
|
);
|
|
123224
123059
|
|
|
123225
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
123060
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
123226
123061
|
var Subscribable = (
|
|
123227
123062
|
/** @class */
|
|
123228
123063
|
function() {
|
|
@@ -123274,7 +123109,7 @@ var Subscribable = (
|
|
|
123274
123109
|
}()
|
|
123275
123110
|
);
|
|
123276
123111
|
|
|
123277
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
123112
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
123278
123113
|
function defaultIsMergeableObject(value) {
|
|
123279
123114
|
return isNonNullObject(value) && !isSpecial(value);
|
|
123280
123115
|
}
|
|
@@ -123467,7 +123302,7 @@ var lazyMerge = function(target) {
|
|
|
123467
123302
|
};
|
|
123468
123303
|
var merge = deepmerge;
|
|
123469
123304
|
|
|
123470
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
123305
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
123471
123306
|
var IDX = 36;
|
|
123472
123307
|
var HEX = "";
|
|
123473
123308
|
while (IDX--)
|
|
@@ -123479,7 +123314,7 @@ function uid(len) {
|
|
|
123479
123314
|
return str;
|
|
123480
123315
|
}
|
|
123481
123316
|
|
|
123482
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123317
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
123483
123318
|
var toString4 = Object.prototype.toString;
|
|
123484
123319
|
var isMap = function(val) {
|
|
123485
123320
|
return val && val instanceof Map;
|
|
@@ -123510,7 +123345,7 @@ var isNormalType = function(target) {
|
|
|
123510
123345
|
return isPlainObj3(target) || isArr3(target);
|
|
123511
123346
|
};
|
|
123512
123347
|
|
|
123513
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123348
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
123514
123349
|
var toArray = function(value) {
|
|
123515
123350
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
123516
123351
|
};
|
|
@@ -123574,7 +123409,7 @@ var ArraySet = (
|
|
|
123574
123409
|
}()
|
|
123575
123410
|
);
|
|
123576
123411
|
|
|
123577
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123412
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
123578
123413
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
123579
123414
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
123580
123415
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -123593,7 +123428,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
123593
123428
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
123594
123429
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
123595
123430
|
|
|
123596
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123431
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
123597
123432
|
var ITERATION_KEY = Symbol("iteration key");
|
|
123598
123433
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
123599
123434
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -123823,7 +123658,7 @@ var disposeEffects = function(reaction2) {
|
|
|
123823
123658
|
}
|
|
123824
123659
|
};
|
|
123825
123660
|
|
|
123826
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123661
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
123827
123662
|
var DataChange = (
|
|
123828
123663
|
/** @class */
|
|
123829
123664
|
function() {
|
|
@@ -123919,7 +123754,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123919
123754
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123920
123755
|
};
|
|
123921
123756
|
|
|
123922
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123757
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123923
123758
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123924
123759
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123925
123760
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -124021,7 +123856,7 @@ var hasCollected = function(callback) {
|
|
|
124021
123856
|
return DependencyCollected.value;
|
|
124022
123857
|
};
|
|
124023
123858
|
|
|
124024
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123859
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
124025
123860
|
var __read2 = function(o, n) {
|
|
124026
123861
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
124027
123862
|
if (!m)
|
|
@@ -124277,7 +124112,7 @@ var baseHandlers = {
|
|
|
124277
124112
|
}
|
|
124278
124113
|
};
|
|
124279
124114
|
|
|
124280
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124115
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
124281
124116
|
var createNormalProxy = function(target, shallow2) {
|
|
124282
124117
|
var proxy = new Proxy(target, baseHandlers);
|
|
124283
124118
|
ProxyRaw.set(proxy, target);
|
|
@@ -124392,7 +124227,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
124392
124227
|
return boundary;
|
|
124393
124228
|
};
|
|
124394
124229
|
|
|
124395
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124230
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
124396
124231
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
124397
124232
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
124398
124233
|
batch.endpoint = function(callback) {
|
|
@@ -124405,7 +124240,7 @@ batch.endpoint = function(callback) {
|
|
|
124405
124240
|
}
|
|
124406
124241
|
};
|
|
124407
124242
|
|
|
124408
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124243
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
124409
124244
|
var action = createBoundaryAnnotation(function() {
|
|
124410
124245
|
batchStart();
|
|
124411
124246
|
untrackStart();
|
|
@@ -124421,10 +124256,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
124421
124256
|
batchScopeEnd();
|
|
124422
124257
|
});
|
|
124423
124258
|
|
|
124424
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124259
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
124425
124260
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
124426
124261
|
|
|
124427
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124262
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
124428
124263
|
var observable = createAnnotation(function(_a2) {
|
|
124429
124264
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124430
124265
|
var store = {
|
|
@@ -124464,7 +124299,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
124464
124299
|
return store.value;
|
|
124465
124300
|
});
|
|
124466
124301
|
|
|
124467
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124302
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
124468
124303
|
var box = createAnnotation(function(_a2) {
|
|
124469
124304
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124470
124305
|
var store = {
|
|
@@ -124510,7 +124345,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
124510
124345
|
return proxy;
|
|
124511
124346
|
});
|
|
124512
124347
|
|
|
124513
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124348
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
124514
124349
|
var ref = createAnnotation(function(_a2) {
|
|
124515
124350
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124516
124351
|
var store = {
|
|
@@ -124558,7 +124393,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
124558
124393
|
return proxy;
|
|
124559
124394
|
});
|
|
124560
124395
|
|
|
124561
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124396
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
124562
124397
|
var shallow = createAnnotation(function(_a2) {
|
|
124563
124398
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
124564
124399
|
var store = {
|
|
@@ -124598,7 +124433,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
124598
124433
|
return store.value;
|
|
124599
124434
|
});
|
|
124600
124435
|
|
|
124601
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124436
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
124602
124437
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
124603
124438
|
var getProto = Object.getPrototypeOf;
|
|
124604
124439
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -124719,7 +124554,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
124719
124554
|
return proxy;
|
|
124720
124555
|
});
|
|
124721
124556
|
|
|
124722
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124557
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
124723
124558
|
function observable2(target) {
|
|
124724
124559
|
return createObservable(null, null, target);
|
|
124725
124560
|
}
|
|
@@ -124730,7 +124565,7 @@ observable2.shallow = shallow;
|
|
|
124730
124565
|
observable2.computed = computed;
|
|
124731
124566
|
observable2[MakeObModelSymbol] = observable;
|
|
124732
124567
|
|
|
124733
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124568
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
124734
124569
|
function define2(target, annotations) {
|
|
124735
124570
|
if (isObservable(target))
|
|
124736
124571
|
return target;
|
|
@@ -124750,7 +124585,7 @@ function define2(target, annotations) {
|
|
|
124750
124585
|
return target;
|
|
124751
124586
|
}
|
|
124752
124587
|
|
|
124753
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124588
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
124754
124589
|
var __assign4 = function() {
|
|
124755
124590
|
__assign4 = Object.assign || function(t) {
|
|
124756
124591
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124896,7 +124731,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
124896
124731
|
};
|
|
124897
124732
|
};
|
|
124898
124733
|
|
|
124899
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124734
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124900
124735
|
var Tracker = (
|
|
124901
124736
|
/** @class */
|
|
124902
124737
|
function() {
|
|
@@ -124941,7 +124776,7 @@ var Tracker = (
|
|
|
124941
124776
|
}()
|
|
124942
124777
|
);
|
|
124943
124778
|
|
|
124944
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124779
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124945
124780
|
var observe = function(target, observer, deep) {
|
|
124946
124781
|
if (deep === void 0) {
|
|
124947
124782
|
deep = true;
|
|
@@ -124974,7 +124809,7 @@ var observe = function(target, observer, deep) {
|
|
|
124974
124809
|
return addListener(target);
|
|
124975
124810
|
};
|
|
124976
124811
|
|
|
124977
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124812
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124978
124813
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124979
124814
|
var SchemaNestedMap = {
|
|
124980
124815
|
parent: true,
|
|
@@ -125161,7 +124996,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
125161
124996
|
});
|
|
125162
124997
|
};
|
|
125163
124998
|
|
|
125164
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124999
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
125165
125000
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
125166
125001
|
var Registry = {
|
|
125167
125002
|
silent: false,
|
|
@@ -125265,7 +125100,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
125265
125100
|
});
|
|
125266
125101
|
};
|
|
125267
125102
|
|
|
125268
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125103
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
125269
125104
|
var LifeCycle = (
|
|
125270
125105
|
/** @class */
|
|
125271
125106
|
function() {
|
|
@@ -125311,7 +125146,7 @@ var LifeCycle = (
|
|
|
125311
125146
|
}()
|
|
125312
125147
|
);
|
|
125313
125148
|
|
|
125314
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125149
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
125315
125150
|
var __extends2 = function() {
|
|
125316
125151
|
var extendStatics = function(d, b) {
|
|
125317
125152
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -125407,7 +125242,7 @@ var Heart = (
|
|
|
125407
125242
|
}(Subscribable)
|
|
125408
125243
|
);
|
|
125409
125244
|
|
|
125410
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125245
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
125411
125246
|
var isForm = function(node) {
|
|
125412
125247
|
return node instanceof Form;
|
|
125413
125248
|
};
|
|
@@ -125453,7 +125288,7 @@ var isQuery = function(query2) {
|
|
|
125453
125288
|
return query2 && query2 instanceof Query;
|
|
125454
125289
|
};
|
|
125455
125290
|
|
|
125456
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125291
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
125457
125292
|
var Graph = (
|
|
125458
125293
|
/** @class */
|
|
125459
125294
|
function() {
|
|
@@ -125505,12 +125340,12 @@ var Graph = (
|
|
|
125505
125340
|
}()
|
|
125506
125341
|
);
|
|
125507
125342
|
|
|
125508
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125343
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
125509
125344
|
var isValidateResult = function(obj) {
|
|
125510
125345
|
return !!obj["type"] && !!obj["message"];
|
|
125511
125346
|
};
|
|
125512
125347
|
|
|
125513
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125348
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
125514
125349
|
var getIn2 = Path.getIn;
|
|
125515
125350
|
var self2 = globalThisPolyfill;
|
|
125516
125351
|
var defaultLanguage = "en";
|
|
@@ -125581,7 +125416,7 @@ var registerValidateFormats = function(formats) {
|
|
|
125581
125416
|
});
|
|
125582
125417
|
};
|
|
125583
125418
|
|
|
125584
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125419
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
125585
125420
|
var render = function(result, rules) {
|
|
125586
125421
|
var message = result.message;
|
|
125587
125422
|
if (isStr(result.message)) {
|
|
@@ -125596,7 +125431,7 @@ var render = function(result, rules) {
|
|
|
125596
125431
|
return result;
|
|
125597
125432
|
};
|
|
125598
125433
|
|
|
125599
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125434
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
125600
125435
|
var __assign5 = function() {
|
|
125601
125436
|
__assign5 = Object.assign || function(t) {
|
|
125602
125437
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125847,7 +125682,7 @@ var parseValidator = function(validator, options) {
|
|
|
125847
125682
|
}, []);
|
|
125848
125683
|
};
|
|
125849
125684
|
|
|
125850
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125685
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
125851
125686
|
var locale_default = {
|
|
125852
125687
|
en: {
|
|
125853
125688
|
pattern: "This field is invalid",
|
|
@@ -126067,7 +125902,7 @@ var locale_default = {
|
|
|
126067
125902
|
}
|
|
126068
125903
|
};
|
|
126069
125904
|
|
|
126070
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125905
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
126071
125906
|
var formats_default = {
|
|
126072
125907
|
url: new RegExp(
|
|
126073
125908
|
// protocol identifier
|
|
@@ -126087,7 +125922,7 @@ var formats_default = {
|
|
|
126087
125922
|
zip: /^[0-9]{6}$/
|
|
126088
125923
|
};
|
|
126089
125924
|
|
|
126090
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125925
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
126091
125926
|
var __assign6 = function() {
|
|
126092
125927
|
__assign6 = Object.assign || function(t) {
|
|
126093
125928
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -126402,7 +126237,7 @@ extendSameRules(RULES, {
|
|
|
126402
126237
|
});
|
|
126403
126238
|
var rules_default = RULES;
|
|
126404
126239
|
|
|
126405
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
126240
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
126406
126241
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
126407
126242
|
function adopt(value) {
|
|
126408
126243
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -126547,7 +126382,7 @@ var validate = function(value, validator, options) {
|
|
|
126547
126382
|
});
|
|
126548
126383
|
};
|
|
126549
126384
|
|
|
126550
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126385
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
126551
126386
|
var LifeCycleTypes;
|
|
126552
126387
|
(function(LifeCycleTypes2) {
|
|
126553
126388
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -126599,7 +126434,7 @@ var LifeCycleTypes;
|
|
|
126599
126434
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
126600
126435
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
126601
126436
|
|
|
126602
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126437
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
126603
126438
|
var ReservedProperties = {
|
|
126604
126439
|
form: true,
|
|
126605
126440
|
parent: true,
|
|
@@ -126651,7 +126486,7 @@ var GlobalState = {
|
|
|
126651
126486
|
};
|
|
126652
126487
|
var NumberIndexReg = /^\.(\d+)/;
|
|
126653
126488
|
|
|
126654
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126489
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
126655
126490
|
var __assign7 = function() {
|
|
126656
126491
|
__assign7 = Object.assign || function(t) {
|
|
126657
126492
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -127758,7 +127593,7 @@ var getObjectParent = function(field) {
|
|
|
127758
127593
|
}
|
|
127759
127594
|
};
|
|
127760
127595
|
|
|
127761
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127596
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
127762
127597
|
var output = function(field, taker) {
|
|
127763
127598
|
if (!field)
|
|
127764
127599
|
return;
|
|
@@ -127841,7 +127676,7 @@ var Query = (
|
|
|
127841
127676
|
}()
|
|
127842
127677
|
);
|
|
127843
127678
|
|
|
127844
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127679
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
127845
127680
|
var __read4 = function(o, n) {
|
|
127846
127681
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127847
127682
|
if (!m)
|
|
@@ -128221,7 +128056,7 @@ var BaseField = (
|
|
|
128221
128056
|
}()
|
|
128222
128057
|
);
|
|
128223
128058
|
|
|
128224
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128059
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
128225
128060
|
var __extends3 = function() {
|
|
128226
128061
|
var extendStatics = function(d, b) {
|
|
128227
128062
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128862,7 +128697,7 @@ var Field = (
|
|
|
128862
128697
|
}(BaseField)
|
|
128863
128698
|
);
|
|
128864
128699
|
|
|
128865
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128700
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
128866
128701
|
var __read5 = function(o, n) {
|
|
128867
128702
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
128868
128703
|
if (!m)
|
|
@@ -128956,7 +128791,7 @@ var runEffects = function(context) {
|
|
|
128956
128791
|
return GlobalState.lifecycles;
|
|
128957
128792
|
};
|
|
128958
128793
|
|
|
128959
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128794
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128960
128795
|
var __extends4 = function() {
|
|
128961
128796
|
var extendStatics = function(d, b) {
|
|
128962
128797
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -129146,7 +128981,7 @@ var ArrayField = (
|
|
|
129146
128981
|
}(Field)
|
|
129147
128982
|
);
|
|
129148
128983
|
|
|
129149
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128984
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
129150
128985
|
var __extends5 = function() {
|
|
129151
128986
|
var extendStatics = function(d, b) {
|
|
129152
128987
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -129207,7 +129042,7 @@ var ObjectField = (
|
|
|
129207
129042
|
}(Field)
|
|
129208
129043
|
);
|
|
129209
129044
|
|
|
129210
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129045
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
129211
129046
|
var __extends6 = function() {
|
|
129212
129047
|
var extendStatics = function(d, b) {
|
|
129213
129048
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -129322,7 +129157,7 @@ var VoidField = (
|
|
|
129322
129157
|
}(BaseField)
|
|
129323
129158
|
);
|
|
129324
129159
|
|
|
129325
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129160
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
129326
129161
|
var __assign8 = function() {
|
|
129327
129162
|
__assign8 = Object.assign || function(t) {
|
|
129328
129163
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129850,7 +129685,7 @@ var Form = (
|
|
|
129850
129685
|
}()
|
|
129851
129686
|
);
|
|
129852
129687
|
|
|
129853
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129688
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
129854
129689
|
function createFormEffect(type) {
|
|
129855
129690
|
return createEffectHook(type, function(form) {
|
|
129856
129691
|
return function(callback) {
|
|
@@ -129883,7 +129718,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
129883
129718
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
129884
129719
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
129885
129720
|
|
|
129886
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
129721
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
129887
129722
|
function createFieldEffect(type) {
|
|
129888
129723
|
return createEffectHook(type, function(field, form) {
|
|
129889
129724
|
return function(pattern, callback) {
|
|
@@ -129928,7 +129763,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129928
129763
|
}
|
|
129929
129764
|
}
|
|
129930
129765
|
|
|
129931
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129766
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129932
129767
|
var __read7 = function(o, n) {
|
|
129933
129768
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129934
129769
|
if (!m)
|
|
@@ -130153,7 +129988,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
130153
129988
|
};
|
|
130154
129989
|
};
|
|
130155
129990
|
|
|
130156
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129991
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
130157
129992
|
var __assign9 = function() {
|
|
130158
129993
|
__assign9 = Object.assign || function(t) {
|
|
130159
129994
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -130202,7 +130037,7 @@ var enablePolyfills = function(versions) {
|
|
|
130202
130037
|
}
|
|
130203
130038
|
};
|
|
130204
130039
|
|
|
130205
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
130040
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
130206
130041
|
var __assign10 = function() {
|
|
130207
130042
|
__assign10 = Object.assign || function(t) {
|
|
130208
130043
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -130359,7 +130194,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
130359
130194
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
130360
130195
|
};
|
|
130361
130196
|
|
|
130362
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
130197
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
130363
130198
|
var Schema = (
|
|
130364
130199
|
/** @class */
|
|
130365
130200
|
function() {
|
|
@@ -130595,10 +130430,10 @@ var Schema = (
|
|
|
130595
130430
|
}()
|
|
130596
130431
|
);
|
|
130597
130432
|
|
|
130598
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130433
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130599
130434
|
var import_inquirer = __toESM(require_inquirer());
|
|
130600
130435
|
|
|
130601
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130436
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
130602
130437
|
var import_lodash4 = __toESM(require_lodash4());
|
|
130603
130438
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130604
130439
|
try {
|
|
@@ -130945,7 +130780,7 @@ function transformForm(schema) {
|
|
|
130945
130780
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130946
130781
|
}
|
|
130947
130782
|
|
|
130948
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130783
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130949
130784
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130950
130785
|
try {
|
|
130951
130786
|
var info = gen[key](arg);
|
|
@@ -131469,7 +131304,7 @@ function _prompt() {
|
|
|
131469
131304
|
return _prompt.apply(this, arguments);
|
|
131470
131305
|
}
|
|
131471
131306
|
|
|
131472
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
131307
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
131473
131308
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131474
131309
|
try {
|
|
131475
131310
|
var info = gen[key](arg);
|
|
@@ -131709,7 +131544,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
131709
131544
|
return CLIReader2;
|
|
131710
131545
|
}();
|
|
131711
131546
|
|
|
131712
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131547
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131713
131548
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
131714
131549
|
|
|
131715
131550
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -131788,7 +131623,7 @@ var I18n2 = class {
|
|
|
131788
131623
|
}
|
|
131789
131624
|
};
|
|
131790
131625
|
|
|
131791
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131626
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
131792
131627
|
var ZH_LOCALE2 = {
|
|
131793
131628
|
environment: {
|
|
131794
131629
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -131815,7 +131650,7 @@ var ZH_LOCALE2 = {
|
|
|
131815
131650
|
}
|
|
131816
131651
|
};
|
|
131817
131652
|
|
|
131818
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131653
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
131819
131654
|
var EN_LOCALE2 = {
|
|
131820
131655
|
environment: {
|
|
131821
131656
|
node_version: "please upgrade node to lts version",
|
|
@@ -131842,14 +131677,14 @@ var EN_LOCALE2 = {
|
|
|
131842
131677
|
}
|
|
131843
131678
|
};
|
|
131844
131679
|
|
|
131845
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131680
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
131846
131681
|
var i18n2 = new I18n2();
|
|
131847
131682
|
var localeKeys2 = i18n2.init("zh", {
|
|
131848
131683
|
zh: ZH_LOCALE2,
|
|
131849
131684
|
en: EN_LOCALE2
|
|
131850
131685
|
});
|
|
131851
131686
|
|
|
131852
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131687
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
131853
131688
|
var import_lodash7 = __toESM(require_lodash4());
|
|
131854
131689
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131855
131690
|
try {
|
|
@@ -132058,7 +131893,7 @@ function transformInquirerSchema(questions) {
|
|
|
132058
131893
|
return questions;
|
|
132059
131894
|
}
|
|
132060
131895
|
|
|
132061
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131896
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
132062
131897
|
var import_path5 = __toESM(require("path"));
|
|
132063
131898
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132064
131899
|
try {
|
|
@@ -132322,7 +132157,7 @@ function _checkUseNvm() {
|
|
|
132322
132157
|
return _checkUseNvm.apply(this, arguments);
|
|
132323
132158
|
}
|
|
132324
132159
|
|
|
132325
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
132160
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
132326
132161
|
function _array_like_to_array(arr, len) {
|
|
132327
132162
|
if (len == null || len > arr.length)
|
|
132328
132163
|
len = arr.length;
|
|
@@ -132903,7 +132738,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132903
132738
|
switch (_state2.label) {
|
|
132904
132739
|
case 0:
|
|
132905
132740
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132906
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
132741
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132907
132742
|
return [
|
|
132908
132743
|
4,
|
|
132909
132744
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -133252,11 +133087,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
133252
133087
|
return AppAPI2;
|
|
133253
133088
|
}();
|
|
133254
133089
|
|
|
133255
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
133090
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
133256
133091
|
var import_comment_json2 = __toESM(require_src2());
|
|
133257
133092
|
var declarationUpdate = __toESM(require_dist());
|
|
133258
133093
|
|
|
133259
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
133094
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
133260
133095
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133261
133096
|
try {
|
|
133262
133097
|
var info = gen[key](arg);
|
|
@@ -133430,7 +133265,7 @@ function _editJson() {
|
|
|
133430
133265
|
return _editJson.apply(this, arguments);
|
|
133431
133266
|
}
|
|
133432
133267
|
|
|
133433
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
133268
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
133434
133269
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133435
133270
|
try {
|
|
133436
133271
|
var info = gen[key](arg);
|