vite 6.1.0 → 6.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,13 @@ import path$d, { posix as posix$1, isAbsolute as isAbsolute$1, join as join$1, r
4
4
  import fsp, { constants as constants$9 } from 'node:fs/promises';
5
5
  import require$$1$1, { fileURLToPath as fileURLToPath$1, URL as URL$3, pathToFileURL as pathToFileURL$1 } from 'node:url';
6
6
  import { promisify as promisify$4, format as format$2, inspect, stripVTControlCharacters } from 'node:util';
7
- import { performance } from 'node:perf_hooks';
7
+ import { performance as performance$1 } from 'node:perf_hooks';
8
8
  import require$$0$6, { createRequire as createRequire$1, builtinModules } from 'node:module';
9
9
  import crypto$2 from 'node:crypto';
10
10
  import esbuild, { transform as transform$1, formatMessages, build as build$b } from 'esbuild';
11
- import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, DEP_VERSION_RE, SPECIAL_QUERY_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, defaultAllowedOrigins, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS } from '../constants.js';
12
- import require$$0$2, { posix, win32, isAbsolute, resolve as resolve$3, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join, sep } from 'path';
13
- import require$$0$3, { existsSync, readFileSync, statSync, readdirSync } from 'fs';
11
+ import { CLIENT_ENTRY, wildcardHosts, loopbackHosts, OPTIMIZABLE_ENTRY_RE, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, DEP_VERSION_RE, SPECIAL_QUERY_RE, DEV_PROD_CONDITION, KNOWN_ASSET_TYPES, JS_TYPES_RE, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, defaultAllowedOrigins, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS } from '../constants.js';
12
+ import require$$0$2, { posix, isAbsolute, resolve as resolve$3, win32, relative as relative$1, join, dirname as dirname$1, extname, basename as basename$1, sep } from 'path';
13
+ import require$$0$3, { statSync, existsSync, readFileSync, readdirSync } from 'fs';
14
14
  import childProcess$2, { exec, execFile, execSync } from 'node:child_process';
15
15
  import { createServer as createServer$3, STATUS_CODES, get as get$2 } from 'node:http';
16
16
  import { createServer as createServer$2, get as get$1 } from 'node:https';
@@ -24,6 +24,7 @@ import require$$0$8 from 'stream';
24
24
  import require$$2 from 'os';
25
25
  import require$$2$1 from 'child_process';
26
26
  import os$3 from 'node:os';
27
+ import net$1 from 'node:net';
27
28
  import { promises } from 'node:dns';
28
29
  import { ModuleRunner, ESModulesEvaluator } from 'vite/module-runner';
29
30
  import { parseAstAsync, parseAst } from 'rollup/parseAst';
@@ -40,7 +41,6 @@ import zlib$1 from 'zlib';
40
41
  import require$$0$9 from 'buffer';
41
42
  import require$$1$3 from 'https';
42
43
  import require$$4$2 from 'tls';
43
- import net$1 from 'node:net';
44
44
  import require$$4$3 from 'assert';
45
45
  import * as qs from 'node:querystring';
46
46
  import { gzip } from 'node:zlib';
@@ -1641,7 +1641,7 @@ const parse$h = (input, options) => {
1641
1641
  }
1642
1642
 
1643
1643
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1644
- const end = rest[1] !== undefined ? '|$' : '';
1644
+ const end = rest[1] !== void 0 ? '|$' : '';
1645
1645
 
1646
1646
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1647
1647
  prior.output = `(?:${prior.output}`;
@@ -2765,7 +2765,7 @@ const dataToEsm = function dataToEsm(data, options = {}) {
2765
2765
  }
2766
2766
  let maxUnderbarPrefixLength = 0;
2767
2767
  for (const key of Object.keys(data)) {
2768
- const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === undefined ? undefined : _a[0].length) !== null && _b !== undefined ? _b : 0;
2768
+ const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
2769
2769
  if (underbarPrefixLength > maxUnderbarPrefixLength) {
2770
2770
  maxUnderbarPrefixLength = underbarPrefixLength;
2771
2771
  }
@@ -2843,7 +2843,7 @@ var walker = {};
2843
2843
  var utils$8 = {};
2844
2844
 
2845
2845
  Object.defineProperty(utils$8, "__esModule", { value: true });
2846
- utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath = undefined;
2846
+ utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath = void 0;
2847
2847
  const path_1$4 = require$$0$2;
