@stencil/core 4.43.0 → 4.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Compiler v4.43.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Compiler v4.43.1 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1869,11 +1869,11 @@ var require_source_map_support = __commonJS({
1869
1869
  init_import_meta_url();
1870
1870
  var SourceMapConsumer2 = require_source_map().SourceMapConsumer;
1871
1871
  var path7 = require("path");
1872
- var fs2;
1872
+ var fs3;
1873
1873
  try {
1874
- fs2 = require("fs");
1875
- if (!fs2.existsSync || !fs2.readFileSync) {
1876
- fs2 = null;
1874
+ fs3 = require("fs");
1875
+ if (!fs3.existsSync || !fs3.readFileSync) {
1876
+ fs3 = null;
1877
1877
  }
1878
1878
  } catch (err2) {
1879
1879
  }
@@ -1944,7 +1944,7 @@ var require_source_map_support = __commonJS({
1944
1944
  }
1945
1945
  var contents = "";
1946
1946
  try {
1947
- if (!fs2) {
1947
+ if (!fs3) {
1948
1948
  var xhr = new XMLHttpRequest();
1949
1949
  xhr.open(
1950
1950
  "GET",
@@ -1956,8 +1956,8 @@ var require_source_map_support = __commonJS({
1956
1956
  if (xhr.readyState === 4 && xhr.status === 200) {
1957
1957
  contents = xhr.responseText;
1958
1958
  }
1959
- } else if (fs2.existsSync(path8)) {
1960
- contents = fs2.readFileSync(path8, "utf8");
1959
+ } else if (fs3.existsSync(path8)) {
1960
+ contents = fs3.readFileSync(path8, "utf8");
1961
1961
  }
1962
1962
  } catch (er) {
1963
1963
  }
@@ -2221,9 +2221,9 @@ var require_source_map_support = __commonJS({
2221
2221
  var line = +match2[2];
2222
2222
  var column = +match2[3];
2223
2223
  var contents = fileContentsCache[source];
2224
- if (!contents && fs2 && fs2.existsSync(source)) {
2224
+ if (!contents && fs3 && fs3.existsSync(source)) {
2225
2225
  try {
2226
- contents = fs2.readFileSync(source, "utf8");
2226
+ contents = fs3.readFileSync(source, "utf8");
2227
2227
  } catch (er) {
2228
2228
  contents = "";
2229
2229
  }
@@ -4616,7 +4616,7 @@ var require_typescript_5_8_3_bundle_cache_min = __commonJS({
4616
4616
  walkUpParenthesizedTypesAndGetParentAndChild: () => walkUpParenthesizedTypesAndGetParentAndChild,
4617
4617
  whitespaceOrMapCommentRegExp: () => whitespaceOrMapCommentRegExp,
4618
4618
  writeCommentRange: () => writeCommentRange,
4619
- writeFile: () => writeFile2,
4619
+ writeFile: () => writeFile,
4620
4620
  writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,
4621
4621
  zipWith: () => zipWith
4622
4622
  });
@@ -6009,10 +6009,10 @@ var require_typescript_5_8_3_bundle_cache_min = __commonJS({
6009
6009
  function and(f, g) {
6010
6010
  return (arg) => f(arg) && g(arg);
6011
6011
  }
6012
- function or(...fs2) {
6012
+ function or(...fs3) {
6013
6013
  return (...args) => {
6014
6014
  let lastResult;
6015
- for (const f of fs2) {
6015
+ for (const f of fs3) {
6016
6016
  lastResult = f(...args);
6017
6017
  if (lastResult) {
6018
6018
  return lastResult;
@@ -7589,7 +7589,7 @@ ${lanes.join("\n")}
7589
7589
  var tracing;
7590
7590
  var tracingEnabled;
7591
7591
  ((tracingEnabled2) => {
7592
- let fs2;
7592
+ let fs3;
7593
7593
  let traceCount = 0;
7594
7594
  let traceFd = 0;
7595
7595
  let mode;
@@ -7598,9 +7598,9 @@ ${lanes.join("\n")}
7598
7598
  const legend = [];
7599
7599
  function startTracing2(tracingMode, traceDir, configFilePath) {
7600
7600
  Debug.assert(!tracing, "Tracing already started");
7601
- if (fs2 === void 0) {
7601
+ if (fs3 === void 0) {
7602
7602
  try {
7603
- fs2 = require("fs");
7603
+ fs3 = require("fs");
7604
7604
  } catch (e) {
7605
7605
  throw new Error(`tracing requires having fs
7606
7606
  (original error: ${e.message || e})`);
@@ -7611,8 +7611,8 @@ ${lanes.join("\n")}
7611
7611
  if (legendPath === void 0) {
7612
7612
  legendPath = combinePaths(traceDir, "legend.json");
7613
7613
  }
7614
- if (!fs2.existsSync(traceDir)) {
7615
- fs2.mkdirSync(traceDir, { recursive: true });
7614
+ if (!fs3.existsSync(traceDir)) {
7615
+ fs3.mkdirSync(traceDir, { recursive: true });
7616
7616
  }
7617
7617
  const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
7618
7618
  const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
@@ -7622,10 +7622,10 @@ ${lanes.join("\n")}
7622
7622
  tracePath,
7623
7623
  typesPath
7624
7624
  });
7625
- traceFd = fs2.openSync(tracePath, "w");
7625
+ traceFd = fs3.openSync(tracePath, "w");
7626
7626
  tracing = tracingEnabled2;
7627
7627
  const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 };
7628
- fs2.writeSync(
7628
+ fs3.writeSync(
7629
7629
  traceFd,
7630
7630
  "[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(",\n")
7631
7631
  );
@@ -7634,10 +7634,10 @@ ${lanes.join("\n")}
7634
7634
  function stopTracing() {
7635
7635
  Debug.assert(tracing, "Tracing is not in progress");
7636
7636
  Debug.assert(!!typeCatalog.length === (mode !== "server"));
7637
- fs2.writeSync(traceFd, `
7637
+ fs3.writeSync(traceFd, `
7638
7638
  ]
7639
7639
  `);
7640
- fs2.closeSync(traceFd);
7640
+ fs3.closeSync(traceFd);
7641
7641
  tracing = void 0;
7642
7642
  if (typeCatalog.length) {
7643
7643
  dumpTypes(typeCatalog);
@@ -7709,11 +7709,11 @@ ${lanes.join("\n")}
7709
7709
  function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) {
7710
7710
  if (mode === "server" && phase === "checkTypes") return;
7711
7711
  mark2("beginTracing");
7712
- fs2.writeSync(traceFd, `,
7712
+ fs3.writeSync(traceFd, `,
7713
7713
  {"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
7714
- if (extras) fs2.writeSync(traceFd, `,${extras}`);
7715
- if (args) fs2.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7716
- fs2.writeSync(traceFd, `}`);
7714
+ if (extras) fs3.writeSync(traceFd, `,${extras}`);
7715
+ if (args) fs3.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7716
+ fs3.writeSync(traceFd, `}`);
7717
7717
  mark2("endTracing");
7718
7718
  measure("Tracing", "beginTracing", "endTracing");
7719
7719
  }
@@ -7736,9 +7736,9 @@ ${lanes.join("\n")}
7736
7736
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
7737
7737
  mark2("beginDumpTypes");
7738
7738
  const typesPath = legend[legend.length - 1].typesPath;
7739
- const typesFd = fs2.openSync(typesPath, "w");
7739
+ const typesFd = fs3.openSync(typesPath, "w");
7740
7740
  const recursionIdentityMap = /* @__PURE__ */ new Map();
7741
- fs2.writeSync(typesFd, "[");
7741
+ fs3.writeSync(typesFd, "[");
7742
7742
  const numTypes = types2.length;
7743
7743
  for (let i = 0; i < numTypes; i++) {
7744
7744
  const type = types2[i];
@@ -7834,13 +7834,13 @@ ${lanes.join("\n")}
7834
7834
  flags: Debug.formatTypeFlags(type.flags).split("|"),
7835
7835
  display
7836
7836
  };
7837
- fs2.writeSync(typesFd, JSON.stringify(descriptor));
7837
+ fs3.writeSync(typesFd, JSON.stringify(descriptor));
7838
7838
  if (i < numTypes - 1) {
7839
- fs2.writeSync(typesFd, ",\n");
7839
+ fs3.writeSync(typesFd, ",\n");
7840
7840
  }
7841
7841
  }
7842
- fs2.writeSync(typesFd, "]\n");
7843
- fs2.closeSync(typesFd);
7842
+ fs3.writeSync(typesFd, "]\n");
7843
+ fs3.closeSync(typesFd);
7844
7844
  mark2("endDumpTypes");
7845
7845
  measure("Dump types", "beginDumpTypes", "endDumpTypes");
7846
7846
  }
@@ -7848,7 +7848,7 @@ ${lanes.join("\n")}
7848
7848
  if (!legendPath) {
7849
7849
  return;
7850
7850
  }
7851
- fs2.writeFileSync(legendPath, JSON.stringify(legend));
7851
+ fs3.writeFileSync(legendPath, JSON.stringify(legend));
7852
7852
  }
7853
7853
  tracingEnabled2.dumpLegend = dumpLegend;
7854
7854
  })(tracingEnabled || (tracingEnabled = {}));
@@ -10281,7 +10281,7 @@ ${lanes.join("\n")}
10281
10281
  getCurrentDirectory,
10282
10282
  getAccessibleSortedChildDirectories,
10283
10283
  fileSystemEntryExists,
10284
- realpath: realpath3,
10284
+ realpath: realpath2,
10285
10285
  setTimeout: setTimeout2,
10286
10286
  clearTimeout: clearTimeout2
10287
10287
  }) {
@@ -10458,7 +10458,7 @@ ${lanes.join("\n")}
10458
10458
  function updateChildWatches(parentDir, parentDirPath, options) {
10459
10459
  const parentWatcher = cache.get(parentDirPath);
10460
10460
  if (!parentWatcher) return false;
10461
- const target = normalizePath6(realpath3(parentDir));
10461
+ const target = normalizePath6(realpath2(parentDir));
10462
10462
  let hasChanges;
10463
10463
  let newChildWatches;
10464
10464
  if (filePathComparer(target, parentDir) === 0) {
@@ -10469,7 +10469,7 @@ ${lanes.join("\n")}
10469
10469
  /* Directory */
10470
10470
  ) ? mapDefined(getAccessibleSortedChildDirectories(parentDir), (child) => {
10471
10471
  const childFullName = getNormalizedAbsolutePath(child, parentDir);
10472
- return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, normalizePath6(realpath3(childFullName))) === 0 ? childFullName : void 0;
10472
+ return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, normalizePath6(realpath2(childFullName))) === 0 ? childFullName : void 0;
10473
10473
  }) : emptyArray,
10474
10474
  parentWatcher.childWatches,
10475
10475
  (child, childWatcher) => filePathComparer(child, childWatcher.dirName),
@@ -10553,7 +10553,7 @@ ${lanes.join("\n")}
10553
10553
  getCurrentDirectory,
10554
10554
  fsSupportsRecursiveFsWatch,
10555
10555
  getAccessibleSortedChildDirectories,
10556
- realpath: realpath3,
10556
+ realpath: realpath2,
10557
10557
  tscWatchFile,
10558
10558
  useNonPollingWatchers,
10559
10559
  tscWatchDirectory,
@@ -10693,7 +10693,7 @@ ${lanes.join("\n")}
10693
10693
  fileSystemEntryExists,
10694
10694
  getAccessibleSortedChildDirectories,
10695
10695
  watchDirectory: nonRecursiveWatchDirectory,
10696
- realpath: realpath3,
10696
+ realpath: realpath2,
10697
10697
  setTimeout: setTimeout2,
10698
10698
  clearTimeout: clearTimeout2
10699
10699
  });
@@ -10932,7 +10932,7 @@ ${lanes.join("\n")}
10932
10932
  // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
10933
10933
  fsSupportsRecursiveFsWatch,
10934
10934
  getAccessibleSortedChildDirectories: (path7) => getAccessibleFileSystemEntries(path7).directories,
10935
- realpath: realpath3,
10935
+ realpath: realpath2,
10936
10936
  tscWatchFile: process.env.TSC_WATCHFILE,
10937
10937
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
10938
10938
  tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
@@ -10953,8 +10953,8 @@ ${lanes.join("\n")}
10953
10953
  writeOutputIsTTY() {
10954
10954
  return process.stdout.isTTY;
10955
10955
  },
10956
- readFile: readFile3,
10957
- writeFile: writeFile22,
10956
+ readFile: readFile2,
10957
+ writeFile: writeFile2,
10958
10958
  watchFile: watchFile2,
10959
10959
  watchDirectory,
10960
10960
  preferNonRecursiveWatch: !fsSupportsRecursiveFsWatch,
@@ -11006,7 +11006,7 @@ ${lanes.join("\n")}
11006
11006
  enableCPUProfiler,
11007
11007
  disableCPUProfiler,
11008
11008
  cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"),
11009
- realpath: realpath3,
11009
+ realpath: realpath2,
11010
11010
  debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay,
11011
11011
  tryEnableSourceMapsForHost() {
11012
11012
  try {
@@ -11159,7 +11159,7 @@ ${lanes.join("\n")}
11159
11159
  callback2
11160
11160
  );
11161
11161
  }
11162
- function readFile3(fileName, _encoding) {
11162
+ function readFile2(fileName, _encoding) {
11163
11163
  let buffer;
11164
11164
  try {
11165
11165
  buffer = _fs.readFileSync(fileName);
@@ -11184,7 +11184,7 @@ ${lanes.join("\n")}
11184
11184
  }
11185
11185
  return buffer.toString("utf8");
11186
11186
  }
11187
- function writeFile22(fileName, data, writeByteOrderMark) {
11187
+ function writeFile2(fileName, data, writeByteOrderMark) {
11188
11188
  if (writeByteOrderMark) {
11189
11189
  data = byteOrderMarkIndicator + data;
11190
11190
  }
@@ -11238,7 +11238,7 @@ ${lanes.join("\n")}
11238
11238
  }
11239
11239
  }
11240
11240
  function readDirectory(path7, extensions, excludes, includes, depth) {
11241
- return matchFiles(path7, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath3);
11241
+ return matchFiles(path7, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath2);
11242
11242
  }
11243
11243
  function fileSystemEntryExists(path7, entryKind) {
11244
11244
  const stat2 = statSync2(path7);
@@ -11274,7 +11274,7 @@ ${lanes.join("\n")}
11274
11274
  function fsRealPathHandlingLongPath(path7) {
11275
11275
  return path7.length < 260 ? _fs.realpathSync.native(path7) : _fs.realpathSync(path7);
11276
11276
  }
11277
- function realpath3(path7) {
11277
+ function realpath2(path7) {
11278
11278
  try {
11279
11279
  return fsRealpath(path7);
11280
11280
  } catch {
@@ -23241,7 +23241,7 @@ ${lanes.join("\n")}
23241
23241
  sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath;
23242
23242
  return combinePaths(newDirPath, sourceFilePath);
23243
23243
  }
23244
- function writeFile2(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) {
23244
+ function writeFile(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) {
23245
23245
  host.writeFile(
23246
23246
  fileName,
23247
23247
  text,
@@ -23260,12 +23260,12 @@ ${lanes.join("\n")}
23260
23260
  createDirectory(directoryPath);
23261
23261
  }
23262
23262
  }
23263
- function writeFileEnsuringDirectories(path7, data, writeByteOrderMark, writeFile22, createDirectory, directoryExists) {
23263
+ function writeFileEnsuringDirectories(path7, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) {
23264
23264
  try {
23265
- writeFile22(path7, data, writeByteOrderMark);
23265
+ writeFile2(path7, data, writeByteOrderMark);
23266
23266
  } catch {
23267
23267
  ensureDirectoriesExist(getDirectoryPath(normalizePath6(path7)), createDirectory, directoryExists);
23268
- writeFile22(path7, data, writeByteOrderMark);
23268
+ writeFile2(path7, data, writeByteOrderMark);
23269
23269
  }
23270
23270
  }
23271
23271
  function getLineOfLocalPosition(sourceFile, pos) {
@@ -25314,7 +25314,7 @@ ${lanes.join("\n")}
25314
25314
  function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) {
25315
25315
  return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i");
25316
25316
  }
25317
- function matchFiles(path7, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath3) {
25317
+ function matchFiles(path7, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath2) {
25318
25318
  path7 = normalizePath6(path7);
25319
25319
  currentDirectory = normalizePath6(currentDirectory);
25320
25320
  const patterns = getFileMatcherPatterns(path7, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
@@ -25329,7 +25329,7 @@ ${lanes.join("\n")}
25329
25329
  }
25330
25330
  return flatten(results);
25331
25331
  function visitDirectory(path22, absolutePath, depth2) {
25332
- const canonicalPath = toCanonical(realpath3(absolutePath));
25332
+ const canonicalPath = toCanonical(realpath2(absolutePath));
25333
25333
  if (visited.has(canonicalPath)) return;
25334
25334
  visited.set(canonicalPath, true);
25335
25335
  const { files, directories } = getFileSystemEntries(path22);
@@ -47548,7 +47548,7 @@ ${lanes.join("\n")}
47548
47548
  const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName);
47549
47549
  return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);
47550
47550
  }
47551
- function parseCommandLineWorker(diagnostics, commandLine, readFile3) {
47551
+ function parseCommandLineWorker(diagnostics, commandLine, readFile2) {
47552
47552
  const options = {};
47553
47553
  let watchOptions;
47554
47554
  const fileNames = [];
@@ -47596,7 +47596,7 @@ ${lanes.join("\n")}
47596
47596
  }
47597
47597
  }
47598
47598
  function parseResponseFile(fileName) {
47599
- const text = tryReadFile(fileName, readFile3 || ((fileName2) => sys.readFile(fileName2)));
47599
+ const text = tryReadFile(fileName, readFile2 || ((fileName2) => sys.readFile(fileName2)));
47600
47600
  if (!isString3(text)) {
47601
47601
  errors.push(text);
47602
47602
  return;
@@ -47699,8 +47699,8 @@ ${lanes.join("\n")}
47699
47699
  unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,
47700
47700
  optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument
47701
47701
  };
47702
- function parseCommandLine(commandLine, readFile3) {
47703
- return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile3);
47702
+ function parseCommandLine(commandLine, readFile2) {
47703
+ return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile2);
47704
47704
  }
47705
47705
  function getOptionFromName(optionName, allowShort) {
47706
47706
  return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);
@@ -47782,8 +47782,8 @@ ${lanes.join("\n")}
47782
47782
  watchOptionsToExtend
47783
47783
  );
47784
47784
  }
47785
- function readConfigFile(fileName, readFile3) {
47786
- const textOrDiagnostic = tryReadFile(fileName, readFile3);
47785
+ function readConfigFile(fileName, readFile2) {
47786
+ const textOrDiagnostic = tryReadFile(fileName, readFile2);
47787
47787
  return isString3(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };
47788
47788
  }
47789
47789
  function parseConfigFileTextToJson(fileName, jsonText) {
@@ -47798,14 +47798,14 @@ ${lanes.join("\n")}
47798
47798
  error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0
47799
47799
  };
47800
47800
  }
47801
- function readJsonConfigFile(fileName, readFile3) {
47802
- const textOrDiagnostic = tryReadFile(fileName, readFile3);
47801
+ function readJsonConfigFile(fileName, readFile2) {
47802
+ const textOrDiagnostic = tryReadFile(fileName, readFile2);
47803
47803
  return isString3(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] };
47804
47804
  }
47805
- function tryReadFile(fileName, readFile3) {
47805
+ function tryReadFile(fileName, readFile2) {
47806
47806
  let text;
47807
47807
  try {
47808
- text = readFile3(fileName);
47808
+ text = readFile2(fileName);
47809
47809
  } catch (e) {
47810
47810
  return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);
47811
47811
  }
@@ -131052,7 +131052,7 @@ ${lanes.join("\n")}
131052
131052
  return;
131053
131053
  }
131054
131054
  const buildInfo = host.getBuildInfo() || { version: version5 };
131055
- writeFile2(
131055
+ writeFile(
131056
131056
  host,
131057
131057
  emitterDiagnostics,
131058
131058
  buildInfoPath,
@@ -131264,7 +131264,7 @@ ${lanes.join("\n")}
131264
131264
  }
131265
131265
  if (sourceMapFilePath) {
131266
131266
  const sourceMap = sourceMapGenerator.toString();
131267
- writeFile2(
131267
+ writeFile(
131268
131268
  host,
131269
131269
  emitterDiagnostics,
131270
131270
  sourceMapFilePath,
@@ -131279,7 +131279,7 @@ ${lanes.join("\n")}
131279
131279
  }
131280
131280
  const text = writer.getText();
131281
131281
  const data = { sourceMapUrlPos, diagnostics: transform22.diagnostics };
131282
- writeFile2(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data);
131282
+ writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data);
131283
131283
  writer.clear();
131284
131284
  return !data.skippedDtsWrite;
131285
131285
  }
@@ -131463,7 +131463,7 @@ ${lanes.join("\n")}
131463
131463
  // internal API
131464
131464
  writeNode,
131465
131465
  writeList,
131466
- writeFile: writeFile22,
131466
+ writeFile: writeFile2,
131467
131467
  writeBundle
131468
131468
  };
131469
131469
  function printNode(hint, node, sourceFile) {
@@ -131501,7 +131501,7 @@ ${lanes.join("\n")}
131501
131501
  return endPrint();
131502
131502
  }
131503
131503
  function printFile(sourceFile) {
131504
- writeFile22(
131504
+ writeFile2(
131505
131505
  sourceFile,
131506
131506
  beginPrint(),
131507
131507
  /*sourceMapGenerator*/
@@ -131553,7 +131553,7 @@ ${lanes.join("\n")}
131553
131553
  reset2();
131554
131554
  writer = previousWriter;
131555
131555
  }
131556
- function writeFile22(sourceFile, output, sourceMapGenerator2) {
131556
+ function writeFile2(sourceFile, output, sourceMapGenerator2) {
131557
131557
  isOwnFileEmit = true;
131558
131558
  const previousWriter = writer;
131559
131559
  setWriter(output, sourceMapGenerator2);
@@ -136124,11 +136124,11 @@ ${lanes.join("\n")}
136124
136124
  getDirectories,
136125
136125
  readDirectory,
136126
136126
  createDirectory: host.createDirectory && createDirectory,
136127
- writeFile: host.writeFile && writeFile22,
136127
+ writeFile: host.writeFile && writeFile2,
136128
136128
  addOrDeleteFileOrDirectory,
136129
136129
  addOrDeleteFile,
136130
136130
  clearCache,
136131
- realpath: host.realpath && realpath3
136131
+ realpath: host.realpath && realpath2
136132
136132
  };
136133
136133
  function toPath3(fileName) {
136134
136134
  return toPath(fileName, currentDirectory, getCanonicalFileName);
@@ -136191,7 +136191,7 @@ ${lanes.join("\n")}
136191
136191
  const index2 = binarySearch2(entries, name, identity, compareStringsCaseSensitive);
136192
136192
  return index2 >= 0;
136193
136193
  }
136194
- function writeFile22(fileName, data, writeByteOrderMark) {
136194
+ function writeFile2(fileName, data, writeByteOrderMark) {
136195
136195
  const path7 = toPath3(fileName);
136196
136196
  const result2 = getCachedFileSystemEntriesForBaseDir(path7);
136197
136197
  if (result2) {
@@ -136239,7 +136239,7 @@ ${lanes.join("\n")}
136239
136239
  const rootResult = tryReadDirectory2(rootDir, rootDirPath);
136240
136240
  let rootSymLinkResult;
136241
136241
  if (rootResult !== void 0) {
136242
- return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath3);
136242
+ return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath2);
136243
136243
  }
136244
136244
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
136245
136245
  function getFileSystemEntries(dir) {
@@ -136268,7 +136268,7 @@ ${lanes.join("\n")}
136268
136268
  return result2;
136269
136269
  }
136270
136270
  }
136271
- function realpath3(s) {
136271
+ function realpath2(s) {
136272
136272
  return host.realpath ? host.realpath(s) : s;
136273
136273
  }
136274
136274
  function clearFirstAncestorEntry(fileOrDirectoryPath) {
@@ -136668,12 +136668,12 @@ ${lanes.join("\n")}
136668
136668
  function createCompilerHost(options, setParentNodes) {
136669
136669
  return createCompilerHostWorker(options, setParentNodes);
136670
136670
  }
136671
- function createGetSourceFile(readFile3, setParentNodes) {
136671
+ function createGetSourceFile(readFile2, setParentNodes) {
136672
136672
  return (fileName, languageVersionOrOptions, onError2) => {
136673
136673
  let text;
136674
136674
  try {
136675
136675
  mark2("beforeIORead");
136676
- text = readFile3(fileName);
136676
+ text = readFile2(fileName);
136677
136677
  mark2("afterIORead");
136678
136678
  measure("I/O Read", "beforeIORead", "afterIORead");
136679
136679
  } catch (e) {
@@ -136723,7 +136723,7 @@ ${lanes.join("\n")}
136723
136723
  return getDirectoryPath(normalizePath6(system2.getExecutingFilePath()));
136724
136724
  }
136725
136725
  const newLine = getNewLineCharacter(options);
136726
- const realpath3 = system2.realpath && ((path7) => system2.realpath(path7));
136726
+ const realpath2 = system2.realpath && ((path7) => system2.realpath(path7));
136727
136727
  const compilerHost = {
136728
136728
  getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), setParentNodes),
136729
136729
  getDefaultLibLocation,
@@ -136743,7 +136743,7 @@ ${lanes.join("\n")}
136743
136743
  directoryExists: (directoryName) => system2.directoryExists(directoryName),
136744
136744
  getEnvironmentVariable: (name) => system2.getEnvironmentVariable ? system2.getEnvironmentVariable(name) : "",
136745
136745
  getDirectories: (path7) => system2.getDirectories(path7),
136746
- realpath: realpath3,
136746
+ realpath: realpath2,
136747
136747
  readDirectory: (path7, extensions, include, exclude, depth) => system2.readDirectory(path7, extensions, include, exclude, depth),
136748
136748
  createDirectory: (d) => system2.createDirectory(d),
136749
136749
  createHash: maybeBind(system2, system2.createHash)
@@ -137577,7 +137577,7 @@ ${lanes.join("\n")}
137577
137577
  getSourceOfProjectReferenceRedirect,
137578
137578
  forEachResolvedProjectReference: forEachResolvedProjectReference2
137579
137579
  });
137580
- const readFile3 = host.readFile.bind(host);
137580
+ const readFile2 = host.readFile.bind(host);
137581
137581
  (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram });
137582
137582
  const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
137583
137583
  (_f = tracing) == null ? void 0 : _f.pop();
@@ -137804,7 +137804,7 @@ ${lanes.join("\n")}
137804
137804
  shouldTransformImportCall,
137805
137805
  emitBuildInfo,
137806
137806
  fileExists: fileExists2,
137807
- readFile: readFile3,
137807
+ readFile: readFile2,
137808
137808
  directoryExists,
137809
137809
  getSymlinkCache,
137810
137810
  realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
@@ -137812,7 +137812,7 @@ ${lanes.join("\n")}
137812
137812
  getCanonicalFileName,
137813
137813
  getFileIncludeReasons: () => programDiagnostics.getFileReasons(),
137814
137814
  structureIsReused,
137815
- writeFile: writeFile22,
137815
+ writeFile: writeFile2,
137816
137816
  getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
137817
137817
  };
137818
137818
  onProgramCreateComplete();
@@ -138318,7 +138318,7 @@ ${lanes.join("\n")}
138318
138318
  getProjectReferenceRedirect,
138319
138319
  isSourceOfProjectReferenceRedirect,
138320
138320
  getSymlinkCache,
138321
- writeFile: writeFileCallback || writeFile22,
138321
+ writeFile: writeFileCallback || writeFile2,
138322
138322
  isEmitBlocked,
138323
138323
  shouldTransformImportCall,
138324
138324
  getEmitModuleFormatOfFile: getEmitModuleFormatOfFile2,
@@ -138346,7 +138346,7 @@ ${lanes.join("\n")}
138346
138346
  getGlobalTypingsCacheLocation: program3.getGlobalTypingsCacheLocation
138347
138347
  };
138348
138348
  }
138349
- function writeFile22(fileName, text, writeByteOrderMark, onError2, sourceFiles, data) {
138349
+ function writeFile2(fileName, text, writeByteOrderMark, onError2, sourceFiles, data) {
138350
138350
  host.writeFile(fileName, text, writeByteOrderMark, onError2, sourceFiles, data);
138351
138351
  }
138352
138352
  function emitBuildInfo(writeFileCallback) {
@@ -140459,10 +140459,10 @@ ${lanes.join("\n")}
140459
140459
  }
140460
140460
  }
140461
140461
  var emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true };
140462
- function handleNoEmitOptions(program3, sourceFile, writeFile22, cancellationToken) {
140462
+ function handleNoEmitOptions(program3, sourceFile, writeFile2, cancellationToken) {
140463
140463
  const options = program3.getCompilerOptions();
140464
140464
  if (options.noEmit) {
140465
- return sourceFile ? emitSkippedWithNoDiagnostics : program3.emitBuildInfo(writeFile22, cancellationToken);
140465
+ return sourceFile ? emitSkippedWithNoDiagnostics : program3.emitBuildInfo(writeFile2, cancellationToken);
140466
140466
  }
140467
140467
  if (!options.noEmitOnError) return void 0;
140468
140468
  let diagnostics = [
@@ -140481,7 +140481,7 @@ ${lanes.join("\n")}
140481
140481
  if (!diagnostics.length) return void 0;
140482
140482
  let emittedFiles;
140483
140483
  if (!sourceFile) {
140484
- const emitResult = program3.emitBuildInfo(writeFile22, cancellationToken);
140484
+ const emitResult = program3.emitBuildInfo(writeFile2, cancellationToken);
140485
140485
  if (emitResult.diagnostics) diagnostics = [...diagnostics, ...emitResult.diagnostics];
140486
140486
  emittedFiles = emitResult.emittedFiles;
140487
140487
  }
@@ -140853,9 +140853,9 @@ ${lanes.join("\n")}
140853
140853
  }
140854
140854
  function getFileEmitOutput(program3, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {
140855
140855
  const outputFiles = [];
140856
- const { emitSkipped, diagnostics } = program3.emit(sourceFile, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit);
140856
+ const { emitSkipped, diagnostics } = program3.emit(sourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit);
140857
140857
  return { outputFiles, emitSkipped, diagnostics };
140858
- function writeFile22(fileName, text, writeByteOrderMark) {
140858
+ function writeFile2(fileName, text, writeByteOrderMark) {
140859
140859
  outputFiles.push({ name: fileName, writeByteOrderMark, text });
140860
140860
  }
140861
140861
  }
@@ -142220,11 +142220,11 @@ ${lanes.join("\n")}
142220
142220
  notImplemented();
142221
142221
  }
142222
142222
  return builderProgram;
142223
- function emitBuildInfo(writeFile22, cancellationToken) {
142223
+ function emitBuildInfo(writeFile2, cancellationToken) {
142224
142224
  Debug.assert(isBuilderProgramStateWithDefinedProgram(state));
142225
142225
  if (getBuildInfoEmitPending(state)) {
142226
142226
  const result2 = state.program.emitBuildInfo(
142227
- writeFile22 || maybeBind(host, host.writeFile),
142227
+ writeFile2 || maybeBind(host, host.writeFile),
142228
142228
  cancellationToken
142229
142229
  );
142230
142230
  state.buildInfoEmitPending = false;
@@ -142232,7 +142232,7 @@ ${lanes.join("\n")}
142232
142232
  }
142233
142233
  return emitSkippedWithNoDiagnostics;
142234
142234
  }
142235
- function emitNextAffectedFileOrDtsErrors(writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers, isForDtsErrors) {
142235
+ function emitNextAffectedFileOrDtsErrors(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, isForDtsErrors) {
142236
142236
  var _a3, _b2, _c2, _d2;
142237
142237
  var _a2, _b, _c, _d;
142238
142238
  Debug.assert(isBuilderProgramStateWithDefinedProgram(state));
@@ -142291,7 +142291,7 @@ ${lanes.join("\n")}
142291
142291
  if (isForDtsErrors || !getBuildInfoEmitPending(state)) return void 0;
142292
142292
  const affected2 = state.program;
142293
142293
  const result22 = affected2.emitBuildInfo(
142294
- writeFile22 || maybeBind(host, host.writeFile),
142294
+ writeFile2 || maybeBind(host, host.writeFile),
142295
142295
  cancellationToken
142296
142296
  );
142297
142297
  state.buildInfoEmitPending = false;
@@ -142303,7 +142303,7 @@ ${lanes.join("\n")}
142303
142303
  if (emitKind & 56) emitOnly = emitOnly === void 0 ? 1 : void 0;
142304
142304
  const result2 = !isForDtsErrors ? state.program.emit(
142305
142305
  affected === state.program ? void 0 : affected,
142306
- getWriteFileCallback(writeFile22, customTransformers),
142306
+ getWriteFileCallback(writeFile2, customTransformers),
142307
142307
  cancellationToken,
142308
142308
  emitOnly,
142309
142309
  customTransformers,
@@ -142349,9 +142349,9 @@ ${lanes.join("\n")}
142349
142349
  });
142350
142350
  if (emitDiagnosticsPerFile) state.emitDiagnosticsPerFile = emitDiagnosticsPerFile;
142351
142351
  }
142352
- function emitNextAffectedFile(writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers) {
142352
+ function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
142353
142353
  return emitNextAffectedFileOrDtsErrors(
142354
- writeFile22,
142354
+ writeFile2,
142355
142355
  cancellationToken,
142356
142356
  emitOnlyDtsFiles,
142357
142357
  customTransformers,
@@ -142359,9 +142359,9 @@ ${lanes.join("\n")}
142359
142359
  false
142360
142360
  );
142361
142361
  }
142362
- function getWriteFileCallback(writeFile22, customTransformers) {
142362
+ function getWriteFileCallback(writeFile2, customTransformers) {
142363
142363
  Debug.assert(isBuilderProgramStateWithDefinedProgram(state));
142364
- if (!getEmitDeclarations(state.compilerOptions)) return writeFile22 || maybeBind(host, host.writeFile);
142364
+ if (!getEmitDeclarations(state.compilerOptions)) return writeFile2 || maybeBind(host, host.writeFile);
142365
142365
  return (fileName, text, writeByteOrderMark, onError2, sourceFiles, data) => {
142366
142366
  var _a3, _b2, _c2;
142367
142367
  var _a2, _b, _c;
@@ -142413,7 +142413,7 @@ ${lanes.join("\n")}
142413
142413
  state.outSignature = newSignature;
142414
142414
  }
142415
142415
  }
142416
- if (writeFile22) writeFile22(fileName, text, writeByteOrderMark, onError2, sourceFiles, data);
142416
+ if (writeFile2) writeFile2(fileName, text, writeByteOrderMark, onError2, sourceFiles, data);
142417
142417
  else if (host.writeFile) host.writeFile(fileName, text, writeByteOrderMark, onError2, sourceFiles, data);
142418
142418
  else state.program.writeFile(fileName, text, writeByteOrderMark, onError2, sourceFiles, data);
142419
142419
  function handleNewSignature(oldSignatureFormat, newSignature) {
@@ -142431,12 +142431,12 @@ ${lanes.join("\n")}
142431
142431
  }
142432
142432
  };
142433
142433
  }
142434
- function emit(targetSourceFile, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers) {
142434
+ function emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
142435
142435
  Debug.assert(isBuilderProgramStateWithDefinedProgram(state));
142436
142436
  if (kind === 1) {
142437
142437
  assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile);
142438
142438
  }
142439
- const result2 = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile22, cancellationToken);
142439
+ const result2 = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile2, cancellationToken);
142440
142440
  if (result2) return result2;
142441
142441
  if (!targetSourceFile) {
142442
142442
  if (kind === 1) {
@@ -142446,7 +142446,7 @@ ${lanes.join("\n")}
142446
142446
  let emittedFiles = [];
142447
142447
  let affectedEmitResult;
142448
142448
  while (affectedEmitResult = emitNextAffectedFile(
142449
- writeFile22,
142449
+ writeFile2,
142450
142450
  cancellationToken,
142451
142451
  emitOnlyDtsFiles,
142452
142452
  customTransformers
@@ -142473,7 +142473,7 @@ ${lanes.join("\n")}
142473
142473
  }
142474
142474
  const emitResult = state.program.emit(
142475
142475
  targetSourceFile,
142476
- getWriteFileCallback(writeFile22, customTransformers),
142476
+ getWriteFileCallback(writeFile2, customTransformers),
142477
142477
  cancellationToken,
142478
142478
  emitOnlyDtsFiles,
142479
142479
  customTransformers
@@ -142790,8 +142790,8 @@ ${lanes.join("\n")}
142790
142790
  getSyntacticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSyntacticDiagnostics(sourceFile, cancellationToken),
142791
142791
  getDeclarationDiagnostics: (sourceFile, cancellationToken) => getProgram().getDeclarationDiagnostics(sourceFile, cancellationToken),
142792
142792
  getSemanticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSemanticDiagnostics(sourceFile, cancellationToken),
142793
- emit: (sourceFile, writeFile22, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile22, cancellationToken, emitOnlyDts, customTransformers),
142794
- emitBuildInfo: (writeFile22, cancellationToken) => getProgram().emitBuildInfo(writeFile22, cancellationToken),
142793
+ emit: (sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers),
142794
+ emitBuildInfo: (writeFile2, cancellationToken) => getProgram().emitBuildInfo(writeFile2, cancellationToken),
142795
142795
  getAllDependencies: notImplemented,
142796
142796
  getCurrentDirectory: () => getProgram().getCurrentDirectory(),
142797
142797
  close: noop3
@@ -144342,7 +144342,7 @@ ${lanes.join("\n")}
144342
144342
  const fileName = isString3(file) ? file : file.fileName;
144343
144343
  return fileNameConvertor ? fileNameConvertor(fileName) : fileName;
144344
144344
  }
144345
- function emitFilesAndReportErrors(program3, reportDiagnostic, write, reportSummary, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers) {
144345
+ function emitFilesAndReportErrors(program3, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
144346
144346
  const options = program3.getCompilerOptions();
144347
144347
  const allDiagnostics = program3.getConfigFileParsingDiagnostics().slice();
144348
144348
  const configFileParsingDiagnosticsLength = allDiagnostics.length;
@@ -144374,7 +144374,7 @@ ${lanes.join("\n")}
144374
144374
  const emitResult = options.listFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program3.emit(
144375
144375
  /*targetSourceFile*/
144376
144376
  void 0,
144377
- writeFile22,
144377
+ writeFile2,
144378
144378
  cancellationToken,
144379
144379
  emitOnlyDtsFiles,
144380
144380
  customTransformers
@@ -144398,13 +144398,13 @@ ${lanes.join("\n")}
144398
144398
  diagnostics
144399
144399
  };
144400
144400
  }
144401
- function emitFilesAndReportErrorsAndGetExitStatus(program3, reportDiagnostic, write, reportSummary, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers) {
144401
+ function emitFilesAndReportErrorsAndGetExitStatus(program3, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
144402
144402
  const { emitResult, diagnostics } = emitFilesAndReportErrors(
144403
144403
  program3,
144404
144404
  reportDiagnostic,
144405
144405
  write,
144406
144406
  reportSummary,
144407
- writeFile22,
144407
+ writeFile2,
144408
144408
  cancellationToken,
144409
144409
  emitOnlyDtsFiles,
144410
144410
  customTransformers
@@ -145904,22 +145904,22 @@ ${lanes.join("\n")}
145904
145904
  getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => withProgramOrUndefined(
145905
145905
  (program22) => program22.getSemanticDiagnosticsOfNextAffectedFile && program22.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile)
145906
145906
  ),
145907
- emit: (targetSourceFile, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers) => {
145907
+ emit: (targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) => {
145908
145908
  if (targetSourceFile || emitOnlyDtsFiles) {
145909
145909
  return withProgramOrUndefined(
145910
145910
  (program22) => {
145911
145911
  var _a2, _b;
145912
- return program22.emit(targetSourceFile, writeFile22, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project)));
145912
+ return program22.emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project)));
145913
145913
  }
145914
145914
  );
145915
145915
  }
145916
145916
  executeSteps(0, cancellationToken);
145917
- return emit(writeFile22, cancellationToken, customTransformers);
145917
+ return emit(writeFile2, cancellationToken, customTransformers);
145918
145918
  },
145919
145919
  done
145920
145920
  };
145921
- function done(cancellationToken, writeFile22, customTransformers) {
145922
- executeSteps(3, cancellationToken, writeFile22, customTransformers);
145921
+ function done(cancellationToken, writeFile2, customTransformers) {
145922
+ executeSteps(3, cancellationToken, writeFile2, customTransformers);
145923
145923
  mark2("SolutionBuilder::Projects built");
145924
145924
  return doneInvalidatedProject(state, projectPath);
145925
145925
  }
@@ -146054,7 +146054,7 @@ ${lanes.join("\n")}
146054
146054
  step = 2;
146055
146055
  return emitResult;
146056
146056
  }
146057
- function executeSteps(till, cancellationToken, writeFile22, customTransformers) {
146057
+ function executeSteps(till, cancellationToken, writeFile2, customTransformers) {
146058
146058
  while (step <= till && step < 3) {
146059
146059
  const currentStep = step;
146060
146060
  switch (step) {
@@ -146062,7 +146062,7 @@ ${lanes.join("\n")}
146062
146062
  createProgram2();
146063
146063
  break;
146064
146064
  case 1:
146065
- emit(writeFile22, cancellationToken, customTransformers);
146065
+ emit(writeFile2, cancellationToken, customTransformers);
146066
146066
  break;
146067
146067
  case 2:
146068
146068
  queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult));
@@ -146649,14 +146649,14 @@ ${lanes.join("\n")}
146649
146649
  }
146650
146650
  }
146651
146651
  }
146652
- function build3(state, project, cancellationToken, writeFile22, getCustomTransformers, onlyReferences) {
146652
+ function build3(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) {
146653
146653
  mark2("SolutionBuilder::beforeBuild");
146654
- const result2 = buildWorker2(state, project, cancellationToken, writeFile22, getCustomTransformers, onlyReferences);
146654
+ const result2 = buildWorker2(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences);
146655
146655
  mark2("SolutionBuilder::afterBuild");
146656
146656
  measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild");
146657
146657
  return result2;
146658
146658
  }
146659
- function buildWorker2(state, project, cancellationToken, writeFile22, getCustomTransformers, onlyReferences) {
146659
+ function buildWorker2(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) {
146660
146660
  const buildOrder = getBuildOrderFor(state, project, onlyReferences);
146661
146661
  if (!buildOrder) return 3;
146662
146662
  setupInitialBuild(state, cancellationToken);
@@ -146666,7 +146666,7 @@ ${lanes.join("\n")}
146666
146666
  const invalidatedProject = getNextInvalidatedProject(state, buildOrder, reportQueue);
146667
146667
  if (!invalidatedProject) break;
146668
146668
  reportQueue = false;
146669
- invalidatedProject.done(cancellationToken, writeFile22, getCustomTransformers == null ? void 0 : getCustomTransformers(invalidatedProject.project));
146669
+ invalidatedProject.done(cancellationToken, writeFile2, getCustomTransformers == null ? void 0 : getCustomTransformers(invalidatedProject.project));
146670
146670
  if (!state.diagnostics.has(invalidatedProject.projectPath)) successfulProjects++;
146671
146671
  }
146672
146672
  disableCache(state);
@@ -146962,13 +146962,13 @@ ${lanes.join("\n")}
146962
146962
  function createSolutionBuilderWorker(watch2, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {
146963
146963
  const state = createSolutionBuilderState(watch2, hostOrHostWithWatch, rootNames, options, baseWatchOptions);
146964
146964
  return {
146965
- build: (project, cancellationToken, writeFile22, getCustomTransformers) => build3(state, project, cancellationToken, writeFile22, getCustomTransformers),
146965
+ build: (project, cancellationToken, writeFile2, getCustomTransformers) => build3(state, project, cancellationToken, writeFile2, getCustomTransformers),
146966
146966
  clean: (project) => clean(state, project),
146967
- buildReferences: (project, cancellationToken, writeFile22, getCustomTransformers) => build3(
146967
+ buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) => build3(
146968
146968
  state,
146969
146969
  project,
146970
146970
  cancellationToken,
146971
- writeFile22,
146971
+ writeFile2,
146972
146972
  getCustomTransformers,
146973
146973
  /*onlyReferences*/
146974
146974
  true
@@ -199143,7 +199143,7 @@ ${options.prefix}` : "\n" : options.prefix
199143
199143
  walkUpParenthesizedTypesAndGetParentAndChild: () => walkUpParenthesizedTypesAndGetParentAndChild,
199144
199144
  whitespaceOrMapCommentRegExp: () => whitespaceOrMapCommentRegExp,
199145
199145
  writeCommentRange: () => writeCommentRange,
199146
- writeFile: () => writeFile2,
199146
+ writeFile: () => writeFile,
199147
199147
  writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,
199148
199148
  zipWith: () => zipWith
199149
199149
  });
@@ -200385,9 +200385,9 @@ ${options.prefix}` : "\n" : options.prefix
200385
200385
  if (this.host.realpath) {
200386
200386
  Debug.assert(!!this.containingProjects.length);
200387
200387
  const project = this.containingProjects[0];
200388
- const realpath3 = this.host.realpath(this.path);
200389
- if (realpath3) {
200390
- this.realpath = project.toPath(realpath3);
200388
+ const realpath2 = this.host.realpath(this.path);
200389
+ if (realpath2) {
200390
+ this.realpath = project.toPath(realpath2);
200391
200391
  if (this.realpath !== this.path) {
200392
200392
  project.projectService.realpathToScriptInfos.add(this.realpath, this);
200393
200393
  }
@@ -201192,7 +201192,7 @@ ${options.prefix}` : "\n" : options.prefix
201192
201192
  /**
201193
201193
  * Returns true if emit was conducted
201194
201194
  */
201195
- emitFile(scriptInfo, writeFile22) {
201195
+ emitFile(scriptInfo, writeFile2) {
201196
201196
  if (!this.languageServiceEnabled || !this.shouldEmitFile(scriptInfo)) {
201197
201197
  return { emitSkipped: true, diagnostics: emptyArray2 };
201198
201198
  }
@@ -201200,7 +201200,7 @@ ${options.prefix}` : "\n" : options.prefix
201200
201200
  if (!emitSkipped) {
201201
201201
  for (const outputFile of outputFiles) {
201202
201202
  const outputFileAbsoluteFileName = getNormalizedAbsolutePath(outputFile.name, this.currentDirectory);
201203
- writeFile22(outputFileAbsoluteFileName, outputFile.text, outputFile.writeByteOrderMark);
201203
+ writeFile2(outputFileAbsoluteFileName, outputFile.text, outputFile.writeByteOrderMark);
201204
201204
  }
201205
201205
  if (this.builderState && getEmitDeclarations(this.compilerOptions)) {
201206
201206
  const dtsFiles = outputFiles.filter((f) => isDeclarationFileName(f.name));
@@ -204416,9 +204416,9 @@ ${options.prefix}` : "\n" : options.prefix
204416
204416
  this.filenameToScriptInfo.delete(info.path);
204417
204417
  this.filenameToScriptInfoVersion.set(info.path, info.textStorage.version);
204418
204418
  this.stopWatchingScriptInfo(info);
204419
- const realpath3 = info.getRealpathIfDifferent();
204420
- if (realpath3) {
204421
- this.realpathToScriptInfos.remove(realpath3, info);
204419
+ const realpath2 = info.getRealpathIfDifferent();
204420
+ if (realpath2) {
204421
+ this.realpathToScriptInfos.remove(realpath2, info);
204422
204422
  }
204423
204423
  info.closeSourceMapFileWatcher();
204424
204424
  }
@@ -205311,9 +205311,9 @@ All files are: ${JSON.stringify(names)}`,
205311
205311
  getSymlinkedProjects(info) {
205312
205312
  let projects;
205313
205313
  if (this.realpathToScriptInfos) {
205314
- const realpath3 = info.getRealpathIfDifferent();
205315
- if (realpath3) {
205316
- forEach(this.realpathToScriptInfos.get(realpath3), combineProjects);
205314
+ const realpath2 = info.getRealpathIfDifferent();
205315
+ if (realpath2) {
205316
+ forEach(this.realpathToScriptInfos.get(realpath2), combineProjects);
205317
205317
  }
205318
205318
  forEach(this.realpathToScriptInfos.get(info.path), combineProjects);
205319
205319
  }
@@ -206811,9 +206811,9 @@ Dynamic files must always be opened with service's current directory or service
206811
206811
  (s) => this.logger.info(s)
206812
206812
  );
206813
206813
  (_a2 = this.pendingPluginEnablements) != null ? _a2 : this.pendingPluginEnablements = /* @__PURE__ */ new Map();
206814
- let promises = this.pendingPluginEnablements.get(project);
206815
- if (!promises) this.pendingPluginEnablements.set(project, promises = []);
206816
- promises.push(importPromise);
206814
+ let promises2 = this.pendingPluginEnablements.get(project);
206815
+ if (!promises2) this.pendingPluginEnablements.set(project, promises2 = []);
206816
+ promises2.push(importPromise);
206817
206817
  return;
206818
206818
  }
206819
206819
  this.endEnablePlugin(
@@ -206887,8 +206887,8 @@ Dynamic files must always be opened with service's current directory or service
206887
206887
  async enableRequestedPluginsWorker(pendingPlugins) {
206888
206888
  Debug.assert(this.currentPluginEnablementPromise === void 0);
206889
206889
  let sendProjectsUpdatedInBackgroundEvent = false;
206890
- await Promise.all(map2(pendingPlugins, async ([project, promises]) => {
206891
- const results = await Promise.all(promises);
206890
+ await Promise.all(map2(pendingPlugins, async ([project, promises2]) => {
206891
+ const results = await Promise.all(promises2);
206892
206892
  if (project.isClosed() || isProjectDeferredClose(project)) {
206893
206893
  this.logger.info(`Cancelling plugin enabling for ${project.getProjectName()} as it is ${project.isClosed() ? "closed" : "deferred close"}`);
206894
206894
  return;
@@ -222180,7 +222180,7 @@ var require_scan = __commonJS({
222180
222180
  "node_modules/picomatch/lib/scan.js"(exports2, module2) {
222181
222181
  "use strict";
222182
222182
  init_import_meta_url();
222183
- var utils = require_utils();
222183
+ var utils2 = require_utils();
222184
222184
  var {
222185
222185
  CHAR_ASTERISK,
222186
222186
  /* * */
@@ -222441,9 +222441,9 @@ var require_scan = __commonJS({
222441
222441
  }
222442
222442
  }
222443
222443
  if (opts.unescape === true) {
222444
- if (glob) glob = utils.removeBackslashes(glob);
222444
+ if (glob) glob = utils2.removeBackslashes(glob);
222445
222445
  if (base2 && backslashes === true) {
222446
- base2 = utils.removeBackslashes(base2);
222446
+ base2 = utils2.removeBackslashes(base2);
222447
222447
  }
222448
222448
  }
222449
222449
  const state = {
@@ -222511,15 +222511,15 @@ var require_parse2 = __commonJS({
222511
222511
  "node_modules/picomatch/lib/parse.js"(exports2, module2) {
222512
222512
  "use strict";
222513
222513
  init_import_meta_url();
222514
- var constants = require_constants();
222515
- var utils = require_utils();
222514
+ var constants2 = require_constants();
222515
+ var utils2 = require_utils();
222516
222516
  var {
222517
222517
  MAX_LENGTH,
222518
222518
  POSIX_REGEX_SOURCE,
222519
222519
  REGEX_NON_SPECIAL_CHARS,
222520
222520
  REGEX_SPECIAL_CHARS_BACKREF,
222521
222521
  REPLACEMENTS
222522
- } = constants;
222522
+ } = constants2;
222523
222523
  var expandRange = (args, options) => {
222524
222524
  if (typeof options.expandRange === "function") {
222525
222525
  return options.expandRange(...args, options);
@@ -222529,7 +222529,7 @@ var require_parse2 = __commonJS({
222529
222529
  try {
222530
222530
  new RegExp(value);
222531
222531
  } catch (ex) {
222532
- return args.map((v) => utils.escapeRegex(v)).join("..");
222532
+ return args.map((v) => utils2.escapeRegex(v)).join("..");
222533
222533
  }
222534
222534
  return value;
222535
222535
  };
@@ -222550,8 +222550,8 @@ var require_parse2 = __commonJS({
222550
222550
  const bos = { type: "bos", value: "", output: opts.prepend || "" };
222551
222551
  const tokens = [bos];
222552
222552
  const capture = opts.capture ? "" : "?:";
222553
- const PLATFORM_CHARS = constants.globChars(opts.windows);
222554
- const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
222553
+ const PLATFORM_CHARS = constants2.globChars(opts.windows);
222554
+ const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
222555
222555
  const {
222556
222556
  DOT_LITERAL,
222557
222557
  PLUS_LITERAL,
@@ -222595,7 +222595,7 @@ var require_parse2 = __commonJS({
222595
222595
  globstar: false,
222596
222596
  tokens
222597
222597
  };
222598
- input = utils.removePrefix(input, state);
222598
+ input = utils2.removePrefix(input, state);
222599
222599
  len = input.length;
222600
222600
  const extglobs = [];
222601
222601
  const braces = [];
@@ -222734,7 +222734,7 @@ var require_parse2 = __commonJS({
222734
222734
  state.output = input;
222735
222735
  return state;
222736
222736
  }
222737
- state.output = utils.wrapOutput(output, state, options);
222737
+ state.output = utils2.wrapOutput(output, state, options);
222738
222738
  return state;
222739
222739
  }
222740
222740
  while (!eos()) {
@@ -222810,7 +222810,7 @@ var require_parse2 = __commonJS({
222810
222810
  continue;
222811
222811
  }
222812
222812
  if (state.quotes === 1 && value !== '"') {
222813
- value = utils.escapeRegex(value);
222813
+ value = utils2.escapeRegex(value);
222814
222814
  prev.value += value;
222815
222815
  append2({ value });
222816
222816
  continue;
@@ -222871,10 +222871,10 @@ var require_parse2 = __commonJS({
222871
222871
  }
222872
222872
  prev.value += value;
222873
222873
  append2({ value });
222874
- if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
222874
+ if (opts.literalBrackets === false || utils2.hasRegexChars(prevValue)) {
222875
222875
  continue;
222876
222876
  }
222877
- const escaped = utils.escapeRegex(prev.value);
222877
+ const escaped = utils2.escapeRegex(prev.value);
222878
222878
  state.output = state.output.slice(0, -prev.value.length);
222879
222879
  if (opts.literalBrackets === true) {
222880
222880
  state.output += escaped;
@@ -223179,17 +223179,17 @@ var require_parse2 = __commonJS({
223179
223179
  }
223180
223180
  while (state.brackets > 0) {
223181
223181
  if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
223182
- state.output = utils.escapeLast(state.output, "[");
223182
+ state.output = utils2.escapeLast(state.output, "[");
223183
223183
  decrement("brackets");
223184
223184
  }
223185
223185
  while (state.parens > 0) {
223186
223186
  if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
223187
- state.output = utils.escapeLast(state.output, "(");
223187
+ state.output = utils2.escapeLast(state.output, "(");
223188
223188
  decrement("parens");
223189
223189
  }
223190
223190
  while (state.braces > 0) {
223191
223191
  if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
223192
- state.output = utils.escapeLast(state.output, "{");
223192
+ state.output = utils2.escapeLast(state.output, "{");
223193
223193
  decrement("braces");
223194
223194
  }
223195
223195
  if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
@@ -223224,7 +223224,7 @@ var require_parse2 = __commonJS({
223224
223224
  NO_DOTS_SLASH,
223225
223225
  STAR,
223226
223226
  START_ANCHOR
223227
- } = constants.globChars(opts.windows);
223227
+ } = constants2.globChars(opts.windows);
223228
223228
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
223229
223229
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
223230
223230
  const capture = opts.capture ? "" : "?:";
@@ -223264,7 +223264,7 @@ var require_parse2 = __commonJS({
223264
223264
  }
223265
223265
  }
223266
223266
  };
223267
- const output = utils.removePrefix(input, state);
223267
+ const output = utils2.removePrefix(input, state);
223268
223268
  let source = create(output);
223269
223269
  if (source && opts.strictSlashes !== true) {
223270
223270
  source += `${SLASH_LITERAL}?`;
@@ -223282,12 +223282,12 @@ var require_picomatch = __commonJS({
223282
223282
  init_import_meta_url();
223283
223283
  var scan = require_scan();
223284
223284
  var parse6 = require_parse2();
223285
- var utils = require_utils();
223286
- var constants = require_constants();
223285
+ var utils2 = require_utils();
223286
+ var constants2 = require_constants();
223287
223287
  var isObject4 = (val) => val && typeof val === "object" && !Array.isArray(val);
223288
- var picomatch = (glob, options, returnState = false) => {
223288
+ var picomatch2 = (glob, options, returnState = false) => {
223289
223289
  if (Array.isArray(glob)) {
223290
- const fns = glob.map((input) => picomatch(input, options, returnState));
223290
+ const fns = glob.map((input) => picomatch2(input, options, returnState));
223291
223291
  const arrayMatcher = (str) => {
223292
223292
  for (const isMatch of fns) {
223293
223293
  const state2 = isMatch(str);
@@ -223303,16 +223303,16 @@ var require_picomatch = __commonJS({
223303
223303
  }
223304
223304
  const opts = options || {};
223305
223305
  const posix3 = opts.windows;
223306
- const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
223306
+ const regex = isState ? picomatch2.compileRe(glob, options) : picomatch2.makeRe(glob, options, false, true);
223307
223307
  const state = regex.state;
223308
223308
  delete regex.state;
223309
223309
  let isIgnored = () => false;
223310
223310
  if (opts.ignore) {
223311
223311
  const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
223312
- isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
223312
+ isIgnored = picomatch2(opts.ignore, ignoreOpts, returnState);
223313
223313
  }
223314
223314
  const matcher = (input, returnObject = false) => {
223315
- const { isMatch, match: match2, output } = picomatch.test(input, regex, options, { glob, posix: posix3 });
223315
+ const { isMatch, match: match2, output } = picomatch2.test(input, regex, options, { glob, posix: posix3 });
223316
223316
  const result2 = { glob, state, regex, posix: posix3, input, output, match: match2, isMatch };
223317
223317
  if (typeof opts.onResult === "function") {
223318
223318
  opts.onResult(result2);
@@ -223338,7 +223338,7 @@ var require_picomatch = __commonJS({
223338
223338
  }
223339
223339
  return matcher;
223340
223340
  };
223341
- picomatch.test = (input, regex, options, { glob, posix: posix3 } = {}) => {
223341
+ picomatch2.test = (input, regex, options, { glob, posix: posix3 } = {}) => {
223342
223342
  if (typeof input !== "string") {
223343
223343
  throw new TypeError("Expected input to be a string");
223344
223344
  }
@@ -223346,7 +223346,7 @@ var require_picomatch = __commonJS({
223346
223346
  return { isMatch: false, output: "" };
223347
223347
  }
223348
223348
  const opts = options || {};
223349
- const format = opts.format || (posix3 ? utils.toPosixSlashes : null);
223349
+ const format = opts.format || (posix3 ? utils2.toPosixSlashes : null);
223350
223350
  let match2 = input === glob;
223351
223351
  let output = match2 && format ? format(input) : input;
223352
223352
  if (match2 === false) {
@@ -223355,24 +223355,24 @@ var require_picomatch = __commonJS({
223355
223355
  }
223356
223356
  if (match2 === false || opts.capture === true) {
223357
223357
  if (opts.matchBase === true || opts.basename === true) {
223358
- match2 = picomatch.matchBase(input, regex, options, posix3);
223358
+ match2 = picomatch2.matchBase(input, regex, options, posix3);
223359
223359
  } else {
223360
223360
  match2 = regex.exec(output);
223361
223361
  }
223362
223362
  }
223363
223363
  return { isMatch: Boolean(match2), match: match2, output };
223364
223364
  };
223365
- picomatch.matchBase = (input, glob, options) => {
223366
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
223367
- return regex.test(utils.basename(input));
223365
+ picomatch2.matchBase = (input, glob, options) => {
223366
+ const regex = glob instanceof RegExp ? glob : picomatch2.makeRe(glob, options);
223367
+ return regex.test(utils2.basename(input));
223368
223368
  };
223369
- picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
223370
- picomatch.parse = (pattern, options) => {
223371
- if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
223369
+ picomatch2.isMatch = (str, patterns, options) => picomatch2(patterns, options)(str);
223370
+ picomatch2.parse = (pattern, options) => {
223371
+ if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
223372
223372
  return parse6(pattern, { ...options, fastpaths: false });
223373
223373
  };
223374
- picomatch.scan = (input, options) => scan(input, options);
223375
- picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
223374
+ picomatch2.scan = (input, options) => scan(input, options);
223375
+ picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
223376
223376
  if (returnOutput === true) {
223377
223377
  return state.output;
223378
223378
  }
@@ -223383,13 +223383,13 @@ var require_picomatch = __commonJS({
223383
223383
  if (state && state.negated === true) {
223384
223384
  source = `^(?!${source}).*$`;
223385
223385
  }
223386
- const regex = picomatch.toRegex(source, options);
223386
+ const regex = picomatch2.toRegex(source, options);
223387
223387
  if (returnState === true) {
223388
223388
  regex.state = state;
223389
223389
  }
223390
223390
  return regex;
223391
223391
  };
223392
- picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
223392
+ picomatch2.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
223393
223393
  if (!input || typeof input !== "string") {
223394
223394
  throw new TypeError("Expected a non-empty string");
223395
223395
  }
@@ -223400,9 +223400,9 @@ var require_picomatch = __commonJS({
223400
223400
  if (!parsed.output) {
223401
223401
  parsed = parse6(input, options);
223402
223402
  }
223403
- return picomatch.compileRe(parsed, options, returnOutput, returnState);
223403
+ return picomatch2.compileRe(parsed, options, returnOutput, returnState);
223404
223404
  };
223405
- picomatch.toRegex = (source, options) => {
223405
+ picomatch2.toRegex = (source, options) => {
223406
223406
  try {
223407
223407
  const opts = options || {};
223408
223408
  return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
@@ -223411,8 +223411,8 @@ var require_picomatch = __commonJS({
223411
223411
  return /$^/;
223412
223412
  }
223413
223413
  };
223414
- picomatch.constants = constants;
223415
- module2.exports = picomatch;
223414
+ picomatch2.constants = constants2;
223415
+ module2.exports = picomatch2;
223416
223416
  }
223417
223417
  });
223418
223418
 
@@ -223422,15 +223422,15 @@ var require_picomatch2 = __commonJS({
223422
223422
  "use strict";
223423
223423
  init_import_meta_url();
223424
223424
  var pico = require_picomatch();
223425
- var utils = require_utils();
223426
- function picomatch(glob, options, returnState = false) {
223425
+ var utils2 = require_utils();
223426
+ function picomatch2(glob, options, returnState = false) {
223427
223427
  if (options && (options.windows === null || options.windows === void 0)) {
223428
- options = { ...options, windows: utils.isWindows() };
223428
+ options = { ...options, windows: utils2.isWindows() };
223429
223429
  }
223430
223430
  return pico(glob, options, returnState);
223431
223431
  }
223432
- Object.assign(picomatch, pico);
223433
- module2.exports = picomatch;
223432
+ Object.assign(picomatch2, pico);
223433
+ module2.exports = picomatch2;
223434
223434
  }
223435
223435
  });
223436
223436
 
@@ -224113,14 +224113,14 @@ var require_is_core_module = __commonJS({
224113
224113
  var require_async = __commonJS({
224114
224114
  "node_modules/resolve/lib/async.js"(exports2, module2) {
224115
224115
  init_import_meta_url();
224116
- var fs2 = require("fs");
224116
+ var fs3 = require("fs");
224117
224117
  var getHomedir = require_homedir();
224118
224118
  var path7 = require("path");
224119
224119
  var caller = require_caller();
224120
224120
  var nodeModulesPaths = require_node_modules_paths();
224121
224121
  var normalizeOptions = require_normalize_options();
224122
224122
  var isCore = require_is_core_module();
224123
- var realpathFS = process.platform !== "win32" && fs2.realpath && typeof fs2.realpath.native === "function" ? fs2.realpath.native : fs2.realpath;
224123
+ var realpathFS = process.platform !== "win32" && fs3.realpath && typeof fs3.realpath.native === "function" ? fs3.realpath.native : fs3.realpath;
224124
224124
  var homedir2 = getHomedir();
224125
224125
  var defaultPaths = function() {
224126
224126
  return [
@@ -224129,7 +224129,7 @@ var require_async = __commonJS({
224129
224129
  ];
224130
224130
  };
224131
224131
  var defaultIsFile = function isFile(file, cb) {
224132
- fs2.stat(file, function(err2, stat2) {
224132
+ fs3.stat(file, function(err2, stat2) {
224133
224133
  if (!err2) {
224134
224134
  return cb(null, stat2.isFile() || stat2.isFIFO());
224135
224135
  }
@@ -224138,7 +224138,7 @@ var require_async = __commonJS({
224138
224138
  });
224139
224139
  };
224140
224140
  var defaultIsDir = function isDirectory2(dir, cb) {
224141
- fs2.stat(dir, function(err2, stat2) {
224141
+ fs3.stat(dir, function(err2, stat2) {
224142
224142
  if (!err2) {
224143
224143
  return cb(null, stat2.isDirectory());
224144
224144
  }
@@ -224146,21 +224146,21 @@ var require_async = __commonJS({
224146
224146
  return cb(err2);
224147
224147
  });
224148
224148
  };
224149
- var defaultRealpath = function realpath3(x, cb) {
224149
+ var defaultRealpath = function realpath2(x, cb) {
224150
224150
  realpathFS(x, function(realpathErr, realPath) {
224151
224151
  if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
224152
224152
  else cb(null, realpathErr ? x : realPath);
224153
224153
  });
224154
224154
  };
224155
- var maybeRealpath = function maybeRealpath2(realpath3, x, opts, cb) {
224155
+ var maybeRealpath = function maybeRealpath2(realpath2, x, opts, cb) {
224156
224156
  if (opts && opts.preserveSymlinks === false) {
224157
- realpath3(x, cb);
224157
+ realpath2(x, cb);
224158
224158
  } else {
224159
224159
  cb(null, x);
224160
224160
  }
224161
224161
  };
224162
- var defaultReadPackage = function defaultReadPackage2(readFile3, pkgfile, cb) {
224163
- readFile3(pkgfile, function(readFileErr, body) {
224162
+ var defaultReadPackage = function defaultReadPackage2(readFile2, pkgfile, cb) {
224163
+ readFile2(pkgfile, function(readFileErr, body) {
224164
224164
  if (readFileErr) cb(readFileErr);
224165
224165
  else {
224166
224166
  try {
@@ -224195,8 +224195,8 @@ var require_async = __commonJS({
224195
224195
  opts = normalizeOptions(x, opts);
224196
224196
  var isFile = opts.isFile || defaultIsFile;
224197
224197
  var isDirectory2 = opts.isDirectory || defaultIsDir;
224198
- var readFile3 = opts.readFile || fs2.readFile;
224199
- var realpath3 = opts.realpath || defaultRealpath;
224198
+ var readFile2 = opts.readFile || fs3.readFile;
224199
+ var realpath2 = opts.realpath || defaultRealpath;
224200
224200
  var readPackage = opts.readPackage || defaultReadPackage;
224201
224201
  if (opts.readFile && opts.readPackage) {
224202
224202
  var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
@@ -224212,7 +224212,7 @@ var require_async = __commonJS({
224212
224212
  opts.paths = opts.paths || defaultPaths();
224213
224213
  var absoluteStart = path7.resolve(basedir);
224214
224214
  maybeRealpath(
224215
- realpath3,
224215
+ realpath2,
224216
224216
  absoluteStart,
224217
224217
  opts,
224218
224218
  function(err3, realStart) {
@@ -224233,7 +224233,7 @@ var require_async = __commonJS({
224233
224233
  } else loadNodeModules(x, basedir2, function(err3, n3, pkg) {
224234
224234
  if (err3) cb(err3);
224235
224235
  else if (n3) {
224236
- return maybeRealpath(realpath3, n3, opts, function(err4, realN) {
224236
+ return maybeRealpath(realpath2, n3, opts, function(err4, realN) {
224237
224237
  if (err4) {
224238
224238
  cb(err4);
224239
224239
  } else {
@@ -224253,7 +224253,7 @@ var require_async = __commonJS({
224253
224253
  else loadAsDirectory(res, function(err4, d, pkg2) {
224254
224254
  if (err4) cb(err4);
224255
224255
  else if (d) {
224256
- maybeRealpath(realpath3, d, opts, function(err5, realD) {
224256
+ maybeRealpath(realpath2, d, opts, function(err5, realD) {
224257
224257
  if (err5) {
224258
224258
  cb(err5);
224259
224259
  } else {
@@ -224310,12 +224310,12 @@ var require_async = __commonJS({
224310
224310
  return cb2(null);
224311
224311
  }
224312
224312
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
224313
- maybeRealpath(realpath3, dir, opts, function(unwrapErr2, pkgdir) {
224313
+ maybeRealpath(realpath2, dir, opts, function(unwrapErr2, pkgdir) {
224314
224314
  if (unwrapErr2) return loadpkg(path7.dirname(dir), cb2);
224315
224315
  var pkgfile = path7.join(pkgdir, "package.json");
224316
224316
  isFile(pkgfile, function(err3, ex) {
224317
224317
  if (!ex) return loadpkg(path7.dirname(dir), cb2);
224318
- readPackage(readFile3, pkgfile, function(err4, pkgParam) {
224318
+ readPackage(readFile2, pkgfile, function(err4, pkgParam) {
224319
224319
  if (err4) cb2(err4);
224320
224320
  var pkg = pkgParam;
224321
224321
  if (pkg && opts.packageFilter) {
@@ -224333,13 +224333,13 @@ var require_async = __commonJS({
224333
224333
  cb2 = fpkg;
224334
224334
  fpkg = opts.package;
224335
224335
  }
224336
- maybeRealpath(realpath3, x2, opts, function(unwrapErr2, pkgdir) {
224336
+ maybeRealpath(realpath2, x2, opts, function(unwrapErr2, pkgdir) {
224337
224337
  if (unwrapErr2) return cb2(unwrapErr2);
224338
224338
  var pkgfile = path7.join(pkgdir, "package.json");
224339
224339
  isFile(pkgfile, function(err3, ex) {
224340
224340
  if (err3) return cb2(err3);
224341
224341
  if (!ex) return loadAsFile(path7.join(x2, "index"), fpkg, cb2);
224342
- readPackage(readFile3, pkgfile, function(err4, pkgParam) {
224342
+ readPackage(readFile2, pkgfile, function(err4, pkgParam) {
224343
224343
  if (err4) return cb2(err4);
224344
224344
  var pkg = pkgParam;
224345
224345
  if (pkg && opts.packageFilter) {
@@ -224607,13 +224607,13 @@ var require_sync = __commonJS({
224607
224607
  "node_modules/resolve/lib/sync.js"(exports2, module2) {
224608
224608
  init_import_meta_url();
224609
224609
  var isCore = require_is_core_module();
224610
- var fs2 = require("fs");
224610
+ var fs3 = require("fs");
224611
224611
  var path7 = require("path");
224612
224612
  var getHomedir = require_homedir();
224613
224613
  var caller = require_caller();
224614
224614
  var nodeModulesPaths = require_node_modules_paths();
224615
224615
  var normalizeOptions = require_normalize_options();
224616
- var realpathFS = process.platform !== "win32" && fs2.realpathSync && typeof fs2.realpathSync.native === "function" ? fs2.realpathSync.native : fs2.realpathSync;
224616
+ var realpathFS = process.platform !== "win32" && fs3.realpathSync && typeof fs3.realpathSync.native === "function" ? fs3.realpathSync.native : fs3.realpathSync;
224617
224617
  var homedir2 = getHomedir();
224618
224618
  var defaultPaths = function() {
224619
224619
  return [
@@ -224623,7 +224623,7 @@ var require_sync = __commonJS({
224623
224623
  };
224624
224624
  var defaultIsFile = function isFile(file) {
224625
224625
  try {
224626
- var stat2 = fs2.statSync(file, { throwIfNoEntry: false });
224626
+ var stat2 = fs3.statSync(file, { throwIfNoEntry: false });
224627
224627
  } catch (e) {
224628
224628
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
224629
224629
  throw e;
@@ -224632,7 +224632,7 @@ var require_sync = __commonJS({
224632
224632
  };
224633
224633
  var defaultIsDir = function isDirectory2(dir) {
224634
224634
  try {
224635
- var stat2 = fs2.statSync(dir, { throwIfNoEntry: false });
224635
+ var stat2 = fs3.statSync(dir, { throwIfNoEntry: false });
224636
224636
  } catch (e) {
224637
224637
  if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
224638
224638
  throw e;
@@ -224676,7 +224676,7 @@ var require_sync = __commonJS({
224676
224676
  }
224677
224677
  var opts = normalizeOptions(x, options);
224678
224678
  var isFile = opts.isFile || defaultIsFile;
224679
- var readFileSync2 = opts.readFileSync || fs2.readFileSync;
224679
+ var readFileSync2 = opts.readFileSync || fs3.readFileSync;
224680
224680
  var isDirectory2 = opts.isDirectory || defaultIsDir;
224681
224681
  var realpathSync2 = opts.realpathSync || defaultRealpathSync;
224682
224682
  var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
@@ -224834,7 +224834,7 @@ var require_native = __commonJS({
224834
224834
  arm64: { base: "linux-arm64-gnu", musl: "linux-arm64-musl" },
224835
224835
  loong64: { base: "linux-loongarch64-gnu", musl: null },
224836
224836
  ppc64: { base: "linux-powerpc64le-gnu", musl: null },
224837
- riscv64: { base: "linux-riscv64-gnu", musl: null },
224837
+ riscv64: { base: "linux-riscv64-gnu", musl: "linux-riscv64-musl" },
224838
224838
  s390x: { base: "linux-s390x-gnu", musl: null },
224839
224839
  x64: { base: "linux-x64-gnu", musl: "linux-x64-musl" }
224840
224840
  },
@@ -225560,7 +225560,7 @@ function logRedeclarationError(name) {
225560
225560
  function logReservedNamespace(namespace) {
225561
225561
  return {
225562
225562
  code: RESERVED_NAMESPACE,
225563
- message: `You have overided reserved namespace "${namespace}"`
225563
+ message: `You have overridden reserved namespace "${namespace}"`
225564
225564
  };
225565
225565
  }
225566
225566
  function logModuleParseError(error2, moduleId) {
@@ -225790,7 +225790,7 @@ function getAstBuffer(astBuffer) {
225790
225790
  }
225791
225791
  return Object.assign(array, { convertString });
225792
225792
  }
225793
- var import_native, import_node_path, ArrowFunctionExpression, BlockStatement, CallExpression, CatchClause, ExportDefaultDeclaration, ExpressionStatement, Identifier, Literal, ObjectExpression, PanicError, ParseError, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, VariableDeclarator, BLANK, EMPTY_OBJECT, EMPTY_ARRAY, EMPTY_SET, FIXED_STRINGS, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, convertAnnotations, convertAnnotation, LINE_TRUNCATE_LENGTH, MIN_CHARACTERS_SHOWN_AFTER_LOCATION, ELLIPSIS, LOGLEVEL_SILENT, LOGLEVEL_ERROR, LOGLEVEL_WARN, LOGLEVEL_INFO, LOGLEVEL_DEBUG, logLevelPriority, ABSOLUTE_PATH_REGEX, RELATIVE_PATH_REGEX, BACKSLASH_REGEX, ANY_SLASH_REGEX, UPPER_DIR_REGEX, URL_AVOIDING_EVAL, URL_NAME_IS_NOT_EXPORTED, URL_THIS_IS_UNDEFINED, URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY, URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT, URL_JSX, URL_OUTPUT_AMD_ID, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_DIR, URL_OUTPUT_EXPORTS, URL_OUTPUT_EXTEND, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_GLOBALS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_NAME, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_PURE, URL_TREESHAKE_NOSIDEEFFECTS, URL_TREESHAKE_MODULESIDEEFFECTS, URL_GENERATEBUNDLE, symbolAugmented, ADDON_ERROR, ALREADY_CLOSED, AMBIGUOUS_EXTERNAL_NAMESPACES, ANONYMOUS_PLUGIN_CACHE, ASSET_NOT_FINALISED, ASSET_NOT_FOUND, ASSET_SOURCE_ALREADY_SET, ASSET_SOURCE_MISSING, BAD_LOADER, CANNOT_CALL_NAMESPACE, CANNOT_EMIT_FROM_OPTIONS_HOOK, CHUNK_NOT_GENERATED, CHUNK_INVALID, CIRCULAR_DEPENDENCY, CIRCULAR_REEXPORT, CONST_REASSIGN, CYCLIC_CROSS_CHUNK_REEXPORT, DEPRECATED_FEATURE, DUPLICATE_ARGUMENT_NAME, DUPLICATE_EXPORT, DUPLICATE_PLUGIN_NAME, EMPTY_BUNDLE, EVAL, EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS, EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES, EXTERNAL_SYNTHETIC_EXPORTS, FILE_NAME_CONFLICT, FILE_NOT_FOUND, FIRST_SIDE_EFFECT, ILLEGAL_IDENTIFIER_AS_NAME, ILLEGAL_REASSIGNMENT, INCONSISTENT_IMPORT_ATTRIBUTES, INVALID_ANNOTATION, INPUT_HOOK_IN_OUTPUT_PLUGIN, INVALID_CHUNK, INVALID_EXPORT_OPTION, INVALID_EXTERNAL_ID, INVALID_IMPORT_ATTRIBUTE, INVALID_LOG_POSITION, INVALID_OPTION, INVALID_PLUGIN_HOOK, INVALID_ROLLUP_PHASE, INVALID_SETASSETSOURCE, INVALID_TLA_FORMAT, MISSING_EXPORT, MISSING_GLOBAL_NAME, MISSING_IMPLICIT_DEPENDANT, MISSING_JSX_EXPORT, MISSING_NAME_OPTION_FOR_IIFE_EXPORT, MISSING_NODE_BUILTINS, MISSING_OPTION, MIXED_EXPORTS, MODULE_LEVEL_DIRECTIVE, NAMESPACE_CONFLICT, NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE, OPTIMIZE_CHUNK_STATUS, PARSE_ERROR, PLUGIN_ERROR, REDECLARATION_ERROR, RESERVED_NAMESPACE, SHIMMED_EXPORT, SOURCEMAP_BROKEN, SOURCEMAP_ERROR, SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT, THIS_IS_UNDEFINED, UNEXPECTED_NAMED_IMPORT, UNKNOWN_OPTION, UNRESOLVED_ENTRY, UNRESOLVED_IMPORT, UNUSED_EXTERNAL_IMPORT, VALIDATION_ERROR, formatAttributes, nodeConverters, parseAst;
225793
+ var import_native, import_node_path, ArrowFunctionExpression, AwaitExpression, BlockStatement, CallExpression, CatchClause, ExportDefaultDeclaration, ExpressionStatement, FunctionExpression, Identifier, ImportExpression, Literal, MemberExpression, ObjectExpression, PanicError, ParseError, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, VariableDeclarator, BLANK, EMPTY_OBJECT, EMPTY_ARRAY, EMPTY_SET, FIXED_STRINGS, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, convertAnnotations, convertAnnotation, LINE_TRUNCATE_LENGTH, MIN_CHARACTERS_SHOWN_AFTER_LOCATION, ELLIPSIS, LOGLEVEL_SILENT, LOGLEVEL_ERROR, LOGLEVEL_WARN, LOGLEVEL_INFO, LOGLEVEL_DEBUG, logLevelPriority, ABSOLUTE_PATH_REGEX, RELATIVE_PATH_REGEX, BACKSLASH_REGEX, ANY_SLASH_REGEX, UPPER_DIR_REGEX, URL_AVOIDING_EVAL, URL_NAME_IS_NOT_EXPORTED, URL_THIS_IS_UNDEFINED, URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY, URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT, URL_JSX, URL_OUTPUT_AMD_ID, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_DIR, URL_OUTPUT_EXPORTS, URL_OUTPUT_EXTEND, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_GLOBALS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_NAME, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_PURE, URL_TREESHAKE_NOSIDEEFFECTS, URL_TREESHAKE_MODULESIDEEFFECTS, URL_GENERATEBUNDLE, symbolAugmented, ADDON_ERROR, ALREADY_CLOSED, AMBIGUOUS_EXTERNAL_NAMESPACES, ANONYMOUS_PLUGIN_CACHE, ASSET_NOT_FINALISED, ASSET_NOT_FOUND, ASSET_SOURCE_ALREADY_SET, ASSET_SOURCE_MISSING, BAD_LOADER, CANNOT_CALL_NAMESPACE, CANNOT_EMIT_FROM_OPTIONS_HOOK, CHUNK_NOT_GENERATED, CHUNK_INVALID, CIRCULAR_DEPENDENCY, CIRCULAR_REEXPORT, CONST_REASSIGN, CYCLIC_CROSS_CHUNK_REEXPORT, DEPRECATED_FEATURE, DUPLICATE_ARGUMENT_NAME, DUPLICATE_EXPORT, DUPLICATE_PLUGIN_NAME, EMPTY_BUNDLE, EVAL, EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS, EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES, EXTERNAL_SYNTHETIC_EXPORTS, FILE_NAME_CONFLICT, FILE_NOT_FOUND, FIRST_SIDE_EFFECT, ILLEGAL_IDENTIFIER_AS_NAME, ILLEGAL_REASSIGNMENT, INCONSISTENT_IMPORT_ATTRIBUTES, INVALID_ANNOTATION, INPUT_HOOK_IN_OUTPUT_PLUGIN, INVALID_CHUNK, INVALID_EXPORT_OPTION, INVALID_EXTERNAL_ID, INVALID_IMPORT_ATTRIBUTE, INVALID_LOG_POSITION, INVALID_OPTION, INVALID_PLUGIN_HOOK, INVALID_ROLLUP_PHASE, INVALID_SETASSETSOURCE, INVALID_TLA_FORMAT, MISSING_EXPORT, MISSING_GLOBAL_NAME, MISSING_IMPLICIT_DEPENDANT, MISSING_JSX_EXPORT, MISSING_NAME_OPTION_FOR_IIFE_EXPORT, MISSING_NODE_BUILTINS, MISSING_OPTION, MIXED_EXPORTS, MODULE_LEVEL_DIRECTIVE, NAMESPACE_CONFLICT, NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE, OPTIMIZE_CHUNK_STATUS, PARSE_ERROR, PLUGIN_ERROR, REDECLARATION_ERROR, RESERVED_NAMESPACE, SHIMMED_EXPORT, SOURCEMAP_BROKEN, SOURCEMAP_ERROR, SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT, THIS_IS_UNDEFINED, UNEXPECTED_NAMED_IMPORT, UNKNOWN_OPTION, UNRESOLVED_ENTRY, UNRESOLVED_IMPORT, UNUSED_EXTERNAL_IMPORT, VALIDATION_ERROR, formatAttributes, nodeConverters, parseAst;
225794
225794
  var init_parseAst = __esm({
225795
225795
  "node_modules/rollup/dist/es/shared/parseAst.js"() {
225796
225796
  init_import_meta_url();
@@ -225798,21 +225798,25 @@ var init_parseAst = __esm({
225798
225798
  import_node_path = require("path");
225799
225799
  /*
225800
225800
  @license
225801
- Rollup.js v4.34.9
225802
- Sat, 01 Mar 2025 07:32:06 GMT - commit 0ab9b9772e24dfe9ef08bfce3132e99a15b793f6
225801
+ Rollup.js v4.44.0
225802
+ Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
225803
225803
 
225804
225804
  https://github.com/rollup/rollup
225805
225805
 
225806
225806
  Released under the MIT License.
225807
225807
  */
225808
225808
  ArrowFunctionExpression = "ArrowFunctionExpression";
225809
+ AwaitExpression = "AwaitExpression";
225809
225810
  BlockStatement = "BlockStatement";
225810
225811
  CallExpression = "CallExpression";
225811
225812
  CatchClause = "CatchClause";
225812
225813
  ExportDefaultDeclaration = "ExportDefaultDeclaration";
225813
225814
  ExpressionStatement = "ExpressionStatement";
225815
+ FunctionExpression = "FunctionExpression";
225814
225816
  Identifier = "Identifier";
225817
+ ImportExpression = "ImportExpression";
225815
225818
  Literal = "Literal";
225819
+ MemberExpression = "MemberExpression";
225816
225820
  ObjectExpression = "ObjectExpression";
225817
225821
  PanicError = "PanicError";
225818
225822
  ParseError = "ParseError";
@@ -226977,6 +226981,19 @@ var init_parseAst = __esm({
226977
226981
  });
226978
226982
 
226979
226983
  // node_modules/rollup/dist/es/shared/node-entry.js
226984
+ function _mergeNamespaces(n3, m) {
226985
+ for (var i = 0; i < m.length; i++) {
226986
+ const e = m[i];
226987
+ if (typeof e !== "string" && !Array.isArray(e)) {
226988
+ for (const k in e) {
226989
+ if (k !== "default" && !(k in n3)) {
226990
+ n3[k] = e[k];
226991
+ }
226992
+ }
226993
+ }
226994
+ }
226995
+ return Object.defineProperty(n3, Symbol.toStringTag, { value: "Module" });
226996
+ }
226980
226997
  function decodeInteger2(reader, relative7) {
226981
226998
  let value = 0;
226982
226999
  let shift = 0;
@@ -227481,7 +227498,28 @@ function isObjectExpressionNode(node) {
227481
227498
  return node instanceof NodeBase && node.type === ObjectExpression;
227482
227499
  }
227483
227500
  function isPropertyNode(node) {
227484
- return node.type === Property;
227501
+ return node instanceof NodeBase && node.type === Property;
227502
+ }
227503
+ function isArrowFunctionExpressionNode(node) {
227504
+ return node instanceof NodeBase && node.type === ArrowFunctionExpression;
227505
+ }
227506
+ function isFunctionExpressionNode(node) {
227507
+ return node instanceof NodeBase && node.type === FunctionExpression;
227508
+ }
227509
+ function isCallExpressionNode(node) {
227510
+ return node instanceof NodeBase && node.type === CallExpression;
227511
+ }
227512
+ function isMemberExpressionNode(node) {
227513
+ return node instanceof NodeBase && node.type === MemberExpression;
227514
+ }
227515
+ function isImportExpressionNode(node) {
227516
+ return node instanceof NodeBase && node.type === ImportExpression;
227517
+ }
227518
+ function isAwaitExpressionNode(node) {
227519
+ return node instanceof NodeBase && node.type === AwaitExpression;
227520
+ }
227521
+ function isIdentifierNode(node) {
227522
+ return node instanceof NodeBase && node.type === Identifier;
227485
227523
  }
227486
227524
  function assembleMemberDescriptions(memberDescriptions, inheritedDescriptions = null) {
227487
227525
  return Object.create(inheritedDescriptions, memberDescriptions);
@@ -227623,7 +227661,7 @@ function getPathIfNotComputed(memberExpression3) {
227623
227661
  { key: nextPathKey, pos: memberExpression3.property.start }
227624
227662
  ];
227625
227663
  }
227626
- if (object instanceof MemberExpression) {
227664
+ if (object instanceof MemberExpression2) {
227627
227665
  const parentPath = getPathIfNotComputed(object);
227628
227666
  return parentPath && [...parentPath, { key: nextPathKey, pos: memberExpression3.property.start }];
227629
227667
  }
@@ -227859,11 +227897,12 @@ function warnOnBuiltins(log, dependencies) {
227859
227897
  log(LOGLEVEL_WARN, logMissingNodeBuiltins(externalBuiltins));
227860
227898
  }
227861
227899
  function amd(magicString, { accessedGlobals, dependencies, exports: exports2, hasDefaultExport, hasExports, id, indent: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, log, outro, snippets }, { amd: amd2, esModule, externalLiveBindings, freeze, generatedCode: { symbols }, interop, reexportProtoFromExternal, strict }) {
227900
+ var _a2;
227862
227901
  warnOnBuiltins(log, dependencies);
227863
227902
  const deps = dependencies.map((m) => `'${updateExtensionForRelativeAmdId(m.importPath, amd2.forceJsExtensionForImports)}'`);
227864
227903
  const parameters = dependencies.map((m) => m.name);
227865
227904
  const { n: n3, getNonArrowFunctionIntro, _ } = snippets;
227866
- if (namedExportsMode && hasExports) {
227905
+ if (hasExports && (namedExportsMode || ((_a2 = exports2[0]) == null ? void 0 : _a2.local) === "exports.default")) {
227867
227906
  parameters.unshift(`exports`);
227868
227907
  deps.unshift(`'exports'`);
227869
227908
  }
@@ -228061,6 +228100,7 @@ function trimEmptyImports(dependencies) {
228061
228100
  return [];
228062
228101
  }
228063
228102
  function iife(magicString, { accessedGlobals, dependencies, exports: exports2, hasDefaultExport, hasExports, indent: t, intro, namedExportsMode, log, outro, snippets }, { compact, esModule, extend, freeze, externalLiveBindings, reexportProtoFromExternal, globals, interop, name, generatedCode: { symbols }, strict }) {
228103
+ var _a2;
228064
228104
  const { _, getNonArrowFunctionIntro, getPropertyAccess, n: n3 } = snippets;
228065
228105
  const isNamespaced = name && name.includes(".");
228066
228106
  const useVariableAssignment = !extend && !isNamespaced;
@@ -228074,7 +228114,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports2, h
228074
228114
  if (hasExports && !name) {
228075
228115
  log(LOGLEVEL_WARN, logMissingNameOptionForIifeExport());
228076
228116
  }
228077
- if (namedExportsMode && hasExports) {
228117
+ if (hasExports && (namedExportsMode || ((_a2 = exports2[0]) == null ? void 0 : _a2.local) === "exports.default")) {
228078
228118
  if (extend) {
228079
228119
  deps.unshift(`this${keypath(name, getPropertyAccess)}${_}=${_}this${keypath(name, getPropertyAccess)}${_}||${_}{}`);
228080
228120
  parameters.unshift("exports");
@@ -228197,6 +228237,7 @@ function safeAccess(name, globalVariable, { _, getPropertyAccess }) {
228197
228237
  return name.split(".").map((part) => propertyPath += getPropertyAccess(part)).join(`${_}&&${_}`);
228198
228238
  }
228199
228239
  function umd(magicString, { accessedGlobals, dependencies, exports: exports2, hasDefaultExport, hasExports, id, indent: t, intro, namedExportsMode, log, outro, snippets }, { amd: amd2, compact, esModule, extend, externalLiveBindings, freeze, interop, name, generatedCode: { symbols }, globals, noConflict, reexportProtoFromExternal, strict }) {
228240
+ var _a2;
228200
228241
  const { _, cnst, getFunctionIntro, getNonArrowFunctionIntro, getPropertyAccess, n: n3, s } = snippets;
228201
228242
  const factoryVariable = compact ? "f" : "factory";
228202
228243
  const globalVariable = compact ? "g" : "global";
@@ -228209,7 +228250,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports2, ha
228209
228250
  const trimmedImports = trimEmptyImports(dependencies);
228210
228251
  const globalDeps = trimmedImports.map((module2) => globalProperty(module2.globalName, globalVariable, getPropertyAccess));
228211
228252
  const factoryParameters = trimmedImports.map((m) => m.name);
228212
- if (namedExportsMode && (hasExports || noConflict)) {
228253
+ if ((hasExports || noConflict) && (namedExportsMode || hasExports && ((_a2 = exports2[0]) == null ? void 0 : _a2.local) === "exports.default")) {
228213
228254
  amdDeps.unshift(`'exports'`);
228214
228255
  cjsDeps.unshift(`exports`);
228215
228256
  globalDeps.unshift(assignToDeepVariable(name, globalVariable, globals, `${extend ? `${globalProperty(name, globalVariable, getPropertyAccess)}${_}||${_}` : ""}{}`, snippets, log));
@@ -228265,6 +228306,1508 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports2, ha
228265
228306
  function getDefaultExportFromCjs(x) {
228266
228307
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
228267
228308
  }
228309
+ function requireConstants() {
228310
+ if (hasRequiredConstants) return constants;
228311
+ hasRequiredConstants = 1;
228312
+ const WIN_SLASH = "\\\\/";
228313
+ const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
228314
+ const DOT_LITERAL = "\\.";
228315
+ const PLUS_LITERAL = "\\+";
228316
+ const QMARK_LITERAL = "\\?";
228317
+ const SLASH_LITERAL = "\\/";
228318
+ const ONE_CHAR = "(?=.)";
228319
+ const QMARK = "[^/]";
228320
+ const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
228321
+ const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
228322
+ const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
228323
+ const NO_DOT = `(?!${DOT_LITERAL})`;
228324
+ const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
228325
+ const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
228326
+ const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
228327
+ const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
228328
+ const STAR = `${QMARK}*?`;
228329
+ const SEP = "/";
228330
+ const POSIX_CHARS = {
228331
+ DOT_LITERAL,
228332
+ PLUS_LITERAL,
228333
+ QMARK_LITERAL,
228334
+ SLASH_LITERAL,
228335
+ ONE_CHAR,
228336
+ QMARK,
228337
+ END_ANCHOR,
228338
+ DOTS_SLASH,
228339
+ NO_DOT,
228340
+ NO_DOTS,
228341
+ NO_DOT_SLASH,
228342
+ NO_DOTS_SLASH,
228343
+ QMARK_NO_DOT,
228344
+ STAR,
228345
+ START_ANCHOR,
228346
+ SEP
228347
+ };
228348
+ const WINDOWS_CHARS = {
228349
+ ...POSIX_CHARS,
228350
+ SLASH_LITERAL: `[${WIN_SLASH}]`,
228351
+ QMARK: WIN_NO_SLASH,
228352
+ STAR: `${WIN_NO_SLASH}*?`,
228353
+ DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
228354
+ NO_DOT: `(?!${DOT_LITERAL})`,
228355
+ NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
228356
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
228357
+ NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
228358
+ QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
228359
+ START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
228360
+ END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
228361
+ SEP: "\\"
228362
+ };
228363
+ const POSIX_REGEX_SOURCE = {
228364
+ alnum: "a-zA-Z0-9",
228365
+ alpha: "a-zA-Z",
228366
+ ascii: "\\x00-\\x7F",
228367
+ blank: " \\t",
228368
+ cntrl: "\\x00-\\x1F\\x7F",
228369
+ digit: "0-9",
228370
+ graph: "\\x21-\\x7E",
228371
+ lower: "a-z",
228372
+ print: "\\x20-\\x7E ",
228373
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
228374
+ space: " \\t\\r\\n\\v\\f",
228375
+ upper: "A-Z",
228376
+ word: "A-Za-z0-9_",
228377
+ xdigit: "A-Fa-f0-9"
228378
+ };
228379
+ constants = {
228380
+ MAX_LENGTH: 1024 * 64,
228381
+ POSIX_REGEX_SOURCE,
228382
+ // regular expressions
228383
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
228384
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
228385
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
228386
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
228387
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
228388
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
228389
+ // Replace globs with equivalent patterns to reduce parsing time.
228390
+ REPLACEMENTS: {
228391
+ "***": "*",
228392
+ "**/**": "**",
228393
+ "**/**/**": "**"
228394
+ },
228395
+ // Digits
228396
+ CHAR_0: 48,
228397
+ /* 0 */
228398
+ CHAR_9: 57,
228399
+ /* 9 */
228400
+ // Alphabet chars.
228401
+ CHAR_UPPERCASE_A: 65,
228402
+ /* A */
228403
+ CHAR_LOWERCASE_A: 97,
228404
+ /* a */
228405
+ CHAR_UPPERCASE_Z: 90,
228406
+ /* Z */
228407
+ CHAR_LOWERCASE_Z: 122,
228408
+ /* z */
228409
+ CHAR_LEFT_PARENTHESES: 40,
228410
+ /* ( */
228411
+ CHAR_RIGHT_PARENTHESES: 41,
228412
+ /* ) */
228413
+ CHAR_ASTERISK: 42,
228414
+ /* * */
228415
+ // Non-alphabetic chars.
228416
+ CHAR_AMPERSAND: 38,
228417
+ /* & */
228418
+ CHAR_AT: 64,
228419
+ /* @ */
228420
+ CHAR_BACKWARD_SLASH: 92,
228421
+ /* \ */
228422
+ CHAR_CARRIAGE_RETURN: 13,
228423
+ /* \r */
228424
+ CHAR_CIRCUMFLEX_ACCENT: 94,
228425
+ /* ^ */
228426
+ CHAR_COLON: 58,
228427
+ /* : */
228428
+ CHAR_COMMA: 44,
228429
+ /* , */
228430
+ CHAR_DOT: 46,
228431
+ /* . */
228432
+ CHAR_DOUBLE_QUOTE: 34,
228433
+ /* " */
228434
+ CHAR_EQUAL: 61,
228435
+ /* = */
228436
+ CHAR_EXCLAMATION_MARK: 33,
228437
+ /* ! */
228438
+ CHAR_FORM_FEED: 12,
228439
+ /* \f */
228440
+ CHAR_FORWARD_SLASH: 47,
228441
+ /* / */
228442
+ CHAR_GRAVE_ACCENT: 96,
228443
+ /* ` */
228444
+ CHAR_HASH: 35,
228445
+ /* # */
228446
+ CHAR_HYPHEN_MINUS: 45,
228447
+ /* - */
228448
+ CHAR_LEFT_ANGLE_BRACKET: 60,
228449
+ /* < */
228450
+ CHAR_LEFT_CURLY_BRACE: 123,
228451
+ /* { */
228452
+ CHAR_LEFT_SQUARE_BRACKET: 91,
228453
+ /* [ */
228454
+ CHAR_LINE_FEED: 10,
228455
+ /* \n */
228456
+ CHAR_NO_BREAK_SPACE: 160,
228457
+ /* \u00A0 */
228458
+ CHAR_PERCENT: 37,
228459
+ /* % */
228460
+ CHAR_PLUS: 43,
228461
+ /* + */
228462
+ CHAR_QUESTION_MARK: 63,
228463
+ /* ? */
228464
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
228465
+ /* > */
228466
+ CHAR_RIGHT_CURLY_BRACE: 125,
228467
+ /* } */
228468
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
228469
+ /* ] */
228470
+ CHAR_SEMICOLON: 59,
228471
+ /* ; */
228472
+ CHAR_SINGLE_QUOTE: 39,
228473
+ /* ' */
228474
+ CHAR_SPACE: 32,
228475
+ /* */
228476
+ CHAR_TAB: 9,
228477
+ /* \t */
228478
+ CHAR_UNDERSCORE: 95,
228479
+ /* _ */
228480
+ CHAR_VERTICAL_LINE: 124,
228481
+ /* | */
228482
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
228483
+ /* \uFEFF */
228484
+ /**
228485
+ * Create EXTGLOB_CHARS
228486
+ */
228487
+ extglobChars(chars3) {
228488
+ return {
228489
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars3.STAR})` },
228490
+ "?": { type: "qmark", open: "(?:", close: ")?" },
228491
+ "+": { type: "plus", open: "(?:", close: ")+" },
228492
+ "*": { type: "star", open: "(?:", close: ")*" },
228493
+ "@": { type: "at", open: "(?:", close: ")" }
228494
+ };
228495
+ },
228496
+ /**
228497
+ * Create GLOB_CHARS
228498
+ */
228499
+ globChars(win323) {
228500
+ return win323 === true ? WINDOWS_CHARS : POSIX_CHARS;
228501
+ }
228502
+ };
228503
+ return constants;
228504
+ }
228505
+ function requireUtils() {
228506
+ if (hasRequiredUtils) return utils;
228507
+ hasRequiredUtils = 1;
228508
+ (function(exports2) {
228509
+ const {
228510
+ REGEX_BACKSLASH,
228511
+ REGEX_REMOVE_BACKSLASH,
228512
+ REGEX_SPECIAL_CHARS,
228513
+ REGEX_SPECIAL_CHARS_GLOBAL
228514
+ } = /* @__PURE__ */ requireConstants();
228515
+ exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
228516
+ exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
228517
+ exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
228518
+ exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
228519
+ exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
228520
+ exports2.isWindows = () => {
228521
+ if (typeof navigator !== "undefined" && navigator.platform) {
228522
+ const platform = navigator.platform.toLowerCase();
228523
+ return platform === "win32" || platform === "windows";
228524
+ }
228525
+ if (typeof process !== "undefined" && process.platform) {
228526
+ return process.platform === "win32";
228527
+ }
228528
+ return false;
228529
+ };
228530
+ exports2.removeBackslashes = (str) => {
228531
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match2) => {
228532
+ return match2 === "\\" ? "" : match2;
228533
+ });
228534
+ };
228535
+ exports2.escapeLast = (input, char, lastIdx) => {
228536
+ const idx = input.lastIndexOf(char, lastIdx);
228537
+ if (idx === -1) return input;
228538
+ if (input[idx - 1] === "\\") return exports2.escapeLast(input, char, idx - 1);
228539
+ return `${input.slice(0, idx)}\\${input.slice(idx)}`;
228540
+ };
228541
+ exports2.removePrefix = (input, state = {}) => {
228542
+ let output = input;
228543
+ if (output.startsWith("./")) {
228544
+ output = output.slice(2);
228545
+ state.prefix = "./";
228546
+ }
228547
+ return output;
228548
+ };
228549
+ exports2.wrapOutput = (input, state = {}, options = {}) => {
228550
+ const prepend = options.contains ? "" : "^";
228551
+ const append2 = options.contains ? "" : "$";
228552
+ let output = `${prepend}(?:${input})${append2}`;
228553
+ if (state.negated === true) {
228554
+ output = `(?:^(?!${output}).*$)`;
228555
+ }
228556
+ return output;
228557
+ };
228558
+ exports2.basename = (path7, { windows } = {}) => {
228559
+ const segs = path7.split(windows ? /[\\/]/ : "/");
228560
+ const last = segs[segs.length - 1];
228561
+ if (last === "") {
228562
+ return segs[segs.length - 2];
228563
+ }
228564
+ return last;
228565
+ };
228566
+ })(utils);
228567
+ return utils;
228568
+ }
228569
+ function requireScan() {
228570
+ if (hasRequiredScan) return scan_1;
228571
+ hasRequiredScan = 1;
228572
+ const utils2 = /* @__PURE__ */ requireUtils();
228573
+ const {
228574
+ CHAR_ASTERISK,
228575
+ /* * */
228576
+ CHAR_AT,
228577
+ /* @ */
228578
+ CHAR_BACKWARD_SLASH,
228579
+ /* \ */
228580
+ CHAR_COMMA,
228581
+ /* , */
228582
+ CHAR_DOT,
228583
+ /* . */
228584
+ CHAR_EXCLAMATION_MARK,
228585
+ /* ! */
228586
+ CHAR_FORWARD_SLASH,
228587
+ /* / */
228588
+ CHAR_LEFT_CURLY_BRACE,
228589
+ /* { */
228590
+ CHAR_LEFT_PARENTHESES,
228591
+ /* ( */
228592
+ CHAR_LEFT_SQUARE_BRACKET,
228593
+ /* [ */
228594
+ CHAR_PLUS,
228595
+ /* + */
228596
+ CHAR_QUESTION_MARK,
228597
+ /* ? */
228598
+ CHAR_RIGHT_CURLY_BRACE,
228599
+ /* } */
228600
+ CHAR_RIGHT_PARENTHESES,
228601
+ /* ) */
228602
+ CHAR_RIGHT_SQUARE_BRACKET
228603
+ /* ] */
228604
+ } = /* @__PURE__ */ requireConstants();
228605
+ const isPathSeparator = (code) => {
228606
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
228607
+ };
228608
+ const depth = (token) => {
228609
+ if (token.isPrefix !== true) {
228610
+ token.depth = token.isGlobstar ? Infinity : 1;
228611
+ }
228612
+ };
228613
+ const scan = (input, options) => {
228614
+ const opts = options || {};
228615
+ const length = input.length - 1;
228616
+ const scanToEnd = opts.parts === true || opts.scanToEnd === true;
228617
+ const slashes = [];
228618
+ const tokens = [];
228619
+ const parts = [];
228620
+ let str = input;
228621
+ let index2 = -1;
228622
+ let start = 0;
228623
+ let lastIndex = 0;
228624
+ let isBrace = false;
228625
+ let isBracket = false;
228626
+ let isGlob2 = false;
228627
+ let isExtglob = false;
228628
+ let isGlobstar = false;
228629
+ let braceEscaped = false;
228630
+ let backslashes = false;
228631
+ let negated = false;
228632
+ let negatedExtglob = false;
228633
+ let finished = false;
228634
+ let braces = 0;
228635
+ let prev;
228636
+ let code;
228637
+ let token = { value: "", depth: 0, isGlob: false };
228638
+ const eos = () => index2 >= length;
228639
+ const peek = () => str.charCodeAt(index2 + 1);
228640
+ const advance = () => {
228641
+ prev = code;
228642
+ return str.charCodeAt(++index2);
228643
+ };
228644
+ while (index2 < length) {
228645
+ code = advance();
228646
+ let next;
228647
+ if (code === CHAR_BACKWARD_SLASH) {
228648
+ backslashes = token.backslashes = true;
228649
+ code = advance();
228650
+ if (code === CHAR_LEFT_CURLY_BRACE) {
228651
+ braceEscaped = true;
228652
+ }
228653
+ continue;
228654
+ }
228655
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
228656
+ braces++;
228657
+ while (eos() !== true && (code = advance())) {
228658
+ if (code === CHAR_BACKWARD_SLASH) {
228659
+ backslashes = token.backslashes = true;
228660
+ advance();
228661
+ continue;
228662
+ }
228663
+ if (code === CHAR_LEFT_CURLY_BRACE) {
228664
+ braces++;
228665
+ continue;
228666
+ }
228667
+ if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
228668
+ isBrace = token.isBrace = true;
228669
+ isGlob2 = token.isGlob = true;
228670
+ finished = true;
228671
+ if (scanToEnd === true) {
228672
+ continue;
228673
+ }
228674
+ break;
228675
+ }
228676
+ if (braceEscaped !== true && code === CHAR_COMMA) {
228677
+ isBrace = token.isBrace = true;
228678
+ isGlob2 = token.isGlob = true;
228679
+ finished = true;
228680
+ if (scanToEnd === true) {
228681
+ continue;
228682
+ }
228683
+ break;
228684
+ }
228685
+ if (code === CHAR_RIGHT_CURLY_BRACE) {
228686
+ braces--;
228687
+ if (braces === 0) {
228688
+ braceEscaped = false;
228689
+ isBrace = token.isBrace = true;
228690
+ finished = true;
228691
+ break;
228692
+ }
228693
+ }
228694
+ }
228695
+ if (scanToEnd === true) {
228696
+ continue;
228697
+ }
228698
+ break;
228699
+ }
228700
+ if (code === CHAR_FORWARD_SLASH) {
228701
+ slashes.push(index2);
228702
+ tokens.push(token);
228703
+ token = { value: "", depth: 0, isGlob: false };
228704
+ if (finished === true) continue;
228705
+ if (prev === CHAR_DOT && index2 === start + 1) {
228706
+ start += 2;
228707
+ continue;
228708
+ }
228709
+ lastIndex = index2 + 1;
228710
+ continue;
228711
+ }
228712
+ if (opts.noext !== true) {
228713
+ const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
228714
+ if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
228715
+ isGlob2 = token.isGlob = true;
228716
+ isExtglob = token.isExtglob = true;
228717
+ finished = true;
228718
+ if (code === CHAR_EXCLAMATION_MARK && index2 === start) {
228719
+ negatedExtglob = true;
228720
+ }
228721
+ if (scanToEnd === true) {
228722
+ while (eos() !== true && (code = advance())) {
228723
+ if (code === CHAR_BACKWARD_SLASH) {
228724
+ backslashes = token.backslashes = true;
228725
+ code = advance();
228726
+ continue;
228727
+ }
228728
+ if (code === CHAR_RIGHT_PARENTHESES) {
228729
+ isGlob2 = token.isGlob = true;
228730
+ finished = true;
228731
+ break;
228732
+ }
228733
+ }
228734
+ continue;
228735
+ }
228736
+ break;
228737
+ }
228738
+ }
228739
+ if (code === CHAR_ASTERISK) {
228740
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
228741
+ isGlob2 = token.isGlob = true;
228742
+ finished = true;
228743
+ if (scanToEnd === true) {
228744
+ continue;
228745
+ }
228746
+ break;
228747
+ }
228748
+ if (code === CHAR_QUESTION_MARK) {
228749
+ isGlob2 = token.isGlob = true;
228750
+ finished = true;
228751
+ if (scanToEnd === true) {
228752
+ continue;
228753
+ }
228754
+ break;
228755
+ }
228756
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
228757
+ while (eos() !== true && (next = advance())) {
228758
+ if (next === CHAR_BACKWARD_SLASH) {
228759
+ backslashes = token.backslashes = true;
228760
+ advance();
228761
+ continue;
228762
+ }
228763
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
228764
+ isBracket = token.isBracket = true;
228765
+ isGlob2 = token.isGlob = true;
228766
+ finished = true;
228767
+ break;
228768
+ }
228769
+ }
228770
+ if (scanToEnd === true) {
228771
+ continue;
228772
+ }
228773
+ break;
228774
+ }
228775
+ if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index2 === start) {
228776
+ negated = token.negated = true;
228777
+ start++;
228778
+ continue;
228779
+ }
228780
+ if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
228781
+ isGlob2 = token.isGlob = true;
228782
+ if (scanToEnd === true) {
228783
+ while (eos() !== true && (code = advance())) {
228784
+ if (code === CHAR_LEFT_PARENTHESES) {
228785
+ backslashes = token.backslashes = true;
228786
+ code = advance();
228787
+ continue;
228788
+ }
228789
+ if (code === CHAR_RIGHT_PARENTHESES) {
228790
+ finished = true;
228791
+ break;
228792
+ }
228793
+ }
228794
+ continue;
228795
+ }
228796
+ break;
228797
+ }
228798
+ if (isGlob2 === true) {
228799
+ finished = true;
228800
+ if (scanToEnd === true) {
228801
+ continue;
228802
+ }
228803
+ break;
228804
+ }
228805
+ }
228806
+ if (opts.noext === true) {
228807
+ isExtglob = false;
228808
+ isGlob2 = false;
228809
+ }
228810
+ let base2 = str;
228811
+ let prefix = "";
228812
+ let glob = "";
228813
+ if (start > 0) {
228814
+ prefix = str.slice(0, start);
228815
+ str = str.slice(start);
228816
+ lastIndex -= start;
228817
+ }
228818
+ if (base2 && isGlob2 === true && lastIndex > 0) {
228819
+ base2 = str.slice(0, lastIndex);
228820
+ glob = str.slice(lastIndex);
228821
+ } else if (isGlob2 === true) {
228822
+ base2 = "";
228823
+ glob = str;
228824
+ } else {
228825
+ base2 = str;
228826
+ }
228827
+ if (base2 && base2 !== "" && base2 !== "/" && base2 !== str) {
228828
+ if (isPathSeparator(base2.charCodeAt(base2.length - 1))) {
228829
+ base2 = base2.slice(0, -1);
228830
+ }
228831
+ }
228832
+ if (opts.unescape === true) {
228833
+ if (glob) glob = utils2.removeBackslashes(glob);
228834
+ if (base2 && backslashes === true) {
228835
+ base2 = utils2.removeBackslashes(base2);
228836
+ }
228837
+ }
228838
+ const state = {
228839
+ prefix,
228840
+ input,
228841
+ start,
228842
+ base: base2,
228843
+ glob,
228844
+ isBrace,
228845
+ isBracket,
228846
+ isGlob: isGlob2,
228847
+ isExtglob,
228848
+ isGlobstar,
228849
+ negated,
228850
+ negatedExtglob
228851
+ };
228852
+ if (opts.tokens === true) {
228853
+ state.maxDepth = 0;
228854
+ if (!isPathSeparator(code)) {
228855
+ tokens.push(token);
228856
+ }
228857
+ state.tokens = tokens;
228858
+ }
228859
+ if (opts.parts === true || opts.tokens === true) {
228860
+ let prevIndex;
228861
+ for (let idx = 0; idx < slashes.length; idx++) {
228862
+ const n3 = prevIndex ? prevIndex + 1 : start;
228863
+ const i = slashes[idx];
228864
+ const value = input.slice(n3, i);
228865
+ if (opts.tokens) {
228866
+ if (idx === 0 && start !== 0) {
228867
+ tokens[idx].isPrefix = true;
228868
+ tokens[idx].value = prefix;
228869
+ } else {
228870
+ tokens[idx].value = value;
228871
+ }
228872
+ depth(tokens[idx]);
228873
+ state.maxDepth += tokens[idx].depth;
228874
+ }
228875
+ if (idx !== 0 || value !== "") {
228876
+ parts.push(value);
228877
+ }
228878
+ prevIndex = i;
228879
+ }
228880
+ if (prevIndex && prevIndex + 1 < input.length) {
228881
+ const value = input.slice(prevIndex + 1);
228882
+ parts.push(value);
228883
+ if (opts.tokens) {
228884
+ tokens[tokens.length - 1].value = value;
228885
+ depth(tokens[tokens.length - 1]);
228886
+ state.maxDepth += tokens[tokens.length - 1].depth;
228887
+ }
228888
+ }
228889
+ state.slashes = slashes;
228890
+ state.parts = parts;
228891
+ }
228892
+ return state;
228893
+ };
228894
+ scan_1 = scan;
228895
+ return scan_1;
228896
+ }
228897
+ function requireParse() {
228898
+ if (hasRequiredParse) return parse_1;
228899
+ hasRequiredParse = 1;
228900
+ const constants2 = /* @__PURE__ */ requireConstants();
228901
+ const utils2 = /* @__PURE__ */ requireUtils();
228902
+ const {
228903
+ MAX_LENGTH,
228904
+ POSIX_REGEX_SOURCE,
228905
+ REGEX_NON_SPECIAL_CHARS,
228906
+ REGEX_SPECIAL_CHARS_BACKREF,
228907
+ REPLACEMENTS
228908
+ } = constants2;
228909
+ const expandRange = (args, options) => {
228910
+ if (typeof options.expandRange === "function") {
228911
+ return options.expandRange(...args, options);
228912
+ }
228913
+ args.sort();
228914
+ const value = `[${args.join("-")}]`;
228915
+ return value;
228916
+ };
228917
+ const syntaxError = (type, char) => {
228918
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
228919
+ };
228920
+ const parse6 = (input, options) => {
228921
+ if (typeof input !== "string") {
228922
+ throw new TypeError("Expected a string");
228923
+ }
228924
+ input = REPLACEMENTS[input] || input;
228925
+ const opts = { ...options };
228926
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
228927
+ let len = input.length;
228928
+ if (len > max) {
228929
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
228930
+ }
228931
+ const bos = { type: "bos", value: "", output: opts.prepend || "" };
228932
+ const tokens = [bos];
228933
+ const capture = opts.capture ? "" : "?:";
228934
+ const PLATFORM_CHARS = constants2.globChars(opts.windows);
228935
+ const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
228936
+ const {
228937
+ DOT_LITERAL,
228938
+ PLUS_LITERAL,
228939
+ SLASH_LITERAL,
228940
+ ONE_CHAR,
228941
+ DOTS_SLASH,
228942
+ NO_DOT,
228943
+ NO_DOT_SLASH,
228944
+ NO_DOTS_SLASH,
228945
+ QMARK,
228946
+ QMARK_NO_DOT,
228947
+ STAR,
228948
+ START_ANCHOR
228949
+ } = PLATFORM_CHARS;
228950
+ const globstar = (opts2) => {
228951
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
228952
+ };
228953
+ const nodot = opts.dot ? "" : NO_DOT;
228954
+ const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
228955
+ let star3 = opts.bash === true ? globstar(opts) : STAR;
228956
+ if (opts.capture) {
228957
+ star3 = `(${star3})`;
228958
+ }
228959
+ if (typeof opts.noext === "boolean") {
228960
+ opts.noextglob = opts.noext;
228961
+ }
228962
+ const state = {
228963
+ input,
228964
+ index: -1,
228965
+ start: 0,
228966
+ dot: opts.dot === true,
228967
+ consumed: "",
228968
+ output: "",
228969
+ prefix: "",
228970
+ backtrack: false,
228971
+ negated: false,
228972
+ brackets: 0,
228973
+ braces: 0,
228974
+ parens: 0,
228975
+ quotes: 0,
228976
+ globstar: false,
228977
+ tokens
228978
+ };
228979
+ input = utils2.removePrefix(input, state);
228980
+ len = input.length;
228981
+ const extglobs = [];
228982
+ const braces = [];
228983
+ const stack = [];
228984
+ let prev = bos;
228985
+ let value;
228986
+ const eos = () => state.index === len - 1;
228987
+ const peek = state.peek = (n3 = 1) => input[state.index + n3];
228988
+ const advance = state.advance = () => input[++state.index] || "";
228989
+ const remaining = () => input.slice(state.index + 1);
228990
+ const consume = (value2 = "", num = 0) => {
228991
+ state.consumed += value2;
228992
+ state.index += num;
228993
+ };
228994
+ const append2 = (token) => {
228995
+ state.output += token.output != null ? token.output : token.value;
228996
+ consume(token.value);
228997
+ };
228998
+ const negate = () => {
228999
+ let count = 1;
229000
+ while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
229001
+ advance();
229002
+ state.start++;
229003
+ count++;
229004
+ }
229005
+ if (count % 2 === 0) {
229006
+ return false;
229007
+ }
229008
+ state.negated = true;
229009
+ state.start++;
229010
+ return true;
229011
+ };
229012
+ const increment = (type) => {
229013
+ state[type]++;
229014
+ stack.push(type);
229015
+ };
229016
+ const decrement = (type) => {
229017
+ state[type]--;
229018
+ stack.pop();
229019
+ };
229020
+ const push2 = (tok) => {
229021
+ if (prev.type === "globstar") {
229022
+ const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace");
229023
+ const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
229024
+ if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
229025
+ state.output = state.output.slice(0, -prev.output.length);
229026
+ prev.type = "star";
229027
+ prev.value = "*";
229028
+ prev.output = star3;
229029
+ state.output += prev.output;
229030
+ }
229031
+ }
229032
+ if (extglobs.length && tok.type !== "paren") {
229033
+ extglobs[extglobs.length - 1].inner += tok.value;
229034
+ }
229035
+ if (tok.value || tok.output) append2(tok);
229036
+ if (prev && prev.type === "text" && tok.type === "text") {
229037
+ prev.output = (prev.output || prev.value) + tok.value;
229038
+ prev.value += tok.value;
229039
+ return;
229040
+ }
229041
+ tok.prev = prev;
229042
+ tokens.push(tok);
229043
+ prev = tok;
229044
+ };
229045
+ const extglobOpen = (type, value2) => {
229046
+ const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
229047
+ token.prev = prev;
229048
+ token.parens = state.parens;
229049
+ token.output = state.output;
229050
+ const output = (opts.capture ? "(" : "") + token.open;
229051
+ increment("parens");
229052
+ push2({ type, value: value2, output: state.output ? "" : ONE_CHAR });
229053
+ push2({ type: "paren", extglob: true, value: advance(), output });
229054
+ extglobs.push(token);
229055
+ };
229056
+ const extglobClose = (token) => {
229057
+ let output = token.close + (opts.capture ? ")" : "");
229058
+ let rest;
229059
+ if (token.type === "negate") {
229060
+ let extglobStar = star3;
229061
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/")) {
229062
+ extglobStar = globstar(opts);
229063
+ }
229064
+ if (extglobStar !== star3 || eos() || /^\)+$/.test(remaining())) {
229065
+ output = token.close = `)$))${extglobStar}`;
229066
+ }
229067
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
229068
+ const expression = parse6(rest, { ...options, fastpaths: false }).output;
229069
+ output = token.close = `)${expression})${extglobStar})`;
229070
+ }
229071
+ if (token.prev.type === "bos") {
229072
+ state.negatedExtglob = true;
229073
+ }
229074
+ }
229075
+ push2({ type: "paren", extglob: true, value, output });
229076
+ decrement("parens");
229077
+ };
229078
+ if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
229079
+ let backslashes = false;
229080
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars3, first, rest, index2) => {
229081
+ if (first === "\\") {
229082
+ backslashes = true;
229083
+ return m;
229084
+ }
229085
+ if (first === "?") {
229086
+ if (esc) {
229087
+ return esc + first + (rest ? QMARK.repeat(rest.length) : "");
229088
+ }
229089
+ if (index2 === 0) {
229090
+ return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
229091
+ }
229092
+ return QMARK.repeat(chars3.length);
229093
+ }
229094
+ if (first === ".") {
229095
+ return DOT_LITERAL.repeat(chars3.length);
229096
+ }
229097
+ if (first === "*") {
229098
+ if (esc) {
229099
+ return esc + first + (rest ? star3 : "");
229100
+ }
229101
+ return star3;
229102
+ }
229103
+ return esc ? m : `\\${m}`;
229104
+ });
229105
+ if (backslashes === true) {
229106
+ if (opts.unescape === true) {
229107
+ output = output.replace(/\\/g, "");
229108
+ } else {
229109
+ output = output.replace(/\\+/g, (m) => {
229110
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
229111
+ });
229112
+ }
229113
+ }
229114
+ if (output === input && opts.contains === true) {
229115
+ state.output = input;
229116
+ return state;
229117
+ }
229118
+ state.output = utils2.wrapOutput(output, state, options);
229119
+ return state;
229120
+ }
229121
+ while (!eos()) {
229122
+ value = advance();
229123
+ if (value === "\0") {
229124
+ continue;
229125
+ }
229126
+ if (value === "\\") {
229127
+ const next = peek();
229128
+ if (next === "/" && opts.bash !== true) {
229129
+ continue;
229130
+ }
229131
+ if (next === "." || next === ";") {
229132
+ continue;
229133
+ }
229134
+ if (!next) {
229135
+ value += "\\";
229136
+ push2({ type: "text", value });
229137
+ continue;
229138
+ }
229139
+ const match2 = /^\\+/.exec(remaining());
229140
+ let slashes = 0;
229141
+ if (match2 && match2[0].length > 2) {
229142
+ slashes = match2[0].length;
229143
+ state.index += slashes;
229144
+ if (slashes % 2 !== 0) {
229145
+ value += "\\";
229146
+ }
229147
+ }
229148
+ if (opts.unescape === true) {
229149
+ value = advance();
229150
+ } else {
229151
+ value += advance();
229152
+ }
229153
+ if (state.brackets === 0) {
229154
+ push2({ type: "text", value });
229155
+ continue;
229156
+ }
229157
+ }
229158
+ if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
229159
+ if (opts.posix !== false && value === ":") {
229160
+ const inner = prev.value.slice(1);
229161
+ if (inner.includes("[")) {
229162
+ prev.posix = true;
229163
+ if (inner.includes(":")) {
229164
+ const idx = prev.value.lastIndexOf("[");
229165
+ const pre = prev.value.slice(0, idx);
229166
+ const rest2 = prev.value.slice(idx + 2);
229167
+ const posix3 = POSIX_REGEX_SOURCE[rest2];
229168
+ if (posix3) {
229169
+ prev.value = pre + posix3;
229170
+ state.backtrack = true;
229171
+ advance();
229172
+ if (!bos.output && tokens.indexOf(prev) === 1) {
229173
+ bos.output = ONE_CHAR;
229174
+ }
229175
+ continue;
229176
+ }
229177
+ }
229178
+ }
229179
+ }
229180
+ if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") {
229181
+ value = `\\${value}`;
229182
+ }
229183
+ if (value === "]" && (prev.value === "[" || prev.value === "[^")) {
229184
+ value = `\\${value}`;
229185
+ }
229186
+ if (opts.posix === true && value === "!" && prev.value === "[") {
229187
+ value = "^";
229188
+ }
229189
+ prev.value += value;
229190
+ append2({ value });
229191
+ continue;
229192
+ }
229193
+ if (state.quotes === 1 && value !== '"') {
229194
+ value = utils2.escapeRegex(value);
229195
+ prev.value += value;
229196
+ append2({ value });
229197
+ continue;
229198
+ }
229199
+ if (value === '"') {
229200
+ state.quotes = state.quotes === 1 ? 0 : 1;
229201
+ if (opts.keepQuotes === true) {
229202
+ push2({ type: "text", value });
229203
+ }
229204
+ continue;
229205
+ }
229206
+ if (value === "(") {
229207
+ increment("parens");
229208
+ push2({ type: "paren", value });
229209
+ continue;
229210
+ }
229211
+ if (value === ")") {
229212
+ if (state.parens === 0 && opts.strictBrackets === true) {
229213
+ throw new SyntaxError(syntaxError("opening", "("));
229214
+ }
229215
+ const extglob = extglobs[extglobs.length - 1];
229216
+ if (extglob && state.parens === extglob.parens + 1) {
229217
+ extglobClose(extglobs.pop());
229218
+ continue;
229219
+ }
229220
+ push2({ type: "paren", value, output: state.parens ? ")" : "\\)" });
229221
+ decrement("parens");
229222
+ continue;
229223
+ }
229224
+ if (value === "[") {
229225
+ if (opts.nobracket === true || !remaining().includes("]")) {
229226
+ if (opts.nobracket !== true && opts.strictBrackets === true) {
229227
+ throw new SyntaxError(syntaxError("closing", "]"));
229228
+ }
229229
+ value = `\\${value}`;
229230
+ } else {
229231
+ increment("brackets");
229232
+ }
229233
+ push2({ type: "bracket", value });
229234
+ continue;
229235
+ }
229236
+ if (value === "]") {
229237
+ if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) {
229238
+ push2({ type: "text", value, output: `\\${value}` });
229239
+ continue;
229240
+ }
229241
+ if (state.brackets === 0) {
229242
+ if (opts.strictBrackets === true) {
229243
+ throw new SyntaxError(syntaxError("opening", "["));
229244
+ }
229245
+ push2({ type: "text", value, output: `\\${value}` });
229246
+ continue;
229247
+ }
229248
+ decrement("brackets");
229249
+ const prevValue = prev.value.slice(1);
229250
+ if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) {
229251
+ value = `/${value}`;
229252
+ }
229253
+ prev.value += value;
229254
+ append2({ value });
229255
+ if (opts.literalBrackets === false || utils2.hasRegexChars(prevValue)) {
229256
+ continue;
229257
+ }
229258
+ const escaped = utils2.escapeRegex(prev.value);
229259
+ state.output = state.output.slice(0, -prev.value.length);
229260
+ if (opts.literalBrackets === true) {
229261
+ state.output += escaped;
229262
+ prev.value = escaped;
229263
+ continue;
229264
+ }
229265
+ prev.value = `(${capture}${escaped}|${prev.value})`;
229266
+ state.output += prev.value;
229267
+ continue;
229268
+ }
229269
+ if (value === "{" && opts.nobrace !== true) {
229270
+ increment("braces");
229271
+ const open = {
229272
+ type: "brace",
229273
+ value,
229274
+ output: "(",
229275
+ outputIndex: state.output.length,
229276
+ tokensIndex: state.tokens.length
229277
+ };
229278
+ braces.push(open);
229279
+ push2(open);
229280
+ continue;
229281
+ }
229282
+ if (value === "}") {
229283
+ const brace = braces[braces.length - 1];
229284
+ if (opts.nobrace === true || !brace) {
229285
+ push2({ type: "text", value, output: value });
229286
+ continue;
229287
+ }
229288
+ let output = ")";
229289
+ if (brace.dots === true) {
229290
+ const arr = tokens.slice();
229291
+ const range = [];
229292
+ for (let i = arr.length - 1; i >= 0; i--) {
229293
+ tokens.pop();
229294
+ if (arr[i].type === "brace") {
229295
+ break;
229296
+ }
229297
+ if (arr[i].type !== "dots") {
229298
+ range.unshift(arr[i].value);
229299
+ }
229300
+ }
229301
+ output = expandRange(range, opts);
229302
+ state.backtrack = true;
229303
+ }
229304
+ if (brace.comma !== true && brace.dots !== true) {
229305
+ const out = state.output.slice(0, brace.outputIndex);
229306
+ const toks = state.tokens.slice(brace.tokensIndex);
229307
+ brace.value = brace.output = "\\{";
229308
+ value = output = "\\}";
229309
+ state.output = out;
229310
+ for (const t of toks) {
229311
+ state.output += t.output || t.value;
229312
+ }
229313
+ }
229314
+ push2({ type: "brace", value, output });
229315
+ decrement("braces");
229316
+ braces.pop();
229317
+ continue;
229318
+ }
229319
+ if (value === "|") {
229320
+ if (extglobs.length > 0) {
229321
+ extglobs[extglobs.length - 1].conditions++;
229322
+ }
229323
+ push2({ type: "text", value });
229324
+ continue;
229325
+ }
229326
+ if (value === ",") {
229327
+ let output = value;
229328
+ const brace = braces[braces.length - 1];
229329
+ if (brace && stack[stack.length - 1] === "braces") {
229330
+ brace.comma = true;
229331
+ output = "|";
229332
+ }
229333
+ push2({ type: "comma", value, output });
229334
+ continue;
229335
+ }
229336
+ if (value === "/") {
229337
+ if (prev.type === "dot" && state.index === state.start + 1) {
229338
+ state.start = state.index + 1;
229339
+ state.consumed = "";
229340
+ state.output = "";
229341
+ tokens.pop();
229342
+ prev = bos;
229343
+ continue;
229344
+ }
229345
+ push2({ type: "slash", value, output: SLASH_LITERAL });
229346
+ continue;
229347
+ }
229348
+ if (value === ".") {
229349
+ if (state.braces > 0 && prev.type === "dot") {
229350
+ if (prev.value === ".") prev.output = DOT_LITERAL;
229351
+ const brace = braces[braces.length - 1];
229352
+ prev.type = "dots";
229353
+ prev.output += value;
229354
+ prev.value += value;
229355
+ brace.dots = true;
229356
+ continue;
229357
+ }
229358
+ if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
229359
+ push2({ type: "text", value, output: DOT_LITERAL });
229360
+ continue;
229361
+ }
229362
+ push2({ type: "dot", value, output: DOT_LITERAL });
229363
+ continue;
229364
+ }
229365
+ if (value === "?") {
229366
+ const isGroup = prev && prev.value === "(";
229367
+ if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
229368
+ extglobOpen("qmark", value);
229369
+ continue;
229370
+ }
229371
+ if (prev && prev.type === "paren") {
229372
+ const next = peek();
229373
+ let output = value;
229374
+ if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
229375
+ output = `\\${value}`;
229376
+ }
229377
+ push2({ type: "text", value, output });
229378
+ continue;
229379
+ }
229380
+ if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
229381
+ push2({ type: "qmark", value, output: QMARK_NO_DOT });
229382
+ continue;
229383
+ }
229384
+ push2({ type: "qmark", value, output: QMARK });
229385
+ continue;
229386
+ }
229387
+ if (value === "!") {
229388
+ if (opts.noextglob !== true && peek() === "(") {
229389
+ if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) {
229390
+ extglobOpen("negate", value);
229391
+ continue;
229392
+ }
229393
+ }
229394
+ if (opts.nonegate !== true && state.index === 0) {
229395
+ negate();
229396
+ continue;
229397
+ }
229398
+ }
229399
+ if (value === "+") {
229400
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
229401
+ extglobOpen("plus", value);
229402
+ continue;
229403
+ }
229404
+ if (prev && prev.value === "(" || opts.regex === false) {
229405
+ push2({ type: "plus", value, output: PLUS_LITERAL });
229406
+ continue;
229407
+ }
229408
+ if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
229409
+ push2({ type: "plus", value });
229410
+ continue;
229411
+ }
229412
+ push2({ type: "plus", value: PLUS_LITERAL });
229413
+ continue;
229414
+ }
229415
+ if (value === "@") {
229416
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
229417
+ push2({ type: "at", extglob: true, value, output: "" });
229418
+ continue;
229419
+ }
229420
+ push2({ type: "text", value });
229421
+ continue;
229422
+ }
229423
+ if (value !== "*") {
229424
+ if (value === "$" || value === "^") {
229425
+ value = `\\${value}`;
229426
+ }
229427
+ const match2 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
229428
+ if (match2) {
229429
+ value += match2[0];
229430
+ state.index += match2[0].length;
229431
+ }
229432
+ push2({ type: "text", value });
229433
+ continue;
229434
+ }
229435
+ if (prev && (prev.type === "globstar" || prev.star === true)) {
229436
+ prev.type = "star";
229437
+ prev.star = true;
229438
+ prev.value += value;
229439
+ prev.output = star3;
229440
+ state.backtrack = true;
229441
+ state.globstar = true;
229442
+ consume(value);
229443
+ continue;
229444
+ }
229445
+ let rest = remaining();
229446
+ if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
229447
+ extglobOpen("star", value);
229448
+ continue;
229449
+ }
229450
+ if (prev.type === "star") {
229451
+ if (opts.noglobstar === true) {
229452
+ consume(value);
229453
+ continue;
229454
+ }
229455
+ const prior = prev.prev;
229456
+ const before = prior.prev;
229457
+ const isStart = prior.type === "slash" || prior.type === "bos";
229458
+ const afterStar = before && (before.type === "star" || before.type === "globstar");
229459
+ if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
229460
+ push2({ type: "star", value, output: "" });
229461
+ continue;
229462
+ }
229463
+ const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace");
229464
+ const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
229465
+ if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
229466
+ push2({ type: "star", value, output: "" });
229467
+ continue;
229468
+ }
229469
+ while (rest.slice(0, 3) === "/**") {
229470
+ const after = input[state.index + 4];
229471
+ if (after && after !== "/") {
229472
+ break;
229473
+ }
229474
+ rest = rest.slice(3);
229475
+ consume("/**", 3);
229476
+ }
229477
+ if (prior.type === "bos" && eos()) {
229478
+ prev.type = "globstar";
229479
+ prev.value += value;
229480
+ prev.output = globstar(opts);
229481
+ state.output = prev.output;
229482
+ state.globstar = true;
229483
+ consume(value);
229484
+ continue;
229485
+ }
229486
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
229487
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
229488
+ prior.output = `(?:${prior.output}`;
229489
+ prev.type = "globstar";
229490
+ prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)");
229491
+ prev.value += value;
229492
+ state.globstar = true;
229493
+ state.output += prior.output + prev.output;
229494
+ consume(value);
229495
+ continue;
229496
+ }
229497
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
229498
+ const end = rest[1] !== void 0 ? "|$" : "";
229499
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
229500
+ prior.output = `(?:${prior.output}`;
229501
+ prev.type = "globstar";
229502
+ prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
229503
+ prev.value += value;
229504
+ state.output += prior.output + prev.output;
229505
+ state.globstar = true;
229506
+ consume(value + advance());
229507
+ push2({ type: "slash", value: "/", output: "" });
229508
+ continue;
229509
+ }
229510
+ if (prior.type === "bos" && rest[0] === "/") {
229511
+ prev.type = "globstar";
229512
+ prev.value += value;
229513
+ prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
229514
+ state.output = prev.output;
229515
+ state.globstar = true;
229516
+ consume(value + advance());
229517
+ push2({ type: "slash", value: "/", output: "" });
229518
+ continue;
229519
+ }
229520
+ state.output = state.output.slice(0, -prev.output.length);
229521
+ prev.type = "globstar";
229522
+ prev.output = globstar(opts);
229523
+ prev.value += value;
229524
+ state.output += prev.output;
229525
+ state.globstar = true;
229526
+ consume(value);
229527
+ continue;
229528
+ }
229529
+ const token = { type: "star", value, output: star3 };
229530
+ if (opts.bash === true) {
229531
+ token.output = ".*?";
229532
+ if (prev.type === "bos" || prev.type === "slash") {
229533
+ token.output = nodot + token.output;
229534
+ }
229535
+ push2(token);
229536
+ continue;
229537
+ }
229538
+ if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) {
229539
+ token.output = value;
229540
+ push2(token);
229541
+ continue;
229542
+ }
229543
+ if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
229544
+ if (prev.type === "dot") {
229545
+ state.output += NO_DOT_SLASH;
229546
+ prev.output += NO_DOT_SLASH;
229547
+ } else if (opts.dot === true) {
229548
+ state.output += NO_DOTS_SLASH;
229549
+ prev.output += NO_DOTS_SLASH;
229550
+ } else {
229551
+ state.output += nodot;
229552
+ prev.output += nodot;
229553
+ }
229554
+ if (peek() !== "*") {
229555
+ state.output += ONE_CHAR;
229556
+ prev.output += ONE_CHAR;
229557
+ }
229558
+ }
229559
+ push2(token);
229560
+ }
229561
+ while (state.brackets > 0) {
229562
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
229563
+ state.output = utils2.escapeLast(state.output, "[");
229564
+ decrement("brackets");
229565
+ }
229566
+ while (state.parens > 0) {
229567
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
229568
+ state.output = utils2.escapeLast(state.output, "(");
229569
+ decrement("parens");
229570
+ }
229571
+ while (state.braces > 0) {
229572
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
229573
+ state.output = utils2.escapeLast(state.output, "{");
229574
+ decrement("braces");
229575
+ }
229576
+ if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
229577
+ push2({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` });
229578
+ }
229579
+ if (state.backtrack === true) {
229580
+ state.output = "";
229581
+ for (const token of state.tokens) {
229582
+ state.output += token.output != null ? token.output : token.value;
229583
+ if (token.suffix) {
229584
+ state.output += token.suffix;
229585
+ }
229586
+ }
229587
+ }
229588
+ return state;
229589
+ };
229590
+ parse6.fastpaths = (input, options) => {
229591
+ const opts = { ...options };
229592
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
229593
+ const len = input.length;
229594
+ if (len > max) {
229595
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
229596
+ }
229597
+ input = REPLACEMENTS[input] || input;
229598
+ const {
229599
+ DOT_LITERAL,
229600
+ SLASH_LITERAL,
229601
+ ONE_CHAR,
229602
+ DOTS_SLASH,
229603
+ NO_DOT,
229604
+ NO_DOTS,
229605
+ NO_DOTS_SLASH,
229606
+ STAR,
229607
+ START_ANCHOR
229608
+ } = constants2.globChars(opts.windows);
229609
+ const nodot = opts.dot ? NO_DOTS : NO_DOT;
229610
+ const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
229611
+ const capture = opts.capture ? "" : "?:";
229612
+ const state = { negated: false, prefix: "" };
229613
+ let star3 = opts.bash === true ? ".*?" : STAR;
229614
+ if (opts.capture) {
229615
+ star3 = `(${star3})`;
229616
+ }
229617
+ const globstar = (opts2) => {
229618
+ if (opts2.noglobstar === true) return star3;
229619
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
229620
+ };
229621
+ const create = (str) => {
229622
+ switch (str) {
229623
+ case "*":
229624
+ return `${nodot}${ONE_CHAR}${star3}`;
229625
+ case ".*":
229626
+ return `${DOT_LITERAL}${ONE_CHAR}${star3}`;
229627
+ case "*.*":
229628
+ return `${nodot}${star3}${DOT_LITERAL}${ONE_CHAR}${star3}`;
229629
+ case "*/*":
229630
+ return `${nodot}${star3}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star3}`;
229631
+ case "**":
229632
+ return nodot + globstar(opts);
229633
+ case "**/*":
229634
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star3}`;
229635
+ case "**/*.*":
229636
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star3}${DOT_LITERAL}${ONE_CHAR}${star3}`;
229637
+ case "**/.*":
229638
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star3}`;
229639
+ default: {
229640
+ const match2 = /^(.*?)\.(\w+)$/.exec(str);
229641
+ if (!match2) return;
229642
+ const source2 = create(match2[1]);
229643
+ if (!source2) return;
229644
+ return source2 + DOT_LITERAL + match2[2];
229645
+ }
229646
+ }
229647
+ };
229648
+ const output = utils2.removePrefix(input, state);
229649
+ let source = create(output);
229650
+ if (source && opts.strictSlashes !== true) {
229651
+ source += `${SLASH_LITERAL}?`;
229652
+ }
229653
+ return source;
229654
+ };
229655
+ parse_1 = parse6;
229656
+ return parse_1;
229657
+ }
229658
+ function requirePicomatch$1() {
229659
+ if (hasRequiredPicomatch$1) return picomatch_1$1;
229660
+ hasRequiredPicomatch$1 = 1;
229661
+ const scan = /* @__PURE__ */ requireScan();
229662
+ const parse6 = /* @__PURE__ */ requireParse();
229663
+ const utils2 = /* @__PURE__ */ requireUtils();
229664
+ const constants2 = /* @__PURE__ */ requireConstants();
229665
+ const isObject4 = (val) => val && typeof val === "object" && !Array.isArray(val);
229666
+ const picomatch2 = (glob, options, returnState = false) => {
229667
+ if (Array.isArray(glob)) {
229668
+ const fns = glob.map((input) => picomatch2(input, options, returnState));
229669
+ const arrayMatcher = (str) => {
229670
+ for (const isMatch of fns) {
229671
+ const state2 = isMatch(str);
229672
+ if (state2) return state2;
229673
+ }
229674
+ return false;
229675
+ };
229676
+ return arrayMatcher;
229677
+ }
229678
+ const isState = isObject4(glob) && glob.tokens && glob.input;
229679
+ if (glob === "" || typeof glob !== "string" && !isState) {
229680
+ throw new TypeError("Expected pattern to be a non-empty string");
229681
+ }
229682
+ const opts = options || {};
229683
+ const posix3 = opts.windows;
229684
+ const regex = isState ? picomatch2.compileRe(glob, options) : picomatch2.makeRe(glob, options, false, true);
229685
+ const state = regex.state;
229686
+ delete regex.state;
229687
+ let isIgnored = () => false;
229688
+ if (opts.ignore) {
229689
+ const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
229690
+ isIgnored = picomatch2(opts.ignore, ignoreOpts, returnState);
229691
+ }
229692
+ const matcher = (input, returnObject = false) => {
229693
+ const { isMatch, match: match2, output } = picomatch2.test(input, regex, options, { glob, posix: posix3 });
229694
+ const result2 = { glob, state, regex, posix: posix3, input, output, match: match2, isMatch };
229695
+ if (typeof opts.onResult === "function") {
229696
+ opts.onResult(result2);
229697
+ }
229698
+ if (isMatch === false) {
229699
+ result2.isMatch = false;
229700
+ return returnObject ? result2 : false;
229701
+ }
229702
+ if (isIgnored(input)) {
229703
+ if (typeof opts.onIgnore === "function") {
229704
+ opts.onIgnore(result2);
229705
+ }
229706
+ result2.isMatch = false;
229707
+ return returnObject ? result2 : false;
229708
+ }
229709
+ if (typeof opts.onMatch === "function") {
229710
+ opts.onMatch(result2);
229711
+ }
229712
+ return returnObject ? result2 : true;
229713
+ };
229714
+ if (returnState) {
229715
+ matcher.state = state;
229716
+ }
229717
+ return matcher;
229718
+ };
229719
+ picomatch2.test = (input, regex, options, { glob, posix: posix3 } = {}) => {
229720
+ if (typeof input !== "string") {
229721
+ throw new TypeError("Expected input to be a string");
229722
+ }
229723
+ if (input === "") {
229724
+ return { isMatch: false, output: "" };
229725
+ }
229726
+ const opts = options || {};
229727
+ const format = opts.format || (posix3 ? utils2.toPosixSlashes : null);
229728
+ let match2 = input === glob;
229729
+ let output = match2 && format ? format(input) : input;
229730
+ if (match2 === false) {
229731
+ output = format ? format(input) : input;
229732
+ match2 = output === glob;
229733
+ }
229734
+ if (match2 === false || opts.capture === true) {
229735
+ if (opts.matchBase === true || opts.basename === true) {
229736
+ match2 = picomatch2.matchBase(input, regex, options, posix3);
229737
+ } else {
229738
+ match2 = regex.exec(output);
229739
+ }
229740
+ }
229741
+ return { isMatch: Boolean(match2), match: match2, output };
229742
+ };
229743
+ picomatch2.matchBase = (input, glob, options) => {
229744
+ const regex = glob instanceof RegExp ? glob : picomatch2.makeRe(glob, options);
229745
+ return regex.test(utils2.basename(input));
229746
+ };
229747
+ picomatch2.isMatch = (str, patterns, options) => picomatch2(patterns, options)(str);
229748
+ picomatch2.parse = (pattern, options) => {
229749
+ if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
229750
+ return parse6(pattern, { ...options, fastpaths: false });
229751
+ };
229752
+ picomatch2.scan = (input, options) => scan(input, options);
229753
+ picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
229754
+ if (returnOutput === true) {
229755
+ return state.output;
229756
+ }
229757
+ const opts = options || {};
229758
+ const prepend = opts.contains ? "" : "^";
229759
+ const append2 = opts.contains ? "" : "$";
229760
+ let source = `${prepend}(?:${state.output})${append2}`;
229761
+ if (state && state.negated === true) {
229762
+ source = `^(?!${source}).*$`;
229763
+ }
229764
+ const regex = picomatch2.toRegex(source, options);
229765
+ if (returnState === true) {
229766
+ regex.state = state;
229767
+ }
229768
+ return regex;
229769
+ };
229770
+ picomatch2.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
229771
+ if (!input || typeof input !== "string") {
229772
+ throw new TypeError("Expected a non-empty string");
229773
+ }
229774
+ let parsed = { negated: false, fastpaths: true };
229775
+ if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
229776
+ parsed.output = parse6.fastpaths(input, options);
229777
+ }
229778
+ if (!parsed.output) {
229779
+ parsed = parse6(input, options);
229780
+ }
229781
+ return picomatch2.compileRe(parsed, options, returnOutput, returnState);
229782
+ };
229783
+ picomatch2.toRegex = (source, options) => {
229784
+ try {
229785
+ const opts = options || {};
229786
+ return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
229787
+ } catch (err2) {
229788
+ if (options && options.debug === true) throw err2;
229789
+ return /$^/;
229790
+ }
229791
+ };
229792
+ picomatch2.constants = constants2;
229793
+ picomatch_1$1 = picomatch2;
229794
+ return picomatch_1$1;
229795
+ }
229796
+ function requirePicomatch() {
229797
+ if (hasRequiredPicomatch) return picomatch_1;
229798
+ hasRequiredPicomatch = 1;
229799
+ const pico = /* @__PURE__ */ requirePicomatch$1();
229800
+ const utils2 = /* @__PURE__ */ requireUtils();
229801
+ function picomatch2(glob, options, returnState = false) {
229802
+ if (options && (options.windows === null || options.windows === void 0)) {
229803
+ options = { ...options, windows: utils2.isWindows() };
229804
+ }
229805
+ return pico(glob, options, returnState);
229806
+ }
229807
+ Object.assign(picomatch2, pico);
229808
+ picomatch_1 = picomatch2;
229809
+ return picomatch_1;
229810
+ }
228268
229811
  function renderCallArguments(code, options, node) {
228269
229812
  if (node.arguments.length > 0) {
228270
229813
  if (node.arguments[node.arguments.length - 1].included) {
@@ -228327,6 +229870,9 @@ function includeLoopBody(context, body, includeChildrenRecursively) {
228327
229870
  function isReassignedExportsMember(variable, exportNamesByVariable) {
228328
229871
  return variable.renderBaseName !== null && exportNamesByVariable.has(variable) && variable.isReassigned;
228329
229872
  }
229873
+ function getChunkInfoWithPath(chunk) {
229874
+ return { fileName: chunk.getFileName(), ...chunk.getPreRenderedChunkInfo() };
229875
+ }
228330
229876
  function getInteropHelper(resolution, exportMode, interop) {
228331
229877
  return exportMode === "external" ? namespaceInteropHelpersByInteropType[interop(resolution instanceof ExternalModule ? resolution.id : null)] : exportMode === "default" ? INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE : null;
228332
229878
  }
@@ -228540,14 +230086,18 @@ function getOriginalLocation(sourcemapChain, location) {
228540
230086
  if (line) {
228541
230087
  const filteredLine = line.filter((segment) => segment.length > 1);
228542
230088
  const lastSegment = filteredLine[filteredLine.length - 1];
228543
- for (const segment of filteredLine) {
230089
+ let previousSegment = filteredLine[0];
230090
+ for (let segment of filteredLine) {
228544
230091
  if (segment[0] >= location.column || segment === lastSegment) {
230092
+ const notMatched = segment[0] !== location.column;
230093
+ segment = notMatched ? previousSegment : segment;
228545
230094
  location = {
228546
230095
  column: segment[3],
228547
230096
  line: segment[2] + 1
228548
230097
  };
228549
230098
  continue traceSourcemap;
228550
230099
  }
230100
+ previousSegment = segment;
228551
230101
  }
228552
230102
  }
228553
230103
  throw new Error("Can't resolve original location of error.");
@@ -229022,11 +230572,12 @@ function* concatLazy(iterables) {
229022
230572
  }
229023
230573
  function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log) {
229024
230574
  const { chunkDefinitions, modulesInManualChunks } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry);
229025
- const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry } = analyzeModuleGraph(entries);
230575
+ const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry } = analyzeModuleGraph(entries);
229026
230576
  const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
229027
230577
  const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(allEntries, chunkAtoms);
229028
230578
  const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
229029
- removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry);
230579
+ const awaitedAlreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry, allEntries);
230580
+ removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry);
229030
230581
  const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
229031
230582
  chunkDefinitions.push(...getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log).map(({ modules }) => ({
229032
230583
  alias: null,
@@ -229062,19 +230613,23 @@ function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesIn
229062
230613
  }
229063
230614
  function analyzeModuleGraph(entries) {
229064
230615
  const dynamicEntryModules = /* @__PURE__ */ new Set();
230616
+ const awaitedDynamicEntryModules = /* @__PURE__ */ new Set();
229065
230617
  const dependentEntriesByModule = /* @__PURE__ */ new Map();
229066
230618
  const allEntriesSet = new Set(entries);
229067
230619
  const dynamicImportModulesByEntry = new Array(allEntriesSet.size);
230620
+ const awaitedDynamicImportModulesByEntry = new Array(allEntriesSet.size);
229068
230621
  let entryIndex = 0;
229069
230622
  for (const currentEntry of allEntriesSet) {
229070
230623
  const dynamicImportsForCurrentEntry = /* @__PURE__ */ new Set();
230624
+ const awaitedDynamicImportsForCurrentEntry = /* @__PURE__ */ new Set();
229071
230625
  dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
229072
- const modulesToHandle = /* @__PURE__ */ new Set([currentEntry]);
229073
- for (const module2 of modulesToHandle) {
230626
+ awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
230627
+ const staticDependencies = /* @__PURE__ */ new Set([currentEntry]);
230628
+ for (const module2 of staticDependencies) {
229074
230629
  getOrCreate(dependentEntriesByModule, module2, getNewSet).add(entryIndex);
229075
230630
  for (const dependency of module2.getDependenciesToBeIncluded()) {
229076
230631
  if (!(dependency instanceof ExternalModule)) {
229077
- modulesToHandle.add(dependency);
230632
+ staticDependencies.add(dependency);
229078
230633
  }
229079
230634
  }
229080
230635
  for (const { resolution } of module2.dynamicImports) {
@@ -229082,6 +230637,13 @@ function analyzeModuleGraph(entries) {
229082
230637
  dynamicEntryModules.add(resolution);
229083
230638
  allEntriesSet.add(resolution);
229084
230639
  dynamicImportsForCurrentEntry.add(resolution);
230640
+ for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
230641
+ if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
230642
+ awaitedDynamicEntryModules.add(resolution);
230643
+ awaitedDynamicImportsForCurrentEntry.add(resolution);
230644
+ break;
230645
+ }
230646
+ }
229085
230647
  }
229086
230648
  }
229087
230649
  for (const dependency of module2.implicitlyLoadedBefore) {
@@ -229094,23 +230656,39 @@ function analyzeModuleGraph(entries) {
229094
230656
  entryIndex++;
229095
230657
  }
229096
230658
  const allEntries = [...allEntriesSet];
229097
- const { dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry);
230659
+ const { awaitedDynamicEntries, awaitedDynamicImportsByEntry, dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry);
229098
230660
  return {
229099
230661
  allEntries,
230662
+ awaitedDynamicImportsByEntry,
229100
230663
  dependentEntriesByModule,
229101
- dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries),
230664
+ dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntries, (dynamicEntry) => dynamicEntry.includedDirectTopLevelAwaitingDynamicImporters),
230665
+ dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries, (dynamicEntry) => dynamicEntry.includedDynamicImporters),
229102
230666
  dynamicImportsByEntry
229103
230667
  };
229104
230668
  }
229105
- function getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry) {
230669
+ function getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry) {
229106
230670
  const entryIndexByModule = /* @__PURE__ */ new Map();
229107
230671
  const dynamicEntries = /* @__PURE__ */ new Set();
230672
+ const awaitedDynamicEntries = /* @__PURE__ */ new Set();
229108
230673
  for (const [entryIndex, entry] of allEntries.entries()) {
229109
230674
  entryIndexByModule.set(entry, entryIndex);
229110
230675
  if (dynamicEntryModules.has(entry)) {
229111
230676
  dynamicEntries.add(entryIndex);
229112
230677
  }
230678
+ if (awaitedDynamicEntryModules.has(entry)) {
230679
+ awaitedDynamicEntries.add(entryIndex);
230680
+ }
229113
230681
  }
230682
+ const dynamicImportsByEntry = getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModule);
230683
+ const awaitedDynamicImportsByEntry = getDynamicImportsByEntry(awaitedDynamicImportModulesByEntry, entryIndexByModule);
230684
+ return {
230685
+ awaitedDynamicEntries,
230686
+ awaitedDynamicImportsByEntry,
230687
+ dynamicEntries,
230688
+ dynamicImportsByEntry
230689
+ };
230690
+ }
230691
+ function getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModule) {
229114
230692
  const dynamicImportsByEntry = new Array(dynamicImportModulesByEntry.length);
229115
230693
  let index2 = 0;
229116
230694
  for (const dynamicImportModules of dynamicImportModulesByEntry) {
@@ -229120,15 +230698,15 @@ function getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModules
229120
230698
  }
229121
230699
  dynamicImportsByEntry[index2++] = dynamicImports;
229122
230700
  }
229123
- return { dynamicEntries, dynamicImportsByEntry };
230701
+ return dynamicImportsByEntry;
229124
230702
  }
229125
- function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries) {
230703
+ function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries, getDynamicImporters) {
229126
230704
  const dynamicallyDependentEntriesByDynamicEntry = /* @__PURE__ */ new Map();
229127
230705
  for (const dynamicEntryIndex of dynamicEntries) {
229128
230706
  const dynamicallyDependentEntries = getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicEntryIndex, getNewSet);
229129
230707
  const dynamicEntry = allEntries[dynamicEntryIndex];
229130
230708
  for (const importer of concatLazy([
229131
- dynamicEntry.includedDynamicImporters,
230709
+ getDynamicImporters(dynamicEntry),
229132
230710
  dynamicEntry.implicitlyLoadedAfter
229133
230711
  ])) {
229134
230712
  for (const entry of dependentEntriesByModule.get(importer)) {
@@ -229189,11 +230767,11 @@ function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyD
229189
230767
  }
229190
230768
  return alreadyLoadedAtomsByEntry;
229191
230769
  }
229192
- function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry) {
230770
+ function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry) {
229193
230771
  let chunkMask = 1n;
229194
230772
  for (const { dependentEntries } of chunkAtoms) {
229195
230773
  for (const entryIndex of dependentEntries) {
229196
- if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask) {
230774
+ if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask && (awaitedAlreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === 0n) {
229197
230775
  dependentEntries.delete(entryIndex);
229198
230776
  }
229199
230777
  }
@@ -229439,24 +231017,31 @@ function analyseModuleExecution(entryModules) {
229439
231017
  const dynamicImports = /* @__PURE__ */ new Set();
229440
231018
  const parents = /* @__PURE__ */ new Map();
229441
231019
  const orderedModules = [];
231020
+ const handleSyncLoadedModule = (module2, parent) => {
231021
+ if (parents.has(module2)) {
231022
+ if (!analysedModules.has(module2)) {
231023
+ cyclePaths.push(getCyclePath(module2, parent, parents));
231024
+ }
231025
+ return;
231026
+ }
231027
+ parents.set(module2, parent);
231028
+ analyseModule(module2);
231029
+ };
229442
231030
  const analyseModule = (module2) => {
229443
231031
  if (module2 instanceof Module) {
229444
231032
  for (const dependency of module2.dependencies) {
229445
- if (parents.has(dependency)) {
229446
- if (!analysedModules.has(dependency)) {
229447
- cyclePaths.push(getCyclePath(dependency, module2, parents));
229448
- }
229449
- continue;
229450
- }
229451
- parents.set(dependency, module2);
229452
- analyseModule(dependency);
231033
+ handleSyncLoadedModule(dependency, module2);
229453
231034
  }
229454
231035
  for (const dependency of module2.implicitlyLoadedBefore) {
229455
231036
  dynamicImports.add(dependency);
229456
231037
  }
229457
- for (const { resolution } of module2.dynamicImports) {
231038
+ for (const { resolution, node } of module2.dynamicImports) {
229458
231039
  if (resolution instanceof Module) {
229459
- dynamicImports.add(resolution);
231040
+ if (node.withinTopLevelAwait) {
231041
+ handleSyncLoadedModule(resolution, module2);
231042
+ } else {
231043
+ dynamicImports.add(resolution);
231044
+ }
229460
231045
  }
229461
231046
  }
229462
231047
  orderedModules.push(module2);
@@ -229918,13 +231503,18 @@ function resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolve
229918
231503
  ...pluginContext,
229919
231504
  resolve: (source2, importer2, { attributes: attributes2, custom, isEntry: isEntry2, skipSelf } = BLANK) => {
229920
231505
  skipSelf != null ? skipSelf : skipSelf = true;
231506
+ if (skipSelf && skip.findIndex((skippedCall) => {
231507
+ return skippedCall.plugin === plugin2 && skippedCall.source === source2 && skippedCall.importer === importer2;
231508
+ }) !== -1) {
231509
+ return Promise.resolve(null);
231510
+ }
229921
231511
  return moduleLoaderResolveId(source2, importer2, custom, isEntry2, attributes2 || EMPTY_OBJECT, skipSelf ? [...skip, { importer: importer2, plugin: plugin2, source: source2 }] : skip);
229922
231512
  }
229923
231513
  });
229924
231514
  }
229925
231515
  return pluginDriver.hookFirstAndGetPlugin("resolveId", [source, importer, { attributes, custom: customOptions, isEntry }], replaceContext, skipped);
229926
231516
  }
229927
- async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes) {
231517
+ async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes, fs3) {
229928
231518
  const pluginResult = await resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes);
229929
231519
  if (pluginResult != null) {
229930
231520
  const [resolveIdResult, plugin2] = pluginResult;
@@ -229944,20 +231534,20 @@ async function resolveId(source, importer, preserveSymlinks, pluginDriver, modul
229944
231534
  }
229945
231535
  if (importer !== void 0 && !isAbsolute3(source) && source[0] !== ".")
229946
231536
  return null;
229947
- return addJsExtensionIfNecessary(importer ? (0, import_node_path2.resolve)((0, import_node_path2.dirname)(importer), source) : (0, import_node_path2.resolve)(source), preserveSymlinks);
231537
+ return addJsExtensionIfNecessary(importer ? (0, import_node_path2.resolve)((0, import_node_path2.dirname)(importer), source) : (0, import_node_path2.resolve)(source), preserveSymlinks, fs3);
229948
231538
  }
229949
- async function addJsExtensionIfNecessary(file, preserveSymlinks) {
231539
+ async function addJsExtensionIfNecessary(file, preserveSymlinks, fs3) {
229950
231540
  var _a2, _b;
229951
- return (_b = (_a2 = await findFile(file, preserveSymlinks)) != null ? _a2 : await findFile(file + ".mjs", preserveSymlinks)) != null ? _b : await findFile(file + ".js", preserveSymlinks);
231541
+ return (_b = (_a2 = await findFile(file, preserveSymlinks, fs3)) != null ? _a2 : await findFile(file + ".mjs", preserveSymlinks, fs3)) != null ? _b : await findFile(file + ".js", preserveSymlinks, fs3);
229952
231542
  }
229953
- async function findFile(file, preserveSymlinks) {
231543
+ async function findFile(file, preserveSymlinks, fs3) {
229954
231544
  try {
229955
- const stats = await (0, import_promises.lstat)(file);
231545
+ const stats = await fs3.lstat(file);
229956
231546
  if (!preserveSymlinks && stats.isSymbolicLink())
229957
- return await findFile(await (0, import_promises.realpath)(file), preserveSymlinks);
231547
+ return await findFile(await fs3.realpath(file), preserveSymlinks, fs3);
229958
231548
  if (preserveSymlinks && stats.isSymbolicLink() || stats.isFile()) {
229959
231549
  const name = (0, import_node_path2.basename)(file);
229960
- const files = await (0, import_promises.readdir)((0, import_node_path2.dirname)(file));
231550
+ const files = await fs3.readdir((0, import_node_path2.dirname)(file));
229961
231551
  if (files.includes(name))
229962
231552
  return file;
229963
231553
  }
@@ -230200,7 +231790,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
230200
231790
  }) : outputOptions.assetFileNames, "output.assetFileNames", {
230201
231791
  ext: () => (0, import_node_path2.extname)(emittedName).slice(1),
230202
231792
  extname: () => (0, import_node_path2.extname)(emittedName),
230203
- hash: (size) => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
231793
+ hash: (size) => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
230204
231794
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - (0, import_node_path2.extname)(emittedName).length))
230205
231795
  }), bundle);
230206
231796
  }
@@ -230301,6 +231891,7 @@ function getPluginContext(plugin2, pluginCache, graph, options, fileEmitter, exi
230301
231891
  error(error_) {
230302
231892
  return error(logPluginError(normalizeLog(error_), plugin2.name));
230303
231893
  },
231894
+ fs: options.fs,
230304
231895
  getFileName: fileEmitter.getFileName,
230305
231896
  getModuleIds: () => graph.modulesById.keys(),
230306
231897
  getModuleInfo: graph.getModuleInfo,
@@ -230322,6 +231913,118 @@ function getPluginContext(plugin2, pluginCache, graph, options, fileEmitter, exi
230322
231913
  warn: getLogHandler(LOGLEVEL_WARN, "PLUGIN_WARNING", onLog, plugin2.name, logLevel)
230323
231914
  };
230324
231915
  }
231916
+ function ensureArray2(items) {
231917
+ if (Array.isArray(items)) {
231918
+ return items.filter(Boolean);
231919
+ }
231920
+ if (items) {
231921
+ return [items];
231922
+ }
231923
+ return [];
231924
+ }
231925
+ function getMatcherString2(glob, cwd) {
231926
+ if (glob.startsWith("**") || isAbsolute3(glob)) {
231927
+ return normalize3(glob);
231928
+ }
231929
+ const resolved = (0, import_node_path2.resolve)(cwd, glob);
231930
+ return normalize3(resolved);
231931
+ }
231932
+ function patternToIdFilter(pattern) {
231933
+ if (pattern instanceof RegExp) {
231934
+ return (id) => {
231935
+ const normalizedId = normalize3(id);
231936
+ const result2 = pattern.test(normalizedId);
231937
+ pattern.lastIndex = 0;
231938
+ return result2;
231939
+ };
231940
+ }
231941
+ const cwd = process.cwd();
231942
+ const glob = getMatcherString2(pattern, cwd);
231943
+ const matcher = picomatch(glob, { dot: true });
231944
+ return (id) => {
231945
+ const normalizedId = normalize3(id);
231946
+ return matcher(normalizedId);
231947
+ };
231948
+ }
231949
+ function patternToCodeFilter(pattern) {
231950
+ if (pattern instanceof RegExp) {
231951
+ return (code) => {
231952
+ const result2 = pattern.test(code);
231953
+ pattern.lastIndex = 0;
231954
+ return result2;
231955
+ };
231956
+ }
231957
+ return (code) => code.includes(pattern);
231958
+ }
231959
+ function createFilter3(exclude, include) {
231960
+ if (!exclude && !include) {
231961
+ return;
231962
+ }
231963
+ return (input) => {
231964
+ if (exclude == null ? void 0 : exclude.some((filter2) => filter2(input))) {
231965
+ return false;
231966
+ }
231967
+ if (include == null ? void 0 : include.some((filter2) => filter2(input))) {
231968
+ return true;
231969
+ }
231970
+ return !(include && include.length > 0);
231971
+ };
231972
+ }
231973
+ function normalizeFilter(filter2) {
231974
+ if (typeof filter2 === "string" || filter2 instanceof RegExp) {
231975
+ return {
231976
+ include: [filter2]
231977
+ };
231978
+ }
231979
+ if (Array.isArray(filter2)) {
231980
+ return {
231981
+ include: filter2
231982
+ };
231983
+ }
231984
+ return {
231985
+ exclude: filter2.exclude ? ensureArray2(filter2.exclude) : void 0,
231986
+ include: filter2.include ? ensureArray2(filter2.include) : void 0
231987
+ };
231988
+ }
231989
+ function createIdFilter(filter2) {
231990
+ if (!filter2)
231991
+ return;
231992
+ const { exclude, include } = normalizeFilter(filter2);
231993
+ const excludeFilter = exclude == null ? void 0 : exclude.map(patternToIdFilter);
231994
+ const includeFilter = include == null ? void 0 : include.map(patternToIdFilter);
231995
+ return createFilter3(excludeFilter, includeFilter);
231996
+ }
231997
+ function createCodeFilter(filter2) {
231998
+ if (!filter2)
231999
+ return;
232000
+ const { exclude, include } = normalizeFilter(filter2);
232001
+ const excludeFilter = exclude == null ? void 0 : exclude.map(patternToCodeFilter);
232002
+ const includeFilter = include == null ? void 0 : include.map(patternToCodeFilter);
232003
+ return createFilter3(excludeFilter, includeFilter);
232004
+ }
232005
+ function createFilterForId(filter2) {
232006
+ const filterFunction = createIdFilter(filter2);
232007
+ return filterFunction ? (id) => !!filterFunction(id) : void 0;
232008
+ }
232009
+ function createFilterForTransform(idFilter, codeFilter) {
232010
+ if (!idFilter && !codeFilter)
232011
+ return;
232012
+ const idFilterFunction = createIdFilter(idFilter);
232013
+ const codeFilterFunction = createCodeFilter(codeFilter);
232014
+ return (id, code) => {
232015
+ let fallback = true;
232016
+ if (idFilterFunction) {
232017
+ fallback && (fallback = idFilterFunction(id));
232018
+ }
232019
+ if (!fallback) {
232020
+ return false;
232021
+ }
232022
+ if (codeFilterFunction) {
232023
+ fallback && (fallback = codeFilterFunction(code));
232024
+ }
232025
+ return fallback;
232026
+ };
232027
+ }
230325
232028
  function getSortedValidatedPlugins(hookName, plugins, validateHandler = validateFunctionPluginHandler) {
230326
232029
  const pre = [];
230327
232030
  const normal = [];
@@ -230459,17 +232162,8 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
230459
232162
  };
230460
232163
  return logger;
230461
232164
  }
230462
- function ensureArray2(items) {
230463
- if (Array.isArray(items)) {
230464
- return items.filter(Boolean);
230465
- }
230466
- if (items) {
230467
- return [items];
230468
- }
230469
- return [];
230470
- }
230471
232165
  async function normalizeInputOptions(config, watchMode) {
230472
- var _a2, _b, _c, _d;
232166
+ var _a2, _b, _c, _d, _e;
230473
232167
  const unsetOptions = /* @__PURE__ */ new Set();
230474
232168
  const context = (_a2 = config.context) != null ? _a2 : "undefined";
230475
232169
  const plugins = await normalizePluginOption(config.plugins);
@@ -230483,16 +232177,17 @@ async function normalizeInputOptions(config, watchMode) {
230483
232177
  experimentalCacheExpiry: (_b = config.experimentalCacheExpiry) != null ? _b : 10,
230484
232178
  experimentalLogSideEffects: config.experimentalLogSideEffects || false,
230485
232179
  external: getIdMatcher(config.external),
232180
+ fs: (_c = config.fs) != null ? _c : fs2,
230486
232181
  input: getInput(config),
230487
232182
  jsx: getJsx(config),
230488
232183
  logLevel,
230489
- makeAbsoluteExternalsRelative: (_c = config.makeAbsoluteExternalsRelative) != null ? _c : "ifRelativeSource",
232184
+ makeAbsoluteExternalsRelative: (_d = config.makeAbsoluteExternalsRelative) != null ? _d : "ifRelativeSource",
230490
232185
  maxParallelFileOps,
230491
232186
  moduleContext: getModuleContext(config, context),
230492
232187
  onLog,
230493
232188
  perf: config.perf || false,
230494
232189
  plugins,
230495
- preserveEntrySignatures: (_d = config.preserveEntrySignatures) != null ? _d : "exports-only",
232190
+ preserveEntrySignatures: (_e = config.preserveEntrySignatures) != null ? _e : "exports-only",
230496
232191
  preserveSymlinks: config.preserveSymlinks || false,
230497
232192
  shimMissingExports: config.shimMissingExports || false,
230498
232193
  strictDeprecations,
@@ -230606,11 +232301,28 @@ async function rollupInternal(rawInputOptions, watcher) {
230606
232301
  if (watchFiles2.length > 0) {
230607
232302
  error_.watchFiles = watchFiles2;
230608
232303
  }
230609
- await graph.pluginDriver.hookParallel("buildEnd", [error_]);
230610
- await graph.pluginDriver.hookParallel("closeBundle", []);
232304
+ try {
232305
+ await graph.pluginDriver.hookParallel("buildEnd", [error_]);
232306
+ } catch (buildEndError) {
232307
+ const compoundError = getRollupError({
232308
+ ...error_,
232309
+ message: `There was an error during the build:
232310
+ ${error_.message}
232311
+ Additionally, handling the error in the 'buildEnd' hook caused the following error:
232312
+ ${buildEndError.message}`
232313
+ });
232314
+ await graph.pluginDriver.hookParallel("closeBundle", [compoundError]);
232315
+ throw compoundError;
232316
+ }
232317
+ await graph.pluginDriver.hookParallel("closeBundle", [error_]);
230611
232318
  throw error_;
230612
232319
  }
230613
- await graph.pluginDriver.hookParallel("buildEnd", []);
232320
+ try {
232321
+ await graph.pluginDriver.hookParallel("buildEnd", []);
232322
+ } catch (buildEndError) {
232323
+ await graph.pluginDriver.hookParallel("closeBundle", [buildEndError]);
232324
+ throw buildEndError;
232325
+ }
230614
232326
  });
230615
232327
  timeEnd("BUILD", 1);
230616
232328
  const result2 = {
@@ -230689,7 +232401,7 @@ async function handleGenerateWrite(isWrite, inputOptions, unsetInputOptions, raw
230689
232401
  if (!outputOptions.dir && !outputOptions.file) {
230690
232402
  return error(logMissingFileOrDirOption());
230691
232403
  }
230692
- await Promise.all(Object.values(generated).map((chunk) => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions))));
232404
+ await Promise.all(Object.values(generated).map((chunk) => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions, inputOptions))));
230693
232405
  await outputPluginDriver.hookParallel("writeBundle", [outputOptions, generated]);
230694
232406
  timeEnd("WRITE", 1);
230695
232407
  }
@@ -230732,10 +232444,10 @@ function getSortingFileType(file) {
230732
232444
  }
230733
232445
  return SortingFileType.SECONDARY_CHUNK;
230734
232446
  }
230735
- async function writeOutputFile(outputFile, outputOptions) {
232447
+ async function writeOutputFile(outputFile, outputOptions, { fs: { mkdir, writeFile } }) {
230736
232448
  const fileName = (0, import_node_path2.resolve)(outputOptions.dir || (0, import_node_path2.dirname)(outputOptions.file), outputFile.fileName);
230737
- await (0, import_promises.mkdir)((0, import_node_path2.dirname)(fileName), { recursive: true });
230738
- return (0, import_promises.writeFile)(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
232449
+ await mkdir((0, import_node_path2.dirname)(fileName), { recursive: true });
232450
+ return writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
230739
232451
  }
230740
232452
  function requirePicocolors() {
230741
232453
  if (hasRequiredPicocolors) return picocolors.exports;
@@ -230806,7 +232518,7 @@ function requirePicocolors() {
230806
232518
  picocolors.exports.createColors = createColors;
230807
232519
  return picocolors.exports;
230808
232520
  }
230809
- var import_node_path2, import_path12, import_native2, import_node_process, import_node_perf_hooks, import_promises, version4, comma2, semicolon2, chars$1, intToChar2, charToInt2, bufLength2, td2, StringWriter2, StringReader2, BitSet2, Chunk$1, btoa3, SourceMap2, toString2, wordRegex2, Mappings2, n2, warned2, MagicString2, hasOwnProp, Bundle$1, NO_SEMICOLON, NON_WHITESPACE, WHITESPACE, UnknownKey, UnknownNonAccessorKey, UnknownInteger, SymbolToStringTag, EMPTY_PATH, UNKNOWN_PATH, UNKNOWN_NON_ACCESSOR_PATH, UNKNOWN_INTEGER_PATH, EntitiesKey, EntityPathTracker, SHARED_RECURSION_TRACKER, DiscriminatedPathTracker, UNKNOWN_INCLUDED_PATH, IncludedFullPathTracker, UNKNOWN_INCLUDED_TOP_LEVEL_PATH, IncludedTopLevelPathTracker, UnknownValue, UnknownTruthyValue, UnknownFalsyValue, ExpressionEntity, UNKNOWN_EXPRESSION, UNKNOWN_RETURN_EXPRESSION, deoptimizeInteraction, includeInteraction, INTERACTION_ACCESSED, INTERACTION_ASSIGNED, INTERACTION_CALLED, NODE_INTERACTION_UNKNOWN_ACCESS, NODE_INTERACTION_UNKNOWN_ASSIGNMENT, NODE_INTERACTION_UNKNOWN_CALL, PureFunctionKey, getPureFunctions, Variable, ExternalVariable, RESERVED_NAMES, illegalCharacters, startsWithDigit, needsEscape, VALID_IDENTIFIER_REGEXP, NUMBER_REGEXP, ExternalModule, doNothing, childNodeKeys, INCLUDE_PARAMETERS, IS_SKIPPED_CHAIN, NodeBase, UNDEFINED_EXPRESSION, returnsUnknown, UNKNOWN_LITERAL_BOOLEAN, returnsBoolean, UNKNOWN_LITERAL_NUMBER, returnsNumber, UNKNOWN_LITERAL_STRING, returnsString, stringReplace, objectMembers, literalBooleanMembers, literalNumberMembers, literalRegExpMembers, literalStringMembers, Method, METHOD_RETURNS_BOOLEAN, METHOD_RETURNS_STRING, METHOD_RETURNS_NUMBER, METHOD_RETURNS_UNKNOWN, INTEGER_REG_EXP, ObjectEntity, isInteger, OBJECT_PROTOTYPE_FALLBACK, OBJECT_PROTOTYPE, NEW_ARRAY_PROPERTIES, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY, METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_UNKNOWN, METHOD_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_MUTATES_SELF_RETURNS_SELF, METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF, ARRAY_PROTOTYPE, SpreadElement, ArrayExpression, ValueProperties, getUnknownValue, returnFalse, returnTrue, PURE, IMPURE, PURE_WITH_ARRAY, GETTER_ACCESS, O, PF, PF_NO_GETTER, MUTATES_ARG_WITHOUT_ACCESSOR, C, PC, PC_WITH_ARRAY, ARRAY_TYPE, INTL_MEMBER, knownGlobals, GlobalVariable, MAX_PATH_DEPTH, limitConcatenatedPathDepth, LocalVariable, tdzVariableKinds, IdentifierBase, ObjectMember, Identifier2, chars2, base, Scope2, ChildScope, MethodBase, MethodDefinition, BlockScope, StaticBlock2, ClassNode, ClassDeclaration, ArgumentsVariable, MAX_TRACKED_INTERACTIONS, NO_INTERACTIONS, UNKNOWN_DEOPTIMIZED_FIELD, EMPTY_PATH_TRACKER, UNKNOWN_DEOPTIMIZED_ENTITY, ParameterVariable, ThisVariable, CatchBodyScope, FunctionBodyScope, ParameterScope, ReturnValueScope, FunctionScope, ExpressionStatement2, BlockStatement2, RestElement2, getIncludedPatternPath$1, FunctionBase, FunctionNode, FunctionDeclaration, ExportDefaultDeclaration2, needsEscapeRegEx, quoteNewlineRegEx, backSlashRegEx, INTEROP_DEFAULT_VARIABLE, INTEROP_DEFAULT_COMPAT_VARIABLE, INTEROP_NAMESPACE_VARIABLE, INTEROP_NAMESPACE_COMPAT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE, MERGE_NAMESPACES_VARIABLE, DOCUMENT_CURRENT_SCRIPT, defaultInteropHelpersByInteropType, isDefaultAProperty, namespaceInteropHelpersByInteropType, canDefaultBeTakenFromNamespace, getHelpersBlock, HELPER_GENERATORS, getDefaultLiveBinding, getDefaultStatic, getIsCompatNamespace, createNamespaceObject, loopOverKeys, loopOverNamespaces, copyNonDefaultOwnPropertyLiveBinding, copyOwnPropertyLiveBinding, copyPropertyLiveBinding, copyPropertyStatic, getFrozen, getWithToStringTag, HELPER_NAMES, Literal2, MemberExpression, FILE_PREFIX, IMPORT, MetaProperty, formatsMaybeAccessDocumentCurrentScript, accessedMetaUrlGlobals, accessedFileUrlGlobals, getResolveUrl, getRelativeUrlFromDocument, getGenericImportMetaMechanism, getFileUrlFromFullPath, getFileUrlFromRelativePath, getUrlFromDocument, relativeUrlMechanisms, importMetaMechanisms, UndefinedVariable, ExportDefaultVariable, NamespaceVariable, SyntheticNamedExportVariable, ExternalChunk, getDefineProperty, builtinModules2, nodeBuiltins, keypath, MISSING_EXPORT_SHIM_VARIABLE, getStarExcludes, getStarExcludesBlock, getImportBindingsBlock, getHoistedExportsBlock, getSyntheticExportsBlock, getMissingExportsBlock, finalisers, extractors2, extractAssignedNames3, normalizePathRegExp2, reservedWords2, builtins2, forbiddenIdentifiers2, ArrayPattern, getIncludedPatternPath, ArrowFunctionExpression2, ObjectPattern, AssignmentExpression, AssignmentPattern, AwaitExpression, THEN_PATH, binaryOperators, BinaryExpression, BreakStatement, CallExpressionBase, CallExpression2, CatchClause2, ChainExpression, ClassBodyScope, ClassBody, ClassExpression, MultiExpression, ConditionalExpression, ContinueStatement, DebuggerStatement, Decorator, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportNamedDeclaration, ExportSpecifier, ForInStatement, ForOfStatement, ForStatement, FunctionExpression, TrackingScope, unset, IfStatement, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, VariableDeclarator2, ImportExpression, accessedImportGlobals, ImportNamespaceSpecifier, ImportSpecifier, JSXIdentifier, JSXAttribute, JSXClosingBase, JSXClosingElement, JSXClosingFragment, JSXSpreadAttribute, JSXEmptyExpression, JSXExpressionContainer, JSXElementBase, JSXElement, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, LabeledStatement, LogicalExpression, NewExpression, ObjectExpression2, PanicError2, ParseError2, PrivateIdentifier, Program2, Property2, PropertyDefinition, ReturnStatement2, SequenceExpression, Super, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateElement, TemplateLiteral2, ModuleScope, ThisExpression, ThrowStatement, TryStatement, unaryOperators, UNASSIGNED, UnaryExpression, CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE, UpdateExpression, VariableDeclaration, WhileStatement, YieldExpression, nodeTypeStrings, nodeConstructors$1, bufferParsers, UnknownNode, nodeConstructors, ExportShimVariable, BuildPhase, sourceMapCache, ATTRIBUTE_KEYWORDS, getPropertyKey, timers, timeStart, timeEnd, TIMED_PLUGIN_HOOKS, MISSING_EXPORT_SHIM_DESCRIPTION, Module, copyNameToModulesMap, concatSeparator, concatDblSeparator, DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT, hashPlaceholderLeft, hashPlaceholderRight, hashPlaceholderOverhead, MAX_HASH_SIZE, DEFAULT_HASH_SIZE, getHashPlaceholderGenerator, REPLACER_REGEX, replacePlaceholders, replaceSinglePlaceholder, replacePlaceholdersWithDefaultAndGetContainedPlaceholders, lowercaseBundleKeys, FILE_PLACEHOLDER, getOutputBundle, removeUnreferencedAssets, NON_ASSET_EXTENSIONS, Chunk3, QUERY_HASH_REGEX, resolveFileName, compareExecIndex, wrapIfNeeded, Source, Link, textEncoder, getHash64, getHash36, getHash16, hasherByType, SOURCEMAPPING_URL, Bundle2, GlobalScope, ANONYMOUS_PLUGIN_PREFIX, ANONYMOUS_OUTPUT_PLUGIN_PREFIX, NO_CACHE, getOnLog, getDefaultOnLog, addLogToString, normalizeLog, defaultPrintLog, treeshakePresets, jsxPresets, generatedCodePresets, objectifyOption, objectifyOptionWithPresets, getOptionWithPreset, normalizePluginOption, RESOLVE_DEPENDENCIES, ModuleLoader, emittedFileTypes, FileEmitter, inputHookNames, inputHooks, PluginDriver, Queue2, Graph, handleBeforeExit, rejectByPluginDriver, getCache, getIdMatcher, getInput, getJsx, getMaxParallelFileOps, getModuleContext, getTreeshake, getHasModuleSideEffects, INVALID_CHAR_REGEX, DRIVE_LETTER_REGEX, getFile, getFormat, getInlineDynamicImports, getPreserveModules, getPreserveModulesRoot, getAmd, getAddon, getDir, getEntryFileNames, getExternalImportAttributes, getGeneratedCode, getIndent, ALLOWED_INTEROP_TYPES, getInterop, validateInterop, getManualChunks, getMinifyInternalExports, getSourcemapFileNames, getSourcemapBaseUrl, _a, SortingFileType, picocolors, hasRequiredPicocolors, picocolorsExports, pc, bold, cyan, dim, red;
232521
+ var import_node_path2, import_path12, import_native2, import_node_process, import_node_perf_hooks, promises, version4, comma2, semicolon2, chars$1, intToChar2, charToInt2, bufLength2, td2, StringWriter2, StringReader2, BitSet2, Chunk$1, btoa3, SourceMap2, toString2, wordRegex2, Mappings2, n2, warned2, MagicString2, hasOwnProp, Bundle$1, NO_SEMICOLON, NON_WHITESPACE, WHITESPACE, UnknownKey, UnknownNonAccessorKey, UnknownInteger, SymbolToStringTag, EMPTY_PATH, UNKNOWN_PATH, UNKNOWN_NON_ACCESSOR_PATH, UNKNOWN_INTEGER_PATH, EntitiesKey, EntityPathTracker, SHARED_RECURSION_TRACKER, DiscriminatedPathTracker, UNKNOWN_INCLUDED_PATH, IncludedFullPathTracker, UNKNOWN_INCLUDED_TOP_LEVEL_PATH, IncludedTopLevelPathTracker, UnknownValue, UnknownTruthyValue, UnknownFalsyValue, ExpressionEntity, UNKNOWN_EXPRESSION, UNKNOWN_RETURN_EXPRESSION, deoptimizeInteraction, includeInteraction, includeInteractionWithoutThis, INTERACTION_ACCESSED, INTERACTION_ASSIGNED, INTERACTION_CALLED, NODE_INTERACTION_UNKNOWN_ACCESS, NODE_INTERACTION_UNKNOWN_ASSIGNMENT, NODE_INTERACTION_UNKNOWN_CALL, PureFunctionKey, getPureFunctions, Variable, ExternalVariable, RESERVED_NAMES, illegalCharacters, startsWithDigit, needsEscape, VALID_IDENTIFIER_REGEXP, NUMBER_REGEXP, ExternalModule, doNothing, childNodeKeys, INCLUDE_PARAMETERS, IS_SKIPPED_CHAIN, NodeBase, UNDEFINED_EXPRESSION, returnsUnknown, UNKNOWN_LITERAL_BOOLEAN, returnsBoolean, UNKNOWN_LITERAL_NUMBER, returnsNumber, UNKNOWN_LITERAL_STRING, returnsString, stringReplace, objectMembers, literalBooleanMembers, literalNumberMembers, literalRegExpMembers, literalStringMembers, Method, METHOD_RETURNS_BOOLEAN, METHOD_RETURNS_STRING, METHOD_RETURNS_NUMBER, METHOD_RETURNS_UNKNOWN, INTEGER_REG_EXP, ObjectEntity, isInteger, OBJECT_PROTOTYPE_FALLBACK, OBJECT_PROTOTYPE, NEW_ARRAY_PROPERTIES, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY, METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_UNKNOWN, METHOD_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_MUTATES_SELF_RETURNS_SELF, METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF, ARRAY_PROTOTYPE, SpreadElement, ArrayExpression, ValueProperties, getUnknownValue, returnFalse, returnTrue, PURE, IMPURE, PURE_WITH_ARRAY, GETTER_ACCESS, O, PF, PF_NO_GETTER, MUTATES_ARG_WITHOUT_ACCESSOR, C, PC, PC_WITH_ARRAY, ARRAY_TYPE, INTL_MEMBER, knownGlobals, GlobalVariable, MAX_PATH_DEPTH, limitConcatenatedPathDepth, LocalVariable, tdzVariableKinds, IdentifierBase, ObjectMember, Identifier2, chars2, base, Scope2, ChildScope, MethodBase, MethodDefinition, BlockScope, StaticBlock2, ClassNode, ClassDeclaration, ArgumentsVariable, MAX_TRACKED_INTERACTIONS, NO_INTERACTIONS, UNKNOWN_DEOPTIMIZED_FIELD, EMPTY_PATH_TRACKER, UNKNOWN_DEOPTIMIZED_ENTITY, ParameterVariable, ThisVariable, CatchBodyScope, FunctionBodyScope, ParameterScope, ReturnValueScope, FunctionScope, ExpressionStatement2, BlockStatement2, RestElement2, getIncludedPatternPath$1, FunctionBase, FunctionNode, FunctionDeclaration, ExportDefaultDeclaration2, needsEscapeRegEx, quoteNewlineRegEx, backSlashRegEx, INTEROP_DEFAULT_VARIABLE, INTEROP_DEFAULT_COMPAT_VARIABLE, INTEROP_NAMESPACE_VARIABLE, INTEROP_NAMESPACE_COMPAT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE, MERGE_NAMESPACES_VARIABLE, DOCUMENT_CURRENT_SCRIPT, defaultInteropHelpersByInteropType, isDefaultAProperty, namespaceInteropHelpersByInteropType, canDefaultBeTakenFromNamespace, getHelpersBlock, HELPER_GENERATORS, getDefaultLiveBinding, getDefaultStatic, getIsCompatNamespace, createNamespaceObject, loopOverKeys, loopOverNamespaces, copyNonDefaultOwnPropertyLiveBinding, copyOwnPropertyLiveBinding, copyPropertyLiveBinding, copyPropertyStatic, getFrozen, getWithToStringTag, HELPER_NAMES, Literal2, MemberExpression2, FILE_PREFIX, IMPORT, MetaProperty, formatsMaybeAccessDocumentCurrentScript, accessedMetaUrlGlobals, accessedFileUrlGlobals, getResolveUrl, getRelativeUrlFromDocument, getGenericImportMetaMechanism, getFileUrlFromFullPath, getFileUrlFromRelativePath, getUrlFromDocument, relativeUrlMechanisms, importMetaMechanisms, UndefinedVariable, ExportDefaultVariable, NamespaceVariable, SyntheticNamedExportVariable, ExternalChunk, getDefineProperty, builtinModules2, nodeBuiltins, keypath, MISSING_EXPORT_SHIM_VARIABLE, getStarExcludes, getStarExcludesBlock, getImportBindingsBlock, getHoistedExportsBlock, getSyntheticExportsBlock, getMissingExportsBlock, finalisers, utils, constants, hasRequiredConstants, hasRequiredUtils, scan_1, hasRequiredScan, parse_1, hasRequiredParse, picomatch_1$1, hasRequiredPicomatch$1, picomatch_1, hasRequiredPicomatch, picomatchExports, picomatch, extractors2, extractAssignedNames3, normalizePathRegExp2, reservedWords2, builtins2, forbiddenIdentifiers2, ArrayPattern, getIncludedPatternPath, ArrowFunctionExpression2, ObjectPattern, AssignmentExpression, AssignmentPattern, AwaitExpression2, THEN_PATH, binaryOperators, BinaryExpression, BreakStatement, CallExpressionBase, CallExpression2, CatchClause2, ChainExpression, ClassBodyScope, ClassBody, ClassExpression, MultiExpression, ConditionalExpression, ContinueStatement, DebuggerStatement, Decorator, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportNamedDeclaration, ExportSpecifier, ForInStatement, ForOfStatement, ForStatement, FunctionExpression2, TrackingScope, unset, IfStatement, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, VariableDeclarator2, ImportExpression2, accessedImportGlobals, ImportNamespaceSpecifier, ImportSpecifier, JSXIdentifier, JSXAttribute, JSXClosingBase, JSXClosingElement, JSXClosingFragment, JSXSpreadAttribute, JSXEmptyExpression, JSXExpressionContainer, JSXElementBase, JSXElement, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, LabeledStatement, LogicalExpression, NewExpression, ObjectExpression2, PanicError2, ParseError2, PrivateIdentifier, Program2, Property2, PropertyDefinition, ReturnStatement2, SequenceExpression, Super, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateElement, TemplateLiteral2, ModuleScope, ThisExpression, ThrowStatement, TryStatement, unaryOperators, UNASSIGNED, UnaryExpression, CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE, UpdateExpression, VariableDeclaration, WhileStatement, YieldExpression, nodeTypeStrings, nodeConstructors$1, bufferParsers, UnknownNode, nodeConstructors, ExportShimVariable, BuildPhase, sourceMapCache, ATTRIBUTE_KEYWORDS, getPropertyKey, timers, timeStart, timeEnd, TIMED_PLUGIN_HOOKS, MISSING_EXPORT_SHIM_DESCRIPTION, Module, copyNameToModulesMap, concatSeparator, concatDblSeparator, DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT, hashPlaceholderLeft, hashPlaceholderRight, hashPlaceholderOverhead, MAX_HASH_SIZE, DEFAULT_HASH_SIZE, getHashPlaceholderGenerator, REPLACER_REGEX, replacePlaceholders, replaceSinglePlaceholder, replacePlaceholdersWithDefaultAndGetContainedPlaceholders, lowercaseBundleKeys, FILE_PLACEHOLDER, getOutputBundle, removeUnreferencedAssets, NON_ASSET_EXTENSIONS, Chunk3, QUERY_HASH_REGEX, resolveFileName, compareExecIndex, wrapIfNeeded, Source, Link, textEncoder, getHash64, getHash36, getHash16, hasherByType, SOURCEMAPPING_URL, Bundle2, GlobalScope, ANONYMOUS_PLUGIN_PREFIX, ANONYMOUS_OUTPUT_PLUGIN_PREFIX, NO_CACHE, getOnLog, getDefaultOnLog, addLogToString, normalizeLog, defaultPrintLog, treeshakePresets, jsxPresets, generatedCodePresets, objectifyOption, objectifyOptionWithPresets, getOptionWithPreset, normalizePluginOption, RESOLVE_DEPENDENCIES, ModuleLoader, emittedFileTypes, FileEmitter, inputHookNames, inputHooks, PluginDriver, Queue2, Graph, handleBeforeExit, rejectByPluginDriver, fs2, getCache, getIdMatcher, getInput, getJsx, getMaxParallelFileOps, getModuleContext, getTreeshake, getHasModuleSideEffects, INVALID_CHAR_REGEX, DRIVE_LETTER_REGEX, getFile, getFormat, getInlineDynamicImports, getPreserveModules, getPreserveModulesRoot, getAmd, getAddon, getDir, getEntryFileNames, getExternalImportAttributes, getGeneratedCode, getIndent, ALLOWED_INTEROP_TYPES, getInterop, validateInterop, getManualChunks, getMinifyInternalExports, getSourcemapFileNames, getSourcemapBaseUrl, _a, SortingFileType, picocolors, hasRequiredPicocolors, picocolorsExports, pc, bold, cyan, dim, red;
230810
232522
  var init_node_entry = __esm({
230811
232523
  "node_modules/rollup/dist/es/shared/node-entry.js"() {
230812
232524
  init_import_meta_url();
@@ -230816,17 +232528,17 @@ var init_node_entry = __esm({
230816
232528
  import_native2 = __toESM(require_native(), 1);
230817
232529
  import_node_process = __toESM(require("process"), 1);
230818
232530
  import_node_perf_hooks = require("perf_hooks");
230819
- import_promises = require("fs/promises");
232531
+ promises = __toESM(require("fs/promises"), 1);
230820
232532
  /*
230821
232533
  @license
230822
- Rollup.js v4.34.9
230823
- Sat, 01 Mar 2025 07:32:06 GMT - commit 0ab9b9772e24dfe9ef08bfce3132e99a15b793f6
232534
+ Rollup.js v4.44.0
232535
+ Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
230824
232536
 
230825
232537
  https://github.com/rollup/rollup
230826
232538
 
230827
232539
  Released under the MIT License.
230828
232540
  */
230829
- version4 = "4.34.9";
232541
+ version4 = "4.44.0";
230830
232542
  comma2 = ",".charCodeAt(0);
230831
232543
  semicolon2 = ";".charCodeAt(0);
230832
232544
  chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -232235,9 +233947,12 @@ var init_node_entry = __esm({
232235
233947
  argument == null ? void 0 : argument.deoptimizePath(UNKNOWN_PATH);
232236
233948
  }
232237
233949
  };
232238
- includeInteraction = ({ args }, context) => {
233950
+ includeInteraction = (interaction, context) => {
232239
233951
  var _a2;
232240
- (_a2 = args[0]) == null ? void 0 : _a2.includePath(UNKNOWN_PATH, context);
233952
+ (_a2 = interaction.args[0]) == null ? void 0 : _a2.includePath(UNKNOWN_PATH, context);
233953
+ includeInteractionWithoutThis(interaction, context);
233954
+ };
233955
+ includeInteractionWithoutThis = ({ args }, context) => {
232241
233956
  for (let argumentIndex = 1; argumentIndex < args.length; argumentIndex++) {
232242
233957
  const argument = args[argumentIndex];
232243
233958
  if (argument) {
@@ -234807,6 +236522,9 @@ var init_node_entry = __esm({
234807
236522
  break;
234808
236523
  node = node.parent;
234809
236524
  }
236525
+ if (this.kind === "parameter" && (isArrowFunctionExpressionNode(declaration.parent) || isFunctionExpressionNode(declaration.parent)) && isCallExpressionNode(declaration.parent.parent) && isMemberExpressionNode(declaration.parent.parent.callee) && isIdentifierNode(declaration.parent.parent.callee.property) && declaration.parent.parent.callee.property.name === "then" && isImportExpressionNode(declaration.parent.parent.callee.object)) {
236526
+ declaration.parent.parent.callee.object.includePath(path7);
236527
+ }
234810
236528
  }
234811
236529
  if (path7.length > 0) {
234812
236530
  this.init.includePath(limitConcatenatedPathDepth(this.initPath, path7), context);
@@ -236628,7 +238346,7 @@ var init_node_entry = __esm({
236628
238346
  }
236629
238347
  };
236630
238348
  Literal2.prototype.includeNode = onlyIncludeSelf;
236631
- MemberExpression = class extends NodeBase {
238349
+ MemberExpression2 = class extends NodeBase {
236632
238350
  constructor() {
236633
238351
  super(...arguments);
236634
238352
  this.variable = null;
@@ -236874,7 +238592,15 @@ var init_node_entry = __esm({
236874
238592
  if (this.variable) {
236875
238593
  this.variable.includeCallArguments(interaction, context);
236876
238594
  } else {
236877
- includeInteraction(interaction, context);
238595
+ if (isImportExpressionNode(this.object) || /**
238596
+ * const c = await import('foo')
238597
+ * c.foo();
238598
+ */
238599
+ this.object.variable && !this.object.variable.isReassigned && this.object.variable instanceof LocalVariable && isAwaitExpressionNode(this.object.variable.init) && isImportExpressionNode(this.object.variable.init.argument)) {
238600
+ includeInteractionWithoutThis(interaction, context);
238601
+ } else {
238602
+ includeInteraction(interaction, context);
238603
+ }
236878
238604
  }
236879
238605
  }
236880
238606
  includeDestructuredIfNecessary(context, destructuredInitPath, init) {
@@ -236995,7 +238721,7 @@ var init_node_entry = __esm({
236995
238721
  if (this.meta.name === IMPORT) {
236996
238722
  this.scope.context.addImportMeta(this);
236997
238723
  const parent = this.parent;
236998
- const metaProperty3 = this.metaProperty = parent instanceof MemberExpression && typeof parent.propertyKey === "string" ? parent.propertyKey : null;
238724
+ const metaProperty3 = this.metaProperty = parent instanceof MemberExpression2 && typeof parent.propertyKey === "string" ? parent.propertyKey : null;
236999
238725
  if (metaProperty3 == null ? void 0 : metaProperty3.startsWith(FILE_PREFIX)) {
237000
238726
  this.referenceId = metaProperty3.slice(FILE_PREFIX.length);
237001
238727
  }
@@ -237027,7 +238753,7 @@ var init_node_entry = __esm({
237027
238753
  renderOptions.accessedDocumentCurrentScript || (renderOptions.accessedDocumentCurrentScript = formatsMaybeAccessDocumentCurrentScript.includes(format) && replacement !== "undefined");
237028
238754
  }
237029
238755
  if (typeof replacement === "string") {
237030
- if (parent instanceof MemberExpression) {
238756
+ if (parent instanceof MemberExpression2) {
237031
238757
  code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
237032
238758
  } else {
237033
238759
  code.overwrite(start, end, replacement, { contentOnly: true });
@@ -237367,58 +239093,114 @@ var init_node_entry = __esm({
237367
239093
  return `exports[k]${_}=${_}${name}[k]`;
237368
239094
  };
237369
239095
  builtinModules2 = [
239096
+ "node:assert",
237370
239097
  "assert",
239098
+ "node:assert/strict",
237371
239099
  "assert/strict",
239100
+ "node:async_hooks",
237372
239101
  "async_hooks",
239102
+ "node:buffer",
237373
239103
  "buffer",
239104
+ "node:child_process",
237374
239105
  "child_process",
239106
+ "node:cluster",
237375
239107
  "cluster",
239108
+ "node:console",
237376
239109
  "console",
239110
+ "node:constants",
237377
239111
  "constants",
239112
+ "node:crypto",
237378
239113
  "crypto",
239114
+ "node:dgram",
237379
239115
  "dgram",
239116
+ "node:diagnostics_channel",
237380
239117
  "diagnostics_channel",
239118
+ "node:dns",
237381
239119
  "dns",
239120
+ "node:dns/promises",
237382
239121
  "dns/promises",
239122
+ "node:domain",
237383
239123
  "domain",
239124
+ "node:events",
237384
239125
  "events",
239126
+ "node:fs",
237385
239127
  "fs",
239128
+ "node:fs/promises",
237386
239129
  "fs/promises",
239130
+ "node:http",
237387
239131
  "http",
239132
+ "node:http2",
237388
239133
  "http2",
239134
+ "node:https",
237389
239135
  "https",
239136
+ "node:inspector",
237390
239137
  "inspector",
239138
+ "node:inspector/promises",
237391
239139
  "inspector/promises",
239140
+ "node:module",
237392
239141
  "module",
239142
+ "node:net",
237393
239143
  "net",
239144
+ "node:os",
237394
239145
  "os",
239146
+ "node:path",
237395
239147
  "path",
239148
+ "node:path/posix",
237396
239149
  "path/posix",
239150
+ "node:path/win32",
237397
239151
  "path/win32",
239152
+ "node:perf_hooks",
237398
239153
  "perf_hooks",
239154
+ "node:process",
237399
239155
  "process",
237400
- "punycode",
239156
+ "node:querystring",
237401
239157
  "querystring",
239158
+ "node:quic",
239159
+ "node:readline",
237402
239160
  "readline",
239161
+ "node:readline/promises",
237403
239162
  "readline/promises",
239163
+ "node:repl",
237404
239164
  "repl",
239165
+ "node:sea",
239166
+ "node:sqlite",
239167
+ "node:stream",
237405
239168
  "stream",
239169
+ "node:stream/consumers",
237406
239170
  "stream/consumers",
239171
+ "node:stream/promises",
237407
239172
  "stream/promises",
239173
+ "node:stream/web",
237408
239174
  "stream/web",
239175
+ "node:string_decoder",
237409
239176
  "string_decoder",
239177
+ "node:test",
239178
+ "node:test/reporters",
239179
+ "node:timers",
237410
239180
  "timers",
239181
+ "node:timers/promises",
237411
239182
  "timers/promises",
239183
+ "node:tls",
237412
239184
  "tls",
239185
+ "node:trace_events",
237413
239186
  "trace_events",
239187
+ "node:tty",
237414
239188
  "tty",
239189
+ "node:url",
237415
239190
  "url",
239191
+ "node:util",
237416
239192
  "util",
239193
+ "node:util/types",
237417
239194
  "util/types",
239195
+ "node:v8",
237418
239196
  "v8",
239197
+ "node:vm",
237419
239198
  "vm",
239199
+ "node:wasi",
237420
239200
  "wasi",
239201
+ "node:worker_threads",
237421
239202
  "worker_threads",
239203
+ "node:zlib",
237422
239204
  "zlib"
237423
239205
  ];
237424
239206
  nodeBuiltins = new Set(builtinModules2);
@@ -237455,6 +239237,9 @@ var init_node_entry = __esm({
237455
239237
  getSyntheticExportsBlock = (exports2, t, snippets) => getExportsBlock(exports2.filter((expt) => expt.expression).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
237456
239238
  getMissingExportsBlock = (exports2, t, snippets) => getExportsBlock(exports2.filter((expt) => expt.local === MISSING_EXPORT_SHIM_VARIABLE).map((expt) => ({ name: expt.exported, value: MISSING_EXPORT_SHIM_VARIABLE })), t, snippets);
237457
239239
  finalisers = { amd, cjs, es, iife, system, umd };
239240
+ utils = {};
239241
+ picomatchExports = /* @__PURE__ */ requirePicomatch();
239242
+ picomatch = /* @__PURE__ */ getDefaultExportFromCjs(picomatchExports);
237458
239243
  extractors2 = {
237459
239244
  ArrayPattern(names, param) {
237460
239245
  for (const element of param.elements) {
@@ -237860,12 +239645,21 @@ var init_node_entry = __esm({
237860
239645
  this.scope.context.requestTreeshakingPass();
237861
239646
  }
237862
239647
  };
237863
- AwaitExpression = class extends NodeBase {
239648
+ AwaitExpression2 = class extends NodeBase {
237864
239649
  hasEffects() {
237865
239650
  if (!this.deoptimized)
237866
239651
  this.applyDeoptimizations();
237867
239652
  return true;
237868
239653
  }
239654
+ initialise() {
239655
+ super.initialise();
239656
+ let parent = this.parent;
239657
+ do {
239658
+ if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression2)
239659
+ return;
239660
+ } while (parent = parent.parent);
239661
+ this.scope.context.usesTopLevelAwait = true;
239662
+ }
237869
239663
  include(context, includeChildrenRecursively) {
237870
239664
  if (!this.included)
237871
239665
  this.includeNode(context);
@@ -237875,14 +239669,6 @@ var init_node_entry = __esm({
237875
239669
  this.included = true;
237876
239670
  if (!this.deoptimized)
237877
239671
  this.applyDeoptimizations();
237878
- checkTopLevelAwait: if (!this.scope.context.usesTopLevelAwait) {
237879
- let parent = this.parent;
237880
- do {
237881
- if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression2)
237882
- break checkTopLevelAwait;
237883
- } while (parent = parent.parent);
237884
- this.scope.context.usesTopLevelAwait = true;
237885
- }
237886
239672
  this.argument.includePath(THEN_PATH, context);
237887
239673
  }
237888
239674
  includePath(path7, context) {
@@ -238076,6 +239862,16 @@ var init_node_entry = __esm({
238076
239862
  }
238077
239863
  };
238078
239864
  CallExpression2 = class extends CallExpressionBase {
239865
+ get hasCheckedForWarnings() {
239866
+ return isFlagSet(
239867
+ this.flags,
239868
+ 268435456
239869
+ /* Flag.checkedForWarnings */
239870
+ );
239871
+ }
239872
+ set hasCheckedForWarnings(value) {
239873
+ this.flags = setFlag(this.flags, 268435456, value);
239874
+ }
238079
239875
  get optional() {
238080
239876
  return isFlagSet(
238081
239877
  this.flags,
@@ -238088,18 +239884,9 @@ var init_node_entry = __esm({
238088
239884
  }
238089
239885
  bind() {
238090
239886
  super.bind();
238091
- if (this.callee instanceof Identifier2) {
238092
- const variable = this.scope.findVariable(this.callee.name);
238093
- if (variable.isNamespace) {
238094
- this.scope.context.log(LOGLEVEL_WARN, logCannotCallNamespace(this.callee.name), this.start);
238095
- }
238096
- if (this.callee.name === "eval") {
238097
- this.scope.context.log(LOGLEVEL_WARN, logEval(this.scope.context.module.id), this.start);
238098
- }
238099
- }
238100
239887
  this.interaction = {
238101
239888
  args: [
238102
- this.callee instanceof MemberExpression && !this.callee.variable ? this.callee.object : null,
239889
+ this.callee instanceof MemberExpression2 && !this.callee.variable ? this.callee.object : null,
238103
239890
  ...this.arguments
238104
239891
  ],
238105
239892
  type: INTERACTION_CALLED,
@@ -238167,6 +239954,16 @@ var init_node_entry = __esm({
238167
239954
  renderedSurroundingElement
238168
239955
  });
238169
239956
  renderCallArguments(code, options, this);
239957
+ if (this.callee instanceof Identifier2 && !this.hasCheckedForWarnings) {
239958
+ this.hasCheckedForWarnings = true;
239959
+ const variable = this.scope.findVariable(this.callee.name);
239960
+ if (variable.isNamespace) {
239961
+ this.scope.context.log(LOGLEVEL_WARN, logCannotCallNamespace(this.callee.name), this.start);
239962
+ }
239963
+ if (this.callee.name === "eval") {
239964
+ this.scope.context.log(LOGLEVEL_WARN, logEval(this.scope.context.module.id), this.start);
239965
+ }
239966
+ }
238170
239967
  }
238171
239968
  applyDeoptimizations() {
238172
239969
  this.deoptimized = true;
@@ -238531,7 +240328,17 @@ var init_node_entry = __esm({
238531
240328
  if (this.declaration === null) {
238532
240329
  code.remove(start, end);
238533
240330
  } else {
238534
- code.remove(this.start, this.declaration.start);
240331
+ let endBoundary = this.declaration.start;
240332
+ if (this.declaration instanceof ClassDeclaration) {
240333
+ const decorators = this.declaration.decorators;
240334
+ for (const decorator3 of decorators) {
240335
+ endBoundary = Math.min(endBoundary, decorator3.start);
240336
+ }
240337
+ if (endBoundary <= this.start) {
240338
+ endBoundary = this.declaration.start;
240339
+ }
240340
+ }
240341
+ code.remove(this.start, endBoundary);
238535
240342
  this.declaration.render(code, options, { end, start });
238536
240343
  }
238537
240344
  }
@@ -238674,7 +240481,7 @@ var init_node_entry = __esm({
238674
240481
  };
238675
240482
  ForStatement.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
238676
240483
  ForStatement.prototype.applyDeoptimizations = doNotDeoptimize;
238677
- FunctionExpression = class extends FunctionNode {
240484
+ FunctionExpression2 = class extends FunctionNode {
238678
240485
  createScope(parentScope) {
238679
240486
  super.createScope(this.idScope = new ChildScope(parentScope, parentScope.context));
238680
240487
  }
@@ -238955,7 +240762,7 @@ var init_node_entry = __esm({
238955
240762
  }
238956
240763
  };
238957
240764
  VariableDeclarator2.prototype.applyDeoptimizations = doNotDeoptimize;
238958
- ImportExpression = class extends NodeBase {
240765
+ ImportExpression2 = class extends NodeBase {
238959
240766
  constructor() {
238960
240767
  super(...arguments);
238961
240768
  this.inlineNamespace = null;
@@ -238967,6 +240774,16 @@ var init_node_entry = __esm({
238967
240774
  this.resolution = null;
238968
240775
  this.resolutionString = null;
238969
240776
  }
240777
+ get withinTopLevelAwait() {
240778
+ return isFlagSet(
240779
+ this.flags,
240780
+ 134217728
240781
+ /* Flag.withinTopLevelAwait */
240782
+ );
240783
+ }
240784
+ set withinTopLevelAwait(value) {
240785
+ this.flags = setFlag(this.flags, 134217728, value);
240786
+ }
238970
240787
  // Do not bind attributes
238971
240788
  bind() {
238972
240789
  this.source.bind();
@@ -238974,9 +240791,9 @@ var init_node_entry = __esm({
238974
240791
  /**
238975
240792
  * Get imported variables for deterministic usage, valid cases are:
238976
240793
  *
238977
- * - `const { foo } = await import('bar')`.
238978
- * - `(await import('bar')).foo`
238979
- * - `import('bar').then(({ foo }) => {})`
240794
+ * 1. `const { foo } = await import('bar')`.
240795
+ * 2. `(await import('bar')).foo`
240796
+ * 3. `import('bar').then(({ foo }) => {})`
238980
240797
  *
238981
240798
  * Returns empty array if it's side-effect only import.
238982
240799
  * Returns undefined if it's not fully deterministic.
@@ -238986,7 +240803,7 @@ var init_node_entry = __esm({
238986
240803
  if (parent1 instanceof ExpressionStatement2) {
238987
240804
  return EMPTY_ARRAY;
238988
240805
  }
238989
- if (parent1 instanceof AwaitExpression) {
240806
+ if (parent1 instanceof AwaitExpression2) {
238990
240807
  const parent2 = parent1.parent;
238991
240808
  if (parent2 instanceof ExpressionStatement2) {
238992
240809
  return EMPTY_ARRAY;
@@ -239000,7 +240817,7 @@ var init_node_entry = __esm({
239000
240817
  return getDeterministicObjectDestructure(declaration);
239001
240818
  }
239002
240819
  }
239003
- if (parent2 instanceof MemberExpression) {
240820
+ if (parent2 instanceof MemberExpression2) {
239004
240821
  const id = parent2.property;
239005
240822
  if (!parent2.computed && id instanceof Identifier2) {
239006
240823
  return [id.name];
@@ -239008,7 +240825,7 @@ var init_node_entry = __esm({
239008
240825
  }
239009
240826
  return;
239010
240827
  }
239011
- if (parent1 instanceof MemberExpression) {
240828
+ if (parent1 instanceof MemberExpression2) {
239012
240829
  const callExpression3 = parent1.parent;
239013
240830
  const property3 = parent1.property;
239014
240831
  if (!(callExpression3 instanceof CallExpression2) || !(property3 instanceof Identifier2)) {
@@ -239023,18 +240840,18 @@ var init_node_entry = __esm({
239023
240840
  if (callExpression3.arguments.length === 0) {
239024
240841
  return EMPTY_ARRAY;
239025
240842
  }
239026
- const argument = callExpression3.arguments[0];
239027
- if (callExpression3.arguments.length !== 1 || !(argument instanceof ArrowFunctionExpression2 || argument instanceof FunctionExpression)) {
240843
+ const thenCallback = callExpression3.arguments[0];
240844
+ if (callExpression3.arguments.length !== 1 || !(thenCallback instanceof ArrowFunctionExpression2 || thenCallback instanceof FunctionExpression2)) {
239028
240845
  return;
239029
240846
  }
239030
- if (argument.params.length === 0) {
240847
+ if (thenCallback.params.length === 0) {
239031
240848
  return EMPTY_ARRAY;
239032
240849
  }
239033
- const declaration = argument.params[0];
239034
- if (argument.params.length === 1 && declaration instanceof ObjectPattern) {
240850
+ const declaration = thenCallback.params[0];
240851
+ if (thenCallback.params.length === 1 && declaration instanceof ObjectPattern) {
239035
240852
  return getDeterministicObjectDestructure(declaration);
239036
240853
  }
239037
- return;
240854
+ return this.hasUnknownAccessedKey ? void 0 : [...this.accessedPropKey];
239038
240855
  }
239039
240856
  }
239040
240857
  hasEffects() {
@@ -239065,6 +240882,21 @@ var init_node_entry = __esm({
239065
240882
  initialise() {
239066
240883
  super.initialise();
239067
240884
  this.scope.context.addDynamicImport(this);
240885
+ let parent = this.parent;
240886
+ let withinAwaitExpression = false;
240887
+ let withinTopLevelAwait = false;
240888
+ do {
240889
+ if (withinAwaitExpression && (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression2)) {
240890
+ withinTopLevelAwait = false;
240891
+ }
240892
+ if (parent instanceof AwaitExpression2) {
240893
+ withinAwaitExpression = true;
240894
+ withinTopLevelAwait = true;
240895
+ }
240896
+ } while (parent = parent.parent);
240897
+ if (withinAwaitExpression && withinTopLevelAwait) {
240898
+ this.withinTopLevelAwait = true;
240899
+ }
239068
240900
  }
239069
240901
  parseNode(esTreeNode) {
239070
240902
  this.sourceAstNode = esTreeNode.source;
@@ -239109,7 +240941,7 @@ var init_node_entry = __esm({
239109
240941
  }
239110
240942
  }
239111
240943
  }
239112
- setExternalResolution(exportMode, resolution, options, snippets, pluginDriver, accessedGlobalsByScope, resolutionString, namespaceExportName, attributes) {
240944
+ setExternalResolution(exportMode, resolution, options, snippets, pluginDriver, accessedGlobalsByScope, resolutionString, namespaceExportName, attributes, ownChunk, targetChunk) {
239113
240945
  const { format } = options;
239114
240946
  this.inlineNamespace = null;
239115
240947
  this.resolution = resolution;
@@ -239118,7 +240950,7 @@ var init_node_entry = __esm({
239118
240950
  this.attributes = attributes;
239119
240951
  const accessedGlobals = [...accessedImportGlobals[format] || []];
239120
240952
  let helper;
239121
- ({ helper, mechanism: this.mechanism } = this.getDynamicImportMechanismAndHelper(resolution, exportMode, options, snippets, pluginDriver));
240953
+ ({ helper, mechanism: this.mechanism } = this.getDynamicImportMechanismAndHelper(resolution, exportMode, options, snippets, pluginDriver, ownChunk, targetChunk));
239122
240954
  if (helper) {
239123
240955
  accessedGlobals.push(helper);
239124
240956
  }
@@ -239129,12 +240961,38 @@ var init_node_entry = __esm({
239129
240961
  setInternalResolution(inlineNamespace) {
239130
240962
  this.inlineNamespace = inlineNamespace;
239131
240963
  }
239132
- getDynamicImportMechanismAndHelper(resolution, exportMode, { compact, dynamicImportInCjs, format, generatedCode: { arrowFunctions }, interop }, { _, getDirectReturnFunction, getDirectReturnIifeLeft }, pluginDriver) {
240964
+ getDynamicImportMechanismAndHelper(resolution, exportMode, { compact, dynamicImportInCjs, format, generatedCode: { arrowFunctions }, interop }, { _, getDirectReturnFunction, getDirectReturnIifeLeft }, pluginDriver, ownChunk, targetChunk) {
239133
240965
  const mechanism = pluginDriver.hookFirstSync("renderDynamicImport", [
239134
240966
  {
240967
+ chunk: getChunkInfoWithPath(ownChunk),
239135
240968
  customResolution: typeof this.resolution === "string" ? this.resolution : null,
239136
240969
  format,
240970
+ getTargetChunkImports() {
240971
+ if (targetChunk === null)
240972
+ return null;
240973
+ const chunkInfos = [];
240974
+ const importerPath = ownChunk.getFileName();
240975
+ for (const dep of targetChunk.dependencies) {
240976
+ const resolvedImportPath = `'${dep.getImportPath(importerPath)}'`;
240977
+ if (dep instanceof ExternalChunk) {
240978
+ chunkInfos.push({
240979
+ fileName: dep.getFileName(),
240980
+ resolvedImportPath,
240981
+ type: "external"
240982
+ });
240983
+ } else {
240984
+ chunkInfos.push({
240985
+ chunk: dep.getPreRenderedChunkInfo(),
240986
+ fileName: dep.getFileName(),
240987
+ resolvedImportPath,
240988
+ type: "internal"
240989
+ });
240990
+ }
240991
+ }
240992
+ return chunkInfos;
240993
+ },
239137
240994
  moduleId: this.scope.context.module.id,
240995
+ targetChunk: targetChunk ? getChunkInfoWithPath(targetChunk) : null,
239138
240996
  targetModuleId: this.resolution && typeof this.resolution !== "string" ? this.resolution.id : null
239139
240997
  }
239140
240998
  ]);
@@ -239215,7 +241073,7 @@ var init_node_entry = __esm({
239215
241073
  return { helper: null, mechanism: null };
239216
241074
  }
239217
241075
  };
239218
- ImportExpression.prototype.applyDeoptimizations = doNotDeoptimize;
241076
+ ImportExpression2.prototype.applyDeoptimizations = doNotDeoptimize;
239219
241077
  accessedImportGlobals = {
239220
241078
  amd: ["require"],
239221
241079
  cjs: ["require"],
@@ -240525,15 +242383,18 @@ var init_node_entry = __esm({
240525
242383
  SwitchStatement.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
240526
242384
  SwitchStatement.prototype.applyDeoptimizations = doNotDeoptimize;
240527
242385
  TaggedTemplateExpression = class extends CallExpressionBase {
242386
+ get hasCheckedForWarnings() {
242387
+ return isFlagSet(
242388
+ this.flags,
242389
+ 268435456
242390
+ /* Flag.checkedForWarnings */
242391
+ );
242392
+ }
242393
+ set hasCheckedForWarnings(value) {
242394
+ this.flags = setFlag(this.flags, 268435456, value);
242395
+ }
240528
242396
  bind() {
240529
242397
  super.bind();
240530
- if (this.tag.type === Identifier) {
240531
- const name = this.tag.name;
240532
- const variable = this.scope.findVariable(name);
240533
- if (variable.isNamespace) {
240534
- this.scope.context.log(LOGLEVEL_WARN, logCannotCallNamespace(name), this.start);
240535
- }
240536
- }
240537
242398
  }
240538
242399
  hasEffects(context) {
240539
242400
  if (!this.deoptimized)
@@ -240560,7 +242421,7 @@ var init_node_entry = __esm({
240560
242421
  this.args = [UNKNOWN_EXPRESSION, ...this.quasi.expressions];
240561
242422
  this.interaction = {
240562
242423
  args: [
240563
- this.tag instanceof MemberExpression && !this.tag.variable ? this.tag.object : null,
242424
+ this.tag instanceof MemberExpression2 && !this.tag.variable ? this.tag.object : null,
240564
242425
  ...this.args
240565
242426
  ],
240566
242427
  type: INTERACTION_CALLED,
@@ -240570,6 +242431,14 @@ var init_node_entry = __esm({
240570
242431
  render(code, options) {
240571
242432
  this.tag.render(code, options, { isCalleeOfRenderedParent: true });
240572
242433
  this.quasi.render(code, options);
242434
+ if (!this.hasCheckedForWarnings && this.tag.type === Identifier) {
242435
+ this.hasCheckedForWarnings = true;
242436
+ const name = this.tag.name;
242437
+ const variable = this.scope.findVariable(name);
242438
+ if (variable.isNamespace) {
242439
+ this.scope.context.log(LOGLEVEL_WARN, logCannotCallNamespace(name), this.start);
242440
+ }
242441
+ }
240573
242442
  }
240574
242443
  applyDeoptimizations() {
240575
242444
  this.deoptimized = true;
@@ -240865,10 +242734,12 @@ var init_node_entry = __esm({
240865
242734
  return this.renderedLiteralValue = includeChildrenRecursively ? UnknownValue : getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this));
240866
242735
  }
240867
242736
  include(context, includeChildrenRecursively, _options2) {
242737
+ var _a2;
240868
242738
  if (!this.deoptimized)
240869
242739
  this.applyDeoptimizations();
240870
242740
  this.included = true;
240871
- if (typeof this.getRenderedLiteralValue(includeChildrenRecursively) === "symbol" || this.argument.shouldBeIncluded(context)) {
242741
+ const shouldPreserveArgument = this.argument instanceof Identifier2 && ((_a2 = this.argument.variable) == null ? void 0 : _a2.included);
242742
+ if (typeof this.getRenderedLiteralValue(includeChildrenRecursively) === "symbol" || this.argument.shouldBeIncluded(context) || shouldPreserveArgument) {
240872
242743
  this.argument.include(context, includeChildrenRecursively);
240873
242744
  this.renderedLiteralValue = UnknownValue;
240874
242745
  }
@@ -241210,7 +243081,7 @@ var init_node_entry = __esm({
241210
243081
  ArrowFunctionExpression2,
241211
243082
  AssignmentExpression,
241212
243083
  AssignmentPattern,
241213
- AwaitExpression,
243084
+ AwaitExpression2,
241214
243085
  BinaryExpression,
241215
243086
  BlockStatement2,
241216
243087
  BreakStatement,
@@ -241236,13 +243107,13 @@ var init_node_entry = __esm({
241236
243107
  ForOfStatement,
241237
243108
  ForStatement,
241238
243109
  FunctionDeclaration,
241239
- FunctionExpression,
243110
+ FunctionExpression2,
241240
243111
  Identifier2,
241241
243112
  IfStatement,
241242
243113
  ImportAttribute,
241243
243114
  ImportDeclaration,
241244
243115
  ImportDefaultSpecifier,
241245
- ImportExpression,
243116
+ ImportExpression2,
241246
243117
  ImportNamespaceSpecifier,
241247
243118
  ImportSpecifier,
241248
243119
  JSXAttribute,
@@ -241268,7 +243139,7 @@ var init_node_entry = __esm({
241268
243139
  Literal2,
241269
243140
  Literal2,
241270
243141
  LogicalExpression,
241271
- MemberExpression,
243142
+ MemberExpression2,
241272
243143
  MetaProperty,
241273
243144
  MethodDefinition,
241274
243145
  NewExpression,
@@ -241848,7 +243719,7 @@ var init_node_entry = __esm({
241848
243719
  ArrowFunctionExpression: ArrowFunctionExpression2,
241849
243720
  AssignmentExpression,
241850
243721
  AssignmentPattern,
241851
- AwaitExpression,
243722
+ AwaitExpression: AwaitExpression2,
241852
243723
  BinaryExpression,
241853
243724
  BlockStatement: BlockStatement2,
241854
243725
  BreakStatement,
@@ -241873,13 +243744,13 @@ var init_node_entry = __esm({
241873
243744
  ForOfStatement,
241874
243745
  ForStatement,
241875
243746
  FunctionDeclaration,
241876
- FunctionExpression,
243747
+ FunctionExpression: FunctionExpression2,
241877
243748
  Identifier: Identifier2,
241878
243749
  IfStatement,
241879
243750
  ImportAttribute,
241880
243751
  ImportDeclaration,
241881
243752
  ImportDefaultSpecifier,
241882
- ImportExpression,
243753
+ ImportExpression: ImportExpression2,
241883
243754
  ImportNamespaceSpecifier,
241884
243755
  ImportSpecifier,
241885
243756
  JSXAttribute,
@@ -241900,7 +243771,7 @@ var init_node_entry = __esm({
241900
243771
  LabeledStatement,
241901
243772
  Literal: Literal2,
241902
243773
  LogicalExpression,
241903
- MemberExpression,
243774
+ MemberExpression: MemberExpression2,
241904
243775
  MetaProperty,
241905
243776
  MethodDefinition,
241906
243777
  NewExpression,
@@ -242004,6 +243875,7 @@ var init_node_entry = __esm({
242004
243875
  this.importedFromNotTreeshaken = false;
242005
243876
  this.importers = [];
242006
243877
  this.includedDynamicImporters = [];
243878
+ this.includedDirectTopLevelAwaitingDynamicImporters = /* @__PURE__ */ new Set();
242007
243879
  this.includedImports = /* @__PURE__ */ new Set();
242008
243880
  this.isExecuted = false;
242009
243881
  this.isUserDefinedEntryPoint = false;
@@ -242330,6 +244202,9 @@ var init_node_entry = __esm({
242330
244202
  this.ast.include(context, false);
242331
244203
  }
242332
244204
  includeAllExports(includeNamespaceMembers) {
244205
+ if (includeNamespaceMembers) {
244206
+ this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces());
244207
+ }
242333
244208
  if (this.allExportsIncluded)
242334
244209
  return;
242335
244210
  this.allExportsIncluded = true;
@@ -242358,9 +244233,6 @@ var init_node_entry = __esm({
242358
244233
  }
242359
244234
  }
242360
244235
  }
242361
- if (includeNamespaceMembers) {
242362
- this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces());
242363
- }
242364
244236
  }
242365
244237
  includeAllInBundle() {
242366
244238
  this.ast.include(createInclusionContext(), true);
@@ -242797,6 +244669,9 @@ var init_node_entry = __esm({
242797
244669
  if (resolution instanceof _Module) {
242798
244670
  if (!resolution.includedDynamicImporters.includes(this)) {
242799
244671
  resolution.includedDynamicImporters.push(this);
244672
+ if (node.withinTopLevelAwait) {
244673
+ resolution.includedDirectTopLevelAwaitingDynamicImporters.add(this);
244674
+ }
242800
244675
  }
242801
244676
  const importedNames = this.options.treeshake ? node.getDeterministicImportedNames() : void 0;
242802
244677
  if (importedNames) {
@@ -242970,13 +244845,13 @@ ${next}` : out;
242970
244845
  this.bundle = bundle;
242971
244846
  this.inputBase = inputBase;
242972
244847
  this.snippets = snippets;
244848
+ this.dependencies = /* @__PURE__ */ new Set();
242973
244849
  this.entryModules = [];
242974
244850
  this.exportMode = "named";
242975
244851
  this.facadeModule = null;
242976
244852
  this.namespaceVariableName = "";
242977
244853
  this.variableName = "";
242978
244854
  this.accessedGlobalsByScope = /* @__PURE__ */ new Map();
242979
- this.dependencies = /* @__PURE__ */ new Set();
242980
244855
  this.dynamicEntryModules = [];
242981
244856
  this.dynamicName = null;
242982
244857
  this.exportNamesByVariable = /* @__PURE__ */ new Map();
@@ -242999,6 +244874,7 @@ ${next}` : out;
242999
244874
  this.renderedModules = /* @__PURE__ */ Object.create(null);
243000
244875
  this.sortedExportNames = null;
243001
244876
  this.strictFacade = false;
244877
+ this.allowExtensionModules = /* @__PURE__ */ new Set();
243002
244878
  this.execIndex = orderedModules.length > 0 ? orderedModules[0].execIndex : Infinity;
243003
244879
  const chunkModules = new Set(orderedModules);
243004
244880
  for (const module2 of orderedModules) {
@@ -243093,6 +244969,16 @@ ${next}` : out;
243093
244969
  remainingExports.delete(variable);
243094
244970
  }
243095
244971
  }
244972
+ for (const module2 of this.allowExtensionModules) {
244973
+ const exportNamesByVariable = module2.getExportNamesByVariable();
244974
+ for (const [variable, exportNames] of exportNamesByVariable) {
244975
+ this.exportNamesByVariable.set(variable, [...exportNames]);
244976
+ for (const exportName of exportNames) {
244977
+ this.exportsByName.set(exportName, variable);
244978
+ }
244979
+ remainingExports.delete(variable);
244980
+ }
244981
+ }
243096
244982
  if (this.outputOptions.minifyInternalExports) {
243097
244983
  assignExportsToMangledNames(remainingExports, this.exportsByName, this.exportNamesByVariable);
243098
244984
  } else {
@@ -243107,15 +244993,19 @@ ${next}` : out;
243107
244993
  const entryModules = /* @__PURE__ */ new Set([...this.entryModules, ...this.implicitEntryModules]);
243108
244994
  const exposedVariables = new Set(this.dynamicEntryModules.map(({ namespace }) => namespace));
243109
244995
  for (const module2 of entryModules) {
243110
- if (module2.preserveSignature) {
243111
- for (const exportedVariable of module2.getExportNamesByVariable().keys()) {
243112
- if (this.chunkByModule.get(exportedVariable.module) === this) {
243113
- exposedVariables.add(exportedVariable);
244996
+ if (module2.preserveSignature === "allow-extension") {
244997
+ const canPreserveExports = this.canPreserveModuleExports(module2);
244998
+ if (canPreserveExports && !module2.chunkFileNames.size && module2.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
244999
+ this.allowExtensionModules.add(module2);
245000
+ if (!this.facadeModule) {
245001
+ this.facadeModule = module2;
245002
+ this.strictFacade = false;
245003
+ this.assignFacadeName({}, module2, this.outputOptions.preserveModules);
243114
245004
  }
245005
+ this.facadeChunkByModule.set(module2, this);
245006
+ continue;
243115
245007
  }
243116
245008
  }
243117
- }
243118
- for (const module2 of entryModules) {
243119
245009
  const requiredFacades = Array.from(
243120
245010
  new Set(module2.chunkNames.filter(({ isUserDefined }) => isUserDefined).map(({ name }) => name)),
243121
245011
  // mapping must run after Set 'name' dedupe
@@ -243165,6 +245055,23 @@ ${next}` : out;
243165
245055
  }
243166
245056
  return facades;
243167
245057
  }
245058
+ canPreserveModuleExports(module2) {
245059
+ const exportNamesByVariable = module2.getExportNamesByVariable();
245060
+ for (const [variable, exportNames] of exportNamesByVariable) {
245061
+ for (const exportName of exportNames) {
245062
+ const existingVariable = this.exportsByName.get(exportName);
245063
+ if (existingVariable && existingVariable !== variable) {
245064
+ return false;
245065
+ }
245066
+ }
245067
+ }
245068
+ for (const [variable, exportNames] of exportNamesByVariable) {
245069
+ for (const exportName of exportNames) {
245070
+ this.exportsByName.set(exportName, variable);
245071
+ }
245072
+ }
245073
+ return true;
245074
+ }
243168
245075
  getChunkName() {
243169
245076
  var _a2;
243170
245077
  return (_a2 = this.name) != null ? _a2 : this.name = this.outputOptions.sanitizeFileName(this.getFallbackChunkName());
@@ -243258,15 +245165,19 @@ ${next}` : out;
243258
245165
  this.setUpChunkImportsAndExportsForModule(module2);
243259
245166
  }
243260
245167
  }
243261
- async render() {
243262
- const { dependencies, exportMode, facadeModule, inputOptions: { onLog }, outputOptions, pluginDriver, snippets } = this;
243263
- const { format, hoistTransitiveImports, preserveModules } = outputOptions;
245168
+ inlineTransitiveImports() {
245169
+ const { facadeModule, dependencies, outputOptions } = this;
245170
+ const { hoistTransitiveImports, preserveModules } = outputOptions;
243264
245171
  if (hoistTransitiveImports && !preserveModules && facadeModule !== null) {
243265
245172
  for (const dep of dependencies) {
243266
245173
  if (dep instanceof _Chunk)
243267
245174
  this.inlineChunkDependencies(dep);
243268
245175
  }
243269
245176
  }
245177
+ }
245178
+ async render() {
245179
+ const { exportMode, facadeModule, inputOptions: { onLog }, outputOptions, pluginDriver, snippets } = this;
245180
+ const { format, preserveModules } = outputOptions;
243270
245181
  const preliminaryFileName = this.getPreliminaryFileName();
243271
245182
  const preliminarySourcemapFileName = this.getPreliminarySourcemapFileName();
243272
245183
  const { accessedGlobals, indent, magicString, renderedSource, usedModules, usesTopLevelAwait } = this.renderModules(preliminaryFileName.fileName);
@@ -243807,12 +245718,12 @@ ${next}` : out;
243807
245718
  if (chunk === this) {
243808
245719
  node.setInternalResolution(resolution.namespace);
243809
245720
  } else {
243810
- node.setExternalResolution((facadeChunk || chunk).exportMode, resolution, outputOptions, snippets, pluginDriver, accessedGlobalsByScope, `'${(facadeChunk || chunk).getImportPath(fileName)}'`, !(facadeChunk == null ? void 0 : facadeChunk.strictFacade) && chunk.exportNamesByVariable.get(resolution.namespace)[0], null);
245721
+ node.setExternalResolution((facadeChunk || chunk).exportMode, resolution, outputOptions, snippets, pluginDriver, accessedGlobalsByScope, `'${(facadeChunk || chunk).getImportPath(fileName)}'`, !(facadeChunk == null ? void 0 : facadeChunk.strictFacade) && chunk.exportNamesByVariable.get(resolution.namespace)[0], null, this, facadeChunk || chunk);
243811
245722
  }
243812
245723
  } else {
243813
245724
  const { node, resolution } = resolvedDynamicImport;
243814
245725
  const [resolutionString, attributes] = this.getDynamicImportStringAndAttributes(resolution, fileName, node);
243815
- node.setExternalResolution("external", resolution, outputOptions, snippets, pluginDriver, accessedGlobalsByScope, resolutionString, false, attributes);
245726
+ node.setExternalResolution("external", resolution, outputOptions, snippets, pluginDriver, accessedGlobalsByScope, resolutionString, false, attributes, this, null);
243816
245727
  }
243817
245728
  }
243818
245729
  }
@@ -243987,7 +245898,17 @@ ${next}` : out;
243987
245898
  let searchEnd = segments.length - 1;
243988
245899
  while (searchStart <= searchEnd) {
243989
245900
  const m = searchStart + searchEnd >> 1;
243990
- const segment = segments[m];
245901
+ let segment = segments[m];
245902
+ if (segment[0] !== column && searchStart === searchEnd) {
245903
+ let approximatedSegmentIndex = 0;
245904
+ for (let index2 = 0; index2 < segments.length; index2++) {
245905
+ if (segments[index2][0] > column) {
245906
+ break;
245907
+ }
245908
+ approximatedSegmentIndex = index2;
245909
+ }
245910
+ segment = segments[approximatedSegmentIndex];
245911
+ }
243991
245912
  if (segment[0] === column || searchStart === searchEnd) {
243992
245913
  if (segment.length == 1)
243993
245914
  return null;
@@ -244043,6 +245964,7 @@ ${next}` : out;
244043
245964
  this.pluginDriver.setChunkInformation(this.facadeChunkByModule);
244044
245965
  for (const chunk of chunks) {
244045
245966
  chunk.generateExports();
245967
+ chunk.inlineTransitiveImports();
244046
245968
  }
244047
245969
  timeEnd("generate chunks", 2);
244048
245970
  await renderChunks(chunks, outputBundle, this.pluginDriver, this.outputOptions, this.inputOptions.onLog);
@@ -244319,7 +246241,7 @@ ${next}` : out;
244319
246241
  this.modulesWithLoadedDependencies = /* @__PURE__ */ new Set();
244320
246242
  this.nextChunkNamePriority = 0;
244321
246243
  this.nextEntryModuleIndex = 0;
244322
- this.resolveId = async (source, importer, customOptions, isEntry, attributes, skip = null) => this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(source, importer, false) ? false : await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === "boolean" ? isEntry : !importer, attributes), importer, source), attributes);
246244
+ this.resolveId = async (source, importer, customOptions, isEntry, attributes, skip = null) => this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(source, importer, false) ? false : await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === "boolean" ? isEntry : !importer, attributes, this.options.fs), importer, source), attributes);
244323
246245
  this.hasModuleSideEffects = options.treeshake ? options.treeshake.moduleSideEffects : () => true;
244324
246246
  }
244325
246247
  async addAdditionalModules(unresolvedModules, isAddForManualChunks) {
@@ -244400,7 +246322,7 @@ ${next}` : out;
244400
246322
  if (content !== null)
244401
246323
  return content;
244402
246324
  this.graph.watchFiles[id] = true;
244403
- return await (0, import_promises.readFile)(id, "utf8");
246325
+ return await this.options.fs.readFile(id, { encoding: "utf8" });
244404
246326
  });
244405
246327
  } catch (error_) {
244406
246328
  let message = `Could not load ${id}`;
@@ -244636,7 +246558,7 @@ ${next}` : out;
244636
246558
  return resolvedId;
244637
246559
  }
244638
246560
  async loadEntryModule(unresolvedId, isEntry, importer, implicitlyLoadedBefore, isLoadForManualChunks = false) {
244639
- const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, EMPTY_OBJECT, true, EMPTY_OBJECT);
246561
+ const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, EMPTY_OBJECT, true, EMPTY_OBJECT, this.options.fs);
244640
246562
  if (resolveIdResult == null) {
244641
246563
  return error(implicitlyLoadedBefore === null ? logUnresolvedEntry(unresolvedId) : logUnresolvedImplicitDependant(unresolvedId, implicitlyLoadedBefore));
244642
246564
  }
@@ -244984,6 +246906,10 @@ ${next}` : out;
244984
246906
  this.pluginCache = pluginCache;
244985
246907
  this.sortedPlugins = /* @__PURE__ */ new Map();
244986
246908
  this.unfulfilledActions = /* @__PURE__ */ new Set();
246909
+ this.compiledPluginFilters = {
246910
+ idOnlyFilter: /* @__PURE__ */ new WeakMap(),
246911
+ transformFilter: /* @__PURE__ */ new WeakMap()
246912
+ };
244987
246913
  this.fileEmitter = new FileEmitter(graph, options, basePluginDriver && basePluginDriver.fileEmitter);
244988
246914
  this.emitFile = this.fileEmitter.emitFile.bind(this.fileEmitter);
244989
246915
  this.getFileName = this.fileEmitter.getFileName.bind(this.fileEmitter);
@@ -245107,6 +247033,23 @@ ${next}` : out;
245107
247033
  runHook(hookName, parameters, plugin2, replaceContext) {
245108
247034
  const hook = plugin2[hookName];
245109
247035
  const handler = typeof hook === "object" ? hook.handler : hook;
247036
+ if (typeof hook === "object" && "filter" in hook && hook.filter) {
247037
+ if (hookName === "transform") {
247038
+ const filter2 = hook.filter;
247039
+ const hookParameters = parameters;
247040
+ const compiledFilter = getOrCreate(this.compiledPluginFilters.transformFilter, filter2, () => createFilterForTransform(filter2.id, filter2.code));
247041
+ if (compiledFilter && !compiledFilter(hookParameters[1], hookParameters[0])) {
247042
+ return Promise.resolve();
247043
+ }
247044
+ } else if (hookName === "resolveId" || hookName === "load") {
247045
+ const filter2 = hook.filter;
247046
+ const hookParameters = parameters;
247047
+ const compiledFilter = getOrCreate(this.compiledPluginFilters.idOnlyFilter, filter2, () => createFilterForId(filter2.id));
247048
+ if (compiledFilter && !compiledFilter(hookParameters[0])) {
247049
+ return Promise.resolve();
247050
+ }
247051
+ }
247052
+ }
245110
247053
  let context = this.pluginContexts.get(plugin2);
245111
247054
  if (replaceContext) {
245112
247055
  context = replaceContext(context, plugin2);
@@ -245348,6 +247291,9 @@ ${next}` : out;
245348
247291
  };
245349
247292
  handleBeforeExit = null;
245350
247293
  rejectByPluginDriver = /* @__PURE__ */ new Map();
247294
+ fs2 = /* @__PURE__ */ _mergeNamespaces({
247295
+ __proto__: null
247296
+ }, [promises]);
245351
247297
  getCache = (config) => {
245352
247298
  var _a2;
245353
247299
  return config.cache === true ? void 0 : ((_a2 = config.cache) == null ? void 0 : _a2.cache) || config.cache;
@@ -245419,12 +247365,9 @@ ${next}` : out;
245419
247365
  };
245420
247366
  getMaxParallelFileOps = (config) => {
245421
247367
  const maxParallelFileOps = config.maxParallelFileOps;
245422
- if (typeof maxParallelFileOps === "number") {
245423
- if (maxParallelFileOps <= 0)
245424
- return Infinity;
245425
- return maxParallelFileOps;
245426
- }
245427
- return 20;
247368
+ if (typeof maxParallelFileOps !== "number" || maxParallelFileOps <= 0)
247369
+ return Infinity;
247370
+ return maxParallelFileOps;
245428
247371
  };
245429
247372
  getModuleContext = (config, context) => {
245430
247373
  const configModuleContext = config.moduleContext;
@@ -245765,16 +247708,16 @@ var import_typescript72 = __toESM(require_typescript_5_8_3_bundle_cache_min());
245765
247708
 
245766
247709
  // src/version.ts
245767
247710
  init_import_meta_url();
245768
- var buildId = "1770991766";
247711
+ var buildId = "1771605342";
245769
247712
  var minfyJsId = "terser5.37.0_7";
245770
247713
  var optimizeCssId = "autoprefixer10.4.19_postcss8.5.6_7";
245771
247714
  var parse5Version = "7.2.1";
245772
- var rollupVersion = "4.34.9";
247715
+ var rollupVersion = "4.44.0";
245773
247716
  var jqueryVersion = "4.0.0-pre";
245774
247717
  var terserVersion = "5.37.0";
245775
247718
  var typescriptVersion = "5.8.3";
245776
- var vermoji = "\u{1F452}";
245777
- var version = "4.43.0";
247719
+ var vermoji = "\u{1F3F9}";
247720
+ var version = "4.43.1";
245778
247721
  var versions = {
245779
247722
  stencil: version,
245780
247723
  parse5: parse5Version,
@@ -251654,11 +253597,11 @@ function build$3(options) {
251654
253597
  return options.group ? groupFiles : empty;
251655
253598
  }
251656
253599
  var resolveSymlinksAsync = function(path7, state, callback$1) {
251657
- const { queue, fs: fs2, options: { suppressErrors } } = state;
253600
+ const { queue, fs: fs3, options: { suppressErrors } } = state;
251658
253601
  queue.enqueue();
251659
- fs2.realpath(path7, (error2, resolvedPath) => {
253602
+ fs3.realpath(path7, (error2, resolvedPath) => {
251660
253603
  if (error2) return queue.dequeue(suppressErrors ? null : error2, state);
251661
- fs2.stat(resolvedPath, (error$1, stat2) => {
253604
+ fs3.stat(resolvedPath, (error$1, stat2) => {
251662
253605
  if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
251663
253606
  if (stat2.isDirectory() && isRecursive(path7, resolvedPath, state)) return queue.dequeue(null, state);
251664
253607
  callback$1(stat2, resolvedPath);
@@ -251667,11 +253610,11 @@ var resolveSymlinksAsync = function(path7, state, callback$1) {
251667
253610
  });
251668
253611
  };
251669
253612
  var resolveSymlinks = function(path7, state, callback$1) {
251670
- const { queue, fs: fs2, options: { suppressErrors } } = state;
253613
+ const { queue, fs: fs3, options: { suppressErrors } } = state;
251671
253614
  queue.enqueue();
251672
253615
  try {
251673
- const resolvedPath = fs2.realpathSync(path7);
251674
- const stat2 = fs2.statSync(resolvedPath);
253616
+ const resolvedPath = fs3.realpathSync(path7);
253617
+ const stat2 = fs3.statSync(resolvedPath);
251675
253618
  if (stat2.isDirectory() && isRecursive(path7, resolvedPath, state)) return;
251676
253619
  callback$1(stat2, resolvedPath);
251677
253620
  } catch (e) {
@@ -251741,22 +253684,22 @@ var readdirOpts = { withFileTypes: true };
251741
253684
  var walkAsync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
251742
253685
  state.queue.enqueue();
251743
253686
  if (currentDepth < 0) return state.queue.dequeue(null, state);
251744
- const { fs: fs2 } = state;
253687
+ const { fs: fs3 } = state;
251745
253688
  state.visited.push(crawlPath);
251746
253689
  state.counts.directories++;
251747
- fs2.readdir(crawlPath || ".", readdirOpts, (error2, entries = []) => {
253690
+ fs3.readdir(crawlPath || ".", readdirOpts, (error2, entries = []) => {
251748
253691
  callback$1(entries, directoryPath, currentDepth);
251749
253692
  state.queue.dequeue(state.options.suppressErrors ? null : error2, state);
251750
253693
  });
251751
253694
  };
251752
253695
  var walkSync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
251753
- const { fs: fs2 } = state;
253696
+ const { fs: fs3 } = state;
251754
253697
  if (currentDepth < 0) return;
251755
253698
  state.visited.push(crawlPath);
251756
253699
  state.counts.directories++;
251757
253700
  let entries = [];
251758
253701
  try {
251759
- entries = fs2.readdirSync(crawlPath || ".", readdirOpts);
253702
+ entries = fs3.readdirSync(crawlPath || ".", readdirOpts);
251760
253703
  } catch (e) {
251761
253704
  if (!state.options.suppressErrors) throw e;
251762
253705
  }
@@ -256148,8 +258091,8 @@ init_parseAst();
256148
258091
  var import_native3 = __toESM(require_native(), 1);
256149
258092
  /*
256150
258093
  @license
256151
- Rollup.js v4.34.9
256152
- Sat, 01 Mar 2025 07:32:06 GMT - commit 0ab9b9772e24dfe9ef08bfce3132e99a15b793f6
258094
+ Rollup.js v4.44.0
258095
+ Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
256153
258096
 
256154
258097
  https://github.com/rollup/rollup
256155
258098
 
@@ -257671,7 +259614,7 @@ var extTransformsPlugin = (config, compilerCtx, buildCtx) => {
257671
259614
 
257672
259615
  // src/compiler/bundle/file-load-plugin.ts
257673
259616
  init_import_meta_url();
257674
- var fileLoadPlugin = (fs2) => {
259617
+ var fileLoadPlugin = (fs3) => {
257675
259618
  return {
257676
259619
  name: "fileLoadPlugin",
257677
259620
  load(id) {
@@ -257679,7 +259622,7 @@ var fileLoadPlugin = (fs2) => {
257679
259622
  if (isDtsFile(fsFilePath)) {
257680
259623
  return "";
257681
259624
  }
257682
- return fs2.readFile(fsFilePath);
259625
+ return fs3.readFile(fsFilePath);
257683
259626
  }
257684
259627
  };
257685
259628
  };
@@ -257861,7 +259804,7 @@ var IS_CASE_SENSITIVE_FILE_NAMES = !IS_WINDOWS_ENV;
257861
259804
 
257862
259805
  // src/compiler/sys/typescript/typescript-sys.ts
257863
259806
  var patchTsSystemFileSystem = (config, compilerSys, inMemoryFs, tsSys) => {
257864
- const realpath3 = (path7) => {
259807
+ const realpath2 = (path7) => {
257865
259808
  const rp = compilerSys.realpathSync(path7);
257866
259809
  if (isString(rp)) {
257867
259810
  return rp;
@@ -257941,7 +259884,7 @@ var patchTsSystemFileSystem = (config, compilerSys, inMemoryFs, tsSys) => {
257941
259884
  cwd,
257942
259885
  depth,
257943
259886
  getAccessibleFileSystemEntries,
257944
- realpath3
259887
+ realpath2
257945
259888
  );
257946
259889
  };
257947
259890
  tsSys.readFile = (filePath) => {
@@ -276231,7 +278174,7 @@ var hasChangedImportContent = async (config, compilerCtx, buildCtx, filePath, co
276231
278174
  if (isChangedImport) {
276232
278175
  return true;
276233
278176
  }
276234
- const promises = cssImports.map(async (cssImportData) => {
278177
+ const promises2 = cssImports.map(async (cssImportData) => {
276235
278178
  try {
276236
278179
  const content2 = await compilerCtx.fs.readFile(cssImportData.filePath);
276237
278180
  return hasChangedImportFile(config, compilerCtx, buildCtx, cssImportData.filePath, content2, checkedFiles);
@@ -276239,7 +278182,7 @@ var hasChangedImportContent = async (config, compilerCtx, buildCtx, filePath, co
276239
278182
  return false;
276240
278183
  }
276241
278184
  });
276242
- const results = await Promise.all(promises);
278185
+ const results = await Promise.all(promises2);
276243
278186
  return results.includes(true);
276244
278187
  };
276245
278188
 
@@ -281244,19 +283187,19 @@ var Cache = class {
281244
283187
  if (diff < ONE_DAY) {
281245
283188
  return;
281246
283189
  }
281247
- const fs2 = this.cacheFs.sys;
281248
- const cachedFileNames = await fs2.readDir(this.buildCacheDir);
283190
+ const fs3 = this.cacheFs.sys;
283191
+ const cachedFileNames = await fs3.readDir(this.buildCacheDir);
281249
283192
  const cachedFilePaths = cachedFileNames.map((f) => join(this.buildCacheDir, f));
281250
283193
  let totalCleared = 0;
281251
- const promises = cachedFilePaths.map(async (filePath) => {
281252
- const stat2 = await fs2.stat(filePath);
283194
+ const promises2 = cachedFilePaths.map(async (filePath) => {
283195
+ const stat2 = await fs3.stat(filePath);
281253
283196
  const lastModified = stat2.mtimeMs;
281254
283197
  if (lastModified && now - lastModified > ONE_WEEK) {
281255
- await fs2.removeFile(filePath);
283198
+ await fs3.removeFile(filePath);
281256
283199
  totalCleared++;
281257
283200
  }
281258
283201
  });
281259
- await Promise.all(promises);
283202
+ await Promise.all(promises2);
281260
283203
  this.logger.debug(`clearExpiredCache, cachedFileNames: ${cachedFileNames.length}, totalCleared: ${totalCleared}`);
281261
283204
  }
281262
283205
  this.logger.debug(`clearExpiredCache, set last clear`);
@@ -281356,7 +283299,7 @@ var createInMemoryFs = (sys) => {
281356
283299
  }
281357
283300
  return dirs2;
281358
283301
  }, []);
281359
- const allFsItems = await Promise.all(dirs.map((dir) => readdir2(dir, { recursive: true })));
283302
+ const allFsItems = await Promise.all(dirs.map((dir) => readdir(dir, { recursive: true })));
281360
283303
  const reducedItems = [];
281361
283304
  for (const fsItems of allFsItems) {
281362
283305
  for (const f of fsItems) {
@@ -281381,7 +283324,7 @@ var createInMemoryFs = (sys) => {
281381
283324
  item.queueDeleteFromDisk = false;
281382
283325
  });
281383
283326
  };
281384
- const readdir2 = async (dirPath, opts = {}) => {
283327
+ const readdir = async (dirPath, opts = {}) => {
281385
283328
  dirPath = normalizePath(dirPath);
281386
283329
  const collectedPaths = [];
281387
283330
  if (opts.inMemoryOnly === true) {
@@ -281465,7 +283408,7 @@ var createInMemoryFs = (sys) => {
281465
283408
  }
281466
283409
  return false;
281467
283410
  };
281468
- const readFile3 = async (filePath, opts) => {
283411
+ const readFile2 = async (filePath, opts) => {
281469
283412
  if (opts == null || opts.useCache === true || opts.useCache === void 0) {
281470
283413
  const item2 = getItem(filePath);
281471
283414
  if (item2.exists && typeof item2.fileText === "string") {
@@ -281523,7 +283466,7 @@ var createInMemoryFs = (sys) => {
281523
283466
  item.queueDeleteFromDisk = true;
281524
283467
  }
281525
283468
  try {
281526
- const dirItems = await readdir2(dirPath, { recursive: true });
283469
+ const dirItems = await readdir(dirPath, { recursive: true });
281527
283470
  await Promise.all(
281528
283471
  dirItems.map((item2) => {
281529
283472
  if (item2.relPath.endsWith(".gitkeep")) {
@@ -281601,7 +283544,7 @@ var createInMemoryFs = (sys) => {
281601
283544
  size: item.size
281602
283545
  };
281603
283546
  };
281604
- const writeFile2 = async (filePath, content, opts) => {
283547
+ const writeFile = async (filePath, content, opts) => {
281605
283548
  if (typeof filePath !== "string") {
281606
283549
  throw new Error(`writeFile, invalid filePath: ${filePath}`);
281607
283550
  }
@@ -281670,11 +283613,11 @@ var createInMemoryFs = (sys) => {
281670
283613
  const writes = [];
281671
283614
  if (isIterable(files)) {
281672
283615
  files.forEach((content, filePath) => {
281673
- writes.push(writeFile2(filePath, content, opts));
283616
+ writes.push(writeFile(filePath, content, opts));
281674
283617
  });
281675
283618
  } else {
281676
283619
  Object.keys(files).map((filePath) => {
281677
- writes.push(writeFile2(filePath, files[filePath], opts));
283620
+ writes.push(writeFile(filePath, files[filePath], opts));
281678
283621
  });
281679
283622
  }
281680
283623
  return Promise.all(writes);
@@ -281879,14 +283822,14 @@ var createInMemoryFs = (sys) => {
281879
283822
  getBuildOutputs,
281880
283823
  getItem,
281881
283824
  getMemoryStats,
281882
- readFile: readFile3,
283825
+ readFile: readFile2,
281883
283826
  readFileSync: readFileSync2,
281884
- readdir: readdir2,
283827
+ readdir,
281885
283828
  remove: remove2,
281886
283829
  stat: stat2,
281887
283830
  statSync: statSync2,
281888
283831
  sys,
281889
- writeFile: writeFile2,
283832
+ writeFile,
281890
283833
  writeFiles
281891
283834
  };
281892
283835
  };
@@ -283105,12 +285048,12 @@ var nodeRequire = (id) => {
283105
285048
  diagnostics: []
283106
285049
  };
283107
285050
  try {
283108
- const fs2 = require("fs");
285051
+ const fs3 = require("fs");
283109
285052
  const path7 = require("path");
283110
285053
  results.id = path7.resolve(id);
283111
285054
  delete require.cache[results.id];
283112
285055
  require.extensions[".ts"] = (module2, fileName) => {
283113
- let sourceText = fs2.readFileSync(fileName, "utf8");
285056
+ let sourceText = fs3.readFileSync(fileName, "utf8");
283114
285057
  if (fileName.endsWith(".ts")) {
283115
285058
  const tsResults = import_typescript67.default.transpileModule(sourceText, {
283116
285059
  fileName,
@@ -284944,7 +286887,7 @@ var createSystem = (c) => {
284944
286887
  }
284945
286888
  return void 0;
284946
286889
  };
284947
- const readFile3 = async (p) => readFileSync2(p);
286890
+ const readFile2 = async (p) => readFileSync2(p);
284948
286891
  const realpathSync2 = (p) => {
284949
286892
  const results = {
284950
286893
  path: normalize4(p),
@@ -284952,7 +286895,7 @@ var createSystem = (c) => {
284952
286895
  };
284953
286896
  return results;
284954
286897
  };
284955
- const realpath3 = async (p) => realpathSync2(p);
286898
+ const realpath2 = async (p) => realpathSync2(p);
284956
286899
  const rename = async (oldPath, newPath) => {
284957
286900
  oldPath = normalizePath(oldPath);
284958
286901
  newPath = normalizePath(newPath);
@@ -285235,7 +287178,7 @@ var createSystem = (c) => {
285235
287178
  return results;
285236
287179
  };
285237
287180
  const fetch2 = typeof self !== "undefined" ? self == null ? void 0 : self.fetch : typeof window !== "undefined" ? window == null ? void 0 : window.fetch : typeof global !== "undefined" ? global == null ? void 0 : global.fetch : void 0;
285238
- const writeFile2 = async (p, data) => writeFileSync(p, data);
287181
+ const writeFile = async (p, data) => writeFileSync(p, data);
285239
287182
  const tmpDirSync = () => "/.tmp";
285240
287183
  const tick = Promise.resolve();
285241
287184
  const nextTick2 = (cb) => tick.then(cb);
@@ -285295,9 +287238,9 @@ var createSystem = (c) => {
285295
287238
  platformPath: import_path67.default,
285296
287239
  readDir,
285297
287240
  readDirSync,
285298
- readFile: readFile3,
287241
+ readFile: readFile2,
285299
287242
  readFileSync: readFileSync2,
285300
- realpath: realpath3,
287243
+ realpath: realpath2,
285301
287244
  realpathSync: realpathSync2,
285302
287245
  removeDestroy,
285303
287246
  rename,
@@ -285313,7 +287256,7 @@ var createSystem = (c) => {
285313
287256
  watchDirectory,
285314
287257
  watchFile,
285315
287258
  watchTimeout: fileWatchTimeout,
285316
- writeFile: writeFile2,
287259
+ writeFile,
285317
287260
  writeFileSync,
285318
287261
  generateContentHash,
285319
287262
  // no threading when we're running in-memory