@stencil/core 4.43.4 → 4.43.5-dev.1780036012.06258c8

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/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v4.43.4 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v4.43.5-dev.1780036012.06258c8 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v4.43.4 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v4.43.5-dev.1780036012.06258c8 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "4.43.4",
3
+ "version": "4.43.5-dev.1780036012.06258c8",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "4.43.4",
3
+ "version": "4.43.5-dev.1780036012.06258c8",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Compiler v4.43.4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Compiler v4.43.5-dev.1780036012.06258c8 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -4036,7 +4036,7 @@ var require_typescript_5_8_3_bundle_cache_min = __commonJS({
4036
4036
  isShorthandAmbientModuleSymbol: () => isShorthandAmbientModuleSymbol,
4037
4037
  isShorthandPropertyAssignment: () => isShorthandPropertyAssignment,
4038
4038
  isSideEffectImport: () => isSideEffectImport,
4039
- isSignedNumericLiteral: () => isSignedNumericLiteral,
4039
+ isSignedNumericLiteral: () => isSignedNumericLiteral2,
4040
4040
  isSimpleCopiableExpression: () => isSimpleCopiableExpression,
4041
4041
  isSimpleInlineableExpression: () => isSimpleInlineableExpression,
4042
4042
  isSimpleParameterList: () => isSimpleParameterList,
@@ -22357,7 +22357,7 @@ ${lanes.join("\n")}
22357
22357
  function isStringOrNumericLiteralLike(node) {
22358
22358
  return isStringLiteralLike(node) || isNumericLiteral(node);
22359
22359
  }
22360
- function isSignedNumericLiteral(node) {
22360
+ function isSignedNumericLiteral2(node) {
22361
22361
  return isPrefixUnaryExpression(node) && (node.operator === 40 || node.operator === 41) && isNumericLiteral(node.operand);
22362
22362
  }
22363
22363
  function hasDynamicName(declaration) {
@@ -22369,7 +22369,7 @@ ${lanes.join("\n")}
22369
22369
  return false;
22370
22370
  }
22371
22371
  const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression;
22372
- return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral(expr);
22372
+ return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral2(expr);
22373
22373
  }
22374
22374
  function getPropertyNameForPropertyNameNode(name) {
22375
22375
  switch (name.kind) {
@@ -22385,7 +22385,7 @@ ${lanes.join("\n")}
22385
22385
  const nameExpression = name.expression;
22386
22386
  if (isStringOrNumericLiteralLike(nameExpression)) {
22387
22387
  return escapeLeadingUnderscores(nameExpression.text);
22388
- } else if (isSignedNumericLiteral(nameExpression)) {
22388
+ } else if (isSignedNumericLiteral2(nameExpression)) {
22389
22389
  if (nameExpression.operator === 41) {
22390
22390
  return tokenToString(nameExpression.operator) + nameExpression.operand.text;
22391
22391
  }
@@ -52330,7 +52330,7 @@ ${lanes.join("\n")}
52330
52330
  if (isStringOrNumericLiteralLike(nameExpression)) {
52331
52331
  return escapeLeadingUnderscores(nameExpression.text);
52332
52332
  }
52333
- if (isSignedNumericLiteral(nameExpression)) {
52333
+ if (isSignedNumericLiteral2(nameExpression)) {
52334
52334
  return tokenToString(nameExpression.operator) + nameExpression.operand.text;
52335
52335
  } else {
52336
52336
  Debug.fail("Only computed properties with literal names have declaration names");
@@ -198563,7 +198563,7 @@ ${options.prefix}` : "\n" : options.prefix
198563
198563
  isShorthandAmbientModuleSymbol: () => isShorthandAmbientModuleSymbol,
198564
198564
  isShorthandPropertyAssignment: () => isShorthandPropertyAssignment,
198565
198565
  isSideEffectImport: () => isSideEffectImport,
198566
- isSignedNumericLiteral: () => isSignedNumericLiteral,
198566
+ isSignedNumericLiteral: () => isSignedNumericLiteral2,
198567
198567
  isSimpleCopiableExpression: () => isSimpleCopiableExpression,
198568
198568
  isSimpleInlineableExpression: () => isSimpleInlineableExpression,
198569
198569
  isSimpleParameterList: () => isSimpleParameterList,
@@ -212454,6 +212454,7 @@ var require_tokenize = __commonJS({
212454
212454
  let pos = 0;
212455
212455
  let buffer = [];
212456
212456
  let returned = [];
212457
+ let lastBadParen = -1;
212457
212458
  function position() {
212458
212459
  return pos;
212459
212460
  }
@@ -212518,10 +212519,13 @@ var require_tokenize = __commonJS({
212518
212519
  } while (escaped);
212519
212520
  currentToken = ["brackets", css.slice(pos, next + 1), pos, next];
212520
212521
  pos = next;
212522
+ } else if (pos <= lastBadParen) {
212523
+ currentToken = ["(", "(", pos];
212521
212524
  } else {
212522
212525
  next = css.indexOf(")", pos + 1);
212523
212526
  content = css.slice(pos, next + 1);
212524
212527
  if (next === -1 || RE_BAD_BRACKET.test(content)) {
212528
+ lastBadParen = next === -1 ? length : next;
212525
212529
  currentToken = ["(", "(", pos];
212526
212530
  } else {
212527
212531
  currentToken = ["brackets", content, pos, next];
@@ -212799,6 +212803,13 @@ var require_stringifier = __commonJS({
212799
212803
  "node_modules/postcss/lib/stringifier.js"(exports2, module2) {
212800
212804
  "use strict";
212801
212805
  init_import_meta_url();
212806
+ var STYLE_TAG = /(<)(\/?style\b)/gi;
212807
+ var COMMENT_OPEN = /(<)(!--)/g;
212808
+ function escapeHTMLInCSS(str) {
212809
+ if (typeof str !== "string") return str;
212810
+ if (!str.includes("<")) return str;
212811
+ return str.replace(STYLE_TAG, "\\3c $2").replace(COMMENT_OPEN, "\\3c $2");
212812
+ }
212802
212813
  var DEFAULT_RAW = {
212803
212814
  after: "\n",
212804
212815
  beforeClose: "\n",
@@ -212821,18 +212832,19 @@ var require_stringifier = __commonJS({
212821
212832
  this.builder = builder;
212822
212833
  }
212823
212834
  atrule(node, semicolon3) {
212835
+ let raws = node.raws;
212824
212836
  let name = "@" + node.name;
212825
212837
  let params = node.params ? this.rawValue(node, "params") : "";
212826
- if (typeof node.raws.afterName !== "undefined") {
212827
- name += node.raws.afterName;
212838
+ if (typeof raws.afterName !== "undefined") {
212839
+ name += raws.afterName;
212828
212840
  } else if (params) {
212829
212841
  name += " ";
212830
212842
  }
212831
212843
  if (node.nodes) {
212832
212844
  this.block(node, name + params);
212833
212845
  } else {
212834
- let end = (node.raws.between || "") + (semicolon3 ? ";" : "");
212835
- this.builder(name + params + end, node);
212846
+ let end = (raws.between || "") + (semicolon3 ? ";" : "");
212847
+ this.builder(escapeHTMLInCSS(name + params + end), node);
212836
212848
  }
212837
212849
  }
212838
212850
  beforeAfter(node, detect) {
@@ -212861,45 +212873,53 @@ var require_stringifier = __commonJS({
212861
212873
  return value;
212862
212874
  }
212863
212875
  block(node, start) {
212864
- let between = this.raw(node, "between", "beforeOpen");
212865
- this.builder(start + between + "{", node, "start");
212876
+ let raws = node.raws;
212877
+ let between = typeof raws.between !== "undefined" ? raws.between : this.raw(node, "between", "beforeOpen");
212878
+ this.builder(escapeHTMLInCSS(start + between) + "{", node, "start");
212866
212879
  let after;
212867
212880
  if (node.nodes && node.nodes.length) {
212868
212881
  this.body(node);
212869
- after = this.raw(node, "after");
212882
+ after = typeof raws.after !== "undefined" ? raws.after : this.raw(node, "after");
212870
212883
  } else {
212871
- after = this.raw(node, "after", "emptyBody");
212884
+ after = typeof raws.after !== "undefined" ? raws.after : this.raw(node, "after", "emptyBody");
212872
212885
  }
212873
- if (after) this.builder(after);
212886
+ if (after) this.builder(escapeHTMLInCSS(after));
212874
212887
  this.builder("}", node, "end");
212875
212888
  }
212876
212889
  body(node) {
212877
- let last = node.nodes.length - 1;
212890
+ let nodes = node.nodes;
212891
+ let last = nodes.length - 1;
212878
212892
  while (last > 0) {
212879
- if (node.nodes[last].type !== "comment") break;
212893
+ if (nodes[last].type !== "comment") break;
212880
212894
  last -= 1;
212881
212895
  }
212882
212896
  let semicolon3 = this.raw(node, "semicolon");
212883
- for (let i = 0; i < node.nodes.length; i++) {
212884
- let child = node.nodes[i];
212885
- let before = this.raw(child, "before");
212886
- if (before) this.builder(before);
212897
+ let isDocument = node.type === "document";
212898
+ for (let i = 0; i < nodes.length; i++) {
212899
+ let child = nodes[i];
212900
+ let before = child.raws.before;
212901
+ if (typeof before === "undefined") {
212902
+ before = this.raw(child, "before");
212903
+ }
212904
+ if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before));
212887
212905
  this.stringify(child, last !== i || semicolon3);
212888
212906
  }
212889
212907
  }
212890
212908
  comment(node) {
212891
- let left = this.raw(node, "left", "commentLeft");
212892
- let right = this.raw(node, "right", "commentRight");
212893
- this.builder("/*" + left + node.text + right + "*/", node);
212909
+ let raws = node.raws;
212910
+ let left = typeof raws.left !== "undefined" ? raws.left : this.raw(node, "left", "commentLeft");
212911
+ let right = typeof raws.right !== "undefined" ? raws.right : this.raw(node, "right", "commentRight");
212912
+ this.builder(escapeHTMLInCSS("/*" + left + node.text + right + "*/"), node);
212894
212913
  }
212895
212914
  decl(node, semicolon3) {
212896
- let between = this.raw(node, "between", "colon");
212915
+ let raws = node.raws;
212916
+ let between = typeof raws.between !== "undefined" ? raws.between : this.raw(node, "between", "colon");
212897
212917
  let string = node.prop + between + this.rawValue(node, "value");
212898
212918
  if (node.important) {
212899
- string += node.raws.important || " !important";
212919
+ string += raws.important || " !important";
212900
212920
  }
212901
212921
  if (semicolon3) string += ";";
212902
- this.builder(string, node);
212922
+ this.builder(escapeHTMLInCSS(string), node);
212903
212923
  }
212904
212924
  document(node) {
212905
212925
  this.body(node);
@@ -212922,9 +212942,9 @@ var require_stringifier = __commonJS({
212922
212942
  }
212923
212943
  if (!parent) return DEFAULT_RAW[detect];
212924
212944
  let root2 = node.root();
212925
- if (!root2.rawCache) root2.rawCache = {};
212926
- if (typeof root2.rawCache[detect] !== "undefined") {
212927
- return root2.rawCache[detect];
212945
+ let cache = root2.rawCache || (root2.rawCache = {});
212946
+ if (typeof cache[detect] !== "undefined") {
212947
+ return cache[detect];
212928
212948
  }
212929
212949
  if (detect === "before" || detect === "after") {
212930
212950
  return this.beforeAfter(node, detect);
@@ -212940,7 +212960,7 @@ var require_stringifier = __commonJS({
212940
212960
  }
212941
212961
  }
212942
212962
  if (typeof value === "undefined") value = DEFAULT_RAW[detect];
212943
- root2.rawCache[detect] = value;
212963
+ cache[detect] = value;
212944
212964
  return value;
212945
212965
  }
212946
212966
  rawBeforeClose(root2) {
@@ -213077,12 +213097,16 @@ var require_stringifier = __commonJS({
213077
213097
  }
213078
213098
  root(node) {
213079
213099
  this.body(node);
213080
- if (node.raws.after) this.builder(node.raws.after);
213100
+ if (node.raws.after) {
213101
+ let after = node.raws.after;
213102
+ let isDocument = node.parent && node.parent.type === "document";
213103
+ this.builder(isDocument ? after : escapeHTMLInCSS(after));
213104
+ }
213081
213105
  }
213082
213106
  rule(node) {
213083
213107
  this.block(node, this.rawValue(node, "selector"));
213084
213108
  if (node.raws.ownSemicolon) {
213085
- this.builder(node.raws.ownSemicolon, node, "end");
213109
+ this.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, "end");
213086
213110
  }
213087
213111
  }
213088
213112
  stringify(node, semicolon3) {
@@ -215947,6 +215971,7 @@ var require_previous_map = __commonJS({
215947
215971
  var PreviousMap = class {
215948
215972
  constructor(css, opts) {
215949
215973
  if (opts.map === false) return;
215974
+ if (opts.unsafeMap) this.unsafeMap = true;
215950
215975
  this.loadAnnotation(css);
215951
215976
  this.inline = this.startWith(this.annotation, "data:");
215952
215977
  let prev = opts.map ? opts.map.prev : void 0;
@@ -215959,7 +215984,7 @@ var require_previous_map = __commonJS({
215959
215984
  }
215960
215985
  consumer() {
215961
215986
  if (!this.consumerCache) {
215962
- this.consumerCache = new SourceMapConsumer2(this.text);
215987
+ this.consumerCache = new SourceMapConsumer2(this.json || this.text);
215963
215988
  }
215964
215989
  return this.consumerCache;
215965
215990
  }
@@ -215976,7 +216001,8 @@ var require_previous_map = __commonJS({
215976
216001
  if (baseUriMatch) {
215977
216002
  return fromBase64(text.substr(baseUriMatch[0].length));
215978
216003
  }
215979
- let encoding = text.match(/data:application\/json;([^,]+),/)[1];
216004
+ let encoding = text.slice("data:application/json;".length);
216005
+ encoding = encoding.slice(0, encoding.indexOf(","));
215980
216006
  throw new Error("Unsupported source map encoding " + encoding);
215981
216007
  }
215982
216008
  getAnnotationURL(sourceMapString) {
@@ -215995,7 +216021,12 @@ var require_previous_map = __commonJS({
215995
216021
  this.annotation = this.getAnnotationURL(css.substring(start, end));
215996
216022
  }
215997
216023
  }
215998
- loadFile(path7) {
216024
+ loadFile(path7, cssFile, trusted) {
216025
+ if (!trusted && !this.unsafeMap) {
216026
+ if (!/\.map$/i.test(path7)) {
216027
+ return void 0;
216028
+ }
216029
+ }
215999
216030
  this.root = dirname39(path7);
216000
216031
  if (existsSync2(path7)) {
216001
216032
  this.mapFile = path7;
@@ -216010,7 +216041,7 @@ var require_previous_map = __commonJS({
216010
216041
  } else if (typeof prev === "function") {
216011
216042
  let prevPath = prev(file);
216012
216043
  if (prevPath) {
216013
- let map2 = this.loadFile(prevPath);
216044
+ let map2 = this.loadFile(prevPath, file, true);
216014
216045
  if (!map2) {
216015
216046
  throw new Error(
216016
216047
  "Unable to load previous source map: " + prevPath.toString()
@@ -216034,7 +216065,15 @@ var require_previous_map = __commonJS({
216034
216065
  } else if (this.annotation) {
216035
216066
  let map2 = this.annotation;
216036
216067
  if (file) map2 = join3(dirname39(file), map2);
216037
- return this.loadFile(map2);
216068
+ let unknown = this.loadFile(map2, file, false);
216069
+ if (unknown) {
216070
+ try {
216071
+ this.json = JSON.parse(unknown.replace(/^\)]}'[^\n]*\n/, ""));
216072
+ } catch {
216073
+ return void 0;
216074
+ }
216075
+ }
216076
+ return unknown;
216038
216077
  }
216039
216078
  }
216040
216079
  startWith(string, start) {
@@ -216167,7 +216206,15 @@ var require_input = __commonJS({
216167
216206
  opts.plugin
216168
216207
  );
216169
216208
  }
216170
- result2.input = { column, endColumn, endLine, endOffset, line, offset, source: this.css };
216209
+ result2.input = {
216210
+ column,
216211
+ endColumn,
216212
+ endLine,
216213
+ endOffset,
216214
+ line,
216215
+ offset,
216216
+ source: this.css
216217
+ };
216171
216218
  if (this.file) {
216172
216219
  if (pathToFileURL2) {
216173
216220
  result2.input.url = pathToFileURL2(this.file).toString();
@@ -216537,7 +216584,15 @@ var require_map_generator = __commonJS({
216537
216584
  }
216538
216585
  }
216539
216586
  } else if (this.css) {
216540
- this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, "");
216587
+ let startIndex;
216588
+ while ((startIndex = this.css.lastIndexOf("/*#")) !== -1) {
216589
+ let endIndex = this.css.indexOf("*/", startIndex + 3);
216590
+ if (endIndex === -1) break;
216591
+ while (startIndex > 0 && this.css[startIndex - 1] === "\n") {
216592
+ startIndex--;
216593
+ }
216594
+ this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2);
216595
+ }
216541
216596
  }
216542
216597
  }
216543
216598
  generate() {
@@ -216946,7 +217001,7 @@ var require_parser = __commonJS({
216946
217001
  node.source.end = this.getPosition(token[3] || token[2]);
216947
217002
  node.source.end.offset++;
216948
217003
  let text = token[1].slice(2, -2);
216949
- if (/^\s*$/.test(text)) {
217004
+ if (!text.trim()) {
216950
217005
  node.text = "";
216951
217006
  node.raws.left = text;
216952
217007
  node.raws.right = "";
@@ -217774,6 +217829,15 @@ var require_lazy_result = __commonJS({
217774
217829
  if (opts.syntax) str = opts.syntax.stringify;
217775
217830
  if (opts.stringifier) str = opts.stringifier;
217776
217831
  if (str.stringify) str = str.stringify;
217832
+ let rootSource = this.result.root.source;
217833
+ if (opts.map === void 0 && !(rootSource && rootSource.input && rootSource.input.map)) {
217834
+ let result2 = "";
217835
+ str(this.result.root, (i) => {
217836
+ result2 += i;
217837
+ });
217838
+ this.result.css = result2;
217839
+ return this.result;
217840
+ }
217777
217841
  let map2 = new MapGenerator(str, this.result.root, this.result.opts);
217778
217842
  let data = map2.generate();
217779
217843
  this.result.css = data[0];
@@ -217983,9 +218047,8 @@ var require_no_work_result = __commonJS({
217983
218047
  this._css = css;
217984
218048
  this._opts = opts;
217985
218049
  this._map = void 0;
217986
- let root2;
217987
218050
  let str = stringify4;
217988
- this.result = new Result2(this._processor, root2, this._opts);
218051
+ this.result = new Result2(this._processor, void 0, this._opts);
217989
218052
  this.result.css = css;
217990
218053
  let self2 = this;
217991
218054
  Object.defineProperty(this.result, "root", {
@@ -217993,7 +218056,7 @@ var require_no_work_result = __commonJS({
217993
218056
  return self2.root;
217994
218057
  }
217995
218058
  });
217996
- let map2 = new MapGenerator(str, root2, this._opts, css);
218059
+ let map2 = new MapGenerator(str, void 0, this._opts, css);
217997
218060
  if (map2.isMap()) {
217998
218061
  let [generatedCSS, generatedMap] = map2.generate();
217999
218062
  if (generatedCSS) {
@@ -218054,7 +218117,7 @@ var require_processor = __commonJS({
218054
218117
  var Root2 = require_root();
218055
218118
  var Processor2 = class {
218056
218119
  constructor(plugins = []) {
218057
- this.version = "8.5.6";
218120
+ this.version = "8.5.13";
218058
218121
  this.plugins = this.normalize(plugins);
218059
218122
  }
218060
218123
  normalize(plugins) {
@@ -247708,16 +247771,16 @@ var import_typescript72 = __toESM(require_typescript_5_8_3_bundle_cache_min());
247708
247771
 
247709
247772
  // src/version.ts
247710
247773
  init_import_meta_url();
247711
- var buildId = "1776084048";
247774
+ var buildId = "1780036012";
247712
247775
  var minfyJsId = "terser5.37.0_7";
247713
- var optimizeCssId = "autoprefixer10.4.19_postcss8.5.6_7";
247776
+ var optimizeCssId = "autoprefixer10.4.19_postcss8.5.13_7";
247714
247777
  var parse5Version = "7.2.1";
247715
247778
  var rollupVersion = "4.44.0";
247716
247779
  var jqueryVersion = "4.0.0-pre";
247717
247780
  var terserVersion = "5.37.0";
247718
247781
  var typescriptVersion = "5.8.3";
247719
- var vermoji = "\u{1F3DD}";
247720
- var version = "4.43.4";
247782
+ var vermoji = "\u{1F48D}";
247783
+ var version = "4.43.5-dev.1780036012.06258c8";
247721
247784
  var versions = {
247722
247785
  stencil: version,
247723
247786
  parse5: parse5Version,
@@ -269095,7 +269158,10 @@ var workerPlugin = (config, compilerCtx, buildCtx, platform, inlineWorkers) => {
269095
269158
  name: "workerPlugin",
269096
269159
  transform(_, id) {
269097
269160
  if (id.endsWith("?worker") || id.endsWith("?worker-inline")) {
269098
- return getMockedWorkerMain();
269161
+ return {
269162
+ code: getMockedWorkerMain(),
269163
+ map: { mappings: "" }
269164
+ };
269099
269165
  }
269100
269166
  return null;
269101
269167
  }
@@ -269145,6 +269211,7 @@ var workerPlugin = (config, compilerCtx, buildCtx, platform, inlineWorkers) => {
269145
269211
  dependencies.forEach((id2) => this.addWatchFile(id2));
269146
269212
  return {
269147
269213
  code: getWorkerMain(referenceId, workerName, workerMsgId),
269214
+ map: { mappings: "" },
269148
269215
  moduleSideEffects: false
269149
269216
  };
269150
269217
  } else if (id.endsWith("?worker-inline")) {
@@ -269166,6 +269233,7 @@ var workerPlugin = (config, compilerCtx, buildCtx, platform, inlineWorkers) => {
269166
269233
  dependencies.forEach((id2) => this.addWatchFile(id2));
269167
269234
  return {
269168
269235
  code: getInlineWorker(referenceId, workerName, workerMsgId),
269236
+ map: { mappings: "" },
269169
269237
  moduleSideEffects: false
269170
269238
  };
269171
269239
  }
@@ -269176,11 +269244,13 @@ var workerPlugin = (config, compilerCtx, buildCtx, platform, inlineWorkers) => {
269176
269244
  if (inlineWorkers) {
269177
269245
  return {
269178
269246
  code: getInlineWorkerProxy(workerEntryPath, worker.workerMsgId, worker.exports),
269247
+ map: { mappings: "" },
269179
269248
  moduleSideEffects: false
269180
269249
  };
269181
269250
  } else {
269182
269251
  return {
269183
269252
  code: getWorkerProxy(workerEntryPath, worker.exports),
269253
+ map: { mappings: "" },
269184
269254
  moduleSideEffects: false
269185
269255
  };
269186
269256
  }
@@ -269435,7 +269505,7 @@ var getWorkerMain = (referenceId, workerName, workerMsgId) => {
269435
269505
  import { createWorker } from '${WORKER_HELPER_ID}';
269436
269506
  export const workerName = '${workerName}';
269437
269507
  export const workerMsgId = '${workerMsgId}';
269438
- export const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${referenceId};
269508
+ export const workerPath = import.meta.ROLLUP_FILE_URL_${referenceId};
269439
269509
  export const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);
269440
269510
  `;
269441
269511
  };
@@ -269444,7 +269514,7 @@ var getInlineWorker = (referenceId, workerName, workerMsgId) => {
269444
269514
  import { createWorker } from '${WORKER_HELPER_ID}';
269445
269515
  export const workerName = '${workerName}';
269446
269516
  export const workerMsgId = '${workerMsgId}';
269447
- export const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${referenceId};
269517
+ export const workerPath = import.meta.ROLLUP_FILE_URL_${referenceId};
269448
269518
  export let worker;
269449
269519
  try {
269450
269520
  // first try directly starting the worker with the URL
@@ -279933,7 +280003,7 @@ var parsePropDecorator = (config, diagnostics, typeChecker, program3, prop, deco
279933
280003
  propMeta.attribute = getAttributeName(propName, propOptions);
279934
280004
  }
279935
280005
  if (import_typescript52.default.isPropertyDeclaration(prop) && prop.initializer) {
279936
- propMeta.defaultValue = prop.initializer.getText();
280006
+ propMeta.defaultValue = resolveInitializerText(prop.initializer, typeChecker);
279937
280007
  } else if (import_typescript52.default.isGetAccessorDeclaration(prop)) {
279938
280008
  const returnStatement3 = (_b = prop.body) == null ? void 0 : _b.statements.find((st) => import_typescript52.default.isReturnStatement(st));
279939
280009
  const returnExpression = returnStatement3.expression;
@@ -279943,7 +280013,7 @@ var parsePropDecorator = (config, diagnostics, typeChecker, program3, prop, deco
279943
280013
  const nameToFind = returnExpression.name.getText();
279944
280014
  const foundProp = findGetProp(nameToFind, newMembers);
279945
280015
  if (foundProp && foundProp.initializer) {
279946
- propMeta.defaultValue = foundProp.initializer.getText();
280016
+ propMeta.defaultValue = resolveInitializerText(foundProp.initializer, typeChecker);
279947
280017
  if (propMeta.type === "unknown") {
279948
280018
  const type2 = typeChecker.getTypeAtLocation(foundProp);
279949
280019
  propMeta.type = propTypeFromTSType(type2);
@@ -280063,6 +280133,124 @@ var findSetter = (propName, members) => {
280063
280133
  var findGetProp = (propName, members) => {
280064
280134
  return members.find((m) => import_typescript52.default.isPropertyDeclaration(m) && m.name.getText() === propName);
280065
280135
  };
280136
+ var MAX_RESOLVE_DEPTH = 5;
280137
+ var resolveInitializerText = (node, typeChecker) => {
280138
+ const resolved = resolveLiteralText(node, typeChecker, 0);
280139
+ return resolved != null ? resolved : node.getText();
280140
+ };
280141
+ var resolveLiteralText = (node, typeChecker, depth) => {
280142
+ if (depth > MAX_RESOLVE_DEPTH) {
280143
+ return void 0;
280144
+ }
280145
+ node = unwrapValuePreservingWrappers(node);
280146
+ if (isPrimitiveLiteral(node)) {
280147
+ return node.getText();
280148
+ }
280149
+ if (import_typescript52.default.isObjectLiteralExpression(node) || import_typescript52.default.isArrayLiteralExpression(node)) {
280150
+ return node.getText();
280151
+ }
280152
+ if (import_typescript52.default.isIdentifier(node)) {
280153
+ const init = getConstVariableInitializer(node, typeChecker);
280154
+ if (init) {
280155
+ return resolveLiteralText(init, typeChecker, depth + 1);
280156
+ }
280157
+ if (node.text === "undefined") {
280158
+ return "undefined";
280159
+ }
280160
+ return void 0;
280161
+ }
280162
+ if (import_typescript52.default.isPropertyAccessExpression(node)) {
280163
+ const obj = resolveObjectLiteral(node.expression, typeChecker, depth + 1);
280164
+ const prop = obj && findObjectLiteralMember(obj, node.name.text, typeChecker);
280165
+ return prop ? resolveLiteralText(prop, typeChecker, depth + 1) : void 0;
280166
+ }
280167
+ if (import_typescript52.default.isElementAccessExpression(node)) {
280168
+ const arg = unwrapValuePreservingWrappers(node.argumentExpression);
280169
+ let key;
280170
+ if (import_typescript52.default.isStringLiteralLike(arg)) {
280171
+ key = arg.text;
280172
+ } else if (import_typescript52.default.isNumericLiteral(arg)) {
280173
+ key = arg.text;
280174
+ }
280175
+ if (key === void 0) {
280176
+ return void 0;
280177
+ }
280178
+ const obj = resolveObjectLiteral(node.expression, typeChecker, depth + 1);
280179
+ const prop = obj && findObjectLiteralMember(obj, key, typeChecker);
280180
+ return prop ? resolveLiteralText(prop, typeChecker, depth + 1) : void 0;
280181
+ }
280182
+ return void 0;
280183
+ };
280184
+ var unwrapValuePreservingWrappers = (node) => {
280185
+ while (import_typescript52.default.isAsExpression(node) || import_typescript52.default.isParenthesizedExpression(node) || import_typescript52.default.isTypeAssertionExpression(node) || import_typescript52.default.isSatisfiesExpression(node) || import_typescript52.default.isNonNullExpression(node)) {
280186
+ node = node.expression;
280187
+ }
280188
+ return node;
280189
+ };
280190
+ var isPrimitiveLiteral = (node) => {
280191
+ return import_typescript52.default.isStringLiteralLike(node) || import_typescript52.default.isNumericLiteral(node) || isSignedNumericLiteral(node) || node.kind === import_typescript52.default.SyntaxKind.TrueKeyword || node.kind === import_typescript52.default.SyntaxKind.FalseKeyword || node.kind === import_typescript52.default.SyntaxKind.NullKeyword;
280192
+ };
280193
+ var isSignedNumericLiteral = (node) => {
280194
+ return import_typescript52.default.isPrefixUnaryExpression(node) && (node.operator === import_typescript52.default.SyntaxKind.MinusToken || node.operator === import_typescript52.default.SyntaxKind.PlusToken) && import_typescript52.default.isNumericLiteral(node.operand);
280195
+ };
280196
+ var resolveConstSymbolInitializer = (symbol, typeChecker) => {
280197
+ var _a3;
280198
+ if (symbol && (symbol.flags & import_typescript52.default.SymbolFlags.Alias) !== 0) {
280199
+ symbol = typeChecker.getAliasedSymbol(symbol);
280200
+ }
280201
+ const decl2 = (_a3 = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a3.find(import_typescript52.default.isVariableDeclaration);
280202
+ if (!decl2 || !decl2.initializer) {
280203
+ return void 0;
280204
+ }
280205
+ const list2 = decl2.parent;
280206
+ if (!import_typescript52.default.isVariableDeclarationList(list2) || (list2.flags & import_typescript52.default.NodeFlags.Const) === 0) {
280207
+ return void 0;
280208
+ }
280209
+ return decl2.initializer;
280210
+ };
280211
+ var getConstVariableInitializer = (node, typeChecker) => {
280212
+ return resolveConstSymbolInitializer(typeChecker.getSymbolAtLocation(node), typeChecker);
280213
+ };
280214
+ var resolveObjectLiteral = (node, typeChecker, depth) => {
280215
+ if (depth > MAX_RESOLVE_DEPTH) {
280216
+ return void 0;
280217
+ }
280218
+ node = unwrapValuePreservingWrappers(node);
280219
+ if (import_typescript52.default.isObjectLiteralExpression(node)) {
280220
+ return node;
280221
+ }
280222
+ if (import_typescript52.default.isIdentifier(node)) {
280223
+ const init = getConstVariableInitializer(node, typeChecker);
280224
+ if (init) {
280225
+ return resolveObjectLiteral(init, typeChecker, depth + 1);
280226
+ }
280227
+ }
280228
+ return void 0;
280229
+ };
280230
+ var findObjectLiteralMember = (obj, name, typeChecker) => {
280231
+ for (const member2 of obj.properties) {
280232
+ if (import_typescript52.default.isPropertyAssignment(member2)) {
280233
+ const memberName = getPropertyNameText(member2.name);
280234
+ if (memberName === name) {
280235
+ return member2.initializer;
280236
+ }
280237
+ continue;
280238
+ }
280239
+ if (import_typescript52.default.isShorthandPropertyAssignment(member2) && member2.name.text === name) {
280240
+ return resolveConstSymbolInitializer(typeChecker.getShorthandAssignmentValueSymbol(member2), typeChecker);
280241
+ }
280242
+ }
280243
+ return void 0;
280244
+ };
280245
+ var getPropertyNameText = (name) => {
280246
+ if (import_typescript52.default.isIdentifier(name) || import_typescript52.default.isPrivateIdentifier(name)) {
280247
+ return name.text;
280248
+ }
280249
+ if (import_typescript52.default.isStringLiteralLike(name) || import_typescript52.default.isNumericLiteral(name)) {
280250
+ return name.text;
280251
+ }
280252
+ return void 0;
280253
+ };
280066
280254
 
280067
280255
  // src/compiler/transformers/decorators-to-static/state-decorator.ts
280068
280256
  init_import_meta_url();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Dev Server Client v4.43.4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Dev Server Client v4.43.5-dev.1780036012.06258c8 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/dev-server/client/app-error.css
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/dev-server/client",
3
- "version": "4.43.4",
3
+ "version": "4.43.5-dev.1780036012.06258c8",
4
4
  "description": "Stencil Dev Server Client.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",