@vue/compiler-sfc 3.6.0-beta.7 → 3.6.0-beta.9
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/compiler-sfc.cjs.js +339 -444
- package/dist/compiler-sfc.d.ts +1 -4
- package/dist/compiler-sfc.esm-browser.js +654 -828
- package/package.json +11 -11
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-sfc v3.6.0-beta.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
Object.defineProperties(exports, {
|
|
6
|
+
Object.defineProperties(exports, {
|
|
7
|
+
__esModule: { value: true },
|
|
8
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
9
|
+
});
|
|
7
10
|
//#region \0rolldown/runtime.js
|
|
8
11
|
var __create = Object.create;
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
@@ -13,16 +16,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
13
16
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
17
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
15
18
|
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
26
25
|
}
|
|
27
26
|
return to;
|
|
28
27
|
};
|
|
@@ -30,7 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
29
|
value: mod,
|
|
31
30
|
enumerable: true
|
|
32
31
|
}) : target, mod));
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
33
|
let _vue_compiler_core = require("@vue/compiler-core");
|
|
36
34
|
let _vue_compiler_dom = require("@vue/compiler-dom");
|
|
@@ -52,9 +50,9 @@ magic_string = __toESM(magic_string);
|
|
|
52
50
|
let _babel_parser = require("@babel/parser");
|
|
53
51
|
let process$1 = require("process");
|
|
54
52
|
process$1 = __toESM(process$1);
|
|
55
|
-
|
|
56
|
-
//#region
|
|
57
|
-
var
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region packages/compiler-sfc/src/style/cssVars.ts
|
|
55
|
+
var import_hash_sum = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
58
56
|
function pad(hash, len) {
|
|
59
57
|
while (hash.length < len) hash = "0" + hash;
|
|
60
58
|
return hash;
|
|
@@ -101,11 +99,7 @@ var require_hash_sum = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
101
99
|
return pad(foldValue(0, o, "", []).toString(16), 8);
|
|
102
100
|
}
|
|
103
101
|
module.exports = sum;
|
|
104
|
-
}));
|
|
105
|
-
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region packages/compiler-sfc/src/style/cssVars.ts
|
|
108
|
-
var import_hash_sum = /* @__PURE__ */ __toESM(require_hash_sum());
|
|
102
|
+
})))());
|
|
109
103
|
const CSS_VARS_HELPER = `useCssVars`;
|
|
110
104
|
function getCssVarsHelper(vapor) {
|
|
111
105
|
return vapor ? `useVaporCssVars` : CSS_VARS_HELPER;
|
|
@@ -202,44 +196,37 @@ function genCssVarsCode(vars, bindings, id, isProd, vapor) {
|
|
|
202
196
|
function genNormalScriptCssVarsCode(cssVars, bindings, id, isProd, defaultVar) {
|
|
203
197
|
return `\nimport { ${CSS_VARS_HELPER} as _${CSS_VARS_HELPER} } from 'vue'\nconst __injectCSSVars__ = () => {\n${genCssVarsCode(cssVars, bindings, id, isProd)}}\nconst __setup__ = ${defaultVar}.setup\n${defaultVar}.setup = __setup__\n ? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }\n : __injectCSSVars__\n`;
|
|
204
198
|
}
|
|
205
|
-
|
|
206
199
|
//#endregion
|
|
207
|
-
//#region \0@oxc-project+runtime@0.
|
|
200
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/checkPrivateRedeclaration.js
|
|
208
201
|
function _checkPrivateRedeclaration(e, t) {
|
|
209
202
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
210
203
|
}
|
|
211
|
-
|
|
212
204
|
//#endregion
|
|
213
|
-
//#region \0@oxc-project+runtime@0.
|
|
205
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateMethodInitSpec.js
|
|
214
206
|
function _classPrivateMethodInitSpec(e, a) {
|
|
215
207
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
216
208
|
}
|
|
217
|
-
|
|
218
209
|
//#endregion
|
|
219
|
-
//#region \0@oxc-project+runtime@0.
|
|
210
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldInitSpec.js
|
|
220
211
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
221
212
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
222
213
|
}
|
|
223
|
-
|
|
224
214
|
//#endregion
|
|
225
|
-
//#region \0@oxc-project+runtime@0.
|
|
215
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/assertClassBrand.js
|
|
226
216
|
function _assertClassBrand(e, t, n) {
|
|
227
217
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
228
218
|
throw new TypeError("Private element is not present on this object");
|
|
229
219
|
}
|
|
230
|
-
|
|
231
220
|
//#endregion
|
|
232
|
-
//#region \0@oxc-project+runtime@0.
|
|
221
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldGet2.js
|
|
233
222
|
function _classPrivateFieldGet2(s, a) {
|
|
234
223
|
return s.get(_assertClassBrand(s, a));
|
|
235
224
|
}
|
|
236
|
-
|
|
237
225
|
//#endregion
|
|
238
|
-
//#region \0@oxc-project+runtime@0.
|
|
226
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldSet2.js
|
|
239
227
|
function _classPrivateFieldSet2(s, a, r) {
|
|
240
228
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
241
229
|
}
|
|
242
|
-
|
|
243
230
|
//#endregion
|
|
244
231
|
//#region node_modules/.pnpm/lru-cache@10.1.0/node_modules/lru-cache/dist/esm/index.js
|
|
245
232
|
let _Symbol$iterator;
|
|
@@ -1312,13 +1299,11 @@ function _moveToTail(index) {
|
|
|
1312
1299
|
_classPrivateFieldSet2(_tail, this, index);
|
|
1313
1300
|
}
|
|
1314
1301
|
}
|
|
1315
|
-
|
|
1316
1302
|
//#endregion
|
|
1317
1303
|
//#region packages/compiler-sfc/src/cache.ts
|
|
1318
1304
|
function createCache(max = 500) {
|
|
1319
1305
|
return new LRUCache({ max });
|
|
1320
1306
|
}
|
|
1321
|
-
|
|
1322
1307
|
//#endregion
|
|
1323
1308
|
//#region packages/compiler-sfc/src/script/importUsageCheck.ts
|
|
1324
1309
|
/**
|
|
@@ -1396,7 +1381,6 @@ function extractIdentifiers$2(ids, node) {
|
|
|
1396
1381
|
if (node.ast) (0, _vue_compiler_dom.walkIdentifiers)(node.ast, (n) => ids.add(n.name));
|
|
1397
1382
|
else if (node.ast === null) ids.add(node.content);
|
|
1398
1383
|
}
|
|
1399
|
-
|
|
1400
1384
|
//#endregion
|
|
1401
1385
|
//#region packages/compiler-sfc/src/parse.ts
|
|
1402
1386
|
const DEFAULT_FILENAME = "anonymous.vue";
|
|
@@ -1614,12 +1598,11 @@ function dedent(s) {
|
|
|
1614
1598
|
return line.slice(minIndent);
|
|
1615
1599
|
}).join("\n"), minIndent];
|
|
1616
1600
|
}
|
|
1617
|
-
|
|
1618
1601
|
//#endregion
|
|
1619
1602
|
//#region packages/compiler-sfc/src/template/templateUtils.ts
|
|
1620
1603
|
function isRelativeUrl(url$1) {
|
|
1621
1604
|
const firstChar = url$1.charAt(0);
|
|
1622
|
-
return firstChar === "." || firstChar === "~" || firstChar === "@";
|
|
1605
|
+
return firstChar === "." || firstChar === "~" || firstChar === "@" || firstChar === "#";
|
|
1623
1606
|
}
|
|
1624
1607
|
const externalRE = /^(?:https?:)?\/\//;
|
|
1625
1608
|
function isExternalUrl(url$2) {
|
|
@@ -1629,6 +1612,13 @@ const dataUrlRE = /^\s*data:/i;
|
|
|
1629
1612
|
function isDataUrl(url$3) {
|
|
1630
1613
|
return dataUrlRE.test(url$3);
|
|
1631
1614
|
}
|
|
1615
|
+
function normalizeDecodedImportPath(source) {
|
|
1616
|
+
try {
|
|
1617
|
+
return decodeURIComponent(source);
|
|
1618
|
+
} catch {
|
|
1619
|
+
return source;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1632
1622
|
/**
|
|
1633
1623
|
* Parses string url into URL object.
|
|
1634
1624
|
*/
|
|
@@ -1646,17 +1636,93 @@ function parseUrl(url$4) {
|
|
|
1646
1636
|
function parseUriParts(urlString) {
|
|
1647
1637
|
return (0, url.parse)((0, _vue_shared.isString)(urlString) ? urlString : "", false, true);
|
|
1648
1638
|
}
|
|
1649
|
-
|
|
1639
|
+
/**
|
|
1640
|
+
* Whether the current component should be treated as multi-root at the
|
|
1641
|
+
* component boundary.
|
|
1642
|
+
*
|
|
1643
|
+
* This is currently only attached to Vapor components. During Vapor hydration,
|
|
1644
|
+
* components hydrate while they are being created, so the runtime needs this
|
|
1645
|
+
* metadata to know whether the current SSR `<!--[--> ... <!--]-->` belongs to
|
|
1646
|
+
* the component itself and should be consumed before hydrating its children.
|
|
1647
|
+
*
|
|
1648
|
+
* The inference is aligned with compile-ssr's ownership semantics: it answers
|
|
1649
|
+
* whether the component root itself owns an outer fragment wrapper.
|
|
1650
|
+
*/
|
|
1651
|
+
function isMultiRoot(template, parserOptions) {
|
|
1652
|
+
const preserveComments = (parserOptions === null || parserOptions === void 0 ? void 0 : parserOptions.comments) !== false;
|
|
1653
|
+
if (typeof template === "string") return countRootUnits(parse(`<template>${template}</template>`, {
|
|
1654
|
+
sourceMap: false,
|
|
1655
|
+
ignoreEmpty: false,
|
|
1656
|
+
templateParseOptions: parserOptions
|
|
1657
|
+
}).descriptor.template.ast, preserveComments) > 1;
|
|
1658
|
+
if (isTemplateBlock(template)) return countRootUnits(template.ast, preserveComments) > 1;
|
|
1659
|
+
return countRootUnits(template, preserveComments) > 1;
|
|
1660
|
+
}
|
|
1661
|
+
function countRootUnits(parent, preserveComments) {
|
|
1662
|
+
const { children } = parent;
|
|
1663
|
+
let count = 0;
|
|
1664
|
+
for (let i = 0; i < children.length; i++) {
|
|
1665
|
+
const child = children[i];
|
|
1666
|
+
if (isWhitespaceRootText(child)) continue;
|
|
1667
|
+
if (isIfBranchStart(child)) {
|
|
1668
|
+
count++;
|
|
1669
|
+
let lastBranchIndex = i;
|
|
1670
|
+
let nextIndex = i + 1;
|
|
1671
|
+
while (nextIndex < children.length) {
|
|
1672
|
+
let continuationIndex = nextIndex;
|
|
1673
|
+
while (continuationIndex < children.length && isIgnorableIfChainSeparator(children[continuationIndex])) continuationIndex++;
|
|
1674
|
+
if (continuationIndex < children.length && isIfBranchContinuation(children[continuationIndex])) {
|
|
1675
|
+
lastBranchIndex = continuationIndex;
|
|
1676
|
+
nextIndex = continuationIndex + 1;
|
|
1677
|
+
continue;
|
|
1678
|
+
}
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
i = lastBranchIndex;
|
|
1682
|
+
continue;
|
|
1683
|
+
}
|
|
1684
|
+
count += countRootUnit(child, preserveComments);
|
|
1685
|
+
}
|
|
1686
|
+
return count;
|
|
1687
|
+
}
|
|
1688
|
+
function countRootUnit(node, preserveComments) {
|
|
1689
|
+
if (node.type !== 1) return node.type === 3 && !preserveComments ? 0 : 1;
|
|
1690
|
+
if (hasStructuralDirective(node, "if") || hasStructuralDirective(node, "for")) return 1;
|
|
1691
|
+
if (node.tag === "slot" || node.tagType === 1) return 1;
|
|
1692
|
+
if (node.tagType === 3) return countRootUnits(node, preserveComments);
|
|
1693
|
+
return 1;
|
|
1694
|
+
}
|
|
1695
|
+
function hasStructuralDirective(node, name) {
|
|
1696
|
+
return !!(0, _vue_compiler_dom.findDir)(node, name);
|
|
1697
|
+
}
|
|
1698
|
+
function isIfBranchStart(node) {
|
|
1699
|
+
return node.type === 1 && hasStructuralDirective(node, "if");
|
|
1700
|
+
}
|
|
1701
|
+
function isIfBranchContinuation(node) {
|
|
1702
|
+
return node.type === 1 && !!(0, _vue_compiler_dom.findDir)(node, /^else(-if)?$/, true);
|
|
1703
|
+
}
|
|
1704
|
+
function isWhitespaceRootText(node) {
|
|
1705
|
+
return node.type === 2 && !node.content.trim();
|
|
1706
|
+
}
|
|
1707
|
+
function isIgnorableIfChainSeparator(node) {
|
|
1708
|
+
return isWhitespaceRootText(node) || node.type === 3;
|
|
1709
|
+
}
|
|
1710
|
+
function isTemplateBlock(value) {
|
|
1711
|
+
return "content" in value && "attrs" in value;
|
|
1712
|
+
}
|
|
1650
1713
|
//#endregion
|
|
1651
1714
|
//#region packages/compiler-sfc/src/template/transformAssetUrl.ts
|
|
1715
|
+
const resourceUrlTagConfig = {
|
|
1716
|
+
video: ["src", "poster"],
|
|
1717
|
+
source: ["src"],
|
|
1718
|
+
img: ["src"],
|
|
1719
|
+
image: ["xlink:href", "href"]
|
|
1720
|
+
};
|
|
1652
1721
|
const defaultAssetUrlOptions = {
|
|
1653
1722
|
base: null,
|
|
1654
1723
|
includeAbsolute: false,
|
|
1655
1724
|
tags: {
|
|
1656
|
-
|
|
1657
|
-
source: ["src"],
|
|
1658
|
-
img: ["src"],
|
|
1659
|
-
image: ["xlink:href", "href"],
|
|
1725
|
+
...resourceUrlTagConfig,
|
|
1660
1726
|
use: ["xlink:href", "href"]
|
|
1661
1727
|
}
|
|
1662
1728
|
};
|
|
@@ -1673,6 +1739,10 @@ const normalizeOptions = (options) => {
|
|
|
1673
1739
|
const createAssetUrlTransformWithOptions = (options) => {
|
|
1674
1740
|
return (node, context) => transformAssetUrl(node, context, options);
|
|
1675
1741
|
};
|
|
1742
|
+
function canTransformHashImport(tag, attrName) {
|
|
1743
|
+
var _resourceUrlTagConfig;
|
|
1744
|
+
return !!((_resourceUrlTagConfig = resourceUrlTagConfig[tag]) === null || _resourceUrlTagConfig === void 0 ? void 0 : _resourceUrlTagConfig.includes(attrName));
|
|
1745
|
+
}
|
|
1676
1746
|
/**
|
|
1677
1747
|
* A `@vue/compiler-core` plugin that transforms relative asset urls into
|
|
1678
1748
|
* either imports or absolute urls.
|
|
@@ -1695,9 +1765,12 @@ const transformAssetUrl = (node, context, options = defaultAssetUrlOptions) => {
|
|
|
1695
1765
|
if (!attrs && !wildCardAttrs) return;
|
|
1696
1766
|
const assetAttrs = (attrs || []).concat(wildCardAttrs || []);
|
|
1697
1767
|
node.props.forEach((attr, index) => {
|
|
1698
|
-
if (attr.type !== 6 || !assetAttrs.includes(attr.name) || !attr.value
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1768
|
+
if (attr.type !== 6 || !assetAttrs.includes(attr.name) || !attr.value) return;
|
|
1769
|
+
const urlValue = attr.value.content;
|
|
1770
|
+
const isHashOnlyValue = urlValue[0] === "#";
|
|
1771
|
+
if (isExternalUrl(urlValue) || isDataUrl(urlValue) || isHashOnlyValue && !canTransformHashImport(node.tag, attr.name) || !options.includeAbsolute && !isRelativeUrl(urlValue)) return;
|
|
1772
|
+
const url = parseUrl(urlValue);
|
|
1773
|
+
if (options.base && urlValue[0] === ".") {
|
|
1701
1774
|
const base = parseUrl(options.base);
|
|
1702
1775
|
const protocol = base.protocol || "";
|
|
1703
1776
|
const host = base.host ? protocol + "//" + base.host : "";
|
|
@@ -1717,34 +1790,54 @@ const transformAssetUrl = (node, context, options = defaultAssetUrlOptions) => {
|
|
|
1717
1790
|
});
|
|
1718
1791
|
}
|
|
1719
1792
|
};
|
|
1793
|
+
/**
|
|
1794
|
+
* Resolves or registers an import for the given source path
|
|
1795
|
+
* @param source - Path to resolve import for
|
|
1796
|
+
* @param loc - Source location
|
|
1797
|
+
* @param context - Transform context
|
|
1798
|
+
* @returns Object containing import name and expression
|
|
1799
|
+
*/
|
|
1800
|
+
function resolveOrRegisterImport(source, loc, context) {
|
|
1801
|
+
const normalizedSource = normalizeDecodedImportPath(source);
|
|
1802
|
+
const existingIndex = context.imports.findIndex((i) => i.path === normalizedSource);
|
|
1803
|
+
if (existingIndex > -1) return {
|
|
1804
|
+
name: `_imports_${existingIndex}`,
|
|
1805
|
+
exp: context.imports[existingIndex].exp
|
|
1806
|
+
};
|
|
1807
|
+
const name = `_imports_${context.imports.length}`;
|
|
1808
|
+
const exp = (0, _vue_compiler_core.createSimpleExpression)(name, false, loc, 3);
|
|
1809
|
+
context.imports.push({
|
|
1810
|
+
exp,
|
|
1811
|
+
path: normalizedSource
|
|
1812
|
+
});
|
|
1813
|
+
return {
|
|
1814
|
+
name,
|
|
1815
|
+
exp
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* Transforms asset URLs into import expressions or string literals
|
|
1820
|
+
*/
|
|
1720
1821
|
function getImportsExpressionExp(path$24, hash, loc, context) {
|
|
1721
|
-
if (path$24)
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
if (!context.hoistStatic) return finalExp;
|
|
1740
|
-
const existingHoistIndex = context.hoists.findIndex((h) => {
|
|
1741
|
-
return h && h.type === 4 && !h.isStatic && h.content === hashExp;
|
|
1742
|
-
});
|
|
1743
|
-
if (existingHoistIndex > -1) return (0, _vue_compiler_core.createSimpleExpression)(`_hoisted_${existingHoistIndex + 1}`, false, loc, 3);
|
|
1744
|
-
return context.hoist(finalExp);
|
|
1745
|
-
} else return (0, _vue_compiler_core.createSimpleExpression)(`''`, false, loc, 3);
|
|
1822
|
+
if (!path$24 && !hash) return (0, _vue_compiler_core.createSimpleExpression)(`''`, false, loc, 3);
|
|
1823
|
+
if (!path$24 && hash) {
|
|
1824
|
+
const { exp } = resolveOrRegisterImport(hash, loc, context);
|
|
1825
|
+
return exp;
|
|
1826
|
+
}
|
|
1827
|
+
if (path$24 && !hash) {
|
|
1828
|
+
const { exp } = resolveOrRegisterImport(path$24, loc, context);
|
|
1829
|
+
return exp;
|
|
1830
|
+
}
|
|
1831
|
+
const { name } = resolveOrRegisterImport(path$24, loc, context);
|
|
1832
|
+
const hashExp = `${name} + '${hash}'`;
|
|
1833
|
+
const finalExp = (0, _vue_compiler_core.createSimpleExpression)(hashExp, false, loc, 3);
|
|
1834
|
+
if (!context.hoistStatic) return finalExp;
|
|
1835
|
+
const existingHoistIndex = context.hoists.findIndex((h) => {
|
|
1836
|
+
return h && h.type === 4 && !h.isStatic && h.content === hashExp;
|
|
1837
|
+
});
|
|
1838
|
+
if (existingHoistIndex > -1) return (0, _vue_compiler_core.createSimpleExpression)(`_hoisted_${existingHoistIndex + 1}`, false, loc, 3);
|
|
1839
|
+
return context.hoist(finalExp);
|
|
1746
1840
|
}
|
|
1747
|
-
|
|
1748
1841
|
//#endregion
|
|
1749
1842
|
//#region packages/compiler-sfc/src/template/transformSrcset.ts
|
|
1750
1843
|
const srcsetTags = ["img", "source"];
|
|
@@ -1798,18 +1891,21 @@ const transformSrcset = (node, context, options = defaultAssetUrlOptions) => {
|
|
|
1798
1891
|
let content = "";
|
|
1799
1892
|
imageCandidates.forEach(({ url, descriptor }, index) => {
|
|
1800
1893
|
if (shouldProcessUrl(url)) {
|
|
1801
|
-
const { path: path$23 } = parseUrl(url);
|
|
1802
|
-
|
|
1894
|
+
const { path: path$23, hash } = parseUrl(url);
|
|
1895
|
+
const source = path$23 ? path$23 : hash;
|
|
1896
|
+
if (source) {
|
|
1803
1897
|
let exp = "";
|
|
1804
|
-
const
|
|
1898
|
+
const normalizedSource = normalizeDecodedImportPath(source);
|
|
1899
|
+
const existingImportsIndex = context.imports.findIndex((i) => i.path === normalizedSource);
|
|
1805
1900
|
if (existingImportsIndex > -1) exp = `_imports_${existingImportsIndex}`;
|
|
1806
1901
|
else {
|
|
1807
1902
|
exp = `_imports_${context.imports.length}`;
|
|
1808
1903
|
context.imports.push({
|
|
1809
1904
|
exp: (0, _vue_compiler_core.createSimpleExpression)(exp, false, attr.loc, 3),
|
|
1810
|
-
path:
|
|
1905
|
+
path: normalizedSource
|
|
1811
1906
|
});
|
|
1812
1907
|
}
|
|
1908
|
+
if (path$23 && hash) exp = `${exp} + '${hash}'`;
|
|
1813
1909
|
content += exp;
|
|
1814
1910
|
}
|
|
1815
1911
|
} else content += `"${url}"`;
|
|
@@ -1834,7 +1930,6 @@ const transformSrcset = (node, context, options = defaultAssetUrlOptions) => {
|
|
|
1834
1930
|
});
|
|
1835
1931
|
}
|
|
1836
1932
|
};
|
|
1837
|
-
|
|
1838
1933
|
//#endregion
|
|
1839
1934
|
//#region node_modules/.pnpm/@vue+consolidate@1.0.0/node_modules/@vue/consolidate/lib/consolidate.js
|
|
1840
1935
|
var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3128,16 +3223,11 @@ var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3128
3223
|
*/
|
|
3129
3224
|
exports.requires = requires;
|
|
3130
3225
|
}));
|
|
3131
|
-
|
|
3132
|
-
//#endregion
|
|
3133
|
-
//#region node_modules/.pnpm/@vue+consolidate@1.0.0/node_modules/@vue/consolidate/index.js
|
|
3134
|
-
var require_consolidate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3135
|
-
module.exports = require_consolidate$1();
|
|
3136
|
-
}));
|
|
3137
|
-
|
|
3138
3226
|
//#endregion
|
|
3139
3227
|
//#region packages/compiler-sfc/src/warn.ts
|
|
3140
|
-
var import_consolidate = /* @__PURE__ */ __toESM(
|
|
3228
|
+
var import_consolidate = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3229
|
+
module.exports = require_consolidate$1();
|
|
3230
|
+
})))());
|
|
3141
3231
|
const hasWarned = {};
|
|
3142
3232
|
function warnOnce(msg) {
|
|
3143
3233
|
if (!(typeof process !== "undefined" && process.env.NODE_ENV === "production") && !hasWarned[msg]) {
|
|
@@ -3148,7 +3238,6 @@ function warnOnce(msg) {
|
|
|
3148
3238
|
function warn(msg) {
|
|
3149
3239
|
console.warn(`\x1b[1m\x1b[33m[@vue/compiler-sfc]\x1b[0m\x1b[33m ${msg}\x1b[0m\n`);
|
|
3150
3240
|
}
|
|
3151
|
-
|
|
3152
3241
|
//#endregion
|
|
3153
3242
|
//#region packages/compiler-sfc/src/compileTemplate.ts
|
|
3154
3243
|
function preprocess$1({ source, filename, preprocessOptions }, preprocessor) {
|
|
@@ -3233,17 +3322,19 @@ function doCompileTemplate({ filename, id, scoped, slotted, inMap, source, ast:
|
|
|
3233
3322
|
if (map) map = mapLines(inMap, map);
|
|
3234
3323
|
if (errors.length) patchErrors(errors, source, inMap);
|
|
3235
3324
|
}
|
|
3325
|
+
const tips = warnings.map((w) => {
|
|
3326
|
+
let msg = w.message;
|
|
3327
|
+
if (w.loc) msg += `\n${(0, _vue_shared.generateCodeFrame)((inAST === null || inAST === void 0 ? void 0 : inAST.source) || source, w.loc.start.offset, w.loc.end.offset)}`;
|
|
3328
|
+
return msg;
|
|
3329
|
+
});
|
|
3236
3330
|
return {
|
|
3237
3331
|
code,
|
|
3238
3332
|
ast,
|
|
3239
3333
|
preamble,
|
|
3334
|
+
multiRoot: vapor ? isMultiRoot(inAST || source, compilerOptions) : void 0,
|
|
3240
3335
|
source,
|
|
3241
3336
|
errors,
|
|
3242
|
-
tips
|
|
3243
|
-
let msg = w.message;
|
|
3244
|
-
if (w.loc) msg += `\n${(0, _vue_shared.generateCodeFrame)((inAST === null || inAST === void 0 ? void 0 : inAST.source) || source, w.loc.start.offset, w.loc.end.offset)}`;
|
|
3245
|
-
return msg;
|
|
3246
|
-
}),
|
|
3337
|
+
tips,
|
|
3247
3338
|
map,
|
|
3248
3339
|
helpers
|
|
3249
3340
|
};
|
|
@@ -3299,7 +3390,6 @@ function patchErrors(errors, source, inMap) {
|
|
|
3299
3390
|
}
|
|
3300
3391
|
});
|
|
3301
3392
|
}
|
|
3302
|
-
|
|
3303
3393
|
//#endregion
|
|
3304
3394
|
//#region packages/compiler-sfc/src/style/pluginTrim.ts
|
|
3305
3395
|
const trimPlugin = () => {
|
|
@@ -3316,7 +3406,6 @@ const trimPlugin = () => {
|
|
|
3316
3406
|
};
|
|
3317
3407
|
};
|
|
3318
3408
|
trimPlugin.postcss = true;
|
|
3319
|
-
|
|
3320
3409
|
//#endregion
|
|
3321
3410
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/unesc.js
|
|
3322
3411
|
var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3369,7 +3458,6 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3369
3458
|
}
|
|
3370
3459
|
module.exports = exports.default;
|
|
3371
3460
|
}));
|
|
3372
|
-
|
|
3373
3461
|
//#endregion
|
|
3374
3462
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/getProp.js
|
|
3375
3463
|
var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3386,7 +3474,6 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3386
3474
|
}
|
|
3387
3475
|
module.exports = exports.default;
|
|
3388
3476
|
}));
|
|
3389
|
-
|
|
3390
3477
|
//#endregion
|
|
3391
3478
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/ensureObject.js
|
|
3392
3479
|
var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3402,7 +3489,6 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3402
3489
|
}
|
|
3403
3490
|
module.exports = exports.default;
|
|
3404
3491
|
}));
|
|
3405
|
-
|
|
3406
3492
|
//#endregion
|
|
3407
3493
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/stripComments.js
|
|
3408
3494
|
var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3424,25 +3510,19 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3424
3510
|
}
|
|
3425
3511
|
module.exports = exports.default;
|
|
3426
3512
|
}));
|
|
3427
|
-
|
|
3428
3513
|
//#endregion
|
|
3429
3514
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/index.js
|
|
3430
3515
|
var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3431
3516
|
exports.__esModule = true;
|
|
3432
3517
|
exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
|
|
3433
|
-
|
|
3434
|
-
exports.
|
|
3435
|
-
|
|
3436
|
-
exports.
|
|
3437
|
-
var _ensureObject = _interopRequireDefault(require_ensureObject());
|
|
3438
|
-
exports.ensureObject = _ensureObject["default"];
|
|
3439
|
-
var _stripComments = _interopRequireDefault(require_stripComments());
|
|
3440
|
-
exports.stripComments = _stripComments["default"];
|
|
3518
|
+
exports.unesc = _interopRequireDefault(require_unesc())["default"];
|
|
3519
|
+
exports.getProp = _interopRequireDefault(require_getProp())["default"];
|
|
3520
|
+
exports.ensureObject = _interopRequireDefault(require_ensureObject())["default"];
|
|
3521
|
+
exports.stripComments = _interopRequireDefault(require_stripComments())["default"];
|
|
3441
3522
|
function _interopRequireDefault(obj) {
|
|
3442
3523
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
3443
3524
|
}
|
|
3444
3525
|
}));
|
|
3445
|
-
|
|
3446
3526
|
//#endregion
|
|
3447
3527
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/node.js
|
|
3448
3528
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3479,7 +3559,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3479
3559
|
}
|
|
3480
3560
|
return cloned;
|
|
3481
3561
|
};
|
|
3482
|
-
|
|
3562
|
+
exports["default"] = /* @__PURE__ */ function() {
|
|
3483
3563
|
function Node(opts) {
|
|
3484
3564
|
if (opts === void 0) opts = {};
|
|
3485
3565
|
Object.assign(this, opts);
|
|
@@ -3576,41 +3656,26 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3576
3656
|
}]);
|
|
3577
3657
|
return Node;
|
|
3578
3658
|
}();
|
|
3579
|
-
exports["default"] = Node;
|
|
3580
3659
|
module.exports = exports.default;
|
|
3581
3660
|
}));
|
|
3582
|
-
|
|
3583
3661
|
//#endregion
|
|
3584
3662
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
3585
3663
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3586
3664
|
exports.__esModule = true;
|
|
3587
3665
|
exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;
|
|
3588
|
-
|
|
3589
|
-
exports.
|
|
3590
|
-
|
|
3591
|
-
exports.
|
|
3592
|
-
|
|
3593
|
-
exports.
|
|
3594
|
-
|
|
3595
|
-
exports.
|
|
3596
|
-
|
|
3597
|
-
exports.
|
|
3598
|
-
|
|
3599
|
-
exports.
|
|
3600
|
-
var ID = "id";
|
|
3601
|
-
exports.ID = ID;
|
|
3602
|
-
var COMMENT = "comment";
|
|
3603
|
-
exports.COMMENT = COMMENT;
|
|
3604
|
-
var COMBINATOR = "combinator";
|
|
3605
|
-
exports.COMBINATOR = COMBINATOR;
|
|
3606
|
-
var CLASS = "class";
|
|
3607
|
-
exports.CLASS = CLASS;
|
|
3608
|
-
var ATTRIBUTE = "attribute";
|
|
3609
|
-
exports.ATTRIBUTE = ATTRIBUTE;
|
|
3610
|
-
var UNIVERSAL = "universal";
|
|
3611
|
-
exports.UNIVERSAL = UNIVERSAL;
|
|
3666
|
+
exports.TAG = "tag";
|
|
3667
|
+
exports.STRING = "string";
|
|
3668
|
+
exports.SELECTOR = "selector";
|
|
3669
|
+
exports.ROOT = "root";
|
|
3670
|
+
exports.PSEUDO = "pseudo";
|
|
3671
|
+
exports.NESTING = "nesting";
|
|
3672
|
+
exports.ID = "id";
|
|
3673
|
+
exports.COMMENT = "comment";
|
|
3674
|
+
exports.COMBINATOR = "combinator";
|
|
3675
|
+
exports.CLASS = "class";
|
|
3676
|
+
exports.ATTRIBUTE = "attribute";
|
|
3677
|
+
exports.UNIVERSAL = "universal";
|
|
3612
3678
|
}));
|
|
3613
|
-
|
|
3614
3679
|
//#endregion
|
|
3615
3680
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/container.js
|
|
3616
3681
|
var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3701,7 +3766,7 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3701
3766
|
};
|
|
3702
3767
|
return _setPrototypeOf(o, p);
|
|
3703
3768
|
}
|
|
3704
|
-
|
|
3769
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
3705
3770
|
_inheritsLoose(Container, _Node);
|
|
3706
3771
|
function Container(opts) {
|
|
3707
3772
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -3948,10 +4013,8 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3948
4013
|
]);
|
|
3949
4014
|
return Container;
|
|
3950
4015
|
}(_node["default"]);
|
|
3951
|
-
exports["default"] = Container;
|
|
3952
4016
|
module.exports = exports.default;
|
|
3953
4017
|
}));
|
|
3954
|
-
|
|
3955
4018
|
//#endregion
|
|
3956
4019
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/root.js
|
|
3957
4020
|
var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -3989,7 +4052,7 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3989
4052
|
};
|
|
3990
4053
|
return _setPrototypeOf(o, p);
|
|
3991
4054
|
}
|
|
3992
|
-
|
|
4055
|
+
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
3993
4056
|
_inheritsLoose(Root, _Container);
|
|
3994
4057
|
function Root(opts) {
|
|
3995
4058
|
var _this = _Container.call(this, opts) || this;
|
|
@@ -4016,10 +4079,8 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4016
4079
|
}]);
|
|
4017
4080
|
return Root;
|
|
4018
4081
|
}(_container["default"]);
|
|
4019
|
-
exports["default"] = Root;
|
|
4020
4082
|
module.exports = exports.default;
|
|
4021
4083
|
}));
|
|
4022
|
-
|
|
4023
4084
|
//#endregion
|
|
4024
4085
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/selector.js
|
|
4025
4086
|
var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4042,7 +4103,7 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4042
4103
|
};
|
|
4043
4104
|
return _setPrototypeOf(o, p);
|
|
4044
4105
|
}
|
|
4045
|
-
|
|
4106
|
+
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
4046
4107
|
_inheritsLoose(Selector, _Container);
|
|
4047
4108
|
function Selector(opts) {
|
|
4048
4109
|
var _this = _Container.call(this, opts) || this;
|
|
@@ -4051,10 +4112,8 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4051
4112
|
}
|
|
4052
4113
|
return Selector;
|
|
4053
4114
|
}(_container["default"]);
|
|
4054
|
-
exports["default"] = Selector;
|
|
4055
4115
|
module.exports = exports.default;
|
|
4056
4116
|
}));
|
|
4057
|
-
|
|
4058
4117
|
//#endregion
|
|
4059
4118
|
//#region node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
|
|
4060
4119
|
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
|
@@ -4116,7 +4175,6 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4116
4175
|
cssesc.version = "3.0.0";
|
|
4117
4176
|
module.exports = cssesc;
|
|
4118
4177
|
}));
|
|
4119
|
-
|
|
4120
4178
|
//#endregion
|
|
4121
4179
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/className.js
|
|
4122
4180
|
var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4156,7 +4214,7 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4156
4214
|
};
|
|
4157
4215
|
return _setPrototypeOf(o, p);
|
|
4158
4216
|
}
|
|
4159
|
-
|
|
4217
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4160
4218
|
_inheritsLoose(ClassName, _Node);
|
|
4161
4219
|
function ClassName(opts) {
|
|
4162
4220
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4186,10 +4244,8 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4186
4244
|
}]);
|
|
4187
4245
|
return ClassName;
|
|
4188
4246
|
}(_node["default"]);
|
|
4189
|
-
exports["default"] = ClassName;
|
|
4190
4247
|
module.exports = exports.default;
|
|
4191
4248
|
}));
|
|
4192
|
-
|
|
4193
4249
|
//#endregion
|
|
4194
4250
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/comment.js
|
|
4195
4251
|
var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4212,7 +4268,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4212
4268
|
};
|
|
4213
4269
|
return _setPrototypeOf(o, p);
|
|
4214
4270
|
}
|
|
4215
|
-
|
|
4271
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4216
4272
|
_inheritsLoose(Comment, _Node);
|
|
4217
4273
|
function Comment(opts) {
|
|
4218
4274
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4221,10 +4277,8 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4221
4277
|
}
|
|
4222
4278
|
return Comment;
|
|
4223
4279
|
}(_node["default"]);
|
|
4224
|
-
exports["default"] = Comment;
|
|
4225
4280
|
module.exports = exports.default;
|
|
4226
4281
|
}));
|
|
4227
|
-
|
|
4228
4282
|
//#endregion
|
|
4229
4283
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/id.js
|
|
4230
4284
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4247,7 +4301,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4247
4301
|
};
|
|
4248
4302
|
return _setPrototypeOf(o, p);
|
|
4249
4303
|
}
|
|
4250
|
-
|
|
4304
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4251
4305
|
_inheritsLoose(ID, _Node);
|
|
4252
4306
|
function ID(opts) {
|
|
4253
4307
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4260,10 +4314,8 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4260
4314
|
};
|
|
4261
4315
|
return ID;
|
|
4262
4316
|
}(_node["default"]);
|
|
4263
|
-
exports["default"] = ID;
|
|
4264
4317
|
module.exports = exports.default;
|
|
4265
4318
|
}));
|
|
4266
|
-
|
|
4267
4319
|
//#endregion
|
|
4268
4320
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/namespace.js
|
|
4269
4321
|
var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4302,7 +4354,7 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4302
4354
|
};
|
|
4303
4355
|
return _setPrototypeOf(o, p);
|
|
4304
4356
|
}
|
|
4305
|
-
|
|
4357
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4306
4358
|
_inheritsLoose(Namespace, _Node);
|
|
4307
4359
|
function Namespace() {
|
|
4308
4360
|
return _Node.apply(this, arguments) || this;
|
|
@@ -4357,10 +4409,8 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4357
4409
|
]);
|
|
4358
4410
|
return Namespace;
|
|
4359
4411
|
}(_node["default"]);
|
|
4360
|
-
exports["default"] = Namespace;
|
|
4361
4412
|
module.exports = exports.default;
|
|
4362
4413
|
}));
|
|
4363
|
-
|
|
4364
4414
|
//#endregion
|
|
4365
4415
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/tag.js
|
|
4366
4416
|
var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4383,7 +4433,7 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4383
4433
|
};
|
|
4384
4434
|
return _setPrototypeOf(o, p);
|
|
4385
4435
|
}
|
|
4386
|
-
|
|
4436
|
+
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
4387
4437
|
_inheritsLoose(Tag, _Namespace);
|
|
4388
4438
|
function Tag(opts) {
|
|
4389
4439
|
var _this = _Namespace.call(this, opts) || this;
|
|
@@ -4392,10 +4442,8 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4392
4442
|
}
|
|
4393
4443
|
return Tag;
|
|
4394
4444
|
}(_namespace["default"]);
|
|
4395
|
-
exports["default"] = Tag;
|
|
4396
4445
|
module.exports = exports.default;
|
|
4397
4446
|
}));
|
|
4398
|
-
|
|
4399
4447
|
//#endregion
|
|
4400
4448
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/string.js
|
|
4401
4449
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4418,7 +4466,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4418
4466
|
};
|
|
4419
4467
|
return _setPrototypeOf(o, p);
|
|
4420
4468
|
}
|
|
4421
|
-
|
|
4469
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4422
4470
|
_inheritsLoose(String, _Node);
|
|
4423
4471
|
function String(opts) {
|
|
4424
4472
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4427,10 +4475,8 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4427
4475
|
}
|
|
4428
4476
|
return String;
|
|
4429
4477
|
}(_node["default"]);
|
|
4430
|
-
exports["default"] = String;
|
|
4431
4478
|
module.exports = exports.default;
|
|
4432
4479
|
}));
|
|
4433
|
-
|
|
4434
4480
|
//#endregion
|
|
4435
4481
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
|
|
4436
4482
|
var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4453,7 +4499,7 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4453
4499
|
};
|
|
4454
4500
|
return _setPrototypeOf(o, p);
|
|
4455
4501
|
}
|
|
4456
|
-
|
|
4502
|
+
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
4457
4503
|
_inheritsLoose(Pseudo, _Container);
|
|
4458
4504
|
function Pseudo(opts) {
|
|
4459
4505
|
var _this = _Container.call(this, opts) || this;
|
|
@@ -4472,10 +4518,8 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4472
4518
|
};
|
|
4473
4519
|
return Pseudo;
|
|
4474
4520
|
}(_container["default"]);
|
|
4475
|
-
exports["default"] = Pseudo;
|
|
4476
4521
|
module.exports = exports.default;
|
|
4477
4522
|
}));
|
|
4478
|
-
|
|
4479
4523
|
//#endregion
|
|
4480
4524
|
//#region node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
|
|
4481
4525
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4484,7 +4528,6 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4484
4528
|
*/
|
|
4485
4529
|
module.exports = require("util").deprecate;
|
|
4486
4530
|
}));
|
|
4487
|
-
|
|
4488
4531
|
//#endregion
|
|
4489
4532
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
4490
4533
|
var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -4811,7 +4854,6 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4811
4854
|
return "" + attrSpaces.before + attrValue + attrSpaces.after;
|
|
4812
4855
|
}
|
|
4813
4856
|
}));
|
|
4814
|
-
|
|
4815
4857
|
//#endregion
|
|
4816
4858
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/universal.js
|
|
4817
4859
|
var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4834,7 +4876,7 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4834
4876
|
};
|
|
4835
4877
|
return _setPrototypeOf(o, p);
|
|
4836
4878
|
}
|
|
4837
|
-
|
|
4879
|
+
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
4838
4880
|
_inheritsLoose(Universal, _Namespace);
|
|
4839
4881
|
function Universal(opts) {
|
|
4840
4882
|
var _this = _Namespace.call(this, opts) || this;
|
|
@@ -4844,10 +4886,8 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4844
4886
|
}
|
|
4845
4887
|
return Universal;
|
|
4846
4888
|
}(_namespace["default"]);
|
|
4847
|
-
exports["default"] = Universal;
|
|
4848
4889
|
module.exports = exports.default;
|
|
4849
4890
|
}));
|
|
4850
|
-
|
|
4851
4891
|
//#endregion
|
|
4852
4892
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/combinator.js
|
|
4853
4893
|
var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4870,7 +4910,7 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4870
4910
|
};
|
|
4871
4911
|
return _setPrototypeOf(o, p);
|
|
4872
4912
|
}
|
|
4873
|
-
|
|
4913
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4874
4914
|
_inheritsLoose(Combinator, _Node);
|
|
4875
4915
|
function Combinator(opts) {
|
|
4876
4916
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4879,10 +4919,8 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4879
4919
|
}
|
|
4880
4920
|
return Combinator;
|
|
4881
4921
|
}(_node["default"]);
|
|
4882
|
-
exports["default"] = Combinator;
|
|
4883
4922
|
module.exports = exports.default;
|
|
4884
4923
|
}));
|
|
4885
|
-
|
|
4886
4924
|
//#endregion
|
|
4887
4925
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/nesting.js
|
|
4888
4926
|
var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4905,7 +4943,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4905
4943
|
};
|
|
4906
4944
|
return _setPrototypeOf(o, p);
|
|
4907
4945
|
}
|
|
4908
|
-
|
|
4946
|
+
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
4909
4947
|
_inheritsLoose(Nesting, _Node);
|
|
4910
4948
|
function Nesting(opts) {
|
|
4911
4949
|
var _this = _Node.call(this, opts) || this;
|
|
@@ -4915,10 +4953,8 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4915
4953
|
}
|
|
4916
4954
|
return Nesting;
|
|
4917
4955
|
}(_node["default"]);
|
|
4918
|
-
exports["default"] = Nesting;
|
|
4919
4956
|
module.exports = exports.default;
|
|
4920
4957
|
}));
|
|
4921
|
-
|
|
4922
4958
|
//#endregion
|
|
4923
4959
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/sortAscending.js
|
|
4924
4960
|
var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -4931,76 +4967,44 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
4931
4967
|
}
|
|
4932
4968
|
module.exports = exports.default;
|
|
4933
4969
|
}));
|
|
4934
|
-
|
|
4935
4970
|
//#endregion
|
|
4936
4971
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
4937
4972
|
var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4938
4973
|
exports.__esModule = true;
|
|
4939
4974
|
exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;
|
|
4940
|
-
|
|
4941
|
-
exports.
|
|
4942
|
-
|
|
4943
|
-
exports.
|
|
4944
|
-
|
|
4945
|
-
exports.
|
|
4946
|
-
|
|
4947
|
-
exports.
|
|
4948
|
-
|
|
4949
|
-
exports.
|
|
4950
|
-
|
|
4951
|
-
exports.
|
|
4952
|
-
|
|
4953
|
-
exports.
|
|
4954
|
-
|
|
4955
|
-
exports.
|
|
4956
|
-
|
|
4957
|
-
exports.
|
|
4958
|
-
var closeSquare = 93;
|
|
4959
|
-
exports.closeSquare = closeSquare;
|
|
4960
|
-
var dollar = 36;
|
|
4961
|
-
exports.dollar = dollar;
|
|
4962
|
-
var tilde = 126;
|
|
4963
|
-
exports.tilde = tilde;
|
|
4964
|
-
var caret = 94;
|
|
4965
|
-
exports.caret = caret;
|
|
4966
|
-
var plus = 43;
|
|
4967
|
-
exports.plus = plus;
|
|
4968
|
-
var equals = 61;
|
|
4969
|
-
exports.equals = equals;
|
|
4970
|
-
var pipe = 124;
|
|
4971
|
-
exports.pipe = pipe;
|
|
4972
|
-
var greaterThan = 62;
|
|
4973
|
-
exports.greaterThan = greaterThan;
|
|
4974
|
-
var space = 32;
|
|
4975
|
-
exports.space = space;
|
|
4975
|
+
exports.ampersand = 38;
|
|
4976
|
+
exports.asterisk = 42;
|
|
4977
|
+
exports.at = 64;
|
|
4978
|
+
exports.comma = 44;
|
|
4979
|
+
exports.colon = 58;
|
|
4980
|
+
exports.semicolon = 59;
|
|
4981
|
+
exports.openParenthesis = 40;
|
|
4982
|
+
exports.closeParenthesis = 41;
|
|
4983
|
+
exports.openSquare = 91;
|
|
4984
|
+
exports.closeSquare = 93;
|
|
4985
|
+
exports.dollar = 36;
|
|
4986
|
+
exports.tilde = 126;
|
|
4987
|
+
exports.caret = 94;
|
|
4988
|
+
exports.plus = 43;
|
|
4989
|
+
exports.equals = 61;
|
|
4990
|
+
exports.pipe = 124;
|
|
4991
|
+
exports.greaterThan = 62;
|
|
4992
|
+
exports.space = 32;
|
|
4976
4993
|
var singleQuote = 39;
|
|
4977
4994
|
exports.singleQuote = singleQuote;
|
|
4978
|
-
|
|
4979
|
-
exports.
|
|
4980
|
-
|
|
4981
|
-
exports.
|
|
4982
|
-
|
|
4983
|
-
exports.
|
|
4984
|
-
|
|
4985
|
-
exports.
|
|
4986
|
-
|
|
4987
|
-
exports.
|
|
4988
|
-
|
|
4989
|
-
exports.
|
|
4990
|
-
var newline = 10;
|
|
4991
|
-
exports.newline = newline;
|
|
4992
|
-
var tab = 9;
|
|
4993
|
-
exports.tab = tab;
|
|
4994
|
-
var str = singleQuote;
|
|
4995
|
-
exports.str = str;
|
|
4996
|
-
var comment = -1;
|
|
4997
|
-
exports.comment = comment;
|
|
4998
|
-
var word = -2;
|
|
4999
|
-
exports.word = word;
|
|
5000
|
-
var combinator = -3;
|
|
5001
|
-
exports.combinator = combinator;
|
|
4995
|
+
exports.doubleQuote = 34;
|
|
4996
|
+
exports.slash = 47;
|
|
4997
|
+
exports.bang = 33;
|
|
4998
|
+
exports.backslash = 92;
|
|
4999
|
+
exports.cr = 13;
|
|
5000
|
+
exports.feed = 12;
|
|
5001
|
+
exports.newline = 10;
|
|
5002
|
+
exports.tab = 9;
|
|
5003
|
+
exports.str = singleQuote;
|
|
5004
|
+
exports.comment = -1;
|
|
5005
|
+
exports.word = -2;
|
|
5006
|
+
exports.combinator = -3;
|
|
5002
5007
|
}));
|
|
5003
|
-
|
|
5004
5008
|
//#endregion
|
|
5005
5009
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
5006
5010
|
var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -5073,7 +5077,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5073
5077
|
} else next++;
|
|
5074
5078
|
return next;
|
|
5075
5079
|
}
|
|
5076
|
-
|
|
5080
|
+
exports.FIELDS = {
|
|
5077
5081
|
TYPE: 0,
|
|
5078
5082
|
START_LINE: 1,
|
|
5079
5083
|
START_COL: 2,
|
|
@@ -5082,7 +5086,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5082
5086
|
START_POS: 5,
|
|
5083
5087
|
END_POS: 6
|
|
5084
5088
|
};
|
|
5085
|
-
exports.FIELDS = FIELDS;
|
|
5086
5089
|
function tokenize(input) {
|
|
5087
5090
|
var tokens = [];
|
|
5088
5091
|
var css = input.css.valueOf();
|
|
@@ -5227,7 +5230,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5227
5230
|
return tokens;
|
|
5228
5231
|
}
|
|
5229
5232
|
}));
|
|
5230
|
-
|
|
5231
5233
|
//#endregion
|
|
5232
5234
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/parser.js
|
|
5233
5235
|
var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -5348,7 +5350,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5348
5350
|
return i === list.indexOf(item);
|
|
5349
5351
|
});
|
|
5350
5352
|
}
|
|
5351
|
-
|
|
5353
|
+
exports["default"] = /* @__PURE__ */ function() {
|
|
5352
5354
|
function Parser(rule, options) {
|
|
5353
5355
|
if (options === void 0) options = {};
|
|
5354
5356
|
this.rule = rule;
|
|
@@ -6086,10 +6088,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6086
6088
|
]);
|
|
6087
6089
|
return Parser;
|
|
6088
6090
|
}();
|
|
6089
|
-
exports["default"] = Parser;
|
|
6090
6091
|
module.exports = exports.default;
|
|
6091
6092
|
}));
|
|
6092
|
-
|
|
6093
6093
|
//#endregion
|
|
6094
6094
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/processor.js
|
|
6095
6095
|
var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -6099,7 +6099,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6099
6099
|
function _interopRequireDefault(obj) {
|
|
6100
6100
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
6101
6101
|
}
|
|
6102
|
-
|
|
6102
|
+
exports["default"] = /* @__PURE__ */ function() {
|
|
6103
6103
|
function Processor(func, options) {
|
|
6104
6104
|
this.func = func || function noop() {};
|
|
6105
6105
|
this.funcRes = null;
|
|
@@ -6190,10 +6190,8 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6190
6190
|
};
|
|
6191
6191
|
return Processor;
|
|
6192
6192
|
}();
|
|
6193
|
-
exports["default"] = Processor;
|
|
6194
6193
|
module.exports = exports.default;
|
|
6195
6194
|
}));
|
|
6196
|
-
|
|
6197
6195
|
//#endregion
|
|
6198
6196
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
6199
6197
|
var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6214,56 +6212,43 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6214
6212
|
function _interopRequireDefault(obj) {
|
|
6215
6213
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
6216
6214
|
}
|
|
6217
|
-
|
|
6215
|
+
exports.attribute = function attribute(opts) {
|
|
6218
6216
|
return new _attribute["default"](opts);
|
|
6219
6217
|
};
|
|
6220
|
-
exports.
|
|
6221
|
-
var className = function className(opts) {
|
|
6218
|
+
exports.className = function className(opts) {
|
|
6222
6219
|
return new _className["default"](opts);
|
|
6223
6220
|
};
|
|
6224
|
-
exports.
|
|
6225
|
-
var combinator = function combinator(opts) {
|
|
6221
|
+
exports.combinator = function combinator(opts) {
|
|
6226
6222
|
return new _combinator["default"](opts);
|
|
6227
6223
|
};
|
|
6228
|
-
exports.
|
|
6229
|
-
var comment = function comment(opts) {
|
|
6224
|
+
exports.comment = function comment(opts) {
|
|
6230
6225
|
return new _comment["default"](opts);
|
|
6231
6226
|
};
|
|
6232
|
-
exports.
|
|
6233
|
-
var id = function id(opts) {
|
|
6227
|
+
exports.id = function id(opts) {
|
|
6234
6228
|
return new _id["default"](opts);
|
|
6235
6229
|
};
|
|
6236
|
-
exports.
|
|
6237
|
-
var nesting = function nesting(opts) {
|
|
6230
|
+
exports.nesting = function nesting(opts) {
|
|
6238
6231
|
return new _nesting["default"](opts);
|
|
6239
6232
|
};
|
|
6240
|
-
exports.
|
|
6241
|
-
var pseudo = function pseudo(opts) {
|
|
6233
|
+
exports.pseudo = function pseudo(opts) {
|
|
6242
6234
|
return new _pseudo["default"](opts);
|
|
6243
6235
|
};
|
|
6244
|
-
exports.
|
|
6245
|
-
var root = function root(opts) {
|
|
6236
|
+
exports.root = function root(opts) {
|
|
6246
6237
|
return new _root["default"](opts);
|
|
6247
6238
|
};
|
|
6248
|
-
exports.
|
|
6249
|
-
var selector = function selector(opts) {
|
|
6239
|
+
exports.selector = function selector(opts) {
|
|
6250
6240
|
return new _selector["default"](opts);
|
|
6251
6241
|
};
|
|
6252
|
-
exports.
|
|
6253
|
-
var string = function string(opts) {
|
|
6242
|
+
exports.string = function string(opts) {
|
|
6254
6243
|
return new _string["default"](opts);
|
|
6255
6244
|
};
|
|
6256
|
-
exports.
|
|
6257
|
-
var tag = function tag(opts) {
|
|
6245
|
+
exports.tag = function tag(opts) {
|
|
6258
6246
|
return new _tag["default"](opts);
|
|
6259
6247
|
};
|
|
6260
|
-
exports.
|
|
6261
|
-
var universal = function universal(opts) {
|
|
6248
|
+
exports.universal = function universal(opts) {
|
|
6262
6249
|
return new _universal["default"](opts);
|
|
6263
6250
|
};
|
|
6264
|
-
exports.universal = universal;
|
|
6265
6251
|
}));
|
|
6266
|
-
|
|
6267
6252
|
//#endregion
|
|
6268
6253
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
6269
6254
|
var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6289,28 +6274,19 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6289
6274
|
}
|
|
6290
6275
|
var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
6291
6276
|
exports.isAttribute = isAttribute;
|
|
6292
|
-
|
|
6293
|
-
exports.
|
|
6294
|
-
|
|
6295
|
-
exports.
|
|
6296
|
-
|
|
6297
|
-
exports.isComment = isComment;
|
|
6298
|
-
var isIdentifier = isNodeType.bind(null, _types.ID);
|
|
6299
|
-
exports.isIdentifier = isIdentifier;
|
|
6300
|
-
var isNesting = isNodeType.bind(null, _types.NESTING);
|
|
6301
|
-
exports.isNesting = isNesting;
|
|
6277
|
+
exports.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
6278
|
+
exports.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
6279
|
+
exports.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
6280
|
+
exports.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
6281
|
+
exports.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
6302
6282
|
var isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
6303
6283
|
exports.isPseudo = isPseudo;
|
|
6304
|
-
|
|
6305
|
-
exports.
|
|
6306
|
-
|
|
6307
|
-
exports.isSelector = isSelector;
|
|
6308
|
-
var isString = isNodeType.bind(null, _types.STRING);
|
|
6309
|
-
exports.isString = isString;
|
|
6284
|
+
exports.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
6285
|
+
exports.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
6286
|
+
exports.isString = isNodeType.bind(null, _types.STRING);
|
|
6310
6287
|
var isTag = isNodeType.bind(null, _types.TAG);
|
|
6311
6288
|
exports.isTag = isTag;
|
|
6312
|
-
|
|
6313
|
-
exports.isUniversal = isUniversal;
|
|
6289
|
+
exports.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
6314
6290
|
function isPseudoElement(node) {
|
|
6315
6291
|
return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
|
|
6316
6292
|
}
|
|
@@ -6324,7 +6300,6 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6324
6300
|
return isAttribute(node) || isTag(node);
|
|
6325
6301
|
}
|
|
6326
6302
|
}));
|
|
6327
|
-
|
|
6328
6303
|
//#endregion
|
|
6329
6304
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/index.js
|
|
6330
6305
|
var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6348,7 +6323,6 @@ var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6348
6323
|
exports[key] = _guards[key];
|
|
6349
6324
|
});
|
|
6350
6325
|
}));
|
|
6351
|
-
|
|
6352
6326
|
//#endregion
|
|
6353
6327
|
//#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/index.js
|
|
6354
6328
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -6388,11 +6362,9 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6388
6362
|
};
|
|
6389
6363
|
Object.assign(parser, selectors);
|
|
6390
6364
|
delete parser.__esModule;
|
|
6391
|
-
|
|
6392
|
-
exports["default"] = _default;
|
|
6365
|
+
exports["default"] = parser;
|
|
6393
6366
|
module.exports = exports.default;
|
|
6394
6367
|
}));
|
|
6395
|
-
|
|
6396
6368
|
//#endregion
|
|
6397
6369
|
//#region packages/compiler-sfc/src/style/pluginScoped.ts
|
|
6398
6370
|
var import_dist = /* @__PURE__ */ __toESM(require_dist());
|
|
@@ -6552,7 +6524,6 @@ function extractAndWrapNodes(parentNode) {
|
|
|
6552
6524
|
}
|
|
6553
6525
|
}
|
|
6554
6526
|
scopedPlugin.postcss = true;
|
|
6555
|
-
|
|
6556
6527
|
//#endregion
|
|
6557
6528
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js
|
|
6558
6529
|
var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6587,7 +6558,6 @@ var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6587
6558
|
return -1;
|
|
6588
6559
|
};
|
|
6589
6560
|
}));
|
|
6590
|
-
|
|
6591
6561
|
//#endregion
|
|
6592
6562
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
|
|
6593
6563
|
var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6653,7 +6623,6 @@ var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6653
6623
|
aOutParam.rest = aIndex;
|
|
6654
6624
|
};
|
|
6655
6625
|
}));
|
|
6656
|
-
|
|
6657
6626
|
//#endregion
|
|
6658
6627
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js
|
|
6659
6628
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -6936,7 +6905,6 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6936
6905
|
}
|
|
6937
6906
|
exports.computeSourceURL = computeSourceURL;
|
|
6938
6907
|
}));
|
|
6939
|
-
|
|
6940
6908
|
//#endregion
|
|
6941
6909
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js
|
|
6942
6910
|
var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7029,7 +6997,6 @@ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7029
6997
|
};
|
|
7030
6998
|
exports.ArraySet = ArraySet;
|
|
7031
6999
|
}));
|
|
7032
|
-
|
|
7033
7000
|
//#endregion
|
|
7034
7001
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js
|
|
7035
7002
|
var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7099,7 +7066,6 @@ var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7099
7066
|
};
|
|
7100
7067
|
exports.MappingList = MappingList;
|
|
7101
7068
|
}));
|
|
7102
|
-
|
|
7103
7069
|
//#endregion
|
|
7104
7070
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js
|
|
7105
7071
|
var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7369,7 +7335,6 @@ var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7369
7335
|
};
|
|
7370
7336
|
exports.SourceMapGenerator = SourceMapGenerator;
|
|
7371
7337
|
}));
|
|
7372
|
-
|
|
7373
7338
|
//#endregion
|
|
7374
7339
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js
|
|
7375
7340
|
var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7431,7 +7396,6 @@ var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7431
7396
|
return index;
|
|
7432
7397
|
};
|
|
7433
7398
|
}));
|
|
7434
|
-
|
|
7435
7399
|
//#endregion
|
|
7436
7400
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
|
|
7437
7401
|
var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -7501,7 +7465,6 @@ var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7501
7465
|
doQuickSort(ary, comparator, 0, ary.length - 1);
|
|
7502
7466
|
};
|
|
7503
7467
|
}));
|
|
7504
|
-
|
|
7505
7468
|
//#endregion
|
|
7506
7469
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
|
|
7507
7470
|
var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -8251,7 +8214,6 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8251
8214
|
};
|
|
8252
8215
|
exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
8253
8216
|
}));
|
|
8254
|
-
|
|
8255
8217
|
//#endregion
|
|
8256
8218
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js
|
|
8257
8219
|
var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -8536,7 +8498,6 @@ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8536
8498
|
};
|
|
8537
8499
|
exports.SourceNode = SourceNode;
|
|
8538
8500
|
}));
|
|
8539
|
-
|
|
8540
8501
|
//#endregion
|
|
8541
8502
|
//#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js
|
|
8542
8503
|
var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -8544,10 +8505,9 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8544
8505
|
exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
|
|
8545
8506
|
exports.SourceNode = require_source_node().SourceNode;
|
|
8546
8507
|
}));
|
|
8547
|
-
|
|
8548
8508
|
//#endregion
|
|
8549
|
-
//#region
|
|
8550
|
-
var
|
|
8509
|
+
//#region packages/compiler-sfc/src/style/preprocessors.ts
|
|
8510
|
+
var import_merge_source_map = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8551
8511
|
var sourceMap = require_source_map();
|
|
8552
8512
|
var SourceMapConsumer = sourceMap.SourceMapConsumer;
|
|
8553
8513
|
var SourceMapGenerator = sourceMap.SourceMapGenerator;
|
|
@@ -8597,11 +8557,7 @@ var require_merge_source_map = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
8597
8557
|
mergedMapGenerator._file = oldMap.file;
|
|
8598
8558
|
return JSON.parse(mergedMapGenerator.toString());
|
|
8599
8559
|
}
|
|
8600
|
-
}));
|
|
8601
|
-
|
|
8602
|
-
//#endregion
|
|
8603
|
-
//#region packages/compiler-sfc/src/style/preprocessors.ts
|
|
8604
|
-
var import_merge_source_map = /* @__PURE__ */ __toESM(require_merge_source_map());
|
|
8560
|
+
})))());
|
|
8605
8561
|
const scss = (source, map, options, load = require) => {
|
|
8606
8562
|
const { compileString, renderSync } = load("sass");
|
|
8607
8563
|
const data = getSource(source, options.filename, options.additionalData);
|
|
@@ -8724,9 +8680,8 @@ const processors = {
|
|
|
8724
8680
|
styl,
|
|
8725
8681
|
stylus: styl
|
|
8726
8682
|
};
|
|
8727
|
-
|
|
8728
8683
|
//#endregion
|
|
8729
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
8684
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/fs.js
|
|
8730
8685
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8731
8686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8732
8687
|
exports.getFileSystem = getFileSystem;
|
|
@@ -8747,9 +8702,8 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8747
8702
|
return fileSystem;
|
|
8748
8703
|
}
|
|
8749
8704
|
}));
|
|
8750
|
-
|
|
8751
8705
|
//#endregion
|
|
8752
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
8706
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/unquote.js
|
|
8753
8707
|
var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8754
8708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8755
8709
|
exports.default = unquote;
|
|
@@ -8761,9 +8715,8 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8761
8715
|
return str;
|
|
8762
8716
|
}
|
|
8763
8717
|
}));
|
|
8764
|
-
|
|
8765
8718
|
//#endregion
|
|
8766
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
8719
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.8/node_modules/icss-utils/src/replaceValueSymbols.js
|
|
8767
8720
|
var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8768
8721
|
const matchValueName = /[$]?[\w-]+/g;
|
|
8769
8722
|
const replaceValueSymbols = (value, replacements) => {
|
|
@@ -8779,9 +8732,8 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
8779
8732
|
};
|
|
8780
8733
|
module.exports = replaceValueSymbols;
|
|
8781
8734
|
}));
|
|
8782
|
-
|
|
8783
8735
|
//#endregion
|
|
8784
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
8736
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.8/node_modules/icss-utils/src/replaceSymbols.js
|
|
8785
8737
|
var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8786
8738
|
const replaceValueSymbols = require_replaceValueSymbols();
|
|
8787
8739
|
const replaceSymbols = (css, replacements) => {
|
|
@@ -8793,9 +8745,8 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
8793
8745
|
};
|
|
8794
8746
|
module.exports = replaceSymbols;
|
|
8795
8747
|
}));
|
|
8796
|
-
|
|
8797
8748
|
//#endregion
|
|
8798
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
8749
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.8/node_modules/icss-utils/src/extractICSS.js
|
|
8799
8750
|
var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8800
8751
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
8801
8752
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
@@ -8848,9 +8799,8 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8848
8799
|
};
|
|
8849
8800
|
module.exports = extractICSS;
|
|
8850
8801
|
}));
|
|
8851
|
-
|
|
8852
8802
|
//#endregion
|
|
8853
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
8803
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.8/node_modules/icss-utils/src/createICSSRules.js
|
|
8854
8804
|
var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8855
8805
|
const createImports = (imports, postcss, mode = "rule") => {
|
|
8856
8806
|
return Object.keys(imports).map((path) => {
|
|
@@ -8893,24 +8843,18 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
8893
8843
|
const createICSSRules = (imports, exports$8, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$8, postcss, mode)];
|
|
8894
8844
|
module.exports = createICSSRules;
|
|
8895
8845
|
}));
|
|
8896
|
-
|
|
8897
8846
|
//#endregion
|
|
8898
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
8847
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.8/node_modules/icss-utils/src/index.js
|
|
8899
8848
|
var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8900
|
-
const replaceValueSymbols = require_replaceValueSymbols();
|
|
8901
|
-
const replaceSymbols = require_replaceSymbols();
|
|
8902
|
-
const extractICSS = require_extractICSS();
|
|
8903
|
-
const createICSSRules = require_createICSSRules();
|
|
8904
8849
|
module.exports = {
|
|
8905
|
-
replaceValueSymbols,
|
|
8906
|
-
replaceSymbols,
|
|
8907
|
-
extractICSS,
|
|
8908
|
-
createICSSRules
|
|
8850
|
+
replaceValueSymbols: require_replaceValueSymbols(),
|
|
8851
|
+
replaceSymbols: require_replaceSymbols(),
|
|
8852
|
+
extractICSS: require_extractICSS(),
|
|
8853
|
+
createICSSRules: require_createICSSRules()
|
|
8909
8854
|
};
|
|
8910
8855
|
}));
|
|
8911
|
-
|
|
8912
8856
|
//#endregion
|
|
8913
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
8857
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/Parser.js
|
|
8914
8858
|
var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8915
8859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8916
8860
|
exports.default = void 0;
|
|
@@ -8977,9 +8921,8 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8977
8921
|
};
|
|
8978
8922
|
exports.default = Parser;
|
|
8979
8923
|
}));
|
|
8980
|
-
|
|
8981
8924
|
//#endregion
|
|
8982
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
8925
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/saveJSON.js
|
|
8983
8926
|
var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8984
8927
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8985
8928
|
exports.default = saveJSON;
|
|
@@ -8991,7 +8934,6 @@ var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8991
8934
|
});
|
|
8992
8935
|
}
|
|
8993
8936
|
}));
|
|
8994
|
-
|
|
8995
8937
|
//#endregion
|
|
8996
8938
|
//#region node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js
|
|
8997
8939
|
var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -9635,9 +9577,8 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
9635
9577
|
}
|
|
9636
9578
|
module.exports = camelCase;
|
|
9637
9579
|
}));
|
|
9638
|
-
|
|
9639
9580
|
//#endregion
|
|
9640
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9581
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/localsConvention.js
|
|
9641
9582
|
var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9642
9583
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9643
9584
|
exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
|
|
@@ -9676,9 +9617,8 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9676
9617
|
};
|
|
9677
9618
|
}
|
|
9678
9619
|
}));
|
|
9679
|
-
|
|
9680
9620
|
//#endregion
|
|
9681
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9621
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
9682
9622
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9683
9623
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9684
9624
|
exports.default = void 0;
|
|
@@ -9762,9 +9702,8 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9762
9702
|
};
|
|
9763
9703
|
exports.default = FileSystemLoader;
|
|
9764
9704
|
}));
|
|
9765
|
-
|
|
9766
9705
|
//#endregion
|
|
9767
|
-
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
9706
|
+
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.8/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
9768
9707
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9769
9708
|
const PERMANENT_MARKER = 2;
|
|
9770
9709
|
const TEMPORARY_MARKER = 1;
|
|
@@ -9802,9 +9741,8 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
9802
9741
|
}
|
|
9803
9742
|
module.exports = topologicalSort;
|
|
9804
9743
|
}));
|
|
9805
|
-
|
|
9806
9744
|
//#endregion
|
|
9807
|
-
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
9745
|
+
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.8/node_modules/postcss-modules-extract-imports/src/index.js
|
|
9808
9746
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9809
9747
|
const topologicalSort = require_topologicalSort();
|
|
9810
9748
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -9931,7 +9869,6 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9931
9869
|
};
|
|
9932
9870
|
module.exports.postcss = true;
|
|
9933
9871
|
}));
|
|
9934
|
-
|
|
9935
9872
|
//#endregion
|
|
9936
9873
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js
|
|
9937
9874
|
var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10066,7 +10003,6 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10066
10003
|
module.exports = create;
|
|
10067
10004
|
module.exports.MAX_SHORT_STRING = MAX_SHORT_STRING;
|
|
10068
10005
|
}));
|
|
10069
|
-
|
|
10070
10006
|
//#endregion
|
|
10071
10007
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js
|
|
10072
10008
|
var require_xxhash64 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10074,7 +10010,6 @@ var require_xxhash64 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10074
10010
|
const xxhash64 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64"));
|
|
10075
10011
|
module.exports = create.bind(null, xxhash64, [], 32, 16);
|
|
10076
10012
|
}));
|
|
10077
|
-
|
|
10078
10013
|
//#endregion
|
|
10079
10014
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js
|
|
10080
10015
|
var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10119,7 +10054,6 @@ var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10119
10054
|
};
|
|
10120
10055
|
module.exports = BatchedHash;
|
|
10121
10056
|
}));
|
|
10122
|
-
|
|
10123
10057
|
//#endregion
|
|
10124
10058
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js
|
|
10125
10059
|
var require_md4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10127,7 +10061,6 @@ var require_md4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10127
10061
|
const md4 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9gZqQQl3IgRzIAFzampBodfn9gZqQQt3IgMgAiADIBggASADIARzIAJzampBodfn9gZqQQ93IgFzIARzaiANakGh1+f2BmpBA3ciAiAUIAQgASACcyADc2pqQaHX5/YGakEJdyIEcyABc2pqQaHX5/YGakELdyIDIAsgAiADIBYgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgIgEyAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3chAyAKIA4gAiADIBcgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgJqIQogBiAJIAEgESADIAIgFSAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3ciAyAEcyACc2pqQaHX5/YGakEPd2ohBiADIAdqIQcgBCAIaiEIIAVBQGshBQwBCwsgCiQBIAYkAiAHJAMgCCQECw0AIAAQASMAIABqJAAL/wQCA38BfiMAIABqrUIDhiEEIABByABqQUBxIgJBCGshAyAAIgFBAWohACABQYABOgAAA0AgACACSUEAIABBB3EbBEAgAEEAOgAAIABBAWohAAwBCwsDQCAAIAJJBEAgAEIANwMAIABBCGohAAwBCwsgAyAENwMAIAIQAUEAIwGtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64"));
|
|
10128
10062
|
module.exports = create.bind(null, md4, [], 64, 32);
|
|
10129
10063
|
}));
|
|
10130
|
-
|
|
10131
10064
|
//#endregion
|
|
10132
10065
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js
|
|
10133
10066
|
var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10197,7 +10130,6 @@ var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
10197
10130
|
};
|
|
10198
10131
|
module.exports = BulkUpdateDecorator;
|
|
10199
10132
|
}));
|
|
10200
|
-
|
|
10201
10133
|
//#endregion
|
|
10202
10134
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js
|
|
10203
10135
|
var require_getHashDigest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10276,7 +10208,6 @@ var require_getHashDigest = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
10276
10208
|
}
|
|
10277
10209
|
module.exports = getHashDigest;
|
|
10278
10210
|
}));
|
|
10279
|
-
|
|
10280
10211
|
//#endregion
|
|
10281
10212
|
//#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js
|
|
10282
10213
|
var require_interpolateName = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10329,7 +10260,6 @@ var require_interpolateName = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
10329
10260
|
}
|
|
10330
10261
|
module.exports = interpolateName;
|
|
10331
10262
|
}));
|
|
10332
|
-
|
|
10333
10263
|
//#endregion
|
|
10334
10264
|
//#region node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js
|
|
10335
10265
|
var require_generic_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10360,7 +10290,6 @@ var require_generic_names = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
10360
10290
|
};
|
|
10361
10291
|
};
|
|
10362
10292
|
}));
|
|
10363
|
-
|
|
10364
10293
|
//#endregion
|
|
10365
10294
|
//#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
|
|
10366
10295
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10592,7 +10521,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10592
10521
|
return stack[0].nodes;
|
|
10593
10522
|
};
|
|
10594
10523
|
}));
|
|
10595
|
-
|
|
10596
10524
|
//#endregion
|
|
10597
10525
|
//#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js
|
|
10598
10526
|
var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10606,7 +10534,6 @@ var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10606
10534
|
}
|
|
10607
10535
|
};
|
|
10608
10536
|
}));
|
|
10609
|
-
|
|
10610
10537
|
//#endregion
|
|
10611
10538
|
//#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/stringify.js
|
|
10612
10539
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10640,7 +10567,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10640
10567
|
}
|
|
10641
10568
|
module.exports = stringify;
|
|
10642
10569
|
}));
|
|
10643
|
-
|
|
10644
10570
|
//#endregion
|
|
10645
10571
|
//#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/unit.js
|
|
10646
10572
|
var require_unit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10708,7 +10634,6 @@ var require_unit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10708
10634
|
};
|
|
10709
10635
|
};
|
|
10710
10636
|
}));
|
|
10711
|
-
|
|
10712
10637
|
//#endregion
|
|
10713
10638
|
//#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/index.js
|
|
10714
10639
|
var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10734,9 +10659,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10734
10659
|
ValueParser.stringify = stringify;
|
|
10735
10660
|
module.exports = ValueParser;
|
|
10736
10661
|
}));
|
|
10737
|
-
|
|
10738
10662
|
//#endregion
|
|
10739
|
-
//#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
10663
|
+
//#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.8/node_modules/postcss-modules-local-by-default/src/index.js
|
|
10740
10664
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10741
10665
|
const selectorParser = require_dist();
|
|
10742
10666
|
const valueParser = require_lib();
|
|
@@ -11134,9 +11058,8 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11134
11058
|
};
|
|
11135
11059
|
module.exports.postcss = true;
|
|
11136
11060
|
}));
|
|
11137
|
-
|
|
11138
11061
|
//#endregion
|
|
11139
|
-
//#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
11062
|
+
//#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.8/node_modules/postcss-modules-scope/src/index.js
|
|
11140
11063
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11141
11064
|
const selectorParser = require_dist();
|
|
11142
11065
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -11158,7 +11081,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11158
11081
|
return node.value;
|
|
11159
11082
|
});
|
|
11160
11083
|
}
|
|
11161
|
-
const unescapeRegExp = new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig");
|
|
11084
|
+
const unescapeRegExp = /* @__PURE__ */ new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig");
|
|
11162
11085
|
function unescape(str) {
|
|
11163
11086
|
return str.replace(unescapeRegExp, (_, escaped, escapedWhitespace) => {
|
|
11164
11087
|
const high = "0x" + escaped - 65536;
|
|
@@ -11305,7 +11228,6 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11305
11228
|
};
|
|
11306
11229
|
module.exports = plugin;
|
|
11307
11230
|
}));
|
|
11308
|
-
|
|
11309
11231
|
//#endregion
|
|
11310
11232
|
//#region node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js
|
|
11311
11233
|
var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11316,9 +11238,8 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11316
11238
|
}
|
|
11317
11239
|
module.exports = hash;
|
|
11318
11240
|
}));
|
|
11319
|
-
|
|
11320
11241
|
//#endregion
|
|
11321
|
-
//#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
11242
|
+
//#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.8/node_modules/postcss-modules-values/src/index.js
|
|
11322
11243
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11323
11244
|
const ICSSUtils = require_src$4();
|
|
11324
11245
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -11404,9 +11325,8 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11404
11325
|
};
|
|
11405
11326
|
module.exports.postcss = true;
|
|
11406
11327
|
}));
|
|
11407
|
-
|
|
11408
11328
|
//#endregion
|
|
11409
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
11329
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/scoping.js
|
|
11410
11330
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11411
11331
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11412
11332
|
exports.behaviours = void 0;
|
|
@@ -11467,9 +11387,8 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11467
11387
|
});
|
|
11468
11388
|
}
|
|
11469
11389
|
}));
|
|
11470
|
-
|
|
11471
11390
|
//#endregion
|
|
11472
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
11391
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.8/node_modules/postcss-modules/build/pluginFactory.js
|
|
11473
11392
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11474
11393
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11475
11394
|
exports.makePlugin = makePlugin;
|
|
@@ -11542,10 +11461,9 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11542
11461
|
};
|
|
11543
11462
|
}
|
|
11544
11463
|
}));
|
|
11545
|
-
|
|
11546
11464
|
//#endregion
|
|
11547
|
-
//#region
|
|
11548
|
-
var
|
|
11465
|
+
//#region packages/compiler-sfc/src/compileStyle.ts
|
|
11466
|
+
var import_build = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11549
11467
|
var _fs = require("fs");
|
|
11550
11468
|
var _fs2 = require_fs();
|
|
11551
11469
|
var _pluginFactory = require_pluginFactory();
|
|
@@ -11555,11 +11473,7 @@ var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11555
11473
|
});
|
|
11556
11474
|
module.exports = (opts = {}) => (0, _pluginFactory.makePlugin)(opts);
|
|
11557
11475
|
module.exports.postcss = true;
|
|
11558
|
-
}));
|
|
11559
|
-
|
|
11560
|
-
//#endregion
|
|
11561
|
-
//#region packages/compiler-sfc/src/compileStyle.ts
|
|
11562
|
-
var import_build = /* @__PURE__ */ __toESM(require_build());
|
|
11476
|
+
})))());
|
|
11563
11477
|
function compileStyle(options) {
|
|
11564
11478
|
return doCompileStyle({
|
|
11565
11479
|
...options,
|
|
@@ -11656,7 +11570,6 @@ function preprocess(options, preprocessor) {
|
|
|
11656
11570
|
...options.preprocessOptions
|
|
11657
11571
|
}, options.preprocessCustomRequire);
|
|
11658
11572
|
}
|
|
11659
|
-
|
|
11660
11573
|
//#endregion
|
|
11661
11574
|
//#region packages/compiler-sfc/src/script/utils.ts
|
|
11662
11575
|
const UNKNOWN_TYPE = "Unknown";
|
|
@@ -11720,7 +11633,6 @@ function getEscapedPropName(key) {
|
|
|
11720
11633
|
}
|
|
11721
11634
|
const isJS = (...langs) => langs.some((lang) => lang === "js" || lang === "jsx");
|
|
11722
11635
|
const isTS = (...langs) => langs.some((lang) => lang === "ts" || lang === "tsx");
|
|
11723
|
-
|
|
11724
11636
|
//#endregion
|
|
11725
11637
|
//#region packages/compiler-sfc/src/script/analyzeScriptBindings.ts
|
|
11726
11638
|
/**
|
|
@@ -11766,7 +11678,6 @@ function getObjectOrArrayExpressionKeys(value) {
|
|
|
11766
11678
|
if (value.type === "ObjectExpression") return getObjectExpressionKeys(value);
|
|
11767
11679
|
return [];
|
|
11768
11680
|
}
|
|
11769
|
-
|
|
11770
11681
|
//#endregion
|
|
11771
11682
|
//#region packages/compiler-sfc/src/script/context.ts
|
|
11772
11683
|
var ScriptCompileContext = class {
|
|
@@ -11846,7 +11757,6 @@ function resolveParserPlugins(lang, userPlugins, dts = false) {
|
|
|
11846
11757
|
if (userPlugins) plugins.push(...userPlugins);
|
|
11847
11758
|
return plugins;
|
|
11848
11759
|
}
|
|
11849
|
-
|
|
11850
11760
|
//#endregion
|
|
11851
11761
|
//#region packages/compiler-sfc/src/rewriteDefault.ts
|
|
11852
11762
|
function rewriteDefault(input, as, parserPlugins) {
|
|
@@ -11911,7 +11821,6 @@ function specifierEnd(s, end, nodeEnd) {
|
|
|
11911
11821
|
} else if (s.slice(end, end + 1) === "}") break;
|
|
11912
11822
|
return hasCommas ? end : oldEnd;
|
|
11913
11823
|
}
|
|
11914
|
-
|
|
11915
11824
|
//#endregion
|
|
11916
11825
|
//#region packages/compiler-sfc/src/script/normalScript.ts
|
|
11917
11826
|
const normalScriptDefaultVar = `__default__`;
|
|
@@ -11944,7 +11853,6 @@ function processNormalScript(ctx, scopeId) {
|
|
|
11944
11853
|
return script;
|
|
11945
11854
|
}
|
|
11946
11855
|
}
|
|
11947
|
-
|
|
11948
11856
|
//#endregion
|
|
11949
11857
|
//#region node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
|
|
11950
11858
|
const balanced = (a, b, str) => {
|
|
@@ -11993,9 +11901,8 @@ const range = (a, b, str) => {
|
|
|
11993
11901
|
}
|
|
11994
11902
|
return result;
|
|
11995
11903
|
};
|
|
11996
|
-
|
|
11997
11904
|
//#endregion
|
|
11998
|
-
//#region node_modules/.pnpm/brace-expansion@5.0.
|
|
11905
|
+
//#region node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/esm/index.js
|
|
11999
11906
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
12000
11907
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
12001
11908
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -12010,7 +11917,7 @@ const slashPattern = /\\\\/g;
|
|
|
12010
11917
|
const openPattern = /\\{/g;
|
|
12011
11918
|
const closePattern = /\\}/g;
|
|
12012
11919
|
const commaPattern = /\\,/g;
|
|
12013
|
-
const periodPattern =
|
|
11920
|
+
const periodPattern = /\\\./g;
|
|
12014
11921
|
const EXPANSION_MAX = 1e5;
|
|
12015
11922
|
function numeric(str) {
|
|
12016
11923
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
@@ -12098,7 +12005,7 @@ function expand_(str, max, isTop) {
|
|
|
12098
12005
|
const x = numeric(n[0]);
|
|
12099
12006
|
const y = numeric(n[1]);
|
|
12100
12007
|
const width = Math.max(n[0].length, n[1].length);
|
|
12101
|
-
let incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1;
|
|
12008
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
12102
12009
|
let test = lte;
|
|
12103
12010
|
if (y < x) {
|
|
12104
12011
|
incr *= -1;
|
|
@@ -12135,17 +12042,15 @@ function expand_(str, max, isTop) {
|
|
|
12135
12042
|
}
|
|
12136
12043
|
return expansions;
|
|
12137
12044
|
}
|
|
12138
|
-
|
|
12139
12045
|
//#endregion
|
|
12140
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12046
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
12141
12047
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
12142
12048
|
const assertValidPattern = (pattern) => {
|
|
12143
12049
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
12144
12050
|
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
12145
12051
|
};
|
|
12146
|
-
|
|
12147
12052
|
//#endregion
|
|
12148
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12053
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
12149
12054
|
const posixClasses = {
|
|
12150
12055
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
12151
12056
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -12265,9 +12170,8 @@ const parseClass = (glob, position) => {
|
|
|
12265
12170
|
true
|
|
12266
12171
|
];
|
|
12267
12172
|
};
|
|
12268
|
-
|
|
12269
12173
|
//#endregion
|
|
12270
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12174
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/unescape.js
|
|
12271
12175
|
/**
|
|
12272
12176
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
12273
12177
|
*
|
|
@@ -12291,9 +12195,8 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
12291
12195
|
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
12292
12196
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
12293
12197
|
};
|
|
12294
|
-
|
|
12295
12198
|
//#endregion
|
|
12296
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12199
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/ast.js
|
|
12297
12200
|
var _AST;
|
|
12298
12201
|
let _Symbol$for;
|
|
12299
12202
|
var _a;
|
|
@@ -12828,9 +12731,8 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
|
|
|
12828
12731
|
];
|
|
12829
12732
|
}
|
|
12830
12733
|
_a = AST;
|
|
12831
|
-
|
|
12832
12734
|
//#endregion
|
|
12833
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12735
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/escape.js
|
|
12834
12736
|
/**
|
|
12835
12737
|
* Escape all magic characters in a glob pattern.
|
|
12836
12738
|
*
|
|
@@ -12847,9 +12749,8 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
12847
12749
|
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
12848
12750
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
12849
12751
|
};
|
|
12850
|
-
|
|
12851
12752
|
//#endregion
|
|
12852
|
-
//#region node_modules/.pnpm/minimatch@10.2.
|
|
12753
|
+
//#region node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/index.js
|
|
12853
12754
|
const minimatch = (p, pattern, options = {}) => {
|
|
12854
12755
|
assertValidPattern(pattern);
|
|
12855
12756
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -12909,9 +12810,7 @@ const path$1 = {
|
|
|
12909
12810
|
win32: { sep: "\\" },
|
|
12910
12811
|
posix: { sep: "/" }
|
|
12911
12812
|
};
|
|
12912
|
-
|
|
12913
|
-
const sep = defaultPlatform === "win32" ? path$1.win32.sep : path$1.posix.sep;
|
|
12914
|
-
minimatch.sep = sep;
|
|
12813
|
+
minimatch.sep = defaultPlatform === "win32" ? path$1.win32.sep : path$1.posix.sep;
|
|
12915
12814
|
const GLOBSTAR = Symbol("globstar **");
|
|
12916
12815
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
12917
12816
|
const star = "[^/]*?";
|
|
@@ -13345,7 +13244,11 @@ var Minimatch = class {
|
|
|
13345
13244
|
function _matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
13346
13245
|
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
13347
13246
|
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
13348
|
-
const [head, body, tail] = [
|
|
13247
|
+
const [head, body, tail] = partial ? [
|
|
13248
|
+
pattern.slice(patternIndex, firstgs),
|
|
13249
|
+
pattern.slice(firstgs + 1),
|
|
13250
|
+
[]
|
|
13251
|
+
] : [
|
|
13349
13252
|
pattern.slice(patternIndex, firstgs),
|
|
13350
13253
|
pattern.slice(firstgs + 1, lastgs),
|
|
13351
13254
|
pattern.slice(lastgs + 1)
|
|
@@ -13375,7 +13278,7 @@ function _matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
|
13375
13278
|
sawSome = true;
|
|
13376
13279
|
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
|
|
13377
13280
|
}
|
|
13378
|
-
return sawSome;
|
|
13281
|
+
return partial || sawSome;
|
|
13379
13282
|
}
|
|
13380
13283
|
const bodySegments = [[[], 0]];
|
|
13381
13284
|
let currentBody = bodySegments[0];
|
|
@@ -13414,7 +13317,7 @@ function _matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, pa
|
|
|
13414
13317
|
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
|
|
13415
13318
|
fileIndex++;
|
|
13416
13319
|
}
|
|
13417
|
-
return null;
|
|
13320
|
+
return partial || null;
|
|
13418
13321
|
}
|
|
13419
13322
|
function _matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
13420
13323
|
let fi;
|
|
@@ -13450,7 +13353,6 @@ minimatch.AST = AST;
|
|
|
13450
13353
|
minimatch.Minimatch = Minimatch;
|
|
13451
13354
|
minimatch.escape = escape;
|
|
13452
13355
|
minimatch.unescape = unescape;
|
|
13453
|
-
|
|
13454
13356
|
//#endregion
|
|
13455
13357
|
//#region packages/compiler-sfc/src/script/resolveType.ts
|
|
13456
13358
|
var TypeScope = class {
|
|
@@ -14144,7 +14046,7 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
14144
14046
|
const annotation = m.parameters[0].typeAnnotation;
|
|
14145
14047
|
if (annotation && annotation.type !== "Noop") {
|
|
14146
14048
|
const type = inferRuntimeType(ctx, annotation.typeAnnotation, scope)[0];
|
|
14147
|
-
if (type ===
|
|
14049
|
+
if (type === "Unknown") return [UNKNOWN_TYPE];
|
|
14148
14050
|
types.add(type);
|
|
14149
14051
|
}
|
|
14150
14052
|
} else types.add("String");
|
|
@@ -14400,20 +14302,19 @@ function resolveUnionType(ctx, node, scope) {
|
|
|
14400
14302
|
else types = [node];
|
|
14401
14303
|
return types;
|
|
14402
14304
|
}
|
|
14403
|
-
|
|
14404
14305
|
//#endregion
|
|
14405
14306
|
//#region packages/compiler-sfc/src/script/defineModel.ts
|
|
14406
14307
|
const DEFINE_MODEL = "defineModel";
|
|
14407
14308
|
function processDefineModel(ctx, node, declId) {
|
|
14408
|
-
if (!isCallOf(node,
|
|
14309
|
+
if (!isCallOf(node, "defineModel")) return false;
|
|
14409
14310
|
ctx.hasDefineModelCall = true;
|
|
14410
14311
|
const type = node.typeParameters && node.typeParameters.params[0] || void 0;
|
|
14411
14312
|
let modelName;
|
|
14412
14313
|
let options;
|
|
14413
14314
|
const arg0 = node.arguments[0] && (0, _vue_compiler_dom.unwrapTSNode)(node.arguments[0]);
|
|
14414
|
-
const hasName = arg0 && arg0.type === "StringLiteral";
|
|
14315
|
+
const hasName = arg0 && (arg0.type === "StringLiteral" || arg0.type === "TemplateLiteral" && arg0.expressions.length === 0);
|
|
14415
14316
|
if (hasName) {
|
|
14416
|
-
modelName = arg0.value;
|
|
14317
|
+
modelName = arg0.type === "StringLiteral" ? arg0.value : arg0.quasis[0].value.cooked;
|
|
14417
14318
|
options = node.arguments[1];
|
|
14418
14319
|
} else {
|
|
14419
14320
|
modelName = "modelValue";
|
|
@@ -14464,7 +14365,7 @@ function genModelProps(ctx) {
|
|
|
14464
14365
|
if (runtimeTypes) {
|
|
14465
14366
|
const hasBoolean = runtimeTypes.includes("Boolean");
|
|
14466
14367
|
const hasFunction = runtimeTypes.includes("Function");
|
|
14467
|
-
if (runtimeTypes.includes(
|
|
14368
|
+
if (runtimeTypes.includes("Unknown")) if (hasBoolean || hasFunction) {
|
|
14468
14369
|
runtimeTypes = runtimeTypes.filter((t) => t !== UNKNOWN_TYPE);
|
|
14469
14370
|
skipCheck = true;
|
|
14470
14371
|
} else runtimeTypes = ["null"];
|
|
@@ -14482,13 +14383,12 @@ function genModelProps(ctx) {
|
|
|
14482
14383
|
}
|
|
14483
14384
|
return `{${modelPropsDecl}\n }`;
|
|
14484
14385
|
}
|
|
14485
|
-
|
|
14486
14386
|
//#endregion
|
|
14487
14387
|
//#region packages/compiler-sfc/src/script/defineProps.ts
|
|
14488
14388
|
const DEFINE_PROPS = "defineProps";
|
|
14489
14389
|
const WITH_DEFAULTS = "withDefaults";
|
|
14490
14390
|
function processDefineProps(ctx, node, declId, isWithDefaults = false) {
|
|
14491
|
-
if (!isCallOf(node,
|
|
14391
|
+
if (!isCallOf(node, "defineProps")) return processWithDefaults(ctx, node, declId);
|
|
14492
14392
|
if (ctx.hasDefinePropsCall) ctx.error(`duplicate ${DEFINE_PROPS}() call`, node);
|
|
14493
14393
|
ctx.hasDefinePropsCall = true;
|
|
14494
14394
|
ctx.propsRuntimeDecl = node.arguments[0];
|
|
@@ -14509,7 +14409,7 @@ function processDefineProps(ctx, node, declId, isWithDefaults = false) {
|
|
|
14509
14409
|
return true;
|
|
14510
14410
|
}
|
|
14511
14411
|
function processWithDefaults(ctx, node, declId) {
|
|
14512
|
-
if (!isCallOf(node,
|
|
14412
|
+
if (!isCallOf(node, "withDefaults")) return false;
|
|
14513
14413
|
if (!processDefineProps(ctx, node.arguments[0], declId, true)) ctx.error(`${WITH_DEFAULTS}' first argument must be a ${DEFINE_PROPS} call.`, node.arguments[0] || node);
|
|
14514
14414
|
if (ctx.propsRuntimeDecl) ctx.error(`${WITH_DEFAULTS} can only be used with type-based ${DEFINE_PROPS} declaration.`, node);
|
|
14515
14415
|
if (declId && declId.type === "ObjectPattern") ctx.warn(`${WITH_DEFAULTS}() is unnecessary when using destructure with ${DEFINE_PROPS}().\nReactive destructure will be disabled when using withDefaults().\nPrefer using destructure default values, e.g. const { foo = 1 } = defineProps(...). `, node.callee);
|
|
@@ -14554,7 +14454,7 @@ function resolveRuntimePropsFromType(ctx, node) {
|
|
|
14554
14454
|
const e = elements.props[key];
|
|
14555
14455
|
let type = inferRuntimeType(ctx, e);
|
|
14556
14456
|
let skipCheck = false;
|
|
14557
|
-
if (type.includes(
|
|
14457
|
+
if (type.includes("Unknown")) if (type.includes("Boolean") || type.includes("Function")) {
|
|
14558
14458
|
type = type.filter((t) => t !== UNKNOWN_TYPE);
|
|
14559
14459
|
skipCheck = true;
|
|
14560
14460
|
} else type = ["null"];
|
|
@@ -14640,7 +14540,6 @@ function inferValueType(node) {
|
|
|
14640
14540
|
case "ArrowFunctionExpression": return "Function";
|
|
14641
14541
|
}
|
|
14642
14542
|
}
|
|
14643
|
-
|
|
14644
14543
|
//#endregion
|
|
14645
14544
|
//#region packages/compiler-sfc/src/script/definePropsDestructure.ts
|
|
14646
14545
|
function processPropsDestructure(ctx, declId) {
|
|
@@ -14768,12 +14667,11 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
14768
14667
|
}
|
|
14769
14668
|
});
|
|
14770
14669
|
}
|
|
14771
|
-
|
|
14772
14670
|
//#endregion
|
|
14773
14671
|
//#region packages/compiler-sfc/src/script/defineEmits.ts
|
|
14774
14672
|
const DEFINE_EMITS = "defineEmits";
|
|
14775
14673
|
function processDefineEmits(ctx, node, declId) {
|
|
14776
|
-
if (!isCallOf(node,
|
|
14674
|
+
if (!isCallOf(node, "defineEmits")) return false;
|
|
14777
14675
|
if (ctx.hasDefineEmitCall) ctx.error(`duplicate ${DEFINE_EMITS}() call`, node);
|
|
14778
14676
|
ctx.hasDefineEmitCall = true;
|
|
14779
14677
|
ctx.emitsRuntimeDecl = node.arguments[0];
|
|
@@ -14824,36 +14722,33 @@ function extractEventNames(ctx, eventName, emits) {
|
|
|
14824
14722
|
}
|
|
14825
14723
|
}
|
|
14826
14724
|
}
|
|
14827
|
-
|
|
14828
14725
|
//#endregion
|
|
14829
14726
|
//#region packages/compiler-sfc/src/script/defineExpose.ts
|
|
14830
14727
|
const DEFINE_EXPOSE = "defineExpose";
|
|
14831
14728
|
function processDefineExpose(ctx, node) {
|
|
14832
|
-
if (isCallOf(node,
|
|
14729
|
+
if (isCallOf(node, "defineExpose")) {
|
|
14833
14730
|
if (ctx.hasDefineExposeCall) ctx.error(`duplicate ${DEFINE_EXPOSE}() call`, node);
|
|
14834
14731
|
ctx.hasDefineExposeCall = true;
|
|
14835
14732
|
return true;
|
|
14836
14733
|
}
|
|
14837
14734
|
return false;
|
|
14838
14735
|
}
|
|
14839
|
-
|
|
14840
14736
|
//#endregion
|
|
14841
14737
|
//#region packages/compiler-sfc/src/script/defineSlots.ts
|
|
14842
14738
|
const DEFINE_SLOTS = "defineSlots";
|
|
14843
14739
|
function processDefineSlots(ctx, node, declId) {
|
|
14844
|
-
if (!isCallOf(node,
|
|
14740
|
+
if (!isCallOf(node, "defineSlots")) return false;
|
|
14845
14741
|
if (ctx.hasDefineSlotsCall) ctx.error(`duplicate ${DEFINE_SLOTS}() call`, node);
|
|
14846
14742
|
ctx.hasDefineSlotsCall = true;
|
|
14847
14743
|
if (node.arguments.length > 0) ctx.error(`${DEFINE_SLOTS}() cannot accept arguments`, node);
|
|
14848
14744
|
if (declId) ctx.s.overwrite(ctx.startOffset + node.start, ctx.startOffset + node.end, `${ctx.helper("useSlots")}()`);
|
|
14849
14745
|
return true;
|
|
14850
14746
|
}
|
|
14851
|
-
|
|
14852
14747
|
//#endregion
|
|
14853
14748
|
//#region packages/compiler-sfc/src/script/defineOptions.ts
|
|
14854
14749
|
const DEFINE_OPTIONS = "defineOptions";
|
|
14855
14750
|
function processDefineOptions(ctx, node) {
|
|
14856
|
-
if (!isCallOf(node,
|
|
14751
|
+
if (!isCallOf(node, "defineOptions")) return false;
|
|
14857
14752
|
if (ctx.hasDefineOptionsCall) ctx.error(`duplicate ${DEFINE_OPTIONS}() call`, node);
|
|
14858
14753
|
if (node.typeParameters) ctx.error(`${DEFINE_OPTIONS}() cannot accept type arguments`, node);
|
|
14859
14754
|
if (!node.arguments[0]) return true;
|
|
@@ -14885,7 +14780,6 @@ function processDefineOptions(ctx, node) {
|
|
|
14885
14780
|
if (slotsOption) ctx.error(`${DEFINE_OPTIONS}() cannot be used to declare slots. Use ${DEFINE_SLOTS}() instead.`, slotsOption);
|
|
14886
14781
|
return true;
|
|
14887
14782
|
}
|
|
14888
|
-
|
|
14889
14783
|
//#endregion
|
|
14890
14784
|
//#region packages/compiler-sfc/src/script/topLevelAwait.ts
|
|
14891
14785
|
/**
|
|
@@ -14929,7 +14823,6 @@ function processAwait(ctx, node, needSemi, isStatement) {
|
|
|
14929
14823
|
ctx.s.overwrite(node.start + startOffset, argumentStart + startOffset, `${needSemi ? `;` : ``}(\n ([__temp,__restore] = ${ctx.helper(`withAsyncContext`)}(${containsNestedAwait ? `async ` : ``}() => `);
|
|
14930
14824
|
ctx.s.appendLeft(node.end + startOffset, `)),\n ${isStatement ? `` : `__temp = `}await __temp,\n __restore()${isStatement ? `` : `,\n __temp`}\n)`);
|
|
14931
14825
|
}
|
|
14932
|
-
|
|
14933
14826
|
//#endregion
|
|
14934
14827
|
//#region packages/compiler-sfc/src/compileScript.ts
|
|
14935
14828
|
const MACROS = [
|
|
@@ -15284,7 +15177,7 @@ function compileScript(sfc, options) {
|
|
|
15284
15177
|
else ctx.s.appendRight(endOffset, `\n${vapor && !ssr ? `` : `return `}${returned}\n}\n\n`);
|
|
15285
15178
|
const genDefaultAs = options.genDefaultAs ? `const ${options.genDefaultAs} =` : `export default`;
|
|
15286
15179
|
let runtimeOptions = ``;
|
|
15287
|
-
if (!ctx.hasDefaultExportName && filename && filename !==
|
|
15180
|
+
if (!ctx.hasDefaultExportName && filename && filename !== "anonymous.vue") {
|
|
15288
15181
|
const match = filename.match(/([^/\\]+)\.\w+$/);
|
|
15289
15182
|
if (match) runtimeOptions += `\n __name: '${match[1]}',`;
|
|
15290
15183
|
}
|
|
@@ -15292,6 +15185,10 @@ function compileScript(sfc, options) {
|
|
|
15292
15185
|
if (propsDecl) runtimeOptions += `\n props: ${propsDecl},`;
|
|
15293
15186
|
const emitsDecl = genRuntimeEmits(ctx);
|
|
15294
15187
|
if (emitsDecl) runtimeOptions += `\n emits: ${emitsDecl},`;
|
|
15188
|
+
if (vapor && !ssr && sfc.template && !sfc.template.src) {
|
|
15189
|
+
var _options$templateOpti2;
|
|
15190
|
+
runtimeOptions += `\n __multiRoot: ${isMultiRoot(sfc.template.ast, (_options$templateOpti2 = options.templateOptions) === null || _options$templateOpti2 === void 0 ? void 0 : _options$templateOpti2.compilerOptions)},`;
|
|
15191
|
+
}
|
|
15295
15192
|
let definedOptions = "";
|
|
15296
15193
|
if (ctx.optionsRuntimeDecl) definedOptions = scriptSetup.content.slice(ctx.optionsRuntimeDecl.start, ctx.optionsRuntimeDecl.end).trim();
|
|
15297
15194
|
if (!ctx.hasDefineExposeCall && !inlineMode) setupPreambleLines.push(`__expose();`);
|
|
@@ -15312,8 +15209,8 @@ function compileScript(sfc, options) {
|
|
|
15312
15209
|
}
|
|
15313
15210
|
}
|
|
15314
15211
|
if (ctx.helperImports.size > 0) {
|
|
15315
|
-
var _options$
|
|
15316
|
-
const runtimeModuleName = (_options$
|
|
15212
|
+
var _options$templateOpti3;
|
|
15213
|
+
const runtimeModuleName = (_options$templateOpti3 = options.templateOptions) === null || _options$templateOpti3 === void 0 || (_options$templateOpti3 = _options$templateOpti3.compilerOptions) === null || _options$templateOpti3 === void 0 ? void 0 : _options$templateOpti3.runtimeModuleName;
|
|
15317
15214
|
const importSrc = runtimeModuleName ? JSON.stringify(runtimeModuleName) : `'vue'`;
|
|
15318
15215
|
ctx.s.prepend(`import { ${[...ctx.helperImports].map((h) => `${h} as _${h}`).join(", ")} } from ${importSrc}\n`);
|
|
15319
15216
|
}
|
|
@@ -15349,19 +15246,19 @@ function walkDeclaration(from, node, bindings, userImportAliases, hoistStatic, i
|
|
|
15349
15246
|
isAllLiteral = isConst && node.declarations.every((decl) => decl.id.type === "Identifier" && (0, _vue_compiler_dom.isStaticNode)(decl.init));
|
|
15350
15247
|
for (const { id, init: _init } of node.declarations) {
|
|
15351
15248
|
const init = _init && (0, _vue_compiler_dom.unwrapTSNode)(_init);
|
|
15352
|
-
const isConstMacroCall = isConst && isCallOf(init, (c) => c ===
|
|
15249
|
+
const isConstMacroCall = isConst && isCallOf(init, (c) => c === "defineProps" || c === "defineEmits" || c === "withDefaults" || c === "defineSlots");
|
|
15353
15250
|
if (id.type === "Identifier") {
|
|
15354
15251
|
let bindingType;
|
|
15355
15252
|
const userReactiveBinding = userImportAliases["reactive"];
|
|
15356
15253
|
if ((hoistStatic || from === "script") && (isAllLiteral || isConst && (0, _vue_compiler_dom.isStaticNode)(init))) bindingType = "literal-const";
|
|
15357
15254
|
else if (isCallOf(init, userReactiveBinding)) bindingType = isConst ? "setup-reactive-const" : "setup-let";
|
|
15358
|
-
else if (isConstMacroCall || isConst && canNeverBeRef(init, userReactiveBinding)) bindingType = isCallOf(init,
|
|
15359
|
-
else if (isConst) if (isCallOf(init, (m) => m === userImportAliases["ref"] || m === userImportAliases["computed"] || m === userImportAliases["shallowRef"] || m === userImportAliases["customRef"] || m === userImportAliases["toRef"] || m === userImportAliases["useTemplateRef"] || m ===
|
|
15255
|
+
else if (isConstMacroCall || isConst && canNeverBeRef(init, userReactiveBinding)) bindingType = isCallOf(init, "defineProps") ? "setup-reactive-const" : "setup-const";
|
|
15256
|
+
else if (isConst) if (isCallOf(init, (m) => m === userImportAliases["ref"] || m === userImportAliases["computed"] || m === userImportAliases["shallowRef"] || m === userImportAliases["customRef"] || m === userImportAliases["toRef"] || m === userImportAliases["useTemplateRef"] || m === "defineModel")) bindingType = "setup-ref";
|
|
15360
15257
|
else bindingType = "setup-maybe-ref";
|
|
15361
15258
|
else bindingType = "setup-let";
|
|
15362
15259
|
registerBinding(bindings, id, bindingType);
|
|
15363
15260
|
} else {
|
|
15364
|
-
if (isCallOf(init,
|
|
15261
|
+
if (isCallOf(init, "defineProps") && isPropsDestructureEnabled) continue;
|
|
15365
15262
|
if (id.type === "ObjectPattern") walkObjectPattern(id, bindings, isConst, isConstMacroCall);
|
|
15366
15263
|
else if (id.type === "ArrayPattern") walkArrayPattern(id, bindings, isConst, isConstMacroCall);
|
|
15367
15264
|
}
|
|
@@ -15446,10 +15343,9 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
15446
15343
|
generator._file = scriptMap.file;
|
|
15447
15344
|
return generator.toJSON();
|
|
15448
15345
|
}
|
|
15449
|
-
|
|
15450
15346
|
//#endregion
|
|
15451
15347
|
//#region packages/compiler-sfc/src/index.ts
|
|
15452
|
-
const version = "3.6.0-beta.
|
|
15348
|
+
const version = "3.6.0-beta.9";
|
|
15453
15349
|
const parseCache = parseCache$1;
|
|
15454
15350
|
const errorMessages = {
|
|
15455
15351
|
..._vue_compiler_dom.errorMessages,
|
|
@@ -15462,7 +15358,6 @@ const walk = estree_walker.walk;
|
|
|
15462
15358
|
* ignoring the option instead of breaking.
|
|
15463
15359
|
*/
|
|
15464
15360
|
const shouldTransformRef = () => false;
|
|
15465
|
-
|
|
15466
15361
|
//#endregion
|
|
15467
15362
|
exports.MagicString = magic_string.default;
|
|
15468
15363
|
exports.babelParse = _babel_parser.parse;
|
|
@@ -15488,4 +15383,4 @@ exports.rewriteDefaultAST = rewriteDefaultAST;
|
|
|
15488
15383
|
exports.shouldTransformRef = shouldTransformRef;
|
|
15489
15384
|
exports.version = version;
|
|
15490
15385
|
exports.walk = walk;
|
|
15491
|
-
exports.walkIdentifiers = _vue_compiler_core.walkIdentifiers;
|
|
15386
|
+
exports.walkIdentifiers = _vue_compiler_core.walkIdentifiers;
|