@forsakringskassan/vite-lib-config 4.8.1 → 4.8.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.
@@ -286,18 +286,18 @@ var require_uFuzzy = __commonJS({
286
286
  return [new RegExp(reTpl, "i" + uFlag), parts, contrs];
287
287
  };
288
288
  const filter2 = (haystack, needle, idxs) => {
289
- let [query] = prepQuery(needle);
290
- if (query == null)
289
+ let [query2] = prepQuery(needle);
290
+ if (query2 == null)
291
291
  return null;
292
292
  let out = [];
293
293
  if (idxs != null) {
294
294
  for (let i = 0; i < idxs.length; i++) {
295
295
  let idx = idxs[i];
296
- query.test(haystack[idx]) && out.push(idx);
296
+ query2.test(haystack[idx]) && out.push(idx);
297
297
  }
298
298
  } else {
299
299
  for (let i = 0; i < haystack.length; i++)
300
- query.test(haystack[i]) && out.push(i);
300
+ query2.test(haystack[i]) && out.push(i);
301
301
  }
302
302
  return out;
303
303
  };
@@ -305,7 +305,7 @@ var require_uFuzzy = __commonJS({
305
305
  let interBound = new RegExp(_interBound, uFlag);
306
306
  let intraBound = new RegExp(_intraBound, uFlag);
307
307
  const info = (idxs, haystack, needle) => {
308
- let [query, parts, contrs] = prepQuery(needle, 1);
308
+ let [query2, parts, contrs] = prepQuery(needle, 1);
309
309
  let partsCased = split(needle, true);
310
310
  let [queryR] = prepQuery(needle, 2);
311
311
  let partsLen = parts.length;
@@ -351,7 +351,7 @@ var require_uFuzzy = __commonJS({
351
351
  let ii2 = 0;
352
352
  for (let i = 0; i < idxs.length; i++) {
353
353
  let mhstr = haystack[idxs[i]];
354
- let m = mhstr.match(query);
354
+ let m = mhstr.match(query2);
355
355
  let start = m.index + m[1].length;
356
356
  let idxAcc = start;
357
357
  let disc = false;
@@ -1224,8 +1224,8 @@ var require_scan = __commonJS({
1224
1224
  CHAR_RIGHT_SQUARE_BRACKET
1225
1225
  /* ] */
1226
1226
  } = require_constants();
1227
- var isPathSeparator = (code) => {
1228
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1227
+ var isPathSeparator = (code2) => {
1228
+ return code2 === CHAR_FORWARD_SLASH || code2 === CHAR_BACKWARD_SLASH;
1229
1229
  };
1230
1230
  var depth = (token) => {
1231
1231
  if (token.isPrefix !== true) {
@@ -1255,38 +1255,38 @@ var require_scan = __commonJS({
1255
1255
  let finished = false;
1256
1256
  let braces = 0;
1257
1257
  let prev;
1258
- let code;
1258
+ let code2;
1259
1259
  let token = { value: "", depth: 0, isGlob: false };
1260
1260
  const eos = () => index >= length;
1261
1261
  const peek = () => str.charCodeAt(index + 1);
1262
1262
  const advance = () => {
1263
- prev = code;
1263
+ prev = code2;
1264
1264
  return str.charCodeAt(++index);
1265
1265
  };
1266
1266
  while (index < length) {
1267
- code = advance();
1267
+ code2 = advance();
1268
1268
  let next;
1269
- if (code === CHAR_BACKWARD_SLASH) {
1269
+ if (code2 === CHAR_BACKWARD_SLASH) {
1270
1270
  backslashes = token.backslashes = true;
1271
- code = advance();
1272
- if (code === CHAR_LEFT_CURLY_BRACE) {
1271
+ code2 = advance();
1272
+ if (code2 === CHAR_LEFT_CURLY_BRACE) {
1273
1273
  braceEscaped = true;
1274
1274
  }
1275
1275
  continue;
1276
1276
  }
1277
- if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
1277
+ if (braceEscaped === true || code2 === CHAR_LEFT_CURLY_BRACE) {
1278
1278
  braces++;
1279
- while (eos() !== true && (code = advance())) {
1280
- if (code === CHAR_BACKWARD_SLASH) {
1279
+ while (eos() !== true && (code2 = advance())) {
1280
+ if (code2 === CHAR_BACKWARD_SLASH) {
1281
1281
  backslashes = token.backslashes = true;
1282
1282
  advance();
1283
1283
  continue;
1284
1284
  }
1285
- if (code === CHAR_LEFT_CURLY_BRACE) {
1285
+ if (code2 === CHAR_LEFT_CURLY_BRACE) {
1286
1286
  braces++;
1287
1287
  continue;
1288
1288
  }
1289
- if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
1289
+ if (braceEscaped !== true && code2 === CHAR_DOT && (code2 = advance()) === CHAR_DOT) {
1290
1290
  isBrace = token.isBrace = true;
1291
1291
  isGlob = token.isGlob = true;
1292
1292
  finished = true;
@@ -1295,7 +1295,7 @@ var require_scan = __commonJS({
1295
1295
  }
1296
1296
  break;
1297
1297
  }
1298
- if (braceEscaped !== true && code === CHAR_COMMA) {
1298
+ if (braceEscaped !== true && code2 === CHAR_COMMA) {
1299
1299
  isBrace = token.isBrace = true;
1300
1300
  isGlob = token.isGlob = true;
1301
1301
  finished = true;
@@ -1304,7 +1304,7 @@ var require_scan = __commonJS({
1304
1304
  }
1305
1305
  break;
1306
1306
  }
1307
- if (code === CHAR_RIGHT_CURLY_BRACE) {
1307
+ if (code2 === CHAR_RIGHT_CURLY_BRACE) {
1308
1308
  braces--;
1309
1309
  if (braces === 0) {
1310
1310
  braceEscaped = false;
@@ -1319,7 +1319,7 @@ var require_scan = __commonJS({
1319
1319
  }
1320
1320
  break;
1321
1321
  }
1322
- if (code === CHAR_FORWARD_SLASH) {
1322
+ if (code2 === CHAR_FORWARD_SLASH) {
1323
1323
  slashes.push(index);
1324
1324
  tokens.push(token);
1325
1325
  token = { value: "", depth: 0, isGlob: false };
@@ -1332,22 +1332,22 @@ var require_scan = __commonJS({
1332
1332
  continue;
1333
1333
  }
1334
1334
  if (opts.noext !== true) {
1335
- const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
1335
+ const isExtglobChar = code2 === CHAR_PLUS || code2 === CHAR_AT || code2 === CHAR_ASTERISK || code2 === CHAR_QUESTION_MARK || code2 === CHAR_EXCLAMATION_MARK;
1336
1336
  if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
1337
1337
  isGlob = token.isGlob = true;
1338
1338
  isExtglob = token.isExtglob = true;
1339
1339
  finished = true;
1340
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
1340
+ if (code2 === CHAR_EXCLAMATION_MARK && index === start) {
1341
1341
  negatedExtglob = true;
1342
1342
  }
1343
1343
  if (scanToEnd === true) {
1344
- while (eos() !== true && (code = advance())) {
1345
- if (code === CHAR_BACKWARD_SLASH) {
1344
+ while (eos() !== true && (code2 = advance())) {
1345
+ if (code2 === CHAR_BACKWARD_SLASH) {
1346
1346
  backslashes = token.backslashes = true;
1347
- code = advance();
1347
+ code2 = advance();
1348
1348
  continue;
1349
1349
  }
1350
- if (code === CHAR_RIGHT_PARENTHESES) {
1350
+ if (code2 === CHAR_RIGHT_PARENTHESES) {
1351
1351
  isGlob = token.isGlob = true;
1352
1352
  finished = true;
1353
1353
  break;
@@ -1358,7 +1358,7 @@ var require_scan = __commonJS({
1358
1358
  break;
1359
1359
  }
1360
1360
  }
1361
- if (code === CHAR_ASTERISK) {
1361
+ if (code2 === CHAR_ASTERISK) {
1362
1362
  if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
1363
1363
  isGlob = token.isGlob = true;
1364
1364
  finished = true;
@@ -1367,7 +1367,7 @@ var require_scan = __commonJS({
1367
1367
  }
1368
1368
  break;
1369
1369
  }
1370
- if (code === CHAR_QUESTION_MARK) {
1370
+ if (code2 === CHAR_QUESTION_MARK) {
1371
1371
  isGlob = token.isGlob = true;
1372
1372
  finished = true;
1373
1373
  if (scanToEnd === true) {
@@ -1375,7 +1375,7 @@ var require_scan = __commonJS({
1375
1375
  }
1376
1376
  break;
1377
1377
  }
1378
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
1378
+ if (code2 === CHAR_LEFT_SQUARE_BRACKET) {
1379
1379
  while (eos() !== true && (next = advance())) {
1380
1380
  if (next === CHAR_BACKWARD_SLASH) {
1381
1381
  backslashes = token.backslashes = true;
@@ -1394,21 +1394,21 @@ var require_scan = __commonJS({
1394
1394
  }
1395
1395
  break;
1396
1396
  }
1397
- if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
1397
+ if (opts.nonegate !== true && code2 === CHAR_EXCLAMATION_MARK && index === start) {
1398
1398
  negated = token.negated = true;
1399
1399
  start++;
1400
1400
  continue;
1401
1401
  }
1402
- if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
1402
+ if (opts.noparen !== true && code2 === CHAR_LEFT_PARENTHESES) {
1403
1403
  isGlob = token.isGlob = true;
1404
1404
  if (scanToEnd === true) {
1405
- while (eos() !== true && (code = advance())) {
1406
- if (code === CHAR_LEFT_PARENTHESES) {
1405
+ while (eos() !== true && (code2 = advance())) {
1406
+ if (code2 === CHAR_LEFT_PARENTHESES) {
1407
1407
  backslashes = token.backslashes = true;
1408
- code = advance();
1408
+ code2 = advance();
1409
1409
  continue;
1410
1410
  }
1411
- if (code === CHAR_RIGHT_PARENTHESES) {
1411
+ if (code2 === CHAR_RIGHT_PARENTHESES) {
1412
1412
  finished = true;
1413
1413
  break;
1414
1414
  }
@@ -1473,7 +1473,7 @@ var require_scan = __commonJS({
1473
1473
  };
1474
1474
  if (opts.tokens === true) {
1475
1475
  state.maxDepth = 0;
1476
- if (!isPathSeparator(code)) {
1476
+ if (!isPathSeparator(code2)) {
1477
1477
  tokens.push(token);
1478
1478
  }
1479
1479
  state.tokens = tokens;
@@ -2895,14 +2895,14 @@ var require_semver = __commonJS({
2895
2895
  if (!m[4]) {
2896
2896
  this.prerelease = [];
2897
2897
  } else {
2898
- this.prerelease = m[4].split(".").map((id) => {
2899
- if (/^[0-9]+$/.test(id)) {
2900
- const num = +id;
2898
+ this.prerelease = m[4].split(".").map((id2) => {
2899
+ if (/^[0-9]+$/.test(id2)) {
2900
+ const num = +id2;
2901
2901
  if (num >= 0 && num < MAX_SAFE_INTEGER) {
2902
2902
  return num;
2903
2903
  }
2904
2904
  }
2905
- return id;
2905
+ return id2;
2906
2906
  });
2907
2907
  }
2908
2908
  this.build = m[5] ? m[5].split(".") : [];
@@ -3767,7 +3767,7 @@ var require_range = __commonJS({
3767
3767
  debug2("stars", comp);
3768
3768
  return comp;
3769
3769
  };
3770
- var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
3770
+ var isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
3771
3771
  var replaceTildes = (comp, options) => {
3772
3772
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
3773
3773
  };
@@ -4654,7 +4654,7 @@ import fs from "node:fs";
4654
4654
  import { createFilter, formatPostcssSourceMap, isCSSRequest, normalizePath, transformWithEsbuild } from "vite";
4655
4655
  import { computed, shallowRef } from "vue";
4656
4656
 
4657
- // node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js
4657
+ // node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs
4658
4658
  function exactRegex(str, flags) {
4659
4659
  return new RegExp(`^${escapeRegex(str)}$`, flags);
4660
4660
  }
@@ -4663,27 +4663,15 @@ function escapeRegex(str) {
4663
4663
  return str.replace(escapeRegexRE, "\\$&");
4664
4664
  }
4665
4665
  function makeIdFiltersToMatchWithQuery(input) {
4666
- if (!Array.isArray(input)) {
4667
- return makeIdFilterToMatchWithQuery(
4668
- // Array.isArray cannot narrow the type
4669
- // https://github.com/microsoft/TypeScript/issues/17002
4670
- input
4671
- );
4672
- }
4666
+ if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(input);
4673
4667
  return input.map((i) => makeIdFilterToMatchWithQuery(i));
4674
4668
  }
4675
4669
  function makeIdFilterToMatchWithQuery(input) {
4676
- if (typeof input === "string") {
4677
- return `${input}{?*,}`;
4678
- }
4670
+ if (typeof input === "string") return `${input}{?*,}`;
4679
4671
  return makeRegexIdFilterToMatchWithQuery(input);
4680
4672
  }
4681
4673
  function makeRegexIdFilterToMatchWithQuery(input) {
4682
- return new RegExp(
4683
- // replace `$` with `(?:\?.*)?$` (ignore `\$`)
4684
- input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"),
4685
- input.flags
4686
- );
4674
+ return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
4687
4675
  }
4688
4676
 
4689
4677
  // node_modules/@vitejs/plugin-vue/dist/index.mjs
@@ -4691,7 +4679,7 @@ import path from "node:path";
4691
4679
  import crypto from "node:crypto";
4692
4680
  import { isatty } from "node:tty";
4693
4681
  import { formatWithOptions, inspect } from "node:util";
4694
- var version = "6.0.6";
4682
+ var version = "6.0.7";
4695
4683
  function resolveCompiler(root) {
4696
4684
  const compiler = tryResolveCompiler(root) || tryResolveCompiler();
4697
4685
  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.");
@@ -4702,23 +4690,23 @@ function tryResolveCompiler(root) {
4702
4690
  if (vueMeta && vueMeta.version.split(".")[0] >= 3) return tryRequire("vue/compiler-sfc", root);
4703
4691
  }
4704
4692
  var _require = createRequire(import.meta.url);
4705
- function tryRequire(id, from) {
4693
+ function tryRequire(id2, from) {
4706
4694
  try {
4707
- return from ? _require(_require.resolve(id, { paths: [from] })) : _require(id);
4695
+ return from ? _require(_require.resolve(id2, { paths: [from] })) : _require(id2);
4708
4696
  } catch (e) {
4709
4697
  }
4710
4698
  }
4711
- function parseVueRequest(id) {
4712
- const [filename, rawQuery] = id.split(`?`, 2);
4713
- const query = Object.fromEntries(new URLSearchParams(rawQuery));
4714
- if (query.vue != null) query.vue = true;
4715
- if (query.index != null) query.index = Number(query.index);
4716
- if (query.raw != null) query.raw = true;
4717
- if (query.url != null) query.url = true;
4718
- if (query.scoped != null) query.scoped = true;
4699
+ function parseVueRequest(id2) {
4700
+ const [filename, rawQuery] = id2.split(`?`, 2);
4701
+ const query2 = Object.fromEntries(new URLSearchParams(rawQuery));
4702
+ if (query2.vue != null) query2.vue = true;
4703
+ if (query2.index != null) query2.index = Number(query2.index);
4704
+ if (query2.raw != null) query2.raw = true;
4705
+ if (query2.url != null) query2.url = true;
4706
+ if (query2.scoped != null) query2.scoped = true;
4719
4707
  return {
4720
4708
  filename,
4721
- query
4709
+ query: query2
4722
4710
  };
4723
4711
  }
4724
4712
  var cache = /* @__PURE__ */ new Map();
@@ -4751,25 +4739,25 @@ function invalidateDescriptor(filename, hmr = false) {
4751
4739
  _cache.delete(filename);
4752
4740
  if (prev) prevCache.set(filename, prev);
4753
4741
  }
4754
- function getDescriptor(filename, options, createIfNotFound = true, hmr = false, code) {
4742
+ function getDescriptor(filename, options, createIfNotFound = true, hmr = false, code2) {
4755
4743
  const _cache = hmr ? hmrCache : cache;
4756
4744
  if (_cache.has(filename)) return _cache.get(filename);
4757
4745
  if (createIfNotFound) {
4758
- const { descriptor, errors } = createDescriptor(filename, code ?? fs.readFileSync(filename, "utf-8"), options, hmr);
4746
+ const { descriptor, errors } = createDescriptor(filename, code2 ?? fs.readFileSync(filename, "utf-8"), options, hmr);
4759
4747
  if (errors.length && !hmr) throw errors[0];
4760
4748
  return descriptor;
4761
4749
  }
4762
4750
  }
4763
- function getSrcDescriptor(filename, query) {
4764
- if (query.scoped) return cache.get(`${filename}?src=${query.src}`);
4751
+ function getSrcDescriptor(filename, query2) {
4752
+ if (query2.scoped) return cache.get(`${filename}?src=${query2.src}`);
4765
4753
  return cache.get(filename);
4766
4754
  }
4767
- function getTempSrcDescriptor(filename, query) {
4755
+ function getTempSrcDescriptor(filename, query2) {
4768
4756
  return {
4769
4757
  filename,
4770
- id: query.id || "",
4758
+ id: query2.id || "",
4771
4759
  styles: [{
4772
- scoped: query.scoped,
4760
+ scoped: query2.scoped,
4773
4761
  loc: { start: {
4774
4762
  line: 0,
4775
4763
  column: 0
@@ -4792,24 +4780,24 @@ function slash(path3) {
4792
4780
  if (path3.startsWith("\\\\?\\")) return path3;
4793
4781
  return path3.replace(/\\/g, "/");
4794
4782
  }
4795
- function createRollupError(id, error) {
4783
+ function createRollupError(id2, error) {
4796
4784
  const { message, name, stack } = error;
4797
4785
  const rollupError = {
4798
- id,
4786
+ id: id2,
4799
4787
  plugin: "vue",
4800
4788
  message,
4801
4789
  name,
4802
4790
  stack
4803
4791
  };
4804
4792
  if ("code" in error && error.loc) rollupError.loc = {
4805
- file: id,
4793
+ file: id2,
4806
4794
  line: error.loc.start.line,
4807
4795
  column: error.loc.start.column
4808
4796
  };
4809
4797
  return rollupError;
4810
4798
  }
4811
- async function transformTemplateAsModule(code, filename, descriptor, options, pluginContext, ssr, customElement) {
4812
- const result = compile(code, filename, descriptor, options, pluginContext, ssr, customElement);
4799
+ async function transformTemplateAsModule(code2, filename, descriptor, options, pluginContext, ssr, customElement) {
4800
+ const result = compile(code2, filename, descriptor, options, pluginContext, ssr, customElement);
4813
4801
  let returnCode = result.code;
4814
4802
  returnCode += `
4815
4803
  export const multiRoot = ${JSON.stringify(result.multiRoot)}`;
@@ -4822,18 +4810,18 @@ import.meta.hot.accept(({ render }) => {
4822
4810
  map: result.map
4823
4811
  };
4824
4812
  }
4825
- function transformTemplateInMain(code, descriptor, options, pluginContext, ssr, customElement) {
4826
- const result = compile(code, descriptor.filename, descriptor, options, pluginContext, ssr, customElement);
4813
+ function transformTemplateInMain(code2, descriptor, options, pluginContext, ssr, customElement) {
4814
+ const result = compile(code2, descriptor.filename, descriptor, options, pluginContext, ssr, customElement);
4827
4815
  return {
4828
4816
  ...result,
4829
4817
  code: result.code.replace(/\nexport (function|const) (render|ssrRender)/, "\n$1 _sfc_$2")
4830
4818
  };
4831
4819
  }
4832
- function compile(code, filename, descriptor, options, pluginContext, ssr, customElement) {
4820
+ function compile(code2, filename, descriptor, options, pluginContext, ssr, customElement) {
4833
4821
  resolveScript(descriptor, options, ssr, customElement);
4834
4822
  const result = options.compiler.compileTemplate({
4835
4823
  ...resolveTemplateCompilerOptions(descriptor, options, filename, ssr),
4836
- source: code
4824
+ source: code2
4837
4825
  });
4838
4826
  if (result.errors.length) result.errors.forEach((error) => pluginContext.error(typeof error === "string" ? {
4839
4827
  id: filename,
@@ -4850,7 +4838,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4850
4838
  if (!block) return;
4851
4839
  const resolvedScript = getResolvedScript(descriptor, ssr);
4852
4840
  const hasScoped = descriptor.styles.some((s) => s.scoped);
4853
- const { id, cssVars } = descriptor;
4841
+ const { id: id2, cssVars } = descriptor;
4854
4842
  let transformAssetUrls = options.template?.transformAssetUrls;
4855
4843
  let assetUrlOptions;
4856
4844
  if (transformAssetUrls === false) {
@@ -4883,7 +4871,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4883
4871
  return {
4884
4872
  ...options.template,
4885
4873
  vapor: descriptor.vapor,
4886
- id,
4874
+ id: id2,
4887
4875
  ast: canReuseAST(options.compiler.version) ? descriptor.template?.ast : void 0,
4888
4876
  filename,
4889
4877
  scoped: hasScoped,
@@ -4897,7 +4885,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4897
4885
  preprocessOptions,
4898
4886
  compilerOptions: {
4899
4887
  ...options.template?.compilerOptions,
4900
- scopeId: hasScoped ? `data-v-${id}` : void 0,
4888
+ scopeId: hasScoped ? `data-v-${id2}` : void 0,
4901
4889
  bindingMetadata: resolvedScript ? resolvedScript.bindings : void 0,
4902
4890
  expressionPlugins,
4903
4891
  sourceMap: options.sourceMap
@@ -5158,14 +5146,14 @@ function parseFileUrl(input) {
5158
5146
  const path3 = match[2];
5159
5147
  return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path3) ? path3 : "/" + path3, match[3] || "", match[4] || "");
5160
5148
  }
5161
- function makeUrl(scheme, user, host, port, path3, query, hash) {
5149
+ function makeUrl(scheme, user, host, port, path3, query2, hash) {
5162
5150
  return {
5163
5151
  scheme,
5164
5152
  user,
5165
5153
  host,
5166
5154
  port,
5167
5155
  path: path3,
5168
- query,
5156
+ query: query2,
5169
5157
  hash,
5170
5158
  type: 7
5171
5159
  };
@@ -5463,8 +5451,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
5463
5451
  if (skipable && skipSourceless(line, index)) return;
5464
5452
  return insert(line, index, [genColumn]);
5465
5453
  }
5466
- assert(sourceLine);
5467
- assert(sourceColumn);
5468
5454
  const sourcesIndex = put(sources, source);
5469
5455
  const namesIndex = name ? put(names2, name) : NO_NAME;
5470
5456
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -5482,8 +5468,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
5482
5468
  sourceColumn
5483
5469
  ]);
5484
5470
  }
5485
- function assert(_val) {
5486
- }
5487
5471
  function getIndex(arr, index) {
5488
5472
  for (let i = arr.length; i <= index; i++) arr[i] = [];
5489
5473
  return arr[index];
@@ -5519,7 +5503,6 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
5519
5503
  function addMappingInternal(skipable, map, mapping2) {
5520
5504
  const { generated, source, original, name, content } = mapping2;
5521
5505
  if (!source) return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
5522
- assert(original);
5523
5506
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
5524
5507
  }
5525
5508
  function coerce(value) {
@@ -5926,11 +5909,11 @@ export default (sfc, props) => {
5926
5909
  return target;
5927
5910
  }
5928
5911
  `;
5929
- async function transformMain(code, filename, options, pluginContext, ssr, customElement) {
5912
+ async function transformMain(code2, filename, options, pluginContext, ssr, customElement) {
5930
5913
  const { devServer, isProduction, devToolsEnabled } = options;
5931
5914
  const prevDescriptor = getPrevDescriptor(filename);
5932
- const { descriptor, errors } = createDescriptor(filename, code, options);
5933
- if (fs.existsSync(filename)) getDescriptor(filename, options, true, true, filename.endsWith(".vue") ? void 0 : code);
5915
+ const { descriptor, errors } = createDescriptor(filename, code2, options);
5916
+ if (fs.existsSync(filename)) getDescriptor(filename, options, true, true, filename.endsWith(".vue") ? void 0 : code2);
5934
5917
  if (errors.length) {
5935
5918
  errors.forEach((error) => pluginContext.error(createRollupError(filename, error)));
5936
5919
  return null;
@@ -6006,22 +5989,22 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
6006
5989
  if (lang && /tsx?$/.test(lang) && !descriptor.script?.src) {
6007
5990
  const { transformWithOxc } = await import("vite");
6008
5991
  if (transformWithOxc) {
6009
- const { code: code2, map } = await transformWithOxc(resolvedCode, filename, {
5992
+ const { code: code3, map } = await transformWithOxc(resolvedCode, filename, {
6010
5993
  ...options.devServer?.config.oxc,
6011
5994
  lang: "ts",
6012
5995
  sourcemap: options.sourceMap
6013
5996
  }, resolvedMap);
6014
- resolvedCode = code2;
5997
+ resolvedCode = code3;
6015
5998
  resolvedMap = resolvedMap ? map : resolvedMap;
6016
5999
  } else {
6017
- const { code: code2, map } = await transformWithEsbuild(resolvedCode, filename, {
6000
+ const { code: code3, map } = await transformWithEsbuild(resolvedCode, filename, {
6018
6001
  target: "esnext",
6019
6002
  charset: "utf8",
6020
6003
  ...options.devServer?.config.esbuild,
6021
6004
  loader: "ts",
6022
6005
  sourcemap: options.sourceMap
6023
6006
  }, resolvedMap);
6024
- resolvedCode = code2;
6007
+ resolvedCode = code3;
6025
6008
  resolvedMap = resolvedMap ? map : resolvedMap;
6026
6009
  }
6027
6010
  }
@@ -6044,8 +6027,8 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
6044
6027
  } else {
6045
6028
  if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
6046
6029
  const src = template.src || descriptor.filename;
6047
- const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
6048
- const request = JSON.stringify(src + query);
6030
+ const query2 = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
6031
+ const request = JSON.stringify(src + query2);
6049
6032
  const renderFnName = ssr ? "ssrRender" : "render";
6050
6033
  return {
6051
6034
  code: `import { ${renderFnName} as _sfc_${renderFnName}${needsMultiRoot ? ", multiRoot as _sfc_multiRoot" : ""} } from ${request}`,
@@ -6069,8 +6052,8 @@ async function genScriptCode(descriptor, options, pluginContext, ssr, customElem
6069
6052
  const src = script.src || descriptor.filename;
6070
6053
  const langFallback = script.src && path.extname(src).slice(1) || "js";
6071
6054
  const attrsQuery = attrsToQuery(script.attrs, langFallback);
6072
- const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
6073
- const request = JSON.stringify(src + query);
6055
+ const query2 = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
6056
+ const request = JSON.stringify(src + query2);
6074
6057
  scriptCode = `import _sfc_main from ${request}
6075
6058
  export * from ${request}`;
6076
6059
  }
@@ -6105,7 +6088,7 @@ import ${JSON.stringify(styleRequest)}`;
6105
6088
  if (customElement) attachedProps.push([`styles`, `[${descriptor.styles.map((_2, i) => `_style_${i}`).join(",")}]`]);
6106
6089
  }
6107
6090
  if (cssModulesMap) {
6108
- const mappingCode = Object.entries(cssModulesMap).reduce((code, [key, value]) => code + `"${key}":${value},
6091
+ const mappingCode = Object.entries(cssModulesMap).reduce((code2, [key, value]) => code2 + `"${key}":${value},
6109
6092
  `, "{\n") + "}";
6110
6093
  stylesCode += `
6111
6094
  const cssModules = ${mappingCode}`;
@@ -6121,21 +6104,21 @@ function genCSSModulesCode(index, request, moduleName) {
6121
6104
  import ${styleVar} from ${JSON.stringify(moduleRequest)}`, { [exposedName]: styleVar }];
6122
6105
  }
6123
6106
  async function genCustomBlockCode(descriptor, pluginContext) {
6124
- let code = "";
6107
+ let code2 = "";
6125
6108
  for (let index = 0; index < descriptor.customBlocks.length; index++) {
6126
6109
  const block = descriptor.customBlocks[index];
6127
6110
  if (block.src) await linkSrcToDescriptor(block.src, descriptor, pluginContext, false);
6128
6111
  const src = block.src || descriptor.filename;
6129
6112
  const attrsQuery = attrsToQuery(block.attrs, block.type);
6130
6113
  const srcQuery = block.src ? `&src=true` : ``;
6131
- const query = `?vue&type=${block.type}&index=${index}${srcQuery}${attrsQuery}`;
6132
- const request = JSON.stringify(src + query);
6133
- code += `import block${index} from ${request}
6114
+ const query2 = `?vue&type=${block.type}&index=${index}${srcQuery}${attrsQuery}`;
6115
+ const request = JSON.stringify(src + query2);
6116
+ code2 += `import block${index} from ${request}
6134
6117
  `;
6135
- code += `if (typeof block${index} === 'function') block${index}(_sfc_main)
6118
+ code2 += `if (typeof block${index} === 'function') block${index}(_sfc_main)
6136
6119
  `;
6137
6120
  }
6138
- return code;
6121
+ return code2;
6139
6122
  }
6140
6123
  async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
6141
6124
  setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
@@ -6151,22 +6134,22 @@ var ignoreList = [
6151
6134
  "generic"
6152
6135
  ];
6153
6136
  function attrsToQuery(attrs, langFallback, forceLangFallback = false) {
6154
- let query = ``;
6137
+ let query2 = ``;
6155
6138
  for (const name in attrs) {
6156
6139
  const value = attrs[name];
6157
- if (!ignoreList.includes(name)) query += `&${encodeURIComponent(name)}${value ? `=${encodeURIComponent(value)}` : ``}`;
6140
+ if (!ignoreList.includes(name)) query2 += `&${encodeURIComponent(name)}${value ? `=${encodeURIComponent(value)}` : ``}`;
6158
6141
  }
6159
- if (langFallback || attrs.lang) query += `lang` in attrs ? forceLangFallback ? `&lang.${langFallback}` : `&lang.${attrs.lang}` : `&lang.${langFallback}`;
6160
- return query;
6142
+ if (langFallback || attrs.lang) query2 += `lang` in attrs ? forceLangFallback ? `&lang.${langFallback}` : `&lang.${attrs.lang}` : `&lang.${langFallback}`;
6143
+ return query2;
6161
6144
  }
6162
- async function transformStyle(code, descriptor, index, options, pluginContext, filename) {
6145
+ async function transformStyle(code2, descriptor, index, options, pluginContext, filename) {
6163
6146
  const block = descriptor.styles[index];
6164
6147
  const result = await options.compiler.compileStyleAsync({
6165
6148
  ...options.style,
6166
6149
  filename: descriptor.filename,
6167
6150
  id: `data-v-${descriptor.id}`,
6168
6151
  isProd: options.isProduction,
6169
- source: code,
6152
+ source: code2,
6170
6153
  scoped: block.scoped,
6171
6154
  ...options.cssDevSourcemap ? { postcssOptions: { map: {
6172
6155
  from: filename,
@@ -6203,10 +6186,10 @@ function vuePlugin(rawOptions = {}) {
6203
6186
  sourceMap: true,
6204
6187
  cssDevSourcemap: false
6205
6188
  });
6206
- const include = shallowRef(rawOptions.include ?? /\.vue$/);
6207
- const exclude = shallowRef(rawOptions.exclude);
6189
+ const include2 = shallowRef(rawOptions.include ?? /\.vue$/);
6190
+ const exclude2 = shallowRef(rawOptions.exclude);
6208
6191
  let optionsHookIsCalled = false;
6209
- const filter2 = computed(() => createFilter(include.value, exclude.value));
6192
+ const filter2 = computed(() => createFilter(include2.value, exclude2.value));
6210
6193
  const customElementFilter = computed(() => {
6211
6194
  const customElement = options.value.features?.customElement || options.value.customElement;
6212
6195
  return typeof customElement === "boolean" ? () => customElement : createFilter(customElement);
@@ -6222,18 +6205,18 @@ function vuePlugin(rawOptions = {}) {
6222
6205
  options.value = value;
6223
6206
  },
6224
6207
  get include() {
6225
- return include.value;
6208
+ return include2.value;
6226
6209
  },
6227
6210
  set include(value) {
6228
6211
  if (optionsHookIsCalled) throw new Error("include cannot be updated after `options` hook is called");
6229
- include.value = value;
6212
+ include2.value = value;
6230
6213
  },
6231
6214
  get exclude() {
6232
- return exclude.value;
6215
+ return exclude2.value;
6233
6216
  },
6234
6217
  set exclude(value) {
6235
6218
  if (optionsHookIsCalled) throw new Error("exclude cannot be updated after `options` hook is called");
6236
- exclude.value = value;
6219
+ exclude2.value = value;
6237
6220
  },
6238
6221
  version
6239
6222
  },
@@ -6289,12 +6272,12 @@ function vuePlugin(rawOptions = {}) {
6289
6272
  options() {
6290
6273
  optionsHookIsCalled = true;
6291
6274
  plugin.transform.filter = { id: {
6292
- include: [...makeIdFiltersToMatchWithQuery(ensureArray(include.value)), /[?&]vue\b/],
6293
- exclude: exclude.value
6275
+ include: [...makeIdFiltersToMatchWithQuery(ensureArray(include2.value)), /[?&]vue\b/],
6276
+ exclude: exclude2.value
6294
6277
  } };
6295
6278
  },
6296
- shouldTransformCachedModule({ id }) {
6297
- if (transformCachedModule && parseVueRequest(id).query.vue) return true;
6279
+ shouldTransformCachedModule({ id: id2 }) {
6280
+ if (transformCachedModule && parseVueRequest(id2).query.vue) return true;
6298
6281
  return false;
6299
6282
  },
6300
6283
  configureServer(server) {
@@ -6308,25 +6291,25 @@ function vuePlugin(rawOptions = {}) {
6308
6291
  },
6309
6292
  resolveId: {
6310
6293
  filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
6311
- handler(id) {
6312
- if (id === "\0plugin-vue:export-helper") return id;
6313
- if (parseVueRequest(id).query.vue) return id;
6294
+ handler(id2) {
6295
+ if (id2 === "\0plugin-vue:export-helper") return id2;
6296
+ if (parseVueRequest(id2).query.vue) return id2;
6314
6297
  }
6315
6298
  },
6316
6299
  load: {
6317
6300
  filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
6318
- handler(id, opt) {
6319
- if (id === "\0plugin-vue:export-helper") return helperCode;
6301
+ handler(id2, opt) {
6302
+ if (id2 === "\0plugin-vue:export-helper") return helperCode;
6320
6303
  const ssr = opt?.ssr === true;
6321
- const { filename, query } = parseVueRequest(id);
6322
- if (query.vue) {
6323
- if (query.src) return fs.readFileSync(filename, "utf-8");
6304
+ const { filename, query: query2 } = parseVueRequest(id2);
6305
+ if (query2.vue) {
6306
+ if (query2.src) return fs.readFileSync(filename, "utf-8");
6324
6307
  const descriptor = getDescriptor(filename, options.value);
6325
6308
  let block;
6326
- if (query.type === "script") block = resolveScript(descriptor, options.value, ssr, customElementFilter.value(filename));
6327
- else if (query.type === "template") block = descriptor.template;
6328
- else if (query.type === "style") block = descriptor.styles[query.index];
6329
- else if (query.index != null) block = descriptor.customBlocks[query.index];
6309
+ if (query2.type === "script") block = resolveScript(descriptor, options.value, ssr, customElementFilter.value(filename));
6310
+ else if (query2.type === "template") block = descriptor.template;
6311
+ else if (query2.type === "style") block = descriptor.styles[query2.index];
6312
+ else if (query2.index != null) block = descriptor.customBlocks[query2.index];
6330
6313
  if (block) return {
6331
6314
  code: block.content,
6332
6315
  map: block.map
@@ -6334,17 +6317,17 @@ function vuePlugin(rawOptions = {}) {
6334
6317
  }
6335
6318
  }
6336
6319
  },
6337
- transform: { handler(code, id, opt) {
6320
+ transform: { handler(code2, id2, opt) {
6338
6321
  const ssr = opt?.ssr === true;
6339
- const { filename, query } = parseVueRequest(id);
6340
- if (query.raw || query.url) return;
6341
- if (!filter2.value(filename) && !query.vue) return;
6342
- if (!query.vue) return transformMain(code, filename, options.value, this, ssr, customElementFilter.value(filename));
6322
+ const { filename, query: query2 } = parseVueRequest(id2);
6323
+ if (query2.raw || query2.url) return;
6324
+ if (!filter2.value(filename) && !query2.vue) return;
6325
+ if (!query2.vue) return transformMain(code2, filename, options.value, this, ssr, customElementFilter.value(filename));
6343
6326
  else {
6344
- const descriptor = query.src ? getSrcDescriptor(filename, query) || getTempSrcDescriptor(filename, query) : getDescriptor(filename, options.value);
6345
- if (query.src) this.addWatchFile(filename);
6346
- if (query.type === "template") return transformTemplateAsModule(code, filename, descriptor, options.value, this, ssr, customElementFilter.value(filename));
6347
- else if (query.type === "style") return transformStyle(code, descriptor, Number(query.index || 0), options.value, this, filename);
6327
+ const descriptor = query2.src ? getSrcDescriptor(filename, query2) || getTempSrcDescriptor(filename, query2) : getDescriptor(filename, options.value);
6328
+ if (query2.src) this.addWatchFile(filename);
6329
+ if (query2.type === "template") return transformTemplateAsModule(code2, filename, descriptor, options.value, this, ssr, customElementFilter.value(filename));
6330
+ else if (query2.type === "style") return transformStyle(code2, descriptor, Number(query2.index || 0), options.value, this, filename);
6348
6331
  }
6349
6332
  } }
6350
6333
  };
@@ -9765,8 +9748,8 @@ var SourceMap = class {
9765
9748
  return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
9766
9749
  }
9767
9750
  };
9768
- function guessIndent(code) {
9769
- const lines = code.split("\n");
9751
+ function guessIndent(code2) {
9752
+ const lines = code2.split("\n");
9770
9753
  const tabbed = lines.filter((line) => /^\t+/.test(line));
9771
9754
  const spaced = lines.filter((line) => /^ {2,}/.test(line));
9772
9755
  if (tabbed.length === 0 && spaced.length === 0) {
@@ -10737,26 +10720,26 @@ function toArray(thing) {
10737
10720
  return [thing];
10738
10721
  }
10739
10722
  var escapeMark = "[_#EsCaPe#_]";
10740
- function getMatcherString(id, resolutionBase) {
10741
- if (resolutionBase === false || isAbsolute(id) || id.startsWith("**")) return normalizePath2(id);
10723
+ function getMatcherString(id2, resolutionBase) {
10724
+ if (resolutionBase === false || isAbsolute(id2) || id2.startsWith("**")) return normalizePath2(id2);
10742
10725
  const basePath = normalizePath2(resolve2(resolutionBase || "")).replaceAll(/[-^$*+?.()|[\]{}]/g, `${escapeMark}$&`);
10743
- return join(basePath, normalizePath2(id)).replaceAll(escapeMark, "\\");
10726
+ return join(basePath, normalizePath2(id2)).replaceAll(escapeMark, "\\");
10744
10727
  }
10745
- function createFilter2(include, exclude, options) {
10728
+ function createFilter2(include2, exclude2, options) {
10746
10729
  const resolutionBase = options && options.resolve;
10747
- const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => {
10748
- const pattern = getMatcherString(id, resolutionBase);
10730
+ const getMatcher = (id2) => id2 instanceof RegExp ? id2 : { test: (what) => {
10731
+ const pattern = getMatcherString(id2, resolutionBase);
10749
10732
  const fn = (0, import_picomatch.default)(pattern, { dot: true });
10750
10733
  const result = fn(what);
10751
10734
  return result;
10752
10735
  } };
10753
- const includeMatchers = toArray(include).map(getMatcher);
10754
- const excludeMatchers = toArray(exclude).map(getMatcher);
10755
- if (!includeMatchers.length && !excludeMatchers.length) return (id) => typeof id === "string" && !id.includes("\0");
10756
- return function result(id) {
10757
- if (typeof id !== "string") return false;
10758
- if (id.includes("\0")) return false;
10759
- const pathId = normalizePath2(id);
10736
+ const includeMatchers = toArray(include2).map(getMatcher);
10737
+ const excludeMatchers = toArray(exclude2).map(getMatcher);
10738
+ if (!includeMatchers.length && !excludeMatchers.length) return (id2) => typeof id2 === "string" && !id2.includes("\0");
10739
+ return function result(id2) {
10740
+ if (typeof id2 !== "string") return false;
10741
+ if (id2.includes("\0")) return false;
10742
+ const pathId = normalizePath2(id2);
10760
10743
  for (const matcher of excludeMatchers) {
10761
10744
  if (matcher instanceof RegExp) matcher.lastIndex = 0;
10762
10745
  if (matcher.test(pathId)) return false;
@@ -10777,20 +10760,20 @@ function PluginPure(options) {
10777
10760
  name: "rollup-plugin-pure",
10778
10761
  transform: {
10779
10762
  order: "post",
10780
- handler(code, id) {
10781
- if (!filter2(id)) {
10763
+ handler(code2, id2) {
10764
+ if (!filter2(id2)) {
10782
10765
  return;
10783
10766
  }
10784
- if (options.functions.every((func) => typeof func === "string" && !code.includes(func))) {
10767
+ if (options.functions.every((func) => typeof func === "string" && !code2.includes(func))) {
10785
10768
  return;
10786
10769
  }
10787
10770
  let ast;
10788
10771
  try {
10789
- ast = this.parse(code);
10772
+ ast = this.parse(code2);
10790
10773
  } catch {
10791
10774
  return null;
10792
10775
  }
10793
- const s = new MagicString(code);
10776
+ const s = new MagicString(code2);
10794
10777
  let offset = 0;
10795
10778
  walk(ast, {
10796
10779
  enter(_node) {
@@ -10844,11 +10827,11 @@ function babelPlugin() {
10844
10827
  name: "fk:babel",
10845
10828
  enforce: "post",
10846
10829
  apply: "build",
10847
- async transform(src, id) {
10848
- if (id === "\0rolldown/runtime.js") {
10830
+ async transform(src, id2) {
10831
+ if (id2 === "\0rolldown/runtime.js") {
10849
10832
  return null;
10850
10833
  }
10851
- const { pathname: filename } = new URL(id, "file://");
10834
+ const { pathname: filename } = new URL(id2, "file://");
10852
10835
  if (!filter.test(filename)) {
10853
10836
  return null;
10854
10837
  }
@@ -10860,9 +10843,9 @@ function babelPlugin() {
10860
10843
  if (!transformed) {
10861
10844
  return null;
10862
10845
  }
10863
- const { code, map } = transformed;
10846
+ const { code: code2, map } = transformed;
10864
10847
  return {
10865
- code: code ?? src,
10848
+ code: code2 ?? src,
10866
10849
  map: map ?? null
10867
10850
  };
10868
10851
  }
@@ -10952,8 +10935,8 @@ function indexHtmlPlugin() {
10952
10935
  },
10953
10936
  load: {
10954
10937
  order: "pre",
10955
- handler(id) {
10956
- if (id === VIRTUAL_ENTRYPOINT) {
10938
+ handler(id2) {
10939
+ if (id2 === VIRTUAL_ENTRYPOINT) {
10957
10940
  return "";
10958
10941
  }
10959
10942
  }