@vue/compiler-sfc 3.6.0-rc.7 → 3.6.0-rc.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 +144 -68
- package/dist/compiler-sfc.esm-browser.js +599 -319
- package/package.json +10 -10
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.6.0-rc.
|
|
2
|
+
* @vue/compiler-sfc v3.6.0-rc.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -121,7 +121,7 @@ function parseCssVars(sfc) {
|
|
|
121
121
|
const vars = [];
|
|
122
122
|
sfc.styles.forEach((style) => {
|
|
123
123
|
let match;
|
|
124
|
-
const content = style.content
|
|
124
|
+
const content = stripComments(style.content);
|
|
125
125
|
while (match = vBindRE.exec(content)) {
|
|
126
126
|
const start = match.index + match[0].length;
|
|
127
127
|
const end = lexBinding(content, start);
|
|
@@ -133,6 +133,70 @@ function parseCssVars(sfc) {
|
|
|
133
133
|
});
|
|
134
134
|
return vars;
|
|
135
135
|
}
|
|
136
|
+
const cssSpecialRE = /[/"'\\(]/g;
|
|
137
|
+
function stripComments(content) {
|
|
138
|
+
const len = content.length;
|
|
139
|
+
let out = "";
|
|
140
|
+
let last = 0;
|
|
141
|
+
let i = 0;
|
|
142
|
+
cssSpecialRE.lastIndex = 0;
|
|
143
|
+
while (cssSpecialRE.test(content)) {
|
|
144
|
+
i = cssSpecialRE.lastIndex - 1;
|
|
145
|
+
const c = content.charCodeAt(i);
|
|
146
|
+
if (c === 47) {
|
|
147
|
+
const next = content.charCodeAt(i + 1);
|
|
148
|
+
if (next === 42) {
|
|
149
|
+
out += content.slice(last, i);
|
|
150
|
+
const end = content.indexOf("*/", i + 2);
|
|
151
|
+
i = last = end === -1 ? len : end + 2;
|
|
152
|
+
} else if (next === 47) {
|
|
153
|
+
out += content.slice(last, i);
|
|
154
|
+
i += 2;
|
|
155
|
+
while (i < len && !isNewline(content.charCodeAt(i))) i++;
|
|
156
|
+
last = i;
|
|
157
|
+
} else i++;
|
|
158
|
+
} else if (c === 34 || c === 39) i = skipString(content, i + 1, c);
|
|
159
|
+
else if (c === 92) i += 2;
|
|
160
|
+
else if (isUrlFunction(content, i)) i = skipUrl(content, i + 1);
|
|
161
|
+
else i++;
|
|
162
|
+
cssSpecialRE.lastIndex = i;
|
|
163
|
+
}
|
|
164
|
+
return last === 0 ? content : out + content.slice(last);
|
|
165
|
+
}
|
|
166
|
+
function skipString(s, i, quote) {
|
|
167
|
+
while (i < s.length) {
|
|
168
|
+
const c = s.charCodeAt(i);
|
|
169
|
+
if (c === quote) return i + 1;
|
|
170
|
+
if (isNewline(c)) return i;
|
|
171
|
+
if (c === 92) i += s.charCodeAt(i + 1) === 13 && s.charCodeAt(i + 2) === 10 ? 3 : 2;
|
|
172
|
+
else i++;
|
|
173
|
+
}
|
|
174
|
+
return i;
|
|
175
|
+
}
|
|
176
|
+
function isUrlFunction(s, i) {
|
|
177
|
+
const prev = s.charCodeAt(i - 4);
|
|
178
|
+
return (s.charCodeAt(i - 3) | 32) === 117 && (s.charCodeAt(i - 2) | 32) === 114 && (s.charCodeAt(i - 1) | 32) === 108 && prev !== 92 && !isIdentChar(prev);
|
|
179
|
+
}
|
|
180
|
+
function skipUrl(s, i) {
|
|
181
|
+
while (isWhitespace(s.charCodeAt(i))) i++;
|
|
182
|
+
const c = s.charCodeAt(i);
|
|
183
|
+
if (c === 34 || c === 39) return i;
|
|
184
|
+
while (i < s.length) {
|
|
185
|
+
const c = s.charCodeAt(i);
|
|
186
|
+
if (c === 41) return i + 1;
|
|
187
|
+
i += c === 92 ? 2 : 1;
|
|
188
|
+
}
|
|
189
|
+
return i;
|
|
190
|
+
}
|
|
191
|
+
function isIdentChar(c) {
|
|
192
|
+
return c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c === 45 || c === 95 || c >= 128;
|
|
193
|
+
}
|
|
194
|
+
function isNewline(c) {
|
|
195
|
+
return c === 10 || c === 13;
|
|
196
|
+
}
|
|
197
|
+
function isWhitespace(c) {
|
|
198
|
+
return c === 32 || c === 9 || c === 12 || isNewline(c);
|
|
199
|
+
}
|
|
136
200
|
function lexBinding(content, start) {
|
|
137
201
|
let state = 0;
|
|
138
202
|
let parenDepth = 0;
|
|
@@ -3597,7 +3661,7 @@ const trimPlugin = () => {
|
|
|
3597
3661
|
};
|
|
3598
3662
|
trimPlugin.postcss = true;
|
|
3599
3663
|
//#endregion
|
|
3600
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3664
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/unesc.js
|
|
3601
3665
|
var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3602
3666
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3603
3667
|
exports.default = unesc;
|
|
@@ -3648,7 +3712,7 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3648
3712
|
}
|
|
3649
3713
|
}));
|
|
3650
3714
|
//#endregion
|
|
3651
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3715
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/getProp.js
|
|
3652
3716
|
var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3653
3717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3654
3718
|
exports.default = getProp;
|
|
@@ -3664,7 +3728,7 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3664
3728
|
}
|
|
3665
3729
|
}));
|
|
3666
3730
|
//#endregion
|
|
3667
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3731
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/ensureObject.js
|
|
3668
3732
|
var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3669
3733
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3670
3734
|
exports.default = ensureObject;
|
|
@@ -3679,7 +3743,7 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3679
3743
|
}
|
|
3680
3744
|
}));
|
|
3681
3745
|
//#endregion
|
|
3682
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3746
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/stripComments.js
|
|
3683
3747
|
var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3684
3748
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3685
3749
|
exports.default = stripComments;
|
|
@@ -3699,7 +3763,7 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3699
3763
|
}
|
|
3700
3764
|
}));
|
|
3701
3765
|
//#endregion
|
|
3702
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3766
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
|
|
3703
3767
|
var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3704
3768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3705
3769
|
exports.MAX_NESTING_DEPTH = void 0;
|
|
@@ -3726,7 +3790,7 @@ var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3726
3790
|
}
|
|
3727
3791
|
}));
|
|
3728
3792
|
//#endregion
|
|
3729
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3793
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/index.js
|
|
3730
3794
|
var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3731
3795
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3732
3796
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -3776,7 +3840,7 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3776
3840
|
});
|
|
3777
3841
|
}));
|
|
3778
3842
|
//#endregion
|
|
3779
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3843
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/node.js
|
|
3780
3844
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3781
3845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3782
3846
|
var util_1 = require_util$1();
|
|
@@ -3930,7 +3994,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3930
3994
|
}();
|
|
3931
3995
|
}));
|
|
3932
3996
|
//#endregion
|
|
3933
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
3997
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
3934
3998
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3935
3999
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3936
4000
|
exports.UNIVERSAL = exports.ATTRIBUTE = exports.CLASS = exports.COMBINATOR = exports.COMMENT = exports.ID = exports.NESTING = exports.PSEUDO = exports.ROOT = exports.SELECTOR = exports.STRING = exports.TAG = void 0;
|
|
@@ -3948,7 +4012,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3948
4012
|
exports.UNIVERSAL = "universal";
|
|
3949
4013
|
}));
|
|
3950
4014
|
//#endregion
|
|
3951
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4015
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/container.js
|
|
3952
4016
|
var require_container = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3953
4017
|
var __extends = exports && exports.__extends || (function() {
|
|
3954
4018
|
var extendStatics = function(d, b) {
|
|
@@ -4339,7 +4403,7 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4339
4403
|
}(node_1.default);
|
|
4340
4404
|
}));
|
|
4341
4405
|
//#endregion
|
|
4342
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4406
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/root.js
|
|
4343
4407
|
var require_root = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4344
4408
|
var __extends = exports && exports.__extends || (function() {
|
|
4345
4409
|
var extendStatics = function(d, b) {
|
|
@@ -4395,7 +4459,7 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4395
4459
|
}(container_1.default);
|
|
4396
4460
|
}));
|
|
4397
4461
|
//#endregion
|
|
4398
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4462
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/selector.js
|
|
4399
4463
|
var require_selector = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4400
4464
|
var __extends = exports && exports.__extends || (function() {
|
|
4401
4465
|
var extendStatics = function(d, b) {
|
|
@@ -4494,7 +4558,7 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4494
4558
|
module.exports = cssesc;
|
|
4495
4559
|
}));
|
|
4496
4560
|
//#endregion
|
|
4497
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4561
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/className.js
|
|
4498
4562
|
var require_className = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4499
4563
|
var __extends = exports && exports.__extends || (function() {
|
|
4500
4564
|
var extendStatics = function(d, b) {
|
|
@@ -4554,7 +4618,7 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4554
4618
|
}(node_1.default);
|
|
4555
4619
|
}));
|
|
4556
4620
|
//#endregion
|
|
4557
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4621
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/comment.js
|
|
4558
4622
|
var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4559
4623
|
var __extends = exports && exports.__extends || (function() {
|
|
4560
4624
|
var extendStatics = function(d, b) {
|
|
@@ -4591,7 +4655,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4591
4655
|
}(node_1.default);
|
|
4592
4656
|
}));
|
|
4593
4657
|
//#endregion
|
|
4594
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4658
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/id.js
|
|
4595
4659
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4596
4660
|
var __extends = exports && exports.__extends || (function() {
|
|
4597
4661
|
var extendStatics = function(d, b) {
|
|
@@ -4631,7 +4695,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4631
4695
|
}(node_1.default);
|
|
4632
4696
|
}));
|
|
4633
4697
|
//#endregion
|
|
4634
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4698
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/namespace.js
|
|
4635
4699
|
var require_namespace = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4636
4700
|
var __extends = exports && exports.__extends || (function() {
|
|
4637
4701
|
var extendStatics = function(d, b) {
|
|
@@ -4714,7 +4778,7 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4714
4778
|
}(__importDefault(require_node$1()).default);
|
|
4715
4779
|
}));
|
|
4716
4780
|
//#endregion
|
|
4717
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4781
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/tag.js
|
|
4718
4782
|
var require_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4719
4783
|
var __extends = exports && exports.__extends || (function() {
|
|
4720
4784
|
var extendStatics = function(d, b) {
|
|
@@ -4751,7 +4815,7 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4751
4815
|
}(namespace_1.default);
|
|
4752
4816
|
}));
|
|
4753
4817
|
//#endregion
|
|
4754
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4818
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/string.js
|
|
4755
4819
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4756
4820
|
var __extends = exports && exports.__extends || (function() {
|
|
4757
4821
|
var extendStatics = function(d, b) {
|
|
@@ -4789,7 +4853,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4789
4853
|
exports.default = String;
|
|
4790
4854
|
}));
|
|
4791
4855
|
//#endregion
|
|
4792
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4856
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
|
|
4793
4857
|
var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4794
4858
|
var __extends = exports && exports.__extends || (function() {
|
|
4795
4859
|
var extendStatics = function(d, b) {
|
|
@@ -4847,7 +4911,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4847
4911
|
module.exports = require("util").deprecate;
|
|
4848
4912
|
}));
|
|
4849
4913
|
//#endregion
|
|
4850
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
4914
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
4851
4915
|
var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4852
4916
|
var __extends = exports && exports.__extends || (function() {
|
|
4853
4917
|
var extendStatics = function(d, b) {
|
|
@@ -5233,7 +5297,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5233
5297
|
}
|
|
5234
5298
|
}));
|
|
5235
5299
|
//#endregion
|
|
5236
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5300
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/universal.js
|
|
5237
5301
|
var require_universal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5238
5302
|
var __extends = exports && exports.__extends || (function() {
|
|
5239
5303
|
var extendStatics = function(d, b) {
|
|
@@ -5271,7 +5335,7 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5271
5335
|
}(namespace_1.default);
|
|
5272
5336
|
}));
|
|
5273
5337
|
//#endregion
|
|
5274
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5338
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/combinator.js
|
|
5275
5339
|
var require_combinator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5276
5340
|
var __extends = exports && exports.__extends || (function() {
|
|
5277
5341
|
var extendStatics = function(d, b) {
|
|
@@ -5308,7 +5372,7 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5308
5372
|
}(node_1.default);
|
|
5309
5373
|
}));
|
|
5310
5374
|
//#endregion
|
|
5311
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5375
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/nesting.js
|
|
5312
5376
|
var require_nesting = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5313
5377
|
var __extends = exports && exports.__extends || (function() {
|
|
5314
5378
|
var extendStatics = function(d, b) {
|
|
@@ -5346,7 +5410,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5346
5410
|
}(node_1.default);
|
|
5347
5411
|
}));
|
|
5348
5412
|
//#endregion
|
|
5349
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5413
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/sortAscending.js
|
|
5350
5414
|
var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5351
5415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5352
5416
|
exports.default = sortAscending;
|
|
@@ -5357,7 +5421,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5357
5421
|
}
|
|
5358
5422
|
}));
|
|
5359
5423
|
//#endregion
|
|
5360
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5424
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
5361
5425
|
var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5362
5426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5363
5427
|
exports.combinator = exports.word = exports.comment = exports.str = exports.tab = exports.newline = exports.feed = exports.cr = exports.backslash = exports.bang = exports.slash = exports.doubleQuote = exports.singleQuote = exports.space = exports.greaterThan = exports.pipe = exports.equals = exports.plus = exports.caret = exports.tilde = exports.dollar = exports.closeSquare = exports.openSquare = exports.closeParenthesis = exports.openParenthesis = exports.semicolon = exports.colon = exports.comma = exports.at = exports.asterisk = exports.ampersand = void 0;
|
|
@@ -5394,7 +5458,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5394
5458
|
exports.combinator = -3;
|
|
5395
5459
|
}));
|
|
5396
5460
|
//#endregion
|
|
5397
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5461
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
5398
5462
|
var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5399
5463
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5400
5464
|
if (k2 === void 0) k2 = k;
|
|
@@ -5636,7 +5700,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5636
5700
|
}
|
|
5637
5701
|
}));
|
|
5638
5702
|
//#endregion
|
|
5639
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
5703
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/parser.js
|
|
5640
5704
|
var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5641
5705
|
var __assign = exports && exports.__assign || function() {
|
|
5642
5706
|
__assign = Object.assign || function(t) {
|
|
@@ -5788,10 +5852,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5788
5852
|
return indexes;
|
|
5789
5853
|
}
|
|
5790
5854
|
function uniqs() {
|
|
5791
|
-
|
|
5792
|
-
return list.filter(function(item, i) {
|
|
5793
|
-
return i === list.indexOf(item);
|
|
5794
|
-
});
|
|
5855
|
+
return Array.from(new Set(Array.prototype.concat.apply([], arguments)));
|
|
5795
5856
|
}
|
|
5796
5857
|
exports.default = function() {
|
|
5797
5858
|
function Parser(rule, options) {
|
|
@@ -5839,6 +5900,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5839
5900
|
attr.push(this.currToken);
|
|
5840
5901
|
this.position++;
|
|
5841
5902
|
}
|
|
5903
|
+
if (!this.currToken) return this.expected("closing square bracket", startingToken[tokenize_1.FIELDS.START_POS]);
|
|
5842
5904
|
if (this.currToken[tokenize_1.FIELDS.TYPE] !== tokens.closeSquare) return this.expected("closing square bracket", this.currToken[tokenize_1.FIELDS.START_POS]);
|
|
5843
5905
|
var len = attr.length;
|
|
5844
5906
|
var node = {
|
|
@@ -5882,7 +5944,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5882
5944
|
}
|
|
5883
5945
|
if (commentBefore) {
|
|
5884
5946
|
(0, util_1.ensureObject)(node, "raws", "spaces", "attribute");
|
|
5885
|
-
node.raws.spaces.attribute.before =
|
|
5947
|
+
node.raws.spaces.attribute.before = commentBefore;
|
|
5886
5948
|
commentBefore = "";
|
|
5887
5949
|
}
|
|
5888
5950
|
node.namespace = (node.namespace || "") + content;
|
|
@@ -6219,7 +6281,9 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6219
6281
|
return this.error("Unexpected '|'.", this.currToken[tokenize_1.FIELDS.START_POS]);
|
|
6220
6282
|
};
|
|
6221
6283
|
Parser.prototype.namespace = function() {
|
|
6222
|
-
var
|
|
6284
|
+
var prev = this.prevToken;
|
|
6285
|
+
var before = prev && (prev[tokenize_1.FIELDS.TYPE] === tokens.word || prev[tokenize_1.FIELDS.TYPE] === tokens.asterisk || prev[tokenize_1.FIELDS.TYPE] === tokens.ampersand) ? this.content(prev) : true;
|
|
6286
|
+
if (!this.nextToken) return this.unexpectedPipe();
|
|
6223
6287
|
if (this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.word) {
|
|
6224
6288
|
this.position++;
|
|
6225
6289
|
return this.word(before);
|
|
@@ -6247,6 +6311,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6247
6311
|
Parser.prototype.parentheses = function() {
|
|
6248
6312
|
var last = this.current.last;
|
|
6249
6313
|
var unbalanced = 1;
|
|
6314
|
+
var openingToken = this.currToken;
|
|
6250
6315
|
this.position++;
|
|
6251
6316
|
if (last && last.type === types.PSEUDO) {
|
|
6252
6317
|
var selector = new selector_1.default({
|
|
@@ -6291,7 +6356,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6291
6356
|
sourceIndex: parenStart[tokenize_1.FIELDS.START_POS]
|
|
6292
6357
|
}));
|
|
6293
6358
|
}
|
|
6294
|
-
if (unbalanced) return this.expected("closing parenthesis", this.currToken[tokenize_1.FIELDS.START_POS]);
|
|
6359
|
+
if (unbalanced) return this.expected("closing parenthesis", (this.currToken || openingToken)[tokenize_1.FIELDS.START_POS]);
|
|
6295
6360
|
};
|
|
6296
6361
|
Parser.prototype.pseudo = function() {
|
|
6297
6362
|
var _this = this;
|
|
@@ -6379,9 +6444,14 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6379
6444
|
return word[i - 1] !== "\\";
|
|
6380
6445
|
});
|
|
6381
6446
|
var interpolations = indexesOf(word, "#{");
|
|
6382
|
-
if (interpolations.length)
|
|
6383
|
-
|
|
6384
|
-
|
|
6447
|
+
if (interpolations.length) {
|
|
6448
|
+
var interpolationIndexes_1 = new Set(interpolations);
|
|
6449
|
+
hasId = hasId.filter(function(hashIndex) {
|
|
6450
|
+
return !interpolationIndexes_1.has(hashIndex);
|
|
6451
|
+
});
|
|
6452
|
+
}
|
|
6453
|
+
var classIndexes = new Set(hasClass);
|
|
6454
|
+
var idIndexes = new Set(hasId);
|
|
6385
6455
|
var indices = (0, sortAscending_1.default)(uniqs(__spreadArray(__spreadArray([0], __read(hasClass), false), __read(hasId), false)));
|
|
6386
6456
|
indices.forEach(function(ind, i) {
|
|
6387
6457
|
var index = indices[i + 1] || word.length;
|
|
@@ -6391,14 +6461,14 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6391
6461
|
var current = _this.currToken;
|
|
6392
6462
|
var sourceIndex = current[tokenize_1.FIELDS.START_POS] + indices[i];
|
|
6393
6463
|
var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));
|
|
6394
|
-
if (
|
|
6464
|
+
if (classIndexes.has(ind)) {
|
|
6395
6465
|
var classNameOpts = {
|
|
6396
6466
|
value: value.slice(1),
|
|
6397
6467
|
source,
|
|
6398
6468
|
sourceIndex
|
|
6399
6469
|
};
|
|
6400
6470
|
node = new className_1.default(unescapeProp(classNameOpts, "value"));
|
|
6401
|
-
} else if (
|
|
6471
|
+
} else if (idIndexes.has(ind)) {
|
|
6402
6472
|
var idOpts = {
|
|
6403
6473
|
value: value.slice(1),
|
|
6404
6474
|
source,
|
|
@@ -6563,7 +6633,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6563
6633
|
}();
|
|
6564
6634
|
}));
|
|
6565
6635
|
//#endregion
|
|
6566
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
6636
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/processor.js
|
|
6567
6637
|
var require_processor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6568
6638
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6569
6639
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -6712,7 +6782,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6712
6782
|
}();
|
|
6713
6783
|
}));
|
|
6714
6784
|
//#endregion
|
|
6715
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
6785
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
6716
6786
|
var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6717
6787
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6718
6788
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -6781,7 +6851,7 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6781
6851
|
exports.universal = universal;
|
|
6782
6852
|
}));
|
|
6783
6853
|
//#endregion
|
|
6784
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
6854
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
6785
6855
|
var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6786
6856
|
var _a;
|
|
6787
6857
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6825,7 +6895,7 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6825
6895
|
}
|
|
6826
6896
|
}));
|
|
6827
6897
|
//#endregion
|
|
6828
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
6898
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/index.js
|
|
6829
6899
|
var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6830
6900
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6831
6901
|
if (k2 === void 0) k2 = k;
|
|
@@ -6850,7 +6920,7 @@ var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6850
6920
|
__exportStar(require_guards(), exports);
|
|
6851
6921
|
}));
|
|
6852
6922
|
//#endregion
|
|
6853
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
6923
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/index.js
|
|
6854
6924
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6855
6925
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6856
6926
|
if (k2 === void 0) k2 = k;
|
|
@@ -9276,7 +9346,7 @@ const processors = {
|
|
|
9276
9346
|
stylus: styl
|
|
9277
9347
|
};
|
|
9278
9348
|
//#endregion
|
|
9279
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9349
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/fs.js
|
|
9280
9350
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9281
9351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9282
9352
|
exports.getFileSystem = getFileSystem;
|
|
@@ -9298,7 +9368,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9298
9368
|
}
|
|
9299
9369
|
}));
|
|
9300
9370
|
//#endregion
|
|
9301
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9371
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/unquote.js
|
|
9302
9372
|
var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9303
9373
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9304
9374
|
exports.default = unquote;
|
|
@@ -9311,7 +9381,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9311
9381
|
}
|
|
9312
9382
|
}));
|
|
9313
9383
|
//#endregion
|
|
9314
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
9384
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceValueSymbols.js
|
|
9315
9385
|
var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9316
9386
|
const matchValueName = /[$]?[\w-]+/g;
|
|
9317
9387
|
const replaceValueSymbols = (value, replacements) => {
|
|
@@ -9328,7 +9398,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
9328
9398
|
module.exports = replaceValueSymbols;
|
|
9329
9399
|
}));
|
|
9330
9400
|
//#endregion
|
|
9331
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
9401
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceSymbols.js
|
|
9332
9402
|
var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9333
9403
|
const replaceValueSymbols = require_replaceValueSymbols();
|
|
9334
9404
|
const replaceSymbols = (css, replacements) => {
|
|
@@ -9341,7 +9411,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9341
9411
|
module.exports = replaceSymbols;
|
|
9342
9412
|
}));
|
|
9343
9413
|
//#endregion
|
|
9344
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
9414
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/extractICSS.js
|
|
9345
9415
|
var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9346
9416
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
9347
9417
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
@@ -9395,7 +9465,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9395
9465
|
module.exports = extractICSS;
|
|
9396
9466
|
}));
|
|
9397
9467
|
//#endregion
|
|
9398
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
9468
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/createICSSRules.js
|
|
9399
9469
|
var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9400
9470
|
const createImports = (imports, postcss, mode = "rule") => {
|
|
9401
9471
|
return Object.keys(imports).map((path) => {
|
|
@@ -9439,7 +9509,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
9439
9509
|
module.exports = createICSSRules;
|
|
9440
9510
|
}));
|
|
9441
9511
|
//#endregion
|
|
9442
|
-
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
9512
|
+
//#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/index.js
|
|
9443
9513
|
var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9444
9514
|
module.exports = {
|
|
9445
9515
|
replaceValueSymbols: require_replaceValueSymbols(),
|
|
@@ -9449,7 +9519,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9449
9519
|
};
|
|
9450
9520
|
}));
|
|
9451
9521
|
//#endregion
|
|
9452
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9522
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/Parser.js
|
|
9453
9523
|
var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9454
9524
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9455
9525
|
exports.default = void 0;
|
|
@@ -9517,7 +9587,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9517
9587
|
exports.default = Parser;
|
|
9518
9588
|
}));
|
|
9519
9589
|
//#endregion
|
|
9520
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
9590
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/saveJSON.js
|
|
9521
9591
|
var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9522
9592
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9523
9593
|
exports.default = saveJSON;
|
|
@@ -10198,7 +10268,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
10198
10268
|
module.exports = camelCase;
|
|
10199
10269
|
}));
|
|
10200
10270
|
//#endregion
|
|
10201
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
10271
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/localsConvention.js
|
|
10202
10272
|
var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10203
10273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10204
10274
|
exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
|
|
@@ -10236,7 +10306,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10236
10306
|
}
|
|
10237
10307
|
}));
|
|
10238
10308
|
//#endregion
|
|
10239
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
10309
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
10240
10310
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10241
10311
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10242
10312
|
exports.default = void 0;
|
|
@@ -10321,7 +10391,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10321
10391
|
exports.default = FileSystemLoader;
|
|
10322
10392
|
}));
|
|
10323
10393
|
//#endregion
|
|
10324
|
-
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
10394
|
+
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
10325
10395
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10326
10396
|
const PERMANENT_MARKER = 2;
|
|
10327
10397
|
const TEMPORARY_MARKER = 1;
|
|
@@ -10360,7 +10430,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
10360
10430
|
module.exports = topologicalSort;
|
|
10361
10431
|
}));
|
|
10362
10432
|
//#endregion
|
|
10363
|
-
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
10433
|
+
//#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/index.js
|
|
10364
10434
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10365
10435
|
const topologicalSort = require_topologicalSort();
|
|
10366
10436
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -11283,7 +11353,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11283
11353
|
module.exports = ValueParser;
|
|
11284
11354
|
}));
|
|
11285
11355
|
//#endregion
|
|
11286
|
-
//#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
11356
|
+
//#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.28/node_modules/postcss-modules-local-by-default/src/index.js
|
|
11287
11357
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11288
11358
|
const selectorParser = require_dist();
|
|
11289
11359
|
const valueParser = require_lib();
|
|
@@ -11680,7 +11750,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11680
11750
|
module.exports.postcss = true;
|
|
11681
11751
|
}));
|
|
11682
11752
|
//#endregion
|
|
11683
|
-
//#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
11753
|
+
//#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.28/node_modules/postcss-modules-scope/src/index.js
|
|
11684
11754
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11685
11755
|
const selectorParser = require_dist();
|
|
11686
11756
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -11858,7 +11928,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11858
11928
|
module.exports = hash;
|
|
11859
11929
|
}));
|
|
11860
11930
|
//#endregion
|
|
11861
|
-
//#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
11931
|
+
//#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.28/node_modules/postcss-modules-values/src/index.js
|
|
11862
11932
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11863
11933
|
const ICSSUtils = require_src$4();
|
|
11864
11934
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -11945,7 +12015,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11945
12015
|
module.exports.postcss = true;
|
|
11946
12016
|
}));
|
|
11947
12017
|
//#endregion
|
|
11948
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
12018
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/scoping.js
|
|
11949
12019
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11950
12020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11951
12021
|
exports.behaviours = void 0;
|
|
@@ -12007,7 +12077,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12007
12077
|
}
|
|
12008
12078
|
}));
|
|
12009
12079
|
//#endregion
|
|
12010
|
-
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
12080
|
+
//#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/pluginFactory.js
|
|
12011
12081
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12012
12082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12013
12083
|
exports.makePlugin = makePlugin;
|
|
@@ -14488,6 +14558,7 @@ function resolveExt(filename, fs) {
|
|
|
14488
14558
|
}
|
|
14489
14559
|
const tsConfigCache = createCache();
|
|
14490
14560
|
const tsConfigRefMap = /* @__PURE__ */ new Map();
|
|
14561
|
+
const extendedConfigCache = /* @__PURE__ */ new Map();
|
|
14491
14562
|
function resolveWithTS(containingFile, source, ts, fs) {
|
|
14492
14563
|
const configPath = ts.findConfigFile(containingFile, fs.fileExists);
|
|
14493
14564
|
let tsCompilerOptions;
|
|
@@ -14533,7 +14604,7 @@ function resolveWithTS(containingFile, source, ts, fs) {
|
|
|
14533
14604
|
}
|
|
14534
14605
|
function loadTSConfig(configPath, ts, fs, visited = /* @__PURE__ */ new Set()) {
|
|
14535
14606
|
const parseConfigHost = ts.sys;
|
|
14536
|
-
const config = ts.parseJsonConfigFileContent(ts.readConfigFile(configPath, fs.readFile).config, parseConfigHost, (0, path.dirname)(configPath), void 0, configPath);
|
|
14607
|
+
const config = ts.parseJsonConfigFileContent(ts.readConfigFile(configPath, fs.readFile).config, parseConfigHost, (0, path.dirname)(configPath), void 0, configPath, void 0, void 0, extendedConfigCache);
|
|
14537
14608
|
const res = [config];
|
|
14538
14609
|
visited.add(configPath);
|
|
14539
14610
|
if (config.projectReferences) for (const ref of config.projectReferences) {
|
|
@@ -14554,6 +14625,10 @@ function invalidateTypeCache(filename) {
|
|
|
14554
14625
|
fileToScopeCache.delete(filename);
|
|
14555
14626
|
fileToGlobalScopeCache.delete(filename);
|
|
14556
14627
|
tsConfigCache.delete(filename);
|
|
14628
|
+
if (filename.endsWith(".json")) {
|
|
14629
|
+
extendedConfigCache.clear();
|
|
14630
|
+
tsConfigCache.clear();
|
|
14631
|
+
}
|
|
14557
14632
|
const affectedConfig = tsConfigRefMap.get(filename);
|
|
14558
14633
|
if (affectedConfig) tsConfigCache.delete(affectedConfig);
|
|
14559
14634
|
}
|
|
@@ -15807,6 +15882,7 @@ function compileScript(sfc, options) {
|
|
|
15807
15882
|
enter(child, parent) {
|
|
15808
15883
|
if ((0, _vue_compiler_dom.isFunctionType)(child)) this.skip();
|
|
15809
15884
|
if (child.type === "BlockStatement") scope.push(child.body);
|
|
15885
|
+
else if (child.type === "SwitchCase") scope.push(child.consequent);
|
|
15810
15886
|
if (child.type === "AwaitExpression") {
|
|
15811
15887
|
hasAwait = true;
|
|
15812
15888
|
const needsSemi = scope[scope.length - 1].some((n, i) => {
|
|
@@ -15815,8 +15891,8 @@ function compileScript(sfc, options) {
|
|
|
15815
15891
|
processAwait(ctx, child, needsSemi, parent.type === "ExpressionStatement");
|
|
15816
15892
|
}
|
|
15817
15893
|
},
|
|
15818
|
-
|
|
15819
|
-
if (node.type === "BlockStatement") scope.pop();
|
|
15894
|
+
leave(node) {
|
|
15895
|
+
if (node.type === "BlockStatement" || node.type === "SwitchCase") scope.pop();
|
|
15820
15896
|
}
|
|
15821
15897
|
});
|
|
15822
15898
|
}
|
|
@@ -15943,7 +16019,7 @@ function compileScript(sfc, options) {
|
|
|
15943
16019
|
}
|
|
15944
16020
|
if (preamble) ctx.s.prepend(preamble);
|
|
15945
16021
|
if (helpers && (helpers.has(_vue_compiler_dom.UNREF) || helpers.has("unref"))) ctx.helperImports.delete("unref");
|
|
15946
|
-
returned = code;
|
|
16022
|
+
returned = vapor && !ssr && hasAwait ? `return () => {${code}}` : code;
|
|
15947
16023
|
} else returned = `() => {}`;
|
|
15948
16024
|
if (!inlineMode && true) ctx.s.appendRight(endOffset, `\nconst __returned__ = ${returned}\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n`);
|
|
15949
16025
|
else ctx.s.appendRight(endOffset, `\n${vapor && !ssr ? `` : `return `}${returned}\n}\n\n`);
|
|
@@ -16121,7 +16197,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
16121
16197
|
}
|
|
16122
16198
|
//#endregion
|
|
16123
16199
|
//#region packages/compiler-sfc/src/index.ts
|
|
16124
|
-
const version = "3.6.0-rc.
|
|
16200
|
+
const version = "3.6.0-rc.9";
|
|
16125
16201
|
const parseCache = parseCache$1;
|
|
16126
16202
|
const errorMessages = {
|
|
16127
16203
|
..._vue_compiler_dom.errorMessages,
|