@stencil/core 4.18.3-dev.1718220868.532557e → 4.18.3-dev.1718341300.87e5b33

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.18.3-dev.1718220868.532557e | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v4.18.3-dev.1718341300.87e5b33 | 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.18.3-dev.1718220868.532557e | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v4.18.3-dev.1718341300.87e5b33 | 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.18.3-dev.1718220868.532557e",
3
+ "version": "4.18.3-dev.1718341300.87e5b33",
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.18.3-dev.1718220868.532557e",
3
+ "version": "4.18.3-dev.1718341300.87e5b33",
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.18.3-dev.1718220868.532557e | MIT Licensed | https://stenciljs.com
2
+ Stencil Compiler v4.18.3-dev.1718341300.87e5b33 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -115662,18 +115662,18 @@ ${lanes.join("\n")}
115662
115662
  0
115663
115663
  /* Call */
115664
115664
  );
115665
- const isPromise = !!getAwaitedTypeOfPromise(type);
115666
- if (callSignatures.length === 0 && !isPromise) {
115665
+ const isPromise2 = !!getAwaitedTypeOfPromise(type);
115666
+ if (callSignatures.length === 0 && !isPromise2) {
115667
115667
  return;
115668
115668
  }
115669
115669
  const testedNode = isIdentifier(location) ? location : isPropertyAccessExpression(location) ? location.name : void 0;
115670
115670
  const testedSymbol = testedNode && getSymbolAtLocation(testedNode);
115671
- if (!testedSymbol && !isPromise) {
115671
+ if (!testedSymbol && !isPromise2) {
115672
115672
  return;
115673
115673
  }
115674
115674
  const isUsed = testedSymbol && isBinaryExpression(condExpr2.parent) && isSymbolUsedInBinaryExpressionChain(condExpr2.parent, testedSymbol) || testedSymbol && body2 && isSymbolUsedInConditionBody(condExpr2, body2, testedNode, testedSymbol);
115675
115675
  if (!isUsed) {
115676
- if (isPromise) {
115676
+ if (isPromise2) {
115677
115677
  errorAndMaybeSuggestAwait(
115678
115678
  location,
115679
115679
  /*maybeMissingAwait*/
@@ -231091,7 +231091,7 @@ ${e.message}`;
231091
231091
  var typescript_5_4_5_bundle_cache_min_default = ts;
231092
231092
 
231093
231093
  // src/version.ts
231094
- var buildId = "1718220868";
231094
+ var buildId = "1718341300";
231095
231095
  var minfyJsId = "terser5.31.1_7";
231096
231096
  var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
231097
231097
  var parse5Version = "7.1.2";
@@ -231099,8 +231099,8 @@ var rollupVersion = "2.56.3";
231099
231099
  var jqueryVersion = "4.0.0-pre";
231100
231100
  var terserVersion = "5.31.1";
231101
231101
  var typescriptVersion = "5.4.5";
231102
- var vermoji = "\u{1F401}";
231103
- var version = "4.18.3-dev.1718220868.532557e";
231102
+ var vermoji = "\u{1F37B}";
231103
+ var version = "4.18.3-dev.1718341300.87e5b33";
231104
231104
  var versions = {
231105
231105
  stencil: version,
231106
231106
  parse5: parse5Version,
@@ -231392,6 +231392,7 @@ var isNumber = (v) => typeof v === "number";
231392
231392
  var isObject = (val) => val != null && typeof val === "object" && Array.isArray(val) === false;
231393
231393
  var isString = (v) => typeof v === "string";
231394
231394
  var isIterable = (v) => isDefined(v) && isFunction(v[Symbol.iterator]);
231395
+ var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function") && typeof v.then === "function";
231395
231396
 
231396
231397
  // src/utils/is-glob.ts
231397
231398
  var isGlob = (str) => {
@@ -250584,13 +250585,11 @@ var writeHydrateOutput = async (config, compilerCtx, buildCtx, outputTarget, rol
250584
250585
  const hydratePackageName = await getHydratePackageName(config, compilerCtx);
250585
250586
  const hydrateAppDirPath = outputTarget.dir;
250586
250587
  const hydrateCoreIndexPath = join(hydrateAppDirPath, "index.js");
250587
- const hydrateCoreIndexPathESM = join(hydrateAppDirPath, "index.mjs");
250588
250588
  const hydrateCoreIndexDtsFilePath = join(hydrateAppDirPath, "index.d.ts");
250589
250589
  const pkgJsonPath = join(hydrateAppDirPath, "package.json");
250590
250590
  const pkgJsonCode = getHydratePackageJson(
250591
250591
  config,
250592
250592
  hydrateCoreIndexPath,
250593
- hydrateCoreIndexPathESM,
250594
250593
  hydrateCoreIndexDtsFilePath,
250595
250594
  hydratePackageName
250596
250595
  );
@@ -250609,32 +250608,24 @@ var writeHydrateOutput = async (config, compilerCtx, buildCtx, outputTarget, rol
250609
250608
  })
250610
250609
  );
250611
250610
  };
250612
- var getHydratePackageJson = (config, hydrateAppFilePathCJS, hydrateAppFilePathESM, hydrateDtsFilePath, hydratePackageName) => {
250611
+ var getHydratePackageJson = (config, hydrateAppFilePath, hydrateDtsFilePath, hydratePackageName) => {
250613
250612
  const pkg = {
250614
250613
  name: hydratePackageName,
250615
250614
  description: `${config.namespace} component hydration app.`,
250616
- main: (0, import_path26.basename)(hydrateAppFilePathCJS),
250617
- types: (0, import_path26.basename)(hydrateDtsFilePath),
250618
- exports: {
250619
- ".": {
250620
- require: `./${(0, import_path26.basename)(hydrateAppFilePathCJS)}`,
250621
- import: `./${(0, import_path26.basename)(hydrateAppFilePathESM)}`
250622
- }
250623
- }
250615
+ main: (0, import_path26.basename)(hydrateAppFilePath),
250616
+ types: (0, import_path26.basename)(hydrateDtsFilePath)
250624
250617
  };
250625
250618
  return JSON.stringify(pkg, null, 2);
250626
250619
  };
250627
250620
  var getHydratePackageName = async (config, compilerCtx) => {
250628
- const directoryName = (0, import_path26.basename)(config.rootDir);
250629
250621
  try {
250630
250622
  const rootPkgFilePath = join(config.rootDir, "package.json");
250631
250623
  const pkgStr = await compilerCtx.fs.readFile(rootPkgFilePath);
250632
250624
  const pkgData = JSON.parse(pkgStr);
250633
- const scope = pkgData.name || directoryName;
250634
- return `${scope}/hydrate`;
250625
+ return `${pkgData.name}/hydrate`;
250635
250626
  } catch (e) {
250636
250627
  }
250637
- return `${config.fsNamespace || directoryName}/hydrate`;
250628
+ return `${config.fsNamespace}/hydrate`;
250638
250629
  };
250639
250630
  var copyHydrateRunnerDts = async (config, compilerCtx, hydrateAppDirPath) => {
250640
250631
  const packageDir = join(config.sys.getCompilerExecutingPath(), "..", "..");
@@ -250644,15 +250635,6 @@ var copyHydrateRunnerDts = async (config, compilerCtx, hydrateAppDirPath) => {
250644
250635
  };
250645
250636
 
250646
250637
  // src/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.ts
250647
- var buildHydrateAppFor = async (format, rollupBuild, config, compilerCtx, buildCtx, outputTargets) => {
250648
- const file = format === "esm" ? "index.mjs" : "index.js";
250649
- const rollupOutput = await rollupBuild.generate({
250650
- banner: generatePreamble(config),
250651
- format,
250652
- file
250653
- });
250654
- await writeHydrateOutputs(config, compilerCtx, buildCtx, outputTargets, rollupOutput);
250655
- };
250656
250638
  var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) => {
250657
250639
  try {
250658
250640
  const packageDir = join(config.sys.getCompilerExecutingPath(), "..", "..");
@@ -250660,7 +250642,6 @@ var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) =>
250660
250642
  const mockDoc = join(packageDir, "mock-doc", "index.js");
250661
250643
  const rollupOptions = {
250662
250644
  ...config.rollupConfig.inputOptions,
250663
- external: ["stream"],
250664
250645
  input,
250665
250646
  inlineDynamicImports: true,
250666
250647
  plugins: [
@@ -250687,10 +250668,12 @@ var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) =>
250687
250668
  onwarn: createOnWarnFn(buildCtx.diagnostics)
250688
250669
  };
250689
250670
  const rollupAppBuild = await rollup(rollupOptions);
250690
- await Promise.all([
250691
- buildHydrateAppFor("cjs", rollupAppBuild, config, compilerCtx, buildCtx, outputTargets),
250692
- buildHydrateAppFor("esm", rollupAppBuild, config, compilerCtx, buildCtx, outputTargets)
250693
- ]);
250671
+ const rollupOutput = await rollupAppBuild.generate({
250672
+ banner: generatePreamble(config),
250673
+ format: "cjs",
250674
+ file: "index.js"
250675
+ });
250676
+ await writeHydrateOutputs(config, compilerCtx, buildCtx, outputTargets, rollupOutput);
250694
250677
  } catch (e) {
250695
250678
  if (!buildCtx.hasError) {
250696
250679
  loadRollupDiagnostics(config, compilerCtx, buildCtx, e);
@@ -252897,6 +252880,7 @@ var validateConfig = (userConfig = {}, bootstrapConfig) => {
252897
252880
  devMode,
252898
252881
  extras: config.extras || {},
252899
252882
  flags,
252883
+ generateExportMaps: isBoolean(config.generateExportMaps) ? config.generateExportMaps : false,
252900
252884
  hashFileNames,
252901
252885
  hashedFileNameLength: (_c = config.hashedFileNameLength) != null ? _c : DEFAULT_HASHED_FILENAME_LENGTH,
252902
252886
  hydratedFlag: validateHydrated(config),
@@ -258810,19 +258794,25 @@ var packageJsonWarn = (config, compilerCtx, buildCtx, msg, jsonField) => {
258810
258794
  var PRIMARY_PACKAGE_TARGET_CONFIGS = {
258811
258795
  dist: {
258812
258796
  getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258813
- getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts")))
258797
+ getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts"))),
258798
+ getMainPath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.cjs.js")))
258814
258799
  },
258815
258800
  "dist-collection": {
258816
- getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js")))
258801
+ getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258802
+ getTypesPath: () => null,
258803
+ getMainPath: () => null
258817
258804
  },
258818
258805
  "dist-custom-elements": {
258819
258806
  getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258820
258807
  getTypesPath: (rootDir, outputTargetConfig) => {
258821
258808
  return outputTargetConfig.generateTypeDeclarations ? normalizePath(relative(rootDir, join(outputTargetConfig.dir, "index.d.ts"))) : null;
258822
- }
258809
+ },
258810
+ getMainPath: () => null
258823
258811
  },
258824
258812
  "dist-types": {
258825
- getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts")))
258813
+ getModulePath: () => null,
258814
+ getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts"))),
258815
+ getMainPath: () => null
258826
258816
  }
258827
258817
  };
258828
258818
  var validatePrimaryPackageOutputTarget = (config, compilerCtx, buildCtx) => {
@@ -259012,6 +259002,58 @@ var validateBuildFiles = (config, compilerCtx, buildCtx) => {
259012
259002
  ]);
259013
259003
  };
259014
259004
 
259005
+ // src/compiler/build/write-export-maps.ts
259006
+ var import_child_process = require("child_process");
259007
+ var writeExportMaps = (config, buildCtx) => {
259008
+ var _a;
259009
+ const eligiblePrimaryTargets = config.outputTargets.filter(isEligiblePrimaryPackageOutputTarget);
259010
+ if (eligiblePrimaryTargets.length > 0) {
259011
+ const primaryTarget = (_a = eligiblePrimaryTargets.find((o) => o.isPrimaryPackageOutputTarget)) != null ? _a : eligiblePrimaryTargets[0];
259012
+ const outputTargetConfig = PRIMARY_PACKAGE_TARGET_CONFIGS[primaryTarget.type];
259013
+ if (outputTargetConfig.getModulePath) {
259014
+ const importPath = outputTargetConfig.getModulePath(config.rootDir, primaryTarget.dir);
259015
+ if (importPath) {
259016
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][import]"="${importPath}"`);
259017
+ }
259018
+ }
259019
+ if (outputTargetConfig.getMainPath) {
259020
+ const requirePath = outputTargetConfig.getMainPath(config.rootDir, primaryTarget.dir);
259021
+ if (requirePath) {
259022
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][require]"="${requirePath}"`);
259023
+ }
259024
+ }
259025
+ if (outputTargetConfig.getTypesPath) {
259026
+ const typesPath = outputTargetConfig.getTypesPath(config.rootDir, primaryTarget);
259027
+ if (typesPath) {
259028
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][types]"="${typesPath}"`);
259029
+ }
259030
+ }
259031
+ }
259032
+ const distLazyLoader = config.outputTargets.find(isOutputTargetDistLazyLoader);
259033
+ if (distLazyLoader != null) {
259034
+ let outDir = relative(config.rootDir, distLazyLoader.dir);
259035
+ if (!outDir.startsWith(".")) {
259036
+ outDir = "./" + outDir;
259037
+ }
259038
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][import]"="${outDir}/index.js"`);
259039
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][require]"="${outDir}/index.cjs"`);
259040
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][types]"="${outDir}/index.d.ts"`);
259041
+ }
259042
+ const distCustomElements = config.outputTargets.find(isOutputTargetDistCustomElements);
259043
+ if (distCustomElements != null) {
259044
+ let outDir = relative(config.rootDir, distCustomElements.dir);
259045
+ if (!outDir.startsWith(".")) {
259046
+ outDir = "./" + outDir;
259047
+ }
259048
+ buildCtx.components.forEach((cmp) => {
259049
+ (0, import_child_process.execSync)(`npm pkg set "exports[./${cmp.tagName}][import]"="${outDir}/${cmp.tagName}.js"`);
259050
+ if (distCustomElements.generateTypeDeclarations) {
259051
+ (0, import_child_process.execSync)(`npm pkg set "exports[./${cmp.tagName}][types]"="${outDir}/${cmp.tagName}.d.ts"`);
259052
+ }
259053
+ });
259054
+ }
259055
+ };
259056
+
259015
259057
  // src/compiler/build/write-build.ts
