vite 8.2.1 → 8.2.2

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.
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region ../../node_modules/.pnpm/rolldown@1.2.1/node_modules/rolldown/dist/experimental-runtime-base.mjs
11
+ //#region ../../node_modules/.pnpm/rolldown@1.2.4/node_modules/rolldown/dist/experimental-runtime-base.mjs
12
12
  var __create = Object.create;
13
13
  var __defProp = Object.defineProperty;
14
14
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
41
41
  }) : target, mod));
42
42
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43
43
  //#endregion
44
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
44
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/typeof.js
45
45
  function _typeof(o) {
46
46
  "@babel/helpers - typeof";
47
47
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -51,7 +51,7 @@ function _typeof(o) {
51
51
  }, _typeof(o);
52
52
  }
53
53
  //#endregion
54
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
54
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPrimitive.js
55
55
  function toPrimitive(t, r) {
56
56
  if ("object" != _typeof(t) || !t) return t;
57
57
  var e = t[Symbol.toPrimitive];
@@ -63,13 +63,13 @@ function toPrimitive(t, r) {
63
63
  return ("string" === r ? String : Number)(t);
64
64
  }
65
65
  //#endregion
66
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
66
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPropertyKey.js
67
67
  function toPropertyKey(t) {
68
68
  var i = toPrimitive(t, "string");
69
69
  return "symbol" == _typeof(i) ? i : i + "";
70
70
  }
71
71
  //#endregion
72
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
72
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/defineProperty.js
73
73
  function _defineProperty(e, r, t) {
74
74
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
75
75
  value: t,
@@ -79,7 +79,7 @@ function _defineProperty(e, r, t) {
79
79
  }) : e[r] = t, e;
80
80
  }
81
81
  //#endregion
