@forsakringskassan/vite-lib-config 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vite.config.cjs +380 -539
- package/dist/vite.config.mjs +380 -539
- package/package.json +1 -1
package/dist/vite.config.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
10
|
var __export = (target, all) => {
|
|
@@ -871,10 +871,10 @@ var require_picocolors = __commonJS({
|
|
|
871
871
|
} while (~index);
|
|
872
872
|
return result + string.substring(cursor);
|
|
873
873
|
};
|
|
874
|
-
var createColors = (
|
|
875
|
-
let f =
|
|
874
|
+
var createColors = (enabled2 = isColorSupported) => {
|
|
875
|
+
let f = enabled2 ? formatter : () => String;
|
|
876
876
|
return {
|
|
877
|
-
isColorSupported:
|
|
877
|
+
isColorSupported: enabled2,
|
|
878
878
|
reset: f("\x1B[0m", "\x1B[0m"),
|
|
879
879
|
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
880
880
|
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
@@ -1381,7 +1381,7 @@ var require_parse = __commonJS({
|
|
|
1381
1381
|
"node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
1382
1382
|
"use strict";
|
|
1383
1383
|
var SemVer = require_semver();
|
|
1384
|
-
var
|
|
1384
|
+
var parse2 = (version3, options, throwErrors = false) => {
|
|
1385
1385
|
if (version3 instanceof SemVer) {
|
|
1386
1386
|
return version3;
|
|
1387
1387
|
}
|
|
@@ -1394,7 +1394,7 @@ var require_parse = __commonJS({
|
|
|
1394
1394
|
throw er;
|
|
1395
1395
|
}
|
|
1396
1396
|
};
|
|
1397
|
-
module2.exports =
|
|
1397
|
+
module2.exports = parse2;
|
|
1398
1398
|
}
|
|
1399
1399
|
});
|
|
1400
1400
|
|
|
@@ -1402,9 +1402,9 @@ var require_parse = __commonJS({
|
|
|
1402
1402
|
var require_valid = __commonJS({
|
|
1403
1403
|
"node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
1404
1404
|
"use strict";
|
|
1405
|
-
var
|
|
1405
|
+
var parse2 = require_parse();
|
|
1406
1406
|
var valid = (version3, options) => {
|
|
1407
|
-
const v =
|
|
1407
|
+
const v = parse2(version3, options);
|
|
1408
1408
|
return v ? v.version : null;
|
|
1409
1409
|
};
|
|
1410
1410
|
module2.exports = valid;
|
|
@@ -1415,9 +1415,9 @@ var require_valid = __commonJS({
|
|
|
1415
1415
|
var require_clean = __commonJS({
|
|
1416
1416
|
"node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
1417
1417
|
"use strict";
|
|
1418
|
-
var
|
|
1418
|
+
var parse2 = require_parse();
|
|
1419
1419
|
var clean = (version3, options) => {
|
|
1420
|
-
const s =
|
|
1420
|
+
const s = parse2(version3.trim().replace(/^[=v]+/, ""), options);
|
|
1421
1421
|
return s ? s.version : null;
|
|
1422
1422
|
};
|
|
1423
1423
|
module2.exports = clean;
|
|
@@ -1452,10 +1452,10 @@ var require_inc = __commonJS({
|
|
|
1452
1452
|
var require_diff = __commonJS({
|
|
1453
1453
|
"node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
1454
1454
|
"use strict";
|
|
1455
|
-
var
|
|
1455
|
+
var parse2 = require_parse();
|
|
1456
1456
|
var diff = (version1, version22) => {
|
|
1457
|
-
const v1 =
|
|
1458
|
-
const v2 =
|
|
1457
|
+
const v1 = parse2(version1, null, true);
|
|
1458
|
+
const v2 = parse2(version22, null, true);
|
|
1459
1459
|
const comparison = v1.compare(v2);
|
|
1460
1460
|
if (comparison === 0) {
|
|
1461
1461
|
return null;
|
|
@@ -1526,9 +1526,9 @@ var require_patch = __commonJS({
|
|
|
1526
1526
|
var require_prerelease = __commonJS({
|
|
1527
1527
|
"node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
1528
1528
|
"use strict";
|
|
1529
|
-
var
|
|
1529
|
+
var parse2 = require_parse();
|
|
1530
1530
|
var prerelease = (version3, options) => {
|
|
1531
|
-
const parsed =
|
|
1531
|
+
const parsed = parse2(version3, options);
|
|
1532
1532
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
1533
1533
|
};
|
|
1534
1534
|
module2.exports = prerelease;
|
|
@@ -1714,9 +1714,9 @@ var require_coerce = __commonJS({
|
|
|
1714
1714
|
"node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
1715
1715
|
"use strict";
|
|
1716
1716
|
var SemVer = require_semver();
|
|
1717
|
-
var
|
|
1717
|
+
var parse2 = require_parse();
|
|
1718
1718
|
var { safeRe: re, t } = require_re();
|
|
1719
|
-
var
|
|
1719
|
+
var coerce2 = (version3, options) => {
|
|
1720
1720
|
if (version3 instanceof SemVer) {
|
|
1721
1721
|
return version3;
|
|
1722
1722
|
}
|
|
@@ -1749,9 +1749,9 @@ var require_coerce = __commonJS({
|
|
|
1749
1749
|
const patch = match2[4] || "0";
|
|
1750
1750
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
1751
1751
|
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
1752
|
-
return
|
|
1752
|
+
return parse2(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
1753
1753
|
};
|
|
1754
|
-
module2.exports =
|
|
1754
|
+
module2.exports = coerce2;
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
1757
|
|
|
@@ -2766,7 +2766,7 @@ var require_semver2 = __commonJS({
|
|
|
2766
2766
|
var constants = require_constants();
|
|
2767
2767
|
var SemVer = require_semver();
|
|
2768
2768
|
var identifiers = require_identifiers();
|
|
2769
|
-
var
|
|
2769
|
+
var parse2 = require_parse();
|
|
2770
2770
|
var valid = require_valid();
|
|
2771
2771
|
var clean = require_clean();
|
|
2772
2772
|
var inc = require_inc();
|
|
@@ -2788,7 +2788,7 @@ var require_semver2 = __commonJS({
|
|
|
2788
2788
|
var gte2 = require_gte();
|
|
2789
2789
|
var lte2 = require_lte();
|
|
2790
2790
|
var cmp = require_cmp();
|
|
2791
|
-
var
|
|
2791
|
+
var coerce2 = require_coerce();
|
|
2792
2792
|
var Comparator = require_comparator();
|
|
2793
2793
|
var Range = require_range();
|
|
2794
2794
|
var satisfies = require_satisfies();
|
|
@@ -2804,7 +2804,7 @@ var require_semver2 = __commonJS({
|
|
|
2804
2804
|
var simplifyRange = require_simplify();
|
|
2805
2805
|
var subset = require_subset();
|
|
2806
2806
|
module2.exports = {
|
|
2807
|
-
parse,
|
|
2807
|
+
parse: parse2,
|
|
2808
2808
|
valid,
|
|
2809
2809
|
clean,
|
|
2810
2810
|
inc,
|
|
@@ -2826,7 +2826,7 @@ var require_semver2 = __commonJS({
|
|
|
2826
2826
|
gte: gte2,
|
|
2827
2827
|
lte: lte2,
|
|
2828
2828
|
cmp,
|
|
2829
|
-
coerce,
|
|
2829
|
+
coerce: coerce2,
|
|
2830
2830
|
Comparator,
|
|
2831
2831
|
Range,
|
|
2832
2832
|
satisfies,
|
|
@@ -2906,31 +2906,9 @@ function makeRegexIdFilterToMatchWithQuery(input) {
|
|
|
2906
2906
|
// node_modules/@vitejs/plugin-vue/dist/index.mjs
|
|
2907
2907
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
2908
2908
|
var import_node_crypto = __toESM(require("node:crypto"), 1);
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2911
|
-
var
|
|
2912
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
2913
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
2914
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
2915
|
-
var __commonJS2 = (cb, mod) => function() {
|
|
2916
|
-
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
2917
|
-
};
|
|
2918
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
2919
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
2920
|
-
key = keys[i];
|
|
2921
|
-
if (!__hasOwnProp2.call(to, key) && key !== except) __defProp2(to, key, {
|
|
2922
|
-
get: ((k) => from[k]).bind(null, key),
|
|
2923
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
2924
|
-
});
|
|
2925
|
-
}
|
|
2926
|
-
return to;
|
|
2927
|
-
};
|
|
2928
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
2929
|
-
value: mod,
|
|
2930
|
-
enumerable: true
|
|
2931
|
-
}) : target, mod));
|
|
2932
|
-
var __require = /* @__PURE__ */ (0, import_node_module.createRequire)(__filename);
|
|
2933
|
-
var version = "6.0.2";
|
|
2909
|
+
var import_node_tty = require("node:tty");
|
|
2910
|
+
var import_node_util = require("node:util");
|
|
2911
|
+
var version = "6.0.3";
|
|
2934
2912
|
function resolveCompiler(root) {
|
|
2935
2913
|
const compiler = tryResolveCompiler(root) || tryResolveCompiler();
|
|
2936
2914
|
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.");
|
|
@@ -3086,7 +3064,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
|
|
|
3086
3064
|
const block = descriptor.template;
|
|
3087
3065
|
if (!block) return;
|
|
3088
3066
|
const resolvedScript = getResolvedScript(descriptor, ssr);
|
|
3089
|
-
const hasScoped = descriptor.styles.some((s
|
|
3067
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
3090
3068
|
const { id, cssVars } = descriptor;
|
|
3091
3069
|
let transformAssetUrls = options.template?.transformAssetUrls;
|
|
3092
3070
|
let assetUrlOptions;
|
|
@@ -3205,22 +3183,22 @@ function canInlineMain(descriptor, options) {
|
|
|
3205
3183
|
if (lang === "ts" && options.devServer) return true;
|
|
3206
3184
|
return false;
|
|
3207
3185
|
}
|
|
3208
|
-
var comma
|
|
3209
|
-
var semicolon
|
|
3210
|
-
var chars
|
|
3211
|
-
var intToChar
|
|
3212
|
-
var charToInt
|
|
3213
|
-
for (let i = 0; i < chars
|
|
3214
|
-
const c = chars
|
|
3215
|
-
intToChar
|
|
3216
|
-
charToInt
|
|
3186
|
+
var comma = ",".charCodeAt(0);
|
|
3187
|
+
var semicolon = ";".charCodeAt(0);
|
|
3188
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3189
|
+
var intToChar = new Uint8Array(64);
|
|
3190
|
+
var charToInt = new Uint8Array(128);
|
|
3191
|
+
for (let i = 0; i < chars.length; i++) {
|
|
3192
|
+
const c = chars.charCodeAt(i);
|
|
3193
|
+
intToChar[i] = c;
|
|
3194
|
+
charToInt[c] = i;
|
|
3217
3195
|
}
|
|
3218
3196
|
function decodeInteger(reader, relative) {
|
|
3219
3197
|
let value = 0;
|
|
3220
3198
|
let shift = 0;
|
|
3221
3199
|
let integer = 0;
|
|
3222
3200
|
do {
|
|
3223
|
-
integer = charToInt
|
|
3201
|
+
integer = charToInt[reader.next()];
|
|
3224
3202
|
value |= (integer & 31) << shift;
|
|
3225
3203
|
shift += 5;
|
|
3226
3204
|
} while (integer & 32);
|
|
@@ -3229,11 +3207,48 @@ function decodeInteger(reader, relative) {
|
|
|
3229
3207
|
if (shouldNegate) value = -2147483648 | -value;
|
|
3230
3208
|
return relative + value;
|
|
3231
3209
|
}
|
|
3210
|
+
function encodeInteger(builder, num, relative) {
|
|
3211
|
+
let delta = num - relative;
|
|
3212
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3213
|
+
do {
|
|
3214
|
+
let clamped = delta & 31;
|
|
3215
|
+
delta >>>= 5;
|
|
3216
|
+
if (delta > 0) clamped |= 32;
|
|
3217
|
+
builder.write(intToChar[clamped]);
|
|
3218
|
+
} while (delta > 0);
|
|
3219
|
+
return num;
|
|
3220
|
+
}
|
|
3232
3221
|
function hasMoreVlq(reader, max) {
|
|
3233
3222
|
if (reader.pos >= max) return false;
|
|
3234
|
-
return reader.peek() !== comma
|
|
3223
|
+
return reader.peek() !== comma;
|
|
3235
3224
|
}
|
|
3236
|
-
var bufLength
|
|
3225
|
+
var bufLength = 1024 * 16;
|
|
3226
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
3227
|
+
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
3228
|
+
} } : { decode(buf) {
|
|
3229
|
+
let out = "";
|
|
3230
|
+
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
3231
|
+
return out;
|
|
3232
|
+
} };
|
|
3233
|
+
var StringWriter = class {
|
|
3234
|
+
constructor() {
|
|
3235
|
+
this.pos = 0;
|
|
3236
|
+
this.out = "";
|
|
3237
|
+
this.buffer = new Uint8Array(bufLength);
|
|
3238
|
+
}
|
|
3239
|
+
write(v) {
|
|
3240
|
+
const { buffer } = this;
|
|
3241
|
+
buffer[this.pos++] = v;
|
|
3242
|
+
if (this.pos === bufLength) {
|
|
3243
|
+
this.out += td.decode(buffer);
|
|
3244
|
+
this.pos = 0;
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
flush() {
|
|
3248
|
+
const { buffer, out, pos } = this;
|
|
3249
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
3250
|
+
}
|
|
3251
|
+
};
|
|
3237
3252
|
var StringReader = class {
|
|
3238
3253
|
constructor(buffer) {
|
|
3239
3254
|
this.pos = 0;
|
|
@@ -3306,6 +3321,31 @@ function sort(line) {
|
|
|
3306
3321
|
function sortComparator$1(a, b) {
|
|
3307
3322
|
return a[0] - b[0];
|
|
3308
3323
|
}
|
|
3324
|
+
function encode(decoded) {
|
|
3325
|
+
const writer = new StringWriter();
|
|
3326
|
+
let sourcesIndex = 0;
|
|
3327
|
+
let sourceLine = 0;
|
|
3328
|
+
let sourceColumn = 0;
|
|
3329
|
+
let namesIndex = 0;
|
|
3330
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
3331
|
+
const line = decoded[i];
|
|
3332
|
+
if (i > 0) writer.write(semicolon);
|
|
3333
|
+
if (line.length === 0) continue;
|
|
3334
|
+
let genColumn = 0;
|
|
3335
|
+
for (let j = 0; j < line.length; j++) {
|
|
3336
|
+
const segment = line[j];
|
|
3337
|
+
if (j > 0) writer.write(comma);
|
|
3338
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
3339
|
+
if (segment.length === 1) continue;
|
|
3340
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
3341
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
3342
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
3343
|
+
if (segment.length === 4) continue;
|
|
3344
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
return writer.flush();
|
|
3348
|
+
}
|
|
3309
3349
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
3310
3350
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
3311
3351
|
var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
@@ -3489,18 +3529,18 @@ function memoizedState() {
|
|
|
3489
3529
|
lastIndex: -1
|
|
3490
3530
|
};
|
|
3491
3531
|
}
|
|
3492
|
-
function parse
|
|
3532
|
+
function parse(map) {
|
|
3493
3533
|
return typeof map === "string" ? JSON.parse(map) : map;
|
|
3494
3534
|
}
|
|
3495
3535
|
var TraceMap = class {
|
|
3496
3536
|
constructor(map, mapUrl) {
|
|
3497
3537
|
const isString = typeof map === "string";
|
|
3498
3538
|
if (!isString && map._decodedMemo) return map;
|
|
3499
|
-
const parsed = parse
|
|
3500
|
-
const { version: version$1, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
3539
|
+
const parsed = parse(map);
|
|
3540
|
+
const { version: version$1, file, names: names$1, sourceRoot, sources, sourcesContent } = parsed;
|
|
3501
3541
|
this.version = version$1;
|
|
3502
3542
|
this.file = file;
|
|
3503
|
-
this.names = names || [];
|
|
3543
|
+
this.names = names$1 || [];
|
|
3504
3544
|
this.sourceRoot = sourceRoot;
|
|
3505
3545
|
this.sources = sources;
|
|
3506
3546
|
this.sourcesContent = sourcesContent;
|
|
@@ -3530,7 +3570,7 @@ function decodedMappings(map) {
|
|
|
3530
3570
|
}
|
|
3531
3571
|
function eachMapping(map, cb) {
|
|
3532
3572
|
const decoded = decodedMappings(map);
|
|
3533
|
-
const { names, resolvedSources } = map;
|
|
3573
|
+
const { names: names$1, resolvedSources } = map;
|
|
3534
3574
|
for (let i = 0; i < decoded.length; i++) {
|
|
3535
3575
|
const line = decoded[i];
|
|
3536
3576
|
for (let j = 0; j < line.length; j++) {
|
|
@@ -3546,7 +3586,7 @@ function eachMapping(map, cb) {
|
|
|
3546
3586
|
originalLine = seg[2] + 1;
|
|
3547
3587
|
originalColumn = seg[3];
|
|
3548
3588
|
}
|
|
3549
|
-
if (seg.length === 5) name = names[seg[4]];
|
|
3589
|
+
if (seg.length === 5) name = names$1[seg[4]];
|
|
3550
3590
|
cb({
|
|
3551
3591
|
generatedLine,
|
|
3552
3592
|
generatedColumn,
|
|
@@ -3558,79 +3598,6 @@ function eachMapping(map, cb) {
|
|
|
3558
3598
|
}
|
|
3559
3599
|
}
|
|
3560
3600
|
}
|
|
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
|
-
}
|
|
3634
3601
|
var SetArray = class {
|
|
3635
3602
|
constructor() {
|
|
3636
3603
|
this._indexes = { __proto__: null };
|
|
@@ -3673,12 +3640,12 @@ function addMapping(map, mapping2) {
|
|
|
3673
3640
|
return addMappingInternal(false, map, mapping2);
|
|
3674
3641
|
}
|
|
3675
3642
|
function toDecodedMap(map) {
|
|
3676
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList$1 } = cast2(map);
|
|
3643
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names$1, _ignoreList: ignoreList$1 } = cast2(map);
|
|
3677
3644
|
removeEmptyFinalLines(mappings);
|
|
3678
3645
|
return {
|
|
3679
3646
|
version: 3,
|
|
3680
3647
|
file: map.file || void 0,
|
|
3681
|
-
names: names.array,
|
|
3648
|
+
names: names$1.array,
|
|
3682
3649
|
sourceRoot: map.sourceRoot || void 0,
|
|
3683
3650
|
sources: sources.array,
|
|
3684
3651
|
sourcesContent,
|
|
@@ -3704,7 +3671,7 @@ function fromMap(input) {
|
|
|
3704
3671
|
return gen;
|
|
3705
3672
|
}
|
|
3706
3673
|
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
3707
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map);
|
|
3674
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names$1 } = cast2(map);
|
|
3708
3675
|
const line = getIndex(mappings, genLine);
|
|
3709
3676
|
const index = getColumnIndex(line, genColumn);
|
|
3710
3677
|
if (!source) {
|
|
@@ -3714,7 +3681,7 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
|
|
|
3714
3681
|
assert(sourceLine);
|
|
3715
3682
|
assert(sourceColumn);
|
|
3716
3683
|
const sourcesIndex = put(sources, source);
|
|
3717
|
-
const namesIndex = name ? put(names, name) : NO_NAME;
|
|
3684
|
+
const namesIndex = name ? put(names$1, name) : NO_NAME;
|
|
3718
3685
|
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
|
3719
3686
|
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return;
|
|
3720
3687
|
return insert(line, index, name ? [
|
|
@@ -3770,396 +3737,269 @@ function addMappingInternal(skipable, map, mapping2) {
|
|
|
3770
3737
|
assert(original);
|
|
3771
3738
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
3772
3739
|
}
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
}
|
|
3836
|
-
function fmtShort(ms) {
|
|
3837
|
-
var msAbs = Math.abs(ms);
|
|
3838
|
-
if (msAbs >= d) return Math.round(ms / d) + "d";
|
|
3839
|
-
if (msAbs >= h) return Math.round(ms / h) + "h";
|
|
3840
|
-
if (msAbs >= m) return Math.round(ms / m) + "m";
|
|
3841
|
-
if (msAbs >= s) return Math.round(ms / s) + "s";
|
|
3842
|
-
return ms + "ms";
|
|
3843
|
-
}
|
|
3844
|
-
function fmtLong(ms) {
|
|
3845
|
-
var msAbs = Math.abs(ms);
|
|
3846
|
-
if (msAbs >= d) return plural(ms, msAbs, d, "day");
|
|
3847
|
-
if (msAbs >= h) return plural(ms, msAbs, h, "hour");
|
|
3848
|
-
if (msAbs >= m) return plural(ms, msAbs, m, "minute");
|
|
3849
|
-
if (msAbs >= s) return plural(ms, msAbs, s, "second");
|
|
3850
|
-
return ms + " ms";
|
|
3851
|
-
}
|
|
3852
|
-
function plural(ms, msAbs, n, name) {
|
|
3853
|
-
var isPlural = msAbs >= n * 1.5;
|
|
3854
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
3855
|
-
}
|
|
3856
|
-
}) });
|
|
3857
|
-
var require_common = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports2, module2) => {
|
|
3858
|
-
function setup(env) {
|
|
3859
|
-
createDebug.debug = createDebug;
|
|
3860
|
-
createDebug.default = createDebug;
|
|
3861
|
-
createDebug.coerce = coerce;
|
|
3862
|
-
createDebug.disable = disable;
|
|
3863
|
-
createDebug.enable = enable;
|
|
3864
|
-
createDebug.enabled = enabled;
|
|
3865
|
-
createDebug.humanize = require_ms();
|
|
3866
|
-
createDebug.destroy = destroy;
|
|
3867
|
-
Object.keys(env).forEach((key) => {
|
|
3868
|
-
createDebug[key] = env[key];
|
|
3869
|
-
});
|
|
3870
|
-
createDebug.names = [];
|
|
3871
|
-
createDebug.skips = [];
|
|
3872
|
-
createDebug.formatters = {};
|
|
3873
|
-
function selectColor(namespace) {
|
|
3874
|
-
let hash = 0;
|
|
3875
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
3876
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
3877
|
-
hash |= 0;
|
|
3878
|
-
}
|
|
3879
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
3880
|
-
}
|
|
3881
|
-
createDebug.selectColor = selectColor;
|
|
3882
|
-
function createDebug(namespace) {
|
|
3883
|
-
let prevTime;
|
|
3884
|
-
let enableOverride = null;
|
|
3885
|
-
let namespacesCache;
|
|
3886
|
-
let enabledCache;
|
|
3887
|
-
function debug$1(...args) {
|
|
3888
|
-
if (!debug$1.enabled) return;
|
|
3889
|
-
const self = debug$1;
|
|
3890
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
3891
|
-
self.diff = curr - (prevTime || curr);
|
|
3892
|
-
self.prev = prevTime;
|
|
3893
|
-
self.curr = curr;
|
|
3894
|
-
prevTime = curr;
|
|
3895
|
-
args[0] = createDebug.coerce(args[0]);
|
|
3896
|
-
if (typeof args[0] !== "string") args.unshift("%O");
|
|
3897
|
-
let index = 0;
|
|
3898
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
3899
|
-
if (match2 === "%%") return "%";
|
|
3900
|
-
index++;
|
|
3901
|
-
const formatter = createDebug.formatters[format];
|
|
3902
|
-
if (typeof formatter === "function") {
|
|
3903
|
-
const val = args[index];
|
|
3904
|
-
match2 = formatter.call(self, val);
|
|
3905
|
-
args.splice(index, 1);
|
|
3906
|
-
index--;
|
|
3907
|
-
}
|
|
3908
|
-
return match2;
|
|
3909
|
-
});
|
|
3910
|
-
createDebug.formatArgs.call(self, args);
|
|
3911
|
-
(self.log || createDebug.log).apply(self, args);
|
|
3912
|
-
}
|
|
3913
|
-
debug$1.namespace = namespace;
|
|
3914
|
-
debug$1.useColors = createDebug.useColors();
|
|
3915
|
-
debug$1.color = createDebug.selectColor(namespace);
|
|
3916
|
-
debug$1.extend = extend;
|
|
3917
|
-
debug$1.destroy = createDebug.destroy;
|
|
3918
|
-
Object.defineProperty(debug$1, "enabled", {
|
|
3919
|
-
enumerable: true,
|
|
3920
|
-
configurable: false,
|
|
3921
|
-
get: () => {
|
|
3922
|
-
if (enableOverride !== null) return enableOverride;
|
|
3923
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
3924
|
-
namespacesCache = createDebug.namespaces;
|
|
3925
|
-
enabledCache = createDebug.enabled(namespace);
|
|
3926
|
-
}
|
|
3927
|
-
return enabledCache;
|
|
3928
|
-
},
|
|
3929
|
-
set: (v) => {
|
|
3930
|
-
enableOverride = v;
|
|
3931
|
-
}
|
|
3932
|
-
});
|
|
3933
|
-
if (typeof createDebug.init === "function") createDebug.init(debug$1);
|
|
3934
|
-
return debug$1;
|
|
3935
|
-
}
|
|
3936
|
-
function extend(namespace, delimiter) {
|
|
3937
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
3938
|
-
newDebug.log = this.log;
|
|
3939
|
-
return newDebug;
|
|
3940
|
-
}
|
|
3941
|
-
function enable(namespaces) {
|
|
3942
|
-
createDebug.save(namespaces);
|
|
3943
|
-
createDebug.namespaces = namespaces;
|
|
3944
|
-
createDebug.names = [];
|
|
3945
|
-
createDebug.skips = [];
|
|
3946
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
3947
|
-
for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
|
|
3948
|
-
else createDebug.names.push(ns);
|
|
3949
|
-
}
|
|
3950
|
-
function matchesTemplate(search, template) {
|
|
3951
|
-
let searchIndex = 0;
|
|
3952
|
-
let templateIndex = 0;
|
|
3953
|
-
let starIndex = -1;
|
|
3954
|
-
let matchIndex = 0;
|
|
3955
|
-
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
3956
|
-
starIndex = templateIndex;
|
|
3957
|
-
matchIndex = searchIndex;
|
|
3958
|
-
templateIndex++;
|
|
3959
|
-
} else {
|
|
3960
|
-
searchIndex++;
|
|
3961
|
-
templateIndex++;
|
|
3962
|
-
}
|
|
3963
|
-
else if (starIndex !== -1) {
|
|
3964
|
-
templateIndex = starIndex + 1;
|
|
3965
|
-
matchIndex++;
|
|
3966
|
-
searchIndex = matchIndex;
|
|
3967
|
-
} else return false;
|
|
3968
|
-
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
3969
|
-
return templateIndex === template.length;
|
|
3970
|
-
}
|
|
3971
|
-
function disable() {
|
|
3972
|
-
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
3973
|
-
createDebug.enable("");
|
|
3974
|
-
return namespaces;
|
|
3975
|
-
}
|
|
3976
|
-
function enabled(name) {
|
|
3977
|
-
for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
|
|
3978
|
-
for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
|
|
3979
|
-
return false;
|
|
3980
|
-
}
|
|
3981
|
-
function coerce(val) {
|
|
3982
|
-
if (val instanceof Error) return val.stack || val.message;
|
|
3983
|
-
return val;
|
|
3984
|
-
}
|
|
3985
|
-
function destroy() {
|
|
3986
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
3987
|
-
}
|
|
3988
|
-
createDebug.enable(createDebug.load());
|
|
3989
|
-
return createDebug;
|
|
3990
|
-
}
|
|
3991
|
-
module2.exports = setup;
|
|
3992
|
-
}) });
|
|
3993
|
-
var require_node = /* @__PURE__ */ __commonJS2({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports2, module2) => {
|
|
3994
|
-
const tty = __require("tty");
|
|
3995
|
-
const util = __require("util");
|
|
3996
|
-
exports2.init = init;
|
|
3997
|
-
exports2.log = log;
|
|
3998
|
-
exports2.formatArgs = formatArgs;
|
|
3999
|
-
exports2.save = save;
|
|
4000
|
-
exports2.load = load;
|
|
4001
|
-
exports2.useColors = useColors;
|
|
4002
|
-
exports2.destroy = util.deprecate(() => {
|
|
4003
|
-
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4004
|
-
exports2.colors = [
|
|
4005
|
-
6,
|
|
4006
|
-
2,
|
|
4007
|
-
3,
|
|
4008
|
-
4,
|
|
4009
|
-
5,
|
|
4010
|
-
1
|
|
4011
|
-
];
|
|
4012
|
-
try {
|
|
4013
|
-
const supportsColor = __require("supports-color");
|
|
4014
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports2.colors = [
|
|
4015
|
-
20,
|
|
4016
|
-
21,
|
|
4017
|
-
26,
|
|
4018
|
-
27,
|
|
4019
|
-
32,
|
|
4020
|
-
33,
|
|
4021
|
-
38,
|
|
4022
|
-
39,
|
|
4023
|
-
40,
|
|
4024
|
-
41,
|
|
4025
|
-
42,
|
|
4026
|
-
43,
|
|
4027
|
-
44,
|
|
4028
|
-
45,
|
|
4029
|
-
56,
|
|
4030
|
-
57,
|
|
4031
|
-
62,
|
|
4032
|
-
63,
|
|
4033
|
-
68,
|
|
4034
|
-
69,
|
|
4035
|
-
74,
|
|
4036
|
-
75,
|
|
4037
|
-
76,
|
|
4038
|
-
77,
|
|
4039
|
-
78,
|
|
4040
|
-
79,
|
|
4041
|
-
80,
|
|
4042
|
-
81,
|
|
4043
|
-
92,
|
|
4044
|
-
93,
|
|
4045
|
-
98,
|
|
4046
|
-
99,
|
|
4047
|
-
112,
|
|
4048
|
-
113,
|
|
4049
|
-
128,
|
|
4050
|
-
129,
|
|
4051
|
-
134,
|
|
4052
|
-
135,
|
|
4053
|
-
148,
|
|
4054
|
-
149,
|
|
4055
|
-
160,
|
|
4056
|
-
161,
|
|
4057
|
-
162,
|
|
4058
|
-
163,
|
|
4059
|
-
164,
|
|
4060
|
-
165,
|
|
4061
|
-
166,
|
|
4062
|
-
167,
|
|
4063
|
-
168,
|
|
4064
|
-
169,
|
|
4065
|
-
170,
|
|
4066
|
-
171,
|
|
4067
|
-
172,
|
|
4068
|
-
173,
|
|
4069
|
-
178,
|
|
4070
|
-
179,
|
|
4071
|
-
184,
|
|
4072
|
-
185,
|
|
4073
|
-
196,
|
|
4074
|
-
197,
|
|
4075
|
-
198,
|
|
4076
|
-
199,
|
|
4077
|
-
200,
|
|
4078
|
-
201,
|
|
4079
|
-
202,
|
|
4080
|
-
203,
|
|
4081
|
-
204,
|
|
4082
|
-
205,
|
|
4083
|
-
206,
|
|
4084
|
-
207,
|
|
4085
|
-
208,
|
|
4086
|
-
209,
|
|
4087
|
-
214,
|
|
4088
|
-
215,
|
|
4089
|
-
220,
|
|
4090
|
-
221
|
|
4091
|
-
];
|
|
4092
|
-
} catch (error) {
|
|
4093
|
-
}
|
|
4094
|
-
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
4095
|
-
return /^debug_/i.test(key);
|
|
4096
|
-
}).reduce((obj, key) => {
|
|
4097
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
4098
|
-
return k.toUpperCase();
|
|
3740
|
+
function coerce(value) {
|
|
3741
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
3742
|
+
return value;
|
|
3743
|
+
}
|
|
3744
|
+
function selectColor(colors$1, namespace) {
|
|
3745
|
+
let hash = 0;
|
|
3746
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
3747
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
3748
|
+
hash |= 0;
|
|
3749
|
+
}
|
|
3750
|
+
return colors$1[Math.abs(hash) % colors$1.length];
|
|
3751
|
+
}
|
|
3752
|
+
function matchesTemplate(search, template) {
|
|
3753
|
+
let searchIndex = 0;
|
|
3754
|
+
let templateIndex = 0;
|
|
3755
|
+
let starIndex = -1;
|
|
3756
|
+
let matchIndex = 0;
|
|
3757
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
3758
|
+
starIndex = templateIndex;
|
|
3759
|
+
matchIndex = searchIndex;
|
|
3760
|
+
templateIndex++;
|
|
3761
|
+
} else {
|
|
3762
|
+
searchIndex++;
|
|
3763
|
+
templateIndex++;
|
|
3764
|
+
}
|
|
3765
|
+
else if (starIndex !== -1) {
|
|
3766
|
+
templateIndex = starIndex + 1;
|
|
3767
|
+
matchIndex++;
|
|
3768
|
+
searchIndex = matchIndex;
|
|
3769
|
+
} else return false;
|
|
3770
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
3771
|
+
return templateIndex === template.length;
|
|
3772
|
+
}
|
|
3773
|
+
function humanize(value) {
|
|
3774
|
+
if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
|
|
3775
|
+
return `${value}ms`;
|
|
3776
|
+
}
|
|
3777
|
+
var globalNamespaces = "";
|
|
3778
|
+
function createDebug$1(namespace, options) {
|
|
3779
|
+
let prevTime;
|
|
3780
|
+
let enableOverride;
|
|
3781
|
+
let namespacesCache;
|
|
3782
|
+
let enabledCache;
|
|
3783
|
+
const debug$1 = (...args) => {
|
|
3784
|
+
if (!debug$1.enabled) return;
|
|
3785
|
+
const curr = Date.now();
|
|
3786
|
+
const diff = curr - (prevTime || curr);
|
|
3787
|
+
prevTime = curr;
|
|
3788
|
+
args[0] = coerce(args[0]);
|
|
3789
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
3790
|
+
let index = 0;
|
|
3791
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match2, format) => {
|
|
3792
|
+
if (match2 === "%%") return "%";
|
|
3793
|
+
index++;
|
|
3794
|
+
const formatter = options.formatters[format];
|
|
3795
|
+
if (typeof formatter === "function") {
|
|
3796
|
+
const value = args[index];
|
|
3797
|
+
match2 = formatter.call(debug$1, value);
|
|
3798
|
+
args.splice(index, 1);
|
|
3799
|
+
index--;
|
|
3800
|
+
}
|
|
3801
|
+
return match2;
|
|
4099
3802
|
});
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
4103
|
-
else if (val === "null") val = null;
|
|
4104
|
-
else val = Number(val);
|
|
4105
|
-
obj[prop] = val;
|
|
4106
|
-
return obj;
|
|
4107
|
-
}, {});
|
|
4108
|
-
function useColors() {
|
|
4109
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
4110
|
-
}
|
|
4111
|
-
function formatArgs(args) {
|
|
4112
|
-
const { namespace: name, useColors: useColors$1 } = this;
|
|
4113
|
-
if (useColors$1) {
|
|
4114
|
-
const c = this.color;
|
|
4115
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
4116
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
4117
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
4118
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
4119
|
-
} else args[0] = getDate() + name + " " + args[0];
|
|
4120
|
-
}
|
|
4121
|
-
function getDate() {
|
|
4122
|
-
if (exports2.inspectOpts.hideDate) return "";
|
|
4123
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
4124
|
-
}
|
|
4125
|
-
function log(...args) {
|
|
4126
|
-
return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
4127
|
-
}
|
|
4128
|
-
function save(namespaces) {
|
|
4129
|
-
if (namespaces) process.env.DEBUG = namespaces;
|
|
4130
|
-
else delete process.env.DEBUG;
|
|
4131
|
-
}
|
|
4132
|
-
function load() {
|
|
4133
|
-
return process.env.DEBUG;
|
|
4134
|
-
}
|
|
4135
|
-
function init(debug$1) {
|
|
4136
|
-
debug$1.inspectOpts = {};
|
|
4137
|
-
const keys = Object.keys(exports2.inspectOpts);
|
|
4138
|
-
for (let i = 0; i < keys.length; i++) debug$1.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
4139
|
-
}
|
|
4140
|
-
module2.exports = require_common()(exports2);
|
|
4141
|
-
const { formatters } = module2.exports;
|
|
4142
|
-
formatters.o = function(v) {
|
|
4143
|
-
this.inspectOpts.colors = this.useColors;
|
|
4144
|
-
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3803
|
+
options.formatArgs.call(debug$1, diff, args);
|
|
3804
|
+
debug$1.log(...args);
|
|
4145
3805
|
};
|
|
4146
|
-
|
|
4147
|
-
this.
|
|
4148
|
-
|
|
3806
|
+
debug$1.extend = function(namespace$1, delimiter = ":") {
|
|
3807
|
+
return createDebug$1(this.namespace + delimiter + namespace$1, {
|
|
3808
|
+
useColors: this.useColors,
|
|
3809
|
+
color: this.color,
|
|
3810
|
+
formatArgs: this.formatArgs,
|
|
3811
|
+
formatters: this.formatters,
|
|
3812
|
+
inspectOpts: this.inspectOpts,
|
|
3813
|
+
log: this.log,
|
|
3814
|
+
humanize: this.humanize
|
|
3815
|
+
});
|
|
4149
3816
|
};
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
3817
|
+
Object.assign(debug$1, options);
|
|
3818
|
+
debug$1.namespace = namespace;
|
|
3819
|
+
Object.defineProperty(debug$1, "enabled", {
|
|
3820
|
+
enumerable: true,
|
|
3821
|
+
configurable: false,
|
|
3822
|
+
get: () => {
|
|
3823
|
+
if (enableOverride != null) return enableOverride;
|
|
3824
|
+
if (namespacesCache !== globalNamespaces) {
|
|
3825
|
+
namespacesCache = globalNamespaces;
|
|
3826
|
+
enabledCache = enabled(namespace);
|
|
3827
|
+
}
|
|
3828
|
+
return enabledCache;
|
|
3829
|
+
},
|
|
3830
|
+
set: (v) => {
|
|
3831
|
+
enableOverride = v;
|
|
3832
|
+
}
|
|
3833
|
+
});
|
|
3834
|
+
return debug$1;
|
|
3835
|
+
}
|
|
3836
|
+
var names = [];
|
|
3837
|
+
var skips = [];
|
|
3838
|
+
function enable(namespaces$1) {
|
|
3839
|
+
globalNamespaces = namespaces$1;
|
|
3840
|
+
names = [];
|
|
3841
|
+
skips = [];
|
|
3842
|
+
const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
3843
|
+
for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
|
|
3844
|
+
else names.push(ns);
|
|
3845
|
+
}
|
|
3846
|
+
function enabled(name) {
|
|
3847
|
+
for (const skip of skips) if (matchesTemplate(name, skip)) return false;
|
|
3848
|
+
for (const ns of names) if (matchesTemplate(name, ns)) return true;
|
|
3849
|
+
return false;
|
|
3850
|
+
}
|
|
3851
|
+
var colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
3852
|
+
20,
|
|
3853
|
+
21,
|
|
3854
|
+
26,
|
|
3855
|
+
27,
|
|
3856
|
+
32,
|
|
3857
|
+
33,
|
|
3858
|
+
38,
|
|
3859
|
+
39,
|
|
3860
|
+
40,
|
|
3861
|
+
41,
|
|
3862
|
+
42,
|
|
3863
|
+
43,
|
|
3864
|
+
44,
|
|
3865
|
+
45,
|
|
3866
|
+
56,
|
|
3867
|
+
57,
|
|
3868
|
+
62,
|
|
3869
|
+
63,
|
|
3870
|
+
68,
|
|
3871
|
+
69,
|
|
3872
|
+
74,
|
|
3873
|
+
75,
|
|
3874
|
+
76,
|
|
3875
|
+
77,
|
|
3876
|
+
78,
|
|
3877
|
+
79,
|
|
3878
|
+
80,
|
|
3879
|
+
81,
|
|
3880
|
+
92,
|
|
3881
|
+
93,
|
|
3882
|
+
98,
|
|
3883
|
+
99,
|
|
3884
|
+
112,
|
|
3885
|
+
113,
|
|
3886
|
+
128,
|
|
3887
|
+
129,
|
|
3888
|
+
134,
|
|
3889
|
+
135,
|
|
3890
|
+
148,
|
|
3891
|
+
149,
|
|
3892
|
+
160,
|
|
3893
|
+
161,
|
|
3894
|
+
162,
|
|
3895
|
+
163,
|
|
3896
|
+
164,
|
|
3897
|
+
165,
|
|
3898
|
+
166,
|
|
3899
|
+
167,
|
|
3900
|
+
168,
|
|
3901
|
+
169,
|
|
3902
|
+
170,
|
|
3903
|
+
171,
|
|
3904
|
+
172,
|
|
3905
|
+
173,
|
|
3906
|
+
178,
|
|
3907
|
+
179,
|
|
3908
|
+
184,
|
|
3909
|
+
185,
|
|
3910
|
+
196,
|
|
3911
|
+
197,
|
|
3912
|
+
198,
|
|
3913
|
+
199,
|
|
3914
|
+
200,
|
|
3915
|
+
201,
|
|
3916
|
+
202,
|
|
3917
|
+
203,
|
|
3918
|
+
204,
|
|
3919
|
+
205,
|
|
3920
|
+
206,
|
|
3921
|
+
207,
|
|
3922
|
+
208,
|
|
3923
|
+
209,
|
|
3924
|
+
214,
|
|
3925
|
+
215,
|
|
3926
|
+
220,
|
|
3927
|
+
221
|
|
3928
|
+
] : [
|
|
3929
|
+
6,
|
|
3930
|
+
2,
|
|
3931
|
+
3,
|
|
3932
|
+
4,
|
|
3933
|
+
5,
|
|
3934
|
+
1
|
|
3935
|
+
];
|
|
3936
|
+
var inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
|
|
3937
|
+
const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
3938
|
+
let value = process.env[key];
|
|
3939
|
+
const lowerCase = typeof value === "string" && value.toLowerCase();
|
|
3940
|
+
if (value === "null") value = null;
|
|
3941
|
+
else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
|
|
3942
|
+
else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
|
|
3943
|
+
else value = Number(value);
|
|
3944
|
+
obj[prop] = value;
|
|
3945
|
+
return obj;
|
|
3946
|
+
}, {});
|
|
3947
|
+
function useColors() {
|
|
3948
|
+
return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : (0, import_node_tty.isatty)(process.stderr.fd);
|
|
3949
|
+
}
|
|
3950
|
+
function getDate() {
|
|
3951
|
+
if (inspectOpts.hideDate) return "";
|
|
3952
|
+
return `${(/* @__PURE__ */ new Date()).toISOString()} `;
|
|
3953
|
+
}
|
|
3954
|
+
function formatArgs(diff, args) {
|
|
3955
|
+
const { namespace: name, useColors: useColors$1 } = this;
|
|
3956
|
+
if (useColors$1) {
|
|
3957
|
+
const c = this.color;
|
|
3958
|
+
const colorCode = `\x1B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
3959
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
3960
|
+
args[0] = prefix + args[0].split("\n").join(`
|
|
3961
|
+
${prefix}`);
|
|
3962
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\x1B[0m`);
|
|
3963
|
+
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
3964
|
+
}
|
|
3965
|
+
function log(...args) {
|
|
3966
|
+
process.stderr.write(`${(0, import_node_util.formatWithOptions)(this.inspectOpts, ...args)}
|
|
3967
|
+
`);
|
|
3968
|
+
}
|
|
3969
|
+
var defaultOptions = {
|
|
3970
|
+
useColors: useColors(),
|
|
3971
|
+
formatArgs,
|
|
3972
|
+
formatters: {
|
|
3973
|
+
o(v) {
|
|
3974
|
+
this.inspectOpts.colors = this.useColors;
|
|
3975
|
+
return (0, import_node_util.inspect)(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3976
|
+
},
|
|
3977
|
+
O(v) {
|
|
3978
|
+
this.inspectOpts.colors = this.useColors;
|
|
3979
|
+
return (0, import_node_util.inspect)(v, this.inspectOpts);
|
|
3980
|
+
}
|
|
3981
|
+
},
|
|
3982
|
+
inspectOpts,
|
|
3983
|
+
log,
|
|
3984
|
+
humanize
|
|
3985
|
+
};
|
|
3986
|
+
function createDebug(namespace, options) {
|
|
3987
|
+
var _ref;
|
|
3988
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
3989
|
+
return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
|
|
3990
|
+
}
|
|
3991
|
+
enable(process.env.DEBUG || "");
|
|
3992
|
+
var debug = createDebug("vite:hmr");
|
|
4153
3993
|
async function handleHotUpdate({ file, modules, read }, options, customElement, typeDepModules) {
|
|
4154
3994
|
const prevDescriptor = getDescriptor(file, options, false, true);
|
|
4155
3995
|
if (!prevDescriptor) return;
|
|
4156
3996
|
const { descriptor } = createDescriptor(file, await read(), options, true);
|
|
4157
3997
|
let needRerender = false;
|
|
4158
|
-
const nonJsModules = modules.filter((m
|
|
4159
|
-
const jsModules = modules.filter((m
|
|
3998
|
+
const nonJsModules = modules.filter((m) => m.type !== "js");
|
|
3999
|
+
const jsModules = modules.filter((m) => m.type === "js");
|
|
4160
4000
|
const affectedModules = new Set(nonJsModules);
|
|
4161
4001
|
const mainModule = getMainModule(jsModules);
|
|
4162
|
-
const templateModule = jsModules.find((m
|
|
4002
|
+
const templateModule = jsModules.find((m) => /type=template/.test(m.url));
|
|
4163
4003
|
resolveScript(descriptor, options, false, customElement);
|
|
4164
4004
|
const scriptChanged = hasScriptChanged(prevDescriptor, descriptor);
|
|
4165
4005
|
if (scriptChanged) affectedModules.add(getScriptModule(jsModules) || mainModule);
|
|
@@ -4172,7 +4012,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4172
4012
|
const prevStyles = prevDescriptor.styles || [];
|
|
4173
4013
|
const nextStyles = descriptor.styles || [];
|
|
4174
4014
|
if (prevDescriptor.cssVars.join("") !== descriptor.cssVars.join("")) affectedModules.add(mainModule);
|
|
4175
|
-
if (prevStyles.some((s
|
|
4015
|
+
if (prevStyles.some((s) => s.scoped) !== nextStyles.some((s) => s.scoped)) {
|
|
4176
4016
|
affectedModules.add(templateModule);
|
|
4177
4017
|
affectedModules.add(mainModule);
|
|
4178
4018
|
}
|
|
@@ -4181,7 +4021,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4181
4021
|
const next = nextStyles[i];
|
|
4182
4022
|
if (!prev || !isEqualBlock(prev, next)) {
|
|
4183
4023
|
didUpdateStyle = true;
|
|
4184
|
-
const mod = jsModules.find((m
|
|
4024
|
+
const mod = jsModules.find((m) => m.url.includes(`type=style&index=${i}`) && m.url.endsWith(`.${next.lang || "css"}`));
|
|
4185
4025
|
if (mod) {
|
|
4186
4026
|
affectedModules.add(mod);
|
|
4187
4027
|
if (mod.url.includes("&inline")) affectedModules.add(mainModule);
|
|
@@ -4196,7 +4036,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4196
4036
|
const prev = prevCustoms[i];
|
|
4197
4037
|
const next = nextCustoms[i];
|
|
4198
4038
|
if (!prev || !isEqualBlock(prev, next)) {
|
|
4199
|
-
const mod = jsModules.find((m
|
|
4039
|
+
const mod = jsModules.find((m) => m.url.includes(`type=${prev.type}&index=${i}`));
|
|
4200
4040
|
if (mod) affectedModules.add(mod);
|
|
4201
4041
|
else affectedModules.add(mainModule);
|
|
4202
4042
|
}
|
|
@@ -4205,7 +4045,7 @@ async function handleHotUpdate({ file, modules, read }, options, customElement,
|
|
|
4205
4045
|
if (needRerender) {
|
|
4206
4046
|
updateType.push(`template`);
|
|
4207
4047
|
if (!templateModule) affectedModules.add(mainModule);
|
|
4208
|
-
else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m
|
|
4048
|
+
else if (mainModule && !affectedModules.has(mainModule)) [...mainModule.importers].filter((m) => (0, import_vite.isCSSRequest)(m.url)).forEach((m) => affectedModules.add(m));
|
|
4209
4049
|
}
|
|
4210
4050
|
if (didUpdateStyle) updateType.push(`style`);
|
|
4211
4051
|
if (updateType.length) {
|
|
@@ -4226,7 +4066,7 @@ function isEqualBlock(a, b) {
|
|
|
4226
4066
|
return keysA.every((key) => a.attrs[key] === b.attrs[key]);
|
|
4227
4067
|
}
|
|
4228
4068
|
function isOnlyTemplateChanged(prev, next) {
|
|
4229
|
-
return !hasScriptChanged(prev, next) && prev.styles.length === next.styles.length && prev.styles.every((s
|
|
4069
|
+
return !hasScriptChanged(prev, next) && prev.styles.length === next.styles.length && prev.styles.every((s, i) => isEqualBlock(s, next.styles[i])) && prev.customBlocks.length === next.customBlocks.length && prev.customBlocks.every((s, i) => isEqualBlock(s, next.customBlocks[i]));
|
|
4230
4070
|
}
|
|
4231
4071
|
function deepEqual(obj1, obj2, excludeProps = [], deepParentsOfObj1 = []) {
|
|
4232
4072
|
if (typeof obj1 !== typeof obj2) return false;
|
|
@@ -4262,6 +4102,7 @@ function isEqualAst(prev, next) {
|
|
|
4262
4102
|
return true;
|
|
4263
4103
|
}
|
|
4264
4104
|
function hasScriptChanged(prev, next) {
|
|
4105
|
+
if (prev.vapor !== next.vapor) return true;
|
|
4265
4106
|
const prevScript = getResolvedScript(prev, false);
|
|
4266
4107
|
const nextScript = getResolvedScript(next, false);
|
|
4267
4108
|
if (!isEqualBlock(prev.script, next.script) && !isEqualAst(prevScript?.scriptAst, nextScript?.scriptAst)) return true;
|
|
@@ -4271,12 +4112,12 @@ function hasScriptChanged(prev, next) {
|
|
|
4271
4112
|
return false;
|
|
4272
4113
|
}
|
|
4273
4114
|
function getMainModule(jsModules) {
|
|
4274
|
-
return jsModules.filter((m
|
|
4115
|
+
return jsModules.filter((m) => !/type=/.test(m.url) || /type=script/.test(m.url)).sort((m1, m2) => {
|
|
4275
4116
|
return m1.url.length - m2.url.length;
|
|
4276
4117
|
})[0];
|
|
4277
4118
|
}
|
|
4278
4119
|
function getScriptModule(jsModules) {
|
|
4279
|
-
return jsModules.find((m
|
|
4120
|
+
return jsModules.find((m) => /type=script.*&lang\.\w+$/.test(m.url));
|
|
4280
4121
|
}
|
|
4281
4122
|
function handleTypeDepChange(affectedComponents, { modules, server: { moduleGraph } }) {
|
|
4282
4123
|
const affected = /* @__PURE__ */ new Set();
|
|
@@ -4310,7 +4151,7 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
|
|
|
4310
4151
|
return null;
|
|
4311
4152
|
}
|
|
4312
4153
|
const attachedProps = [];
|
|
4313
|
-
const hasScoped = descriptor.styles.some((s
|
|
4154
|
+
const hasScoped = descriptor.styles.some((s) => s.scoped);
|
|
4314
4155
|
const { code: scriptCode, map: scriptMap } = await genScriptCode(descriptor, options, pluginContext, ssr, customElement);
|
|
4315
4156
|
const hasTemplateImport = descriptor.template && !isUseInlineTemplate(descriptor, options);
|
|
4316
4157
|
let templateCode = "";
|
|
@@ -4352,17 +4193,17 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
|
|
|
4352
4193
|
});
|
|
4353
4194
|
const tracer = new TraceMap(templateMap);
|
|
4354
4195
|
const offset = (scriptCode.match(/\r?\n/g)?.length ?? 0) + 1;
|
|
4355
|
-
eachMapping(tracer, (m
|
|
4356
|
-
if (m
|
|
4196
|
+
eachMapping(tracer, (m) => {
|
|
4197
|
+
if (m.source == null) return;
|
|
4357
4198
|
addMapping(gen, {
|
|
4358
|
-
source: m
|
|
4199
|
+
source: m.source,
|
|
4359
4200
|
original: {
|
|
4360
|
-
line: m
|
|
4361
|
-
column: m
|
|
4201
|
+
line: m.originalLine,
|
|
4202
|
+
column: m.originalColumn
|
|
4362
4203
|
},
|
|
4363
4204
|
generated: {
|
|
4364
|
-
line: m
|
|
4365
|
-
column: m
|
|
4205
|
+
line: m.generatedLine + offset,
|
|
4206
|
+
column: m.generatedColumn
|
|
4366
4207
|
}
|
|
4367
4208
|
});
|
|
4368
4209
|
});
|