259016
259058
  var writeBuild = async (config, compilerCtx, buildCtx) => {
259017
259059
  const timeSpan = buildCtx.createTimeSpan(`writeBuildFiles started`, true);
@@ -259026,6 +259068,9 @@ var writeBuild = async (config, compilerCtx, buildCtx) => {
259026
259068
  await compilerCtx.cache.commit();
259027
259069
  buildCtx.debug(`in-memory-fs: ${compilerCtx.fs.getMemoryStats()}`);
259028
259070
  buildCtx.debug(`cache: ${compilerCtx.cache.getMemoryStats()}`);
259071
+ if (config.generateExportMaps) {
259072
+ writeExportMaps(config, buildCtx);
259073
+ }
259029
259074
  await outputServiceWorkers(config, buildCtx);
259030
259075
  await validateBuildFiles(config, compilerCtx, buildCtx);
259031
259076
  } catch (e) {
@@ -261904,7 +261949,10 @@ var prerenderWorker = async (sys, prerenderRequest) => {
261904
261949
  }
261905
261950
  if (typeof prerenderConfig.beforeHydrate === "function") {
261906
261951
  try {
261907
- await prerenderConfig.beforeHydrate(doc, url);
261952
+ const rtn = prerenderConfig.beforeHydrate(doc, url);
261953
+ if (isPromise(rtn)) {
261954
+ await rtn;
261955
+ }
261908
261956
  } catch (e) {
261909
261957
  catchError(results.diagnostics, e);
261910
261958
  }
@@ -261966,7 +262014,10 @@ var prerenderWorker = async (sys, prerenderRequest) => {
261966
262014
  }
261967
262015
  if (typeof prerenderConfig.afterHydrate === "function") {
261968
262016
  try {
261969
- await prerenderConfig.afterHydrate(doc, url, results);
262017
+ const rtn = prerenderConfig.afterHydrate(doc, url, results);
262018
+ if (isPromise(rtn)) {
262019
+ await rtn;
262020
+ }
261970
262021
  } catch (e) {
261971
262022
  catchError(results.diagnostics, e);
261972
262023
  }
@@ -261978,7 +262029,7 @@ var prerenderWorker = async (sys, prerenderRequest) => {
261978
262029
  }
261979
262030
  return results;
261980
262031
  }
261981
- const html = await hydrateApp.serializeDocumentToString(doc, hydrateOpts);
262032
+ const html = hydrateApp.serializeDocumentToString(doc, hydrateOpts);
261982
262033
  prerenderEnsureDir(sys, prerenderCtx2, results.filePath);
261983
262034
  const writePromise = sys.writeFile(results.filePath, html);
261984
262035
  if (Array.isArray(hydrateResults.staticData) && hydrateResults.staticData.length > 0) {
@@ -262684,7 +262735,11 @@ var generateTemplateHtml = async (config, prerenderConfig, diagnostics, isDebug,
262684
262735
  let templateHtml;
262685
262736
  if (isFunction(prerenderConfig.loadTemplate)) {
262686
262737
  const loadTemplateResult = prerenderConfig.loadTemplate(srcIndexHtmlPath);
262687
- templateHtml = await loadTemplateResult;
262738
+ if (isPromise(loadTemplateResult)) {
262739
+ templateHtml = await loadTemplateResult;
262740
+ } else {
262741
+ templateHtml = loadTemplateResult;
262742
+ }
262688
262743
  } else {
262689
262744
  templateHtml = await config.sys.readFile(srcIndexHtmlPath);
262690
262745
  }
@@ -262721,12 +262776,20 @@ var generateTemplateHtml = async (config, prerenderConfig, diagnostics, isDebug,
262721
262776
  }
262722
262777
  if (isFunction(prerenderConfig.beforeSerializeTemplate)) {
262723
262778
  const beforeSerializeResults = prerenderConfig.beforeSerializeTemplate(doc);
262724
- doc = await beforeSerializeResults;
262779
+ if (isPromise(beforeSerializeResults)) {
262780
+ doc = await beforeSerializeResults;
262781
+ } else {
262782
+ doc = beforeSerializeResults;
262783
+ }
262725
262784
  }
262726
262785
  let html = (0, import_mock_doc3.serializeNodeToHtml)(doc);
262727
262786
  if (isFunction(prerenderConfig.afterSerializeTemplate)) {
262728
262787
  const afterSerializeResults = prerenderConfig.afterSerializeTemplate(html);
262729
- html = await afterSerializeResults;
262788
+ if (isPromise(afterSerializeResults)) {
262789
+ html = await afterSerializeResults;
262790
+ } else {
262791
+ html = afterSerializeResults;
262792
+ }
262730
262793
  }
262731
262794
  return {
262732
262795
  html,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Dev Server Client v4.18.3-dev.1718220868.532557e | MIT Licensed | https://stenciljs.com
2
+ Stencil Dev Server Client v4.18.3-dev.1718341300.87e5b33 | 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.18.3-dev.1718220868.532557e",
3
+ "version": "4.18.3-dev.1718341300.87e5b33",
4
4
  "description": "Stencil Dev Server Client.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,6 +1,6 @@
1
- <!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.18.3-dev.1718220868.532557e &#9889</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
1
+ <!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.18.3-dev.1718341300.87e5b33 &#9889</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
2
2
 
3
- Stencil Dev Server Connector 4.18.3-dev.1718220868.532557e &#9889;
3
+ Stencil Dev Server Connector 4.18.3-dev.1718341300.87e5b33 &#9889;
4
4
 
5
5
  <script>!function(e,t,n,r){"use strict";var o="#dev-server-modal * { box-sizing: border-box !important; } #dev-server-modal { direction: ltr !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 100000; margin: 0 !important; padding: 0 !important; font-family: -apple-system, 'Roboto', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important; font-size: 14px !important; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: none; word-wrap: break-word; color: #333 !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden; user-select: auto; } #dev-server-modal-inner { position: relative !important; padding: 0 0 30px 0 !important; width: 100% !important; height: 100%; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .dev-server-diagnostic { margin: 20px !important; border: 1px solid #ddd !important; border-radius: 3px !important; } .dev-server-diagnostic-masthead { padding: 8px 12px 12px 12px !important; } .dev-server-diagnostic-title { margin: 0 !important; font-weight: bold !important; color: #222 !important; } .dev-server-diagnostic-message { margin-top: 4px !important; color: #555 !important; } .dev-server-diagnostic-file { position: relative !important; border-top: 1px solid #ddd !important; } .dev-server-diagnostic-file-header { display: block !important; padding: 5px 10px !important; color: #555 !important; border-bottom: 1px solid #ddd !important; border-top-left-radius: 2px !important; border-top-right-radius: 2px !important; background-color: #f9f9f9 !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; } a.dev-server-diagnostic-file-header { color: #0000ee !important; text-decoration: underline !important; } a.dev-server-diagnostic-file-header:hover { text-decoration: none !important; background-color: #f4f4f4 !important; } .dev-server-diagnostic-file-name { font-weight: bold !important; } .dev-server-diagnostic-blob { overflow-x: auto !important; overflow-y: hidden !important; border-bottom-right-radius: 3px !important; border-bottom-left-radius: 3px !important; } .dev-server-diagnostic-table { margin: 0 !important; padding: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; border-width: 0 !important; border-style: none !important; -moz-tab-size: 2; tab-size: 2; } .dev-server-diagnostic-table td, .dev-server-diagnostic-table th { padding: 0 !important; border-width: 0 !important; border-style: none !important; } td.dev-server-diagnostic-blob-num { padding-right: 10px !important; padding-left: 10px !important; width: 1% !important; min-width: 50px !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; line-height: 20px !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; vertical-align: top !important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: solid #eee !important; border-width: 0 1px 0 0 !important; } td.dev-server-diagnostic-blob-num::before { content: attr(data-line-number) !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num { background-color: #ffdddd !important; border-color: #ffc9c9 !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-code { background: rgba(255, 221, 221, 0.25) !important; z-index: -1; } .dev-server-diagnostic-open-in-editor td.dev-server-diagnostic-blob-num:hover { cursor: pointer; background-color: #ffffe3 !important; font-weight: bold; } .dev-server-diagnostic-open-in-editor.dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num:hover { background-color: #ffdada !important; } td.dev-server-diagnostic-blob-code { position: relative !important; padding-right: 10px !important; padding-left: 10px !important; line-height: 20px !important; vertical-align: top !important; overflow: visible !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; color: #333 !important; word-wrap: normal !important; white-space: pre !important; } td.dev-server-diagnostic-blob-code::before { content: '' !important; } .dev-server-diagnostic-error-chr { position: relative !important; } .dev-server-diagnostic-error-chr::before { position: absolute !important; z-index: -1; top: -3px !important; left: 0px !important; width: 8px !important; height: 20px !important; background-color: #ffdddd !important; content: '' !important; } /** * GitHub Gist Theme * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro * https://highlightjs.org/ */ .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; }",i=function(e){var t,n,r={diagnostics:[],status:null};return e&&e.window&&Array.isArray(e.buildResults.diagnostics)&&(t=e.buildResults.diagnostics.filter((function(e){return"error"===e.level}))).length>0&&(n=s(e.window.document),t.forEach((function(t){r.diagnostics.push(t),a(e.window.document,e.openInEditor,n,t)})),r.status="error"),r},a=function(e,t,n,r){var o,i,a,s,d,m,f,g,v,h,b,w,y,k,E,C,j=e.createElement("div");j.className="dev-server-diagnostic",(d=e.createElement("div")).className="dev-server-diagnostic-masthead",d.title="".concat(c(r.type)," error: ").concat(c(null!==(o=r.code)&&void 0!==o?o:"unknown error")),j.appendChild(d),(m=e.createElement("div")).className="dev-server-diagnostic-title","string"==typeof r.header&&r.header.trim().length>0?m.textContent=r.header:m.textContent="".concat(A(r.type)," ").concat(A(r.level)),d.appendChild(m),(f=e.createElement("div")).className="dev-server-diagnostic-message",f.textContent=r.messageText,d.appendChild(f),(g=e.createElement("div")).className="dev-server-diagnostic-file",j.appendChild(g),v="string"==typeof r.absFilePath&&0===r.absFilePath.indexOf("http"),h="function"==typeof t&&"string"==typeof r.absFilePath&&!v,v?((b=e.createElement("a")).href=null!==(i=r.absFilePath)&&void 0!==i?i:"",b.setAttribute("target","_blank"),b.setAttribute("rel","noopener noreferrer"),b.className="dev-server-diagnostic-file-header",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=null!==(a=r.absFilePath)&&void 0!==a?a:"",b.appendChild(w),g.appendChild(b)):r.relFilePath&&((b=e.createElement(h?"a":"div")).className="dev-server-diagnostic-file-header",r.absFilePath&&(b.title=c(r.absFilePath),h&&l(t,b,r.absFilePath,r.lineNumber,r.columnNumber)),y=r.relFilePath.split("/"),(k=e.createElement("span")).className="dev-server-diagnostic-file-name",k.textContent=null!==(s=y.pop())&&void 0!==s?s:"",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=y.join("/")+"/",b.appendChild(w),b.appendChild(k),g.appendChild(b)),r.lines&&r.lines.length>0&&((E=e.createElement("div")).className="dev-server-diagnostic-blob",g.appendChild(E),(C=e.createElement("table")).className="dev-server-diagnostic-table",E.appendChild(C),u(r.lines).forEach((function(n){var o,i,a,s,d,A,u,m=e.createElement("tr");n.errorCharStart>0&&m.classList.add("dev-server-diagnostic-error-line"),h&&m.classList.add("dev-server-diagnostic-open-in-editor"),C.appendChild(m),(s=e.createElement("td")).className="dev-server-diagnostic-blob-num",n.lineNumber>0&&(s.setAttribute("data-line-number",n.lineNumber+""),s.title=c(null!==(o=r.relFilePath)&&void 0!==o?o:"")+", line "+n.lineNumber,d=r.absFilePath,h&&d&&(A=n.lineNumber===r.lineNumber?r.columnNumber:1,l(t,s,d,n.lineNumber,A))),m.appendChild(s),(u=e.createElement("td")).className="dev-server-diagnostic-blob-code",u.innerHTML=p(null!==(i=n.text)&&void 0!==i?i:"",n.errorCharStart,null!==(a=n.errorLength)&&void 0!==a?a:0),m.appendChild(u)}))),n.appendChild(j)},l=function(e,t,n,r,o){var i,a;"A"===t.tagName&&(t.href="#open-in-editor"),i="number"!=typeof r||r<1?1:r,a="number"!=typeof o||o<1?1:o,t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e({file:n,line:i,column:a})}))},s=function(e){var t=e.getElementById(f);return t||((t=e.createElement("div")).id=f,t.setAttribute("role","dialog"),e.body.appendChild(t)),t.innerHTML="<style>".concat(o,'</style><div id="').concat(f,'-inner"></div>'),e.getElementById("".concat(f,"-inner"))},d=function(e){var t=e.window.document.getElementById(f);(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)},c=function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},A=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e,t,n){if("string"!=typeof e)return"";var r=t+n;return e.split("").map((function(e,n){var o;return o="<"===e?"&lt;":">"===e?"&gt;":'"'===e?"&quot;":"'"===e?"&#039;":"&"===e?"&amp;":e,n>=t&&n<r&&(o='<span class="dev-server-diagnostic-error-chr">'.concat(o,"</span>")),o})).join("")},u=function(e){var t,n,r,o,i,a=JSON.parse(JSON.stringify(e));for(o=0;o<100;o++){if(!m(a))return a;for(i=0;i<a.length;i++)if(a[i].text=null!==(n=null===(t=a[i].text)||void 0===t?void 0:t.slice(1))&&void 0!==n?n:"",a[i].errorCharStart--,!(null===(r=a[i].text)||void 0===r?void 0:r.length))return a}return a},m=function(e){var t,n,r,o,i;if(!e.length)return!1;for(o=0;o<e.length;o++){if(!e[o].text||(null!==(n=null===(t=e[o].text)||void 0===t?void 0:t.length)&&void 0!==n?n:0)<1)return!1;if(" "!==(i=null===(r=e[o].text)||void 0===r?void 0:r.charAt(0))&&"\t"!==i)return!1}return!0},f="dev-server-modal",g=function(e,t){e.dispatchEvent(new CustomEvent(k,{detail:t}))},v=function(e,t){e.dispatchEvent(new CustomEvent(E,{detail:t}))},h=function(e,t){e.dispatchEvent(new CustomEvent(C,{detail:t}))},b=function(e,t){e.addEventListener(k,(function(e){t(e.detail)}))},w=function(e,t){e.addEventListener(E,(function(e){t(e.detail)}))},y=function(e,t){e.addEventListener(C,(function(e){t(e.detail)}))},k="devserver:buildlog",E="devserver:buildresults",C="devserver:buildstatus",j=function(e,t,n){return"string"==typeof n&&""!==n.trim()&&L(t)===L(n)?H(n,e):n},L=function(e){var t=e.split("/");return t[t.length-1].split("&")[0].split("?")[0]},x=function(e){var t={};return"string"==typeof e&&e.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=n[1]?n[1]:""})),t},I=function(e){return Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")},Q=function(e,t,n){var r=e.split("?"),o=r[0],i=x(r[1]);return i[t]=n,o+"?"+I(i)},H=function(e,t){return Q(e,"s-hmr",t)},S=function(e,t,n){for(var r,o,i=/url\((['"]?)(.*)\1\)/gi,a=n;null!==(r=i.exec(n));)o=r[2],a=a.replace(o,j(e,t,o));return a},B=function(e){return"link"===e.nodeName.toLowerCase()&&!!e.href&&!!e.rel&&"stylesheet"===e.rel.toLowerCase()},U=function(e){return"template"===e.nodeName.toLowerCase()&&!!e.content&&11===e.content.nodeType},N=function(e,t){e.setAttribute("data-hmr",t)},D=function(e){return!!e.shadowRoot&&11===e.shadowRoot.nodeType&&e.shadowRoot!==e},F=function(e){return!!e&&1===e.nodeType&&!!e.getAttribute},T=function(e,t,n){var r=[];return n.forEach((function(n){R(r,e,t,n)})),r.sort()},R=function(e,t,n,r){if(t.nodeName.toLowerCase()===r&&"function"==typeof t["s-hmr"]&&(t["s-hmr"](n),N(t,n),-1===e.indexOf(r)&&e.push(r)),D(t)&&R(e,t.shadowRoot,n,r),t.children)for(var o=0;o<t.children.length;o++)R(e,t.children[o],n,r)},O=function(e,t,n){if(B(e)&&n.forEach((function(n){M(e,t,n)})),U(e)&&O(e.content,t,n),D(e)&&O(e.shadowRoot,t,n),e.children)for(var r=0;r<e.children.length;r++)O(e.children[r],t,n);return n.sort()},M=function(e,t,n){var r=e.getAttribute("href"),o=j(t,n,e.href);o!==r&&(e.setAttribute("href",o),N(e,t))},z=function(e,t,n,r){return"file:"!==e.location.protocol&&t.styleSheets&&K(t,n,r),Y(e,t.documentElement,n,r),r.sort()},K=function(e,t,n){var r,o=Object.keys(e.documentElement.style).filter((function(e){return e.endsWith("Image")}));for(r=0;r<e.styleSheets.length;r++)P(o,e.styleSheets[r],t,n)},P=function(e,t,n,r){var o,i,a;try{for(o=t.cssRules,i=0;i<o.length;i++)switch((a=o[i]).type){case CSSRule.IMPORT_RULE:P(e,a.styleSheet,n,r);break;case CSSRule.STYLE_RULE:J(e,a,n,r);break;case CSSRule.MEDIA_RULE:P(e,a,n,r)}}catch(e){console.error("hmrStyleSheetImages: "+e)}},J=function(e,t,n,r){e.forEach((function(e){r.forEach((function(r){var o=t.style[e],i=S(n,r,o);o!==i&&(t.style[e]=i)}))}))},Y=function(e,t,n,r){var o,i,a=t.nodeName.toLowerCase();if("img"===a&&W(t,n,r),F(t)&&(o=t.getAttribute("style"))&&X(t,n,r,o),"style"===a&&q(t,n,r),"file:"!==e.location.protocol&&B(t)&&G(t,n,r),U(t)&&Y(e,t.content,n,r),D(t)&&Y(e,t.shadowRoot,n,r),t.children)for(i=0;i<t.children.length;i++)Y(e,t.children[i],n,r)},W=function(e,t,n){n.forEach((function(n){var r=e.getAttribute("src"),o=j(t,n,r);o!==r&&(e.setAttribute("src",o),N(e,t))}))},X=function(e,t,n,r){n.forEach((function(n){var o=S(t,n,r);o!==r&&(e.setAttribute("style",o),N(e,t))}))},q=function(e,t,n){n.forEach((function(n){var r=e.innerHTML,o=S(t,n,r);o!==r&&(e.innerHTML=o,N(e,t))}))},G=function(e,t,n){e.href=Q(e.href,"s-hmr-urls",n.sort().join(",")),e.href=H(e.href,t),e.setAttribute("data-hmr",t)},Z=function(e,t,n){var r,o=n;if(F(e)&&"style"===e.nodeName.toLowerCase()&&o.forEach((function(n){V(e,t,n)})),U(e)&&Z(e.content,t,o),D(e)&&Z(e.shadowRoot,t,o),e.children)for(r=0;r<e.children.length;r++)Z(e.children[r],t,o);return o.map((function(e){return e.styleTag})).reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[]).sort()},V=function(e,t,n){e.getAttribute("sty-id")===n.styleId&&n.styleText&&(e.innerHTML=n.styleText.replace(/\\n/g,"\n"),e.setAttribute("data-hmr",t))},_=function(e){var t,n,r,o,i,a={updatedComponents:[],updatedExternalStyles:[],updatedInlineStyles:[],updatedImages:[],versionId:""};try{if(!(e&&e.window&&e.window.document.documentElement&&e.hmr&&"string"==typeof e.hmr.versionId))return a;n=(t=e.window).document,r=e.hmr,o=n.documentElement,i=r.versionId,a.versionId=i,r.componentsUpdated&&(a.updatedComponents=T(o,i,r.componentsUpdated)),r.inlineStylesUpdated&&(a.updatedInlineStyles=Z(o,i,r.inlineStylesUpdated)),r.externalStylesUpdated&&(a.updatedExternalStyles=O(o,i,r.externalStylesUpdated)),r.imagesUpdated&&(a.updatedImages=z(t,n,i,r.imagesUpdated)),N(o,i)}catch(e){console.error(e)}return a},$=function(e){return oe(le,"Build",e)},ee=function(e){return te("Reload",e)},te=function(e,t){return oe(ie,e,t)},ne=function(e,t){return oe(se,e,t)},re=function(e){var t,n=e,r=ae,o="Error";"warn"===n.level&&(r=ie,o="Warning"),n.header&&(o=n.header),t="",n.relFilePath&&(t+=n.relFilePath,"number"==typeof n.lineNumber&&n.lineNumber>0&&(t+=", line "+n.lineNumber,"number"==typeof n.columnNumber&&n.columnNumber>0&&(t+=", column "+n.columnNumber)),t+="\n"),t+=n.messageText,oe(r,o,t)},oe=function(e,t,n){"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Trident")>-1?console.log(t,n):console.log.apply(console,["%c"+t,"background: ".concat(e,"; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;"),n])},ie="#f39c12",ae="#c0392b",le="#3498db",se="#717171",de=function(e){function t(){clearTimeout(l),clearTimeout(a);var e=o();if(!e)return function(){var e=p.createElement("div");e.id=c,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.zIndex="100001",e.style.width="100%",e.style.height="2px",e.style.transform="scaleX(0)",e.style.opacity="1",e.style.background=u,e.style.transformOrigin="left center",e.style.transition="transform .1s ease-in-out, opacity .5s ease-in",e.style.contain="strict",p.body.appendChild(e)}(),void(i=setTimeout(t,16));e.style.background=u,e.style.opacity="1",e.style.transform="scaleX(".concat(Math.min(1,r()),")"),null==s&&(s=setInterval((function(){d+=.05*Math.random()+.01,r()<.9?t():clearInterval(s)}),800))}function n(){clearInterval(s),d=.05,s=null,clearTimeout(l),clearTimeout(i),clearTimeout(a);var e=o();e&&(f>=1&&(e.style.transform="scaleX(1)"),l=setTimeout((function(){try{var e=o();e&&(e.style.opacity="0")}catch(e){}}),150),a=setTimeout((function(){try{var e=o();e&&e.parentNode.removeChild(e)}catch(e){}}),1e3))}function r(){var e=f+d;return Math.max(0,Math.min(1,e))}function o(){return p.getElementById(c)}var i,a,l,s,d,c,A=e.window,p=A.document,u="#5851ff",m="#b70c19",f=0;n(),b(A,(function(e){(f=e.progress)>=0&&f<1?t():n()})),w(A,(function(e){if(e.hasError){var t=o();t&&(t.style.transform="scaleX(1)",t.style.background=m)}n()})),y(A,(function(e){"disabled"===e&&n()})),"tmpl-initial-load"===p.head.dataset.tmpl&&t(),c="dev-server-progress-bar"},ce=function(e){var t=e.window,n=t.document,r=ue(n);r.forEach((function(e){e.href&&(e.dataset.href=e.href,e.dataset.type=e.type)})),y(t,(function(e){Ae(n,e)}))},Ae=function(e,t){ue(e).forEach((function(e){pe(e,t)}))},pe=function(e,t){"pending"===t?(e.href=fe,e.type=he,e.setAttribute("data-status",t)):"error"===t?(e.href=ge,e.type=he,e.setAttribute("data-status",t)):"disabled"===t?(e.href=ve,e.type=he,e.setAttribute("data-status",t)):(e.removeAttribute("data-status"),e.dataset.href?(e.href=e.dataset.href,e.type=e.dataset.type):(e.href=me,e.type=he))},ue=function(e){var t,n,r=[],o=e.querySelectorAll("link");for(t=0;t<o.length;t++)o[t].href&&o[t].rel&&(o[t].rel.indexOf("shortcut")>-1||o[t].rel.indexOf("icon")>-1)&&r.push(o[t]);return 0===r.length&&((n=e.createElement("link")).rel="shortcut icon",e.head.appendChild(n),r.push(n)),r},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUzeAAAAM3RSTlMAsGDs4wML8QEbBvr2FMhAM7+ILCUPnNzXrX04otO6j3RiT0ggzLSTcmtWUUWoZlknghZc2mZzAAACrklEQVR42u3dWXLiUAyFYWEwg40x8wxhSIAwJtH+99ZVeeinfriXVpWk5Hyr+C2VrgkAAAAAAAAAAAw5sZQ7aUhYypw07FjKC2ko2yxk2SQ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FUkYL9OwvJclKQrsQCbkcK0olYAF1IQXFgIfVAGnqWcqZwFidYN4phb4L1onCYYMlPsLqUFKwxwRozwTIYcG1FCqrWdwBhgqU7wUo7FlJ7n2DdScPL+RPezfkT3tl5AA217yc89xMssYBbzUjDkEjZEwAA+NFMbOrDJygmZXnwBMWkaRk8QTFpvg6eoJi0aIInKDY9gp/AbEqCJyg2bYOfwGzqKUzPNh2K0Ccwm0IfRBK2KfSLkDvbFPog0tRsUlsh4EZAwP2SgKu9B9wdATcOAg4BZwACbgQEHALOCATcCAg4BJwVCLhREHB/LOAebFNwwC3YJATcKAi4yICjfmJTQwAA4EeZSBkojrWdsvmO4hjbKYtd6ra2Uxa71G1tp0xnqbvo+IPfpe4Nf3K703Ridr3T9OQPfnea7szseaepqX3vNH3NM/xe5fmeZ7i9yiMXQFlJEeydhYy4ymMygCICzmQAxQactbOQMQFnMoBiAs7iVaHIgDN3VSgq4AxeFYoOOGNXhbCUPkaJs4o4q/iXzyp2vgPO/VnFl/OAu/F/jq8KnZ0H3FD7DriL9x+DTH0HXJ75Driq9R1ws6XvgEuvvgOu6HwHHG18BxydnAfc03nAAQAAAAAAAADAz/4BoL2Us9XM2zMAAAAASUVORK5CYII=",he="image/x-icon",be="/~dev-server",we="".concat(be,"-init"),ye="".concat(be,"-open-in-editor"),ke=function(e,t){w(e,(function(n){Ee(e,t,n)}))},Ee=function(e,t,n){var r,o;try{if(n.buildId===e["s-build-id"])return;if(e["s-build-id"]=n.buildId,d({window:e}),n.hasError)return r=Array.isArray(t.editors)&&t.editors.length>0?t.editors[0].id:null,(o=i({window:e,buildResults:n,openInEditor:r?function(t){var n={file:t.file,line:t.line,column:t.column,editor:r},o="".concat(ye,"?").concat(Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})).join("&"));e.fetch(o)}:null})).diagnostics.forEach(re),void h(e,o.status);if(e["s-initial-load"])return void je(e,t,(function(){ee("Initial load"),e.location.reload()}));n.hmr&&Ce(e,n.hmr)}catch(e){console.error(e)}},Ce=function(e,t){var n,r=!1;"pageReload"===t.reloadStrategy&&(r=!0),t.indexHtmlUpdated&&(ee("Updated index.html"),r=!0),t.serviceWorkerUpdated&&(ee("Updated Service Worker: sw.js"),r=!0),t.scriptsAdded&&t.scriptsAdded.length>0&&(ee("Added scripts: ".concat(t.scriptsAdded.join(", "))),r=!0),t.scriptsDeleted&&t.scriptsDeleted.length>0&&(ee("Deleted scripts: ".concat(t.scriptsDeleted.join(", "))),r=!0),t.excludeHmr&&t.excludeHmr.length>0&&(ee("Excluded From Hmr: ".concat(t.excludeHmr.join(", "))),r=!0),r?e.location.reload():((n=_({window:e,hmr:t})).updatedComponents.length>0&&$("Updated component".concat(n.updatedComponents.length>1?"s":"",": ").concat(n.updatedComponents.join(", "))),n.updatedInlineStyles.length>0&&$("Updated styles: ".concat(n.updatedInlineStyles.join(", "))),n.updatedExternalStyles.length>0&&$("Updated stylesheets: ".concat(n.updatedExternalStyles.join(", "))),n.updatedImages.length>0&&$("Updated images: ".concat(n.updatedImages.join(", "))))},je=function(e,t,n){e.history.replaceState({},"App",t.basePath),e.navigator.serviceWorker&&e.navigator.serviceWorker.getRegistration?e.navigator.serviceWorker.getRegistration().then((function(e){e?e.unregister().then((function(e){e&&$("unregistered service worker"),n()})):n()})).catch((function(e){te("Service Worker",e),n()})):n()},Le=function(e,t){function n(){var t=this;A>0&&h(e,"pending"),p||(c=setInterval((function(){if(u++,!p&&t.readyState===WebSocket.OPEN&&u<500){t.send(JSON.stringify({requestBuildResults:!0}))}else clearInterval(c)}),He)),clearTimeout(d)}function r(){l()}function o(t){h(e,"disabled"),t.code>Qe?te("Dev Server","web socket closed: ".concat(t.code," ").concat(t.reason)):ne("Dev Server","Disconnected, attempting to reconnect..."),l()}function i(t){var n=JSON.parse(t.data);if(A>0){if(n.isActivelyBuilding)return;if(n.buildResults)return ee("Reconnected to dev server"),p=!0,u=0,clearInterval(c),e["s-build-id"]!==n.buildResults.buildId&&e.location.reload(),void(e["s-build-id"]=n.buildResults.buildId)}return n.buildLog?(n.buildLog.progress<1&&h(e,"pending"),void g(e,n.buildLog)):n.buildResults?(p=!0,u=0,clearInterval(c),h(e,"default"),void v(e,n.buildResults)):void 0}function a(){clearTimeout(d),(s=new e.WebSocket(t.socketUrl,["xmpp"])).addEventListener("open",n),s.addEventListener("error",r),s.addEventListener("close",o),s.addEventListener("message",i)}function l(){p=!1,s&&(s.readyState!==WebSocket.OPEN&&s.readyState!==WebSocket.CONNECTING||s.close(Qe),s.removeEventListener("open",n),s.removeEventListener("error",r),s.removeEventListener("close",o),s.removeEventListener("message",i),s=null),clearTimeout(d),A>=xe?te("Dev Server","Canceling reconnect attempts"):(A++,d=setTimeout(a,Ie),h(e,"disabled"))}var s,d,c,A=0,p=!1,u=0;a()},xe=1e3,Ie=2500,Qe=1e3,He=500,Se=function(e,t){try{if(e["s-dev-server"])return;e["s-dev-server"]=!0,ce({window:e}),de({window:e}),ke(e,t),Be(e,t)?(e["s-initial-load"]=!0,je(e,t,(function(){Le(e,t)}))):Le(e,t)}catch(e){console.error(e)}},Be=function(e,t){var n=e.location.pathname;return(n="/"+n.substring(t.basePath.length))===we},Ue=function(e){De(),Ne(e)},Ne=function(e){function t(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof e.CustomEvent&&(t.prototype=e.Event.prototype,e.CustomEvent=t)},De=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e){var t,n,r,o,i,a,l=[];for(t=1;t<arguments.length;t++)l[t-1]=arguments[t];for(n=Object(e),r=0,o=l;r<o.length;r++)if(null!=(i=o[r]))for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n},writable:!0,configurable:!0})},Fe={basePath:t.location.pathname,editors:[],reloadStrategy:"hmr",socketUrl:"".concat("https:"===location.protocol?"wss:":"ws:","//").concat(location.hostname).concat(""!==location.port?":"+location.port:"","/")};Ue(e),Se(t,Object.assign({},Fe,t.devServerConfig,n))}(window,window.parent,window.__DEV_CLIENT_CONFIG__);
6
6
  </script></body></html>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Dev Server v4.18.3-dev.1718220868.532557e | MIT Licensed | https://stenciljs.com
2
+ Stencil Dev Server v4.18.3-dev.1718341300.87e5b33 | 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/dev-server",
3
- "version": "4.18.3-dev.1718220868.532557e",
3
+ "version": "4.18.3-dev.1718341300.87e5b33",
4
4
  "description": "Stencil Development Server which communicates with the Stencil Compiler.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",