@vue/compiler-sfc 3.5.32 → 3.5.34
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 +625 -448
- package/dist/compiler-sfc.esm-browser.js +479 -226
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.
|
|
2
|
+
* @vue/compiler-sfc v3.5.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -6472,7 +6472,7 @@ function requireLib () {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
flowParseDeclareVariable(node) {
|
|
6474
6474
|
this.next();
|
|
6475
|
-
node.id = this.flowParseTypeAnnotatableIdentifier(
|
|
6475
|
+
node.id = this.flowParseTypeAnnotatableIdentifier();
|
|
6476
6476
|
this.scope.declareName(node.id.name, 5, node.id.loc.start);
|
|
6477
6477
|
this.semicolon();
|
|
6478
6478
|
return this.finishNode(node, "DeclareVariable");
|
|
@@ -6646,9 +6646,14 @@ function requireLib () {
|
|
|
6646
6646
|
reservedType: word
|
|
6647
6647
|
});
|
|
6648
6648
|
}
|
|
6649
|
-
|
|
6649
|
+
flowParseRestrictedIdentifierName(liberal, declaration) {
|
|
6650
6650
|
this.checkReservedType(this.state.value, this.state.startLoc, declaration);
|
|
6651
|
-
return this.
|
|
6651
|
+
return this.parseIdentifierName(liberal);
|
|
6652
|
+
}
|
|
6653
|
+
flowParseRestrictedIdentifier(liberal, declaration) {
|
|
6654
|
+
const node = this.startNode();
|
|
6655
|
+
const name = this.flowParseRestrictedIdentifierName(liberal, declaration);
|
|
6656
|
+
return this.createIdentifier(node, name);
|
|
6652
6657
|
}
|
|
6653
6658
|
flowParseTypeAlias(node) {
|
|
6654
6659
|
node.id = this.flowParseRestrictedIdentifier(false, true);
|
|
@@ -6682,14 +6687,21 @@ function requireLib () {
|
|
|
6682
6687
|
this.semicolon();
|
|
6683
6688
|
return this.finishNode(node, "OpaqueType");
|
|
6684
6689
|
}
|
|
6690
|
+
flowParseTypeParameterBound() {
|
|
6691
|
+
if (this.match(14) || this.isContextual(81)) {
|
|
6692
|
+
const node = this.startNode();
|
|
6693
|
+
this.next();
|
|
6694
|
+
node.typeAnnotation = this.flowParseType();
|
|
6695
|
+
return this.finishNode(node, "TypeAnnotation");
|
|
6696
|
+
}
|
|
6697
|
+
}
|
|
6685
6698
|
flowParseTypeParameter(requireDefault = false) {
|
|
6686
6699
|
const nodeStartLoc = this.state.startLoc;
|
|
6687
6700
|
const node = this.startNode();
|
|
6688
6701
|
const variance = this.flowParseVariance();
|
|
6689
|
-
|
|
6690
|
-
node.name = ident.name;
|
|
6702
|
+
node.name = this.flowParseRestrictedIdentifierName();
|
|
6691
6703
|
node.variance = variance;
|
|
6692
|
-
node.bound =
|
|
6704
|
+
node.bound = this.flowParseTypeParameterBound();
|
|
6693
6705
|
if (this.match(29)) {
|
|
6694
6706
|
this.eat(29);
|
|
6695
6707
|
node.default = this.flowParseType();
|
|
@@ -7386,13 +7398,13 @@ function requireLib () {
|
|
|
7386
7398
|
node.typeAnnotation = this.flowParseTypeInitialiser();
|
|
7387
7399
|
return this.finishNode(node, "TypeAnnotation");
|
|
7388
7400
|
}
|
|
7389
|
-
flowParseTypeAnnotatableIdentifier(
|
|
7390
|
-
const
|
|
7401
|
+
flowParseTypeAnnotatableIdentifier() {
|
|
7402
|
+
const node = this.startNode();
|
|
7403
|
+
const name = this.parseIdentifierName();
|
|
7391
7404
|
if (this.match(14)) {
|
|
7392
|
-
|
|
7393
|
-
this.resetEndLocation(ident);
|
|
7405
|
+
node.typeAnnotation = this.flowParseTypeAnnotation();
|
|
7394
7406
|
}
|
|
7395
|
-
return
|
|
7407
|
+
return this.createIdentifier(node, name);
|
|
7396
7408
|
}
|
|
7397
7409
|
typeCastToParameter(node) {
|
|
7398
7410
|
node.expression.typeAnnotation = node.typeAnnotation;
|
|
@@ -9619,6 +9631,7 @@ function requireLib () {
|
|
|
9619
9631
|
adjustInnerComments(node, node.properties, commentWS);
|
|
9620
9632
|
break;
|
|
9621
9633
|
case "CallExpression":
|
|
9634
|
+
case "NewExpression":
|
|
9622
9635
|
case "OptionalCallExpression":
|
|
9623
9636
|
adjustInnerComments(node, node.arguments, commentWS);
|
|
9624
9637
|
break;
|
|
@@ -9631,6 +9644,7 @@ function requireLib () {
|
|
|
9631
9644
|
case "ObjectMethod":
|
|
9632
9645
|
case "ClassMethod":
|
|
9633
9646
|
case "ClassPrivateMethod":
|
|
9647
|
+
case "TSTypeParameterDeclaration":
|
|
9634
9648
|
adjustInnerComments(node, node.params, commentWS);
|
|
9635
9649
|
break;
|
|
9636
9650
|
case "ArrayExpression":
|
|
@@ -9647,6 +9661,9 @@ function requireLib () {
|
|
|
9647
9661
|
case "TSEnumBody":
|
|
9648
9662
|
adjustInnerComments(node, node.members, commentWS);
|
|
9649
9663
|
break;
|
|
9664
|
+
case "TSInterfaceBody":
|
|
9665
|
+
adjustInnerComments(node, node.body, commentWS);
|
|
9666
|
+
break;
|
|
9650
9667
|
default:
|
|
9651
9668
|
{
|
|
9652
9669
|
if (node.type === "RecordExpression") {
|
|
@@ -21578,7 +21595,7 @@ var hasRequiredUtil$2;
|
|
|
21578
21595
|
function requireUtil$2 () {
|
|
21579
21596
|
if (hasRequiredUtil$2) return util$2;
|
|
21580
21597
|
hasRequiredUtil$2 = 1;
|
|
21581
|
-
(function (exports
|
|
21598
|
+
(function (exports) {
|
|
21582
21599
|
/*
|
|
21583
21600
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
21584
21601
|
* Licensed under the New BSD license. See LICENSE or:
|
|
@@ -21604,7 +21621,7 @@ function requireUtil$2 () {
|
|
|
21604
21621
|
throw new Error('"' + aName + '" is a required argument.');
|
|
21605
21622
|
}
|
|
21606
21623
|
}
|
|
21607
|
-
exports
|
|
21624
|
+
exports.getArg = getArg;
|
|
21608
21625
|
|
|
21609
21626
|
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
21610
21627
|
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
@@ -21622,7 +21639,7 @@ function requireUtil$2 () {
|
|
|
21622
21639
|
path: match[5]
|
|
21623
21640
|
};
|
|
21624
21641
|
}
|
|
21625
|
-
exports
|
|
21642
|
+
exports.urlParse = urlParse;
|
|
21626
21643
|
|
|
21627
21644
|
function urlGenerate(aParsedUrl) {
|
|
21628
21645
|
var url = '';
|
|
@@ -21644,7 +21661,7 @@ function requireUtil$2 () {
|
|
|
21644
21661
|
}
|
|
21645
21662
|
return url;
|
|
21646
21663
|
}
|
|
21647
|
-
exports
|
|
21664
|
+
exports.urlGenerate = urlGenerate;
|
|
21648
21665
|
|
|
21649
21666
|
var MAX_CACHED_INPUTS = 32;
|
|
21650
21667
|
|
|
@@ -21703,7 +21720,7 @@ function requireUtil$2 () {
|
|
|
21703
21720
|
}
|
|
21704
21721
|
path = url.path;
|
|
21705
21722
|
}
|
|
21706
|
-
var isAbsolute = exports
|
|
21723
|
+
var isAbsolute = exports.isAbsolute(path);
|
|
21707
21724
|
// Split the path into parts between `/` characters. This is much faster than
|
|
21708
21725
|
// using `.split(/\/+/g)`.
|
|
21709
21726
|
var parts = [];
|
|
@@ -21754,7 +21771,7 @@ function requireUtil$2 () {
|
|
|
21754
21771
|
}
|
|
21755
21772
|
return path;
|
|
21756
21773
|
});
|
|
21757
|
-
exports
|
|
21774
|
+
exports.normalize = normalize;
|
|
21758
21775
|
|
|
21759
21776
|
/**
|
|
21760
21777
|
* Joins two paths/URLs.
|
|
@@ -21813,9 +21830,9 @@ function requireUtil$2 () {
|
|
|
21813
21830
|
}
|
|
21814
21831
|
return joined;
|
|
21815
21832
|
}
|
|
21816
|
-
exports
|
|
21833
|
+
exports.join = join;
|
|
21817
21834
|
|
|
21818
|
-
exports
|
|
21835
|
+
exports.isAbsolute = function (aPath) {
|
|
21819
21836
|
return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
|
|
21820
21837
|
};
|
|
21821
21838
|
|
|
@@ -21857,7 +21874,7 @@ function requireUtil$2 () {
|
|
|
21857
21874
|
// Make sure we add a "../" for each component we removed from the root.
|
|
21858
21875
|
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
21859
21876
|
}
|
|
21860
|
-
exports
|
|
21877
|
+
exports.relative = relative;
|
|
21861
21878
|
|
|
21862
21879
|
var supportsNullProto = (function () {
|
|
21863
21880
|
var obj = Object.create(null);
|
|
@@ -21884,7 +21901,7 @@ function requireUtil$2 () {
|
|
|
21884
21901
|
|
|
21885
21902
|
return aStr;
|
|
21886
21903
|
}
|
|
21887
|
-
exports
|
|
21904
|
+
exports.toSetString = supportsNullProto ? identity : toSetString;
|
|
21888
21905
|
|
|
21889
21906
|
function fromSetString(aStr) {
|
|
21890
21907
|
if (isProtoString(aStr)) {
|
|
@@ -21893,7 +21910,7 @@ function requireUtil$2 () {
|
|
|
21893
21910
|
|
|
21894
21911
|
return aStr;
|
|
21895
21912
|
}
|
|
21896
|
-
exports
|
|
21913
|
+
exports.fromSetString = supportsNullProto ? identity : fromSetString;
|
|
21897
21914
|
|
|
21898
21915
|
function isProtoString(s) {
|
|
21899
21916
|
if (!s) {
|
|
@@ -21963,7 +21980,7 @@ function requireUtil$2 () {
|
|
|
21963
21980
|
|
|
21964
21981
|
return strcmp(mappingA.name, mappingB.name);
|
|
21965
21982
|
}
|
|
21966
|
-
exports
|
|
21983
|
+
exports.compareByOriginalPositions = compareByOriginalPositions;
|
|
21967
21984
|
|
|
21968
21985
|
function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
|
|
21969
21986
|
var cmp;
|
|
@@ -21990,7 +22007,7 @@ function requireUtil$2 () {
|
|
|
21990
22007
|
|
|
21991
22008
|
return strcmp(mappingA.name, mappingB.name);
|
|
21992
22009
|
}
|
|
21993
|
-
exports
|
|
22010
|
+
exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
|
|
21994
22011
|
|
|
21995
22012
|
/**
|
|
21996
22013
|
* Comparator between two mappings with deflated source and name indices where
|
|
@@ -22029,7 +22046,7 @@ function requireUtil$2 () {
|
|
|
22029
22046
|
|
|
22030
22047
|
return strcmp(mappingA.name, mappingB.name);
|
|
22031
22048
|
}
|
|
22032
|
-
exports
|
|
22049
|
+
exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
|
22033
22050
|
|
|
22034
22051
|
function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
|
|
22035
22052
|
var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
|
@@ -22054,7 +22071,7 @@ function requireUtil$2 () {
|
|
|
22054
22071
|
|
|
22055
22072
|
return strcmp(mappingA.name, mappingB.name);
|
|
22056
22073
|
}
|
|
22057
|
-
exports
|
|
22074
|
+
exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
|
|
22058
22075
|
|
|
22059
22076
|
function strcmp(aStr1, aStr2) {
|
|
22060
22077
|
if (aStr1 === aStr2) {
|
|
@@ -22108,7 +22125,7 @@ function requireUtil$2 () {
|
|
|
22108
22125
|
|
|
22109
22126
|
return strcmp(mappingA.name, mappingB.name);
|
|
22110
22127
|
}
|
|
22111
|
-
exports
|
|
22128
|
+
exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
|
22112
22129
|
|
|
22113
22130
|
/**
|
|
22114
22131
|
* Strip any JSON XSSI avoidance prefix from the string (as documented
|
|
@@ -22118,7 +22135,7 @@ function requireUtil$2 () {
|
|
|
22118
22135
|
function parseSourceMapInput(str) {
|
|
22119
22136
|
return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
|
|
22120
22137
|
}
|
|
22121
|
-
exports
|
|
22138
|
+
exports.parseSourceMapInput = parseSourceMapInput;
|
|
22122
22139
|
|
|
22123
22140
|
/**
|
|
22124
22141
|
* Compute the URL of a source given the the source root, the source's
|
|
@@ -22171,7 +22188,7 @@ function requireUtil$2 () {
|
|
|
22171
22188
|
|
|
22172
22189
|
return normalize(sourceURL);
|
|
22173
22190
|
}
|
|
22174
|
-
exports
|
|
22191
|
+
exports.computeSourceURL = computeSourceURL;
|
|
22175
22192
|
} (util$2));
|
|
22176
22193
|
return util$2;
|
|
22177
22194
|
}
|
|
@@ -22862,15 +22879,15 @@ var hasRequiredBinarySearch$1;
|
|
|
22862
22879
|
function requireBinarySearch$1 () {
|
|
22863
22880
|
if (hasRequiredBinarySearch$1) return binarySearch$1;
|
|
22864
22881
|
hasRequiredBinarySearch$1 = 1;
|
|
22865
|
-
(function (exports
|
|
22882
|
+
(function (exports) {
|
|
22866
22883
|
/*
|
|
22867
22884
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
22868
22885
|
* Licensed under the New BSD license. See LICENSE or:
|
|
22869
22886
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
22870
22887
|
*/
|
|
22871
22888
|
|
|
22872
|
-
exports
|
|
22873
|
-
exports
|
|
22889
|
+
exports.GREATEST_LOWER_BOUND = 1;
|
|
22890
|
+
exports.LEAST_UPPER_BOUND = 2;
|
|
22874
22891
|
|
|
22875
22892
|
/**
|
|
22876
22893
|
* Recursive implementation of binary search.
|
|
@@ -22910,7 +22927,7 @@ function requireBinarySearch$1 () {
|
|
|
22910
22927
|
|
|
22911
22928
|
// The exact needle element was not found in this haystack. Determine if
|
|
22912
22929
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
22913
|
-
if (aBias == exports
|
|
22930
|
+
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
22914
22931
|
return aHigh < aHaystack.length ? aHigh : -1;
|
|
22915
22932
|
} else {
|
|
22916
22933
|
return mid;
|
|
@@ -22924,7 +22941,7 @@ function requireBinarySearch$1 () {
|
|
|
22924
22941
|
}
|
|
22925
22942
|
|
|
22926
22943
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
22927
|
-
if (aBias == exports
|
|
22944
|
+
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
22928
22945
|
return mid;
|
|
22929
22946
|
} else {
|
|
22930
22947
|
return aLow < 0 ? -1 : aLow;
|
|
@@ -22950,13 +22967,13 @@ function requireBinarySearch$1 () {
|
|
|
22950
22967
|
* searching for, respectively, if the exact element cannot be found.
|
|
22951
22968
|
* Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
|
|
22952
22969
|
*/
|
|
22953
|
-
exports
|
|
22970
|
+
exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
22954
22971
|
if (aHaystack.length === 0) {
|
|
22955
22972
|
return -1;
|
|
22956
22973
|
}
|
|
22957
22974
|
|
|
22958
22975
|
var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
|
|
22959
|
-
aCompare, aBias || exports
|
|
22976
|
+
aCompare, aBias || exports.GREATEST_LOWER_BOUND);
|
|
22960
22977
|
if (index < 0) {
|
|
22961
22978
|
return -1;
|
|
22962
22979
|
}
|
|
@@ -31748,13 +31765,13 @@ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
|
31748
31765
|
const resourceUrlTagConfig = {
|
|
31749
31766
|
video: ["src", "poster"],
|
|
31750
31767
|
source: ["src"],
|
|
31751
|
-
img: ["src"]
|
|
31752
|
-
image: ["xlink:href", "href"]
|
|
31768
|
+
img: ["src"]
|
|
31753
31769
|
};
|
|
31754
31770
|
const defaultAssetUrlOptions = {
|
|
31755
31771
|
base: null,
|
|
31756
31772
|
includeAbsolute: false,
|
|
31757
31773
|
tags: __spreadProps$8(__spreadValues$9({}, resourceUrlTagConfig), {
|
|
31774
|
+
image: ["xlink:href", "href"],
|
|
31758
31775
|
use: ["xlink:href", "href"]
|
|
31759
31776
|
})
|
|
31760
31777
|
};
|
|
@@ -31791,7 +31808,8 @@ const transformAssetUrl = (node, context, options = defaultAssetUrlOptions) => {
|
|
|
31791
31808
|
}
|
|
31792
31809
|
const urlValue = attr.value.content;
|
|
31793
31810
|
const isHashOnlyValue = urlValue[0] === "#";
|
|
31794
|
-
if (isExternalUrl(urlValue) || isDataUrl(urlValue) ||
|
|
31811
|
+
if (isExternalUrl(urlValue) || isDataUrl(urlValue) || // a bare `#` is never a valid import specifier
|
|
31812
|
+
urlValue === "#" || isHashOnlyValue && !canTransformHashImport(node.tag, attr.name) || !options.includeAbsolute && !isRelativeUrl(urlValue)) {
|
|
31795
31813
|
return;
|
|
31796
31814
|
}
|
|
31797
31815
|
const url = parseUrl(urlValue);
|
|
@@ -33813,6 +33831,7 @@ function requireTokenize$1 () {
|
|
|
33813
33831
|
let pos = 0;
|
|
33814
33832
|
let buffer = [];
|
|
33815
33833
|
let returned = [];
|
|
33834
|
+
let lastBadParen = -1;
|
|
33816
33835
|
|
|
33817
33836
|
function position() {
|
|
33818
33837
|
return pos
|
|
@@ -33904,11 +33923,14 @@ function requireTokenize$1 () {
|
|
|
33904
33923
|
currentToken = ['brackets', css.slice(pos, next + 1), pos, next];
|
|
33905
33924
|
|
|
33906
33925
|
pos = next;
|
|
33926
|
+
} else if (pos <= lastBadParen) {
|
|
33927
|
+
currentToken = ['(', '(', pos];
|
|
33907
33928
|
} else {
|
|
33908
33929
|
next = css.indexOf(')', pos + 1);
|
|
33909
33930
|
content = css.slice(pos, next + 1);
|
|
33910
33931
|
|
|
33911
33932
|
if (next === -1 || RE_BAD_BRACKET.test(content)) {
|
|
33933
|
+
lastBadParen = next === -1 ? length : next;
|
|
33912
33934
|
currentToken = ['(', '(', pos];
|
|
33913
33935
|
} else {
|
|
33914
33936
|
currentToken = ['brackets', content, pos, next];
|
|
@@ -34270,6 +34292,18 @@ function requireStringifier () {
|
|
|
34270
34292
|
if (hasRequiredStringifier) return stringifier;
|
|
34271
34293
|
hasRequiredStringifier = 1;
|
|
34272
34294
|
|
|
34295
|
+
// Escapes sequences that could break out of an HTML <style> context.
|
|
34296
|
+
// Uses CSS unicode escaping (\3c = '<') which is valid CSS and parsed
|
|
34297
|
+
// correctly by all compliant CSS consumers.
|
|
34298
|
+
const STYLE_TAG = /(<)(\/?style\b)/gi;
|
|
34299
|
+
const COMMENT_OPEN = /(<)(!--)/g;
|
|
34300
|
+
|
|
34301
|
+
function escapeHTMLInCSS(str) {
|
|
34302
|
+
if (typeof str !== 'string') return str
|
|
34303
|
+
if (!str.includes('<')) return str
|
|
34304
|
+
return str.replace(STYLE_TAG, '\\3c $2').replace(COMMENT_OPEN, '\\3c $2')
|
|
34305
|
+
}
|
|
34306
|
+
|
|
34273
34307
|
const DEFAULT_RAW = {
|
|
34274
34308
|
after: '\n',
|
|
34275
34309
|
beforeClose: '\n',
|
|
@@ -34295,11 +34329,12 @@ function requireStringifier () {
|
|
|
34295
34329
|
}
|
|
34296
34330
|
|
|
34297
34331
|
atrule(node, semicolon) {
|
|
34332
|
+
let raws = node.raws;
|
|
34298
34333
|
let name = '@' + node.name;
|
|
34299
34334
|
let params = node.params ? this.rawValue(node, 'params') : '';
|
|
34300
34335
|
|
|
34301
|
-
if (typeof
|
|
34302
|
-
name +=
|
|
34336
|
+
if (typeof raws.afterName !== 'undefined') {
|
|
34337
|
+
name += raws.afterName;
|
|
34303
34338
|
} else if (params) {
|
|
34304
34339
|
name += ' ';
|
|
34305
34340
|
}
|
|
@@ -34307,8 +34342,8 @@ function requireStringifier () {
|
|
|
34307
34342
|
if (node.nodes) {
|
|
34308
34343
|
this.block(node, name + params);
|
|
34309
34344
|
} else {
|
|
34310
|
-
let end = (
|
|
34311
|
-
this.builder(name + params + end, node);
|
|
34345
|
+
let end = (raws.between || '') + (semicolon ? ';' : '');
|
|
34346
|
+
this.builder(escapeHTMLInCSS(name + params + end), node);
|
|
34312
34347
|
}
|
|
34313
34348
|
}
|
|
34314
34349
|
|
|
@@ -34343,7 +34378,7 @@ function requireStringifier () {
|
|
|
34343
34378
|
|
|
34344
34379
|
block(node, start) {
|
|
34345
34380
|
let between = this.raw(node, 'between', 'beforeOpen');
|
|
34346
|
-
this.builder(start + between + '{', node, 'start');
|
|
34381
|
+
this.builder(escapeHTMLInCSS(start + between) + '{', node, 'start');
|
|
34347
34382
|
|
|
34348
34383
|
let after;
|
|
34349
34384
|
if (node.nodes && node.nodes.length) {
|
|
@@ -34353,22 +34388,24 @@ function requireStringifier () {
|
|
|
34353
34388
|
after = this.raw(node, 'after', 'emptyBody');
|
|
34354
34389
|
}
|
|
34355
34390
|
|
|
34356
|
-
if (after) this.builder(after);
|
|
34391
|
+
if (after) this.builder(escapeHTMLInCSS(after));
|
|
34357
34392
|
this.builder('}', node, 'end');
|
|
34358
34393
|
}
|
|
34359
34394
|
|
|
34360
34395
|
body(node) {
|
|
34361
|
-
let
|
|
34396
|
+
let nodes = node.nodes;
|
|
34397
|
+
let last = nodes.length - 1;
|
|
34362
34398
|
while (last > 0) {
|
|
34363
|
-
if (
|
|
34399
|
+
if (nodes[last].type !== 'comment') break
|
|
34364
34400
|
last -= 1;
|
|
34365
34401
|
}
|
|
34366
34402
|
|
|
34367
34403
|
let semicolon = this.raw(node, 'semicolon');
|
|
34368
|
-
|
|
34369
|
-
|
|
34404
|
+
let isDocument = node.type === 'document';
|
|
34405
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
34406
|
+
let child = nodes[i];
|
|
34370
34407
|
let before = this.raw(child, 'before');
|
|
34371
|
-
if (before) this.builder(before);
|
|
34408
|
+
if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before));
|
|
34372
34409
|
this.stringify(child, last !== i || semicolon);
|
|
34373
34410
|
}
|
|
34374
34411
|
}
|
|
@@ -34376,19 +34413,21 @@ function requireStringifier () {
|
|
|
34376
34413
|
comment(node) {
|
|
34377
34414
|
let left = this.raw(node, 'left', 'commentLeft');
|
|
34378
34415
|
let right = this.raw(node, 'right', 'commentRight');
|
|
34379
|
-
this.builder('/*' + left + node.text + right + '*/', node);
|
|
34416
|
+
this.builder(escapeHTMLInCSS('/*' + left + node.text + right + '*/'), node);
|
|
34380
34417
|
}
|
|
34381
34418
|
|
|
34382
34419
|
decl(node, semicolon) {
|
|
34420
|
+
let raws = node.raws;
|
|
34383
34421
|
let between = this.raw(node, 'between', 'colon');
|
|
34422
|
+
|
|
34384
34423
|
let string = node.prop + between + this.rawValue(node, 'value');
|
|
34385
34424
|
|
|
34386
34425
|
if (node.important) {
|
|
34387
|
-
string +=
|
|
34426
|
+
string += raws.important || ' !important';
|
|
34388
34427
|
}
|
|
34389
34428
|
|
|
34390
34429
|
if (semicolon) string += ';';
|
|
34391
|
-
this.builder(string, node);
|
|
34430
|
+
this.builder(escapeHTMLInCSS(string), node);
|
|
34392
34431
|
}
|
|
34393
34432
|
|
|
34394
34433
|
document(node) {
|
|
@@ -34424,9 +34463,9 @@ function requireStringifier () {
|
|
|
34424
34463
|
|
|
34425
34464
|
// Detect style by other nodes
|
|
34426
34465
|
let root = node.root();
|
|
34427
|
-
|
|
34428
|
-
if (typeof
|
|
34429
|
-
return
|
|
34466
|
+
let cache = root.rawCache || (root.rawCache = {});
|
|
34467
|
+
if (typeof cache[detect] !== 'undefined') {
|
|
34468
|
+
return cache[detect]
|
|
34430
34469
|
}
|
|
34431
34470
|
|
|
34432
34471
|
if (detect === 'before' || detect === 'after') {
|
|
@@ -34445,7 +34484,7 @@ function requireStringifier () {
|
|
|
34445
34484
|
|
|
34446
34485
|
if (typeof value === 'undefined') value = DEFAULT_RAW[detect];
|
|
34447
34486
|
|
|
34448
|
-
|
|
34487
|
+
cache[detect] = value;
|
|
34449
34488
|
return value
|
|
34450
34489
|
}
|
|
34451
34490
|
|
|
@@ -34594,13 +34633,17 @@ function requireStringifier () {
|
|
|
34594
34633
|
|
|
34595
34634
|
root(node) {
|
|
34596
34635
|
this.body(node);
|
|
34597
|
-
if (node.raws.after)
|
|
34636
|
+
if (node.raws.after) {
|
|
34637
|
+
let after = node.raws.after;
|
|
34638
|
+
let isDocument = node.parent && node.parent.type === 'document';
|
|
34639
|
+
this.builder(isDocument ? after : escapeHTMLInCSS(after));
|
|
34640
|
+
}
|
|
34598
34641
|
}
|
|
34599
34642
|
|
|
34600
34643
|
rule(node) {
|
|
34601
34644
|
this.block(node, this.rawValue(node, 'selector'));
|
|
34602
34645
|
if (node.raws.ownSemicolon) {
|
|
34603
|
-
this.builder(node.raws.ownSemicolon, node, 'end');
|
|
34646
|
+
this.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, 'end');
|
|
34604
34647
|
}
|
|
34605
34648
|
}
|
|
34606
34649
|
|
|
@@ -35764,6 +35807,7 @@ function requirePreviousMap () {
|
|
|
35764
35807
|
class PreviousMap {
|
|
35765
35808
|
constructor(css, opts) {
|
|
35766
35809
|
if (opts.map === false) return
|
|
35810
|
+
if (opts.unsafeMap) this.unsafeMap = true;
|
|
35767
35811
|
this.loadAnnotation(css);
|
|
35768
35812
|
this.inline = this.startWith(this.annotation, 'data:');
|
|
35769
35813
|
|
|
@@ -35778,7 +35822,7 @@ function requirePreviousMap () {
|
|
|
35778
35822
|
|
|
35779
35823
|
consumer() {
|
|
35780
35824
|
if (!this.consumerCache) {
|
|
35781
|
-
this.consumerCache = new SourceMapConsumer(this.text);
|
|
35825
|
+
this.consumerCache = new SourceMapConsumer(this.json || this.text);
|
|
35782
35826
|
}
|
|
35783
35827
|
return this.consumerCache
|
|
35784
35828
|
}
|
|
@@ -35799,7 +35843,8 @@ function requirePreviousMap () {
|
|
|
35799
35843
|
return fromBase64(text.substr(baseUriMatch[0].length))
|
|
35800
35844
|
}
|
|
35801
35845
|
|
|
35802
|
-
let encoding = text.
|
|
35846
|
+
let encoding = text.slice('data:application/json;'.length);
|
|
35847
|
+
encoding = encoding.slice(0, encoding.indexOf(','));
|
|
35803
35848
|
throw new Error('Unsupported source map encoding ' + encoding)
|
|
35804
35849
|
}
|
|
35805
35850
|
|
|
@@ -35830,7 +35875,13 @@ function requirePreviousMap () {
|
|
|
35830
35875
|
}
|
|
35831
35876
|
}
|
|
35832
35877
|
|
|
35833
|
-
loadFile(path) {
|
|
35878
|
+
loadFile(path, cssFile, trusted) {
|
|
35879
|
+
/* c8 ignore next 5 */
|
|
35880
|
+
if (!trusted && !this.unsafeMap) {
|
|
35881
|
+
if (!/\.map$/i.test(path)) {
|
|
35882
|
+
return undefined
|
|
35883
|
+
}
|
|
35884
|
+
}
|
|
35834
35885
|
this.root = dirname(path);
|
|
35835
35886
|
if (existsSync(path)) {
|
|
35836
35887
|
this.mapFile = path;
|
|
@@ -35847,7 +35898,7 @@ function requirePreviousMap () {
|
|
|
35847
35898
|
} else if (typeof prev === 'function') {
|
|
35848
35899
|
let prevPath = prev(file);
|
|
35849
35900
|
if (prevPath) {
|
|
35850
|
-
let map = this.loadFile(prevPath);
|
|
35901
|
+
let map = this.loadFile(prevPath, file, true);
|
|
35851
35902
|
if (!map) {
|
|
35852
35903
|
throw new Error(
|
|
35853
35904
|
'Unable to load previous source map: ' + prevPath.toString()
|
|
@@ -35871,7 +35922,16 @@ function requirePreviousMap () {
|
|
|
35871
35922
|
} else if (this.annotation) {
|
|
35872
35923
|
let map = this.annotation;
|
|
35873
35924
|
if (file) map = join(dirname(file), map);
|
|
35874
|
-
|
|
35925
|
+
let unknown = this.loadFile(map, file, false);
|
|
35926
|
+
if (unknown) {
|
|
35927
|
+
try {
|
|
35928
|
+
/* c8 ignore next 4 */
|
|
35929
|
+
this.json = JSON.parse(unknown.replace(/^\)]}'[^\n]*\n/, ''));
|
|
35930
|
+
} catch {
|
|
35931
|
+
return undefined
|
|
35932
|
+
}
|
|
35933
|
+
}
|
|
35934
|
+
return unknown
|
|
35875
35935
|
}
|
|
35876
35936
|
}
|
|
35877
35937
|
|
|
@@ -36042,7 +36102,15 @@ function requireInput () {
|
|
|
36042
36102
|
);
|
|
36043
36103
|
}
|
|
36044
36104
|
|
|
36045
|
-
result.input = {
|
|
36105
|
+
result.input = {
|
|
36106
|
+
column,
|
|
36107
|
+
endColumn,
|
|
36108
|
+
endLine,
|
|
36109
|
+
endOffset,
|
|
36110
|
+
line,
|
|
36111
|
+
offset,
|
|
36112
|
+
source: this.css
|
|
36113
|
+
};
|
|
36046
36114
|
if (this.file) {
|
|
36047
36115
|
if (pathToFileURL) {
|
|
36048
36116
|
result.input.url = pathToFileURL(this.file).toString();
|
|
@@ -37953,6 +38021,19 @@ function requireLazyResult () {
|
|
|
37953
38021
|
if (opts.stringifier) str = opts.stringifier;
|
|
37954
38022
|
if (str.stringify) str = str.stringify;
|
|
37955
38023
|
|
|
38024
|
+
let rootSource = this.result.root.source;
|
|
38025
|
+
if (
|
|
38026
|
+
opts.map === undefined &&
|
|
38027
|
+
!(rootSource && rootSource.input && rootSource.input.map)
|
|
38028
|
+
) {
|
|
38029
|
+
let result = '';
|
|
38030
|
+
str(this.result.root, i => {
|
|
38031
|
+
result += i;
|
|
38032
|
+
});
|
|
38033
|
+
this.result.css = result;
|
|
38034
|
+
return this.result
|
|
38035
|
+
}
|
|
38036
|
+
|
|
37956
38037
|
let map = new MapGenerator(str, this.result.root, this.result.opts);
|
|
37957
38038
|
let data = map.generate();
|
|
37958
38039
|
this.result.css = data[0];
|
|
@@ -38135,7 +38216,7 @@ function requireNoWorkResult () {
|
|
|
38135
38216
|
|
|
38136
38217
|
let MapGenerator = /*@__PURE__*/ requireMapGenerator();
|
|
38137
38218
|
let parse = /*@__PURE__*/ requireParse();
|
|
38138
|
-
|
|
38219
|
+
let Result = /*@__PURE__*/ requireResult();
|
|
38139
38220
|
let stringify = /*@__PURE__*/ requireStringify();
|
|
38140
38221
|
let warnOnce = /*@__PURE__*/ requireWarnOnce();
|
|
38141
38222
|
|
|
@@ -38285,7 +38366,7 @@ function requireProcessor$1 () {
|
|
|
38285
38366
|
|
|
38286
38367
|
class Processor {
|
|
38287
38368
|
constructor(plugins = []) {
|
|
38288
|
-
this.version = '8.5.
|
|
38369
|
+
this.version = '8.5.14';
|
|
38289
38370
|
this.plugins = this.normalize(plugins);
|
|
38290
38371
|
}
|
|
38291
38372
|
|
|
@@ -38521,10 +38602,10 @@ var hasRequiredUnesc;
|
|
|
38521
38602
|
function requireUnesc () {
|
|
38522
38603
|
if (hasRequiredUnesc) return unesc.exports;
|
|
38523
38604
|
hasRequiredUnesc = 1;
|
|
38524
|
-
(function (module, exports
|
|
38605
|
+
(function (module, exports) {
|
|
38525
38606
|
|
|
38526
|
-
exports
|
|
38527
|
-
exports
|
|
38607
|
+
exports.__esModule = true;
|
|
38608
|
+
exports["default"] = unesc;
|
|
38528
38609
|
// Many thanks for this post which made this migration much easier.
|
|
38529
38610
|
// https://mathiasbynens.be/notes/css-escapes
|
|
38530
38611
|
|
|
@@ -38596,7 +38677,7 @@ function requireUnesc () {
|
|
|
38596
38677
|
}
|
|
38597
38678
|
return ret;
|
|
38598
38679
|
}
|
|
38599
|
-
module.exports = exports
|
|
38680
|
+
module.exports = exports.default;
|
|
38600
38681
|
} (unesc, unesc.exports));
|
|
38601
38682
|
return unesc.exports;
|
|
38602
38683
|
}
|
|
@@ -38608,10 +38689,10 @@ var hasRequiredGetProp;
|
|
|
38608
38689
|
function requireGetProp () {
|
|
38609
38690
|
if (hasRequiredGetProp) return getProp.exports;
|
|
38610
38691
|
hasRequiredGetProp = 1;
|
|
38611
|
-
(function (module, exports
|
|
38692
|
+
(function (module, exports) {
|
|
38612
38693
|
|
|
38613
|
-
exports
|
|
38614
|
-
exports
|
|
38694
|
+
exports.__esModule = true;
|
|
38695
|
+
exports["default"] = getProp;
|
|
38615
38696
|
function getProp(obj) {
|
|
38616
38697
|
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
38617
38698
|
props[_key - 1] = arguments[_key];
|
|
@@ -38625,7 +38706,7 @@ function requireGetProp () {
|
|
|
38625
38706
|
}
|
|
38626
38707
|
return obj;
|
|
38627
38708
|
}
|
|
38628
|
-
module.exports = exports
|
|
38709
|
+
module.exports = exports.default;
|
|
38629
38710
|
} (getProp, getProp.exports));
|
|
38630
38711
|
return getProp.exports;
|
|
38631
38712
|
}
|
|
@@ -38637,10 +38718,10 @@ var hasRequiredEnsureObject;
|
|
|
38637
38718
|
function requireEnsureObject () {
|
|
38638
38719
|
if (hasRequiredEnsureObject) return ensureObject.exports;
|
|
38639
38720
|
hasRequiredEnsureObject = 1;
|
|
38640
|
-
(function (module, exports
|
|
38721
|
+
(function (module, exports) {
|
|
38641
38722
|
|
|
38642
|
-
exports
|
|
38643
|
-
exports
|
|
38723
|
+
exports.__esModule = true;
|
|
38724
|
+
exports["default"] = ensureObject;
|
|
38644
38725
|
function ensureObject(obj) {
|
|
38645
38726
|
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
38646
38727
|
props[_key - 1] = arguments[_key];
|
|
@@ -38653,7 +38734,7 @@ function requireEnsureObject () {
|
|
|
38653
38734
|
obj = obj[prop];
|
|
38654
38735
|
}
|
|
38655
38736
|
}
|
|
38656
|
-
module.exports = exports
|
|
38737
|
+
module.exports = exports.default;
|
|
38657
38738
|
} (ensureObject, ensureObject.exports));
|
|
38658
38739
|
return ensureObject.exports;
|
|
38659
38740
|
}
|
|
@@ -38665,10 +38746,10 @@ var hasRequiredStripComments;
|
|
|
38665
38746
|
function requireStripComments () {
|
|
38666
38747
|
if (hasRequiredStripComments) return stripComments.exports;
|
|
38667
38748
|
hasRequiredStripComments = 1;
|
|
38668
|
-
(function (module, exports
|
|
38749
|
+
(function (module, exports) {
|
|
38669
38750
|
|
|
38670
|
-
exports
|
|
38671
|
-
exports
|
|
38751
|
+
exports.__esModule = true;
|
|
38752
|
+
exports["default"] = stripComments;
|
|
38672
38753
|
function stripComments(str) {
|
|
38673
38754
|
var s = "";
|
|
38674
38755
|
var commentStart = str.indexOf("/*");
|
|
@@ -38685,7 +38766,7 @@ function requireStripComments () {
|
|
|
38685
38766
|
s = s + str.slice(lastEnd);
|
|
38686
38767
|
return s;
|
|
38687
38768
|
}
|
|
38688
|
-
module.exports = exports
|
|
38769
|
+
module.exports = exports.default;
|
|
38689
38770
|
} (stripComments, stripComments.exports));
|
|
38690
38771
|
return stripComments.exports;
|
|
38691
38772
|
}
|
|
@@ -38715,10 +38796,10 @@ var hasRequiredNode$1;
|
|
|
38715
38796
|
function requireNode$1 () {
|
|
38716
38797
|
if (hasRequiredNode$1) return node$1.exports;
|
|
38717
38798
|
hasRequiredNode$1 = 1;
|
|
38718
|
-
(function (module, exports
|
|
38799
|
+
(function (module, exports) {
|
|
38719
38800
|
|
|
38720
|
-
exports
|
|
38721
|
-
exports
|
|
38801
|
+
exports.__esModule = true;
|
|
38802
|
+
exports["default"] = void 0;
|
|
38722
38803
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
38723
38804
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
38724
38805
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -38905,8 +38986,8 @@ function requireNode$1 () {
|
|
|
38905
38986
|
}]);
|
|
38906
38987
|
return Node;
|
|
38907
38988
|
}();
|
|
38908
|
-
exports
|
|
38909
|
-
module.exports = exports
|
|
38989
|
+
exports["default"] = Node;
|
|
38990
|
+
module.exports = exports.default;
|
|
38910
38991
|
} (node$1, node$1.exports));
|
|
38911
38992
|
return node$1.exports;
|
|
38912
38993
|
}
|
|
@@ -38953,10 +39034,10 @@ var hasRequiredContainer;
|
|
|
38953
39034
|
function requireContainer () {
|
|
38954
39035
|
if (hasRequiredContainer) return container.exports;
|
|
38955
39036
|
hasRequiredContainer = 1;
|
|
38956
|
-
(function (module, exports
|
|
39037
|
+
(function (module, exports) {
|
|
38957
39038
|
|
|
38958
|
-
exports
|
|
38959
|
-
exports
|
|
39039
|
+
exports.__esModule = true;
|
|
39040
|
+
exports["default"] = void 0;
|
|
38960
39041
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
38961
39042
|
var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes());
|
|
38962
39043
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -39272,8 +39353,8 @@ function requireContainer () {
|
|
|
39272
39353
|
}]);
|
|
39273
39354
|
return Container;
|
|
39274
39355
|
}(_node["default"]);
|
|
39275
|
-
exports
|
|
39276
|
-
module.exports = exports
|
|
39356
|
+
exports["default"] = Container;
|
|
39357
|
+
module.exports = exports.default;
|
|
39277
39358
|
} (container, container.exports));
|
|
39278
39359
|
return container.exports;
|
|
39279
39360
|
}
|
|
@@ -39283,10 +39364,10 @@ var hasRequiredRoot;
|
|
|
39283
39364
|
function requireRoot () {
|
|
39284
39365
|
if (hasRequiredRoot) return root.exports;
|
|
39285
39366
|
hasRequiredRoot = 1;
|
|
39286
|
-
(function (module, exports
|
|
39367
|
+
(function (module, exports) {
|
|
39287
39368
|
|
|
39288
|
-
exports
|
|
39289
|
-
exports
|
|
39369
|
+
exports.__esModule = true;
|
|
39370
|
+
exports["default"] = void 0;
|
|
39290
39371
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39291
39372
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39292
39373
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39325,8 +39406,8 @@ function requireRoot () {
|
|
|
39325
39406
|
}]);
|
|
39326
39407
|
return Root;
|
|
39327
39408
|
}(_container["default"]);
|
|
39328
|
-
exports
|
|
39329
|
-
module.exports = exports
|
|
39409
|
+
exports["default"] = Root;
|
|
39410
|
+
module.exports = exports.default;
|
|
39330
39411
|
} (root, root.exports));
|
|
39331
39412
|
return root.exports;
|
|
39332
39413
|
}
|
|
@@ -39338,10 +39419,10 @@ var hasRequiredSelector;
|
|
|
39338
39419
|
function requireSelector () {
|
|
39339
39420
|
if (hasRequiredSelector) return selector.exports;
|
|
39340
39421
|
hasRequiredSelector = 1;
|
|
39341
|
-
(function (module, exports
|
|
39422
|
+
(function (module, exports) {
|
|
39342
39423
|
|
|
39343
|
-
exports
|
|
39344
|
-
exports
|
|
39424
|
+
exports.__esModule = true;
|
|
39425
|
+
exports["default"] = void 0;
|
|
39345
39426
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39346
39427
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39347
39428
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39357,8 +39438,8 @@ function requireSelector () {
|
|
|
39357
39438
|
}
|
|
39358
39439
|
return Selector;
|
|
39359
39440
|
}(_container["default"]);
|
|
39360
|
-
exports
|
|
39361
|
-
module.exports = exports
|
|
39441
|
+
exports["default"] = Selector;
|
|
39442
|
+
module.exports = exports.default;
|
|
39362
39443
|
} (selector, selector.exports));
|
|
39363
39444
|
return selector.exports;
|
|
39364
39445
|
}
|
|
@@ -39488,10 +39569,10 @@ var hasRequiredClassName;
|
|
|
39488
39569
|
function requireClassName () {
|
|
39489
39570
|
if (hasRequiredClassName) return className.exports;
|
|
39490
39571
|
hasRequiredClassName = 1;
|
|
39491
|
-
(function (module, exports
|
|
39572
|
+
(function (module, exports) {
|
|
39492
39573
|
|
|
39493
|
-
exports
|
|
39494
|
-
exports
|
|
39574
|
+
exports.__esModule = true;
|
|
39575
|
+
exports["default"] = void 0;
|
|
39495
39576
|
var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
|
|
39496
39577
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
39497
39578
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
@@ -39536,8 +39617,8 @@ function requireClassName () {
|
|
|
39536
39617
|
}]);
|
|
39537
39618
|
return ClassName;
|
|
39538
39619
|
}(_node["default"]);
|
|
39539
|
-
exports
|
|
39540
|
-
module.exports = exports
|
|
39620
|
+
exports["default"] = ClassName;
|
|
39621
|
+
module.exports = exports.default;
|
|
39541
39622
|
} (className, className.exports));
|
|
39542
39623
|
return className.exports;
|
|
39543
39624
|
}
|
|
@@ -39549,10 +39630,10 @@ var hasRequiredComment;
|
|
|
39549
39630
|
function requireComment () {
|
|
39550
39631
|
if (hasRequiredComment) return comment.exports;
|
|
39551
39632
|
hasRequiredComment = 1;
|
|
39552
|
-
(function (module, exports
|
|
39633
|
+
(function (module, exports) {
|
|
39553
39634
|
|
|
39554
|
-
exports
|
|
39555
|
-
exports
|
|
39635
|
+
exports.__esModule = true;
|
|
39636
|
+
exports["default"] = void 0;
|
|
39556
39637
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39557
39638
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39558
39639
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39568,8 +39649,8 @@ function requireComment () {
|
|
|
39568
39649
|
}
|
|
39569
39650
|
return Comment;
|
|
39570
39651
|
}(_node["default"]);
|
|
39571
|
-
exports
|
|
39572
|
-
module.exports = exports
|
|
39652
|
+
exports["default"] = Comment;
|
|
39653
|
+
module.exports = exports.default;
|
|
39573
39654
|
} (comment, comment.exports));
|
|
39574
39655
|
return comment.exports;
|
|
39575
39656
|
}
|
|
@@ -39581,10 +39662,10 @@ var hasRequiredId;
|
|
|
39581
39662
|
function requireId () {
|
|
39582
39663
|
if (hasRequiredId) return id.exports;
|
|
39583
39664
|
hasRequiredId = 1;
|
|
39584
|
-
(function (module, exports
|
|
39665
|
+
(function (module, exports) {
|
|
39585
39666
|
|
|
39586
|
-
exports
|
|
39587
|
-
exports
|
|
39667
|
+
exports.__esModule = true;
|
|
39668
|
+
exports["default"] = void 0;
|
|
39588
39669
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39589
39670
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39590
39671
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39604,8 +39685,8 @@ function requireId () {
|
|
|
39604
39685
|
};
|
|
39605
39686
|
return ID;
|
|
39606
39687
|
}(_node["default"]);
|
|
39607
|
-
exports
|
|
39608
|
-
module.exports = exports
|
|
39688
|
+
exports["default"] = ID;
|
|
39689
|
+
module.exports = exports.default;
|
|
39609
39690
|
} (id, id.exports));
|
|
39610
39691
|
return id.exports;
|
|
39611
39692
|
}
|
|
@@ -39619,10 +39700,10 @@ var hasRequiredNamespace;
|
|
|
39619
39700
|
function requireNamespace () {
|
|
39620
39701
|
if (hasRequiredNamespace) return namespace.exports;
|
|
39621
39702
|
hasRequiredNamespace = 1;
|
|
39622
|
-
(function (module, exports
|
|
39703
|
+
(function (module, exports) {
|
|
39623
39704
|
|
|
39624
|
-
exports
|
|
39625
|
-
exports
|
|
39705
|
+
exports.__esModule = true;
|
|
39706
|
+
exports["default"] = void 0;
|
|
39626
39707
|
var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
|
|
39627
39708
|
var _util = /*@__PURE__*/ requireUtil$1();
|
|
39628
39709
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
@@ -39696,8 +39777,8 @@ function requireNamespace () {
|
|
|
39696
39777
|
}]);
|
|
39697
39778
|
return Namespace;
|
|
39698
39779
|
}(_node["default"]);
|
|
39699
|
-
exports
|
|
39700
|
-
module.exports = exports
|
|
39780
|
+
exports["default"] = Namespace;
|
|
39781
|
+
module.exports = exports.default;
|
|
39701
39782
|
} (namespace, namespace.exports));
|
|
39702
39783
|
return namespace.exports;
|
|
39703
39784
|
}
|
|
@@ -39707,10 +39788,10 @@ var hasRequiredTag;
|
|
|
39707
39788
|
function requireTag () {
|
|
39708
39789
|
if (hasRequiredTag) return tag.exports;
|
|
39709
39790
|
hasRequiredTag = 1;
|
|
39710
|
-
(function (module, exports
|
|
39791
|
+
(function (module, exports) {
|
|
39711
39792
|
|
|
39712
|
-
exports
|
|
39713
|
-
exports
|
|
39793
|
+
exports.__esModule = true;
|
|
39794
|
+
exports["default"] = void 0;
|
|
39714
39795
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
39715
39796
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39716
39797
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39726,8 +39807,8 @@ function requireTag () {
|
|
|
39726
39807
|
}
|
|
39727
39808
|
return Tag;
|
|
39728
39809
|
}(_namespace["default"]);
|
|
39729
|
-
exports
|
|
39730
|
-
module.exports = exports
|
|
39810
|
+
exports["default"] = Tag;
|
|
39811
|
+
module.exports = exports.default;
|
|
39731
39812
|
} (tag, tag.exports));
|
|
39732
39813
|
return tag.exports;
|
|
39733
39814
|
}
|
|
@@ -39739,10 +39820,10 @@ var hasRequiredString;
|
|
|
39739
39820
|
function requireString () {
|
|
39740
39821
|
if (hasRequiredString) return string.exports;
|
|
39741
39822
|
hasRequiredString = 1;
|
|
39742
|
-
(function (module, exports
|
|
39823
|
+
(function (module, exports) {
|
|
39743
39824
|
|
|
39744
|
-
exports
|
|
39745
|
-
exports
|
|
39825
|
+
exports.__esModule = true;
|
|
39826
|
+
exports["default"] = void 0;
|
|
39746
39827
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
39747
39828
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39748
39829
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39758,8 +39839,8 @@ function requireString () {
|
|
|
39758
39839
|
}
|
|
39759
39840
|
return String;
|
|
39760
39841
|
}(_node["default"]);
|
|
39761
|
-
exports
|
|
39762
|
-
module.exports = exports
|
|
39842
|
+
exports["default"] = String;
|
|
39843
|
+
module.exports = exports.default;
|
|
39763
39844
|
} (string, string.exports));
|
|
39764
39845
|
return string.exports;
|
|
39765
39846
|
}
|
|
@@ -39771,10 +39852,10 @@ var hasRequiredPseudo;
|
|
|
39771
39852
|
function requirePseudo () {
|
|
39772
39853
|
if (hasRequiredPseudo) return pseudo.exports;
|
|
39773
39854
|
hasRequiredPseudo = 1;
|
|
39774
|
-
(function (module, exports
|
|
39855
|
+
(function (module, exports) {
|
|
39775
39856
|
|
|
39776
|
-
exports
|
|
39777
|
-
exports
|
|
39857
|
+
exports.__esModule = true;
|
|
39858
|
+
exports["default"] = void 0;
|
|
39778
39859
|
var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
|
|
39779
39860
|
var _types = /*@__PURE__*/ requireTypes();
|
|
39780
39861
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39795,8 +39876,8 @@ function requirePseudo () {
|
|
|
39795
39876
|
};
|
|
39796
39877
|
return Pseudo;
|
|
39797
39878
|
}(_container["default"]);
|
|
39798
|
-
exports
|
|
39799
|
-
module.exports = exports
|
|
39879
|
+
exports["default"] = Pseudo;
|
|
39880
|
+
module.exports = exports.default;
|
|
39800
39881
|
} (pseudo, pseudo.exports));
|
|
39801
39882
|
return pseudo.exports;
|
|
39802
39883
|
}
|
|
@@ -39822,11 +39903,11 @@ var hasRequiredAttribute;
|
|
|
39822
39903
|
function requireAttribute () {
|
|
39823
39904
|
if (hasRequiredAttribute) return attribute;
|
|
39824
39905
|
hasRequiredAttribute = 1;
|
|
39825
|
-
(function (exports
|
|
39906
|
+
(function (exports) {
|
|
39826
39907
|
|
|
39827
|
-
exports
|
|
39828
|
-
exports
|
|
39829
|
-
exports
|
|
39908
|
+
exports.__esModule = true;
|
|
39909
|
+
exports["default"] = void 0;
|
|
39910
|
+
exports.unescapeValue = unescapeValue;
|
|
39830
39911
|
var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
|
|
39831
39912
|
var _unesc = _interopRequireDefault(/*@__PURE__*/ requireUnesc());
|
|
39832
39913
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
@@ -40251,7 +40332,7 @@ function requireAttribute () {
|
|
|
40251
40332
|
}]);
|
|
40252
40333
|
return Attribute;
|
|
40253
40334
|
}(_namespace["default"]);
|
|
40254
|
-
exports
|
|
40335
|
+
exports["default"] = Attribute;
|
|
40255
40336
|
Attribute.NO_QUOTE = null;
|
|
40256
40337
|
Attribute.SINGLE_QUOTE = "'";
|
|
40257
40338
|
Attribute.DOUBLE_QUOTE = '"';
|
|
@@ -40281,10 +40362,10 @@ var hasRequiredUniversal;
|
|
|
40281
40362
|
function requireUniversal () {
|
|
40282
40363
|
if (hasRequiredUniversal) return universal.exports;
|
|
40283
40364
|
hasRequiredUniversal = 1;
|
|
40284
|
-
(function (module, exports
|
|
40365
|
+
(function (module, exports) {
|
|
40285
40366
|
|
|
40286
|
-
exports
|
|
40287
|
-
exports
|
|
40367
|
+
exports.__esModule = true;
|
|
40368
|
+
exports["default"] = void 0;
|
|
40288
40369
|
var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
|
|
40289
40370
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40290
40371
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -40301,8 +40382,8 @@ function requireUniversal () {
|
|
|
40301
40382
|
}
|
|
40302
40383
|
return Universal;
|
|
40303
40384
|
}(_namespace["default"]);
|
|
40304
|
-
exports
|
|
40305
|
-
module.exports = exports
|
|
40385
|
+
exports["default"] = Universal;
|
|
40386
|
+
module.exports = exports.default;
|
|
40306
40387
|
} (universal, universal.exports));
|
|
40307
40388
|
return universal.exports;
|
|
40308
40389
|
}
|
|
@@ -40314,10 +40395,10 @@ var hasRequiredCombinator;
|
|
|
40314
40395
|
function requireCombinator () {
|
|
40315
40396
|
if (hasRequiredCombinator) return combinator.exports;
|
|
40316
40397
|
hasRequiredCombinator = 1;
|
|
40317
|
-
(function (module, exports
|
|
40398
|
+
(function (module, exports) {
|
|
40318
40399
|
|
|
40319
|
-
exports
|
|
40320
|
-
exports
|
|
40400
|
+
exports.__esModule = true;
|
|
40401
|
+
exports["default"] = void 0;
|
|
40321
40402
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
40322
40403
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40323
40404
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -40333,8 +40414,8 @@ function requireCombinator () {
|
|
|
40333
40414
|
}
|
|
40334
40415
|
return Combinator;
|
|
40335
40416
|
}(_node["default"]);
|
|
40336
|
-
exports
|
|
40337
|
-
module.exports = exports
|
|
40417
|
+
exports["default"] = Combinator;
|
|
40418
|
+
module.exports = exports.default;
|
|
40338
40419
|
} (combinator, combinator.exports));
|
|
40339
40420
|
return combinator.exports;
|
|
40340
40421
|
}
|
|
@@ -40346,10 +40427,10 @@ var hasRequiredNesting;
|
|
|
40346
40427
|
function requireNesting () {
|
|
40347
40428
|
if (hasRequiredNesting) return nesting.exports;
|
|
40348
40429
|
hasRequiredNesting = 1;
|
|
40349
|
-
(function (module, exports
|
|
40430
|
+
(function (module, exports) {
|
|
40350
40431
|
|
|
40351
|
-
exports
|
|
40352
|
-
exports
|
|
40432
|
+
exports.__esModule = true;
|
|
40433
|
+
exports["default"] = void 0;
|
|
40353
40434
|
var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
|
|
40354
40435
|
var _types = /*@__PURE__*/ requireTypes();
|
|
40355
40436
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -40366,8 +40447,8 @@ function requireNesting () {
|
|
|
40366
40447
|
}
|
|
40367
40448
|
return Nesting;
|
|
40368
40449
|
}(_node["default"]);
|
|
40369
|
-
exports
|
|
40370
|
-
module.exports = exports
|
|
40450
|
+
exports["default"] = Nesting;
|
|
40451
|
+
module.exports = exports.default;
|
|
40371
40452
|
} (nesting, nesting.exports));
|
|
40372
40453
|
return nesting.exports;
|
|
40373
40454
|
}
|
|
@@ -40379,16 +40460,16 @@ var hasRequiredSortAscending;
|
|
|
40379
40460
|
function requireSortAscending () {
|
|
40380
40461
|
if (hasRequiredSortAscending) return sortAscending.exports;
|
|
40381
40462
|
hasRequiredSortAscending = 1;
|
|
40382
|
-
(function (module, exports
|
|
40463
|
+
(function (module, exports) {
|
|
40383
40464
|
|
|
40384
|
-
exports
|
|
40385
|
-
exports
|
|
40465
|
+
exports.__esModule = true;
|
|
40466
|
+
exports["default"] = sortAscending;
|
|
40386
40467
|
function sortAscending(list) {
|
|
40387
40468
|
return list.sort(function (a, b) {
|
|
40388
40469
|
return a - b;
|
|
40389
40470
|
});
|
|
40390
40471
|
}
|
|
40391
|
-
module.exports = exports
|
|
40472
|
+
module.exports = exports.default;
|
|
40392
40473
|
} (sortAscending, sortAscending.exports));
|
|
40393
40474
|
return sortAscending.exports;
|
|
40394
40475
|
}
|
|
@@ -40479,11 +40560,11 @@ var hasRequiredTokenize;
|
|
|
40479
40560
|
function requireTokenize () {
|
|
40480
40561
|
if (hasRequiredTokenize) return tokenize;
|
|
40481
40562
|
hasRequiredTokenize = 1;
|
|
40482
|
-
(function (exports
|
|
40563
|
+
(function (exports) {
|
|
40483
40564
|
|
|
40484
|
-
exports
|
|
40485
|
-
exports
|
|
40486
|
-
exports
|
|
40565
|
+
exports.__esModule = true;
|
|
40566
|
+
exports.FIELDS = void 0;
|
|
40567
|
+
exports["default"] = tokenize;
|
|
40487
40568
|
var t = _interopRequireWildcard(/*@__PURE__*/ requireTokenTypes());
|
|
40488
40569
|
var _unescapable, _wordDelimiters;
|
|
40489
40570
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -40553,7 +40634,7 @@ function requireTokenize () {
|
|
|
40553
40634
|
START_POS: 5,
|
|
40554
40635
|
END_POS: 6
|
|
40555
40636
|
};
|
|
40556
|
-
exports
|
|
40637
|
+
exports.FIELDS = FIELDS;
|
|
40557
40638
|
function tokenize(input) {
|
|
40558
40639
|
var tokens = [];
|
|
40559
40640
|
var css = input.css.valueOf();
|
|
@@ -40725,10 +40806,10 @@ var hasRequiredParser;
|
|
|
40725
40806
|
function requireParser () {
|
|
40726
40807
|
if (hasRequiredParser) return parser.exports;
|
|
40727
40808
|
hasRequiredParser = 1;
|
|
40728
|
-
(function (module, exports
|
|
40809
|
+
(function (module, exports) {
|
|
40729
40810
|
|
|
40730
|
-
exports
|
|
40731
|
-
exports
|
|
40811
|
+
exports.__esModule = true;
|
|
40812
|
+
exports["default"] = void 0;
|
|
40732
40813
|
var _root = _interopRequireDefault(/*@__PURE__*/ requireRoot());
|
|
40733
40814
|
var _selector = _interopRequireDefault(/*@__PURE__*/ requireSelector());
|
|
40734
40815
|
var _className = _interopRequireDefault(/*@__PURE__*/ requireClassName());
|
|
@@ -41736,8 +41817,8 @@ function requireParser () {
|
|
|
41736
41817
|
}]);
|
|
41737
41818
|
return Parser;
|
|
41738
41819
|
}();
|
|
41739
|
-
exports
|
|
41740
|
-
module.exports = exports
|
|
41820
|
+
exports["default"] = Parser;
|
|
41821
|
+
module.exports = exports.default;
|
|
41741
41822
|
} (parser, parser.exports));
|
|
41742
41823
|
return parser.exports;
|
|
41743
41824
|
}
|
|
@@ -41747,10 +41828,10 @@ var hasRequiredProcessor;
|
|
|
41747
41828
|
function requireProcessor () {
|
|
41748
41829
|
if (hasRequiredProcessor) return processor.exports;
|
|
41749
41830
|
hasRequiredProcessor = 1;
|
|
41750
|
-
(function (module, exports
|
|
41831
|
+
(function (module, exports) {
|
|
41751
41832
|
|
|
41752
|
-
exports
|
|
41753
|
-
exports
|
|
41833
|
+
exports.__esModule = true;
|
|
41834
|
+
exports["default"] = void 0;
|
|
41754
41835
|
var _parser = _interopRequireDefault(/*@__PURE__*/ requireParser());
|
|
41755
41836
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41756
41837
|
var Processor = /*#__PURE__*/function () {
|
|
@@ -41915,8 +41996,8 @@ function requireProcessor () {
|
|
|
41915
41996
|
};
|
|
41916
41997
|
return Processor;
|
|
41917
41998
|
}();
|
|
41918
|
-
exports
|
|
41919
|
-
module.exports = exports
|
|
41999
|
+
exports["default"] = Processor;
|
|
42000
|
+
module.exports = exports.default;
|
|
41920
42001
|
} (processor, processor.exports));
|
|
41921
42002
|
return processor.exports;
|
|
41922
42003
|
}
|
|
@@ -42069,26 +42150,26 @@ var hasRequiredSelectors;
|
|
|
42069
42150
|
function requireSelectors () {
|
|
42070
42151
|
if (hasRequiredSelectors) return selectors;
|
|
42071
42152
|
hasRequiredSelectors = 1;
|
|
42072
|
-
(function (exports
|
|
42153
|
+
(function (exports) {
|
|
42073
42154
|
|
|
42074
|
-
exports
|
|
42155
|
+
exports.__esModule = true;
|
|
42075
42156
|
var _types = /*@__PURE__*/ requireTypes();
|
|
42076
42157
|
Object.keys(_types).forEach(function (key) {
|
|
42077
42158
|
if (key === "default" || key === "__esModule") return;
|
|
42078
|
-
if (key in exports
|
|
42079
|
-
exports
|
|
42159
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
42160
|
+
exports[key] = _types[key];
|
|
42080
42161
|
});
|
|
42081
42162
|
var _constructors = /*@__PURE__*/ requireConstructors();
|
|
42082
42163
|
Object.keys(_constructors).forEach(function (key) {
|
|
42083
42164
|
if (key === "default" || key === "__esModule") return;
|
|
42084
|
-
if (key in exports
|
|
42085
|
-
exports
|
|
42165
|
+
if (key in exports && exports[key] === _constructors[key]) return;
|
|
42166
|
+
exports[key] = _constructors[key];
|
|
42086
42167
|
});
|
|
42087
42168
|
var _guards = /*@__PURE__*/ requireGuards();
|
|
42088
42169
|
Object.keys(_guards).forEach(function (key) {
|
|
42089
42170
|
if (key === "default" || key === "__esModule") return;
|
|
42090
|
-
if (key in exports
|
|
42091
|
-
exports
|
|
42171
|
+
if (key in exports && exports[key] === _guards[key]) return;
|
|
42172
|
+
exports[key] = _guards[key];
|
|
42092
42173
|
});
|
|
42093
42174
|
} (selectors));
|
|
42094
42175
|
return selectors;
|
|
@@ -42099,10 +42180,10 @@ var hasRequiredDist;
|
|
|
42099
42180
|
function requireDist () {
|
|
42100
42181
|
if (hasRequiredDist) return dist.exports;
|
|
42101
42182
|
hasRequiredDist = 1;
|
|
42102
|
-
(function (module, exports
|
|
42183
|
+
(function (module, exports) {
|
|
42103
42184
|
|
|
42104
|
-
exports
|
|
42105
|
-
exports
|
|
42185
|
+
exports.__esModule = true;
|
|
42186
|
+
exports["default"] = void 0;
|
|
42106
42187
|
var _processor = _interopRequireDefault(/*@__PURE__*/ requireProcessor());
|
|
42107
42188
|
var selectors = _interopRequireWildcard(/*@__PURE__*/ requireSelectors());
|
|
42108
42189
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -42114,8 +42195,8 @@ function requireDist () {
|
|
|
42114
42195
|
Object.assign(parser, selectors);
|
|
42115
42196
|
delete parser.__esModule;
|
|
42116
42197
|
var _default = parser;
|
|
42117
|
-
exports
|
|
42118
|
-
module.exports = exports
|
|
42198
|
+
exports["default"] = _default;
|
|
42199
|
+
module.exports = exports.default;
|
|
42119
42200
|
} (dist, dist.exports));
|
|
42120
42201
|
return dist.exports;
|
|
42121
42202
|
}
|
|
@@ -42186,6 +42267,8 @@ function processRule(id, rule) {
|
|
|
42186
42267
|
function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false) {
|
|
42187
42268
|
let node = null;
|
|
42188
42269
|
let shouldInject = !deep;
|
|
42270
|
+
let hasNestedDeep = false;
|
|
42271
|
+
let splitForNestedDeep = false;
|
|
42189
42272
|
selector.each((n) => {
|
|
42190
42273
|
if (n.type === "combinator" && (n.value === ">>>" || n.value === "/deep/")) {
|
|
42191
42274
|
n.value = " ";
|
|
@@ -42197,6 +42280,49 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
|
|
|
42197
42280
|
}
|
|
42198
42281
|
if (n.type === "pseudo") {
|
|
42199
42282
|
const { value } = n;
|
|
42283
|
+
if (isDeepContainerPseudo(n)) {
|
|
42284
|
+
const hasDeepSelectors = n.nodes.some(
|
|
42285
|
+
(selector2) => selector2.some(isDeepSelector)
|
|
42286
|
+
);
|
|
42287
|
+
if (hasDeepSelectors) {
|
|
42288
|
+
const hasScopeAnchor = !!node;
|
|
42289
|
+
const hasMixedSelectors = n.nodes.some(
|
|
42290
|
+
(selector2) => !selector2.some(isDeepSelector)
|
|
42291
|
+
);
|
|
42292
|
+
const hasTrailingNodes = selector.index(n) < selector.length - 1;
|
|
42293
|
+
if (canSplitDeepContainerPseudo(n) && !deep && !hasScopeAnchor && hasMixedSelectors && hasTrailingNodes) {
|
|
42294
|
+
splitSelectorForNestedDeep(
|
|
42295
|
+
id,
|
|
42296
|
+
rule,
|
|
42297
|
+
selector,
|
|
42298
|
+
selectorRoot,
|
|
42299
|
+
n,
|
|
42300
|
+
deep,
|
|
42301
|
+
slotted
|
|
42302
|
+
);
|
|
42303
|
+
splitForNestedDeep = true;
|
|
42304
|
+
return false;
|
|
42305
|
+
}
|
|
42306
|
+
if (value === ":not" && !deep && !hasScopeAnchor && hasMixedSelectors && hasTrailingNodes) {
|
|
42307
|
+
return;
|
|
42308
|
+
}
|
|
42309
|
+
n.nodes.forEach(
|
|
42310
|
+
(selector2) => rewriteSelector(
|
|
42311
|
+
id,
|
|
42312
|
+
rule,
|
|
42313
|
+
selector2,
|
|
42314
|
+
selectorRoot,
|
|
42315
|
+
deep || hasScopeAnchor,
|
|
42316
|
+
slotted
|
|
42317
|
+
)
|
|
42318
|
+
);
|
|
42319
|
+
if (!hasScopeAnchor) {
|
|
42320
|
+
node = n;
|
|
42321
|
+
shouldInject = false;
|
|
42322
|
+
}
|
|
42323
|
+
hasNestedDeep = true;
|
|
42324
|
+
}
|
|
42325
|
+
}
|
|
42200
42326
|
if (value === ":deep" || value === "::v-deep") {
|
|
42201
42327
|
rule.__deep = true;
|
|
42202
42328
|
if (n.nodes.length) {
|
|
@@ -42271,10 +42397,13 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
|
|
|
42271
42397
|
}
|
|
42272
42398
|
if (node) return;
|
|
42273
42399
|
}
|
|
42274
|
-
if (n.type !== "pseudo" && n.type !== "combinator" || n.type === "pseudo" && (n.value === ":is" || n.value === ":where") && !node) {
|
|
42400
|
+
if (!hasNestedDeep && (n.type !== "pseudo" && n.type !== "combinator" || n.type === "pseudo" && (n.value === ":is" || n.value === ":where") && !node)) {
|
|
42275
42401
|
node = n;
|
|
42276
42402
|
}
|
|
42277
42403
|
});
|
|
42404
|
+
if (splitForNestedDeep) {
|
|
42405
|
+
return;
|
|
42406
|
+
}
|
|
42278
42407
|
if (rule.nodes.some((node2) => node2.type === "rule")) {
|
|
42279
42408
|
const deep2 = rule.__deep;
|
|
42280
42409
|
if (!deep2) {
|
|
@@ -42286,7 +42415,7 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
|
|
|
42286
42415
|
}
|
|
42287
42416
|
shouldInject = deep2;
|
|
42288
42417
|
}
|
|
42289
|
-
if (node) {
|
|
42418
|
+
if (node && !hasNestedDeep) {
|
|
42290
42419
|
const { type, value } = node;
|
|
42291
42420
|
if (type === "pseudo" && (value === ":is" || value === ":where")) {
|
|
42292
42421
|
node.nodes.forEach(
|
|
@@ -42318,6 +42447,38 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
|
|
|
42318
42447
|
function isSpaceCombinator(node) {
|
|
42319
42448
|
return node.type === "combinator" && /^\s+$/.test(node.value);
|
|
42320
42449
|
}
|
|
42450
|
+
function isDeepSelector(node) {
|
|
42451
|
+
var _a;
|
|
42452
|
+
if (node.type === "pseudo" && (node.value === ":deep" || node.value === "::v-deep")) {
|
|
42453
|
+
return true;
|
|
42454
|
+
}
|
|
42455
|
+
return !!((_a = node.nodes) == null ? void 0 : _a.some((child) => isDeepSelector(child)));
|
|
42456
|
+
}
|
|
42457
|
+
function isDeepContainerPseudo(node) {
|
|
42458
|
+
return node.type === "pseudo" && (node.value === ":is" || node.value === ":where" || node.value === ":has" || node.value === ":not");
|
|
42459
|
+
}
|
|
42460
|
+
function canSplitDeepContainerPseudo(node) {
|
|
42461
|
+
return node.value === ":is" || node.value === ":where" || node.value === ":has";
|
|
42462
|
+
}
|
|
42463
|
+
function splitSelectorForNestedDeep(id, rule, selector, selectorRoot, pseudo, deep, slotted) {
|
|
42464
|
+
const pseudoIndex = selector.index(pseudo);
|
|
42465
|
+
const selectors = pseudo.nodes.map((branch, index) => {
|
|
42466
|
+
const branchSelector = selector.clone();
|
|
42467
|
+
if (branchSelector.first) {
|
|
42468
|
+
branchSelector.first.spaces.before = index === 0 ? selector.first.spaces.before : " ";
|
|
42469
|
+
}
|
|
42470
|
+
const branchPseudo = branchSelector.at(pseudoIndex);
|
|
42471
|
+
const branchClone = branch.clone();
|
|
42472
|
+
if (branchClone.first) {
|
|
42473
|
+
branchClone.first.spaces.before = "";
|
|
42474
|
+
}
|
|
42475
|
+
branchPseudo.removeAll();
|
|
42476
|
+
branchPseudo.append(branchClone);
|
|
42477
|
+
rewriteSelector(id, rule, branchSelector, selectorRoot, deep, slotted);
|
|
42478
|
+
return branchSelector;
|
|
42479
|
+
});
|
|
42480
|
+
selector.replaceWith(...selectors);
|
|
42481
|
+
}
|
|
42321
42482
|
function extractAndWrapNodes(parentNode) {
|
|
42322
42483
|
if (!parentNode.nodes) return;
|
|
42323
42484
|
const nodes = parentNode.nodes.filter(
|
|
@@ -42578,7 +42739,7 @@ var hasRequiredUtil;
|
|
|
42578
42739
|
function requireUtil () {
|
|
42579
42740
|
if (hasRequiredUtil) return util;
|
|
42580
42741
|
hasRequiredUtil = 1;
|
|
42581
|
-
(function (exports
|
|
42742
|
+
(function (exports) {
|
|
42582
42743
|
/*
|
|
42583
42744
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
42584
42745
|
* Licensed under the New BSD license. See LICENSE or:
|
|
@@ -42604,7 +42765,7 @@ function requireUtil () {
|
|
|
42604
42765
|
throw new Error('"' + aName + '" is a required argument.');
|
|
42605
42766
|
}
|
|
42606
42767
|
}
|
|
42607
|
-
exports
|
|
42768
|
+
exports.getArg = getArg;
|
|
42608
42769
|
|
|
42609
42770
|
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
42610
42771
|
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
@@ -42622,7 +42783,7 @@ function requireUtil () {
|
|
|
42622
42783
|
path: match[5]
|
|
42623
42784
|
};
|
|
42624
42785
|
}
|
|
42625
|
-
exports
|
|
42786
|
+
exports.urlParse = urlParse;
|
|
42626
42787
|
|
|
42627
42788
|
function urlGenerate(aParsedUrl) {
|
|
42628
42789
|
var url = '';
|
|
@@ -42644,7 +42805,7 @@ function requireUtil () {
|
|
|
42644
42805
|
}
|
|
42645
42806
|
return url;
|
|
42646
42807
|
}
|
|
42647
|
-
exports
|
|
42808
|
+
exports.urlGenerate = urlGenerate;
|
|
42648
42809
|
|
|
42649
42810
|
/**
|
|
42650
42811
|
* Normalizes a path, or the path portion of a URL:
|
|
@@ -42666,7 +42827,7 @@ function requireUtil () {
|
|
|
42666
42827
|
}
|
|
42667
42828
|
path = url.path;
|
|
42668
42829
|
}
|
|
42669
|
-
var isAbsolute = exports
|
|
42830
|
+
var isAbsolute = exports.isAbsolute(path);
|
|
42670
42831
|
|
|
42671
42832
|
var parts = path.split(/\/+/);
|
|
42672
42833
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
@@ -42700,7 +42861,7 @@ function requireUtil () {
|
|
|
42700
42861
|
}
|
|
42701
42862
|
return path;
|
|
42702
42863
|
}
|
|
42703
|
-
exports
|
|
42864
|
+
exports.normalize = normalize;
|
|
42704
42865
|
|
|
42705
42866
|
/**
|
|
42706
42867
|
* Joins two paths/URLs.
|
|
@@ -42759,9 +42920,9 @@ function requireUtil () {
|
|
|
42759
42920
|
}
|
|
42760
42921
|
return joined;
|
|
42761
42922
|
}
|
|
42762
|
-
exports
|
|
42923
|
+
exports.join = join;
|
|
42763
42924
|
|
|
42764
|
-
exports
|
|
42925
|
+
exports.isAbsolute = function (aPath) {
|
|
42765
42926
|
return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
|
|
42766
42927
|
};
|
|
42767
42928
|
|
|
@@ -42803,7 +42964,7 @@ function requireUtil () {
|
|
|
42803
42964
|
// Make sure we add a "../" for each component we removed from the root.
|
|
42804
42965
|
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
42805
42966
|
}
|
|
42806
|
-
exports
|
|
42967
|
+
exports.relative = relative;
|
|
42807
42968
|
|
|
42808
42969
|
var supportsNullProto = (function () {
|
|
42809
42970
|
var obj = Object.create(null);
|
|
@@ -42830,7 +42991,7 @@ function requireUtil () {
|
|
|
42830
42991
|
|
|
42831
42992
|
return aStr;
|
|
42832
42993
|
}
|
|
42833
|
-
exports
|
|
42994
|
+
exports.toSetString = supportsNullProto ? identity : toSetString;
|
|
42834
42995
|
|
|
42835
42996
|
function fromSetString(aStr) {
|
|
42836
42997
|
if (isProtoString(aStr)) {
|
|
@@ -42839,7 +43000,7 @@ function requireUtil () {
|
|
|
42839
43000
|
|
|
42840
43001
|
return aStr;
|
|
42841
43002
|
}
|
|
42842
|
-
exports
|
|
43003
|
+
exports.fromSetString = supportsNullProto ? identity : fromSetString;
|
|
42843
43004
|
|
|
42844
43005
|
function isProtoString(s) {
|
|
42845
43006
|
if (!s) {
|
|
@@ -42909,7 +43070,7 @@ function requireUtil () {
|
|
|
42909
43070
|
|
|
42910
43071
|
return strcmp(mappingA.name, mappingB.name);
|
|
42911
43072
|
}
|
|
42912
|
-
exports
|
|
43073
|
+
exports.compareByOriginalPositions = compareByOriginalPositions;
|
|
42913
43074
|
|
|
42914
43075
|
/**
|
|
42915
43076
|
* Comparator between two mappings with deflated source and name indices where
|
|
@@ -42948,7 +43109,7 @@ function requireUtil () {
|
|
|
42948
43109
|
|
|
42949
43110
|
return strcmp(mappingA.name, mappingB.name);
|
|
42950
43111
|
}
|
|
42951
|
-
exports
|
|
43112
|
+
exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
|
42952
43113
|
|
|
42953
43114
|
function strcmp(aStr1, aStr2) {
|
|
42954
43115
|
if (aStr1 === aStr2) {
|
|
@@ -43002,7 +43163,7 @@ function requireUtil () {
|
|
|
43002
43163
|
|
|
43003
43164
|
return strcmp(mappingA.name, mappingB.name);
|
|
43004
43165
|
}
|
|
43005
|
-
exports
|
|
43166
|
+
exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
|
43006
43167
|
|
|
43007
43168
|
/**
|
|
43008
43169
|
* Strip any JSON XSSI avoidance prefix from the string (as documented
|
|
@@ -43012,7 +43173,7 @@ function requireUtil () {
|
|
|
43012
43173
|
function parseSourceMapInput(str) {
|
|
43013
43174
|
return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
|
|
43014
43175
|
}
|
|
43015
|
-
exports
|
|
43176
|
+
exports.parseSourceMapInput = parseSourceMapInput;
|
|
43016
43177
|
|
|
43017
43178
|
/**
|
|
43018
43179
|
* Compute the URL of a source given the the source root, the source's
|
|
@@ -43065,7 +43226,7 @@ function requireUtil () {
|
|
|
43065
43226
|
|
|
43066
43227
|
return normalize(sourceURL);
|
|
43067
43228
|
}
|
|
43068
|
-
exports
|
|
43229
|
+
exports.computeSourceURL = computeSourceURL;
|
|
43069
43230
|
} (util));
|
|
43070
43231
|
return util;
|
|
43071
43232
|
}
|
|
@@ -43737,15 +43898,15 @@ var hasRequiredBinarySearch;
|
|
|
43737
43898
|
function requireBinarySearch () {
|
|
43738
43899
|
if (hasRequiredBinarySearch) return binarySearch;
|
|
43739
43900
|
hasRequiredBinarySearch = 1;
|
|
43740
|
-
(function (exports
|
|
43901
|
+
(function (exports) {
|
|
43741
43902
|
/*
|
|
43742
43903
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
43743
43904
|
* Licensed under the New BSD license. See LICENSE or:
|
|
43744
43905
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
43745
43906
|
*/
|
|
43746
43907
|
|
|
43747
|
-
exports
|
|
43748
|
-
exports
|
|
43908
|
+
exports.GREATEST_LOWER_BOUND = 1;
|
|
43909
|
+
exports.LEAST_UPPER_BOUND = 2;
|
|
43749
43910
|
|
|
43750
43911
|
/**
|
|
43751
43912
|
* Recursive implementation of binary search.
|
|
@@ -43785,7 +43946,7 @@ function requireBinarySearch () {
|
|
|
43785
43946
|
|
|
43786
43947
|
// The exact needle element was not found in this haystack. Determine if
|
|
43787
43948
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
43788
|
-
if (aBias == exports
|
|
43949
|
+
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
43789
43950
|
return aHigh < aHaystack.length ? aHigh : -1;
|
|
43790
43951
|
} else {
|
|
43791
43952
|
return mid;
|
|
@@ -43799,7 +43960,7 @@ function requireBinarySearch () {
|
|
|
43799
43960
|
}
|
|
43800
43961
|
|
|
43801
43962
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
43802
|
-
if (aBias == exports
|
|
43963
|
+
if (aBias == exports.LEAST_UPPER_BOUND) {
|
|
43803
43964
|
return mid;
|
|
43804
43965
|
} else {
|
|
43805
43966
|
return aLow < 0 ? -1 : aLow;
|
|
@@ -43825,13 +43986,13 @@ function requireBinarySearch () {
|
|
|
43825
43986
|
* searching for, respectively, if the exact element cannot be found.
|
|
43826
43987
|
* Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
|
|
43827
43988
|
*/
|
|
43828
|
-
exports
|
|
43989
|
+
exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
|
43829
43990
|
if (aHaystack.length === 0) {
|
|
43830
43991
|
return -1;
|
|
43831
43992
|
}
|
|
43832
43993
|
|
|
43833
43994
|
var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
|
|
43834
|
-
aCompare, aBias || exports
|
|
43995
|
+
aCompare, aBias || exports.GREATEST_LOWER_BOUND);
|
|
43835
43996
|
if (index < 0) {
|
|
43836
43997
|
return -1;
|
|
43837
43998
|
}
|
|
@@ -47715,9 +47876,20 @@ class TypeScope {
|
|
|
47715
47876
|
this.exportedDeclares = /* @__PURE__ */ Object.create(null);
|
|
47716
47877
|
}
|
|
47717
47878
|
}
|
|
47879
|
+
function recordScopeDep(ctx, scope) {
|
|
47880
|
+
if (scope && scope.filename !== ctx.filename) {
|
|
47881
|
+
(ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(scope.filename);
|
|
47882
|
+
}
|
|
47883
|
+
}
|
|
47884
|
+
function recordResolvedElementDeps(ctx, { props }) {
|
|
47885
|
+
for (const key in props) {
|
|
47886
|
+
recordScopeDep(ctx, props[key]._ownerScope);
|
|
47887
|
+
}
|
|
47888
|
+
}
|
|
47718
47889
|
function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
47719
47890
|
const canCache = !typeParameters;
|
|
47720
47891
|
if (canCache && node._resolvedElements) {
|
|
47892
|
+
recordResolvedElementDeps(ctx, node._resolvedElements);
|
|
47721
47893
|
return node._resolvedElements;
|
|
47722
47894
|
}
|
|
47723
47895
|
const resolved = innerResolveTypeElements(
|
|
@@ -48190,6 +48362,7 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
|
|
|
48190
48362
|
function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
|
|
48191
48363
|
const canCache = !(scope == null ? void 0 : scope.isGenericScope);
|
|
48192
48364
|
if (canCache && node._resolvedReference) {
|
|
48365
|
+
recordScopeDep(ctx, node._resolvedReference._ownerScope);
|
|
48193
48366
|
return node._resolvedReference;
|
|
48194
48367
|
}
|
|
48195
48368
|
const resolved = innerResolveTypeReference(
|
|
@@ -48216,7 +48389,11 @@ function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
|
|
|
48216
48389
|
const src = node.type === "TSTypeQuery" ? s.declares : s.types;
|
|
48217
48390
|
if (src[name]) {
|
|
48218
48391
|
(ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(s.filename);
|
|
48219
|
-
|
|
48392
|
+
const resolved = src[name];
|
|
48393
|
+
if (resolved._ownerScope && resolved._ownerScope !== s) {
|
|
48394
|
+
ctx.deps.add(resolved._ownerScope.filename);
|
|
48395
|
+
}
|
|
48396
|
+
return resolved;
|
|
48220
48397
|
}
|
|
48221
48398
|
}
|
|
48222
48399
|
}
|
|
@@ -48320,7 +48497,7 @@ function resolveTypeFromImport(ctx, node, name, scope) {
|
|
|
48320
48497
|
const sourceScope = importSourceToScope(ctx, node, scope, source);
|
|
48321
48498
|
return resolveTypeReference(ctx, node, sourceScope, imported, true);
|
|
48322
48499
|
}
|
|
48323
|
-
function importSourceToScope(ctx, node, scope, source) {
|
|
48500
|
+
function importSourceToScope(ctx, node, scope, source, trackDep = true) {
|
|
48324
48501
|
let fs;
|
|
48325
48502
|
try {
|
|
48326
48503
|
fs = resolveFS(ctx);
|
|
@@ -48352,12 +48529,22 @@ function importSourceToScope(ctx, node, scope, source) {
|
|
|
48352
48529
|
);
|
|
48353
48530
|
}
|
|
48354
48531
|
}
|
|
48532
|
+
if (!resolved && source[0] === "." && false) {
|
|
48533
|
+
if (!ts) {
|
|
48534
|
+
if (loadTS) ts = loadTS();
|
|
48535
|
+
}
|
|
48536
|
+
if (ts) {
|
|
48537
|
+
resolved = resolveWithTS(scope.filename);
|
|
48538
|
+
}
|
|
48539
|
+
}
|
|
48355
48540
|
if (resolved) {
|
|
48356
48541
|
resolved = scope.resolvedImportSources[source] = normalizePath(resolved);
|
|
48357
48542
|
}
|
|
48358
48543
|
}
|
|
48359
48544
|
if (resolved) {
|
|
48360
|
-
|
|
48545
|
+
if (trackDep) {
|
|
48546
|
+
(ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(resolved);
|
|
48547
|
+
}
|
|
48361
48548
|
return fileToScope(ctx, resolved);
|
|
48362
48549
|
} else {
|
|
48363
48550
|
return ctx.error(
|
|
@@ -48386,6 +48573,9 @@ function resolveExt(filename, fs) {
|
|
|
48386
48573
|
}
|
|
48387
48574
|
const tsConfigCache = createCache();
|
|
48388
48575
|
const tsConfigRefMap = /* @__PURE__ */ new Map();
|
|
48576
|
+
function resolveWithTS(containingFile, source, ts2, fs) {
|
|
48577
|
+
return;
|
|
48578
|
+
}
|
|
48389
48579
|
const fileToScopeCache = createCache();
|
|
48390
48580
|
function invalidateTypeCache(filename) {
|
|
48391
48581
|
filename = normalizePath(filename);
|
|
@@ -48502,8 +48692,40 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
|
|
|
48502
48692
|
}
|
|
48503
48693
|
} else if (stmt.type === "TSModuleDeclaration" && stmt.global) {
|
|
48504
48694
|
for (const s of stmt.body.body) {
|
|
48505
|
-
if (s.type === "ExportNamedDeclaration"
|
|
48506
|
-
|
|
48695
|
+
if (s.type === "ExportNamedDeclaration") {
|
|
48696
|
+
if (s.declaration) {
|
|
48697
|
+
recordType(s.declaration, types, declares);
|
|
48698
|
+
} else if (s.source) {
|
|
48699
|
+
const sourceScope = importSourceToScope(
|
|
48700
|
+
ctx,
|
|
48701
|
+
s.source,
|
|
48702
|
+
scope,
|
|
48703
|
+
s.source.value,
|
|
48704
|
+
false
|
|
48705
|
+
);
|
|
48706
|
+
for (const spec of s.specifiers) {
|
|
48707
|
+
if (spec.type === "ExportSpecifier") {
|
|
48708
|
+
const exported = getId(spec.exported);
|
|
48709
|
+
const local = spec.local.name;
|
|
48710
|
+
if (sourceScope.exportedTypes[local]) {
|
|
48711
|
+
types[exported] = sourceScope.exportedTypes[local];
|
|
48712
|
+
}
|
|
48713
|
+
if (sourceScope.exportedDeclares[local]) {
|
|
48714
|
+
declares[exported] = sourceScope.exportedDeclares[local];
|
|
48715
|
+
}
|
|
48716
|
+
}
|
|
48717
|
+
}
|
|
48718
|
+
}
|
|
48719
|
+
} else if (s.type === "ExportAllDeclaration" && s.source) {
|
|
48720
|
+
const sourceScope = importSourceToScope(
|
|
48721
|
+
ctx,
|
|
48722
|
+
s.source,
|
|
48723
|
+
scope,
|
|
48724
|
+
s.source.value,
|
|
48725
|
+
false
|
|
48726
|
+
);
|
|
48727
|
+
Object.assign(types, sourceScope.exportedTypes);
|
|
48728
|
+
Object.assign(declares, sourceScope.exportedDeclares);
|
|
48507
48729
|
} else {
|
|
48508
48730
|
recordType(s, types, declares);
|
|
48509
48731
|
}
|
|
@@ -48568,11 +48790,11 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
|
|
|
48568
48790
|
}
|
|
48569
48791
|
for (const key of Object.keys(types)) {
|
|
48570
48792
|
const node = types[key];
|
|
48571
|
-
node._ownerScope = scope;
|
|
48572
|
-
if (node._ns) node._ns._ownerScope = scope;
|
|
48793
|
+
if (!node._ownerScope) node._ownerScope = scope;
|
|
48794
|
+
if (node._ns && !node._ns._ownerScope) node._ns._ownerScope = scope;
|
|
48573
48795
|
}
|
|
48574
48796
|
for (const key of Object.keys(declares)) {
|
|
48575
|
-
declares[key]._ownerScope = scope;
|
|
48797
|
+
if (!declares[key]._ownerScope) declares[key]._ownerScope = scope;
|
|
48576
48798
|
}
|
|
48577
48799
|
}
|
|
48578
48800
|
function recordType(node, types, declares, overwriteId) {
|
|
@@ -48767,7 +48989,11 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
48767
48989
|
return [UNKNOWN_TYPE];
|
|
48768
48990
|
}
|
|
48769
48991
|
case "TSTypeReference": {
|
|
48770
|
-
|
|
48992
|
+
let resolved;
|
|
48993
|
+
try {
|
|
48994
|
+
resolved = resolveTypeReference(ctx, node, scope);
|
|
48995
|
+
} catch (e) {
|
|
48996
|
+
}
|
|
48771
48997
|
if (resolved) {
|
|
48772
48998
|
if (resolved.type === "TSTypeAliasDeclaration") {
|
|
48773
48999
|
if (resolved.typeAnnotation.type === "TSFunctionType") {
|
|
@@ -48887,6 +49113,33 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
48887
49113
|
return ["Map"];
|
|
48888
49114
|
case "ReadonlySet":
|
|
48889
49115
|
return ["Set"];
|
|
49116
|
+
// Vue ref wrapper types — handled here so that runtime type
|
|
49117
|
+
// inference still works when `vue` types cannot be resolved
|
|
49118
|
+
// (e.g. consumed as built artifacts in another package). #14729
|
|
49119
|
+
case "Ref":
|
|
49120
|
+
case "ShallowRef":
|
|
49121
|
+
case "ComputedRef":
|
|
49122
|
+
case "WritableComputedRef":
|
|
49123
|
+
return ["Object"];
|
|
49124
|
+
case "MaybeRef":
|
|
49125
|
+
case "MaybeRefOrGetter": {
|
|
49126
|
+
const types = /* @__PURE__ */ new Set(["Object"]);
|
|
49127
|
+
if (node.typeName.name === "MaybeRefOrGetter") {
|
|
49128
|
+
types.add("Function");
|
|
49129
|
+
}
|
|
49130
|
+
if (node.typeParameters && node.typeParameters.params[0]) {
|
|
49131
|
+
for (const t of inferRuntimeType(
|
|
49132
|
+
ctx,
|
|
49133
|
+
node.typeParameters.params[0],
|
|
49134
|
+
scope,
|
|
49135
|
+
false,
|
|
49136
|
+
typeParameters
|
|
49137
|
+
)) {
|
|
49138
|
+
types.add(t);
|
|
49139
|
+
}
|
|
49140
|
+
}
|
|
49141
|
+
return Array.from(types);
|
|
49142
|
+
}
|
|
48890
49143
|
case "NonNullable":
|
|
48891
49144
|
if (node.typeParameters && node.typeParameters.params[0]) {
|
|
48892
49145
|
return inferRuntimeType(
|
|
@@ -50823,7 +51076,7 @@ var __spreadValues = (a, b) => {
|
|
|
50823
51076
|
}
|
|
50824
51077
|
return a;
|
|
50825
51078
|
};
|
|
50826
|
-
const version = "3.5.
|
|
51079
|
+
const version = "3.5.34";
|
|
50827
51080
|
const parseCache = parseCache$1;
|
|
50828
51081
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
50829
51082
|
const walk = walk$2;
|