82
- //#region ../../node_modules/.pnpm/rolldown@1.2.1/node_modules/rolldown/dist/experimental-runtime.mjs
82
+ //#region ../../node_modules/.pnpm/rolldown@1.2.4/node_modules/rolldown/dist/experimental-runtime.mjs
83
83
  var Module = class {
84
84
  /**
85
85
  * @param {string} id
@@ -585,7 +585,11 @@ var BundledDevHMRClient = class extends HMRClient {
585
585
  reason: `update propagated back to ${firstInvalidatedBy}, which already called \`import.meta.hot.invalidate()\``
586
586
  };
587
587
  if (this.isSelfAccepted(id)) {
588
- boundaries.push([id, id]);
588
+ boundaries.push({
589
+ boundary: id,
590
+ acceptedVia: id,
591
+ isWithinCircularImport: this.isNodeWithinCircularImports(id, stack)
592
+ });
589
593
  return;
590
594
  }
591
595
  const parents = this.runtime.getImporters(id).filter((p) => this.runtime.isExecuted(p));
@@ -594,17 +598,52 @@ var BundledDevHMRClient = class extends HMRClient {
594
598
  reason: `no hmr boundary found for module \`${id}\``
595
599
  };
596
600
  for (const parent of parents) {
601
+ const subChain = [...stack, parent];
597
602
  if (this.acceptsDep(parent, id)) {
598
- boundaries.push([parent, id]);
603
+ boundaries.push({
604
+ boundary: parent,
605
+ acceptedVia: id,
606
+ isWithinCircularImport: this.isNodeWithinCircularImports(parent, subChain)
607
+ });
599
608
  continue;
600
609
  }
601
- if (stack.includes(parent)) return {
602
- type: "full-reload",
603
- reason: `circular import chain between \`${id}\` and \`${parent}\``
604
- };
605
- const fullReload = this.bubble(parent, [...stack, parent], updateSet, boundaries, firstInvalidatedBy, traversedModules);
606
- if (fullReload) return fullReload;
610
+ if (!stack.includes(parent)) {
611
+ const fullReload = this.bubble(parent, subChain, updateSet, boundaries, firstInvalidatedBy, traversedModules);
612
+ if (fullReload) return fullReload;
613
+ }
614
+ }
615
+ }
616
+ /**
617
+ * Check importers recursively if it's an import loop. An accepted module within
618
+ * an import loop cannot recover its execution order and should be reloaded.
619
+ *
620
+ * @param node The node that accepts HMR and is a boundary
621
+ * @param nodeChain The chain of nodes/imports that lead to the node.
622
+ * (The last node in the chain imports the `node` parameter)
623
+ * @param currentChain The current chain tracked from the `node` parameter
624
+ * @param traversedModules The set of modules that have traversed
625
+ */
626
+ isNodeWithinCircularImports(node, nodeChain, currentChain = [node], traversedModules = /* @__PURE__ */ new Set()) {
627
+ if (traversedModules.has(node)) return false;
628
+ traversedModules.add(node);
629
+ for (const importer of this.runtime.getImporters(node)) {
630
+ if (importer === node) continue;
631
+ const importerIndex = nodeChain.indexOf(importer);
632
+ if (importerIndex > -1) {
633
+ const importChain = [
634
+ importer,
635
+ ...[...currentChain].reverse(),
636
+ ...nodeChain.slice(importerIndex, -1).reverse()
637
+ ];
638
+ this.logger.debug(`circular imports detected: ${importChain.join(" -> ")}`);
639
+ return true;
640
+ }
641
+ if (!currentChain.includes(importer)) {
642
+ const result = this.isNodeWithinCircularImports(importer, nodeChain, currentChain.concat(importer), traversedModules);
643
+ if (result) return result;
644
+ }
607
645
  }
646
+ return false;
608
647
  }
609
648
  handlePush(payload) {
610
649
  this.applyQueue = this.applyQueue.then(() => this.applyPush(payload)).catch((err) => {
@@ -674,15 +713,25 @@ var BundledDevHMRClient = class extends HMRClient {
674
713
  this.requestFullReload(`no factory for module \`${id}\``);
675
714
  return;
676
715
  }
677
- const applies = update.boundaries.map(([boundary, acceptedVia]) => ({
716
+ const applies = update.boundaries.map(({ boundary, acceptedVia, isWithinCircularImport }) => ({
678
717
  boundary,
679
718
  acceptedVia,
719
+ isWithinCircularImport,
680
720
  callbacks: this.hotModulesMap.get(boundary)?.callbacks.filter((c) => c.deps.includes(acceptedVia)) ?? []
681
721
  }));
682
722
  for (const id of update.updateSet) this.runtime.removeModuleCache(id);
683
- for (const { boundary, acceptedVia, callbacks } of applies) {
684
- this.runtime.initModule(acceptedVia);
685
- const fresh = this.runtime.loadExports(acceptedVia);
723
+ for (const { boundary, acceptedVia, isWithinCircularImport, callbacks } of applies) {
724
+ let fresh;
725
+ try {
726
+ this.runtime.initModule(acceptedVia);
727
+ fresh = this.runtime.loadExports(acceptedVia);
728
+ } catch (err) {
729
+ if (isWithinCircularImport) {
730
+ this.requestFullReload(`${acceptedVia} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order.`);
731
+ return;
732
+ }
733
+ throw err;
734
+ }
686
735
  try {
687
736
  this.currentFirstInvalidatedBy = firstInvalidatedBy;
688
737
  for (const { deps, fn } of callbacks) fn(deps.map((dep) => dep === acceptedVia ? fresh : void 0));
@@ -695,11 +744,12 @@ var BundledDevHMRClient = class extends HMRClient {
695
744
  toUpdatePayload(boundaries, firstInvalidatedBy) {
696
745
  return {
697
746
  type: "update",
698
- updates: boundaries.map(([boundary, acceptedVia]) => ({
747
+ updates: boundaries.map(({ boundary, acceptedVia, isWithinCircularImport }) => ({
699
748
  type: "js-update",
700
749
  path: boundary,
701
750
  acceptedPath: acceptedVia,
702
751
  timestamp: Date.now(),
752
+ isWithinCircularImport,
703
753
  firstInvalidatedBy
704
754
  }))
705
755
  };
@@ -882,13 +932,17 @@ const normalizeModuleRunnerTransport = (transport) => {
882
932
  } } : {},
883
933
  async send(data) {
884
934
  if (!invokeableTransport.send) return;
885
- if (!isConnected) if (connectingPromise) await connectingPromise;
886
- else throw new SendBeforeConnectError("send was called before connect");
935
+ if (!isConnected) {
936
+ if (connectingPromise) await connectingPromise;
937
+ else throw new SendBeforeConnectError("send was called before connect");
938
+ }
887
939
  await invokeableTransport.send(data);
888
940
  },
889
941
  async invoke(name, data) {
890
- if (!isConnected) if (connectingPromise) await connectingPromise;
891
- else throw new SendBeforeConnectError("invoke was called before connect");
942
+ if (!isConnected) {
943
+ if (connectingPromise) await connectingPromise;
944
+ else throw new SendBeforeConnectError("invoke was called before connect");
945
+ }
892
946
  return invokeableTransport.invoke(name, data);
893
947
  }
894
948
  };
@@ -1509,12 +1563,14 @@ async function handleMessage(payload) {
1509
1563
  case "full-reload":
1510
1564
  if (payload.ifFallback && !globalThis.__vite_is_fallback_page__) break;
1511
1565
  await activeHmrClient.notifyListeners("vite:beforeFullReload", payload);
1512
- if (hasDocument) if (payload.path && payload.path.endsWith(".html")) {
1513
- const pagePath = decodeURI(location.pathname);
1514
- const payloadPath = base + payload.path.slice(1);
1515
- if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload();
1516
- return;
1517
- } else pageReload();
1566
+ if (hasDocument) {
1567
+ if (payload.path && payload.path.endsWith(".html")) {
1568
+ const pagePath = decodeURI(location.pathname);
1569
+ const payloadPath = base + payload.path.slice(1);
1570
+ if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload();
1571
+ return;
1572
+ } else pageReload();
1573
+ }
1518
1574
  break;
1519
1575
  case "prune":
1520
1576
  await activeHmrClient.notifyListeners("vite:beforePrune", payload);
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
2
+ //#region \0@oxc-project+runtime@0.144.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.142.0/helpers/esm/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.144.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.142.0/helpers/esm/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.144.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.142.0/helpers/esm/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.144.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,
@@ -384,13 +384,17 @@ const normalizeModuleRunnerTransport = (transport) => {
384
384
  } } : {},
385
385
  async send(data) {
386
386
  if (!invokeableTransport.send) return;
387
- if (!isConnected) if (connectingPromise) await connectingPromise;
388
- else throw new SendBeforeConnectError("send was called before connect");
387
+ if (!isConnected) {
388
+ if (connectingPromise) await connectingPromise;
389
+ else throw new SendBeforeConnectError("send was called before connect");
390
+ }
389
391
  await invokeableTransport.send(data);
390
392
  },
391
393
  async invoke(name, data) {
392
- if (!isConnected) if (connectingPromise) await connectingPromise;
393
- else throw new SendBeforeConnectError("invoke was called before connect");
394
+ if (!isConnected) {
395
+ if (connectingPromise) await connectingPromise;
396
+ else throw new SendBeforeConnectError("invoke was called before connect");
397
+ }
394
398
  return invokeableTransport.invoke(name, data);
395
399
  }
396
400
  };
@@ -1008,12 +1012,14 @@ async function handleMessage(payload) {
1008
1012
  case "full-reload":
1009
1013
  if (payload.ifFallback && !globalThis.__vite_is_fallback_page__) break;
1010
1014
  await activeHmrClient.notifyListeners("vite:beforeFullReload", payload);
1011
- if (hasDocument) if (payload.path && payload.path.endsWith(".html")) {
1012
- const pagePath = decodeURI(location.pathname);
1013
- const payloadPath = base + payload.path.slice(1);
1014
- if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload();
1015
- return;
1016
- } else pageReload();
1015
+ if (hasDocument) {
1016
+ if (payload.path && payload.path.endsWith(".html")) {
1017
+ const pagePath = decodeURI(location.pathname);
1018
+ const payloadPath = base + payload.path.slice(1);
1019
+ if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload();
1020
+ return;
1021
+ } else pageReload();
1022
+ }
1017
1023
  break;
1018
1024
  case "prune":
1019
1025
  await activeHmrClient.notifyListeners("vite:beforePrune", payload);
@@ -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.25/node_modules/postcss-modules/build/fs.js
3
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/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.25/node_modules/postcss-modules/build/unquote.js
37
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/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.25/node_modules/icss-utils/src/replaceValueSymbols.js
55
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.26/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.25/node_modules/icss-utils/src/replaceSymbols.js
72
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.26/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.25/node_modules/icss-utils/src/extractICSS.js
85
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.26/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.25/node_modules/icss-utils/src/createICSSRules.js
139
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.26/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.25/node_modules/icss-utils/src/index.js
183
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.26/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.25/node_modules/postcss-modules/build/Parser.js
193
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/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.25/node_modules/postcss-modules/build/saveJSON.js
265
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/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.25/node_modules/postcss-modules/build/localsConvention.js
947
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/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", {
@@ -999,7 +999,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
999
999
  }
1000
1000
  }));
1001
1001
  //#endregion
1002
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/FileSystemLoader.js
1002
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/node_modules/postcss-modules/build/FileSystemLoader.js
1003
1003
  var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
1004
1004
  Object.defineProperty(exports, "__esModule", { value: true });
1005
1005
  Object.defineProperty(exports, "default", {
@@ -1088,7 +1088,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
1088
1088
  };
1089
1089
  }));
1090
1090
  //#endregion
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
1091
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.26/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1092
1092
  var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1093
1093
  const PERMANENT_MARKER = 2;
1094
1094
  const TEMPORARY_MARKER = 1;
@@ -1127,7 +1127,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
1127
1127
  module.exports = topologicalSort;
1128
1128
  }));
1129
1129
  //#endregion
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
1130
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.26/node_modules/postcss-modules-extract-imports/src/index.js
1131
1131
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1132
1132
  const topologicalSort = require_topologicalSort();
1133
1133
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
@@ -1260,7 +1260,7 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1260
1260
  //#endregion
1261
1261
  //#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js
1262
1262
  var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1263
- const MAX_SHORT_STRING = Math.floor(65472 / 4) & -4;
1263
+ const MAX_SHORT_STRING = Math.floor(16368) & -4;
1264
1264
  var WasmHash = class {
1265
1265
  /**
1266
1266
  * @param {WebAssembly.Instance} instance wasm instance
@@ -1307,28 +1307,29 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1307
1307
  _updateWithShortString(data, encoding) {
1308
1308
  const { exports: exports$3, buffered, mem, chunkSize } = this;
1309
1309
  let endPos;
1310
- if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") {
1311
- endPos = buffered;
1312
- for (let i = 0; i < data.length; i++) {
1313
- const cc = data.charCodeAt(i);
1314
- if (cc < 128) mem[endPos++] = cc;
1315
- else if (cc < 2048) {
1316
- mem[endPos] = cc >> 6 | 192;
1317
- mem[endPos + 1] = cc & 63 | 128;
1318
- endPos += 2;
1319
- } else {
1320
- endPos += mem.write(data.slice(i), endPos, encoding);
1321
- break;
1310
+ if (data.length < 70) {
1311
+ if (!encoding || encoding === "utf-8" || encoding === "utf8") {
1312
+ endPos = buffered;
1313
+ for (let i = 0; i < data.length; i++) {
1314
+ const cc = data.charCodeAt(i);
1315
+ if (cc < 128) mem[endPos++] = cc;
1316
+ else if (cc < 2048) {
1317
+ mem[endPos] = cc >> 6 | 192;
1318
+ mem[endPos + 1] = cc & 63 | 128;
1319
+ endPos += 2;
1320
+ } else {
1321
+ endPos += mem.write(data.slice(i), endPos, encoding);
1322
+ break;
1323
+ }
1322
1324
  }
1323
- }
1324
- } else if (encoding === "latin1") {
1325
- endPos = buffered;
1326
- for (let i = 0; i < data.length; i++) {
1327
- const cc = data.charCodeAt(i);
1328
- mem[endPos++] = cc;
1329
- }
1325
+ } else if (encoding === "latin1") {
1326
+ endPos = buffered;
1327
+ for (let i = 0; i < data.length; i++) {
1328
+ const cc = data.charCodeAt(i);
1329
+ mem[endPos++] = cc;
1330
+ }
1331
+ } else endPos = buffered + mem.write(data, buffered, encoding);
1330
1332
  } else endPos = buffered + mem.write(data, buffered, encoding);
1331
- else endPos = buffered + mem.write(data, buffered, encoding);
1332
1333
  if (endPos < chunkSize) this.buffered = endPos;
1333
1334
  else {
1334
1335
  const l = endPos & ~(this.chunkSize - 1);
@@ -1423,11 +1424,12 @@ var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1423
1424
  this.hash.update(this.string, this.encoding);
1424
1425
  this.string = void 0;
1425
1426
  }
1426
- if (typeof data === "string") if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) {
1427
- this.string = data;
1428
- this.encoding = inputEncoding;
1429
- } else this.hash.update(data, inputEncoding);
1430
- else this.hash.update(data);
1427
+ if (typeof data === "string") {
1428
+ if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) {
1429
+ this.string = data;
1430
+ this.encoding = inputEncoding;
1431
+ } else this.hash.update(data, inputEncoding);
1432
+ } else this.hash.update(data);
1431
1433
  return this;
1432
1434
  }
1433
1435
  /**
@@ -2420,9 +2422,10 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2420
2422
  else counter--;
2421
2423
  }
2422
2424
  value = "\\" + codePoint.toString(16).toUpperCase() + " ";
2423
- } else if (options.escapeEverything) if (regexAnySingleEscape.test(character)) value = "\\" + character;
2424
- else value = "\\" + codePoint.toString(16).toUpperCase() + " ";
2425
- else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " ";
2425
+ } else if (options.escapeEverything) {
2426
+ if (regexAnySingleEscape.test(character)) value = "\\" + character;
2427
+ else value = "\\" + codePoint.toString(16).toUpperCase() + " ";
2428
+ } else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " ";
2426
2429
  else if (character == "\\" || !isIdentifier && (character == "\"" && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) value = "\\" + character;
2427
2430
  else value = character;
2428
2431
  output += value;
@@ -3833,18 +3836,19 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3833
3836
  spaceAfterMeaningfulToken = false;
3834
3837
  break;
3835
3838
  case tokens.comment:
3836
- if (lastAdded) if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
3837
- var lastComment = (0, _util.getProp)(node, "spaces", lastAdded, "after") || "";
3838
- var rawLastComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
3839
- (0, _util.ensureObject)(node, "raws", "spaces", lastAdded);
3840
- node.raws.spaces[lastAdded].after = rawLastComment + content;
3841
- } else {
3842
- var lastValue = node[lastAdded] || "";
3843
- var rawLastValue = (0, _util.getProp)(node, "raws", lastAdded) || lastValue;
3844
- (0, _util.ensureObject)(node, "raws");
3845
- node.raws[lastAdded] = rawLastValue + content;
3846
- }
3847
- else commentBefore = commentBefore + content;
3839
+ if (lastAdded) {
3840
+ if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
3841
+ var lastComment = (0, _util.getProp)(node, "spaces", lastAdded, "after") || "";
3842
+ var rawLastComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
3843
+ (0, _util.ensureObject)(node, "raws", "spaces", lastAdded);
3844
+ node.raws.spaces[lastAdded].after = rawLastComment + content;
3845
+ } else {
3846
+ var lastValue = node[lastAdded] || "";
3847
+ var rawLastValue = (0, _util.getProp)(node, "raws", lastAdded) || lastValue;
3848
+ (0, _util.ensureObject)(node, "raws");
3849
+ node.raws[lastAdded] = rawLastValue + content;
3850
+ }
3851
+ } else commentBefore = commentBefore + content;
3848
3852
  break;
3849
3853
  default: return this.error("Unexpected \"" + content + "\" found.", { index: token[_tokenize.FIELDS.START_POS] });
3850
3854
  }
@@ -4650,7 +4654,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4650
4654
  module.exports = exports.default;
4651
4655
  }));
4652
4656
  //#endregion
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
4657
+ //#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.26/node_modules/postcss-modules-local-by-default/src/index.js
4654
4658
  var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4655
4659
  const selectorParser = require_dist();
4656
4660
  const valueParser = require_lib();
@@ -4932,10 +4936,12 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4932
4936
  } else if (node.type !== "word") return;
4933
4937
  const value = node.type === "word" ? node.value.toLowerCase() : null;
4934
4938
  let shouldParseAnimationName = false;
4935
- if (value && validIdent.test(value)) if ("$" + value in animationKeywords) {
4936
- parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0;
4937
- shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value];
4938
- } else shouldParseAnimationName = true;
4939
+ if (value && validIdent.test(value)) {
4940
+ if ("$" + value in animationKeywords) {
4941
+ parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0;
4942
+ shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value];
4943
+ } else shouldParseAnimationName = true;
4944
+ }
4939
4945
  return localizeDeclNode(node, {
4940
4946
  options: context.options,
4941
4947
  global: context.global,
@@ -5044,7 +5050,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5044
5050
  module.exports.postcss = true;
5045
5051
  }));
5046
5052
  //#endregion
5047
- //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.25/node_modules/postcss-modules-scope/src/index.js
5053
+ //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.26/node_modules/postcss-modules-scope/src/index.js
5048
5054
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5049
5055
  const selectorParser = require_dist();
5050
5056
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5222,7 +5228,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5222
5228
  module.exports = hash;
5223
5229
  }));
5224
5230
  //#endregion
5225
- //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.25/node_modules/postcss-modules-values/src/index.js
5231
+ //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.26/node_modules/postcss-modules-values/src/index.js
5226
5232
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5227
5233
  const ICSSUtils = require_src$4();
5228
5234
  const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
@@ -5309,7 +5315,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5309
5315
  module.exports.postcss = true;
5310
5316
  }));
5311
5317
  //#endregion
5312
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/scoping.js
5318
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/node_modules/postcss-modules/build/scoping.js
5313
5319
  var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5314
5320
  Object.defineProperty(exports, "__esModule", { value: true });
5315
5321
  function _export(target, all) {
@@ -5388,7 +5394,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5388
5394
  }
5389
5395
  }));
5390
5396
  //#endregion
5391
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/pluginFactory.js
5397
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/node_modules/postcss-modules/build/pluginFactory.js
5392
5398
  var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5393
5399
  Object.defineProperty(exports, "__esModule", { value: true });
5394
5400
  Object.defineProperty(exports, "makePlugin", {
@@ -5470,7 +5476,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5470
5476
  }
5471
5477
  }));
5472
5478
  //#endregion
5473
- //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.25/node_modules/postcss-modules/build/index.js
5479
+ //#region ../../node_modules/.pnpm/postcss-modules@9.0.1_postcss@8.5.26/node_modules/postcss-modules/build/index.js
5474
5480
  var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5475
5481
  Object.defineProperty(exports, "__esModule", { value: true });
5476
5482
  const _fs = __require("fs");