@stencil/core 4.45.5-dev.1795496749.4230782 → 4.45.5-dev.1795583145.2fb3997

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.
Files changed (38) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +97 -68
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +2 -2
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +2 -2
  12. package/internal/app-data/package.json +1 -1
  13. package/internal/app-globals/package.json +1 -1
  14. package/internal/client/index.js +4 -3
  15. package/internal/client/package.json +1 -1
  16. package/internal/client/patch-browser.js +1 -1
  17. package/internal/hydrate/index.js +4 -3
  18. package/internal/hydrate/package.json +1 -1
  19. package/internal/hydrate/runner.js +71 -5
  20. package/internal/package.json +1 -1
  21. package/internal/stencil-public-compiler.d.ts +8 -0
  22. package/internal/testing/index.js +3 -2
  23. package/internal/testing/package.json +1 -1
  24. package/mock-doc/index.cjs +71 -5
  25. package/mock-doc/index.d.ts +1 -0
  26. package/mock-doc/index.js +71 -5
  27. package/mock-doc/package.json +1 -1
  28. package/package.json +1 -1
  29. package/screenshot/index.js +1 -1
  30. package/screenshot/package.json +1 -1
  31. package/screenshot/pixel-match.js +1 -1
  32. package/sys/node/index.js +1 -1
  33. package/sys/node/package.json +1 -1
  34. package/sys/node/worker.js +1 -1
  35. package/testing/index.js +6 -1
  36. package/testing/package.json +1 -1
  37. package/testing/puppeteer/puppeteer-element.d.ts +1 -1
  38. package/testing/puppeteer/test/puppeteer-browser.spec.d.ts +1 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/client",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil internal client platform to be imported by the Stencil Compiler and internal runtime. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "exports": "./index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Client Patch Browser v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Client Patch Browser v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/client/client-patch-browser.ts
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Platform v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Platform v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -1335,7 +1335,7 @@ var isComplexType = (o) => {
1335
1335
 
1336
1336
  // src/runtime/vdom/h.ts
1337
1337
  var h = (nodeName, vnodeData, ...children) => {
1338
- if (typeof nodeName === "string") {
1338
+ if (typeof nodeName === "string" && nodeName.includes("-")) {
1339
1339
  nodeName = transformTag(nodeName);
1340
1340
  }
1341
1341
  let child = null;
@@ -1885,7 +1885,8 @@ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) =>
1885
1885
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1886
1886
  if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
1887
1887
  do {
1888
- if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1888
+ const ssrSlotName = slottedNode && slottedNode["getAttribute"] && slottedNode.getAttribute("s-sn");
1889
+ if (slottedNode && (ssrSlotName === slotName || (slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1889
1890
  slottedNode["s-sn"] = slotName;
1890
1891
  slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1891
1892
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/hydrate",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil internal hydrate platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Runner v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -531,7 +531,7 @@ var MockCSSStyleDeclaration = class {
531
531
  this._styles.clear();
532
532
  return;
533
533
  }
534
- cssText.split(";").forEach((rule) => {
534
+ splitDeclarations(cssText).forEach((rule) => {
535
535
  rule = rule.trim();
536
536
  if (rule.length > 0) {
537
537
  const splt = rule.split(":");
@@ -546,6 +546,39 @@ var MockCSSStyleDeclaration = class {
546
546
  });
547
547
  }
548
548
  };
549
+ function splitDeclarations(cssText) {
550
+ const declarations = [];
551
+ let current = "";
552
+ let depth = 0;
553
+ let quote = "";
554
+ for (let i = 0; i < cssText.length; i++) {
555
+ const char = cssText[i];
556
+ if (char === "\\" && i + 1 < cssText.length) {
557
+ current += char + cssText[++i];
558
+ continue;
559
+ }
560
+ if (quote) {
561
+ if (char === quote) {
562
+ quote = "";
563
+ }
564
+ } else if (char === '"' || char === "'") {
565
+ quote = char;
566
+ } else if (char === "(") {
567
+ depth++;
568
+ } else if (char === ")") {
569
+ if (depth > 0) {
570
+ depth--;
571
+ }
572
+ } else if (char === ";" && depth === 0) {
573
+ declarations.push(current);
574
+ current = "";
575
+ continue;
576
+ }
577
+ current += char;
578
+ }
579
+ declarations.push(current);
580
+ return declarations;
581
+ }
549
582
  function createCSSStyleDeclaration() {
550
583
  return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler);
551
584
  }
@@ -10737,7 +10770,7 @@ style="${escapeString(cssText, true)}">`;
10737
10770
  yield* streamToHtml(shadowRoot, opts, output);
10738
10771
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
10739
10772
  const childNodes = getChildNodes(node);
10740
- if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
10773
+ if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "" || hasOnlyRemovedComments(childNodes, opts))) {
10741
10774
  yield "\n";
10742
10775
  output.currentLineWidth = 0;
10743
10776
  for (let i = 0; i < output.indent; i++) {
@@ -10752,6 +10785,7 @@ style="${escapeString(cssText, true)}">`;
10752
10785
  const childNodeLength = childNodes.length;
10753
10786
  if (childNodeLength > 0) {
10754
10787
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
10788
+ } else if (hasOnlyRemovedComments(childNodes, opts)) {
10755
10789
  } else {
10756
10790
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_f = opts.indentSpaces) != null ? _f : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
10757
10791
  if (!isWithinWhitespaceSensitiveNode && ((_g = opts.indentSpaces) != null ? _g : 0) > 0 && ignoreTag === false) {
@@ -10868,8 +10902,7 @@ ${" ".repeat(output.indent)}<!--r.${sId.value}-->`;
10868
10902
  }
10869
10903
  } else if (node.nodeType === 8 /* COMMENT_NODE */) {
10870
10904
  const nodeValue = node.nodeValue;
10871
- const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
10872
- if (opts.removeHtmlComments && !isHydrateAnnotation) {
10905
+ if (isRemovedComment(node, opts)) {
10873
10906
  return;
10874
10907
  }
10875
10908
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_o = opts.indentSpaces) != null ? _o : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
@@ -10921,6 +10954,26 @@ function isWithinWhitespaceSensitive(node) {
10921
10954
  }
10922
10955
  return false;
10923
10956
  }
10957
+ function isRemovedComment(node, opts) {
10958
+ if (node.nodeType !== 8 /* COMMENT_NODE */ || !opts.removeHtmlComments) {
10959
+ return false;
10960
+ }
10961
+ const nodeValue = node.nodeValue;
10962
+ const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
10963
+ return !isHydrateAnnotation;
10964
+ }
10965
+ function hasOnlyRemovedComments(childNodes, opts) {
10966
+ let hasRemovedComment = false;
10967
+ for (let i = 0; i < childNodes.length; i++) {
10968
+ const childNode = childNodes[i];
10969
+ if (isRemovedComment(childNode, opts)) {
10970
+ hasRemovedComment = true;
10971
+ } else if (childNode.nodeType !== 3 /* TEXT_NODE */ || typeof childNode.nodeValue === "string" && childNode.nodeValue.trim() !== "") {
10972
+ return false;
10973
+ }
10974
+ }
10975
+ return hasRemovedComment;
10976
+ }
10924
10977
  function getChildNodes(node) {
10925
10978
  return node.__childNodes || node.childNodes;
10926
10979
  }
@@ -11763,6 +11816,19 @@ var MockElement = class extends MockNode2 {
11763
11816
  set title(value) {
11764
11817
  this.setAttributeNS(null, "title", value);
11765
11818
  }
11819
+ toggleAttribute(attrName, force) {
11820
+ const has = this.hasAttribute(attrName);
11821
+ if (force != null ? force : !has) {
11822
+ if (!has) {
11823
+ this.setAttribute(attrName, "");
11824
+ }
11825
+ return true;
11826
+ }
11827
+ if (has) {
11828
+ this.removeAttribute(attrName);
11829
+ }
11830
+ return false;
11831
+ }
11766
11832
  animate() {
11767
11833
  }
11768
11834
  onanimationstart() {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1962,6 +1962,14 @@ export interface TestingConfig extends JestConfig {
1962
1962
  * @default env.PUPPETEER_EXECUTABLE_PATH || env.CHROME_PATH || puppeteer.computeExecutablePath()
1963
1963
  */
1964
1964
  browserExecutablePath?: string;
1965
+ /**
1966
+ * Maximum time in milliseconds to wait for the browser to start when running e2e tests.
1967
+ * Increase this value if the browser intermittently fails to start with a
1968
+ * "Timed out ... while trying to connect to the browser" error, e.g. on a heavily loaded CI machine.
1969
+ * Pass `0` to disable the timeout. Has no effect when `browserWSEndpoint` is used.
1970
+ * @default 30000
1971
+ */
1972
+ browserLaunchTimeout?: number;
1965
1973
  /**
1966
1974
  * Url of remote Chrome instance to use instead of local Chrome.
1967
1975
  */
@@ -3463,7 +3463,7 @@ var hydrateScopedToShadow = (cmpMetas) => {
3463
3463
  // src/runtime/vdom/h.ts
3464
3464
  var import_app_data8 = require("@stencil/core/internal/app-data");
3465
3465
  var h = (nodeName, vnodeData, ...children) => {
3466
- if (typeof nodeName === "string") {
3466
+ if (typeof nodeName === "string" && nodeName.includes("-")) {
3467
3467
  nodeName = transformTag(nodeName);
3468
3468
  }
3469
3469
  let child = null;
@@ -4013,7 +4013,8 @@ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) =>
4013
4013
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
4014
4014
  if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
4015
4015
  do {
4016
- if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
4016
+ const ssrSlotName = slottedNode && slottedNode["getAttribute"] && slottedNode.getAttribute("s-sn");
4017
+ if (slottedNode && (ssrSlotName === slotName || (slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
4017
4018
  slottedNode["s-sn"] = slotName;
4018
4019
  slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
4019
4020
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/testing",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
@@ -262,7 +262,7 @@ var MockCSSStyleDeclaration = class {
262
262
  this._styles.clear();
263
263
  return;
264
264
  }
265
- cssText.split(";").forEach((rule) => {
265
+ splitDeclarations(cssText).forEach((rule) => {
266
266
  rule = rule.trim();
267
267
  if (rule.length > 0) {
268
268
  const splt = rule.split(":");
@@ -277,6 +277,39 @@ var MockCSSStyleDeclaration = class {
277
277
  });
278
278
  }
279
279
  };
280
+ function splitDeclarations(cssText) {
281
+ const declarations = [];
282
+ let current = "";
283
+ let depth = 0;
284
+ let quote = "";
285
+ for (let i = 0; i < cssText.length; i++) {
286
+ const char = cssText[i];
287
+ if (char === "\\" && i + 1 < cssText.length) {
288
+ current += char + cssText[++i];
289
+ continue;
290
+ }
291
+ if (quote) {
292
+ if (char === quote) {
293
+ quote = "";
294
+ }
295
+ } else if (char === '"' || char === "'") {
296
+ quote = char;
297
+ } else if (char === "(") {
298
+ depth++;
299
+ } else if (char === ")") {
300
+ if (depth > 0) {
301
+ depth--;
302
+ }
303
+ } else if (char === ";" && depth === 0) {
304
+ declarations.push(current);
305
+ current = "";
306
+ continue;
307
+ }
308
+ current += char;
309
+ }
310
+ declarations.push(current);
311
+ return declarations;
312
+ }
280
313
  function createCSSStyleDeclaration() {
281
314
  return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler);
282
315
  }
@@ -6288,7 +6321,7 @@ style="${escapeString(cssText, true)}">`;
6288
6321
  yield* streamToHtml(shadowRoot, opts, output);
6289
6322
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
6290
6323
  const childNodes = getChildNodes(node);
6291
- if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
6324
+ if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "" || hasOnlyRemovedComments(childNodes, opts))) {
6292
6325
  yield "\n";
6293
6326
  output.currentLineWidth = 0;
6294
6327
  for (let i = 0; i < output.indent; i++) {
@@ -6303,6 +6336,7 @@ style="${escapeString(cssText, true)}">`;
6303
6336
  const childNodeLength = childNodes.length;
6304
6337
  if (childNodeLength > 0) {
6305
6338
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
6339
+ } else if (hasOnlyRemovedComments(childNodes, opts)) {
6306
6340
  } else {
6307
6341
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_f = opts.indentSpaces) != null ? _f : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
6308
6342
  if (!isWithinWhitespaceSensitiveNode && ((_g = opts.indentSpaces) != null ? _g : 0) > 0 && ignoreTag === false) {
@@ -6419,8 +6453,7 @@ ${" ".repeat(output.indent)}<!--r.${sId.value}-->`;
6419
6453
  }
6420
6454
  } else if (node.nodeType === 8 /* COMMENT_NODE */) {
6421
6455
  const nodeValue = node.nodeValue;
6422
- const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
6423
- if (opts.removeHtmlComments && !isHydrateAnnotation) {
6456
+ if (isRemovedComment(node, opts)) {
6424
6457
  return;
6425
6458
  }
6426
6459
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_o = opts.indentSpaces) != null ? _o : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
@@ -6472,6 +6505,26 @@ function isWithinWhitespaceSensitive(node) {
6472
6505
  }
6473
6506
  return false;
6474
6507
  }
6508
+ function isRemovedComment(node, opts) {
6509
+ if (node.nodeType !== 8 /* COMMENT_NODE */ || !opts.removeHtmlComments) {
6510
+ return false;
6511
+ }
6512
+ const nodeValue = node.nodeValue;
6513
+ const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
6514
+ return !isHydrateAnnotation;
6515
+ }
6516
+ function hasOnlyRemovedComments(childNodes, opts) {
6517
+ let hasRemovedComment = false;
6518
+ for (let i = 0; i < childNodes.length; i++) {
6519
+ const childNode = childNodes[i];
6520
+ if (isRemovedComment(childNode, opts)) {
6521
+ hasRemovedComment = true;
6522
+ } else if (childNode.nodeType !== 3 /* TEXT_NODE */ || typeof childNode.nodeValue === "string" && childNode.nodeValue.trim() !== "") {
6523
+ return false;
6524
+ }
6525
+ }
6526
+ return hasRemovedComment;
6527
+ }
6475
6528
  function getChildNodes(node) {
6476
6529
  return node.__childNodes || node.childNodes;
6477
6530
  }
@@ -7314,6 +7367,19 @@ var MockElement = class extends MockNode2 {
7314
7367
  set title(value) {
7315
7368
  this.setAttributeNS(null, "title", value);
7316
7369
  }
7370
+ toggleAttribute(attrName, force) {
7371
+ const has = this.hasAttribute(attrName);
7372
+ if (force != null ? force : !has) {
7373
+ if (!has) {
7374
+ this.setAttribute(attrName, "");
7375
+ }
7376
+ return true;
7377
+ }
7378
+ if (has) {
7379
+ this.removeAttribute(attrName);
7380
+ }
7381
+ return false;
7382
+ }
7317
7383
  animate() {
7318
7384
  }
7319
7385
  onanimationstart() {
@@ -646,6 +646,7 @@ declare class MockElement extends MockNode {
646
646
  set textContent(value: string);
647
647
  get title(): string;
648
648
  set title(value: string);
649
+ toggleAttribute(attrName: string, force?: boolean): boolean;
649
650
  animate(): void;
650
651
  onanimationstart(): void;
651
652
  onanimationend(): void;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -210,7 +210,7 @@ var MockCSSStyleDeclaration = class {
210
210
  this._styles.clear();
211
211
  return;
212
212
  }
213
- cssText.split(";").forEach((rule) => {
213
+ splitDeclarations(cssText).forEach((rule) => {
214
214
  rule = rule.trim();
215
215
  if (rule.length > 0) {
216
216
  const splt = rule.split(":");
@@ -225,6 +225,39 @@ var MockCSSStyleDeclaration = class {
225
225
  });
226
226
  }
227
227
  };
228
+ function splitDeclarations(cssText) {
229
+ const declarations = [];
230
+ let current = "";
231
+ let depth = 0;
232
+ let quote = "";
233
+ for (let i = 0; i < cssText.length; i++) {
234
+ const char = cssText[i];
235
+ if (char === "\\" && i + 1 < cssText.length) {
236
+ current += char + cssText[++i];
237
+ continue;
238
+ }
239
+ if (quote) {
240
+ if (char === quote) {
241
+ quote = "";
242
+ }
243
+ } else if (char === '"' || char === "'") {
244
+ quote = char;
245
+ } else if (char === "(") {
246
+ depth++;
247
+ } else if (char === ")") {
248
+ if (depth > 0) {
249
+ depth--;
250
+ }
251
+ } else if (char === ";" && depth === 0) {
252
+ declarations.push(current);
253
+ current = "";
254
+ continue;
255
+ }
256
+ current += char;
257
+ }
258
+ declarations.push(current);
259
+ return declarations;
260
+ }
228
261
  function createCSSStyleDeclaration() {
229
262
  return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler);
230
263
  }
@@ -6236,7 +6269,7 @@ style="${escapeString(cssText, true)}">`;
6236
6269
  yield* streamToHtml(shadowRoot, opts, output);
6237
6270
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
6238
6271
  const childNodes = getChildNodes(node);
6239
- if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
6272
+ if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "" || hasOnlyRemovedComments(childNodes, opts))) {
6240
6273
  yield "\n";
6241
6274
  output.currentLineWidth = 0;
6242
6275
  for (let i = 0; i < output.indent; i++) {
@@ -6251,6 +6284,7 @@ style="${escapeString(cssText, true)}">`;
6251
6284
  const childNodeLength = childNodes.length;
6252
6285
  if (childNodeLength > 0) {
6253
6286
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
6287
+ } else if (hasOnlyRemovedComments(childNodes, opts)) {
6254
6288
  } else {
6255
6289
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_f = opts.indentSpaces) != null ? _f : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
6256
6290
  if (!isWithinWhitespaceSensitiveNode && ((_g = opts.indentSpaces) != null ? _g : 0) > 0 && ignoreTag === false) {
@@ -6367,8 +6401,7 @@ ${" ".repeat(output.indent)}<!--r.${sId.value}-->`;
6367
6401
  }
6368
6402
  } else if (node.nodeType === 8 /* COMMENT_NODE */) {
6369
6403
  const nodeValue = node.nodeValue;
6370
- const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
6371
- if (opts.removeHtmlComments && !isHydrateAnnotation) {
6404
+ if (isRemovedComment(node, opts)) {
6372
6405
  return;
6373
6406
  }
6374
6407
  const isWithinWhitespaceSensitiveNode = opts.newLines || ((_o = opts.indentSpaces) != null ? _o : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
@@ -6420,6 +6453,26 @@ function isWithinWhitespaceSensitive(node) {
6420
6453
  }
6421
6454
  return false;
6422
6455
  }
6456
+ function isRemovedComment(node, opts) {
6457
+ if (node.nodeType !== 8 /* COMMENT_NODE */ || !opts.removeHtmlComments) {
6458
+ return false;
6459
+ }
6460
+ const nodeValue = node.nodeValue;
6461
+ const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
6462
+ return !isHydrateAnnotation;
6463
+ }
6464
+ function hasOnlyRemovedComments(childNodes, opts) {
6465
+ let hasRemovedComment = false;
6466
+ for (let i = 0; i < childNodes.length; i++) {
6467
+ const childNode = childNodes[i];
6468
+ if (isRemovedComment(childNode, opts)) {
6469
+ hasRemovedComment = true;
6470
+ } else if (childNode.nodeType !== 3 /* TEXT_NODE */ || typeof childNode.nodeValue === "string" && childNode.nodeValue.trim() !== "") {
6471
+ return false;
6472
+ }
6473
+ }
6474
+ return hasRemovedComment;
6475
+ }
6423
6476
  function getChildNodes(node) {
6424
6477
  return node.__childNodes || node.childNodes;
6425
6478
  }
@@ -7262,6 +7315,19 @@ var MockElement = class extends MockNode2 {
7262
7315
  set title(value) {
7263
7316
  this.setAttributeNS(null, "title", value);
7264
7317
  }
7318
+ toggleAttribute(attrName, force) {
7319
+ const has = this.hasAttribute(attrName);
7320
+ if (force != null ? force : !has) {
7321
+ if (!has) {
7322
+ this.setAttribute(attrName, "");
7323
+ }
7324
+ return true;
7325
+ }
7326
+ if (has) {
7327
+ this.removeAttribute(attrName);
7328
+ }
7329
+ return false;
7330
+ }
7265
7331
  animate() {
7266
7332
  }
7267
7333
  onanimationstart() {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var Mo=Object.create;var pn=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Bo=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var Yr=r=>{throw TypeError(r)};var Uo=(r,e,t)=>e in r?pn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Ee=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Qr=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},Zr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ho(e))!jo.call(r,s)&&s!==t&&pn(r,s,{get:()=>e[s],enumerable:!(n=Fo(e,s))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?Mo(Bo(r)):{},Zr(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r)),zo=r=>Zr(pn({},"__esModule",{value:!0}),r);var Te=(r,e,t)=>Uo(r,typeof e!="symbol"?e+"":e,t),tr=(r,e,t)=>e.has(r)||Yr("Cannot "+t);var B=(r,e,t)=>(tr(r,e,"read from private field"),t?t.call(r):e.get(r)),Fe=(r,e,t)=>e.has(r)?Yr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),de=(r,e,t,n)=>(tr(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),le=(r,e,t)=>(tr(r,e,"access private method"),t);var ts=Ee((Vu,hn)=>{"use strict";var Wo=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Xo=typeof process<"u"&&process.platform==="win32",qr=typeof process<"u"&&process.platform==="linux",nr={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},_r=Object.assign({},nr,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),es=Object.assign({},nr,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:qr?"\u25B8":"\u276F",pointerSmall:qr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});hn.exports=Xo&&!Wo?_r:es;Reflect.defineProperty(hn.exports,"common",{enumerable:!1,value:nr});Reflect.defineProperty(hn.exports,"windows",{enumerable:!1,value:_r});Reflect.defineProperty(hn.exports,"other",{enumerable:!1,value:es})});var rs=Ee((Ju,rr)=>{"use strict";var Go=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Vo=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Jo=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,ns=()=>{let r={enabled:Jo(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,f)=>{c.includes(a)&&(c=c.replace(u,a+o));let p=o+c+a;return f?p.replace(/\r*\n/g,`${a}$&${o}`):p},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
5
5
  `),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=f=>n(f,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Vo,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Go(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=ts(),r.define=s,r};rr.exports=ns();rr.exports.create=ns});var vs=Ee((Id,ys)=>{"use strict";ys.exports=ms;function ms(r,e,t){r instanceof RegExp&&(r=hs(r,t)),e instanceof RegExp&&(e=hs(e,t));var n=gs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function hs(r,e){var t=e.match(r);return t?t[0]:null}ms.range=gs;function gs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;f>=0&&!a;)f==u?(n.push(f),u=t.indexOf(r,f+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var Cs=Ee((Md,Ts)=>{var bs=vs();Ts.exports=Ea;var Es="\0SLASH"+Math.random()+"\0",Ss="\0OPEN"+Math.random()+"\0",fr="\0CLOSE"+Math.random()+"\0",$s="\0COMMA"+Math.random()+"\0",xs="\0PERIOD"+Math.random()+"\0",pa=1e5,ha=4e6,ma=1e3,ga=1e3;function cr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ya(r){return r.split("\\\\").join(Es).split("\\{").join(Ss).split("\\}").join(fr).split("\\,").join($s).split("\\.").join(xs)}function va(r){return r.split(Es).join("\\").split(Ss).join("{").split(fr).join("}").split($s).join(",").split(xs).join(".")}function ur(r,e){for(var t=0;t<e.length;t++)r.push(e[t])}function ba(r){for(var e=[],t="";;){var n=bs("{","}",r);if(!n){var s=r.split(",");return s[0]=t+s[0],ur(e,s),e}var i=n.pre,o=n.body,a=n.post,u=i.split(",");if(u[0]=t+u[0],u[u.length-1]+="{"+o+"}",!a.length)return ur(e,u),e;t=u.pop(),ur(e,u),r=a}}function Ea(r,e){if(!r)return[];e=e||{};var t=e.max==null?pa:e.max,n=e.maxLength==null?ha:e.maxLength,s=e.maxDepth==null?ma:e.maxDepth,i=e.maxRewrites==null?ga:e.maxRewrites;return r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dr(ya(r),t,n,s,0,i,!0).map(va)}function Sa(r){return"{"+r+"}"}function $a(r){return/^-?0\d/.test(r)}function xa(r,e){return r<=e}function Ta(r,e){return r>=e}function gn(r,e,t,n,s,i){for(var o=[],a=0,u=0;u<r.length;u++)for(var c=0;c<t.length;c++){if(o.length>=n)return o;var f=r[u]+e+t[c];if(!(i&&!f)){if(a+f.length>s)return o;o.push(f),a+=f.length}}return o}function Ca(r,e,t,n){var s=r.split(/\.\./),i=[];if(s[0]===void 0||s[1]===void 0)return i;var o=cr(s[0]),a=cr(s[1]),u=Math.max(s[0].length,s[1].length),c=s.length===3&&s[2]!==void 0?Math.max(Math.abs(cr(s[2])),1):1,f=xa,p=a<o;p&&(c*=-1,f=Ta);for(var $=s.some($a),x=0,h=o;f(h,a)&&i.length<t;h+=c){var E;if(e)E=String.fromCharCode(h),E==="\\"&&(E="");else if(E=String(h),$){var T=u-E.length;if(T>0){var w=new Array(T+1).join("0");h<0?E="-"+w+E.slice(1):E=w+E}}if(x+E.length>n)break;i.push(E),x+=E.length}return i}function dr(r,e,t,n,s,i,o){if(s>n)return[r];for(var a=[""],u=0,c=!1,f=!0;;){let L=bs("{","}",r);if(!L)return gn(a,r,[""],e,t,c);let P=L.pre;if(/\$$/.test(P)){if(a=gn(a,P+"{"+L.body+"}",[""],e,t,c&&!L.post.length),f=!1,!L.post.length)break;r=L.post;continue}var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(L.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(L.body),x=p||$,h=L.body.indexOf(",")>=0;if(!x&&!h){if(u<i&&L.post.match(/,(?!,).*\}/)){u++,r=L.pre+"{"+L.body+fr+L.post,o=!0;continue}return gn(a,P+"{"+L.body+"}"+L.post,[""],e,t,c)}f&&(c=o&&!x,f=!1);var E;if(x)E=Ca(L.body,$,e,t);else{var T=ba(L.body);if(T.length===1&&T[0]!==void 0&&(T=dr(T[0],e,t,n,s+1,i,!1).map(Sa),T.length===1)){if(a=gn(a,P+T[0],[""],e,t,c&&!L.post.length),!L.post.length)break;r=L.post;continue}for(var w=c&&!L.post.length&&!P,C=0;w&&C<a.length;C++)a[C]&&(w=!1);E=[];var I=0;e:for(var A=0;A<T.length;A++)for(var g=dr(T[A],e,t,n,s+1,i,!1),S=0;S<g.length;S++){var R=g[S];if(!(w&&!R)){if(E.length>=e||I+R.length>t)break e;E.push(R),I+=R.length}}}if(a=gn(a,P,E,e,t,c&&!L.post.length),!L.post.length)break;r=L.post}return a}});var li=Ee((Hb,ai)=>{ai.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function f(p,$){try{var x=a[p]($),h=x.value}catch(E){c(E);return}if(x.done)u(h);else return s.default.resolve(h).then(function(E){f("next",E)},function(E){f("throw",E)})}return f("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}e.MessageError=n;class s extends n{constructor(c,f,p){super(c,f),this.process=p}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.type,et=Ie.onFresh||at,Le=Ie.onDone||at;if(fe.has(se.toLowerCase())?G.verbose(`The case-insensitive file ${se} shouldn't be copied twice in one bulk copy`):fe.add(se.toLowerCase()),fn==="symlink"){yield Ae((l||d()).default.dirname(se)),et(),ze.symlink.push({dest:se,linkname:be}),Le();return}if(z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Re=yield we(be),Lt;Re.isDirectory()&&(Lt=yield Pe(be));let Ye;try{Ye=yield we(se)}catch(Ve){if(Ve.code!=="ENOENT")throw Ve}if(Ye){let Ve=Re.isSymbolicLink()&&Ye.isSymbolicLink(),Rt=Re.isDirectory()&&Ye.isDirectory(),vt=Re.isFile()&&Ye.isFile();if(vt&&ve.has(se)){Le(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Re.size===Ye.size&&(0,(W||Z()).fileDatesEqual)(Re.mtime,Ye.mtime)){Le(),G.verbose(G.lang("verboseFileSkip",be,se,Re.size,+Re.mtime));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){Le(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Lt,"src files not initialised");for(var mt=Me,kt=Array.isArray(mt),tt=0,mt=kt?mt:mt[Symbol.iterator]();;){var en;if(kt){if(tt>=mt.length)break;en=mt[tt++]}else{if(tt=mt.next(),tt.done)break;en=tt.value}let Mt=en;if(Lt.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var gt=yield Pe(At),Pt=Array.isArray(gt),nt=0,gt=Pt?gt:gt[Symbol.iterator]();;){var tn;if(Pt){if(nt>=gt.length)break;tn=gt[nt++]}else{if(nt=gt.next(),nt.done)break;tn=nt.value}let er=tn;U.add((l||d()).default.join(At,er))}}}}}if(Ye&&Ye.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(se),Ye=null),Re.isSymbolicLink()){et();let Ve=yield pe(be);ze.symlink.push({dest:se,linkname:Ve}),Le()}else if(Re.isDirectory()){Ye||(G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se));let Ve=se.split((l||d()).default.sep);for(;Ve.length;)fe.add(Ve.join((l||d()).default.sep).toLowerCase()),Ve.pop();qt(Lt,"src files not initialised");let Rt=Lt.length;Rt||Le();for(var yt=Lt,It=Array.isArray(yt),rt=0,yt=It?yt:yt[Symbol.iterator]();;){var Ge;if(It){if(rt>=yt.length)break;Ge=yt[rt++]}else{if(rt=yt.next(),rt.done)break;Ge=rt.value}let vt=Ge;V.push({dest:(l||d()).default.join(se,vt),onFresh:et,onDone:(function(Me){function Mt(){return Me.apply(this,arguments)}return Mt.toString=function(){return Me.toString()},Mt})(function(){--Rt===0&&Le()}),src:(l||d()).default.join(be,vt)})}}else if(Re.isFile())et(),ze.file.push({src:be,dest:se,atime:Re.atime,mtime:Re.mtime,mode:Re.mode}),Le();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone;ue.onDone=function(){z.onProgress(ue.dest),Ie&&Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Gt;if(dn){if(ht>=Xe.length)break;Gt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Gt=ht.value}let ue=Gt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.onFresh||at,et=Ie.onDone||at;if(fe.has(se.toLowerCase())){et();return}if(fe.add(se.toLowerCase()),z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Le=yield we(be),Re;Le.isDirectory()&&(Re=yield Pe(be));let Lt=yield ft(se);if(Lt){let Ge=yield we(se),Ve=Le.isSymbolicLink()&&Ge.isSymbolicLink(),Rt=Le.isDirectory()&&Ge.isDirectory(),vt=Le.isFile()&&Ge.isFile();if(Le.mode!==Ge.mode)try{yield Ne(se,Le.mode)}catch(Me){G.verbose(Me)}if(vt&&ve.has(se)){et(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Le.ino!==null&&Le.ino===Ge.ino){et(),G.verbose(G.lang("verboseFileSkip",be,se,Le.ino));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){et(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Re,"src files not initialised");for(var tt=Me,Ye=Array.isArray(tt),kt=0,tt=Ye?tt:tt[Symbol.iterator]();;){var mt;if(Ye){if(kt>=tt.length)break;mt=tt[kt++]}else{if(kt=tt.next(),kt.done)break;mt=kt.value}let Mt=mt;if(Re.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var nt=yield Pe(At),en=Array.isArray(nt),Pt=0,nt=en?nt:nt[Symbol.iterator]();;){var gt;if(en){if(Pt>=nt.length)break;gt=nt[Pt++]}else{if(Pt=nt.next(),Pt.done)break;gt=Pt.value}let er=gt;U.add((l||d()).default.join(At,er))}}}}}if(Le.isSymbolicLink()){fn();let Ge=yield pe(be);ze.symlink.push({dest:se,linkname:Ge}),et()}else if(Le.isDirectory()){G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se);let Ge=se.split((l||d()).default.sep);for(;Ge.length;)fe.add(Ge.join((l||d()).default.sep).toLowerCase()),Ge.pop();qt(Re,"src files not initialised");let Ve=Re.length;Ve||et();for(var rt=Re,tn=Array.isArray(rt),It=0,rt=tn?rt:rt[Symbol.iterator]();;){var yt;if(tn){if(It>=rt.length)break;yt=rt[It++]}else{if(It=rt.next(),It.done)break;yt=It.value}let Rt=yt;V.push({onFresh:fn,src:(l||d()).default.join(be,Rt),dest:(l||d()).default.join(se,Rt),onDone:(function(vt){function Me(){return vt.apply(this,arguments)}return Me.toString=function(){return vt.toString()},Me})(function(){--Ve===0&&et()})})}}else if(Le.isFile())fn(),ze.link.push({src:be,dest:se,removeDest:Lt}),et();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone||at;ue.onDone=function(){z.onProgress(ue.dest),Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Gt;if(dn){if(ht>=Xe.length)break;Gt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Gt=ht.value}let ue=Gt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,ignoreBasenames:U&&U.ignoreBasenames||[],artifactFiles:U&&U.artifactFiles||[]},re=yield i(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.file,fe=new Map;yield(b||O()).queue(ve,(()=>{var oe=(0,(n||s()).default)(function*(ae){let _e;for(;_e=fe.get(ae.dest);)yield _e;z.verbose(z.lang("verboseFileCopy",ae.src,ae.dest));let ze=(0,(W||Z()).copyFile)(ae,function(){return fe.delete(ae.dest)});return fe.set(ae.dest,ze),G.onProgress(ae.dest),ze});return function(ae){return oe.apply(this,arguments)}})(),Wt);let he=re.symlink;yield(b||O()).queue(he,function(oe){let ae=(l||d()).default.resolve((l||d()).default.dirname(oe.dest),oe.linkname);return z.verbose(z.lang("verboseFileSymlink",oe.dest,ae)),x(ae,oe.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,artifactFiles:U&&U.artifactFiles||[],ignoreBasenames:[]},re=yield o(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.link;yield(b||O()).queue(ve,(()=>{var he=(0,(n||s()).default)(function*(oe){z.verbose(z.lang("verboseFileLink",oe.src,oe.dest)),oe.removeDest&&(yield(0,(W||Z()).unlink)(oe.dest)),yield Cn(oe.src,oe.dest)});return function(oe){return he.apply(this,arguments)}})(),Wt);let fe=re.symlink;yield(b||O()).queue(fe,function(he){let oe=(l||d()).default.resolve((l||d()).default.dirname(he.dest),he.linkname);return z.verbose(z.lang("verboseFileSymlink",he.dest,oe)),x(oe,he.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;if(yield ft(ve))return _n(ve)}return null});return function(z){return Y.apply(this,arguments)}})(),f=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(V){return(yield p(V)).object});return function(z){return Y.apply(this,arguments)}})(),p=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield _n(V);try{return{object:(0,(M||j()).default)(JSON.parse(un(z))),content:z}}catch(U){throw U.message=`${V}: ${U.message}`,U}});return function(z){return Y.apply(this,arguments)}})(),$=e.find=(()=>{var Y=(0,(n||s()).default)(function*(V,z){let U=z.split((l||d()).default.sep);for(;U.length;){let G=U.concat(V).join((l||d()).default.sep);if(yield ft(G))return G;U.pop()}return!1});return function(z,U){return Y.apply(this,arguments)}})(),x=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(V,z){try{if((yield we(z)).isSymbolicLink()&&(yield Be(z))===V)return}catch(U){if(U.code!=="ENOENT")throw U}if(yield(0,(W||Z()).unlink)(z),process.platform==="win32")yield Rn(V,z,"junction");else{let U;try{U=(l||d()).default.relative((S||R()).default.realpathSync((l||d()).default.dirname(z)),(S||R()).default.realpathSync(V))}catch(G){if(G.code!=="ENOENT")throw G;U=(l||d()).default.relative((l||d()).default.dirname(z),V)}yield Rn(U||".",z)}});return function(z,U){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U=new Set){let G=[],re=yield Pe(V);U.size&&(re=re.filter(function(ae){return!U.has(ae)}));for(var he=re,ve=Array.isArray(he),fe=0,he=ve?he:he[Symbol.iterator]();;){var oe;if(ve){if(fe>=he.length)break;oe=he[fe++]}else{if(fe=he.next(),fe.done)break;oe=fe.value}let ae=oe,_e=z?(l||d()).default.join(z,ae):ae,ze=(l||d()).default.join(V,ae),wt=yield we(ze);G.push({relative:_e,basename:ae,absolute:ze,mtime:+wt.mtime}),wt.isDirectory()&&(G=G.concat(yield h(ze,_e,U)))}return G});return function(z,U){return Y.apply(this,arguments)}})(),E=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield we(V),U=z.size,G=z.blksize;return Math.ceil(U/G)*G});return function(z){return Y.apply(this,arguments)}})(),T=(()=>{var Y=(0,(n||s()).default)(function*(V){if(!(yield ft(V)))return;let z=yield Q(V);for(let U=0;U<z.length;++U){if(z[U]===Po)return`\r
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.45.5-dev.1795496749.4230782",
3
+ "version": "4.45.5-dev.1795583145.2fb3997",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
1
  /*!
2
- Stencil Node System Worker v4.45.5-dev.1795496749.4230782 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.45.5-dev.1795583145.2fb3997 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);