vite 8.2.0 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1256,7 +1256,7 @@ Repository: https://github.com/lydell/js-tokens
1256
1256
 
1257
1257
  > The MIT License (MIT)
1258
1258
  >
1259
- > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell
1259
+ > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 Simon Lydell
1260
1260
  >
1261
1261
  > Permission is hereby granted, free of charge, to any person obtaining a copy
1262
1262
  > of this software and associated documentation files (the "Software"), to deal
@@ -8,7 +8,40 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
11
+ //#region ../../node_modules/.pnpm/rolldown@1.2.1/node_modules/rolldown/dist/experimental-runtime-base.mjs
12
+ var __create = Object.create;
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __getProtoOf = Object.getPrototypeOf;
17
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
18
+ var __exportAll = (all, no_symbols) => {
19
+ let target = {};
20
+ for (var name in all) __defProp(target, name, {
21
+ get: all[name],
22
+ enumerable: true
23
+ });
24
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
25
+ return target;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
+ key = keys[i];
30
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
+ get: ((k) => from[k]).bind(null, key),
32
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
+ });
34
+ }
35
+ return to;
36
+ };
37
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
39
+ value: mod,
40
+ enumerable: true
41
+ }) : target, mod));
42
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43
+ //#endregion
44
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
12
45
  function _typeof(o) {
13
46
  "@babel/helpers - typeof";
14
47
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -18,7 +51,7 @@ function _typeof(o) {
18
51
  }, _typeof(o);
19
52
  }
20
53
  //#endregion
21
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
54
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
22
55
  function toPrimitive(t, r) {
23
56
  if ("object" != _typeof(t) || !t) return t;
24
57
  var e = t[Symbol.toPrimitive];
@@ -30,13 +63,13 @@ function toPrimitive(t, r) {
30
63
  return ("string" === r ? String : Number)(t);
31
64
  }
32
65
  //#endregion
33
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
66
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
34
67
  function toPropertyKey(t) {
35
68
  var i = toPrimitive(t, "string");
36
69
  return "symbol" == _typeof(i) ? i : i + "";
37
70
  }
38
71
  //#endregion
39
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
72
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
40
73
  function _defineProperty(e, r, t) {
41
74
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
42
75
  value: t,
@@ -46,6 +79,283 @@ function _defineProperty(e, r, t) {
46
79
  }) : e[r] = t, e;
47
80
  }
48
81
  //#endregion
