@vue/compiler-sfc 3.4.22 → 3.4.24
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 +213 -101
- package/dist/compiler-sfc.esm-browser.js +86 -61
- package/package.json +8 -8
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4596,7 +4596,7 @@ function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : {
|
|
|
4596
4596
|
exports["default"] = void 0;
|
|
4597
4597
|
var _util = util$6;
|
|
4598
4598
|
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); } }
|
|
4599
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4599
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4600
4600
|
var cloneNode = function cloneNode(obj, parent) {
|
|
4601
4601
|
if (typeof obj !== 'object' || obj === null) {
|
|
4602
4602
|
return obj;
|
|
@@ -4822,13 +4822,13 @@ types$1.UNIVERSAL = UNIVERSAL;
|
|
|
4822
4822
|
var _node = _interopRequireDefault(nodeExports);
|
|
4823
4823
|
var types = _interopRequireWildcard(types$1);
|
|
4824
4824
|
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); }
|
|
4825
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
4825
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
4826
4826
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
4827
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
|
4827
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4828
4828
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4829
|
-
function _arrayLikeToArray(arr, len) {
|
|
4829
|
+
function _arrayLikeToArray(arr, len) { len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4830
4830
|
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); } }
|
|
4831
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4831
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4832
4832
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
4833
4833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
4834
4834
|
var Container = /*#__PURE__*/function (_Node) {
|
|
@@ -5135,7 +5135,7 @@ var containerExports = container.exports;
|
|
|
5135
5135
|
var _types = types$1;
|
|
5136
5136
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5137
5137
|
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); } }
|
|
5138
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
5138
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5139
5139
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5140
5140
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5141
5141
|
var Root = /*#__PURE__*/function (_Container) {
|
|
@@ -5323,7 +5323,7 @@ var cssesc_1 = cssesc;
|
|
|
5323
5323
|
var _types = types$1;
|
|
5324
5324
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5325
5325
|
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); } }
|
|
5326
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
5326
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5327
5327
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5328
5328
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5329
5329
|
var ClassName = /*#__PURE__*/function (_Node) {
|
|
@@ -5438,7 +5438,7 @@ var namespace = {exports: {}};
|
|
|
5438
5438
|
var _node = _interopRequireDefault(nodeExports);
|
|
5439
5439
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5440
5440
|
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); } }
|
|
5441
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
5441
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5442
5442
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5443
5443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5444
5444
|
var Namespace = /*#__PURE__*/function (_Node) {
|
|
@@ -5616,7 +5616,7 @@ var node = require$$2.deprecate;
|
|
|
5616
5616
|
var _CSSESC_QUOTE_OPTIONS;
|
|
5617
5617
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5618
5618
|
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); } }
|
|
5619
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
5619
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5620
5620
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5621
5621
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5622
5622
|
var deprecate = node;
|
|
@@ -6234,7 +6234,7 @@ tokenTypes.combinator = combinator$1;
|
|
|
6234
6234
|
var t = _interopRequireWildcard(tokenTypes);
|
|
6235
6235
|
var _unescapable, _wordDelimiters;
|
|
6236
6236
|
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); }
|
|
6237
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
6237
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
6238
6238
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
6239
6239
|
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
|
|
6240
6240
|
var hex = {};
|
|
@@ -6488,10 +6488,10 @@ tokenTypes.combinator = combinator$1;
|
|
|
6488
6488
|
var _util = util$6;
|
|
6489
6489
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
6490
6490
|
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); }
|
|
6491
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
6491
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
6492
6492
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6493
6493
|
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); } }
|
|
6494
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
6494
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6495
6495
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
|
6496
6496
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
6497
6497
|
function tokenStart(token) {
|
|
@@ -7810,7 +7810,7 @@ function isNamespace(node) {
|
|
|
7810
7810
|
var _processor = _interopRequireDefault(processorExports);
|
|
7811
7811
|
var selectors$1 = _interopRequireWildcard(selectors);
|
|
7812
7812
|
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); }
|
|
7813
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
7813
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
7814
7814
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7815
7815
|
var parser = function parser(processor) {
|
|
7816
7816
|
return new _processor["default"](processor);
|
|
@@ -11863,10 +11863,6 @@ var root = freeGlobal || freeSelf || Function('return this')();
|
|
|
11863
11863
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
11864
11864
|
var index = -1,
|
|
11865
11865
|
length = array ? array.length : 0;
|
|
11866
|
-
|
|
11867
|
-
if (initAccum && length) {
|
|
11868
|
-
accumulator = array[++index];
|
|
11869
|
-
}
|
|
11870
11866
|
while (++index < length) {
|
|
11871
11867
|
accumulator = iteratee(accumulator, array[index], index, array);
|
|
11872
11868
|
}
|
|
@@ -12004,10 +12000,6 @@ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
|
12004
12000
|
function baseSlice(array, start, end) {
|
|
12005
12001
|
var index = -1,
|
|
12006
12002
|
length = array.length;
|
|
12007
|
-
|
|
12008
|
-
if (start < 0) {
|
|
12009
|
-
start = -start > length ? 0 : (length + start);
|
|
12010
|
-
}
|
|
12011
12003
|
end = end > length ? length : end;
|
|
12012
12004
|
if (end < 0) {
|
|
12013
12005
|
end += length;
|
|
@@ -12054,7 +12046,7 @@ function baseToString(value) {
|
|
|
12054
12046
|
function castSlice(array, start, end) {
|
|
12055
12047
|
var length = array.length;
|
|
12056
12048
|
end = end === undefined ? length : end;
|
|
12057
|
-
return
|
|
12049
|
+
return baseSlice(array, start, end);
|
|
12058
12050
|
}
|
|
12059
12051
|
|
|
12060
12052
|
/**
|
|
@@ -12279,7 +12271,7 @@ var upperFirst = createCaseFirst('toUpperCase');
|
|
|
12279
12271
|
*/
|
|
12280
12272
|
function words(string, pattern, guard) {
|
|
12281
12273
|
string = toString(string);
|
|
12282
|
-
pattern =
|
|
12274
|
+
pattern = pattern;
|
|
12283
12275
|
|
|
12284
12276
|
if (pattern === undefined) {
|
|
12285
12277
|
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
@@ -12633,54 +12625,63 @@ src$3.exports = (options = {}) => {
|
|
|
12633
12625
|
});
|
|
12634
12626
|
|
|
12635
12627
|
root.walkDecls(/^composes$/, (declaration) => {
|
|
12636
|
-
const
|
|
12637
|
-
|
|
12638
|
-
if (!matches) {
|
|
12639
|
-
return;
|
|
12640
|
-
}
|
|
12628
|
+
const multiple = declaration.value.split(",");
|
|
12629
|
+
const values = [];
|
|
12641
12630
|
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
,
|
|
12645
|
-
/*match*/ symbols,
|
|
12646
|
-
doubleQuotePath,
|
|
12647
|
-
singleQuotePath,
|
|
12648
|
-
global,
|
|
12649
|
-
] = matches;
|
|
12650
|
-
|
|
12651
|
-
if (global) {
|
|
12652
|
-
// Composing globals simply means changing these classes to wrap them in global(name)
|
|
12653
|
-
tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
|
|
12654
|
-
} else {
|
|
12655
|
-
const importPath = doubleQuotePath || singleQuotePath;
|
|
12631
|
+
multiple.forEach((value) => {
|
|
12632
|
+
const matches = value.trim().match(matchImports$1);
|
|
12656
12633
|
|
|
12657
|
-
|
|
12658
|
-
|
|
12634
|
+
if (!matches) {
|
|
12635
|
+
values.push(value);
|
|
12659
12636
|
|
|
12660
|
-
|
|
12661
|
-
parentIndexes =
|
|
12662
|
-
parent.parent.index(parent) + "_" + parentIndexes;
|
|
12663
|
-
parent = parent.parent;
|
|
12637
|
+
return;
|
|
12664
12638
|
}
|
|
12665
12639
|
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12640
|
+
let tmpSymbols;
|
|
12641
|
+
let [
|
|
12642
|
+
,
|
|
12643
|
+
/*match*/ symbols,
|
|
12644
|
+
doubleQuotePath,
|
|
12645
|
+
singleQuotePath,
|
|
12646
|
+
global,
|
|
12647
|
+
] = matches;
|
|
12648
|
+
|
|
12649
|
+
if (global) {
|
|
12650
|
+
// Composing globals simply means changing these classes to wrap them in global(name)
|
|
12651
|
+
tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
|
|
12652
|
+
} else {
|
|
12653
|
+
const importPath = doubleQuotePath || singleQuotePath;
|
|
12670
12654
|
|
|
12671
|
-
|
|
12672
|
-
|
|
12655
|
+
let parent = declaration.parent;
|
|
12656
|
+
let parentIndexes = "";
|
|
12673
12657
|
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12658
|
+
while (parent.type !== "root") {
|
|
12659
|
+
parentIndexes =
|
|
12660
|
+
parent.parent.index(parent) + "_" + parentIndexes;
|
|
12661
|
+
parent = parent.parent;
|
|
12677
12662
|
}
|
|
12678
12663
|
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12664
|
+
const { selector } = declaration.parent;
|
|
12665
|
+
const parentRule = `_${parentIndexes}${selector}`;
|
|
12666
|
+
|
|
12667
|
+
addImportToGraph(importPath, parentRule, graph, visited);
|
|
12668
|
+
|
|
12669
|
+
importDecls[importPath] = declaration;
|
|
12670
|
+
imports[importPath] = imports[importPath] || {};
|
|
12671
|
+
|
|
12672
|
+
tmpSymbols = symbols.split(/\s+/).map((s) => {
|
|
12673
|
+
if (!imports[importPath][s]) {
|
|
12674
|
+
imports[importPath][s] = createImportedName(s, importPath);
|
|
12675
|
+
}
|
|
12676
|
+
|
|
12677
|
+
return imports[importPath][s];
|
|
12678
|
+
});
|
|
12679
|
+
}
|
|
12680
|
+
|
|
12681
|
+
values.push(tmpSymbols.join(" "));
|
|
12682
|
+
});
|
|
12682
12683
|
|
|
12683
|
-
declaration.value =
|
|
12684
|
+
declaration.value = values.join(", ");
|
|
12684
12685
|
});
|
|
12685
12686
|
|
|
12686
12687
|
const importsOrder = topologicalSort(graph, failOnWrongOrder);
|
|
@@ -14287,6 +14288,11 @@ function localizeNode(rule, mode, localAliasMap) {
|
|
|
14287
14288
|
|
|
14288
14289
|
break;
|
|
14289
14290
|
}
|
|
14291
|
+
case "nesting": {
|
|
14292
|
+
if (node.value === "&") {
|
|
14293
|
+
context.hasLocals = true;
|
|
14294
|
+
}
|
|
14295
|
+
}
|
|
14290
14296
|
}
|
|
14291
14297
|
|
|
14292
14298
|
context.lastWasSpacing = false;
|
|
@@ -14414,7 +14420,7 @@ function localizeDeclaration(declaration, context) {
|
|
|
14414
14420
|
|
|
14415
14421
|
// We don't validate `hex digits`, because we don't need it, it is work of linters.
|
|
14416
14422
|
const validIdent =
|
|
14417
|
-
/^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-)((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i;
|
|
14423
|
+
/^-?([a-z\u0080-\uFFFF_]|(\\[^\r\n\f])|-(?![0-9]))((\\[^\r\n\f])|[a-z\u0080-\uFFFF_0-9-])*$/i;
|
|
14418
14424
|
|
|
14419
14425
|
/*
|
|
14420
14426
|
The spec defines some keywords that you can use to describe properties such as the timing
|
|
@@ -14576,10 +14582,12 @@ src$2.exports = (options = {}) => {
|
|
|
14576
14582
|
} else if (localMatch) {
|
|
14577
14583
|
atRule.params = localMatch[0];
|
|
14578
14584
|
globalKeyframes = false;
|
|
14579
|
-
} else if (
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14585
|
+
} else if (
|
|
14586
|
+
atRule.params &&
|
|
14587
|
+
!globalMode &&
|
|
14588
|
+
!localAliasMap.has(atRule.params)
|
|
14589
|
+
) {
|
|
14590
|
+
atRule.params = ":local(" + atRule.params + ")";
|
|
14583
14591
|
}
|
|
14584
14592
|
|
|
14585
14593
|
atRule.walkDecls((declaration) => {
|
|
@@ -14589,6 +14597,44 @@ src$2.exports = (options = {}) => {
|
|
|
14589
14597
|
global: globalKeyframes,
|
|
14590
14598
|
});
|
|
14591
14599
|
});
|
|
14600
|
+
} else if (/scope$/i.test(atRule.name)) {
|
|
14601
|
+
if (atRule.params) {
|
|
14602
|
+
atRule.params = atRule.params
|
|
14603
|
+
.split("to")
|
|
14604
|
+
.map((item) => {
|
|
14605
|
+
const selector = item.trim().slice(1, -1).trim();
|
|
14606
|
+
const context = localizeNode(
|
|
14607
|
+
selector,
|
|
14608
|
+
options.mode,
|
|
14609
|
+
localAliasMap
|
|
14610
|
+
);
|
|
14611
|
+
|
|
14612
|
+
context.options = options;
|
|
14613
|
+
context.localAliasMap = localAliasMap;
|
|
14614
|
+
|
|
14615
|
+
if (pureMode && context.hasPureGlobals) {
|
|
14616
|
+
throw atRule.error(
|
|
14617
|
+
'Selector in at-rule"' +
|
|
14618
|
+
selector +
|
|
14619
|
+
'" is not pure ' +
|
|
14620
|
+
"(pure selectors must contain at least one local class or id)"
|
|
14621
|
+
);
|
|
14622
|
+
}
|
|
14623
|
+
|
|
14624
|
+
return `(${context.selector})`;
|
|
14625
|
+
})
|
|
14626
|
+
.join(" to ");
|
|
14627
|
+
}
|
|
14628
|
+
|
|
14629
|
+
atRule.nodes.forEach((declaration) => {
|
|
14630
|
+
if (declaration.type === "decl") {
|
|
14631
|
+
localizeDeclaration(declaration, {
|
|
14632
|
+
localAliasMap,
|
|
14633
|
+
options: options,
|
|
14634
|
+
global: globalMode,
|
|
14635
|
+
});
|
|
14636
|
+
}
|
|
14637
|
+
});
|
|
14592
14638
|
} else if (atRule.nodes) {
|
|
14593
14639
|
atRule.nodes.forEach((declaration) => {
|
|
14594
14640
|
if (declaration.type === "decl") {
|
|
@@ -14648,7 +14694,23 @@ const selectorParser = distExports;
|
|
|
14648
14694
|
|
|
14649
14695
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14650
14696
|
|
|
14651
|
-
function
|
|
14697
|
+
function isNestedRule(rule) {
|
|
14698
|
+
if (!rule.parent || rule.parent.type === "root") {
|
|
14699
|
+
return false;
|
|
14700
|
+
}
|
|
14701
|
+
|
|
14702
|
+
if (rule.parent.type === "rule") {
|
|
14703
|
+
return true;
|
|
14704
|
+
}
|
|
14705
|
+
|
|
14706
|
+
return isNestedRule(rule.parent);
|
|
14707
|
+
}
|
|
14708
|
+
|
|
14709
|
+
function getSingleLocalNamesForComposes(root, rule) {
|
|
14710
|
+
if (isNestedRule(rule)) {
|
|
14711
|
+
throw new Error(`composition is not allowed in nested rule \n\n${rule}`);
|
|
14712
|
+
}
|
|
14713
|
+
|
|
14652
14714
|
return root.nodes.map((node) => {
|
|
14653
14715
|
if (node.type !== "selector" || node.nodes.length !== 1) {
|
|
14654
14716
|
throw new Error(
|
|
@@ -14735,17 +14797,19 @@ const plugin = (options = {}) => {
|
|
|
14735
14797
|
Once(root, { rule }) {
|
|
14736
14798
|
const exports = Object.create(null);
|
|
14737
14799
|
|
|
14738
|
-
function exportScopedName(name, rawName) {
|
|
14800
|
+
function exportScopedName(name, rawName, node) {
|
|
14739
14801
|
const scopedName = generateScopedName(
|
|
14740
14802
|
rawName ? rawName : name,
|
|
14741
14803
|
root.source.input.from,
|
|
14742
|
-
root.source.input.css
|
|
14804
|
+
root.source.input.css,
|
|
14805
|
+
node
|
|
14743
14806
|
);
|
|
14744
14807
|
const exportEntry = generateExportEntry(
|
|
14745
14808
|
rawName ? rawName : name,
|
|
14746
14809
|
scopedName,
|
|
14747
14810
|
root.source.input.from,
|
|
14748
|
-
root.source.input.css
|
|
14811
|
+
root.source.input.css,
|
|
14812
|
+
node
|
|
14749
14813
|
);
|
|
14750
14814
|
const { key, value } = exportEntry;
|
|
14751
14815
|
|
|
@@ -14761,23 +14825,35 @@ const plugin = (options = {}) => {
|
|
|
14761
14825
|
function localizeNode(node) {
|
|
14762
14826
|
switch (node.type) {
|
|
14763
14827
|
case "selector":
|
|
14764
|
-
node.nodes = node.map(localizeNode);
|
|
14828
|
+
node.nodes = node.map((item) => localizeNode(item));
|
|
14765
14829
|
return node;
|
|
14766
14830
|
case "class":
|
|
14767
14831
|
return selectorParser.className({
|
|
14768
14832
|
value: exportScopedName(
|
|
14769
14833
|
node.value,
|
|
14770
|
-
node.raws && node.raws.value ? node.raws.value : null
|
|
14834
|
+
node.raws && node.raws.value ? node.raws.value : null,
|
|
14835
|
+
node
|
|
14771
14836
|
),
|
|
14772
14837
|
});
|
|
14773
14838
|
case "id": {
|
|
14774
14839
|
return selectorParser.id({
|
|
14775
14840
|
value: exportScopedName(
|
|
14776
14841
|
node.value,
|
|
14777
|
-
node.raws && node.raws.value ? node.raws.value : null
|
|
14842
|
+
node.raws && node.raws.value ? node.raws.value : null,
|
|
14843
|
+
node
|
|
14778
14844
|
),
|
|
14779
14845
|
});
|
|
14780
14846
|
}
|
|
14847
|
+
case "attribute": {
|
|
14848
|
+
if (node.attribute === "class" && node.operator === "=") {
|
|
14849
|
+
return selectorParser.attribute({
|
|
14850
|
+
attribute: node.attribute,
|
|
14851
|
+
operator: node.operator,
|
|
14852
|
+
quoteMark: "'",
|
|
14853
|
+
value: exportScopedName(node.value, null, null),
|
|
14854
|
+
});
|
|
14855
|
+
}
|
|
14856
|
+
}
|
|
14781
14857
|
}
|
|
14782
14858
|
|
|
14783
14859
|
throw new Error(
|
|
@@ -14793,8 +14869,8 @@ const plugin = (options = {}) => {
|
|
|
14793
14869
|
throw new Error('Unexpected comma (",") in :local block');
|
|
14794
14870
|
}
|
|
14795
14871
|
|
|
14796
|
-
const selector = localizeNode(node.first
|
|
14797
|
-
// move the spaces that were around the
|
|
14872
|
+
const selector = localizeNode(node.first);
|
|
14873
|
+
// move the spaces that were around the pseudo selector to the first
|
|
14798
14874
|
// non-container node
|
|
14799
14875
|
selector.first.spaces = node.spaces;
|
|
14800
14876
|
|
|
@@ -14816,7 +14892,7 @@ const plugin = (options = {}) => {
|
|
|
14816
14892
|
/* falls through */
|
|
14817
14893
|
case "root":
|
|
14818
14894
|
case "selector": {
|
|
14819
|
-
node.each(traverseNode);
|
|
14895
|
+
node.each((item) => traverseNode(item));
|
|
14820
14896
|
break;
|
|
14821
14897
|
}
|
|
14822
14898
|
case "id":
|
|
@@ -14844,32 +14920,39 @@ const plugin = (options = {}) => {
|
|
|
14844
14920
|
|
|
14845
14921
|
rule.selector = traverseNode(parsedSelector.clone()).toString();
|
|
14846
14922
|
|
|
14847
|
-
rule.walkDecls(
|
|
14848
|
-
const localNames = getSingleLocalNamesForComposes(
|
|
14849
|
-
|
|
14923
|
+
rule.walkDecls(/^(composes|compose-with)$/i, (decl) => {
|
|
14924
|
+
const localNames = getSingleLocalNamesForComposes(
|
|
14925
|
+
parsedSelector,
|
|
14926
|
+
decl.parent
|
|
14927
|
+
);
|
|
14928
|
+
const multiple = decl.value.split(",");
|
|
14929
|
+
|
|
14930
|
+
multiple.forEach((value) => {
|
|
14931
|
+
const classes = value.trim().split(/\s+/);
|
|
14850
14932
|
|
|
14851
|
-
|
|
14852
|
-
|
|
14933
|
+
classes.forEach((className) => {
|
|
14934
|
+
const global = /^global\(([^)]+)\)$/.exec(className);
|
|
14853
14935
|
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
});
|
|
14858
|
-
} else if (hasOwnProperty.call(importedNames, className)) {
|
|
14859
|
-
localNames.forEach((exportedName) => {
|
|
14860
|
-
exports[exportedName].push(className);
|
|
14861
|
-
});
|
|
14862
|
-
} else if (hasOwnProperty.call(exports, className)) {
|
|
14863
|
-
localNames.forEach((exportedName) => {
|
|
14864
|
-
exports[className].forEach((item) => {
|
|
14865
|
-
exports[exportedName].push(item);
|
|
14936
|
+
if (global) {
|
|
14937
|
+
localNames.forEach((exportedName) => {
|
|
14938
|
+
exports[exportedName].push(global[1]);
|
|
14866
14939
|
});
|
|
14867
|
-
})
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
)
|
|
14872
|
-
|
|
14940
|
+
} else if (hasOwnProperty.call(importedNames, className)) {
|
|
14941
|
+
localNames.forEach((exportedName) => {
|
|
14942
|
+
exports[exportedName].push(className);
|
|
14943
|
+
});
|
|
14944
|
+
} else if (hasOwnProperty.call(exports, className)) {
|
|
14945
|
+
localNames.forEach((exportedName) => {
|
|
14946
|
+
exports[className].forEach((item) => {
|
|
14947
|
+
exports[exportedName].push(item);
|
|
14948
|
+
});
|
|
14949
|
+
});
|
|
14950
|
+
} else {
|
|
14951
|
+
throw decl.error(
|
|
14952
|
+
`referenced class name "${className}" in ${decl.prop} not found`
|
|
14953
|
+
);
|
|
14954
|
+
}
|
|
14955
|
+
});
|
|
14873
14956
|
});
|
|
14874
14957
|
|
|
14875
14958
|
decl.remove();
|
|
@@ -14921,6 +15004,27 @@ const plugin = (options = {}) => {
|
|
|
14921
15004
|
atRule.params = exportScopedName(localMatch[1]);
|
|
14922
15005
|
});
|
|
14923
15006
|
|
|
15007
|
+
root.walkAtRules(/scope$/i, (atRule) => {
|
|
15008
|
+
if (atRule.params) {
|
|
15009
|
+
atRule.params = atRule.params
|
|
15010
|
+
.split("to")
|
|
15011
|
+
.map((item) => {
|
|
15012
|
+
const selector = item.trim().slice(1, -1).trim();
|
|
15013
|
+
|
|
15014
|
+
const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(selector);
|
|
15015
|
+
|
|
15016
|
+
if (!localMatch) {
|
|
15017
|
+
return `(${selector})`;
|
|
15018
|
+
}
|
|
15019
|
+
|
|
15020
|
+
let parsedSelector = selectorParser().astSync(selector);
|
|
15021
|
+
|
|
15022
|
+
return `(${traverseNode(parsedSelector).toString()})`;
|
|
15023
|
+
})
|
|
15024
|
+
.join(" to ");
|
|
15025
|
+
}
|
|
15026
|
+
});
|
|
15027
|
+
|
|
14924
15028
|
// If we found any :locals, insert an :export rule
|
|
14925
15029
|
const exportedNames = Object.keys(exports);
|
|
14926
15030
|
|
|
@@ -18916,7 +19020,12 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
18916
19020
|
return ["String"];
|
|
18917
19021
|
case "Parameters":
|
|
18918
19022
|
case "ConstructorParameters":
|
|
19023
|
+
case "ReadonlyArray":
|
|
18919
19024
|
return ["Array"];
|
|
19025
|
+
case "ReadonlyMap":
|
|
19026
|
+
return ["Map"];
|
|
19027
|
+
case "ReadonlySet":
|
|
19028
|
+
return ["Set"];
|
|
18920
19029
|
case "NonNullable":
|
|
18921
19030
|
if (node.typeParameters && node.typeParameters.params[0]) {
|
|
18922
19031
|
return inferRuntimeType(
|
|
@@ -18991,6 +19100,9 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
18991
19100
|
}
|
|
18992
19101
|
break;
|
|
18993
19102
|
}
|
|
19103
|
+
case "TSTypeOperator": {
|
|
19104
|
+
return inferRuntimeType(ctx, node.typeAnnotation, scope);
|
|
19105
|
+
}
|
|
18994
19106
|
}
|
|
18995
19107
|
} catch (e) {
|
|
18996
19108
|
}
|
|
@@ -20641,7 +20753,7 @@ function isStaticNode(node) {
|
|
|
20641
20753
|
return false;
|
|
20642
20754
|
}
|
|
20643
20755
|
|
|
20644
|
-
const version = "3.4.
|
|
20756
|
+
const version = "3.4.24";
|
|
20645
20757
|
const parseCache = parseCache$1;
|
|
20646
20758
|
const errorMessages = {
|
|
20647
20759
|
...CompilerDOM.errorMessages,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -15235,9 +15235,9 @@ class StatementParser extends ExpressionParser {
|
|
|
15235
15235
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
15236
15236
|
kind: "destructuring"
|
|
15237
15237
|
});
|
|
15238
|
-
} else if (kind === "const" && !(this.match(58) || this.isContextual(102))) {
|
|
15238
|
+
} else if ((kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102))) {
|
|
15239
15239
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
15240
|
-
kind
|
|
15240
|
+
kind
|
|
15241
15241
|
});
|
|
15242
15242
|
}
|
|
15243
15243
|
}
|
|
@@ -16767,7 +16767,7 @@ function isReferenced(node, parent, grandparent) {
|
|
|
16767
16767
|
if (parent.key === node) {
|
|
16768
16768
|
return !!parent.computed;
|
|
16769
16769
|
}
|
|
16770
|
-
return !grandparent
|
|
16770
|
+
return !grandparent ;
|
|
16771
16771
|
case "ClassProperty":
|
|
16772
16772
|
if (parent.key === node) {
|
|
16773
16773
|
return !!parent.computed;
|
|
@@ -16798,9 +16798,6 @@ function isReferenced(node, parent, grandparent) {
|
|
|
16798
16798
|
case "ExportDefaultSpecifier":
|
|
16799
16799
|
return false;
|
|
16800
16800
|
case "ExportSpecifier":
|
|
16801
|
-
if (grandparent == null ? void 0 : grandparent.source) {
|
|
16802
|
-
return false;
|
|
16803
|
-
}
|
|
16804
16801
|
return parent.local === node;
|
|
16805
16802
|
case "ImportDefaultSpecifier":
|
|
16806
16803
|
case "ImportNamespaceSpecifier":
|
|
@@ -18154,6 +18151,7 @@ function createTransformContext(root, {
|
|
|
18154
18151
|
vOnce: 0
|
|
18155
18152
|
},
|
|
18156
18153
|
parent: null,
|
|
18154
|
+
grandParent: null,
|
|
18157
18155
|
currentNode: root,
|
|
18158
18156
|
childIndex: 0,
|
|
18159
18157
|
inVOnce: false,
|
|
@@ -18322,6 +18320,7 @@ function traverseChildren(parent, context) {
|
|
|
18322
18320
|
const child = parent.children[i];
|
|
18323
18321
|
if (isString$2(child))
|
|
18324
18322
|
continue;
|
|
18323
|
+
context.grandParent = context.parent;
|
|
18325
18324
|
context.parent = parent;
|
|
18326
18325
|
context.childIndex = i;
|
|
18327
18326
|
context.onNodeRemoved = nodeRemoved;
|
|
@@ -22632,9 +22631,10 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
22632
22631
|
if (!ast) {
|
|
22633
22632
|
const source = asRawStatements ? ` ${rawExp} ` : `(${rawExp})${asParams ? `=>{}` : ``}`;
|
|
22634
22633
|
try {
|
|
22635
|
-
ast =
|
|
22634
|
+
ast = parseExpression_1(source, {
|
|
22635
|
+
sourceType: "module",
|
|
22636
22636
|
plugins: context.expressionPlugins
|
|
22637
|
-
})
|
|
22637
|
+
});
|
|
22638
22638
|
} catch (e) {
|
|
22639
22639
|
context.onError(
|
|
22640
22640
|
createCompilerError(
|
|
@@ -23706,6 +23706,16 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
23706
23706
|
if (arg)
|
|
23707
23707
|
mergeArgs.push(arg);
|
|
23708
23708
|
};
|
|
23709
|
+
const pushRefVForMarker = () => {
|
|
23710
|
+
if (context.scopes.vFor > 0) {
|
|
23711
|
+
properties.push(
|
|
23712
|
+
createObjectProperty(
|
|
23713
|
+
createSimpleExpression("ref_for", true),
|
|
23714
|
+
createSimpleExpression("true")
|
|
23715
|
+
)
|
|
23716
|
+
);
|
|
23717
|
+
}
|
|
23718
|
+
};
|
|
23709
23719
|
const analyzePatchFlag = ({ key, value }) => {
|
|
23710
23720
|
if (isStaticExp(key)) {
|
|
23711
23721
|
const name = key.content;
|
|
@@ -23749,14 +23759,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
23749
23759
|
let isStatic = true;
|
|
23750
23760
|
if (name === "ref") {
|
|
23751
23761
|
hasRef = true;
|
|
23752
|
-
|
|
23753
|
-
properties.push(
|
|
23754
|
-
createObjectProperty(
|
|
23755
|
-
createSimpleExpression("ref_for", true),
|
|
23756
|
-
createSimpleExpression("true")
|
|
23757
|
-
)
|
|
23758
|
-
);
|
|
23759
|
-
}
|
|
23762
|
+
pushRefVForMarker();
|
|
23760
23763
|
if (value && context.inline) {
|
|
23761
23764
|
const binding = context.bindingMetadata[value.content];
|
|
23762
23765
|
if (binding === "setup-let" || binding === "setup-ref" || binding === "setup-maybe-ref") {
|
|
@@ -23812,18 +23815,14 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
23812
23815
|
) {
|
|
23813
23816
|
shouldUseBlock = true;
|
|
23814
23817
|
}
|
|
23815
|
-
if (isVBind && isStaticArgOf(arg, "ref")
|
|
23816
|
-
|
|
23817
|
-
createObjectProperty(
|
|
23818
|
-
createSimpleExpression("ref_for", true),
|
|
23819
|
-
createSimpleExpression("true")
|
|
23820
|
-
)
|
|
23821
|
-
);
|
|
23818
|
+
if (isVBind && isStaticArgOf(arg, "ref")) {
|
|
23819
|
+
pushRefVForMarker();
|
|
23822
23820
|
}
|
|
23823
23821
|
if (!arg && (isVBind || isVOn)) {
|
|
23824
23822
|
hasDynamicKeys = true;
|
|
23825
23823
|
if (exp) {
|
|
23826
23824
|
if (isVBind) {
|
|
23825
|
+
pushRefVForMarker();
|
|
23827
23826
|
pushMergeArg();
|
|
23828
23827
|
mergeArgs.push(exp);
|
|
23829
23828
|
} else {
|
|
@@ -28867,7 +28866,6 @@ if (typeof Object.create === 'function'){
|
|
|
28867
28866
|
ctor.prototype.constructor = ctor;
|
|
28868
28867
|
};
|
|
28869
28868
|
}
|
|
28870
|
-
var inherits$1 = inherits;
|
|
28871
28869
|
|
|
28872
28870
|
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||
|
|
28873
28871
|
function getOwnPropertyDescriptors(obj) {
|
|
@@ -29515,7 +29513,7 @@ function callbackify(original) {
|
|
|
29515
29513
|
}
|
|
29516
29514
|
|
|
29517
29515
|
var _polyfillNode_util = {
|
|
29518
|
-
inherits: inherits
|
|
29516
|
+
inherits: inherits,
|
|
29519
29517
|
_extend: _extend,
|
|
29520
29518
|
log: log,
|
|
29521
29519
|
isBuffer: isBuffer,
|
|
@@ -29549,7 +29547,7 @@ var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
|
|
|
29549
29547
|
default: _polyfillNode_util,
|
|
29550
29548
|
deprecate: deprecate,
|
|
29551
29549
|
format: format$1,
|
|
29552
|
-
inherits: inherits
|
|
29550
|
+
inherits: inherits,
|
|
29553
29551
|
inspect: inspect,
|
|
29554
29552
|
isArray: isArray$1,
|
|
29555
29553
|
isBoolean: isBoolean,
|
|
@@ -30868,14 +30866,20 @@ const ssrTransformSlotOutlet = (node, context) => {
|
|
|
30868
30866
|
args.push(`"${context.scopeId}-s"`);
|
|
30869
30867
|
}
|
|
30870
30868
|
let method = SSR_RENDER_SLOT;
|
|
30871
|
-
|
|
30872
|
-
|
|
30873
|
-
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
30869
|
+
let parent = context.parent;
|
|
30870
|
+
if (parent) {
|
|
30871
|
+
const children = parent.children;
|
|
30872
|
+
if (parent.type === 10) {
|
|
30873
|
+
parent = context.grandParent;
|
|
30874
|
+
}
|
|
30875
|
+
let componentType;
|
|
30876
|
+
if (parent.type === 1 && parent.tagType === 1 && ((componentType = resolveComponentType(parent, context, true)) === TRANSITION || componentType === TRANSITION_GROUP) && children.filter((c) => c.type === 1).length === 1) {
|
|
30877
|
+
method = SSR_RENDER_SLOT_INNER;
|
|
30878
|
+
if (!(context.scopeId && context.slotted !== false)) {
|
|
30879
|
+
args.push("null");
|
|
30880
|
+
}
|
|
30881
|
+
args.push("true");
|
|
30877
30882
|
}
|
|
30878
|
-
args.push("true");
|
|
30879
30883
|
}
|
|
30880
30884
|
node.ssrCodegenNode = createCallExpression(context.helper(method), args);
|
|
30881
30885
|
}
|
|
@@ -31101,7 +31105,10 @@ const ssrTransformElement = (node, context) => {
|
|
|
31101
31105
|
}
|
|
31102
31106
|
if (prop.type === 7) {
|
|
31103
31107
|
if (prop.name === "html" && prop.exp) {
|
|
31104
|
-
rawChildrenMap.set(
|
|
31108
|
+
rawChildrenMap.set(
|
|
31109
|
+
node,
|
|
31110
|
+
createCompoundExpression([`(`, prop.exp, `) ?? ''`])
|
|
31111
|
+
);
|
|
31105
31112
|
} else if (prop.name === "text" && prop.exp) {
|
|
31106
31113
|
node.children = [createInterpolation(prop.exp, prop.loc)];
|
|
31107
31114
|
} else if (prop.name === "slot") {
|
|
@@ -36988,7 +36995,7 @@ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : {
|
|
|
36988
36995
|
exports["default"] = void 0;
|
|
36989
36996
|
var _util = util$6;
|
|
36990
36997
|
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); } }
|
|
36991
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36998
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36992
36999
|
var cloneNode = function cloneNode(obj, parent) {
|
|
36993
37000
|
if (typeof obj !== 'object' || obj === null) {
|
|
36994
37001
|
return obj;
|
|
@@ -37214,13 +37221,13 @@ types.UNIVERSAL = UNIVERSAL;
|
|
|
37214
37221
|
var _node = _interopRequireDefault(nodeExports);
|
|
37215
37222
|
var types$1 = _interopRequireWildcard(types);
|
|
37216
37223
|
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); }
|
|
37217
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
37224
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37218
37225
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37219
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
|
37226
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37220
37227
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37221
|
-
function _arrayLikeToArray(arr, len) {
|
|
37228
|
+
function _arrayLikeToArray(arr, len) { len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
37222
37229
|
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); } }
|
|
37223
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
37230
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37224
37231
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
37225
37232
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37226
37233
|
var Container = /*#__PURE__*/function (_Node) {
|
|
@@ -37527,7 +37534,7 @@ var containerExports = container.exports;
|
|
|
37527
37534
|
var _types = types;
|
|
37528
37535
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37529
37536
|
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); } }
|
|
37530
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
37537
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37531
37538
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
37532
37539
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37533
37540
|
var Root = /*#__PURE__*/function (_Container) {
|
|
@@ -37715,7 +37722,7 @@ var cssesc_1 = cssesc;
|
|
|
37715
37722
|
var _types = types;
|
|
37716
37723
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37717
37724
|
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); } }
|
|
37718
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
37725
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37719
37726
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
37720
37727
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37721
37728
|
var ClassName = /*#__PURE__*/function (_Node) {
|
|
@@ -37830,7 +37837,7 @@ var namespace = {exports: {}};
|
|
|
37830
37837
|
var _node = _interopRequireDefault(nodeExports);
|
|
37831
37838
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37832
37839
|
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); } }
|
|
37833
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
37840
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37834
37841
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
37835
37842
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37836
37843
|
var Namespace = /*#__PURE__*/function (_Node) {
|
|
@@ -38008,7 +38015,7 @@ var node = require$$0$1.deprecate;
|
|
|
38008
38015
|
var _CSSESC_QUOTE_OPTIONS;
|
|
38009
38016
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
38010
38017
|
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); } }
|
|
38011
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38018
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38012
38019
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
38013
38020
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38014
38021
|
var deprecate = node;
|
|
@@ -38626,7 +38633,7 @@ tokenTypes.combinator = combinator$1;
|
|
|
38626
38633
|
var t = _interopRequireWildcard(tokenTypes);
|
|
38627
38634
|
var _unescapable, _wordDelimiters;
|
|
38628
38635
|
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); }
|
|
38629
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
38636
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
38630
38637
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
38631
38638
|
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
|
|
38632
38639
|
var hex = {};
|
|
@@ -38880,10 +38887,10 @@ tokenTypes.combinator = combinator$1;
|
|
|
38880
38887
|
var _util = util$6;
|
|
38881
38888
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
38882
38889
|
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); }
|
|
38883
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
38890
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
38884
38891
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
38885
38892
|
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); } }
|
|
38886
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38893
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38887
38894
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
|
38888
38895
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
38889
38896
|
function tokenStart(token) {
|
|
@@ -40202,7 +40209,7 @@ function isNamespace(node) {
|
|
|
40202
40209
|
var _processor = _interopRequireDefault(processorExports);
|
|
40203
40210
|
var selectors$1 = _interopRequireWildcard(selectors);
|
|
40204
40211
|
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); }
|
|
40205
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (
|
|
40212
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
40206
40213
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
40207
40214
|
var parser = function parser(processor) {
|
|
40208
40215
|
return new _processor["default"](processor);
|
|
@@ -45207,21 +45214,29 @@ class MagicString {
|
|
|
45207
45214
|
if (searchValue.global) {
|
|
45208
45215
|
const matches = matchAll(searchValue, this.original);
|
|
45209
45216
|
matches.forEach((match) => {
|
|
45210
|
-
if (match.index != null)
|
|
45217
|
+
if (match.index != null) {
|
|
45218
|
+
const replacement = getReplacement(match, this.original);
|
|
45219
|
+
if (replacement !== match[0]) {
|
|
45220
|
+
this.overwrite(
|
|
45221
|
+
match.index,
|
|
45222
|
+
match.index + match[0].length,
|
|
45223
|
+
replacement
|
|
45224
|
+
);
|
|
45225
|
+
}
|
|
45226
|
+
}
|
|
45227
|
+
});
|
|
45228
|
+
} else {
|
|
45229
|
+
const match = this.original.match(searchValue);
|
|
45230
|
+
if (match && match.index != null) {
|
|
45231
|
+
const replacement = getReplacement(match, this.original);
|
|
45232
|
+
if (replacement !== match[0]) {
|
|
45211
45233
|
this.overwrite(
|
|
45212
45234
|
match.index,
|
|
45213
45235
|
match.index + match[0].length,
|
|
45214
|
-
|
|
45236
|
+
replacement
|
|
45215
45237
|
);
|
|
45216
|
-
|
|
45217
|
-
|
|
45218
|
-
const match = this.original.match(searchValue);
|
|
45219
|
-
if (match && match.index != null)
|
|
45220
|
-
this.overwrite(
|
|
45221
|
-
match.index,
|
|
45222
|
-
match.index + match[0].length,
|
|
45223
|
-
getReplacement(match, this.original),
|
|
45224
|
-
);
|
|
45238
|
+
}
|
|
45239
|
+
}
|
|
45225
45240
|
}
|
|
45226
45241
|
return this;
|
|
45227
45242
|
}
|
|
@@ -45253,7 +45268,9 @@ class MagicString {
|
|
|
45253
45268
|
index !== -1;
|
|
45254
45269
|
index = original.indexOf(string, index + stringLength)
|
|
45255
45270
|
) {
|
|
45256
|
-
|
|
45271
|
+
const previous = original.slice(index, index + stringLength);
|
|
45272
|
+
if (previous !== replacement)
|
|
45273
|
+
this.overwrite(index, index + stringLength, replacement);
|
|
45257
45274
|
}
|
|
45258
45275
|
|
|
45259
45276
|
return this;
|
|
@@ -46579,7 +46596,12 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
46579
46596
|
return ["String"];
|
|
46580
46597
|
case "Parameters":
|
|
46581
46598
|
case "ConstructorParameters":
|
|
46599
|
+
case "ReadonlyArray":
|
|
46582
46600
|
return ["Array"];
|
|
46601
|
+
case "ReadonlyMap":
|
|
46602
|
+
return ["Map"];
|
|
46603
|
+
case "ReadonlySet":
|
|
46604
|
+
return ["Set"];
|
|
46583
46605
|
case "NonNullable":
|
|
46584
46606
|
if (node.typeParameters && node.typeParameters.params[0]) {
|
|
46585
46607
|
return inferRuntimeType(
|
|
@@ -46654,6 +46676,9 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
|
|
|
46654
46676
|
}
|
|
46655
46677
|
break;
|
|
46656
46678
|
}
|
|
46679
|
+
case "TSTypeOperator": {
|
|
46680
|
+
return inferRuntimeType(ctx, node.typeAnnotation, scope);
|
|
46681
|
+
}
|
|
46657
46682
|
}
|
|
46658
46683
|
} catch (e) {
|
|
46659
46684
|
}
|
|
@@ -48334,7 +48359,7 @@ var __spreadValues = (a, b) => {
|
|
|
48334
48359
|
}
|
|
48335
48360
|
return a;
|
|
48336
48361
|
};
|
|
48337
|
-
const version = "3.4.
|
|
48362
|
+
const version = "3.4.24";
|
|
48338
48363
|
const parseCache = parseCache$1;
|
|
48339
48364
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48340
48365
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.24",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@babel/parser": "^7.24.
|
|
45
|
+
"@babel/parser": "^7.24.4",
|
|
46
46
|
"estree-walker": "^2.0.2",
|
|
47
|
-
"magic-string": "^0.30.
|
|
47
|
+
"magic-string": "^0.30.10",
|
|
48
48
|
"postcss": "^8.4.38",
|
|
49
49
|
"source-map-js": "^1.2.0",
|
|
50
|
-
"@vue/compiler-core": "3.4.
|
|
51
|
-
"@vue/compiler-
|
|
52
|
-
"@vue/compiler-
|
|
53
|
-
"@vue/shared": "3.4.
|
|
50
|
+
"@vue/compiler-core": "3.4.24",
|
|
51
|
+
"@vue/compiler-dom": "3.4.24",
|
|
52
|
+
"@vue/compiler-ssr": "3.4.24",
|
|
53
|
+
"@vue/shared": "3.4.24"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.24.0",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"postcss-modules": "^6.0.0",
|
|
63
63
|
"postcss-selector-parser": "^6.0.16",
|
|
64
64
|
"pug": "^3.0.2",
|
|
65
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.75.0"
|
|
66
66
|
}
|
|
67
67
|
}
|