@forsakringskassan/vite-lib-config 4.2.4 → 4.3.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.
@@ -763,7 +763,7 @@ var require_cjs = __commonJS({
763
763
  return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
764
764
  }
765
765
  var canUseSymbol = typeof Symbol === "function" && Symbol.for;
766
- var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
766
+ var REACT_ELEMENT_TYPE = canUseSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
767
767
  function isReactElement(value) {
768
768
  return value.$$typeof === REACT_ELEMENT_TYPE;
769
769
  }
@@ -2174,7 +2174,7 @@ var require_range = __commonJS({
2174
2174
  var require_comparator = __commonJS({
2175
2175
  "node_modules/semver/classes/comparator.js"(exports2, module2) {
2176
2176
  "use strict";
2177
- var ANY = Symbol("SemVer ANY");
2177
+ var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
2178
2178
  var Comparator = class _Comparator {
2179
2179
  static get ANY() {
2180
2180
  return ANY;
@@ -2865,13 +2865,13 @@ module.exports = __toCommonJS(vite_config_exports);
2865
2865
  var import_apimock_express = require("@forsakringskassan/apimock-express");
2866
2866
  var import_ufuzzy = __toESM(require_uFuzzy());
2867
2867
 
2868
- // node_modules/@vitejs/plugin-vue/dist/index.js
2868
+ // node_modules/@vitejs/plugin-vue/dist/index.mjs
2869
2869
  var import_node_module = require("node:module");
2870
2870
  var import_node_fs = __toESM(require("node:fs"), 1);
2871
2871
  var import_vite = require("vite");
2872
2872
  var import_vue = require("vue");
2873
2873
 
2874
- // node_modules/@rolldown/pluginutils/dist/index.js
2874
+ // node_modules/@rolldown/pluginutils/dist/simple-filters.js
2875
2875
  function exactRegex(str, flags) {
2876
2876
  return new RegExp(`^${escapeRegex(str)}$`, flags);
2877
2877
  }
@@ -2880,18 +2880,30 @@ function escapeRegex(str) {
2880
2880
  return str.replace(escapeRegexRE, "\\$&");
2881
2881
  }
2882
2882
  function makeIdFiltersToMatchWithQuery(input) {
2883
- if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(input);
2883
+ if (!Array.isArray(input)) {
2884
+ return makeIdFilterToMatchWithQuery(
2885
+ // Array.isArray cannot narrow the type
2886
+ // https://github.com/microsoft/TypeScript/issues/17002
2887
+ input
2888
+ );
2889
+ }
2884
2890
  return input.map((i) => makeIdFilterToMatchWithQuery(i));
2885
2891
  }
2886
2892
  function makeIdFilterToMatchWithQuery(input) {
2887
- if (typeof input === "string") return `${input}{?*,}`;
2893
+ if (typeof input === "string") {
2894
+ return `${input}{?*,}`;
2895
+ }
2888
2896
  return makeRegexIdFilterToMatchWithQuery(input);
2889
2897
  }
2890
2898
  function makeRegexIdFilterToMatchWithQuery(input) {
2891
- return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
2899
+ return new RegExp(
2900
+ // replace `$` with `(?:\?.*)?$` (ignore `\$`)
2901
+ input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"),
2902
+ input.flags
2903
+ );
2892
2904
  }
2893
2905
 
2894
- // node_modules/@vitejs/plugin-vue/dist/index.js
2906
+ // node_modules/@vitejs/plugin-vue/dist/index.mjs
2895
2907
  var import_node_path = __toESM(require("node:path"), 1);
2896
2908
  var import_node_crypto = __toESM(require("node:crypto"), 1);
2897
2909
  var __create2 = Object.create;
@@ -2918,7 +2930,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
2918
2930
  enumerable: true
2919
2931
  }) : target, mod));
2920
2932
  var __require = /* @__PURE__ */ (0, import_node_module.createRequire)(__filename);
2921
- var version = "6.0.1";
2933
+ var version = "6.0.2";
2922
2934
  function resolveCompiler(root) {
2923
2935
  const compiler = tryResolveCompiler(root) || tryResolveCompiler();
2924
2936
  if (!compiler) throw new Error("Failed to resolve vue/compiler-sfc.\n@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.");
@@ -3016,8 +3028,7 @@ function getHash(text) {
3016
3028
  return import_node_crypto.default.hash("sha256", text, "hex").substring(0, 8);
3017
3029
  }
3018
3030
  function slash(path$1) {
3019
- const isExtendedLengthPath = path$1.startsWith("\\\\?\\");
3020
- if (isExtendedLengthPath) return path$1;
3031
+ if (path$1.startsWith("\\\\?\\")) return path$1;
3021
3032
  return path$1.replace(/\\/g, "/");
3022
3033
  }
3023
3034
  function createRollupError(id, error) {
@@ -3194,23 +3205,22 @@ function canInlineMain(descriptor, options) {
3194
3205
  if (lang === "ts" && options.devServer) return true;
3195
3206
  return false;
3196
3207
  }
3197
- var comma = ",".charCodeAt(0);
3198
- var semicolon = ";".charCodeAt(0);
3199
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3200
- var intToChar = new Uint8Array(64);
3201
- var charToInt = new Uint8Array(128);
3202
- for (let i = 0; i < 64; i++) {
3203
- const c = chars.charCodeAt(i);
3204
- intToChar[i] = c;
3205
- charToInt[c] = i;
3208
+ var comma$1 = ",".charCodeAt(0);
3209
+ var semicolon$1 = ";".charCodeAt(0);
3210
+ var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3211
+ var intToChar$1 = new Uint8Array(64);
3212
+ var charToInt$1 = new Uint8Array(128);
3213
+ for (let i = 0; i < chars$1.length; i++) {
3214
+ const c = chars$1.charCodeAt(i);
3215
+ intToChar$1[i] = c;
3216
+ charToInt$1[c] = i;
3206
3217
  }
3207
3218
  function decodeInteger(reader, relative) {
3208
3219
  let value = 0;
3209
3220
  let shift = 0;
3210
3221
  let integer = 0;
3211
3222
  do {
3212
- const c = reader.next();
3213
- integer = charToInt[c];
3223
+ integer = charToInt$1[reader.next()];
3214
3224
  value |= (integer & 31) << shift;
3215
3225
  shift += 5;
3216
3226
  } while (integer & 32);
@@ -3219,49 +3229,11 @@ function decodeInteger(reader, relative) {
3219
3229
  if (shouldNegate) value = -2147483648 | -value;
3220
3230
  return relative + value;
3221
3231
  }
3222
- function encodeInteger(builder, num, relative) {
3223
- let delta = num - relative;
3224
- delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
3225
- do {
3226
- let clamped = delta & 31;
3227
- delta >>>= 5;
3228
- if (delta > 0) clamped |= 32;
3229
- builder.write(intToChar[clamped]);
3230
- } while (delta > 0);
3231
- return num;
3232
- }
3233
3232
  function hasMoreVlq(reader, max) {
3234
3233
  if (reader.pos >= max) return false;
3235
- return reader.peek() !== comma;
3234
+ return reader.peek() !== comma$1;
3236
3235
  }
3237
- var bufLength = 1024 * 16;
3238
- var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
3239
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
3240
- return out.toString();
3241
- } } : { decode(buf) {
3242
- let out = "";
3243
- for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
3244
- return out;
3245
- } };
3246
- var StringWriter = class {
3247
- constructor() {
3248
- this.pos = 0;
3249
- this.out = "";
3250
- this.buffer = new Uint8Array(bufLength);
3251
- }
3252
- write(v) {
3253
- const { buffer } = this;
3254
- buffer[this.pos++] = v;
3255
- if (this.pos === bufLength) {
3256
- this.out += td.decode(buffer);
3257
- this.pos = 0;
3258
- }
3259
- }
3260
- flush() {
3261
- const { buffer, out, pos } = this;
3262
- return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
3263
- }
3264
- };
3236
+ var bufLength$1 = 1024 * 16;
3265
3237
  var StringReader = class {
3266
3238
  constructor(buffer) {
3267
3239
  this.pos = 0;
@@ -3334,31 +3306,6 @@ function sort(line) {
3334
3306
  function sortComparator$1(a, b) {
3335
3307
  return a[0] - b[0];
3336
3308
  }
3337
- function encode(decoded) {
3338
- const writer = new StringWriter();
3339
- let sourcesIndex = 0;
3340
- let sourceLine = 0;
3341
- let sourceColumn = 0;
3342
- let namesIndex = 0;
3343
- for (let i = 0; i < decoded.length; i++) {
3344
- const line = decoded[i];
3345
- if (i > 0) writer.write(semicolon);
3346
- if (line.length === 0) continue;
3347
- let genColumn = 0;
3348
- for (let j = 0; j < line.length; j++) {
3349
- const segment = line[j];
3350
- if (j > 0) writer.write(comma);
3351
- genColumn = encodeInteger(writer, segment[0], genColumn);
3352
- if (segment.length === 1) continue;
3353
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
3354
- sourceLine = encodeInteger(writer, segment[2], sourceLine);
3355
- sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
3356
- if (segment.length === 4) continue;
3357
- namesIndex = encodeInteger(writer, segment[4], namesIndex);
3358
- }
3359
- }
3360
- return writer.flush();
3361
- }
3362
3309
  var schemeRegex = /^[\w+.-]+:\/\//;
3363
3310
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
3364
3311
  var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
@@ -3611,6 +3558,79 @@ function eachMapping(map, cb) {
3611
3558
  }
3612
3559
  }
3613
3560
  }
3561
+ var comma = ",".charCodeAt(0);
3562
+ var semicolon = ";".charCodeAt(0);
3563
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3564
+ var intToChar = new Uint8Array(64);
3565
+ var charToInt = new Uint8Array(128);
3566
+ for (let i = 0; i < 64; i++) {
3567
+ const c = chars.charCodeAt(i);
3568
+ intToChar[i] = c;
3569
+ charToInt[c] = i;
3570
+ }
3571
+ function encodeInteger(builder, num, relative) {
3572
+ let delta = num - relative;
3573
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
3574
+ do {
3575
+ let clamped = delta & 31;
3576
+ delta >>>= 5;
3577
+ if (delta > 0) clamped |= 32;
3578
+ builder.write(intToChar[clamped]);
3579
+ } while (delta > 0);
3580
+ return num;
3581
+ }
3582
+ var bufLength = 1024 * 16;
3583
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
3584
+ return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
3585
+ } } : { decode(buf) {
3586
+ let out = "";
3587
+ for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
3588
+ return out;
3589
+ } };
3590
+ var StringWriter = class {
3591
+ constructor() {
3592
+ this.pos = 0;
3593
+ this.out = "";
3594
+ this.buffer = new Uint8Array(bufLength);
3595
+ }
3596
+ write(v) {
3597
+ const { buffer } = this;
3598
+ buffer[this.pos++] = v;
3599
+ if (this.pos === bufLength) {
3600
+ this.out += td.decode(buffer);
3601
+ this.pos = 0;
3602
+ }
3603
+ }
3604
+ flush() {
3605
+ const { buffer, out, pos } = this;
3606
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
3607
+ }
3608
+ };
3609
+ function encode(decoded) {
3610
+ const writer = new StringWriter();
3611
+ let sourcesIndex = 0;
3612
+ let sourceLine = 0;
3613
+ let sourceColumn = 0;
3614
+ let namesIndex = 0;
3615
+ for (let i = 0; i < decoded.length; i++) {
3616
+ const line = decoded[i];
3617
+ if (i > 0) writer.write(semicolon);
3618
+ if (line.length === 0) continue;
3619
+ let genColumn = 0;
3620
+ for (let j = 0; j < line.length; j++) {
3621
+ const segment = line[j];
3622
+ if (j > 0) writer.write(comma);
3623
+ genColumn = encodeInteger(writer, segment[0], genColumn);
3624
+ if (segment.length === 1) continue;
3625
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
3626
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
3627
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
3628
+ if (segment.length === 4) continue;
3629
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
3630
+ }
3631
+ }
3632
+ return writer.flush();
3633
+ }
3614
3634
  var SetArray = class {
3615
3635
  constructor() {
3616
3636
  this._indexes = { __proto__: null };
@@ -3627,8 +3647,7 @@ function put(setarr, key) {
3627
3647
  const index = get(setarr, key);
3628
3648
  if (index !== void 0) return index;
3629
3649
  const { array, _indexes: indexes } = cast(setarr);
3630
- const length = array.push(key);
3631
- return indexes[key] = length - 1;
3650
+ return indexes[key] = array.push(key) - 1;
3632
3651
  }
3633
3652
  var COLUMN = 0;
3634
3653
  var SOURCES_INDEX = 1;
@@ -3719,10 +3738,7 @@ function getIndex(arr, index) {
3719
3738
  }
3720
3739
  function getColumnIndex(line, genColumn) {
3721
3740
  let index = line.length;
3722
- for (let i = index - 1; i >= 0; index = i--) {
3723
- const current = line[i];
3724
- if (genColumn >= current[COLUMN]) break;
3725
- }
3741
+ for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN]) break;
3726
3742
  return index;
3727
3743
  }
3728
3744
  function insert(array, index, value) {
@@ -3740,8 +3756,7 @@ function putAll(setarr, array) {
3740
3756
  }
3741
3757
  function skipSourceless(line, index) {
3742
3758
  if (index === 0) return true;
3743
- const prev = line[index - 1];
3744
- return prev.length === 1;
3759
+ return line[index - 1].length === 1;
3745
3760
  }
3746
3761
  function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
3747
3762
  if (index === 0) return false;
@@ -3755,7 +3770,7 @@ function addMappingInternal(skipable, map, mapping2) {
3755
3770
  assert(original);
3756
3771
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
3757
3772
  }
3758
- var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports2, module2) {
3773
+ var require_ms = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports2, module2) => {
3759
3774
  var s = 1e3;
3760
3775
  var m = s * 60;
3761
3776
  var h = m * 60;
@@ -3775,8 +3790,7 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3775
3790
  var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
3776
3791
  if (!match2) return;
3777
3792
  var n = parseFloat(match2[1]);
3778
- var type = (match2[2] || "ms").toLowerCase();
3779
- switch (type) {
3793
+ switch ((match2[2] || "ms").toLowerCase()) {
3780
3794
  case "years":
3781
3795
  case "year":
3782
3796
  case "yrs":
@@ -3816,7 +3830,7 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3816
3830
  case "ms":
3817
3831
  return n;
3818
3832
  default:
3819
- return void 0;
3833
+ return;
3820
3834
  }
3821
3835
  }
3822
3836
  function fmtShort(ms) {
@@ -3839,8 +3853,8 @@ var require_ms = __commonJS2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/m
3839
3853
  var isPlural = msAbs >= n * 1.5;
3840
3854
  return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
3841
3855
  }
3842
- } });
3843
- var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports2, module2) {
3856
+ }) });
3857
+ var require_common = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports2, module2) => {
3844
3858
  function setup(env) {
3845
3859
  createDebug.debug = createDebug;
3846
3860
  createDebug.default = createDebug;
@@ -3874,8 +3888,7 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3874
3888
  if (!debug$1.enabled) return;
3875
3889
  const self = debug$1;
3876
3890
  const curr = Number(/* @__PURE__ */ new Date());
3877
- const ms = curr - (prevTime || curr);
3878
- self.diff = ms;
3891
+ self.diff = curr - (prevTime || curr);
3879
3892
  self.prev = prevTime;
3880
3893
  self.curr = curr;
3881
3894
  prevTime = curr;
@@ -3895,8 +3908,7 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3895
3908
  return match2;
3896
3909
  });