82
+ //#region ../../node_modules/.pnpm/rolldown@1.2.1/node_modules/rolldown/dist/experimental-runtime.mjs
83
+ var Module = class {
84
+ /**
85
+ * @param {string} id
86
+ */
87
+ constructor(id) {
88
+ _defineProperty(
89
+ this,
90
+ /**
91
+ * @type {{ exports: any }}
92
+ */
93
+ "exportsHolder",
94
+ { exports: null }
95
+ );
96
+ _defineProperty(
97
+ this,
98
+ /**
99
+ * @type {string}
100
+ */
101
+ "id",
102
+ void 0
103
+ );
104
+ this.id = id;
105
+ }
106
+ get exports() {
107
+ return this.exportsHolder.exports;
108
+ }
109
+ };
110
+ /**
111
+ * Compiler-emitted module-graph delta — pure topology (static + dynamic edges).
112
+ * `ids[0, localCount)` are the modules this payload carries; `ids[localCount, …)` are foreign edge targets.
113
+ * `edges[i]` / `dynamicEdges[i]` are the static / dynamic-`import()` out-edges of `ids[i]`.
114
+ * @typedef {{ ids: string[], localCount: number, edges: number[][], dynamicEdges?: number[][] }} ModuleGraphDelta
115
+ * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks
116
+ */
117
+ var MissingFactoryError = class extends Error {
118
+ /**
119
+ * @param {string} id
120
+ */
121
+ constructor(id) {
122
+ super(`No factory registered for module ${id}`);
123
+ this.id = id;
124
+ }
125
+ };
126
+ var DevRuntime = class {
127
+ /**
128
+ * @param {string} clientId
129
+ */
130
+ constructor(clientId) {
131
+ _defineProperty(
132
+ this,
133
+ /**
134
+ * Client ID generated at runtime initialization, used for lazy compilation requests.
135
+ * @type {string}
136
+ */
137
+ "clientId",
138
+ void 0
139
+ );
140
+ _defineProperty(
141
+ this,
142
+ /**
143
+ * Static import edges from `registerGraph` — entries persist across `removeModuleCache`
144
+ * and change only by replacement from a newer payload (last write wins).
145
+ * @type {Map<string, { edges: string[] }>}
146
+ */
147
+ "staticImports",
148
+ /* @__PURE__ */ new Map()
149
+ );
150
+ _defineProperty(
151
+ this,
152
+ /**
153
+ * Reverse index over the static imports.
154
+ * @type {Map<string, Set<string>>}
155
+ */
156
+ "importers",
157
+ /* @__PURE__ */ new Map()
158
+ );
159
+ _defineProperty(
160
+ this,
161
+ /**
162
+ * Dynamic `import()` edges from `registerGraph`, keyed by importer — mirror of
163
+ * `staticImports` for the dynamic reverse index.
164
+ * @type {Map<string, { edges: string[] }>}
165
+ */
166
+ "dynamicImports",
167
+ /* @__PURE__ */ new Map()
168
+ );
169
+ _defineProperty(
170
+ this,
171
+ /**
172
+ * Reverse index over the dynamic imports.
173
+ * @type {Map<string, Set<string>>}
174
+ */
175
+ "dynamicImporters",
176
+ /* @__PURE__ */ new Map()
177
+ );
178
+ _defineProperty(
179
+ this,
180
+ /**
181
+ * The module cache. Membership means "this module's side effects ran in this tab" —
182
+ * registration is emitted ahead of every module body, and nothing un-registers on
183
+ * unwind, so a factory that throws mid-body stays registered. A `Map` rather than a
184
+ * plain object: HMR eviction deletes entries, and a `delete` on an object drops V8
185
+ * into dictionary mode, taxing every later lookup on the hottest read path.
186
+ * @type {Map<string, Module>}
187
+ */
188
+ "moduleCache",
189
+ /* @__PURE__ */ new Map()
190
+ );
191
+ _defineProperty(
192
+ this,
193
+ /**
194
+ * Re-runnable factories from HMR patches and lazy chunks. The initial bundle stays
195
+ * scope-hoisted and contributes none.
196
+ * @type {Map<string, { kind: 'esm' | 'cjs', fn: (id: string) => void }>}
197
+ */
198
+ "factories",
199
+ /* @__PURE__ */ new Map()
200
+ );
201
+ _defineProperty(
202
+ this,
203
+ /**
204
+ * Installed by the dev client at boot. The runtime is a store + executor and makes
205
+ * no HMR decisions; accepting, disposing, and reloading live behind these hooks.
206
+ * @type {DevRuntimeHooks | null}
207
+ */
208
+ "hooks",
209
+ null
210
+ );
211
+ _defineProperty(
212
+ this,
213
+ /** @internal */
214
+ "__toESM",
215
+ __toESM
216
+ );
217
+ _defineProperty(
218
+ this,
219
+ /** @internal */
220
+ "__toCommonJS",
221
+ __toCommonJS
222
+ );
223
+ _defineProperty(
224
+ this,
225
+ /** @internal */
226
+ "__exportAll",
227
+ __exportAll
228
+ );
229
+ _defineProperty(
230
+ this,
231
+ /**
232
+ * @param {boolean} [isNodeMode]
233
+ * @returns {(mod: any) => any}
234
+ * @internal
235
+ */
236
+ "__toDynamicImportESM",
237
+ (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode)
238
+ );
239
+ _defineProperty(
240
+ this,
241
+ /** @internal */
242
+ "__reExport",
243
+ __reExport
244
+ );
245
+ this.clientId = clientId;
246
+ }
247
+ /**
248
+ * @param {ModuleGraphDelta} delta
249
+ */
250
+ registerGraph(delta) {
251
+ for (let i = 0; i < delta.localCount; i++) {
252
+ const id = delta.ids[i];
253
+ const edges = delta.edges[i].map((j) => delta.ids[j]);
254
+ for (const target of this.staticImports.get(id)?.edges ?? []) this.importers.get(target)?.delete(id);
255
+ for (const target of edges) {
256
+ let importerSet = this.importers.get(target);
257
+ if (!importerSet) {
258
+ importerSet = /* @__PURE__ */ new Set();
259
+ this.importers.set(target, importerSet);
260
+ }
261
+ importerSet.add(id);
262
+ }
263
+ this.staticImports.set(id, { edges });
264
+ const dynamicEdges = (delta.dynamicEdges?.[i] ?? []).map((j) => delta.ids[j]);
265
+ for (const target of this.dynamicImports.get(id)?.edges ?? []) this.dynamicImporters.get(target)?.delete(id);
266
+ for (const target of dynamicEdges) {
267
+ let importerSet = this.dynamicImporters.get(target);
268
+ if (!importerSet) {
269
+ importerSet = /* @__PURE__ */ new Set();
270
+ this.dynamicImporters.set(target, importerSet);
271
+ }
272
+ importerSet.add(id);
273
+ }
274
+ this.dynamicImports.set(id, { edges: dynamicEdges });
275
+ }
276
+ }
277
+ /**
278
+ * @param {string} id
279
+ * @param {'esm' | 'cjs'} kind
280
+ * @param {(id: string) => void} fn
281
+ */
282
+ registerFactory(id, kind, fn) {
283
+ this.factories.set(id, {
284
+ kind,
285
+ fn
286
+ });
287
+ }
288
+ /**
289
+ * @param {string} id
290
+ * @param {{ exports: any }} exportsHolder
291
+ */
292
+ registerModule(id, exportsHolder) {
293
+ const module = new Module(id);
294
+ module.exportsHolder = exportsHolder;
295
+ this.moduleCache.set(id, module);
296
+ }
297
+ /**
298
+ * @param {string} id
299
+ * @returns {string[]}
300
+ */
301
+ getImporters(id) {
302
+ const dynamic = this.dynamicImporters.get(id);
303
+ if (!dynamic || dynamic.size === 0) return [...this.importers.get(id) ?? []];
304
+ return [.../* @__PURE__ */ new Set([...this.importers.get(id) ?? [], ...dynamic])];
305
+ }
306
+ /**
307
+ * @param {string} id
308
+ */
309
+ isExecuted(id) {
310
+ return this.moduleCache.has(id);
311
+ }
312
+ /**
313
+ * @param {string} id
314
+ */
315
+ hasFactory(id) {
316
+ return this.factories.has(id);
317
+ }
318
+ /**
319
+ * Module-cache delete only — static imports and factories persist. Removal is what
320
+ * re-arms a cache-gated factory for `initModule`.
321
+ * @param {string} id
322
+ */
323
+ removeModuleCache(id) {
324
+ this.moduleCache.delete(id);
325
+ this.hooks?.onModuleCacheRemoval(id);
326
+ }
327
+ /**
328
+ * The one re-execution gate: registered → return the live exports; otherwise run the
329
+ * mapped factory (which registers itself first, then runs the body).
330
+ * @param {string} id
331
+ */
332
+ initModule(id) {
333
+ if (this.moduleCache.has(id)) return this.loadExports(id);
334
+ const factory = this.factories.get(id);
335
+ if (!factory) throw new MissingFactoryError(id);
336
+ factory.fn(id);
337
+ return this.loadExports(id);
338
+ }
339
+ /**
340
+ * @param {string} id
341
+ */
342
+ loadExports(id) {
343
+ const module = this.moduleCache.get(id);
344
+ if (module) return module.exportsHolder.exports;
345
+ else {
346
+ console.warn(`Module ${id} not found`);
347
+ return {};
348
+ }
349
+ }
350
+ /**
351
+ * @param {string} moduleId
352
+ */
353
+ createModuleHotContext(moduleId) {
354
+ if (this.hooks) return this.hooks.createModuleHotContext(moduleId);
355
+ throw new Error("createModuleHotContext requires installed hooks or an override");
356
+ }
357
+ };
358
+ //#endregion
49
359
  //#region src/shared/hmr.ts
