@farming-labs/theme 0.0.23 → 0.0.25
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/_virtual/_rolldown/runtime.mjs +26 -1
- package/dist/docs-api.mjs +3 -1
- package/dist/docs-layout.mjs +7 -3
- package/dist/get-app-dir.d.mts +9 -0
- package/dist/get-app-dir.mjs +16 -0
- package/dist/get-app-dir.test.d.mts +1 -0
- package/dist/get-app-dir.test.mjs +41 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.mjs +1356 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.mjs +1119 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.mjs +1091 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.mjs +1821 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.mjs +171 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs +124 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.mjs +1334 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.mjs +105 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.mjs +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.mjs +455 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.mjs +168 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.mjs +3087 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.mjs +384 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.mjs +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.mjs +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.mjs +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.mjs +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.mjs +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.mjs +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.mjs +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.mjs +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.mjs +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.mjs +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.mjs +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.mjs +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.mjs +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.mjs +5 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.mjs +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.mjs +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.mjs +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.mjs +8 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.mjs +30 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +939 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +81 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs +51 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs +81 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.mjs +9 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.mjs +50 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/utils.XdZDrNZV.mjs +48 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.mjs +2613 -0
- package/package.json +6 -3
package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.mjs
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
|
|
2
|
+
const comma = ",".charCodeAt(0);
|
|
3
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4
|
+
const intToChar = new Uint8Array(64);
|
|
5
|
+
const charToInt = new Uint8Array(128);
|
|
6
|
+
for (let i = 0; i < 64; i++) {
|
|
7
|
+
const c = chars.charCodeAt(i);
|
|
8
|
+
intToChar[i] = c;
|
|
9
|
+
charToInt[c] = i;
|
|
10
|
+
}
|
|
11
|
+
var UrlType;
|
|
12
|
+
(function(UrlType) {
|
|
13
|
+
UrlType[UrlType["Empty"] = 1] = "Empty";
|
|
14
|
+
UrlType[UrlType["Hash"] = 2] = "Hash";
|
|
15
|
+
UrlType[UrlType["Query"] = 3] = "Query";
|
|
16
|
+
UrlType[UrlType["RelativePath"] = 4] = "RelativePath";
|
|
17
|
+
UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath";
|
|
18
|
+
UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative";
|
|
19
|
+
UrlType[UrlType["Absolute"] = 7] = "Absolute";
|
|
20
|
+
})(UrlType || (UrlType = {}));
|
|
21
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
22
|
+
function normalizeWindowsPath(input = "") {
|
|
23
|
+
if (!input) return input;
|
|
24
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
25
|
+
}
|
|
26
|
+
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
27
|
+
function cwd() {
|
|
28
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
29
|
+
return "/";
|
|
30
|
+
}
|
|
31
|
+
const resolve = function(...arguments_) {
|
|
32
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
33
|
+
let resolvedPath = "";
|
|
34
|
+
let resolvedAbsolute = false;
|
|
35
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
36
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
37
|
+
if (!path || path.length === 0) continue;
|
|
38
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
39
|
+
resolvedAbsolute = isAbsolute(path);
|
|
40
|
+
}
|
|
41
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
42
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
43
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
44
|
+
};
|
|
45
|
+
function normalizeString(path, allowAboveRoot) {
|
|
46
|
+
let res = "";
|
|
47
|
+
let lastSegmentLength = 0;
|
|
48
|
+
let lastSlash = -1;
|
|
49
|
+
let dots = 0;
|
|
50
|
+
let char = null;
|
|
51
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
52
|
+
if (index < path.length) char = path[index];
|
|
53
|
+
else if (char === "/") break;
|
|
54
|
+
else char = "/";
|
|
55
|
+
if (char === "/") {
|
|
56
|
+
if (lastSlash === index - 1 || dots === 1);
|
|
57
|
+
else if (dots === 2) {
|
|
58
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
59
|
+
if (res.length > 2) {
|
|
60
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
61
|
+
if (lastSlashIndex === -1) {
|
|
62
|
+
res = "";
|
|
63
|
+
lastSegmentLength = 0;
|
|
64
|
+
} else {
|
|
65
|
+
res = res.slice(0, lastSlashIndex);
|
|
66
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
67
|
+
}
|
|
68
|
+
lastSlash = index;
|
|
69
|
+
dots = 0;
|
|
70
|
+
continue;
|
|
71
|
+
} else if (res.length > 0) {
|
|
72
|
+
res = "";
|
|
73
|
+
lastSegmentLength = 0;
|
|
74
|
+
lastSlash = index;
|
|
75
|
+
dots = 0;
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (allowAboveRoot) {
|
|
80
|
+
res += res.length > 0 ? "/.." : "..";
|
|
81
|
+
lastSegmentLength = 2;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
85
|
+
else res = path.slice(lastSlash + 1, index);
|
|
86
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
87
|
+
}
|
|
88
|
+
lastSlash = index;
|
|
89
|
+
dots = 0;
|
|
90
|
+
} else if (char === "." && dots !== -1) ++dots;
|
|
91
|
+
else dots = -1;
|
|
92
|
+
}
|
|
93
|
+
return res;
|
|
94
|
+
}
|
|
95
|
+
const isAbsolute = function(p) {
|
|
96
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
97
|
+
};
|
|
98
|
+
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
99
|
+
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
100
|
+
function extractLocation(urlLike) {
|
|
101
|
+
if (!urlLike.includes(":")) return [urlLike];
|
|
102
|
+
const parts = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
103
|
+
if (!parts) return [urlLike];
|
|
104
|
+
let url = parts[1];
|
|
105
|
+
if (url.startsWith("async ")) url = url.slice(6);
|
|
106
|
+
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
107
|
+
const urlObj = new URL(url);
|
|
108
|
+
urlObj.searchParams.delete("import");
|
|
109
|
+
urlObj.searchParams.delete("browserv");
|
|
110
|
+
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
111
|
+
}
|
|
112
|
+
if (url.startsWith("/@fs/")) {
|
|
113
|
+
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
114
|
+
url = url.slice(isWindows ? 5 : 4);
|
|
115
|
+
}
|
|
116
|
+
return [
|
|
117
|
+
url,
|
|
118
|
+
parts[2] || void 0,
|
|
119
|
+
parts[3] || void 0
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
function parseSingleFFOrSafariStack(raw) {
|
|
123
|
+
let line = raw.trim();
|
|
124
|
+
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) return null;
|
|
125
|
+
if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
126
|
+
if (!line.includes("@") && !line.includes(":")) return null;
|
|
127
|
+
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
|
|
128
|
+
const matches = line.match(functionNameRegex);
|
|
129
|
+
const functionName = matches && matches[1] ? matches[1] : void 0;
|
|
130
|
+
const [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, ""));
|
|
131
|
+
if (!url || !lineNumber || !columnNumber) return null;
|
|
132
|
+
return {
|
|
133
|
+
file: url,
|
|
134
|
+
method: functionName || "",
|
|
135
|
+
line: Number.parseInt(lineNumber),
|
|
136
|
+
column: Number.parseInt(columnNumber)
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function parseSingleStack(raw) {
|
|
140
|
+
const line = raw.trim();
|
|
141
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) return parseSingleFFOrSafariStack(line);
|
|
142
|
+
return parseSingleV8Stack(line);
|
|
143
|
+
}
|
|
144
|
+
function parseSingleV8Stack(raw) {
|
|
145
|
+
let line = raw.trim();
|
|
146
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) return null;
|
|
147
|
+
if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
148
|
+
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
149
|
+
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
150
|
+
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
151
|
+
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
152
|
+
let method = location && sanitizedLine || "";
|
|
153
|
+
let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
|
|
154
|
+
if (!file || !lineNumber || !columnNumber) return null;
|
|
155
|
+
if (method.startsWith("async ")) method = method.slice(6);
|
|
156
|
+
if (file.startsWith("file://")) file = file.slice(7);
|
|
157
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
158
|
+
if (method) method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
159
|
+
return {
|
|
160
|
+
method,
|
|
161
|
+
file,
|
|
162
|
+
line: Number.parseInt(lineNumber),
|
|
163
|
+
column: Number.parseInt(columnNumber)
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
//#endregion
|
|
168
|
+
export { parseSingleStack };
|