3897
3910
  createDebug.formatArgs.call(self, args);
3898
- const logFn = self.log || createDebug.log;
3899
- logFn.apply(self, args);
3911
+ (self.log || createDebug.log).apply(self, args);
3900
3912
  }
3901
3913
  debug$1.namespace = namespace;
3902
3914
  debug$1.useColors = createDebug.useColors();
@@ -3977,8 +3989,8 @@ var require_common = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_mo
3977
3989
  return createDebug;
3978
3990
  }
3979
3991
  module2.exports = setup;
3980
- } });
3981
- var require_node = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports2, module2) {
3992
+ }) });
3993
+ var require_node = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports2, module2) => {
3982
3994
  const tty = __require("tty");
3983
3995
  const util = __require("util");
3984
3996
  exports2.init = init;
@@ -4135,22 +4147,22 @@ var require_node = __commonJS2({ "../../node_modules/.pnpm/debug@4.4.1/node_modu
4135
4147
  this.inspectOpts.colors = this.useColors;
4136
4148
  return util.inspect(v, this.inspectOpts);
4137
4149
  };
4138
- } });
4139
- var import_node = __toESM2(require_node(), 1);
4150
+ }) });
4151
+ var import_node = /* @__PURE__ */ __toESM2(require_node(), 1);
4140
4152
  var debug = (0, import_node.default)("vite:hmr");