2848
2848
  function cleanPath(path) {
2849
2849
  let normalized = (0, path_1$4.normalize)(path);
@@ -2877,7 +2877,7 @@ utils$8.normalizePath = normalizePath$5;
2877
2877
  var joinPath$2 = {};
2878
2878
 
2879
2879
  Object.defineProperty(joinPath$2, "__esModule", { value: true });
2880
- joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath = undefined;
2880
+ joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath = void 0;
2881
2881
  const path_1$3 = require$$0$2;
2882
2882
  const utils_1$1 = utils$8;
2883
2883
  function joinPathWithBasePath(filename, directoryPath) {
@@ -2915,7 +2915,7 @@ joinPath$2.build = build$a;
2915
2915
  var pushDirectory$2 = {};
2916
2916
 
2917
2917
  Object.defineProperty(pushDirectory$2, "__esModule", { value: true });
2918
- pushDirectory$2.build = undefined;
2918
+ pushDirectory$2.build = void 0;
2919
2919
  function pushDirectoryWithRelativePath(root) {
2920
2920
  return function (directoryPath, paths) {
2921
2921
  paths.push(directoryPath.substring(root.length) || ".");
@@ -2954,7 +2954,7 @@ pushDirectory$2.build = build$9;
2954
2954
  var pushFile$2 = {};
2955
2955
 
2956
2956
  Object.defineProperty(pushFile$2, "__esModule", { value: true });
2957
- pushFile$2.build = undefined;
2957
+ pushFile$2.build = void 0;
2958
2958
  const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
2959
2959
  if (filters.every((filter) => filter(filename, false)))
2960
2960
  counts.files++;
@@ -2989,7 +2989,7 @@ pushFile$2.build = build$8;
2989
2989
  var getArray$2 = {};
2990
2990
 
2991
2991
  Object.defineProperty(getArray$2, "__esModule", { value: true });
2992
- getArray$2.build = undefined;
2992
+ getArray$2.build = void 0;
2993
2993
  const getArray$1 = (paths) => {
2994
2994
  return paths;
2995
2995
  };
@@ -3004,7 +3004,7 @@ getArray$2.build = build$7;
3004
3004
  var groupFiles$2 = {};
3005
3005
 
3006
3006
  Object.defineProperty(groupFiles$2, "__esModule", { value: true });
3007
- groupFiles$2.build = undefined;
3007
+ groupFiles$2.build = void 0;
3008
3008
  const groupFiles$1 = (groups, directory, files) => {
3009
3009
  groups.push({ directory, files, dir: directory });
3010
3010
  };
@@ -3016,11 +3016,11 @@ groupFiles$2.build = build$6;
3016
3016
 
3017
3017
  var resolveSymlink$1 = {};
3018
3018
 
3019
- var __importDefault$1 = (resolveSymlink$1.__importDefault) || function (mod) {
3019
+ var __importDefault$1 = (resolveSymlink$1 && resolveSymlink$1.__importDefault) || function (mod) {
3020
3020
  return (mod && mod.__esModule) ? mod : { "default": mod };
3021
3021
  };
3022
3022
  Object.defineProperty(resolveSymlink$1, "__esModule", { value: true });
3023
- resolveSymlink$1.build = undefined;
3023
+ resolveSymlink$1.build = void 0;
3024
3024
  const fs_1$1 = __importDefault$1(require$$0$3);
3025
3025
  const path_1$2 = require$$0$2;
3026
3026
  const resolveSymlinksAsync = function (path, state, callback) {
@@ -3086,7 +3086,7 @@ function isRecursiveUsingRealPaths(resolved, state) {
3086
3086
  var invokeCallback$1 = {};
3087
3087
 
3088
3088
  Object.defineProperty(invokeCallback$1, "__esModule", { value: true });
3089
- invokeCallback$1.build = undefined;
3089
+ invokeCallback$1.build = void 0;
3090
3090
  const onlyCountsSync = (state) => {
3091
3091
  return state.counts;
3092
3092
  };
@@ -3144,11 +3144,11 @@ invokeCallback$1.build = build$4;
3144
3144
 
3145
3145
  var walkDirectory$1 = {};
3146
3146
 
3147
- var __importDefault = (walkDirectory$1.__importDefault) || function (mod) {
3147
+ var __importDefault = (walkDirectory$1 && walkDirectory$1.__importDefault) || function (mod) {
3148
3148
  return (mod && mod.__esModule) ? mod : { "default": mod };
3149
3149
  };
3150
3150
  Object.defineProperty(walkDirectory$1, "__esModule", { value: true });
3151
- walkDirectory$1.build = undefined;
3151
+ walkDirectory$1.build = void 0;
3152
3152
  const fs_1 = __importDefault(require$$0$3);
3153
3153
  const readdirOpts = { withFileTypes: true };
3154
3154
  const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback) => {
@@ -3187,7 +3187,7 @@ walkDirectory$1.build = build$3;
3187
3187
  var queue = {};
3188
3188
 
3189
3189
  Object.defineProperty(queue, "__esModule", { value: true });
3190
- queue.Queue = undefined;
3190
+ queue.Queue = void 0;
3191
3191
  /**
3192
3192
  * This is a custom stateless queue to track concurrent async fs calls.
3193
3193
  * It increments a counter whenever a call is queued and decrements it
@@ -3212,7 +3212,7 @@ queue.Queue = Queue;
3212
3212
  var counter = {};
3213
3213
 
3214
3214
  Object.defineProperty(counter, "__esModule", { value: true });
3215
- counter.Counter = undefined;
3215
+ counter.Counter = void 0;
3216
3216
  class Counter {
3217
3217
  _files = 0;
3218
3218
  _directories = 0;
@@ -3238,7 +3238,7 @@ class Counter {
3238
3238
  }
3239
3239
  counter.Counter = Counter;
3240
3240
 
3241
- var __createBinding = (walker.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3241
+ var __createBinding = (walker && walker.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3242
3242
  if (k2 === undefined) k2 = k;
3243
3243
  var desc = Object.getOwnPropertyDescriptor(m, k);
3244
3244
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -3249,12 +3249,12 @@ var __createBinding = (walker.__createBinding) || (Object.create ? (function(o,
3249
3249
  if (k2 === undefined) k2 = k;
3250
3250
  o[k2] = m[k];
3251
3251
  }));
3252
- var __setModuleDefault = (walker.__setModuleDefault) || (Object.create ? (function(o, v) {
3252
+ var __setModuleDefault = (walker && walker.__setModuleDefault) || (Object.create ? (function(o, v) {
3253
3253
  Object.defineProperty(o, "default", { enumerable: true, value: v });
3254
3254
  }) : function(o, v) {
3255
3255
  o["default"] = v;
3256
3256
  });
3257
- var __importStar = (walker.__importStar) || function (mod) {
3257
+ var __importStar = (walker && walker.__importStar) || function (mod) {
3258
3258
  if (mod && mod.__esModule) return mod;
3259
3259
  var result = {};
3260
3260
  if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
@@ -3262,7 +3262,7 @@ var __importStar = (walker.__importStar) || function (mod) {
3262
3262
  return result;
3263
3263
  };
3264
3264
  Object.defineProperty(walker, "__esModule", { value: true });
3265
- walker.Walker = undefined;
3265
+ walker.Walker = void 0;
3266
3266
  const path_1$1 = require$$0$2;
3267
3267
  const utils_1 = utils$8;
3268
3268
  const joinPath = __importStar(joinPath$2);
@@ -3343,7 +3343,7 @@ class Walker {
3343
3343
  this.resolveSymlink(path, this.state, (stat, resolvedPath) => {
3344
3344
  if (stat.isDirectory()) {
3345
3345
  resolvedPath = (0, utils_1.normalizePath)(resolvedPath, this.state.options);
3346
- if (exclude && exclude(entry.name, resolvedPath))
3346
+ if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path + pathSeparator))
3347
3347
  return;
3348
3348
  this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path + pathSeparator, depth - 1, this.walk);
3349
3349
  }
@@ -3363,7 +3363,7 @@ class Walker {
3363
3363
  walker.Walker = Walker;
3364
3364
 
3365
3365
  Object.defineProperty(async, "__esModule", { value: true });
3366
- async.callback = async.promise = undefined;
3366
+ async.callback = async.promise = void 0;
3367
3367
  const walker_1$1 = walker;
3368
3368
  function promise(root, options) {
3369
3369
  return new Promise((resolve, reject) => {
@@ -3384,7 +3384,7 @@ async.callback = callback;
3384
3384
  var sync$2 = {};
3385
3385
 
3386
3386
  Object.defineProperty(sync$2, "__esModule", { value: true });
3387
- sync$2.sync = undefined;
3387
+ sync$2.sync = void 0;
3388
3388
  const walker_1 = walker;
3389
3389
  function sync$1(root, options) {
3390
3390
  const walker = new walker_1.Walker(root, options);
@@ -3393,7 +3393,7 @@ function sync$1(root, options) {
3393
3393
  sync$2.sync = sync$1;
3394
3394
 
3395
3395
  Object.defineProperty(apiBuilder, "__esModule", { value: true });
3396
- apiBuilder.APIBuilder = undefined;
3396
+ apiBuilder.APIBuilder = void 0;
3397
3397
  const async_1 = async;
3398
3398
  const sync_1 = sync$2;
3399
3399
  class APIBuilder {
@@ -3416,7 +3416,7 @@ class APIBuilder {
3416
3416
  apiBuilder.APIBuilder = APIBuilder;
3417
3417
 
3418
3418
  Object.defineProperty(builder, "__esModule", { value: true });
3419
- builder.Builder = undefined;
3419
+ builder.Builder = void 0;
3420
3420
  const path_1 = require$$0$2;
3421
3421
  const api_builder_1 = apiBuilder;
3422
3422
  var pm = null;
@@ -3551,12 +3551,12 @@ class Builder {
3551
3551
  }
3552
3552
  builder.Builder = Builder;
3553
3553
 
3554
- var types$1 = {};
3554
+ var types = {};
3555
3555
 
3556
- Object.defineProperty(types$1, "__esModule", { value: true });
3556
+ Object.defineProperty(types, "__esModule", { value: true });
3557
3557
 
3558
3558
  (function (exports) {
3559
- var __createBinding = (dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3559
+ var __createBinding = (dist && dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3560
3560
  if (k2 === undefined) k2 = k;
3561
3561
  var desc = Object.getOwnPropertyDescriptor(m, k);
3562
3562
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -3567,14 +3567,14 @@ Object.defineProperty(types$1, "__esModule", { value: true });
3567
3567
  if (k2 === undefined) k2 = k;
3568
3568
  o[k2] = m[k];
3569
3569
  }));
3570
- var __exportStar = (dist.__exportStar) || function(m, exports) {
3570
+ var __exportStar = (dist && dist.__exportStar) || function(m, exports) {
3571
3571
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3572
3572
  };
3573
3573
  Object.defineProperty(exports, "__esModule", { value: true });
3574
- exports.fdir = undefined;
3574
+ exports.fdir = void 0;
3575
3575
  const builder_1 = builder;
3576
3576
  Object.defineProperty(exports, "fdir", { enumerable: true, get: function () { return builder_1.Builder; } });
3577
- __exportStar(types$1, exports);
3577
+ __exportStar(types, exports);
3578
3578
  } (dist));
3579
3579
 
3580
3580
  const comma = ','.charCodeAt(0);
@@ -7815,7 +7815,7 @@ function cast$2(map) {
7815
7815
  function encodedMappings(map) {
7816
7816
  var _a;
7817
7817
  var _b;
7818
- return ((_a = (_b = cast$2(map))._encoded) !== null && _a !== undefined ? _a : (_b._encoded = encode$1(cast$2(map)._decoded)));
7818
+ return ((_a = (_b = cast$2(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = encode$1(cast$2(map)._decoded)));
7819
7819
  }
7820
7820
  /**
7821
7821
  * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
@@ -8255,7 +8255,7 @@ function build$2(map, loader, importer, importerDepth) {
8255
8255
  // Use the provided loader callback to retrieve the file's sourcemap.
8256
8256
  // TODO: We should eventually support async loading of sourcemap files.
8257
8257
  const sourceMap = loader(ctx.source, ctx);
8258
- const { source, content, ignore } = ctx;
8258
+ const { source} = ctx;
8259
8259
  // If there is a sourcemap, then we need to recurse into it to load its source files.
8260
8260
  if (sourceMap)
8261
8261
  return build$2(new TraceMap(sourceMap, source), loader, source, depth);
@@ -8263,8 +8263,8 @@ function build$2(map, loader, importer, importerDepth) {
8263
8263
  // The contents of this unmodified source file can be overridden via the loader context,
8264
8264
  // allowing it to be explicitly null or a string. If it remains undefined, we fall back to
8265
8265
  // the importing sourcemap's `sourcesContent` field.
8266
- const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
8267
- const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
8266
+ const sourceContent = sourcesContent ? sourcesContent[i] : null;
8267
+ const ignored = ignoreList ? ignoreList.includes(i) : false;
8268
8268
  return OriginalSource(source, sourceContent, ignored);
8269
8269
  });
8270
8270
  return MapSource(map, children);
@@ -8316,7 +8316,7 @@ function remapping(input, loader, options) {
8316
8316
 
8317
8317
  var src$3 = {exports: {}};
8318
8318
 
8319
- var browser$2 = {exports: {}};
8319
+ var browser$1 = {exports: {}};
8320
8320
 
8321
8321
  /**
8322
8322
  * Helpers.
@@ -8794,7 +8794,7 @@ function requireCommon () {
8794
8794
  var hasRequiredBrowser$1;
8795
8795
 
8796
8796
  function requireBrowser$1 () {
8797
- if (hasRequiredBrowser$1) return browser$2.exports;
8797
+ if (hasRequiredBrowser$1) return browser$1.exports;
8798
8798
  hasRequiredBrowser$1 = 1;
8799
8799
  (function (module, exports) {
8800
8800
  /**
@@ -9067,8 +9067,8 @@ function requireBrowser$1 () {
9067
9067
  return '[UnexpectedJSONParseError]: ' + error.message;
9068
9068
  }
9069
9069
  };
9070
- } (browser$2, browser$2.exports));
9071
- return browser$2.exports;
9070
+ } (browser$1, browser$1.exports));
9071
+ return browser$1.exports;
9072
9072
  }
9073
9073
 
9074
9074
  var node$1 = {exports: {}};
@@ -9358,7 +9358,7 @@ if (typeof process === 'undefined' || process.type === 'renderer' || process.bro
9358
9358
  }
9359
9359
 
9360
9360
  var srcExports$1 = src$3.exports;
9361
- var debug$i = /*@__PURE__*/getDefaultExportFromCjs(srcExports$1);
9361
+ var debug$j = /*@__PURE__*/getDefaultExportFromCjs(srcExports$1);
9362
9362
 
9363
9363
  let pnp;
9364
9364
  if (process.versions.pnp) {
@@ -9670,7 +9670,7 @@ const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version
9670
9670
  const filter = process.env.VITE_DEBUG_FILTER;
9671
9671
  const DEBUG = process.env.DEBUG;
9672
9672
  function createDebugger(namespace, options = {}) {
9673
- const log = debug$i(namespace);
9673
+ const log = debug$j(namespace);
9674
9674
  const { onlyWhenFocused, depth } = options;
9675
9675
  if (depth && log.inspectOpts && log.inspectOpts.depth == null) {
9676
9676
  log.inspectOpts.depth = options.depth;
@@ -9799,7 +9799,7 @@ async function asyncReplace(input, re, replacer) {
9799
9799
  return rewritten;
9800
9800
  }
9801
9801
  function timeFrom(start, subtract = 0) {
9802
- const time = performance.now() - start - subtract;
9802
+ const time = performance$1.now() - start - subtract;
9803
9803
  const timeString = (time.toFixed(2) + `ms`).padEnd(5, " ");
9804
9804
  if (time < 10) {
9805
9805
  return colors$1.green(timeString);
@@ -9900,7 +9900,7 @@ function numberToPos(source, offset) {
9900
9900
  function generateCodeFrame(source, start = 0, end) {
9901
9901
  start = Math.max(posToNumber(source, start), 0);
9902
9902
  end = Math.min(
9903
- end !== undefined ? posToNumber(source, end) : start,
9903
+ end !== void 0 ? posToNumber(source, end) : start,
9904
9904
  source.length
9905
9905
  );
9906
9906
  const lines = source.split(splitRE);
@@ -10156,7 +10156,7 @@ function combineSourcemaps(filename, sourcemapList) {
10156
10156
  });
10157
10157
  let map;
10158
10158
  let mapIndex = 1;
10159
- const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === undefined;
10159
+ const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === void 0;
10160
10160
  if (useArrayInterface) {
10161
10161
  map = remapping(sourcemapList, () => null);
10162
10162
  } else {
@@ -10187,21 +10187,21 @@ async function getLocalhostAddressIfDiffersFromDNS() {
10187
10187
  promises.lookup("localhost", { verbatim: true })
10188
10188
  ]);
10189
10189
  const isSame = nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address;
10190
- return isSame ? undefined : nodeResult.address;
10190
+ return isSame ? void 0 : nodeResult.address;
10191
10191
  }
10192
10192
  function diffDnsOrderChange(oldUrls, newUrls) {
10193
10193
  return !(oldUrls === newUrls || oldUrls && newUrls && arrayEqual(oldUrls.local, newUrls.local) && arrayEqual(oldUrls.network, newUrls.network));
10194
10194
  }
10195
10195
  async function resolveHostname(optionsHost) {
10196
10196
  let host;
10197
- if (optionsHost === undefined || optionsHost === false) {
10197
+ if (optionsHost === void 0 || optionsHost === false) {
10198
10198
  host = "localhost";
10199
10199
  } else if (optionsHost === true) {
10200
- host = undefined;
10200
+ host = void 0;
10201
10201
  } else {
10202
10202
  host = optionsHost;
10203
10203
  }
10204
- let name = host === undefined || wildcardHosts.has(host) ? "localhost" : host;
10204
+ let name = host === void 0 || wildcardHosts.has(host) ? "localhost" : host;
10205
10205
  if (host === "localhost") {
10206
10206
  const localhostAddr = await getLocalhostAddressIfDiffersFromDNS();
10207
10207
  if (localhostAddr) {
@@ -10222,7 +10222,7 @@ async function resolveServerUrls(server, options, httpsOptions, config) {
10222
10222
  const protocol = options.https ? "https" : "http";
10223
10223
  const port = address.port;
10224
10224
  const base = config.rawBase === "./" || config.rawBase === "" ? "/" : config.rawBase;
10225
- if (hostname.host !== undefined && !wildcardHosts.has(hostname.host)) {
10225
+ if (hostname.host !== void 0 && !wildcardHosts.has(hostname.host)) {
10226
10226
  let hostnameName = hostname.name;
10227
10227
  if (hostnameName.includes(":")) {
10228
10228
  hostnameName = `[${hostnameName}]`;
@@ -10250,7 +10250,7 @@ async function resolveServerUrls(server, options, httpsOptions, config) {
10250
10250
  }
10251
10251
  });
10252
10252
  }
10253
- const cert = httpsOptions?.cert && !Array.isArray(httpsOptions.cert) ? new crypto$2.X509Certificate(httpsOptions.cert) : undefined;
10253
+ const cert = httpsOptions?.cert && !Array.isArray(httpsOptions.cert) ? new crypto$2.X509Certificate(httpsOptions.cert) : void 0;
10254
10254
  const hostnameFromCert = cert?.subjectAltName ? extractHostnamesFromSubjectAltName(cert.subjectAltName) : [];
10255
10255
  if (hostnameFromCert.length > 0) {
10256
10256
  const existings = /* @__PURE__ */ new Set([...local, ...network]);
@@ -10284,7 +10284,9 @@ function extractHostnamesFromSubjectAltName(subjectAltName) {
10284
10284
  /* for , */
10285
10285
  1
10286
10286
  ).trimStart();
10287
- if (name === "DNS" && value !== "[::1]") {
10287
+ if (name === "DNS" && // [::1] might be included but skip it as it's already included as a local address
10288
+ value !== "[::1]" && // skip *.IPv4 addresses, which is invalid
10289
+ !(value.startsWith("*.") && net$1.isIPv4(value.slice(2)))) {
10288
10290
  hostnames.push(value.replace("*", "vite"));
10289
10291
  }
10290
10292
  }
@@ -10354,9 +10356,9 @@ function mergeWithDefaultsRecursively(defaults, values) {
10354
10356
  const merged = defaults;
10355
10357
  for (const key in values) {
10356
10358
  const value = values[key];
10357
- if (value === undefined) continue;
10359
+ if (value === void 0) continue;
10358
10360
  const existing = merged[key];
10359
- if (existing === undefined) {
10361
+ if (existing === void 0) {
10360
10362
  merged[key] = value;
10361
10363
  continue;
10362
10364
  }
@@ -10574,7 +10576,7 @@ function createSerialPromiseQueue() {
10574
10576
  previousTask = depTasks;
10575
10577
  const [, result] = await depTasks;
10576
10578
  if (previousTask === depTasks) {
10577
- previousTask = undefined;
10579
+ previousTask = void 0;
10578
10580
  }
10579
10581
  return result;
10580
10582
  }
@@ -10655,7 +10657,7 @@ function clearScreen() {
10655
10657
  }
10656
10658
  let timeFormatter;
10657
10659
  function getTimeFormatter() {
10658
- timeFormatter ??= new Intl.DateTimeFormat(undefined, {
10660
+ timeFormatter ??= new Intl.DateTimeFormat(void 0, {
10659
10661
  hour: "numeric",
10660
10662
  minute: "numeric",
10661
10663
  second: "numeric"
@@ -10759,7 +10761,7 @@ function printServerUrls(urls, optionsHost, info) {
10759
10761
  for (const url of urls.network) {
10760
10762
  info(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: ${colorUrl(url)}`);
10761
10763
  }
10762
- if (urls.network.length === 0 && optionsHost === undefined) {
10764
+ if (urls.network.length === 0 && optionsHost === void 0) {
10763
10765
  info(
10764
10766
  colors$1.dim(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: use `) + colors$1.bold("--host") + colors$1.dim(" to expose")
10765
10767
  );
@@ -11358,16 +11360,16 @@ function pattern2regex(resolvedPattern, allowJs) {
11358
11360
 
11359
11361
  /**
11360
11362
  * replace tokens like ${configDir}
11361
- * @param {any} tsconfig
11362
- * @param {string} configDir
11363
- * @returns {any}
11364
- */
11365
- function replaceTokens(tsconfig, configDir) {
11366
- return JSON.parse(
11367
- JSON.stringify(tsconfig)
11368
- // replace ${configDir}
11369
- .replaceAll(/"\${configDir}/g, `"${native2posix(configDir)}`)
11370
- );
11363
+ * @param {import('./public.d.ts').TSConfckParseResult} result
11364
+ */
11365
+ function replaceTokens(result) {
11366
+ if (result.tsconfig) {
11367
+ result.tsconfig = JSON.parse(
11368
+ JSON.stringify(result.tsconfig)
11369
+ // replace ${configDir}
11370
+ .replaceAll(/"\${configDir}/g, `"${native2posix(path$d.dirname(result.tsconfigFile))}`)
11371
+ );
11372
+ }
11371
11373
  }
11372
11374
 
11373
11375
  /**
@@ -11379,7 +11381,7 @@ function replaceTokens(tsconfig, configDir) {
11379
11381
  */
11380
11382
  async function find(filename, options) {
11381
11383
  let dir = path$d.dirname(path$d.resolve(filename));
11382
- if (options?.ignoreNodeModules && isInNodeModules(dir)) {
11384
+ if (isInNodeModules(dir)) {
11383
11385
  return null;
11384
11386
  }
11385
11387
  const cache = options?.cache;
@@ -11646,7 +11648,7 @@ async function parse$f(filename, options) {
11646
11648
  result = await parseFile$1(tsconfigFile, cache, filename === tsconfigFile);
11647
11649
  await Promise.all([parseExtends(result, cache), parseReferences(result, options)]);
11648
11650
  }
11649
- result.tsconfig = replaceTokens(result.tsconfig, path$d.dirname(tsconfigFile));
11651
+ replaceTokens(result);
11650
11652
  resolve(resolveSolutionTSConfig(filename, result));
11651
11653
  } catch (e) {
11652
11654
  reject(e);
@@ -11752,6 +11754,7 @@ async function parseReferences(result, options) {
11752
11754
  await Promise.all(referenced.map((ref) => parseExtends(ref, options?.cache)));
11753
11755
  referenced.forEach((ref) => {
11754
11756
  ref.solution = result;
11757
+ replaceTokens(ref);
11755
11758
  });
11756
11759
  result.referenced = referenced;
11757
11760
  }
@@ -12162,7 +12165,7 @@ class TSConfckCache {
12162
12165
  #parsed = new Map();
12163
12166
  }
12164
12167
 
12165
- const debug$h = createDebugger("vite:esbuild");
12168
+ const debug$i = createDebugger("vite:esbuild");
12166
12169
  const IIFE_BEGIN_RE = /(?:const|var)\s+\S+\s*=\s*function\([^()]*\)\s*\{\s*"use strict";/;
12167
12170
  const validExtensionRE = /\.\w+$/;
12168
12171
  const jsxExtensionsRE = /\.(?:j|t)sx\b/;
@@ -12223,14 +12226,14 @@ async function transformWithEsbuild(code, filename, options, inMap, config, watc
12223
12226
  ...compilerOptionsForFile,
12224
12227
  ...tsconfigRaw?.compilerOptions
12225
12228
  };
12226
- if (compilerOptions.useDefineForClassFields === undefined && compilerOptions.target === undefined) {
12229
+ if (compilerOptions.useDefineForClassFields === void 0 && compilerOptions.target === void 0) {
12227
12230
  compilerOptions.useDefineForClassFields = false;
12228
12231
  }
12229
12232
  if (options) {
12230
- if (options.jsx) compilerOptions.jsx = undefined;
12231
- if (options.jsxFactory) compilerOptions.jsxFactory = undefined;
12232
- if (options.jsxFragment) compilerOptions.jsxFragmentFactory = undefined;
12233
- if (options.jsxImportSource) compilerOptions.jsxImportSource = undefined;
12233
+ if (options.jsx) compilerOptions.jsx = void 0;
12234
+ if (options.jsxFactory) compilerOptions.jsxFactory = void 0;
12235
+ if (options.jsxFragment) compilerOptions.jsxFragmentFactory = void 0;
12236
+ if (options.jsxImportSource) compilerOptions.jsxImportSource = void 0;
12234
12237
  }
12235
12238
  tsconfigRaw = {
12236
12239
  ...tsconfigRaw,
@@ -12266,7 +12269,7 @@ async function transformWithEsbuild(code, filename, options, inMap, config, watc
12266
12269
  map
12267
12270
  };
12268
12271
  } catch (e) {
12269
- debug$h?.(`esbuild error with options used: `, resolvedOptions);
12272
+ debug$i?.(`esbuild error with options used: `, resolvedOptions);
12270
12273
  if (e.errors) {
12271
12274
  e.frame = "";
12272
12275
  e.errors.forEach((m) => {
@@ -12315,7 +12318,7 @@ function esbuildPlugin(config) {
12315
12318
  code,
12316
12319
  id,
12317
12320
  transformOptions,
12318
- undefined,
12321
+ void 0,
12319
12322
  config,
12320
12323
  server?.watcher
12321
12324
  );
@@ -12346,7 +12349,7 @@ const rollupToEsbuildFormatMap = {
12346
12349
  // that `{ treeShaking: true }` removes a top-level no-side-effect variable
12347
12350
  // like: `var Lib = 1`, which becomes `` after esbuild transforming,
12348
12351
  // but thankfully rollup does not do this optimization now
12349
- iife: undefined
12352
+ iife: void 0
12350
12353
  };
12351
12354
  const buildEsbuildPlugin = () => {
12352
12355
  return {
@@ -12367,7 +12370,7 @@ const buildEsbuildPlugin = () => {
12367
12370
  code,
12368
12371
  chunk.fileName,
12369
12372
  options,
12370
- undefined,
12373
+ void 0,
12371
12374
  config
12372
12375
  );
12373
12376
  if (config.build.lib) {
@@ -12394,7 +12397,7 @@ function resolveEsbuildTranspileOptions(config, format) {
12394
12397
  charset: "utf8",
12395
12398
  ...esbuildOptions,
12396
12399
  loader: "js",
12397
- target: target || undefined,
12400
+ target: target || void 0,
12398
12401
  format: rollupToEsbuildFormatMap[format],
12399
12402
  supported: {
12400
12403
  ...defaultEsbuildSupported,
@@ -12473,9 +12476,7 @@ function getTSConfckCache(config) {
12473
12476
  }
12474
12477
  async function loadTsconfigJsonForFile(filename, config) {
12475
12478
  const { tsconfig, tsconfigFile } = await parse$f(filename, {
12476
- cache: getTSConfckCache(config),
12477
- ignoreNodeModules: true
12478
- });
12479
+ cache: getTSConfckCache(config)});
12479
12480
  return { tsconfigFile, tsconfig };
12480
12481
  }
12481
12482
  async function reloadOnTsconfigChange(server, changedFile) {
@@ -12844,7 +12845,7 @@ var WorkerWithFallback = class {
12844
12845
  /** @internal */
12845
12846
  _shouldUseFake;
12846
12847
  constructor(fn, options) {
12847
- this._disableReal = options.max !== undefined && options.max <= 0;
12848
+ this._disableReal = options.max !== void 0 && options.max <= 0;
12848
12849
  this._realWorker = new Worker(fn, options);
12849
12850
  this._fakeWorker = new FakeWorker(fn, options);
12850
12851
  this._shouldUseFake = options.shouldUseFake;
@@ -13110,6 +13111,7 @@ const mimes = {
13110
13111
  "jsonml": "application/jsonml+json",
13111
13112
  "jsx": "text/jsx",
13112
13113
  "jt": "model/jt",
13114
+ "jxl": "image/jxl",
13113
13115
  "jxr": "image/jxr",
13114
13116
  "jxra": "image/jxra",
13115
13117
  "jxrs": "image/jxrs",
@@ -13130,6 +13132,8 @@ const mimes = {
13130
13132
  "m1v": "video/mpeg",
13131
13133
  "m21": "application/mp21",
13132
13134
  "m2a": "audio/mpeg",
13135
+ "m2t": "video/mp2t",
13136
+ "m2ts": "video/mp2t",
13133
13137
  "m2v": "video/mpeg",
13134
13138
  "m3a": "audio/mpeg",
13135
13139
  "m4a": "audio/mp4",
@@ -13190,6 +13194,7 @@ const mimes = {
13190
13194
  "msm": "application/octet-stream",
13191
13195
  "msp": "application/octet-stream",
13192
13196
  "mtl": "model/mtl",
13197
+ "mts": "video/mp2t",
13193
13198
  "musd": "application/mmt-usd+xml",
13194
13199
  "mxf": "application/mxf",
13195
13200
  "mxmf": "audio/mobile-xmf",
@@ -13425,13 +13430,13 @@ function checkPublicFile(url, config) {
13425
13430
  const fileName = cleanUrl(url);
13426
13431
  const publicFiles = getPublicFiles(config);
13427
13432
  if (publicFiles) {
13428
- return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) : undefined;
13433
+ return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) : void 0;
13429
13434
  }
13430
13435
  const publicFile = normalizePath$3(path$d.join(publicDir, fileName));
13431
13436
  if (!publicFile.startsWith(withTrailingSlash(publicDir))) {
13432
13437
  return;
13433
13438
  }
13434
- return fs__default.existsSync(publicFile) ? publicFile : undefined;
13439
+ return fs__default.existsSync(publicFile) ? publicFile : void 0;
13435
13440
  }
13436
13441
 
13437
13442
  const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
@@ -13446,7 +13451,6 @@ function registerCustomMime() {
13446
13451
  mimes["cur"] = "image/x-icon";
13447
13452
  mimes["flac"] = "audio/flac";
13448
13453
  mimes["eot"] = "application/vnd.ms-fontobject";
13449
- mimes["jxl"] = "image/jxl";
13450
13454
  }
13451
13455
  function renderAssetUrlInJS(pluginContext, chunk, opts, code) {
13452
13456
  const { environment } = pluginContext;
@@ -13540,7 +13544,7 @@ function assetPlugin(config) {
13540
13544
  // Force rollup to keep this module from being shared between other entry points if it's an entrypoint.
13541
13545
  // If the resulting chunk is empty, it will be removed in generateBundle.
13542
13546
  moduleSideEffects: config.command === "build" && this.getModuleInfo(id)?.isEntry ? "no-treeshake" : false,
13543
- meta: config.command === "build" ? { "vite:asset": true } : undefined
13547
+ meta: config.command === "build" ? { "vite:asset": true } : void 0
13544
13548
  };
13545
13549
  },
13546
13550
  renderChunk(code, chunk, opts) {
@@ -13590,7 +13594,7 @@ async function fileToDevUrl(environment, id, skipBase = false) {
13590
13594
  if (svgExtRE.test(id)) {
13591
13595
  const file = publicFile || cleanUrl(id);
13592
13596
  const content = await fsp.readFile(file);
13593
- if (shouldInline(environment, file, id, content, undefined, undefined)) {
13597
+ if (shouldInline(environment, file, id, content, void 0, void 0)) {
13594
13598
  return assetToDataURL(environment, file, content);
13595
13599
  }
13596
13600
  }
@@ -13693,7 +13697,7 @@ function shouldInline(environment, file, id, content, buildPluginContext, forceI
13693
13697
  if (environment.config.build.lib) return true;
13694
13698
  if (buildPluginContext.getModuleInfo(id)?.isEntry) return false;
13695
13699
  }
13696
- if (forceInline !== undefined) return forceInline;
13700
+ if (forceInline !== void 0) return forceInline;
13697
13701
  if (file.endsWith(".html")) return false;
13698
13702
  if (file.endsWith(".svg") && id.includes("#")) return false;
13699
13703
  let limit;
@@ -13762,7 +13766,7 @@ function manifestPlugin() {
13762
13766
  function getInternalImports(imports) {
13763
13767
  const filteredImports = [];
13764
13768
  for (const file of imports) {
13765
- if (bundle[file] === undefined) {
13769
+ if (bundle[file] === void 0) {
13766
13770
  continue;
13767
13771
  }
13768
13772
  filteredImports.push(getChunkName(bundle[file]));
@@ -13847,7 +13851,7 @@ function manifestPlugin() {
13847
13851
  this.emitFile({
13848
13852
  fileName: typeof buildOptions.manifest === "string" ? buildOptions.manifest : ".vite/manifest.json",
13849
13853
  type: "asset",
13850
- source: JSON.stringify(sortObjectKeys(manifest), undefined, 2)
13854
+ source: JSON.stringify(sortObjectKeys(manifest), void 0, 2)
13851
13855
  });
13852
13856
  }
13853
13857
  }
@@ -13858,7 +13862,7 @@ function getChunkOriginalFileName(chunk, root, format) {
13858
13862
  let name = normalizePath$3(path$d.relative(root, chunk.facadeModuleId));
13859
13863
  if (format === "system" && !chunk.name.includes("-legacy")) {
13860
13864
  const ext = path$d.extname(name);
13861
- const endPos = ext.length !== 0 ? -ext.length : undefined;
13865
+ const endPos = ext.length !== 0 ? -ext.length : void 0;
13862
13866
  name = `${name.slice(0, endPos)}-legacy${ext}`;
13863
13867
  }
13864
13868
  return name.replace(/\0/g, "");
@@ -13907,7 +13911,7 @@ function dataURIPlugin() {
13907
13911
  }
13908
13912
 
13909
13913
  /* es-module-lexer 1.6.0 */
13910
- var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const o=[],D=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let D;C.ip()&&(D=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),o.push({n:D,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?undefined:E.slice(B,g),o=K?K[0]:"";D.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===o||"'"===o?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [o,D,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const E=()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LwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A;};const init=WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));
13914
+ var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const o=[],D=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let D;C.ip()&&(D=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),o.push({n:D,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?void 0:E.slice(B,g),o=K?K[0]:"";D.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===o||"'"===o?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [o,D,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const E=()=>{return A="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9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PC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A;};const init=WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));
13911
13915
 
13912
13916
  var convertSourceMap$1 = {};
13913
13917
 
@@ -14148,7 +14152,7 @@ var convertSourceMap$1 = {};
14148
14152
 
14149
14153
  var convertSourceMap = /*@__PURE__*/getDefaultExportFromCjs(convertSourceMap$1);
14150
14154
 
14151
- const debug$g = createDebugger("vite:sourcemap", {
14155
+ const debug$h = createDebugger("vite:sourcemap", {
14152
14156
  onlyWhenFocused: true
14153
14157
  });
14154
14158
  const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/;
@@ -14190,7 +14194,7 @@ async function injectSourcesContent(map, file, logger) {
14190
14194
  map.sourcesContent = sourcesContent;
14191
14195
  if (missingSources.length) {
14192
14196
  logger.warnOnce(`Sourcemap for "${file}" points to missing source files`);
14193
- debug$g?.(`Missing sources:
14197
+ debug$h?.(`Missing sources:
14194
14198
  ` + missingSources.join(`
14195
14199
  `));
14196
14200
  }
@@ -14202,7 +14206,7 @@ function genSourceMapUrl(map) {
14202
14206
  return `data:application/json;base64,${Buffer.from(map).toString("base64")}`;
14203
14207
  }
14204
14208
  function getCodeWithSourcemap(type, code, map) {
14205
- if (debug$g) {
14209
+ if (debug$h) {
14206
14210
  code += `
14207
14211
  /*${JSON.stringify(map, null, 2).replace(/\*\//g, "*\\/")}*/
14208
14212
  `;
@@ -14218,7 +14222,7 @@ function getCodeWithSourcemap(type, code, map) {
14218
14222
  }
14219
14223
  function applySourcemapIgnoreList(map, sourcemapPath, sourcemapIgnoreList, logger) {
14220
14224
  let { x_google_ignoreList } = map;
14221
- if (x_google_ignoreList === undefined) {
14225
+ if (x_google_ignoreList === void 0) {
14222
14226
  x_google_ignoreList = [];
14223
14227
  }
14224
14228
  for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
@@ -15107,26 +15111,78 @@ var src$1 = rc;
15107
15111
  var postcssrc = /*@__PURE__*/getDefaultExportFromCjs(src$1);
15108
15112
 
15109
15113
  // src/index.ts
15110
- var ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
15111
- function convertPosixPathToPattern(path2) {
15112
- return escapePosixPath(path2);
15114
+ var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
15115
+ function getPartialMatcher(patterns, options) {
15116
+ const patternsCount = patterns.length;
15117
+ const patternsParts = Array(patternsCount);
15118
+ const regexes = Array(patternsCount);
15119
+ for (let i = 0; i < patternsCount; i++) {
15120
+ const parts = splitPattern(patterns[i]);
15121
+ patternsParts[i] = parts;
15122
+ const partsCount = parts.length;
15123
+ const partRegexes = Array(partsCount);
15124
+ for (let j = 0; j < partsCount; j++) {
15125
+ partRegexes[j] = picomatch$5.makeRe(parts[j], options);
15126
+ }
15127
+ regexes[i] = partRegexes;
15128
+ }
15129
+ return (input) => {
15130
+ const inputParts = input.split("/");
15131
+ if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) {
15132
+ return true;
15133
+ }
15134
+ for (let i = 0; i < patterns.length; i++) {
15135
+ const patternParts = patternsParts[i];
15136
+ const regex = regexes[i];
15137
+ const inputPatternCount = inputParts.length;
15138
+ const minParts = Math.min(inputPatternCount, patternParts.length);
15139
+ let j = 0;
15140
+ while (j < minParts) {
15141
+ const part = patternParts[j];
15142
+ if (part.includes("/")) {
15143
+ return true;
15144
+ }
15145
+ const match = regex[j].test(inputParts[j]);
15146
+ if (!match) {
15147
+ break;
15148
+ }
15149
+ if (part === "**") {
15150
+ return true;
15151
+ }
15152
+ j++;
15153
+ }
15154
+ if (j === inputPatternCount) {
15155
+ return true;
15156
+ }
15157
+ }
15158
+ return false;
15159
+ };
15113
15160
  }
15114
- function convertWin32PathToPattern(path2) {
15115
- return escapeWin32Path(path2).replace(ESCAPED_WIN32_BACKSLASHES, "/");
15161
+ var splitPatternOptions = { parts: true };
15162
+ function splitPattern(path2) {
15163
+ var _a;
15164
+ const result = picomatch$5.scan(path2, splitPatternOptions);
15165
+ return ((_a = result.parts) == null ? void 0 : _a.length) ? result.parts : [path2];
15116
15166
  }
15117
- process.platform === "win32" ? convertWin32PathToPattern : convertPosixPathToPattern;
15167
+ var isWin$2 = process.platform === "win32";
15118
15168
  var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
15119
15169
  var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
15120
15170
  var escapePosixPath = (path2) => path2.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
15121
15171
  var escapeWin32Path = (path2) => path2.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
15122
- var escapePath = process.platform === "win32" ? escapeWin32Path : escapePosixPath;
15172
+ var escapePath = isWin$2 ? escapeWin32Path : escapePosixPath;
15123
15173
  function isDynamicPattern(pattern, options) {
15124
15174
  const scan = picomatch$5.scan(pattern);
15125
15175
  return scan.isGlob || scan.negated;
15126
15176
  }
15177
+ function log(...tasks) {
15178
+ console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
15179
+ }
15127
15180
 
15128
15181
  // src/index.ts
15129
- function normalizePattern(pattern, expandDirectories, cwd, properties, isIgnore) {
15182
+ var PARENT_DIRECTORY = /^(\/?\.\.)+/;
15183
+ var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
15184
+ var BACKSLASHES = /\\/g;
15185
+ function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
15130
15186
  var _a;
15131
15187
  let result = pattern;
15132
15188
  if (pattern.endsWith("/")) {
@@ -15135,40 +15191,41 @@ function normalizePattern(pattern, expandDirectories, cwd, properties, isIgnore)
15135
15191
  if (!result.endsWith("*") && expandDirectories) {
15136
15192
  result += "/**";
15137
15193
  }
15138
- if (require$$0$2.isAbsolute(result.replace(/\\(?=[()[\]{}!*+?@|])/g, ""))) {
15139
- result = posix.relative(cwd, result);
15194
+ if (require$$0$2.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) {
15195
+ result = posix.relative(escapePath(cwd), result);
15140
15196
  } else {
15141
15197
  result = posix.normalize(result);
15142
15198
  }
15143
- const parentDirectoryMatch = /^(\/?\.\.)+/.exec(result);
15144
- if (parentDirectoryMatch == null ? undefined : parentDirectoryMatch[0]) {
15199
+ const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
15200
+ if (parentDirectoryMatch == null ? void 0 : parentDirectoryMatch[0]) {
15145
15201
  const potentialRoot = posix.join(cwd, parentDirectoryMatch[0]);
15146
- if (properties.root.length > potentialRoot.length) {
15147
- properties.root = potentialRoot;
15148
- properties.depthOffset = -(parentDirectoryMatch[0].length + 1) / 3;
15202
+ if (props.root.length > potentialRoot.length) {
15203
+ props.root = potentialRoot;
15204
+ props.depthOffset = -(parentDirectoryMatch[0].length + 1) / 3;
15149
15205
  }
15150
- } else if (!isIgnore && properties.depthOffset >= 0) {
15151
- const current = result.split("/");
15152
- (_a = properties.commonPath) != null ? _a : properties.commonPath = current;
15206
+ } else if (!isIgnore && props.depthOffset >= 0) {
15207
+ const parts = splitPattern(result);
15208
+ (_a = props.commonPath) != null ? _a : props.commonPath = parts;
15153
15209
  const newCommonPath = [];
15154
- for (let i = 0; i < Math.min(properties.commonPath.length, current.length); i++) {
15155
- const part = current[i];
15156
- if (part === "**" && !current[i + 1]) {
15210
+ const length = Math.min(props.commonPath.length, parts.length);
15211
+ for (let i = 0; i < length; i++) {
15212
+ const part = parts[i];
15213
+ if (part === "**" && !parts[i + 1]) {
15157
15214
  newCommonPath.pop();
15158
15215
  break;
15159
15216
  }
15160
- if (part !== properties.commonPath[i] || isDynamicPattern(part) || i === current.length - 1) {
15217
+ if (part !== props.commonPath[i] || isDynamicPattern(part) || i === parts.length - 1) {
15161
15218
  break;
15162
15219
  }
15163
15220
  newCommonPath.push(part);
15164
15221
  }
15165
- properties.depthOffset = newCommonPath.length;
15166
- properties.commonPath = newCommonPath;
15167
- properties.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd;
15222
+ props.depthOffset = newCommonPath.length;
15223
+ props.commonPath = newCommonPath;
15224
+ props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd;
15168
15225
  }
15169
15226
  return result;
15170
15227
  }
15171
- function processPatterns({ patterns, ignore = [], expandDirectories = true }, cwd, properties) {
15228
+ function processPatterns({ patterns, ignore = [], expandDirectories = true }, cwd, props) {
15172
15229
  if (typeof patterns === "string") {
15173
15230
  patterns = [patterns];
15174
15231
  } else if (!patterns) {
@@ -15180,24 +15237,27 @@ function processPatterns({ patterns, ignore = [], expandDirectories = true }, cw
15180
15237
  const matchPatterns = [];
15181
15238
  const ignorePatterns = [];
15182
15239
  for (const pattern of ignore) {
15183
- if (!pattern.startsWith("!") || pattern[1] === "(") {
15184
- const newPattern = normalizePattern(pattern, expandDirectories, cwd, properties, true);
15185
- ignorePatterns.push(newPattern);
15240
+ if (!pattern) {
15241
+ continue;
15242
+ }
15243
+ if (pattern[0] !== "!" || pattern[1] === "(") {
15244
+ ignorePatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, true));
15186
15245
  }
15187
15246
  }
15188
15247
  for (const pattern of patterns) {
15189
- if (!pattern.startsWith("!") || pattern[1] === "(") {
15190
- const newPattern = normalizePattern(pattern, expandDirectories, cwd, properties, false);
15191
- matchPatterns.push(newPattern);
15248
+ if (!pattern) {
15249
+ continue;
15250
+ }
15251
+ if (pattern[0] !== "!" || pattern[1] === "(") {
15252
+ matchPatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, false));
15192
15253
  } else if (pattern[1] !== "!" || pattern[2] === "(") {
15193
- const newPattern = normalizePattern(pattern.slice(1), expandDirectories, cwd, properties, true);
15194
- ignorePatterns.push(newPattern);
15254
+ ignorePatterns.push(normalizePattern(pattern.slice(1), expandDirectories, cwd, props, true));
15195
15255
  }
15196
15256
  }
15197
15257
  return { match: matchPatterns, ignore: ignorePatterns };
15198
15258
  }
15199
15259
  function getRelativePath(path2, cwd, root) {
15200
- return posix.relative(cwd, `${root}/${path2}`);
15260
+ return posix.relative(cwd, `${root}/${path2}`) || ".";
15201
15261
  }
15202
15262
  function processPath(path2, cwd, root, isDirectory, absolute) {
15203
15263
  const relativePath = absolute ? path2.slice(root.length + 1) || "." : path2;
@@ -15206,32 +15266,77 @@ function processPath(path2, cwd, root, isDirectory, absolute) {
15206
15266
  }
15207
15267
  return getRelativePath(relativePath, cwd, root);
15208
15268
  }
15269
+ function formatPaths(paths, cwd, root) {
15270
+ for (let i = paths.length - 1; i >= 0; i--) {
15271
+ const path2 = paths[i];
15272
+ paths[i] = getRelativePath(path2, cwd, root) + (!path2 || path2.endsWith("/") ? "/" : "");
15273
+ }
15274
+ return paths;
15275
+ }
15209
15276
  function crawl(options, cwd, sync) {
15210
- const properties = {
15277
+ if (process.env.TINYGLOBBY_DEBUG) {
15278
+ options.debug = true;
15279
+ }
15280
+ if (options.debug) {
15281
+ log("globbing with options:", options, "cwd:", cwd);
15282
+ }
15283
+ if (Array.isArray(options.patterns) && options.patterns.length === 0) {
15284
+ return sync ? [] : Promise.resolve([]);
15285
+ }
15286
+ const props = {
15211
15287
  root: cwd,
15212
15288
  commonPath: null,
15213
15289
  depthOffset: 0
15214
15290
  };
15215
- const processed = processPatterns(options, cwd, properties);
15291
+ const processed = processPatterns(options, cwd, props);
15292
+ const nocase = options.caseSensitiveMatch === false;
15293
+ if (options.debug) {
15294
+ log("internal processing patterns:", processed);
15295
+ }
15216
15296
  const matcher = picomatch$5(processed.match, {
15217
15297
  dot: options.dot,
15218
- nocase: options.caseSensitiveMatch === false,
15298
+ nocase,
15219
15299
  ignore: processed.ignore
15220
15300
  });
15221
- const exclude = picomatch$5(processed.ignore, {
15301
+ const ignore = picomatch$5(processed.ignore, {
15302
+ dot: options.dot,
15303
+ nocase
15304
+ });
15305
+ const partialMatcher = getPartialMatcher(processed.match, {
15222
15306
  dot: options.dot,
15223
- nocase: options.caseSensitiveMatch === false
15307
+ nocase
15224
15308
  });
15225
15309
  const fdirOptions = {
15226
15310
  // use relative paths in the matcher
15227
- filters: [(p, isDirectory) => matcher(processPath(p, cwd, properties.root, isDirectory, options.absolute))],
15228
- exclude: (_, p) => exclude(processPath(p, cwd, properties.root, true, true)),
15311
+ filters: [
15312
+ options.debug ? (p, isDirectory) => {
15313
+ const path2 = processPath(p, cwd, props.root, isDirectory, options.absolute);
15314
+ const matches = matcher(path2);
15315
+ if (matches) {
15316
+ log(`matched ${path2}`);
15317
+ }
15318
+ return matches;
15319
+ } : (p, isDirectory) => matcher(processPath(p, cwd, props.root, isDirectory, options.absolute))
15320
+ ],
15321
+ exclude: options.debug ? (_, p) => {
15322
+ const relativePath = processPath(p, cwd, props.root, true, true);
15323
+ const skipped = relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
15324
+ if (skipped) {
15325
+ log(`skipped ${p}`);
15326
+ } else {
15327
+ log(`crawling ${p}`);
15328
+ }
15329
+ return skipped;
15330
+ } : (_, p) => {
15331
+ const relativePath = processPath(p, cwd, props.root, true, true);
15332
+ return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
15333
+ },
15229
15334
  pathSeparator: "/",
15230
15335
  relativePaths: true,
15231
15336
  resolveSymlinks: true
15232
15337
  };
15233
15338
  if (options.deep) {
15234
- fdirOptions.maxDepth = Math.round(options.deep - properties.depthOffset);
15339
+ fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
15235
15340
  }
15236
15341
  if (options.absolute) {
15237
15342
  fdirOptions.relativePaths = false;
@@ -15248,27 +15353,31 @@ function crawl(options, cwd, sync) {
15248
15353
  } else if (options.onlyFiles === false) {
15249
15354
  fdirOptions.includeDirs = true;
15250
15355
  }
15251
- properties.root = properties.root.replace(/\\/g, "");
15252
- const api = new dist.fdir(fdirOptions).crawl(properties.root);
15253
- if (cwd === properties.root || options.absolute) {
15356
+ props.root = props.root.replace(BACKSLASHES, "");
15357
+ const root = props.root;
15358
+ if (options.debug) {
15359
+ log("internal properties:", props);
15360
+ }
15361
+ const api = new dist.fdir(fdirOptions).crawl(root);
15362
+ if (cwd === root || options.absolute) {
15254
15363
  return sync ? api.sync() : api.withPromise();
15255
15364
  }
15256
- return sync ? api.sync().map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")) : api.withPromise().then((paths) => paths.map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")));
15365
+ return sync ? formatPaths(api.sync(), cwd, root) : api.withPromise().then((paths) => formatPaths(paths, cwd, root));
15257
15366
  }
15258
15367
  async function glob(patternsOrOptions, options) {
15259
- if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
15368
+ if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
15260
15369
  throw new Error("Cannot pass patterns as both an argument and an option");
15261
15370
  }
15262
15371
  const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
15263
- const cwd = opts.cwd ? require$$0$2.resolve(opts.cwd).replace(/\\/g, "/") : process.cwd().replace(/\\/g, "/");
15372
+ const cwd = opts.cwd ? require$$0$2.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
15264
15373
  return crawl(opts, cwd, false);
15265
15374
  }
15266
15375
  function globSync(patternsOrOptions, options) {
15267
- if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
15376
+ if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
15268
15377
  throw new Error("Cannot pass patterns as both an argument and an option");
15269
15378
  }
15270
15379
  const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
15271
- const cwd = opts.cwd ? require$$0$2.resolve(opts.cwd).replace(/\\/g, "/") : process.cwd().replace(/\\/g, "/");
15380
+ const cwd = opts.cwd ? require$$0$2.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
15272
15381
  return crawl(opts, cwd, true);
15273
15382
  }
15274
15383
 
@@ -15332,7 +15441,7 @@ function alias$1(options = {}) {
15332
15441
  return {
15333
15442
  name: 'alias',
15334
15443
  async buildStart(inputOptions) {
15335
- await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === undefined ? undefined : _a.call(this, inputOptions)); }));
15444
+ await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === void 0 ? void 0 : _a.call(this, inputOptions)); }));
15336
15445
  },
15337
15446
  resolveId(importee, importer, resolveOptions) {
15338
15447
  // First match is supposed to be the correct one
@@ -15358,7 +15467,7 @@ function alias$1(options = {}) {
15358
15467
  };
15359
15468
  }
15360
15469
 
15361
- function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(undefined===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:"./"===f.slice(0,2)?f:"./"+f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
15470
+ function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:"./"===f.slice(0,2)?f:"./"+f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
15362
15471
 
15363
15472
  const HASH_RE = /#/g;
15364
15473
  const AMPERSAND_RE = /&/g;
@@ -15391,7 +15500,7 @@ function encodeQueryItem(key, value) {
15391
15500
  return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
15392
15501
  }
15393
15502
  function stringifyQuery(query) {
15394
- return Object.keys(query).filter((k) => query[k] !== undefined).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
15503
+ return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
15395
15504
  }
15396
15505
 
15397
15506
  new Set(builtinModules);
@@ -15933,7 +16042,7 @@ function hasESMSyntax(code, opts = {}) {
15933
16042
  return ESM_RE.test(code);
15934
16043
  }
15935
16044
 
15936
- const debug$f = createDebugger("vite:external");
16045
+ const debug$g = createDebugger("vite:external");
15937
16046
  const isExternalCache = /* @__PURE__ */ new WeakMap();
15938
16047
  function shouldExternalize(environment, id, importer) {
15939
16048
  let isExternal = isExternalCache.get(environment);
@@ -15956,7 +16065,7 @@ function createIsConfiguredAsExternal(environment) {
15956
16065
  const { config } = environment;
15957
16066
  const { root, resolve } = config;
15958
16067
  const { external, noExternal } = resolve;
15959
- const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(undefined, noExternal, { resolve: false });
16068
+ const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(void 0, noExternal, { resolve: false });
15960
16069
  const targetConditions = resolve.externalConditions;
15961
16070
  const resolveOptions = {
15962
16071
  ...resolve,
@@ -15974,9 +16083,9 @@ function createIsConfiguredAsExternal(environment) {
15974
16083
  id,
15975
16084
  // Skip passing importer in build to avoid externalizing non-hoisted dependencies
15976
16085
  // unresolvable from root (which would be unresolvable from output bundles also)
15977
- config.command === "build" ? undefined : importer,
16086
+ config.command === "build" ? void 0 : importer,
15978
16087
  resolveOptions,
15979
- undefined,
16088
+ void 0,
15980
16089
  false
15981
16090
  );
15982
16091
  if (!resolved) {
@@ -15987,7 +16096,7 @@ function createIsConfiguredAsExternal(environment) {
15987
16096
  }
15988
16097
  return canExternalizeFile(resolved.id);
15989
16098
  } catch {
15990
- debug$f?.(
16099
+ debug$g?.(
15991
16100
  `Failed to node resolve "${id}". Skipping externalizing it by default.`
15992
16101
  );
15993
16102
  return false;
@@ -16048,7 +16157,7 @@ const browserExternalId = "__vite-browser-external";
16048
16157
  const optionalPeerDepId = "__vite-optional-peer-dep";
16049
16158
  const subpathImportsPrefix = "#";
16050
16159
  const startsWithWordCharRE = /^\w/;
16051
- const debug$e = createDebugger("vite:resolve-details", {
16160
+ const debug$f = createDebugger("vite:resolve-details", {
16052
16161
  onlyWhenFocused: true
16053
16162
  });
16054
16163
  function resolvePlugin(resolveOptions) {
@@ -16061,7 +16170,7 @@ function resolvePlugin(resolveOptions) {
16061
16170
  id.startsWith("/virtual:")) {
16062
16171
  return;
16063
16172
  }
16064
- const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer : undefined;
16173
+ const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer : void 0;
16065
16174
  if (id.startsWith(browserExternalId)) {
16066
16175
  return id;
16067
16176
  }
@@ -16088,13 +16197,13 @@ function resolvePlugin(resolveOptions) {
16088
16197
  }
16089
16198
  if (asSrc && id.startsWith(FS_PREFIX)) {
16090
16199
  res = fsPathFromId(id);
16091
- debug$e?.(`[@fs] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16200
+ debug$f?.(`[@fs] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16092
16201
  return ensureVersionQuery(res, id, options, depsOptimizer);
16093
16202
  }
16094
16203
  if (asSrc && id[0] === "/" && (rootInRoot || !id.startsWith(withTrailingSlash(root)))) {
16095
16204
  const fsPath = path$d.resolve(root, id.slice(1));
16096
16205
  if (res = tryFsResolve(fsPath, options)) {
16097
- debug$e?.(`[url] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16206
+ debug$f?.(`[url] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16098
16207
  return ensureVersionQuery(res, id, options, depsOptimizer);
16099
16208
  }
16100
16209
  }
@@ -16119,7 +16228,7 @@ function resolvePlugin(resolveOptions) {
16119
16228
  }
16120
16229
  if (res = tryFsResolve(fsPath, options)) {
16121
16230
  res = ensureVersionQuery(res, id, options, depsOptimizer);
16122
- debug$e?.(`[relative] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16231
+ debug$f?.(`[relative] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16123
16232
  if (!options.idOnly && !options.scan && options.isBuild) {
16124
16233
  const resPkg = findNearestPackageData(
16125
16234
  path$d.dirname(res),
@@ -16143,12 +16252,12 @@ function resolvePlugin(resolveOptions) {
16143
16252
  const basedir = importer ? path$d.dirname(importer) : process.cwd();
16144
16253
  const fsPath = path$d.resolve(basedir, id);
16145
16254
  if (res = tryFsResolve(fsPath, options)) {
16146
- debug$e?.(`[drive-relative] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16255
+ debug$f?.(`[drive-relative] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16147
16256
  return ensureVersionQuery(res, id, options, depsOptimizer);
16148
16257
  }
16149
16258
  }
16150
16259
  if (isNonDriveRelativeAbsolutePath(id) && (res = tryFsResolve(id, options))) {
16151
- debug$e?.(`[fs] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16260
+ debug$f?.(`[fs] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16152
16261
  return ensureVersionQuery(res, id, options, depsOptimizer);
16153
16262
  }
16154
16263
  if (isExternalUrl(id)) {
@@ -16210,7 +16319,7 @@ function resolvePlugin(resolveOptions) {
16210
16319
  this.error(message);
16211
16320
  }
16212
16321
  if (!asSrc) {
16213
- debug$e?.(
16322
+ debug$f?.(
16214
16323
  `externalized node built-in "${id}" to empty module. (imported by: ${colors$1.white(colors$1.dim(importer))})`
16215
16324
  );
16216
16325
  } else if (isProduction) {
@@ -16221,7 +16330,7 @@ function resolvePlugin(resolveOptions) {
16221
16330
  return isProduction ? browserExternalId : `${browserExternalId}:${id}`;
16222
16331
  }
16223
16332
  }
16224
- debug$e?.(`[fallthrough] ${colors$1.dim(id)}`);
16333
+ debug$f?.(`[fallthrough] ${colors$1.dim(id)}`);
16225
16334
  },
16226
16335
  load(id) {
16227
16336
  if (id.startsWith(browserExternalId)) {
@@ -16420,7 +16529,7 @@ function tryNodeResolve(id, importer, options, depsOptimizer, externalize) {
16420
16529
  const index = resolved2.id.indexOf(id);
16421
16530
  if (index > -1) {
16422
16531
  resolvedId = resolved2.id.slice(index);
16423
- debug$e?.(
16532
+ debug$f?.(
16424
16533
  `[processResult] ${colors$1.cyan(id)} -> ${colors$1.dim(resolvedId)}`
16425
16534
  );
16426
16535
  }
@@ -16527,7 +16636,7 @@ function resolvePackageEntry(id, { dir, data, setResolvedCache, getResolvedCache
16527
16636
  skipPackageJson
16528
16637
  );
16529
16638
  if (resolvedEntryPoint) {
16530
- debug$e?.(
16639
+ debug$f?.(
16531
16640
  `[package entry] ${colors$1.cyan(idWithoutPostfix)} -> ${colors$1.dim(
16532
16641
  resolvedEntryPoint
16533
16642
  )}${postfix !== "" ? ` (postfix: ${postfix})` : ""}`
@@ -16562,7 +16671,7 @@ function resolveExportsOrImports(pkg, key, options, type) {
16562
16671
  }
16563
16672
  const fn = type === "imports" ? f : o;
16564
16673
  const result = fn(pkg, key, { conditions, unsafe: true });
16565
- return result ? result[0] : undefined;
16674
+ return result ? result[0] : void 0;
16566
16675
  }
16567
16676
  function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }, options) {
16568
16677
  const cache = getResolvedCache(id, options);
@@ -16575,13 +16684,13 @@ function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }
16575
16684
  if (isObject$2(exportsField) && !Array.isArray(exportsField)) {
16576
16685
  const { file, postfix } = splitFileAndPostfix(relativeId);
16577
16686
  const exportsId = resolveExportsOrImports(data, file, options, "exports");
16578
- if (exportsId !== undefined) {
16687
+ if (exportsId !== void 0) {
16579
16688
  relativeId = exportsId + postfix;
16580
16689
  } else {
16581
- relativeId = undefined;
16690
+ relativeId = void 0;
16582
16691
  }
16583
16692
  } else {
16584
- relativeId = undefined;
16693
+ relativeId = void 0;
16585
16694
  }
16586
16695
  if (!relativeId) {
16587
16696
  throw new Error(
@@ -16606,7 +16715,7 @@ function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }
16606
16715
  // try index only if no exports field
16607
16716
  );
16608
16717
  if (resolved) {
16609
- debug$e?.(
16718
+ debug$f?.(
16610
16719
  `[node/deep-import] ${colors$1.cyan(id)} -> ${colors$1.dim(resolved)}`
16611
16720
  );
16612
16721
  setResolvedCache(id, resolved, options);
@@ -16625,10 +16734,10 @@ function tryResolveBrowserMapping(id, importer, options, isFilePath, externalize
16625
16734
  browserMappedPath,
16626
16735
  importer,
16627
16736
  options,
16628
- undefined,
16629
- undefined
16737
+ void 0,
16738
+ void 0
16630
16739
  )?.id : tryFsResolve(path$d.join(pkg.dir, browserMappedPath), options)) {
16631
- debug$e?.(`[browser mapped] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16740
+ debug$f?.(`[browser mapped] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16632
16741
  let result = { id: res };
16633
16742
  if (options.idOnly) {
16634
16743
  return result;
@@ -16869,7 +16978,7 @@ function esbuildDepPlugin(environment, qualified, external) {
16869
16978
  let entry;
16870
16979
  if (!importer) {
16871
16980
  if (entry = resolveEntry(id)) return entry;
16872
- const aliased = await _resolve(environment, id, undefined, true);
16981
+ const aliased = await _resolve(environment, id, void 0, true);
16873
16982
  if (aliased && (entry = resolveEntry(aliased))) {
16874
16983
  return entry;
16875
16984
  }
@@ -17153,7 +17262,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17153
17262
  yield ({
17154
17263
  type: "RegularExpressionLiteral",
17155
17264
  value: match[0],
17156
- closed: match[1] !== undefined && match[1] !== "\\"
17265
+ closed: match[1] !== void 0 && match[1] !== "\\"
17157
17266
  });
17158
17267
  continue;
17159
17268
  }
@@ -17291,7 +17400,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17291
17400
  yield ({
17292
17401
  type: "StringLiteral",
17293
17402
  value: match[0],
17294
- closed: match[2] !== undefined
17403
+ closed: match[2] !== void 0
17295
17404
  });
17296
17405
  continue;
17297
17406
  }
@@ -17392,7 +17501,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17392
17501
  yield ({
17393
17502
  type: "JSXString",
17394
17503
  value: match[0],
17395
- closed: match[2] !== undefined
17504
+ closed: match[2] !== void 0
17396
17505
  });
17397
17506
  continue;
17398
17507
  }
@@ -17467,7 +17576,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17467
17576
  yield ({
17468
17577
  type: "MultiLineComment",
17469
17578
  value: match[0],
17470
- closed: match[1] !== undefined
17579
+ closed: match[1] !== void 0
17471
17580
  });
17472
17581
  continue;
17473
17582
  }
@@ -17490,7 +17599,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17490
17599
  value: firstCodePoint
17491
17600
  });
17492
17601
  }
17493
- return undefined;
17602
+ return void 0;
17494
17603
  };
17495
17604
 
17496
17605
  var jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokens_1);
@@ -17620,7 +17729,7 @@ function importGlobPlugin(config) {
17620
17729
  if (mod) modules.push(mod);
17621
17730
  }
17622
17731
  }
17623
- return modules.length > 0 ? [...oldModules, ...modules] : undefined;
17732
+ return modules.length > 0 ? [...oldModules, ...modules] : void 0;
17624
17733
  }
17625
17734
  };
17626
17735
  }
@@ -17831,10 +17940,10 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
17831
17940
  id = slash$1(id);
17832
17941
  root = slash$1(root);
17833
17942
  const isVirtual = isVirtualModule(id);
17834
- const dir = isVirtual ? undefined : dirname(id);
17943
+ const dir = isVirtual ? void 0 : dirname(id);
17835
17944
  const matches = await parseImportGlob(
17836
17945
  code,
17837
- isVirtual ? undefined : id,
17946
+ isVirtual ? void 0 : id,
17838
17947
  root,
17839
17948
  resolveId,
17840
17949
  logger
@@ -17899,7 +18008,7 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
17899
18008
  importQuery = `${importQuery}&lang.${fileExtension}`;
17900
18009
  }
17901
18010
  importPath = `${importPath}${importQuery}`;
17902
- const importKey = options.import && options.import !== "*" ? options.import : undefined;
18011
+ const importKey = options.import && options.import !== "*" ? options.import : void 0;
17903
18012
  if (options.eager) {
17904
18013
  const variableName = `${importPrefix}${index}_${i}`;
17905
18014
  const expression = importKey ? `{ ${importKey} as ${variableName} }` : `* as ${variableName}`;
@@ -18029,7 +18138,7 @@ class ScanEnvironment extends BaseEnvironment {
18029
18138
  this._pluginContainer = await createEnvironmentPluginContainer(
18030
18139
  this,
18031
18140
  this.plugins,
18032
- undefined,
18141
+ void 0,
18033
18142
  false
18034
18143
  );
18035
18144
  }
@@ -18063,11 +18172,11 @@ function devToScanEnvironment(environment) {
18063
18172
  }
18064
18173
  };
18065
18174
  }
18066
- const debug$d = createDebugger("vite:deps");
18175
+ const debug$e = createDebugger("vite:deps");
18067
18176
  const htmlTypesRE = /\.(html|vue|svelte|astro|imba)$/;
18068
18177
  const importsRE = /(?<!\/\/.*)(?<=^|;|\*\/)\s*import(?!\s+type)(?:[\w*{}\n\r\t, ]+from)?\s*("[^"]+"|'[^']+')\s*(?=$|;|\/\/|\/\*)/gm;
18069
18178
  function scanImports(environment) {
18070
- const start = performance.now();
18179
+ const start = performance$1.now();
18071
18180
  const deps = {};
18072
18181
  const missing = {};
18073
18182
  let entries;
@@ -18088,7 +18197,7 @@ function scanImports(environment) {
18088
18197
  return;
18089
18198
  }
18090
18199
  if (scanContext.cancelled) return;
18091
- debug$d?.(
18200
+ debug$e?.(
18092
18201
  `Crawling dependencies using entries: ${entries.map((entry) => `
18093
18202
  ${colors$1.dim(entry)}`).join("")}`
18094
18203
  );
@@ -18140,11 +18249,11 @@ function scanImports(environment) {
18140
18249
  }
18141
18250
  throw e;
18142
18251
  }).finally(() => {
18143
- if (debug$d) {
18144
- const duration = (performance.now() - start).toFixed(2);
18252
+ if (debug$e) {
18253
+ const duration = (performance$1.now() - start).toFixed(2);
18145
18254
  const depsStr = Object.keys(orderedDependencies(deps)).sort().map((id) => `
18146
18255
  ${colors$1.cyan(id)} -> ${colors$1.dim(deps[id])}`).join("") || colors$1.dim("no dependencies found");
18147
- debug$d(`Scan completed in ${duration}ms: ${depsStr}`);
18256
+ debug$e(`Scan completed in ${duration}ms: ${depsStr}`);
18148
18257
  }
18149
18258
  });
18150
18259
  return {
@@ -18163,10 +18272,10 @@ async function computeEntries(environment) {
18163
18272
  entries = await globEntries(explicitEntryPatterns, environment);
18164
18273
  } else if (buildInput) {
18165
18274
  const resolvePath = async (p) => {
18166
- const id = (await environment.pluginContainer.resolveId(p, undefined, {
18275
+ const id = (await environment.pluginContainer.resolveId(p, void 0, {
18167
18276
  scan: true
18168
18277
  }))?.id;
18169
- if (id === undefined) {
18278
+ if (id === void 0) {
18170
18279
  throw new Error(
18171
18280
  `failed to resolve rollupOptions.input value: ${JSON.stringify(p)}.`
18172
18281
  );
@@ -18438,7 +18547,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
18438
18547
  }
18439
18548
  return externalUnlessEntry({ path: id });
18440
18549
  } else if (isScannable(resolved, optimizeDepsOptions.extensions)) {
18441
- const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
18550
+ const namespace = htmlTypesRE.test(resolved) ? "html" : void 0;
18442
18551
  return {
18443
18552
  path: path$d.resolve(resolved),
18444
18553
  namespace
@@ -18476,7 +18585,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
18476
18585
  if (shouldExternalizeDep(resolved, id) || !isScannable(resolved, optimizeDepsOptions.extensions)) {
18477
18586
  return externalUnlessEntry({ path: id });
18478
18587
  }
18479
- const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
18588
+ const namespace = htmlTypesRE.test(resolved) ? "html" : void 0;
18480
18589
  return {
18481
18590
  path: path$d.resolve(cleanUrl(resolved)),
18482
18591
  namespace
@@ -18551,7 +18660,7 @@ function createOptimizeDepsIncludeResolver(environment) {
18551
18660
  return async (id) => {
18552
18661
  const lastArrowIndex = id.lastIndexOf(">");
18553
18662
  if (lastArrowIndex === -1) {
18554
- return await resolve(environment, id, undefined);
18663
+ return await resolve(environment, id, void 0);
18555
18664
  }
18556
18665
  const nestedRoot = id.substring(0, lastArrowIndex).trim();
18557
18666
  const nestedPath = id.substring(lastArrowIndex + 1).trim();
@@ -18658,14 +18767,14 @@ function nestedResolveBasedir(id, basedir, preserveSymlinks = false) {
18658
18767
  return basedir;
18659
18768
  }
18660
18769
 
18661
- const debug$c = createDebugger("vite:deps");
18770
+ const debug$d = createDebugger("vite:deps");
18662
18771
  const jsExtensionRE = /\.js$/i;
18663
18772
  const jsMapExtensionRE = /\.js\.map$/i;
18664
18773
  function isDepOptimizationDisabled(optimizeDeps2) {
18665
18774
  return optimizeDeps2.disabled === true || optimizeDeps2.disabled === "dev" || !!optimizeDeps2.noDiscovery && !optimizeDeps2.include?.length;
18666
18775
  }
18667
18776
  async function optimizeDeps(config, force = config.optimizeDeps.force, asCommand = false) {
18668
- const log = asCommand ? config.logger.info : debug$c;
18777
+ const log = asCommand ? config.logger.info : debug$d;
18669
18778
  config.logger.warn(
18670
18779
  colors$1.yellow(
18671
18780
  "manually calling optimizeDeps is deprecated. This is done automatically and does not need to be called manually."
@@ -18727,7 +18836,7 @@ function addOptimizedDepInfo(metadata, type, depInfo) {
18727
18836
  }
18728
18837
  let firstLoadCachedDepOptimizationMetadata = true;
18729
18838
  async function loadCachedDepOptimizationMetadata(environment, force = environment.config.optimizeDeps.force ?? false, asCommand = false) {
18730
- const log = asCommand ? environment.logger.info : debug$c;
18839
+ const log = asCommand ? environment.logger.info : debug$d;
18731
18840
  if (firstLoadCachedDepOptimizationMetadata) {
18732
18841
  firstLoadCachedDepOptimizationMetadata = false;
18733
18842
  setTimeout(
@@ -18773,7 +18882,7 @@ async function loadCachedDepOptimizationMetadata(environment, force = environmen
18773
18882
  timestamp: true
18774
18883
  });
18775
18884
  }
18776
- debug$c?.(
18885
+ debug$d?.(
18777
18886
  `(${environment.name}) ${colors$1.green(`removing old cache dir ${depsCacheDir}`)}`
18778
18887
  );
18779
18888
  await fsp.rm(depsCacheDir, { recursive: true, force: true });
@@ -18829,7 +18938,7 @@ function runOptimizeDeps(environment, depsInfo) {
18829
18938
  const depsCacheDir = getDepsCacheDir(environment);
18830
18939
  const processingCacheDir = getProcessingDepsCacheDir(environment);
18831
18940
  fs__default.mkdirSync(processingCacheDir, { recursive: true });
18832
- debug$c?.(colors$1.green(`creating package.json in ${processingCacheDir}`));
18941
+ debug$d?.(colors$1.green(`creating package.json in ${processingCacheDir}`));
18833
18942
  fs__default.writeFileSync(
18834
18943
  path$d.resolve(processingCacheDir, "package.json"),
18835
18944
  `{
@@ -18848,7 +18957,7 @@ function runOptimizeDeps(environment, depsInfo) {
18848
18957
  const cleanUp = () => {
18849
18958
  if (!cleaned && !committed) {
18850
18959
  cleaned = true;
18851
- debug$c?.(colors$1.green(`removing cache dir ${processingCacheDir}`));
18960
+ debug$d?.(colors$1.green(`removing cache dir ${processingCacheDir}`));
18852
18961
  try {
18853
18962
  fs__default.rmSync(processingCacheDir, { recursive: true, force: true });
18854
18963
  } catch {
@@ -18866,7 +18975,7 @@ function runOptimizeDeps(environment, depsInfo) {
18866
18975
  }
18867
18976
  committed = true;
18868
18977
  const dataPath = path$d.join(processingCacheDir, METADATA_FILENAME);
18869
- debug$c?.(
18978
+ debug$d?.(
18870
18979
  colors$1.green(`creating ${METADATA_FILENAME} in ${processingCacheDir}`)
18871
18980
  );
18872
18981
  fs__default.writeFileSync(
@@ -18877,25 +18986,25 @@ function runOptimizeDeps(environment, depsInfo) {
18877
18986
  const depsCacheDirPresent = fs__default.existsSync(depsCacheDir);
18878
18987
  if (isWindows$3) {
18879
18988
  if (depsCacheDirPresent) {
18880
- debug$c?.(colors$1.green(`renaming ${depsCacheDir} to ${temporaryPath}`));
18989
+ debug$d?.(colors$1.green(`renaming ${depsCacheDir} to ${temporaryPath}`));
18881
18990
  await safeRename(depsCacheDir, temporaryPath);
18882
18991
  }
18883
- debug$c?.(
18992
+ debug$d?.(
18884
18993
  colors$1.green(`renaming ${processingCacheDir} to ${depsCacheDir}`)
18885
18994
  );
18886
18995
  await safeRename(processingCacheDir, depsCacheDir);
18887
18996
  } else {
18888
18997
  if (depsCacheDirPresent) {
18889
- debug$c?.(colors$1.green(`renaming ${depsCacheDir} to ${temporaryPath}`));
18998
+ debug$d?.(colors$1.green(`renaming ${depsCacheDir} to ${temporaryPath}`));
18890
18999
  fs__default.renameSync(depsCacheDir, temporaryPath);
18891
19000
  }
18892
- debug$c?.(
19001
+ debug$d?.(
18893
19002
  colors$1.green(`renaming ${processingCacheDir} to ${depsCacheDir}`)
18894
19003
  );
18895
19004
  fs__default.renameSync(processingCacheDir, depsCacheDir);
18896
19005
  }
18897
19006
  if (depsCacheDirPresent) {
18898
- debug$c?.(colors$1.green(`removing cache temp dir ${temporaryPath}`));
19007
+ debug$d?.(colors$1.green(`removing cache temp dir ${temporaryPath}`));
18899
19008
  fsp.rm(temporaryPath, { recursive: true, force: true });
18900
19009
  }
18901
19010
  }
@@ -18911,7 +19020,7 @@ function runOptimizeDeps(environment, depsInfo) {
18911
19020
  commit: async () => cleanUp(),
18912
19021
  cancel: cleanUp
18913
19022
  };
18914
- const start = performance.now();
19023
+ const start = performance$1.now();
18915
19024
  const preparedRun = prepareEsbuildOptimizerRun(
18916
19025
  environment,
18917
19026
  depsInfo,
@@ -18994,8 +19103,8 @@ function runOptimizeDeps(environment, depsInfo) {
18994
19103
  }
18995
19104
  }
18996
19105
  }
18997
- debug$c?.(
18998
- `Dependencies bundled in ${(performance.now() - start).toFixed(2)}ms`
19106
+ debug$d?.(
19107
+ `Dependencies bundled in ${(performance$1.now() - start).toFixed(2)}ms`
18999
19108
  );
19000
19109
  return successfulResult;
19001
19110
  }).catch((e) => {
@@ -19040,7 +19149,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
19040
19149
  idToExports[id] = exportsData;
19041
19150
  })
19042
19151
  );
19043
- if (optimizerContext.cancelled) return { context: undefined, idToExports };
19152
+ if (optimizerContext.cancelled) return { context: void 0, idToExports };
19044
19153
  const define = {
19045
19154
  "process.env.NODE_ENV": environment.config.keepProcessEnv ? (
19046
19155
  // define process.env.NODE_ENV even for keepProcessEnv === true
@@ -19068,7 +19177,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
19068
19177
  // See https://github.com/evanw/esbuild/issues/1921#issuecomment-1152991694
19069
19178
  banner: platform === "node" ? {
19070
19179
  js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
19071
- } : undefined,
19180
+ } : void 0,
19072
19181
  target: ESBUILD_MODULES_TARGET,
19073
19182
  external,
19074
19183
  logLevel: "error",
@@ -19287,7 +19396,7 @@ async function extractExportsData(environment, filePath) {
19287
19396
  parseResult = parse$e(entryContent);
19288
19397
  } catch {
19289
19398
  const loader = esbuildOptions.loader?.[path$d.extname(filePath)] || "jsx";
19290
- debug$c?.(
19399
+ debug$d?.(
19291
19400
  `Unable to parse: ${filePath}.
19292
19401
  Trying again with a ${loader} transform.`
19293
19402
  );
@@ -19295,7 +19404,7 @@ async function extractExportsData(environment, filePath) {
19295
19404
  entryContent,
19296
19405
  filePath,
19297
19406
  { loader },
19298
- undefined,
19407
+ void 0,
19299
19408
  environment.config
19300
19409
  );
19301
19410
  parseResult = parse$e(transformed.code);
@@ -19389,8 +19498,8 @@ function getConfigHash(environment) {
19389
19498
  assetsInclude: config.assetsInclude,
19390
19499
  plugins: config.plugins.map((p) => p.name),
19391
19500
  optimizeDeps: {
19392
- include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() : undefined,
19393
- exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() : undefined,
19501
+ include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() : void 0,
19502
+ exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() : void 0,
19394
19503
  esbuildOptions: {
19395
19504
  ...optimizeDeps2.esbuildOptions,
19396
19505
  plugins: optimizeDeps2.esbuildOptions?.plugins?.map((p) => p.name)
@@ -19457,7 +19566,7 @@ function findOptimizedDepInfoInRecord(dependenciesInfo, callbackFn) {
19457
19566
  }
19458
19567
  async function optimizedDepNeedsInterop(environment, metadata, file) {
19459
19568
  const depInfo = optimizedDepInfoFromFile(metadata, file);
19460
- if (depInfo?.src && depInfo.needsInterop === undefined) {
19569
+ if (depInfo?.src && depInfo.needsInterop === void 0) {
19461
19570
  depInfo.exportsData ??= extractExportsData(environment, depInfo.src);
19462
19571
  depInfo.needsInterop = needsInterop(
19463
19572
  environment,
@@ -19478,7 +19587,7 @@ async function cleanupDepsCacheStaleDirs(config) {
19478
19587
  const tempDirPath = path$d.resolve(config.cacheDir, dirent.name);
19479
19588
  const stats = await fsp.stat(tempDirPath).catch(() => null);
19480
19589
  if (stats?.mtime && Date.now() - stats.mtime.getTime() > MAX_TEMP_DIR_AGE_MS) {
19481
- debug$c?.(`removing stale cache temp dir ${tempDirPath}`);
19590
+ debug$d?.(`removing stale cache temp dir ${tempDirPath}`);
19482
19591
  await fsp.rm(tempDirPath, { recursive: true, force: true });
19483
19592
  }
19484
19593
  }
@@ -19609,10 +19718,10 @@ function extractJsonErrorPosition(errorMessage, inputLength) {
19609
19718
  return inputLength - 1;
19610
19719
  }
19611
19720
  const errorMessageList = /at position (\d+)/.exec(errorMessage);
19612
- return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : undefined;
19721
+ return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : void 0;
19613
19722
  }
19614
19723
 
19615
- const debug$b = createDebugger("vite:optimize-deps");
19724
+ const debug$c = createDebugger("vite:optimize-deps");
19616
19725
  function optimizedDepsPlugin() {
19617
19726
  return {
19618
19727
  name: "vite:optimized-deps",
@@ -19632,7 +19741,7 @@ function optimizedDepsPlugin() {
19632
19741
  const metadata = depsOptimizer.metadata;
19633
19742
  const file = cleanUrl(id);
19634
19743
  const versionMatch = DEP_VERSION_RE.exec(file);
19635
- const browserHash = versionMatch ? versionMatch[1].split("=")[1] : undefined;
19744
+ const browserHash = versionMatch ? versionMatch[1].split("=")[1] : void 0;
19636
19745
  const info = optimizedDepInfoFromFile(metadata, file);
19637
19746
  if (info) {
19638
19747
  if (browserHash && info.browserHash !== browserHash) {
@@ -19651,7 +19760,7 @@ function optimizedDepsPlugin() {
19651
19760
  }
19652
19761
  }
19653
19762
  }
19654
- debug$b?.(`load ${colors$1.cyan(file)}`);
19763
+ debug$c?.(`load ${colors$1.cyan(file)}`);
19655
19764
  try {
19656
19765
  return await fsp.readFile(file, "utf-8");
19657
19766
  } catch {
@@ -19687,84 +19796,11 @@ function throwFileNotFoundInOptimizedDep(id) {
19687
19796
  throw err;
19688
19797
  }
19689
19798
 
19690
- var main$1 = {exports: {}};
19799
+ var main = {exports: {}};
19691
19800
 
19692
- var name = "dotenv";
19693
19801
  var version$1 = "16.4.7";
19694
- var description = "Loads environment variables from .env file";
19695
- var main = "lib/main.js";
19696
- var types = "lib/main.d.ts";
19697
- var exports = {
19698
- ".": {
19699
- types: "./lib/main.d.ts",
19700
- require: "./lib/main.js",
19701
- "default": "./lib/main.js"
19702
- },
19703
- "./config": "./config.js",
19704
- "./config.js": "./config.js",
19705
- "./lib/env-options": "./lib/env-options.js",
19706
- "./lib/env-options.js": "./lib/env-options.js",
19707
- "./lib/cli-options": "./lib/cli-options.js",
19708
- "./lib/cli-options.js": "./lib/cli-options.js",
19709
- "./package.json": "./package.json"
19710
- };
19711
- var scripts = {
19712
- "dts-check": "tsc --project tests/types/tsconfig.json",
19713
- lint: "standard",
19714
- pretest: "npm run lint && npm run dts-check",
19715
- test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
19716
- "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
19717
- prerelease: "npm test",
19718
- release: "standard-version"
19719
- };
19720
- var repository = {
19721
- type: "git",
19722
- url: "git://github.com/motdotla/dotenv.git"
19723
- };
19724
- var funding = "https://dotenvx.com";
19725
- var keywords = [
19726
- "dotenv",
19727
- "env",
19728
- ".env",
19729
- "environment",
19730
- "variables",
19731
- "config",
19732
- "settings"
19733
- ];
19734
- var readmeFilename = "README.md";
19735
- var license = "BSD-2-Clause";
19736
- var devDependencies = {
19737
- "@types/node": "^18.11.3",
19738
- decache: "^4.6.2",
19739
- sinon: "^14.0.1",
19740
- standard: "^17.0.0",
19741
- "standard-version": "^9.5.0",
19742
- tap: "^19.2.0",
19743
- typescript: "^4.8.4"
19744
- };
19745
- var engines = {
19746
- node: ">=12"
19747
- };
19748
- var browser$1 = {
19749
- fs: false
19750
- };
19751
19802
  var require$$4 = {
19752
- name: name,
19753
- version: version$1,
19754
- description: description,
19755
- main: main,
19756
- types: types,
19757
- exports: exports,
19758
- scripts: scripts,
19759
- repository: repository,
19760
- funding: funding,
19761
- keywords: keywords,
19762
- readmeFilename: readmeFilename,
19763
- license: license,
19764
- devDependencies: devDependencies,
19765
- engines: engines,
19766
- browser: browser$1
19767
- };
19803
+ version: version$1};
19768
19804
 
19769
19805
  const fs$6 = require$$0$3;
19770
19806
  const path$a = require$$0$2;
@@ -20118,15 +20154,15 @@ const DotenvModule = {
20118
20154
  populate
20119
20155
  };
20120
20156
 
20121
- main$1.exports.configDotenv = DotenvModule.configDotenv;
20122
- main$1.exports._configVault = DotenvModule._configVault;
20123
- main$1.exports._parseVault = DotenvModule._parseVault;
20124
- main$1.exports.config = DotenvModule.config;
20125
- main$1.exports.decrypt = DotenvModule.decrypt;
20126
- var parse_1$3 = main$1.exports.parse = DotenvModule.parse;
20127
- main$1.exports.populate = DotenvModule.populate;
20157
+ main.exports.configDotenv = DotenvModule.configDotenv;
20158
+ main.exports._configVault = DotenvModule._configVault;
20159
+ main.exports._parseVault = DotenvModule._parseVault;
20160
+ main.exports.config = DotenvModule.config;
20161
+ main.exports.decrypt = DotenvModule.decrypt;
20162
+ var parse_1$3 = main.exports.parse = DotenvModule.parse;
20163
+ main.exports.populate = DotenvModule.populate;
20128
20164
 
20129
- main$1.exports = DotenvModule;
20165
+ main.exports = DotenvModule;
20130
20166
 
20131
20167
  function _resolveEscapeSequences (value) {
20132
20168
  return value.replace(/\\\$/g, '$')
@@ -20227,6 +20263,7 @@ function expand$2 (options) {
20227
20263
 
20228
20264
  var expand_1$1 = expand$2;
20229
20265
 
20266
+ const debug$b = createDebugger("vite:env");
20230
20267
  function getEnvFilesForMode(mode, envDir) {
20231
20268
  return [
20232
20269
  /** default file */
@@ -20240,6 +20277,8 @@ function getEnvFilesForMode(mode, envDir) {
20240
20277
  ].map((file) => normalizePath$3(path$d.join(envDir, file)));
20241
20278
  }
20242
20279
  function loadEnv(mode, envDir, prefixes = "VITE_") {
20280
+ const start = performance.now();
20281
+ const getTime = () => `${(performance.now() - start).toFixed(2)}ms`;
20243
20282
  if (mode === "local") {
20244
20283
  throw new Error(
20245
20284
  `"local" cannot be used as a mode name because it conflicts with the .local postfix for .env files.`
@@ -20248,19 +20287,21 @@ function loadEnv(mode, envDir, prefixes = "VITE_") {
20248
20287
  prefixes = arraify(prefixes);
20249
20288
  const env = {};
20250
20289
  const envFiles = getEnvFilesForMode(mode, envDir);
20290
+ debug$b?.(`loading env files: %O`, envFiles);
20251
20291
  const parsed = Object.fromEntries(
20252
20292
  envFiles.flatMap((filePath) => {
20253
20293
  if (!tryStatSync(filePath)?.isFile()) return [];
20254
20294
  return Object.entries(parse_1$3(fs__default.readFileSync(filePath)));
20255
20295
  })
20256
20296
  );
20257
- if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === undefined) {
20297
+ debug$b?.(`env files loaded in ${getTime()}`);
20298
+ if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === void 0) {
20258
20299
  process.env.VITE_USER_NODE_ENV = parsed.NODE_ENV;
20259
20300
  }
20260
- if (parsed.BROWSER && process.env.BROWSER === undefined) {
20301
+ if (parsed.BROWSER && process.env.BROWSER === void 0) {
20261
20302
  process.env.BROWSER = parsed.BROWSER;
20262
20303
  }
20263
- if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === undefined) {
20304
+ if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === void 0) {
20264
20305
  process.env.BROWSER_ARGS = parsed.BROWSER_ARGS;
20265
20306
  }
20266
20307
  const processEnv = { ...process.env };
@@ -20275,6 +20316,7 @@ function loadEnv(mode, envDir, prefixes = "VITE_") {
20275
20316
  env[key] = process.env[key];
20276
20317
  }
20277
20318
  }
20319
+ debug$b?.(`using resolved env: %O`, env);
20278
20320
  return env;
20279
20321
  }
20280
20322
  function resolveEnvPrefix({
@@ -24729,7 +24771,7 @@ const parse$a = (input, options) => {
24729
24771
  }
24730
24772
 
24731
24773
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
24732
- const end = rest[1] !== undefined ? '|$' : '';
24774
+ const end = rest[1] !== void 0 ? '|$' : '';
24733
24775
 
24734
24776
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
24735
24777
  prior.output = `(?:${prior.output}`;
@@ -26120,7 +26162,7 @@ const toRegexRange$1 = (min, max, options) => {
26120
26162
  throw new TypeError('toRegexRange: expected the first argument to be a number');
26121
26163
  }
26122
26164
 
26123
- if (max === undefined || min === max) {
26165
+ if (max === void 0 || min === max) {
26124
26166
  return String(min);
26125
26167
  }
26126
26168
 
@@ -26192,9 +26234,9 @@ const toRegexRange$1 = (min, max, options) => {
26192
26234
  };
26193
26235
 
26194
26236
  function collatePatterns(neg, pos, options) {
26195
- let onlyNegative = filterPatterns(neg, pos, '-', false);
26196
- let onlyPositive = filterPatterns(pos, neg, '', false);
26197
- let intersected = filterPatterns(neg, pos, '-?', true);
26237
+ let onlyNegative = filterPatterns(neg, pos, '-', false) || [];
26238
+ let onlyPositive = filterPatterns(pos, neg, '', false) || [];
26239
+ let intersected = filterPatterns(neg, pos, '-?', true) || [];
26198
26240
  let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
26199
26241
  return subpatterns.join('|');
26200
26242
  }
@@ -26814,56 +26856,20 @@ var expand_1 = expand$1;
26814
26856
  var constants$2 = {
26815
26857
  MAX_LENGTH: 10000,
26816
26858
 
26817
- // Digits
26818
- CHAR_0: '0', /* 0 */
26819
- CHAR_9: '9', /* 9 */
26820
-
26821
- // Alphabet chars.
26822
- CHAR_UPPERCASE_A: 'A', /* A */
26823
- CHAR_LOWERCASE_A: 'a', /* a */
26824
- CHAR_UPPERCASE_Z: 'Z', /* Z */
26825
- CHAR_LOWERCASE_Z: 'z', /* z */
26826
-
26827
26859
  CHAR_LEFT_PARENTHESES: '(', /* ( */
26828
26860
  CHAR_RIGHT_PARENTHESES: ')', /* ) */
26829
26861
 
26830
- CHAR_ASTERISK: '*', /* * */
26831
-
26832
- // Non-alphabetic chars.
26833
- CHAR_AMPERSAND: '&', /* & */
26834
- CHAR_AT: '@', /* @ */
26835
26862
  CHAR_BACKSLASH: '\\', /* \ */
26836
26863
  CHAR_BACKTICK: '`', /* ` */
26837
- CHAR_CARRIAGE_RETURN: '\r', /* \r */
26838
- CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */
26839
- CHAR_COLON: ':', /* : */
26840
26864
  CHAR_COMMA: ',', /* , */
26841
- CHAR_DOLLAR: '$', /* . */
26842
26865
  CHAR_DOT: '.', /* . */
26843
26866
  CHAR_DOUBLE_QUOTE: '"', /* " */
26844
- CHAR_EQUAL: '=', /* = */
26845
- CHAR_EXCLAMATION_MARK: '!', /* ! */
26846
- CHAR_FORM_FEED: '\f', /* \f */
26847
- CHAR_FORWARD_SLASH: '/', /* / */
26848
- CHAR_HASH: '#', /* # */
26849
- CHAR_HYPHEN_MINUS: '-', /* - */
26850
- CHAR_LEFT_ANGLE_BRACKET: '<', /* < */
26851
26867
  CHAR_LEFT_CURLY_BRACE: '{', /* { */
26852
26868
  CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */
26853
- CHAR_LINE_FEED: '\n', /* \n */
26854
26869
  CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */
26855
- CHAR_PERCENT: '%', /* % */
26856
- CHAR_PLUS: '+', /* + */
26857
- CHAR_QUESTION_MARK: '?', /* ? */
26858
- CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */
26859
26870
  CHAR_RIGHT_CURLY_BRACE: '}', /* } */
26860
26871
  CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */
26861
- CHAR_SEMICOLON: ';', /* ; */
26862
26872
  CHAR_SINGLE_QUOTE: '\'', /* ' */
26863
- CHAR_SPACE: ' ', /* */
26864
- CHAR_TAB: '\t', /* \t */
26865
- CHAR_UNDERSCORE: '_', /* _ */
26866
- CHAR_VERTICAL_LINE: '|', /* | */
26867
26873
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */
26868
26874
  };
26869
26875
 
@@ -29858,6 +29864,9 @@ var shellQuote$1 = {};
29858
29864
 
29859
29865
  var quote = function quote(xs) {
29860
29866
  return xs.map(function (s) {
29867
+ if (s === '') {
29868
+ return '\'\'';
29869
+ }
29861
29870
  if (s && typeof s === 'object') {
29862
29871
  return s.op.replace(/(.)/g, '\\$1');
29863
29872
  }
@@ -29960,7 +29969,7 @@ function parseInternal(string, env, opts) {
29960
29969
  return matches.map(function (match) {
29961
29970
  var s = match[0];
29962
29971
  if (!s || commented) {
29963
- return undefined;
29972
+ return void 0;
29964
29973
  }
29965
29974
  if (controlRE.test(s)) {
29966
29975
  return { op: s };
@@ -30177,6 +30186,7 @@ var windows$1 = [
30177
30186
  'Code.exe',
30178
30187
  'Code - Insiders.exe',
30179
30188
  'VSCodium.exe',
30189
+ 'Cursor.exe',
30180
30190
  'atom.exe',
30181
30191
  'sublime_text.exe',
30182
30192
  'notepad++.exe',
@@ -30258,7 +30268,10 @@ var guess = function guessEditor (specifiedEditor) {
30258
30268
  } else if (process.platform === 'win32') {
30259
30269
  const output = childProcess$1
30260
30270
  .execSync(
30261
- 'powershell -NoProfile -Command "Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',
30271
+ 'powershell -NoProfile -Command "' +
30272
+ '[Console]::OutputEncoding=[Text.Encoding]::UTF8;' +
30273
+ 'Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }' +
30274
+ '"',
30262
30275
  {
30263
30276
  stdio: ['pipe', 'pipe', 'ignore']
30264
30277
  }
@@ -30429,6 +30442,11 @@ function isTerminalEditor (editor) {
30429
30442
 
30430
30443
  const positionRE = /:(\d+)(:(\d+))?$/;
30431
30444
  function parseFile (file) {
30445
+ // support `file://` protocol
30446
+ if (file.startsWith('file://')) {
30447
+ file = require$$0$5.fileURLToPath(file);
30448
+ }
30449
+
30432
30450
  const fileName = file.replace(positionRE, '');
30433
30451
  const match = file.match(positionRE);
30434
30452
  const lineNumber = match && match[1];
@@ -30619,7 +30637,7 @@ async function resolveHttpServer({ proxy }, app, httpsOptions) {
30619
30637
  }
30620
30638
  }
30621
30639
  async function resolveHttpsConfig(https) {
30622
- if (!https) return undefined;
30640
+ if (!https) return void 0;
30623
30641
  const [ca, cert, key, pfx] = await Promise.all([
30624
30642
  readFileIfExists(https.ca),
30625
30643
  readFileIfExists(https.cert),
@@ -30680,7 +30698,7 @@ function setClientErrorHandler(server, logger) {
30680
30698
 
30681
30699
  let offset;
30682
30700
  function calculateOffsetOnce() {
30683
- if (offset !== undefined) {
30701
+ if (offset !== void 0) {
30684
30702
  return;
30685
30703
  }
30686
30704
  try {
@@ -32880,7 +32898,7 @@ async function startBrowserProcess(browser, browserArgs, url, logger) {
32880
32898
  }
32881
32899
  }
32882
32900
  if (process.platform === "darwin" && browser === "open") {
32883
- browser = undefined;
32901
+ browser = void 0;
32884
32902
  }
32885
32903
  try {
32886
32904
  const options = browser ? { app: { name: browser, arguments: browserArgs } } : {};
@@ -35541,12 +35559,7 @@ const EventTarget = {
35541
35559
  };
35542
35560
 
35543
35561
  var eventTarget = {
35544
- CloseEvent,
35545
- ErrorEvent,
35546
- Event: Event$1,
35547
- EventTarget,
35548
- MessageEvent
35549
- };
35562
+ EventTarget};
35550
35563
 
35551
35564
  /**
35552
35565
  * Call an event listener
@@ -37905,7 +37918,7 @@ function createWebSocketServer(server, config, httpsOptions) {
37905
37918
  send: noop$2
37906
37919
  };
37907
37920
  }
37908
- let wsHttpServer = undefined;
37921
+ let wsHttpServer = void 0;
37909
37922
  const hmr = isObject$2(config.server.hmr) && config.server.hmr;
37910
37923
  const hmrServer = hmr && hmr.server;
37911
37924
  const hmrPort = hmr && hmr.port;
@@ -37915,7 +37928,7 @@ function createWebSocketServer(server, config, httpsOptions) {
37915
37928
  const customListeners = /* @__PURE__ */ new Map();
37916
37929
  const clientsMap = /* @__PURE__ */ new WeakMap();
37917
37930
  const port = hmrPort || 24678;
37918
- const host = hmr && hmr.host || undefined;
37931
+ const host = hmr && hmr.host || void 0;
37919
37932
  const shouldHandle = (req) => {
37920
37933
  const protocol = req.headers["sec-websocket-protocol"];
37921
37934
  if (protocol === "vite-ping") return true;
@@ -37948,7 +37961,7 @@ function createWebSocketServer(server, config, httpsOptions) {
37948
37961
  wss.shouldHandle = shouldHandle;
37949
37962
  if (wsServer) {
37950
37963
  let hmrBase = config.base;
37951
- const hmrPath = hmr ? hmr.path : undefined;
37964
+ const hmrPath = hmr ? hmr.path : void 0;
37952
37965
  if (hmrPath) {
37953
37966
  hmrBase = path$d.posix.join(hmrBase, hmrPath);
37954
37967
  }
@@ -40404,7 +40417,7 @@ ${err.stack}`,
40404
40417
  if (opts.ws || opts.target?.toString().startsWith("ws:") || opts.target?.toString().startsWith("wss:")) {
40405
40418
  if (opts.bypass) {
40406
40419
  try {
40407
- const bypassResult = await opts.bypass(req, undefined, opts);
40420
+ const bypassResult = await opts.bypass(req, void 0, opts);
40408
40421
  if (typeof bypassResult === "string") {
40409
40422
  debug$5?.(`bypass: ${req.url} -> ${bypassResult}`);
40410
40423
  req.url = bypassResult;
@@ -40487,7 +40500,7 @@ function htmlFallbackMiddleware(root, spaFallback) {
40487
40500
  // Only accept GET or HEAD
40488
40501
  req.method !== "GET" && req.method !== "HEAD" || // Exclude default favicon requests
40489
40502
  req.url === "/favicon.ico" || // Require Accept: text/html or */*
40490
- !(req.headers.accept === undefined || // equivalent to `Accept: */*`
40503
+ !(req.headers.accept === void 0 || // equivalent to `Accept: */*`
40491
40504
  req.headers.accept === "" || // equivalent to `Accept: */*`
40492
40505
  req.headers.accept.includes("text/html") || req.headers.accept.includes("*/*"))
40493
40506
  ) {
@@ -40960,7 +40973,7 @@ function sirv (dir, opts={}) {
40960
40973
  };
40961
40974
  }
40962
40975
 
40963
- const knownJavascriptExtensionRE = /\.[tj]sx?$/;
40976
+ const knownJavascriptExtensionRE = /\.(?:[tj]sx?|[cm][tj]s)$/;
40964
40977
  const sirvOptions = ({
40965
40978
  getHeaders
40966
40979
  }) => {
@@ -41184,11 +41197,11 @@ async function doTransform(environment, url, options, timestamp) {
41184
41197
  );
41185
41198
  if (cached) return cached;
41186
41199
  }
41187
- const resolved = module ? undefined : await pluginContainer.resolveId(url, undefined) ?? undefined;
41200
+ const resolved = module ? void 0 : await pluginContainer.resolveId(url, void 0) ?? void 0;
41188
41201
  const id = module?.id ?? resolved?.id ?? url;
41189
41202
  module ??= environment.moduleGraph.getModuleById(id);
41190
41203
  if (module) {
41191
- await environment.moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
41204
+ await environment.moduleGraph._ensureEntryFromUrl(url, void 0, resolved);
41192
41205
  const cached = await getCachedTransformResult(
41193
41206
  environment,
41194
41207
  url,
@@ -41235,7 +41248,7 @@ async function loadAndTransform(environment, id, url, options, timestamp, mod, r
41235
41248
  const moduleGraph = environment.moduleGraph;
41236
41249
  let code = null;
41237
41250
  let map = null;
41238
- const loadStart = debugLoad ? performance.now() : 0;
41251
+ const loadStart = debugLoad ? performance$1.now() : 0;
41239
41252
  const loadResult = await pluginContainer.load(id);
41240
41253
  if (loadResult == null) {
41241
41254
  const file = cleanUrl(id);
@@ -41300,8 +41313,8 @@ ${e}`, {
41300
41313
  }
41301
41314
  if (environment._closing && environment.config.dev.recoverable)
41302
41315
  throwClosedServerError();
41303
- mod ??= await moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
41304
- const transformStart = debugTransform ? performance.now() : 0;
41316
+ mod ??= await moduleGraph._ensureEntryFromUrl(url, void 0, resolved);
41317
+ const transformStart = debugTransform ? performance$1.now() : 0;
41305
41318
  const transformResult = await pluginContainer.transform(code, id, {
41306
41319
  inMap: map
41307
41320
  });
@@ -41368,7 +41381,7 @@ ${e}`, {
41368
41381
  }
41369
41382
  async function handleModuleSoftInvalidation(environment, mod, timestamp) {
41370
41383
  const transformResult = mod.invalidationState;
41371
- mod.invalidationState = undefined;
41384
+ mod.invalidationState = void 0;
41372
41385
  if (!transformResult || transformResult === "HARD_INVALIDATED") return;
41373
41386
  if (mod.transformResult) {
41374
41387
  throw new Error(
@@ -41382,7 +41395,7 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
41382
41395
  await init;
41383
41396
  const source = transformResult.code;
41384
41397
  const s = new MagicString(source);
41385
- const [imports] = parse$e(source, mod.id || undefined);
41398
+ const [imports] = parse$e(source, mod.id || void 0);
41386
41399
  for (const imp of imports) {
41387
41400
  let rawUrl = source.slice(imp.s, imp.e);
41388
41401
  if (rawUrl === "import.meta") continue;
@@ -41525,7 +41538,7 @@ function getNodeAssetAttributes(node) {
41525
41538
  return actions;
41526
41539
  }
41527
41540
  function getAttrKey(attr) {
41528
- return attr.prefix === undefined ? attr.name : `${attr.prefix}:${attr.name}`;
41541
+ return attr.prefix === void 0 ? attr.name : `${attr.prefix}:${attr.name}`;
41529
41542
  }
41530
41543
 
41531
41544
  const modulePreloadPolyfillId = "vite/modulepreload-polyfill";
@@ -41664,7 +41677,7 @@ function traverseNodes(node, visitor) {
41664
41677
  }
41665
41678
  }
41666
41679
  async function traverseHtml(html, filePath, visitor) {
41667
- const { parse } = await import('./dep-DcIXjcop.js');
41680
+ const { parse } = await import('./dep-CvfTChi5.js');
41668
41681
  const ast = parse(html, {
41669
41682
  scriptingEnabled: false,
41670
41683
  // parse inside <noscript>
@@ -41682,7 +41695,7 @@ function getScriptInfo(node) {
41682
41695
  let isAsync = false;
41683
41696
  let isIgnored = false;
41684
41697
  for (const p of node.attrs) {
41685
- if (p.prefix !== undefined) continue;
41698
+ if (p.prefix !== void 0) continue;
41686
41699
  if (p.name === "src") {
41687
41700
  if (!src) {
41688
41701
  src = p;
@@ -41915,8 +41928,8 @@ import "${id}?html-proxy&index=${inlineModuleIndex}.js"`;
41915
41928
  const processedEncodedUrl = await processSrcSet(
41916
41929
  attr.value,
41917
41930
  async ({ url }) => {
41918
- const decodedUrl = decodeURI(url);
41919
- if (!isExcludedUrl(decodedUrl)) {
41931
+ const decodedUrl = decodeURIIfPossible(url);
41932
+ if (decodedUrl !== void 0 && !isExcludedUrl(decodedUrl)) {
41920
41933
  const result = await processAssetUrl(url);
41921
41934
  return result !== decodedUrl ? encodeURIPath(result) : url;
41922
41935
  }
@@ -41929,8 +41942,8 @@ import "${id}?html-proxy&index=${inlineModuleIndex}.js"`;
41929
41942
  })()
41930
41943
  );
41931
41944
  } else if (attr.type === "src") {
41932
- const url = decodeURI(attr.value);
41933
- if (checkPublicFile(url, config)) {
41945
+ const url = decodeURIIfPossible(attr.value);
41946
+ if (url === void 0) ; else if (checkPublicFile(url, config)) {
41934
41947
  overwriteAttrValue(
41935
41948
  s,
41936
41949
  attr.location,
@@ -41951,7 +41964,7 @@ import ${JSON.stringify(url)}`;
41951
41964
  const isNoInlineLink = node.nodeName === "link" && attr.attributes.rel && parseRelAttr(attr.attributes.rel).some(
41952
41965
  (v) => noInlineLinkRels.has(v)
41953
41966
  );
41954
- const shouldInline = isNoInlineLink ? false : undefined;
41967
+ const shouldInline = isNoInlineLink ? false : void 0;
41955
41968
  assetUrlsPromises.push(
41956
41969
  (async () => {
41957
41970
  const processedUrl = await processAssetUrl(
@@ -42277,10 +42290,10 @@ function parseRelAttr(attr) {
42277
42290
  }
42278
42291
  function findNeedTransformStyleAttribute(node) {
42279
42292
  const attr = node.attrs.find(
42280
- (prop) => prop.prefix === undefined && prop.name === "style" && // only url(...) or image-set(...) in css need to emit file
42293
+ (prop) => prop.prefix === void 0 && prop.name === "style" && // only url(...) or image-set(...) in css need to emit file
42281
42294
  (prop.value.includes("url(") || prop.value.includes("image-set("))
42282
42295
  );
42283
- if (!attr) return undefined;
42296
+ if (!attr) return void 0;
42284
42297
  const location = node.sourceCodeLocation?.attrs?.["style"];
42285
42298
  return { attr, location };
42286
42299
  }
@@ -42444,7 +42457,7 @@ function resolveHtmlTransforms(plugins, logger) {
42444
42457
  )
42445
42458
  );
42446
42459
  }
42447
- const order = hook.order ?? (hook.enforce === "pre" ? "pre" : undefined);
42460
+ const order = hook.order ?? (hook.enforce === "pre" ? "pre" : void 0);
42448
42461
  const handler = hook.handler ?? hook.transform;
42449
42462
  if (order === "pre") {
42450
42463
  preHooks.push(handler);
@@ -42653,6 +42666,13 @@ function serializeAttrs(attrs) {
42653
42666
  function incrementIndent(indent = "") {
42654
42667
  return `${indent}${indent[0] === " " ? " " : " "}`;
42655
42668
  }
42669
+ function decodeURIIfPossible(input) {
42670
+ try {
42671
+ return decodeURI(input);
42672
+ } catch {
42673
+ return;
42674
+ }
42675
+ }
42656
42676
 
42657
42677
  const debugCache = createDebugger("vite:cache");
42658
42678
  const knownIgnoreList = /* @__PURE__ */ new Set(["/", "/favicon.ico"]);
@@ -43156,7 +43176,7 @@ function preTransformRequest(server, decodedUrl, decodedBase) {
43156
43176
  const logTime = createDebugger("vite:time");
43157
43177
  function timeMiddleware(root) {
43158
43178
  return function viteTimeMiddleware(req, res, next) {
43159
- const start = performance.now();
43179
+ const start = performance$1.now();
43160
43180
  const end = res.end;
43161
43181
  res.end = (...args) => {
43162
43182
  logTime?.(`${timeFrom(start)} ${prettifyUrl(req.url, root)}`);
@@ -43218,7 +43238,7 @@ class ModuleNode {
43218
43238
  _getModuleInfoUnion(prop) {
43219
43239
  const _clientValue = this._clientModule?.[prop];
43220
43240
  const _ssrValue = this._ssrModule?.[prop];
43221
- if (_clientValue == null && _ssrValue == null) return undefined;
43241
+ if (_clientValue == null && _ssrValue == null) return void 0;
43222
43242
  return new Proxy({}, {
43223
43243
  get: (_, key) => {
43224
43244
  if (key === "meta") {
@@ -43240,7 +43260,7 @@ class ModuleNode {
43240
43260
  _getModuleObjectUnion(prop) {
43241
43261
  const _clientValue = this._clientModule?.[prop];
43242
43262
  const _ssrValue = this._ssrModule?.[prop];
43243
- if (_clientValue == null && _ssrValue == null) return undefined;
43263
+ if (_clientValue == null && _ssrValue == null) return void 0;
43244
43264
  const info = {};
43245
43265
  if (_ssrValue) {
43246
43266
  Object.assign(info, _ssrValue);
@@ -43435,7 +43455,7 @@ class ModuleGraph {
43435
43455
  const clientModules = this._client.getModulesByFile(file);
43436
43456
  const ssrModules = this._ssr.getModulesByFile(file);
43437
43457
  if (!clientModules && !ssrModules) {
43438
- return undefined;
43458
+ return void 0;
43439
43459
  }
43440
43460
  const result = /* @__PURE__ */ new Set();
43441
43461
  if (clientModules) {
@@ -43543,12 +43563,12 @@ class ModuleGraph {
43543
43563
  getBackwardCompatibleBrowserModuleNode(clientModule) {
43544
43564
  return this.getBackwardCompatibleModuleNodeDual(
43545
43565
  clientModule,
43546
- clientModule.id ? this._ssr.getModuleById(clientModule.id) : undefined
43566
+ clientModule.id ? this._ssr.getModuleById(clientModule.id) : void 0
43547
43567
  );
43548
43568
  }
43549
43569
  getBackwardCompatibleServerModuleNode(ssrModule) {
43550
43570
  return this.getBackwardCompatibleModuleNodeDual(
43551
- ssrModule.id ? this._client.getModuleById(ssrModule.id) : undefined,
43571
+ ssrModule.id ? this._client.getModuleById(ssrModule.id) : void 0,
43552
43572
  ssrModule
43553
43573
  );
43554
43574
  }
@@ -43593,7 +43613,7 @@ function createBackwardCompatibleModuleSet(moduleGraph, prop, module) {
43593
43613
  return false;
43594
43614
  }
43595
43615
  const keyModule = moduleGraph._getModuleGraph(module.environment).getModuleById(key.id);
43596
- return keyModule !== undefined && module[prop].has(keyModule);
43616
+ return keyModule !== void 0 && module[prop].has(keyModule);
43597
43617
  },
43598
43618
  values() {
43599
43619
  return this.keys();
@@ -43903,7 +43923,7 @@ async function _createServer(inlineConfig = {}, options) {
43903
43923
  server._ssrCompatModuleRunner?.close()
43904
43924
  ]);
43905
43925
  server.resolvedUrls = null;
43906
- server._ssrCompatModuleRunner = undefined;
43926
+ server._ssrCompatModuleRunner = void 0;
43907
43927
  };
43908
43928
  let server = {
43909
43929
  config,
@@ -44000,7 +44020,15 @@ async function _createServer(inlineConfig = {}, options) {
44000
44020
  },
44001
44021
  openBrowser() {
44002
44022
  const options2 = server.config.server;
44003
- const url = server.resolvedUrls?.local[0] ?? server.resolvedUrls?.network[0];
44023
+ const host = options2.host;
44024
+ let url;
44025
+ if (typeof host === "string") {
44026
+ url = [
44027
+ ...server.resolvedUrls?.local ?? [],
44028
+ ...server.resolvedUrls?.network ?? []
44029
+ ].find((url2) => url2.includes(host));
44030
+ }
44031
+ url ??= server.resolvedUrls?.local[0] ?? server.resolvedUrls?.network[0];
44004
44032
  if (url) {
44005
44033
  const path2 = typeof options2.open === "string" ? new URL(options2.open, url).href : url;
44006
44034
  if (server.config.server.preTransformRequests) {
@@ -44070,7 +44098,7 @@ async function _createServer(inlineConfig = {}, options) {
44070
44098
  _importGlobMap: /* @__PURE__ */ new Map(),
44071
44099
  _restartPromise: null,
44072
44100
  _forceOptimizeOnRestart: false,
44073
- _shortcutsOptions: undefined
44101
+ _shortcutsOptions: void 0
44074
44102
  };
44075
44103
  const reflexServer = new Proxy(server, {
44076
44104
  get: (_, property) => {
@@ -44085,7 +44113,7 @@ async function _createServer(inlineConfig = {}, options) {
44085
44113
  try {
44086
44114
  await server.close();
44087
44115
  } finally {
44088
- process.exitCode ??= exitCode ? 128 + exitCode : undefined;
44116
+ process.exitCode ??= exitCode ? 128 + exitCode : void 0;
44089
44117
  process.exit();
44090
44118
  }
44091
44119
  };
@@ -44203,7 +44231,7 @@ async function _createServer(inlineConfig = {}, options) {
44203
44231
  Object.values(environments).map((e) => e.listen(server))
44204
44232
  );
44205
44233
  }
44206
- initingServer = undefined;
44234
+ initingServer = void 0;
44207
44235
  serverInited = true;
44208
44236
  }();
44209
44237
  return initingServer;
@@ -44280,9 +44308,9 @@ const serverConfigDefaults = Object.freeze({
44280
44308
  strictPort: false,
44281
44309
  host: "localhost",
44282
44310
  allowedHosts: [],
44283
- https: undefined,
44311
+ https: void 0,
44284
44312
  open: false,
44285
- proxy: undefined,
44313
+ proxy: void 0,
44286
44314
  cors: { origin: defaultAllowedOrigins },
44287
44315
  headers: {},
44288
44316
  // hmr
@@ -44308,7 +44336,7 @@ function resolveServerOptions(root, raw, logger) {
44308
44336
  const _server = mergeWithDefaults(
44309
44337
  {
44310
44338
  ...serverConfigDefaults,
44311
- host: undefined,
44339
+ host: void 0,
44312
44340
  // do not set here to detect whether host is set or not
44313
44341
  sourcemapIgnoreList: isInNodeModules$1
44314
44342
  },
@@ -44360,7 +44388,7 @@ function resolveServerOptions(root, raw, logger) {
44360
44388
  return server;
44361
44389
  }
44362
44390
  async function restartServer(server) {
44363
- global.__vite_start_time = performance.now();
44391
+ global.__vite_start_time = performance$1.now();
44364
44392
  const shortcutsOptions = server._shortcutsOptions;
44365
44393
  let inlineConfig = server.config.inlineConfig;
44366
44394
  if (server._forceOptimizeOnRestart) {
@@ -44535,8 +44563,6 @@ const normalizeHotChannel = (channel, enableHmr, normalizeClient = true) => {
44535
44563
  name: payload.name,
44536
44564
  id: responseInvoke,
44537
44565
  data: await handleInvoke({
44538
- type: "custom",
44539
- event: "vite:invoke",
44540
44566
  data: payload
44541
44567
  })
44542
44568
  }
@@ -44872,7 +44898,7 @@ function propagateUpdate(node, traversedModules, boundaries, currentChain = [nod
44872
44898
  return false;
44873
44899
  }
44874
44900
  traversedModules.add(node);
44875
- if (node.id && node.isSelfAccepting === undefined) {
44901
+ if (node.id && node.isSelfAccepting === void 0) {
44876
44902
  debugHmr?.(
44877
44903
  `[propagate update] stop propagation because not analyzed: ${colors$1.dim(
44878
44904
  node.id
@@ -45528,7 +45554,7 @@ function webWorkerPlugin(config) {
45528
45554
  injectEnv = "";
45529
45555
  } else {
45530
45556
  const environment = this.environment;
45531
- const moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
45557
+ const moduleGraph = environment.mode === "dev" ? environment.moduleGraph : void 0;
45532
45558
  const module = moduleGraph?.getModuleById(ENV_ENTRY);
45533
45559
  injectEnv = module?.transformResult?.code || "";
45534
45560
  }
@@ -45705,7 +45731,7 @@ function preAliasPlugin(config) {
45705
45731
  async resolveId(id, importer, options) {
45706
45732
  const { environment } = this;
45707
45733
  const ssr = environment.config.consumer === "server";
45708
- const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer : undefined;
45734
+ const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer : void 0;
45709
45735
  if (importer && depsOptimizer && bareImportRE.test(id) && !options.scan && id !== "@vite/client" && id !== "@vite/env") {
45710
45736
  if (findPatterns.find((pattern) => matches(pattern, id))) {
45711
45737
  const optimizedId = await tryOptimizedResolve(
@@ -45877,7 +45903,7 @@ function importAnalysisPlugin(config) {
45877
45903
  debug$2?.(colors$1.dim(`[skipped] ${prettifyUrl(importer, root)}`));
45878
45904
  return null;
45879
45905
  }
45880
- const msAtStart = debug$2 ? performance.now() : 0;
45906
+ const msAtStart = debug$2 ? performance$1.now() : 0;
45881
45907
  await init;
45882
45908
  let imports;
45883
45909
  let exports;
@@ -45890,7 +45916,7 @@ function importAnalysisPlugin(config) {
45890
45916
  importer,
45891
45917
  source
45892
45918
  );
45893
- this.error(message, showCodeFrame ? e.idx : undefined);
45919
+ this.error(message, showCodeFrame ? e.idx : void 0);
45894
45920
  }
45895
45921
  const depsOptimizer = environment.depsOptimizer;
45896
45922
  const importerModule = moduleGraph.getModuleById(importer);
@@ -46035,7 +46061,7 @@ function importAnalysisPlugin(config) {
46035
46061
  if (!isDynamicImport && attributeIndex > -1) {
46036
46062
  str().remove(end + 1, expEnd);
46037
46063
  }
46038
- if (specifier !== undefined) {
46064
+ if (specifier !== void 0) {
46039
46065
  if (isExternalUrl(specifier) && !specifier.startsWith("file://") || isDataUrl(specifier)) {
46040
46066
  return;
46041
46067
  }
@@ -46070,7 +46096,7 @@ function importAnalysisPlugin(config) {
46070
46096
  depsOptimizer.metadata,
46071
46097
  file
46072
46098
  );
46073
- if (needsInterop === undefined) {
46099
+ if (needsInterop === void 0) {
46074
46100
  if (!optimizedDepDynamicRE.test(file)) {
46075
46101
  config.logger.error(
46076
46102
  colors$1.red(
@@ -46454,7 +46480,7 @@ function clientInjectionsPlugin(config) {
46454
46480
  const devBase = config.base;
46455
46481
  const serverHost = `${resolvedServerHostname}:${resolvedServerPort}${devBase}`;
46456
46482
  let hmrConfig = config.server.hmr;
46457
- hmrConfig = isObject$2(hmrConfig) ? hmrConfig : undefined;
46483
+ hmrConfig = isObject$2(hmrConfig) ? hmrConfig : void 0;
46458
46484
  const host = hmrConfig?.host || null;
46459
46485
  const protocol = hmrConfig?.protocol || null;
46460
46486
  const timeout = hmrConfig?.timeout || 3e4;
@@ -46586,7 +46612,7 @@ function err(e, pos) {
46586
46612
  }
46587
46613
  function findClosingParen(input, fromIndex) {
46588
46614
  let count = 1;
46589
- for (let i = fromIndex + 1; i < input.length; i++) {
46615
+ for (let i = fromIndex; i < input.length; i++) {
46590
46616
  if (input[i] === "(") count++;
46591
46617
  if (input[i] === ")") count--;
46592
46618
  if (count === 0) return i;
@@ -47364,7 +47390,7 @@ class EnvironmentPluginContainer {
47364
47390
  const utils = createPluginHookUtils(plugins);
47365
47391
  this.getSortedPlugins = utils.getSortedPlugins;
47366
47392
  this.getSortedPluginHooks = utils.getSortedPluginHooks;
47367
- this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
47393
+ this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph : void 0;
47368
47394
  }
47369
47395
  _pluginContextMap = /* @__PURE__ */ new Map();
47370
47396
  _resolvedRollupOptions;
@@ -47406,7 +47432,7 @@ class EnvironmentPluginContainer {
47406
47432
  return info[key];
47407
47433
  }
47408
47434
  if (key === "then") {
47409
- return undefined;
47435
+ return void 0;
47410
47436
  }
47411
47437
  throw Error(
47412
47438
  `[vite] The "${key}" property of ModuleInfo is not supported.`
@@ -47485,7 +47511,7 @@ class EnvironmentPluginContainer {
47485
47511
  )
47486
47512
  );
47487
47513
  await this._buildStartPromise;
47488
- this._buildStartPromise = undefined;
47514
+ this._buildStartPromise = void 0;
47489
47515
  }
47490
47516
  async resolveId(rawId, importer = join$1(
47491
47517
  this.environment.config.root,
@@ -47506,7 +47532,7 @@ class EnvironmentPluginContainer {
47506
47532
  mergedSkip.add(call.plugin);
47507
47533
  }
47508
47534
  }
47509
- const resolveStart = debugResolve ? performance.now() : 0;
47535
+ const resolveStart = debugResolve ? performance$1.now() : 0;
47510
47536
  let id = null;
47511
47537
  const partial = {};
47512
47538
  for (const plugin of this.getSortedPlugins("resolveId")) {
@@ -47514,7 +47540,7 @@ class EnvironmentPluginContainer {
47514
47540
  throwClosedServerError();
47515
47541
  if (mergedSkip?.has(plugin)) continue;
47516
47542
  ctx._plugin = plugin;
47517
- const pluginResolveStart = debugPluginResolve ? performance.now() : 0;
47543
+ const pluginResolveStart = debugPluginResolve ? performance$1.now() : 0;
47518
47544
  const handler = getHookHandler(plugin.resolveId);
47519
47545
  const result = await this.handleHookPromise(
47520
47546
  handler.call(ctx, rawId, importer, {
@@ -47590,7 +47616,7 @@ class EnvironmentPluginContainer {
47590
47616
  if (this._closed && this.environment.config.dev.recoverable)
47591
47617
  throwClosedServerError();
47592
47618
  ctx._updateActiveInfo(plugin, id, code);
47593
- const start = debugPluginTransform ? performance.now() : 0;
47619
+ const start = debugPluginTransform ? performance$1.now() : 0;
47594
47620
  let result;
47595
47621
  const handler = getHookHandler(plugin.transform);
47596
47622
  try {
@@ -47607,7 +47633,7 @@ class EnvironmentPluginContainer {
47607
47633
  prettifyUrl(id, this.environment.config.root)
47608
47634
  );
47609
47635
  if (isObject$2(result)) {
47610
- if (result.code !== undefined) {
47636
+ if (result.code !== void 0) {
47611
47637
  code = result.code;
47612
47638
  if (result.map) {
47613
47639
  if (debugSourcemapCombine) {
@@ -48102,7 +48128,7 @@ function createIdResolver(config, options) {
48102
48128
  idOnly: true
48103
48129
  })
48104
48130
  ],
48105
- undefined,
48131
+ void 0,
48106
48132
  false
48107
48133
  );
48108
48134
  pluginContainerMap.set(environment, pluginContainer);
@@ -48116,7 +48142,7 @@ function createIdResolver(config, options) {
48116
48142
  pluginContainer = await createEnvironmentPluginContainer(
48117
48143
  environment,
48118
48144
  [alias$1({ entries: environment.config.resolve.alias })],
48119
- undefined,
48145
+ void 0,
48120
48146
  false
48121
48147
  );
48122
48148
  aliasOnlyPluginContainerMap.set(environment, pluginContainer);
@@ -48149,7 +48175,7 @@ function resolveCSSOptions(options) {
48149
48175
  resolved.lightningcss ??= {};
48150
48176
  resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
48151
48177
  } else {
48152
- resolved.lightningcss = undefined;
48178
+ resolved.lightningcss = void 0;
48153
48179
  }
48154
48180
  return resolved;
48155
48181
  }
@@ -48235,9 +48261,9 @@ function cssPlugin(config) {
48235
48261
  const decodedUrl = decodeURI(url);
48236
48262
  if (checkPublicFile(decodedUrl, config)) {
48237
48263
  if (encodePublicUrlsInCSS(config)) {
48238
- return [publicFileToBuiltUrl(decodedUrl, config), undefined];
48264
+ return [publicFileToBuiltUrl(decodedUrl, config), void 0];
48239
48265
  } else {
48240
- return [joinUrlSegments(config.base, decodedUrl), undefined];
48266
+ return [joinUrlSegments(config.base, decodedUrl), void 0];
48241
48267
  }
48242
48268
  }
48243
48269
  const [id2, fragment] = decodedUrl.split("#");
@@ -48261,7 +48287,7 @@ ${decodedUrl} referenced in ${id2} didn't resolve at build time, it will remain
48261
48287
  );
48262
48288
  }
48263
48289
  }
48264
- return [url, undefined];
48290
+ return [url, void 0];
48265
48291
  };
48266
48292
  const {
48267
48293
  code: css,
@@ -48290,8 +48316,49 @@ ${decodedUrl} referenced in ${id2} didn't resolve at build time, it will remain
48290
48316
  }
48291
48317
  };
48292
48318
  }
48319
+ const createStyleContentMap = () => {
48320
+ const contents = /* @__PURE__ */ new Map();
48321
+ const scopedIds = /* @__PURE__ */ new Set();
48322
+ const relations = /* @__PURE__ */ new Map();
48323
+ return {
48324
+ putContent(id, content, scopeTo) {
48325
+ contents.set(id, content);
48326
+ if (scopeTo) {
48327
+ const [scopedId, exp] = scopeTo;
48328
+ if (!relations.has(scopedId)) {
48329
+ relations.set(scopedId, []);
48330
+ }
48331
+ relations.get(scopedId).push({ id, exp });
48332
+ scopedIds.add(id);
48333
+ }
48334
+ },
48335
+ hasContentOfNonScoped(id) {
48336
+ return !scopedIds.has(id) && contents.has(id);
48337
+ },
48338
+ getContentOfNonScoped(id) {
48339
+ if (scopedIds.has(id)) return;
48340
+ return contents.get(id);
48341
+ },
48342
+ hasContentsScopedTo(id) {
48343
+ return (relations.get(id) ?? [])?.length > 0;
48344
+ },
48345
+ getContentsScopedTo(id, importedIds) {
48346
+ const values = (relations.get(id) ?? []).map(
48347
+ ({ id: id2, exp }) => [
48348
+ id2,
48349
+ {
48350
+ content: contents.get(id2) ?? "",
48351
+ exp
48352
+ }
48353
+ ]
48354
+ );
48355
+ const styleIdToValue = new Map(values);
48356
+ return importedIds.filter((id2) => styleIdToValue.has(id2)).map((id2) => styleIdToValue.get(id2));
48357
+ }
48358
+ };
48359
+ };
48293
48360
  function cssPostPlugin(config) {
48294
- const styles = /* @__PURE__ */ new Map();
48361
+ const styles = createStyleContentMap();
48295
48362
  let codeSplitEmitQueue = createSerialPromiseQueue();
48296
48363
  const urlEmitQueue = createSerialPromiseQueue();
48297
48364
  let pureCssChunks;
@@ -48395,8 +48462,9 @@ function cssPostPlugin(config) {
48395
48462
  ].join("\n");
48396
48463
  return { code: code2, map: { mappings: "" } };
48397
48464
  }
48465
+ const cssScopeTo = this.getModuleInfo(id)?.meta?.vite?.cssScopeTo;
48398
48466
  if (!inlined) {
48399
- styles.set(id, css);
48467
+ styles.putContent(id, css, cssScopeTo);
48400
48468
  }
48401
48469
  let code;
48402
48470
  if (modulesCode) {
@@ -48415,7 +48483,7 @@ function cssPostPlugin(config) {
48415
48483
  map: { mappings: "" },
48416
48484
  // avoid the css module from being tree-shaken so that we can retrieve
48417
48485
  // it in renderChunk()
48418
- moduleSideEffects: modulesCode || inlined ? false : "no-treeshake"
48486
+ moduleSideEffects: modulesCode || inlined || cssScopeTo ? false : "no-treeshake"
48419
48487
  };
48420
48488
  },
48421
48489
  async renderChunk(code, chunk, opts) {
@@ -48424,13 +48492,24 @@ function cssPostPlugin(config) {
48424
48492
  let isPureCssChunk = chunk.exports.length === 0;
48425
48493
  const ids = Object.keys(chunk.modules);
48426
48494
  for (const id of ids) {
48427
- if (styles.has(id)) {
48495
+ if (styles.hasContentOfNonScoped(id)) {
48428
48496
  if (!transformOnlyRE.test(id)) {
48429
- chunkCSS += styles.get(id);
48497
+ chunkCSS += styles.getContentOfNonScoped(id);
48430
48498
  if (cssModuleRE.test(id)) {
48431
48499
  isPureCssChunk = false;
48432
48500
  }
48433
48501
  }
48502
+ } else if (styles.hasContentsScopedTo(id)) {
48503
+ const renderedExports = chunk.modules[id].renderedExports;
48504
+ const importedIds = this.getModuleInfo(id)?.importedIds ?? [];
48505
+ for (const { exp, content } of styles.getContentsScopedTo(
48506
+ id,
48507
+ importedIds
48508
+ )) {
48509
+ if (exp === void 0 || renderedExports.includes(exp)) {
48510
+ chunkCSS += content;
48511
+ }
48512
+ }
48434
48513
  } else if (!isJsChunkEmpty) {
48435
48514
  isPureCssChunk = false;
48436
48515
  }
@@ -48439,7 +48518,7 @@ function cssPostPlugin(config) {
48439
48518
  const resolveAssetUrlsInCss = (chunkCSS2, cssAssetName) => {
48440
48519
  const encodedPublicUrls = encodePublicUrlsInCSS(config);
48441
48520
  const relative = config.base === "./" || config.base === "";
48442
- const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) : undefined;
48521
+ const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) : void 0;
48443
48522
  const toRelative = (filename) => {
48444
48523
  const relativePath = normalizePath$3(
48445
48524
  path$d.relative(cssAssetDirname, filename)
@@ -48482,7 +48561,7 @@ function cssPostPlugin(config) {
48482
48561
  };
48483
48562
  function ensureFileExt(name, ext) {
48484
48563
  return normalizePath$3(
48485
- path$d.format({ ...path$d.parse(name), base: undefined, ext })
48564
+ path$d.format({ ...path$d.parse(name), base: void 0, ext })
48486
48565
  );
48487
48566
  }
48488
48567
  let s;
@@ -48498,12 +48577,12 @@ function cssPostPlugin(config) {
48498
48577
  path$d.basename(originalFileName),
48499
48578
  ".css"
48500
48579
  );
48501
- if (!styles.has(id)) {
48580
+ if (!styles.hasContentOfNonScoped(id)) {
48502
48581
  throw new Error(
48503
48582
  `css content for ${JSON.stringify(id)} was not found`
48504
48583
  );
48505
48584
  }
48506
- let cssContent = styles.get(id);
48585
+ let cssContent = styles.getContentOfNonScoped(id);
48507
48586
  cssContent = resolveAssetUrlsInCss(cssContent, cssAssetName);
48508
48587
  urlEmitTasks.push({
48509
48588
  cssAssetName,
@@ -48811,7 +48890,7 @@ function createCSSResolvers(config) {
48811
48890
  args[1] = fileURLToPath$1(args[1], {
48812
48891
  windows: (
48813
48892
  // file:///foo cannot be converted to path with windows mode
48814
- isWindows$3 && args[1].startsWith("file:///") ? false : undefined
48893
+ isWindows$3 && args[1].startsWith("file:///") ? false : void 0
48815
48894
  )
48816
48895
  });
48817
48896
  }
@@ -48970,10 +49049,11 @@ async function compileCSS(environment, id, code, workerController, urlResolver)
48970
49049
  })
48971
49050
  );
48972
49051
  }
48973
- if (urlResolver && // if there's an @import, we need to add this plugin
48974
- // regradless of whether it contains url() or image-set(),
48975
- // because we don't know the content referenced by @import
48976
- (needInlineImport || hasUrl)) {
49052
+ if (urlResolver && // when a postcss plugin is used (including the internal postcss plugins),
49053
+ // we need to add this plugin regardless of whether
49054
+ // this file contains url() or image-set(),
49055
+ // because we don't know the content injected by those plugins
49056
+ (postcssPlugins.length > 0 || isModule || hasUrl)) {
48977
49057
  postcssPlugins.push(
48978
49058
  UrlRewritePostcssPlugin({
48979
49059
  resolver: urlResolver,
@@ -49065,11 +49145,11 @@ ${generateCodeFrame(
49065
49145
  column: warning.column - 1
49066
49146
  // 1-based
49067
49147
  },
49068
- warning.endLine !== undefined && warning.endColumn !== undefined ? {
49148
+ warning.endLine !== void 0 && warning.endColumn !== void 0 ? {
49069
49149
  line: warning.endLine,
49070
49150
  column: warning.endColumn - 1
49071
49151
  // 1-based
49072
- } : undefined
49152
+ } : void 0
49073
49153
  )}`;
49074
49154
  environment.logger.warn(colors$1.yellow(msg));
49075
49155
  }
@@ -49119,8 +49199,8 @@ function createCachedImport(imp) {
49119
49199
  return cached;
49120
49200
  };
49121
49201
  }
49122
- const importPostcssImport = createCachedImport(() => import('./dep-BUK8RJ2R.js').then(function (n) { return n.i; }));
49123
- const importPostcssModules = createCachedImport(() => import('./dep-DWzCYIjV.js').then(function (n) { return n.i; }));
49202
+ const importPostcssImport = createCachedImport(() => import('./dep-CtqJUVir.js').then(function (n) { return n.i; }));
49203
+ const importPostcssModules = createCachedImport(() => import('./dep-8m3w9g5k.js').then(function (n) { return n.i; }));
49124
49204
  const importPostcss = createCachedImport(() => import('postcss'));
49125
49205
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
49126
49206
  let alwaysFakeWorkerWorkerControllerCache;
@@ -49176,7 +49256,7 @@ async function finalizeCss(css, minify, config) {
49176
49256
  }
49177
49257
  async function resolvePostcssConfig(config) {
49178
49258
  let result = postcssConfigCache.get(config);
49179
- if (result !== undefined) {
49259
+ if (result !== void 0) {
49180
49260
  return await result;
49181
49261
  }
49182
49262
  const inlineOptions = config.css.postcss;
@@ -49348,7 +49428,7 @@ async function minifyCSS(css, config, inlined) {
49348
49428
  const { code, warnings } = (await importLightningCSS()).transform({
49349
49429
  ...config.css.lightningcss,
49350
49430
  targets: convertTargets(config.build.cssTarget),
49351
- cssModules: undefined,
49431
+ cssModules: void 0,
49352
49432
  // TODO: Pass actual filename here, which can also be passed to esbuild's
49353
49433
  // `sourcefile` option below to improve error messages
49354
49434
  filename: defaultCssBundleName,
@@ -49386,7 +49466,7 @@ ${messages.join("\n")}`)
49386
49466
  try {
49387
49467
  const { code, warnings } = await transform$1(css, {
49388
49468
  loader: "css",
49389
- target: config.build.cssTarget || undefined,
49469
+ target: config.build.cssTarget || void 0,
49390
49470
  ...resolveMinifyCssEsbuildOptions(config.esbuild || {})
49391
49471
  });
49392
49472
  if (warnings.length) {
@@ -49660,7 +49740,7 @@ const makeModernScssWorker = (environment, resolvers, alias, maxWorkers) => {
49660
49740
  const result = await sass.compileStringAsync(data, sassOptions);
49661
49741
  return {
49662
49742
  css: result.css,
49663
- map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
49743
+ map: result.sourceMap ? JSON.stringify(result.sourceMap) : void 0,
49664
49744
  stats: {
49665
49745
  includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath2(url))
49666
49746
  }
@@ -49729,7 +49809,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
49729
49809
  const result = await compiler.compileStringAsync(data, sassOptions);
49730
49810
  return {
49731
49811
  css: result.css,
49732
- map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
49812
+ map: result.sourceMap ? JSON.stringify(result.sourceMap) : void 0,
49733
49813
  stats: {
49734
49814
  includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath$1(url))
49735
49815
  }
@@ -49737,7 +49817,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
49737
49817
  },
49738
49818
  async stop() {
49739
49819
  (await compilerPromise)?.dispose();
49740
- compilerPromise = undefined;
49820
+ compilerPromise = void 0;
49741
49821
  }
49742
49822
  };
49743
49823
  return worker;
@@ -49782,7 +49862,7 @@ const scssProcessor = (maxWorkers) => {
49782
49862
  );
49783
49863
  const optionsWithoutAdditionalData = {
49784
49864
  ...options,
49785
- additionalData: undefined
49865
+ additionalData: void 0
49786
49866
  };
49787
49867
  try {
49788
49868
  const result = await worker.run(
@@ -49792,7 +49872,7 @@ const scssProcessor = (maxWorkers) => {
49792
49872
  optionsWithoutAdditionalData
49793
49873
  );
49794
49874
  const deps = result.stats.includedFiles.map((f) => cleanScssBugUrl(f));
49795
- const map2 = result.map ? JSON.parse(result.map.toString()) : undefined;
49875
+ const map2 = result.map ? JSON.parse(result.map.toString()) : void 0;
49796
49876
  if (map2) {
49797
49877
  map2.sources = map2.sources.map(
49798
49878
  (url) => url.startsWith("file://") ? normalizePath$3(fileURLToPath$1(url)) : url
@@ -49867,7 +49947,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
49867
49947
  filename,
49868
49948
  path$d.join(dir, "*")
49869
49949
  );
49870
- if (!resolved) return undefined;
49950
+ if (!resolved) return void 0;
49871
49951
  if (mime === "application/javascript") {
49872
49952
  const file = path$d.resolve(resolved);
49873
49953
  return { resolved: file };
@@ -49882,7 +49962,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
49882
49962
  );
49883
49963
  return {
49884
49964
  resolved,
49885
- contents: "contents" in result ? result.contents : undefined
49965
+ contents: "contents" in result ? result.contents : void 0
49886
49966
  };
49887
49967
  };
49888
49968
  const worker = new WorkerWithFallback(
@@ -49985,7 +50065,7 @@ const lessProcessor = (maxWorkers) => {
49985
50065
  let result;
49986
50066
  const optionsWithoutAdditionalData = {
49987
50067
  ...options,
49988
- additionalData: undefined
50068
+ additionalData: void 0
49989
50069
  };
49990
50070
  try {
49991
50071
  result = await worker.run(
@@ -50083,7 +50163,7 @@ const stylProcessor = (maxWorkers) => {
50083
50163
  );
50084
50164
  const optionsWithoutAdditionalData = {
50085
50165
  ...options,
50086
- additionalData: undefined
50166
+ additionalData: void 0
50087
50167
  };
50088
50168
  try {
50089
50169
  const { code, map: map2, deps } = await worker.run(
@@ -50109,7 +50189,7 @@ const stylProcessor = (maxWorkers) => {
50109
50189
  };
50110
50190
  };
50111
50191
  function formatStylusSourceMap(mapBefore, root) {
50112
- if (!mapBefore) return undefined;
50192
+ if (!mapBefore) return void 0;
50113
50193
  const map2 = { ...mapBefore };
50114
50194
  const resolveFromRoot = (p) => normalizePath$3(path$d.resolve(root, p));
50115
50195
  if (map2.file) {
@@ -50169,8 +50249,8 @@ const createPreprocessorWorkerController = (maxWorkers) => {
50169
50249
  };
50170
50250
  };
50171
50251
  const normalizeMaxWorkers = (maxWorker) => {
50172
- if (maxWorker === undefined) return 0;
50173
- if (maxWorker === true) return undefined;
50252
+ if (maxWorker === void 0) return 0;
50253
+ if (maxWorker === true) return void 0;
50174
50254
  return maxWorker;
50175
50255
  };
50176
50256
  const preprocessorSet = /* @__PURE__ */ new Set([
@@ -50229,7 +50309,7 @@ async function compileLightningCSS(id, src, environment, urlResolver) {
50229
50309
  minify: config.isProduction && !!config.build.cssMinify,
50230
50310
  sourceMap: config.command === "build" ? !!config.build.sourcemap : config.css.devSourcemap,
50231
50311
  analyzeDependencies: true,
50232
- cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true : undefined
50312
+ cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true : void 0
50233
50313
  });
50234
50314
  } catch (e) {
50235
50315
  e.message = `[lightningcss] ${e.message}`;
@@ -50310,7 +50390,7 @@ ${generateCodeFrame(src, {
50310
50390
  }
50311
50391
  return {
50312
50392
  code: css,
50313
- map: "map" in res ? res.map?.toString() : undefined,
50393
+ map: "map" in res ? res.map?.toString() : void 0,
50314
50394
  deps,
50315
50395
  modules
50316
50396
  };
@@ -50391,7 +50471,7 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
50391
50471
  return `${libOptions.fileName}.css`;
50392
50472
  }
50393
50473
  const packageJson = findNearestMainPackageData(root, packageCache)?.data;
50394
- const name = packageJson ? getPkgName(packageJson.name) : undefined;
50474
+ const name = packageJson ? getPkgName(packageJson.name) : void 0;
50395
50475
  if (!name)
50396
50476
  throw new Error(
50397
50477
  'Name in package.json is required if option "build.lib.cssFileName" is not provided.'
@@ -50529,7 +50609,7 @@ function buildImportAnalysisPlugin(config) {
50529
50609
  importer,
50530
50610
  source
50531
50611
  );
50532
- this.error(message, showCodeFrame ? e.idx : undefined);
50612
+ this.error(message, showCodeFrame ? e.idx : void 0);
50533
50613
  }
50534
50614
  if (!imports.length) {
50535
50615
  return null;
@@ -50726,7 +50806,7 @@ function buildImportAnalysisPlugin(config) {
50726
50806
  }
50727
50807
  const deps = /* @__PURE__ */ new Set();
50728
50808
  let hasRemovedPureCssChunk = false;
50729
- let normalizedFile = undefined;
50809
+ let normalizedFile = void 0;
50730
50810
  if (url) {
50731
50811
  normalizedFile = path$d.posix.join(
50732
50812
  path$d.posix.dirname(chunk.fileName),
@@ -50778,7 +50858,7 @@ function buildImportAnalysisPlugin(config) {
50778
50858
  // we still need to pass these deps to the preload helper in dynamic imports.
50779
50859
  [...deps].filter((d) => d.endsWith(".css"))
50780
50860
  ) : [...deps] : [];
50781
- const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : undefined;
50861
+ const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : void 0;
50782
50862
  if (resolveDependencies && normalizedFile) {
50783
50863
  const cssDeps = [];
50784
50864
  const otherDeps = [];
@@ -50866,6 +50946,7 @@ function buildImportAnalysisPlugin(config) {
50866
50946
  chunk.map
50867
50947
  ]);
50868
50948
  map.toUrl = () => genSourceMapUrl(map);
50949
+ const originalDebugId = chunk.map.debugId;
50869
50950
  chunk.map = map;
50870
50951
  if (buildSourcemap === "inline") {
50871
50952
  chunk.code = chunk.code.replace(
@@ -50875,6 +50956,9 @@ function buildImportAnalysisPlugin(config) {
50875
50956
  chunk.code += `
50876
50957
  //# sourceMappingURL=${genSourceMapUrl(map)}`;
50877
50958
  } else {
50959
+ if (originalDebugId) {
50960
+ map.debugId = originalDebugId;
50961
+ }
50878
50962
  const mapAsset = bundle[chunk.fileName + ".map"];
50879
50963
  if (mapAsset && mapAsset.type === "asset") {
50880
50964
  mapAsset.source = map.toString();
@@ -50967,7 +51051,7 @@ function ssrManifestPlugin() {
50967
51051
  this.emitFile({
50968
51052
  fileName: typeof config.build.ssrManifest === "string" ? config.build.ssrManifest : ".vite/ssr-manifest.json",
50969
51053
  type: "asset",
50970
- source: JSON.stringify(sortObjectKeys(ssrManifest), undefined, 2)
51054
+ source: JSON.stringify(sortObjectKeys(ssrManifest), void 0, 2)
50971
51055
  });
50972
51056
  }
50973
51057
  };
@@ -51050,12 +51134,12 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer) {
51050
51134
  const deprecatedPolyfillModulePreload = raw.polyfillModulePreload;
51051
51135
  const { polyfillModulePreload, ...rest } = raw;
51052
51136
  raw = rest;
51053
- if (deprecatedPolyfillModulePreload !== undefined) {
51137
+ if (deprecatedPolyfillModulePreload !== void 0) {
51054
51138
  logger.warn(
51055
51139
  "polyfillModulePreload is deprecated. Use modulePreload.polyfill instead."
51056
51140
  );
51057
51141
  }
51058
- if (deprecatedPolyfillModulePreload === false && raw.modulePreload === undefined) {
51142
+ if (deprecatedPolyfillModulePreload === false && raw.modulePreload === void 0) {
51059
51143
  raw.modulePreload = { polyfill: false };
51060
51144
  }
51061
51145
  const merged = mergeWithDefaults(
@@ -51175,7 +51259,7 @@ async function buildEnvironment(environment) {
51175
51259
  );
51176
51260
  const rollupOptions = {
51177
51261
  preserveEntrySignatures: ssr ? "allow-extension" : libOptions ? "strict" : false,
51178
- cache: options.watch ? undefined : false,
51262
+ cache: options.watch ? void 0 : false,
51179
51263
  ...options.rollupOptions,
51180
51264
  output: options.rollupOptions.output,
51181
51265
  input,
@@ -51222,7 +51306,7 @@ file: ${colors$1.cyan(
51222
51306
  ` + colors$1.yellow(normalizeCodeFrame(e.frame));
51223
51307
  }
51224
51308
  e.message = msg;
51225
- if (stackOnly !== undefined) {
51309
+ if (stackOnly !== void 0) {
51226
51310
  e.stack = `${e.message}
51227
51311
  ${stackOnly}`;
51228
51312
  }
@@ -51265,8 +51349,8 @@ ${stackOnly}`;
51265
51349
  format,
51266
51350
  exports: "auto",
51267
51351
  sourcemap: options.sourcemap,
51268
- name: libOptions ? libOptions.name : undefined,
51269
- hoistTransitiveImports: libOptions ? false : undefined,
51352
+ name: libOptions ? libOptions.name : void 0,
51353
+ hoistTransitiveImports: libOptions ? false : void 0,
51270
51354
  // es2015 enables `generatedCode.symbols`
51271
51355
  // - #764 add `Symbol.toStringTag` when build es module into cjs chunk
51272
51356
  // - #1048 add `Symbol.toStringTag` for module default export
@@ -51364,7 +51448,7 @@ build started...`));
51364
51448
  logger.error(
51365
51449
  `${colors$1.red("x")} Build failed in ${displayTime(Date.now() - startTime)}`
51366
51450
  );
51367
- startTime = undefined;
51451
+ startTime = void 0;
51368
51452
  }
51369
51453
  throw e;
51370
51454
  } finally {
@@ -52117,7 +52201,7 @@ function createDepsOptimizer(environment) {
52117
52201
  devToScanEnvironment(environment)
52118
52202
  );
52119
52203
  const deps = await discover.result;
52120
- discover = undefined;
52204
+ discover = void 0;
52121
52205
  const manuallyIncluded = Object.keys(manuallyIncludedDepsInfo);
52122
52206
  discoveredDepsWhileScanning.push(
52123
52207
  ...Object.keys(metadata.discovered).filter(
@@ -52135,7 +52219,7 @@ function createDepsOptimizer(environment) {
52135
52219
  if (!holdUntilCrawlEnd) {
52136
52220
  optimizationResult.result.then((result) => {
52137
52221
  if (!waitingForCrawlEnd) return;
52138
- optimizationResult = undefined;
52222
+ optimizationResult = void 0;
52139
52223
  runOptimizer(result);
52140
52224
  });
52141
52225
  }
@@ -52143,7 +52227,7 @@ function createDepsOptimizer(environment) {
52143
52227
  logger.error(e.stack || e.message);
52144
52228
  } finally {
52145
52229
  resolve();
52146
- depsOptimizer.scanProcessing = undefined;
52230
+ depsOptimizer.scanProcessing = void 0;
52147
52231
  }
52148
52232
  })();
52149
52233
  });
@@ -52170,7 +52254,7 @@ function createDepsOptimizer(environment) {
52170
52254
  async function runOptimizer(preRunResult) {
52171
52255
  const isRerun = firstRunCalled;
52172
52256
  firstRunCalled = true;
52173
- enqueuedRerun = undefined;
52257
+ enqueuedRerun = void 0;
52174
52258
  if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
52175
52259
  if (closed) {
52176
52260
  currentlyProcessing = false;
@@ -52188,7 +52272,7 @@ function createDepsOptimizer(environment) {
52188
52272
  startNextDiscoveredBatch();
52189
52273
  optimizationResult = runOptimizeDeps(environment, knownDeps);
52190
52274
  processingResult = await optimizationResult.result;
52191
- optimizationResult = undefined;
52275
+ optimizationResult = void 0;
52192
52276
  }
52193
52277
  if (closed) {
52194
52278
  currentlyProcessing = false;
@@ -52227,7 +52311,7 @@ function createDepsOptimizer(environment) {
52227
52311
  discovered.browserHash = optimized.browserHash;
52228
52312
  discovered.fileHash = optimized.fileHash;
52229
52313
  discovered.needsInterop = optimized.needsInterop;
52230
- discovered.processing = undefined;
52314
+ discovered.processing = void 0;
52231
52315
  }
52232
52316
  }
52233
52317
  if (isRerun) {
@@ -52245,7 +52329,7 @@ function createDepsOptimizer(environment) {
52245
52329
  if (!debug$1) {
52246
52330
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
52247
52331
  newDepsToLogHandle = setTimeout(() => {
52248
- newDepsToLogHandle = undefined;
52332
+ newDepsToLogHandle = void 0;
52249
52333
  logNewlyDiscoveredDeps();
52250
52334
  if (warnAboutMissedDependencies) {
52251
52335
  logDiscoveredDepsWhileScanning();
@@ -52277,7 +52361,7 @@ function createDepsOptimizer(environment) {
52277
52361
  await commitProcessing();
52278
52362
  if (!debug$1) {
52279
52363
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
52280
- newDepsToLogHandle = undefined;
52364
+ newDepsToLogHandle = void 0;
52281
52365
  logNewlyDiscoveredDeps();
52282
52366
  if (warnAboutMissedDependencies) {
52283
52367
  logDiscoveredDepsWhileScanning();
@@ -52380,12 +52464,12 @@ ${e.stack}`),
52380
52464
  });
52381
52465
  }
52382
52466
  function debouncedProcessing(timeout = debounceMs) {
52383
- enqueuedRerun = undefined;
52467
+ enqueuedRerun = void 0;
52384
52468
  if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
52385
52469
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
52386
- newDepsToLogHandle = undefined;
52470
+ newDepsToLogHandle = void 0;
52387
52471
  debounceProcessingHandle = setTimeout(() => {
52388
- debounceProcessingHandle = undefined;
52472
+ debounceProcessingHandle = void 0;
52389
52473
  enqueuedRerun = rerun;
52390
52474
  if (!currentlyProcessing) {
52391
52475
  enqueuedRerun();
@@ -52401,7 +52485,7 @@ ${e.stack}`),
52401
52485
  await depsOptimizer.scanProcessing;
52402
52486
  if (optimizationResult && !options.noDiscovery) {
52403
52487
  const afterScanResult = optimizationResult.result;
52404
- optimizationResult = undefined;
52488
+ optimizationResult = void 0;
52405
52489
  const result = await afterScanResult;
52406
52490
  currentlyProcessing = false;
52407
52491
  const crawlDeps = Object.keys(metadata.discovered);
@@ -52505,7 +52589,7 @@ function findInteropMismatches(discovered, optimized) {
52505
52589
  const needsInteropMismatch = [];
52506
52590
  for (const dep in discovered) {
52507
52591
  const discoveredDepInfo = discovered[dep];
52508
- if (discoveredDepInfo.needsInterop === undefined) continue;
52592
+ if (discoveredDepInfo.needsInterop === void 0) continue;
52509
52593
  const depInfo = optimized[dep];
52510
52594
  if (!depInfo) continue;
52511
52595
  if (depInfo.needsInterop !== discoveredDepInfo.needsInterop) {
@@ -52982,7 +53066,7 @@ class DevEnvironment extends BaseEnvironment {
52982
53066
  this._pendingRequests = /* @__PURE__ */ new Map();
52983
53067
  this.moduleGraph = new EnvironmentModuleGraph(
52984
53068
  name,
52985
- (url) => this.pluginContainer.resolveId(url, undefined)
53069
+ (url) => this.pluginContainer.resolveId(url, void 0)
52986
53070
  );
52987
53071
  this._crawlEndFinder = setupOnCrawlEnd();
52988
53072
  this._remoteRunnerOptions = context.remoteRunner ?? {};
@@ -53002,7 +53086,7 @@ class DevEnvironment extends BaseEnvironment {
53002
53086
  if (context.depsOptimizer) {
53003
53087
  this.depsOptimizer = context.depsOptimizer;
53004
53088
  } else if (isDepOptimizationDisabled(optimizeDeps)) {
53005
- this.depsOptimizer = undefined;
53089
+ this.depsOptimizer = void 0;
53006
53090
  } else {
53007
53091
  this.depsOptimizer = (optimizeDeps.noDiscovery ? createExplicitDepsOptimizer : createDepsOptimizer)(this);
53008
53092
  }
@@ -53387,7 +53471,7 @@ async function preview(inlineConfig = {}) {
53387
53471
  try {
53388
53472
  await server.close();
53389
53473
  } finally {
53390
- process.exitCode ??= exitCode ? 128 + exitCode : undefined;
53474
+ process.exitCode ??= exitCode ? 128 + exitCode : void 0;
53391
53475
  process.exit();
53392
53476
  }
53393
53477
  };
@@ -53478,7 +53562,7 @@ function resolveSSROptions(ssr, preserveSymlinks) {
53478
53562
  const defaults = mergeWithDefaults(ssrConfigDefaults, {
53479
53563
  optimizeDeps: { esbuildOptions: { preserveSymlinks } }
53480
53564
  });
53481
- return mergeWithDefaults(defaults, ssr);
53565
+ return mergeWithDefaults(defaults, ssr ?? {});
53482
53566
  }
53483
53567
 
53484
53568
  async function runnerImport(moduleId, inlineConfig) {
@@ -53557,7 +53641,7 @@ const configDefaults = Object.freeze({
53557
53641
  // preTransformRequests
53558
53642
  /** @experimental */
53559
53643
  sourcemap: { js: true },
53560
- sourcemapIgnoreList: undefined
53644
+ sourcemapIgnoreList: void 0
53561
53645
  // createEnvironment
53562
53646
  // recoverable
53563
53647
  // moduleRunnerTransform
@@ -53582,7 +53666,7 @@ const configDefaults = Object.freeze({
53582
53666
  // mode
53583
53667
  plugins: [],
53584
53668
  html: {
53585
- cspNonce: undefined
53669
+ cspNonce: void 0
53586
53670
  },
53587
53671
  css: cssConfigDefaults,
53588
53672
  json: {
@@ -53590,7 +53674,7 @@ const configDefaults = Object.freeze({
53590
53674
  stringify: "auto"
53591
53675
  },
53592
53676
  // esbuild
53593
- assetsInclude: undefined,
53677
+ assetsInclude: void 0,
53594
53678
  /** @experimental */
53595
53679
  builder: builderOptionsDefaults,
53596
53680
  server: serverConfigDefaults,
@@ -53607,26 +53691,26 @@ const configDefaults = Object.freeze({
53607
53691
  /** @experimental */
53608
53692
  experimental: {
53609
53693
  importGlobRestoreExtension: false,
53610
- renderBuiltUrl: undefined,
53694
+ renderBuiltUrl: void 0,
53611
53695
  hmrPartialAccept: false,
53612
53696
  skipSsrTransform: false
53613
53697
  },
53614
53698
  future: {
53615
- removePluginHookHandleHotUpdate: undefined,
53616
- removePluginHookSsrArgument: undefined,
53617
- removeServerModuleGraph: undefined,
53618
- removeServerHot: undefined,
53619
- removeServerTransformRequest: undefined,
53620
- removeSsrLoadModule: undefined
53699
+ removePluginHookHandleHotUpdate: void 0,
53700
+ removePluginHookSsrArgument: void 0,
53701
+ removeServerModuleGraph: void 0,
53702
+ removeServerHot: void 0,
53703
+ removeServerTransformRequest: void 0,
53704
+ removeSsrLoadModule: void 0
53621
53705
  },
53622
53706
  legacy: {
53623
53707
  proxySsrExternalModules: false,
53624
53708
  skipWebSocketTokenCheck: false
53625
53709
  },
53626
53710
  logLevel: "info",
53627
- customLogger: undefined,
53711
+ customLogger: void 0,
53628
53712
  clearScreen: true,
53629
- envDir: undefined,
53713
+ envDir: void 0,
53630
53714
  envPrefix: "VITE_",
53631
53715
  worker: {
53632
53716
  format: "iife",
@@ -53661,7 +53745,7 @@ function resolveDevEnvironmentOptions(dev, environmentName, consumer, skipSsrTra
53661
53745
  preTransformRequests: preTransformRequest ?? consumer === "client",
53662
53746
  createEnvironment: environmentName === "client" ? defaultCreateClientDevEnvironment : defaultCreateDevEnvironment,
53663
53747
  recoverable: consumer === "client",
53664
- moduleRunnerTransform: skipSsrTransform !== undefined && consumer === "server" ? skipSsrTransform : consumer === "server"
53748
+ moduleRunnerTransform: skipSsrTransform !== void 0 && consumer === "server" ? skipSsrTransform : consumer === "server"
53665
53749
  },
53666
53750
  dev ?? {}
53667
53751
  );
@@ -53713,8 +53797,8 @@ function getDefaultEnvironmentOptions(config) {
53713
53797
  resolve: {
53714
53798
  ...config.resolve,
53715
53799
  // mainFields and conditions are not inherited
53716
- mainFields: undefined,
53717
- conditions: undefined
53800
+ mainFields: void 0,
53801
+ conditions: void 0
53718
53802
  },
53719
53803
  dev: config.dev,
53720
53804
  build: config.build
@@ -53754,8 +53838,8 @@ function resolveEnvironmentResolveOptions(resolve, alias, preserveSymlinks, logg
53754
53838
  const resolvedResolve = mergeWithDefaults(
53755
53839
  {
53756
53840
  ...configDefaults.resolve,
53757
- mainFields: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
53758
- conditions: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
53841
+ mainFields: consumer === void 0 || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
53842
+ conditions: consumer === void 0 || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
53759
53843
  builtins: resolve?.builtins ?? (consumer === "server" ? isSsrTargetWebworkerEnvironment && resolve?.noExternal === true ? [] : nodeLikeBuiltins : [])
53760
53844
  },
53761
53845
  resolve ?? {}
@@ -53791,14 +53875,14 @@ function resolveResolveOptions(resolve, logger) {
53791
53875
  alias,
53792
53876
  preserveSymlinks,
53793
53877
  logger,
53794
- undefined
53878
+ void 0
53795
53879
  );
53796
53880
  }
53797
53881
  function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, forceOptimizeDeps, consumer) {
53798
53882
  return mergeWithDefaults(
53799
53883
  {
53800
53884
  ...configDefaults.optimizeDeps,
53801
- disabled: undefined,
53885
+ disabled: void 0,
53802
53886
  // do not set here to avoid deprecation warning
53803
53887
  noDiscovery: consumer !== "client",
53804
53888
  esbuildOptions: {
@@ -53809,7 +53893,7 @@ function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, forceOpti
53809
53893
  optimizeDeps ?? {}
53810
53894
  );
53811
53895
  }
53812
- async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig = undefined, patchPlugins = undefined) {
53896
+ async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig = void 0, patchPlugins = void 0) {
53813
53897
  let config = inlineConfig;
53814
53898
  let configFileDependencies = [];
53815
53899
  let mode = inlineConfig.mode || defaultMode;
@@ -53904,7 +53988,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53904
53988
  configEnvironmentsSsr.resolve ?? {}
53905
53989
  );
53906
53990
  }
53907
- if (config.build?.ssrEmitAssets !== undefined) {
53991
+ if (config.build?.ssrEmitAssets !== void 0) {
53908
53992
  configEnvironmentsSsr ??= {};
53909
53993
  configEnvironmentsSsr.build ??= {};
53910
53994
  configEnvironmentsSsr.build.emitAssets = config.build.ssrEmitAssets;
@@ -53925,12 +54009,12 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53925
54009
  ...defaultEnvironmentOptions,
53926
54010
  dev: {
53927
54011
  ...defaultEnvironmentOptions.dev,
53928
- createEnvironment: undefined,
53929
- warmup: undefined
54012
+ createEnvironment: void 0,
54013
+ warmup: void 0
53930
54014
  },
53931
54015
  build: {
53932
54016
  ...defaultEnvironmentOptions.build,
53933
- createEnvironment: undefined
54017
+ createEnvironment: void 0
53934
54018
  }
53935
54019
  };
53936
54020
  for (const name of Object.keys(config.environments)) {
@@ -53967,13 +54051,13 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53967
54051
  const resolvedDevEnvironmentOptions = resolveDevEnvironmentOptions(
53968
54052
  config.dev,
53969
54053
  // default environment options
53970
- undefined,
53971
- undefined
54054
+ void 0,
54055
+ void 0
53972
54056
  );
53973
54057
  const resolvedBuildOptions = resolveBuildEnvironmentOptions(
53974
54058
  config.build ?? {},
53975
54059
  logger,
53976
- undefined
54060
+ void 0
53977
54061
  );
53978
54062
  const patchedConfigSsr = {
53979
54063
  ...config.ssr,
@@ -54074,7 +54158,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
54074
54158
  const base = withTrailingSlash(resolvedBase);
54075
54159
  const preview = resolvePreviewOptions(config.preview, server);
54076
54160
  resolved = {
54077
- configFile: configFile ? normalizePath$3(configFile) : undefined,
54161
+ configFile: configFile ? normalizePath$3(configFile) : void 0,
54078
54162
  configFileDependencies: configFileDependencies.map(
54079
54163
  (name) => normalizePath$3(path$d.resolve(name))
54080
54164
  ),
@@ -54135,8 +54219,8 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
54135
54219
  webSocketToken: Buffer.from(
54136
54220
  crypto$2.getRandomValues(new Uint8Array(9))
54137
54221
  ).toString("base64url"),
54138
- getSortedPlugins: undefined,
54139
- getSortedPluginHooks: undefined,
54222
+ getSortedPlugins: void 0,
54223
+ getSortedPluginHooks: void 0,
54140
54224
  /**
54141
54225
  * createResolver is deprecated. It only works for the client and ssr
54142
54226
  * environments. The `aliasOnly` option is also not being used any more
@@ -54299,8 +54383,8 @@ async function loadConfigFromFile(configEnv, configFile, configRoot = process.cw
54299
54383
  `Unsupported configLoader: ${configLoader}. Accepted values are 'bundle', 'runner', and 'native'.`
54300
54384
  );
54301
54385
  }
54302
- const start = performance.now();
54303
- const getTime = () => `${(performance.now() - start).toFixed(2)}ms`;
54386
+ const start = performance$1.now();
54387
+ const getTime = () => `${(performance$1.now() - start).toFixed(2)}ms`;
54304
54388
  let resolvedPath;
54305
54389
  if (configFile) {
54306
54390
  resolvedPath = path$d.resolve(configFile);
@@ -54492,7 +54576,7 @@ async function bundleConfigFile(fileName, isESM) {
54492
54576
  const _require = createRequire$1(import.meta.url);
54493
54577
  async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
54494
54578
  if (isESM) {
54495
- let nodeModulesDir = typeof process.versions.deno === "string" ? undefined : findNearestNodeModules(path$d.dirname(fileName));
54579
+ let nodeModulesDir = typeof process.versions.deno === "string" ? void 0 : findNearestNodeModules(path$d.dirname(fileName));
54496
54580
  if (nodeModulesDir) {
54497
54581
  try {
54498
54582
  await fsp.mkdir(path$d.resolve(nodeModulesDir, ".vite-temp/"), {
@@ -54500,7 +54584,7 @@ async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
54500
54584
  });
54501
54585
  } catch (e) {
54502
54586
  if (e.code === "EACCES") {
54503
- nodeModulesDir = undefined;
54587
+ nodeModulesDir = void 0;
54504
54588
  } else {
54505
54589
  throw e;
54506
54590
  }
@@ -54566,14 +54650,14 @@ async function runConfigEnvironmentHook(environments, plugins, configEnv, isSsrT
54566
54650
  }
54567
54651
  function optimizeDepsDisabledBackwardCompatibility(resolved, optimizeDeps, optimizeDepsPath = "") {
54568
54652
  const optimizeDepsDisabled = optimizeDeps.disabled;
54569
- if (optimizeDepsDisabled !== undefined) {
54653
+ if (optimizeDepsDisabled !== void 0) {
54570
54654
  if (optimizeDepsDisabled === true || optimizeDepsDisabled === "dev") {
54571
54655
  const commonjsOptionsInclude = resolved.build.commonjsOptions.include;
54572
54656
  const commonjsPluginDisabled = Array.isArray(commonjsOptionsInclude) && commonjsOptionsInclude.length === 0;
54573
54657
  optimizeDeps.noDiscovery = true;
54574
- optimizeDeps.include = undefined;
54658
+ optimizeDeps.include = void 0;
54575
54659
  if (commonjsPluginDisabled) {
54576
- resolved.build.commonjsOptions.include = undefined;
54660
+ resolved.build.commonjsOptions.include = void 0;
54577
54661
  }
54578
54662
  resolved.logger.warn(
54579
54663
  colors$1.yellow(`(!) Experimental ${optimizeDepsPath}optimizeDeps.disabled and deps pre-bundling during build were removed in Vite 5.1.