50
360
  var HMRContext = class {
51
361
  constructor(hmrClient, ownerPath) {
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
2
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
5
5
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -9,7 +9,7 @@ function _typeof(o) {
9
9
  }, _typeof(o);
10
10
  }
11
11
  //#endregion
12
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
13
13
  function toPrimitive(t, r) {
14
14
  if ("object" != _typeof(t) || !t) return t;
15
15
  var e = t[Symbol.toPrimitive];
@@ -21,13 +21,13 @@ function toPrimitive(t, r) {
21
21
  return ("string" === r ? String : Number)(t);
22
22
  }
23
23
  //#endregion
24
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
25
25
  function toPropertyKey(t) {
26
26
  var i = toPrimitive(t, "string");
27
27
  return "symbol" == _typeof(i) ? i : i + "";
28
28
  }
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
31
31
  function _defineProperty(e, r, t) {
32
32
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
33
  value: t,
@@ -1,6 +1,6 @@
1
1
  import { ft as __commonJSMin, pt as __require } from "./node.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/fs.js
3
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/fs.js
4
4
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  function _export(target, all) {
@@ -34,7 +34,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
34
34
  }
35
35
  }));
36
36
  //#endregion
37
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/unquote.js
37
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/unquote.js
38
38
  var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  Object.defineProperty(exports, "default", {
@@ -52,7 +52,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
52
52
  }
53
53
  }));
54
54
  //#endregion