4141
- var directRequestRE = /(?:\?|&)direct\b/;
4142
4153
  async function handleHotUpdate({ file, modules, read }, options, customElement, typeDepModules) {
4143
4154
  const prevDescriptor = getDescriptor(file, options, false, true);
4144
4155
  if (!prevDescriptor) return;
4145
- const content = await read();
4146
- const { descriptor } = createDescriptor(file, content, options, true);
4156
+ const { descriptor } = createDescriptor(file, await read(), options, true);
4147
4157
  let needRerender = false;
4148
- const affectedModules = new Set(modules.filter((mod) => mod.type !== "js"));
4149
- const mainModule = getMainModule(modules);
4150
- const templateModule = modules.find((m$1) => /type=template/.test(m$1.url));
4158
+ const nonJsModules = modules.filter((m$1) => m$1.type !== "js");
4159
+ const jsModules = modules.filter((m$1) => m$1.type === "js");
4160
+ const affectedModules = new Set(nonJsModules);
4161
+ const mainModule = getMainModule(jsModules);
4162
+ const templateModule = jsModules.find((m$1) => /type=template/.test(m$1.url));
4151
4163
  resolveScript(descriptor, options, false, customElement);
4152
4164
  const scriptChanged = hasScriptChanged(prevDescriptor, descriptor);
4153
- if (scriptChanged) affectedModules.add(getScriptModule(modules) || mainModule);
4165
+ if (scriptChanged) affectedModules.add(getScriptModule(jsModules) || mainModule);
4154
4166
  if (!isEqualBlock(descriptor.template, prevDescriptor.template)) {
4155
4167
  if (!scriptChanged) setResolvedScript(descriptor, getResolvedScript(prevDescriptor, false), false);
4156
4168
  affectedModules.add(templateModule);
@@ -4169,7 +4181,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4169
4181
  const next = nextStyles[i];
4170
4182
  if (!prev || !isEqualBlock(prev, next)) {
4171
4183
  didUpdateStyle = true;
4172
- const mod = modules.find((m$1) => m$1.url.includes(`type=style&index=${i}`) && m$1.url.endsWith(`.${next.lang || "css"}`) && !directRequestRE.test(m$1.url));
4184
+ const mod = jsModules.find((m$1) => m$1.url.includes(`type=style&index=${i}`) && m$1.url.endsWith(`.${next.lang || "css"}`));
4173
4185
  if (mod) {
4174
4186
  affectedModules.add(mod);
4175
4187
  if (mod.url.includes("&inline")) affectedModules.add(mainModule);
@@ -4184,7 +4196,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4184
4196
  const prev = prevCustoms[i];
4185
4197
  const next = nextCustoms[i];
4186
4198
  if (!prev || !isEqualBlock(prev, next)) {
4187
- const mod = modules.find((m$1) => m$1.url.includes(`type=${prev.type}&index=${i}`));
4199
+ const mod = jsModules.find((m$1) => m$1.url.includes(`type=${prev.type}&index=${i}`));
4188
4200
  if (mod) affectedModules.add(mod);
4189
4201
  else affectedModules.add(mainModule);
4190
4202
  }
@@ -4193,10 +4205,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
4193
4205
  if (needRerender) {
4194
4206
  updateType.push(`template`);
4195
4207
  if (!templateModule) affectedModules.add(mainModule);
4196
- else if (mainModule && !affectedModules.has(mainModule)) {
4197
- const styleImporters = [...mainModule.importers].filter((m$1) => (0, import_vite.isCSSRequest)(m$1.url));
4198
- styleImporters.forEach((m$1) => affectedModules.add(m$1));
4199
- }
4208
+ else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m$1) => (0, import_vite.isCSSRequest)(m$1.url)).forEach((m$1) => affectedModules.add(m$1));
4200
4209
  }
4201
4210
  if (didUpdateStyle) updateType.push(`style`);
4202
4211
  if (updateType.length) {
@@ -4257,18 +4266,17 @@ function hasScriptChanged(prev, next) {
4257
4266
  const nextScript = getResolvedScript(next, false);
4258
4267
  if (!isEqualBlock(prev.script, next.script) && !isEqualAst(prevScript?.scriptAst, nextScript?.scriptAst)) return true;
4259
4268
  if (!isEqualBlock(prev.scriptSetup, next.scriptSetup) && !isEqualAst(prevScript?.scriptSetupAst, nextScript?.scriptSetupAst)) return true;
4260
- const prevResolvedScript = getResolvedScript(prev, false);
4261
- const prevImports = prevResolvedScript?.imports;
4269
+ const prevImports = getResolvedScript(prev, false)?.imports;
4262
4270
  if (prevImports) return !next.template || next.shouldForceReload(prevImports);
4263
4271
  return false;
4264
4272
  }
4265
- function getMainModule(modules) {
4266
- return modules.filter((m$1) => !/type=/.test(m$1.url) || /type=script/.test(m$1.url)).sort((m1, m2) => {
4273
+ function getMainModule(jsModules) {
4274
+ return jsModules.filter((m$1) => !/type=/.test(m$1.url) || /type=script/.test(m$1.url)).sort((m1, m2) => {
4267
4275
  return m1.url.length - m2.url.length;
4268
4276
  })[0];
4269
4277
  }
4270
- function getScriptModule(modules) {
4271
- return modules.find((m$1) => /type=script.*&lang\.\w+$/.test(m$1.url));
4278
+ function getScriptModule(jsModules) {
4279
+ return jsModules.find((m$1) => /type=script.*&lang\.\w+$/.test(m$1.url));
4272
4280
  }
4273
4281
  function handleTypeDepChange(affectedComponents, { modules, server: { moduleGraph } }) {
4274
4282
  const affected = /* @__PURE__ */ new Set();
@@ -4333,7 +4341,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
4333
4341
  }
4334
4342
  let resolvedMap = void 0;
4335
4343
  if (options.sourceMap) if (templateMap) {
4336
- const from = scriptMap ?? {
4344
+ const gen = fromMap(scriptMap ?? {
4337
4345
  file: filename,
4338
4346
  sourceRoot: "",
4339
4347
  version: 3,
@@ -4341,8 +4349,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
4341
4349
  sourcesContent: [],
4342
4350
  names: [],
4343
4351
  mappings: ""
4344
- };
4345
- const gen = fromMap(from);
4352
+ });
4346
4353
  const tracer = new TraceMap(templateMap);
4347
4354
  const offset = (scriptCode.match(/\r?\n/g)?.length ?? 0) + 1;
4348
4355
  eachMapping(tracer, (m$1) => {
@@ -4401,10 +4408,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
4401
4408
  else {
4402
4409
  if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
4403
4410
  const src = template.src || descriptor.filename;
4404
- const srcQuery = template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : "";
4405
- const scopedQuery = hasScoped ? `&scoped=${descriptor.id}` : ``;
4406
- const attrsQuery = attrsToQuery(template.attrs, "js", true);
4407
- const query = `?vue&type=template${srcQuery}${scopedQuery}${attrsQuery}`;
4411
+ const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
4408
4412
  const request = JSON.stringify(src + query);
4409
4413
  const renderFnName = ssr ? "ssrRender" : "render";
4410
4414
  return {
@@ -4414,8 +4418,7 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
4414
4418
  }
4415
4419
  }
4416
4420
  async function genScriptCode(descriptor, options, pluginContext, ssr, customElement) {
4417
- const vaporFlag = descriptor.vapor ? "__vapor: true" : "";
4418
- let scriptCode = `const ${scriptIdentifier} = { ${vaporFlag} }`;
4421
+ let scriptCode = `const ${scriptIdentifier} = { ${descriptor.vapor ? "__vapor: true" : ""} }`;
4419
4422
  let map;
4420
4423
  const script = resolveScript(descriptor, options, ssr, customElement);
4421
4424
  if (script) if (canInlineMain(descriptor, options)) {
@@ -4430,8 +4433,7 @@ async function genScriptCode(descriptor, options, pluginContext, ssr, customElem
4430
4433
  const src = script.src || descriptor.filename;
4431
4434
  const langFallback = script.src && import_node_path.default.extname(src).slice(1) || "js";
4432
4435
  const attrsQuery = attrsToQuery(script.attrs, langFallback);
4433
- const srcQuery = script.src ? `&src=true` : ``;
4434
- const query = `?vue&type=script${srcQuery}${attrsQuery}`;
4436
+ const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
4435
4437
  const request = JSON.stringify(src + query);
4436
4438
  scriptCode = `import _sfc_main from ${request}
4437
4439
  export * from ${request}`;
@@ -4453,8 +4455,7 @@ async function genStyleCode(descriptor, pluginContext, customElement, attachedPr
4453
4455
  const srcQuery = style.src ? style.scoped ? `&src=${descriptor.id}` : "&src=true" : "";
4454
4456
  const directQuery = customElement ? `&inline` : ``;
4455
4457
  const scopedQuery = style.scoped ? `&scoped=${descriptor.id}` : ``;
4456
- const query = `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}`;
4457
- const styleRequest = src + query + attrsQuery;
4458
+ const styleRequest = src + `?vue&type=style&index=${i}${srcQuery}${directQuery}${scopedQuery}` + attrsQuery;
4458
4459
  if (style.module) {
4459
4460
  if (customElement) throw new Error(`<style module> is not supported in custom elements mode.`);
4460
4461
  const [importCode, nameMap] = genCSSModulesCode(i, styleRequest, style.module);
@@ -4501,8 +4502,7 @@ async function genCustomBlockCode(descriptor, pluginContext) {
4501
4502
  return code;
4502
4503
  }
4503
4504
  async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
4504
- const srcFile = (await pluginContext.resolve(src, descriptor.filename))?.id || src;
4505
- setSrcDescriptor(srcFile.replace(/\?.*$/, ""), descriptor, scoped);
4505
+ setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
4506
4506
  }
4507
4507
  var ignoreList = [
4508
4508
  "id",
@@ -4645,8 +4645,7 @@ function vuePlugin(rawOptions = {}) {
4645
4645
  };
4646
4646
  const _warn = config.logger.warn;
4647
4647
  config.logger.warn = (...args) => {
4648
- const msg = args[0];
4649
- if (msg.match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
4648
+ if (args[0].match(/\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/)) return;
4650
4649
  _warn(...args);
4651
4650
  };
4652
4651
  transformCachedModule = config.command === "build" && options.value.sourceMap && config.build.watch != null;
@@ -5061,8 +5060,11 @@ var parseClass = (glob2, position) => {
5061
5060
  };
5062
5061
 
5063
5062
  // node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
5064
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
5065
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
5063
+ var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
5064
+ if (magicalBraces) {
5065
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
5066
+ }
5067
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
5066
5068
  };
5067
5069
 
5068
5070
  // node_modules/glob/node_modules/minimatch/dist/esm/ast.js
@@ -5416,7 +5418,7 @@ var AST = class _AST {
5416
5418
  if (this.#root === this)
5417
5419
  this.#fillNegs();
5418
5420
  if (!this.type) {
5419
- const noEmpty = this.isStart() && this.isEnd();
5421
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
5420
5422
  const src = this.#parts.map((p) => {
5421
5423
  const [re, _, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
5422
5424
  this.#hasMagic = this.#hasMagic || hasMagic2;
@@ -5526,10 +5528,7 @@ var AST = class _AST {
5526
5528
  }
5527
5529
  }
5528
5530
  if (c === "*") {
5529
- if (noEmpty && glob2 === "*")
5530
- re += starNoEmpty;
5531
- else
5532
- re += star;
5531
+ re += noEmpty && glob2 === "*" ? starNoEmpty : star;
5533
5532
  hasMagic2 = true;
5534
5533
  continue;
5535
5534
  }
@@ -5545,7 +5544,10 @@ var AST = class _AST {
5545
5544
  };
5546
5545
 
5547
5546
  // node_modules/glob/node_modules/minimatch/dist/esm/escape.js
5548
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
5547
+ var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
5548
+ if (magicalBraces) {
5549
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
5550
+ }
5549
5551
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
5550
5552
  };
5551
5553
 
@@ -5614,7 +5616,7 @@ var path2 = {
5614
5616
  };
5615
5617
  var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
5616
5618
  minimatch.sep = sep;
5617
- var GLOBSTAR = Symbol("globstar **");
5619
+ var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
5618
5620
  minimatch.GLOBSTAR = GLOBSTAR;
5619
5621
  var qmark2 = "[^/]";
5620
5622
  var star2 = qmark2 + "*?";
@@ -6186,16 +6188,27 @@ var Minimatch = class {
6186
6188
  pp[i] = twoStar;
6187
6189
  }
6188
6190
  } else if (next === void 0) {
6189
- pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
6191
+ pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
6190
6192
  } else if (next !== GLOBSTAR) {
6191
6193
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
6192
6194
  pp[i + 1] = GLOBSTAR;
6193
6195
  }
6194
6196
  });
6195
- return pp.filter((p) => p !== GLOBSTAR).join("/");
6197
+ const filtered = pp.filter((p) => p !== GLOBSTAR);
6198
+ if (this.partial && filtered.length >= 1) {
6199
+ const prefixes = [];
6200
+ for (let i = 1; i <= filtered.length; i++) {
6201
+ prefixes.push(filtered.slice(0, i).join("/"));
6202
+ }
6203
+ return "(?:" + prefixes.join("|") + ")";
6204
+ }
6205
+ return filtered.join("/");
6196
6206
  }).join("|");
6197
6207
  const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
6198
6208
  re = "^" + open + re + close + "$";
6209
+ if (this.partial) {
6210
+ re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
6211
+ }
6199
6212
  if (this.negate)
6200
6213
  re = "^(?!" + re + ").+$";
6201
6214
  try {
@@ -6314,7 +6327,6 @@ if (typeof AC === "undefined") {
6314
6327
  };
6315
6328
  }
6316
6329
  var shouldWarn = (code) => !warned.has(code);
6317
- var TYPE = Symbol("type");
6318
6330
  var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
6319
6331
  var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
6320
6332
  var ZeroArray = class extends Array {
@@ -7676,37 +7688,37 @@ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass ||
7676
7688
  var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
7677
7689
  s.pipe !== import_node_stream.default.Writable.prototype.pipe;
7678
7690
  var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
7679
- var EOF = Symbol("EOF");
7680
- var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
7681
- var EMITTED_END = Symbol("emittedEnd");
7682
- var EMITTING_END = Symbol("emittingEnd");
7683
- var EMITTED_ERROR = Symbol("emittedError");
7684
- var CLOSED = Symbol("closed");
7685
- var READ = Symbol("read");
7686
- var FLUSH = Symbol("flush");
7687
- var FLUSHCHUNK = Symbol("flushChunk");
7688
- var ENCODING = Symbol("encoding");
7689
- var DECODER = Symbol("decoder");
7690
- var FLOWING = Symbol("flowing");
7691
- var PAUSED = Symbol("paused");
7692
- var RESUME = Symbol("resume");
7693
- var BUFFER = Symbol("buffer");
7694
- var PIPES = Symbol("pipes");
7695
- var BUFFERLENGTH = Symbol("bufferLength");
7696
- var BUFFERPUSH = Symbol("bufferPush");
7697
- var BUFFERSHIFT = Symbol("bufferShift");
7698
- var OBJECTMODE = Symbol("objectMode");
7699
- var DESTROYED = Symbol("destroyed");
7700
- var ERROR = Symbol("error");
7701
- var EMITDATA = Symbol("emitData");
7702
- var EMITEND = Symbol("emitEnd");
7703
- var EMITEND2 = Symbol("emitEnd2");
7704
- var ASYNC = Symbol("async");
7705
- var ABORT = Symbol("abort");
7706
- var ABORTED = Symbol("aborted");
7707
- var SIGNAL = Symbol("signal");
7708
- var DATALISTENERS = Symbol("dataListeners");
7709
- var DISCARDED = Symbol("discarded");
7691
+ var EOF = /* @__PURE__ */ Symbol("EOF");
7692
+ var MAYBE_EMIT_END = /* @__PURE__ */ Symbol("maybeEmitEnd");
7693
+ var EMITTED_END = /* @__PURE__ */ Symbol("emittedEnd");
7694
+ var EMITTING_END = /* @__PURE__ */ Symbol("emittingEnd");
7695
+ var EMITTED_ERROR = /* @__PURE__ */ Symbol("emittedError");
7696
+ var CLOSED = /* @__PURE__ */ Symbol("closed");
7697
+ var READ = /* @__PURE__ */ Symbol("read");
7698
+ var FLUSH = /* @__PURE__ */ Symbol("flush");
7699
+ var FLUSHCHUNK = /* @__PURE__ */ Symbol("flushChunk");
7700
+ var ENCODING = /* @__PURE__ */ Symbol("encoding");
7701
+ var DECODER = /* @__PURE__ */ Symbol("decoder");
7702
+ var FLOWING = /* @__PURE__ */ Symbol("flowing");
7703
+ var PAUSED = /* @__PURE__ */ Symbol("paused");
7704
+ var RESUME = /* @__PURE__ */ Symbol("resume");
7705
+ var BUFFER = /* @__PURE__ */ Symbol("buffer");
7706
+ var PIPES = /* @__PURE__ */ Symbol("pipes");
7707
+ var BUFFERLENGTH = /* @__PURE__ */ Symbol("bufferLength");
7708
+ var BUFFERPUSH = /* @__PURE__ */ Symbol("bufferPush");
7709
+ var BUFFERSHIFT = /* @__PURE__ */ Symbol("bufferShift");
7710
+ var OBJECTMODE = /* @__PURE__ */ Symbol("objectMode");
7711
+ var DESTROYED = /* @__PURE__ */ Symbol("destroyed");
7712
+ var ERROR = /* @__PURE__ */ Symbol("error");
7713
+ var EMITDATA = /* @__PURE__ */ Symbol("emitData");
7714
+ var EMITEND = /* @__PURE__ */ Symbol("emitEnd");
7715
+ var EMITEND2 = /* @__PURE__ */ Symbol("emitEnd2");
7716
+ var ASYNC = /* @__PURE__ */ Symbol("async");
7717
+ var ABORT = /* @__PURE__ */ Symbol("abort");
7718
+ var ABORTED = /* @__PURE__ */ Symbol("aborted");
7719
+ var SIGNAL = /* @__PURE__ */ Symbol("signal");
7720
+ var DATALISTENERS = /* @__PURE__ */ Symbol("dataListeners");
7721
+ var DISCARDED = /* @__PURE__ */ Symbol("discarded");
7710
7722
  var defer = (fn) => Promise.resolve().then(fn);
7711
7723
  var nodefer = (fn) => fn();
7712
7724
  var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
@@ -8619,7 +8631,7 @@ var ChildrenCache = class extends LRUCache {
8619
8631
  });
8620
8632
  }
8621
8633
  };
8622
- var setAsCwd = Symbol("PathScurry setAsCwd");
8634
+ var setAsCwd = /* @__PURE__ */ Symbol("PathScurry setAsCwd");
8623
8635
  var PathBase = class {
8624
8636
  /**
8625
8637
  * the basename of this path