@stencil/core 2.5.0 → 2.6.0

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 (50) hide show
  1. package/CHANGELOG.md +19 -181
  2. package/NOTICE.md +109 -2
  3. package/cli/index.cjs +2 -2
  4. package/cli/index.js +2 -2
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/stencil.js +871 -419
  8. package/compiler/stencil.min.js +2 -2
  9. package/dependencies.json +1 -1
  10. package/dev-server/client/index.js +1 -1
  11. package/dev-server/client/package.json +1 -1
  12. package/dev-server/connector.html +2 -2
  13. package/dev-server/index.js +1 -1
  14. package/dev-server/package.json +1 -1
  15. package/dev-server/server-process.js +2 -2
  16. package/internal/app-data/package.json +1 -1
  17. package/internal/client/css-shim.js +1 -1
  18. package/internal/client/dom.js +1 -1
  19. package/internal/client/index.js +5 -2
  20. package/internal/client/package.json +1 -1
  21. package/internal/client/patch-browser.js +1 -1
  22. package/internal/client/patch-esm.js +1 -1
  23. package/internal/client/shadow-css.js +1 -1
  24. package/internal/hydrate/index.js +3 -1
  25. package/internal/hydrate/package.json +1 -1
  26. package/internal/package.json +1 -1
  27. package/internal/stencil-core/index.d.ts +1 -0
  28. package/internal/stencil-core/index.js +1 -0
  29. package/internal/stencil-public-runtime.d.ts +7 -0
  30. package/internal/testing/index.js +3 -2
  31. package/internal/testing/package.json +1 -1
  32. package/mock-doc/index.cjs +1 -1
  33. package/mock-doc/index.js +1 -1
  34. package/mock-doc/package.json +1 -1
  35. package/package.json +2 -3
  36. package/screenshot/compare/.DS_Store +0 -0
  37. package/screenshot/package.json +1 -1
  38. package/sys/.DS_Store +0 -0
  39. package/sys/deno/index.js +1 -1
  40. package/sys/node/index.js +1 -1
  41. package/sys/node/package.json +1 -1
  42. package/sys/node/worker.js +1 -1
  43. package/testing/index.js +275 -140
  44. package/testing/package.json +1 -1
  45. package/screenshot/connector-base.d.ts +0 -42
  46. package/screenshot/connector-local.d.ts +0 -7
  47. package/screenshot/index.d.ts +0 -3
  48. package/screenshot/pixel-match.d.ts +0 -1
  49. package/screenshot/screenshot-compare.d.ts +0 -3
  50. package/screenshot/screenshot-fs.d.ts +0 -15
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v2.5.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v2.6.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -54,12 +54,12 @@ function getAppStyleUrl(e, t) {
54
54
  function getAppUrl(e, t, r) {
55
55
  const s = e.outputTargets.find(isOutputTargetWww);
56
56
  if (s) {
57
- const e = s.buildDir, n = path$1.join(e, r), i = path$1.relative(s.dir, n);
57
+ const e = s.buildDir, n = path$2.join(e, r), i = path$2.relative(s.dir, n);
58
58
  return new URL(i, t).href;
59
59
  }
60
60
  const n = e.outputTargets.find(isOutputTargetDistLazy);
61
61
  if (n) {
62
- const s = n.esmDir, i = path$1.join(s, r), o = path$1.relative(e.rootDir, i);
62
+ const s = n.esmDir, i = path$2.join(s, r), o = path$2.relative(e.rootDir, i);
63
63
  return new URL(o, t).href;
64
64
  }
65
65
  return t;
@@ -313,9 +313,22 @@ function normalizeStringPosix(e, t) {
313
313
  return i;
314
314
  }
315
315
 
316
+ function specifierIncluded$1(e, t) {
317
+ var r, s, n, i = e.split("."), o = t.split(" "), a = o.length > 1 ? o[0] : "=", l = (o.length > 1 ? o[1] : o[0]).split(".");
318
+ for (r = 0; r < 3; ++r) if ((s = parseInt(i[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
319
+ return ">=" === a;
320
+ }
321
+
322
+ function matchesRange$1(e, t) {
323
+ var r, s = t.split(/ ?&& ?/);
324
+ if (0 === s.length) return !1;
325
+ for (r = 0; r < s.length; ++r) if (!specifierIncluded$1(e, s[r])) return !1;
326
+ return !0;
327
+ }
328
+
316
329
  function specifierIncluded(e) {
317
330
  var t, r, s, n = e.split(" "), i = n.length > 1 ? n[0] : "=", o = (n.length > 1 ? n[1] : n[0]).split(".");
318
- for (t = 0; t < 3; ++t) if ((r = Number(current[t] || 0)) !== (s = Number(o[t] || 0))) return "<" === i ? r < s : ">=" === i && r >= s;
331
+ for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(o[t] || 0, 10))) return "<" === i ? r < s : ">=" === i && r >= s;
319
332
  return ">=" === i;
320
333
  }
321
334
 
@@ -445,7 +458,7 @@ function mockCompilerCtx(e) {
445
458
  if (a.length > 0) {
446
459
  const e = b(r);
447
460
  e.exists = !0, e.isFile = !1, e.isDirectory = !0, await Promise.all(a.map((async e => {
448
- const r = normalizePath(e), a = normalizePath(path$1.relative(t, r)), l = await c(r), u = {
461
+ const r = normalizePath(e), a = normalizePath(path$2.relative(t, r)), l = await c(r), u = {
449
462
  absPath: r,
450
463
  relPath: a,
451
464
  isDirectory: l.isDirectory,
@@ -457,7 +470,7 @@ function mockCompilerCtx(e) {
457
470
  }, o = (e, t) => {
458
471
  if (t.isDirectory) {
459
472
  if (Array.isArray(e.excludeDirNames)) {
460
- const r = path$1.basename(t.absPath);
473
+ const r = path$2.basename(t.absPath);
461
474
  if (e.excludeDirNames.some((e => r === e))) return !0;
462
475
  }
463
476
  } else if (Array.isArray(e.excludeExtensions)) {
@@ -529,7 +542,7 @@ function mockCompilerCtx(e) {
529
542
  return i;
530
543
  }, h = async (e, t) => {
531
544
  const r = [];
532
- for (;"string" == typeof (e = path$1.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
545
+ for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
533
546
  r.reverse(), await p(r, t);
534
547
  }, p = async (t, r) => {
535
548
  const s = [];
@@ -559,7 +572,7 @@ function mockCompilerCtx(e) {
559
572
  return r;
560
573
  }, _ = e => {
561
574
  e = normalizePath(e), t.forEach(((t, r) => {
562
- const s = path$1.relative(e, r).split("/")[0];
575
+ const s = path$2.relative(e, r).split("/")[0];
563
576
  s.startsWith(".") || s.startsWith("/") || v(r);
564
577
  }));
565
578
  }, v = e => {
@@ -899,17 +912,17 @@ function writeFile(e, t) {
899
912
  }
900
913
 
901
914
  async function compareScreenshot(e, t, r, s, n, i, o, a) {
902
- const l = `${crypto$2.createHash("md5").update(r).digest("hex")}.png`, c = path$1.join(t.imagesDir, l);
915
+ const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
903
916
  await async function u(e, t) {
904
917
  await function r(e) {
905
918
  return new Promise((t => {
906
919
  fs__default.default.access(e, (e => t(!e)));
907
920
  }));
908
921
  }(e) || await writeFile(e, t);
909
- }(c, r), r = null, o && (o = normalizePath(path$1.relative(t.rootDir, o)));
922
+ }(c, r), r = null, o && (o = normalizePath(path$2.relative(t.rootDir, o)));
910
923
  const d = function h(e, t) {
911
924
  if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
912
- const r = crypto$2.createHash("md5");
925
+ const r = crypto$3.createHash("md5");
913
926
  return r.update(t + ":"), r.update(e.userAgent + ":"), r.update(e.viewport.width + ":"),
914
927
  r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
915
928
  r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").substr(0, 8).toLowerCase();
@@ -950,14 +963,14 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
950
963
  if (!f) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
951
964
  if (p.diff.imageA = f, p.diff.imageA !== p.diff.imageB) {
952
965
  p.diff.cacheKey = function m(e, t, r) {
953
- const s = crypto$2.createHash("md5");
966
+ const s = crypto$3.createHash("md5");
954
967
  return s.update(`${e}:${t}:${r}`), s.digest("hex").substr(0, 10);
955
968
  }(p.diff.imageA, p.diff.imageB, a);
956
969
  const r = t.cache[p.diff.cacheKey];
957
970
  if ("number" != typeof r || isNaN(r)) {
958
971
  const r = Math.round(e.viewport.width * e.viewport.deviceScaleFactor), s = Math.round(e.viewport.height * e.viewport.deviceScaleFactor), n = {
959
- imageAPath: path$1.join(t.imagesDir, p.diff.imageA),
960
- imageBPath: path$1.join(t.imagesDir, p.diff.imageB),
972
+ imageAPath: path$2.join(t.imagesDir, p.diff.imageA),
973
+ imageBPath: path$2.join(t.imagesDir, p.diff.imageB),
961
974
  width: r,
962
975
  height: s,
963
976
  pixelmatchThreshold: a
@@ -973,7 +986,7 @@ async function compareScreenshot(e, t, r, s, n, i, o, a) {
973
986
  env: process.env,
974
987
  cwd: process.cwd(),
975
988
  stdio: [ "pipe", "pipe", "pipe", "ipc" ]
976
- }, o = child_process$1.fork(e, [], n);
989
+ }, o = child_process$2.fork(e, [], n);
977
990
  o.on("message", (e => {
978
991
  o.kill(), clearTimeout(i), r(e);
979
992
  })), o.on("error", (e => {
@@ -1072,9 +1085,9 @@ function serializeConsoleMessage(e) {
1072
1085
  }(e.location())}`;
1073
1086
  }
1074
1087
 
1075
- var posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, current, core, mod, core_1, isCore, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, getPackageCandidates$1, async, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, getPackageCandidates, sync, resolve;
1088
+ var posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1076
1089
 
1077
- const path$1 = require("path"), index_js = _lazyRequire("../dev-server/index.js"), stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@stencil/core/internal/app-data"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), testing = _lazyRequire("@stencil/core/internal/testing"), fs$1 = require("fs"), crypto$2 = require("crypto"), child_process$1 = require("child_process"), path__default = _interopDefaultLegacy(path$1), fs__default = _interopDefaultLegacy(fs$1), formatComponentRuntimeMembers = (e, t = !0) => ({
1090
+ const path$2 = require("path"), index_js = _lazyRequire("../dev-server/index.js"), stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@stencil/core/internal/app-data"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), testing = _lazyRequire("@stencil/core/internal/testing"), fs$2 = require("fs"), crypto$3 = require("crypto"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1078
1091
  ...formatPropertiesRuntimeMember(e.properties),
1079
1092
  ...formatStatesRuntimeMember(e.states),
1080
1093
  ...t ? formatMethodsRuntimeMember(e.methods) : {}
@@ -1771,7 +1784,7 @@ class Cache {
1771
1784
  void this.clearDiskCache();
1772
1785
  this.config.logger.debug(`cache enabled, cacheDir: ${this.config.cacheDir}`);
1773
1786
  try {
1774
- const e = path$1.join(this.config.cacheDir, "_README.log");
1787
+ const e = path$2.join(this.config.cacheDir, "_README.log");
1775
1788
  await this.cacheFs.writeFile(e, CACHE_DIR_README);
1776
1789
  } catch (e) {
1777
1790
  this.logger.error(`Cache, initCacheDir: ${e}`), this.config.enableCache = !1;
@@ -1818,7 +1831,7 @@ class Cache {
1818
1831
  const e = Date.now(), t = await this.sys.cacheStorage.get(EXP_STORAGE_KEY);
1819
1832
  if (null != t) {
1820
1833
  if (e - t < ONE_DAY) return;
1821
- const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$1.join(this.config.cacheDir, e)));
1834
+ const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1822
1835
  let i = 0;
1823
1836
  const o = n.map((async t => {
1824
1837
  const s = (await r.stat(t)).mtimeMs;
@@ -1833,7 +1846,7 @@ class Cache {
1833
1846
  await this.cacheFs.commit());
1834
1847
  }
1835
1848
  getCacheFilePath(e) {
1836
- return path$1.join(this.config.cacheDir, e) + ".log";
1849
+ return path$2.join(this.config.cacheDir, e) + ".log";
1837
1850
  }
1838
1851
  getMemoryStats() {
1839
1852
  return null != this.cacheFs ? this.cacheFs.getMemoryStats() : null;
@@ -1852,7 +1865,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1852
1865
  if (!0 === e.queueWriteToDisk) {
1853
1866
  if (!0 === e.isFile) {
1854
1867
  t.filesToWrite.push(r);
1855
- const e = normalizePath(path$1.dirname(r));
1868
+ const e = normalizePath(path$2.dirname(r));
1856
1869
  t.dirsToEnsure.includes(e) || t.dirsToEnsure.push(e);
1857
1870
  const s = t.dirsToDelete.indexOf(e);
1858
1871
  s > -1 && t.dirsToDelete.splice(s, 1);
@@ -1866,7 +1879,7 @@ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY
1866
1879
  } else if (!0 === e.queueDeleteFromDisk) e.isDirectory && !t.dirsToEnsure.includes(r) ? t.dirsToDelete.push(r) : e.isFile && !t.filesToWrite.includes(r) && t.filesToDelete.push(r); else if ("string" == typeof e.queueCopyFileToDest) {
1867
1880
  const s = r, n = e.queueCopyFileToDest;
1868
1881
  t.filesToCopy.push([ s, n ]);
1869
- const i = normalizePath(path$1.dirname(n));
1882
+ const i = normalizePath(path$2.dirname(n));
1870
1883
  t.dirsToEnsure.includes(i) || t.dirsToEnsure.push(i);
1871
1884
  const o = t.dirsToDelete.indexOf(i);
1872
1885
  o > -1 && t.dirsToDelete.splice(o, 1);
@@ -2085,9 +2098,9 @@ const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db", COMMON_DIR_MODULE_E
2085
2098
  })(e, r.name, r.version);
2086
2099
  } catch (e) {}
2087
2100
  })(i, n);
2088
- let o = path$1.dirname(s);
2101
+ let o = path$2.dirname(s);
2089
2102
  for (;"/" !== o && "" !== o; ) t ? (t.clearFileCache(o), await t.sys.createDir(o)) : await e.createDir(o),
2090
- o = path$1.dirname(o);
2103
+ o = path$2.dirname(o);
2091
2104
  t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2092
2105
  })(e, t, s, n, o, r), o;
2093
2106
  }
@@ -2161,10 +2174,25 @@ caller = function() {
2161
2174
  }), r) : (n = getNodeModulesDirs(t, i), r && r.paths ? n.concat(r.paths) : n);
2162
2175
  }, normalizeOptions = function(e, t) {
2163
2176
  return t || {};
2164
- };
2165
-
2166
- const data = {
2177
+ }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", slice = Array.prototype.slice,
2178
+ toStr = Object.prototype.toString, implementation = function e(t) {
2179
+ var r, s, n, i, o, a, l, c = this;
2180
+ if ("function" != typeof c || "[object Function]" !== toStr.call(c)) throw new TypeError(ERROR_MESSAGE + c);
2181
+ for (r = slice.call(arguments, 1), n = function() {
2182
+ if (this instanceof s) {
2183
+ var e = c.apply(this, r.concat(slice.call(arguments)));
2184
+ return Object(e) === e ? e : this;
2185
+ }
2186
+ return c.apply(t, r.concat(slice.call(arguments)));
2187
+ }, i = Math.max(0, c.length - r.length), o = [], a = 0; a < i; a++) o.push("$" + a);
2188
+ return s = Function("binder", "return function (" + o.join(",") + "){ return binder.apply(this,arguments); }")(n),
2189
+ c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2190
+ l.prototype = null), s;
2191
+ }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2192
+
2193
+ const data$1 = {
2167
2194
  assert: !0,
2195
+ "assert/strict": ">= 15",
2168
2196
  async_hooks: ">= 8",
2169
2197
  buffer_ieee754: "< 0.9.7",
2170
2198
  buffer: !0,
@@ -2176,8 +2204,10 @@ const data = {
2176
2204
  _debug_agent: ">= 1 && < 8",
2177
2205
  _debugger: "< 8",
2178
2206
  dgram: !0,
2207
+ diagnostics_channel: ">= 15.1",
2179
2208
  dns: !0,
2180
- domain: !0,
2209
+ "dns/promises": ">= 15",
2210
+ domain: ">= 0.7.12",
2181
2211
  events: !0,
2182
2212
  freelist: "< 6",
2183
2213
  fs: !0,
@@ -2200,6 +2230,8 @@ const data = {
2200
2230
  "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2201
2231
  os: !0,
2202
2232
  path: !0,
2233
+ "path/posix": ">= 15.3",
2234
+ "path/win32": ">= 15.3",
2203
2235
  perf_hooks: ">= 8.5",
2204
2236
  process: ">= 1",
2205
2237
  punycode: !0,
@@ -2214,9 +2246,11 @@ const data = {
2214
2246
  _stream_readable: ">= 0.9.4",
2215
2247
  _stream_writable: ">= 0.9.4",
2216
2248
  stream: !0,
2249
+ "stream/promises": ">= 15",
2217
2250
  string_decoder: !0,
2218
- sys: !0,
2251
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2219
2252
  timers: !0,
2253
+ "timers/promises": ">= 15",
2220
2254
  _tls_common: ">= 0.11.13",
2221
2255
  _tls_legacy: ">= 0.11.3 && < 10",
2222
2256
  _tls_wrap: ">= 0.11.3",
@@ -2225,6 +2259,7 @@ const data = {
2225
2259
  tty: !0,
2226
2260
  url: !0,
2227
2261
  util: !0,
2262
+ "util/types": ">= 15.3",
2228
2263
  "v8/tools/arguments": ">= 10 && < 12",
2229
2264
  "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2230
2265
  "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
@@ -2239,11 +2274,17 @@ const data = {
2239
2274
  zlib: !0
2240
2275
  };
2241
2276
 
2242
- for (mod in current = process.versions && process.versions.node && process.versions.node.split(".") || [],
2243
- core = {}, data) Object.prototype.hasOwnProperty.call(data, mod) && (core[mod] = versionIncluded(data[mod]));
2244
-
2245
- core_1 = core, isCore = function e(t) {
2246
- return Object.prototype.hasOwnProperty.call(core_1, t);
2277
+ isCoreModule = function e(t, r) {
2278
+ return src(data$1, t) && function s(e, t) {
2279
+ var r, s;
2280
+ if ("boolean" == typeof t) return t;
2281
+ if ("string" != typeof (r = void 0 === e ? process.versions && process.versions.node && process.versions.node : e)) throw new TypeError(void 0 === e ? "Unable to determine current node version" : "If provided, a valid node version is required");
2282
+ if (t && "object" == typeof t) {
2283
+ for (s = 0; s < t.length; ++s) if (matchesRange$1(r, t[s])) return !0;
2284
+ return !1;
2285
+ }
2286
+ return matchesRange$1(r, t);
2287
+ }(r, data$1[t]);
2247
2288
  }, realpathFS$1 = fs__default.default.realpath && "function" == typeof fs__default.default.realpath.native ? fs__default.default.realpath.native : fs__default.default.realpath,
2248
2289
  defaultIsFile$1 = function e(t, r) {
2249
2290
  fs__default.default.stat(t, (function(e, t) {
@@ -2259,38 +2300,47 @@ defaultIsFile$1 = function e(t, r) {
2259
2300
  }));
2260
2301
  }, maybeRealpath = function e(t, r, s, n) {
2261
2302
  s && !1 === s.preserveSymlinks ? t(r, n) : n(null, r);
2303
+ }, defaultReadPackage = function e(t, r, s) {
2304
+ t(r, (function(e, t) {
2305
+ if (e) s(e); else try {
2306
+ var r = JSON.parse(t);
2307
+ s(null, r);
2308
+ } catch (e) {
2309
+ s(null);
2310
+ }
2311
+ }));
2262
2312
  }, getPackageCandidates$1 = function e(t, r, s) {
2263
2313
  var n, i = nodeModulesPaths(r, s, t);
2264
2314
  for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
2265
2315
  return i;
2266
2316
  }, async = function e(t, r, s) {
2267
2317
  function n(e) {
2268
- if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) v = path__default.default.resolve(e, t),
2269
- "." !== t && ".." !== t && "/" !== t.slice(-1) || (v += "/"), /\/$/.test(t) && v === e ? l(v, E.package, i) : o(v, E.package, i); else {
2270
- if (isCore(t)) return b(null, t);
2318
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2319
+ "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, i) : o(T, C.package, i); else {
2320
+ if (_ && isCoreModule(t)) return S(null, t);
2271
2321
  !function r(e, t, s) {
2272
2322
  var n = function() {
2273
- return getPackageCandidates$1(e, t, E);
2323
+ return getPackageCandidates$1(e, t, C);
2274
2324
  };
2275
- c(s, m ? m(e, t, n, E) : n());
2325
+ c(s, y ? y(e, t, n, C) : n());
2276
2326
  }(t, e, (function(e, r, s) {
2277
- if (e) b(e); else {
2278
- if (r) return maybeRealpath(f, r, E, (function(e, t) {
2279
- e ? b(e) : b(null, t, s);
2327
+ if (e) S(e); else {
2328
+ if (r) return maybeRealpath(f, r, C, (function(e, t) {
2329
+ e ? S(e) : S(null, t, s);
2280
2330
  }));
2281
- var n = new Error("Cannot find module '" + t + "' from '" + w + "'");
2282
- n.code = "MODULE_NOT_FOUND", b(n);
2331
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2332
+ n.code = "MODULE_NOT_FOUND", S(n);
2283
2333
  }
2284
2334
  }));
2285
2335
  }
2286
2336
  }
2287
2337
  function i(e, r, s) {
2288
- e ? b(e) : r ? b(null, r, s) : l(v, (function(e, r, s) {
2289
- if (e) b(e); else if (r) maybeRealpath(f, r, E, (function(e, t) {
2290
- e ? b(e) : b(null, t, s);
2338
+ e ? S(e) : r ? S(null, r, s) : l(T, (function(e, r, s) {
2339
+ if (e) S(e); else if (r) maybeRealpath(f, r, C, (function(e, t) {
2340
+ e ? S(e) : S(null, t, s);
2291
2341
  })); else {
2292
- var n = new Error("Cannot find module '" + t + "' from '" + w + "'");
2293
- n.code = "MODULE_NOT_FOUND", b(n);
2342
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2343
+ n.code = "MODULE_NOT_FOUND", S(n);
2294
2344
  }
2295
2345
  }));
2296
2346
  }
@@ -2299,8 +2349,8 @@ defaultIsFile$1 = function e(t, r) {
2299
2349
  "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2300
2350
  function i(s, i, a) {
2301
2351
  var u, h, p;
2302
- return c = i, s ? n(s) : a && c && E.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2303
- p = E.pathFilter(c, r, h)) ? e([ "" ].concat(g.slice()), path__default.default.resolve(a, p), c) : void d(l, o);
2352
+ return c = i, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2353
+ p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, o);
2304
2354
  }
2305
2355
  function o(s, i) {
2306
2356
  return s ? n(s) : i ? n(null, l, c) : void e(t.slice(1), r, c);
@@ -2308,50 +2358,43 @@ defaultIsFile$1 = function e(t, r) {
2308
2358
  var l, c;
2309
2359
  if (0 === t.length) return n(null, void 0, s);
2310
2360
  l = r + t[0], (c = s) ? i(null, c) : a(path__default.default.dirname(l), i);
2311
- }([ "" ].concat(g), e, s);
2361
+ }([ "" ].concat(w), e, s);
2312
2362
  }
2313
2363
  function a(e, t) {
2314
- return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, E, (function(r, s) {
2364
+ return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, C, (function(r, s) {
2315
2365
  if (r) return a(path__default.default.dirname(e), t);
2316
2366
  var n = path__default.default.join(s, "package.json");
2317
2367
  d(n, (function(r, s) {
2318
2368
  if (!s) return a(path__default.default.dirname(e), t);
2319
- p(n, (function(r, s) {
2369
+ m(p, n, (function(r, s) {
2320
2370
  r && t(r);
2321
- try {
2322
- var i = JSON.parse(s);
2323
- } catch (e) {}
2324
- i && E.packageFilter && (i = E.packageFilter(i, n)), t(null, i, e);
2371
+ var i = s;
2372
+ i && C.packageFilter && (i = C.packageFilter(i, n)), t(null, i, e);
2325
2373
  }));
2326
2374
  }));
2327
2375
  }));
2328
2376
  }
2329
2377
  function l(e, t, r) {
2330
2378
  var s = r, n = t;
2331
- "function" == typeof n && (s = n, n = E.package), maybeRealpath(f, e, E, (function(t, r) {
2379
+ "function" == typeof n && (s = n, n = C.package), maybeRealpath(f, e, C, (function(t, r) {
2332
2380
  if (t) return s(t);
2333
2381
  var i = path__default.default.join(r, "package.json");
2334
2382
  d(i, (function(t, r) {
2335
- return t ? s(t) : r ? void p(i, (function(t, r) {
2383
+ return t ? s(t) : r ? void m(p, i, (function(t, r) {
2336
2384
  var n, a;
2337
- if (t) return s(t);
2338
- try {
2339
- n = JSON.parse(r);
2340
- } catch (e) {}
2341
- if (n && E.packageFilter && (n = E.packageFilter(n, i)), n && n.main) return "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2385
+ return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, i)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2342
2386
  s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void o(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2343
2387
  return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2344
2388
  return t ? s(t) : r ? s(null, r, n) : void o(path__default.default.join(e, "index"), n, s);
2345
2389
  })) : o(path__default.default.join(e, "index"), n, s);
2346
- })));
2347
- o(path__default.default.join(e, "/index"), n, s);
2390
+ }))) : void o(path__default.default.join(e, "/index"), n, s));
2348
2391
  })) : o(path__default.default.join(e, "index"), n, s);
2349
2392
  }));
2350
2393
  }));
2351
2394
  }
2352
2395
  function c(e, t) {
2353
2396
  function r(t, r, i) {
2354
- return t ? e(t) : r ? e(null, r, i) : void l(n, E.package, s);
2397
+ return t ? e(t) : r ? e(null, r, i) : void l(n, C.package, s);
2355
2398
  }
2356
2399
  function s(r, s, n) {
2357
2400
  return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
@@ -2359,21 +2402,114 @@ defaultIsFile$1 = function e(t, r) {
2359
2402
  if (0 === t.length) return e(null, void 0);
2360
2403
  var n = t[0];
2361
2404
  h(path__default.default.dirname(n), (function i(s, a) {
2362
- return s ? e(s) : a ? void o(n, E.package, r) : c(e, t.slice(1));
2405
+ return s ? e(s) : a ? void o(n, C.package, r) : c(e, t.slice(1));
2363
2406
  }));
2364
2407
  }
2365
- var u, d, h, p, f, m, g, y, w, _, v, b = s, E = r;
2366
- if ("function" == typeof r && (b = E, E = {}), "string" != typeof t) return u = new TypeError("Path must be a string."),
2408
+ var u, d, h, p, f, m, g, y, w, _, v, b, E, T, S = s, C = r;
2409
+ return "function" == typeof r && (S = C, C = {}), "string" != typeof t ? (u = new TypeError("Path must be a string."),
2367
2410
  process.nextTick((function() {
2368
- b(u);
2369
- }));
2370
- E = normalizeOptions(0, E), d = E.isFile || defaultIsFile$1, h = E.isDirectory || defaultIsDir$1,
2371
- p = E.readFile || fs__default.default.readFile, f = E.realpath || defaultRealpath,
2372
- m = E.packageIterator, g = E.extensions || [ ".js" ], y = E.basedir || path__default.default.dirname(caller()),
2373
- w = E.filename || y, E.paths = E.paths || [], _ = path__default.default.resolve(y),
2374
- maybeRealpath(f, _, E, (function(e, t) {
2375
- e ? b(e) : n(t);
2376
- }));
2411
+ S(u);
2412
+ }))) : (C = normalizeOptions(0, C), d = C.isFile || defaultIsFile$1, h = C.isDirectory || defaultIsDir$1,
2413
+ p = C.readFile || fs__default.default.readFile, f = C.realpath || defaultRealpath,
2414
+ m = C.readPackage || defaultReadPackage, C.readFile && C.readPackage ? (g = new TypeError("`readFile` and `readPackage` are mutually exclusive."),
2415
+ process.nextTick((function() {
2416
+ S(g);
2417
+ }))) : (y = C.packageIterator, w = C.extensions || [ ".js" ], _ = !1 !== C.includeCoreModules,
2418
+ v = C.basedir || path__default.default.dirname(caller()), b = C.filename || v, C.paths = C.paths || [],
2419
+ E = path__default.default.resolve(v), void maybeRealpath(f, E, C, (function(e, t) {
2420
+ e ? S(e) : n(t);
2421
+ }))));
2422
+ };
2423
+
2424
+ const data = {
2425
+ assert: !0,
2426
+ "assert/strict": ">= 15",
2427
+ async_hooks: ">= 8",
2428
+ buffer_ieee754: "< 0.9.7",
2429
+ buffer: !0,
2430
+ child_process: !0,
2431
+ cluster: !0,
2432
+ console: !0,
2433
+ constants: !0,
2434
+ crypto: !0,
2435
+ _debug_agent: ">= 1 && < 8",
2436
+ _debugger: "< 8",
2437
+ dgram: !0,
2438
+ diagnostics_channel: ">= 15.1",
2439
+ dns: !0,
2440
+ "dns/promises": ">= 15",
2441
+ domain: ">= 0.7.12",
2442
+ events: !0,
2443
+ freelist: "< 6",
2444
+ fs: !0,
2445
+ "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2446
+ _http_agent: ">= 0.11.1",
2447
+ _http_client: ">= 0.11.1",
2448
+ _http_common: ">= 0.11.1",
2449
+ _http_incoming: ">= 0.11.1",
2450
+ _http_outgoing: ">= 0.11.1",
2451
+ _http_server: ">= 0.11.1",
2452
+ http: !0,
2453
+ http2: ">= 8.8",
2454
+ https: !0,
2455
+ inspector: ">= 8.0.0",
2456
+ _linklist: "< 8",
2457
+ module: !0,
2458
+ net: !0,
2459
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2460
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2461
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2462
+ os: !0,
2463
+ path: !0,
2464
+ "path/posix": ">= 15.3",
2465
+ "path/win32": ">= 15.3",
2466
+ perf_hooks: ">= 8.5",
2467
+ process: ">= 1",
2468
+ punycode: !0,
2469
+ querystring: !0,
2470
+ readline: !0,
2471
+ repl: !0,
2472
+ smalloc: ">= 0.11.5 && < 3",
2473
+ _stream_duplex: ">= 0.9.4",
2474
+ _stream_transform: ">= 0.9.4",
2475
+ _stream_wrap: ">= 1.4.1",
2476
+ _stream_passthrough: ">= 0.9.4",
2477
+ _stream_readable: ">= 0.9.4",
2478
+ _stream_writable: ">= 0.9.4",
2479
+ stream: !0,
2480
+ "stream/promises": ">= 15",
2481
+ string_decoder: !0,
2482
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2483
+ timers: !0,
2484
+ "timers/promises": ">= 15",
2485
+ _tls_common: ">= 0.11.13",
2486
+ _tls_legacy: ">= 0.11.3 && < 10",
2487
+ _tls_wrap: ">= 0.11.3",
2488
+ tls: !0,
2489
+ trace_events: ">= 10",
2490
+ tty: !0,
2491
+ url: !0,
2492
+ util: !0,
2493
+ "util/types": ">= 15.3",
2494
+ "v8/tools/arguments": ">= 10 && < 12",
2495
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2496
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2497
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2498
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2499
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2500
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2501
+ v8: ">= 1",
2502
+ vm: !0,
2503
+ wasi: ">= 13.4 && < 13.5",
2504
+ worker_threads: ">= 11.7",
2505
+ zlib: !0
2506
+ };
2507
+
2508
+ for (mod in current = process.versions && process.versions.node && process.versions.node.split(".") || [],
2509
+ core = {}, data) Object.prototype.hasOwnProperty.call(data, mod) && (core[mod] = versionIncluded(data[mod]));
2510
+
2511
+ core_1 = core, isCore = function e(t) {
2512
+ return isCoreModule(t);
2377
2513
  }, realpathFS = fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2378
2514
  defaultIsFile = function e(t) {
2379
2515
  try {
@@ -2400,6 +2536,11 @@ defaultIsFile = function e(t) {
2400
2536
  return t;
2401
2537
  }, maybeRealpathSync = function e(t, r, s) {
2402
2538
  return s && !1 === s.preserveSymlinks ? t(r) : r;
2539
+ }, defaultReadPackageSync = function e(t, r) {
2540
+ var s = t(r);
2541
+ try {
2542
+ return JSON.parse(s);
2543
+ } catch (e) {}
2403
2544
  }, getPackageCandidates = function e(t, r, s) {
2404
2545
  var n, i = nodeModulesPaths(r, s, t);
2405
2546
  for (n = 0; n < i.length; n++) i[n] = path__default.default.join(i[n], t);
@@ -2410,64 +2551,58 @@ defaultIsFile = function e(t) {
2410
2551
  if (l && l.dir && l.pkg && o.pathFilter && (t = path__default.default.relative(l.dir, e),
2411
2552
  (r = o.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2412
2553
  a(e)) return e;
2413
- for (s = 0; s < h.length; s++) if (i = e + h[s], a(i)) return i;
2554
+ for (s = 0; s < p.length; s++) if (i = e + p[s], a(i)) return i;
2414
2555
  }
2415
2556
  function n(e) {
2416
- var t, r, s;
2417
- if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) {
2418
- if (t = path__default.default.join(maybeRealpathSync(u, e, o), "package.json"),
2419
- !a(t)) return n(path__default.default.dirname(e));
2420
- r = l(t);
2421
- try {
2422
- s = JSON.parse(r);
2423
- } catch (e) {}
2424
- return s && o.packageFilter && (s = o.packageFilter(s, e)), {
2425
- pkg: s,
2426
- dir: e
2427
- };
2428
- }
2557
+ var t, r;
2558
+ if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, o), "package.json"),
2559
+ a(t) ? ((r = d(l, t)) && o.packageFilter && (r = o.packageFilter(r, e)), {
2560
+ pkg: r,
2561
+ dir: e
2562
+ }) : n(path__default.default.dirname(e));
2429
2563
  }
2430
2564
  function i(e) {
2431
- var t, r, n, c, d, h = path__default.default.join(maybeRealpathSync(u, e, o), "/package.json");
2565
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, o), "/package.json");
2432
2566
  if (a(h)) {
2433
2567
  try {
2434
- t = l(h, "UTF8"), r = JSON.parse(t);
2568
+ t = d(l, h);
2435
2569
  } catch (e) {}
2436
- if (r && o.packageFilter && (r = o.packageFilter(r, e)), r && r.main) {
2437
- if ("string" != typeof r.main) throw (n = new TypeError("package “" + r.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2438
- n;
2439
- "." !== r.main && "./" !== r.main || (r.main = "index");
2570
+ if (t && o.packageFilter && (t = o.packageFilter(t, e)), t && t.main) {
2571
+ if ("string" != typeof t.main) throw (r = new TypeError("package “" + t.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2572
+ r;
2573
+ "." !== t.main && "./" !== t.main || (t.main = "index");
2440
2574
  try {
2441
- if (c = s(path__default.default.resolve(e, r.main))) return c;
2442
- if (d = i(path__default.default.resolve(e, r.main))) return d;
2575
+ if (n = s(path__default.default.resolve(e, t.main))) return n;
2576
+ if (c = i(path__default.default.resolve(e, t.main))) return c;
2443
2577
  } catch (e) {}
2444
2578
  }
2445
2579
  }
2446
2580
  return s(path__default.default.join(e, "/index"));
2447
2581
  }
2448
- var o, a, l, c, u, d, h, p, f, m, g, y, w, _;
2582
+ var o, a, l, c, u, d, h, p, f, m, g, y, w, _, v, b;
2449
2583
  if ("string" != typeof t) throw new TypeError("Path must be a string.");
2450
2584
  if (o = normalizeOptions(0, r), a = o.isFile || defaultIsFile, l = o.readFileSync || fs__default.default.readFileSync,
2451
- c = o.isDirectory || defaultIsDir, u = o.realpathSync || defaultRealpathSync, d = o.packageIterator,
2452
- h = o.extensions || [ ".js" ], p = o.basedir || path__default.default.dirname(caller()),
2453
- f = o.filename || p, o.paths = o.paths || [], m = maybeRealpathSync(u, path__default.default.resolve(p), o),
2454
- /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2455
- if (g = path__default.default.resolve(m, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (g += "/"),
2456
- y = s(g) || i(g)) return maybeRealpathSync(u, y, o);
2585
+ c = o.isDirectory || defaultIsDir, u = o.realpathSync || defaultRealpathSync, d = o.readPackageSync || defaultReadPackageSync,
2586
+ o.readFileSync && o.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2587
+ if (h = o.packageIterator, p = o.extensions || [ ".js" ], f = !1 !== o.includeCoreModules,
2588
+ m = o.basedir || path__default.default.dirname(caller()), g = o.filename || m, o.paths = o.paths || [],
2589
+ y = maybeRealpathSync(u, path__default.default.resolve(m), o), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2590
+ if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2591
+ _ = s(w) || i(w)) return maybeRealpathSync(u, _, o);
2457
2592
  } else {
2458
- if (isCore(t)) return t;
2459
- if (w = function v(e, t) {
2593
+ if (f && isCoreModule(t)) return t;
2594
+ if (v = function E(e, t) {
2460
2595
  var r, n, a, l, u = function() {
2461
2596
  return getPackageCandidates(e, t, o);
2462
- }, h = d ? d(e, t, u, o) : u();
2463
- for (r = 0; r < h.length; r++) if (n = h[r], c(path__default.default.dirname(n))) {
2597
+ }, d = h ? h(e, t, u, o) : u();
2598
+ for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2464
2599
  if (a = s(n)) return a;
2465
2600
  if (l = i(n)) return l;
2466
2601
  }
2467
- }(t, m)) return maybeRealpathSync(u, w, o);
2602
+ }(t, y)) return maybeRealpathSync(u, v, o);
2468
2603
  }
2469
- throw (_ = new Error("Cannot find module '" + t + "' from '" + f + "'")).code = "MODULE_NOT_FOUND",
2470
- _;
2604
+ throw (b = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2605
+ b;
2471
2606
  }, async.core = core_1, async.isCore = isCore, async.sync = sync, resolve = async;
2472
2607
 
2473
2608
  const createSystem = e => {
@@ -2554,7 +2689,7 @@ const createSystem = e => {
2554
2689
  };
2555
2690
  })(), a = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, l = e => {
2556
2691
  if ("/" === e || "" === e) return "/";
2557
- const t = path$1.dirname(e), r = path$1.basename(e);
2692
+ const t = path$2.dirname(e), r = path$2.basename(e);
2558
2693
  return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
2559
2694
  }, c = e => {
2560
2695
  const t = r.get(l(e));
@@ -2562,19 +2697,19 @@ const createSystem = e => {
2562
2697
  }, u = (e, t) => {
2563
2698
  e = l(e);
2564
2699
  const r = {
2565
- basename: path$1.basename(e),
2566
- dirname: path$1.dirname(e),
2700
+ basename: path$2.basename(e),
2701
+ dirname: path$2.dirname(e),
2567
2702
  path: e,
2568
2703
  newDirs: [],
2569
2704
  error: null
2570
2705
  };
2571
2706
  return d(e, t, r), r;
2572
2707
  }, d = (e, t, s) => {
2573
- const n = path$1.dirname(e);
2708
+ const n = path$2.dirname(e);
2574
2709
  t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && d(n, t, s);
2575
2710
  const i = r.get(e);
2576
2711
  i ? (i.isDirectory = !0, i.isFile = !1) : (r.set(e, {
2577
- basename: path$1.basename(e),
2712
+ basename: path$2.basename(e),
2578
2713
  dirname: n,
2579
2714
  isDirectory: !0,
2580
2715
  isFile: !1,
@@ -2597,7 +2732,7 @@ const createSystem = e => {
2597
2732
  }), m = (e, t, s) => {
2598
2733
  const n = w(e);
2599
2734
  if (!n.error && !s.error) if (n.isFile) {
2600
- const n = path$1.dirname(t), i = u(n, {
2735
+ const n = path$2.dirname(t), i = u(n, {
2601
2736
  recursive: !0
2602
2737
  }), o = r.get(e).data, a = b(t, o);
2603
2738
  s.newDirs.push(...i.newDirs), s.renamed.push({
@@ -2623,8 +2758,8 @@ const createSystem = e => {
2623
2758
  }
2624
2759
  }, g = (e, t = {}) => {
2625
2760
  const r = {
2626
- basename: path$1.basename(e),
2627
- dirname: path$1.dirname(e),
2761
+ basename: path$2.basename(e),
2762
+ dirname: path$2.dirname(e),
2628
2763
  path: e,
2629
2764
  removedDirs: [],
2630
2765
  removedFiles: [],
@@ -2663,8 +2798,8 @@ const createSystem = e => {
2663
2798
  }, _ = e => {
2664
2799
  e = l(e);
2665
2800
  const t = {
2666
- basename: path$1.basename(e),
2667
- dirname: path$1.dirname(e),
2801
+ basename: path$2.basename(e),
2802
+ dirname: path$2.dirname(e),
2668
2803
  path: e,
2669
2804
  error: null
2670
2805
  }, s = r.get(e);
@@ -2674,7 +2809,7 @@ const createSystem = e => {
2674
2809
  }
2675
2810
  return t;
2676
2811
  }, v = (e, t) => {
2677
- const s = l(path$1.dirname(e)), n = r.get(s);
2812
+ const s = l(path$2.dirname(e)), n = r.get(s);
2678
2813
  if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
2679
2814
  t.has(s) || (t.add(s), v(s, t));
2680
2815
  }, b = (e, t) => {
@@ -2686,8 +2821,8 @@ const createSystem = e => {
2686
2821
  const r = n.data !== t;
2687
2822
  if (n.data = t, r && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileUpdate");
2688
2823
  } else r.set(e, {
2689
- basename: path$1.basename(e),
2690
- dirname: path$1.dirname(e),
2824
+ basename: path$2.basename(e),
2825
+ dirname: path$2.dirname(e),
2691
2826
  isDirectory: !1,
2692
2827
  isFile: !0,
2693
2828
  watcherCallbacks: null,
@@ -2698,7 +2833,7 @@ const createSystem = e => {
2698
2833
  u("/");
2699
2834
  const T = {
2700
2835
  name: "in-memory",
2701
- version: "2.5.0",
2836
+ version: "2.6.0",
2702
2837
  events: o,
2703
2838
  access: async e => c(e),
2704
2839
  accessSync: c,
@@ -2724,7 +2859,7 @@ const createSystem = e => {
2724
2859
  moduleId: "@stencil/core",
2725
2860
  path: "compiler/stencil.min.js"
2726
2861
  }),
2727
- getLocalModulePath: e => path$1.join(e.rootDir, "node_modules", e.moduleId, e.path),
2862
+ getLocalModulePath: e => path$2.join(e.rootDir, "node_modules", e.moduleId, e.path),
2728
2863
  getRemoteModuleUrl: e => {
2729
2864
  const t = `${e.moduleId}${e.version ? "@" + e.version : ""}/${e.path}`;
2730
2865
  return new URL(t, "https://cdn.jsdelivr.net/npm/").href;
@@ -2785,8 +2920,8 @@ const createSystem = e => {
2785
2920
  };
2786
2921
  return n(o), s ? (s.isDirectory = !0, s.isFile = !1, s.watcherCallbacks = s.watcherCallbacks || [],
2787
2922
  s.watcherCallbacks.push(t)) : r.set(e, {
2788
- basename: path$1.basename(e),
2789
- dirname: path$1.dirname(e),
2923
+ basename: path$2.basename(e),
2924
+ dirname: path$2.dirname(e),
2790
2925
  isDirectory: !0,
2791
2926
  isFile: !1,
2792
2927
  watcherCallbacks: [ t ],
@@ -2808,8 +2943,8 @@ const createSystem = e => {
2808
2943
  };
2809
2944
  return n(o), s ? (s.isDirectory = !1, s.isFile = !0, s.watcherCallbacks = s.watcherCallbacks || [],
2810
2945
  s.watcherCallbacks.push(t)) : r.set(e, {
2811
- basename: path$1.basename(e),
2812
- dirname: path$1.dirname(e),
2946
+ basename: path$2.basename(e),
2947
+ dirname: path$2.dirname(e),
2813
2948
  isDirectory: !1,
2814
2949
  isFile: !0,
2815
2950
  watcherCallbacks: [ t ],
@@ -2923,7 +3058,7 @@ const createSystem = e => {
2923
3058
  const n = normalizeFsPath(r);
2924
3059
  if ((await t.stat(n)).isDirectory) s(null, !0); else {
2925
3060
  if (shouldFetchModule(n)) {
2926
- if ("node_modules" === path$1.basename(n)) return t.sys.createDirSync(n), t.clearFileCache(n),
3061
+ if ("node_modules" === path$2.basename(n)) return t.sys.createDirSync(n), t.clearFileCache(n),
2927
3062
  void s(null, !0);
2928
3063
  if (isCommonDirModuleFile(n)) return void s(null, !1);
2929
3064
  for (const r of COMMON_DIR_FILENAMES) {
@@ -2944,7 +3079,7 @@ const createSystem = e => {
2944
3079
  },
2945
3080
  extensions: r
2946
3081
  }))(e, null, r.exts);
2947
- return s.basedir = path$1.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? s.packageFilter = r.packageFilter : null !== r.packageFilter && (s.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
3082
+ return s.basedir = path$2.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? s.packageFilter = r.packageFilter : null !== r.packageFilter && (s.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
2948
3083
  e)), new Promise(((e, t) => {
2949
3084
  resolve(r.moduleId, s, ((s, n, i) => {
2950
3085
  if (s) t(s); else {
@@ -2964,7 +3099,7 @@ const createSystem = e => {
2964
3099
  let e = 0, t = 0;
2965
3100
  const r = createSystem();
2966
3101
  r.platformPath = path__default.default, r.generateContentHash = (e, t) => {
2967
- let r = crypto$2.createHash("sha1").update(e).digest("hex").toLowerCase();
3102
+ let r = crypto$3.createHash("sha1").update(e).digest("hex").toLowerCase();
2968
3103
  return "number" == typeof t && (r = r.substr(0, t)), Promise.resolve(r);
2969
3104
  };
2970
3105
  const s = t => {
@@ -3492,7 +3627,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3492
3627
  try {
3493
3628
  l = a ? await async function h(e, t) {
3494
3629
  e.logger.debug(`screenshot connector: ${e.testing.screenshotConnector}`);
3495
- const r = new (require(e.testing.screenshotConnector)), s = path$1.join(e.sys.getCompilerExecutingPath(), "..", "..", "screenshot", "pixel-match.js");
3630
+ const r = new (require(e.testing.screenshotConnector)), s = path$2.join(e.sys.getCompilerExecutingPath(), "..", "..", "screenshot", "pixel-match.js");
3496
3631
  e.logger.debug(`pixelmatch module: ${s}`);
3497
3632
  const n = e.logger.createTimeSpan("screenshot, initBuild started", !0);
3498
3633
  await r.initBuild({
@@ -3502,7 +3637,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3502
3637
  appNamespace: e.namespace,
3503
3638
  rootDir: e.rootDir,
3504
3639
  cacheDir: e.cacheDir,
3505
- packageDir: path$1.join(e.sys.getCompilerExecutingPath(), "..", ".."),
3640
+ packageDir: path$2.join(e.sys.getCompilerExecutingPath(), "..", ".."),
3506
3641
  updateMaster: e.flags.updateScreenshot,
3507
3642
  logger: e.logger,
3508
3643
  allowableMismatchedPixels: e.testing.allowableMismatchedPixels,