55
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.23/node_modules/icss-utils/src/replaceValueSymbols.js
55
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.25/node_modules/icss-utils/src/replaceValueSymbols.js
56
56
  var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
57
  const matchValueName = /[$]?[\w-]+/g;
58
58
  const replaceValueSymbols = (value, replacements) => {
@@ -69,7 +69,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
69
69
  module.exports = replaceValueSymbols;
70
70
  }));
71
71
  //#endregion
72
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.23/node_modules/icss-utils/src/replaceSymbols.js
72
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.25/node_modules/icss-utils/src/replaceSymbols.js
73
73
  var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74
74
  const replaceValueSymbols = require_replaceValueSymbols();
75
75
  const replaceSymbols = (css, replacements) => {
@@ -82,7 +82,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
82
82
  module.exports = replaceSymbols;
83
83
  }));
84
84
  //#endregion
85
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.23/node_modules/icss-utils/src/extractICSS.js
85
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.25/node_modules/icss-utils/src/extractICSS.js
86
86
  var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87
87
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
88
88
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
@@ -136,7 +136,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
136
136
  module.exports = extractICSS;
137
137
  }));
138
138
  //#endregion
139
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.23/node_modules/icss-utils/src/createICSSRules.js
139
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.25/node_modules/icss-utils/src/createICSSRules.js
140
140
  var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
141
141
  const createImports = (imports, postcss, mode = "rule") => {
142
142
  return Object.keys(imports).map((path) => {
@@ -180,7 +180,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
180
180
  module.exports = createICSSRules;
181
181
  }));
182
182
  //#endregion
183
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.23/node_modules/icss-utils/src/index.js
183
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.25/node_modules/icss-utils/src/index.js
184
184
  var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
185
185
  module.exports = {
186
186
  replaceValueSymbols: require_replaceValueSymbols(),
@@ -190,7 +190,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
190
190
  };
191
191
  }));
192
192
  //#endregion
193
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/Parser.js
193
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/Parser.js
194
194
  var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
195
195
  Object.defineProperty(exports, "__esModule", { value: true });
196
196
  Object.defineProperty(exports, "default", {
@@ -262,7 +262,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
262
262
  };
263
263
  }));
264
264
  //#endregion
265
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/saveJSON.js
265
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/saveJSON.js
266
266
  var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
267
267
  Object.defineProperty(exports, "__esModule", { value: true });
268
268
  Object.defineProperty(exports, "default", {
@@ -944,7 +944,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
944
944
  module.exports = camelCase;
945
945
  }));
946
946
  //#endregion
947
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/localsConvention.js
947
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/localsConvention.js
948
948
  var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
949
949
  Object.defineProperty(exports, "__esModule", { value: true });
950
950
  Object.defineProperty(exports, "makeLocalsConventionReducer", {
@@ -992,16 +992,14 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
992
992
  tokens[className] = value;
993
993
  tokens[dashesCamelCase(className)] = value;
994
994
  break;
995
- case "dashesOnly":
996
- tokens[dashesCamelCase(className)] = value;
997
- break;
995
+ case "dashesOnly": tokens[dashesCamelCase(className)] = value;
998
996
  }
999
997
  return tokens;
1000
998
  };
1001
999
  }
1002
1000
  }));
1003
1001
  //#endregion
1004
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/FileSystemLoader.js
1002
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/FileSystemLoader.js
1005
1003
  var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
1006
1004
  Object.defineProperty(exports, "__esModule", { value: true });
1007
1005
  Object.defineProperty(exports, "default", {
@@ -1090,7 +1088,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
1090
1088
  };
1091
1089
  }));
1092
1090
  //#endregion
1093
- //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.23/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1091
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.25/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1094
1092
  var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1095
1093
  const PERMANENT_MARKER = 2;
1096
1094
  const TEMPORARY_MARKER = 1;
@@ -1129,7 +1127,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
1129
1127
  module.exports = topologicalSort;
1130
1128
  }));
1131
1129
  //#endregion
1132
- //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.23/node_modules/postcss-modules-extract-imports/src/index.js
1130
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.25/node_modules/postcss-modules-extract-imports/src/index.js
1133
1131
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1134
1132
  const topologicalSort = require_topologicalSort();
1135
1133
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
@@ -3072,7 +3070,20 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
3072
3070
  get: function get() {
3073
3071
  return this._value;
3074
3072
  },
