@qlover/create-app 0.4.5 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -35
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -2418
- package/{templates → dist/templates}/node-lib/package.json +2 -2
- package/{templates → dist/templates}/react-app/README.md +6 -6
- package/{templates/react-app/config/Identifier/Error.ts → dist/templates/react-app/config/Identifier/common.error.ts} +8 -8
- package/dist/templates/react-app/config/Identifier/common.ts +62 -0
- package/dist/templates/react-app/config/Identifier/index.ts +10 -0
- package/dist/templates/react-app/config/Identifier/page.about.ts +181 -0
- package/dist/templates/react-app/config/Identifier/page.executor.ts +267 -0
- package/dist/templates/react-app/config/Identifier/page.home.ts +63 -0
- package/dist/templates/react-app/config/Identifier/page.identifiter.ts +39 -0
- package/dist/templates/react-app/config/Identifier/page.jsonStorage.ts +70 -0
- package/dist/templates/react-app/config/Identifier/page.login.ts +152 -0
- package/dist/templates/react-app/config/Identifier/page.register.ts +147 -0
- package/dist/templates/react-app/config/Identifier/page.request.ts +179 -0
- package/dist/templates/react-app/config/app.router.ts +163 -0
- package/{templates → dist/templates}/react-app/config/feapi.mock.json +6 -0
- package/dist/templates/react-app/config/theme.ts +11 -0
- package/{templates → dist/templates}/react-app/package.json +2 -2
- package/{templates → dist/templates}/react-app/public/locales/en/common.json +97 -116
- package/{templates → dist/templates}/react-app/public/locales/zh/common.json +98 -117
- package/{templates → dist/templates}/react-app/src/App.tsx +6 -5
- package/dist/templates/react-app/src/base/apis/userApi/UserApi.ts +142 -0
- package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiType.ts +11 -0
- package/{templates → dist/templates}/react-app/src/base/cases/AppConfig.ts +11 -0
- package/dist/templates/react-app/src/base/cases/I18nKeyErrorPlugin.ts +36 -0
- package/{templates → dist/templates}/react-app/src/base/cases/RouterLoader.ts +2 -1
- package/{templates → dist/templates}/react-app/src/base/services/I18nService.ts +4 -4
- package/{templates/react-app/src/base/services/ProcesserService.ts → dist/templates/react-app/src/base/services/ProcesserExecutor.ts} +15 -5
- package/{templates → dist/templates}/react-app/src/base/services/RouteService.ts +11 -13
- package/dist/templates/react-app/src/base/services/UserService.ts +132 -0
- package/{templates → dist/templates}/react-app/src/base/types/Page.ts +12 -2
- package/{templates → dist/templates}/react-app/src/core/IOC.ts +11 -6
- package/{templates → dist/templates}/react-app/src/core/bootstrap.ts +2 -2
- package/{templates → dist/templates}/react-app/src/core/bootstraps/index.ts +3 -1
- package/{templates → dist/templates}/react-app/src/core/globals.ts +23 -7
- package/{templates → dist/templates}/react-app/src/core/registers/RegisterApi.ts +1 -1
- package/{templates → dist/templates}/react-app/src/core/registers/RegisterCommon.ts +14 -15
- package/{templates → dist/templates}/react-app/src/core/registers/RegisterControllers.ts +9 -4
- package/{templates → dist/templates}/react-app/src/core/registers/RegisterGlobals.ts +12 -4
- package/{templates → dist/templates}/react-app/src/pages/404.tsx +4 -1
- package/{templates → dist/templates}/react-app/src/pages/500.tsx +2 -1
- package/{templates → dist/templates}/react-app/src/pages/auth/Layout.tsx +2 -2
- package/{templates/react-app/src/pages/auth/Login.tsx → dist/templates/react-app/src/pages/auth/LoginPage.tsx} +2 -4
- package/{templates/react-app/src/pages/auth/Register.tsx → dist/templates/react-app/src/pages/auth/RegisterPage.tsx} +3 -6
- package/{templates/react-app/src/pages/base/About.tsx → dist/templates/react-app/src/pages/base/AboutPage.tsx} +4 -4
- package/{templates/react-app/src/pages/base/ErrorIdentifier.tsx → dist/templates/react-app/src/pages/base/ErrorIdentifierPage.tsx} +3 -3
- package/{templates/react-app/src/pages/base/Executor.tsx → dist/templates/react-app/src/pages/base/ExecutorPage.tsx} +3 -3
- package/{templates/react-app/src/pages/base/Home.tsx → dist/templates/react-app/src/pages/base/HomePage.tsx} +15 -45
- package/{templates/react-app/src/pages/base/JSONStorage.tsx → dist/templates/react-app/src/pages/base/JSONStoragePage.tsx} +3 -3
- package/{templates → dist/templates}/react-app/src/pages/base/Layout.tsx +4 -4
- package/{templates/react-app/src/pages/base/Request.tsx → dist/templates/react-app/src/pages/base/RequestPage.tsx} +2 -2
- package/{templates/react-app/src/pages/base → dist/templates/react-app/src/uikit}/components/LogoutButton.tsx +1 -1
- package/{templates → dist/templates}/react-app/src/uikit/components/ThemeSwitcher.tsx +5 -6
- package/{templates → dist/templates}/react-app/src/uikit/contexts/BaseRouteContext.ts +1 -1
- package/{templates → dist/templates}/react-app/src/uikit/controllers/ExecutorController.ts +2 -2
- package/{templates → dist/templates}/react-app/src/uikit/controllers/JSONStorageController.ts +5 -5
- package/{templates → dist/templates}/react-app/src/uikit/controllers/RequestController.ts +1 -1
- package/{templates/react-app/src/uikit/hooks/useLanguageGuard.ts → dist/templates/react-app/src/uikit/hooks/useI18nGuard.ts} +1 -1
- package/{templates → dist/templates}/react-app/src/uikit/hooks/useStore.ts +2 -2
- package/dist/templates/react-app/src/uikit/hooks/userRouterService.ts +12 -0
- package/{templates → dist/templates}/react-app/src/uikit/providers/BaseRouteProvider.tsx +1 -0
- package/dist/templates/react-app/src/uikit/providers/ProcessExecutorProvider.tsx +24 -0
- package/dist/templates/react-app/src/uikit/providers/UserAuthProvider.tsx +16 -0
- package/{templates → dist/templates}/react-app/vite.config.ts +2 -1
- package/package.json +4 -6
- package/templates/react-app/config/Identifier/Auth.ts +0 -13
- package/templates/react-app/config/Identifier/I18n.ts +0 -1366
- package/templates/react-app/config/app.router.json +0 -159
- package/templates/react-app/config/theme.json +0 -9
- package/templates/react-app/src/base/apis/userApi/UserApi.ts +0 -64
- package/templates/react-app/src/base/port/LoginInterface.ts +0 -12
- package/templates/react-app/src/base/port/StoreInterface.ts +0 -58
- package/templates/react-app/src/base/services/UserService.ts +0 -130
- package/templates/react-app/src/uikit/providers/ProcessProvider.tsx +0 -45
- /package/{configs → dist/configs}/_common/.editorconfig +0 -0
- /package/{configs → dist/configs}/_common/.env.template +0 -0
- /package/{configs → dist/configs}/_common/.gitattributes +0 -0
- /package/{configs → dist/configs}/_common/.github/workflows/general-check.yml +0 -0
- /package/{configs → dist/configs}/_common/.github/workflows/release.yml +0 -0
- /package/{configs → dist/configs}/_common/.gitignore.template +0 -0
- /package/{configs → dist/configs}/_common/.husky/commit-msg +0 -0
- /package/{configs → dist/configs}/_common/.husky/pre-commit +0 -0
- /package/{configs → dist/configs}/_common/.prettierignore +0 -0
- /package/{configs → dist/configs}/_common/.prettierrc.js +0 -0
- /package/{configs → dist/configs}/_common/.vscode/extensions.json +0 -0
- /package/{configs → dist/configs}/_common/.vscode/react.code-snippets +0 -0
- /package/{configs → dist/configs}/_common/.vscode/settings.json +0 -0
- /package/{configs → dist/configs}/_common/commitlint.config.js +0 -0
- /package/{configs → dist/configs}/_common/package.json.template +0 -0
- /package/{configs → dist/configs}/node-lib/eslint.config.js +0 -0
- /package/{configs → dist/configs}/react-app/eslint.config.js +0 -0
- /package/{templates → dist/templates}/node-lib/__tests__/readJson.test.ts +0 -0
- /package/{templates → dist/templates}/node-lib/bin/test.js +0 -0
- /package/{templates → dist/templates}/node-lib/rollup.config.js +0 -0
- /package/{templates → dist/templates}/node-lib/src/index.ts +0 -0
- /package/{templates → dist/templates}/node-lib/src/readJson.ts +0 -0
- /package/{templates → dist/templates}/node-lib/tsconfig.json +0 -0
- /package/{templates → dist/templates}/pack-app/README.md +0 -0
- /package/{templates → dist/templates}/pack-app/eslint.config.js +0 -0
- /package/{templates → dist/templates}/pack-app/fe-config.json +0 -0
- /package/{templates → dist/templates}/pack-app/package.json +0 -0
- /package/{templates → dist/templates}/pack-app/pnpm-workspace.yaml +0 -0
- /package/{templates → dist/templates}/pack-app/tsconfig.json +0 -0
- /package/{templates → dist/templates}/pack-app/tsconfig.test.json +0 -0
- /package/{templates → dist/templates}/pack-app/vite.config.ts +0 -0
- /package/{templates → dist/templates}/react-app/.env.template +0 -0
- /package/{templates → dist/templates}/react-app/config/common.ts +0 -0
- /package/{templates → dist/templates}/react-app/config/i18n.ts +0 -0
- /package/{templates → dist/templates}/react-app/index.html +0 -0
- /package/{templates → dist/templates}/react-app/postcss.config.js +0 -0
- /package/{templates → dist/templates}/react-app/public/logo.svg +0 -0
- /package/{templates → dist/templates}/react-app/public/router-root/logo.svg +0 -0
- /package/{templates → dist/templates}/react-app/src/assets/react.svg +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/AiApi.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApi.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiAdapter.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiBootstarp.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/feApi/FeApiType.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiAdapter.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/apis/userApi/UserApiBootstarp.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/cases/AppError.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/cases/DialogHandler.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/cases/PublicAssetsPath.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/cases/RequestLogger.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/cases/RequestStatusCatcher.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/port/ApiTransactionInterface.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/port/InteractionHubInterface.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/port/RequestCatcherInterface.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/port/UIDependenciesInterface.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/types/deprecated-antd.d.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/base/types/global.d.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/core/bootstraps/BootstrapApp.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/core/bootstraps/PrintBootstrap.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/core/registers/index.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/main.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/pages/base/RedirectPathname.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/_default.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/dark.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/index.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/no-context.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/antd-themes/pink.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/index.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/page.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/tailwind.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/themes/_default.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/themes/dark.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/themes/index.css +0 -0
- /package/{templates → dist/templates}/react-app/src/styles/css/themes/pink.css +0 -0
- /package/{templates/react-app/src/pages/base → dist/templates/react-app/src/uikit}/components/BaseHeader.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/components/LanguageSwitcher.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/components/Loading.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/components/LocaleLink.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/components/RouterRenderComponent.tsx +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/hooks/useDocumentTitle.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/uikit/hooks/useStrictEffect.ts +0 -0
- /package/{templates → dist/templates}/react-app/src/vite-env.d.ts +0 -0
- /package/{templates → dist/templates}/react-app/tailwind.config.js +0 -0
- /package/{templates → dist/templates}/react-app/tsconfig.app.json +0 -0
- /package/{templates → dist/templates}/react-app/tsconfig.json +0 -0
- /package/{templates → dist/templates}/react-app/tsconfig.node.json +0 -0
package/dist/index.js
CHANGED
|
@@ -1,2419 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { dirname, join } from 'path';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import { oraPromise } from 'ora';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
17
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
-
};
|
|
19
|
-
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
-
for (let key of __getOwnPropNames(from))
|
|
22
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
-
}
|
|
25
|
-
return to;
|
|
26
|
-
};
|
|
27
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
33
|
-
mod
|
|
34
|
-
));
|
|
35
|
-
|
|
36
|
-
// ../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js
|
|
37
|
-
var require_ignore = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js"(exports, module) {
|
|
39
|
-
function makeArray(subject) {
|
|
40
|
-
return Array.isArray(subject) ? subject : [subject];
|
|
41
|
-
}
|
|
42
|
-
var UNDEFINED = void 0;
|
|
43
|
-
var EMPTY = "";
|
|
44
|
-
var SPACE = " ";
|
|
45
|
-
var ESCAPE = "\\";
|
|
46
|
-
var REGEX_TEST_BLANK_LINE = /^\s+$/;
|
|
47
|
-
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
48
|
-
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
49
|
-
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
50
|
-
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
51
|
-
var REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/;
|
|
52
|
-
var REGEX_TEST_TRAILING_SLASH = /\/$/;
|
|
53
|
-
var SLASH = "/";
|
|
54
|
-
var TMP_KEY_IGNORE = "node-ignore";
|
|
55
|
-
if (typeof Symbol !== "undefined") {
|
|
56
|
-
TMP_KEY_IGNORE = Symbol.for("node-ignore");
|
|
57
|
-
}
|
|
58
|
-
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
59
|
-
var define = (object, key, value) => {
|
|
60
|
-
Object.defineProperty(object, key, { value });
|
|
61
|
-
return value;
|
|
62
|
-
};
|
|
63
|
-
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
64
|
-
var RETURN_FALSE = () => false;
|
|
65
|
-
var sanitizeRange = (range) => range.replace(
|
|
66
|
-
REGEX_REGEXP_RANGE,
|
|
67
|
-
(match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY
|
|
68
|
-
);
|
|
69
|
-
var cleanRangeBackSlash = (slashes) => {
|
|
70
|
-
const { length } = slashes;
|
|
71
|
-
return slashes.slice(0, length - length % 2);
|
|
72
|
-
};
|
|
73
|
-
var REPLACERS = [
|
|
74
|
-
[
|
|
75
|
-
// Remove BOM
|
|
76
|
-
// TODO:
|
|
77
|
-
// Other similar zero-width characters?
|
|
78
|
-
/^\uFEFF/,
|
|
79
|
-
() => EMPTY
|
|
80
|
-
],
|
|
81
|
-
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
82
|
-
[
|
|
83
|
-
// (a\ ) -> (a )
|
|
84
|
-
// (a ) -> (a)
|
|
85
|
-
// (a ) -> (a)
|
|
86
|
-
// (a \ ) -> (a )
|
|
87
|
-
/((?:\\\\)*?)(\\?\s+)$/,
|
|
88
|
-
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
89
|
-
],
|
|
90
|
-
// Replace (\ ) with ' '
|
|
91
|
-
// (\ ) -> ' '
|
|
92
|
-
// (\\ ) -> '\\ '
|
|
93
|
-
// (\\\ ) -> '\\ '
|
|
94
|
-
[
|
|
95
|
-
/(\\+?)\s/g,
|
|
96
|
-
(_, m1) => {
|
|
97
|
-
const { length } = m1;
|
|
98
|
-
return m1.slice(0, length - length % 2) + SPACE;
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
// Escape metacharacters
|
|
102
|
-
// which is written down by users but means special for regular expressions.
|
|
103
|
-
// > There are 12 characters with special meanings:
|
|
104
|
-
// > - the backslash \,
|
|
105
|
-
// > - the caret ^,
|
|
106
|
-
// > - the dollar sign $,
|
|
107
|
-
// > - the period or dot .,
|
|
108
|
-
// > - the vertical bar or pipe symbol |,
|
|
109
|
-
// > - the question mark ?,
|
|
110
|
-
// > - the asterisk or star *,
|
|
111
|
-
// > - the plus sign +,
|
|
112
|
-
// > - the opening parenthesis (,
|
|
113
|
-
// > - the closing parenthesis ),
|
|
114
|
-
// > - and the opening square bracket [,
|
|
115
|
-
// > - the opening curly brace {,
|
|
116
|
-
// > These special characters are often called "metacharacters".
|
|
117
|
-
[
|
|
118
|
-
/[\\$.|*+(){^]/g,
|
|
119
|
-
(match) => `\\${match}`
|
|
120
|
-
],
|
|
121
|
-
[
|
|
122
|
-
// > a question mark (?) matches a single character
|
|
123
|
-
/(?!\\)\?/g,
|
|
124
|
-
() => "[^/]"
|
|
125
|
-
],
|
|
126
|
-
// leading slash
|
|
127
|
-
[
|
|
128
|
-
// > A leading slash matches the beginning of the pathname.
|
|
129
|
-
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
130
|
-
// A leading slash matches the beginning of the pathname
|
|
131
|
-
/^\//,
|
|
132
|
-
() => "^"
|
|
133
|
-
],
|
|
134
|
-
// replace special metacharacter slash after the leading slash
|
|
135
|
-
[
|
|
136
|
-
/\//g,
|
|
137
|
-
() => "\\/"
|
|
138
|
-
],
|
|
139
|
-
[
|
|
140
|
-
// > A leading "**" followed by a slash means match in all directories.
|
|
141
|
-
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
142
|
-
// > the same as pattern "foo".
|
|
143
|
-
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
144
|
-
// > under directory "foo".
|
|
145
|
-
// Notice that the '*'s have been replaced as '\\*'
|
|
146
|
-
/^\^*\\\*\\\*\\\//,
|
|
147
|
-
// '**/foo' <-> 'foo'
|
|
148
|
-
() => "^(?:.*\\/)?"
|
|
149
|
-
],
|
|
150
|
-
// starting
|
|
151
|
-
[
|
|
152
|
-
// there will be no leading '/'
|
|
153
|
-
// (which has been replaced by section "leading slash")
|
|
154
|
-
// If starts with '**', adding a '^' to the regular expression also works
|
|
155
|
-
/^(?=[^^])/,
|
|
156
|
-
function startingReplacer() {
|
|
157
|
-
return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
// two globstars
|
|
161
|
-
[
|
|
162
|
-
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
163
|
-
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
164
|
-
// Zero, one or several directories
|
|
165
|
-
// should not use '*', or it will be replaced by the next replacer
|
|
166
|
-
// Check if it is not the last `'/**'`
|
|
167
|
-
(_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
168
|
-
],
|
|
169
|
-
// normal intermediate wildcards
|
|
170
|
-
[
|
|
171
|
-
// Never replace escaped '*'
|
|
172
|
-
// ignore rule '\*' will match the path '*'
|
|
173
|
-
// 'abc.*/' -> go
|
|
174
|
-
// 'abc.*' -> skip this rule,
|
|
175
|
-
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
176
|
-
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
177
|
-
// '*.js' matches '.js'
|
|
178
|
-
// '*.js' doesn't match 'abc'
|
|
179
|
-
(_, p1, p2) => {
|
|
180
|
-
const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
181
|
-
return p1 + unescaped;
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
[
|
|
185
|
-
// unescape, revert step 3 except for back slash
|
|
186
|
-
// For example, if a user escape a '\\*',
|
|
187
|
-
// after step 3, the result will be '\\\\\\*'
|
|
188
|
-
/\\\\\\(?=[$.|*+(){^])/g,
|
|
189
|
-
() => ESCAPE
|
|
190
|
-
],
|
|
191
|
-
[
|
|
192
|
-
// '\\\\' -> '\\'
|
|
193
|
-
/\\\\/g,
|
|
194
|
-
() => ESCAPE
|
|
195
|
-
],
|
|
196
|
-
[
|
|
197
|
-
// > The range notation, e.g. [a-zA-Z],
|
|
198
|
-
// > can be used to match one of the characters in a range.
|
|
199
|
-
// `\` is escaped by step 3
|
|
200
|
-
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
201
|
-
(match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
202
|
-
],
|
|
203
|
-
// ending
|
|
204
|
-
[
|
|
205
|
-
// 'js' will not match 'js.'
|
|
206
|
-
// 'ab' will not match 'abc'
|
|
207
|
-
/(?:[^*])$/,
|
|
208
|
-
// WTF!
|
|
209
|
-
// https://git-scm.com/docs/gitignore
|
|
210
|
-
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
211
|
-
// which re-fixes #24, #38
|
|
212
|
-
// > If there is a separator at the end of the pattern then the pattern
|
|
213
|
-
// > will only match directories, otherwise the pattern can match both
|
|
214
|
-
// > files and directories.
|
|
215
|
-
// 'js*' will not match 'a.js'
|
|
216
|
-
// 'js/' will not match 'a.js'
|
|
217
|
-
// 'js' will match 'a.js' and 'a.js/'
|
|
218
|
-
(match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
|
|
219
|
-
]
|
|
220
|
-
];
|
|
221
|
-
var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
|
|
222
|
-
var MODE_IGNORE = "regex";
|
|
223
|
-
var MODE_CHECK_IGNORE = "checkRegex";
|
|
224
|
-
var UNDERSCORE = "_";
|
|
225
|
-
var TRAILING_WILD_CARD_REPLACERS = {
|
|
226
|
-
[MODE_IGNORE](_, p1) {
|
|
227
|
-
const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
|
|
228
|
-
return `${prefix}(?=$|\\/$)`;
|
|
229
|
-
},
|
|
230
|
-
[MODE_CHECK_IGNORE](_, p1) {
|
|
231
|
-
const prefix = p1 ? `${p1}[^/]*` : "[^/]*";
|
|
232
|
-
return `${prefix}(?=$|\\/$)`;
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
var makeRegexPrefix = (pattern) => REPLACERS.reduce(
|
|
236
|
-
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
237
|
-
pattern
|
|
238
|
-
);
|
|
239
|
-
var isString = (subject) => typeof subject === "string";
|
|
240
|
-
var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
241
|
-
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
242
|
-
var IgnoreRule = class {
|
|
243
|
-
constructor(pattern, mark, body, ignoreCase, negative, prefix) {
|
|
244
|
-
this.pattern = pattern;
|
|
245
|
-
this.mark = mark;
|
|
246
|
-
this.negative = negative;
|
|
247
|
-
define(this, "body", body);
|
|
248
|
-
define(this, "ignoreCase", ignoreCase);
|
|
249
|
-
define(this, "regexPrefix", prefix);
|
|
250
|
-
}
|
|
251
|
-
get regex() {
|
|
252
|
-
const key = UNDERSCORE + MODE_IGNORE;
|
|
253
|
-
if (this[key]) {
|
|
254
|
-
return this[key];
|
|
255
|
-
}
|
|
256
|
-
return this._make(MODE_IGNORE, key);
|
|
257
|
-
}
|
|
258
|
-
get checkRegex() {
|
|
259
|
-
const key = UNDERSCORE + MODE_CHECK_IGNORE;
|
|
260
|
-
if (this[key]) {
|
|
261
|
-
return this[key];
|
|
262
|
-
}
|
|
263
|
-
return this._make(MODE_CHECK_IGNORE, key);
|
|
264
|
-
}
|
|
265
|
-
_make(mode, key) {
|
|
266
|
-
const str = this.regexPrefix.replace(
|
|
267
|
-
REGEX_REPLACE_TRAILING_WILDCARD,
|
|
268
|
-
// It does not need to bind pattern
|
|
269
|
-
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
270
|
-
);
|
|
271
|
-
const regex = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
|
|
272
|
-
return define(this, key, regex);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
var createRule = ({
|
|
276
|
-
pattern,
|
|
277
|
-
mark
|
|
278
|
-
}, ignoreCase) => {
|
|
279
|
-
let negative = false;
|
|
280
|
-
let body = pattern;
|
|
281
|
-
if (body.indexOf("!") === 0) {
|
|
282
|
-
negative = true;
|
|
283
|
-
body = body.substr(1);
|
|
284
|
-
}
|
|
285
|
-
body = body.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
286
|
-
const regexPrefix = makeRegexPrefix(body);
|
|
287
|
-
return new IgnoreRule(
|
|
288
|
-
pattern,
|
|
289
|
-
mark,
|
|
290
|
-
body,
|
|
291
|
-
ignoreCase,
|
|
292
|
-
negative,
|
|
293
|
-
regexPrefix
|
|
294
|
-
);
|
|
295
|
-
};
|
|
296
|
-
var RuleManager = class {
|
|
297
|
-
constructor(ignoreCase) {
|
|
298
|
-
this._ignoreCase = ignoreCase;
|
|
299
|
-
this._rules = [];
|
|
300
|
-
}
|
|
301
|
-
_add(pattern) {
|
|
302
|
-
if (pattern && pattern[KEY_IGNORE]) {
|
|
303
|
-
this._rules = this._rules.concat(pattern._rules._rules);
|
|
304
|
-
this._added = true;
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
if (isString(pattern)) {
|
|
308
|
-
pattern = {
|
|
309
|
-
pattern
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
if (checkPattern(pattern.pattern)) {
|
|
313
|
-
const rule = createRule(pattern, this._ignoreCase);
|
|
314
|
-
this._added = true;
|
|
315
|
-
this._rules.push(rule);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
// @param {Array<string> | string | Ignore} pattern
|
|
319
|
-
add(pattern) {
|
|
320
|
-
this._added = false;
|
|
321
|
-
makeArray(
|
|
322
|
-
isString(pattern) ? splitPattern(pattern) : pattern
|
|
323
|
-
).forEach(this._add, this);
|
|
324
|
-
return this._added;
|
|
325
|
-
}
|
|
326
|
-
// Test one single path without recursively checking parent directories
|
|
327
|
-
//
|
|
328
|
-
// - checkUnignored `boolean` whether should check if the path is unignored,
|
|
329
|
-
// setting `checkUnignored` to `false` could reduce additional
|
|
330
|
-
// path matching.
|
|
331
|
-
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
|
|
332
|
-
// @returns {TestResult} true if a file is ignored
|
|
333
|
-
test(path, checkUnignored, mode) {
|
|
334
|
-
let ignored = false;
|
|
335
|
-
let unignored = false;
|
|
336
|
-
let matchedRule;
|
|
337
|
-
this._rules.forEach((rule) => {
|
|
338
|
-
const { negative } = rule;
|
|
339
|
-
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
const matched = rule[mode].test(path);
|
|
343
|
-
if (!matched) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
ignored = !negative;
|
|
347
|
-
unignored = negative;
|
|
348
|
-
matchedRule = negative ? UNDEFINED : rule;
|
|
349
|
-
});
|
|
350
|
-
const ret = {
|
|
351
|
-
ignored,
|
|
352
|
-
unignored
|
|
353
|
-
};
|
|
354
|
-
if (matchedRule) {
|
|
355
|
-
ret.rule = matchedRule;
|
|
356
|
-
}
|
|
357
|
-
return ret;
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
var throwError = (message, Ctor) => {
|
|
361
|
-
throw new Ctor(message);
|
|
362
|
-
};
|
|
363
|
-
var checkPath = (path, originalPath, doThrow) => {
|
|
364
|
-
if (!isString(path)) {
|
|
365
|
-
return doThrow(
|
|
366
|
-
`path must be a string, but got \`${originalPath}\``,
|
|
367
|
-
TypeError
|
|
368
|
-
);
|
|
369
|
-
}
|
|
370
|
-
if (!path) {
|
|
371
|
-
return doThrow(`path must not be empty`, TypeError);
|
|
372
|
-
}
|
|
373
|
-
if (checkPath.isNotRelative(path)) {
|
|
374
|
-
const r = "`path.relative()`d";
|
|
375
|
-
return doThrow(
|
|
376
|
-
`path should be a ${r} string, but got "${originalPath}"`,
|
|
377
|
-
RangeError
|
|
378
|
-
);
|
|
379
|
-
}
|
|
380
|
-
return true;
|
|
381
|
-
};
|
|
382
|
-
var isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
|
|
383
|
-
checkPath.isNotRelative = isNotRelative;
|
|
384
|
-
checkPath.convert = (p) => p;
|
|
385
|
-
var Ignore = class {
|
|
386
|
-
constructor({
|
|
387
|
-
ignorecase = true,
|
|
388
|
-
ignoreCase = ignorecase,
|
|
389
|
-
allowRelativePaths = false
|
|
390
|
-
} = {}) {
|
|
391
|
-
define(this, KEY_IGNORE, true);
|
|
392
|
-
this._rules = new RuleManager(ignoreCase);
|
|
393
|
-
this._strictPathCheck = !allowRelativePaths;
|
|
394
|
-
this._initCache();
|
|
395
|
-
}
|
|
396
|
-
_initCache() {
|
|
397
|
-
this._ignoreCache = /* @__PURE__ */ Object.create(null);
|
|
398
|
-
this._testCache = /* @__PURE__ */ Object.create(null);
|
|
399
|
-
}
|
|
400
|
-
add(pattern) {
|
|
401
|
-
if (this._rules.add(pattern)) {
|
|
402
|
-
this._initCache();
|
|
403
|
-
}
|
|
404
|
-
return this;
|
|
405
|
-
}
|
|
406
|
-
// legacy
|
|
407
|
-
addPattern(pattern) {
|
|
408
|
-
return this.add(pattern);
|
|
409
|
-
}
|
|
410
|
-
// @returns {TestResult}
|
|
411
|
-
_test(originalPath, cache, checkUnignored, slices) {
|
|
412
|
-
const path = originalPath && checkPath.convert(originalPath);
|
|
413
|
-
checkPath(
|
|
414
|
-
path,
|
|
415
|
-
originalPath,
|
|
416
|
-
this._strictPathCheck ? throwError : RETURN_FALSE
|
|
417
|
-
);
|
|
418
|
-
return this._t(path, cache, checkUnignored, slices);
|
|
419
|
-
}
|
|
420
|
-
checkIgnore(path) {
|
|
421
|
-
if (!REGEX_TEST_TRAILING_SLASH.test(path)) {
|
|
422
|
-
return this.test(path);
|
|
423
|
-
}
|
|
424
|
-
const slices = path.split(SLASH).filter(Boolean);
|
|
425
|
-
slices.pop();
|
|
426
|
-
if (slices.length) {
|
|
427
|
-
const parent = this._t(
|
|
428
|
-
slices.join(SLASH) + SLASH,
|
|
429
|
-
this._testCache,
|
|
430
|
-
true,
|
|
431
|
-
slices
|
|
432
|
-
);
|
|
433
|
-
if (parent.ignored) {
|
|
434
|
-
return parent;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
return this._rules.test(path, false, MODE_CHECK_IGNORE);
|
|
438
|
-
}
|
|
439
|
-
_t(path, cache, checkUnignored, slices) {
|
|
440
|
-
if (path in cache) {
|
|
441
|
-
return cache[path];
|
|
442
|
-
}
|
|
443
|
-
if (!slices) {
|
|
444
|
-
slices = path.split(SLASH).filter(Boolean);
|
|
445
|
-
}
|
|
446
|
-
slices.pop();
|
|
447
|
-
if (!slices.length) {
|
|
448
|
-
return cache[path] = this._rules.test(path, checkUnignored, MODE_IGNORE);
|
|
449
|
-
}
|
|
450
|
-
const parent = this._t(
|
|
451
|
-
slices.join(SLASH) + SLASH,
|
|
452
|
-
cache,
|
|
453
|
-
checkUnignored,
|
|
454
|
-
slices
|
|
455
|
-
);
|
|
456
|
-
return cache[path] = parent.ignored ? parent : this._rules.test(path, checkUnignored, MODE_IGNORE);
|
|
457
|
-
}
|
|
458
|
-
ignores(path) {
|
|
459
|
-
return this._test(path, this._ignoreCache, false).ignored;
|
|
460
|
-
}
|
|
461
|
-
createFilter() {
|
|
462
|
-
return (path) => !this.ignores(path);
|
|
463
|
-
}
|
|
464
|
-
filter(paths) {
|
|
465
|
-
return makeArray(paths).filter(this.createFilter());
|
|
466
|
-
}
|
|
467
|
-
// @returns {TestResult}
|
|
468
|
-
test(path) {
|
|
469
|
-
return this._test(path, this._testCache, true);
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
var factory = (options) => new Ignore(options);
|
|
473
|
-
var isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
|
|
474
|
-
if (
|
|
475
|
-
// Detect `process` so that it can run in browsers.
|
|
476
|
-
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
477
|
-
) {
|
|
478
|
-
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
479
|
-
checkPath.convert = makePosix;
|
|
480
|
-
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
481
|
-
checkPath.isNotRelative = (path) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
482
|
-
}
|
|
483
|
-
module.exports = factory;
|
|
484
|
-
factory.default = factory;
|
|
485
|
-
module.exports.isPathValid = isPathValid;
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
|
|
490
|
-
var require_listCacheClear = __commonJS({
|
|
491
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports, module) {
|
|
492
|
-
function listCacheClear() {
|
|
493
|
-
this.__data__ = [];
|
|
494
|
-
this.size = 0;
|
|
495
|
-
}
|
|
496
|
-
module.exports = listCacheClear;
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
|
|
500
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
|
|
501
|
-
var require_eq = __commonJS({
|
|
502
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports, module) {
|
|
503
|
-
function eq(value, other) {
|
|
504
|
-
return value === other || value !== value && other !== other;
|
|
505
|
-
}
|
|
506
|
-
module.exports = eq;
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
|
|
511
|
-
var require_assocIndexOf = __commonJS({
|
|
512
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports, module) {
|
|
513
|
-
var eq = require_eq();
|
|
514
|
-
function assocIndexOf(array, key) {
|
|
515
|
-
var length = array.length;
|
|
516
|
-
while (length--) {
|
|
517
|
-
if (eq(array[length][0], key)) {
|
|
518
|
-
return length;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
return -1;
|
|
522
|
-
}
|
|
523
|
-
module.exports = assocIndexOf;
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
|
|
527
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
|
|
528
|
-
var require_listCacheDelete = __commonJS({
|
|
529
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports, module) {
|
|
530
|
-
var assocIndexOf = require_assocIndexOf();
|
|
531
|
-
var arrayProto = Array.prototype;
|
|
532
|
-
var splice = arrayProto.splice;
|
|
533
|
-
function listCacheDelete(key) {
|
|
534
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
535
|
-
if (index < 0) {
|
|
536
|
-
return false;
|
|
537
|
-
}
|
|
538
|
-
var lastIndex = data.length - 1;
|
|
539
|
-
if (index == lastIndex) {
|
|
540
|
-
data.pop();
|
|
541
|
-
} else {
|
|
542
|
-
splice.call(data, index, 1);
|
|
543
|
-
}
|
|
544
|
-
--this.size;
|
|
545
|
-
return true;
|
|
546
|
-
}
|
|
547
|
-
module.exports = listCacheDelete;
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
|
|
551
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
|
|
552
|
-
var require_listCacheGet = __commonJS({
|
|
553
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports, module) {
|
|
554
|
-
var assocIndexOf = require_assocIndexOf();
|
|
555
|
-
function listCacheGet(key) {
|
|
556
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
557
|
-
return index < 0 ? void 0 : data[index][1];
|
|
558
|
-
}
|
|
559
|
-
module.exports = listCacheGet;
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
|
|
563
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
|
|
564
|
-
var require_listCacheHas = __commonJS({
|
|
565
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports, module) {
|
|
566
|
-
var assocIndexOf = require_assocIndexOf();
|
|
567
|
-
function listCacheHas(key) {
|
|
568
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
569
|
-
}
|
|
570
|
-
module.exports = listCacheHas;
|
|
571
|
-
}
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
|
|
575
|
-
var require_listCacheSet = __commonJS({
|
|
576
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports, module) {
|
|
577
|
-
var assocIndexOf = require_assocIndexOf();
|
|
578
|
-
function listCacheSet(key, value) {
|
|
579
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
580
|
-
if (index < 0) {
|
|
581
|
-
++this.size;
|
|
582
|
-
data.push([key, value]);
|
|
583
|
-
} else {
|
|
584
|
-
data[index][1] = value;
|
|
585
|
-
}
|
|
586
|
-
return this;
|
|
587
|
-
}
|
|
588
|
-
module.exports = listCacheSet;
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
|
|
593
|
-
var require_ListCache = __commonJS({
|
|
594
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports, module) {
|
|
595
|
-
var listCacheClear = require_listCacheClear();
|
|
596
|
-
var listCacheDelete = require_listCacheDelete();
|
|
597
|
-
var listCacheGet = require_listCacheGet();
|
|
598
|
-
var listCacheHas = require_listCacheHas();
|
|
599
|
-
var listCacheSet = require_listCacheSet();
|
|
600
|
-
function ListCache(entries) {
|
|
601
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
602
|
-
this.clear();
|
|
603
|
-
while (++index < length) {
|
|
604
|
-
var entry = entries[index];
|
|
605
|
-
this.set(entry[0], entry[1]);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
ListCache.prototype.clear = listCacheClear;
|
|
609
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
610
|
-
ListCache.prototype.get = listCacheGet;
|
|
611
|
-
ListCache.prototype.has = listCacheHas;
|
|
612
|
-
ListCache.prototype.set = listCacheSet;
|
|
613
|
-
module.exports = ListCache;
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
|
|
617
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
|
|
618
|
-
var require_stackClear = __commonJS({
|
|
619
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
|
|
620
|
-
var ListCache = require_ListCache();
|
|
621
|
-
function stackClear() {
|
|
622
|
-
this.__data__ = new ListCache();
|
|
623
|
-
this.size = 0;
|
|
624
|
-
}
|
|
625
|
-
module.exports = stackClear;
|
|
626
|
-
}
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
|
|
630
|
-
var require_stackDelete = __commonJS({
|
|
631
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
|
|
632
|
-
function stackDelete(key) {
|
|
633
|
-
var data = this.__data__, result = data["delete"](key);
|
|
634
|
-
this.size = data.size;
|
|
635
|
-
return result;
|
|
636
|
-
}
|
|
637
|
-
module.exports = stackDelete;
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
|
|
641
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
|
|
642
|
-
var require_stackGet = __commonJS({
|
|
643
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
|
|
644
|
-
function stackGet(key) {
|
|
645
|
-
return this.__data__.get(key);
|
|
646
|
-
}
|
|
647
|
-
module.exports = stackGet;
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
|
|
651
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
|
|
652
|
-
var require_stackHas = __commonJS({
|
|
653
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
|
|
654
|
-
function stackHas(key) {
|
|
655
|
-
return this.__data__.has(key);
|
|
656
|
-
}
|
|
657
|
-
module.exports = stackHas;
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
|
|
661
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js
|
|
662
|
-
var require_freeGlobal = __commonJS({
|
|
663
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
664
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
665
|
-
module.exports = freeGlobal;
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
|
|
669
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js
|
|
670
|
-
var require_root = __commonJS({
|
|
671
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports, module) {
|
|
672
|
-
var freeGlobal = require_freeGlobal();
|
|
673
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
674
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
675
|
-
module.exports = root;
|
|
676
|
-
}
|
|
677
|
-
});
|
|
678
|
-
|
|
679
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js
|
|
680
|
-
var require_Symbol = __commonJS({
|
|
681
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports, module) {
|
|
682
|
-
var root = require_root();
|
|
683
|
-
var Symbol2 = root.Symbol;
|
|
684
|
-
module.exports = Symbol2;
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js
|
|
689
|
-
var require_getRawTag = __commonJS({
|
|
690
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
691
|
-
var Symbol2 = require_Symbol();
|
|
692
|
-
var objectProto = Object.prototype;
|
|
693
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
694
|
-
var nativeObjectToString = objectProto.toString;
|
|
695
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
696
|
-
function getRawTag(value) {
|
|
697
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
698
|
-
try {
|
|
699
|
-
value[symToStringTag] = void 0;
|
|
700
|
-
var unmasked = true;
|
|
701
|
-
} catch (e) {
|
|
702
|
-
}
|
|
703
|
-
var result = nativeObjectToString.call(value);
|
|
704
|
-
if (unmasked) {
|
|
705
|
-
if (isOwn) {
|
|
706
|
-
value[symToStringTag] = tag;
|
|
707
|
-
} else {
|
|
708
|
-
delete value[symToStringTag];
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
return result;
|
|
712
|
-
}
|
|
713
|
-
module.exports = getRawTag;
|
|
714
|
-
}
|
|
715
|
-
});
|
|
716
|
-
|
|
717
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js
|
|
718
|
-
var require_objectToString = __commonJS({
|
|
719
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports, module) {
|
|
720
|
-
var objectProto = Object.prototype;
|
|
721
|
-
var nativeObjectToString = objectProto.toString;
|
|
722
|
-
function objectToString(value) {
|
|
723
|
-
return nativeObjectToString.call(value);
|
|
724
|
-
}
|
|
725
|
-
module.exports = objectToString;
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js
|
|
730
|
-
var require_baseGetTag = __commonJS({
|
|
731
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
732
|
-
var Symbol2 = require_Symbol();
|
|
733
|
-
var getRawTag = require_getRawTag();
|
|
734
|
-
var objectToString = require_objectToString();
|
|
735
|
-
var nullTag = "[object Null]";
|
|
736
|
-
var undefinedTag = "[object Undefined]";
|
|
737
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
738
|
-
function baseGetTag(value) {
|
|
739
|
-
if (value == null) {
|
|
740
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
741
|
-
}
|
|
742
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
743
|
-
}
|
|
744
|
-
module.exports = baseGetTag;
|
|
745
|
-
}
|
|
746
|
-
});
|
|
747
|
-
|
|
748
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js
|
|
749
|
-
var require_isObject = __commonJS({
|
|
750
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(exports, module) {
|
|
751
|
-
function isObject(value) {
|
|
752
|
-
var type = typeof value;
|
|
753
|
-
return value != null && (type == "object" || type == "function");
|
|
754
|
-
}
|
|
755
|
-
module.exports = isObject;
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
|
-
|
|
759
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js
|
|
760
|
-
var require_isFunction = __commonJS({
|
|
761
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"(exports, module) {
|
|
762
|
-
var baseGetTag = require_baseGetTag();
|
|
763
|
-
var isObject = require_isObject();
|
|
764
|
-
var asyncTag = "[object AsyncFunction]";
|
|
765
|
-
var funcTag = "[object Function]";
|
|
766
|
-
var genTag = "[object GeneratorFunction]";
|
|
767
|
-
var proxyTag = "[object Proxy]";
|
|
768
|
-
function isFunction(value) {
|
|
769
|
-
if (!isObject(value)) {
|
|
770
|
-
return false;
|
|
771
|
-
}
|
|
772
|
-
var tag = baseGetTag(value);
|
|
773
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
774
|
-
}
|
|
775
|
-
module.exports = isFunction;
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js
|
|
780
|
-
var require_coreJsData = __commonJS({
|
|
781
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"(exports, module) {
|
|
782
|
-
var root = require_root();
|
|
783
|
-
var coreJsData = root["__core-js_shared__"];
|
|
784
|
-
module.exports = coreJsData;
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js
|
|
789
|
-
var require_isMasked = __commonJS({
|
|
790
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"(exports, module) {
|
|
791
|
-
var coreJsData = require_coreJsData();
|
|
792
|
-
var maskSrcKey = function() {
|
|
793
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
794
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
795
|
-
}();
|
|
796
|
-
function isMasked(func) {
|
|
797
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
798
|
-
}
|
|
799
|
-
module.exports = isMasked;
|
|
800
|
-
}
|
|
801
|
-
});
|
|
802
|
-
|
|
803
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js
|
|
804
|
-
var require_toSource = __commonJS({
|
|
805
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"(exports, module) {
|
|
806
|
-
var funcProto = Function.prototype;
|
|
807
|
-
var funcToString = funcProto.toString;
|
|
808
|
-
function toSource(func) {
|
|
809
|
-
if (func != null) {
|
|
810
|
-
try {
|
|
811
|
-
return funcToString.call(func);
|
|
812
|
-
} catch (e) {
|
|
813
|
-
}
|
|
814
|
-
try {
|
|
815
|
-
return func + "";
|
|
816
|
-
} catch (e) {
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
return "";
|
|
820
|
-
}
|
|
821
|
-
module.exports = toSource;
|
|
822
|
-
}
|
|
823
|
-
});
|
|
824
|
-
|
|
825
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js
|
|
826
|
-
var require_baseIsNative = __commonJS({
|
|
827
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"(exports, module) {
|
|
828
|
-
var isFunction = require_isFunction();
|
|
829
|
-
var isMasked = require_isMasked();
|
|
830
|
-
var isObject = require_isObject();
|
|
831
|
-
var toSource = require_toSource();
|
|
832
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
833
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
834
|
-
var funcProto = Function.prototype;
|
|
835
|
-
var objectProto = Object.prototype;
|
|
836
|
-
var funcToString = funcProto.toString;
|
|
837
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
838
|
-
var reIsNative = RegExp(
|
|
839
|
-
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
840
|
-
);
|
|
841
|
-
function baseIsNative(value) {
|
|
842
|
-
if (!isObject(value) || isMasked(value)) {
|
|
843
|
-
return false;
|
|
844
|
-
}
|
|
845
|
-
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
846
|
-
return pattern.test(toSource(value));
|
|
847
|
-
}
|
|
848
|
-
module.exports = baseIsNative;
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
|
|
852
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js
|
|
853
|
-
var require_getValue = __commonJS({
|
|
854
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js"(exports, module) {
|
|
855
|
-
function getValue(object, key) {
|
|
856
|
-
return object == null ? void 0 : object[key];
|
|
857
|
-
}
|
|
858
|
-
module.exports = getValue;
|
|
859
|
-
}
|
|
860
|
-
});
|
|
861
|
-
|
|
862
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js
|
|
863
|
-
var require_getNative = __commonJS({
|
|
864
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"(exports, module) {
|
|
865
|
-
var baseIsNative = require_baseIsNative();
|
|
866
|
-
var getValue = require_getValue();
|
|
867
|
-
function getNative(object, key) {
|
|
868
|
-
var value = getValue(object, key);
|
|
869
|
-
return baseIsNative(value) ? value : void 0;
|
|
870
|
-
}
|
|
871
|
-
module.exports = getNative;
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
|
|
875
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
|
|
876
|
-
var require_Map = __commonJS({
|
|
877
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports, module) {
|
|
878
|
-
var getNative = require_getNative();
|
|
879
|
-
var root = require_root();
|
|
880
|
-
var Map = getNative(root, "Map");
|
|
881
|
-
module.exports = Map;
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js
|
|
886
|
-
var require_nativeCreate = __commonJS({
|
|
887
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(exports, module) {
|
|
888
|
-
var getNative = require_getNative();
|
|
889
|
-
var nativeCreate = getNative(Object, "create");
|
|
890
|
-
module.exports = nativeCreate;
|
|
891
|
-
}
|
|
892
|
-
});
|
|
893
|
-
|
|
894
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js
|
|
895
|
-
var require_hashClear = __commonJS({
|
|
896
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"(exports, module) {
|
|
897
|
-
var nativeCreate = require_nativeCreate();
|
|
898
|
-
function hashClear() {
|
|
899
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
900
|
-
this.size = 0;
|
|
901
|
-
}
|
|
902
|
-
module.exports = hashClear;
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
|
|
906
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js
|
|
907
|
-
var require_hashDelete = __commonJS({
|
|
908
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(exports, module) {
|
|
909
|
-
function hashDelete(key) {
|
|
910
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
911
|
-
this.size -= result ? 1 : 0;
|
|
912
|
-
return result;
|
|
913
|
-
}
|
|
914
|
-
module.exports = hashDelete;
|
|
915
|
-
}
|
|
916
|
-
});
|
|
917
|
-
|
|
918
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js
|
|
919
|
-
var require_hashGet = __commonJS({
|
|
920
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"(exports, module) {
|
|
921
|
-
var nativeCreate = require_nativeCreate();
|
|
922
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
923
|
-
var objectProto = Object.prototype;
|
|
924
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
925
|
-
function hashGet(key) {
|
|
926
|
-
var data = this.__data__;
|
|
927
|
-
if (nativeCreate) {
|
|
928
|
-
var result = data[key];
|
|
929
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
930
|
-
}
|
|
931
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
932
|
-
}
|
|
933
|
-
module.exports = hashGet;
|
|
934
|
-
}
|
|
935
|
-
});
|
|
936
|
-
|
|
937
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js
|
|
938
|
-
var require_hashHas = __commonJS({
|
|
939
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"(exports, module) {
|
|
940
|
-
var nativeCreate = require_nativeCreate();
|
|
941
|
-
var objectProto = Object.prototype;
|
|
942
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
943
|
-
function hashHas(key) {
|
|
944
|
-
var data = this.__data__;
|
|
945
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
946
|
-
}
|
|
947
|
-
module.exports = hashHas;
|
|
948
|
-
}
|
|
949
|
-
});
|
|
950
|
-
|
|
951
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js
|
|
952
|
-
var require_hashSet = __commonJS({
|
|
953
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js"(exports, module) {
|
|
954
|
-
var nativeCreate = require_nativeCreate();
|
|
955
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
956
|
-
function hashSet(key, value) {
|
|
957
|
-
var data = this.__data__;
|
|
958
|
-
this.size += this.has(key) ? 0 : 1;
|
|
959
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
960
|
-
return this;
|
|
961
|
-
}
|
|
962
|
-
module.exports = hashSet;
|
|
963
|
-
}
|
|
964
|
-
});
|
|
965
|
-
|
|
966
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js
|
|
967
|
-
var require_Hash = __commonJS({
|
|
968
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"(exports, module) {
|
|
969
|
-
var hashClear = require_hashClear();
|
|
970
|
-
var hashDelete = require_hashDelete();
|
|
971
|
-
var hashGet = require_hashGet();
|
|
972
|
-
var hashHas = require_hashHas();
|
|
973
|
-
var hashSet = require_hashSet();
|
|
974
|
-
function Hash(entries) {
|
|
975
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
976
|
-
this.clear();
|
|
977
|
-
while (++index < length) {
|
|
978
|
-
var entry = entries[index];
|
|
979
|
-
this.set(entry[0], entry[1]);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
Hash.prototype.clear = hashClear;
|
|
983
|
-
Hash.prototype["delete"] = hashDelete;
|
|
984
|
-
Hash.prototype.get = hashGet;
|
|
985
|
-
Hash.prototype.has = hashHas;
|
|
986
|
-
Hash.prototype.set = hashSet;
|
|
987
|
-
module.exports = Hash;
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
|
|
991
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js
|
|
992
|
-
var require_mapCacheClear = __commonJS({
|
|
993
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports, module) {
|
|
994
|
-
var Hash = require_Hash();
|
|
995
|
-
var ListCache = require_ListCache();
|
|
996
|
-
var Map = require_Map();
|
|
997
|
-
function mapCacheClear() {
|
|
998
|
-
this.size = 0;
|
|
999
|
-
this.__data__ = {
|
|
1000
|
-
"hash": new Hash(),
|
|
1001
|
-
"map": new (Map || ListCache)(),
|
|
1002
|
-
"string": new Hash()
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
module.exports = mapCacheClear;
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
|
|
1009
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js
|
|
1010
|
-
var require_isKeyable = __commonJS({
|
|
1011
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(exports, module) {
|
|
1012
|
-
function isKeyable(value) {
|
|
1013
|
-
var type = typeof value;
|
|
1014
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1015
|
-
}
|
|
1016
|
-
module.exports = isKeyable;
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
|
|
1020
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js
|
|
1021
|
-
var require_getMapData = __commonJS({
|
|
1022
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js"(exports, module) {
|
|
1023
|
-
var isKeyable = require_isKeyable();
|
|
1024
|
-
function getMapData(map, key) {
|
|
1025
|
-
var data = map.__data__;
|
|
1026
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1027
|
-
}
|
|
1028
|
-
module.exports = getMapData;
|
|
1029
|
-
}
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js
|
|
1033
|
-
var require_mapCacheDelete = __commonJS({
|
|
1034
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(exports, module) {
|
|
1035
|
-
var getMapData = require_getMapData();
|
|
1036
|
-
function mapCacheDelete(key) {
|
|
1037
|
-
var result = getMapData(this, key)["delete"](key);
|
|
1038
|
-
this.size -= result ? 1 : 0;
|
|
1039
|
-
return result;
|
|
1040
|
-
}
|
|
1041
|
-
module.exports = mapCacheDelete;
|
|
1042
|
-
}
|
|
1043
|
-
});
|
|
1044
|
-
|
|
1045
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js
|
|
1046
|
-
var require_mapCacheGet = __commonJS({
|
|
1047
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(exports, module) {
|
|
1048
|
-
var getMapData = require_getMapData();
|
|
1049
|
-
function mapCacheGet(key) {
|
|
1050
|
-
return getMapData(this, key).get(key);
|
|
1051
|
-
}
|
|
1052
|
-
module.exports = mapCacheGet;
|
|
1053
|
-
}
|
|
1054
|
-
});
|
|
1055
|
-
|
|
1056
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js
|
|
1057
|
-
var require_mapCacheHas = __commonJS({
|
|
1058
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(exports, module) {
|
|
1059
|
-
var getMapData = require_getMapData();
|
|
1060
|
-
function mapCacheHas(key) {
|
|
1061
|
-
return getMapData(this, key).has(key);
|
|
1062
|
-
}
|
|
1063
|
-
module.exports = mapCacheHas;
|
|
1064
|
-
}
|
|
1065
|
-
});
|
|
1066
|
-
|
|
1067
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js
|
|
1068
|
-
var require_mapCacheSet = __commonJS({
|
|
1069
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(exports, module) {
|
|
1070
|
-
var getMapData = require_getMapData();
|
|
1071
|
-
function mapCacheSet(key, value) {
|
|
1072
|
-
var data = getMapData(this, key), size = data.size;
|
|
1073
|
-
data.set(key, value);
|
|
1074
|
-
this.size += data.size == size ? 0 : 1;
|
|
1075
|
-
return this;
|
|
1076
|
-
}
|
|
1077
|
-
module.exports = mapCacheSet;
|
|
1078
|
-
}
|
|
1079
|
-
});
|
|
1080
|
-
|
|
1081
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js
|
|
1082
|
-
var require_MapCache = __commonJS({
|
|
1083
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"(exports, module) {
|
|
1084
|
-
var mapCacheClear = require_mapCacheClear();
|
|
1085
|
-
var mapCacheDelete = require_mapCacheDelete();
|
|
1086
|
-
var mapCacheGet = require_mapCacheGet();
|
|
1087
|
-
var mapCacheHas = require_mapCacheHas();
|
|
1088
|
-
var mapCacheSet = require_mapCacheSet();
|
|
1089
|
-
function MapCache(entries) {
|
|
1090
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1091
|
-
this.clear();
|
|
1092
|
-
while (++index < length) {
|
|
1093
|
-
var entry = entries[index];
|
|
1094
|
-
this.set(entry[0], entry[1]);
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
1098
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1099
|
-
MapCache.prototype.get = mapCacheGet;
|
|
1100
|
-
MapCache.prototype.has = mapCacheHas;
|
|
1101
|
-
MapCache.prototype.set = mapCacheSet;
|
|
1102
|
-
module.exports = MapCache;
|
|
1103
|
-
}
|
|
1104
|
-
});
|
|
1105
|
-
|
|
1106
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
|
|
1107
|
-
var require_stackSet = __commonJS({
|
|
1108
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) {
|
|
1109
|
-
var ListCache = require_ListCache();
|
|
1110
|
-
var Map = require_Map();
|
|
1111
|
-
var MapCache = require_MapCache();
|
|
1112
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1113
|
-
function stackSet(key, value) {
|
|
1114
|
-
var data = this.__data__;
|
|
1115
|
-
if (data instanceof ListCache) {
|
|
1116
|
-
var pairs = data.__data__;
|
|
1117
|
-
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1118
|
-
pairs.push([key, value]);
|
|
1119
|
-
this.size = ++data.size;
|
|
1120
|
-
return this;
|
|
1121
|
-
}
|
|
1122
|
-
data = this.__data__ = new MapCache(pairs);
|
|
1123
|
-
}
|
|
1124
|
-
data.set(key, value);
|
|
1125
|
-
this.size = data.size;
|
|
1126
|
-
return this;
|
|
1127
|
-
}
|
|
1128
|
-
module.exports = stackSet;
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
|
|
1132
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
|
|
1133
|
-
var require_Stack = __commonJS({
|
|
1134
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) {
|
|
1135
|
-
var ListCache = require_ListCache();
|
|
1136
|
-
var stackClear = require_stackClear();
|
|
1137
|
-
var stackDelete = require_stackDelete();
|
|
1138
|
-
var stackGet = require_stackGet();
|
|
1139
|
-
var stackHas = require_stackHas();
|
|
1140
|
-
var stackSet = require_stackSet();
|
|
1141
|
-
function Stack(entries) {
|
|
1142
|
-
var data = this.__data__ = new ListCache(entries);
|
|
1143
|
-
this.size = data.size;
|
|
1144
|
-
}
|
|
1145
|
-
Stack.prototype.clear = stackClear;
|
|
1146
|
-
Stack.prototype["delete"] = stackDelete;
|
|
1147
|
-
Stack.prototype.get = stackGet;
|
|
1148
|
-
Stack.prototype.has = stackHas;
|
|
1149
|
-
Stack.prototype.set = stackSet;
|
|
1150
|
-
module.exports = Stack;
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
|
|
1154
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
|
|
1155
|
-
var require_defineProperty = __commonJS({
|
|
1156
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(exports, module) {
|
|
1157
|
-
var getNative = require_getNative();
|
|
1158
|
-
var defineProperty = function() {
|
|
1159
|
-
try {
|
|
1160
|
-
var func = getNative(Object, "defineProperty");
|
|
1161
|
-
func({}, "", {});
|
|
1162
|
-
return func;
|
|
1163
|
-
} catch (e) {
|
|
1164
|
-
}
|
|
1165
|
-
}();
|
|
1166
|
-
module.exports = defineProperty;
|
|
1167
|
-
}
|
|
1168
|
-
});
|
|
1169
|
-
|
|
1170
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
|
|
1171
|
-
var require_baseAssignValue = __commonJS({
|
|
1172
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports, module) {
|
|
1173
|
-
var defineProperty = require_defineProperty();
|
|
1174
|
-
function baseAssignValue(object, key, value) {
|
|
1175
|
-
if (key == "__proto__" && defineProperty) {
|
|
1176
|
-
defineProperty(object, key, {
|
|
1177
|
-
"configurable": true,
|
|
1178
|
-
"enumerable": true,
|
|
1179
|
-
"value": value,
|
|
1180
|
-
"writable": true
|
|
1181
|
-
});
|
|
1182
|
-
} else {
|
|
1183
|
-
object[key] = value;
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
module.exports = baseAssignValue;
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
|
-
|
|
1190
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js
|
|
1191
|
-
var require_assignMergeValue = __commonJS({
|
|
1192
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(exports, module) {
|
|
1193
|
-
var baseAssignValue = require_baseAssignValue();
|
|
1194
|
-
var eq = require_eq();
|
|
1195
|
-
function assignMergeValue(object, key, value) {
|
|
1196
|
-
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
|
1197
|
-
baseAssignValue(object, key, value);
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
module.exports = assignMergeValue;
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1203
|
-
|
|
1204
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js
|
|
1205
|
-
var require_createBaseFor = __commonJS({
|
|
1206
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(exports, module) {
|
|
1207
|
-
function createBaseFor(fromRight) {
|
|
1208
|
-
return function(object, iteratee, keysFunc) {
|
|
1209
|
-
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1210
|
-
while (length--) {
|
|
1211
|
-
var key = props[fromRight ? length : ++index];
|
|
1212
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1213
|
-
break;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
return object;
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
module.exports = createBaseFor;
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
|
|
1223
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
|
|
1224
|
-
var require_baseFor = __commonJS({
|
|
1225
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports, module) {
|
|
1226
|
-
var createBaseFor = require_createBaseFor();
|
|
1227
|
-
var baseFor = createBaseFor();
|
|
1228
|
-
module.exports = baseFor;
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
|
|
1232
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js
|
|
1233
|
-
var require_cloneBuffer = __commonJS({
|
|
1234
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(exports, module) {
|
|
1235
|
-
var root = require_root();
|
|
1236
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1237
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1238
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1239
|
-
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
1240
|
-
var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
1241
|
-
function cloneBuffer(buffer, isDeep) {
|
|
1242
|
-
if (isDeep) {
|
|
1243
|
-
return buffer.slice();
|
|
1244
|
-
}
|
|
1245
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1246
|
-
buffer.copy(result);
|
|
1247
|
-
return result;
|
|
1248
|
-
}
|
|
1249
|
-
module.exports = cloneBuffer;
|
|
1250
|
-
}
|
|
1251
|
-
});
|
|
1252
|
-
|
|
1253
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
|
|
1254
|
-
var require_Uint8Array = __commonJS({
|
|
1255
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports, module) {
|
|
1256
|
-
var root = require_root();
|
|
1257
|
-
var Uint8Array2 = root.Uint8Array;
|
|
1258
|
-
module.exports = Uint8Array2;
|
|
1259
|
-
}
|
|
1260
|
-
});
|
|
1261
|
-
|
|
1262
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js
|
|
1263
|
-
var require_cloneArrayBuffer = __commonJS({
|
|
1264
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(exports, module) {
|
|
1265
|
-
var Uint8Array2 = require_Uint8Array();
|
|
1266
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1267
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1268
|
-
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
1269
|
-
return result;
|
|
1270
|
-
}
|
|
1271
|
-
module.exports = cloneArrayBuffer;
|
|
1272
|
-
}
|
|
1273
|
-
});
|
|
1274
|
-
|
|
1275
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js
|
|
1276
|
-
var require_cloneTypedArray = __commonJS({
|
|
1277
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(exports, module) {
|
|
1278
|
-
var cloneArrayBuffer = require_cloneArrayBuffer();
|
|
1279
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1280
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1281
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1282
|
-
}
|
|
1283
|
-
module.exports = cloneTypedArray;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
|
|
1287
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js
|
|
1288
|
-
var require_copyArray = __commonJS({
|
|
1289
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(exports, module) {
|
|
1290
|
-
function copyArray(source, array) {
|
|
1291
|
-
var index = -1, length = source.length;
|
|
1292
|
-
array || (array = Array(length));
|
|
1293
|
-
while (++index < length) {
|
|
1294
|
-
array[index] = source[index];
|
|
1295
|
-
}
|
|
1296
|
-
return array;
|
|
1297
|
-
}
|
|
1298
|
-
module.exports = copyArray;
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
|
-
|
|
1302
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js
|
|
1303
|
-
var require_baseCreate = __commonJS({
|
|
1304
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(exports, module) {
|
|
1305
|
-
var isObject = require_isObject();
|
|
1306
|
-
var objectCreate = Object.create;
|
|
1307
|
-
var baseCreate = /* @__PURE__ */ function() {
|
|
1308
|
-
function object() {
|
|
1309
|
-
}
|
|
1310
|
-
return function(proto) {
|
|
1311
|
-
if (!isObject(proto)) {
|
|
1312
|
-
return {};
|
|
1313
|
-
}
|
|
1314
|
-
if (objectCreate) {
|
|
1315
|
-
return objectCreate(proto);
|
|
1316
|
-
}
|
|
1317
|
-
object.prototype = proto;
|
|
1318
|
-
var result = new object();
|
|
1319
|
-
object.prototype = void 0;
|
|
1320
|
-
return result;
|
|
1321
|
-
};
|
|
1322
|
-
}();
|
|
1323
|
-
module.exports = baseCreate;
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
|
|
1327
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
|
|
1328
|
-
var require_overArg = __commonJS({
|
|
1329
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
|
|
1330
|
-
function overArg(func, transform) {
|
|
1331
|
-
return function(arg) {
|
|
1332
|
-
return func(transform(arg));
|
|
1333
|
-
};
|
|
1334
|
-
}
|
|
1335
|
-
module.exports = overArg;
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
|
|
1339
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
|
|
1340
|
-
var require_getPrototype = __commonJS({
|
|
1341
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports, module) {
|
|
1342
|
-
var overArg = require_overArg();
|
|
1343
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1344
|
-
module.exports = getPrototype;
|
|
1345
|
-
}
|
|
1346
|
-
});
|
|
1347
|
-
|
|
1348
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
|
|
1349
|
-
var require_isPrototype = __commonJS({
|
|
1350
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports, module) {
|
|
1351
|
-
var objectProto = Object.prototype;
|
|
1352
|
-
function isPrototype(value) {
|
|
1353
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
1354
|
-
return value === proto;
|
|
1355
|
-
}
|
|
1356
|
-
module.exports = isPrototype;
|
|
1357
|
-
}
|
|
1358
|
-
});
|
|
1359
|
-
|
|
1360
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js
|
|
1361
|
-
var require_initCloneObject = __commonJS({
|
|
1362
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(exports, module) {
|
|
1363
|
-
var baseCreate = require_baseCreate();
|
|
1364
|
-
var getPrototype = require_getPrototype();
|
|
1365
|
-
var isPrototype = require_isPrototype();
|
|
1366
|
-
function initCloneObject(object) {
|
|
1367
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1368
|
-
}
|
|
1369
|
-
module.exports = initCloneObject;
|
|
1370
|
-
}
|
|
1371
|
-
});
|
|
1372
|
-
|
|
1373
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
|
|
1374
|
-
var require_isObjectLike = __commonJS({
|
|
1375
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
1376
|
-
function isObjectLike(value) {
|
|
1377
|
-
return value != null && typeof value == "object";
|
|
1378
|
-
}
|
|
1379
|
-
module.exports = isObjectLike;
|
|
1380
|
-
}
|
|
1381
|
-
});
|
|
1382
|
-
|
|
1383
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js
|
|
1384
|
-
var require_baseIsArguments = __commonJS({
|
|
1385
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js"(exports, module) {
|
|
1386
|
-
var baseGetTag = require_baseGetTag();
|
|
1387
|
-
var isObjectLike = require_isObjectLike();
|
|
1388
|
-
var argsTag = "[object Arguments]";
|
|
1389
|
-
function baseIsArguments(value) {
|
|
1390
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
1391
|
-
}
|
|
1392
|
-
module.exports = baseIsArguments;
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
|
|
1396
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js
|
|
1397
|
-
var require_isArguments = __commonJS({
|
|
1398
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"(exports, module) {
|
|
1399
|
-
var baseIsArguments = require_baseIsArguments();
|
|
1400
|
-
var isObjectLike = require_isObjectLike();
|
|
1401
|
-
var objectProto = Object.prototype;
|
|
1402
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1403
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
1404
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
1405
|
-
return arguments;
|
|
1406
|
-
}()) ? baseIsArguments : function(value) {
|
|
1407
|
-
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
1408
|
-
};
|
|
1409
|
-
module.exports = isArguments;
|
|
1410
|
-
}
|
|
1411
|
-
});
|
|
1412
|
-
|
|
1413
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
|
|
1414
|
-
var require_isArray = __commonJS({
|
|
1415
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports, module) {
|
|
1416
|
-
var isArray = Array.isArray;
|
|
1417
|
-
module.exports = isArray;
|
|
1418
|
-
}
|
|
1419
|
-
});
|
|
1420
|
-
|
|
1421
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
|
|
1422
|
-
var require_isLength = __commonJS({
|
|
1423
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
|
|
1424
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1425
|
-
function isLength(value) {
|
|
1426
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1427
|
-
}
|
|
1428
|
-
module.exports = isLength;
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
|
|
1432
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
1433
|
-
var require_isArrayLike = __commonJS({
|
|
1434
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
|
|
1435
|
-
var isFunction = require_isFunction();
|
|
1436
|
-
var isLength = require_isLength();
|
|
1437
|
-
function isArrayLike(value) {
|
|
1438
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
1439
|
-
}
|
|
1440
|
-
module.exports = isArrayLike;
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
|
|
1444
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
|
|
1445
|
-
var require_isArrayLikeObject = __commonJS({
|
|
1446
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports, module) {
|
|
1447
|
-
var isArrayLike = require_isArrayLike();
|
|
1448
|
-
var isObjectLike = require_isObjectLike();
|
|
1449
|
-
function isArrayLikeObject(value) {
|
|
1450
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
1451
|
-
}
|
|
1452
|
-
module.exports = isArrayLikeObject;
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
|
|
1457
|
-
var require_stubFalse = __commonJS({
|
|
1458
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
|
|
1459
|
-
function stubFalse() {
|
|
1460
|
-
return false;
|
|
1461
|
-
}
|
|
1462
|
-
module.exports = stubFalse;
|
|
1463
|
-
}
|
|
1464
|
-
});
|
|
1465
|
-
|
|
1466
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js
|
|
1467
|
-
var require_isBuffer = __commonJS({
|
|
1468
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"(exports, module) {
|
|
1469
|
-
var root = require_root();
|
|
1470
|
-
var stubFalse = require_stubFalse();
|
|
1471
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1472
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1473
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1474
|
-
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
1475
|
-
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
1476
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1477
|
-
module.exports = isBuffer;
|
|
1478
|
-
}
|
|
1479
|
-
});
|
|
1480
|
-
|
|
1481
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js
|
|
1482
|
-
var require_isPlainObject = __commonJS({
|
|
1483
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(exports, module) {
|
|
1484
|
-
var baseGetTag = require_baseGetTag();
|
|
1485
|
-
var getPrototype = require_getPrototype();
|
|
1486
|
-
var isObjectLike = require_isObjectLike();
|
|
1487
|
-
var objectTag = "[object Object]";
|
|
1488
|
-
var funcProto = Function.prototype;
|
|
1489
|
-
var objectProto = Object.prototype;
|
|
1490
|
-
var funcToString = funcProto.toString;
|
|
1491
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1492
|
-
var objectCtorString = funcToString.call(Object);
|
|
1493
|
-
function isPlainObject(value) {
|
|
1494
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
1495
|
-
return false;
|
|
1496
|
-
}
|
|
1497
|
-
var proto = getPrototype(value);
|
|
1498
|
-
if (proto === null) {
|
|
1499
|
-
return true;
|
|
1500
|
-
}
|
|
1501
|
-
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
1502
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1503
|
-
}
|
|
1504
|
-
module.exports = isPlainObject;
|
|
1505
|
-
}
|
|
1506
|
-
});
|
|
1507
|
-
|
|
1508
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js
|
|
1509
|
-
var require_baseIsTypedArray = __commonJS({
|
|
1510
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js"(exports, module) {
|
|
1511
|
-
var baseGetTag = require_baseGetTag();
|
|
1512
|
-
var isLength = require_isLength();
|
|
1513
|
-
var isObjectLike = require_isObjectLike();
|
|
1514
|
-
var argsTag = "[object Arguments]";
|
|
1515
|
-
var arrayTag = "[object Array]";
|
|
1516
|
-
var boolTag = "[object Boolean]";
|
|
1517
|
-
var dateTag = "[object Date]";
|
|
1518
|
-
var errorTag = "[object Error]";
|
|
1519
|
-
var funcTag = "[object Function]";
|
|
1520
|
-
var mapTag = "[object Map]";
|
|
1521
|
-
var numberTag = "[object Number]";
|
|
1522
|
-
var objectTag = "[object Object]";
|
|
1523
|
-
var regexpTag = "[object RegExp]";
|
|
1524
|
-
var setTag = "[object Set]";
|
|
1525
|
-
var stringTag = "[object String]";
|
|
1526
|
-
var weakMapTag = "[object WeakMap]";
|
|
1527
|
-
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1528
|
-
var dataViewTag = "[object DataView]";
|
|
1529
|
-
var float32Tag = "[object Float32Array]";
|
|
1530
|
-
var float64Tag = "[object Float64Array]";
|
|
1531
|
-
var int8Tag = "[object Int8Array]";
|
|
1532
|
-
var int16Tag = "[object Int16Array]";
|
|
1533
|
-
var int32Tag = "[object Int32Array]";
|
|
1534
|
-
var uint8Tag = "[object Uint8Array]";
|
|
1535
|
-
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
1536
|
-
var uint16Tag = "[object Uint16Array]";
|
|
1537
|
-
var uint32Tag = "[object Uint32Array]";
|
|
1538
|
-
var typedArrayTags = {};
|
|
1539
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
1540
|
-
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
1541
|
-
function baseIsTypedArray(value) {
|
|
1542
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1543
|
-
}
|
|
1544
|
-
module.exports = baseIsTypedArray;
|
|
1545
|
-
}
|
|
1546
|
-
});
|
|
1547
|
-
|
|
1548
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js
|
|
1549
|
-
var require_baseUnary = __commonJS({
|
|
1550
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"(exports, module) {
|
|
1551
|
-
function baseUnary(func) {
|
|
1552
|
-
return function(value) {
|
|
1553
|
-
return func(value);
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
module.exports = baseUnary;
|
|
1557
|
-
}
|
|
1558
|
-
});
|
|
1559
|
-
|
|
1560
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js
|
|
1561
|
-
var require_nodeUtil = __commonJS({
|
|
1562
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js"(exports, module) {
|
|
1563
|
-
var freeGlobal = require_freeGlobal();
|
|
1564
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1565
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1566
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1567
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
1568
|
-
var nodeUtil = function() {
|
|
1569
|
-
try {
|
|
1570
|
-
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
1571
|
-
if (types) {
|
|
1572
|
-
return types;
|
|
1573
|
-
}
|
|
1574
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1575
|
-
} catch (e) {
|
|
1576
|
-
}
|
|
1577
|
-
}();
|
|
1578
|
-
module.exports = nodeUtil;
|
|
1579
|
-
}
|
|
1580
|
-
});
|
|
1581
|
-
|
|
1582
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js
|
|
1583
|
-
var require_isTypedArray = __commonJS({
|
|
1584
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(exports, module) {
|
|
1585
|
-
var baseIsTypedArray = require_baseIsTypedArray();
|
|
1586
|
-
var baseUnary = require_baseUnary();
|
|
1587
|
-
var nodeUtil = require_nodeUtil();
|
|
1588
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1589
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1590
|
-
module.exports = isTypedArray;
|
|
1591
|
-
}
|
|
1592
|
-
});
|
|
1593
|
-
|
|
1594
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
|
|
1595
|
-
var require_safeGet = __commonJS({
|
|
1596
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports, module) {
|
|
1597
|
-
function safeGet(object, key) {
|
|
1598
|
-
if (key === "constructor" && typeof object[key] === "function") {
|
|
1599
|
-
return;
|
|
1600
|
-
}
|
|
1601
|
-
if (key == "__proto__") {
|
|
1602
|
-
return;
|
|
1603
|
-
}
|
|
1604
|
-
return object[key];
|
|
1605
|
-
}
|
|
1606
|
-
module.exports = safeGet;
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
|
|
1610
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
|
|
1611
|
-
var require_assignValue = __commonJS({
|
|
1612
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports, module) {
|
|
1613
|
-
var baseAssignValue = require_baseAssignValue();
|
|
1614
|
-
var eq = require_eq();
|
|
1615
|
-
var objectProto = Object.prototype;
|
|
1616
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1617
|
-
function assignValue(object, key, value) {
|
|
1618
|
-
var objValue = object[key];
|
|
1619
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
1620
|
-
baseAssignValue(object, key, value);
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
module.exports = assignValue;
|
|
1624
|
-
}
|
|
1625
|
-
});
|
|
1626
|
-
|
|
1627
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
|
|
1628
|
-
var require_copyObject = __commonJS({
|
|
1629
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports, module) {
|
|
1630
|
-
var assignValue = require_assignValue();
|
|
1631
|
-
var baseAssignValue = require_baseAssignValue();
|
|
1632
|
-
function copyObject(source, props, object, customizer) {
|
|
1633
|
-
var isNew = !object;
|
|
1634
|
-
object || (object = {});
|
|
1635
|
-
var index = -1, length = props.length;
|
|
1636
|
-
while (++index < length) {
|
|
1637
|
-
var key = props[index];
|
|
1638
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1639
|
-
if (newValue === void 0) {
|
|
1640
|
-
newValue = source[key];
|
|
1641
|
-
}
|
|
1642
|
-
if (isNew) {
|
|
1643
|
-
baseAssignValue(object, key, newValue);
|
|
1644
|
-
} else {
|
|
1645
|
-
assignValue(object, key, newValue);
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
return object;
|
|
1649
|
-
}
|
|
1650
|
-
module.exports = copyObject;
|
|
1651
|
-
}
|
|
1652
|
-
});
|
|
1653
|
-
|
|
1654
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
|
|
1655
|
-
var require_baseTimes = __commonJS({
|
|
1656
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
|
|
1657
|
-
function baseTimes(n, iteratee) {
|
|
1658
|
-
var index = -1, result = Array(n);
|
|
1659
|
-
while (++index < n) {
|
|
1660
|
-
result[index] = iteratee(index);
|
|
1661
|
-
}
|
|
1662
|
-
return result;
|
|
1663
|
-
}
|
|
1664
|
-
module.exports = baseTimes;
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
|
-
|
|
1668
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
|
|
1669
|
-
var require_isIndex = __commonJS({
|
|
1670
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports, module) {
|
|
1671
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1672
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1673
|
-
function isIndex(value, length) {
|
|
1674
|
-
var type = typeof value;
|
|
1675
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1676
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1677
|
-
}
|
|
1678
|
-
module.exports = isIndex;
|
|
1679
|
-
}
|
|
1680
|
-
});
|
|
1681
|
-
|
|
1682
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
|
|
1683
|
-
var require_arrayLikeKeys = __commonJS({
|
|
1684
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
|
|
1685
|
-
var baseTimes = require_baseTimes();
|
|
1686
|
-
var isArguments = require_isArguments();
|
|
1687
|
-
var isArray = require_isArray();
|
|
1688
|
-
var isBuffer = require_isBuffer();
|
|
1689
|
-
var isIndex = require_isIndex();
|
|
1690
|
-
var isTypedArray = require_isTypedArray();
|
|
1691
|
-
var objectProto = Object.prototype;
|
|
1692
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1693
|
-
function arrayLikeKeys(value, inherited) {
|
|
1694
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1695
|
-
for (var key in value) {
|
|
1696
|
-
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1697
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1698
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1699
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
1700
|
-
isIndex(key, length)))) {
|
|
1701
|
-
result.push(key);
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
return result;
|
|
1705
|
-
}
|
|
1706
|
-
module.exports = arrayLikeKeys;
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
|
|
1710
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
|
|
1711
|
-
var require_nativeKeysIn = __commonJS({
|
|
1712
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports, module) {
|
|
1713
|
-
function nativeKeysIn(object) {
|
|
1714
|
-
var result = [];
|
|
1715
|
-
if (object != null) {
|
|
1716
|
-
for (var key in Object(object)) {
|
|
1717
|
-
result.push(key);
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
return result;
|
|
1721
|
-
}
|
|
1722
|
-
module.exports = nativeKeysIn;
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
|
|
1726
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
|
|
1727
|
-
var require_baseKeysIn = __commonJS({
|
|
1728
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports, module) {
|
|
1729
|
-
var isObject = require_isObject();
|
|
1730
|
-
var isPrototype = require_isPrototype();
|
|
1731
|
-
var nativeKeysIn = require_nativeKeysIn();
|
|
1732
|
-
var objectProto = Object.prototype;
|
|
1733
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1734
|
-
function baseKeysIn(object) {
|
|
1735
|
-
if (!isObject(object)) {
|
|
1736
|
-
return nativeKeysIn(object);
|
|
1737
|
-
}
|
|
1738
|
-
var isProto = isPrototype(object), result = [];
|
|
1739
|
-
for (var key in object) {
|
|
1740
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
1741
|
-
result.push(key);
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
return result;
|
|
1745
|
-
}
|
|
1746
|
-
module.exports = baseKeysIn;
|
|
1747
|
-
}
|
|
1748
|
-
});
|
|
1749
|
-
|
|
1750
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
|
|
1751
|
-
var require_keysIn = __commonJS({
|
|
1752
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports, module) {
|
|
1753
|
-
var arrayLikeKeys = require_arrayLikeKeys();
|
|
1754
|
-
var baseKeysIn = require_baseKeysIn();
|
|
1755
|
-
var isArrayLike = require_isArrayLike();
|
|
1756
|
-
function keysIn(object) {
|
|
1757
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1758
|
-
}
|
|
1759
|
-
module.exports = keysIn;
|
|
1760
|
-
}
|
|
1761
|
-
});
|
|
1762
|
-
|
|
1763
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
|
|
1764
|
-
var require_toPlainObject = __commonJS({
|
|
1765
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports, module) {
|
|
1766
|
-
var copyObject = require_copyObject();
|
|
1767
|
-
var keysIn = require_keysIn();
|
|
1768
|
-
function toPlainObject(value) {
|
|
1769
|
-
return copyObject(value, keysIn(value));
|
|
1770
|
-
}
|
|
1771
|
-
module.exports = toPlainObject;
|
|
1772
|
-
}
|
|
1773
|
-
});
|
|
1774
|
-
|
|
1775
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
|
|
1776
|
-
var require_baseMergeDeep = __commonJS({
|
|
1777
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports, module) {
|
|
1778
|
-
var assignMergeValue = require_assignMergeValue();
|
|
1779
|
-
var cloneBuffer = require_cloneBuffer();
|
|
1780
|
-
var cloneTypedArray = require_cloneTypedArray();
|
|
1781
|
-
var copyArray = require_copyArray();
|
|
1782
|
-
var initCloneObject = require_initCloneObject();
|
|
1783
|
-
var isArguments = require_isArguments();
|
|
1784
|
-
var isArray = require_isArray();
|
|
1785
|
-
var isArrayLikeObject = require_isArrayLikeObject();
|
|
1786
|
-
var isBuffer = require_isBuffer();
|
|
1787
|
-
var isFunction = require_isFunction();
|
|
1788
|
-
var isObject = require_isObject();
|
|
1789
|
-
var isPlainObject = require_isPlainObject();
|
|
1790
|
-
var isTypedArray = require_isTypedArray();
|
|
1791
|
-
var safeGet = require_safeGet();
|
|
1792
|
-
var toPlainObject = require_toPlainObject();
|
|
1793
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
1794
|
-
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
1795
|
-
if (stacked) {
|
|
1796
|
-
assignMergeValue(object, key, stacked);
|
|
1797
|
-
return;
|
|
1798
|
-
}
|
|
1799
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
1800
|
-
var isCommon = newValue === void 0;
|
|
1801
|
-
if (isCommon) {
|
|
1802
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1803
|
-
newValue = srcValue;
|
|
1804
|
-
if (isArr || isBuff || isTyped) {
|
|
1805
|
-
if (isArray(objValue)) {
|
|
1806
|
-
newValue = objValue;
|
|
1807
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
1808
|
-
newValue = copyArray(objValue);
|
|
1809
|
-
} else if (isBuff) {
|
|
1810
|
-
isCommon = false;
|
|
1811
|
-
newValue = cloneBuffer(srcValue, true);
|
|
1812
|
-
} else if (isTyped) {
|
|
1813
|
-
isCommon = false;
|
|
1814
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
1815
|
-
} else {
|
|
1816
|
-
newValue = [];
|
|
1817
|
-
}
|
|
1818
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
1819
|
-
newValue = objValue;
|
|
1820
|
-
if (isArguments(objValue)) {
|
|
1821
|
-
newValue = toPlainObject(objValue);
|
|
1822
|
-
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
1823
|
-
newValue = initCloneObject(srcValue);
|
|
1824
|
-
}
|
|
1825
|
-
} else {
|
|
1826
|
-
isCommon = false;
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
if (isCommon) {
|
|
1830
|
-
stack.set(srcValue, newValue);
|
|
1831
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
1832
|
-
stack["delete"](srcValue);
|
|
1833
|
-
}
|
|
1834
|
-
assignMergeValue(object, key, newValue);
|
|
1835
|
-
}
|
|
1836
|
-
module.exports = baseMergeDeep;
|
|
1837
|
-
}
|
|
1838
|
-
});
|
|
1839
|
-
|
|
1840
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
|
|
1841
|
-
var require_baseMerge = __commonJS({
|
|
1842
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports, module) {
|
|
1843
|
-
var Stack = require_Stack();
|
|
1844
|
-
var assignMergeValue = require_assignMergeValue();
|
|
1845
|
-
var baseFor = require_baseFor();
|
|
1846
|
-
var baseMergeDeep = require_baseMergeDeep();
|
|
1847
|
-
var isObject = require_isObject();
|
|
1848
|
-
var keysIn = require_keysIn();
|
|
1849
|
-
var safeGet = require_safeGet();
|
|
1850
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
1851
|
-
if (object === source) {
|
|
1852
|
-
return;
|
|
1853
|
-
}
|
|
1854
|
-
baseFor(source, function(srcValue, key) {
|
|
1855
|
-
stack || (stack = new Stack());
|
|
1856
|
-
if (isObject(srcValue)) {
|
|
1857
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1858
|
-
} else {
|
|
1859
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
1860
|
-
if (newValue === void 0) {
|
|
1861
|
-
newValue = srcValue;
|
|
1862
|
-
}
|
|
1863
|
-
assignMergeValue(object, key, newValue);
|
|
1864
|
-
}
|
|
1865
|
-
}, keysIn);
|
|
1866
|
-
}
|
|
1867
|
-
module.exports = baseMerge;
|
|
1868
|
-
}
|
|
1869
|
-
});
|
|
1870
|
-
|
|
1871
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
|
|
1872
|
-
var require_identity = __commonJS({
|
|
1873
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
|
|
1874
|
-
function identity(value) {
|
|
1875
|
-
return value;
|
|
1876
|
-
}
|
|
1877
|
-
module.exports = identity;
|
|
1878
|
-
}
|
|
1879
|
-
});
|
|
1880
|
-
|
|
1881
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
|
|
1882
|
-
var require_apply = __commonJS({
|
|
1883
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports, module) {
|
|
1884
|
-
function apply(func, thisArg, args) {
|
|
1885
|
-
switch (args.length) {
|
|
1886
|
-
case 0:
|
|
1887
|
-
return func.call(thisArg);
|
|
1888
|
-
case 1:
|
|
1889
|
-
return func.call(thisArg, args[0]);
|
|
1890
|
-
case 2:
|
|
1891
|
-
return func.call(thisArg, args[0], args[1]);
|
|
1892
|
-
case 3:
|
|
1893
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1894
|
-
}
|
|
1895
|
-
return func.apply(thisArg, args);
|
|
1896
|
-
}
|
|
1897
|
-
module.exports = apply;
|
|
1898
|
-
}
|
|
1899
|
-
});
|
|
1900
|
-
|
|
1901
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
|
|
1902
|
-
var require_overRest = __commonJS({
|
|
1903
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports, module) {
|
|
1904
|
-
var apply = require_apply();
|
|
1905
|
-
var nativeMax = Math.max;
|
|
1906
|
-
function overRest(func, start, transform) {
|
|
1907
|
-
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
1908
|
-
return function() {
|
|
1909
|
-
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1910
|
-
while (++index < length) {
|
|
1911
|
-
array[index] = args[start + index];
|
|
1912
|
-
}
|
|
1913
|
-
index = -1;
|
|
1914
|
-
var otherArgs = Array(start + 1);
|
|
1915
|
-
while (++index < start) {
|
|
1916
|
-
otherArgs[index] = args[index];
|
|
1917
|
-
}
|
|
1918
|
-
otherArgs[start] = transform(array);
|
|
1919
|
-
return apply(func, this, otherArgs);
|
|
1920
|
-
};
|
|
1921
|
-
}
|
|
1922
|
-
module.exports = overRest;
|
|
1923
|
-
}
|
|
1924
|
-
});
|
|
1925
|
-
|
|
1926
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
|
|
1927
|
-
var require_constant = __commonJS({
|
|
1928
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports, module) {
|
|
1929
|
-
function constant(value) {
|
|
1930
|
-
return function() {
|
|
1931
|
-
return value;
|
|
1932
|
-
};
|
|
1933
|
-
}
|
|
1934
|
-
module.exports = constant;
|
|
1935
|
-
}
|
|
1936
|
-
});
|
|
1937
|
-
|
|
1938
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
|
|
1939
|
-
var require_baseSetToString = __commonJS({
|
|
1940
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports, module) {
|
|
1941
|
-
var constant = require_constant();
|
|
1942
|
-
var defineProperty = require_defineProperty();
|
|
1943
|
-
var identity = require_identity();
|
|
1944
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
1945
|
-
return defineProperty(func, "toString", {
|
|
1946
|
-
"configurable": true,
|
|
1947
|
-
"enumerable": false,
|
|
1948
|
-
"value": constant(string),
|
|
1949
|
-
"writable": true
|
|
1950
|
-
});
|
|
1951
|
-
};
|
|
1952
|
-
module.exports = baseSetToString;
|
|
1953
|
-
}
|
|
1954
|
-
});
|
|
1955
|
-
|
|
1956
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
|
|
1957
|
-
var require_shortOut = __commonJS({
|
|
1958
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports, module) {
|
|
1959
|
-
var HOT_COUNT = 800;
|
|
1960
|
-
var HOT_SPAN = 16;
|
|
1961
|
-
var nativeNow = Date.now;
|
|
1962
|
-
function shortOut(func) {
|
|
1963
|
-
var count = 0, lastCalled = 0;
|
|
1964
|
-
return function() {
|
|
1965
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
1966
|
-
lastCalled = stamp;
|
|
1967
|
-
if (remaining > 0) {
|
|
1968
|
-
if (++count >= HOT_COUNT) {
|
|
1969
|
-
return arguments[0];
|
|
1970
|
-
}
|
|
1971
|
-
} else {
|
|
1972
|
-
count = 0;
|
|
1973
|
-
}
|
|
1974
|
-
return func.apply(void 0, arguments);
|
|
1975
|
-
};
|
|
1976
|
-
}
|
|
1977
|
-
module.exports = shortOut;
|
|
1978
|
-
}
|
|
1979
|
-
});
|
|
1980
|
-
|
|
1981
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
|
|
1982
|
-
var require_setToString = __commonJS({
|
|
1983
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports, module) {
|
|
1984
|
-
var baseSetToString = require_baseSetToString();
|
|
1985
|
-
var shortOut = require_shortOut();
|
|
1986
|
-
var setToString = shortOut(baseSetToString);
|
|
1987
|
-
module.exports = setToString;
|
|
1988
|
-
}
|
|
1989
|
-
});
|
|
1990
|
-
|
|
1991
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
|
|
1992
|
-
var require_baseRest = __commonJS({
|
|
1993
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports, module) {
|
|
1994
|
-
var identity = require_identity();
|
|
1995
|
-
var overRest = require_overRest();
|
|
1996
|
-
var setToString = require_setToString();
|
|
1997
|
-
function baseRest(func, start) {
|
|
1998
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
1999
|
-
}
|
|
2000
|
-
module.exports = baseRest;
|
|
2001
|
-
}
|
|
2002
|
-
});
|
|
2003
|
-
|
|
2004
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
|
|
2005
|
-
var require_isIterateeCall = __commonJS({
|
|
2006
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports, module) {
|
|
2007
|
-
var eq = require_eq();
|
|
2008
|
-
var isArrayLike = require_isArrayLike();
|
|
2009
|
-
var isIndex = require_isIndex();
|
|
2010
|
-
var isObject = require_isObject();
|
|
2011
|
-
function isIterateeCall(value, index, object) {
|
|
2012
|
-
if (!isObject(object)) {
|
|
2013
|
-
return false;
|
|
2014
|
-
}
|
|
2015
|
-
var type = typeof index;
|
|
2016
|
-
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
2017
|
-
return eq(object[index], value);
|
|
2018
|
-
}
|
|
2019
|
-
return false;
|
|
2020
|
-
}
|
|
2021
|
-
module.exports = isIterateeCall;
|
|
2022
|
-
}
|
|
2023
|
-
});
|
|
2024
|
-
|
|
2025
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
|
|
2026
|
-
var require_createAssigner = __commonJS({
|
|
2027
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports, module) {
|
|
2028
|
-
var baseRest = require_baseRest();
|
|
2029
|
-
var isIterateeCall = require_isIterateeCall();
|
|
2030
|
-
function createAssigner(assigner) {
|
|
2031
|
-
return baseRest(function(object, sources) {
|
|
2032
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
2033
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
2034
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2035
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
2036
|
-
length = 1;
|
|
2037
|
-
}
|
|
2038
|
-
object = Object(object);
|
|
2039
|
-
while (++index < length) {
|
|
2040
|
-
var source = sources[index];
|
|
2041
|
-
if (source) {
|
|
2042
|
-
assigner(object, source, index, customizer);
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
return object;
|
|
2046
|
-
});
|
|
2047
|
-
}
|
|
2048
|
-
module.exports = createAssigner;
|
|
2049
|
-
}
|
|
2050
|
-
});
|
|
2051
|
-
|
|
2052
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
|
|
2053
|
-
var require_merge = __commonJS({
|
|
2054
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports, module) {
|
|
2055
|
-
var baseMerge = require_baseMerge();
|
|
2056
|
-
var createAssigner = require_createAssigner();
|
|
2057
|
-
var merge2 = createAssigner(function(object, source, srcIndex) {
|
|
2058
|
-
baseMerge(object, source, srcIndex);
|
|
2059
|
-
});
|
|
2060
|
-
module.exports = merge2;
|
|
2061
|
-
}
|
|
2062
|
-
});
|
|
2063
|
-
|
|
2064
|
-
// src/prompts.ts
|
|
2065
|
-
var validRequiredString = (value, key) => {
|
|
2066
|
-
if (typeof value !== "string" || value.trim() === "") {
|
|
2067
|
-
return `${key} is required`;
|
|
2068
|
-
}
|
|
2069
|
-
return true;
|
|
2070
|
-
};
|
|
2071
|
-
function createDefaultPrompts(templates, packages2) {
|
|
2072
|
-
return [
|
|
2073
|
-
{
|
|
2074
|
-
type: "input",
|
|
2075
|
-
name: "projectName",
|
|
2076
|
-
message: "Project name",
|
|
2077
|
-
validate: (value) => validRequiredString(value, "Project name")
|
|
2078
|
-
},
|
|
2079
|
-
{
|
|
2080
|
-
type: "list",
|
|
2081
|
-
name: "template",
|
|
2082
|
-
message: "Template name",
|
|
2083
|
-
choices: [...templates, ...packages2]
|
|
2084
|
-
}
|
|
2085
|
-
];
|
|
2086
|
-
}
|
|
2087
|
-
function createPackagePrompts(templates) {
|
|
2088
|
-
return [
|
|
2089
|
-
{
|
|
2090
|
-
type: "checkbox",
|
|
2091
|
-
name: "subPackages",
|
|
2092
|
-
message: "Sub package names",
|
|
2093
|
-
choices: templates
|
|
2094
|
-
}
|
|
2095
|
-
];
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
// src/Copyer.ts
|
|
2099
|
-
var import_ignore = __toESM(require_ignore());
|
|
2100
|
-
var Util = class {
|
|
2101
|
-
static ensureDir(dir) {
|
|
2102
|
-
if (!existsSync(dir)) {
|
|
2103
|
-
mkdirSync(dir, { recursive: true });
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
// src/Copyer.ts
|
|
2109
|
-
var { copyFile, stat } = promises;
|
|
2110
|
-
var Copyer = class _Copyer {
|
|
2111
|
-
constructor(ignoreTargetPath, ignoreFile = _Copyer.IGNORE_FILE) {
|
|
2112
|
-
this.ignoreTargetPath = ignoreTargetPath;
|
|
2113
|
-
this.ignoreFile = ignoreFile;
|
|
2114
|
-
}
|
|
2115
|
-
static IGNORE_FILE = ".gitignore.template";
|
|
2116
|
-
getIg(targetDir = this.ignoreTargetPath) {
|
|
2117
|
-
const gitignorePath = join(targetDir, this.ignoreFile);
|
|
2118
|
-
if (!existsSync(gitignorePath)) {
|
|
2119
|
-
return;
|
|
2120
|
-
}
|
|
2121
|
-
const gitignoreContent = readFileSync(gitignorePath, "utf8");
|
|
2122
|
-
const ignoreToClean = gitignoreContent.split("\n").map((line) => line.trim()).filter((line) => line && !line.startsWith("#"));
|
|
2123
|
-
const allRules = ignoreToClean;
|
|
2124
|
-
return (0, import_ignore.default)().add(allRules);
|
|
2125
|
-
}
|
|
2126
|
-
/**
|
|
2127
|
-
* Asynchronously copy files from source to target directory.
|
|
2128
|
-
* @param {string} sourcePath - Source directory.
|
|
2129
|
-
* @param {string} targetDir - Target directory.
|
|
2130
|
-
* @param {ignore.Ignore} ig - Ignore rules.
|
|
2131
|
-
* @returns {Promise<void>} - A promise that resolves when the copy is complete.
|
|
2132
|
-
* @example
|
|
2133
|
-
* await copyer.copyFilesPromise('src', 'dest', ignoreInstance);
|
|
2134
|
-
*/
|
|
2135
|
-
async copyFiles(sourcePath, targetDir, ig, copyCallback) {
|
|
2136
|
-
const items = await promises.readdir(sourcePath);
|
|
2137
|
-
await Promise.all(
|
|
2138
|
-
items.map(async (item) => {
|
|
2139
|
-
const sourceFilePath = join(sourcePath, item);
|
|
2140
|
-
const targetFilePath = join(targetDir, item);
|
|
2141
|
-
if (ig && ig.ignores(item)) {
|
|
2142
|
-
return;
|
|
2143
|
-
}
|
|
2144
|
-
Util.ensureDir(dirname(targetFilePath));
|
|
2145
|
-
const fileStat = await stat(sourceFilePath);
|
|
2146
|
-
if (fileStat.isDirectory()) {
|
|
2147
|
-
await this.copyFiles(
|
|
2148
|
-
sourceFilePath,
|
|
2149
|
-
targetFilePath,
|
|
2150
|
-
ig,
|
|
2151
|
-
copyCallback
|
|
2152
|
-
);
|
|
2153
|
-
} else {
|
|
2154
|
-
if (copyCallback && await copyCallback(sourceFilePath, targetFilePath)) {
|
|
2155
|
-
return;
|
|
2156
|
-
}
|
|
2157
|
-
await copyFile(sourceFilePath, targetFilePath);
|
|
2158
|
-
}
|
|
2159
|
-
})
|
|
2160
|
-
);
|
|
2161
|
-
}
|
|
2162
|
-
copyPaths({
|
|
2163
|
-
sourcePath,
|
|
2164
|
-
targetPath,
|
|
2165
|
-
copyCallback
|
|
2166
|
-
}) {
|
|
2167
|
-
Util.ensureDir(targetPath);
|
|
2168
|
-
const ig = this.getIg();
|
|
2169
|
-
return this.copyFiles(sourcePath, targetPath, ig, copyCallback);
|
|
2170
|
-
}
|
|
2171
|
-
};
|
|
2172
|
-
|
|
2173
|
-
// src/Compose.ts
|
|
2174
|
-
var import_merge = __toESM(require_merge());
|
|
2175
|
-
var Compose = class {
|
|
2176
|
-
constructor() {
|
|
2177
|
-
}
|
|
2178
|
-
isJSONFilePath(filePath) {
|
|
2179
|
-
return filePath.endsWith(".json") || filePath.endsWith(".json.template");
|
|
2180
|
-
}
|
|
2181
|
-
isTemplateFilePath(filePath) {
|
|
2182
|
-
return filePath.endsWith(".template");
|
|
2183
|
-
}
|
|
2184
|
-
getRealTemplateFilePath(filePath) {
|
|
2185
|
-
return filePath.replace(".template", "");
|
|
2186
|
-
}
|
|
2187
|
-
readFile(filePath) {
|
|
2188
|
-
return readFileSync(filePath, "utf-8");
|
|
2189
|
-
}
|
|
2190
|
-
readJSONFile(filePath) {
|
|
2191
|
-
return JSON.parse(this.readFile(filePath));
|
|
2192
|
-
}
|
|
2193
|
-
writeFile(filePath, content) {
|
|
2194
|
-
writeFileSync(this.getRealTemplateFilePath(filePath), content, {
|
|
2195
|
-
encoding: "utf-8"
|
|
2196
|
-
});
|
|
2197
|
-
}
|
|
2198
|
-
replaceFile(targetFilePath, context) {
|
|
2199
|
-
let targetFileContent = this.readFile(targetFilePath);
|
|
2200
|
-
Object.keys(context).forEach((key) => {
|
|
2201
|
-
const value = context[key];
|
|
2202
|
-
targetFileContent = targetFileContent.replace(
|
|
2203
|
-
new RegExp(`\\[TPL:${key}\\]`, "g"),
|
|
2204
|
-
typeof value === "string" ? value : JSON.stringify(value)
|
|
2205
|
-
);
|
|
2206
|
-
});
|
|
2207
|
-
return targetFileContent;
|
|
2208
|
-
}
|
|
2209
|
-
mergeJSONFile(targetJSONFilePath, sourceJSONContent) {
|
|
2210
|
-
const targetFileContent = this.readJSONFile(targetJSONFilePath);
|
|
2211
|
-
const composedFileContent = (0, import_merge.default)(sourceJSONContent, targetFileContent);
|
|
2212
|
-
this.writeFile(
|
|
2213
|
-
targetJSONFilePath,
|
|
2214
|
-
JSON.stringify(composedFileContent, null, 2)
|
|
2215
|
-
);
|
|
2216
|
-
}
|
|
2217
|
-
composeConfigFile(context, sourceFilePath, targetFilePath) {
|
|
2218
|
-
if (this.isTemplateFilePath(sourceFilePath)) {
|
|
2219
|
-
const fileContent = this.replaceFile(
|
|
2220
|
-
sourceFilePath,
|
|
2221
|
-
context
|
|
2222
|
-
);
|
|
2223
|
-
if (this.isJSONFilePath(sourceFilePath) && this.isJSONFilePath(targetFilePath)) {
|
|
2224
|
-
const realTargetFilePath = this.getRealTemplateFilePath(targetFilePath);
|
|
2225
|
-
if (existsSync(realTargetFilePath)) {
|
|
2226
|
-
this.mergeJSONFile(realTargetFilePath, JSON.parse(fileContent));
|
|
2227
|
-
return true;
|
|
2228
|
-
}
|
|
2229
|
-
this.writeFile(realTargetFilePath, fileContent);
|
|
2230
|
-
return true;
|
|
2231
|
-
}
|
|
2232
|
-
this.writeFile(targetFilePath, fileContent);
|
|
2233
|
-
return true;
|
|
2234
|
-
}
|
|
2235
|
-
return false;
|
|
2236
|
-
}
|
|
2237
|
-
};
|
|
2238
|
-
|
|
2239
|
-
// src/Generator.ts
|
|
2240
|
-
var packages = ["pack-app"];
|
|
2241
|
-
var Generator = class {
|
|
2242
|
-
ora;
|
|
2243
|
-
context;
|
|
2244
|
-
subPackages;
|
|
2245
|
-
copyer;
|
|
2246
|
-
compose;
|
|
2247
|
-
constructor(context) {
|
|
2248
|
-
const templatePath = context.options?.templateRootPath;
|
|
2249
|
-
if (!templatePath) {
|
|
2250
|
-
throw new Error("template path not exit");
|
|
2251
|
-
}
|
|
2252
|
-
if (!existsSync(templatePath)) {
|
|
2253
|
-
throw new Error("template path not exit");
|
|
2254
|
-
}
|
|
2255
|
-
this.ora = oraPromise;
|
|
2256
|
-
this.context = new FeScriptContext(context);
|
|
2257
|
-
this.subPackages = ["node-lib", "react-app"];
|
|
2258
|
-
this.copyer = new Copyer(
|
|
2259
|
-
join(this.context.options.configsRootPath, "_common")
|
|
2260
|
-
);
|
|
2261
|
-
this.compose = new Compose();
|
|
2262
|
-
}
|
|
2263
|
-
get logger() {
|
|
2264
|
-
return this.context.logger;
|
|
2265
|
-
}
|
|
2266
|
-
async steps(prompts) {
|
|
2267
|
-
try {
|
|
2268
|
-
const answers = await inquirer.prompt(prompts);
|
|
2269
|
-
return answers;
|
|
2270
|
-
} catch (error) {
|
|
2271
|
-
if (error.isTtyError) ;
|
|
2272
|
-
this.logger.error(error);
|
|
2273
|
-
throw error;
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
async action({
|
|
2277
|
-
label,
|
|
2278
|
-
task
|
|
2279
|
-
}) {
|
|
2280
|
-
let awaitTask = task();
|
|
2281
|
-
if (!(awaitTask instanceof Promise)) {
|
|
2282
|
-
awaitTask = Promise.resolve(awaitTask);
|
|
2283
|
-
}
|
|
2284
|
-
const text = label;
|
|
2285
|
-
this.ora(awaitTask, text);
|
|
2286
|
-
return awaitTask;
|
|
2287
|
-
}
|
|
2288
|
-
isPackageTemplate(template) {
|
|
2289
|
-
return packages.includes(template);
|
|
2290
|
-
}
|
|
2291
|
-
async getGeneratorContext() {
|
|
2292
|
-
const prompts = createDefaultPrompts(this.subPackages, packages);
|
|
2293
|
-
const context = await this.steps(prompts);
|
|
2294
|
-
if (this.isPackageTemplate(context.template)) {
|
|
2295
|
-
const prompts2 = createPackagePrompts(this.subPackages);
|
|
2296
|
-
const choseSubPackages = await this.steps(prompts2);
|
|
2297
|
-
Object.assign(context, choseSubPackages);
|
|
2298
|
-
}
|
|
2299
|
-
context.targetPath = join(process.cwd(), context.projectName);
|
|
2300
|
-
context.releasePath = context.releasePath || "src";
|
|
2301
|
-
return context;
|
|
2302
|
-
}
|
|
2303
|
-
async generate() {
|
|
2304
|
-
const context = await this.getGeneratorContext();
|
|
2305
|
-
this.logger.debug(
|
|
2306
|
-
"context is:",
|
|
2307
|
-
context,
|
|
2308
|
-
this.context.options.templateRootPath
|
|
2309
|
-
);
|
|
2310
|
-
if (context.subPackages) {
|
|
2311
|
-
await this.action({
|
|
2312
|
-
label: "Generate Directories(subPackages)",
|
|
2313
|
-
task: async () => {
|
|
2314
|
-
await this.generateTemplateDir(context);
|
|
2315
|
-
await this.generateSubPackages(context);
|
|
2316
|
-
await this.generateConfigs(context, context.targetPath, "_common");
|
|
2317
|
-
}
|
|
2318
|
-
});
|
|
2319
|
-
return;
|
|
2320
|
-
}
|
|
2321
|
-
await this.action({
|
|
2322
|
-
label: "Generate Directory",
|
|
2323
|
-
task: async () => {
|
|
2324
|
-
await this.generateTemplateDir(context);
|
|
2325
|
-
await this.generateConfigs(context, context.targetPath, "_common");
|
|
2326
|
-
await this.generateConfigs(
|
|
2327
|
-
context,
|
|
2328
|
-
context.targetPath,
|
|
2329
|
-
context.template
|
|
2330
|
-
);
|
|
2331
|
-
}
|
|
2332
|
-
});
|
|
2333
|
-
}
|
|
2334
|
-
async generateConfigs(context, targetPath, configName) {
|
|
2335
|
-
const copyCallback = (sourceFilePath, targetFilePath) => {
|
|
2336
|
-
this.logger.debug("copyCallback", sourceFilePath, targetFilePath);
|
|
2337
|
-
return this.compose.composeConfigFile(
|
|
2338
|
-
context,
|
|
2339
|
-
sourceFilePath,
|
|
2340
|
-
targetFilePath
|
|
2341
|
-
);
|
|
2342
|
-
};
|
|
2343
|
-
const { configsRootPath, config } = this.context.options;
|
|
2344
|
-
if (!config) {
|
|
2345
|
-
this.logger.debug("no copy config files");
|
|
2346
|
-
return;
|
|
2347
|
-
}
|
|
2348
|
-
await this.copyer.copyPaths({
|
|
2349
|
-
sourcePath: join(configsRootPath, configName),
|
|
2350
|
-
targetPath,
|
|
2351
|
-
copyCallback
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
generateTemplateDir(context) {
|
|
2355
|
-
return this.copyer.copyPaths({
|
|
2356
|
-
sourcePath: join(this.context.options.templateRootPath, context.template),
|
|
2357
|
-
targetPath: context.targetPath
|
|
2358
|
-
});
|
|
2359
|
-
}
|
|
2360
|
-
async generateSubPackages(context) {
|
|
2361
|
-
const {
|
|
2362
|
-
packagesNames = "packages",
|
|
2363
|
-
subPackages = [],
|
|
2364
|
-
targetPath = ""
|
|
2365
|
-
} = context;
|
|
2366
|
-
const { templateRootPath } = this.context.options;
|
|
2367
|
-
for (const subPackage of subPackages) {
|
|
2368
|
-
const sourePath = join(templateRootPath, subPackage);
|
|
2369
|
-
const packagesPath = join(targetPath, packagesNames, subPackage);
|
|
2370
|
-
this.logger.debug("copy sub package", sourePath, packagesPath);
|
|
2371
|
-
await this.copyer.copyPaths({
|
|
2372
|
-
sourcePath: sourePath,
|
|
2373
|
-
targetPath: packagesPath
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
};
|
|
2378
|
-
|
|
2379
|
-
// package.json
|
|
2380
|
-
var package_default = {
|
|
2381
|
-
version: "0.4.5",
|
|
2382
|
-
description: "Create a new app with a single command"};
|
|
2383
|
-
function programArgs() {
|
|
2384
|
-
const program = new Command();
|
|
2385
|
-
program.version(package_default.version, "-v, --version", "Show version").description(package_default.description).option(
|
|
2386
|
-
"-d, --dry-run",
|
|
2387
|
-
"Do not touch or write anything, but show the commands"
|
|
2388
|
-
).option("-V, --verbose", "Show more information").option("--config", "Copy config files (default: true)", true).option("--no-config", "Do not copy config files");
|
|
2389
|
-
program.parse();
|
|
2390
|
-
return program.opts();
|
|
2391
|
-
}
|
|
2392
|
-
async function main() {
|
|
2393
|
-
const { dryRun, verbose, ...commandOptions } = programArgs();
|
|
2394
|
-
const rootPath = dirname(fileURLToPath(import.meta.url));
|
|
2395
|
-
const templateRootPath = join(rootPath, "../templates");
|
|
2396
|
-
const configsRootPath = join(rootPath, "../configs");
|
|
2397
|
-
if (!existsSync(templateRootPath)) {
|
|
2398
|
-
console.error("Template is empty!");
|
|
2399
|
-
process.exit(1);
|
|
2400
|
-
}
|
|
2401
|
-
if (!existsSync(configsRootPath)) {
|
|
2402
|
-
console.error("Configs is empty!");
|
|
2403
|
-
process.exit(1);
|
|
2404
|
-
}
|
|
2405
|
-
const generator = new Generator({
|
|
2406
|
-
dryRun,
|
|
2407
|
-
verbose,
|
|
2408
|
-
options: {
|
|
2409
|
-
...commandOptions,
|
|
2410
|
-
templateRootPath,
|
|
2411
|
-
configsRootPath
|
|
2412
|
-
}
|
|
2413
|
-
});
|
|
2414
|
-
await generator.generate();
|
|
2415
|
-
}
|
|
2416
|
-
main().catch((err) => {
|
|
2417
|
-
console.error(err);
|
|
2418
|
-
process.exit(1);
|
|
2419
|
-
});
|
|
2
|
+
var MD=Object.create;var dt=Object.defineProperty;var LD=Object.getOwnPropertyDescriptor;var kD=Object.getOwnPropertyNames;var $D=Object.getPrototypeOf,UD=Object.prototype.hasOwnProperty;var n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var WD=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kD(t))!UD.call(e,i)&&i!==r&&dt(e,i,{get:()=>t[i],enumerable:!(u=LD(t,i))||u.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?MD($D(e)):{},WD(t||!e||!e.__esModule?dt(r,"default",{value:e,enumerable:!0}):r,e));var Mt=n((xc,gn)=>{gn.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Ne=n((yc,kt)=>{"use strict";var le=Object.assign({},Mt()),Lt=Object.keys(le);Object.defineProperty(le,"random",{get(){let e=Math.floor(Math.random()*Lt.length),t=Lt[e];return le[t]}});kt.exports=le});var ir=n((n2,he)=>{"use strict";function Zt(e){return Array.isArray(e)?e:[e]}var On=void 0,Ve="",Xt=" ",Ye="\\",wn=/^\s+$/,Pn=/(?:[^\\]|^)\\$/,Sn=/^\\!/,Rn=/^\\#/,qn=/\r?\n/g,In=/^\.{0,2}\/|^\.{1,2}$/,jn=/\/$/,y="/",Qt="node-ignore";typeof Symbol<"u"&&(Qt=Symbol.for("node-ignore"));var er=Qt,T=(e,t,r)=>(Object.defineProperty(e,t,{value:r}),r),Nn=/([0-z])-([0-z])/g,tr=()=>!1,Gn=e=>e.replace(Nn,(t,r,u)=>r.charCodeAt(0)<=u.charCodeAt(0)?t:Ve),Mn=e=>{let{length:t}=e;return e.slice(0,t-t%2)},Ln=[[/^\uFEFF/,()=>Ve],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?Xt:Ve)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+Xt}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let u=r.replace(/\\\*/g,"[^\\/]*");return t+u}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Ye],[/\\\\/g,()=>Ye],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,u,i)=>t===Ye?`\\[${r}${Mn(u)}${i}`:i==="]"&&u.length%2===0?`[${Gn(r)}${u}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],kn=/(^|\\\/)?\\\*$/,W="regex",fe="checkRegex",Jt="_",$n={[W](e,t){return`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`},[fe](e,t){return`${t?`${t}[^/]*`:"[^/]*"}(?=$|\\/$)`}},Un=e=>Ln.reduce((t,[r,u])=>t.replace(r,u.bind(e)),e),pe=e=>typeof e=="string",Wn=e=>e&&pe(e)&&!wn.test(e)&&!Pn.test(e)&&e.indexOf("#")!==0,Hn=e=>e.split(qn).filter(Boolean),ze=class{constructor(t,r,u,i,D,o){this.pattern=t,this.mark=r,this.negative=D,T(this,"body",u),T(this,"ignoreCase",i),T(this,"regexPrefix",o)}get regex(){let t=Jt+W;return this[t]?this[t]:this._make(W,t)}get checkRegex(){let t=Jt+fe;return this[t]?this[t]:this._make(fe,t)}_make(t,r){let u=this.regexPrefix.replace(kn,$n[t]),i=this.ignoreCase?new RegExp(u,"i"):new RegExp(u);return T(this,r,i)}},Yn=({pattern:e,mark:t},r)=>{let u=!1,i=e;i.indexOf("!")===0&&(u=!0,i=i.substr(1)),i=i.replace(Sn,"!").replace(Rn,"#");let D=Un(i);return new ze(e,t,i,r,u,D)},Ke=class{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[er]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if(pe(t)&&(t={pattern:t}),Wn(t.pattern)){let r=Yn(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Zt(pe(t)?Hn(t):t).forEach(this._add,this),this._added}test(t,r,u){let i=!1,D=!1,o;this._rules.forEach(a=>{let{negative:f}=a;D===f&&i!==D||f&&!i&&!D&&!r||!a[u].test(t)||(i=!f,D=f,o=f?On:a)});let s={ignored:i,unignored:D};return o&&(s.rule=o),s}},Vn=(e,t)=>{throw new t(e)},_=(e,t,r)=>pe(e)?e?_.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),rr=e=>In.test(e);_.isNotRelative=rr;_.convert=e=>e;var Xe=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:u=!1}={}){T(this,er,!0),this._rules=new Ke(r),this._strictPathCheck=!u,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,r,u,i){let D=t&&_.convert(t);return _(D,t,this._strictPathCheck?Vn:tr),this._t(D,r,u,i)}checkIgnore(t){if(!jn.test(t))return this.test(t);let r=t.split(y).filter(Boolean);if(r.pop(),r.length){let u=this._t(r.join(y)+y,this._testCache,!0,r);if(u.ignored)return u}return this._rules.test(t,!1,fe)}_t(t,r,u,i){if(t in r)return r[t];if(i||(i=t.split(y).filter(Boolean)),i.pop(),!i.length)return r[t]=this._rules.test(t,u,W);let D=this._t(i.join(y)+y,r,u,i);return r[t]=D.ignored?D:this._rules.test(t,u,W)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Zt(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},Je=e=>new Xe(e),zn=e=>_(e&&_.convert(e),e,tr),ur=()=>{let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");_.convert=e;let t=/^[a-z]:\//i;_.isNotRelative=r=>t.test(r)||rr(r)};typeof process<"u"&&process.platform==="win32"&&ur();he.exports=Je;Je.default=Je;he.exports.isPathValid=zn;T(he.exports,Symbol.for("setupWindows"),ur)});var or=n((p2,sr)=>{"use strict";function rs(){this.__data__=[],this.size=0}sr.exports=rs});var Y=n((h2,ar)=>{"use strict";function us(e,t){return e===t||e!==e&&t!==t}ar.exports=us});var V=n((C2,Fr)=>{"use strict";var is=Y();function Ds(e,t){for(var r=e.length;r--;)if(is(e[r][0],t))return r;return-1}Fr.exports=Ds});var cr=n((E2,lr)=>{"use strict";var ns=V(),ss=Array.prototype,os=ss.splice;function as(e){var t=this.__data__,r=ns(t,e);if(r<0)return!1;var u=t.length-1;return r==u?t.pop():os.call(t,r,1),--this.size,!0}lr.exports=as});var pr=n((g2,fr)=>{"use strict";var Fs=V();function ls(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}fr.exports=ls});var Cr=n((d2,hr)=>{"use strict";var cs=V();function fs(e){return cs(this.__data__,e)>-1}hr.exports=fs});var gr=n((_2,Er)=>{"use strict";var ps=V();function hs(e,t){var r=this.__data__,u=ps(r,e);return u<0?(++this.size,r.push([e,t])):r[u][1]=t,this}Er.exports=hs});var z=n((m2,dr)=>{"use strict";var Cs=or(),Es=cr(),gs=pr(),ds=Cr(),_s=gr();function O(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var u=e[t];this.set(u[0],u[1])}}O.prototype.clear=Cs;O.prototype.delete=Es;O.prototype.get=gs;O.prototype.has=ds;O.prototype.set=_s;dr.exports=O});var mr=n((B2,_r)=>{"use strict";var ms=z();function Bs(){this.__data__=new ms,this.size=0}_r.exports=Bs});var Ar=n((A2,Br)=>{"use strict";function As(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Br.exports=As});var vr=n((b2,br)=>{"use strict";function bs(e){return this.__data__.get(e)}br.exports=bs});var yr=n((v2,xr)=>{"use strict";function vs(e){return this.__data__.has(e)}xr.exports=vs});var Qe=n((x2,Tr)=>{"use strict";var xs=typeof global=="object"&&global&&global.Object===Object&&global;Tr.exports=xs});var A=n((y2,Or)=>{"use strict";var ys=Qe(),Ts=typeof self=="object"&&self&&self.Object===Object&&self,Os=ys||Ts||Function("return this")();Or.exports=Os});var et=n((T2,wr)=>{"use strict";var ws=A(),Ps=ws.Symbol;wr.exports=Ps});var qr=n((O2,Rr)=>{"use strict";var Pr=et(),Sr=Object.prototype,Ss=Sr.hasOwnProperty,Rs=Sr.toString,K=Pr?Pr.toStringTag:void 0;function qs(e){var t=Ss.call(e,K),r=e[K];try{e[K]=void 0;var u=!0}catch{}var i=Rs.call(e);return u&&(t?e[K]=r:delete e[K]),i}Rr.exports=qs});var jr=n((w2,Ir)=>{"use strict";var Is=Object.prototype,js=Is.toString;function Ns(e){return js.call(e)}Ir.exports=Ns});var X=n((P2,Mr)=>{"use strict";var Nr=et(),Gs=qr(),Ms=jr(),Ls="[object Null]",ks="[object Undefined]",Gr=Nr?Nr.toStringTag:void 0;function $s(e){return e==null?e===void 0?ks:Ls:Gr&&Gr in Object(e)?Gs(e):Ms(e)}Mr.exports=$s});var m=n((S2,Lr)=>{"use strict";function Us(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Lr.exports=Us});var Ee=n((R2,kr)=>{"use strict";var Ws=X(),Hs=m(),Ys="[object AsyncFunction]",Vs="[object Function]",zs="[object GeneratorFunction]",Ks="[object Proxy]";function Xs(e){if(!Hs(e))return!1;var t=Ws(e);return t==Vs||t==zs||t==Ys||t==Ks}kr.exports=Xs});var Ur=n((q2,$r)=>{"use strict";var Js=A(),Zs=Js["__core-js_shared__"];$r.exports=Zs});var Yr=n((I2,Hr)=>{"use strict";var tt=Ur(),Wr=function(){var e=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qs(e){return!!Wr&&Wr in e}Hr.exports=Qs});var zr=n((j2,Vr)=>{"use strict";var eo=Function.prototype,to=eo.toString;function ro(e){if(e!=null){try{return to.call(e)}catch{}try{return e+""}catch{}}return""}Vr.exports=ro});var Xr=n((N2,Kr)=>{"use strict";var uo=Ee(),io=Yr(),Do=m(),no=zr(),so=/[\\^$.*+?()[\]{}|]/g,oo=/^\[object .+?Constructor\]$/,ao=Function.prototype,Fo=Object.prototype,lo=ao.toString,co=Fo.hasOwnProperty,fo=RegExp("^"+lo.call(co).replace(so,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function po(e){if(!Do(e)||io(e))return!1;var t=uo(e)?fo:oo;return t.test(no(e))}Kr.exports=po});var Zr=n((G2,Jr)=>{"use strict";function ho(e,t){return e?.[t]}Jr.exports=ho});var ge=n((M2,Qr)=>{"use strict";var Co=Xr(),Eo=Zr();function go(e,t){var r=Eo(e,t);return Co(r)?r:void 0}Qr.exports=go});var rt=n((L2,eu)=>{"use strict";var _o=ge(),mo=A(),Bo=_o(mo,"Map");eu.exports=Bo});var J=n((k2,tu)=>{"use strict";var Ao=ge(),bo=Ao(Object,"create");tu.exports=bo});var iu=n(($2,uu)=>{"use strict";var ru=J();function vo(){this.__data__=ru?ru(null):{},this.size=0}uu.exports=vo});var nu=n((U2,Du)=>{"use strict";function xo(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Du.exports=xo});var ou=n((W2,su)=>{"use strict";var yo=J(),To="__lodash_hash_undefined__",Oo=Object.prototype,wo=Oo.hasOwnProperty;function Po(e){var t=this.__data__;if(yo){var r=t[e];return r===To?void 0:r}return wo.call(t,e)?t[e]:void 0}su.exports=Po});var Fu=n((H2,au)=>{"use strict";var So=J(),Ro=Object.prototype,qo=Ro.hasOwnProperty;function Io(e){var t=this.__data__;return So?t[e]!==void 0:qo.call(t,e)}au.exports=Io});var cu=n((Y2,lu)=>{"use strict";var jo=J(),No="__lodash_hash_undefined__";function Go(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jo&&t===void 0?No:t,this}lu.exports=Go});var pu=n((V2,fu)=>{"use strict";var Mo=iu(),Lo=nu(),ko=ou(),$o=Fu(),Uo=cu();function w(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var u=e[t];this.set(u[0],u[1])}}w.prototype.clear=Mo;w.prototype.delete=Lo;w.prototype.get=ko;w.prototype.has=$o;w.prototype.set=Uo;fu.exports=w});var Eu=n((z2,Cu)=>{"use strict";var hu=pu(),Wo=z(),Ho=rt();function Yo(){this.size=0,this.__data__={hash:new hu,map:new(Ho||Wo),string:new hu}}Cu.exports=Yo});var du=n((K2,gu)=>{"use strict";function Vo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}gu.exports=Vo});var Z=n((X2,_u)=>{"use strict";var zo=du();function Ko(e,t){var r=e.__data__;return zo(t)?r[typeof t=="string"?"string":"hash"]:r.map}_u.exports=Ko});var Bu=n((J2,mu)=>{"use strict";var Xo=Z();function Jo(e){var t=Xo(this,e).delete(e);return this.size-=t?1:0,t}mu.exports=Jo});var bu=n((Z2,Au)=>{"use strict";var Zo=Z();function Qo(e){return Zo(this,e).get(e)}Au.exports=Qo});var xu=n((Q2,vu)=>{"use strict";var ea=Z();function ta(e){return ea(this,e).has(e)}vu.exports=ta});var Tu=n((ef,yu)=>{"use strict";var ra=Z();function ua(e,t){var r=ra(this,e),u=r.size;return r.set(e,t),this.size+=r.size==u?0:1,this}yu.exports=ua});var wu=n((tf,Ou)=>{"use strict";var ia=Eu(),Da=Bu(),na=bu(),sa=xu(),oa=Tu();function P(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var u=e[t];this.set(u[0],u[1])}}P.prototype.clear=ia;P.prototype.delete=Da;P.prototype.get=na;P.prototype.has=sa;P.prototype.set=oa;Ou.exports=P});var Su=n((rf,Pu)=>{"use strict";var aa=z(),Fa=rt(),la=wu(),ca=200;function fa(e,t){var r=this.__data__;if(r instanceof aa){var u=r.__data__;if(!Fa||u.length<ca-1)return u.push([e,t]),this.size=++r.size,this;r=this.__data__=new la(u)}return r.set(e,t),this.size=r.size,this}Pu.exports=fa});var qu=n((uf,Ru)=>{"use strict";var pa=z(),ha=mr(),Ca=Ar(),Ea=vr(),ga=yr(),da=Su();function S(e){var t=this.__data__=new pa(e);this.size=t.size}S.prototype.clear=ha;S.prototype.delete=Ca;S.prototype.get=Ea;S.prototype.has=ga;S.prototype.set=da;Ru.exports=S});var ut=n((Df,Iu)=>{"use strict";var _a=ge(),ma=function(){try{var e=_a(Object,"defineProperty");return e({},"",{}),e}catch{}}();Iu.exports=ma});var de=n((nf,Nu)=>{"use strict";var ju=ut();function Ba(e,t,r){t=="__proto__"&&ju?ju(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Nu.exports=Ba});var it=n((sf,Gu)=>{"use strict";var Aa=de(),ba=Y();function va(e,t,r){(r!==void 0&&!ba(e[t],r)||r===void 0&&!(t in e))&&Aa(e,t,r)}Gu.exports=va});var Lu=n((of,Mu)=>{"use strict";function xa(e){return function(t,r,u){for(var i=-1,D=Object(t),o=u(t),s=o.length;s--;){var a=o[e?s:++i];if(r(D[a],a,D)===!1)break}return t}}Mu.exports=xa});var $u=n((af,ku)=>{"use strict";var ya=Lu(),Ta=ya();ku.exports=Ta});var Vu=n((Q,R)=>{"use strict";var Oa=A(),Yu=typeof Q=="object"&&Q&&!Q.nodeType&&Q,Uu=Yu&&typeof R=="object"&&R&&!R.nodeType&&R,wa=Uu&&Uu.exports===Yu,Wu=wa?Oa.Buffer:void 0,Hu=Wu?Wu.allocUnsafe:void 0;function Pa(e,t){if(t)return e.slice();var r=e.length,u=Hu?Hu(r):new e.constructor(r);return e.copy(u),u}R.exports=Pa});var Ku=n((Ff,zu)=>{"use strict";var Sa=A(),Ra=Sa.Uint8Array;zu.exports=Ra});var Zu=n((lf,Ju)=>{"use strict";var Xu=Ku();function qa(e){var t=new e.constructor(e.byteLength);return new Xu(t).set(new Xu(e)),t}Ju.exports=qa});var ei=n((cf,Qu)=>{"use strict";var Ia=Zu();function ja(e,t){var r=t?Ia(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}Qu.exports=ja});var ri=n((ff,ti)=>{"use strict";function Na(e,t){var r=-1,u=e.length;for(t||(t=Array(u));++r<u;)t[r]=e[r];return t}ti.exports=Na});var Di=n((pf,ii)=>{"use strict";var Ga=m(),ui=Object.create,Ma=function(){function e(){}return function(t){if(!Ga(t))return{};if(ui)return ui(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();ii.exports=Ma});var si=n((hf,ni)=>{"use strict";function La(e,t){return function(r){return e(t(r))}}ni.exports=La});var Dt=n((Cf,oi)=>{"use strict";var ka=si(),$a=ka(Object.getPrototypeOf,Object);oi.exports=$a});var nt=n((Ef,ai)=>{"use strict";var Ua=Object.prototype;function Wa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ua;return e===r}ai.exports=Wa});var li=n((gf,Fi)=>{"use strict";var Ha=Di(),Ya=Dt(),Va=nt();function za(e){return typeof e.constructor=="function"&&!Va(e)?Ha(Ya(e)):{}}Fi.exports=za});var q=n((df,ci)=>{"use strict";function Ka(e){return e!=null&&typeof e=="object"}ci.exports=Ka});var pi=n((_f,fi)=>{"use strict";var Xa=X(),Ja=q(),Za="[object Arguments]";function Qa(e){return Ja(e)&&Xa(e)==Za}fi.exports=Qa});var st=n((mf,Ei)=>{"use strict";var hi=pi(),e0=q(),Ci=Object.prototype,t0=Ci.hasOwnProperty,r0=Ci.propertyIsEnumerable,u0=hi(function(){return arguments}())?hi:function(e){return e0(e)&&t0.call(e,"callee")&&!r0.call(e,"callee")};Ei.exports=u0});var ot=n((Bf,gi)=>{"use strict";var i0=Array.isArray;gi.exports=i0});var at=n((Af,di)=>{"use strict";var D0=9007199254740991;function n0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D0}di.exports=n0});var _e=n((bf,_i)=>{"use strict";var s0=Ee(),o0=at();function a0(e){return e!=null&&o0(e.length)&&!s0(e)}_i.exports=a0});var Bi=n((vf,mi)=>{"use strict";var F0=_e(),l0=q();function c0(e){return l0(e)&&F0(e)}mi.exports=c0});var bi=n((xf,Ai)=>{"use strict";function f0(){return!1}Ai.exports=f0});var Ft=n((ee,I)=>{"use strict";var p0=A(),h0=bi(),yi=typeof ee=="object"&&ee&&!ee.nodeType&&ee,vi=yi&&typeof I=="object"&&I&&!I.nodeType&&I,C0=vi&&vi.exports===yi,xi=C0?p0.Buffer:void 0,E0=xi?xi.isBuffer:void 0,g0=E0||h0;I.exports=g0});var wi=n((yf,Oi)=>{"use strict";var d0=X(),_0=Dt(),m0=q(),B0="[object Object]",A0=Function.prototype,b0=Object.prototype,Ti=A0.toString,v0=b0.hasOwnProperty,x0=Ti.call(Object);function y0(e){if(!m0(e)||d0(e)!=B0)return!1;var t=_0(e);if(t===null)return!0;var r=v0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ti.call(r)==x0}Oi.exports=y0});var Si=n((Tf,Pi)=>{"use strict";var T0=X(),O0=at(),w0=q(),P0="[object Arguments]",S0="[object Array]",R0="[object Boolean]",q0="[object Date]",I0="[object Error]",j0="[object Function]",N0="[object Map]",G0="[object Number]",M0="[object Object]",L0="[object RegExp]",k0="[object Set]",$0="[object String]",U0="[object WeakMap]",W0="[object ArrayBuffer]",H0="[object DataView]",Y0="[object Float32Array]",V0="[object Float64Array]",z0="[object Int8Array]",K0="[object Int16Array]",X0="[object Int32Array]",J0="[object Uint8Array]",Z0="[object Uint8ClampedArray]",Q0="[object Uint16Array]",eF="[object Uint32Array]",F={};F[Y0]=F[V0]=F[z0]=F[K0]=F[X0]=F[J0]=F[Z0]=F[Q0]=F[eF]=!0;F[P0]=F[S0]=F[W0]=F[R0]=F[H0]=F[q0]=F[I0]=F[j0]=F[N0]=F[G0]=F[M0]=F[L0]=F[k0]=F[$0]=F[U0]=!1;function tF(e){return w0(e)&&O0(e.length)&&!!F[T0(e)]}Pi.exports=tF});var qi=n((Of,Ri)=>{"use strict";function rF(e){return function(t){return e(t)}}Ri.exports=rF});var ji=n((te,j)=>{"use strict";var uF=Qe(),Ii=typeof te=="object"&&te&&!te.nodeType&&te,re=Ii&&typeof j=="object"&&j&&!j.nodeType&&j,iF=re&&re.exports===Ii,lt=iF&&uF.process,DF=function(){try{var e=re&&re.require&&re.require("util").types;return e||lt&<.binding&<.binding("util")}catch{}}();j.exports=DF});var ct=n((wf,Mi)=>{"use strict";var nF=Si(),sF=qi(),Ni=ji(),Gi=Ni&&Ni.isTypedArray,oF=Gi?sF(Gi):nF;Mi.exports=oF});var ft=n((Pf,Li)=>{"use strict";function aF(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}Li.exports=aF});var $i=n((Sf,ki)=>{"use strict";var FF=de(),lF=Y(),cF=Object.prototype,fF=cF.hasOwnProperty;function pF(e,t,r){var u=e[t];(!(fF.call(e,t)&&lF(u,r))||r===void 0&&!(t in e))&&FF(e,t,r)}ki.exports=pF});var Wi=n((Rf,Ui)=>{"use strict";var hF=$i(),CF=de();function EF(e,t,r,u){var i=!r;r||(r={});for(var D=-1,o=t.length;++D<o;){var s=t[D],a=u?u(r[s],e[s],s,r,e):void 0;a===void 0&&(a=e[s]),i?CF(r,s,a):hF(r,s,a)}return r}Ui.exports=EF});var Yi=n((qf,Hi)=>{"use strict";function gF(e,t){for(var r=-1,u=Array(e);++r<e;)u[r]=t(r);return u}Hi.exports=gF});var pt=n((If,Vi)=>{"use strict";var dF=9007199254740991,_F=/^(?:0|[1-9]\d*)$/;function mF(e,t){var r=typeof e;return t=t??dF,!!t&&(r=="number"||r!="symbol"&&_F.test(e))&&e>-1&&e%1==0&&e<t}Vi.exports=mF});var Ki=n((jf,zi)=>{"use strict";var BF=Yi(),AF=st(),bF=ot(),vF=Ft(),xF=pt(),yF=ct(),TF=Object.prototype,OF=TF.hasOwnProperty;function wF(e,t){var r=bF(e),u=!r&&AF(e),i=!r&&!u&&vF(e),D=!r&&!u&&!i&&yF(e),o=r||u||i||D,s=o?BF(e.length,String):[],a=s.length;for(var f in e)(t||OF.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||D&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||xF(f,a)))&&s.push(f);return s}zi.exports=wF});var Ji=n((Nf,Xi)=>{"use strict";function PF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}Xi.exports=PF});var Qi=n((Gf,Zi)=>{"use strict";var SF=m(),RF=nt(),qF=Ji(),IF=Object.prototype,jF=IF.hasOwnProperty;function NF(e){if(!SF(e))return qF(e);var t=RF(e),r=[];for(var u in e)u=="constructor"&&(t||!jF.call(e,u))||r.push(u);return r}Zi.exports=NF});var ht=n((Mf,eD)=>{"use strict";var GF=Ki(),MF=Qi(),LF=_e();function kF(e){return LF(e)?GF(e,!0):MF(e)}eD.exports=kF});var rD=n((Lf,tD)=>{"use strict";var $F=Wi(),UF=ht();function WF(e){return $F(e,UF(e))}tD.exports=WF});var oD=n((kf,sD)=>{"use strict";var uD=it(),HF=Vu(),YF=ei(),VF=ri(),zF=li(),iD=st(),DD=ot(),KF=Bi(),XF=Ft(),JF=Ee(),ZF=m(),QF=wi(),el=ct(),nD=ft(),tl=rD();function rl(e,t,r,u,i,D,o){var s=nD(e,r),a=nD(t,r),f=o.get(a);if(f){uD(e,r,f);return}var p=D?D(s,a,r+"",e,t,o):void 0,G=p===void 0;if(G){var Ae=DD(a),be=!Ae&&XF(a),gt=!Ae&&!be&&el(a);p=a,Ae||be||gt?DD(s)?p=s:KF(s)?p=VF(s):be?(G=!1,p=HF(a,!0)):gt?(G=!1,p=YF(a,!0)):p=[]:QF(a)||iD(a)?(p=s,iD(s)?p=tl(s):(!ZF(s)||JF(s))&&(p=zF(a))):G=!1}G&&(o.set(a,p),i(p,a,u,D,o),o.delete(a)),uD(e,r,p)}sD.exports=rl});var lD=n(($f,FD)=>{"use strict";var ul=qu(),il=it(),Dl=$u(),nl=oD(),sl=m(),ol=ht(),al=ft();function aD(e,t,r,u,i){e!==t&&Dl(t,function(D,o){if(i||(i=new ul),sl(D))nl(e,t,o,r,aD,u,i);else{var s=u?u(al(e,o),D,o+"",e,t,i):void 0;s===void 0&&(s=D),il(e,o,s)}},ol)}FD.exports=aD});var Ct=n((Uf,cD)=>{"use strict";function Fl(e){return e}cD.exports=Fl});var pD=n((Wf,fD)=>{"use strict";function ll(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}fD.exports=ll});var ED=n((Hf,CD)=>{"use strict";var cl=pD(),hD=Math.max;function fl(e,t,r){return t=hD(t===void 0?e.length-1:t,0),function(){for(var u=arguments,i=-1,D=hD(u.length-t,0),o=Array(D);++i<D;)o[i]=u[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=u[i];return s[t]=r(o),cl(e,this,s)}}CD.exports=fl});var dD=n((Yf,gD)=>{"use strict";function pl(e){return function(){return e}}gD.exports=pl});var BD=n((Vf,mD)=>{"use strict";var hl=dD(),_D=ut(),Cl=Ct(),El=_D?function(e,t){return _D(e,"toString",{configurable:!0,enumerable:!1,value:hl(t),writable:!0})}:Cl;mD.exports=El});var bD=n((zf,AD)=>{"use strict";var gl=800,dl=16,_l=Date.now;function ml(e){var t=0,r=0;return function(){var u=_l(),i=dl-(u-r);if(r=u,i>0){if(++t>=gl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}AD.exports=ml});var xD=n((Kf,vD)=>{"use strict";var Bl=BD(),Al=bD(),bl=Al(Bl);vD.exports=bl});var TD=n((Xf,yD)=>{"use strict";var vl=Ct(),xl=ED(),yl=xD();function Tl(e,t){return yl(xl(e,t,vl),e+"")}yD.exports=Tl});var wD=n((Jf,OD)=>{"use strict";var Ol=Y(),wl=_e(),Pl=pt(),Sl=m();function Rl(e,t,r){if(!Sl(r))return!1;var u=typeof t;return(u=="number"?wl(r)&&Pl(t,r.length):u=="string"&&t in r)?Ol(r[t],e):!1}OD.exports=Rl});var SD=n((Zf,PD)=>{"use strict";var ql=TD(),Il=wD();function jl(e){return ql(function(t,r){var u=-1,i=r.length,D=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(D=e.length>3&&typeof D=="function"?(i--,D):void 0,o&&Il(r[0],r[1],o)&&(D=i<3?void 0:D,i=1),t=Object(t);++u<i;){var s=r[u];s&&e(t,s,u,D)}return t})}PD.exports=jl});var qD=n((Qf,RD)=>{"use strict";var Nl=lD(),Gl=SD(),Ml=Gl(function(e,t,r){Nl(e,t,r)});RD.exports=Ml});import{resolve as ND}from"path";import{existsSync as GD}from"fs";import{Command as Vl}from"commander";import{FeScriptContext as Ul}from"@qlover/scripts-context";import Wl from"inquirer";var HD=(e,t)=>typeof e!="string"||e.trim()===""?`${t} is required`:!0;function _t(e,t){return[{type:"input",name:"projectName",message:"Project name",validate:r=>HD(r,"Project name")},{type:"list",name:"template",message:"Template name",choices:[...e,...t]}]}function mt(e){return[{type:"checkbox",name:"subPackages",message:"Sub package names",choices:e}]}import{join as N}from"path";import ce from"process";var Bt=(e=0)=>t=>`\x1B[${t+e}m`,At=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,bt=(e=0)=>(t,r,u)=>`\x1B[${38+e};2;${t};${r};${u}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Zl=Object.keys(l.modifier),YD=Object.keys(l.color),VD=Object.keys(l.bgColor),Ql=[...YD,...VD];function zD(){let e=new Map;for(let[t,r]of Object.entries(l)){for(let[u,i]of Object.entries(r))l[u]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[u]=l[u],e.set(i[0],i[1]);Object.defineProperty(l,t,{value:r,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=Bt(),l.color.ansi256=At(),l.color.ansi16m=bt(),l.bgColor.ansi=Bt(10),l.bgColor.ansi256=At(10),l.bgColor.ansi16m=bt(10),Object.defineProperties(l,{rgbToAnsi256:{value(t,r,u){return t===r&&r===u?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(u/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[u]=r;u.length===3&&(u=[...u].map(D=>D+D).join(""));let i=Number.parseInt(u,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>l.rgbToAnsi256(...l.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,u,i;if(t>=232)r=((t-232)*10+8)/255,u=r,i=r;else{t-=16;let s=t%36;r=Math.floor(t/36)/5,u=Math.floor(s/6)/5,i=s%6/5}let D=Math.max(r,u,i)*2;if(D===0)return 30;let o=30+(Math.round(i)<<2|Math.round(u)<<1|Math.round(r));return D===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,u)=>l.ansi256ToAnsi(l.rgbToAnsi256(t,r,u)),enumerable:!1},hexToAnsi:{value:t=>l.ansi256ToAnsi(l.hexToAnsi256(t)),enumerable:!1}}),l}var KD=zD(),C=KD;import ve from"process";import XD from"os";import vt from"tty";function h(e,t=globalThis.Deno?globalThis.Deno.args:ve.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",u=t.indexOf(r+e),i=t.indexOf("--");return u!==-1&&(i===-1||u<i)}var{env:c}=ve,ie;h("no-color")||h("no-colors")||h("color=false")||h("color=never")?ie=0:(h("color")||h("colors")||h("color=true")||h("color=always"))&&(ie=1);function JD(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function ZD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function QD(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let u=JD();u!==void 0&&(ie=u);let i=r?ie:u;if(i===0)return 0;if(r){if(h("color=16m")||h("color=full")||h("color=truecolor"))return 3;if(h("color=256"))return 2}if("TF_BUILD"in c&&"AGENT_NAME"in c)return 1;if(e&&!t&&i===void 0)return 0;let D=i||0;if(c.TERM==="dumb")return D;if(ve.platform==="win32"){let o=XD.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in c)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in c)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in c)||c.CI_NAME==="codeship"?1:D;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor"||c.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in c){let o=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:D}function xt(e,t={}){let r=QD(e,{streamIsTTY:e&&e.isTTY,...t});return ZD(r)}var en={stdout:xt({isTTY:vt.isatty(1)}),stderr:xt({isTTY:vt.isatty(2)})},yt=en;function Tt(e,t,r){let u=e.indexOf(t);if(u===-1)return e;let i=t.length,D=0,o="";do o+=e.slice(D,u)+t+r,D=u+i,u=e.indexOf(t,D);while(u!==-1);return o+=e.slice(D),o}function Ot(e,t,r,u){let i=0,D="";do{let o=e[u-1]==="\r";D+=e.slice(i,o?u-1:u)+t+(o?`\r
|
|
3
|
+
`:`
|
|
4
|
+
`)+r,i=u+1,u=e.indexOf(`
|
|
5
|
+
`,i)}while(u!==-1);return D+=e.slice(i),D}var{stdout:wt,stderr:Pt}=yt,xe=Symbol("GENERATOR"),b=Symbol("STYLER"),M=Symbol("IS_EMPTY"),St=["ansi","ansi","ansi256","ansi16m"],v=Object.create(null),tn=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=wt?wt.level:0;e.level=t.level===void 0?r:t.level};var rn=e=>{let t=(...r)=>r.join(" ");return tn(t,e),Object.setPrototypeOf(t,L.prototype),t};function L(e){return rn(e)}Object.setPrototypeOf(L.prototype,Function.prototype);for(let[e,t]of Object.entries(C))v[e]={get(){let r=De(this,Te(t.open,t.close,this[b]),this[M]);return Object.defineProperty(this,e,{value:r}),r}};v.visible={get(){let e=De(this,this[b],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ye=(e,t,r,...u)=>e==="rgb"?t==="ansi16m"?C[r].ansi16m(...u):t==="ansi256"?C[r].ansi256(C.rgbToAnsi256(...u)):C[r].ansi(C.rgbToAnsi(...u)):e==="hex"?ye("rgb",t,r,...C.hexToRgb(...u)):C[r][e](...u),un=["rgb","hex","ansi256"];for(let e of un){v[e]={get(){let{level:r}=this;return function(...u){let i=Te(ye(e,St[r],"color",...u),C.color.close,this[b]);return De(this,i,this[M])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);v[t]={get(){let{level:r}=this;return function(...u){let i=Te(ye(e,St[r],"bgColor",...u),C.bgColor.close,this[b]);return De(this,i,this[M])}}}}var Dn=Object.defineProperties(()=>{},{...v,level:{enumerable:!0,get(){return this[xe].level},set(e){this[xe].level=e}}}),Te=(e,t,r)=>{let u,i;return r===void 0?(u=e,i=t):(u=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:u,closeAll:i,parent:r}},De=(e,t,r)=>{let u=(...i)=>nn(u,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(u,Dn),u[xe]=e,u[b]=t,u[M]=r,u},nn=(e,t)=>{if(e.level<=0||!t)return e[M]?"":t;let r=e[b];if(r===void 0)return t;let{openAll:u,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Tt(t,r.close,r.open),r=r.parent;let D=t.indexOf(`
|
|
6
|
+
`);return D!==-1&&(t=Ot(t,i,u,D)),u+t+i};Object.defineProperties(L.prototype,v);var sn=L(),ac=L({level:Pt?Pt.level:0});var E=sn;import Gt from"process";import ae from"process";var on=(e,t,r,u)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(e,r),D=Object.getOwnPropertyDescriptor(t,r);!an(i,D)&&u||Object.defineProperty(e,r,D)},an=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Fn=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},ln=(e,t)=>`/* Wrapped ${e}*/
|
|
7
|
+
${t}`,cn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),fn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),pn=(e,t,r)=>{let u=r===""?"":`with ${r.trim()}() `,i=ln.bind(null,u,t.toString());Object.defineProperty(i,"name",fn);let{writable:D,enumerable:o,configurable:s}=cn;Object.defineProperty(e,"toString",{value:i,writable:D,enumerable:o,configurable:s})};function Oe(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:u}=e;for(let i of Reflect.ownKeys(t))on(e,t,i,r);return Fn(e,t),pn(e,t,u),e}var ne=new WeakMap,Rt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,u=0,i=e.displayName||e.name||"<anonymous>",D=function(...o){if(ne.set(D,++u),u===1)r=e.apply(this,o),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Oe(D,e),ne.set(D,u),D};Rt.callCount=e=>{if(!ne.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ne.get(e)};var qt=Rt;var B=[];B.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&B.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&B.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var se=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",we=Symbol.for("signal-exit emitter"),Pe=globalThis,hn=Object.defineProperty.bind(Object),Se=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Pe[we])return Pe[we];hn(Pe,we,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let u=this.listeners[t],i=u.indexOf(r);i!==-1&&(i===0&&u.length===1?u.length=0:u.splice(i,1))}emit(t,r,u){if(this.emitted[t])return!1;this.emitted[t]=!0;let i=!1;for(let D of this.listeners[t])i=D(r,u)===!0||i;return t==="exit"&&(i=this.emit("afterExit",r,u)||i),i}},oe=class{},Cn=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),Re=class extends oe{onExit(){return()=>{}}load(){}unload(){}},qe=class extends oe{#n=Ie.platform==="win32"?"SIGINT":"SIGHUP";#r=new Se;#e;#i;#c;#t={};#D=!1;constructor(t){super(),this.#e=t,this.#t={};for(let r of B)this.#t[r]=()=>{let u=this.#e.listeners(r),{count:i}=this.#r,D=t;if(typeof D.__signal_exit_emitter__=="object"&&typeof D.__signal_exit_emitter__.count=="number"&&(i+=D.__signal_exit_emitter__.count),u.length===i){this.unload();let o=this.#r.emit("exit",null,r),s=r==="SIGHUP"?this.#n:r;o||t.kill(t.pid,s)}};this.#c=t.reallyExit,this.#i=t.emit}onExit(t,r){if(!se(this.#e))return()=>{};this.#D===!1&&this.load();let u=r?.alwaysLast?"afterExit":"exit";return this.#r.on(u,t),()=>{this.#r.removeListener(u,t),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#D){this.#D=!0,this.#r.count+=1;for(let t of B)try{let r=this.#t[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#f(t,...r),this.#e.reallyExit=t=>this.#u(t)}}unload(){this.#D&&(this.#D=!1,B.forEach(t=>{let r=this.#t[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#i,this.#e.reallyExit=this.#c,this.#r.count-=1)}#u(t){return se(this.#e)?(this.#e.exitCode=t||0,this.#r.emit("exit",this.#e.exitCode,null),this.#c.call(this.#e,this.#e.exitCode)):0}#f(t,...r){let u=this.#i;if(t==="exit"&&se(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let i=u.call(this.#e,t,...r);return this.#r.emit("exit",this.#e.exitCode,null),i}else return u.call(this.#e,t,...r)}},Ie=globalThis.process,{onExit:It,load:Cc,unload:Ec}=Cn(se(Ie)?new qe(Ie):new Re);var jt=ae.stderr.isTTY?ae.stderr:ae.stdout.isTTY?ae.stdout:void 0,En=jt?qt(()=>{It(()=>{jt.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Nt=En;var Fe=!1,x={};x.show=(e=Gt.stderr)=>{e.isTTY&&(Fe=!1,e.write("\x1B[?25h"))};x.hide=(e=Gt.stderr)=>{e.isTTY&&(Nt(),Fe=!0,e.write("\x1B[?25l"))};x.toggle=(e,t)=>{e!==void 0&&(Fe=e),Fe?x.show(t):x.hide(t)};var je=x;var U=ue(Ne(),1);import g from"process";function Ge(){return g.platform!=="win32"?g.env.TERM!=="linux":!!g.env.CI||!!g.env.WT_SESSION||!!g.env.TERMINUS_SUBLIME||g.env.ConEmuTask==="{cmd::Cmder}"||g.env.TERM_PROGRAM==="Terminus-Sublime"||g.env.TERM_PROGRAM==="vscode"||g.env.TERM==="xterm-256color"||g.env.TERM==="alacritty"||g.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var dn={info:E.blue("\u2139"),success:E.green("\u2714"),warning:E.yellow("\u26A0"),error:E.red("\u2716")},_n={info:E.blue("i"),success:E.green("\u221A"),warning:E.yellow("\u203C"),error:E.red("\xD7")},mn=Ge()?dn:_n,k=mn;function Me({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var Bn=Me();function $(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Bn,"")}function $t(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Ut(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Wt(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function An(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Ht(e,{ambiguousAsWide:t=!1}={}){return An(e),Ut(e)||Wt(e)||t&&$t(e)?2:1}var Yt=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var bn=new Intl.Segmenter,vn=/^\p{Default_Ignorable_Code_Point}$/u;function Le(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:u=!1}=t;if(u||(e=$(e)),e.length===0)return 0;let i=0,D={ambiguousAsWide:!r};for(let{segment:o}of bn.segment(e)){let s=o.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!vn.test(o)){if(Yt().test(o)){i+=2;continue}i+=Ht(s,D)}}return i}function ke({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import Vt from"process";function $e(){let{env:e}=Vt,{TERM:t,TERM_PROGRAM:r}=e;return Vt.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}import d from"process";var xn=3,Ue=class{#n=0;start(){this.#n++,this.#n===1&&this.#r()}stop(){if(this.#n<=0)throw new Error("`stop` called more times than `start`");this.#n--,this.#n===0&&this.#e()}#r(){d.platform==="win32"||!d.stdin.isTTY||(d.stdin.setRawMode(!0),d.stdin.on("data",this.#i),d.stdin.resume())}#e(){d.stdin.isTTY&&(d.stdin.off("data",this.#i),d.stdin.pause(),d.stdin.setRawMode(!1))}#i(t){t[0]===xn&&d.emit("SIGINT")}},yn=new Ue,We=yn;var Tn=ue(Ne(),1),He=class{#n=0;#r=!1;#e=0;#i=-1;#c=0;#t;#D;#u;#f;#h;#a;#F;#l;#C;#s;#o;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:ce.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#u=this.#t.stream,this.#a=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:ke({stream:this.#u}),this.#F=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,ce.env.NODE_ENV==="test"&&(this._stream=this.#u,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#n},set(r){this.#n=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#i}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#l}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#l=t,this.#p()}get interval(){return this.#h??this.#D.interval??100}get spinner(){return this.#D}set spinner(t){if(this.#i=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#D=t}else if(!$e())this.#D=U.default.line;else if(t===void 0)this.#D=U.default.dots;else if(t!=="default"&&U.default[t])this.#D=U.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#C}set text(t=""){this.#C=t,this.#p()}get prefixText(){return this.#s}set prefixText(t=""){this.#s=t,this.#p()}get suffixText(){return this.#o}set suffixText(t=""){this.#o=t,this.#p()}get isSpinning(){return this.#f!==void 0}#E(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}#g(t=this.#o,r=" "){return typeof t=="string"&&t!==""?r+t:typeof t=="function"?r+t():""}#p(){let t=this.#u.columns??80,r=this.#E(this.#s,"-"),u=this.#g(this.#o,"-"),i=" ".repeat(this.#l)+r+"--"+this.#C+"--"+u;this.#e=0;for(let D of $(i).split(`
|
|
8
|
+
`))this.#e+=Math.max(1,Math.ceil(Le(D,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#a&&!this.#F}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#F}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#F=t}frame(){let t=Date.now();(this.#i===-1||t-this.#c>=this.interval)&&(this.#i=++this.#i%this.#D.frames.length,this.#c=t);let{frames:r}=this.#D,u=r[this.#i];this.color&&(u=E[this.color](u));let i=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",D=typeof this.text=="string"?" "+this.text:"",o=typeof this.#o=="string"&&this.#o!==""?" "+this.#o:"";return i+u+D+o}clear(){if(!this.#a||!this.#u.isTTY)return this;this.#u.cursorTo(0);for(let t=0;t<this.#n;t++)t>0&&this.#u.moveCursor(0,-1),this.#u.clearLine(1);return(this.#l||this.lastIndent!==this.#l)&&this.#u.cursorTo(this.#l),this.lastIndent=this.#l,this.#n=0,this}render(){return this.#F?this:(this.clear(),this.#u.write(this.frame()),this.#n=this.#e,this)}start(t){return t&&(this.text=t),this.#F?this:this.#a?this.isSpinning?this:(this.#t.hideCursor&&je.hide(this.#u),this.#t.discardStdin&&ce.stdin.isTTY&&(this.#r=!0,We.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#u.write(`- ${this.text}
|
|
9
|
+
`),this)}stop(){return this.#a?(clearInterval(this.#f),this.#f=void 0,this.#i=0,this.clear(),this.#t.hideCursor&&je.show(this.#u),this.#t.discardStdin&&ce.stdin.isTTY&&this.#r&&(We.stop(),this.#r=!1),this):this}succeed(t){return this.stopAndPersist({symbol:k.success,text:t})}fail(t){return this.stopAndPersist({symbol:k.error,text:t})}warn(t){return this.stopAndPersist({symbol:k.warning,text:t})}info(t){return this.stopAndPersist({symbol:k.info,text:t})}stopAndPersist(t={}){if(this.#F)return this;let r=t.prefixText??this.#s,u=this.#E(r," "),i=t.symbol??" ",D=t.text??this.text,s=typeof D=="string"?(i?" ":"")+D:"",a=t.suffixText??this.#o,f=this.#g(a," "),p=u+i+s+f+`
|
|
10
|
+
`;return this.stop(),this.#u.write(p),this}};function zt(e){return new He(e)}async function Kt(e,t){let r=typeof e=="function",u=typeof e.then=="function";if(!r&&!u)throw new TypeError("Parameter `action` must be a Function or a Promise");let{successText:i,failText:D}=typeof t=="object"?t:{successText:void 0,failText:void 0},o=zt(t).start();try{let a=await(r?e(o):e);return o.succeed(i===void 0?void 0:typeof i=="string"?i:i(a)),a}catch(s){throw o.fail(D===void 0?void 0:typeof D=="string"?D:D(s)),s}}import{existsSync as Hl}from"fs";var Dr=ue(ir(),1);import{dirname as Jn,join as Ze}from"path";import{existsSync as Zn,readFileSync as Qn}from"fs";import{promises as nr}from"fs";import{existsSync as Kn,mkdirSync as Xn}from"fs";var H=class{static ensureDir(t){Kn(t)||Xn(t,{recursive:!0})}};var{copyFile:es,stat:ts}=nr,Ce=class e{constructor(t,r=e.IGNORE_FILE){this.ignoreTargetPath=t;this.ignoreFile=r}static IGNORE_FILE=".gitignore.template";getIg(t=this.ignoreTargetPath){let r=Ze(t,this.ignoreFile);if(!Zn(r))return;let D=Qn(r,"utf8").split(`
|
|
11
|
+
`).map(o=>o.trim()).filter(o=>o&&!o.startsWith("#"));return(0,Dr.default)().add(D)}async copyFiles(t,r,u,i){let D=await nr.readdir(t);await Promise.all(D.map(async o=>{let s=Ze(t,o),a=Ze(r,o);if(u&&u.ignores(o))return;if(H.ensureDir(Jn(a)),(await ts(s)).isDirectory())await this.copyFiles(s,a,u,i);else{if(i&&await i(s,a))return;await es(s,a)}}))}copyPaths({sourcePath:t,targetPath:r,copyCallback:u}){H.ensureDir(r);let i=this.getIg();return this.copyFiles(t,r,i,u)}};var ID=ue(qD(),1);import{readFileSync as Ll,writeFileSync as kl,existsSync as $l}from"fs";var me=class{constructor(){}isJSONFilePath(t){return t.endsWith(".json")||t.endsWith(".json.template")}isTemplateFilePath(t){return t.endsWith(".template")}getRealTemplateFilePath(t){return t.replace(".template","")}readFile(t){return Ll(t,"utf-8")}readJSONFile(t){return JSON.parse(this.readFile(t))}writeFile(t,r){kl(this.getRealTemplateFilePath(t),r,{encoding:"utf-8"})}replaceFile(t,r){let u=this.readFile(t);return Object.keys(r).forEach(i=>{let D=r[i];u=u.replace(new RegExp(`\\[TPL:${i}\\]`,"g"),typeof D=="string"?D:JSON.stringify(D))}),u}mergeJSONFile(t,r){let u=this.readJSONFile(t),i=(0,ID.default)(r,u);this.writeFile(t,JSON.stringify(i,null,2))}composeConfigFile(t,r,u){if(this.isTemplateFilePath(r)){let i=this.replaceFile(r,t);if(this.isJSONFilePath(r)&&this.isJSONFilePath(u)){let D=this.getRealTemplateFilePath(u);return $l(D)?(this.mergeJSONFile(D,JSON.parse(i)),!0):(this.writeFile(D,i),!0)}return this.writeFile(u,i),!0}return!1}};var jD=["pack-app"],Be=class{ora;context;subPackages;copyer;compose;constructor(t){let r=t.options?.templateRootPath;if(!r)throw new Error("template path not exit");if(!Hl(r))throw new Error("template path not exit");this.ora=Kt,this.context=new Ul(t),this.subPackages=["node-lib","react-app"],this.copyer=new Ce(N(this.context.options.configsRootPath,"_common")),this.compose=new me}get logger(){return this.context.logger}async steps(t){try{return await Wl.prompt(t)}catch(r){throw r.isTtyError,this.logger.error(r),r}}async action({label:t,task:r}){let u=r();u instanceof Promise||(u=Promise.resolve(u));let i=t;return this.ora(u,i),u}isPackageTemplate(t){return jD.includes(t)}async getGeneratorContext(){let t=_t(this.subPackages,jD),r=await this.steps(t);if(this.isPackageTemplate(r.template)){let u=mt(this.subPackages),i=await this.steps(u);Object.assign(r,i)}return r.targetPath=N(process.cwd(),r.projectName),r.releasePath=r.releasePath||"src",r}async generate(){let t=await this.getGeneratorContext();if(this.logger.debug("context is:",t,this.context.options.templateRootPath),t.subPackages){await this.action({label:"Generate Directories(subPackages)",task:async()=>{await this.generateTemplateDir(t),await this.generateSubPackages(t),await this.generateConfigs(t,t.targetPath,"_common")}});return}await this.action({label:"Generate Directory",task:async()=>{await this.generateTemplateDir(t),await this.generateConfigs(t,t.targetPath,"_common"),await this.generateConfigs(t,t.targetPath,t.template)}})}async generateConfigs(t,r,u){let i=(s,a)=>(this.logger.debug("copyCallback",s,a),this.compose.composeConfigFile(t,s,a)),{configsRootPath:D,config:o}=this.context.options;if(!o){this.logger.debug("no copy config files");return}await this.copyer.copyPaths({sourcePath:N(D,u),targetPath:r,copyCallback:i})}generateTemplateDir(t){return this.copyer.copyPaths({sourcePath:N(this.context.options.templateRootPath,t.template),targetPath:t.targetPath})}async generateSubPackages(t){let{packagesNames:r="packages",subPackages:u=[],targetPath:i=""}=t,{templateRootPath:D}=this.context.options;for(let o of u){let s=N(D,o),a=N(i,r,o);this.logger.debug("copy sub package",s,a),await this.copyer.copyPaths({sourcePath:s,targetPath:a})}}};var Et={name:"@qlover/create-app",version:"0.5.0",description:"Create a new app with a single command",private:!1,type:"module",files:["dist","package.json","README.md","CHANGELOG.md"],bin:{"create-app":"dist/index.js"},scripts:{build:"tsup","create:app":"node ./dist/index.js"},repository:{type:"git",url:"git+https://github.com/qlover/fe-base.git",directory:"packages/create-app"},homepage:"https://github.com/qlover/fe-base#readme",keywords:["create-app","fe-scripts","scripts"],author:"qlover",license:"ISC",publishConfig:{access:"public"},devDependencies:{"@qlover/logger":"workspace:*",ignore:"^7.0.3",lodash:"^4.17.21",ora:"^8.1.1"},dependencies:{"@qlover/scripts-context":"workspace:*",commander:"^13.1.0",inquirer:"^12.3.2"}};function zl(){let e=new Vl;return e.version(Et.version,"-v, --version","Show version").description(Et.description).option("-d, --dry-run","Do not touch or write anything, but show the commands").option("-V, --verbose","Show more information").option("--config","Copy config files (default: true)",!0).option("--no-config","Do not copy config files"),e.parse(),e.opts()}async function Kl(){let{dryRun:e,verbose:t,...r}=zl(),u=ND("./templates"),i=ND("./configs");GD(u)||(console.error("Template is empty!"),process.exit(1)),GD(i)||(console.error("Configs is empty!"),process.exit(1)),await new Be({dryRun:e,verbose:t,options:{...r,templateRootPath:u,configsRootPath:i}}).generate()}Kl().catch(e=>{console.error(e),process.exit(1)});
|