@skaldapp/monaco-sfc 1.1.42 → 1.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.worker.js +574 -404
- package/package.json +10 -10
package/dist/vue.worker.js
CHANGED
|
@@ -1950,7 +1950,7 @@ var require_types$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1950
1950
|
}));
|
|
1951
1951
|
//#endregion
|
|
1952
1952
|
//#region node_modules/@volar/language-core/lib/utils.js
|
|
1953
|
-
var require_utils$
|
|
1953
|
+
var require_utils$7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1954
1954
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1955
1955
|
exports.FileMap = void 0;
|
|
1956
1956
|
var FileMap = class extends Map {
|
|
@@ -2020,7 +2020,7 @@ var require_language_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2020
2020
|
__exportStar(require_editor(), exports);
|
|
2021
2021
|
__exportStar(require_linkedCodeMap(), exports);
|
|
2022
2022
|
__exportStar(require_types$3(), exports);
|
|
2023
|
-
__exportStar(require_utils$
|
|
2023
|
+
__exportStar(require_utils$7(), exports);
|
|
2024
2024
|
var source_map_2 = require_source_map();
|
|
2025
2025
|
var linkedCodeMap_1 = require_linkedCodeMap();
|
|
2026
2026
|
var defaultMapperFactory = (mappings) => new source_map_2.SourceMap(mappings);
|
|
@@ -6049,7 +6049,7 @@ var require_resolveModuleName$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6049
6049
|
}));
|
|
6050
6050
|
//#endregion
|
|
6051
6051
|
//#region node_modules/@volar/typescript/lib/node/utils.js
|
|
6052
|
-
var require_utils$
|
|
6052
|
+
var require_utils$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6053
6053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6054
6054
|
exports.getServiceScript = getServiceScript;
|
|
6055
6055
|
exports.fixupImpliedNodeFormatForFile = fixupImpliedNodeFormatForFile;
|
|
@@ -6108,7 +6108,7 @@ var require_decorateLanguageServiceHost = /* @__PURE__ */ __commonJSMin(((export
|
|
|
6108
6108
|
exports.decorateLanguageServiceHost = decorateLanguageServiceHost;
|
|
6109
6109
|
exports.searchExternalFiles = searchExternalFiles;
|
|
6110
6110
|
var resolveModuleName_1 = require_resolveModuleName$1();
|
|
6111
|
-
var utils_1 = require_utils$
|
|
6111
|
+
var utils_1 = require_utils$6();
|
|
6112
6112
|
function decorateLanguageServiceHost(ts, language, languageServiceHost) {
|
|
6113
6113
|
const pluginExtensions = language.plugins.map((plugin) => plugin.typescript?.extraFileExtensions.map((ext) => "." + ext.extension) ?? []).flat();
|
|
6114
6114
|
const scripts = /* @__PURE__ */ new Map();
|
|
@@ -6228,7 +6228,7 @@ var require_transform$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6228
6228
|
exports.toGeneratedOffsets = toGeneratedOffsets;
|
|
6229
6229
|
exports.getMappingOffset = getMappingOffset;
|
|
6230
6230
|
var language_core_1 = require_language_core$1();
|
|
6231
|
-
var utils_1 = require_utils$
|
|
6231
|
+
var utils_1 = require_utils$6();
|
|
6232
6232
|
var transformedDiagnostics = /* @__PURE__ */ new WeakMap();
|
|
6233
6233
|
var transformedSourceFile = /* @__PURE__ */ new WeakSet();
|
|
6234
6234
|
/**
|
|
@@ -6417,7 +6417,7 @@ var require_decorateProgram = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6417
6417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6418
6418
|
exports.decorateProgram = decorateProgram;
|
|
6419
6419
|
var transform_1 = require_transform$1();
|
|
6420
|
-
var utils_1 = require_utils$
|
|
6420
|
+
var utils_1 = require_utils$6();
|
|
6421
6421
|
function decorateProgram(language, program) {
|
|
6422
6422
|
const emit = program.emit;
|
|
6423
6423
|
const getSyntacticDiagnostics = program.getSyntacticDiagnostics;
|
|
@@ -6472,7 +6472,7 @@ var require_proxyCreateProgram = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6472
6472
|
var common_1 = require_common$3();
|
|
6473
6473
|
var resolveModuleName_1 = require_resolveModuleName$1();
|
|
6474
6474
|
var decorateProgram_1 = require_decorateProgram();
|
|
6475
|
-
var utils_1 = require_utils$
|
|
6475
|
+
var utils_1 = require_utils$6();
|
|
6476
6476
|
var arrayEqual = (a, b) => {
|
|
6477
6477
|
if (a.length !== b.length) return false;
|
|
6478
6478
|
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
@@ -6620,7 +6620,7 @@ var require_proxyLanguageService = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6620
6620
|
var language_core_1 = require_language_core$1();
|
|
6621
6621
|
var dedupe_1 = require_dedupe();
|
|
6622
6622
|
var transform_1 = require_transform$1();
|
|
6623
|
-
var utils_1 = require_utils$
|
|
6623
|
+
var utils_1 = require_utils$6();
|
|
6624
6624
|
var windowsPathReg = /\\/g;
|
|
6625
6625
|
/**
|
|
6626
6626
|
* Creates and returns a Proxy around the base TypeScript LanguageService.
|
|
@@ -7586,7 +7586,7 @@ var require_createProject = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7586
7586
|
exports.createLanguageServiceHost = createLanguageServiceHost;
|
|
7587
7587
|
var language_core_1 = require_language_core$1();
|
|
7588
7588
|
var path = require_path_browserify();
|
|
7589
|
-
var utils_1 = require_utils$
|
|
7589
|
+
var utils_1 = require_utils$6();
|
|
7590
7590
|
var resolveModuleName_1 = require_resolveModuleName$1();
|
|
7591
7591
|
function createLanguageServiceHost(ts, sys, language, asScriptId, projectHost) {
|
|
7592
7592
|
const pluginExtensions = language.plugins.map((plugin) => plugin.typescript?.extraFileExtensions.map((ext) => "." + ext.extension) ?? []).flat();
|
|
@@ -9647,7 +9647,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9647
9647
|
}));
|
|
9648
9648
|
//#endregion
|
|
9649
9649
|
//#region node_modules/@vue/language-core/lib/codegen/utils/index.js
|
|
9650
|
-
var require_utils$
|
|
9650
|
+
var require_utils$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9651
9651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9652
9652
|
exports.identifierRegex = exports.endOfLine = exports.newLine = void 0;
|
|
9653
9653
|
exports.getTypeScriptAST = getTypeScriptAST;
|
|
@@ -10230,6 +10230,11 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10230
10230
|
}));
|
|
10231
10231
|
//#endregion
|
|
10232
10232
|
//#region node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
|
|
10233
|
+
/**
|
|
10234
|
+
* @vue/compiler-core v3.5.34
|
|
10235
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10236
|
+
* @license MIT
|
|
10237
|
+
**/
|
|
10233
10238
|
function registerRuntimeHelpers(helpers) {
|
|
10234
10239
|
Object.getOwnPropertySymbols(helpers).forEach((s) => {
|
|
10235
10240
|
helperNameMap[s] = helpers[s];
|
|
@@ -14531,6 +14536,11 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
14531
14536
|
walkIdentifiers: () => walkIdentifiers,
|
|
14532
14537
|
warnDeprecation: () => warnDeprecation
|
|
14533
14538
|
});
|
|
14539
|
+
/**
|
|
14540
|
+
* @vue/compiler-dom v3.5.34
|
|
14541
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14542
|
+
* @license MIT
|
|
14543
|
+
**/
|
|
14534
14544
|
function decodeHtmlBrowser(raw, asAttr = false) {
|
|
14535
14545
|
if (!decoder) decoder = document.createElement("div");
|
|
14536
14546
|
if (asAttr) {
|
|
@@ -15062,7 +15072,7 @@ var require_context$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15062
15072
|
exports.createTemplateCodegenContext = createTemplateCodegenContext;
|
|
15063
15073
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
15064
15074
|
var codeFeatures_1 = require_codeFeatures();
|
|
15065
|
-
var utils_1 = require_utils$
|
|
15075
|
+
var utils_1 = require_utils$5();
|
|
15066
15076
|
var boundary_1 = require_boundary();
|
|
15067
15077
|
var commentDirectiveRegex = /^<!--\s*@vue-(?<name>[-\w]+)\b(?<content>[\s\S]*)-->$/;
|
|
15068
15078
|
/**
|
|
@@ -15464,7 +15474,7 @@ var require_interpolation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15464
15474
|
var shared_2 = require_shared$2();
|
|
15465
15475
|
var codeFeatures_1 = require_codeFeatures();
|
|
15466
15476
|
var names_1 = require_names();
|
|
15467
|
-
var utils_1 = require_utils$
|
|
15477
|
+
var utils_1 = require_utils$5();
|
|
15468
15478
|
var isLiteralWhitelisted = /* @__PURE__ */ (0, shared_1.makeMap)("true,false,null,this");
|
|
15469
15479
|
function* generateInterpolation({ typescript, setupRefs }, ctx, block, data, code, start, prefix = "", suffix = "") {
|
|
15470
15480
|
for (const segment of forEachInterpolationSegment(typescript, setupRefs, ctx, block, code, start, prefix, suffix)) {
|
|
@@ -15616,7 +15626,7 @@ var require_objectProperty = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15616
15626
|
exports.generateObjectProperty = generateObjectProperty;
|
|
15617
15627
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
15618
15628
|
var names_1 = require_names();
|
|
15619
|
-
var utils_1 = require_utils$
|
|
15629
|
+
var utils_1 = require_utils$5();
|
|
15620
15630
|
var boundary_1 = require_boundary();
|
|
15621
15631
|
var camelized_1 = require_camelized();
|
|
15622
15632
|
var stringLiteralKey_1 = require_stringLiteralKey();
|
|
@@ -16125,7 +16135,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16125
16135
|
}));
|
|
16126
16136
|
//#endregion
|
|
16127
16137
|
//#region node_modules/picomatch/lib/utils.js
|
|
16128
|
-
var require_utils$
|
|
16138
|
+
var require_utils$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16129
16139
|
var { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
16130
16140
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
16131
16141
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
@@ -16174,7 +16184,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16174
16184
|
//#endregion
|
|
16175
16185
|
//#region node_modules/picomatch/lib/scan.js
|
|
16176
16186
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16177
|
-
var utils = require_utils$
|
|
16187
|
+
var utils = require_utils$4();
|
|
16178
16188
|
var { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
16179
16189
|
var isPathSeparator = (code) => {
|
|
16180
16190
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
@@ -16462,7 +16472,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16462
16472
|
//#region node_modules/picomatch/lib/parse.js
|
|
16463
16473
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16464
16474
|
var constants = require_constants$1();
|
|
16465
|
-
var utils = require_utils$
|
|
16475
|
+
var utils = require_utils$4();
|
|
16466
16476
|
/**
|
|
16467
16477
|
* Constants
|
|
16468
16478
|
*/
|
|
@@ -17518,7 +17528,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17518
17528
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17519
17529
|
var scan = require_scan();
|
|
17520
17530
|
var parse = require_parse$1();
|
|
17521
|
-
var utils = require_utils$
|
|
17531
|
+
var utils = require_utils$4();
|
|
17522
17532
|
var constants = require_constants$1();
|
|
17523
17533
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
17524
17534
|
/**
|
|
@@ -17817,7 +17827,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17817
17827
|
//#region node_modules/picomatch/index.js
|
|
17818
17828
|
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17819
17829
|
var pico = require_picomatch$1();
|
|
17820
|
-
var utils = require_utils$
|
|
17830
|
+
var utils = require_utils$4();
|
|
17821
17831
|
function picomatch(glob, options, returnState = false) {
|
|
17822
17832
|
if (options && (options.windows === null || options.windows === void 0)) options = {
|
|
17823
17833
|
...options,
|
|
@@ -17911,7 +17921,7 @@ var require_elementEvents = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17911
17921
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
17912
17922
|
var codeFeatures_1 = require_codeFeatures();
|
|
17913
17923
|
var names_1 = require_names();
|
|
17914
|
-
var utils_1 = require_utils$
|
|
17924
|
+
var utils_1 = require_utils$5();
|
|
17915
17925
|
var boundary_1 = require_boundary();
|
|
17916
17926
|
var camelized_1 = require_camelized();
|
|
17917
17927
|
var interpolation_1 = require_interpolation();
|
|
@@ -18086,7 +18096,7 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18086
18096
|
var codeFeatures_1 = require_codeFeatures();
|
|
18087
18097
|
var inlayHints_1 = require_inlayHints();
|
|
18088
18098
|
var names_1 = require_names();
|
|
18089
|
-
var utils_1 = require_utils$
|
|
18099
|
+
var utils_1 = require_utils$5();
|
|
18090
18100
|
var boundary_1 = require_boundary();
|
|
18091
18101
|
var camelized_1 = require_camelized();
|
|
18092
18102
|
var unicode_1 = require_unicode();
|
|
@@ -18137,7 +18147,7 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18137
18147
|
}
|
|
18138
18148
|
if (prop.name === "bind" && prop.modifiers.some((m) => m.content === "prop" || m.content === "attr")) propName = propName.slice(1);
|
|
18139
18149
|
const shouldSpread = propName === "style" || propName === "class";
|
|
18140
|
-
const shouldCamelize =
|
|
18150
|
+
const shouldCamelize = getShouldCamelize(options, node, prop, propName);
|
|
18141
18151
|
const features = getPropsCodeFeatures(strictPropsCheck);
|
|
18142
18152
|
if (shouldSpread) yield `...{ `;
|
|
18143
18153
|
const token = yield* (0, boundary_1.startBoundary)("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
@@ -18163,7 +18173,7 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18163
18173
|
} else if (prop.type === CompilerDOM.NodeTypes.ATTRIBUTE) {
|
|
18164
18174
|
if (options.vueCompilerOptions.dataAttributes.some((pattern) => (0, picomatch_1.isMatch)(prop.name, pattern))) continue;
|
|
18165
18175
|
const shouldSpread = prop.name === "style" || prop.name === "class";
|
|
18166
|
-
const shouldCamelize =
|
|
18176
|
+
const shouldCamelize = getShouldCamelize(options, node, prop, prop.name);
|
|
18167
18177
|
const features = getPropsCodeFeatures(strictPropsCheck);
|
|
18168
18178
|
if (shouldSpread) yield `...{ `;
|
|
18169
18179
|
const token = yield* (0, boundary_1.startBoundary)("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
@@ -18226,8 +18236,8 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18226
18236
|
yield* (0, unicode_1.generateUnicode)(content, offset, features);
|
|
18227
18237
|
yield quote;
|
|
18228
18238
|
}
|
|
18229
|
-
function getShouldCamelize(options, prop, propName) {
|
|
18230
|
-
return (prop.type !== CompilerDOM.NodeTypes.DIRECTIVE ||
|
|
18239
|
+
function getShouldCamelize(options, node, prop, propName) {
|
|
18240
|
+
return (node.tagType === CompilerDOM.ElementTypes.COMPONENT || node.tagType === CompilerDOM.ElementTypes.SLOT) && (prop.type !== CompilerDOM.NodeTypes.DIRECTIVE || prop.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.arg.isStatic) && (0, shared_2.hyphenateAttr)(propName) === propName && !options.vueCompilerOptions.htmlAttributes.some((pattern) => (0, picomatch_1.isMatch)(propName, pattern));
|
|
18231
18241
|
}
|
|
18232
18242
|
function getPropsCodeFeatures(strictPropsCheck) {
|
|
18233
18243
|
return {
|
|
@@ -18316,7 +18326,7 @@ var require_elementDirectives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18316
18326
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
18317
18327
|
var codeFeatures_1 = require_codeFeatures();
|
|
18318
18328
|
var names_1 = require_names();
|
|
18319
|
-
var utils_1 = require_utils$
|
|
18329
|
+
var utils_1 = require_utils$5();
|
|
18320
18330
|
var boundary_1 = require_boundary();
|
|
18321
18331
|
var camelized_1 = require_camelized();
|
|
18322
18332
|
var stringLiteralKey_1 = require_stringLiteralKey();
|
|
@@ -18393,7 +18403,7 @@ var require_elementDirectives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18393
18403
|
var require_propertyAccess = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18394
18404
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18395
18405
|
exports.generatePropertyAccess = generatePropertyAccess;
|
|
18396
|
-
var utils_1 = require_utils$
|
|
18406
|
+
var utils_1 = require_utils$5();
|
|
18397
18407
|
var stringLiteralKey_1 = require_stringLiteralKey();
|
|
18398
18408
|
var interpolation_1 = require_interpolation();
|
|
18399
18409
|
function* generatePropertyAccess(options, ctx, code, offset, features) {
|
|
@@ -18447,7 +18457,7 @@ var require_styleScopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18447
18457
|
exports.generateStyleScopedClassReference = generateStyleScopedClassReference;
|
|
18448
18458
|
var codeFeatures_1 = require_codeFeatures();
|
|
18449
18459
|
var names_1 = require_names();
|
|
18450
|
-
var utils_1 = require_utils$
|
|
18460
|
+
var utils_1 = require_utils$5();
|
|
18451
18461
|
var boundary_1 = require_boundary();
|
|
18452
18462
|
var escaped_1 = require_escaped();
|
|
18453
18463
|
var classNameEscapeRegex = /([\\'])/;
|
|
@@ -18530,7 +18540,7 @@ var require_vSlot = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18530
18540
|
var collectBindings_1 = require_collectBindings();
|
|
18531
18541
|
var codeFeatures_1 = require_codeFeatures();
|
|
18532
18542
|
var names_1 = require_names();
|
|
18533
|
-
var utils_1 = require_utils$
|
|
18543
|
+
var utils_1 = require_utils$5();
|
|
18534
18544
|
var boundary_1 = require_boundary();
|
|
18535
18545
|
var interpolation_1 = require_interpolation();
|
|
18536
18546
|
var objectProperty_1 = require_objectProperty();
|
|
@@ -18661,6 +18671,7 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18661
18671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18662
18672
|
exports.generateComponent = generateComponent;
|
|
18663
18673
|
exports.generateElement = generateElement;
|
|
18674
|
+
exports.generateFragment = generateFragment;
|
|
18664
18675
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
18665
18676
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
18666
18677
|
var muggle_string_1 = require_out$1();
|
|
@@ -18668,7 +18679,7 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18668
18679
|
var codeFeatures_1 = require_codeFeatures();
|
|
18669
18680
|
var inlayHints_1 = require_inlayHints();
|
|
18670
18681
|
var names_1 = require_names();
|
|
18671
|
-
var utils_1 = require_utils$
|
|
18682
|
+
var utils_1 = require_utils$5();
|
|
18672
18683
|
var boundary_1 = require_boundary();
|
|
18673
18684
|
var camelized_1 = require_camelized();
|
|
18674
18685
|
var stringLiteralKey_1 = require_stringLiteralKey();
|
|
@@ -18854,6 +18865,19 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18854
18865
|
yield* generateStyleScopedClassReferences(options, node);
|
|
18855
18866
|
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child);
|
|
18856
18867
|
}
|
|
18868
|
+
function* generateFragment(options, ctx, node) {
|
|
18869
|
+
const [startTagOffset] = (0, shared_2.getElementTagOffsets)(node, options.template);
|
|
18870
|
+
if (node.props.length) {
|
|
18871
|
+
yield `__VLS_asFunctionalElement(__VLS_intrinsics.template)(`;
|
|
18872
|
+
const token = yield* (0, boundary_1.startBoundary)("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
18873
|
+
yield `{${utils_1.newLine}`;
|
|
18874
|
+
yield* (0, elementProps_1.generateElementProps)(options, ctx, node, node.props, options.vueCompilerOptions.checkUnknownProps);
|
|
18875
|
+
yield `}`;
|
|
18876
|
+
yield (0, boundary_1.endBoundary)(token, startTagOffset + node.tag.length);
|
|
18877
|
+
yield `)${utils_1.endOfLine}`;
|
|
18878
|
+
}
|
|
18879
|
+
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child);
|
|
18880
|
+
}
|
|
18857
18881
|
function* generateStyleScopedClassReferences({ template, typescript: ts }, node) {
|
|
18858
18882
|
for (const prop of node.props) if (prop.type === CompilerDOM.NodeTypes.ATTRIBUTE && prop.name === "class" && prop.value) {
|
|
18859
18883
|
const [text, start] = (0, shared_2.normalizeAttributeValue)(prop.value);
|
|
@@ -18969,7 +18993,7 @@ var require_slotOutlet = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18969
18993
|
var codeFeatures_1 = require_codeFeatures();
|
|
18970
18994
|
var inlayHints_1 = require_inlayHints();
|
|
18971
18995
|
var names_1 = require_names();
|
|
18972
|
-
var utils_1 = require_utils$
|
|
18996
|
+
var utils_1 = require_utils$5();
|
|
18973
18997
|
var boundary_1 = require_boundary();
|
|
18974
18998
|
var elementProps_1 = require_elementProps();
|
|
18975
18999
|
var interpolation_1 = require_interpolation();
|
|
@@ -19050,7 +19074,7 @@ var require_slotOutlet = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19050
19074
|
}));
|
|
19051
19075
|
//#endregion
|
|
19052
19076
|
//#region node_modules/@vue/language-core/lib/codegen/template/vFor.js
|
|
19053
|
-
var require_vFor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19077
|
+
var require_vFor$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19054
19078
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
19055
19079
|
if (k2 === void 0) k2 = k;
|
|
19056
19080
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -19099,7 +19123,7 @@ var require_vFor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19099
19123
|
var collectBindings_1 = require_collectBindings();
|
|
19100
19124
|
var codeFeatures_1 = require_codeFeatures();
|
|
19101
19125
|
var names_1 = require_names();
|
|
19102
|
-
var utils_1 = require_utils$
|
|
19126
|
+
var utils_1 = require_utils$5();
|
|
19103
19127
|
var interpolation_1 = require_interpolation();
|
|
19104
19128
|
var templateChild_1 = require_templateChild();
|
|
19105
19129
|
function* generateVFor(options, ctx, node) {
|
|
@@ -19124,20 +19148,9 @@ var require_vFor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19124
19148
|
yield `!)`;
|
|
19125
19149
|
} else yield `{} as any`;
|
|
19126
19150
|
yield `) {${utils_1.newLine}`;
|
|
19127
|
-
let isFragment = true;
|
|
19128
|
-
for (const argument of node.codegenNode?.children.arguments ?? []) if (argument.type === CompilerDOM.NodeTypes.JS_FUNCTION_EXPRESSION && argument.returns?.type === CompilerDOM.NodeTypes.VNODE_CALL && argument.returns.props?.type === CompilerDOM.NodeTypes.JS_OBJECT_EXPRESSION) {
|
|
19129
|
-
if (argument.returns.tag !== CompilerDOM.FRAGMENT) {
|
|
19130
|
-
isFragment = false;
|
|
19131
|
-
continue;
|
|
19132
|
-
}
|
|
19133
|
-
for (const prop of argument.returns.props.properties) if (prop.value.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && !prop.value.isStatic) {
|
|
19134
|
-
yield* (0, interpolation_1.generateInterpolation)(options, ctx, options.template, codeFeatures_1.codeFeatures.all, prop.value.content, prop.value.loc.start.offset, `(`, `)`);
|
|
19135
|
-
yield utils_1.endOfLine;
|
|
19136
|
-
}
|
|
19137
|
-
}
|
|
19138
19151
|
const { inVFor } = ctx;
|
|
19139
19152
|
ctx.inVFor = true;
|
|
19140
|
-
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child,
|
|
19153
|
+
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child, false, true);
|
|
19141
19154
|
ctx.inVFor = inVFor;
|
|
19142
19155
|
yield* endScope();
|
|
19143
19156
|
yield `}${utils_1.newLine}`;
|
|
@@ -19156,7 +19169,7 @@ var require_vFor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19156
19169
|
}));
|
|
19157
19170
|
//#endregion
|
|
19158
19171
|
//#region node_modules/@vue/language-core/lib/codegen/template/vIf.js
|
|
19159
|
-
var require_vIf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19172
|
+
var require_vIf$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19160
19173
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
19161
19174
|
if (k2 === void 0) k2 = k;
|
|
19162
19175
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -19203,12 +19216,11 @@ var require_vIf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19203
19216
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
19204
19217
|
var muggle_string_1 = require_out$1();
|
|
19205
19218
|
var codeFeatures_1 = require_codeFeatures();
|
|
19206
|
-
var utils_1 = require_utils$
|
|
19219
|
+
var utils_1 = require_utils$5();
|
|
19207
19220
|
var interpolation_1 = require_interpolation();
|
|
19208
19221
|
var templateChild_1 = require_templateChild();
|
|
19209
19222
|
function* generateVIf(options, ctx, node) {
|
|
19210
19223
|
const originalBlockConditionsLength = ctx.blockConditions.length;
|
|
19211
|
-
const isFragment = node.codegenNode && "consequent" in node.codegenNode && "tag" in node.codegenNode.consequent && node.codegenNode.consequent.tag === CompilerDOM.FRAGMENT;
|
|
19212
19224
|
for (let i = 0; i < node.branches.length; i++) {
|
|
19213
19225
|
const branch = node.branches[i];
|
|
19214
19226
|
if (i === 0) yield `if `;
|
|
@@ -19223,7 +19235,7 @@ var require_vIf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19223
19235
|
yield ` `;
|
|
19224
19236
|
}
|
|
19225
19237
|
yield `{${utils_1.newLine}`;
|
|
19226
|
-
for (const child of branch.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child, i !== 0
|
|
19238
|
+
for (const child of branch.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child, i !== 0, true);
|
|
19227
19239
|
yield `}${utils_1.newLine}`;
|
|
19228
19240
|
if (addedBlockCondition) ctx.blockConditions[ctx.blockConditions.length - 1] = `!${ctx.blockConditions[ctx.blockConditions.length - 1]}`;
|
|
19229
19241
|
}
|
|
@@ -19280,27 +19292,26 @@ var require_templateChild = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19280
19292
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
19281
19293
|
var shared_1 = require_shared$2();
|
|
19282
19294
|
var codeFeatures_1 = require_codeFeatures();
|
|
19283
|
-
var utils_1 = require_utils$
|
|
19295
|
+
var utils_1 = require_utils$5();
|
|
19284
19296
|
var element_1 = require_element();
|
|
19285
19297
|
var interpolation_1 = require_interpolation();
|
|
19286
19298
|
var slotOutlet_1 = require_slotOutlet();
|
|
19287
|
-
var vFor_1 = require_vFor();
|
|
19288
|
-
var vIf_1 = require_vIf();
|
|
19299
|
+
var vFor_1 = require_vFor$1();
|
|
19300
|
+
var vIf_1 = require_vIf$1();
|
|
19289
19301
|
var vSlot_1 = require_vSlot();
|
|
19290
|
-
function* generateTemplateChild(options, ctx, node, enterNode = true) {
|
|
19302
|
+
function* generateTemplateChild(options, ctx, node, enterNode = true, isVForChild = false) {
|
|
19291
19303
|
if (enterNode && !ctx.enter(node)) return;
|
|
19292
|
-
const cur = node;
|
|
19293
|
-
if (cur.codegenNode?.type === CompilerDOM.NodeTypes.JS_CACHE_EXPRESSION) cur.codegenNode = cur.codegenNode.value;
|
|
19294
19304
|
if (node.type === CompilerDOM.NodeTypes.ROOT) {
|
|
19295
19305
|
for (const item of collectSingleRootNodes(options, node.children)) ctx.singleRootNodes.add(item);
|
|
19296
19306
|
for (const child of node.children) yield* generateTemplateChild(options, ctx, child);
|
|
19297
|
-
} else if (node.type === CompilerDOM.NodeTypes.ELEMENT)
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
else if (node.tagType === CompilerDOM.ElementTypes.
|
|
19302
|
-
else yield* (0, element_1.generateComponent)(options, ctx, node);
|
|
19303
|
-
|
|
19307
|
+
} else if (node.type === CompilerDOM.NodeTypes.ELEMENT) if (node.tagType === CompilerDOM.ElementTypes.SLOT) yield* (0, slotOutlet_1.generateSlotOutlet)(options, ctx, node);
|
|
19308
|
+
else {
|
|
19309
|
+
const slotDir = node.props.find(CompilerDOM.isVSlot);
|
|
19310
|
+
if (node.tagType === CompilerDOM.ElementTypes.TEMPLATE && ctx.components.length && slotDir) yield* (0, vSlot_1.generateVSlot)(options, ctx, node, slotDir, ctx.components.at(-1)());
|
|
19311
|
+
else if (node.tagType === CompilerDOM.ElementTypes.TEMPLATE && isVForChild) yield* (0, element_1.generateFragment)(options, ctx, node);
|
|
19312
|
+
else if (node.tagType === CompilerDOM.ElementTypes.COMPONENT) yield* (0, element_1.generateComponent)(options, ctx, node);
|
|
19313
|
+
else yield* (0, element_1.generateElement)(options, ctx, node);
|
|
19314
|
+
}
|
|
19304
19315
|
else if (node.type === CompilerDOM.NodeTypes.COMPOUND_EXPRESSION) for (const child of node.children) {
|
|
19305
19316
|
if (typeof child !== "object") continue;
|
|
19306
19317
|
yield* generateTemplateChild(options, ctx, child, false);
|
|
@@ -19310,7 +19321,6 @@ var require_templateChild = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19310
19321
|
yield* (0, interpolation_1.generateInterpolation)(options, ctx, options.template, codeFeatures_1.codeFeatures.all, content, start, `(`, `)${utils_1.endOfLine}`);
|
|
19311
19322
|
} else if (node.type === CompilerDOM.NodeTypes.IF) yield* (0, vIf_1.generateVIf)(options, ctx, node);
|
|
19312
19323
|
else if (node.type === CompilerDOM.NodeTypes.FOR) yield* (0, vFor_1.generateVFor)(options, ctx, node);
|
|
19313
|
-
else if (node.type === CompilerDOM.NodeTypes.TEXT) {}
|
|
19314
19324
|
if (enterNode) yield* ctx.exit();
|
|
19315
19325
|
}
|
|
19316
19326
|
function* collectSingleRootNodes(options, children) {
|
|
@@ -19343,7 +19353,7 @@ var require_template$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19343
19353
|
exports.generateTemplate = generate;
|
|
19344
19354
|
var codeFeatures_1 = require_codeFeatures();
|
|
19345
19355
|
var names_1 = require_names();
|
|
19346
|
-
var utils_1 = require_utils$
|
|
19356
|
+
var utils_1 = require_utils$5();
|
|
19347
19357
|
var boundary_1 = require_boundary();
|
|
19348
19358
|
var context_1 = require_context$1();
|
|
19349
19359
|
var objectProperty_1 = require_objectProperty();
|
|
@@ -19961,14 +19971,13 @@ var require_file_md = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19961
19971
|
var buildMappings_1 = require_buildMappings();
|
|
19962
19972
|
var parseSfc_1 = require_parseSfc();
|
|
19963
19973
|
var frontmatterReg = /^---[\s\S]*?\n---(?:\r?\n|$)/;
|
|
19964
|
-
var codeblockReg = /(`{3
|
|
19965
|
-
var inlineCodeblockReg = /`[^\n`]+?`/g;
|
|
19966
|
-
var latexBlockReg = /(\${2,})[\s\S]+?\1/g;
|
|
19967
|
-
var scriptSetupReg = /\\<[\s\S]+?>\n?/g;
|
|
19974
|
+
var codeblockReg = /(`{3}|\${2})[\s\S]+?\1/g;
|
|
19968
19975
|
var codeSnippetImportReg = /^\s*<<<\s*.+/gm;
|
|
19969
|
-
var sfcBlockReg = /<(script|style)\b[
|
|
19970
|
-
var
|
|
19971
|
-
var
|
|
19976
|
+
var sfcBlockReg = /<(script|style)\b[^>]*>([\s\S]*?)<\/\1>/g;
|
|
19977
|
+
var htmlTagReg = /(?<=<\/?)([a-z][a-z0-9-]*)\b[^>]*(?=>)/gi;
|
|
19978
|
+
var interpolationReg = /(?<=\{\{)[\s\S]*?(?=\}\})/g;
|
|
19979
|
+
var inlineCodeReg = /(`{1,2})[^`]+\1/g;
|
|
19980
|
+
var angleBracketReg = /<[^\s:]*:\S*>/g;
|
|
19972
19981
|
var plugin = ({ vueCompilerOptions }) => {
|
|
19973
19982
|
return {
|
|
19974
19983
|
version: 2.2,
|
|
@@ -19980,19 +19989,27 @@ var require_file_md = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19980
19989
|
},
|
|
19981
19990
|
parseSFC2(_fileName, languageId, content) {
|
|
19982
19991
|
if (languageId !== "markdown") return;
|
|
19983
|
-
|
|
19992
|
+
for (const reg of [
|
|
19993
|
+
frontmatterReg,
|
|
19994
|
+
codeblockReg,
|
|
19995
|
+
codeSnippetImportReg
|
|
19996
|
+
]) content = content.replace(reg, (match) => " ".repeat(match.length));
|
|
19984
19997
|
const codes = [];
|
|
19985
|
-
for (const
|
|
19986
|
-
const matchText = match[0];
|
|
19998
|
+
for (const { 0: text, index } of content.matchAll(sfcBlockReg)) {
|
|
19987
19999
|
codes.push([
|
|
19988
|
-
|
|
20000
|
+
text,
|
|
19989
20001
|
void 0,
|
|
19990
|
-
|
|
20002
|
+
index
|
|
19991
20003
|
]);
|
|
19992
20004
|
codes.push("\n\n");
|
|
19993
|
-
content = content.slice(0,
|
|
20005
|
+
content = content.slice(0, index) + " ".repeat(text.length) + content.slice(index + text.length);
|
|
20006
|
+
}
|
|
20007
|
+
const ranges = [];
|
|
20008
|
+
for (const reg of [htmlTagReg, interpolationReg]) for (const { 0: text, index } of content.matchAll(reg)) ranges.push([index, index + text.length]);
|
|
20009
|
+
for (const reg of [inlineCodeReg, angleBracketReg]) for (const { 0: text, index } of content.matchAll(reg)) {
|
|
20010
|
+
if (ranges.some(([start, end]) => index >= start && index < end)) continue;
|
|
20011
|
+
content = content.slice(0, index) + " ".repeat(text.length) + content.slice(index + text.length);
|
|
19994
20012
|
}
|
|
19995
|
-
content = content.replace(inlineCodeblockReg, (match) => `\`${" ".repeat(match.length - 2)}\``).replace(angleBracketReg, (match) => " ".repeat(match.length)).replace(linkReg, (match) => " ".repeat(match.length));
|
|
19996
20013
|
codes.push("<template>\n");
|
|
19997
20014
|
codes.push([
|
|
19998
20015
|
content,
|
|
@@ -20364,12 +20381,328 @@ var require_vue_style_css = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20364
20381
|
}
|
|
20365
20382
|
}));
|
|
20366
20383
|
//#endregion
|
|
20384
|
+
//#region node_modules/@vue/language-core/lib/template/transforms/transformElement.js
|
|
20385
|
+
var require_transformElement = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20386
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20387
|
+
exports.transformElement = void 0;
|
|
20388
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20389
|
+
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
20390
|
+
var transformElement = (node, context) => {
|
|
20391
|
+
return () => {
|
|
20392
|
+
if (node.type !== compiler_dom_1.NodeTypes.ELEMENT || node.tagType === compiler_dom_1.ElementTypes.TEMPLATE) return;
|
|
20393
|
+
const isComponent = node.tagType === compiler_dom_1.ElementTypes.COMPONENT;
|
|
20394
|
+
const isSlotOutlet = node.tagType === compiler_dom_1.ElementTypes.SLOT;
|
|
20395
|
+
for (const prop of node.props) {
|
|
20396
|
+
if (prop.type !== compiler_dom_1.NodeTypes.DIRECTIVE) continue;
|
|
20397
|
+
if (prop.name === "slot") {
|
|
20398
|
+
if (!isComponent) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_SLOT_MISPLACED, prop.loc));
|
|
20399
|
+
continue;
|
|
20400
|
+
}
|
|
20401
|
+
const isVBind = prop.name === "bind";
|
|
20402
|
+
const isVOn = prop.name === "on";
|
|
20403
|
+
if (!prop.arg && (isVBind || isVOn)) {
|
|
20404
|
+
if (!prop.exp) context.onError((0, compiler_dom_1.createCompilerError)(isVBind ? compiler_dom_1.ErrorCodes.X_V_BIND_NO_EXPRESSION : compiler_dom_1.ErrorCodes.X_V_ON_NO_EXPRESSION, prop.loc));
|
|
20405
|
+
continue;
|
|
20406
|
+
}
|
|
20407
|
+
const runtimeDirectives = [];
|
|
20408
|
+
const directiveTransform = context.directiveTransforms[prop.name];
|
|
20409
|
+
if (directiveTransform) {
|
|
20410
|
+
const { needRuntime } = directiveTransform(prop, node, context);
|
|
20411
|
+
if (needRuntime) runtimeDirectives.push(prop);
|
|
20412
|
+
} else if (!(0, shared_1.isBuiltInDirective)(prop.name)) runtimeDirectives.push(prop);
|
|
20413
|
+
if (isSlotOutlet && runtimeDirectives.length) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET, prop.loc));
|
|
20414
|
+
}
|
|
20415
|
+
if (isComponent) {
|
|
20416
|
+
let hasTemplateSlots = false;
|
|
20417
|
+
let hasNamedDefaultSlot = false;
|
|
20418
|
+
const implicitDefaultChildren = [];
|
|
20419
|
+
const seenSlotNames = /* @__PURE__ */ new Set();
|
|
20420
|
+
const onComponentSlot = (0, compiler_dom_1.findDir)(node, "slot", true);
|
|
20421
|
+
for (const child of node.children) {
|
|
20422
|
+
let slotDir;
|
|
20423
|
+
if (!(0, compiler_dom_1.isTemplateNode)(child) || !(slotDir = (0, compiler_dom_1.findDir)(child, "slot", true))) {
|
|
20424
|
+
if (child.type !== compiler_dom_1.NodeTypes.COMMENT) implicitDefaultChildren.push(child);
|
|
20425
|
+
continue;
|
|
20426
|
+
}
|
|
20427
|
+
if (onComponentSlot) {
|
|
20428
|
+
context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_SLOT_MIXED_SLOT_USAGE, slotDir.loc));
|
|
20429
|
+
break;
|
|
20430
|
+
}
|
|
20431
|
+
if ((0, compiler_dom_1.findDir)(child, /^(?:if|else-if|else|for)$/, true)) continue;
|
|
20432
|
+
hasTemplateSlots = true;
|
|
20433
|
+
const staticSlotName = slotDir.arg ? (0, compiler_dom_1.isStaticExp)(slotDir.arg) ? slotDir.arg.content : void 0 : "default";
|
|
20434
|
+
if (staticSlotName) {
|
|
20435
|
+
if (seenSlotNames.has(staticSlotName)) {
|
|
20436
|
+
context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_SLOT_DUPLICATE_SLOT_NAMES, slotDir.loc));
|
|
20437
|
+
continue;
|
|
20438
|
+
}
|
|
20439
|
+
seenSlotNames.add(staticSlotName);
|
|
20440
|
+
if (staticSlotName === "default") hasNamedDefaultSlot = true;
|
|
20441
|
+
}
|
|
20442
|
+
}
|
|
20443
|
+
if (hasTemplateSlots && hasNamedDefaultSlot && implicitDefaultChildren.some((node) => node.type !== compiler_dom_1.NodeTypes.TEXT || !!node.content.trim())) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN, implicitDefaultChildren[0].loc));
|
|
20444
|
+
context.components.add(node.tag);
|
|
20445
|
+
}
|
|
20446
|
+
};
|
|
20447
|
+
};
|
|
20448
|
+
exports.transformElement = transformElement;
|
|
20449
|
+
}));
|
|
20450
|
+
//#endregion
|
|
20451
|
+
//#region node_modules/@vue/language-core/lib/template/transforms/transformText.js
|
|
20452
|
+
var require_transformText = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20453
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20454
|
+
exports.transformText = void 0;
|
|
20455
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20456
|
+
var transformText = (node) => {
|
|
20457
|
+
if (node.type === compiler_dom_1.NodeTypes.ROOT || node.type === compiler_dom_1.NodeTypes.ELEMENT || node.type === compiler_dom_1.NodeTypes.FOR || node.type === compiler_dom_1.NodeTypes.IF_BRANCH) return () => {
|
|
20458
|
+
const children = node.children;
|
|
20459
|
+
let currentContainer = void 0;
|
|
20460
|
+
for (let i = 0; i < children.length; i++) {
|
|
20461
|
+
const child = children[i];
|
|
20462
|
+
if ((0, compiler_dom_1.isText)(child)) for (let j = i + 1; j < children.length; j++) {
|
|
20463
|
+
const next = children[j];
|
|
20464
|
+
if ((0, compiler_dom_1.isText)(next)) {
|
|
20465
|
+
currentContainer ??= children[i] = (0, compiler_dom_1.createCompoundExpression)([child], child.loc);
|
|
20466
|
+
currentContainer.children.push(` + `, next);
|
|
20467
|
+
children.splice(j, 1);
|
|
20468
|
+
j--;
|
|
20469
|
+
} else {
|
|
20470
|
+
currentContainer = void 0;
|
|
20471
|
+
break;
|
|
20472
|
+
}
|
|
20473
|
+
}
|
|
20474
|
+
}
|
|
20475
|
+
};
|
|
20476
|
+
};
|
|
20477
|
+
exports.transformText = transformText;
|
|
20478
|
+
}));
|
|
20479
|
+
//#endregion
|
|
20480
|
+
//#region node_modules/@vue/language-core/lib/template/utils.js
|
|
20481
|
+
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20482
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20483
|
+
exports.createStructuralDirectiveTransform = createStructuralDirectiveTransform;
|
|
20484
|
+
exports.cloneLoc = cloneLoc;
|
|
20485
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20486
|
+
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
20487
|
+
function createStructuralDirectiveTransform(name, fn) {
|
|
20488
|
+
const matches = (0, shared_1.isString)(name) ? (n) => n === name : (n) => name.test(n);
|
|
20489
|
+
return (node, context) => {
|
|
20490
|
+
if (node.type === compiler_dom_1.NodeTypes.ELEMENT) {
|
|
20491
|
+
const { props } = node;
|
|
20492
|
+
const exitFns = [];
|
|
20493
|
+
for (let i = 0; i < props.length; i++) {
|
|
20494
|
+
const prop = props[i];
|
|
20495
|
+
if (prop.type === compiler_dom_1.NodeTypes.DIRECTIVE && matches(prop.name)) {
|
|
20496
|
+
props.splice(i, 1);
|
|
20497
|
+
i--;
|
|
20498
|
+
const onExit = fn(node, prop, context);
|
|
20499
|
+
if (onExit) exitFns.push(onExit);
|
|
20500
|
+
}
|
|
20501
|
+
}
|
|
20502
|
+
return exitFns;
|
|
20503
|
+
}
|
|
20504
|
+
};
|
|
20505
|
+
}
|
|
20506
|
+
function cloneLoc(loc) {
|
|
20507
|
+
return {
|
|
20508
|
+
start: { ...loc.start },
|
|
20509
|
+
end: { ...loc.end },
|
|
20510
|
+
source: loc.source
|
|
20511
|
+
};
|
|
20512
|
+
}
|
|
20513
|
+
}));
|
|
20514
|
+
//#endregion
|
|
20515
|
+
//#region node_modules/@vue/language-core/lib/template/transforms/vFor.js
|
|
20516
|
+
var require_vFor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20517
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20518
|
+
exports.transformFor = void 0;
|
|
20519
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20520
|
+
exports.transformFor = (0, require_utils$3().createStructuralDirectiveTransform)("for", (node, dir, context) => {
|
|
20521
|
+
if (!dir.exp) {
|
|
20522
|
+
context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_FOR_NO_EXPRESSION, dir.loc));
|
|
20523
|
+
return;
|
|
20524
|
+
}
|
|
20525
|
+
const parseResult = dir.forParseResult;
|
|
20526
|
+
if (!parseResult) {
|
|
20527
|
+
context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_FOR_MALFORMED_EXPRESSION, dir.loc));
|
|
20528
|
+
return;
|
|
20529
|
+
}
|
|
20530
|
+
const { source, value, key, index } = parseResult;
|
|
20531
|
+
const forNode = {
|
|
20532
|
+
type: compiler_dom_1.NodeTypes.FOR,
|
|
20533
|
+
loc: dir.loc,
|
|
20534
|
+
source,
|
|
20535
|
+
valueAlias: value,
|
|
20536
|
+
keyAlias: key,
|
|
20537
|
+
objectIndexAlias: index,
|
|
20538
|
+
parseResult,
|
|
20539
|
+
children: [node]
|
|
20540
|
+
};
|
|
20541
|
+
context.replaceNode(forNode);
|
|
20542
|
+
return () => {
|
|
20543
|
+
if ((0, compiler_dom_1.isTemplateNode)(node)) {
|
|
20544
|
+
for (const child of node.children) if (child.type === compiler_dom_1.NodeTypes.ELEMENT) {
|
|
20545
|
+
const key = (0, compiler_dom_1.findProp)(child, "key");
|
|
20546
|
+
if (key) {
|
|
20547
|
+
context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_FOR_TEMPLATE_KEY_PLACEMENT, key.loc));
|
|
20548
|
+
break;
|
|
20549
|
+
}
|
|
20550
|
+
}
|
|
20551
|
+
}
|
|
20552
|
+
};
|
|
20553
|
+
});
|
|
20554
|
+
}));
|
|
20555
|
+
//#endregion
|
|
20556
|
+
//#region node_modules/@vue/language-core/lib/template/transforms/vIf.js
|
|
20557
|
+
var require_vIf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20558
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20559
|
+
exports.transformIf = void 0;
|
|
20560
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20561
|
+
var utils_1 = require_utils$3();
|
|
20562
|
+
exports.transformIf = (0, utils_1.createStructuralDirectiveTransform)(/^(?:if|else-if|else)$/, (node, dir, context) => {
|
|
20563
|
+
if (dir.name !== "else" && (!dir.exp || !dir.exp.content.trim())) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_IF_NO_EXPRESSION, dir.loc));
|
|
20564
|
+
if (dir.name === "if") {
|
|
20565
|
+
const branch = createIfBranch(node, dir);
|
|
20566
|
+
const ifNode = {
|
|
20567
|
+
type: compiler_dom_1.NodeTypes.IF,
|
|
20568
|
+
loc: (0, utils_1.cloneLoc)(node.loc),
|
|
20569
|
+
branches: [branch]
|
|
20570
|
+
};
|
|
20571
|
+
context.replaceNode(ifNode);
|
|
20572
|
+
} else {
|
|
20573
|
+
const siblings = context.parent.children;
|
|
20574
|
+
const comments = [];
|
|
20575
|
+
let i = siblings.indexOf(node);
|
|
20576
|
+
while (i-- >= -1) {
|
|
20577
|
+
const sibling = siblings[i];
|
|
20578
|
+
if (sibling?.type === compiler_dom_1.NodeTypes.COMMENT) {
|
|
20579
|
+
context.removeNode(sibling);
|
|
20580
|
+
comments.unshift(sibling);
|
|
20581
|
+
continue;
|
|
20582
|
+
}
|
|
20583
|
+
if (sibling?.type === compiler_dom_1.NodeTypes.TEXT && !sibling.content.trim().length) {
|
|
20584
|
+
context.removeNode(sibling);
|
|
20585
|
+
continue;
|
|
20586
|
+
}
|
|
20587
|
+
if (sibling?.type === compiler_dom_1.NodeTypes.IF) {
|
|
20588
|
+
if (!sibling.branches.at(-1).condition) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_ELSE_NO_ADJACENT_IF, node.loc));
|
|
20589
|
+
context.removeNode();
|
|
20590
|
+
const branch = createIfBranch(node, dir);
|
|
20591
|
+
if (comments.length) branch.children.unshift(...comments);
|
|
20592
|
+
if (branch.userKey) {
|
|
20593
|
+
for (const { userKey } of sibling.branches) if (isSameKey(userKey, branch.userKey)) context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_IF_SAME_KEY, branch.userKey.loc));
|
|
20594
|
+
}
|
|
20595
|
+
sibling.branches.push(branch);
|
|
20596
|
+
(0, compiler_dom_1.traverseNode)(branch, context);
|
|
20597
|
+
context.currentNode = null;
|
|
20598
|
+
} else context.onError((0, compiler_dom_1.createCompilerError)(compiler_dom_1.ErrorCodes.X_V_ELSE_NO_ADJACENT_IF, node.loc));
|
|
20599
|
+
break;
|
|
20600
|
+
}
|
|
20601
|
+
}
|
|
20602
|
+
});
|
|
20603
|
+
function createIfBranch(node, dir) {
|
|
20604
|
+
return {
|
|
20605
|
+
type: compiler_dom_1.NodeTypes.IF_BRANCH,
|
|
20606
|
+
loc: node.loc,
|
|
20607
|
+
condition: dir.name === "else" ? void 0 : dir.exp,
|
|
20608
|
+
children: [node],
|
|
20609
|
+
userKey: (0, compiler_dom_1.findProp)(node, "key")
|
|
20610
|
+
};
|
|
20611
|
+
}
|
|
20612
|
+
function isSameKey(a, b) {
|
|
20613
|
+
if (!a || a.type !== b.type) return false;
|
|
20614
|
+
if (a.type === compiler_dom_1.NodeTypes.ATTRIBUTE) {
|
|
20615
|
+
if (a.value.content !== b.value.content) return false;
|
|
20616
|
+
} else {
|
|
20617
|
+
const exp = a.exp;
|
|
20618
|
+
const branchExp = b.exp;
|
|
20619
|
+
if (exp.type !== branchExp.type || exp.type !== compiler_dom_1.NodeTypes.SIMPLE_EXPRESSION || exp.isStatic !== branchExp.isStatic || exp.content !== branchExp.content) return false;
|
|
20620
|
+
}
|
|
20621
|
+
return true;
|
|
20622
|
+
}
|
|
20623
|
+
}));
|
|
20624
|
+
//#endregion
|
|
20625
|
+
//#region node_modules/@vue/language-core/lib/template/compile.js
|
|
20626
|
+
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20627
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20628
|
+
exports.compileTemplate = compileTemplate;
|
|
20629
|
+
var compiler_dom_1 = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports));
|
|
20630
|
+
var transformElement_1 = require_transformElement();
|
|
20631
|
+
var transformText_1 = require_transformText();
|
|
20632
|
+
var vFor_1 = require_vFor();
|
|
20633
|
+
var vIf_1 = require_vIf();
|
|
20634
|
+
function compileTemplate(source, options) {
|
|
20635
|
+
const [nodeTransforms, directiveTransforms] = (0, compiler_dom_1.getBaseTransformPreset)();
|
|
20636
|
+
const resolvedOptions = {
|
|
20637
|
+
...options,
|
|
20638
|
+
comments: true,
|
|
20639
|
+
nodeTransforms: [
|
|
20640
|
+
nodeTransforms[0],
|
|
20641
|
+
vIf_1.transformIf,
|
|
20642
|
+
vFor_1.transformFor,
|
|
20643
|
+
transformElement_1.transformElement,
|
|
20644
|
+
transformText_1.transformText,
|
|
20645
|
+
...options.nodeTransforms || []
|
|
20646
|
+
],
|
|
20647
|
+
directiveTransforms: {
|
|
20648
|
+
...directiveTransforms,
|
|
20649
|
+
...options.directiveTransforms
|
|
20650
|
+
}
|
|
20651
|
+
};
|
|
20652
|
+
const ast = (0, compiler_dom_1.parse)(source, resolvedOptions);
|
|
20653
|
+
(0, compiler_dom_1.transform)(ast, resolvedOptions);
|
|
20654
|
+
return ast;
|
|
20655
|
+
}
|
|
20656
|
+
}));
|
|
20657
|
+
//#endregion
|
|
20367
20658
|
//#region node_modules/@vue/language-core/lib/plugins/vue-template-html.js
|
|
20368
20659
|
var require_vue_template_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20660
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
20661
|
+
if (k2 === void 0) k2 = k;
|
|
20662
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20663
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
20664
|
+
enumerable: true,
|
|
20665
|
+
get: function() {
|
|
20666
|
+
return m[k];
|
|
20667
|
+
}
|
|
20668
|
+
};
|
|
20669
|
+
Object.defineProperty(o, k2, desc);
|
|
20670
|
+
}) : (function(o, m, k, k2) {
|
|
20671
|
+
if (k2 === void 0) k2 = k;
|
|
20672
|
+
o[k2] = m[k];
|
|
20673
|
+
}));
|
|
20674
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20675
|
+
Object.defineProperty(o, "default", {
|
|
20676
|
+
enumerable: true,
|
|
20677
|
+
value: v
|
|
20678
|
+
});
|
|
20679
|
+
}) : function(o, v) {
|
|
20680
|
+
o["default"] = v;
|
|
20681
|
+
});
|
|
20682
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
20683
|
+
var ownKeys = function(o) {
|
|
20684
|
+
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
20685
|
+
var ar = [];
|
|
20686
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
20687
|
+
return ar;
|
|
20688
|
+
};
|
|
20689
|
+
return ownKeys(o);
|
|
20690
|
+
};
|
|
20691
|
+
return function(mod) {
|
|
20692
|
+
if (mod && mod.__esModule) return mod;
|
|
20693
|
+
var result = {};
|
|
20694
|
+
if (mod != null) {
|
|
20695
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
20696
|
+
}
|
|
20697
|
+
__setModuleDefault(result, mod);
|
|
20698
|
+
return result;
|
|
20699
|
+
};
|
|
20700
|
+
})();
|
|
20369
20701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20702
|
+
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
20703
|
+
var compile_1 = require_compile();
|
|
20370
20704
|
var shouldAddSuffix = /(?<=<[^>/]+)$/;
|
|
20371
|
-
var plugin = (
|
|
20372
|
-
const CompilerDOM = modules["@vue/compiler-dom"];
|
|
20705
|
+
var plugin = () => {
|
|
20373
20706
|
return {
|
|
20374
20707
|
version: 2.2,
|
|
20375
20708
|
compileSFCTemplate(lang, template, options) {
|
|
@@ -20379,13 +20712,8 @@ var require_vue_template_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20379
20712
|
template += ">";
|
|
20380
20713
|
addedSuffix = true;
|
|
20381
20714
|
}
|
|
20382
|
-
const ast = CompilerDOM.parse(template, {
|
|
20383
|
-
...options,
|
|
20384
|
-
comments: true
|
|
20385
|
-
});
|
|
20386
|
-
CompilerDOM.transform(ast, options);
|
|
20387
20715
|
return {
|
|
20388
|
-
ast,
|
|
20716
|
+
ast: (0, compile_1.compileTemplate)(template, options),
|
|
20389
20717
|
code: "",
|
|
20390
20718
|
preamble: "",
|
|
20391
20719
|
__addedSuffix: addedSuffix
|
|
@@ -20428,8 +20756,6 @@ var require_vue_template_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20428
20756
|
if (node.exp && withinChangeRange(node.exp.loc) && node.name === "for") return false;
|
|
20429
20757
|
if (node.arg && !tryUpdateNode(node.arg)) return false;
|
|
20430
20758
|
if (node.exp && !tryUpdateNode(node.exp)) return false;
|
|
20431
|
-
} else if (node.type === CompilerDOM.NodeTypes.TEXT_CALL) {
|
|
20432
|
-
if (!tryUpdateNode(node.content)) return false;
|
|
20433
20759
|
} else if (node.type === CompilerDOM.NodeTypes.COMPOUND_EXPRESSION) {
|
|
20434
20760
|
for (const childNode of node.children) if (typeof childNode === "object") {
|
|
20435
20761
|
if (!tryUpdateNode(childNode)) return false;
|
|
@@ -20550,7 +20876,6 @@ var require_forEachTemplateNode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20550
20876
|
function* forEachInterpolationNode(node) {
|
|
20551
20877
|
if (node.type === CompilerDOM.NodeTypes.ROOT) for (const child of node.children) yield* forEachInterpolationNode(child);
|
|
20552
20878
|
else if (node.type === CompilerDOM.NodeTypes.ELEMENT) for (const child of node.children) yield* forEachInterpolationNode(child);
|
|
20553
|
-
else if (node.type === CompilerDOM.NodeTypes.TEXT_CALL) yield* forEachInterpolationNode(node.content);
|
|
20554
20879
|
else if (node.type === CompilerDOM.NodeTypes.COMPOUND_EXPRESSION) {
|
|
20555
20880
|
for (const child of node.children) if (typeof child === "object") yield* forEachInterpolationNode(child);
|
|
20556
20881
|
} else if (node.type === CompilerDOM.NodeTypes.INTERPOLATION) yield node;
|
|
@@ -20691,8 +21016,8 @@ var require_vue_template_inline_ts = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
20691
21016
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
20692
21017
|
var elementEvents_1 = require_elementEvents();
|
|
20693
21018
|
var templateChild_1 = require_templateChild();
|
|
20694
|
-
var vFor_1 = require_vFor();
|
|
20695
|
-
var utils_1 = require_utils$
|
|
21019
|
+
var vFor_1 = require_vFor$1();
|
|
21020
|
+
var utils_1 = require_utils$5();
|
|
20696
21021
|
var codeFeatures = { format: true };
|
|
20697
21022
|
var formatBrackets = {
|
|
20698
21023
|
normal: ["`${", "}`;"],
|
|
@@ -20780,8 +21105,7 @@ var require_vue_template_inline_ts = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
20780
21105
|
addFormatCodes(template.content.slice(start, end), start, formatBrackets.for);
|
|
20781
21106
|
}
|
|
20782
21107
|
for (const child of node.children) visit(child);
|
|
20783
|
-
} else if (node.type === CompilerDOM.NodeTypes.
|
|
20784
|
-
else if (node.type === CompilerDOM.NodeTypes.COMPOUND_EXPRESSION) {
|
|
21108
|
+
} else if (node.type === CompilerDOM.NodeTypes.COMPOUND_EXPRESSION) {
|
|
20785
21109
|
for (const childNode of node.children) if (typeof childNode === "object") visit(childNode);
|
|
20786
21110
|
} else if (node.type === CompilerDOM.NodeTypes.INTERPOLATION) {
|
|
20787
21111
|
const [content, start] = (0, templateChild_1.parseInterpolationNode)(node, template.content);
|
|
@@ -20861,11 +21185,7 @@ var require_system = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20861
21185
|
else dep.subs = newLink;
|
|
20862
21186
|
}
|
|
20863
21187
|
function unlink(link, sub = link.sub) {
|
|
20864
|
-
const dep = link
|
|
20865
|
-
const prevDep = link.prevDep;
|
|
20866
|
-
const nextDep = link.nextDep;
|
|
20867
|
-
const nextSub = link.nextSub;
|
|
20868
|
-
const prevSub = link.prevSub;
|
|
21188
|
+
const { dep, prevDep, nextDep, nextSub, prevSub } = link;
|
|
20869
21189
|
if (nextDep !== void 0) nextDep.prevDep = prevDep;
|
|
20870
21190
|
else sub.depsTail = prevDep;
|
|
20871
21191
|
if (prevDep !== void 0) prevDep.nextDep = nextDep;
|
|
@@ -20876,14 +21196,16 @@ var require_system = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20876
21196
|
else if ((dep.subs = nextSub) === void 0) unwatched(dep);
|
|
20877
21197
|
return nextDep;
|
|
20878
21198
|
}
|
|
20879
|
-
function propagate(link) {
|
|
21199
|
+
function propagate(link, innerWrite) {
|
|
20880
21200
|
let next = link.nextSub;
|
|
20881
21201
|
let stack;
|
|
20882
21202
|
top: do {
|
|
20883
21203
|
const sub = link.sub;
|
|
20884
21204
|
let flags = sub.flags;
|
|
20885
|
-
if (!(flags & 60))
|
|
20886
|
-
|
|
21205
|
+
if (!(flags & 60)) {
|
|
21206
|
+
sub.flags = flags | 32;
|
|
21207
|
+
if (innerWrite) sub.flags |= 8;
|
|
21208
|
+
} else if (!(flags & 12)) flags = 0;
|
|
20887
21209
|
else if (!(flags & 4)) sub.flags = flags & -9 | 32;
|
|
20888
21210
|
else if (!(flags & 48) && isValidLink(link, sub)) {
|
|
20889
21211
|
sub.flags = flags | 40;
|
|
@@ -20928,13 +21250,13 @@ var require_system = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20928
21250
|
const flags = dep.flags;
|
|
20929
21251
|
if (sub.flags & 16) dirty = true;
|
|
20930
21252
|
else if ((flags & 17) === 17) {
|
|
21253
|
+
const subs = dep.subs;
|
|
20931
21254
|
if (update(dep)) {
|
|
20932
|
-
const subs = dep.subs;
|
|
20933
21255
|
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
20934
21256
|
dirty = true;
|
|
20935
21257
|
}
|
|
20936
21258
|
} else if ((flags & 33) === 33) {
|
|
20937
|
-
|
|
21259
|
+
stack = {
|
|
20938
21260
|
value: link,
|
|
20939
21261
|
prev: stack
|
|
20940
21262
|
};
|
|
@@ -20951,15 +21273,12 @@ var require_system = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20951
21273
|
}
|
|
20952
21274
|
}
|
|
20953
21275
|
while (checkDepth--) {
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
if (hasMultipleSubs) {
|
|
20957
|
-
link = stack.value;
|
|
20958
|
-
stack = stack.prev;
|
|
20959
|
-
} else link = firstSub;
|
|
21276
|
+
link = stack.value;
|
|
21277
|
+
stack = stack.prev;
|
|
20960
21278
|
if (dirty) {
|
|
21279
|
+
const subs = sub.subs;
|
|
20961
21280
|
if (update(sub)) {
|
|
20962
|
-
if (
|
|
21281
|
+
if (subs.nextSub !== void 0) shallowPropagate(subs);
|
|
20963
21282
|
sub = link.sub;
|
|
20964
21283
|
continue;
|
|
20965
21284
|
}
|
|
@@ -20972,7 +21291,7 @@ var require_system = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20972
21291
|
continue top;
|
|
20973
21292
|
}
|
|
20974
21293
|
}
|
|
20975
|
-
return dirty;
|
|
21294
|
+
return dirty && !!sub.flags;
|
|
20976
21295
|
} while (true);
|
|
20977
21296
|
}
|
|
20978
21297
|
function shallowPropagate(link) {
|
|
@@ -21014,7 +21333,9 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21014
21333
|
exports.effectScope = effectScope;
|
|
21015
21334
|
exports.trigger = trigger;
|
|
21016
21335
|
var system_js_1 = require_system();
|
|
21336
|
+
var HasChildEffect = 64;
|
|
21017
21337
|
var cycle = 0;
|
|
21338
|
+
var runDepth = 0;
|
|
21018
21339
|
var batchDepth = 0;
|
|
21019
21340
|
var notifyIndex = 0;
|
|
21020
21341
|
var queuedLength = 0;
|
|
@@ -21022,8 +21343,10 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21022
21343
|
var queued = [];
|
|
21023
21344
|
var { link, unlink, propagate, checkDirty, shallowPropagate } = (0, system_js_1.createReactiveSystem)({
|
|
21024
21345
|
update(node) {
|
|
21025
|
-
if (
|
|
21026
|
-
|
|
21346
|
+
if ("getter" in node) return updateComputed(node);
|
|
21347
|
+
if ("currentValue" in node) return updateSignal(node);
|
|
21348
|
+
node.flags = 1;
|
|
21349
|
+
return true;
|
|
21027
21350
|
},
|
|
21028
21351
|
notify(effect) {
|
|
21029
21352
|
let insertIndex = queuedLength;
|
|
@@ -21042,12 +21365,13 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21042
21365
|
}
|
|
21043
21366
|
},
|
|
21044
21367
|
unwatched(node) {
|
|
21045
|
-
if (
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
}
|
|
21368
|
+
if ("getter" in node) {
|
|
21369
|
+
if (node.depsTail !== void 0) {
|
|
21370
|
+
node.flags = 17;
|
|
21371
|
+
disposeAllDepsInReverse(node);
|
|
21372
|
+
}
|
|
21373
|
+
} else if ("currentValue" in node) {} else if ("fn" in node) effectOper.call(node);
|
|
21374
|
+
else effectScopeOper.call(node);
|
|
21051
21375
|
}
|
|
21052
21376
|
});
|
|
21053
21377
|
function getActiveSub() {
|
|
@@ -21102,6 +21426,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21102
21426
|
function effect(fn) {
|
|
21103
21427
|
const e = {
|
|
21104
21428
|
fn,
|
|
21429
|
+
cleanup: void 0,
|
|
21105
21430
|
subs: void 0,
|
|
21106
21431
|
subsTail: void 0,
|
|
21107
21432
|
deps: void 0,
|
|
@@ -21109,10 +21434,15 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21109
21434
|
flags: 6
|
|
21110
21435
|
};
|
|
21111
21436
|
const prevSub = setActiveSub(e);
|
|
21112
|
-
if (prevSub !== void 0)
|
|
21437
|
+
if (prevSub !== void 0) {
|
|
21438
|
+
link(e, prevSub, 0);
|
|
21439
|
+
prevSub.flags |= HasChildEffect;
|
|
21440
|
+
}
|
|
21113
21441
|
try {
|
|
21114
|
-
|
|
21442
|
+
++runDepth;
|
|
21443
|
+
e.cleanup = e.fn();
|
|
21115
21444
|
} finally {
|
|
21445
|
+
--runDepth;
|
|
21116
21446
|
activeSub = prevSub;
|
|
21117
21447
|
e.flags &= -5;
|
|
21118
21448
|
}
|
|
@@ -21124,10 +21454,13 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21124
21454
|
depsTail: void 0,
|
|
21125
21455
|
subs: void 0,
|
|
21126
21456
|
subsTail: void 0,
|
|
21127
|
-
flags:
|
|
21457
|
+
flags: 1
|
|
21128
21458
|
};
|
|
21129
21459
|
const prevSub = setActiveSub(e);
|
|
21130
|
-
if (prevSub !== void 0)
|
|
21460
|
+
if (prevSub !== void 0) {
|
|
21461
|
+
link(e, prevSub, 0);
|
|
21462
|
+
prevSub.flags |= HasChildEffect;
|
|
21463
|
+
}
|
|
21131
21464
|
try {
|
|
21132
21465
|
fn();
|
|
21133
21466
|
} finally {
|
|
@@ -21146,14 +21479,14 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21146
21479
|
fn();
|
|
21147
21480
|
} finally {
|
|
21148
21481
|
activeSub = prevSub;
|
|
21482
|
+
sub.flags = 0;
|
|
21149
21483
|
let link = sub.deps;
|
|
21150
21484
|
while (link !== void 0) {
|
|
21151
21485
|
const dep = link.dep;
|
|
21152
21486
|
link = unlink(link, sub);
|
|
21153
21487
|
const subs = dep.subs;
|
|
21154
21488
|
if (subs !== void 0) {
|
|
21155
|
-
|
|
21156
|
-
propagate(subs);
|
|
21489
|
+
propagate(subs, !!runDepth);
|
|
21157
21490
|
shallowPropagate(subs);
|
|
21158
21491
|
}
|
|
21159
21492
|
}
|
|
@@ -21161,11 +21494,20 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21161
21494
|
}
|
|
21162
21495
|
}
|
|
21163
21496
|
function updateComputed(c) {
|
|
21164
|
-
|
|
21497
|
+
if (c.flags & HasChildEffect) {
|
|
21498
|
+
let link = c.depsTail;
|
|
21499
|
+
while (link !== void 0) {
|
|
21500
|
+
const prev = link.prevDep;
|
|
21501
|
+
const dep = link.dep;
|
|
21502
|
+
if (!("getter" in dep) && !("currentValue" in dep)) unlink(link, c);
|
|
21503
|
+
link = prev;
|
|
21504
|
+
}
|
|
21505
|
+
}
|
|
21165
21506
|
c.depsTail = void 0;
|
|
21166
21507
|
c.flags = 5;
|
|
21167
21508
|
const prevSub = setActiveSub(c);
|
|
21168
21509
|
try {
|
|
21510
|
+
++cycle;
|
|
21169
21511
|
const oldValue = c.value;
|
|
21170
21512
|
return oldValue !== (c.value = c.getter(oldValue));
|
|
21171
21513
|
} finally {
|
|
@@ -21181,18 +21523,33 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21181
21523
|
function run(e) {
|
|
21182
21524
|
const flags = e.flags;
|
|
21183
21525
|
if (flags & 16 || flags & 32 && checkDirty(e.deps, e)) {
|
|
21184
|
-
|
|
21526
|
+
if (flags & HasChildEffect) {
|
|
21527
|
+
let link = e.depsTail;
|
|
21528
|
+
while (link !== void 0) {
|
|
21529
|
+
const prev = link.prevDep;
|
|
21530
|
+
const dep = link.dep;
|
|
21531
|
+
if (!("getter" in dep) && !("currentValue" in dep)) unlink(link, e);
|
|
21532
|
+
link = prev;
|
|
21533
|
+
}
|
|
21534
|
+
}
|
|
21535
|
+
if (e.cleanup) {
|
|
21536
|
+
runCleanup(e);
|
|
21537
|
+
if (!e.flags) return;
|
|
21538
|
+
}
|
|
21185
21539
|
e.depsTail = void 0;
|
|
21186
21540
|
e.flags = 6;
|
|
21187
21541
|
const prevSub = setActiveSub(e);
|
|
21188
21542
|
try {
|
|
21189
|
-
|
|
21543
|
+
++cycle;
|
|
21544
|
+
++runDepth;
|
|
21545
|
+
e.cleanup = e.fn();
|
|
21190
21546
|
} finally {
|
|
21547
|
+
--runDepth;
|
|
21191
21548
|
activeSub = prevSub;
|
|
21192
21549
|
e.flags &= -5;
|
|
21193
21550
|
purgeDeps(e);
|
|
21194
21551
|
}
|
|
21195
|
-
} else e.flags = 2;
|
|
21552
|
+
} else if (e.deps !== void 0) e.flags = 2 | flags & HasChildEffect;
|
|
21196
21553
|
}
|
|
21197
21554
|
function flush() {
|
|
21198
21555
|
try {
|
|
@@ -21238,7 +21595,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21238
21595
|
this.flags = 17;
|
|
21239
21596
|
const subs = this.subs;
|
|
21240
21597
|
if (subs !== void 0) {
|
|
21241
|
-
propagate(subs);
|
|
21598
|
+
propagate(subs, !!runDepth);
|
|
21242
21599
|
if (!batchDepth) flush();
|
|
21243
21600
|
}
|
|
21244
21601
|
}
|
|
@@ -21249,27 +21606,40 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21249
21606
|
if (subs !== void 0) shallowPropagate(subs);
|
|
21250
21607
|
}
|
|
21251
21608
|
}
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
if (sub.flags & 3) {
|
|
21255
|
-
link(this, sub, cycle);
|
|
21256
|
-
break;
|
|
21257
|
-
}
|
|
21258
|
-
sub = sub.subs?.sub;
|
|
21259
|
-
}
|
|
21609
|
+
const sub = activeSub;
|
|
21610
|
+
if (sub !== void 0) link(this, sub, cycle);
|
|
21260
21611
|
return this.currentValue;
|
|
21261
21612
|
}
|
|
21262
21613
|
}
|
|
21614
|
+
function runCleanup(e) {
|
|
21615
|
+
const cleanup = e.cleanup;
|
|
21616
|
+
e.cleanup = void 0;
|
|
21617
|
+
const prevSub = activeSub;
|
|
21618
|
+
activeSub = void 0;
|
|
21619
|
+
try {
|
|
21620
|
+
cleanup();
|
|
21621
|
+
} finally {
|
|
21622
|
+
activeSub = prevSub;
|
|
21623
|
+
}
|
|
21624
|
+
}
|
|
21263
21625
|
function effectOper() {
|
|
21264
21626
|
effectScopeOper.call(this);
|
|
21627
|
+
if (this.cleanup) runCleanup(this);
|
|
21265
21628
|
}
|
|
21266
21629
|
function effectScopeOper() {
|
|
21267
|
-
this.depsTail = void 0;
|
|
21268
21630
|
this.flags = 0;
|
|
21269
|
-
|
|
21631
|
+
disposeAllDepsInReverse(this);
|
|
21270
21632
|
const sub = this.subs;
|
|
21271
21633
|
if (sub !== void 0) unlink(sub);
|
|
21272
21634
|
}
|
|
21635
|
+
function disposeAllDepsInReverse(sub) {
|
|
21636
|
+
let link = sub.depsTail;
|
|
21637
|
+
while (link !== void 0) {
|
|
21638
|
+
const prev = link.prevDep;
|
|
21639
|
+
unlink(link, sub);
|
|
21640
|
+
link = prev;
|
|
21641
|
+
}
|
|
21642
|
+
}
|
|
21273
21643
|
function purgeDeps(sub) {
|
|
21274
21644
|
const depsTail = sub.depsTail;
|
|
21275
21645
|
let dep = depsTail !== void 0 ? depsTail.nextDep : sub.deps;
|
|
@@ -21281,7 +21651,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21281
21651
|
var require_localTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21282
21652
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21283
21653
|
exports.getLocalTypesGenerator = getLocalTypesGenerator;
|
|
21284
|
-
var utils_1 = require_utils$
|
|
21654
|
+
var utils_1 = require_utils$5();
|
|
21285
21655
|
function getLocalTypesGenerator(vueCompilerOptions) {
|
|
21286
21656
|
const used = /* @__PURE__ */ new Set();
|
|
21287
21657
|
const WithDefaults = defineHelper(`__VLS_WithDefaults`, () => `
|
|
@@ -21417,7 +21787,7 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21417
21787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21418
21788
|
exports.generateIntersectMerge = generateIntersectMerge;
|
|
21419
21789
|
exports.generateSpreadMerge = generateSpreadMerge;
|
|
21420
|
-
var index_1 = require_utils$
|
|
21790
|
+
var index_1 = require_utils$5();
|
|
21421
21791
|
function* generateIntersectMerge(generates) {
|
|
21422
21792
|
yield* generates[0];
|
|
21423
21793
|
for (let i = 1; i < generates.length; i++) {
|
|
@@ -21445,7 +21815,7 @@ var require_component = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21445
21815
|
exports.generateComponent = generateComponent;
|
|
21446
21816
|
var codeFeatures_1 = require_codeFeatures();
|
|
21447
21817
|
var names_1 = require_names();
|
|
21448
|
-
var utils_1 = require_utils$
|
|
21818
|
+
var utils_1 = require_utils$5();
|
|
21449
21819
|
var merge_1 = require_merge();
|
|
21450
21820
|
function* generateComponent(options, ctx, scriptSetup, scriptSetupRanges) {
|
|
21451
21821
|
yield `(await import('${options.vueCompilerOptions.lib}')).defineComponent({${utils_1.newLine}`;
|
|
@@ -21533,7 +21903,7 @@ var require_scriptSetup$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21533
21903
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
21534
21904
|
var codeFeatures_1 = require_codeFeatures();
|
|
21535
21905
|
var names_1 = require_names();
|
|
21536
|
-
var utils_1 = require_utils$
|
|
21906
|
+
var utils_1 = require_utils$5();
|
|
21537
21907
|
var boundary_1 = require_boundary();
|
|
21538
21908
|
var camelized_1 = require_camelized();
|
|
21539
21909
|
var transform_1 = require_transform();
|
|
@@ -21818,7 +22188,7 @@ var require_template = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21818
22188
|
exports.generateTemplate = generateTemplate;
|
|
21819
22189
|
var codeFeatures_1 = require_codeFeatures();
|
|
21820
22190
|
var names_1 = require_names();
|
|
21821
|
-
var utils_1 = require_utils$
|
|
22191
|
+
var utils_1 = require_utils$5();
|
|
21822
22192
|
var merge_1 = require_merge();
|
|
21823
22193
|
function* generateTemplate(options, ctx, selfType) {
|
|
21824
22194
|
yield* generateSetupExposed(options, ctx);
|
|
@@ -21955,7 +22325,7 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21955
22325
|
var path = __importStar(require_path_browserify());
|
|
21956
22326
|
var codeFeatures_1 = require_codeFeatures();
|
|
21957
22327
|
var names_1 = require_names();
|
|
21958
|
-
var utils_1 = require_utils$
|
|
22328
|
+
var utils_1 = require_utils$5();
|
|
21959
22329
|
var boundary_1 = require_boundary();
|
|
21960
22330
|
var context_1 = require_context();
|
|
21961
22331
|
var scriptSetup_1 = require_scriptSetup$1();
|
|
@@ -22089,7 +22459,7 @@ var require_common$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22089
22459
|
exports.generateClassProperty = generateClassProperty;
|
|
22090
22460
|
exports.generateStyleImports = generateStyleImports;
|
|
22091
22461
|
var codeFeatures_1 = require_codeFeatures();
|
|
22092
|
-
var utils_1 = require_utils$
|
|
22462
|
+
var utils_1 = require_utils$5();
|
|
22093
22463
|
var boundary_1 = require_boundary();
|
|
22094
22464
|
function* generateClassProperty(source, classNameWithDot, offset, propertyType) {
|
|
22095
22465
|
yield `${utils_1.newLine} & { `;
|
|
@@ -22144,7 +22514,7 @@ var require_modules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22144
22514
|
exports.generateStyleModules = generateStyleModules;
|
|
22145
22515
|
var codeFeatures_1 = require_codeFeatures();
|
|
22146
22516
|
var names_1 = require_names();
|
|
22147
|
-
var utils_1 = require_utils$
|
|
22517
|
+
var utils_1 = require_utils$5();
|
|
22148
22518
|
var common_1 = require_common$2();
|
|
22149
22519
|
function* generateStyleModules({ styles, vueCompilerOptions }, ctx) {
|
|
22150
22520
|
const styleModules = styles.filter((style) => style.module);
|
|
@@ -22179,7 +22549,7 @@ var require_scopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22179
22549
|
exports.generateStyleScopedClasses = generateStyleScopedClasses;
|
|
22180
22550
|
var names_1 = require_names();
|
|
22181
22551
|
var styleScopedClasses_1 = require_styleScopedClasses();
|
|
22182
|
-
var utils_1 = require_utils$
|
|
22552
|
+
var utils_1 = require_utils$5();
|
|
22183
22553
|
var common_1 = require_common$2();
|
|
22184
22554
|
function* generateStyleScopedClasses({ vueCompilerOptions, styles }) {
|
|
22185
22555
|
const { resolveStyleClassNames, resolveStyleImports } = vueCompilerOptions;
|
|
@@ -22210,7 +22580,7 @@ var require_style = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22210
22580
|
var scopedClasses_1 = require_scopedClasses();
|
|
22211
22581
|
var context_1 = require_context$1();
|
|
22212
22582
|
var interpolation_1 = require_interpolation();
|
|
22213
|
-
var utils_1 = require_utils$
|
|
22583
|
+
var utils_1 = require_utils$5();
|
|
22214
22584
|
function generate(options) {
|
|
22215
22585
|
const ctx = (0, context_1.createTemplateCodegenContext)();
|
|
22216
22586
|
const codeGenerator = generateWorker(options, ctx);
|
|
@@ -23155,246 +23525,12 @@ var require_embeddedCodes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23155
23525
|
}
|
|
23156
23526
|
}));
|
|
23157
23527
|
//#endregion
|
|
23158
|
-
//#region node_modules/@vue/language-core/lib/virtualCode/normalize.js
|
|
23159
|
-
var require_normalize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23160
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
23161
|
-
if (k2 === void 0) k2 = k;
|
|
23162
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23163
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
23164
|
-
enumerable: true,
|
|
23165
|
-
get: function() {
|
|
23166
|
-
return m[k];
|
|
23167
|
-
}
|
|
23168
|
-
};
|
|
23169
|
-
Object.defineProperty(o, k2, desc);
|
|
23170
|
-
}) : (function(o, m, k, k2) {
|
|
23171
|
-
if (k2 === void 0) k2 = k;
|
|
23172
|
-
o[k2] = m[k];
|
|
23173
|
-
}));
|
|
23174
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
23175
|
-
Object.defineProperty(o, "default", {
|
|
23176
|
-
enumerable: true,
|
|
23177
|
-
value: v
|
|
23178
|
-
});
|
|
23179
|
-
}) : function(o, v) {
|
|
23180
|
-
o["default"] = v;
|
|
23181
|
-
});
|
|
23182
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
23183
|
-
var ownKeys = function(o) {
|
|
23184
|
-
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
23185
|
-
var ar = [];
|
|
23186
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23187
|
-
return ar;
|
|
23188
|
-
};
|
|
23189
|
-
return ownKeys(o);
|
|
23190
|
-
};
|
|
23191
|
-
return function(mod) {
|
|
23192
|
-
if (mod && mod.__esModule) return mod;
|
|
23193
|
-
var result = {};
|
|
23194
|
-
if (mod != null) {
|
|
23195
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
23196
|
-
}
|
|
23197
|
-
__setModuleDefault(result, mod);
|
|
23198
|
-
return result;
|
|
23199
|
-
};
|
|
23200
|
-
})();
|
|
23201
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23202
|
-
exports.normalizeTemplateAST = normalizeTemplateAST;
|
|
23203
|
-
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
23204
|
-
var forEachTemplateNode_1 = require_forEachTemplateNode();
|
|
23205
|
-
function normalizeTemplateAST(root) {
|
|
23206
|
-
const transformContext = {
|
|
23207
|
-
onError: () => {},
|
|
23208
|
-
helperString: (str) => str.toString(),
|
|
23209
|
-
replaceNode: () => {},
|
|
23210
|
-
cacheHandlers: false,
|
|
23211
|
-
prefixIdentifiers: false,
|
|
23212
|
-
scopes: {
|
|
23213
|
-
vFor: 0,
|
|
23214
|
-
vOnce: 0,
|
|
23215
|
-
vPre: 0,
|
|
23216
|
-
vSlot: 0
|
|
23217
|
-
},
|
|
23218
|
-
expressionPlugins: ["typescript"]
|
|
23219
|
-
};
|
|
23220
|
-
for (const { children, codegenNode, props } of (0, forEachTemplateNode_1.forEachElementNode)(root)) {
|
|
23221
|
-
for (let i = 0; i < children.length; i++) {
|
|
23222
|
-
const child = children[i];
|
|
23223
|
-
if (child.type !== CompilerDOM.NodeTypes.ELEMENT) continue;
|
|
23224
|
-
const forNode = getVForNode(child, transformContext);
|
|
23225
|
-
if (forNode) {
|
|
23226
|
-
children[i] = forNode;
|
|
23227
|
-
continue;
|
|
23228
|
-
}
|
|
23229
|
-
const ifNode = getVIfNode(child, transformContext);
|
|
23230
|
-
if (ifNode) {
|
|
23231
|
-
const normalized = normalizeIfBranch(ifNode, children, i);
|
|
23232
|
-
children.splice(i, normalized.end - i + 1, normalized.node);
|
|
23233
|
-
continue;
|
|
23234
|
-
}
|
|
23235
|
-
}
|
|
23236
|
-
if (codegenNode && "props" in codegenNode && codegenNode.props && "properties" in codegenNode.props) {
|
|
23237
|
-
for (const p of codegenNode.props.properties) if (p.key.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && p.key.content === "key" && !p.key.isHandlerKey && !p.key.loc.source && p.value.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && p.value.constType === CompilerDOM.ConstantTypes.NOT_CONSTANT) {
|
|
23238
|
-
const argOffset = root.loc.source.slice(0, p.value.loc.start.offset).lastIndexOf("key");
|
|
23239
|
-
props.push({
|
|
23240
|
-
type: CompilerDOM.NodeTypes.DIRECTIVE,
|
|
23241
|
-
name: "bind",
|
|
23242
|
-
exp: p.value,
|
|
23243
|
-
loc: p.loc,
|
|
23244
|
-
arg: {
|
|
23245
|
-
...p.key,
|
|
23246
|
-
loc: {
|
|
23247
|
-
start: {
|
|
23248
|
-
line: -1,
|
|
23249
|
-
column: -1,
|
|
23250
|
-
offset: argOffset
|
|
23251
|
-
},
|
|
23252
|
-
end: {
|
|
23253
|
-
line: -1,
|
|
23254
|
-
column: -1,
|
|
23255
|
-
offset: argOffset + 3
|
|
23256
|
-
},
|
|
23257
|
-
source: "key"
|
|
23258
|
-
}
|
|
23259
|
-
},
|
|
23260
|
-
modifiers: []
|
|
23261
|
-
});
|
|
23262
|
-
break;
|
|
23263
|
-
}
|
|
23264
|
-
}
|
|
23265
|
-
}
|
|
23266
|
-
}
|
|
23267
|
-
function normalizeIfBranch(ifNode, children, start) {
|
|
23268
|
-
let end = start;
|
|
23269
|
-
let comments = [];
|
|
23270
|
-
for (let i = start + 1; i < children.length; i++) {
|
|
23271
|
-
const sibling = children[i];
|
|
23272
|
-
if (sibling.type === CompilerDOM.NodeTypes.COMMENT) {
|
|
23273
|
-
comments.push(sibling);
|
|
23274
|
-
continue;
|
|
23275
|
-
}
|
|
23276
|
-
if (sibling.type === CompilerDOM.NodeTypes.TEXT && !sibling.content.trim()) continue;
|
|
23277
|
-
const elseBranch = getVElseDirective(sibling);
|
|
23278
|
-
if (elseBranch) {
|
|
23279
|
-
const branch = createIfBranch({
|
|
23280
|
-
...elseBranch.element,
|
|
23281
|
-
props: elseBranch.element.props.filter((prop) => prop !== elseBranch.directive)
|
|
23282
|
-
}, elseBranch.directive);
|
|
23283
|
-
if (comments.length) branch.children = [...comments, ...branch.children];
|
|
23284
|
-
ifNode.branches.push(branch);
|
|
23285
|
-
comments = [];
|
|
23286
|
-
end = i;
|
|
23287
|
-
continue;
|
|
23288
|
-
}
|
|
23289
|
-
break;
|
|
23290
|
-
}
|
|
23291
|
-
return {
|
|
23292
|
-
node: ifNode,
|
|
23293
|
-
end
|
|
23294
|
-
};
|
|
23295
|
-
}
|
|
23296
|
-
function createIfBranch(node, dir) {
|
|
23297
|
-
const isTemplateIf = node.tagType === CompilerDOM.ElementTypes.TEMPLATE;
|
|
23298
|
-
return {
|
|
23299
|
-
type: CompilerDOM.NodeTypes.IF_BRANCH,
|
|
23300
|
-
loc: node.loc,
|
|
23301
|
-
condition: dir.name === "else" ? void 0 : dir.exp,
|
|
23302
|
-
children: isTemplateIf && !CompilerDOM.findDir(node, "for") && !CompilerDOM.findDir(node, "slot") ? node.children : [node],
|
|
23303
|
-
userKey: CompilerDOM.findProp(node, "key"),
|
|
23304
|
-
isTemplateIf
|
|
23305
|
-
};
|
|
23306
|
-
}
|
|
23307
|
-
function getVElseDirective(node) {
|
|
23308
|
-
if (node.type !== CompilerDOM.NodeTypes.ELEMENT) return;
|
|
23309
|
-
const directive = node.props.find((prop) => prop.type === CompilerDOM.NodeTypes.DIRECTIVE && (prop.name === "else-if" || prop.name === "else"));
|
|
23310
|
-
if (directive) return {
|
|
23311
|
-
element: node,
|
|
23312
|
-
directive
|
|
23313
|
-
};
|
|
23314
|
-
}
|
|
23315
|
-
function getVForNode(node, transformContext) {
|
|
23316
|
-
const forDirective = node.props.find((prop) => prop.type === CompilerDOM.NodeTypes.DIRECTIVE && prop.name === "for");
|
|
23317
|
-
if (forDirective) {
|
|
23318
|
-
let forNode;
|
|
23319
|
-
CompilerDOM.processFor(node, forDirective, transformContext, (_forNode) => {
|
|
23320
|
-
forNode = { ..._forNode };
|
|
23321
|
-
});
|
|
23322
|
-
if (forNode) {
|
|
23323
|
-
forNode.children = [{
|
|
23324
|
-
...node,
|
|
23325
|
-
props: node.props.filter((prop) => prop !== forDirective)
|
|
23326
|
-
}];
|
|
23327
|
-
return forNode;
|
|
23328
|
-
}
|
|
23329
|
-
}
|
|
23330
|
-
}
|
|
23331
|
-
function getVIfNode(node, transformContext) {
|
|
23332
|
-
const ifDirective = node.props.find((prop) => prop.type === CompilerDOM.NodeTypes.DIRECTIVE && prop.name === "if");
|
|
23333
|
-
if (ifDirective) {
|
|
23334
|
-
let ifNode;
|
|
23335
|
-
CompilerDOM.processIf(node, ifDirective, transformContext, (_ifNode) => {
|
|
23336
|
-
ifNode = { ..._ifNode };
|
|
23337
|
-
});
|
|
23338
|
-
if (ifNode) {
|
|
23339
|
-
for (const branch of ifNode.branches) branch.children = [{
|
|
23340
|
-
...node,
|
|
23341
|
-
props: node.props.filter((prop) => prop !== ifDirective)
|
|
23342
|
-
}];
|
|
23343
|
-
return ifNode;
|
|
23344
|
-
}
|
|
23345
|
-
}
|
|
23346
|
-
}
|
|
23347
|
-
}));
|
|
23348
|
-
//#endregion
|
|
23349
23528
|
//#region node_modules/@vue/language-core/lib/virtualCode/ir.js
|
|
23350
23529
|
var require_ir = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23351
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
23352
|
-
if (k2 === void 0) k2 = k;
|
|
23353
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23354
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
23355
|
-
enumerable: true,
|
|
23356
|
-
get: function() {
|
|
23357
|
-
return m[k];
|
|
23358
|
-
}
|
|
23359
|
-
};
|
|
23360
|
-
Object.defineProperty(o, k2, desc);
|
|
23361
|
-
}) : (function(o, m, k, k2) {
|
|
23362
|
-
if (k2 === void 0) k2 = k;
|
|
23363
|
-
o[k2] = m[k];
|
|
23364
|
-
}));
|
|
23365
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
23366
|
-
Object.defineProperty(o, "default", {
|
|
23367
|
-
enumerable: true,
|
|
23368
|
-
value: v
|
|
23369
|
-
});
|
|
23370
|
-
}) : function(o, v) {
|
|
23371
|
-
o["default"] = v;
|
|
23372
|
-
});
|
|
23373
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
23374
|
-
var ownKeys = function(o) {
|
|
23375
|
-
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
23376
|
-
var ar = [];
|
|
23377
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23378
|
-
return ar;
|
|
23379
|
-
};
|
|
23380
|
-
return ownKeys(o);
|
|
23381
|
-
};
|
|
23382
|
-
return function(mod) {
|
|
23383
|
-
if (mod && mod.__esModule) return mod;
|
|
23384
|
-
var result = {};
|
|
23385
|
-
if (mod != null) {
|
|
23386
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
23387
|
-
}
|
|
23388
|
-
__setModuleDefault(result, mod);
|
|
23389
|
-
return result;
|
|
23390
|
-
};
|
|
23391
|
-
})();
|
|
23392
23530
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23393
23531
|
exports.useIR = useIR;
|
|
23394
|
-
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
23395
23532
|
var alien_signals_1 = require_cjs();
|
|
23396
23533
|
var signals_1 = require_signals();
|
|
23397
|
-
var normalize_1 = require_normalize();
|
|
23398
23534
|
function useIR(ts, plugins, fileName, getSnapshot, getParseSfcResult) {
|
|
23399
23535
|
const getUntrackedSnapshot = () => {
|
|
23400
23536
|
const pausedSub = (0, alien_signals_1.setActiveSub)(void 0);
|
|
@@ -23568,28 +23704,22 @@ var require_ir = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23568
23704
|
}
|
|
23569
23705
|
const errors = [];
|
|
23570
23706
|
const warnings = [];
|
|
23571
|
-
const [nodeTransforms, directiveTransforms] = CompilerDOM.getBaseTransformPreset();
|
|
23572
23707
|
let options = {
|
|
23573
23708
|
onError: (err) => errors.push(err),
|
|
23574
23709
|
onWarn: (err) => warnings.push(err),
|
|
23575
|
-
expressionPlugins: ["typescript"]
|
|
23576
|
-
nodeTransforms,
|
|
23577
|
-
directiveTransforms
|
|
23710
|
+
expressionPlugins: ["typescript"]
|
|
23578
23711
|
};
|
|
23579
23712
|
for (const plugin of plugins) if (plugin.resolveTemplateCompilerOptions) options = plugin.resolveTemplateCompilerOptions(options);
|
|
23580
23713
|
for (const plugin of plugins) try {
|
|
23581
23714
|
const result = plugin.compileSFCTemplate?.(base.lang, base.content, options);
|
|
23582
|
-
if (result) {
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
|
|
23587
|
-
|
|
23588
|
-
|
|
23589
|
-
|
|
23590
|
-
warnings
|
|
23591
|
-
};
|
|
23592
|
-
}
|
|
23715
|
+
if (result) return {
|
|
23716
|
+
snapshot: getUntrackedSnapshot(),
|
|
23717
|
+
template: base.content,
|
|
23718
|
+
result,
|
|
23719
|
+
plugin,
|
|
23720
|
+
errors,
|
|
23721
|
+
warnings
|
|
23722
|
+
};
|
|
23593
23723
|
} catch (e) {
|
|
23594
23724
|
return {
|
|
23595
23725
|
snapshot: getUntrackedSnapshot(),
|
|
@@ -23791,6 +23921,7 @@ var require_languagePlugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23791
23921
|
exports.getAllExtensions = getAllExtensions;
|
|
23792
23922
|
var language_core_1 = require_language_core$1();
|
|
23793
23923
|
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
23924
|
+
var LanguageCore = __importStar(require_language_core());
|
|
23794
23925
|
var plugins_1 = require_plugins();
|
|
23795
23926
|
var virtualCode_1 = require_virtualCode();
|
|
23796
23927
|
var fileRegistries = {};
|
|
@@ -23806,6 +23937,7 @@ var require_languagePlugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23806
23937
|
const pluginContext = {
|
|
23807
23938
|
modules: {
|
|
23808
23939
|
"@vue/compiler-dom": CompilerDOM,
|
|
23940
|
+
"@vue/language-core": LanguageCore,
|
|
23809
23941
|
typescript: ts
|
|
23810
23942
|
},
|
|
23811
23943
|
compilerOptions,
|
|
@@ -23898,6 +24030,7 @@ var require_language_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23898
24030
|
__exportStar(require_scriptRanges(), exports);
|
|
23899
24031
|
__exportStar(require_scriptSetupRanges(), exports);
|
|
23900
24032
|
__exportStar(require_plugins(), exports);
|
|
24033
|
+
__exportStar(require_compile(), exports);
|
|
23901
24034
|
__exportStar(require_types(), exports);
|
|
23902
24035
|
__exportStar(require_collectBindings(), exports);
|
|
23903
24036
|
__exportStar(require_forEachTemplateNode(), exports);
|
|
@@ -32298,6 +32431,39 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
32298
32431
|
module.exports = coerce;
|
|
32299
32432
|
}));
|
|
32300
32433
|
//#endregion
|
|
32434
|
+
//#region node_modules/semver/functions/truncate.js
|
|
32435
|
+
var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
32436
|
+
var parse = require_parse();
|
|
32437
|
+
var constants = require_constants();
|
|
32438
|
+
var SemVer = require_semver$1();
|
|
32439
|
+
var truncate = (version, truncation, options) => {
|
|
32440
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) return null;
|
|
32441
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
32442
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
32443
|
+
};
|
|
32444
|
+
var cloneInputVersion = (version, options) => {
|
|
32445
|
+
return parse(version instanceof SemVer ? version.version : version, options);
|
|
32446
|
+
};
|
|
32447
|
+
var doTruncation = (version, truncation) => {
|
|
32448
|
+
if (isPrerelease(truncation)) return version.version;
|
|
32449
|
+
version.prerelease = [];
|
|
32450
|
+
switch (truncation) {
|
|
32451
|
+
case "major":
|
|
32452
|
+
version.minor = 0;
|
|
32453
|
+
version.patch = 0;
|
|
32454
|
+
break;
|
|
32455
|
+
case "minor":
|
|
32456
|
+
version.patch = 0;
|
|
32457
|
+
break;
|
|
32458
|
+
}
|
|
32459
|
+
return version.format();
|
|
32460
|
+
};
|
|
32461
|
+
var isPrerelease = (type) => {
|
|
32462
|
+
return type.startsWith("pre");
|
|
32463
|
+
};
|
|
32464
|
+
module.exports = truncate;
|
|
32465
|
+
}));
|
|
32466
|
+
//#endregion
|
|
32301
32467
|
//#region node_modules/semver/internal/lrucache.js
|
|
32302
32468
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
32303
32469
|
var LRUCache = class {
|
|
@@ -33032,6 +33198,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33032
33198
|
lte: require_lte(),
|
|
33033
33199
|
cmp: require_cmp(),
|
|
33034
33200
|
coerce: require_coerce(),
|
|
33201
|
+
truncate: require_truncate(),
|
|
33035
33202
|
Comparator: require_comparator(),
|
|
33036
33203
|
Range: require_range(),
|
|
33037
33204
|
satisfies: require_satisfies(),
|
|
@@ -84359,7 +84526,7 @@ var require_volar_service_css = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
84359
84526
|
type: css.FileType.Unknown,
|
|
84360
84527
|
ctime: 0,
|
|
84361
84528
|
mtime: 0,
|
|
84362
|
-
size:
|
|
84529
|
+
size: -1
|
|
84363
84530
|
},
|
|
84364
84531
|
readDirectory: async (uri) => await context.env.fs?.readDirectory(vscode_uri_1.URI.parse(uri)) ?? []
|
|
84365
84532
|
};
|
|
@@ -84469,14 +84636,16 @@ var require_volar_service_css = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
84469
84636
|
let prefixes = [];
|
|
84470
84637
|
let suffixes = [];
|
|
84471
84638
|
if (codeOptions?.initialIndentLevel) {
|
|
84639
|
+
const documentText = document.getText();
|
|
84640
|
+
const lastSuffix = endWithNewLine(documentText) ? "}" : "\n}";
|
|
84472
84641
|
for (let i = 0; i < codeOptions.initialIndentLevel; i++) if (i === codeOptions.initialIndentLevel - 1) {
|
|
84473
84642
|
prefixes.push("_", "{");
|
|
84474
|
-
suffixes.unshift(
|
|
84643
|
+
suffixes.unshift(lastSuffix);
|
|
84475
84644
|
} else {
|
|
84476
84645
|
prefixes.push("_", "{\n");
|
|
84477
84646
|
suffixes.unshift("\n}");
|
|
84478
84647
|
}
|
|
84479
|
-
formatDocument = vscode_languageserver_textdocument_1.TextDocument.create(document.uri, document.languageId, document.version, prefixes.join("") +
|
|
84648
|
+
formatDocument = vscode_languageserver_textdocument_1.TextDocument.create(document.uri, document.languageId, document.version, prefixes.join("") + documentText + suffixes.join(""));
|
|
84480
84649
|
formatRange = {
|
|
84481
84650
|
start: formatDocument.positionAt(0),
|
|
84482
84651
|
end: formatDocument.positionAt(formatDocument.getText().length)
|
|
@@ -84498,7 +84667,8 @@ var require_volar_service_css = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
84498
84667
|
}
|
|
84499
84668
|
return edits;
|
|
84500
84669
|
function ensureNewLines(newText) {
|
|
84501
|
-
const
|
|
84670
|
+
const verifySuffix = endWithNewLine(newText) ? "}" : "\n}";
|
|
84671
|
+
const verifyDocument = vscode_languageserver_textdocument_1.TextDocument.create(document.uri, document.languageId, document.version, "_ {" + newText + verifySuffix);
|
|
84502
84672
|
const verifyEdits = cssLs.format(verifyDocument, void 0, formatOptions);
|
|
84503
84673
|
let verifyText = vscode_languageserver_textdocument_1.TextDocument.applyEdits(verifyDocument, verifyEdits);
|
|
84504
84674
|
verifyText = verifyText.trimStart().slice(1);
|
|
@@ -104238,7 +104408,7 @@ var require_volar_service_html = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
104238
104408
|
type: html.FileType.Unknown,
|
|
104239
104409
|
ctime: 0,
|
|
104240
104410
|
mtime: 0,
|
|
104241
|
-
size:
|
|
104411
|
+
size: -1
|
|
104242
104412
|
},
|
|
104243
104413
|
readDirectory: async (uri) => await context.env.fs?.readDirectory(vscode_uri_1.URI.parse(uri)) ?? []
|
|
104244
104414
|
};
|
|
@@ -113416,7 +113586,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
113416
113586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
113417
113587
|
exports.postprocessLanguageService = postprocessLanguageService;
|
|
113418
113588
|
require_transform$1();
|
|
113419
|
-
require_utils$
|
|
113589
|
+
require_utils$6();
|
|
113420
113590
|
var language_core_1 = require_language_core();
|
|
113421
113591
|
var shared_1 = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports));
|
|
113422
113592
|
var windowsPathReg = /\\/g;
|