3075
- set: function set(v) {
3073
+ set:
3074
+ /**
3075
+ * Before 3.0, the value had to be set to an escaped value including any wrapped
3076
+ * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
3077
+ * is unescaped during parsing and any quote marks are removed.
3078
+ *
3079
+ * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
3080
+ * a deprecation warning is raised when the new value contains any characters that would
3081
+ * require escaping (including if it contains wrapped quotes).
3082
+ *
3083
+ * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
3084
+ * how the new value is quoted.
3085
+ */
3086
+ function set(v) {
3076
3087
  if (this._constructed) {
3077
3088
  var _unescapeValue2 = unescapeValue(v), deprecatedUsage = _unescapeValue2.deprecatedUsage, unescaped = _unescapeValue2.unescaped, quoteMark = _unescapeValue2.quoteMark;
3078
3089
  if (deprecatedUsage) warnOfDeprecatedValueAssignment();
@@ -3484,7 +3495,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
3484
3495
  endColumn = next - offset;
3485
3496
  }
3486
3497
  end = next + 1;
3487
- break;
3488
3498
  }
3489
3499
  tokens.push([
3490
3500
  tokenType,
@@ -4640,7 +4650,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4640
4650
  module.exports = exports.default;
4641
4651
  }));
4642
4652
  //#endregion
4643
- //#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.23/node_modules/postcss-modules-local-by-default/src/index.js
4653
+ //#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.25/node_modules/postcss-modules-local-by-default/src/index.js
4644
4654
  var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4645
4655
  const selectorParser = require_dist();
4646
4656
  const valueParser = require_lib();
@@ -4834,22 +4844,18 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4834
4844
  }
4835
4845
  }
4836
4846
  break;
4837
- case "function":
4838
- if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => {
4839
- if (nestedNode.type !== "string" && nestedNode.type !== "word") return;
4840
- let newUrl = context.options.rewriteUrl(context.global, nestedNode.value);
4841
- switch (nestedNode.type) {
4842
- case "string":
4843
- if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
4844
- if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\"");
4845
- break;
4846
- case "word":
4847
- newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
4848
- break;
4849
- }
4850
- nestedNode.value = newUrl;
4851
- });
4852
- break;
4847
+ case "function": if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => {
4848
+ if (nestedNode.type !== "string" && nestedNode.type !== "word") return;
4849
+ let newUrl = context.options.rewriteUrl(context.global, nestedNode.value);
4850
+ switch (nestedNode.type) {
4851
+ case "string":
4852
+ if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
4853
+ if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\"");
4854
+ break;
4855
+ case "word": newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
4856
+ }
4857
+ nestedNode.value = newUrl;
4858
+ });
4853
4859
  }
4854
4860
  return node;
4855
4861
  }
@@ -5038,7 +5044,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5038
5044
  module.exports.postcss = true;
5039
5045
  }));
5040
5046
  //#endregion
5041
- //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.23/node_modules/postcss-modules-scope/src/index.js
5047
+ //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.25/node_modules/postcss-modules-scope/src/index.js
5042
5048
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5043
5049
  const selectorParser = require_dist();
5044
5050
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5114,9 +5120,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5114
5120
  node.each((item) => traverseNode(item));
5115
5121
  break;
5116
5122
  case "id":
5117
- case "class":
5118
- if (exportGlobals) exports$1[node.value] = [node.value];
5119
- break;
5123
+ case "class": if (exportGlobals) exports$1[node.value] = [node.value];
5120
5124
  }
5121
5125
  return node;
5122
5126
  }
@@ -5218,7 +5222,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5218
5222
  module.exports = hash;
5219
5223
  }));
5220
5224
  //#endregion
5221
- //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.23/node_modules/postcss-modules-values/src/index.js
5225
+ //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.25/node_modules/postcss-modules-values/src/index.js
5222
5226
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5223
5227
  const ICSSUtils = require_src$4();
5224
5228
  const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
@@ -5305,7 +5309,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5305
5309
  module.exports.postcss = true;
5306
5310
  }));
5307
5311
  //#endregion
5308
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/scoping.js
5312
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/scoping.js
5309
5313
  var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5310
5314
  Object.defineProperty(exports, "__esModule", { value: true });
5311
5315
  function _export(target, all) {
@@ -5384,7 +5388,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5384
5388
  }
5385
5389
  }));
5386
5390
  //#endregion
5387
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/pluginFactory.js
5391
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/pluginFactory.js
5388
5392
  var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5389
5393
  Object.defineProperty(exports, "__esModule", { value: true });
5390
5394
  Object.defineProperty(exports, "makePlugin", {
@@ -5466,7 +5470,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5466
5470
  }
5467
5471
  }));
5468
5472
  //#endregion
5469
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.23/node_modules/postcss-modules/build/index.js
5473
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/index.js
5470
5474
  var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5471
5475
  Object.defineProperty(exports, "__esModule", { value: true });
5472
5476
  const _fs = __require("fs");