@vue/compiler-sfc 3.5.33 → 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.33
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(true);
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
- flowParseRestrictedIdentifier(liberal, declaration) {
6649
+ flowParseRestrictedIdentifierName(liberal, declaration) {
6650
6650
  this.checkReservedType(this.state.value, this.state.startLoc, declaration);
6651
- return this.parseIdentifier(liberal);
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
- const ident = this.flowParseTypeAnnotatableIdentifier();
6690
- node.name = ident.name;
6702
+ node.name = this.flowParseRestrictedIdentifierName();
6691
6703
  node.variance = variance;
6692
- node.bound = ident.typeAnnotation;
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(allowPrimitiveOverride) {
7390
- const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
7401
+ flowParseTypeAnnotatableIdentifier() {
7402
+ const node = this.startNode();
7403
+ const name = this.parseIdentifierName();
7391
7404
  if (this.match(14)) {
7392
- ident.typeAnnotation = this.flowParseTypeAnnotation();
7393
- this.resetEndLocation(ident);
7405
+ node.typeAnnotation = this.flowParseTypeAnnotation();
7394
7406
  }
7395
- return ident;
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$1) {
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$1.getArg = getArg;
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$1.urlParse = urlParse;
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$1.urlGenerate = urlGenerate;
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$1.isAbsolute(path);
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$1.normalize = normalize;
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$1.join = join;
21833
+ exports.join = join;
21817
21834
 
21818
- exports$1.isAbsolute = function (aPath) {
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$1.relative = relative;
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$1.toSetString = supportsNullProto ? identity : toSetString;
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$1.fromSetString = supportsNullProto ? identity : fromSetString;
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$1.compareByOriginalPositions = compareByOriginalPositions;
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$1.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
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$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
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$1.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
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$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
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$1.parseSourceMapInput = parseSourceMapInput;
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$1.computeSourceURL = computeSourceURL;
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$1) {
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$1.GREATEST_LOWER_BOUND = 1;
22873
- exports$1.LEAST_UPPER_BOUND = 2;
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$1.LEAST_UPPER_BOUND) {
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$1.LEAST_UPPER_BOUND) {
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$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
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$1.GREATEST_LOWER_BOUND);
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) || isHashOnlyValue && !canTransformHashImport(node.tag, attr.name) || !options.includeAbsolute && !isRelativeUrl(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];
@@ -34307,11 +34329,12 @@ function requireStringifier () {
34307
34329
  }
34308
34330
 
34309
34331
  atrule(node, semicolon) {
34332
+ let raws = node.raws;
34310
34333
  let name = '@' + node.name;
34311
34334
  let params = node.params ? this.rawValue(node, 'params') : '';
34312
34335
 
34313
- if (typeof node.raws.afterName !== 'undefined') {
34314
- name += node.raws.afterName;
34336
+ if (typeof raws.afterName !== 'undefined') {
34337
+ name += raws.afterName;
34315
34338
  } else if (params) {
34316
34339
  name += ' ';
34317
34340
  }
@@ -34319,7 +34342,7 @@ function requireStringifier () {
34319
34342
  if (node.nodes) {
34320
34343
  this.block(node, name + params);
34321
34344
  } else {
34322
- let end = (node.raws.between || '') + (semicolon ? ';' : '');
34345
+ let end = (raws.between || '') + (semicolon ? ';' : '');
34323
34346
  this.builder(escapeHTMLInCSS(name + params + end), node);
34324
34347
  }
34325
34348
  }
@@ -34370,16 +34393,17 @@ function requireStringifier () {
34370
34393
  }
34371
34394
 
34372
34395
  body(node) {
34373
- let last = node.nodes.length - 1;
34396
+ let nodes = node.nodes;
34397
+ let last = nodes.length - 1;
34374
34398
  while (last > 0) {
34375
- if (node.nodes[last].type !== 'comment') break
34399
+ if (nodes[last].type !== 'comment') break
34376
34400
  last -= 1;
34377
34401
  }
34378
34402
 
34379
34403
  let semicolon = this.raw(node, 'semicolon');
34380
34404
  let isDocument = node.type === 'document';
34381
- for (let i = 0; i < node.nodes.length; i++) {
34382
- let child = node.nodes[i];
34405
+ for (let i = 0; i < nodes.length; i++) {
34406
+ let child = nodes[i];
34383
34407
  let before = this.raw(child, 'before');
34384
34408
  if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before));
34385
34409
  this.stringify(child, last !== i || semicolon);
@@ -34393,11 +34417,13 @@ function requireStringifier () {
34393
34417
  }
34394
34418
 
34395
34419
  decl(node, semicolon) {
34420
+ let raws = node.raws;
34396
34421
  let between = this.raw(node, 'between', 'colon');
34422
+
34397
34423
  let string = node.prop + between + this.rawValue(node, 'value');
34398
34424
 
34399
34425
  if (node.important) {
34400
- string += node.raws.important || ' !important';
34426
+ string += raws.important || ' !important';
34401
34427
  }
34402
34428
 
34403
34429
  if (semicolon) string += ';';
@@ -34437,9 +34463,9 @@ function requireStringifier () {
34437
34463
 
34438
34464
  // Detect style by other nodes
34439
34465
  let root = node.root();
34440
- if (!root.rawCache) root.rawCache = {};
34441
- if (typeof root.rawCache[detect] !== 'undefined') {
34442
- return root.rawCache[detect]
34466
+ let cache = root.rawCache || (root.rawCache = {});
34467
+ if (typeof cache[detect] !== 'undefined') {
34468
+ return cache[detect]
34443
34469
  }
34444
34470
 
34445
34471
  if (detect === 'before' || detect === 'after') {
@@ -34458,7 +34484,7 @@ function requireStringifier () {
34458
34484
 
34459
34485
  if (typeof value === 'undefined') value = DEFAULT_RAW[detect];
34460
34486
 
34461
- root.rawCache[detect] = value;
34487
+ cache[detect] = value;
34462
34488
  return value
34463
34489
  }
34464
34490
 
@@ -35781,6 +35807,7 @@ function requirePreviousMap () {
35781
35807
  class PreviousMap {
35782
35808
  constructor(css, opts) {
35783
35809
  if (opts.map === false) return
35810
+ if (opts.unsafeMap) this.unsafeMap = true;
35784
35811
  this.loadAnnotation(css);
35785
35812
  this.inline = this.startWith(this.annotation, 'data:');
35786
35813
 
@@ -35795,7 +35822,7 @@ function requirePreviousMap () {
35795
35822
 
35796
35823
  consumer() {
35797
35824
  if (!this.consumerCache) {
35798
- this.consumerCache = new SourceMapConsumer(this.text);
35825
+ this.consumerCache = new SourceMapConsumer(this.json || this.text);
35799
35826
  }
35800
35827
  return this.consumerCache
35801
35828
  }
@@ -35848,7 +35875,13 @@ function requirePreviousMap () {
35848
35875
  }
35849
35876
  }
35850
35877
 
35851
- 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
+ }
35852
35885
  this.root = dirname(path);
35853
35886
  if (existsSync(path)) {
35854
35887
  this.mapFile = path;
@@ -35865,7 +35898,7 @@ function requirePreviousMap () {
35865
35898
  } else if (typeof prev === 'function') {
35866
35899
  let prevPath = prev(file);
35867
35900
  if (prevPath) {
35868
- let map = this.loadFile(prevPath);
35901
+ let map = this.loadFile(prevPath, file, true);
35869
35902
  if (!map) {
35870
35903
  throw new Error(
35871
35904
  'Unable to load previous source map: ' + prevPath.toString()
@@ -35889,7 +35922,16 @@ function requirePreviousMap () {
35889
35922
  } else if (this.annotation) {
35890
35923
  let map = this.annotation;
35891
35924
  if (file) map = join(dirname(file), map);
35892
- return this.loadFile(map)
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
35893
35935
  }
35894
35936
  }
35895
35937
 
@@ -37979,6 +38021,19 @@ function requireLazyResult () {
37979
38021
  if (opts.stringifier) str = opts.stringifier;
37980
38022
  if (str.stringify) str = str.stringify;
37981
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
+
37982
38037
  let map = new MapGenerator(str, this.result.root, this.result.opts);
37983
38038
  let data = map.generate();
37984
38039
  this.result.css = data[0];
@@ -38311,7 +38366,7 @@ function requireProcessor$1 () {
38311
38366
 
38312
38367
  class Processor {
38313
38368
  constructor(plugins = []) {
38314
- this.version = '8.5.10';
38369
+ this.version = '8.5.14';
38315
38370
  this.plugins = this.normalize(plugins);
38316
38371
  }
38317
38372
 
@@ -38547,10 +38602,10 @@ var hasRequiredUnesc;
38547
38602
  function requireUnesc () {
38548
38603
  if (hasRequiredUnesc) return unesc.exports;
38549
38604
  hasRequiredUnesc = 1;
38550
- (function (module, exports$1) {
38605
+ (function (module, exports) {
38551
38606
 
38552
- exports$1.__esModule = true;
38553
- exports$1["default"] = unesc;
38607
+ exports.__esModule = true;
38608
+ exports["default"] = unesc;
38554
38609
  // Many thanks for this post which made this migration much easier.
38555
38610
  // https://mathiasbynens.be/notes/css-escapes
38556
38611
 
@@ -38622,7 +38677,7 @@ function requireUnesc () {
38622
38677
  }
38623
38678
  return ret;
38624
38679
  }
38625
- module.exports = exports$1.default;
38680
+ module.exports = exports.default;
38626
38681
  } (unesc, unesc.exports));
38627
38682
  return unesc.exports;
38628
38683
  }
@@ -38634,10 +38689,10 @@ var hasRequiredGetProp;
38634
38689
  function requireGetProp () {
38635
38690
  if (hasRequiredGetProp) return getProp.exports;
38636
38691
  hasRequiredGetProp = 1;
38637
- (function (module, exports$1) {
38692
+ (function (module, exports) {
38638
38693
 
38639
- exports$1.__esModule = true;
38640
- exports$1["default"] = getProp;
38694
+ exports.__esModule = true;
38695
+ exports["default"] = getProp;
38641
38696
  function getProp(obj) {
38642
38697
  for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
38643
38698
  props[_key - 1] = arguments[_key];
@@ -38651,7 +38706,7 @@ function requireGetProp () {
38651
38706
  }
38652
38707
  return obj;
38653
38708
  }
38654
- module.exports = exports$1.default;
38709
+ module.exports = exports.default;
38655
38710
  } (getProp, getProp.exports));
38656
38711
  return getProp.exports;
38657
38712
  }
@@ -38663,10 +38718,10 @@ var hasRequiredEnsureObject;
38663
38718
  function requireEnsureObject () {
38664
38719
  if (hasRequiredEnsureObject) return ensureObject.exports;
38665
38720
  hasRequiredEnsureObject = 1;
38666
- (function (module, exports$1) {
38721
+ (function (module, exports) {
38667
38722
 
38668
- exports$1.__esModule = true;
38669
- exports$1["default"] = ensureObject;
38723
+ exports.__esModule = true;
38724
+ exports["default"] = ensureObject;
38670
38725
  function ensureObject(obj) {
38671
38726
  for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
38672
38727
  props[_key - 1] = arguments[_key];
@@ -38679,7 +38734,7 @@ function requireEnsureObject () {
38679
38734
  obj = obj[prop];
38680
38735
  }
38681
38736
  }
38682
- module.exports = exports$1.default;
38737
+ module.exports = exports.default;
38683
38738
  } (ensureObject, ensureObject.exports));
38684
38739
  return ensureObject.exports;
38685
38740
  }
@@ -38691,10 +38746,10 @@ var hasRequiredStripComments;
38691
38746
  function requireStripComments () {
38692
38747
  if (hasRequiredStripComments) return stripComments.exports;
38693
38748
  hasRequiredStripComments = 1;
38694
- (function (module, exports$1) {
38749
+ (function (module, exports) {
38695
38750
 
38696
- exports$1.__esModule = true;
38697
- exports$1["default"] = stripComments;
38751
+ exports.__esModule = true;
38752
+ exports["default"] = stripComments;
38698
38753
  function stripComments(str) {
38699
38754
  var s = "";
38700
38755
  var commentStart = str.indexOf("/*");
@@ -38711,7 +38766,7 @@ function requireStripComments () {
38711
38766
  s = s + str.slice(lastEnd);
38712
38767
  return s;
38713
38768
  }
38714
- module.exports = exports$1.default;
38769
+ module.exports = exports.default;
38715
38770
  } (stripComments, stripComments.exports));
38716
38771
  return stripComments.exports;
38717
38772
  }
@@ -38741,10 +38796,10 @@ var hasRequiredNode$1;
38741
38796
  function requireNode$1 () {
38742
38797
  if (hasRequiredNode$1) return node$1.exports;
38743
38798
  hasRequiredNode$1 = 1;
38744
- (function (module, exports$1) {
38799
+ (function (module, exports) {
38745
38800
 
38746
- exports$1.__esModule = true;
38747
- exports$1["default"] = void 0;
38801
+ exports.__esModule = true;
38802
+ exports["default"] = void 0;
38748
38803
  var _util = /*@__PURE__*/ requireUtil$1();
38749
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); } }
38750
38805
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -38931,8 +38986,8 @@ function requireNode$1 () {
38931
38986
  }]);
38932
38987
  return Node;
38933
38988
  }();
38934
- exports$1["default"] = Node;
38935
- module.exports = exports$1.default;
38989
+ exports["default"] = Node;
38990
+ module.exports = exports.default;
38936
38991
  } (node$1, node$1.exports));
38937
38992
  return node$1.exports;
38938
38993
  }
@@ -38979,10 +39034,10 @@ var hasRequiredContainer;
38979
39034
  function requireContainer () {
38980
39035
  if (hasRequiredContainer) return container.exports;
38981
39036
  hasRequiredContainer = 1;
38982
- (function (module, exports$1) {
39037
+ (function (module, exports) {
38983
39038
 
38984
- exports$1.__esModule = true;
38985
- exports$1["default"] = void 0;
39039
+ exports.__esModule = true;
39040
+ exports["default"] = void 0;
38986
39041
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
38987
39042
  var types = _interopRequireWildcard(/*@__PURE__*/ requireTypes());
38988
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); }
@@ -39298,8 +39353,8 @@ function requireContainer () {
39298
39353
  }]);
39299
39354
  return Container;
39300
39355
  }(_node["default"]);
39301
- exports$1["default"] = Container;
39302
- module.exports = exports$1.default;
39356
+ exports["default"] = Container;
39357
+ module.exports = exports.default;
39303
39358
  } (container, container.exports));
39304
39359
  return container.exports;
39305
39360
  }
@@ -39309,10 +39364,10 @@ var hasRequiredRoot;
39309
39364
  function requireRoot () {
39310
39365
  if (hasRequiredRoot) return root.exports;
39311
39366
  hasRequiredRoot = 1;
39312
- (function (module, exports$1) {
39367
+ (function (module, exports) {
39313
39368
 
39314
- exports$1.__esModule = true;
39315
- exports$1["default"] = void 0;
39369
+ exports.__esModule = true;
39370
+ exports["default"] = void 0;
39316
39371
  var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
39317
39372
  var _types = /*@__PURE__*/ requireTypes();
39318
39373
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39351,8 +39406,8 @@ function requireRoot () {
39351
39406
  }]);
39352
39407
  return Root;
39353
39408
  }(_container["default"]);
39354
- exports$1["default"] = Root;
39355
- module.exports = exports$1.default;
39409
+ exports["default"] = Root;
39410
+ module.exports = exports.default;
39356
39411
  } (root, root.exports));
39357
39412
  return root.exports;
39358
39413
  }
@@ -39364,10 +39419,10 @@ var hasRequiredSelector;
39364
39419
  function requireSelector () {
39365
39420
  if (hasRequiredSelector) return selector.exports;
39366
39421
  hasRequiredSelector = 1;
39367
- (function (module, exports$1) {
39422
+ (function (module, exports) {
39368
39423
 
39369
- exports$1.__esModule = true;
39370
- exports$1["default"] = void 0;
39424
+ exports.__esModule = true;
39425
+ exports["default"] = void 0;
39371
39426
  var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
39372
39427
  var _types = /*@__PURE__*/ requireTypes();
39373
39428
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39383,8 +39438,8 @@ function requireSelector () {
39383
39438
  }
39384
39439
  return Selector;
39385
39440
  }(_container["default"]);
39386
- exports$1["default"] = Selector;
39387
- module.exports = exports$1.default;
39441
+ exports["default"] = Selector;
39442
+ module.exports = exports.default;
39388
39443
  } (selector, selector.exports));
39389
39444
  return selector.exports;
39390
39445
  }
@@ -39514,10 +39569,10 @@ var hasRequiredClassName;
39514
39569
  function requireClassName () {
39515
39570
  if (hasRequiredClassName) return className.exports;
39516
39571
  hasRequiredClassName = 1;
39517
- (function (module, exports$1) {
39572
+ (function (module, exports) {
39518
39573
 
39519
- exports$1.__esModule = true;
39520
- exports$1["default"] = void 0;
39574
+ exports.__esModule = true;
39575
+ exports["default"] = void 0;
39521
39576
  var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
39522
39577
  var _util = /*@__PURE__*/ requireUtil$1();
39523
39578
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
@@ -39562,8 +39617,8 @@ function requireClassName () {
39562
39617
  }]);
39563
39618
  return ClassName;
39564
39619
  }(_node["default"]);
39565
- exports$1["default"] = ClassName;
39566
- module.exports = exports$1.default;
39620
+ exports["default"] = ClassName;
39621
+ module.exports = exports.default;
39567
39622
  } (className, className.exports));
39568
39623
  return className.exports;
39569
39624
  }
@@ -39575,10 +39630,10 @@ var hasRequiredComment;
39575
39630
  function requireComment () {
39576
39631
  if (hasRequiredComment) return comment.exports;
39577
39632
  hasRequiredComment = 1;
39578
- (function (module, exports$1) {
39633
+ (function (module, exports) {
39579
39634
 
39580
- exports$1.__esModule = true;
39581
- exports$1["default"] = void 0;
39635
+ exports.__esModule = true;
39636
+ exports["default"] = void 0;
39582
39637
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
39583
39638
  var _types = /*@__PURE__*/ requireTypes();
39584
39639
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39594,8 +39649,8 @@ function requireComment () {
39594
39649
  }
39595
39650
  return Comment;
39596
39651
  }(_node["default"]);
39597
- exports$1["default"] = Comment;
39598
- module.exports = exports$1.default;
39652
+ exports["default"] = Comment;
39653
+ module.exports = exports.default;
39599
39654
  } (comment, comment.exports));
39600
39655
  return comment.exports;
39601
39656
  }
@@ -39607,10 +39662,10 @@ var hasRequiredId;
39607
39662
  function requireId () {
39608
39663
  if (hasRequiredId) return id.exports;
39609
39664
  hasRequiredId = 1;
39610
- (function (module, exports$1) {
39665
+ (function (module, exports) {
39611
39666
 
39612
- exports$1.__esModule = true;
39613
- exports$1["default"] = void 0;
39667
+ exports.__esModule = true;
39668
+ exports["default"] = void 0;
39614
39669
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
39615
39670
  var _types = /*@__PURE__*/ requireTypes();
39616
39671
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39630,8 +39685,8 @@ function requireId () {
39630
39685
  };
39631
39686
  return ID;
39632
39687
  }(_node["default"]);
39633
- exports$1["default"] = ID;
39634
- module.exports = exports$1.default;
39688
+ exports["default"] = ID;
39689
+ module.exports = exports.default;
39635
39690
  } (id, id.exports));
39636
39691
  return id.exports;
39637
39692
  }
@@ -39645,10 +39700,10 @@ var hasRequiredNamespace;
39645
39700
  function requireNamespace () {
39646
39701
  if (hasRequiredNamespace) return namespace.exports;
39647
39702
  hasRequiredNamespace = 1;
39648
- (function (module, exports$1) {
39703
+ (function (module, exports) {
39649
39704
 
39650
- exports$1.__esModule = true;
39651
- exports$1["default"] = void 0;
39705
+ exports.__esModule = true;
39706
+ exports["default"] = void 0;
39652
39707
  var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
39653
39708
  var _util = /*@__PURE__*/ requireUtil$1();
39654
39709
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
@@ -39722,8 +39777,8 @@ function requireNamespace () {
39722
39777
  }]);
39723
39778
  return Namespace;
39724
39779
  }(_node["default"]);
39725
- exports$1["default"] = Namespace;
39726
- module.exports = exports$1.default;
39780
+ exports["default"] = Namespace;
39781
+ module.exports = exports.default;
39727
39782
  } (namespace, namespace.exports));
39728
39783
  return namespace.exports;
39729
39784
  }
@@ -39733,10 +39788,10 @@ var hasRequiredTag;
39733
39788
  function requireTag () {
39734
39789
  if (hasRequiredTag) return tag.exports;
39735
39790
  hasRequiredTag = 1;
39736
- (function (module, exports$1) {
39791
+ (function (module, exports) {
39737
39792
 
39738
- exports$1.__esModule = true;
39739
- exports$1["default"] = void 0;
39793
+ exports.__esModule = true;
39794
+ exports["default"] = void 0;
39740
39795
  var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
39741
39796
  var _types = /*@__PURE__*/ requireTypes();
39742
39797
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39752,8 +39807,8 @@ function requireTag () {
39752
39807
  }
39753
39808
  return Tag;
39754
39809
  }(_namespace["default"]);
39755
- exports$1["default"] = Tag;
39756
- module.exports = exports$1.default;
39810
+ exports["default"] = Tag;
39811
+ module.exports = exports.default;
39757
39812
  } (tag, tag.exports));
39758
39813
  return tag.exports;
39759
39814
  }
@@ -39765,10 +39820,10 @@ var hasRequiredString;
39765
39820
  function requireString () {
39766
39821
  if (hasRequiredString) return string.exports;
39767
39822
  hasRequiredString = 1;
39768
- (function (module, exports$1) {
39823
+ (function (module, exports) {
39769
39824
 
39770
- exports$1.__esModule = true;
39771
- exports$1["default"] = void 0;
39825
+ exports.__esModule = true;
39826
+ exports["default"] = void 0;
39772
39827
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
39773
39828
  var _types = /*@__PURE__*/ requireTypes();
39774
39829
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39784,8 +39839,8 @@ function requireString () {
39784
39839
  }
39785
39840
  return String;
39786
39841
  }(_node["default"]);
39787
- exports$1["default"] = String;
39788
- module.exports = exports$1.default;
39842
+ exports["default"] = String;
39843
+ module.exports = exports.default;
39789
39844
  } (string, string.exports));
39790
39845
  return string.exports;
39791
39846
  }
@@ -39797,10 +39852,10 @@ var hasRequiredPseudo;
39797
39852
  function requirePseudo () {
39798
39853
  if (hasRequiredPseudo) return pseudo.exports;
39799
39854
  hasRequiredPseudo = 1;
39800
- (function (module, exports$1) {
39855
+ (function (module, exports) {
39801
39856
 
39802
- exports$1.__esModule = true;
39803
- exports$1["default"] = void 0;
39857
+ exports.__esModule = true;
39858
+ exports["default"] = void 0;
39804
39859
  var _container = _interopRequireDefault(/*@__PURE__*/ requireContainer());
39805
39860
  var _types = /*@__PURE__*/ requireTypes();
39806
39861
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -39821,8 +39876,8 @@ function requirePseudo () {
39821
39876
  };
39822
39877
  return Pseudo;
39823
39878
  }(_container["default"]);
39824
- exports$1["default"] = Pseudo;
39825
- module.exports = exports$1.default;
39879
+ exports["default"] = Pseudo;
39880
+ module.exports = exports.default;
39826
39881
  } (pseudo, pseudo.exports));
39827
39882
  return pseudo.exports;
39828
39883
  }
@@ -39848,11 +39903,11 @@ var hasRequiredAttribute;
39848
39903
  function requireAttribute () {
39849
39904
  if (hasRequiredAttribute) return attribute;
39850
39905
  hasRequiredAttribute = 1;
39851
- (function (exports$1) {
39906
+ (function (exports) {
39852
39907
 
39853
- exports$1.__esModule = true;
39854
- exports$1["default"] = void 0;
39855
- exports$1.unescapeValue = unescapeValue;
39908
+ exports.__esModule = true;
39909
+ exports["default"] = void 0;
39910
+ exports.unescapeValue = unescapeValue;
39856
39911
  var _cssesc = _interopRequireDefault(/*@__PURE__*/ requireCssesc());
39857
39912
  var _unesc = _interopRequireDefault(/*@__PURE__*/ requireUnesc());
39858
39913
  var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
@@ -40277,7 +40332,7 @@ function requireAttribute () {
40277
40332
  }]);
40278
40333
  return Attribute;
40279
40334
  }(_namespace["default"]);
40280
- exports$1["default"] = Attribute;
40335
+ exports["default"] = Attribute;
40281
40336
  Attribute.NO_QUOTE = null;
40282
40337
  Attribute.SINGLE_QUOTE = "'";
40283
40338
  Attribute.DOUBLE_QUOTE = '"';
@@ -40307,10 +40362,10 @@ var hasRequiredUniversal;
40307
40362
  function requireUniversal () {
40308
40363
  if (hasRequiredUniversal) return universal.exports;
40309
40364
  hasRequiredUniversal = 1;
40310
- (function (module, exports$1) {
40365
+ (function (module, exports) {
40311
40366
 
40312
- exports$1.__esModule = true;
40313
- exports$1["default"] = void 0;
40367
+ exports.__esModule = true;
40368
+ exports["default"] = void 0;
40314
40369
  var _namespace = _interopRequireDefault(/*@__PURE__*/ requireNamespace());
40315
40370
  var _types = /*@__PURE__*/ requireTypes();
40316
40371
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -40327,8 +40382,8 @@ function requireUniversal () {
40327
40382
  }
40328
40383
  return Universal;
40329
40384
  }(_namespace["default"]);
40330
- exports$1["default"] = Universal;
40331
- module.exports = exports$1.default;
40385
+ exports["default"] = Universal;
40386
+ module.exports = exports.default;
40332
40387
  } (universal, universal.exports));
40333
40388
  return universal.exports;
40334
40389
  }
@@ -40340,10 +40395,10 @@ var hasRequiredCombinator;
40340
40395
  function requireCombinator () {
40341
40396
  if (hasRequiredCombinator) return combinator.exports;
40342
40397
  hasRequiredCombinator = 1;
40343
- (function (module, exports$1) {
40398
+ (function (module, exports) {
40344
40399
 
40345
- exports$1.__esModule = true;
40346
- exports$1["default"] = void 0;
40400
+ exports.__esModule = true;
40401
+ exports["default"] = void 0;
40347
40402
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
40348
40403
  var _types = /*@__PURE__*/ requireTypes();
40349
40404
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -40359,8 +40414,8 @@ function requireCombinator () {
40359
40414
  }
40360
40415
  return Combinator;
40361
40416
  }(_node["default"]);
40362
- exports$1["default"] = Combinator;
40363
- module.exports = exports$1.default;
40417
+ exports["default"] = Combinator;
40418
+ module.exports = exports.default;
40364
40419
  } (combinator, combinator.exports));
40365
40420
  return combinator.exports;
40366
40421
  }
@@ -40372,10 +40427,10 @@ var hasRequiredNesting;
40372
40427
  function requireNesting () {
40373
40428
  if (hasRequiredNesting) return nesting.exports;
40374
40429
  hasRequiredNesting = 1;
40375
- (function (module, exports$1) {
40430
+ (function (module, exports) {
40376
40431
 
40377
- exports$1.__esModule = true;
40378
- exports$1["default"] = void 0;
40432
+ exports.__esModule = true;
40433
+ exports["default"] = void 0;
40379
40434
  var _node = _interopRequireDefault(/*@__PURE__*/ requireNode$1());
40380
40435
  var _types = /*@__PURE__*/ requireTypes();
40381
40436
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -40392,8 +40447,8 @@ function requireNesting () {
40392
40447
  }
40393
40448
  return Nesting;
40394
40449
  }(_node["default"]);
40395
- exports$1["default"] = Nesting;
40396
- module.exports = exports$1.default;
40450
+ exports["default"] = Nesting;
40451
+ module.exports = exports.default;
40397
40452
  } (nesting, nesting.exports));
40398
40453
  return nesting.exports;
40399
40454
  }
@@ -40405,16 +40460,16 @@ var hasRequiredSortAscending;
40405
40460
  function requireSortAscending () {
40406
40461
  if (hasRequiredSortAscending) return sortAscending.exports;
40407
40462
  hasRequiredSortAscending = 1;
40408
- (function (module, exports$1) {
40463
+ (function (module, exports) {
40409
40464
 
40410
- exports$1.__esModule = true;
40411
- exports$1["default"] = sortAscending;
40465
+ exports.__esModule = true;
40466
+ exports["default"] = sortAscending;
40412
40467
  function sortAscending(list) {
40413
40468
  return list.sort(function (a, b) {
40414
40469
  return a - b;
40415
40470
  });
40416
40471
  }
40417
- module.exports = exports$1.default;
40472
+ module.exports = exports.default;
40418
40473
  } (sortAscending, sortAscending.exports));
40419
40474
  return sortAscending.exports;
40420
40475
  }
@@ -40505,11 +40560,11 @@ var hasRequiredTokenize;
40505
40560
  function requireTokenize () {
40506
40561
  if (hasRequiredTokenize) return tokenize;
40507
40562
  hasRequiredTokenize = 1;
40508
- (function (exports$1) {
40563
+ (function (exports) {
40509
40564
 
40510
- exports$1.__esModule = true;
40511
- exports$1.FIELDS = void 0;
40512
- exports$1["default"] = tokenize;
40565
+ exports.__esModule = true;
40566
+ exports.FIELDS = void 0;
40567
+ exports["default"] = tokenize;
40513
40568
  var t = _interopRequireWildcard(/*@__PURE__*/ requireTokenTypes());
40514
40569
  var _unescapable, _wordDelimiters;
40515
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); }
@@ -40579,7 +40634,7 @@ function requireTokenize () {
40579
40634
  START_POS: 5,
40580
40635
  END_POS: 6
40581
40636
  };
40582
- exports$1.FIELDS = FIELDS;
40637
+ exports.FIELDS = FIELDS;
40583
40638
  function tokenize(input) {
40584
40639
  var tokens = [];
40585
40640
  var css = input.css.valueOf();
@@ -40751,10 +40806,10 @@ var hasRequiredParser;
40751
40806
  function requireParser () {
40752
40807
  if (hasRequiredParser) return parser.exports;
40753
40808
  hasRequiredParser = 1;
40754
- (function (module, exports$1) {
40809
+ (function (module, exports) {
40755
40810
 
40756
- exports$1.__esModule = true;
40757
- exports$1["default"] = void 0;
40811
+ exports.__esModule = true;
40812
+ exports["default"] = void 0;
40758
40813
  var _root = _interopRequireDefault(/*@__PURE__*/ requireRoot());
40759
40814
  var _selector = _interopRequireDefault(/*@__PURE__*/ requireSelector());
40760
40815
  var _className = _interopRequireDefault(/*@__PURE__*/ requireClassName());
@@ -41762,8 +41817,8 @@ function requireParser () {
41762
41817
  }]);
41763
41818
  return Parser;
41764
41819
  }();
41765
- exports$1["default"] = Parser;
41766
- module.exports = exports$1.default;
41820
+ exports["default"] = Parser;
41821
+ module.exports = exports.default;
41767
41822
  } (parser, parser.exports));
41768
41823
  return parser.exports;
41769
41824
  }
@@ -41773,10 +41828,10 @@ var hasRequiredProcessor;
41773
41828
  function requireProcessor () {
41774
41829
  if (hasRequiredProcessor) return processor.exports;
41775
41830
  hasRequiredProcessor = 1;
41776
- (function (module, exports$1) {
41831
+ (function (module, exports) {
41777
41832
 
41778
- exports$1.__esModule = true;
41779
- exports$1["default"] = void 0;
41833
+ exports.__esModule = true;
41834
+ exports["default"] = void 0;
41780
41835
  var _parser = _interopRequireDefault(/*@__PURE__*/ requireParser());
41781
41836
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
41782
41837
  var Processor = /*#__PURE__*/function () {
@@ -41941,8 +41996,8 @@ function requireProcessor () {
41941
41996
  };
41942
41997
  return Processor;
41943
41998
  }();
41944
- exports$1["default"] = Processor;
41945
- module.exports = exports$1.default;
41999
+ exports["default"] = Processor;
42000
+ module.exports = exports.default;
41946
42001
  } (processor, processor.exports));
41947
42002
  return processor.exports;
41948
42003
  }
@@ -42095,26 +42150,26 @@ var hasRequiredSelectors;
42095
42150
  function requireSelectors () {
42096
42151
  if (hasRequiredSelectors) return selectors;
42097
42152
  hasRequiredSelectors = 1;
42098
- (function (exports$1) {
42153
+ (function (exports) {
42099
42154
 
42100
- exports$1.__esModule = true;
42155
+ exports.__esModule = true;
42101
42156
  var _types = /*@__PURE__*/ requireTypes();
42102
42157
  Object.keys(_types).forEach(function (key) {
42103
42158
  if (key === "default" || key === "__esModule") return;
42104
- if (key in exports$1 && exports$1[key] === _types[key]) return;
42105
- exports$1[key] = _types[key];
42159
+ if (key in exports && exports[key] === _types[key]) return;
42160
+ exports[key] = _types[key];
42106
42161
  });
42107
42162
  var _constructors = /*@__PURE__*/ requireConstructors();
42108
42163
  Object.keys(_constructors).forEach(function (key) {
42109
42164
  if (key === "default" || key === "__esModule") return;
42110
- if (key in exports$1 && exports$1[key] === _constructors[key]) return;
42111
- exports$1[key] = _constructors[key];
42165
+ if (key in exports && exports[key] === _constructors[key]) return;
42166
+ exports[key] = _constructors[key];
42112
42167
  });
42113
42168
  var _guards = /*@__PURE__*/ requireGuards();
42114
42169
  Object.keys(_guards).forEach(function (key) {
42115
42170
  if (key === "default" || key === "__esModule") return;
42116
- if (key in exports$1 && exports$1[key] === _guards[key]) return;
42117
- exports$1[key] = _guards[key];
42171
+ if (key in exports && exports[key] === _guards[key]) return;
42172
+ exports[key] = _guards[key];
42118
42173
  });
42119
42174
  } (selectors));
42120
42175
  return selectors;
@@ -42125,10 +42180,10 @@ var hasRequiredDist;
42125
42180
  function requireDist () {
42126
42181
  if (hasRequiredDist) return dist.exports;
42127
42182
  hasRequiredDist = 1;
42128
- (function (module, exports$1) {
42183
+ (function (module, exports) {
42129
42184
 
42130
- exports$1.__esModule = true;
42131
- exports$1["default"] = void 0;
42185
+ exports.__esModule = true;
42186
+ exports["default"] = void 0;
42132
42187
  var _processor = _interopRequireDefault(/*@__PURE__*/ requireProcessor());
42133
42188
  var selectors = _interopRequireWildcard(/*@__PURE__*/ requireSelectors());
42134
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); }
@@ -42140,8 +42195,8 @@ function requireDist () {
42140
42195
  Object.assign(parser, selectors);
42141
42196
  delete parser.__esModule;
42142
42197
  var _default = parser;
42143
- exports$1["default"] = _default;
42144
- module.exports = exports$1.default;
42198
+ exports["default"] = _default;
42199
+ module.exports = exports.default;
42145
42200
  } (dist, dist.exports));
42146
42201
  return dist.exports;
42147
42202
  }
@@ -42684,7 +42739,7 @@ var hasRequiredUtil;
42684
42739
  function requireUtil () {
42685
42740
  if (hasRequiredUtil) return util;
42686
42741
  hasRequiredUtil = 1;
42687
- (function (exports$1) {
42742
+ (function (exports) {
42688
42743
  /*
42689
42744
  * Copyright 2011 Mozilla Foundation and contributors
42690
42745
  * Licensed under the New BSD license. See LICENSE or:
@@ -42710,7 +42765,7 @@ function requireUtil () {
42710
42765
  throw new Error('"' + aName + '" is a required argument.');
42711
42766
  }
42712
42767
  }
42713
- exports$1.getArg = getArg;
42768
+ exports.getArg = getArg;
42714
42769
 
42715
42770
  var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
42716
42771
  var dataUrlRegexp = /^data:.+\,.+$/;
@@ -42728,7 +42783,7 @@ function requireUtil () {
42728
42783
  path: match[5]
42729
42784
  };
42730
42785
  }
42731
- exports$1.urlParse = urlParse;
42786
+ exports.urlParse = urlParse;
42732
42787
 
42733
42788
  function urlGenerate(aParsedUrl) {
42734
42789
  var url = '';
@@ -42750,7 +42805,7 @@ function requireUtil () {
42750
42805
  }
42751
42806
  return url;
42752
42807
  }
42753
- exports$1.urlGenerate = urlGenerate;
42808
+ exports.urlGenerate = urlGenerate;
42754
42809
 
42755
42810
  /**
42756
42811
  * Normalizes a path, or the path portion of a URL:
@@ -42772,7 +42827,7 @@ function requireUtil () {
42772
42827
  }
42773
42828
  path = url.path;
42774
42829
  }
42775
- var isAbsolute = exports$1.isAbsolute(path);
42830
+ var isAbsolute = exports.isAbsolute(path);
42776
42831
 
42777
42832
  var parts = path.split(/\/+/);
42778
42833
  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
@@ -42806,7 +42861,7 @@ function requireUtil () {
42806
42861
  }
42807
42862
  return path;
42808
42863
  }
42809
- exports$1.normalize = normalize;
42864
+ exports.normalize = normalize;
42810
42865
 
42811
42866
  /**
42812
42867
  * Joins two paths/URLs.
@@ -42865,9 +42920,9 @@ function requireUtil () {
42865
42920
  }
42866
42921
  return joined;
42867
42922
  }
42868
- exports$1.join = join;
42923
+ exports.join = join;
42869
42924
 
42870
- exports$1.isAbsolute = function (aPath) {
42925
+ exports.isAbsolute = function (aPath) {
42871
42926
  return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
42872
42927
  };
42873
42928
 
@@ -42909,7 +42964,7 @@ function requireUtil () {
42909
42964
  // Make sure we add a "../" for each component we removed from the root.
42910
42965
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
42911
42966
  }
42912
- exports$1.relative = relative;
42967
+ exports.relative = relative;
42913
42968
 
42914
42969
  var supportsNullProto = (function () {
42915
42970
  var obj = Object.create(null);
@@ -42936,7 +42991,7 @@ function requireUtil () {
42936
42991
 
42937
42992
  return aStr;
42938
42993
  }
42939
- exports$1.toSetString = supportsNullProto ? identity : toSetString;
42994
+ exports.toSetString = supportsNullProto ? identity : toSetString;
42940
42995
 
42941
42996
  function fromSetString(aStr) {
42942
42997
  if (isProtoString(aStr)) {
@@ -42945,7 +43000,7 @@ function requireUtil () {
42945
43000
 
42946
43001
  return aStr;
42947
43002
  }
42948
- exports$1.fromSetString = supportsNullProto ? identity : fromSetString;
43003
+ exports.fromSetString = supportsNullProto ? identity : fromSetString;
42949
43004
 
42950
43005
  function isProtoString(s) {
42951
43006
  if (!s) {
@@ -43015,7 +43070,7 @@ function requireUtil () {
43015
43070
 
43016
43071
  return strcmp(mappingA.name, mappingB.name);
43017
43072
  }
43018
- exports$1.compareByOriginalPositions = compareByOriginalPositions;
43073
+ exports.compareByOriginalPositions = compareByOriginalPositions;
43019
43074
 
43020
43075
  /**
43021
43076
  * Comparator between two mappings with deflated source and name indices where
@@ -43054,7 +43109,7 @@ function requireUtil () {
43054
43109
 
43055
43110
  return strcmp(mappingA.name, mappingB.name);
43056
43111
  }
43057
- exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
43112
+ exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
43058
43113
 
43059
43114
  function strcmp(aStr1, aStr2) {
43060
43115
  if (aStr1 === aStr2) {
@@ -43108,7 +43163,7 @@ function requireUtil () {
43108
43163
 
43109
43164
  return strcmp(mappingA.name, mappingB.name);
43110
43165
  }
43111
- exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
43166
+ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
43112
43167
 
43113
43168
  /**
43114
43169
  * Strip any JSON XSSI avoidance prefix from the string (as documented
@@ -43118,7 +43173,7 @@ function requireUtil () {
43118
43173
  function parseSourceMapInput(str) {
43119
43174
  return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
43120
43175
  }
43121
- exports$1.parseSourceMapInput = parseSourceMapInput;
43176
+ exports.parseSourceMapInput = parseSourceMapInput;
43122
43177
 
43123
43178
  /**
43124
43179
  * Compute the URL of a source given the the source root, the source's
@@ -43171,7 +43226,7 @@ function requireUtil () {
43171
43226
 
43172
43227
  return normalize(sourceURL);
43173
43228
  }
43174
- exports$1.computeSourceURL = computeSourceURL;
43229
+ exports.computeSourceURL = computeSourceURL;
43175
43230
  } (util));
43176
43231
  return util;
43177
43232
  }
@@ -43843,15 +43898,15 @@ var hasRequiredBinarySearch;
43843
43898
  function requireBinarySearch () {
43844
43899
  if (hasRequiredBinarySearch) return binarySearch;
43845
43900
  hasRequiredBinarySearch = 1;
43846
- (function (exports$1) {
43901
+ (function (exports) {
43847
43902
  /*
43848
43903
  * Copyright 2011 Mozilla Foundation and contributors
43849
43904
  * Licensed under the New BSD license. See LICENSE or:
43850
43905
  * http://opensource.org/licenses/BSD-3-Clause
43851
43906
  */
43852
43907
 
43853
- exports$1.GREATEST_LOWER_BOUND = 1;
43854
- exports$1.LEAST_UPPER_BOUND = 2;
43908
+ exports.GREATEST_LOWER_BOUND = 1;
43909
+ exports.LEAST_UPPER_BOUND = 2;
43855
43910
 
43856
43911
  /**
43857
43912
  * Recursive implementation of binary search.
@@ -43891,7 +43946,7 @@ function requireBinarySearch () {
43891
43946
 
43892
43947
  // The exact needle element was not found in this haystack. Determine if
43893
43948
  // we are in termination case (3) or (2) and return the appropriate thing.
43894
- if (aBias == exports$1.LEAST_UPPER_BOUND) {
43949
+ if (aBias == exports.LEAST_UPPER_BOUND) {
43895
43950
  return aHigh < aHaystack.length ? aHigh : -1;
43896
43951
  } else {
43897
43952
  return mid;
@@ -43905,7 +43960,7 @@ function requireBinarySearch () {
43905
43960
  }
43906
43961
 
43907
43962
  // we are in termination case (3) or (2) and return the appropriate thing.
43908
- if (aBias == exports$1.LEAST_UPPER_BOUND) {
43963
+ if (aBias == exports.LEAST_UPPER_BOUND) {
43909
43964
  return mid;
43910
43965
  } else {
43911
43966
  return aLow < 0 ? -1 : aLow;
@@ -43931,13 +43986,13 @@ function requireBinarySearch () {
43931
43986
  * searching for, respectively, if the exact element cannot be found.
43932
43987
  * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
43933
43988
  */
43934
- exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) {
43989
+ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
43935
43990
  if (aHaystack.length === 0) {
43936
43991
  return -1;
43937
43992
  }
43938
43993
 
43939
43994
  var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
43940
- aCompare, aBias || exports$1.GREATEST_LOWER_BOUND);
43995
+ aCompare, aBias || exports.GREATEST_LOWER_BOUND);
43941
43996
  if (index < 0) {
43942
43997
  return -1;
43943
43998
  }
@@ -47821,9 +47876,20 @@ class TypeScope {
47821
47876
  this.exportedDeclares = /* @__PURE__ */ Object.create(null);
47822
47877
  }
47823
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
+ }
47824
47889
  function resolveTypeElements(ctx, node, scope, typeParameters) {
47825
47890
  const canCache = !typeParameters;
47826
47891
  if (canCache && node._resolvedElements) {
47892
+ recordResolvedElementDeps(ctx, node._resolvedElements);
47827
47893
  return node._resolvedElements;
47828
47894
  }
47829
47895
  const resolved = innerResolveTypeElements(
@@ -48296,6 +48362,7 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
48296
48362
  function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
48297
48363
  const canCache = !(scope == null ? void 0 : scope.isGenericScope);
48298
48364
  if (canCache && node._resolvedReference) {
48365
+ recordScopeDep(ctx, node._resolvedReference._ownerScope);
48299
48366
  return node._resolvedReference;
48300
48367
  }
48301
48368
  const resolved = innerResolveTypeReference(
@@ -48322,7 +48389,11 @@ function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
48322
48389
  const src = node.type === "TSTypeQuery" ? s.declares : s.types;
48323
48390
  if (src[name]) {
48324
48391
  (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(s.filename);
48325
- return src[name];
48392
+ const resolved = src[name];
48393
+ if (resolved._ownerScope && resolved._ownerScope !== s) {
48394
+ ctx.deps.add(resolved._ownerScope.filename);
48395
+ }
48396
+ return resolved;
48326
48397
  }
48327
48398
  }
48328
48399
  }
@@ -48426,7 +48497,7 @@ function resolveTypeFromImport(ctx, node, name, scope) {
48426
48497
  const sourceScope = importSourceToScope(ctx, node, scope, source);
48427
48498
  return resolveTypeReference(ctx, node, sourceScope, imported, true);
48428
48499
  }
48429
- function importSourceToScope(ctx, node, scope, source) {
48500
+ function importSourceToScope(ctx, node, scope, source, trackDep = true) {
48430
48501
  let fs;
48431
48502
  try {
48432
48503
  fs = resolveFS(ctx);
@@ -48458,12 +48529,22 @@ function importSourceToScope(ctx, node, scope, source) {
48458
48529
  );
48459
48530
  }
48460
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
+ }
48461
48540
  if (resolved) {
48462
48541
  resolved = scope.resolvedImportSources[source] = normalizePath(resolved);
48463
48542
  }
48464
48543
  }
48465
48544
  if (resolved) {
48466
- (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(resolved);
48545
+ if (trackDep) {
48546
+ (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(resolved);
48547
+ }
48467
48548
  return fileToScope(ctx, resolved);
48468
48549
  } else {
48469
48550
  return ctx.error(
@@ -48492,6 +48573,9 @@ function resolveExt(filename, fs) {
48492
48573
  }
48493
48574
  const tsConfigCache = createCache();
48494
48575
  const tsConfigRefMap = /* @__PURE__ */ new Map();
48576
+ function resolveWithTS(containingFile, source, ts2, fs) {
48577
+ return;
48578
+ }
48495
48579
  const fileToScopeCache = createCache();
48496
48580
  function invalidateTypeCache(filename) {
48497
48581
  filename = normalizePath(filename);
@@ -48608,8 +48692,40 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
48608
48692
  }
48609
48693
  } else if (stmt.type === "TSModuleDeclaration" && stmt.global) {
48610
48694
  for (const s of stmt.body.body) {
48611
- if (s.type === "ExportNamedDeclaration" && s.declaration) {
48612
- recordType(s.declaration, types, declares);
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);
48613
48729
  } else {
48614
48730
  recordType(s, types, declares);
48615
48731
  }
@@ -48674,11 +48790,11 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
48674
48790
  }
48675
48791
  for (const key of Object.keys(types)) {
48676
48792
  const node = types[key];
48677
- node._ownerScope = scope;
48678
- 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;
48679
48795
  }
48680
48796
  for (const key of Object.keys(declares)) {
48681
- declares[key]._ownerScope = scope;
48797
+ if (!declares[key]._ownerScope) declares[key]._ownerScope = scope;
48682
48798
  }
48683
48799
  }
48684
48800
  function recordType(node, types, declares, overwriteId) {
@@ -48873,7 +48989,11 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
48873
48989
  return [UNKNOWN_TYPE];
48874
48990
  }
48875
48991
  case "TSTypeReference": {
48876
- const resolved = resolveTypeReference(ctx, node, scope);
48992
+ let resolved;
48993
+ try {
48994
+ resolved = resolveTypeReference(ctx, node, scope);
48995
+ } catch (e) {
48996
+ }
48877
48997
  if (resolved) {
48878
48998
  if (resolved.type === "TSTypeAliasDeclaration") {
48879
48999
  if (resolved.typeAnnotation.type === "TSFunctionType") {
@@ -48993,6 +49113,33 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
48993
49113
  return ["Map"];
48994
49114
  case "ReadonlySet":
48995
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
+ }
48996
49143
  case "NonNullable":
48997
49144
  if (node.typeParameters && node.typeParameters.params[0]) {
48998
49145
  return inferRuntimeType(
@@ -50929,7 +51076,7 @@ var __spreadValues = (a, b) => {
50929
51076
  }
50930
51077
  return a;
50931
51078
  };
50932
- const version = "3.5.33";
51079
+ const version = "3.5.34";
50933
51080
  const parseCache = parseCache$1;
50934
51081
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
50935
51082
  const walk = walk$2;