@voidzero-dev/vite-plus-core 0.1.2 → 0.1.4
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/rolldown/cli.mjs +619 -197
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-BSVL02lq.mjs} +7 -16
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DkwIzK4F.mjs} +36 -56
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-Bnr_ApVf.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-D91FHkmz.mjs} +2 -4
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-B1jccsL9.d.mts} +84 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-tpgdcGrK.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-Dapgaecf.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-BCllTl21.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-DFYpKkKl.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-DK6iIJl8.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-rw0HCMhn.mjs} +427 -473
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-BSCulZAO.mjs} +3 -6
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-D8uEZyLj.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-BG-XbM6V-hoyhQqI3.js} +87 -292
- package/dist/tsdown/build-DHPfiKA--CvTonTfC.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-C4FmgzkJ-B6m_gRpz.js} +4 -6
- package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-J1_Vd1yf-BWDiPZkP.js} +2 -4
- package/dist/tsdown/{dist-uzMTIu3J.js → dist-C9Oecl0H.js} +24 -56
- package/dist/tsdown/{dist-DVPyDO-_.js → dist-Dx-jtFHM.js} +5 -10
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-C2azOotK.js → filename-tIvGuRvQ.js} +1 -3
- package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Bpsmc0eX-jMz9gD3P.js} +2 -4
- package/dist/tsdown/index-types.d.ts +8561 -180
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-BWoReXjl.js → main-DN-_H9u2.js} +8 -23
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
- package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
- package/dist/tsdown/run.js +6 -12
- package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-OwK9UHsV.js} +4 -6
- package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
- package/dist/vite/client/client.mjs +116 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +4 -9
- package/dist/vite/node/chunks/node.js +956 -918
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +202 -67
- package/dist/vite/node/index.d.ts +17 -14
- package/dist/vite/node/index.js +2 -3
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.d.ts +5 -1
- package/dist/vite/node/module-runner.js +44 -3
- package/dist/vite/types/customEvent.d.ts +27 -0
- package/package.json +10 -10
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
|
@@ -21,7 +21,6 @@ import { isatty } from "node:tty";
|
|
|
21
21
|
import path$1, { basename as basename$1, dirname as dirname$1, isAbsolute as isAbsolute$1, join as join$1, normalize as normalize$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 } from "path";
|
|
22
22
|
import { exactRegex, makeIdFiltersToMatchWithQuery, prefixRegex, withFilter } from "@voidzero-dev/vite-plus-core/rolldown/filter";
|
|
23
23
|
import { dev, resolveTsconfig, scan, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteDynamicImportVarsPlugin, viteImportGlobPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
24
|
-
import { gzip } from "node:zlib";
|
|
25
24
|
import readline from "node:readline";
|
|
26
25
|
import { MessageChannel, Worker } from "node:worker_threads";
|
|
27
26
|
import isModuleSyncConditionEnabled from "#module-sync-enabled";
|
|
@@ -40,7 +39,6 @@ import { Buffer as Buffer$1 } from "node:buffer";
|
|
|
40
39
|
import zlib from "zlib";
|
|
41
40
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
42
41
|
import * as qs from "node:querystring";
|
|
43
|
-
|
|
44
42
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
|
|
45
43
|
var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46
44
|
const WIN_SLASH = "\\\\/";
|
|
@@ -93,28 +91,24 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
93
91
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
|
|
94
92
|
SEP: "\\"
|
|
95
93
|
};
|
|
96
|
-
/**
|
|
97
|
-
* POSIX Bracket Regex
|
|
98
|
-
*/
|
|
99
|
-
const POSIX_REGEX_SOURCE = {
|
|
100
|
-
alnum: "a-zA-Z0-9",
|
|
101
|
-
alpha: "a-zA-Z",
|
|
102
|
-
ascii: "\\x00-\\x7F",
|
|
103
|
-
blank: " \\t",
|
|
104
|
-
cntrl: "\\x00-\\x1F\\x7F",
|
|
105
|
-
digit: "0-9",
|
|
106
|
-
graph: "\\x21-\\x7E",
|
|
107
|
-
lower: "a-z",
|
|
108
|
-
print: "\\x20-\\x7E ",
|
|
109
|
-
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
110
|
-
space: " \\t\\r\\n\\v\\f",
|
|
111
|
-
upper: "A-Z",
|
|
112
|
-
word: "A-Za-z0-9_",
|
|
113
|
-
xdigit: "A-Fa-f0-9"
|
|
114
|
-
};
|
|
115
94
|
module.exports = {
|
|
116
95
|
MAX_LENGTH: 1024 * 64,
|
|
117
|
-
POSIX_REGEX_SOURCE
|
|
96
|
+
POSIX_REGEX_SOURCE: {
|
|
97
|
+
alnum: "a-zA-Z0-9",
|
|
98
|
+
alpha: "a-zA-Z",
|
|
99
|
+
ascii: "\\x00-\\x7F",
|
|
100
|
+
blank: " \\t",
|
|
101
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
102
|
+
digit: "0-9",
|
|
103
|
+
graph: "\\x21-\\x7E",
|
|
104
|
+
lower: "a-z",
|
|
105
|
+
print: "\\x20-\\x7E ",
|
|
106
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
107
|
+
space: " \\t\\r\\n\\v\\f",
|
|
108
|
+
upper: "A-Z",
|
|
109
|
+
word: "A-Za-z0-9_",
|
|
110
|
+
xdigit: "A-Fa-f0-9"
|
|
111
|
+
},
|
|
118
112
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
119
113
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
120
114
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -204,7 +198,6 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
204
198
|
}
|
|
205
199
|
};
|
|
206
200
|
}));
|
|
207
|
-
|
|
208
201
|
//#endregion
|
|
209
202
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
|
|
210
203
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -253,7 +246,6 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
253
246
|
return last;
|
|
254
247
|
};
|
|
255
248
|
}));
|
|
256
|
-
|
|
257
249
|
//#endregion
|
|
258
250
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
|
|
259
251
|
var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -541,7 +533,6 @@ var require_scan$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
541
533
|
};
|
|
542
534
|
module.exports = scan;
|
|
543
535
|
}));
|
|
544
|
-
|
|
545
536
|
//#endregion
|
|
546
537
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
|
|
547
538
|
var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1396,7 +1387,6 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1396
1387
|
};
|
|
1397
1388
|
module.exports = parse;
|
|
1398
1389
|
}));
|
|
1399
|
-
|
|
1400
1390
|
//#endregion
|
|
1401
1391
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
|
|
1402
1392
|
var require_picomatch$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1687,7 +1677,6 @@ var require_picomatch$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1687
1677
|
*/
|
|
1688
1678
|
module.exports = picomatch;
|
|
1689
1679
|
}));
|
|
1690
|
-
|
|
1691
1680
|
//#endregion
|
|
1692
1681
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
|
|
1693
1682
|
var require_picomatch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -1703,7 +1692,6 @@ var require_picomatch$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1703
1692
|
Object.assign(picomatch, pico);
|
|
1704
1693
|
module.exports = picomatch;
|
|
1705
1694
|
}));
|
|
1706
|
-
|
|
1707
1695
|
//#endregion
|
|
1708
1696
|
//#region ../../rolldown-vite/packages/vite/src/shared/constants.ts
|
|
1709
1697
|
/**
|
|
@@ -1726,7 +1714,6 @@ let SOURCEMAPPING_URL = "sourceMa";
|
|
|
1726
1714
|
SOURCEMAPPING_URL += "ppingURL";
|
|
1727
1715
|
const MODULE_RUNNER_SOURCEMAPPING_SOURCE = "//# sourceMappingSource=vite-generated";
|
|
1728
1716
|
const ERR_OUTDATED_OPTIMIZED_DEP = "ERR_OUTDATED_OPTIMIZED_DEP";
|
|
1729
|
-
|
|
1730
1717
|
//#endregion
|
|
1731
1718
|
//#region ../../rolldown-vite/packages/vite/src/shared/utils.ts
|
|
1732
1719
|
const isWindows = typeof process !== "undefined" && process.platform === "win32";
|
|
@@ -1775,7 +1762,6 @@ function promiseWithResolvers() {
|
|
|
1775
1762
|
reject
|
|
1776
1763
|
};
|
|
1777
1764
|
}
|
|
1778
|
-
|
|
1779
1765
|
//#endregion
|
|
1780
1766
|
//#region ../../rolldown-vite/packages/vite/src/module-runner/importMetaResolver.ts
|
|
1781
1767
|
const customizationHookNamespace = "vite-module-runner:import-meta-resolve/v1/";
|
|
@@ -1841,25 +1827,24 @@ const importMetaResolveWithCustomHookString = `
|
|
|
1841
1827
|
})()
|
|
1842
1828
|
|
|
1843
1829
|
`;
|
|
1844
|
-
|
|
1845
1830
|
//#endregion
|
|
1846
1831
|
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
1847
|
-
var comma = ",".charCodeAt(0);
|
|
1832
|
+
var comma$1 = ",".charCodeAt(0);
|
|
1848
1833
|
var semicolon = ";".charCodeAt(0);
|
|
1849
|
-
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1850
|
-
var intToChar = new Uint8Array(64);
|
|
1851
|
-
var charToInt = new Uint8Array(128);
|
|
1852
|
-
for (let i = 0; i < chars.length; i++) {
|
|
1853
|
-
const c = chars.charCodeAt(i);
|
|
1854
|
-
intToChar[i] = c;
|
|
1855
|
-
charToInt[c] = i;
|
|
1856
|
-
}
|
|
1857
|
-
function decodeInteger(reader, relative) {
|
|
1834
|
+
var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1835
|
+
var intToChar$1 = new Uint8Array(64);
|
|
1836
|
+
var charToInt$1 = new Uint8Array(128);
|
|
1837
|
+
for (let i = 0; i < chars$1.length; i++) {
|
|
1838
|
+
const c = chars$1.charCodeAt(i);
|
|
1839
|
+
intToChar$1[i] = c;
|
|
1840
|
+
charToInt$1[c] = i;
|
|
1841
|
+
}
|
|
1842
|
+
function decodeInteger$1(reader, relative) {
|
|
1858
1843
|
let value = 0;
|
|
1859
1844
|
let shift = 0;
|
|
1860
1845
|
let integer = 0;
|
|
1861
1846
|
do {
|
|
1862
|
-
integer = charToInt[reader.next()];
|
|
1847
|
+
integer = charToInt$1[reader.next()];
|
|
1863
1848
|
value |= (integer & 31) << shift;
|
|
1864
1849
|
shift += 5;
|
|
1865
1850
|
} while (integer & 32);
|
|
@@ -1875,13 +1860,13 @@ function encodeInteger(builder, num, relative) {
|
|
|
1875
1860
|
let clamped = delta & 31;
|
|
1876
1861
|
delta >>>= 5;
|
|
1877
1862
|
if (delta > 0) clamped |= 32;
|
|
1878
|
-
builder.write(intToChar[clamped]);
|
|
1863
|
+
builder.write(intToChar$1[clamped]);
|
|
1879
1864
|
} while (delta > 0);
|
|
1880
1865
|
return num;
|
|
1881
1866
|
}
|
|
1882
|
-
function hasMoreVlq(reader, max) {
|
|
1867
|
+
function hasMoreVlq$1(reader, max) {
|
|
1883
1868
|
if (reader.pos >= max) return false;
|
|
1884
|
-
return reader.peek() !== comma;
|
|
1869
|
+
return reader.peek() !== comma$1;
|
|
1885
1870
|
}
|
|
1886
1871
|
var bufLength = 1024 * 16;
|
|
1887
1872
|
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
@@ -1910,7 +1895,7 @@ var StringWriter = class {
|
|
|
1910
1895
|
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
1911
1896
|
}
|
|
1912
1897
|
};
|
|
1913
|
-
var StringReader = class {
|
|
1898
|
+
var StringReader$1 = class {
|
|
1914
1899
|
constructor(buffer) {
|
|
1915
1900
|
this.pos = 0;
|
|
1916
1901
|
this.buffer = buffer;
|
|
@@ -1927,9 +1912,9 @@ var StringReader = class {
|
|
|
1927
1912
|
return idx === -1 ? buffer.length : idx;
|
|
1928
1913
|
}
|
|
1929
1914
|
};
|
|
1930
|
-
function decode(mappings) {
|
|
1915
|
+
function decode$1(mappings) {
|
|
1931
1916
|
const { length } = mappings;
|
|
1932
|
-
const reader = new StringReader(mappings);
|
|
1917
|
+
const reader = new StringReader$1(mappings);
|
|
1933
1918
|
const decoded = [];
|
|
1934
1919
|
let genColumn = 0;
|
|
1935
1920
|
let sourcesIndex = 0;
|
|
@@ -1944,15 +1929,15 @@ function decode(mappings) {
|
|
|
1944
1929
|
genColumn = 0;
|
|
1945
1930
|
while (reader.pos < semi) {
|
|
1946
1931
|
let seg;
|
|
1947
|
-
genColumn = decodeInteger(reader, genColumn);
|
|
1932
|
+
genColumn = decodeInteger$1(reader, genColumn);
|
|
1948
1933
|
if (genColumn < lastCol) sorted = false;
|
|
1949
1934
|
lastCol = genColumn;
|
|
1950
|
-
if (hasMoreVlq(reader, semi)) {
|
|
1951
|
-
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
1952
|
-
sourceLine = decodeInteger(reader, sourceLine);
|
|
1953
|
-
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
1954
|
-
if (hasMoreVlq(reader, semi)) {
|
|
1955
|
-
namesIndex = decodeInteger(reader, namesIndex);
|
|
1935
|
+
if (hasMoreVlq$1(reader, semi)) {
|
|
1936
|
+
sourcesIndex = decodeInteger$1(reader, sourcesIndex);
|
|
1937
|
+
sourceLine = decodeInteger$1(reader, sourceLine);
|
|
1938
|
+
sourceColumn = decodeInteger$1(reader, sourceColumn);
|
|
1939
|
+
if (hasMoreVlq$1(reader, semi)) {
|
|
1940
|
+
namesIndex = decodeInteger$1(reader, namesIndex);
|
|
1956
1941
|
seg = [
|
|
1957
1942
|
genColumn,
|
|
1958
1943
|
sourcesIndex,
|
|
@@ -1970,16 +1955,16 @@ function decode(mappings) {
|
|
|
1970
1955
|
line.push(seg);
|
|
1971
1956
|
reader.pos++;
|
|
1972
1957
|
}
|
|
1973
|
-
if (!sorted) sort(line);
|
|
1958
|
+
if (!sorted) sort$1(line);
|
|
1974
1959
|
decoded.push(line);
|
|
1975
1960
|
reader.pos = semi + 1;
|
|
1976
1961
|
} while (reader.pos <= length);
|
|
1977
1962
|
return decoded;
|
|
1978
1963
|
}
|
|
1979
|
-
function sort(line) {
|
|
1980
|
-
line.sort(sortComparator$
|
|
1964
|
+
function sort$1(line) {
|
|
1965
|
+
line.sort(sortComparator$2);
|
|
1981
1966
|
}
|
|
1982
|
-
function sortComparator$
|
|
1967
|
+
function sortComparator$2(a, b) {
|
|
1983
1968
|
return a[0] - b[0];
|
|
1984
1969
|
}
|
|
1985
1970
|
function encode$1(decoded) {
|
|
@@ -1995,7 +1980,7 @@ function encode$1(decoded) {
|
|
|
1995
1980
|
let genColumn = 0;
|
|
1996
1981
|
for (let j = 0; j < line.length; j++) {
|
|
1997
1982
|
const segment = line[j];
|
|
1998
|
-
if (j > 0) writer.write(comma);
|
|
1983
|
+
if (j > 0) writer.write(comma$1);
|
|
1999
1984
|
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
2000
1985
|
if (segment.length === 1) continue;
|
|
2001
1986
|
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
@@ -2007,7 +1992,6 @@ function encode$1(decoded) {
|
|
|
2007
1992
|
}
|
|
2008
1993
|
return writer.flush();
|
|
2009
1994
|
}
|
|
2010
|
-
|
|
2011
1995
|
//#endregion
|
|
2012
1996
|
//#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
2013
1997
|
const schemeRegex = /^[\w+.-]+:\/\//;
|
|
@@ -2137,7 +2121,7 @@ function normalizePath$3(url, type) {
|
|
|
2137
2121
|
/**
|
|
2138
2122
|
* Attempts to resolve `input` URL/path relative to `base`.
|
|
2139
2123
|
*/
|
|
2140
|
-
function resolve$
|
|
2124
|
+
function resolve$4(input, base) {
|
|
2141
2125
|
if (!input && !base) return "";
|
|
2142
2126
|
const url = parseUrl(input);
|
|
2143
2127
|
let inputType = url.type;
|
|
@@ -2172,7 +2156,6 @@ function resolve$3(input, base) {
|
|
|
2172
2156
|
default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
2173
2157
|
}
|
|
2174
2158
|
}
|
|
2175
|
-
|
|
2176
2159
|
//#endregion
|
|
2177
2160
|
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
2178
2161
|
function stripFilename(path) {
|
|
@@ -2183,13 +2166,13 @@ function stripFilename(path) {
|
|
|
2183
2166
|
function resolver(mapUrl, sourceRoot) {
|
|
2184
2167
|
const from = stripFilename(mapUrl);
|
|
2185
2168
|
const prefix = sourceRoot ? sourceRoot + "/" : "";
|
|
2186
|
-
return (source) => resolve$
|
|
2169
|
+
return (source) => resolve$4(prefix + (source || ""), from);
|
|
2187
2170
|
}
|
|
2188
|
-
var COLUMN$
|
|
2189
|
-
var SOURCES_INDEX$
|
|
2190
|
-
var SOURCE_LINE$
|
|
2191
|
-
var SOURCE_COLUMN$
|
|
2192
|
-
var NAMES_INDEX$
|
|
2171
|
+
var COLUMN$2 = 0;
|
|
2172
|
+
var SOURCES_INDEX$2 = 1;
|
|
2173
|
+
var SOURCE_LINE$2 = 2;
|
|
2174
|
+
var SOURCE_COLUMN$2 = 3;
|
|
2175
|
+
var NAMES_INDEX$2 = 4;
|
|
2193
2176
|
function maybeSort(mappings, owned) {
|
|
2194
2177
|
const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
|
|
2195
2178
|
if (unsortedIndex === mappings.length) return mappings;
|
|
@@ -2202,53 +2185,53 @@ function nextUnsortedSegmentLine(mappings, start) {
|
|
|
2202
2185
|
return mappings.length;
|
|
2203
2186
|
}
|
|
2204
2187
|
function isSorted(line) {
|
|
2205
|
-
for (let j = 1; j < line.length; j++) if (line[j][COLUMN$
|
|
2188
|
+
for (let j = 1; j < line.length; j++) if (line[j][COLUMN$2] < line[j - 1][COLUMN$2]) return false;
|
|
2206
2189
|
return true;
|
|
2207
2190
|
}
|
|
2208
2191
|
function sortSegments(line, owned) {
|
|
2209
2192
|
if (!owned) line = line.slice();
|
|
2210
|
-
return line.sort(sortComparator);
|
|
2193
|
+
return line.sort(sortComparator$1);
|
|
2211
2194
|
}
|
|
2212
|
-
function sortComparator(a, b) {
|
|
2213
|
-
return a[COLUMN$
|
|
2195
|
+
function sortComparator$1(a, b) {
|
|
2196
|
+
return a[COLUMN$2] - b[COLUMN$2];
|
|
2214
2197
|
}
|
|
2215
|
-
var found = false;
|
|
2216
|
-
function binarySearch(haystack, needle, low, high) {
|
|
2198
|
+
var found$1 = false;
|
|
2199
|
+
function binarySearch$1(haystack, needle, low, high) {
|
|
2217
2200
|
while (low <= high) {
|
|
2218
2201
|
const mid = low + (high - low >> 1);
|
|
2219
|
-
const cmp = haystack[mid][COLUMN$
|
|
2202
|
+
const cmp = haystack[mid][COLUMN$2] - needle;
|
|
2220
2203
|
if (cmp === 0) {
|
|
2221
|
-
found = true;
|
|
2204
|
+
found$1 = true;
|
|
2222
2205
|
return mid;
|
|
2223
2206
|
}
|
|
2224
2207
|
if (cmp < 0) low = mid + 1;
|
|
2225
2208
|
else high = mid - 1;
|
|
2226
2209
|
}
|
|
2227
|
-
found = false;
|
|
2210
|
+
found$1 = false;
|
|
2228
2211
|
return low - 1;
|
|
2229
2212
|
}
|
|
2230
|
-
function upperBound(haystack, needle, index) {
|
|
2231
|
-
for (let i = index + 1; i < haystack.length; index = i++) if (haystack[i][COLUMN$
|
|
2213
|
+
function upperBound$1(haystack, needle, index) {
|
|
2214
|
+
for (let i = index + 1; i < haystack.length; index = i++) if (haystack[i][COLUMN$2] !== needle) break;
|
|
2232
2215
|
return index;
|
|
2233
2216
|
}
|
|
2234
|
-
function lowerBound(haystack, needle, index) {
|
|
2235
|
-
for (let i = index - 1; i >= 0; index = i--) if (haystack[i][COLUMN$
|
|
2217
|
+
function lowerBound$1(haystack, needle, index) {
|
|
2218
|
+
for (let i = index - 1; i >= 0; index = i--) if (haystack[i][COLUMN$2] !== needle) break;
|
|
2236
2219
|
return index;
|
|
2237
2220
|
}
|
|
2238
|
-
function memoizedState() {
|
|
2221
|
+
function memoizedState$1() {
|
|
2239
2222
|
return {
|
|
2240
2223
|
lastKey: -1,
|
|
2241
2224
|
lastNeedle: -1,
|
|
2242
2225
|
lastIndex: -1
|
|
2243
2226
|
};
|
|
2244
2227
|
}
|
|
2245
|
-
function memoizedBinarySearch(haystack, needle, state, key) {
|
|
2228
|
+
function memoizedBinarySearch$1(haystack, needle, state, key) {
|
|
2246
2229
|
const { lastKey, lastNeedle, lastIndex } = state;
|
|
2247
2230
|
let low = 0;
|
|
2248
2231
|
let high = haystack.length - 1;
|
|
2249
2232
|
if (key === lastKey) {
|
|
2250
2233
|
if (needle === lastNeedle) {
|
|
2251
|
-
found = lastIndex !== -1 && haystack[lastIndex][COLUMN$
|
|
2234
|
+
found$1 = lastIndex !== -1 && haystack[lastIndex][COLUMN$2] === needle;
|
|
2252
2235
|
return lastIndex;
|
|
2253
2236
|
}
|
|
2254
2237
|
if (needle >= lastNeedle) low = lastIndex === -1 ? 0 : lastIndex;
|
|
@@ -2256,15 +2239,13 @@ function memoizedBinarySearch(haystack, needle, state, key) {
|
|
|
2256
2239
|
}
|
|
2257
2240
|
state.lastKey = key;
|
|
2258
2241
|
state.lastNeedle = needle;
|
|
2259
|
-
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
2242
|
+
return state.lastIndex = binarySearch$1(haystack, needle, low, high);
|
|
2260
2243
|
}
|
|
2261
2244
|
function parse$3(map) {
|
|
2262
2245
|
return typeof map === "string" ? JSON.parse(map) : map;
|
|
2263
2246
|
}
|
|
2264
|
-
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
2265
|
-
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
2266
|
-
var LEAST_UPPER_BOUND = -1;
|
|
2267
|
-
var GREATEST_LOWER_BOUND = 1;
|
|
2247
|
+
var LINE_GTR_ZERO$1 = "`line` must be greater than 0 (lines start at line 1)";
|
|
2248
|
+
var COL_GTR_EQ_ZERO$1 = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
2268
2249
|
var TraceMap = class {
|
|
2269
2250
|
constructor(map, mapUrl) {
|
|
2270
2251
|
const isString = typeof map === "string";
|
|
@@ -2289,41 +2270,41 @@ var TraceMap = class {
|
|
|
2289
2270
|
this._decoded = maybeSort(mappings, isString);
|
|
2290
2271
|
} else if (parsed.sections) throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`);
|
|
2291
2272
|
else throw new Error(`invalid source map: ${JSON.stringify(parsed)}`);
|
|
2292
|
-
this._decodedMemo = memoizedState();
|
|
2273
|
+
this._decodedMemo = memoizedState$1();
|
|
2293
2274
|
this._bySources = void 0;
|
|
2294
2275
|
this._bySourceMemos = void 0;
|
|
2295
2276
|
}
|
|
2296
2277
|
};
|
|
2297
|
-
function cast$
|
|
2278
|
+
function cast$2(map) {
|
|
2298
2279
|
return map;
|
|
2299
2280
|
}
|
|
2300
|
-
function decodedMappings(map) {
|
|
2281
|
+
function decodedMappings$1(map) {
|
|
2301
2282
|
var _a;
|
|
2302
|
-
return (_a = cast$
|
|
2283
|
+
return (_a = cast$2(map))._decoded || (_a._decoded = decode$1(cast$2(map)._encoded));
|
|
2303
2284
|
}
|
|
2304
2285
|
function traceSegment(map, line, column) {
|
|
2305
|
-
const decoded = decodedMappings(map);
|
|
2286
|
+
const decoded = decodedMappings$1(map);
|
|
2306
2287
|
if (line >= decoded.length) return null;
|
|
2307
2288
|
const segments = decoded[line];
|
|
2308
|
-
const index = traceSegmentInternal(segments, cast$
|
|
2289
|
+
const index = traceSegmentInternal$1(segments, cast$2(map)._decodedMemo, line, column, 1);
|
|
2309
2290
|
return index === -1 ? null : segments[index];
|
|
2310
2291
|
}
|
|
2311
|
-
function originalPositionFor$
|
|
2292
|
+
function originalPositionFor$2(map, needle) {
|
|
2312
2293
|
let { line, column, bias } = needle;
|
|
2313
2294
|
line--;
|
|
2314
|
-
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
2315
|
-
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
2316
|
-
const decoded = decodedMappings(map);
|
|
2317
|
-
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
2295
|
+
if (line < 0) throw new Error(LINE_GTR_ZERO$1);
|
|
2296
|
+
if (column < 0) throw new Error(COL_GTR_EQ_ZERO$1);
|
|
2297
|
+
const decoded = decodedMappings$1(map);
|
|
2298
|
+
if (line >= decoded.length) return OMapping$1(null, null, null, null);
|
|
2318
2299
|
const segments = decoded[line];
|
|
2319
|
-
const index = traceSegmentInternal(segments, cast$
|
|
2320
|
-
if (index === -1) return OMapping(null, null, null, null);
|
|
2300
|
+
const index = traceSegmentInternal$1(segments, cast$2(map)._decodedMemo, line, column, bias || 1);
|
|
2301
|
+
if (index === -1) return OMapping$1(null, null, null, null);
|
|
2321
2302
|
const segment = segments[index];
|
|
2322
|
-
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
2303
|
+
if (segment.length === 1) return OMapping$1(null, null, null, null);
|
|
2323
2304
|
const { names, resolvedSources } = map;
|
|
2324
|
-
return OMapping(resolvedSources[segment[SOURCES_INDEX$
|
|
2305
|
+
return OMapping$1(resolvedSources[segment[SOURCES_INDEX$2]], segment[SOURCE_LINE$2] + 1, segment[SOURCE_COLUMN$2], segment.length === 5 ? names[segment[NAMES_INDEX$2]] : null);
|
|
2325
2306
|
}
|
|
2326
|
-
function OMapping(source, line, column, name) {
|
|
2307
|
+
function OMapping$1(source, line, column, name) {
|
|
2327
2308
|
return {
|
|
2328
2309
|
source,
|
|
2329
2310
|
line,
|
|
@@ -2331,14 +2312,13 @@ function OMapping(source, line, column, name) {
|
|
|
2331
2312
|
name
|
|
2332
2313
|
};
|
|
2333
2314
|
}
|
|
2334
|
-
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
2335
|
-
let index = memoizedBinarySearch(segments, column, memo, line);
|
|
2336
|
-
if (found) index = (bias ===
|
|
2337
|
-
else if (bias ===
|
|
2315
|
+
function traceSegmentInternal$1(segments, memo, line, column, bias) {
|
|
2316
|
+
let index = memoizedBinarySearch$1(segments, column, memo, line);
|
|
2317
|
+
if (found$1) index = (bias === -1 ? upperBound$1 : lowerBound$1)(segments, column, index);
|
|
2318
|
+
else if (bias === -1) index++;
|
|
2338
2319
|
if (index === -1 || index === segments.length) return -1;
|
|
2339
2320
|
return index;
|
|
2340
2321
|
}
|
|
2341
|
-
|
|
2342
2322
|
//#endregion
|
|
2343
2323
|
//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
2344
2324
|
var SetArray = class {
|
|
@@ -2347,22 +2327,22 @@ var SetArray = class {
|
|
|
2347
2327
|
this.array = [];
|
|
2348
2328
|
}
|
|
2349
2329
|
};
|
|
2350
|
-
function cast(set) {
|
|
2330
|
+
function cast$1(set) {
|
|
2351
2331
|
return set;
|
|
2352
2332
|
}
|
|
2353
2333
|
function get$2(setarr, key) {
|
|
2354
|
-
return cast(setarr)._indexes[key];
|
|
2334
|
+
return cast$1(setarr)._indexes[key];
|
|
2355
2335
|
}
|
|
2356
2336
|
function put(setarr, key) {
|
|
2357
2337
|
const index = get$2(setarr, key);
|
|
2358
2338
|
if (index !== void 0) return index;
|
|
2359
|
-
const { array, _indexes: indexes } = cast(setarr);
|
|
2339
|
+
const { array, _indexes: indexes } = cast$1(setarr);
|
|
2360
2340
|
return indexes[key] = array.push(key) - 1;
|
|
2361
2341
|
}
|
|
2362
2342
|
function remove(setarr, key) {
|
|
2363
2343
|
const index = get$2(setarr, key);
|
|
2364
2344
|
if (index === void 0) return;
|
|
2365
|
-
const { array, _indexes: indexes } = cast(setarr);
|
|
2345
|
+
const { array, _indexes: indexes } = cast$1(setarr);
|
|
2366
2346
|
for (let i = index + 1; i < array.length; i++) {
|
|
2367
2347
|
const k = array[i];
|
|
2368
2348
|
array[i - 1] = k;
|
|
@@ -2371,11 +2351,11 @@ function remove(setarr, key) {
|
|
|
2371
2351
|
indexes[key] = void 0;
|
|
2372
2352
|
array.pop();
|
|
2373
2353
|
}
|
|
2374
|
-
var COLUMN = 0;
|
|
2375
|
-
var SOURCES_INDEX = 1;
|
|
2376
|
-
var SOURCE_LINE = 2;
|
|
2377
|
-
var SOURCE_COLUMN = 3;
|
|
2378
|
-
var NAMES_INDEX = 4;
|
|
2354
|
+
var COLUMN$1 = 0;
|
|
2355
|
+
var SOURCES_INDEX$1 = 1;
|
|
2356
|
+
var SOURCE_LINE$1 = 2;
|
|
2357
|
+
var SOURCE_COLUMN$1 = 3;
|
|
2358
|
+
var NAMES_INDEX$1 = 4;
|
|
2379
2359
|
var NO_NAME = -1;
|
|
2380
2360
|
var GenMapping = class {
|
|
2381
2361
|
constructor({ file, sourceRoot } = {}) {
|
|
@@ -2458,7 +2438,7 @@ function getIndex(arr, index) {
|
|
|
2458
2438
|
}
|
|
2459
2439
|
function getColumnIndex(line, genColumn) {
|
|
2460
2440
|
let index = line.length;
|
|
2461
|
-
for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN]) break;
|
|
2441
|
+
for (let i = index - 1; i >= 0; index = i--) if (genColumn >= line[i][COLUMN$1]) break;
|
|
2462
2442
|
return index;
|
|
2463
2443
|
}
|
|
2464
2444
|
function insert(array, index, value) {
|
|
@@ -2479,9 +2459,8 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
|
|
|
2479
2459
|
if (index === 0) return false;
|
|
2480
2460
|
const prev = line[index - 1];
|
|
2481
2461
|
if (prev.length === 1) return false;
|
|
2482
|
-
return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
|
|
2462
|
+
return sourcesIndex === prev[SOURCES_INDEX$1] && sourceLine === prev[SOURCE_LINE$1] && sourceColumn === prev[SOURCE_COLUMN$1] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX$1] : NO_NAME);
|
|
2483
2463
|
}
|
|
2484
|
-
|
|
2485
2464
|
//#endregion
|
|
2486
2465
|
//#region ../../node_modules/.pnpm/@jridgewell+remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs
|
|
2487
2466
|
var SOURCELESS_MAPPING = /* @__PURE__ */ SegmentObject("", -1, -1, "", null, false);
|
|
@@ -2515,7 +2494,7 @@ function traceMappings(tree) {
|
|
|
2515
2494
|
const gen = new GenMapping({ file: tree.map.file });
|
|
2516
2495
|
const { sources: rootSources, map } = tree;
|
|
2517
2496
|
const rootNames = map.names;
|
|
2518
|
-
const rootMappings = decodedMappings(map);
|
|
2497
|
+
const rootMappings = decodedMappings$1(map);
|
|
2519
2498
|
for (let i = 0; i < rootMappings.length; i++) {
|
|
2520
2499
|
const segments = rootMappings[i];
|
|
2521
2500
|
for (let j = 0; j < segments.length; j++) {
|
|
@@ -2524,7 +2503,7 @@ function traceMappings(tree) {
|
|
|
2524
2503
|
let traced = SOURCELESS_MAPPING;
|
|
2525
2504
|
if (segment.length !== 1) {
|
|
2526
2505
|
const source2 = rootSources[segment[1]];
|
|
2527
|
-
traced = originalPositionFor(source2, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : "");
|
|
2506
|
+
traced = originalPositionFor$1(source2, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : "");
|
|
2528
2507
|
if (traced == null) continue;
|
|
2529
2508
|
}
|
|
2530
2509
|
const { column, line, name, content, source, ignore } = traced;
|
|
@@ -2535,12 +2514,12 @@ function traceMappings(tree) {
|
|
|
2535
2514
|
}
|
|
2536
2515
|
return gen;
|
|
2537
2516
|
}
|
|
2538
|
-
function originalPositionFor(source, line, column, name) {
|
|
2517
|
+
function originalPositionFor$1(source, line, column, name) {
|
|
2539
2518
|
if (!source.map) return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
|
2540
2519
|
const segment = traceSegment(source.map, line, column);
|
|
2541
2520
|
if (segment == null) return null;
|
|
2542
2521
|
if (segment.length === 1) return SOURCELESS_MAPPING;
|
|
2543
|
-
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
|
2522
|
+
return originalPositionFor$1(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
|
2544
2523
|
}
|
|
2545
2524
|
function asArray(value) {
|
|
2546
2525
|
if (Array.isArray(value)) return value;
|
|
@@ -2595,7 +2574,6 @@ function remapping(input, loader, options) {
|
|
|
2595
2574
|
};
|
|
2596
2575
|
return new SourceMap$1(traceMappings(buildSourceMapTree(input, loader)), opts);
|
|
2597
2576
|
}
|
|
2598
|
-
|
|
2599
2577
|
//#endregion
|
|
2600
2578
|
//#region ../../node_modules/.pnpm/obug@1.0.2_ms@2.1.3/node_modules/obug/dist/core.js
|
|
2601
2579
|
function coerce(value) {
|
|
@@ -2726,14 +2704,13 @@ function setup(useColors, colors, log, load, save, formatArgs, init) {
|
|
|
2726
2704
|
createDebug.enable(load());
|
|
2727
2705
|
return createDebug;
|
|
2728
2706
|
}
|
|
2729
|
-
|
|
2730
2707
|
//#endregion
|
|
2731
2708
|
//#region ../../node_modules/.pnpm/obug@1.0.2_ms@2.1.3/node_modules/obug/dist/node.js
|
|
2732
2709
|
const require$1 = createRequire(import.meta.url);
|
|
2733
2710
|
function log$1(...args) {
|
|
2734
2711
|
process.stderr.write(`${formatWithOptions(inspectOpts, ...args)}\n`);
|
|
2735
2712
|
}
|
|
2736
|
-
const colors$
|
|
2713
|
+
const colors$36 = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
2737
2714
|
20,
|
|
2738
2715
|
21,
|
|
2739
2716
|
26,
|
|
@@ -2863,7 +2840,7 @@ function getDate() {
|
|
|
2863
2840
|
function init$1(debug) {
|
|
2864
2841
|
debug.inspectOpts = Object.assign({}, inspectOpts);
|
|
2865
2842
|
}
|
|
2866
|
-
const createDebug = setup(useColors(), colors$
|
|
2843
|
+
const createDebug = setup(useColors(), colors$36, log$1, load, save, formatArgs, init$1);
|
|
2867
2844
|
createDebug.inspectOpts = inspectOpts;
|
|
2868
2845
|
createDebug.formatters.o = function(v) {
|
|
2869
2846
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -2876,9 +2853,8 @@ createDebug.formatters.O = function(v) {
|
|
|
2876
2853
|
var node_default = createDebug;
|
|
2877
2854
|
createDebug.default = createDebug;
|
|
2878
2855
|
createDebug.debug = createDebug;
|
|
2879
|
-
|
|
2880
2856
|
//#endregion
|
|
2881
|
-
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.
|
|
2857
|
+
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.59.0/node_modules/@rollup/pluginutils/dist/es/index.js
|
|
2882
2858
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch$2(), 1);
|
|
2883
2859
|
function isArray(arg) {
|
|
2884
2860
|
return Array.isArray(arg);
|
|
@@ -3012,7 +2988,6 @@ const dataToEsm = function dataToEsm(data, options = {}) {
|
|
|
3012
2988
|
const defaultExportCode = `export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`;
|
|
3013
2989
|
return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`;
|
|
3014
2990
|
};
|
|
3015
|
-
|
|
3016
2991
|
//#endregion
|
|
3017
2992
|
//#region ../../rolldown-vite/packages/vite/src/shared/builtin.ts
|
|
3018
2993
|
function createIsBuiltin(builtins) {
|
|
@@ -3020,7 +2995,6 @@ function createIsBuiltin(builtins) {
|
|
|
3020
2995
|
const regexBuiltins = builtins.filter((builtin) => typeof builtin !== "string");
|
|
3021
2996
|
return (id) => plainBuiltinsSet.has(id) || regexBuiltins.some((regexp) => regexp.test(id));
|
|
3022
2997
|
}
|
|
3023
|
-
|
|
3024
2998
|
//#endregion
|
|
3025
2999
|
//#region ../../rolldown-vite/packages/vite/src/node/packages.ts
|
|
3026
3000
|
let pnp;
|
|
@@ -3230,7 +3204,6 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
|
|
|
3230
3204
|
longerDir = path.dirname(longerDir);
|
|
3231
3205
|
}
|
|
3232
3206
|
}
|
|
3233
|
-
|
|
3234
3207
|
//#endregion
|
|
3235
3208
|
//#region ../../rolldown-vite/packages/vite/src/node/utils.ts
|
|
3236
3209
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
@@ -4193,7 +4166,6 @@ function monotonicDateNow() {
|
|
|
4193
4166
|
lastDateNow++;
|
|
4194
4167
|
return lastDateNow;
|
|
4195
4168
|
}
|
|
4196
|
-
|
|
4197
4169
|
//#endregion
|
|
4198
4170
|
//#region ../../rolldown-vite/packages/vite/src/node/plugin.ts
|
|
4199
4171
|
async function resolveEnvironmentPlugins(environment) {
|
|
@@ -4220,49 +4192,11 @@ function perEnvironmentPlugin(name, applyToEnvironment) {
|
|
|
4220
4192
|
applyToEnvironment
|
|
4221
4193
|
};
|
|
4222
4194
|
}
|
|
4223
|
-
|
|
4224
|
-
//#endregion
|
|
4225
|
-
//#region ../../rolldown-vite/packages/vite/src/node/environment.ts
|
|
4226
|
-
/**
|
|
4227
|
-
* Creates a function that hides the complexities of a WeakMap with an initial value
|
|
4228
|
-
* to implement object metadata. Used by plugins to implement cross hooks per
|
|
4229
|
-
* environment metadata
|
|
4230
|
-
*
|
|
4231
|
-
* @experimental
|
|
4232
|
-
*/
|
|
4233
|
-
function perEnvironmentState(initial) {
|
|
4234
|
-
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
4235
|
-
return function(context) {
|
|
4236
|
-
const { environment } = context;
|
|
4237
|
-
let state = stateMap.get(environment);
|
|
4238
|
-
if (!state) {
|
|
4239
|
-
state = initial(environment);
|
|
4240
|
-
stateMap.set(environment, state);
|
|
4241
|
-
}
|
|
4242
|
-
return state;
|
|
4243
|
-
};
|
|
4244
|
-
}
|
|
4245
|
-
|
|
4246
4195
|
//#endregion
|
|
4247
4196
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/reporter.ts
|
|
4248
|
-
const groups = [
|
|
4249
|
-
{
|
|
4250
|
-
name: "Assets",
|
|
4251
|
-
color: import_picocolors.default.green
|
|
4252
|
-
},
|
|
4253
|
-
{
|
|
4254
|
-
name: "CSS",
|
|
4255
|
-
color: import_picocolors.default.magenta
|
|
4256
|
-
},
|
|
4257
|
-
{
|
|
4258
|
-
name: "JS",
|
|
4259
|
-
color: import_picocolors.default.cyan
|
|
4260
|
-
}
|
|
4261
|
-
];
|
|
4262
|
-
const COMPRESSIBLE_ASSETS_RE = /\.(?:html|json|svg|txt|xml|xhtml|wasm)$/;
|
|
4263
4197
|
const VITE_VERSION_ONLY_LINE_RE = /^vite v\S+$/;
|
|
4264
4198
|
function buildReporterPlugin(config) {
|
|
4265
|
-
|
|
4199
|
+
return perEnvironmentPlugin("native:reporter", (env) => {
|
|
4266
4200
|
const tty = process.stdout.isTTY && !process.env.CI;
|
|
4267
4201
|
const shouldLogInfo = LogLevels[config.logLevel || "info"] >= LogLevels.info;
|
|
4268
4202
|
const assetsDir = path.join(env.config.build.assetsDir, "/");
|
|
@@ -4280,192 +4214,7 @@ function buildReporterPlugin(config) {
|
|
|
4280
4214
|
warnLargeChunks: env.config.build.minify && !env.config.build.lib && env.config.consumer === "client"
|
|
4281
4215
|
});
|
|
4282
4216
|
});
|
|
4283
|
-
const compress = promisify(gzip);
|
|
4284
|
-
const numberFormatter = new Intl.NumberFormat("en", {
|
|
4285
|
-
maximumFractionDigits: 2,
|
|
4286
|
-
minimumFractionDigits: 2
|
|
4287
|
-
});
|
|
4288
|
-
const displaySize = (bytes) => {
|
|
4289
|
-
return `${numberFormatter.format(bytes / 1e3)} kB`;
|
|
4290
|
-
};
|
|
4291
|
-
const tty = process.stdout.isTTY && !process.env.CI;
|
|
4292
|
-
const shouldLogInfo = LogLevels[config.logLevel || "info"] >= LogLevels.info;
|
|
4293
|
-
const modulesReporter = shouldLogInfo ? perEnvironmentState((environment) => {
|
|
4294
|
-
let hasTransformed = false;
|
|
4295
|
-
let transformedCount = 0;
|
|
4296
|
-
const logTransform = throttle((id) => {
|
|
4297
|
-
writeLine(`transforming (${transformedCount}) ${import_picocolors.default.dim(path.relative(config.root, id))}`);
|
|
4298
|
-
});
|
|
4299
|
-
return {
|
|
4300
|
-
reset() {
|
|
4301
|
-
transformedCount = 0;
|
|
4302
|
-
},
|
|
4303
|
-
register(id) {
|
|
4304
|
-
transformedCount++;
|
|
4305
|
-
if (!tty) {
|
|
4306
|
-
if (!hasTransformed) config.logger.info(`transforming...`);
|
|
4307
|
-
} else {
|
|
4308
|
-
if (id.includes(`?`)) return;
|
|
4309
|
-
logTransform(id);
|
|
4310
|
-
}
|
|
4311
|
-
hasTransformed = true;
|
|
4312
|
-
},
|
|
4313
|
-
log() {
|
|
4314
|
-
if (tty) clearLine$1();
|
|
4315
|
-
environment.logger.info(`${import_picocolors.default.green(`✓`)} ${transformedCount} modules transformed.`);
|
|
4316
|
-
}
|
|
4317
|
-
};
|
|
4318
|
-
}) : void 0;
|
|
4319
|
-
const chunksReporter = perEnvironmentState((environment) => {
|
|
4320
|
-
let hasRenderedChunk = false;
|
|
4321
|
-
let hasCompressChunk = false;
|
|
4322
|
-
let chunkCount = 0;
|
|
4323
|
-
let compressedCount = 0;
|
|
4324
|
-
async function getCompressedSize(code) {
|
|
4325
|
-
if (environment.config.consumer !== "client" || !environment.config.build.reportCompressedSize) return null;
|
|
4326
|
-
if (shouldLogInfo && !hasCompressChunk) {
|
|
4327
|
-
if (!tty) config.logger.info("computing gzip size...");
|
|
4328
|
-
else writeLine("computing gzip size (0)...");
|
|
4329
|
-
hasCompressChunk = true;
|
|
4330
|
-
}
|
|
4331
|
-
const compressed = await compress(typeof code === "string" ? code : Buffer.from(code));
|
|
4332
|
-
compressedCount++;
|
|
4333
|
-
if (shouldLogInfo && tty) writeLine(`computing gzip size (${compressedCount})...`);
|
|
4334
|
-
return compressed.length;
|
|
4335
|
-
}
|
|
4336
|
-
return {
|
|
4337
|
-
reset() {
|
|
4338
|
-
chunkCount = 0;
|
|
4339
|
-
compressedCount = 0;
|
|
4340
|
-
},
|
|
4341
|
-
register() {
|
|
4342
|
-
chunkCount++;
|
|
4343
|
-
if (shouldLogInfo) {
|
|
4344
|
-
if (!tty) {
|
|
4345
|
-
if (!hasRenderedChunk) environment.logger.info("rendering chunks...");
|
|
4346
|
-
} else writeLine(`rendering chunks (${chunkCount})...`);
|
|
4347
|
-
hasRenderedChunk = true;
|
|
4348
|
-
}
|
|
4349
|
-
},
|
|
4350
|
-
async log(output, outDir) {
|
|
4351
|
-
const chunkLimit = environment.config.build.chunkSizeWarningLimit;
|
|
4352
|
-
let hasLargeChunks = false;
|
|
4353
|
-
if (shouldLogInfo) {
|
|
4354
|
-
const entries = (await Promise.all(Object.values(output).map(async (chunk) => {
|
|
4355
|
-
if (chunk.type === "chunk") return {
|
|
4356
|
-
name: chunk.fileName,
|
|
4357
|
-
group: "JS",
|
|
4358
|
-
size: Buffer.byteLength(chunk.code),
|
|
4359
|
-
compressedSize: await getCompressedSize(chunk.code),
|
|
4360
|
-
mapSize: chunk.map ? Buffer.byteLength(chunk.map.toString()) : null
|
|
4361
|
-
};
|
|
4362
|
-
else {
|
|
4363
|
-
if (chunk.fileName.endsWith(".map")) return null;
|
|
4364
|
-
const isCSS = chunk.fileName.endsWith(".css");
|
|
4365
|
-
const isCompressible = isCSS || COMPRESSIBLE_ASSETS_RE.test(chunk.fileName);
|
|
4366
|
-
return {
|
|
4367
|
-
name: chunk.fileName,
|
|
4368
|
-
group: isCSS ? "CSS" : "Assets",
|
|
4369
|
-
size: Buffer.byteLength(chunk.source),
|
|
4370
|
-
mapSize: null,
|
|
4371
|
-
compressedSize: isCompressible ? await getCompressedSize(chunk.source) : null
|
|
4372
|
-
};
|
|
4373
|
-
}
|
|
4374
|
-
}))).filter(isDefined);
|
|
4375
|
-
if (tty) clearLine$1();
|
|
4376
|
-
let longest = 0;
|
|
4377
|
-
let biggestSize = 0;
|
|
4378
|
-
let biggestMap = 0;
|
|
4379
|
-
let biggestCompressSize = 0;
|
|
4380
|
-
for (const entry of entries) {
|
|
4381
|
-
if (entry.name.length > longest) longest = entry.name.length;
|
|
4382
|
-
if (entry.size > biggestSize) biggestSize = entry.size;
|
|
4383
|
-
if (entry.mapSize && entry.mapSize > biggestMap) biggestMap = entry.mapSize;
|
|
4384
|
-
if (entry.compressedSize && entry.compressedSize > biggestCompressSize) biggestCompressSize = entry.compressedSize;
|
|
4385
|
-
}
|
|
4386
|
-
const sizePad = displaySize(biggestSize).length;
|
|
4387
|
-
const mapPad = displaySize(biggestMap).length;
|
|
4388
|
-
const compressPad = displaySize(biggestCompressSize).length;
|
|
4389
|
-
const relativeOutDir = normalizePath$1(path.relative(config.root, path.resolve(config.root, outDir ?? environment.config.build.outDir)));
|
|
4390
|
-
const assetsDir = path.join(environment.config.build.assetsDir, "/");
|
|
4391
|
-
for (const group of groups) {
|
|
4392
|
-
const filtered = entries.filter((e) => e.group === group.name);
|
|
4393
|
-
if (!filtered.length) continue;
|
|
4394
|
-
for (const entry of filtered.sort((a, z) => a.size - z.size)) {
|
|
4395
|
-
const isLarge = group.name === "JS" && entry.size / 1e3 > chunkLimit;
|
|
4396
|
-
if (isLarge) hasLargeChunks = true;
|
|
4397
|
-
const sizeColor = isLarge ? import_picocolors.default.yellow : import_picocolors.default.dim;
|
|
4398
|
-
let log = import_picocolors.default.dim(withTrailingSlash(relativeOutDir));
|
|
4399
|
-
log += !config.build.lib && entry.name.startsWith(withTrailingSlash(assetsDir)) ? import_picocolors.default.dim(assetsDir) + group.color(entry.name.slice(assetsDir.length).padEnd(longest + 2 - assetsDir.length)) : group.color(entry.name.padEnd(longest + 2));
|
|
4400
|
-
log += import_picocolors.default.bold(sizeColor(displaySize(entry.size).padStart(sizePad)));
|
|
4401
|
-
if (entry.compressedSize) log += import_picocolors.default.dim(` │ gzip: ${displaySize(entry.compressedSize).padStart(compressPad)}`);
|
|
4402
|
-
if (entry.mapSize) log += import_picocolors.default.dim(` │ map: ${displaySize(entry.mapSize).padStart(mapPad)}`);
|
|
4403
|
-
config.logger.info(log);
|
|
4404
|
-
}
|
|
4405
|
-
}
|
|
4406
|
-
} else hasLargeChunks = Object.values(output).some((chunk) => {
|
|
4407
|
-
return chunk.type === "chunk" && chunk.code.length / 1e3 > chunkLimit;
|
|
4408
|
-
});
|
|
4409
|
-
if (hasLargeChunks && environment.config.build.minify && !config.build.lib && environment.config.consumer === "client") environment.logger.warn(import_picocolors.default.yellow(`\n(!) Some chunks are larger than ${chunkLimit} kB after minification. Consider:\n- Using dynamic import() to code-split the application\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.`));
|
|
4410
|
-
}
|
|
4411
|
-
};
|
|
4412
|
-
});
|
|
4413
|
-
return {
|
|
4414
|
-
name: "vite:reporter",
|
|
4415
|
-
sharedDuringBuild: true,
|
|
4416
|
-
perEnvironmentStartEndDuringDev: true,
|
|
4417
|
-
...modulesReporter ? {
|
|
4418
|
-
transform(_, id) {
|
|
4419
|
-
modulesReporter(this).register(id);
|
|
4420
|
-
},
|
|
4421
|
-
buildStart() {
|
|
4422
|
-
modulesReporter(this).reset();
|
|
4423
|
-
},
|
|
4424
|
-
buildEnd() {
|
|
4425
|
-
modulesReporter(this).log();
|
|
4426
|
-
}
|
|
4427
|
-
} : {},
|
|
4428
|
-
renderStart() {
|
|
4429
|
-
chunksReporter(this).reset();
|
|
4430
|
-
},
|
|
4431
|
-
renderChunk(_, chunk, options) {
|
|
4432
|
-
if (options.codeSplitting !== false) for (const id of chunk.moduleIds) {
|
|
4433
|
-
const module = this.getModuleInfo(id);
|
|
4434
|
-
if (!module) continue;
|
|
4435
|
-
if (module.importers.length && module.dynamicImporters.length) {
|
|
4436
|
-
if (module.dynamicImporters.some((id) => !isInNodeModules(id) && chunk.moduleIds.includes(id))) this.warn(`\n(!) ${module.id} is dynamically imported by ${module.dynamicImporters.join(", ")} but also statically imported by ${module.importers.join(", ")}, dynamic import will not move module into another chunk.\n`);
|
|
4437
|
-
}
|
|
4438
|
-
}
|
|
4439
|
-
chunksReporter(this).register();
|
|
4440
|
-
},
|
|
4441
|
-
generateBundle() {
|
|
4442
|
-
if (shouldLogInfo && tty) clearLine$1();
|
|
4443
|
-
},
|
|
4444
|
-
async writeBundle({ dir }, output) {
|
|
4445
|
-
await chunksReporter(this).log(output, dir);
|
|
4446
|
-
}
|
|
4447
|
-
};
|
|
4448
|
-
}
|
|
4449
|
-
function writeLine(output) {
|
|
4450
|
-
clearLine$1();
|
|
4451
|
-
if (output.length < process.stdout.columns) process.stdout.write(output);
|
|
4452
|
-
else process.stdout.write(output.substring(0, process.stdout.columns - 1));
|
|
4453
4217
|
}
|
|
4454
|
-
function clearLine$1() {
|
|
4455
|
-
process.stdout.clearLine(0);
|
|
4456
|
-
process.stdout.cursorTo(0);
|
|
4457
|
-
}
|
|
4458
|
-
function throttle(fn) {
|
|
4459
|
-
let timerHandle = null;
|
|
4460
|
-
return (...args) => {
|
|
4461
|
-
if (timerHandle) return;
|
|
4462
|
-
fn(...args);
|
|
4463
|
-
timerHandle = setTimeout(() => {
|
|
4464
|
-
timerHandle = null;
|
|
4465
|
-
}, 100);
|
|
4466
|
-
};
|
|
4467
|
-
}
|
|
4468
|
-
|
|
4469
4218
|
//#endregion
|
|
4470
4219
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/esbuild.ts
|
|
4471
4220
|
const debug$14 = createDebugger("vite:esbuild");
|
|
@@ -4694,7 +4443,6 @@ async function reloadOnTsconfigChange(server, changedFile) {
|
|
|
4694
4443
|
}
|
|
4695
4444
|
}
|
|
4696
4445
|
}
|
|
4697
|
-
|
|
4698
4446
|
//#endregion
|
|
4699
4447
|
//#region ../../node_modules/.pnpm/artichokie@0.4.2/node_modules/artichokie/dist/index.js
|
|
4700
4448
|
const AsyncFunction = async function() {}.constructor;
|
|
@@ -5029,7 +4777,6 @@ var WorkerWithFallback = class {
|
|
|
5029
4777
|
this._fakeWorker.stop();
|
|
5030
4778
|
}
|
|
5031
4779
|
};
|
|
5032
|
-
|
|
5033
4780
|
//#endregion
|
|
5034
4781
|
//#region ../../node_modules/.pnpm/resolve.exports@2.0.3/node_modules/resolve.exports/dist/index.mjs
|
|
5035
4782
|
function e(e, n, r) {
|
|
@@ -5079,7 +4826,6 @@ function o(e, r, t) {
|
|
|
5079
4826
|
function f(e, r, t) {
|
|
5080
4827
|
if (e.imports) return n$1(e.name, e.imports, r, t);
|
|
5081
4828
|
}
|
|
5082
|
-
|
|
5083
4829
|
//#endregion
|
|
5084
4830
|
//#region ../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs
|
|
5085
4831
|
const HASH_RE = /#/g;
|
|
@@ -5109,11 +4855,6 @@ function encodeQueryItem(key, value) {
|
|
|
5109
4855
|
function stringifyQuery(query) {
|
|
5110
4856
|
return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
|
|
5111
4857
|
}
|
|
5112
|
-
const protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
5113
|
-
|
|
5114
|
-
//#endregion
|
|
5115
|
-
//#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs
|
|
5116
|
-
const BUILTIN_MODULES = new Set(builtinModules);
|
|
5117
4858
|
function clearImports(imports) {
|
|
5118
4859
|
return (imports || "").replace(/\/\/[^\n]*\n|\/\*.*\*\//g, "").replace(/\s+/g, " ");
|
|
5119
4860
|
}
|
|
@@ -5175,7 +4916,7 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
5175
4916
|
* @param {unknown} actual
|
|
5176
4917
|
*/
|
|
5177
4918
|
(name, expected, actual) => {
|
|
5178
|
-
assert(typeof name === "string", "'name' must be a string");
|
|
4919
|
+
assert.ok(typeof name === "string", "'name' must be a string");
|
|
5179
4920
|
if (!Array.isArray(expected)) expected = [expected];
|
|
5180
4921
|
let message = "The ";
|
|
5181
4922
|
if (name.endsWith(" argument")) message += `${name} `;
|
|
@@ -5191,10 +4932,10 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
5191
4932
|
/** @type {Array<string>} */
|
|
5192
4933
|
const other = [];
|
|
5193
4934
|
for (const value of expected) {
|
|
5194
|
-
assert(typeof value === "string", "All expected entries have to be of type string");
|
|
4935
|
+
assert.ok(typeof value === "string", "All expected entries have to be of type string");
|
|
5195
4936
|
if (kTypes.has(value)) types.push(value.toLowerCase());
|
|
5196
4937
|
else if (classRegExp.exec(value) === null) {
|
|
5197
|
-
assert(value !== "object", "The value \"object\" should be written as \"Object\"");
|
|
4938
|
+
assert.ok(value !== "object", "The value \"object\" should be written as \"Object\"");
|
|
5198
4939
|
other.push(value);
|
|
5199
4940
|
} else instances.push(value);
|
|
5200
4941
|
}
|
|
@@ -5259,7 +5000,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
|
5259
5000
|
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
5260
5001
|
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
5261
5002
|
if (key === ".") {
|
|
5262
|
-
assert(isImport === false);
|
|
5003
|
+
assert.ok(isImport === false);
|
|
5263
5004
|
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
|
|
5264
5005
|
}
|
|
5265
5006
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
|
|
@@ -5426,15 +5167,15 @@ const captureLargerStackTrace = hideStackFrames(
|
|
|
5426
5167
|
*/
|
|
5427
5168
|
function getMessage(key, parameters, self) {
|
|
5428
5169
|
const message = messages.get(key);
|
|
5429
|
-
assert(message !== void 0, "expected `message` to be found");
|
|
5170
|
+
assert.ok(message !== void 0, "expected `message` to be found");
|
|
5430
5171
|
if (typeof message === "function") {
|
|
5431
|
-
assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
5172
|
+
assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
5432
5173
|
return Reflect.apply(message, self, parameters);
|
|
5433
5174
|
}
|
|
5434
5175
|
const regex = /%[dfijoOs]/g;
|
|
5435
5176
|
let expectedLength = 0;
|
|
5436
5177
|
while (regex.exec(message) !== null) expectedLength++;
|
|
5437
|
-
assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
5178
|
+
assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
5438
5179
|
if (parameters.length === 0) return message;
|
|
5439
5180
|
parameters.unshift(message);
|
|
5440
5181
|
return Reflect.apply(format, null, parameters);
|
|
@@ -5455,6 +5196,7 @@ function determineSpecificType(value) {
|
|
|
5455
5196
|
if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`;
|
|
5456
5197
|
return `type ${typeof value} (${inspected})`;
|
|
5457
5198
|
}
|
|
5199
|
+
Object.freeze(["node", "import"]);
|
|
5458
5200
|
const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*(?:[\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
|
|
5459
5201
|
const TYPE_RE = /^\s*?type\s/;
|
|
5460
5202
|
function parseStaticImport(matched) {
|
|
@@ -5481,7 +5223,6 @@ function hasESMSyntax(code, opts = {}) {
|
|
|
5481
5223
|
if (opts.stripComments) code = code.replace(COMMENT_RE, "");
|
|
5482
5224
|
return ESM_RE.test(code);
|
|
5483
5225
|
}
|
|
5484
|
-
|
|
5485
5226
|
//#endregion
|
|
5486
5227
|
//#region ../../node_modules/.pnpm/es-module-lexer@1.7.0/node_modules/es-module-lexer/dist/lexer.js
|
|
5487
5228
|
var ImportType;
|
|
@@ -5554,7 +5295,6 @@ const E = () => {
|
|
|
5554
5295
|
const init = WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({ exports: A }) => {
|
|
5555
5296
|
C = A;
|
|
5556
5297
|
}));
|
|
5557
|
-
|
|
5558
5298
|
//#endregion
|
|
5559
5299
|
//#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.3/node_modules/fdir/dist/index.mjs
|
|
5560
5300
|
var __require = /* @__PURE__ */ createRequire$1(import.meta.url);
|
|
@@ -6063,7 +5803,6 @@ var Builder = class {
|
|
|
6063
5803
|
return this;
|
|
6064
5804
|
}
|
|
6065
5805
|
};
|
|
6066
|
-
|
|
6067
5806
|
//#endregion
|
|
6068
5807
|
//#region ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs
|
|
6069
5808
|
const isReadonlyArray = Array.isArray;
|
|
@@ -6352,7 +6091,6 @@ function globSync(patternsOrOptions, options) {
|
|
|
6352
6091
|
if (!relative) return crawler.sync();
|
|
6353
6092
|
return formatPaths(crawler.sync(), relative);
|
|
6354
6093
|
}
|
|
6355
|
-
|
|
6356
6094
|
//#endregion
|
|
6357
6095
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/oxc.ts
|
|
6358
6096
|
const IIFE_BEGIN_RE = /(?:(?:(?:const|var)\s+[^.\s]+|[^.\s]+\.[^.\s]+\.[^.\s]+)\s*=\s*|^|\n)\(?function\([^()]*\)\s*\{(?:\s*"use strict";)?/;
|
|
@@ -6446,7 +6184,7 @@ function shouldSkipWarning(warning) {
|
|
|
6446
6184
|
return false;
|
|
6447
6185
|
}
|
|
6448
6186
|
function oxcPlugin(config) {
|
|
6449
|
-
if (config.isBundled
|
|
6187
|
+
if (config.isBundled) return perEnvironmentPlugin("native:transform", (environment) => {
|
|
6450
6188
|
const { jsxInject, include = /\.(m?ts|[jt]sx)$/, exclude = /\.js$/, jsxRefreshInclude, jsxRefreshExclude, ..._transformOptions } = config.oxc;
|
|
6451
6189
|
const transformOptions = _transformOptions;
|
|
6452
6190
|
transformOptions.sourcemap = environment.config.mode !== "build" || !!environment.config.build.sourcemap;
|
|
@@ -6544,7 +6282,6 @@ function convertEsbuildConfigToOxcConfig(esbuildConfig, logger) {
|
|
|
6544
6282
|
function warnDeprecatedShouldBeConvertedToPluginOptions(logger, name) {
|
|
6545
6283
|
logger.warn(import_picocolors.default.yellow(`\`esbuild.${name}\` option was specified. But this option is deprecated and will be removed in future versions. This option can be achieved by using a plugin with transform hook, please use that instead.`));
|
|
6546
6284
|
}
|
|
6547
|
-
|
|
6548
6285
|
//#endregion
|
|
6549
6286
|
//#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
|
|
6550
6287
|
var BitSet = class BitSet {
|
|
@@ -7480,9 +7217,8 @@ var MagicString = class MagicString {
|
|
|
7480
7217
|
return this._replaceRegexp(searchValue, replacement);
|
|
7481
7218
|
}
|
|
7482
7219
|
};
|
|
7483
|
-
|
|
7484
7220
|
//#endregion
|
|
7485
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.
|
|
7221
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.59.0/node_modules/@rollup/plugin-alias/dist/index.js
|
|
7486
7222
|
function matches$1(pattern, importee) {
|
|
7487
7223
|
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
7488
7224
|
if (importee.length < pattern.length) return false;
|
|
@@ -7541,7 +7277,6 @@ function alias$1(options = {}) {
|
|
|
7541
7277
|
}
|
|
7542
7278
|
};
|
|
7543
7279
|
}
|
|
7544
|
-
|
|
7545
7280
|
//#endregion
|
|
7546
7281
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/optimizedDeps.ts
|
|
7547
7282
|
const debug$13 = createDebugger("vite:optimize-deps");
|
|
@@ -7602,10 +7337,9 @@ function throwFileNotFoundInOptimizedDep(id) {
|
|
|
7602
7337
|
err.code = ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR;
|
|
7603
7338
|
throw err;
|
|
7604
7339
|
}
|
|
7605
|
-
|
|
7606
7340
|
//#endregion
|
|
7607
|
-
//#region ../../
|
|
7608
|
-
var
|
|
7341
|
+
//#region ../../rolldown-vite/packages/vite/src/node/env.ts
|
|
7342
|
+
var import_main = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7609
7343
|
function _resolveEscapeSequences(value) {
|
|
7610
7344
|
return value.replace(/\\\$/g, "$");
|
|
7611
7345
|
}
|
|
@@ -7656,11 +7390,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7656
7390
|
return options;
|
|
7657
7391
|
}
|
|
7658
7392
|
module.exports.expand = expand;
|
|
7659
|
-
}));
|
|
7660
|
-
|
|
7661
|
-
//#endregion
|
|
7662
|
-
//#region ../../rolldown-vite/packages/vite/src/node/env.ts
|
|
7663
|
-
var import_main = require_main();
|
|
7393
|
+
})))();
|
|
7664
7394
|
const debug$12 = createDebugger("vite:env");
|
|
7665
7395
|
function getEnvFilesForMode(mode, envDir) {
|
|
7666
7396
|
if (envDir !== false) return [
|
|
@@ -7704,7 +7434,6 @@ function resolveEnvPrefix({ envPrefix = "VITE_" }) {
|
|
|
7704
7434
|
if (envPrefix.some((prefix) => /\s/.test(prefix))) console.warn(import_picocolors.default.yellow(`[vite] Warning: envPrefix option contains values with whitespace, which does not work in practice.`));
|
|
7705
7435
|
return envPrefix;
|
|
7706
7436
|
}
|
|
7707
|
-
|
|
7708
7437
|
//#endregion
|
|
7709
7438
|
//#region ../../rolldown-vite/packages/vite/src/node/deprecations.ts
|
|
7710
7439
|
const docsURL = "https://vite.dev";
|
|
@@ -7762,7 +7491,6 @@ function ignoreDeprecationWarnings(fn) {
|
|
|
7762
7491
|
_ignoreDeprecationWarnings = before;
|
|
7763
7492
|
return ret;
|
|
7764
7493
|
}
|
|
7765
|
-
|
|
7766
7494
|
//#endregion
|
|
7767
7495
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/error.ts
|
|
7768
7496
|
function prepareError(err) {
|
|
@@ -7836,7 +7564,6 @@ function errorMiddleware(server, allowNext = false) {
|
|
|
7836
7564
|
}
|
|
7837
7565
|
};
|
|
7838
7566
|
}
|
|
7839
|
-
|
|
7840
7567
|
//#endregion
|
|
7841
7568
|
//#region ../../node_modules/.pnpm/ms@2.0.0/node_modules/ms/index.js
|
|
7842
7569
|
var require_ms$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -7946,7 +7673,6 @@ var require_ms$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7946
7673
|
return Math.ceil(ms / n) + " " + name + "s";
|
|
7947
7674
|
}
|
|
7948
7675
|
}));
|
|
7949
|
-
|
|
7950
7676
|
//#endregion
|
|
7951
7677
|
//#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/debug.js
|
|
7952
7678
|
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -8087,7 +7813,6 @@ var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8087
7813
|
return val;
|
|
8088
7814
|
}
|
|
8089
7815
|
}));
|
|
8090
|
-
|
|
8091
7816
|
//#endregion
|
|
8092
7817
|
//#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/browser.js
|
|
8093
7818
|
var require_browser$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -8210,7 +7935,6 @@ var require_browser$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8210
7935
|
} catch (e) {}
|
|
8211
7936
|
}
|
|
8212
7937
|
}));
|
|
8213
|
-
|
|
8214
7938
|
//#endregion
|
|
8215
7939
|
//#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js
|
|
8216
7940
|
var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -8383,7 +8107,6 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8383
8107
|
*/
|
|
8384
8108
|
exports.enable(load());
|
|
8385
8109
|
}));
|
|
8386
|
-
|
|
8387
8110
|
//#endregion
|
|
8388
8111
|
//#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/index.js
|
|
8389
8112
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -8394,7 +8117,6 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8394
8117
|
if (typeof process !== "undefined" && process.type === "renderer") module.exports = require_browser$1();
|
|
8395
8118
|
else module.exports = require_node$1();
|
|
8396
8119
|
}));
|
|
8397
|
-
|
|
8398
8120
|
//#endregion
|
|
8399
8121
|
//#region ../../node_modules/.pnpm/encodeurl@1.0.2/node_modules/encodeurl/index.js
|
|
8400
8122
|
/*!
|
|
@@ -8445,7 +8167,6 @@ var require_encodeurl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8445
8167
|
return String(url).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
|
|
8446
8168
|
}
|
|
8447
8169
|
}));
|
|
8448
|
-
|
|
8449
8170
|
//#endregion
|
|
8450
8171
|
//#region ../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js
|
|
8451
8172
|
/*!
|
|
@@ -8507,7 +8228,6 @@ var require_escape_html = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8507
8228
|
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
8508
8229
|
}
|
|
8509
8230
|
}));
|
|
8510
|
-
|
|
8511
8231
|
//#endregion
|
|
8512
8232
|
//#region ../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js
|
|
8513
8233
|
/*!
|
|
@@ -8577,7 +8297,6 @@ var require_ee_first = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8577
8297
|
};
|
|
8578
8298
|
}
|
|
8579
8299
|
}));
|
|
8580
|
-
|
|
8581
8300
|
//#endregion
|
|
8582
8301
|
//#region ../../node_modules/.pnpm/on-finished@2.3.0/node_modules/on-finished/index.js
|
|
8583
8302
|
/*!
|
|
@@ -8723,7 +8442,6 @@ var require_on_finished = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8723
8442
|
};
|
|
8724
8443
|
}
|
|
8725
8444
|
}));
|
|
8726
|
-
|
|
8727
8445
|
//#endregion
|
|
8728
8446
|
//#region ../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js
|
|
8729
8447
|
/*!
|
|
@@ -8829,7 +8547,6 @@ var require_parseurl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8829
8547
|
return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url;
|
|
8830
8548
|
}
|
|
8831
8549
|
}));
|
|
8832
|
-
|
|
8833
8550
|
//#endregion
|
|
8834
8551
|
//#region ../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/codes.json
|
|
8835
8552
|
var require_codes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -8900,7 +8617,6 @@ var require_codes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8900
8617
|
"511": "Network Authentication Required"
|
|
8901
8618
|
};
|
|
8902
8619
|
}));
|
|
8903
|
-
|
|
8904
8620
|
//#endregion
|
|
8905
8621
|
//#region ../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js
|
|
8906
8622
|
/*!
|
|
@@ -8986,7 +8702,6 @@ var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8986
8702
|
return n;
|
|
8987
8703
|
}
|
|
8988
8704
|
}));
|
|
8989
|
-
|
|
8990
8705
|
//#endregion
|
|
8991
8706
|
//#region ../../node_modules/.pnpm/unpipe@1.0.0/node_modules/unpipe/index.js
|
|
8992
8707
|
/*!
|
|
@@ -9031,7 +8746,6 @@ var require_unpipe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9031
8746
|
}
|
|
9032
8747
|
}
|
|
9033
8748
|
}));
|
|
9034
|
-
|
|
9035
8749
|
//#endregion
|
|
9036
8750
|
//#region ../../node_modules/.pnpm/finalhandler@1.1.2/node_modules/finalhandler/index.js
|
|
9037
8751
|
/*!
|
|
@@ -9250,7 +8964,6 @@ var require_finalhandler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9250
8964
|
}
|
|
9251
8965
|
}
|
|
9252
8966
|
}));
|
|
9253
|
-
|
|
9254
8967
|
//#endregion
|
|
9255
8968
|
//#region ../../node_modules/.pnpm/utils-merge@1.0.1/node_modules/utils-merge/index.js
|
|
9256
8969
|
var require_utils_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -9273,7 +8986,6 @@ var require_utils_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9273
8986
|
return a;
|
|
9274
8987
|
};
|
|
9275
8988
|
}));
|
|
9276
|
-
|
|
9277
8989
|
//#endregion
|
|
9278
8990
|
//#region ../../node_modules/.pnpm/connect@3.7.0/node_modules/connect/index.js
|
|
9279
8991
|
/*!
|
|
@@ -9484,7 +9196,6 @@ var require_connect = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9484
9196
|
return fqdnIndex !== -1 && url.lastIndexOf("?", fqdnIndex) === -1 ? url.substr(0, url.indexOf("/", 3 + fqdnIndex)) : void 0;
|
|
9485
9197
|
}
|
|
9486
9198
|
}));
|
|
9487
|
-
|
|
9488
9199
|
//#endregion
|
|
9489
9200
|
//#region ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
|
|
9490
9201
|
/*
|
|
@@ -9536,7 +9247,6 @@ var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9536
9247
|
return to;
|
|
9537
9248
|
};
|
|
9538
9249
|
}));
|
|
9539
|
-
|
|
9540
9250
|
//#endregion
|
|
9541
9251
|
//#region ../../node_modules/.pnpm/vary@1.1.2/node_modules/vary/index.js
|
|
9542
9252
|
/*!
|
|
@@ -9626,7 +9336,6 @@ var require_vary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9626
9336
|
if (val = append(Array.isArray(val) ? val.join(", ") : String(val), field)) res.setHeader("Vary", val);
|
|
9627
9337
|
}
|
|
9628
9338
|
}));
|
|
9629
|
-
|
|
9630
9339
|
//#endregion
|
|
9631
9340
|
//#region ../../node_modules/.pnpm/cors@2.8.6/node_modules/cors/lib/index.js
|
|
9632
9341
|
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -9793,7 +9502,6 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9793
9502
|
module.exports = middlewareWrapper;
|
|
9794
9503
|
})();
|
|
9795
9504
|
}));
|
|
9796
|
-
|
|
9797
9505
|
//#endregion
|
|
9798
9506
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
9799
9507
|
var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -9846,28 +9554,24 @@ var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9846
9554
|
START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
|
|
9847
9555
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
9848
9556
|
};
|
|
9849
|
-
/**
|
|
9850
|
-
* POSIX Bracket Regex
|
|
9851
|
-
*/
|
|
9852
|
-
const POSIX_REGEX_SOURCE = {
|
|
9853
|
-
alnum: "a-zA-Z0-9",
|
|
9854
|
-
alpha: "a-zA-Z",
|
|
9855
|
-
ascii: "\\x00-\\x7F",
|
|
9856
|
-
blank: " \\t",
|
|
9857
|
-
cntrl: "\\x00-\\x1F\\x7F",
|
|
9858
|
-
digit: "0-9",
|
|
9859
|
-
graph: "\\x21-\\x7E",
|
|
9860
|
-
lower: "a-z",
|
|
9861
|
-
print: "\\x20-\\x7E ",
|
|
9862
|
-
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
9863
|
-
space: " \\t\\r\\n\\v\\f",
|
|
9864
|
-
upper: "A-Z",
|
|
9865
|
-
word: "A-Za-z0-9_",
|
|
9866
|
-
xdigit: "A-Fa-f0-9"
|
|
9867
|
-
};
|
|
9868
9557
|
module.exports = {
|
|
9869
9558
|
MAX_LENGTH: 1024 * 64,
|
|
9870
|
-
POSIX_REGEX_SOURCE
|
|
9559
|
+
POSIX_REGEX_SOURCE: {
|
|
9560
|
+
alnum: "a-zA-Z0-9",
|
|
9561
|
+
alpha: "a-zA-Z",
|
|
9562
|
+
ascii: "\\x00-\\x7F",
|
|
9563
|
+
blank: " \\t",
|
|
9564
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
9565
|
+
digit: "0-9",
|
|
9566
|
+
graph: "\\x21-\\x7E",
|
|
9567
|
+
lower: "a-z",
|
|
9568
|
+
print: "\\x20-\\x7E ",
|
|
9569
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
9570
|
+
space: " \\t\\r\\n\\v\\f",
|
|
9571
|
+
upper: "A-Z",
|
|
9572
|
+
word: "A-Za-z0-9_",
|
|
9573
|
+
xdigit: "A-Fa-f0-9"
|
|
9574
|
+
},
|
|
9871
9575
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
9872
9576
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
9873
9577
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -9957,7 +9661,6 @@ var require_constants$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9957
9661
|
}
|
|
9958
9662
|
};
|
|
9959
9663
|
}));
|
|
9960
|
-
|
|
9961
9664
|
//#endregion
|
|
9962
9665
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
9963
9666
|
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -10003,7 +9706,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10003
9706
|
return output;
|
|
10004
9707
|
};
|
|
10005
9708
|
}));
|
|
10006
|
-
|
|
10007
9709
|
//#endregion
|
|
10008
9710
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
10009
9711
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -10291,7 +9993,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10291
9993
|
};
|
|
10292
9994
|
module.exports = scan;
|
|
10293
9995
|
}));
|
|
10294
|
-
|
|
10295
9996
|
//#endregion
|
|
10296
9997
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
10297
9998
|
var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11149,7 +10850,6 @@ var require_parse$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11149
10850
|
};
|
|
11150
10851
|
module.exports = parse;
|
|
11151
10852
|
}));
|
|
11152
|
-
|
|
11153
10853
|
//#endregion
|
|
11154
10854
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
11155
10855
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11441,13 +11141,11 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11441
11141
|
*/
|
|
11442
11142
|
module.exports = picomatch;
|
|
11443
11143
|
}));
|
|
11444
|
-
|
|
11445
11144
|
//#endregion
|
|
11446
11145
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
|
|
11447
11146
|
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11448
11147
|
module.exports = require_picomatch$1();
|
|
11449
11148
|
}));
|
|
11450
|
-
|
|
11451
11149
|
//#endregion
|
|
11452
11150
|
//#region ../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js
|
|
11453
11151
|
var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11702,7 +11400,6 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11702
11400
|
readdirp.default = readdirp;
|
|
11703
11401
|
module.exports = readdirp;
|
|
11704
11402
|
}));
|
|
11705
|
-
|
|
11706
11403
|
//#endregion
|
|
11707
11404
|
//#region ../../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js
|
|
11708
11405
|
var require_normalize_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11730,7 +11427,6 @@ var require_normalize_path = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
11730
11427
|
return prefix + segs.join("/");
|
|
11731
11428
|
};
|
|
11732
11429
|
}));
|
|
11733
|
-
|
|
11734
11430
|
//#endregion
|
|
11735
11431
|
//#region ../../node_modules/.pnpm/anymatch@3.1.3/node_modules/anymatch/index.js
|
|
11736
11432
|
var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11803,7 +11499,6 @@ var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11803
11499
|
anymatch.default = anymatch;
|
|
11804
11500
|
module.exports = anymatch;
|
|
11805
11501
|
}));
|
|
11806
|
-
|
|
11807
11502
|
//#endregion
|
|
11808
11503
|
//#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
11809
11504
|
var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11823,7 +11518,6 @@ var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11823
11518
|
return false;
|
|
11824
11519
|
};
|
|
11825
11520
|
}));
|
|
11826
|
-
|
|
11827
11521
|
//#endregion
|
|
11828
11522
|
//#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
11829
11523
|
var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11921,7 +11615,6 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11921
11615
|
return check(str);
|
|
11922
11616
|
};
|
|
11923
11617
|
}));
|
|
11924
|
-
|
|
11925
11618
|
//#endregion
|
|
11926
11619
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
11927
11620
|
var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -11949,7 +11642,6 @@ var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11949
11642
|
return str.replace(escaped, "$1");
|
|
11950
11643
|
};
|
|
11951
11644
|
}));
|
|
11952
|
-
|
|
11953
11645
|
//#endregion
|
|
11954
11646
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
11955
11647
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -12045,7 +11737,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12045
11737
|
return result;
|
|
12046
11738
|
};
|
|
12047
11739
|
}));
|
|
12048
|
-
|
|
12049
11740
|
//#endregion
|
|
12050
11741
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
12051
11742
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12066,7 +11757,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12066
11757
|
return stringify(ast);
|
|
12067
11758
|
};
|
|
12068
11759
|
}));
|
|
12069
|
-
|
|
12070
11760
|
//#endregion
|
|
12071
11761
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
12072
11762
|
/*!
|
|
@@ -12082,7 +11772,6 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12082
11772
|
return false;
|
|
12083
11773
|
};
|
|
12084
11774
|
}));
|
|
12085
|
-
|
|
12086
11775
|
//#endregion
|
|
12087
11776
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
12088
11777
|
/*!
|
|
@@ -12282,7 +11971,6 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
12282
11971
|
*/
|
|
12283
11972
|
module.exports = toRegexRange;
|
|
12284
11973
|
}));
|
|
12285
|
-
|
|
12286
11974
|
//#endregion
|
|
12287
11975
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
12288
11976
|
/*!
|
|
@@ -12447,7 +12135,6 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12447
12135
|
};
|
|
12448
12136
|
module.exports = fill;
|
|
12449
12137
|
}));
|
|
12450
|
-
|
|
12451
12138
|
//#endregion
|
|
12452
12139
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
12453
12140
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12484,7 +12171,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12484
12171
|
};
|
|
12485
12172
|
module.exports = compile;
|
|
12486
12173
|
}));
|
|
12487
|
-
|
|
12488
12174
|
//#endregion
|
|
12489
12175
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
12490
12176
|
var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12561,7 +12247,6 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12561
12247
|
};
|
|
12562
12248
|
module.exports = expand;
|
|
12563
12249
|
}));
|
|
12564
|
-
|
|
12565
12250
|
//#endregion
|
|
12566
12251
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
12567
12252
|
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12613,7 +12298,6 @@ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12613
12298
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
12614
12299
|
};
|
|
12615
12300
|
}));
|
|
12616
|
-
|
|
12617
12301
|
//#endregion
|
|
12618
12302
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
12619
12303
|
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12901,7 +12585,6 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12901
12585
|
};
|
|
12902
12586
|
module.exports = parse;
|
|
12903
12587
|
}));
|
|
12904
|
-
|
|
12905
12588
|
//#endregion
|
|
12906
12589
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
12907
12590
|
var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -13029,7 +12712,6 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13029
12712
|
*/
|
|
13030
12713
|
module.exports = braces;
|
|
13031
12714
|
}));
|
|
13032
|
-
|
|
13033
12715
|
//#endregion
|
|
13034
12716
|
//#region ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json
|
|
13035
12717
|
var require_binary_extensions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -13297,13 +12979,11 @@ var require_binary_extensions$1 = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
13297
12979
|
"zipx"
|
|
13298
12980
|
];
|
|
13299
12981
|
}));
|
|
13300
|
-
|
|
13301
12982
|
//#endregion
|
|
13302
12983
|
//#region ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/index.js
|
|
13303
12984
|
var require_binary_extensions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13304
12985
|
module.exports = require_binary_extensions$1();
|
|
13305
12986
|
}));
|
|
13306
|
-
|
|
13307
12987
|
//#endregion
|
|
13308
12988
|
//#region ../../node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js
|
|
13309
12989
|
var require_is_binary_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -13312,7 +12992,6 @@ var require_is_binary_path = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
13312
12992
|
const extensions = new Set(binaryExtensions);
|
|
13313
12993
|
module.exports = (filePath) => extensions.has(path$10.extname(filePath).slice(1).toLowerCase());
|
|
13314
12994
|
}));
|
|
13315
|
-
|
|
13316
12995
|
//#endregion
|
|
13317
12996
|
//#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js
|
|
13318
12997
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -13377,7 +13056,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13377
13056
|
exports.isLinux = platform === "linux";
|
|
13378
13057
|
exports.isIBMi = os$3.type() === "OS400";
|
|
13379
13058
|
}));
|
|
13380
|
-
|
|
13381
13059
|
//#endregion
|
|
13382
13060
|
//#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/nodefs-handler.js
|
|
13383
13061
|
var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -13835,7 +13513,6 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
13835
13513
|
};
|
|
13836
13514
|
module.exports = NodeFsHandler;
|
|
13837
13515
|
}));
|
|
13838
|
-
|
|
13839
13516
|
//#endregion
|
|
13840
13517
|
//#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/fsevents-handler.js
|
|
13841
13518
|
var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -14171,7 +13848,6 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
14171
13848
|
module.exports = FsEventsHandler;
|
|
14172
13849
|
module.exports.canUse = canUse;
|
|
14173
13850
|
}));
|
|
14174
|
-
|
|
14175
13851
|
//#endregion
|
|
14176
13852
|
//#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/index.js
|
|
14177
13853
|
var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -14856,7 +14532,6 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14856
14532
|
};
|
|
14857
14533
|
exports.watch = watch;
|
|
14858
14534
|
}));
|
|
14859
|
-
|
|
14860
14535
|
//#endregion
|
|
14861
14536
|
//#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js
|
|
14862
14537
|
var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -14870,7 +14545,6 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14870
14545
|
}).join(" ");
|
|
14871
14546
|
};
|
|
14872
14547
|
}));
|
|
14873
|
-
|
|
14874
14548
|
//#endregion
|
|
14875
14549
|
//#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js
|
|
14876
14550
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15010,14 +14684,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15010
14684
|
}, []);
|
|
15011
14685
|
};
|
|
15012
14686
|
}));
|
|
15013
|
-
|
|
15014
14687
|
//#endregion
|
|
15015
14688
|
//#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js
|
|
15016
14689
|
var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15017
14690
|
exports.quote = require_quote();
|
|
15018
14691
|
exports.parse = require_parse$1();
|
|
15019
14692
|
}));
|
|
15020
|
-
|
|
15021
14693
|
//#endregion
|
|
15022
14694
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/macos.js
|
|
15023
14695
|
var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15052,7 +14724,6 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15052
14724
|
"/Applications/Zed.app/Contents/MacOS/zed": "zed"
|
|
15053
14725
|
};
|
|
15054
14726
|
}));
|
|
15055
|
-
|
|
15056
14727
|
//#endregion
|
|
15057
14728
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/linux.js
|
|
15058
14729
|
var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15087,7 +14758,6 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15087
14758
|
zed: "zed"
|
|
15088
14759
|
};
|
|
15089
14760
|
}));
|
|
15090
|
-
|
|
15091
14761
|
//#endregion
|
|
15092
14762
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/editor-info/windows.js
|
|
15093
14763
|
var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15121,7 +14791,6 @@ var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15121
14791
|
"Antigravity.exe"
|
|
15122
14792
|
];
|
|
15123
14793
|
}));
|
|
15124
|
-
|
|
15125
14794
|
//#endregion
|
|
15126
14795
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/guess.js
|
|
15127
14796
|
var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15183,7 +14852,6 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15183
14852
|
return [null];
|
|
15184
14853
|
};
|
|
15185
14854
|
}));
|
|
15186
|
-
|
|
15187
14855
|
//#endregion
|
|
15188
14856
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/get-args.js
|
|
15189
14857
|
var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15263,7 +14931,6 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15263
14931
|
return [fileName];
|
|
15264
14932
|
};
|
|
15265
14933
|
}));
|
|
15266
|
-
|
|
15267
14934
|
//#endregion
|
|
15268
14935
|
//#region ../../node_modules/.pnpm/launch-editor@2.13.1/node_modules/launch-editor/index.js
|
|
15269
14936
|
var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15363,7 +15030,6 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
15363
15030
|
}
|
|
15364
15031
|
module.exports = launchEditor;
|
|
15365
15032
|
}));
|
|
15366
|
-
|
|
15367
15033
|
//#endregion
|
|
15368
15034
|
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.13.1/node_modules/launch-editor-middleware/index.js
|
|
15369
15035
|
var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -15400,7 +15066,111 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
15400
15066
|
};
|
|
15401
15067
|
};
|
|
15402
15068
|
}));
|
|
15403
|
-
|
|
15069
|
+
//#endregion
|
|
15070
|
+
//#region ../../node_modules/.pnpm/@vercel+detect-agent@1.1.0/node_modules/@vercel/detect-agent/dist/index.js
|
|
15071
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15072
|
+
var __defProp = Object.defineProperty;
|
|
15073
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15074
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15075
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15076
|
+
var __export = (target, all) => {
|
|
15077
|
+
for (var name in all) __defProp(target, name, {
|
|
15078
|
+
get: all[name],
|
|
15079
|
+
enumerable: true
|
|
15080
|
+
});
|
|
15081
|
+
};
|
|
15082
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15083
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15084
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15085
|
+
get: () => from[key],
|
|
15086
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15087
|
+
});
|
|
15088
|
+
}
|
|
15089
|
+
return to;
|
|
15090
|
+
};
|
|
15091
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15092
|
+
var src_exports = {};
|
|
15093
|
+
__export(src_exports, {
|
|
15094
|
+
KNOWN_AGENTS: () => KNOWN_AGENTS,
|
|
15095
|
+
determineAgent: () => determineAgent
|
|
15096
|
+
});
|
|
15097
|
+
module.exports = __toCommonJS(src_exports);
|
|
15098
|
+
var import_promises = __require$1("node:fs/promises");
|
|
15099
|
+
var import_node_fs = __require$1("node:fs");
|
|
15100
|
+
const DEVIN_LOCAL_PATH = "/opt/.devin";
|
|
15101
|
+
const CURSOR = "cursor";
|
|
15102
|
+
const CURSOR_CLI = "cursor-cli";
|
|
15103
|
+
const CLAUDE = "claude";
|
|
15104
|
+
const DEVIN = "devin";
|
|
15105
|
+
const REPLIT = "replit";
|
|
15106
|
+
const GEMINI = "gemini";
|
|
15107
|
+
const CODEX = "codex";
|
|
15108
|
+
const AUGMENT_CLI = "augment-cli";
|
|
15109
|
+
const OPENCODE = "opencode";
|
|
15110
|
+
const KNOWN_AGENTS = {
|
|
15111
|
+
CURSOR,
|
|
15112
|
+
CURSOR_CLI,
|
|
15113
|
+
CLAUDE,
|
|
15114
|
+
DEVIN,
|
|
15115
|
+
REPLIT,
|
|
15116
|
+
GEMINI,
|
|
15117
|
+
CODEX,
|
|
15118
|
+
AUGMENT_CLI,
|
|
15119
|
+
OPENCODE
|
|
15120
|
+
};
|
|
15121
|
+
async function determineAgent() {
|
|
15122
|
+
if (process.env.AI_AGENT) {
|
|
15123
|
+
const name = process.env.AI_AGENT.trim();
|
|
15124
|
+
if (name) return {
|
|
15125
|
+
isAgent: true,
|
|
15126
|
+
agent: { name }
|
|
15127
|
+
};
|
|
15128
|
+
}
|
|
15129
|
+
if (process.env.CURSOR_TRACE_ID) return {
|
|
15130
|
+
isAgent: true,
|
|
15131
|
+
agent: { name: CURSOR }
|
|
15132
|
+
};
|
|
15133
|
+
if (process.env.CURSOR_AGENT) return {
|
|
15134
|
+
isAgent: true,
|
|
15135
|
+
agent: { name: CURSOR_CLI }
|
|
15136
|
+
};
|
|
15137
|
+
if (process.env.GEMINI_CLI) return {
|
|
15138
|
+
isAgent: true,
|
|
15139
|
+
agent: { name: GEMINI }
|
|
15140
|
+
};
|
|
15141
|
+
if (process.env.CODEX_SANDBOX) return {
|
|
15142
|
+
isAgent: true,
|
|
15143
|
+
agent: { name: CODEX }
|
|
15144
|
+
};
|
|
15145
|
+
if (process.env.AUGMENT_AGENT) return {
|
|
15146
|
+
isAgent: true,
|
|
15147
|
+
agent: { name: AUGMENT_CLI }
|
|
15148
|
+
};
|
|
15149
|
+
if (process.env.OPENCODE_CLIENT) return {
|
|
15150
|
+
isAgent: true,
|
|
15151
|
+
agent: { name: OPENCODE }
|
|
15152
|
+
};
|
|
15153
|
+
if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) return {
|
|
15154
|
+
isAgent: true,
|
|
15155
|
+
agent: { name: CLAUDE }
|
|
15156
|
+
};
|
|
15157
|
+
if (process.env.REPL_ID) return {
|
|
15158
|
+
isAgent: true,
|
|
15159
|
+
agent: { name: REPLIT }
|
|
15160
|
+
};
|
|
15161
|
+
try {
|
|
15162
|
+
await (0, import_promises.access)(DEVIN_LOCAL_PATH, import_node_fs.constants.F_OK);
|
|
15163
|
+
return {
|
|
15164
|
+
isAgent: true,
|
|
15165
|
+
agent: { name: DEVIN }
|
|
15166
|
+
};
|
|
15167
|
+
} catch (error) {}
|
|
15168
|
+
return {
|
|
15169
|
+
isAgent: false,
|
|
15170
|
+
agent: void 0
|
|
15171
|
+
};
|
|
15172
|
+
}
|
|
15173
|
+
}));
|
|
15404
15174
|
//#endregion
|
|
15405
15175
|
//#region ../../rolldown-vite/packages/vite/src/node/http.ts
|
|
15406
15176
|
async function resolveHttpServer(app, httpsOptions) {
|
|
@@ -15498,7 +15268,6 @@ function setClientErrorHandler(server, logger) {
|
|
|
15498
15268
|
socket.end(`HTTP/1.1 ${msg}\r\n\r\n`);
|
|
15499
15269
|
});
|
|
15500
15270
|
}
|
|
15501
|
-
|
|
15502
15271
|
//#endregion
|
|
15503
15272
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/ssrStacktrace.ts
|
|
15504
15273
|
let offset;
|
|
@@ -15527,7 +15296,7 @@ function ssrRewriteStacktrace(stack, moduleGraph) {
|
|
|
15527
15296
|
alreadyRewritten = true;
|
|
15528
15297
|
return input;
|
|
15529
15298
|
}
|
|
15530
|
-
const pos = originalPositionFor$
|
|
15299
|
+
const pos = originalPositionFor$2(traced, {
|
|
15531
15300
|
line,
|
|
15532
15301
|
column
|
|
15533
15302
|
});
|
|
@@ -15560,7 +15329,6 @@ function ssrFixStacktrace(e, moduleGraph) {
|
|
|
15560
15329
|
if (alreadyRewritten) e.message += " (The stacktrace appears to be already rewritten by something else, but was passed to vite.ssrFixStacktrace. This may cause incorrect stacktraces.)";
|
|
15561
15330
|
rewroteStacktraces.add(e);
|
|
15562
15331
|
}
|
|
15563
|
-
|
|
15564
15332
|
//#endregion
|
|
15565
15333
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/runtime/serverModuleRunner.ts
|
|
15566
15334
|
function createHMROptions(environment, options) {
|
|
@@ -15620,11 +15388,11 @@ function createServerModuleRunner(environment, options = {}) {
|
|
|
15620
15388
|
sourcemapInterceptor: resolveSourceMapOptions(options)
|
|
15621
15389
|
}, options.evaluator);
|
|
15622
15390
|
}
|
|
15623
|
-
|
|
15624
15391
|
//#endregion
|
|
15625
15392
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/ssrModuleLoader.ts
|
|
15626
15393
|
async function ssrLoadModule(url, server, fixStacktrace) {
|
|
15627
15394
|
const environment = server.environments.ssr;
|
|
15395
|
+
if (!isRunnableDevEnvironment(environment)) throw new Error(`ssrLoadModule requires the 'ssr' environment to be a runnable environment.`);
|
|
15628
15396
|
server._ssrCompatModuleRunner ||= new SSRCompatModuleRunner(environment);
|
|
15629
15397
|
url = unwrapId(url);
|
|
15630
15398
|
return instantiateModule(url, server._ssrCompatModuleRunner, environment, fixStacktrace);
|
|
@@ -15669,7 +15437,6 @@ var SSRCompatModuleRunner = class extends ModuleRunner {
|
|
|
15669
15437
|
}
|
|
15670
15438
|
}
|
|
15671
15439
|
};
|
|
15672
|
-
|
|
15673
15440
|
//#endregion
|
|
15674
15441
|
//#region ../../node_modules/.pnpm/periscopic@4.0.2/node_modules/periscopic/src/index.js
|
|
15675
15442
|
/**
|
|
@@ -15710,7 +15477,6 @@ function extract_identifiers(param, nodes = []) {
|
|
|
15710
15477
|
}
|
|
15711
15478
|
return nodes;
|
|
15712
15479
|
}
|
|
15713
|
-
|
|
15714
15480
|
//#endregion
|
|
15715
15481
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
15716
15482
|
/**
|
|
@@ -15761,7 +15527,6 @@ var WalkerBase = class {
|
|
|
15761
15527
|
else delete parent[prop];
|
|
15762
15528
|
}
|
|
15763
15529
|
};
|
|
15764
|
-
|
|
15765
15530
|
//#endregion
|
|
15766
15531
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
|
|
15767
15532
|
/**
|
|
@@ -15877,7 +15642,6 @@ var SyncWalker = class extends WalkerBase {
|
|
|
15877
15642
|
function isNode(value) {
|
|
15878
15643
|
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
15879
15644
|
}
|
|
15880
|
-
|
|
15881
15645
|
//#endregion
|
|
15882
15646
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
|
|
15883
15647
|
/**
|
|
@@ -15896,12 +15660,10 @@ function isNode(value) {
|
|
|
15896
15660
|
function walk$1(ast, { enter, leave }) {
|
|
15897
15661
|
return new SyncWalker(enter, leave).visit(ast, null);
|
|
15898
15662
|
}
|
|
15899
|
-
|
|
15900
15663
|
//#endregion
|
|
15901
15664
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/json.ts
|
|
15902
15665
|
const jsonLangRE = new RegExp(`\\.(?:json|json5)(?:$|\\?)`);
|
|
15903
15666
|
const isJSONRequest = (request) => jsonLangRE.test(request);
|
|
15904
|
-
|
|
15905
15667
|
//#endregion
|
|
15906
15668
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/ssrTransform.ts
|
|
15907
15669
|
const ssrModuleExportsKey = `__vite_ssr_exports__`;
|
|
@@ -16207,7 +15969,6 @@ function isInDestructuringAssignment(parent, parentStack) {
|
|
|
16207
15969
|
if (parent.type === "Property" || parent.type === "ArrayPattern") return parentStack.some((i) => i.type === "AssignmentExpression");
|
|
16208
15970
|
return false;
|
|
16209
15971
|
}
|
|
16210
|
-
|
|
16211
15972
|
//#endregion
|
|
16212
15973
|
//#region ../../node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js
|
|
16213
15974
|
let isDockerCached;
|
|
@@ -16230,7 +15991,6 @@ function isDocker() {
|
|
|
16230
15991
|
if (isDockerCached === void 0) isDockerCached = hasDockerEnv() || hasDockerCGroup();
|
|
16231
15992
|
return isDockerCached;
|
|
16232
15993
|
}
|
|
16233
|
-
|
|
16234
15994
|
//#endregion
|
|
16235
15995
|
//#region ../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js
|
|
16236
15996
|
let cachedResult;
|
|
@@ -16246,7 +16006,6 @@ function isInsideContainer() {
|
|
|
16246
16006
|
if (cachedResult === void 0) cachedResult = hasContainerEnv() || isDocker();
|
|
16247
16007
|
return cachedResult;
|
|
16248
16008
|
}
|
|
16249
|
-
|
|
16250
16009
|
//#endregion
|
|
16251
16010
|
//#region ../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js
|
|
16252
16011
|
const isWsl = () => {
|
|
@@ -16262,7 +16021,6 @@ const isWsl = () => {
|
|
|
16262
16021
|
}
|
|
16263
16022
|
};
|
|
16264
16023
|
var is_wsl_default = process$1.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
16265
|
-
|
|
16266
16024
|
//#endregion
|
|
16267
16025
|
//#region ../../node_modules/.pnpm/wsl-utils@0.1.0/node_modules/wsl-utils/index.js
|
|
16268
16026
|
const wslDrivesMountPoint = (() => {
|
|
@@ -16292,7 +16050,6 @@ const powerShellPath = async () => {
|
|
|
16292
16050
|
if (is_wsl_default) return powerShellPathFromWsl();
|
|
16293
16051
|
return `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
16294
16052
|
};
|
|
16295
|
-
|
|
16296
16053
|
//#endregion
|
|
16297
16054
|
//#region ../../node_modules/.pnpm/define-lazy-prop@3.0.0/node_modules/define-lazy-prop/index.js
|
|
16298
16055
|
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
@@ -16315,7 +16072,6 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
16315
16072
|
});
|
|
16316
16073
|
return object;
|
|
16317
16074
|
}
|
|
16318
|
-
|
|
16319
16075
|
//#endregion
|
|
16320
16076
|
//#region ../../node_modules/.pnpm/default-browser-id@5.0.1/node_modules/default-browser-id/index.js
|
|
16321
16077
|
const execFileAsync$3 = promisify(execFile);
|
|
@@ -16330,7 +16086,6 @@ async function defaultBrowserId() {
|
|
|
16330
16086
|
if (browserId === "com.apple.safari") return "com.apple.Safari";
|
|
16331
16087
|
return browserId;
|
|
16332
16088
|
}
|
|
16333
|
-
|
|
16334
16089
|
//#endregion
|
|
16335
16090
|
//#region ../../node_modules/.pnpm/run-applescript@7.1.0/node_modules/run-applescript/index.js
|
|
16336
16091
|
const execFileAsync$2 = promisify(execFile);
|
|
@@ -16346,13 +16101,11 @@ async function runAppleScript(script, { humanReadableOutput = true, signal } = {
|
|
|
16346
16101
|
], execOptions);
|
|
16347
16102
|
return stdout.trim();
|
|
16348
16103
|
}
|
|
16349
|
-
|
|
16350
16104
|
//#endregion
|
|
16351
16105
|
//#region ../../node_modules/.pnpm/bundle-name@4.1.0/node_modules/bundle-name/index.js
|
|
16352
16106
|
async function bundleName(bundleId) {
|
|
16353
16107
|
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
16354
16108
|
}
|
|
16355
|
-
|
|
16356
16109
|
//#endregion
|
|
16357
16110
|
//#region ../../node_modules/.pnpm/default-browser@5.4.0/node_modules/default-browser/windows.js
|
|
16358
16111
|
const execFileAsync$1 = promisify(execFile);
|
|
@@ -16422,7 +16175,7 @@ const windowsBrowserProgIds = {
|
|
|
16422
16175
|
id: "com.microsoft.ie"
|
|
16423
16176
|
}
|
|
16424
16177
|
};
|
|
16425
|
-
|
|
16178
|
+
new Map(Object.entries(windowsBrowserProgIds));
|
|
16426
16179
|
var UnknownBrowserError = class extends Error {};
|
|
16427
16180
|
async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
|
|
16428
16181
|
const { stdout } = await _execFileAsync("reg", [
|
|
@@ -16438,7 +16191,6 @@ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
|
|
|
16438
16191
|
if (!browser) throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
|
|
16439
16192
|
return browser;
|
|
16440
16193
|
}
|
|
16441
|
-
|
|
16442
16194
|
//#endregion
|
|
16443
16195
|
//#region ../../node_modules/.pnpm/default-browser@5.4.0/node_modules/default-browser/index.js
|
|
16444
16196
|
const execFileAsync = promisify(execFile);
|
|
@@ -16466,7 +16218,6 @@ async function defaultBrowser() {
|
|
|
16466
16218
|
if (process$1.platform === "win32") return defaultBrowser$1();
|
|
16467
16219
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
16468
16220
|
}
|
|
16469
|
-
|
|
16470
16221
|
//#endregion
|
|
16471
16222
|
//#region ../../node_modules/.pnpm/open@10.2.0/node_modules/open/index.js
|
|
16472
16223
|
const execFile$1 = promisify(childProcess.execFile);
|
|
@@ -16668,7 +16419,6 @@ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
|
|
|
16668
16419
|
}, { wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" }));
|
|
16669
16420
|
defineLazyProperty(apps, "browser", () => "browser");
|
|
16670
16421
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
16671
|
-
|
|
16672
16422
|
//#endregion
|
|
16673
16423
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
16674
16424
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16699,7 +16449,6 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16699
16449
|
return checkStat(fs$5.statSync(path), path, options);
|
|
16700
16450
|
}
|
|
16701
16451
|
}));
|
|
16702
|
-
|
|
16703
16452
|
//#endregion
|
|
16704
16453
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
16705
16454
|
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16730,7 +16479,6 @@ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16730
16479
|
return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
16731
16480
|
}
|
|
16732
16481
|
}));
|
|
16733
|
-
|
|
16734
16482
|
//#endregion
|
|
16735
16483
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
16736
16484
|
var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16773,7 +16521,6 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16773
16521
|
}
|
|
16774
16522
|
}
|
|
16775
16523
|
}));
|
|
16776
|
-
|
|
16777
16524
|
//#endregion
|
|
16778
16525
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
16779
16526
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16846,7 +16593,6 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16846
16593
|
module.exports = which;
|
|
16847
16594
|
which.sync = whichSync;
|
|
16848
16595
|
}));
|
|
16849
|
-
|
|
16850
16596
|
//#endregion
|
|
16851
16597
|
//#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
16852
16598
|
var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16858,7 +16604,6 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16858
16604
|
module.exports = pathKey;
|
|
16859
16605
|
module.exports.default = pathKey;
|
|
16860
16606
|
}));
|
|
16861
|
-
|
|
16862
16607
|
//#endregion
|
|
16863
16608
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
16864
16609
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16890,7 +16635,6 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
16890
16635
|
}
|
|
16891
16636
|
module.exports = resolveCommand;
|
|
16892
16637
|
}));
|
|
16893
|
-
|
|
16894
16638
|
//#endregion
|
|
16895
16639
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
16896
16640
|
var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16911,13 +16655,11 @@ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16911
16655
|
module.exports.command = escapeCommand;
|
|
16912
16656
|
module.exports.argument = escapeArgument;
|
|
16913
16657
|
}));
|
|
16914
|
-
|
|
16915
16658
|
//#endregion
|
|
16916
16659
|
//#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
16917
16660
|
var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16918
16661
|
module.exports = /^#!(.*)/;
|
|
16919
16662
|
}));
|
|
16920
|
-
|
|
16921
16663
|
//#endregion
|
|
16922
16664
|
//#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
16923
16665
|
var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16931,7 +16673,6 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
16931
16673
|
return argument ? `${binary} ${argument}` : binary;
|
|
16932
16674
|
};
|
|
16933
16675
|
}));
|
|
16934
|
-
|
|
16935
16676
|
//#endregion
|
|
16936
16677
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
16937
16678
|
var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -16950,7 +16691,6 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16950
16691
|
}
|
|
16951
16692
|
module.exports = readShebang;
|
|
16952
16693
|
}));
|
|
16953
|
-
|
|
16954
16694
|
//#endregion
|
|
16955
16695
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
16956
16696
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17012,7 +16752,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17012
16752
|
}
|
|
17013
16753
|
module.exports = parse;
|
|
17014
16754
|
}));
|
|
17015
|
-
|
|
17016
16755
|
//#endregion
|
|
17017
16756
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
17018
16757
|
var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17052,10 +16791,18 @@ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17052
16791
|
notFoundError
|
|
17053
16792
|
};
|
|
17054
16793
|
}));
|
|
17055
|
-
|
|
17056
16794
|
//#endregion
|
|
17057
|
-
//#region ../../
|
|
17058
|
-
|
|
16795
|
+
//#region ../../rolldown-vite/packages/vite/src/node/server/openBrowser.ts
|
|
16796
|
+
/**
|
|
16797
|
+
* The following is modified based on source found in
|
|
16798
|
+
* https://github.com/facebook/create-react-app
|
|
16799
|
+
*
|
|
16800
|
+
* MIT Licensed
|
|
16801
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
16802
|
+
* https://github.com/facebook/create-react-app/blob/main/LICENSE
|
|
16803
|
+
*
|
|
16804
|
+
*/
|
|
16805
|
+
var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17059
16806
|
const cp = __require$1("child_process");
|
|
17060
16807
|
const parse = require_parse();
|
|
17061
16808
|
const enoent = require_enoent();
|
|
@@ -17076,20 +16823,7 @@ var require_cross_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17076
16823
|
module.exports.sync = spawnSync;
|
|
17077
16824
|
module.exports._parse = parse;
|
|
17078
16825
|
module.exports._enoent = enoent;
|
|
17079
|
-
}));
|
|
17080
|
-
|
|
17081
|
-
//#endregion
|
|
17082
|
-
//#region ../../rolldown-vite/packages/vite/src/node/server/openBrowser.ts
|
|
17083
|
-
/**
|
|
17084
|
-
* The following is modified based on source found in
|
|
17085
|
-
* https://github.com/facebook/create-react-app
|
|
17086
|
-
*
|
|
17087
|
-
* MIT Licensed
|
|
17088
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
17089
|
-
* https://github.com/facebook/create-react-app/blob/main/LICENSE
|
|
17090
|
-
*
|
|
17091
|
-
*/
|
|
17092
|
-
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
16826
|
+
})))(), 1);
|
|
17093
16827
|
/**
|
|
17094
16828
|
* Reads the BROWSER environment variable and decides what to do with it.
|
|
17095
16829
|
*/
|
|
@@ -17154,7 +16888,6 @@ function execAsync(command, options) {
|
|
|
17154
16888
|
});
|
|
17155
16889
|
});
|
|
17156
16890
|
}
|
|
17157
|
-
|
|
17158
16891
|
//#endregion
|
|
17159
16892
|
//#region ../../rolldown-vite/packages/vite/src/node/shortcuts.ts
|
|
17160
16893
|
function bindCLIShortcuts(server, opts, enabled = process.stdin.isTTY && !process.env.CI) {
|
|
@@ -17266,7 +16999,6 @@ const BASE_PREVIEW_SHORTCUTS = [{
|
|
|
17266
16999
|
}
|
|
17267
17000
|
}
|
|
17268
17001
|
}];
|
|
17269
|
-
|
|
17270
17002
|
//#endregion
|
|
17271
17003
|
//#region ../../rolldown-vite/packages/vite/src/node/watch.ts
|
|
17272
17004
|
function getResolvedOutDirs(root, outDir, outputOptions) {
|
|
@@ -17299,9 +17031,12 @@ function resolveChokidarOptions(options, resolvedOutDirs, emptyOutDir, cacheDir)
|
|
|
17299
17031
|
...otherOptions
|
|
17300
17032
|
};
|
|
17301
17033
|
}
|
|
17302
|
-
function
|
|
17034
|
+
function convertToWatcherOptions(options) {
|
|
17303
17035
|
if (!options) return;
|
|
17304
|
-
return {
|
|
17036
|
+
return {
|
|
17037
|
+
usePolling: options.usePolling,
|
|
17038
|
+
pollInterval: options.interval
|
|
17039
|
+
};
|
|
17305
17040
|
}
|
|
17306
17041
|
var NoopWatcher = class extends EventEmitter {
|
|
17307
17042
|
constructor(options) {
|
|
@@ -17328,7 +17063,6 @@ var NoopWatcher = class extends EventEmitter {
|
|
|
17328
17063
|
function createNoopWatcher(options) {
|
|
17329
17064
|
return new NoopWatcher(options);
|
|
17330
17065
|
}
|
|
17331
|
-
|
|
17332
17066
|
//#endregion
|
|
17333
17067
|
//#region ../../rolldown-vite/packages/vite/src/node/publicDir.ts
|
|
17334
17068
|
const publicFilesMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -17337,7 +17071,7 @@ async function initPublicFiles(config) {
|
|
|
17337
17071
|
try {
|
|
17338
17072
|
fileNames = await recursiveReaddir(config.publicDir);
|
|
17339
17073
|
} catch (e) {
|
|
17340
|
-
if (e.code === ERR_SYMLINK_IN_RECURSIVE_READDIR) return;
|
|
17074
|
+
if (e.code === "ERR_SYMLINK_IN_RECURSIVE_READDIR") return;
|
|
17341
17075
|
throw e;
|
|
17342
17076
|
}
|
|
17343
17077
|
const publicFiles = new Set(fileNames.map((fileName) => fileName.slice(config.publicDir.length)));
|
|
@@ -17357,7 +17091,6 @@ function checkPublicFile(url, config) {
|
|
|
17357
17091
|
if (!publicFile.startsWith(withTrailingSlash(publicDir))) return;
|
|
17358
17092
|
return tryStatSync(publicFile)?.isFile() ? publicFile : void 0;
|
|
17359
17093
|
}
|
|
17360
|
-
|
|
17361
17094
|
//#endregion
|
|
17362
17095
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
17363
17096
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17381,7 +17114,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17381
17114
|
NOOP: () => {}
|
|
17382
17115
|
};
|
|
17383
17116
|
}));
|
|
17384
|
-
|
|
17385
17117
|
//#endregion
|
|
17386
17118
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
17387
17119
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17482,7 +17214,6 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17482
17214
|
};
|
|
17483
17215
|
} catch (e) {}
|
|
17484
17216
|
}));
|
|
17485
|
-
|
|
17486
17217
|
//#endregion
|
|
17487
17218
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
17488
17219
|
var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17534,7 +17265,6 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17534
17265
|
};
|
|
17535
17266
|
module.exports = Limiter;
|
|
17536
17267
|
}));
|
|
17537
|
-
|
|
17538
17268
|
//#endregion
|
|
17539
17269
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
17540
17270
|
var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -17868,7 +17598,6 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
17868
17598
|
this[kCallback](err);
|
|
17869
17599
|
}
|
|
17870
17600
|
}));
|
|
17871
|
-
|
|
17872
17601
|
//#endregion
|
|
17873
17602
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
17874
17603
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -18065,7 +17794,6 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18065
17794
|
};
|
|
18066
17795
|
} catch (e) {}
|
|
18067
17796
|
}));
|
|
18068
|
-
|
|
18069
17797
|
//#endregion
|
|
18070
17798
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
18071
17799
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -18513,7 +18241,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18513
18241
|
};
|
|
18514
18242
|
module.exports = Receiver;
|
|
18515
18243
|
}));
|
|
18516
|
-
|
|
18517
18244
|
//#endregion
|
|
18518
18245
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
18519
18246
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -18531,10 +18258,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18531
18258
|
const DEFAULT = 0;
|
|
18532
18259
|
const DEFLATING = 1;
|
|
18533
18260
|
const GET_BLOB_DATA = 2;
|
|
18534
|
-
|
|
18535
|
-
* HyBi Sender implementation.
|
|
18536
|
-
*/
|
|
18537
|
-
var Sender = class Sender {
|
|
18261
|
+
module.exports = class Sender {
|
|
18538
18262
|
/**
|
|
18539
18263
|
* Creates a Sender instance.
|
|
18540
18264
|
*
|
|
@@ -18979,7 +18703,6 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18979
18703
|
} else this._socket.write(list[0], cb);
|
|
18980
18704
|
}
|
|
18981
18705
|
};
|
|
18982
|
-
module.exports = Sender;
|
|
18983
18706
|
/**
|
|
18984
18707
|
* Calls queued callbacks with an error.
|
|
18985
18708
|
*
|
|
@@ -19009,7 +18732,6 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19009
18732
|
sender.onerror(err);
|
|
19010
18733
|
}
|
|
19011
18734
|
}));
|
|
19012
|
-
|
|
19013
18735
|
//#endregion
|
|
19014
18736
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
19015
18737
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -19159,61 +18881,54 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19159
18881
|
}
|
|
19160
18882
|
};
|
|
19161
18883
|
Object.defineProperty(MessageEvent.prototype, "data", { enumerable: true });
|
|
19162
|
-
/**
|
|
19163
|
-
* This provides methods for emulating the `EventTarget` interface. It's not
|
|
19164
|
-
* meant to be used directly.
|
|
19165
|
-
*
|
|
19166
|
-
* @mixin
|
|
19167
|
-
*/
|
|
19168
|
-
const EventTarget = {
|
|
19169
|
-
addEventListener(type, handler, options = {}) {
|
|
19170
|
-
for (const listener of this.listeners(type)) if (!options[kForOnEventAttribute] && listener[kListener] === handler && !listener[kForOnEventAttribute]) return;
|
|
19171
|
-
let wrapper;
|
|
19172
|
-
if (type === "message") wrapper = function onMessage(data, isBinary) {
|
|
19173
|
-
const event = new MessageEvent("message", { data: isBinary ? data : data.toString() });
|
|
19174
|
-
event[kTarget] = this;
|
|
19175
|
-
callListener(handler, this, event);
|
|
19176
|
-
};
|
|
19177
|
-
else if (type === "close") wrapper = function onClose(code, message) {
|
|
19178
|
-
const event = new CloseEvent("close", {
|
|
19179
|
-
code,
|
|
19180
|
-
reason: message.toString(),
|
|
19181
|
-
wasClean: this._closeFrameReceived && this._closeFrameSent
|
|
19182
|
-
});
|
|
19183
|
-
event[kTarget] = this;
|
|
19184
|
-
callListener(handler, this, event);
|
|
19185
|
-
};
|
|
19186
|
-
else if (type === "error") wrapper = function onError(error) {
|
|
19187
|
-
const event = new ErrorEvent("error", {
|
|
19188
|
-
error,
|
|
19189
|
-
message: error.message
|
|
19190
|
-
});
|
|
19191
|
-
event[kTarget] = this;
|
|
19192
|
-
callListener(handler, this, event);
|
|
19193
|
-
};
|
|
19194
|
-
else if (type === "open") wrapper = function onOpen() {
|
|
19195
|
-
const event = new Event("open");
|
|
19196
|
-
event[kTarget] = this;
|
|
19197
|
-
callListener(handler, this, event);
|
|
19198
|
-
};
|
|
19199
|
-
else return;
|
|
19200
|
-
wrapper[kForOnEventAttribute] = !!options[kForOnEventAttribute];
|
|
19201
|
-
wrapper[kListener] = handler;
|
|
19202
|
-
if (options.once) this.once(type, wrapper);
|
|
19203
|
-
else this.on(type, wrapper);
|
|
19204
|
-
},
|
|
19205
|
-
removeEventListener(type, handler) {
|
|
19206
|
-
for (const listener of this.listeners(type)) if (listener[kListener] === handler && !listener[kForOnEventAttribute]) {
|
|
19207
|
-
this.removeListener(type, listener);
|
|
19208
|
-
break;
|
|
19209
|
-
}
|
|
19210
|
-
}
|
|
19211
|
-
};
|
|
19212
18884
|
module.exports = {
|
|
19213
18885
|
CloseEvent,
|
|
19214
18886
|
ErrorEvent,
|
|
19215
18887
|
Event,
|
|
19216
|
-
EventTarget
|
|
18888
|
+
EventTarget: {
|
|
18889
|
+
addEventListener(type, handler, options = {}) {
|
|
18890
|
+
for (const listener of this.listeners(type)) if (!options[kForOnEventAttribute] && listener[kListener] === handler && !listener[kForOnEventAttribute]) return;
|
|
18891
|
+
let wrapper;
|
|
18892
|
+
if (type === "message") wrapper = function onMessage(data, isBinary) {
|
|
18893
|
+
const event = new MessageEvent("message", { data: isBinary ? data : data.toString() });
|
|
18894
|
+
event[kTarget] = this;
|
|
18895
|
+
callListener(handler, this, event);
|
|
18896
|
+
};
|
|
18897
|
+
else if (type === "close") wrapper = function onClose(code, message) {
|
|
18898
|
+
const event = new CloseEvent("close", {
|
|
18899
|
+
code,
|
|
18900
|
+
reason: message.toString(),
|
|
18901
|
+
wasClean: this._closeFrameReceived && this._closeFrameSent
|
|
18902
|
+
});
|
|
18903
|
+
event[kTarget] = this;
|
|
18904
|
+
callListener(handler, this, event);
|
|
18905
|
+
};
|
|
18906
|
+
else if (type === "error") wrapper = function onError(error) {
|
|
18907
|
+
const event = new ErrorEvent("error", {
|
|
18908
|
+
error,
|
|
18909
|
+
message: error.message
|
|
18910
|
+
});
|
|
18911
|
+
event[kTarget] = this;
|
|
18912
|
+
callListener(handler, this, event);
|
|
18913
|
+
};
|
|
18914
|
+
else if (type === "open") wrapper = function onOpen() {
|
|
18915
|
+
const event = new Event("open");
|
|
18916
|
+
event[kTarget] = this;
|
|
18917
|
+
callListener(handler, this, event);
|
|
18918
|
+
};
|
|
18919
|
+
else return;
|
|
18920
|
+
wrapper[kForOnEventAttribute] = !!options[kForOnEventAttribute];
|
|
18921
|
+
wrapper[kListener] = handler;
|
|
18922
|
+
if (options.once) this.once(type, wrapper);
|
|
18923
|
+
else this.on(type, wrapper);
|
|
18924
|
+
},
|
|
18925
|
+
removeEventListener(type, handler) {
|
|
18926
|
+
for (const listener of this.listeners(type)) if (listener[kListener] === handler && !listener[kForOnEventAttribute]) {
|
|
18927
|
+
this.removeListener(type, listener);
|
|
18928
|
+
break;
|
|
18929
|
+
}
|
|
18930
|
+
}
|
|
18931
|
+
},
|
|
19217
18932
|
MessageEvent
|
|
19218
18933
|
};
|
|
19219
18934
|
/**
|
|
@@ -19229,7 +18944,6 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19229
18944
|
else listener.call(thisArg, event);
|
|
19230
18945
|
}
|
|
19231
18946
|
}));
|
|
19232
|
-
|
|
19233
18947
|
//#endregion
|
|
19234
18948
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
19235
18949
|
var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -19373,7 +19087,6 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19373
19087
|
parse
|
|
19374
19088
|
};
|
|
19375
19089
|
}));
|
|
19376
|
-
|
|
19377
19090
|
//#endregion
|
|
19378
19091
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
19379
19092
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -20345,7 +20058,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20345
20058
|
}
|
|
20346
20059
|
}
|
|
20347
20060
|
}));
|
|
20348
|
-
|
|
20349
20061
|
//#endregion
|
|
20350
20062
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
20351
20063
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -20462,7 +20174,6 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20462
20174
|
}
|
|
20463
20175
|
module.exports = createWebSocketStream;
|
|
20464
20176
|
}));
|
|
20465
|
-
|
|
20466
20177
|
//#endregion
|
|
20467
20178
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
20468
20179
|
var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -20502,7 +20213,6 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20502
20213
|
}
|
|
20503
20214
|
module.exports = { parse };
|
|
20504
20215
|
}));
|
|
20505
|
-
|
|
20506
20216
|
//#endregion
|
|
20507
20217
|
//#region ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
20508
20218
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -20877,15 +20587,11 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20877
20587
|
} else abortHandshake(socket, code, message, headers);
|
|
20878
20588
|
}
|
|
20879
20589
|
}));
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
var import_receiver = /* @__PURE__ */ __toESM(require_receiver(), 1);
|
|
20885
|
-
var import_sender = /* @__PURE__ */ __toESM(require_sender(), 1);
|
|
20886
|
-
var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
|
|
20590
|
+
require_stream();
|
|
20591
|
+
require_receiver();
|
|
20592
|
+
require_sender();
|
|
20593
|
+
require_websocket();
|
|
20887
20594
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
20888
|
-
|
|
20889
20595
|
//#endregion
|
|
20890
20596
|
//#region ../../node_modules/.pnpm/host-validation-middleware@0.1.2/node_modules/host-validation-middleware/dist/index.js
|
|
20891
20597
|
/**
|
|
@@ -20965,11 +20671,9 @@ function hostValidationMiddleware$2(options) {
|
|
|
20965
20671
|
function generateDefaultErrorMessage(hostname) {
|
|
20966
20672
|
return `Blocked request. This host (${JSON.stringify(hostname)}) is not allowed.`;
|
|
20967
20673
|
}
|
|
20968
|
-
|
|
20969
20674
|
//#endregion
|
|
20970
20675
|
//#region ../../rolldown-vite/packages/vite/src/node/server/ws.ts
|
|
20971
20676
|
const WebSocketServerRaw = process.versions.bun ? import.meta.require("ws").WebSocketServer : import_websocket_server.default;
|
|
20972
|
-
const HMR_HEADER = "vite-hmr";
|
|
20973
20677
|
const isWebSocketServer = Symbol("isWebSocketServer");
|
|
20974
20678
|
const wsServerEvents = [
|
|
20975
20679
|
"connection",
|
|
@@ -21041,7 +20745,7 @@ function createWebSocketServer(server, config, httpsOptions) {
|
|
|
21041
20745
|
hmrServerWsListener = (req, socket, head) => {
|
|
21042
20746
|
const protocol = req.headers["sec-websocket-protocol"];
|
|
21043
20747
|
const parsedUrl = new URL(`http://example.com${req.url}`);
|
|
21044
|
-
if ([
|
|
20748
|
+
if (["vite-hmr", "vite-ping"].includes(protocol) && parsedUrl.pathname === hmrBase) handleUpgrade(req, socket, head, protocol === "vite-ping");
|
|
21045
20749
|
};
|
|
21046
20750
|
wsServer.on("upgrade", hmrServerWsListener);
|
|
21047
20751
|
} else {
|
|
@@ -21186,7 +20890,6 @@ function createWebSocketServer(server, config, httpsOptions) {
|
|
|
21186
20890
|
}
|
|
21187
20891
|
};
|
|
21188
20892
|
}
|
|
21189
|
-
|
|
21190
20893
|
//#endregion
|
|
21191
20894
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/base.ts
|
|
21192
20895
|
function baseMiddleware(rawBase, middlewareMode) {
|
|
@@ -21216,7 +20919,6 @@ function baseMiddleware(rawBase, middlewareMode) {
|
|
|
21216
20919
|
}
|
|
21217
20920
|
};
|
|
21218
20921
|
}
|
|
21219
|
-
|
|
21220
20922
|
//#endregion
|
|
21221
20923
|
//#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
21222
20924
|
var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21335,7 +21037,6 @@ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21335
21037
|
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
21336
21038
|
}
|
|
21337
21039
|
}));
|
|
21338
|
-
|
|
21339
21040
|
//#endregion
|
|
21340
21041
|
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
21341
21042
|
var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21538,7 +21239,6 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21538
21239
|
}
|
|
21539
21240
|
module.exports = setup;
|
|
21540
21241
|
}));
|
|
21541
|
-
|
|
21542
21242
|
//#endregion
|
|
21543
21243
|
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
21544
21244
|
var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21735,7 +21435,6 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21735
21435
|
}
|
|
21736
21436
|
};
|
|
21737
21437
|
}));
|
|
21738
|
-
|
|
21739
21438
|
//#endregion
|
|
21740
21439
|
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
21741
21440
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21943,7 +21642,6 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21943
21642
|
return util.inspect(v, this.inspectOpts);
|
|
21944
21643
|
};
|
|
21945
21644
|
}));
|
|
21946
|
-
|
|
21947
21645
|
//#endregion
|
|
21948
21646
|
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
21949
21647
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21954,7 +21652,6 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21954
21652
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
|
|
21955
21653
|
else module.exports = require_node();
|
|
21956
21654
|
}));
|
|
21957
|
-
|
|
21958
21655
|
//#endregion
|
|
21959
21656
|
//#region ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js
|
|
21960
21657
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -21969,7 +21666,6 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21969
21666
|
debug.apply(null, arguments);
|
|
21970
21667
|
};
|
|
21971
21668
|
}));
|
|
21972
|
-
|
|
21973
21669
|
//#endregion
|
|
21974
21670
|
//#region ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js
|
|
21975
21671
|
var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -22400,7 +22096,6 @@ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
22400
22096
|
});
|
|
22401
22097
|
module.exports.wrap = wrap;
|
|
22402
22098
|
}));
|
|
22403
|
-
|
|
22404
22099
|
//#endregion
|
|
22405
22100
|
//#region ../../node_modules/.pnpm/http-proxy-3@1.23.2/node_modules/http-proxy-3/dist/lib/http-proxy/common.js
|
|
22406
22101
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -22551,7 +22246,6 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22551
22246
|
return port !== 0;
|
|
22552
22247
|
}
|
|
22553
22248
|
}));
|
|
22554
|
-
|
|
22555
22249
|
//#endregion
|
|
22556
22250
|
//#region ../../node_modules/.pnpm/http-proxy-3@1.23.2/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js
|
|
22557
22251
|
var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -22663,7 +22357,6 @@ var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22663
22357
|
writeStatusCode
|
|
22664
22358
|
};
|
|
22665
22359
|
}));
|
|
22666
|
-
|
|
22667
22360
|
//#endregion
|
|
22668
22361
|
//#region ../../node_modules/.pnpm/http-proxy-3@1.23.2/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js
|
|
22669
22362
|
var require_web_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -22919,7 +22612,6 @@ var require_web_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22919
22612
|
stream
|
|
22920
22613
|
};
|
|
22921
22614
|
}));
|
|
22922
|
-
|
|
22923
22615
|
//#endregion
|
|
22924
22616
|
//#region ../../node_modules/.pnpm/http-proxy-3@1.23.2/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js
|
|
22925
22617
|
var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -23129,7 +22821,6 @@ var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23129
22821
|
stream
|
|
23130
22822
|
};
|
|
23131
22823
|
}));
|
|
23132
|
-
|
|
23133
22824
|
//#endregion
|
|
23134
22825
|
//#region ../../node_modules/.pnpm/http-proxy-3@1.23.2/node_modules/http-proxy-3/dist/lib/http-proxy/index.js
|
|
23135
22826
|
var require_http_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -23187,7 +22878,7 @@ var require_http_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23187
22878
|
const debug_1 = __importDefault(require_src$2());
|
|
23188
22879
|
const common_1 = require_common();
|
|
23189
22880
|
const log = (0, debug_1.default)("http-proxy-3");
|
|
23190
|
-
|
|
22881
|
+
exports.ProxyServer = class ProxyServer extends node_events_1.EventEmitter {
|
|
23191
22882
|
/**
|
|
23192
22883
|
* Creates the proxy server with specified options.
|
|
23193
22884
|
* @param options - Config object passed to the proxy
|
|
@@ -23338,12 +23029,10 @@ var require_http_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23338
23029
|
return new ProxyServer(options);
|
|
23339
23030
|
}
|
|
23340
23031
|
};
|
|
23341
|
-
exports.ProxyServer = ProxyServer;
|
|
23342
23032
|
}));
|
|
23343
|
-
|
|
23344
23033
|
//#endregion
|
|
23345
|
-
//#region ../../
|
|
23346
|
-
var
|
|
23034
|
+
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/proxy.ts
|
|
23035
|
+
var import_lib$1 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23347
23036
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23348
23037
|
exports.numOpenSockets = exports.ProxyServer = void 0;
|
|
23349
23038
|
exports.createProxyServer = createProxyServer;
|
|
@@ -23378,11 +23067,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23378
23067
|
function createProxyServer(options = {}) {
|
|
23379
23068
|
return new index_1.ProxyServer(options);
|
|
23380
23069
|
}
|
|
23381
|
-
}));
|
|
23382
|
-
|
|
23383
|
-
//#endregion
|
|
23384
|
-
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/proxy.ts
|
|
23385
|
-
var import_lib$1 = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
23070
|
+
})))(), 1);
|
|
23386
23071
|
const debug$11 = createDebugger("vite:proxy");
|
|
23387
23072
|
const rewriteOriginHeader = (proxyReq, options, config) => {
|
|
23388
23073
|
if (options.rewriteWsOrigin) {
|
|
@@ -23498,7 +23183,6 @@ function proxyMiddleware(httpServer, options, config) {
|
|
|
23498
23183
|
function doesProxyContextMatchUrl(context, url) {
|
|
23499
23184
|
return context[0] === "^" && new RegExp(context).test(url) || url.startsWith(context);
|
|
23500
23185
|
}
|
|
23501
|
-
|
|
23502
23186
|
//#endregion
|
|
23503
23187
|
//#region ../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js
|
|
23504
23188
|
/*!
|
|
@@ -23575,10 +23259,30 @@ var require_etag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23575
23259
|
return "\"" + stat.size.toString(16) + "-" + mtime + "\"";
|
|
23576
23260
|
}
|
|
23577
23261
|
}));
|
|
23578
|
-
|
|
23579
23262
|
//#endregion
|
|
23580
|
-
//#region ../../
|
|
23581
|
-
|
|
23263
|
+
//#region ../../rolldown-vite/packages/vite/src/node/environment.ts
|
|
23264
|
+
/**
|
|
23265
|
+
* Creates a function that hides the complexities of a WeakMap with an initial value
|
|
23266
|
+
* to implement object metadata. Used by plugins to implement cross hooks per
|
|
23267
|
+
* environment metadata
|
|
23268
|
+
*
|
|
23269
|
+
* @experimental
|
|
23270
|
+
*/
|
|
23271
|
+
function perEnvironmentState(initial) {
|
|
23272
|
+
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
23273
|
+
return function(context) {
|
|
23274
|
+
const { environment } = context;
|
|
23275
|
+
let state = stateMap.get(environment);
|
|
23276
|
+
if (!state) {
|
|
23277
|
+
state = initial(environment);
|
|
23278
|
+
stateMap.set(environment, state);
|
|
23279
|
+
}
|
|
23280
|
+
return state;
|
|
23281
|
+
};
|
|
23282
|
+
}
|
|
23283
|
+
//#endregion
|
|
23284
|
+
//#region ../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
|
|
23285
|
+
var import_js_tokens = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23582
23286
|
var HashbangComment, Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
|
|
23583
23287
|
Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
|
|
23584
23288
|
Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy;
|
|
@@ -23953,11 +23657,7 @@ var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23953
23657
|
};
|
|
23954
23658
|
}
|
|
23955
23659
|
};
|
|
23956
|
-
}));
|
|
23957
|
-
|
|
23958
|
-
//#endregion
|
|
23959
|
-
//#region ../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
|
|
23960
|
-
var import_js_tokens = /* @__PURE__ */ __toESM(require_js_tokens(), 1);
|
|
23660
|
+
})))(), 1);
|
|
23961
23661
|
const FILL_COMMENT = " ";
|
|
23962
23662
|
function stripLiteralFromToken(token, fillChar, filter) {
|
|
23963
23663
|
if (token.type === "SingleLineComment") return FILL_COMMENT.repeat(token.value.length);
|
|
@@ -24001,7 +23701,6 @@ function stripLiteral(code, options) {
|
|
|
24001
23701
|
for (const token of (0, import_js_tokens.default)(code, { jsx: false })) result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
|
|
24002
23702
|
return result;
|
|
24003
23703
|
}
|
|
24004
|
-
|
|
24005
23704
|
//#endregion
|
|
24006
23705
|
//#region ../../rolldown-vite/packages/vite/src/node/assetSource.ts
|
|
24007
23706
|
const ALLOWED_META_NAME = [
|
|
@@ -24092,7 +23791,6 @@ function getNodeAssetAttributes(node) {
|
|
|
24092
23791
|
function getAttrKey(attr) {
|
|
24093
23792
|
return attr.prefix === void 0 ? attr.name : `${attr.prefix}:${attr.name}`;
|
|
24094
23793
|
}
|
|
24095
|
-
|
|
24096
23794
|
//#endregion
|
|
24097
23795
|
//#region ../../node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs
|
|
24098
23796
|
const mimes = {
|
|
@@ -24540,7 +24238,6 @@ function lookup(extn) {
|
|
|
24540
24238
|
let idx = tmp.lastIndexOf(".");
|
|
24541
24239
|
return mimes[!~idx ? tmp : tmp.substring(++idx)];
|
|
24542
24240
|
}
|
|
24543
|
-
|
|
24544
24241
|
//#endregion
|
|
24545
24242
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/asset.ts
|
|
24546
24243
|
const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
|
|
@@ -24796,7 +24493,6 @@ function svgToDataURL(content) {
|
|
|
24796
24493
|
if (stringContent.includes("<text") || stringContent.includes("<foreignObject") || nestedQuotesRE.test(stringContent)) return `data:image/svg+xml;base64,${content.toString("base64")}`;
|
|
24797
24494
|
else return "data:image/svg+xml," + stringContent.trim().replaceAll(/>\s+</g, "><").replaceAll("\"", "'").replaceAll("%", "%25").replaceAll("#", "%23").replaceAll("<", "%3c").replaceAll(">", "%3e").replaceAll(/\s+/g, "%20");
|
|
24798
24495
|
}
|
|
24799
|
-
|
|
24800
24496
|
//#endregion
|
|
24801
24497
|
//#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
|
|
24802
24498
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -25132,7 +24828,6 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25132
24828
|
};
|
|
25133
24829
|
};
|
|
25134
24830
|
}));
|
|
25135
|
-
|
|
25136
24831
|
//#endregion
|
|
25137
24832
|
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
|
|
25138
24833
|
var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -25175,7 +24870,6 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25175
24870
|
}
|
|
25176
24871
|
module.exports = req;
|
|
25177
24872
|
}));
|
|
25178
|
-
|
|
25179
24873
|
//#endregion
|
|
25180
24874
|
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
|
|
25181
24875
|
var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -25210,7 +24904,6 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25210
24904
|
}
|
|
25211
24905
|
module.exports = options;
|
|
25212
24906
|
}));
|
|
25213
|
-
|
|
25214
24907
|
//#endregion
|
|
25215
24908
|
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
|
|
25216
24909
|
var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -25265,11 +24958,10 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25265
24958
|
}
|
|
25266
24959
|
module.exports = plugins;
|
|
25267
24960
|
}));
|
|
25268
|
-
|
|
25269
24961
|
//#endregion
|
|
25270
24962
|
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
|
|
25271
24963
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25272
|
-
const { resolve: resolve$
|
|
24964
|
+
const { resolve: resolve$3 } = __require$1("node:path");
|
|
25273
24965
|
const config = require_src$1();
|
|
25274
24966
|
const loadOptions = require_options();
|
|
25275
24967
|
const loadPlugins = require_plugins();
|
|
@@ -25388,7 +25080,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25388
25080
|
/**
|
|
25389
25081
|
* @type {String} `process.cwd()`
|
|
25390
25082
|
*/
|
|
25391
|
-
path = path ? resolve$
|
|
25083
|
+
path = path ? resolve$3(path) : process.cwd();
|
|
25392
25084
|
return config.lilconfig("postcss", withLoaders(options)).search(path).then((result) => {
|
|
25393
25085
|
if (!result) throw new Error(`No PostCSS Config found in: ${path}`);
|
|
25394
25086
|
return processResult(ctx, result);
|
|
@@ -25409,10 +25101,9 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
25409
25101
|
*/
|
|
25410
25102
|
module.exports = rc;
|
|
25411
25103
|
}));
|
|
25412
|
-
|
|
25413
25104
|
//#endregion
|
|
25414
|
-
//#region ../../
|
|
25415
|
-
var
|
|
25105
|
+
//#region ../../rolldown-vite/packages/vite/src/node/server/sourcemap.ts
|
|
25106
|
+
var import_convert_source_map = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
25416
25107
|
Object.defineProperty(exports, "commentRegex", { get: function getCommentRegex() {
|
|
25417
25108
|
return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm;
|
|
25418
25109
|
} });
|
|
@@ -25557,11 +25248,7 @@ var require_convert_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
25557
25248
|
var data = "sourceMappingURL=" + file;
|
|
25558
25249
|
return options && options.multiline ? "/*# " + data + " */" : "//# " + data;
|
|
25559
25250
|
};
|
|
25560
|
-
}));
|
|
25561
|
-
|
|
25562
|
-
//#endregion
|
|
25563
|
-
//#region ../../rolldown-vite/packages/vite/src/node/server/sourcemap.ts
|
|
25564
|
-
var import_convert_source_map = /* @__PURE__ */ __toESM(require_convert_source_map(), 1);
|
|
25251
|
+
})))(), 1);
|
|
25565
25252
|
const debug$10 = createDebugger("vite:sourcemap", { onlyWhenFocused: true });
|
|
25566
25253
|
const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/;
|
|
25567
25254
|
async function computeSourceRoute(map, file) {
|
|
@@ -25622,8 +25309,8 @@ function applySourcemapIgnoreList(map, sourcemapPath, sourcemapIgnoreList, logge
|
|
|
25622
25309
|
}
|
|
25623
25310
|
}
|
|
25624
25311
|
}
|
|
25625
|
-
|
|
25626
|
-
const map = (import_convert_source_map.fromSource(code) ||
|
|
25312
|
+
function extractSourcemapFromFile(code, filePath) {
|
|
25313
|
+
const map = (import_convert_source_map.fromSource(code) || import_convert_source_map.fromMapFileSource(code, createConvertSourceMapReadMap(filePath)))?.toObject();
|
|
25627
25314
|
if (map) return {
|
|
25628
25315
|
code: code.replace(import_convert_source_map.default.mapFileCommentRegex, blankReplacer),
|
|
25629
25316
|
map
|
|
@@ -25631,10 +25318,9 @@ async function extractSourcemapFromFile(code, filePath) {
|
|
|
25631
25318
|
}
|
|
25632
25319
|
function createConvertSourceMapReadMap(originalFileName) {
|
|
25633
25320
|
return (filename) => {
|
|
25634
|
-
return
|
|
25321
|
+
return fs.readFileSync(path.resolve(path.dirname(originalFileName), filename), "utf-8");
|
|
25635
25322
|
};
|
|
25636
25323
|
}
|
|
25637
|
-
|
|
25638
25324
|
//#endregion
|
|
25639
25325
|
//#region ../../rolldown-vite/packages/vite/src/node/idResolver.ts
|
|
25640
25326
|
/**
|
|
@@ -25688,7 +25374,6 @@ function createIdResolver(config, options) {
|
|
|
25688
25374
|
return (await (aliasOnly ? resolveAlias : resolve)(environment, id, importer))?.id;
|
|
25689
25375
|
};
|
|
25690
25376
|
}
|
|
25691
|
-
|
|
25692
25377
|
//#endregion
|
|
25693
25378
|
//#region ../../rolldown-vite/packages/vite/src/node/baseEnvironment.ts
|
|
25694
25379
|
const environmentColors = [
|
|
@@ -25773,7 +25458,6 @@ var BaseEnvironment = class extends PartialEnvironment {
|
|
|
25773
25458
|
super(name, config, options);
|
|
25774
25459
|
}
|
|
25775
25460
|
};
|
|
25776
|
-
|
|
25777
25461
|
//#endregion
|
|
25778
25462
|
//#region ../../rolldown-vite/packages/vite/src/node/server/searchRoot.ts
|
|
25779
25463
|
const ROOT_FILES = ["pnpm-workspace.yaml", "lerna.json"];
|
|
@@ -25812,11 +25496,10 @@ function searchForWorkspaceRoot(current, root = searchForPackageRoot(current)) {
|
|
|
25812
25496
|
if (!dir || dir === current) return root;
|
|
25813
25497
|
return searchForWorkspaceRoot(dir, root);
|
|
25814
25498
|
}
|
|
25815
|
-
|
|
25816
25499
|
//#endregion
|
|
25817
25500
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/manifest.ts
|
|
25818
25501
|
const endsWithJSRE = /\.[cm]?js$/;
|
|
25819
|
-
function manifestPlugin(
|
|
25502
|
+
function manifestPlugin() {
|
|
25820
25503
|
const getState = perEnvironmentState(() => {
|
|
25821
25504
|
return {
|
|
25822
25505
|
manifest: {},
|
|
@@ -25827,7 +25510,7 @@ function manifestPlugin(config) {
|
|
|
25827
25510
|
}
|
|
25828
25511
|
};
|
|
25829
25512
|
});
|
|
25830
|
-
|
|
25513
|
+
return perEnvironmentPlugin("native:manifest", (environment) => {
|
|
25831
25514
|
if (!environment.config.build.manifest) return false;
|
|
25832
25515
|
const root = environment.config.root;
|
|
25833
25516
|
const outPath = environment.config.build.manifest === true ? ".vite/manifest.json" : environment.config.build.manifest;
|
|
@@ -25896,95 +25579,6 @@ function manifestPlugin(config) {
|
|
|
25896
25579
|
}
|
|
25897
25580
|
];
|
|
25898
25581
|
});
|
|
25899
|
-
return {
|
|
25900
|
-
name: "vite:manifest",
|
|
25901
|
-
perEnvironmentStartEndDuringDev: true,
|
|
25902
|
-
applyToEnvironment(environment) {
|
|
25903
|
-
return !!environment.config.build.manifest;
|
|
25904
|
-
},
|
|
25905
|
-
generateBundle(opts, bundle) {
|
|
25906
|
-
const state = getState(this);
|
|
25907
|
-
const { manifest } = state;
|
|
25908
|
-
const { root } = this.environment.config;
|
|
25909
|
-
const buildOptions = this.environment.config.build;
|
|
25910
|
-
const isLegacy = this.environment.config.isOutputOptionsForLegacyChunks?.(opts) ?? false;
|
|
25911
|
-
function getChunkName(chunk) {
|
|
25912
|
-
return getChunkOriginalFileName(chunk, root, isLegacy) ?? `_${path.basename(chunk.fileName)}`;
|
|
25913
|
-
}
|
|
25914
|
-
function getInternalImports(imports) {
|
|
25915
|
-
const filteredImports = [];
|
|
25916
|
-
for (const file of imports) {
|
|
25917
|
-
if (bundle[file] === void 0) continue;
|
|
25918
|
-
filteredImports.push(getChunkName(bundle[file]));
|
|
25919
|
-
}
|
|
25920
|
-
return filteredImports;
|
|
25921
|
-
}
|
|
25922
|
-
function createChunk(chunk) {
|
|
25923
|
-
const manifestChunk = {
|
|
25924
|
-
file: chunk.fileName,
|
|
25925
|
-
name: chunk.name
|
|
25926
|
-
};
|
|
25927
|
-
if (chunk.facadeModuleId) manifestChunk.src = getChunkName(chunk);
|
|
25928
|
-
if (chunk.isEntry) manifestChunk.isEntry = true;
|
|
25929
|
-
if (chunk.isDynamicEntry) manifestChunk.isDynamicEntry = true;
|
|
25930
|
-
if (chunk.imports.length) {
|
|
25931
|
-
const internalImports = getInternalImports(chunk.imports);
|
|
25932
|
-
if (internalImports.length > 0) manifestChunk.imports = internalImports;
|
|
25933
|
-
}
|
|
25934
|
-
if (chunk.dynamicImports.length) {
|
|
25935
|
-
const internalImports = getInternalImports(chunk.dynamicImports);
|
|
25936
|
-
if (internalImports.length > 0) manifestChunk.dynamicImports = internalImports;
|
|
25937
|
-
}
|
|
25938
|
-
if (chunk.viteMetadata?.importedCss.size) manifestChunk.css = [...chunk.viteMetadata.importedCss];
|
|
25939
|
-
if (chunk.viteMetadata?.importedAssets.size) manifestChunk.assets = [...chunk.viteMetadata.importedAssets];
|
|
25940
|
-
return manifestChunk;
|
|
25941
|
-
}
|
|
25942
|
-
function createAsset(asset, src, name) {
|
|
25943
|
-
const manifestChunk = {
|
|
25944
|
-
file: asset.fileName,
|
|
25945
|
-
src
|
|
25946
|
-
};
|
|
25947
|
-
if (name) {
|
|
25948
|
-
manifestChunk.isEntry = true;
|
|
25949
|
-
manifestChunk.name = name;
|
|
25950
|
-
manifestChunk.names = asset.names;
|
|
25951
|
-
if (asset.viteMetadata?.importedCss.size) manifestChunk.css = [...asset.viteMetadata.importedCss];
|
|
25952
|
-
if (asset.viteMetadata?.importedAssets.size) manifestChunk.assets = [...asset.viteMetadata.importedAssets];
|
|
25953
|
-
}
|
|
25954
|
-
return manifestChunk;
|
|
25955
|
-
}
|
|
25956
|
-
const entryCssReferenceIds = cssEntriesMap.get(this.environment);
|
|
25957
|
-
const entryCssAssetFileNames = /* @__PURE__ */ new Map();
|
|
25958
|
-
for (const [name, id] of entryCssReferenceIds) try {
|
|
25959
|
-
const fileName = this.getFileName(id);
|
|
25960
|
-
entryCssAssetFileNames.set(fileName, name);
|
|
25961
|
-
} catch {}
|
|
25962
|
-
for (const file in bundle) {
|
|
25963
|
-
const chunk = bundle[file];
|
|
25964
|
-
if (chunk.type === "chunk") manifest[getChunkName(chunk)] = createChunk(chunk);
|
|
25965
|
-
else if (chunk.type === "asset" && chunk.names.length > 0) {
|
|
25966
|
-
const src = chunk.originalFileNames.length > 0 ? chunk.originalFileNames[0] : `_${path.basename(chunk.fileName)}`;
|
|
25967
|
-
const asset = createAsset(chunk, src, entryCssAssetFileNames.get(chunk.fileName));
|
|
25968
|
-
const file = manifest[src]?.file;
|
|
25969
|
-
if (!(file && endsWithJSRE.test(file))) manifest[src] = asset;
|
|
25970
|
-
for (const originalFileName of chunk.originalFileNames.slice(1)) {
|
|
25971
|
-
const file = manifest[originalFileName]?.file;
|
|
25972
|
-
if (!(file && endsWithJSRE.test(file))) manifest[originalFileName] = asset;
|
|
25973
|
-
}
|
|
25974
|
-
}
|
|
25975
|
-
}
|
|
25976
|
-
state.outputCount++;
|
|
25977
|
-
const output = buildOptions.rollupOptions.output;
|
|
25978
|
-
if (state.outputCount >= (Array.isArray(output) ? output.length : 1)) {
|
|
25979
|
-
this.emitFile({
|
|
25980
|
-
fileName: typeof buildOptions.manifest === "string" ? buildOptions.manifest : ".vite/manifest.json",
|
|
25981
|
-
type: "asset",
|
|
25982
|
-
source: JSON.stringify(sortObjectKeys(manifest), void 0, 2)
|
|
25983
|
-
});
|
|
25984
|
-
state.reset();
|
|
25985
|
-
}
|
|
25986
|
-
}
|
|
25987
|
-
};
|
|
25988
25582
|
}
|
|
25989
25583
|
function getChunkOriginalFileName(chunk, root, isLegacy) {
|
|
25990
25584
|
if (chunk.facadeModuleId) {
|
|
@@ -25997,7 +25591,6 @@ function getChunkOriginalFileName(chunk, root, isLegacy) {
|
|
|
25997
25591
|
return name.replace(/\0/g, "");
|
|
25998
25592
|
}
|
|
25999
25593
|
}
|
|
26000
|
-
|
|
26001
25594
|
//#endregion
|
|
26002
25595
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/css.ts
|
|
26003
25596
|
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
@@ -26099,7 +25692,7 @@ function cssPlugin(config) {
|
|
|
26099
25692
|
const urlResolver = async (url, importer) => {
|
|
26100
25693
|
const decodedUrl = decodeURI(url);
|
|
26101
25694
|
if (checkPublicFile(decodedUrl, config)) if (encodePublicUrlsInCSS(config)) return [publicFileToBuiltUrl(decodedUrl, config), void 0];
|
|
26102
|
-
else return [joinUrlSegments(config.base, decodedUrl), void 0];
|
|
25695
|
+
else return [joinUrlSegments(joinUrlSegments(config.server.origin ?? "", config.base), decodedUrl), void 0];
|
|
26103
25696
|
const [id, fragment] = decodedUrl.split("#");
|
|
26104
25697
|
let resolved = await resolveUrl(id, importer);
|
|
26105
25698
|
if (resolved) {
|
|
@@ -27649,6 +27242,14 @@ const esMap = {
|
|
|
27649
27242
|
"ios17.4",
|
|
27650
27243
|
"firefox145",
|
|
27651
27244
|
"opera105"
|
|
27245
|
+
],
|
|
27246
|
+
2025: [
|
|
27247
|
+
"chrome136",
|
|
27248
|
+
"edge136",
|
|
27249
|
+
"safari26.0",
|
|
27250
|
+
"ios26.0",
|
|
27251
|
+
"firefox138",
|
|
27252
|
+
"opera121"
|
|
27652
27253
|
]
|
|
27653
27254
|
};
|
|
27654
27255
|
const esRE = /es(\d{4})/;
|
|
@@ -27694,7 +27295,6 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
|
|
|
27694
27295
|
if (!name) throw new Error("Name in package.json is required if option \"build.lib.cssFileName\" is not provided.");
|
|
27695
27296
|
return `${name}.css`;
|
|
27696
27297
|
}
|
|
27697
|
-
|
|
27698
27298
|
//#endregion
|
|
27699
27299
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/modulePreloadPolyfill.ts
|
|
27700
27300
|
const modulePreloadPolyfillId = "vite/modulepreload-polyfill";
|
|
@@ -27719,7 +27319,6 @@ function modulePreloadPolyfillPlugin(config) {
|
|
|
27719
27319
|
}
|
|
27720
27320
|
};
|
|
27721
27321
|
}
|
|
27722
|
-
|
|
27723
27322
|
//#endregion
|
|
27724
27323
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/html.ts
|
|
27725
27324
|
var import_escape_html = /* @__PURE__ */ __toESM(require_escape_html(), 1);
|
|
@@ -28452,13 +28051,10 @@ function serializeAttrs(attrs) {
|
|
|
28452
28051
|
function incrementIndent(indent = "") {
|
|
28453
28052
|
return `${indent}${indent[0] === " " ? " " : " "}`;
|
|
28454
28053
|
}
|
|
28455
|
-
|
|
28456
28054
|
//#endregion
|
|
28457
28055
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/define.ts
|
|
28458
28056
|
const nonJsRe = /\.json(?:$|\?)/;
|
|
28459
28057
|
const isNonJsRequest = (request) => nonJsRe.test(request);
|
|
28460
|
-
const importMetaEnvMarker = "__vite_import_meta_env__";
|
|
28461
|
-
const importMetaEnvKeyReCache = /* @__PURE__ */ new Map();
|
|
28462
28058
|
const escapedDotRE = /(?<!\\)\\./g;
|
|
28463
28059
|
function definePlugin(config) {
|
|
28464
28060
|
const isBundled = config.isBundled;
|
|
@@ -28505,7 +28101,6 @@ function definePlugin(config) {
|
|
|
28505
28101
|
};
|
|
28506
28102
|
const ssr = environment.config.consumer === "server";
|
|
28507
28103
|
if ("import.meta.env.SSR" in define) define["import.meta.env.SSR"] = ssr + "";
|
|
28508
|
-
if ("import.meta.env" in define) define["import.meta.env"] = importMetaEnvMarker;
|
|
28509
28104
|
const importMetaEnvVal = serializeDefine({
|
|
28510
28105
|
...importMetaEnvKeys,
|
|
28511
28106
|
SSR: ssr + "",
|
|
@@ -28529,7 +28124,7 @@ function definePlugin(config) {
|
|
|
28529
28124
|
}
|
|
28530
28125
|
return pattern;
|
|
28531
28126
|
}
|
|
28532
|
-
if (isBundled
|
|
28127
|
+
if (isBundled) return {
|
|
28533
28128
|
name: "vite:define",
|
|
28534
28129
|
options(option) {
|
|
28535
28130
|
const [define, _pattern, importMetaEnvVal] = getPattern(this.environment);
|
|
@@ -28545,33 +28140,13 @@ function definePlugin(config) {
|
|
|
28545
28140
|
return {
|
|
28546
28141
|
name: "vite:define",
|
|
28547
28142
|
transform: { async handler(code, id) {
|
|
28548
|
-
if (this.environment.config.consumer === "client"
|
|
28143
|
+
if (this.environment.config.consumer === "client") return;
|
|
28549
28144
|
if (isHTMLRequest(id) || isCSSRequest(id) || isNonJsRequest(id) || config.assetsInclude(id)) return;
|
|
28550
|
-
|
|
28145
|
+
const [define, pattern] = getPattern(this.environment);
|
|
28551
28146
|
if (!pattern) return;
|
|
28552
28147
|
pattern.lastIndex = 0;
|
|
28553
28148
|
if (!pattern.test(code)) return;
|
|
28554
|
-
|
|
28555
|
-
let marker = importMetaEnvMarker;
|
|
28556
|
-
if (hasDefineImportMetaEnv && code.includes(marker)) {
|
|
28557
|
-
let i = 1;
|
|
28558
|
-
do
|
|
28559
|
-
marker = importMetaEnvMarker + i++;
|
|
28560
|
-
while (code.includes(marker));
|
|
28561
|
-
if (marker !== importMetaEnvMarker) define = {
|
|
28562
|
-
...define,
|
|
28563
|
-
"import.meta.env": marker
|
|
28564
|
-
};
|
|
28565
|
-
}
|
|
28566
|
-
const result = await replaceDefine(this.environment, code, id, define);
|
|
28567
|
-
if (hasDefineImportMetaEnv) {
|
|
28568
|
-
result.code = result.code.replaceAll(getImportMetaEnvKeyRe(marker), (m) => "undefined".padEnd(m.length));
|
|
28569
|
-
if (result.code.includes(marker)) {
|
|
28570
|
-
result.code = `const ${marker} = ${importMetaEnvVal};\n` + result.code;
|
|
28571
|
-
if (result.map) result.map.mappings = ";" + result.map.mappings;
|
|
28572
|
-
}
|
|
28573
|
-
}
|
|
28574
|
-
return result;
|
|
28149
|
+
return await replaceDefine(this.environment, code, id, define);
|
|
28575
28150
|
} }
|
|
28576
28151
|
};
|
|
28577
28152
|
}
|
|
@@ -28610,15 +28185,6 @@ function handleDefineValue(value) {
|
|
|
28610
28185
|
if (typeof value === "string") return value;
|
|
28611
28186
|
return JSON.stringify(value);
|
|
28612
28187
|
}
|
|
28613
|
-
function getImportMetaEnvKeyRe(marker) {
|
|
28614
|
-
let re = importMetaEnvKeyReCache.get(marker);
|
|
28615
|
-
if (!re) {
|
|
28616
|
-
re = new RegExp(`${marker}\\..+?\\b`, "g");
|
|
28617
|
-
importMetaEnvKeyReCache.set(marker, re);
|
|
28618
|
-
}
|
|
28619
|
-
return re;
|
|
28620
|
-
}
|
|
28621
|
-
|
|
28622
28188
|
//#endregion
|
|
28623
28189
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/clientInjections.ts
|
|
28624
28190
|
const normalizedClientEntry$1 = normalizePath$1(CLIENT_ENTRY);
|
|
@@ -28692,14 +28258,14 @@ async function createClientConfigValueReplacer(config) {
|
|
|
28692
28258
|
const hmrEnableOverlayReplacement = escapeReplacement(overlay);
|
|
28693
28259
|
const hmrConfigNameReplacement = escapeReplacement(hmrConfigName);
|
|
28694
28260
|
const wsTokenReplacement = escapeReplacement(config.webSocketToken);
|
|
28261
|
+
const serverForwardConsoleReplacement = escapeReplacement(config.server.forwardConsole);
|
|
28695
28262
|
const bundleDevReplacement = escapeReplacement(config.experimental.bundledDev || false);
|
|
28696
|
-
return (code) => code.replace(`__MODE__`, modeReplacement).replace(/__BASE__/g, baseReplacement).replace(`__SERVER_HOST__`, serverHostReplacement).replace(`__HMR_PROTOCOL__`, hmrProtocolReplacement).replace(`__HMR_HOSTNAME__`, hmrHostnameReplacement).replace(`__HMR_PORT__`, hmrPortReplacement).replace(`__HMR_DIRECT_TARGET__`, hmrDirectTargetReplacement).replace(`__HMR_BASE__`, hmrBaseReplacement).replace(`__HMR_TIMEOUT__`, hmrTimeoutReplacement).replace(`__HMR_ENABLE_OVERLAY__`, hmrEnableOverlayReplacement).replace(`__HMR_CONFIG_NAME__`, hmrConfigNameReplacement).replace(`__WS_TOKEN__`, wsTokenReplacement).replaceAll(`__BUNDLED_DEV__`, bundleDevReplacement);
|
|
28263
|
+
return (code) => code.replace(`__MODE__`, modeReplacement).replace(/__BASE__/g, baseReplacement).replace(`__SERVER_HOST__`, serverHostReplacement).replace(`__HMR_PROTOCOL__`, hmrProtocolReplacement).replace(`__HMR_HOSTNAME__`, hmrHostnameReplacement).replace(`__HMR_PORT__`, hmrPortReplacement).replace(`__HMR_DIRECT_TARGET__`, hmrDirectTargetReplacement).replace(`__HMR_BASE__`, hmrBaseReplacement).replace(`__HMR_TIMEOUT__`, hmrTimeoutReplacement).replace(`__HMR_ENABLE_OVERLAY__`, hmrEnableOverlayReplacement).replace(`__HMR_CONFIG_NAME__`, hmrConfigNameReplacement).replace(`__WS_TOKEN__`, wsTokenReplacement).replace(`__SERVER_FORWARD_CONSOLE__`, serverForwardConsoleReplacement).replaceAll(`__BUNDLED_DEV__`, bundleDevReplacement);
|
|
28697
28264
|
}
|
|
28698
28265
|
async function getHmrImplementation(config) {
|
|
28699
28266
|
const content = fs.readFileSync(normalizedClientEntry$1, "utf-8");
|
|
28700
28267
|
return (await createClientConfigValueReplacer(config))(content).replace(/import\s*['"]@vite\/env['"]/, "");
|
|
28701
28268
|
}
|
|
28702
|
-
|
|
28703
28269
|
//#endregion
|
|
28704
28270
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/fetchModule.ts
|
|
28705
28271
|
/**
|
|
@@ -28769,14 +28335,13 @@ const OTHER_SOURCE_MAP_REGEXP = new RegExp(`//# ${SOURCEMAPPING_URL}=data:applic
|
|
|
28769
28335
|
function inlineSourceMap(mod, result, startOffset) {
|
|
28770
28336
|
const map = result.map;
|
|
28771
28337
|
let code = result.code;
|
|
28772
|
-
if (!map || !("version" in map) || code.includes(
|
|
28338
|
+
if (!map || !("version" in map) || code.includes("//# sourceMappingSource=vite-generated")) return result;
|
|
28773
28339
|
OTHER_SOURCE_MAP_REGEXP.lastIndex = 0;
|
|
28774
28340
|
if (OTHER_SOURCE_MAP_REGEXP.test(code)) code = code.replace(OTHER_SOURCE_MAP_REGEXP, "");
|
|
28775
28341
|
const sourceMap = startOffset ? Object.assign({}, map, { mappings: ";".repeat(startOffset) + map.mappings }) : map;
|
|
28776
28342
|
result.code = `${code.trimEnd()}\n//# sourceURL=${mod.id}\n${MODULE_RUNNER_SOURCEMAPPING_SOURCE}\n//# ${SOURCEMAPPING_URL}=${genSourceMapUrl(sourceMap)}\n`;
|
|
28777
28343
|
return result;
|
|
28778
28344
|
}
|
|
28779
|
-
|
|
28780
28345
|
//#endregion
|
|
28781
28346
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/optimizer.ts
|
|
28782
28347
|
const debug$9 = createDebugger("vite:deps");
|
|
@@ -29144,7 +28709,6 @@ function findInteropMismatches(discovered, optimized) {
|
|
|
29144
28709
|
}
|
|
29145
28710
|
return needsInteropMismatch;
|
|
29146
28711
|
}
|
|
29147
|
-
|
|
29148
28712
|
//#endregion
|
|
29149
28713
|
//#region ../../rolldown-vite/packages/vite/src/node/server/moduleGraph.ts
|
|
29150
28714
|
var EnvironmentModuleNode = class {
|
|
@@ -29439,7 +29003,6 @@ var EnvironmentModuleGraph = class {
|
|
|
29439
29003
|
];
|
|
29440
29004
|
}
|
|
29441
29005
|
};
|
|
29442
|
-
|
|
29443
29006
|
//#endregion
|
|
29444
29007
|
//#region ../../node_modules/.pnpm/totalist@3.0.1/node_modules/totalist/sync/index.mjs
|
|
29445
29008
|
function totalist(dir, callback, pre = "") {
|
|
@@ -29452,7 +29015,6 @@ function totalist(dir, callback, pre = "") {
|
|
|
29452
29015
|
stats.isDirectory() ? totalist(abs, callback, join$1(pre, arr[i])) : callback(join$1(pre, arr[i]), abs, stats);
|
|
29453
29016
|
}
|
|
29454
29017
|
}
|
|
29455
|
-
|
|
29456
29018
|
//#endregion
|
|
29457
29019
|
//#region ../../node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs
|
|
29458
29020
|
/**
|
|
@@ -29495,7 +29057,6 @@ function parse$1(req) {
|
|
|
29495
29057
|
raw
|
|
29496
29058
|
};
|
|
29497
29059
|
}
|
|
29498
|
-
|
|
29499
29060
|
//#endregion
|
|
29500
29061
|
//#region ../../node_modules/.pnpm/sirv@3.0.2_patch_hash=c07c56eb72faea34341d465cde2314e89db472106ed378181e3447893af6bf95/node_modules/sirv/build.mjs
|
|
29501
29062
|
const noop = () => {};
|
|
@@ -29641,7 +29202,6 @@ function build_default$1(dir, opts = {}) {
|
|
|
29641
29202
|
send$1(req, res, data.abs, data.stats, data.headers);
|
|
29642
29203
|
};
|
|
29643
29204
|
}
|
|
29644
|
-
|
|
29645
29205
|
//#endregion
|
|
29646
29206
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/static.ts
|
|
29647
29207
|
const knownJavascriptExtensionRE = /\.(?:[tj]sx?|[cm][tj]s)$/;
|
|
@@ -29809,7 +29369,6 @@ function renderRestrictedErrorHTML(msg) {
|
|
|
29809
29369
|
</body>
|
|
29810
29370
|
`;
|
|
29811
29371
|
}
|
|
29812
|
-
|
|
29813
29372
|
//#endregion
|
|
29814
29373
|
//#region ../../rolldown-vite/packages/vite/src/node/server/transformRequest.ts
|
|
29815
29374
|
var import_etag = /* @__PURE__ */ __toESM(require_etag(), 1);
|
|
@@ -29906,7 +29465,7 @@ async function loadAndTransform(environment, id, url, options, timestamp, mod, r
|
|
|
29906
29465
|
if (code != null && environment.pluginContainer.watcher) ensureWatchedFile(environment.pluginContainer.watcher, file, config.root);
|
|
29907
29466
|
}
|
|
29908
29467
|
if (code) try {
|
|
29909
|
-
const extracted =
|
|
29468
|
+
const extracted = extractSourcemapFromFile(code, file);
|
|
29910
29469
|
if (extracted) {
|
|
29911
29470
|
code = extracted.code;
|
|
29912
29471
|
map = extracted.map;
|
|
@@ -30050,7 +29609,6 @@ function getModuleTypeFromId(id) {
|
|
|
30050
29609
|
if (moduleType) return moduleType;
|
|
30051
29610
|
}
|
|
30052
29611
|
}
|
|
30053
|
-
|
|
30054
29612
|
//#endregion
|
|
30055
29613
|
//#region ../../rolldown-vite/packages/vite/src/node/server/warmup.ts
|
|
30056
29614
|
function warmupFiles(server, environment) {
|
|
@@ -30101,7 +29659,6 @@ async function mapFiles(files, root) {
|
|
|
30101
29659
|
}));
|
|
30102
29660
|
return result;
|
|
30103
29661
|
}
|
|
30104
|
-
|
|
30105
29662
|
//#endregion
|
|
30106
29663
|
//#region ../../rolldown-vite/packages/vite/src/node/server/environment.ts
|
|
30107
29664
|
var DevEnvironment = class extends BaseEnvironment {
|
|
@@ -30211,7 +29768,7 @@ var DevEnvironment = class extends BaseEnvironment {
|
|
|
30211
29768
|
try {
|
|
30212
29769
|
await this.transformRequest(url);
|
|
30213
29770
|
} catch (e) {
|
|
30214
|
-
if (e?.code === ERR_OUTDATED_OPTIMIZED_DEP || e?.code === ERR_CLOSED_SERVER) return;
|
|
29771
|
+
if (e?.code === "ERR_OUTDATED_OPTIMIZED_DEP" || e?.code === "ERR_CLOSED_SERVER") return;
|
|
30215
29772
|
this.logger.error(buildErrorMessage(e, [`Pre-transform error: ${e.message}`], false), {
|
|
30216
29773
|
error: e,
|
|
30217
29774
|
timestamp: true
|
|
@@ -30300,7 +29857,6 @@ function setupOnCrawlEnd() {
|
|
|
30300
29857
|
cancel
|
|
30301
29858
|
};
|
|
30302
29859
|
}
|
|
30303
|
-
|
|
30304
29860
|
//#endregion
|
|
30305
29861
|
//#region ../../rolldown-vite/packages/vite/src/node/server/environments/fullBundleEnvironment.ts
|
|
30306
29862
|
const debug$8 = createDebugger("vite:full-bundle-mode");
|
|
@@ -30565,7 +30121,6 @@ function debounce(time, cb) {
|
|
|
30565
30121
|
timer = globalThis.setTimeout(cb, time);
|
|
30566
30122
|
};
|
|
30567
30123
|
}
|
|
30568
|
-
|
|
30569
30124
|
//#endregion
|
|
30570
30125
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/htmlFallback.ts
|
|
30571
30126
|
const debug$7 = createDebugger("vite:html-fallback");
|
|
@@ -30609,7 +30164,6 @@ function htmlFallbackMiddleware(root, spaFallback, clientEnvironment) {
|
|
|
30609
30164
|
next();
|
|
30610
30165
|
};
|
|
30611
30166
|
}
|
|
30612
|
-
|
|
30613
30167
|
//#endregion
|
|
30614
30168
|
//#region ../../rolldown-vite/packages/vite/src/node/server/send.ts
|
|
30615
30169
|
const debug$6 = createDebugger("vite:send", { onlyWhenFocused: true });
|
|
@@ -30649,7 +30203,6 @@ function send(req, res, content, type, options) {
|
|
|
30649
30203
|
if (req.method === "HEAD") res.end();
|
|
30650
30204
|
else res.end(content);
|
|
30651
30205
|
}
|
|
30652
|
-
|
|
30653
30206
|
//#endregion
|
|
30654
30207
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/transform.ts
|
|
30655
30208
|
const debugCache = createDebugger("vite:cache");
|
|
@@ -30770,7 +30323,7 @@ function transformMiddleware(server) {
|
|
|
30770
30323
|
}
|
|
30771
30324
|
}
|
|
30772
30325
|
} catch (e) {
|
|
30773
|
-
if (e?.code === ERR_OPTIMIZE_DEPS_PROCESSING_ERROR) {
|
|
30326
|
+
if (e?.code === "ERR_OPTIMIZE_DEPS_PROCESSING_ERROR") {
|
|
30774
30327
|
if (!res.writableEnded) {
|
|
30775
30328
|
res.statusCode = 504;
|
|
30776
30329
|
res.statusMessage = "Optimize Deps Processing Error";
|
|
@@ -30779,7 +30332,7 @@ function transformMiddleware(server) {
|
|
|
30779
30332
|
server.config.logger.error(e.message);
|
|
30780
30333
|
return;
|
|
30781
30334
|
}
|
|
30782
|
-
if (e?.code === ERR_OUTDATED_OPTIMIZED_DEP) {
|
|
30335
|
+
if (e?.code === "ERR_OUTDATED_OPTIMIZED_DEP") {
|
|
30783
30336
|
if (!res.writableEnded) {
|
|
30784
30337
|
res.statusCode = 504;
|
|
30785
30338
|
res.statusMessage = "Outdated Optimize Dep";
|
|
@@ -30787,7 +30340,7 @@ function transformMiddleware(server) {
|
|
|
30787
30340
|
}
|
|
30788
30341
|
return;
|
|
30789
30342
|
}
|
|
30790
|
-
if (e?.code === ERR_CLOSED_SERVER) {
|
|
30343
|
+
if (e?.code === "ERR_CLOSED_SERVER") {
|
|
30791
30344
|
if (!res.writableEnded) {
|
|
30792
30345
|
res.statusCode = 504;
|
|
30793
30346
|
res.statusMessage = "Outdated Request";
|
|
@@ -30795,7 +30348,7 @@ function transformMiddleware(server) {
|
|
|
30795
30348
|
}
|
|
30796
30349
|
return;
|
|
30797
30350
|
}
|
|
30798
|
-
if (e?.code === ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR) {
|
|
30351
|
+
if (e?.code === "ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR") {
|
|
30799
30352
|
if (!res.writableEnded) {
|
|
30800
30353
|
res.statusCode = 404;
|
|
30801
30354
|
res.end();
|
|
@@ -30803,8 +30356,8 @@ function transformMiddleware(server) {
|
|
|
30803
30356
|
server.config.logger.warn(import_picocolors.default.yellow(e.message));
|
|
30804
30357
|
return;
|
|
30805
30358
|
}
|
|
30806
|
-
if (e?.code === ERR_LOAD_URL) return next();
|
|
30807
|
-
if (e?.code === ERR_DENIED_ID) {
|
|
30359
|
+
if (e?.code === "ERR_LOAD_URL") return next();
|
|
30360
|
+
if (e?.code === "ERR_DENIED_ID") {
|
|
30808
30361
|
const id = e.id;
|
|
30809
30362
|
const servingAccessResult = checkLoadingAccess(server.config, id);
|
|
30810
30363
|
if (servingAccessResult === "denied") {
|
|
@@ -30832,7 +30385,6 @@ If you intend to import that asset, put the file in the src directory, and use $
|
|
|
30832
30385
|
server.config.logger.warn(import_picocolors.default.yellow(warning));
|
|
30833
30386
|
}
|
|
30834
30387
|
}
|
|
30835
|
-
|
|
30836
30388
|
//#endregion
|
|
30837
30389
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/indexHtml.ts
|
|
30838
30390
|
function createDevHtmlTransformFn(config) {
|
|
@@ -31127,7 +30679,6 @@ async function generateFallbackHtml(server) {
|
|
|
31127
30679
|
</html>
|
|
31128
30680
|
`;
|
|
31129
30681
|
}
|
|
31130
|
-
|
|
31131
30682
|
//#endregion
|
|
31132
30683
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/time.ts
|
|
31133
30684
|
const logTime = createDebugger("vite:time");
|
|
@@ -31142,7 +30693,6 @@ function timeMiddleware(root) {
|
|
|
31142
30693
|
next();
|
|
31143
30694
|
};
|
|
31144
30695
|
}
|
|
31145
|
-
|
|
31146
30696
|
//#endregion
|
|
31147
30697
|
//#region ../../rolldown-vite/packages/vite/src/node/server/mixedModuleGraph.ts
|
|
31148
30698
|
/**
|
|
@@ -31557,7 +31107,6 @@ function createBackwardCompatibleFileToModulesMap(moduleGraph) {
|
|
|
31557
31107
|
}
|
|
31558
31108
|
};
|
|
31559
31109
|
}
|
|
31560
|
-
|
|
31561
31110
|
//#endregion
|
|
31562
31111
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/notFound.ts
|
|
31563
31112
|
function notFoundMiddleware() {
|
|
@@ -31566,7 +31115,6 @@ function notFoundMiddleware() {
|
|
|
31566
31115
|
res.end();
|
|
31567
31116
|
};
|
|
31568
31117
|
}
|
|
31569
|
-
|
|
31570
31118
|
//#endregion
|
|
31571
31119
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/hostCheck.ts
|
|
31572
31120
|
function getAdditionalAllowedHosts(resolvedServerOptions, resolvedPreviewOptions) {
|
|
@@ -31589,7 +31137,6 @@ function hostValidationMiddleware(allowedHosts, isPreview) {
|
|
|
31589
31137
|
}
|
|
31590
31138
|
});
|
|
31591
31139
|
}
|
|
31592
|
-
|
|
31593
31140
|
//#endregion
|
|
31594
31141
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/rejectInvalidRequest.ts
|
|
31595
31142
|
/**
|
|
@@ -31605,7 +31152,6 @@ function rejectInvalidRequestMiddleware() {
|
|
|
31605
31152
|
return next();
|
|
31606
31153
|
};
|
|
31607
31154
|
}
|
|
31608
|
-
|
|
31609
31155
|
//#endregion
|
|
31610
31156
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/memoryFiles.ts
|
|
31611
31157
|
function memoryFilesMiddleware(server) {
|
|
@@ -31634,7 +31180,6 @@ function memoryFilesMiddleware(server) {
|
|
|
31634
31180
|
next();
|
|
31635
31181
|
};
|
|
31636
31182
|
}
|
|
31637
|
-
|
|
31638
31183
|
//#endregion
|
|
31639
31184
|
//#region ../../rolldown-vite/packages/vite/src/node/server/middlewares/rejectNoCorsRequest.ts
|
|
31640
31185
|
/**
|
|
@@ -31661,14 +31206,34 @@ function rejectNoCorsRequestMiddleware() {
|
|
|
31661
31206
|
return next();
|
|
31662
31207
|
};
|
|
31663
31208
|
}
|
|
31664
|
-
|
|
31665
31209
|
//#endregion
|
|
31666
31210
|
//#region ../../rolldown-vite/packages/vite/src/node/server/index.ts
|
|
31667
31211
|
var import_connect = /* @__PURE__ */ __toESM(require_connect(), 1);
|
|
31668
31212
|
var import_lib = /* @__PURE__ */ __toESM(require_lib$1(), 1);
|
|
31669
31213
|
var import_chokidar = /* @__PURE__ */ __toESM(require_chokidar(), 1);
|
|
31670
31214
|
var import_launch_editor_middleware = /* @__PURE__ */ __toESM(require_launch_editor_middleware(), 1);
|
|
31215
|
+
var import_dist = require_dist();
|
|
31671
31216
|
const usedConfigs = /* @__PURE__ */ new WeakSet();
|
|
31217
|
+
async function resolveForwardConsoleOptions(value) {
|
|
31218
|
+
value ??= (await (0, import_dist.determineAgent)()).isAgent;
|
|
31219
|
+
if (value === false) return {
|
|
31220
|
+
enabled: false,
|
|
31221
|
+
unhandledErrors: false,
|
|
31222
|
+
logLevels: []
|
|
31223
|
+
};
|
|
31224
|
+
if (value === true) return {
|
|
31225
|
+
enabled: true,
|
|
31226
|
+
unhandledErrors: true,
|
|
31227
|
+
logLevels: ["error", "warn"]
|
|
31228
|
+
};
|
|
31229
|
+
const unhandledErrors = value.unhandledErrors ?? true;
|
|
31230
|
+
const logLevels = value.logLevels ?? [];
|
|
31231
|
+
return {
|
|
31232
|
+
enabled: unhandledErrors || logLevels.length > 0,
|
|
31233
|
+
unhandledErrors,
|
|
31234
|
+
logLevels
|
|
31235
|
+
};
|
|
31236
|
+
}
|
|
31672
31237
|
function createServer$2(inlineConfig = {}) {
|
|
31673
31238
|
return _createServer(inlineConfig, { listen: true });
|
|
31674
31239
|
}
|
|
@@ -31974,7 +31539,7 @@ async function startServer(server, hostname, inlinePort) {
|
|
|
31974
31539
|
if (!httpServer) throw new Error("Cannot call server.listen in middleware mode.");
|
|
31975
31540
|
const options = server.config.server;
|
|
31976
31541
|
const configPort = inlinePort ?? options.port;
|
|
31977
|
-
const port = (!configPort || configPort === server._configServerPort ? server._currentServerPort : configPort) ??
|
|
31542
|
+
const port = (!configPort || configPort === server._configServerPort ? server._currentServerPort : configPort) ?? 5173;
|
|
31978
31543
|
server._configServerPort = configPort;
|
|
31979
31544
|
server._currentServerPort = await httpServerStart(httpServer, {
|
|
31980
31545
|
port,
|
|
@@ -32034,10 +31599,11 @@ const _serverConfigDefaults = Object.freeze({
|
|
|
32034
31599
|
},
|
|
32035
31600
|
preTransformRequests: true,
|
|
32036
31601
|
perEnvironmentStartEndDuringDev: false,
|
|
32037
|
-
perEnvironmentWatchChangeDuringDev: false
|
|
31602
|
+
perEnvironmentWatchChangeDuringDev: false,
|
|
31603
|
+
forwardConsole: void 0
|
|
32038
31604
|
});
|
|
32039
31605
|
const serverConfigDefaults = _serverConfigDefaults;
|
|
32040
|
-
function resolveServerOptions(root, raw, logger) {
|
|
31606
|
+
async function resolveServerOptions(root, raw, logger) {
|
|
32041
31607
|
const _server = mergeWithDefaults({
|
|
32042
31608
|
..._serverConfigDefaults,
|
|
32043
31609
|
host: void 0,
|
|
@@ -32049,7 +31615,8 @@ function resolveServerOptions(root, raw, logger) {
|
|
|
32049
31615
|
..._server.fs,
|
|
32050
31616
|
allow: raw?.fs?.allow ?? [searchForWorkspaceRoot(root)]
|
|
32051
31617
|
},
|
|
32052
|
-
sourcemapIgnoreList: _server.sourcemapIgnoreList === false ? () => false : _server.sourcemapIgnoreList
|
|
31618
|
+
sourcemapIgnoreList: _server.sourcemapIgnoreList === false ? () => false : _server.sourcemapIgnoreList,
|
|
31619
|
+
forwardConsole: await resolveForwardConsoleOptions(_server.forwardConsole)
|
|
32053
31620
|
};
|
|
32054
31621
|
let allowDirs = server.fs.allow;
|
|
32055
31622
|
if (process.versions.pnp) {
|
|
@@ -32122,12 +31689,11 @@ async function restartServerWithUrls(server) {
|
|
|
32122
31689
|
const prevUrls = server.resolvedUrls;
|
|
32123
31690
|
await server.restart();
|
|
32124
31691
|
const { logger, server: { port, host } } = server.config;
|
|
32125
|
-
if ((port ??
|
|
31692
|
+
if ((port ?? 5173) !== (prevPort ?? 5173) || host !== prevHost || diffDnsOrderChange(prevUrls, server.resolvedUrls)) {
|
|
32126
31693
|
logger.info("");
|
|
32127
31694
|
server.printUrls();
|
|
32128
31695
|
}
|
|
32129
31696
|
}
|
|
32130
|
-
|
|
32131
31697
|
//#endregion
|
|
32132
31698
|
//#region ../../rolldown-vite/packages/vite/src/node/server/hmr.ts
|
|
32133
31699
|
const debugHmr = createDebugger("vite:hmr");
|
|
@@ -32668,7 +32234,6 @@ function createServerHotChannel() {
|
|
|
32668
32234
|
}
|
|
32669
32235
|
};
|
|
32670
32236
|
}
|
|
32671
|
-
|
|
32672
32237
|
//#endregion
|
|
32673
32238
|
//#region ../../rolldown-vite/packages/vite/src/node/external.ts
|
|
32674
32239
|
const debug$5 = createDebugger("vite:external");
|
|
@@ -32731,7 +32296,6 @@ function canExternalizeFile(filePath) {
|
|
|
32731
32296
|
const ext = path.extname(filePath);
|
|
32732
32297
|
return !ext || ext === ".js" || ext === ".mjs" || ext === ".cjs";
|
|
32733
32298
|
}
|
|
32734
|
-
|
|
32735
32299
|
//#endregion
|
|
32736
32300
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/worker.ts
|
|
32737
32301
|
var WorkerOutputCache = class {
|
|
@@ -32876,7 +32440,7 @@ async function workerFileToUrl(config, id) {
|
|
|
32876
32440
|
return bundle;
|
|
32877
32441
|
}
|
|
32878
32442
|
function webWorkerPostPlugin(config) {
|
|
32879
|
-
if (config.isBundled
|
|
32443
|
+
if (config.isBundled) return perEnvironmentPlugin("native:web-worker-post-plugin", (environment) => {
|
|
32880
32444
|
if (environment.config.worker.format === "iife") return viteWebWorkerPostPlugin();
|
|
32881
32445
|
});
|
|
32882
32446
|
return {
|
|
@@ -33088,7 +32652,6 @@ function isSameContent(a, b) {
|
|
|
33088
32652
|
}
|
|
33089
32653
|
return Buffer.from(b).equals(a);
|
|
33090
32654
|
}
|
|
33091
|
-
|
|
33092
32655
|
//#endregion
|
|
33093
32656
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/preAlias.ts
|
|
33094
32657
|
/**
|
|
@@ -33143,7 +32706,6 @@ function getAliasPatternMatcher(entries) {
|
|
|
33143
32706
|
const patterns = getAliasPatterns(entries);
|
|
33144
32707
|
return (importee) => patterns.some((pattern) => matches(pattern, importee));
|
|
33145
32708
|
}
|
|
33146
|
-
|
|
33147
32709
|
//#endregion
|
|
33148
32710
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/importAnalysis.ts
|
|
33149
32711
|
const debug$4 = createDebugger("vite:import-analysis");
|
|
@@ -33379,7 +32941,7 @@ function importAnalysisPlugin(config) {
|
|
|
33379
32941
|
interopNamedImports(str(), importSpecifier, url, index, importer, isNodeMode(), config);
|
|
33380
32942
|
rewriteDone = true;
|
|
33381
32943
|
}
|
|
33382
|
-
} else if (url.startsWith(wrapId(
|
|
32944
|
+
} else if (url.startsWith(wrapId("__vite-browser-external")) && source.slice(expStart, start).includes("{")) {
|
|
33383
32945
|
interopNamedImports(str(), importSpecifier, url, index, importer, isNodeMode(), config);
|
|
33384
32946
|
rewriteDone = true;
|
|
33385
32947
|
}
|
|
@@ -33415,7 +32977,7 @@ function importAnalysisPlugin(config) {
|
|
|
33415
32977
|
const staticImportedUrls = new Set(_orderedImportedUrls.map((url) => removeTimestampQuery(url)));
|
|
33416
32978
|
const acceptedUrls = mergeAcceptedUrls(orderedAcceptedUrls);
|
|
33417
32979
|
const acceptedExports = mergeAcceptedUrls(orderedAcceptedExports);
|
|
33418
|
-
const isClassicWorker = importer.includes(
|
|
32980
|
+
const isClassicWorker = importer.includes("worker_file") && importer.includes("type=classic");
|
|
33419
32981
|
if (hasEnv && !isClassicWorker) str().prepend(getEnv(ssr));
|
|
33420
32982
|
if (hasHMR && !ssr && !isClassicWorker) {
|
|
33421
32983
|
debugHmr?.(`${isSelfAccepting ? `[self-accepts]` : isPartiallySelfAccepting ? `[accepts-exports]` : acceptedUrls.size ? `[accepts-deps]` : `[detected api usage]`} ${prettifyUrl(importer, root)}`);
|
|
@@ -33567,7 +33129,6 @@ function __vite__injectQuery(url, queryToInject) {
|
|
|
33567
33129
|
const { search, hash } = new URL(url, "http://vite.dev");
|
|
33568
33130
|
return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`;
|
|
33569
33131
|
}
|
|
33570
|
-
|
|
33571
33132
|
//#endregion
|
|
33572
33133
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/wasm.ts
|
|
33573
33134
|
const wasmHelperId = "\0vite/wasm-helper.js";
|
|
@@ -33629,6 +33190,7 @@ export default ${wasmHelperCode}
|
|
|
33629
33190
|
`;
|
|
33630
33191
|
id = id.split("?")[0];
|
|
33631
33192
|
let url = await fileToUrl$1(this, id, ssr);
|
|
33193
|
+
assetUrlRE.lastIndex = 0;
|
|
33632
33194
|
if (ssr && assetUrlRE.test(url)) url = url.replace("__VITE_ASSET__", "__VITE_WASM_INIT__");
|
|
33633
33195
|
return `
|
|
33634
33196
|
import initWasm from "${wasmHelperId}"
|
|
@@ -33661,7 +33223,6 @@ export default ${wasmHelperCode}
|
|
|
33661
33223
|
};
|
|
33662
33224
|
});
|
|
33663
33225
|
};
|
|
33664
|
-
|
|
33665
33226
|
//#endregion
|
|
33666
33227
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/workerImportMetaUrl.ts
|
|
33667
33228
|
function err$1(e, pos) {
|
|
@@ -33793,7 +33354,6 @@ function workerImportMetaUrlPlugin(config) {
|
|
|
33793
33354
|
}
|
|
33794
33355
|
};
|
|
33795
33356
|
}
|
|
33796
|
-
|
|
33797
33357
|
//#endregion
|
|
33798
33358
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/importAnalysisBuild.ts
|
|
33799
33359
|
/**
|
|
@@ -34090,7 +33650,6 @@ function buildImportAnalysisPlugin(config) {
|
|
|
34090
33650
|
});
|
|
34091
33651
|
})];
|
|
34092
33652
|
}
|
|
34093
|
-
|
|
34094
33653
|
//#endregion
|
|
34095
33654
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/assetImportMetaUrl.ts
|
|
34096
33655
|
/**
|
|
@@ -34213,9 +33772,8 @@ function getQueryDelimiterIndex(rawUrl) {
|
|
|
34213
33772
|
else if (rawUrl[i] === "?" && bracketsStack === 0) return i;
|
|
34214
33773
|
return -1;
|
|
34215
33774
|
}
|
|
34216
|
-
|
|
34217
33775
|
//#endregion
|
|
34218
|
-
//#region ../../node_modules/.pnpm/@rollup+plugin-dynamic-import-vars@2.1.4_rollup@4.
|
|
33776
|
+
//#region ../../node_modules/.pnpm/@rollup+plugin-dynamic-import-vars@2.1.4_rollup@4.59.0/node_modules/@rollup/plugin-dynamic-import-vars/dist/es/index.js
|
|
34219
33777
|
var VariableDynamicImportError = class extends Error {};
|
|
34220
33778
|
const example = "For example: import(`./foo/${bar}.js`).";
|
|
34221
33779
|
function sanitizeString(str) {
|
|
@@ -34272,7 +33830,6 @@ function dynamicImportToGlob(node, sourceString) {
|
|
|
34272
33830
|
if (path$1.extname(glob) === "") throw new VariableDynamicImportError(`invalid import "${sourceString}". A file extension must be included in the static part of the import. ${example}`);
|
|
34273
33831
|
return glob;
|
|
34274
33832
|
}
|
|
34275
|
-
|
|
34276
33833
|
//#endregion
|
|
34277
33834
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/dynamicImportVars.ts
|
|
34278
33835
|
const dynamicImportHelperId = "\0vite/dynamic-import-helper.js";
|
|
@@ -34335,7 +33892,7 @@ function dynamicImportVarsPlugin(config) {
|
|
|
34335
33892
|
tryIndex: false,
|
|
34336
33893
|
extensions: []
|
|
34337
33894
|
});
|
|
34338
|
-
if (config.isBundled
|
|
33895
|
+
if (config.isBundled) return perEnvironmentPlugin("native:dynamic-import-vars", (environment) => {
|
|
34339
33896
|
const { include, exclude } = environment.config.build.dynamicImportVarsOptions;
|
|
34340
33897
|
return viteDynamicImportVarsPlugin({
|
|
34341
33898
|
include,
|
|
@@ -34406,11 +33963,10 @@ function dynamicImportVarsPlugin(config) {
|
|
|
34406
33963
|
}
|
|
34407
33964
|
};
|
|
34408
33965
|
}
|
|
34409
|
-
|
|
34410
33966
|
//#endregion
|
|
34411
33967
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/importMetaGlob.ts
|
|
34412
33968
|
function importGlobPlugin(config) {
|
|
34413
|
-
if (config.isBundled
|
|
33969
|
+
if (config.isBundled) return viteImportGlobPlugin({
|
|
34414
33970
|
root: config.root,
|
|
34415
33971
|
sourcemap: !!config.build.sourcemap,
|
|
34416
33972
|
restoreQueryExtension: config.experimental.importGlobRestoreExtension
|
|
@@ -34613,7 +34169,8 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
|
|
|
34613
34169
|
cwd: getCommonBase(globsResolved) ?? root,
|
|
34614
34170
|
dot: !!options.exhaustive,
|
|
34615
34171
|
expandDirectories: false,
|
|
34616
|
-
ignore: options.exhaustive ? [] : ["**/node_modules/**"]
|
|
34172
|
+
ignore: options.exhaustive ? [] : ["**/node_modules/**"],
|
|
34173
|
+
extglob: false
|
|
34617
34174
|
})).filter((file) => file !== id).sort();
|
|
34618
34175
|
const objectProps = [];
|
|
34619
34176
|
const staticImports = [];
|
|
@@ -34743,7 +34300,6 @@ function getCommonBase(globsResolved) {
|
|
|
34743
34300
|
function isVirtualModule(id) {
|
|
34744
34301
|
return id.startsWith("virtual:") || id[0] === "\0" || !id.includes("/");
|
|
34745
34302
|
}
|
|
34746
|
-
|
|
34747
34303
|
//#endregion
|
|
34748
34304
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/pluginFilter.ts
|
|
34749
34305
|
function getMatcherString(glob, cwd) {
|
|
@@ -34819,7 +34375,526 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
|
|
|
34819
34375
|
return fallback;
|
|
34820
34376
|
};
|
|
34821
34377
|
}
|
|
34822
|
-
|
|
34378
|
+
//#endregion
|
|
34379
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.5/node_modules/@vitest/utils/dist/helpers.js
|
|
34380
|
+
function notNullish(v) {
|
|
34381
|
+
return v != null;
|
|
34382
|
+
}
|
|
34383
|
+
function isPrimitive(value) {
|
|
34384
|
+
return value === null || typeof value !== "function" && typeof value !== "object";
|
|
34385
|
+
}
|
|
34386
|
+
//#endregion
|
|
34387
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.5/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
|
|
34388
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
34389
|
+
function normalizeWindowsPath(input = "") {
|
|
34390
|
+
if (!input) return input;
|
|
34391
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
34392
|
+
}
|
|
34393
|
+
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
34394
|
+
function cwd() {
|
|
34395
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
34396
|
+
return "/";
|
|
34397
|
+
}
|
|
34398
|
+
const resolve$2 = function(...arguments_) {
|
|
34399
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
34400
|
+
let resolvedPath = "";
|
|
34401
|
+
let resolvedAbsolute = false;
|
|
34402
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
34403
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
34404
|
+
if (!path || path.length === 0) continue;
|
|
34405
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
34406
|
+
resolvedAbsolute = isAbsolute$2(path);
|
|
34407
|
+
}
|
|
34408
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
34409
|
+
if (resolvedAbsolute && !isAbsolute$2(resolvedPath)) return `/${resolvedPath}`;
|
|
34410
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
34411
|
+
};
|
|
34412
|
+
function normalizeString(path, allowAboveRoot) {
|
|
34413
|
+
let res = "";
|
|
34414
|
+
let lastSegmentLength = 0;
|
|
34415
|
+
let lastSlash = -1;
|
|
34416
|
+
let dots = 0;
|
|
34417
|
+
let char = null;
|
|
34418
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
34419
|
+
if (index < path.length) char = path[index];
|
|
34420
|
+
else if (char === "/") break;
|
|
34421
|
+
else char = "/";
|
|
34422
|
+
if (char === "/") {
|
|
34423
|
+
if (lastSlash === index - 1 || dots === 1);
|
|
34424
|
+
else if (dots === 2) {
|
|
34425
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
34426
|
+
if (res.length > 2) {
|
|
34427
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
34428
|
+
if (lastSlashIndex === -1) {
|
|
34429
|
+
res = "";
|
|
34430
|
+
lastSegmentLength = 0;
|
|
34431
|
+
} else {
|
|
34432
|
+
res = res.slice(0, lastSlashIndex);
|
|
34433
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
34434
|
+
}
|
|
34435
|
+
lastSlash = index;
|
|
34436
|
+
dots = 0;
|
|
34437
|
+
continue;
|
|
34438
|
+
} else if (res.length > 0) {
|
|
34439
|
+
res = "";
|
|
34440
|
+
lastSegmentLength = 0;
|
|
34441
|
+
lastSlash = index;
|
|
34442
|
+
dots = 0;
|
|
34443
|
+
continue;
|
|
34444
|
+
}
|
|
34445
|
+
}
|
|
34446
|
+
if (allowAboveRoot) {
|
|
34447
|
+
res += res.length > 0 ? "/.." : "..";
|
|
34448
|
+
lastSegmentLength = 2;
|
|
34449
|
+
}
|
|
34450
|
+
} else {
|
|
34451
|
+
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
34452
|
+
else res = path.slice(lastSlash + 1, index);
|
|
34453
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
34454
|
+
}
|
|
34455
|
+
lastSlash = index;
|
|
34456
|
+
dots = 0;
|
|
34457
|
+
} else if (char === "." && dots !== -1) ++dots;
|
|
34458
|
+
else dots = -1;
|
|
34459
|
+
}
|
|
34460
|
+
return res;
|
|
34461
|
+
}
|
|
34462
|
+
const isAbsolute$2 = function(p) {
|
|
34463
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
34464
|
+
};
|
|
34465
|
+
//#endregion
|
|
34466
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.0-beta.5/node_modules/@vitest/utils/dist/source-map.js
|
|
34467
|
+
var comma = ",".charCodeAt(0);
|
|
34468
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
34469
|
+
var intToChar = new Uint8Array(64);
|
|
34470
|
+
var charToInt = new Uint8Array(128);
|
|
34471
|
+
for (let i = 0; i < chars.length; i++) {
|
|
34472
|
+
const c = chars.charCodeAt(i);
|
|
34473
|
+
intToChar[i] = c;
|
|
34474
|
+
charToInt[c] = i;
|
|
34475
|
+
}
|
|
34476
|
+
function decodeInteger(reader, relative) {
|
|
34477
|
+
let value = 0;
|
|
34478
|
+
let shift = 0;
|
|
34479
|
+
let integer = 0;
|
|
34480
|
+
do {
|
|
34481
|
+
integer = charToInt[reader.next()];
|
|
34482
|
+
value |= (integer & 31) << shift;
|
|
34483
|
+
shift += 5;
|
|
34484
|
+
} while (integer & 32);
|
|
34485
|
+
const shouldNegate = value & 1;
|
|
34486
|
+
value >>>= 1;
|
|
34487
|
+
if (shouldNegate) value = -2147483648 | -value;
|
|
34488
|
+
return relative + value;
|
|
34489
|
+
}
|
|
34490
|
+
function hasMoreVlq(reader, max) {
|
|
34491
|
+
if (reader.pos >= max) return false;
|
|
34492
|
+
return reader.peek() !== comma;
|
|
34493
|
+
}
|
|
34494
|
+
var StringReader = class {
|
|
34495
|
+
constructor(buffer) {
|
|
34496
|
+
this.pos = 0;
|
|
34497
|
+
this.buffer = buffer;
|
|
34498
|
+
}
|
|
34499
|
+
next() {
|
|
34500
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
34501
|
+
}
|
|
34502
|
+
peek() {
|
|
34503
|
+
return this.buffer.charCodeAt(this.pos);
|
|
34504
|
+
}
|
|
34505
|
+
indexOf(char) {
|
|
34506
|
+
const { buffer, pos } = this;
|
|
34507
|
+
const idx = buffer.indexOf(char, pos);
|
|
34508
|
+
return idx === -1 ? buffer.length : idx;
|
|
34509
|
+
}
|
|
34510
|
+
};
|
|
34511
|
+
function decode(mappings) {
|
|
34512
|
+
const { length } = mappings;
|
|
34513
|
+
const reader = new StringReader(mappings);
|
|
34514
|
+
const decoded = [];
|
|
34515
|
+
let genColumn = 0;
|
|
34516
|
+
let sourcesIndex = 0;
|
|
34517
|
+
let sourceLine = 0;
|
|
34518
|
+
let sourceColumn = 0;
|
|
34519
|
+
let namesIndex = 0;
|
|
34520
|
+
do {
|
|
34521
|
+
const semi = reader.indexOf(";");
|
|
34522
|
+
const line = [];
|
|
34523
|
+
let sorted = true;
|
|
34524
|
+
let lastCol = 0;
|
|
34525
|
+
genColumn = 0;
|
|
34526
|
+
while (reader.pos < semi) {
|
|
34527
|
+
let seg;
|
|
34528
|
+
genColumn = decodeInteger(reader, genColumn);
|
|
34529
|
+
if (genColumn < lastCol) sorted = false;
|
|
34530
|
+
lastCol = genColumn;
|
|
34531
|
+
if (hasMoreVlq(reader, semi)) {
|
|
34532
|
+
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
34533
|
+
sourceLine = decodeInteger(reader, sourceLine);
|
|
34534
|
+
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
34535
|
+
if (hasMoreVlq(reader, semi)) {
|
|
34536
|
+
namesIndex = decodeInteger(reader, namesIndex);
|
|
34537
|
+
seg = [
|
|
34538
|
+
genColumn,
|
|
34539
|
+
sourcesIndex,
|
|
34540
|
+
sourceLine,
|
|
34541
|
+
sourceColumn,
|
|
34542
|
+
namesIndex
|
|
34543
|
+
];
|
|
34544
|
+
} else seg = [
|
|
34545
|
+
genColumn,
|
|
34546
|
+
sourcesIndex,
|
|
34547
|
+
sourceLine,
|
|
34548
|
+
sourceColumn
|
|
34549
|
+
];
|
|
34550
|
+
} else seg = [genColumn];
|
|
34551
|
+
line.push(seg);
|
|
34552
|
+
reader.pos++;
|
|
34553
|
+
}
|
|
34554
|
+
if (!sorted) sort(line);
|
|
34555
|
+
decoded.push(line);
|
|
34556
|
+
reader.pos = semi + 1;
|
|
34557
|
+
} while (reader.pos <= length);
|
|
34558
|
+
return decoded;
|
|
34559
|
+
}
|
|
34560
|
+
function sort(line) {
|
|
34561
|
+
line.sort(sortComparator);
|
|
34562
|
+
}
|
|
34563
|
+
function sortComparator(a, b) {
|
|
34564
|
+
return a[0] - b[0];
|
|
34565
|
+
}
|
|
34566
|
+
var COLUMN = 0;
|
|
34567
|
+
var SOURCES_INDEX = 1;
|
|
34568
|
+
var SOURCE_LINE = 2;
|
|
34569
|
+
var SOURCE_COLUMN = 3;
|
|
34570
|
+
var NAMES_INDEX = 4;
|
|
34571
|
+
var found = false;
|
|
34572
|
+
function binarySearch(haystack, needle, low, high) {
|
|
34573
|
+
while (low <= high) {
|
|
34574
|
+
const mid = low + (high - low >> 1);
|
|
34575
|
+
const cmp = haystack[mid][COLUMN] - needle;
|
|
34576
|
+
if (cmp === 0) {
|
|
34577
|
+
found = true;
|
|
34578
|
+
return mid;
|
|
34579
|
+
}
|
|
34580
|
+
if (cmp < 0) low = mid + 1;
|
|
34581
|
+
else high = mid - 1;
|
|
34582
|
+
}
|
|
34583
|
+
found = false;
|
|
34584
|
+
return low - 1;
|
|
34585
|
+
}
|
|
34586
|
+
function upperBound(haystack, needle, index) {
|
|
34587
|
+
for (let i = index + 1; i < haystack.length; index = i++) if (haystack[i][COLUMN] !== needle) break;
|
|
34588
|
+
return index;
|
|
34589
|
+
}
|
|
34590
|
+
function lowerBound(haystack, needle, index) {
|
|
34591
|
+
for (let i = index - 1; i >= 0; index = i--) if (haystack[i][COLUMN] !== needle) break;
|
|
34592
|
+
return index;
|
|
34593
|
+
}
|
|
34594
|
+
function memoizedBinarySearch(haystack, needle, state, key) {
|
|
34595
|
+
const { lastKey, lastNeedle, lastIndex } = state;
|
|
34596
|
+
let low = 0;
|
|
34597
|
+
let high = haystack.length - 1;
|
|
34598
|
+
if (key === lastKey) {
|
|
34599
|
+
if (needle === lastNeedle) {
|
|
34600
|
+
found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
|
|
34601
|
+
return lastIndex;
|
|
34602
|
+
}
|
|
34603
|
+
if (needle >= lastNeedle) low = lastIndex === -1 ? 0 : lastIndex;
|
|
34604
|
+
else high = lastIndex;
|
|
34605
|
+
}
|
|
34606
|
+
state.lastKey = key;
|
|
34607
|
+
state.lastNeedle = needle;
|
|
34608
|
+
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
34609
|
+
}
|
|
34610
|
+
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
34611
|
+
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
34612
|
+
var LEAST_UPPER_BOUND = -1;
|
|
34613
|
+
var GREATEST_LOWER_BOUND = 1;
|
|
34614
|
+
function cast(map) {
|
|
34615
|
+
return map;
|
|
34616
|
+
}
|
|
34617
|
+
function decodedMappings(map) {
|
|
34618
|
+
var _a;
|
|
34619
|
+
return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
|
|
34620
|
+
}
|
|
34621
|
+
function originalPositionFor(map, needle) {
|
|
34622
|
+
let { line, column, bias } = needle;
|
|
34623
|
+
line--;
|
|
34624
|
+
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
34625
|
+
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
34626
|
+
const decoded = decodedMappings(map);
|
|
34627
|
+
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
34628
|
+
const segments = decoded[line];
|
|
34629
|
+
const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
34630
|
+
if (index === -1) return OMapping(null, null, null, null);
|
|
34631
|
+
const segment = segments[index];
|
|
34632
|
+
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
34633
|
+
const { names, resolvedSources } = map;
|
|
34634
|
+
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
34635
|
+
}
|
|
34636
|
+
function OMapping(source, line, column, name) {
|
|
34637
|
+
return {
|
|
34638
|
+
source,
|
|
34639
|
+
line,
|
|
34640
|
+
column,
|
|
34641
|
+
name
|
|
34642
|
+
};
|
|
34643
|
+
}
|
|
34644
|
+
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
34645
|
+
let index = memoizedBinarySearch(segments, column, memo, line);
|
|
34646
|
+
if (found) index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
|
|
34647
|
+
else if (bias === LEAST_UPPER_BOUND) index++;
|
|
34648
|
+
if (index === -1 || index === segments.length) return -1;
|
|
34649
|
+
return index;
|
|
34650
|
+
}
|
|
34651
|
+
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
34652
|
+
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
34653
|
+
const stackIgnorePatterns = [
|
|
34654
|
+
"node:internal",
|
|
34655
|
+
/\/packages\/\w+\/dist\//,
|
|
34656
|
+
/\/@vitest\/\w+\/dist\//,
|
|
34657
|
+
"/vitest/dist/",
|
|
34658
|
+
"/vitest/src/",
|
|
34659
|
+
"/node_modules/chai/",
|
|
34660
|
+
"/node_modules/tinyspy/",
|
|
34661
|
+
"/vite/dist/node/module-runner",
|
|
34662
|
+
"/rolldown-vite/dist/node/module-runner",
|
|
34663
|
+
"/deps/chunk-",
|
|
34664
|
+
"/deps/@vitest",
|
|
34665
|
+
"/deps/loupe",
|
|
34666
|
+
"/deps/chai",
|
|
34667
|
+
"/browser-playwright/dist/locators.js",
|
|
34668
|
+
"/browser-webdriverio/dist/locators.js",
|
|
34669
|
+
"/browser-preview/dist/locators.js",
|
|
34670
|
+
/node:\w+/,
|
|
34671
|
+
/__vitest_test__/,
|
|
34672
|
+
/__vitest_browser__/,
|
|
34673
|
+
"/@id/__x00__vitest/browser",
|
|
34674
|
+
/\/deps\/vitest_/
|
|
34675
|
+
];
|
|
34676
|
+
const NOW_LENGTH = Date.now().toString().length;
|
|
34677
|
+
const REGEXP_VITEST = new RegExp(`vitest=\\d{${NOW_LENGTH}}`);
|
|
34678
|
+
function extractLocation(urlLike) {
|
|
34679
|
+
if (!urlLike.includes(":")) return [urlLike];
|
|
34680
|
+
const parts = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
34681
|
+
if (!parts) return [urlLike];
|
|
34682
|
+
let url = parts[1];
|
|
34683
|
+
if (url.startsWith("async ")) url = url.slice(6);
|
|
34684
|
+
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
34685
|
+
const urlObj = new URL(url);
|
|
34686
|
+
urlObj.searchParams.delete("import");
|
|
34687
|
+
urlObj.searchParams.delete("browserv");
|
|
34688
|
+
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
34689
|
+
}
|
|
34690
|
+
if (url.startsWith("/@fs/")) {
|
|
34691
|
+
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
34692
|
+
url = url.slice(isWindows ? 5 : 4);
|
|
34693
|
+
}
|
|
34694
|
+
if (url.includes("vitest=")) url = url.replace(REGEXP_VITEST, "").replace(/[?&]$/, "");
|
|
34695
|
+
return [
|
|
34696
|
+
url,
|
|
34697
|
+
parts[2] || void 0,
|
|
34698
|
+
parts[3] || void 0
|
|
34699
|
+
];
|
|
34700
|
+
}
|
|
34701
|
+
function parseSingleFFOrSafariStack(raw) {
|
|
34702
|
+
let line = raw.trim();
|
|
34703
|
+
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) return null;
|
|
34704
|
+
if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
34705
|
+
if (!line.includes("@")) return null;
|
|
34706
|
+
let atIndex = -1;
|
|
34707
|
+
let locationPart = "";
|
|
34708
|
+
let functionName;
|
|
34709
|
+
for (let i = 0; i < line.length; i++) if (line[i] === "@") {
|
|
34710
|
+
const candidateLocation = line.slice(i + 1);
|
|
34711
|
+
if (candidateLocation.includes(":") && candidateLocation.length >= 3) {
|
|
34712
|
+
atIndex = i;
|
|
34713
|
+
locationPart = candidateLocation;
|
|
34714
|
+
functionName = i > 0 ? line.slice(0, i) : void 0;
|
|
34715
|
+
break;
|
|
34716
|
+
}
|
|
34717
|
+
}
|
|
34718
|
+
if (atIndex === -1 || !locationPart.includes(":") || locationPart.length < 3) return null;
|
|
34719
|
+
const [url, lineNumber, columnNumber] = extractLocation(locationPart);
|
|
34720
|
+
if (!url || !lineNumber || !columnNumber) return null;
|
|
34721
|
+
return {
|
|
34722
|
+
file: url,
|
|
34723
|
+
method: functionName || "",
|
|
34724
|
+
line: Number.parseInt(lineNumber),
|
|
34725
|
+
column: Number.parseInt(columnNumber)
|
|
34726
|
+
};
|
|
34727
|
+
}
|
|
34728
|
+
function parseSingleV8Stack(raw) {
|
|
34729
|
+
let line = raw.trim();
|
|
34730
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) return null;
|
|
34731
|
+
if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
34732
|
+
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
34733
|
+
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
34734
|
+
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
34735
|
+
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
34736
|
+
let method = location && sanitizedLine || "";
|
|
34737
|
+
let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
|
|
34738
|
+
if (!file || !lineNumber || !columnNumber) return null;
|
|
34739
|
+
if (method.startsWith("async ")) method = method.slice(6);
|
|
34740
|
+
if (file.startsWith("file://")) file = file.slice(7);
|
|
34741
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve$2(file);
|
|
34742
|
+
if (method) method = method.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g, "$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "").replace(/(Object\.)?__vite_ssr_export_default__\s?/g, "");
|
|
34743
|
+
return {
|
|
34744
|
+
method,
|
|
34745
|
+
file,
|
|
34746
|
+
line: Number.parseInt(lineNumber),
|
|
34747
|
+
column: Number.parseInt(columnNumber)
|
|
34748
|
+
};
|
|
34749
|
+
}
|
|
34750
|
+
function parseStacktrace(stack, options = {}) {
|
|
34751
|
+
const { ignoreStackEntries = stackIgnorePatterns } = options;
|
|
34752
|
+
let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
|
|
34753
|
+
const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__");
|
|
34754
|
+
if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
|
|
34755
|
+
return stacks.map((stack) => {
|
|
34756
|
+
if (options.getUrlId) stack.file = options.getUrlId(stack.file);
|
|
34757
|
+
const map = options.getSourceMap?.(stack.file);
|
|
34758
|
+
if (!map || typeof map !== "object" || !map.version) return shouldFilter(ignoreStackEntries, stack.file) ? null : stack;
|
|
34759
|
+
const position = getOriginalPosition(new DecodedMap(map, stack.file), stack);
|
|
34760
|
+
if (!position) return stack;
|
|
34761
|
+
const { line, column, source, name } = position;
|
|
34762
|
+
let file = source || stack.file;
|
|
34763
|
+
if (file.match(/\/\w:\//)) file = file.slice(1);
|
|
34764
|
+
if (shouldFilter(ignoreStackEntries, file)) return null;
|
|
34765
|
+
if (line != null && column != null) return {
|
|
34766
|
+
line,
|
|
34767
|
+
column,
|
|
34768
|
+
file,
|
|
34769
|
+
method: name || stack.method
|
|
34770
|
+
};
|
|
34771
|
+
return stack;
|
|
34772
|
+
}).filter((s) => s != null);
|
|
34773
|
+
}
|
|
34774
|
+
function shouldFilter(ignoreStackEntries, file) {
|
|
34775
|
+
return ignoreStackEntries.some((p) => file.match(p));
|
|
34776
|
+
}
|
|
34777
|
+
function parseFFOrSafariStackTrace(stack) {
|
|
34778
|
+
return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);
|
|
34779
|
+
}
|
|
34780
|
+
function parseV8Stacktrace(stack) {
|
|
34781
|
+
return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish);
|
|
34782
|
+
}
|
|
34783
|
+
function parseErrorStacktrace(e, options = {}) {
|
|
34784
|
+
if (!e || isPrimitive(e)) return [];
|
|
34785
|
+
if ("stacks" in e && e.stacks) return e.stacks;
|
|
34786
|
+
const stackStr = e.stack || "";
|
|
34787
|
+
let stackFrames = typeof stackStr === "string" ? parseStacktrace(stackStr, options) : [];
|
|
34788
|
+
if (!stackFrames.length) {
|
|
34789
|
+
const e_ = e;
|
|
34790
|
+
if (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) stackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);
|
|
34791
|
+
if (e_.sourceURL != null && e_.line != null && e_._column != null) stackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);
|
|
34792
|
+
}
|
|
34793
|
+
if (options.frameFilter) stackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);
|
|
34794
|
+
e.stacks = stackFrames;
|
|
34795
|
+
return stackFrames;
|
|
34796
|
+
}
|
|
34797
|
+
var DecodedMap = class {
|
|
34798
|
+
_encoded;
|
|
34799
|
+
_decoded;
|
|
34800
|
+
_decodedMemo;
|
|
34801
|
+
url;
|
|
34802
|
+
version;
|
|
34803
|
+
names = [];
|
|
34804
|
+
resolvedSources;
|
|
34805
|
+
constructor(map, from) {
|
|
34806
|
+
this.map = map;
|
|
34807
|
+
const { mappings, names, sources } = map;
|
|
34808
|
+
this.version = map.version;
|
|
34809
|
+
this.names = names || [];
|
|
34810
|
+
this._encoded = mappings || "";
|
|
34811
|
+
this._decodedMemo = memoizedState();
|
|
34812
|
+
this.url = from;
|
|
34813
|
+
this.resolvedSources = (sources || []).map((s) => resolve$2(from, "..", s || ""));
|
|
34814
|
+
}
|
|
34815
|
+
};
|
|
34816
|
+
function memoizedState() {
|
|
34817
|
+
return {
|
|
34818
|
+
lastKey: -1,
|
|
34819
|
+
lastNeedle: -1,
|
|
34820
|
+
lastIndex: -1
|
|
34821
|
+
};
|
|
34822
|
+
}
|
|
34823
|
+
function getOriginalPosition(map, needle) {
|
|
34824
|
+
const result = originalPositionFor(map, needle);
|
|
34825
|
+
if (result.column == null) return null;
|
|
34826
|
+
return result;
|
|
34827
|
+
}
|
|
34828
|
+
//#endregion
|
|
34829
|
+
//#region ../../rolldown-vite/packages/vite/src/node/plugins/forwardConsole.ts
|
|
34830
|
+
function forwardConsolePlugin(pluginOpts) {
|
|
34831
|
+
const sourceMapCache = /* @__PURE__ */ new Map();
|
|
34832
|
+
return {
|
|
34833
|
+
name: "vite:forward-console",
|
|
34834
|
+
apply: "serve",
|
|
34835
|
+
configureServer(server) {
|
|
34836
|
+
for (const name of pluginOpts.environments) {
|
|
34837
|
+
const environment = server.environments[name];
|
|
34838
|
+
environment.hot.on("vite:forward-console", (payload) => {
|
|
34839
|
+
if (payload.type === "error" || payload.type === "unhandled-rejection") {
|
|
34840
|
+
const output = formatError(payload, environment, sourceMapCache);
|
|
34841
|
+
environment.config.logger.error(output, { timestamp: true });
|
|
34842
|
+
} else {
|
|
34843
|
+
const output = import_picocolors.default.dim(`[console.${payload.data.level}] `) + payload.data.message;
|
|
34844
|
+
if (payload.data.level === "error") environment.config.logger.error(output, { timestamp: true });
|
|
34845
|
+
else if (payload.data.level === "warn") environment.config.logger.warn(output, { timestamp: true });
|
|
34846
|
+
else environment.config.logger.info(output, { timestamp: true });
|
|
34847
|
+
}
|
|
34848
|
+
});
|
|
34849
|
+
}
|
|
34850
|
+
}
|
|
34851
|
+
};
|
|
34852
|
+
}
|
|
34853
|
+
function formatError(payload, environment, sourceMapCache) {
|
|
34854
|
+
const error = payload.data;
|
|
34855
|
+
const stacks = parseErrorStacktrace(error, {
|
|
34856
|
+
getUrlId(id) {
|
|
34857
|
+
const moduleGraph = environment.moduleGraph;
|
|
34858
|
+
if (moduleGraph.getModuleById(id)) return id;
|
|
34859
|
+
const resolvedPath = normalizePath$1(path.resolve(environment.config.root, id.slice(1)));
|
|
34860
|
+
if (moduleGraph.getModuleById(resolvedPath)) return resolvedPath;
|
|
34861
|
+
const files = moduleGraph.getModulesByFile(resolvedPath);
|
|
34862
|
+
if (files && files.size) return files.values().next().value.id;
|
|
34863
|
+
return id;
|
|
34864
|
+
},
|
|
34865
|
+
getSourceMap(id) {
|
|
34866
|
+
if (sourceMapCache.has(id)) return sourceMapCache.get(id);
|
|
34867
|
+
const result = environment.moduleGraph.getModuleById(id)?.transformResult;
|
|
34868
|
+
if (result && !result.map) try {
|
|
34869
|
+
const filePath = id.split("?")[0];
|
|
34870
|
+
const extracted = extractSourcemapFromFile(result.code, filePath);
|
|
34871
|
+
sourceMapCache.set(id, extracted?.map);
|
|
34872
|
+
return extracted?.map;
|
|
34873
|
+
} catch {
|
|
34874
|
+
sourceMapCache.set(id, null);
|
|
34875
|
+
return null;
|
|
34876
|
+
}
|
|
34877
|
+
sourceMapCache.set(id, result?.map);
|
|
34878
|
+
return result?.map;
|
|
34879
|
+
},
|
|
34880
|
+
ignoreStackEntries: []
|
|
34881
|
+
});
|
|
34882
|
+
const nearest = stacks.find((stack) => {
|
|
34883
|
+
return [...environment.moduleGraph.getModulesByFile(stack.file) || []].some((m) => m.transformResult) && fs.existsSync(stack.file);
|
|
34884
|
+
});
|
|
34885
|
+
let output = "";
|
|
34886
|
+
output += import_picocolors.default.red(`${payload.type === "unhandled-rejection" ? "[Unhandled rejection]" : "[Unhandled error]"} ${import_picocolors.default.bold(error.name)}: ${error.message}\n`);
|
|
34887
|
+
for (const stack of stacks) {
|
|
34888
|
+
const file = normalizePath$1(path.relative(environment.config.root, stack.file));
|
|
34889
|
+
output += ` > ${[stack.method, `${file}:${stack.line}:${stack.column}`].filter(Boolean).join(" ")}\n`;
|
|
34890
|
+
if (stack === nearest) {
|
|
34891
|
+
const code = fs.readFileSync(stack.file, "utf-8");
|
|
34892
|
+
output += generateCodeFrame(code, stack).replace(/^/gm, " ");
|
|
34893
|
+
output += "\n";
|
|
34894
|
+
}
|
|
34895
|
+
}
|
|
34896
|
+
return output;
|
|
34897
|
+
}
|
|
34823
34898
|
//#endregion
|
|
34824
34899
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/esbuildBannerFooterCompatPlugin.ts
|
|
34825
34900
|
/**
|
|
@@ -34855,7 +34930,6 @@ function esbuildBannerFooterCompatPlugin(config) {
|
|
|
34855
34930
|
}
|
|
34856
34931
|
};
|
|
34857
34932
|
}
|
|
34858
|
-
|
|
34859
34933
|
//#endregion
|
|
34860
34934
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/index.ts
|
|
34861
34935
|
async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
@@ -34867,12 +34941,11 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
|
34867
34941
|
post: []
|
|
34868
34942
|
};
|
|
34869
34943
|
const { modulePreload } = config.build;
|
|
34870
|
-
const enableNativePluginV1 = config.nativePluginEnabledLevel >= 1;
|
|
34871
34944
|
return [
|
|
34872
34945
|
!isBundled ? optimizedDepsPlugin() : null,
|
|
34873
34946
|
!isWorker ? watchPackageDataPlugin(config.packageCache) : null,
|
|
34874
34947
|
!isBundled ? preAliasPlugin(config) : null,
|
|
34875
|
-
isBundled &&
|
|
34948
|
+
isBundled && !config.resolve.alias.some((v) => v.customResolver) ? viteAliasPlugin({ entries: config.resolve.alias.map((item) => {
|
|
34876
34949
|
return {
|
|
34877
34950
|
find: item.find,
|
|
34878
34951
|
replacement: item.replacement
|
|
@@ -34908,6 +34981,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
|
|
|
34908
34981
|
wasmHelperPlugin(),
|
|
34909
34982
|
webWorkerPlugin(config),
|
|
34910
34983
|
assetPlugin(config),
|
|
34984
|
+
config.server.forwardConsole.enabled && forwardConsolePlugin({ environments: ["client"] }),
|
|
34911
34985
|
...normalPlugins,
|
|
34912
34986
|
viteWasmFallbackPlugin(),
|
|
34913
34987
|
definePlugin(config),
|
|
@@ -35007,7 +35081,6 @@ const viteAliasCustomResolver = async function(id, importer, options) {
|
|
|
35007
35081
|
meta: { "vite:alias": { noResolved: true } }
|
|
35008
35082
|
};
|
|
35009
35083
|
};
|
|
35010
|
-
|
|
35011
35084
|
//#endregion
|
|
35012
35085
|
//#region ../../rolldown-vite/packages/vite/src/node/server/pluginContainer.ts
|
|
35013
35086
|
/**
|
|
@@ -35544,7 +35617,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
35544
35617
|
if (this instanceof TransformPluginContext && typeof err.loc?.line === "number" && typeof err.loc.column === "number") {
|
|
35545
35618
|
const rawSourceMap = this._getCombinedSourcemap();
|
|
35546
35619
|
if (rawSourceMap && "version" in rawSourceMap) {
|
|
35547
|
-
const { source, line, column } = originalPositionFor$
|
|
35620
|
+
const { source, line, column } = originalPositionFor$2(new TraceMap(rawSourceMap), {
|
|
35548
35621
|
line: Number(err.loc.line),
|
|
35549
35622
|
column: Number(err.loc.column)
|
|
35550
35623
|
});
|
|
@@ -35722,7 +35795,6 @@ var PluginContainer = class {
|
|
|
35722
35795
|
function createPluginContainer(environments) {
|
|
35723
35796
|
return new PluginContainer(environments);
|
|
35724
35797
|
}
|
|
35725
|
-
|
|
35726
35798
|
//#endregion
|
|
35727
35799
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/scan.ts
|
|
35728
35800
|
var ScanEnvironment = class extends BaseEnvironment {
|
|
@@ -36108,7 +36180,6 @@ function shouldExternalizeDep(resolvedId, rawId) {
|
|
|
36108
36180
|
function isScannable(id, extensions) {
|
|
36109
36181
|
return JS_TYPES_RE.test(id) || htmlTypesRE.test(id) || extensions?.includes(path.extname(id)) || false;
|
|
36110
36182
|
}
|
|
36111
|
-
|
|
36112
36183
|
//#endregion
|
|
36113
36184
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/resolve.ts
|
|
36114
36185
|
function createOptimizeDepsIncludeResolver(environment) {
|
|
@@ -36193,7 +36264,6 @@ function nestedResolveBasedir(id, basedir, preserveSymlinks = false) {
|
|
|
36193
36264
|
for (const pkg of pkgs) basedir = resolvePackageData(pkg, basedir, preserveSymlinks)?.dir || basedir;
|
|
36194
36265
|
return basedir;
|
|
36195
36266
|
}
|
|
36196
|
-
|
|
36197
36267
|
//#endregion
|
|
36198
36268
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/rolldownDepPlugin.ts
|
|
36199
36269
|
const externalWithConversionNamespace = "vite:dep-pre-bundle:external-conversion";
|
|
@@ -36227,6 +36297,13 @@ function rolldownDepPlugin(environment, qualified, external) {
|
|
|
36227
36297
|
const allExternalTypes = extensions ? externalTypes.filter((type) => !extensions.includes("." + type)) : externalTypes;
|
|
36228
36298
|
const esmPackageCache = /* @__PURE__ */ new Map();
|
|
36229
36299
|
const cjsPackageCache = /* @__PURE__ */ new Map();
|
|
36300
|
+
const resolveAssets = (resolved, kind) => {
|
|
36301
|
+
if (kind === "require-call") return { id: externalWithConversionNamespace + resolved };
|
|
36302
|
+
return {
|
|
36303
|
+
id: resolved,
|
|
36304
|
+
external: "absolute"
|
|
36305
|
+
};
|
|
36306
|
+
};
|
|
36230
36307
|
const _resolve = createBackCompatIdResolver(environment.getTopLevelConfig(), {
|
|
36231
36308
|
asSrc: false,
|
|
36232
36309
|
scan: true,
|
|
@@ -36242,9 +36319,10 @@ function rolldownDepPlugin(environment, qualified, external) {
|
|
|
36242
36319
|
const _importer = importer && importer in qualified ? qualified[importer] : importer;
|
|
36243
36320
|
return (kind.startsWith("require") ? _resolveRequire : _resolve)(environment, id, _importer);
|
|
36244
36321
|
};
|
|
36245
|
-
const resolveResult = (id, resolved) => {
|
|
36246
|
-
if (resolved.startsWith(
|
|
36247
|
-
if (resolved.startsWith(
|
|
36322
|
+
const resolveResult = (id, resolved, kind) => {
|
|
36323
|
+
if (resolved.startsWith("__vite-browser-external")) return { id: browserExternalNamespace + id };
|
|
36324
|
+
if (resolved.startsWith("__vite-optional-peer-dep")) return { id: optionalPeerDepNamespace + resolved };
|
|
36325
|
+
if (allExternalTypesReg.test(resolved)) return resolveAssets(resolved, kind);
|
|
36248
36326
|
if (isBuiltin(environment.config.resolve.builtins, resolved)) return;
|
|
36249
36327
|
if (isExternalUrl(resolved)) return {
|
|
36250
36328
|
id: resolved,
|
|
@@ -36274,11 +36352,7 @@ function rolldownDepPlugin(environment, qualified, external) {
|
|
|
36274
36352
|
id: isWindows ? resolved.replaceAll("/", "\\") : resolved,
|
|
36275
36353
|
external: false
|
|
36276
36354
|
};
|
|
36277
|
-
|
|
36278
|
-
return {
|
|
36279
|
-
id: resolved,
|
|
36280
|
-
external: "absolute"
|
|
36281
|
-
};
|
|
36355
|
+
return resolveAssets(resolved, kind);
|
|
36282
36356
|
}
|
|
36283
36357
|
}
|
|
36284
36358
|
},
|
|
@@ -36311,7 +36385,7 @@ function rolldownDepPlugin(environment, qualified, external) {
|
|
|
36311
36385
|
if (aliased && (entry = resolveEntry(aliased))) return entry;
|
|
36312
36386
|
}
|
|
36313
36387
|
const resolved = await resolve(id, importer, kind);
|
|
36314
|
-
if (resolved) return resolveResult(id, resolved);
|
|
36388
|
+
if (resolved) return resolveResult(id, resolved, kind);
|
|
36315
36389
|
}
|
|
36316
36390
|
},
|
|
36317
36391
|
load: {
|
|
@@ -36400,7 +36474,6 @@ module.exports = ${isNodeBuiltin(idWithoutNamespace) ? "m.default" : "{ ...m }"}
|
|
|
36400
36474
|
}
|
|
36401
36475
|
};
|
|
36402
36476
|
}
|
|
36403
|
-
|
|
36404
36477
|
//#endregion
|
|
36405
36478
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/index.ts
|
|
36406
36479
|
const debug$2 = createDebugger("vite:deps");
|
|
@@ -37084,7 +37157,6 @@ const safeRename = promisify(function gracefulRename(from, to, cb) {
|
|
|
37084
37157
|
cb(er);
|
|
37085
37158
|
});
|
|
37086
37159
|
});
|
|
37087
|
-
|
|
37088
37160
|
//#endregion
|
|
37089
37161
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/resolve.ts
|
|
37090
37162
|
const normalizedClientEntry = normalizePath$1(CLIENT_ENTRY);
|
|
@@ -37559,7 +37631,6 @@ function findNearestPackagePath(file, legacyInconsistentCjsInterop, packageCache
|
|
|
37559
37631
|
const pkgData = findNearestPackageData(file, packageCache);
|
|
37560
37632
|
return pkgData ? path.join(pkgData.dir, "package.json") : null;
|
|
37561
37633
|
}
|
|
37562
|
-
|
|
37563
37634
|
//#endregion
|
|
37564
37635
|
//#region ../../rolldown-vite/packages/vite/src/node/nodeResolve.ts
|
|
37565
37636
|
/**
|
|
@@ -37587,7 +37658,6 @@ function nodeResolveWithVite(id, importer, options) {
|
|
|
37587
37658
|
disableOptionalPeerDepHandling: true
|
|
37588
37659
|
})?.id;
|
|
37589
37660
|
}
|
|
37590
|
-
|
|
37591
37661
|
//#endregion
|
|
37592
37662
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/terser.ts
|
|
37593
37663
|
let terserPath;
|
|
@@ -37656,7 +37726,6 @@ function terserPlugin(config) {
|
|
|
37656
37726
|
}
|
|
37657
37727
|
};
|
|
37658
37728
|
}
|
|
37659
|
-
|
|
37660
37729
|
//#endregion
|
|
37661
37730
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/ssrManifestPlugin.ts
|
|
37662
37731
|
function ssrManifestPlugin() {
|
|
@@ -37741,7 +37810,6 @@ function ssrManifestPlugin() {
|
|
|
37741
37810
|
}
|
|
37742
37811
|
};
|
|
37743
37812
|
}
|
|
37744
|
-
|
|
37745
37813
|
//#endregion
|
|
37746
37814
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/license.ts
|
|
37747
37815
|
const licenseConfigDefaults = Object.freeze({ fileName: ".vite/license.md" });
|
|
@@ -37820,7 +37888,6 @@ function findLicenseFile(pkgDir) {
|
|
|
37820
37888
|
const matchedFile = fs.readdirSync(pkgDir).find((file) => licenseFiles.some((re) => re.test(file)));
|
|
37821
37889
|
if (matchedFile) return path.join(pkgDir, matchedFile);
|
|
37822
37890
|
}
|
|
37823
|
-
|
|
37824
37891
|
//#endregion
|
|
37825
37892
|
//#region ../../rolldown-vite/packages/vite/src/node/plugins/prepareOutDir.ts
|
|
37826
37893
|
function prepareOutDirPlugin() {
|
|
@@ -37865,7 +37932,6 @@ function areSeparateFolders(a, b) {
|
|
|
37865
37932
|
const nb = normalizePath$1(b);
|
|
37866
37933
|
return na !== nb && !na.startsWith(withTrailingSlash(nb)) && !nb.startsWith(withTrailingSlash(na));
|
|
37867
37934
|
}
|
|
37868
|
-
|
|
37869
37935
|
//#endregion
|
|
37870
37936
|
//#region ../../rolldown-vite/packages/vite/src/node/build.ts
|
|
37871
37937
|
const _buildEnvironmentOptionsDefaults = Object.freeze({
|
|
@@ -37946,7 +38012,7 @@ async function resolveBuildPlugins(config) {
|
|
|
37946
38012
|
...isBuild ? [terserPlugin(config)] : [],
|
|
37947
38013
|
...isBuild && !config.isWorker ? [
|
|
37948
38014
|
licensePlugin(),
|
|
37949
|
-
manifestPlugin(
|
|
38015
|
+
manifestPlugin(),
|
|
37950
38016
|
ssrManifestPlugin(),
|
|
37951
38017
|
buildReporterPlugin(config)
|
|
37952
38018
|
] : [],
|
|
@@ -38005,13 +38071,6 @@ function resolveRolldownOptions(environment, chunkMetadataMap) {
|
|
|
38005
38071
|
experimental: {
|
|
38006
38072
|
...options.rollupOptions.experimental,
|
|
38007
38073
|
viteMode: true
|
|
38008
|
-
},
|
|
38009
|
-
optimization: {
|
|
38010
|
-
inlineConst: typeof options.rollupOptions.optimization?.inlineConst === "boolean" ? options.rollupOptions.optimization.inlineConst : {
|
|
38011
|
-
mode: "smart",
|
|
38012
|
-
...options.rollupOptions.optimization?.inlineConst
|
|
38013
|
-
},
|
|
38014
|
-
...options.rollupOptions.optimization
|
|
38015
38074
|
}
|
|
38016
38075
|
};
|
|
38017
38076
|
const isSsrTargetWebworkerEnvironment = environment.name === "ssr" && environment.getTopLevelConfig().ssr?.target === "webworker";
|
|
@@ -38033,7 +38092,7 @@ function resolveRolldownOptions(environment, chunkMetadataMap) {
|
|
|
38033
38092
|
assetFileNames: libOptions ? `[name].[ext]` : path.posix.join(options.assetsDir, `[name]-[hash].[ext]`),
|
|
38034
38093
|
codeSplitting: output.codeSplitting ?? (output.format === "umd" || output.format === "iife" || isSsrTargetWebworkerEnvironment && (typeof input === "string" || Object.keys(input).length === 1) ? false : void 0),
|
|
38035
38094
|
comments: typeof output.comments === "boolean" ? output.comments : {
|
|
38036
|
-
annotation: !options.minify,
|
|
38095
|
+
annotation: !options.minify || libOptions && (format === "es" || format === "esm"),
|
|
38037
38096
|
jsdoc: !options.minify,
|
|
38038
38097
|
legal: !options.minify,
|
|
38039
38098
|
...output.comments
|
|
@@ -38078,7 +38137,7 @@ async function buildEnvironment(environment) {
|
|
|
38078
38137
|
watch: {
|
|
38079
38138
|
...rollupOptions.watch,
|
|
38080
38139
|
...options.watch,
|
|
38081
|
-
|
|
38140
|
+
watcher: convertToWatcherOptions(resolvedChokidarOptions)
|
|
38082
38141
|
}
|
|
38083
38142
|
});
|
|
38084
38143
|
watcher.on("event", (event) => {
|
|
@@ -38572,7 +38631,6 @@ async function createBuilder(inlineConfig = {}, useLegacyBuilder = false) {
|
|
|
38572
38631
|
}
|
|
38573
38632
|
return builder;
|
|
38574
38633
|
}
|
|
38575
|
-
|
|
38576
38634
|
//#endregion
|
|
38577
38635
|
//#region ../../rolldown-vite/packages/vite/src/node/server/environments/runnableEnvironment.ts
|
|
38578
38636
|
function createRunnableDevEnvironment(name, config, context = {}) {
|
|
@@ -38602,7 +38660,6 @@ var RunnableDevEnvironment = class extends DevEnvironment {
|
|
|
38602
38660
|
if (this._runner) await this._runner.close();
|
|
38603
38661
|
}
|
|
38604
38662
|
};
|
|
38605
|
-
|
|
38606
38663
|
//#endregion
|
|
38607
38664
|
//#region ../../node_modules/.pnpm/@polka+compression@1.0.0-next.25/node_modules/@polka/compression/build.mjs
|
|
38608
38665
|
const NOOP = () => {};
|
|
@@ -38686,12 +38743,11 @@ function build_default({ threshold = 1024, level = -1, brotli = false, gzip = tr
|
|
|
38686
38743
|
next();
|
|
38687
38744
|
};
|
|
38688
38745
|
}
|
|
38689
|
-
|
|
38690
38746
|
//#endregion
|
|
38691
38747
|
//#region ../../rolldown-vite/packages/vite/src/node/preview.ts
|
|
38692
38748
|
function resolvePreviewOptions(preview, server) {
|
|
38693
38749
|
return {
|
|
38694
|
-
port: preview?.port ??
|
|
38750
|
+
port: preview?.port ?? 4173,
|
|
38695
38751
|
strictPort: preview?.strictPort ?? server.strictPort,
|
|
38696
38752
|
host: preview?.host ?? server.host,
|
|
38697
38753
|
allowedHosts: preview?.allowedHosts ?? server.allowedHosts,
|
|
@@ -38798,7 +38854,6 @@ async function preview(inlineConfig = {}) {
|
|
|
38798
38854
|
}
|
|
38799
38855
|
return server;
|
|
38800
38856
|
}
|
|
38801
|
-
|
|
38802
38857
|
//#endregion
|
|
38803
38858
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/index.ts
|
|
38804
38859
|
const _ssrConfigDefaults = Object.freeze({
|
|
@@ -38809,7 +38864,6 @@ const ssrConfigDefaults = _ssrConfigDefaults;
|
|
|
38809
38864
|
function resolveSSROptions(ssr, preserveSymlinks) {
|
|
38810
38865
|
return mergeWithDefaults(mergeWithDefaults(_ssrConfigDefaults, { optimizeDeps: { esbuildOptions: { preserveSymlinks } } }), ssr ?? {});
|
|
38811
38866
|
}
|
|
38812
|
-
|
|
38813
38867
|
//#endregion
|
|
38814
38868
|
//#region ../../rolldown-vite/packages/vite/src/node/ssr/runnerImport.ts
|
|
38815
38869
|
/**
|
|
@@ -38849,7 +38903,6 @@ async function runnerImport(moduleId, inlineConfig) {
|
|
|
38849
38903
|
await environment.close();
|
|
38850
38904
|
}
|
|
38851
38905
|
}
|
|
38852
|
-
|
|
38853
38906
|
//#endregion
|
|
38854
38907
|
//#region ../../rolldown-vite/packages/vite/src/node/optimizer/pluginConverter.ts
|
|
38855
38908
|
function convertEsbuildPluginToRolldownPlugin(esbuildPlugin) {
|
|
@@ -39001,7 +39054,6 @@ function idToPathAndNamespace(id) {
|
|
|
39001
39054
|
if (namespaceIndex >= 0) return [id.slice(namespaceIndex + 1), id.slice(0, namespaceIndex)];
|
|
39002
39055
|
else return [id, "file"];
|
|
39003
39056
|
}
|
|
39004
|
-
|
|
39005
39057
|
//#endregion
|
|
39006
39058
|
//#region ../../rolldown-vite/packages/vite/src/node/config.ts
|
|
39007
39059
|
const debug = createDebugger("vite:config", { depth: 10 });
|
|
@@ -39074,7 +39126,6 @@ const configDefaults = Object.freeze({
|
|
|
39074
39126
|
importGlobRestoreExtension: false,
|
|
39075
39127
|
renderBuiltUrl: void 0,
|
|
39076
39128
|
hmrPartialAccept: false,
|
|
39077
|
-
enableNativePlugin: process.env._VITE_TEST_JS_PLUGIN ? false : "v2",
|
|
39078
39129
|
bundledDev: false
|
|
39079
39130
|
},
|
|
39080
39131
|
future: {
|
|
@@ -39410,7 +39461,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
|
39410
39461
|
const assetsFilter = config.assetsInclude && (!Array.isArray(config.assetsInclude) || config.assetsInclude.length) ? createFilter$1(config.assetsInclude) : () => false;
|
|
39411
39462
|
const { publicDir } = config;
|
|
39412
39463
|
const resolvedPublicDir = publicDir !== false && publicDir !== "" ? normalizePath$1(path.resolve(resolvedRoot, typeof publicDir === "string" ? publicDir : configDefaults.publicDir)) : "";
|
|
39413
|
-
const server = resolveServerOptions(resolvedRoot, config.server, logger);
|
|
39464
|
+
const server = await resolveServerOptions(resolvedRoot, config.server, logger);
|
|
39414
39465
|
const builder = resolveBuilderOptions(config.builder);
|
|
39415
39466
|
const BASE_URL = resolvedBase;
|
|
39416
39467
|
const resolvedConfigContext = new BasicMinimalPluginContext({
|
|
@@ -39559,7 +39610,6 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
|
|
|
39559
39610
|
dot: true
|
|
39560
39611
|
}),
|
|
39561
39612
|
safeModulePaths: /* @__PURE__ */ new Set(),
|
|
39562
|
-
nativePluginEnabledLevel: resolveNativePluginEnabledLevel(experimental.enableNativePlugin),
|
|
39563
39613
|
[SYMBOL_RESOLVED_CONFIG]: true
|
|
39564
39614
|
};
|
|
39565
39615
|
resolved = {
|
|
@@ -39607,15 +39657,6 @@ assetFileNames isn't equal for every build.rollupOptions.output. A single patter
|
|
|
39607
39657
|
`));
|
|
39608
39658
|
return resolved;
|
|
39609
39659
|
}
|
|
39610
|
-
function resolveNativePluginEnabledLevel(enableNativePlugin) {
|
|
39611
|
-
switch (enableNativePlugin) {
|
|
39612
|
-
case "v1": return 1;
|
|
39613
|
-
case "v2":
|
|
39614
|
-
case true: return 2;
|
|
39615
|
-
case false: return -1;
|
|
39616
|
-
default: return -1;
|
|
39617
|
-
}
|
|
39618
|
-
}
|
|
39619
39660
|
/**
|
|
39620
39661
|
* Resolve base url. Note that some users use Vite to build for non-web targets like
|
|
39621
39662
|
* electron or expects to deploy
|
|
@@ -39916,7 +39957,6 @@ function optimizeDepsDisabledBackwardCompatibility(resolved, optimizeDeps, optim
|
|
|
39916
39957
|
`));
|
|
39917
39958
|
}
|
|
39918
39959
|
}
|
|
39919
|
-
|
|
39920
39960
|
//#endregion
|
|
39921
39961
|
//#region ../../rolldown-vite/packages/vite/src/node/server/environments/fetchableEnvironments.ts
|
|
39922
39962
|
function createFetchableDevEnvironment(name, config, context) {
|
|
@@ -39940,7 +39980,6 @@ var FetchableDevEnvironment = class extends DevEnvironment {
|
|
|
39940
39980
|
return response;
|
|
39941
39981
|
}
|
|
39942
39982
|
};
|
|
39943
|
-
|
|
39944
39983
|
//#endregion
|
|
39945
39984
|
//#region ../../rolldown-vite/packages/vite/src/node/index.ts
|
|
39946
39985
|
/** @deprecated - use `parse` instead */
|
|
@@ -39948,6 +39987,5 @@ const parseAst$1 = parseAst;
|
|
|
39948
39987
|
/** @deprecated - use `parseAsync` instead */
|
|
39949
39988
|
const parseAstAsync$1 = parseAstAsync;
|
|
39950
39989
|
const esbuildVersion = "0.25.0";
|
|
39951
|
-
|
|
39952
39990
|
//#endregion
|
|
39953
|
-
export { depsFromOptimizedDepInfo as $, builderOptionsDefaults as A,
|
|
39991
|
+
export { depsFromOptimizedDepInfo as $, builderOptionsDefaults as A, searchForWorkspaceRoot as At, resolveBuilderOptions as B, transformWithEsbuild as Bt, resolvePreviewOptions as C, send as Ct, ChunkMetadataMap as D, fetchModule as Dt, BuildEnvironment as E, isFileServingAllowed as Et, injectEnvironmentToHooks as F, createServerModuleRunnerTransport as Ft, toOutputFilePathInHtml as G, mergeConfig as Gt, resolveRolldownOptions as H, createFilter$1 as Ht, onRollupLog as I, buildErrorMessage as It, addManuallyIncludedOptimizeDeps as J, rollupVersion as Jt, toOutputFilePathInJS as K, normalizePath$1 as Kt, resolveBuildEnvironmentOptions as L, loadEnv as Lt, createBuilder as M, perEnvironmentState as Mt, createToImportMetaURLBasedRelativeRuntime as N, ssrTransform as Nt, build as O, formatPostcssSourceMap as Ot, enhanceRollupError as P, createServerModuleRunner as Pt, createIsOptimizedDepUrl as Q, resolveBuildOutputs as R, resolveEnvPrefix as Rt, preview as S, serverConfigDefaults as St, isRunnableDevEnvironment as T, isFileLoadingAllowed as Tt, resolveUserExternal as U, isCSSRequest as Ut, resolveLibFilename as V, perEnvironmentPlugin as Vt, toOutputFilePathInCss as W, mergeAlias as Wt, cleanupDepsCacheStaleDirs as X, addOptimizedDepInfo as Y, withFilter as Yt, createIsOptimizedDepFile as Z, resolveConfig as _, createServer$2 as _t, minifySync as a, initDepsOptimizerMetadata as at, sortUserPlugins as b, resolveServerOptions as bt, parseAstAsync$1 as c, optimizeDeps as ct, isFetchableDevEnvironment as d, optimizedDepInfoFromId as dt, depsLogString as et, defineConfig as f, optimizedDepNeedsInterop as ft, resolveBaseUrl as g, _createServer as gt, loadConfigFromFile as h, createServerHotChannel as ht, minify as i, getOptimizedDepPath as it, clearLine as j, createIdResolver as jt, buildEnvironmentOptionsDefaults as k, preprocessCSS as kt, parseSync as l, optimizeExplicitEnvironmentDeps as lt, isResolvedConfig as m, toDiscoveredDependencies as mt, esbuildVersion as n, extractExportsData as nt, parse as o, isDepOptimizationDisabled as ot, getDefaultEnvironmentOptions as p, runOptimizeDeps as pt, toOutputFilePathWithoutRuntime as q, rolldownVersion as qt, esmExternalRequirePlugin as r, getDepsCacheDir as rt, parseAst$1 as s, loadCachedDepOptimizationMetadata as st, Visitor as t, discoverProjectDependencies as tt, createFetchableDevEnvironment as u, optimizedDepInfoFromFile as ut, resolveDevEnvironmentOptions as v, createServerCloseFn as vt, createRunnableDevEnvironment as w, DevEnvironment as wt, runnerImport as x, restartServerWithUrls as xt, resolveDevToolsConfig as y, resolveForwardConsoleOptions as yt, resolveBuildPlugins as z, transformWithOxc as zt };
|