@tailwindcss/node 0.0.0-insiders.b7436f8 → 0.0.0-insiders.b77971f
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/README.md +1 -5
- package/dist/esm-cache.loader.mjs +1 -1
- package/dist/index.d.mts +143 -7
- package/dist/index.d.ts +139 -7
- package/dist/index.js +23 -12
- package/dist/index.mjs +23 -12
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -27,14 +27,10 @@ For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
|
|
|
27
27
|
|
|
28
28
|
## Community
|
|
29
29
|
|
|
30
|
-
For help, discussion about best practices, or
|
|
30
|
+
For help, discussion about best practices, or feature ideas:
|
|
31
31
|
|
|
32
32
|
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindcss/tailwindcss/discussions)
|
|
33
33
|
|
|
34
|
-
For chatting with others using the framework:
|
|
35
|
-
|
|
36
|
-
[Join the Tailwind CSS Discord Server](https://discord.gg/7NF8GNe)
|
|
37
|
-
|
|
38
34
|
## Contributing
|
|
39
35
|
|
|
40
36
|
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindcss/tailwindcss/blob/next/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isBuiltin as i}from"
|
|
1
|
+
import{isBuiltin as i}from"module";var o=async(a,e,u)=>{let r=await u(a,e);if(r.url===import.meta.url||i(r.url)||!e.parentURL)return r;let t=new URL(e.parentURL).searchParams.get("id");if(t===null)return r;let l=new URL(r.url);return l.searchParams.set("id",t),{...r,url:`${l}`}};export{o as resolve};
|
package/dist/index.d.mts
CHANGED
|
@@ -4,8 +4,9 @@ import { ClassEntry, VariantEntry } from './intellisense';
|
|
|
4
4
|
import { Theme } from './theme';
|
|
5
5
|
import { Utilities } from './utilities';
|
|
6
6
|
import { Variants } from './variants';
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import * as tailwindcss from 'tailwindcss';
|
|
8
|
+
import { Polyfills, Features } from 'tailwindcss';
|
|
9
|
+
export { Features, Polyfills } from 'tailwindcss';
|
|
9
10
|
|
|
10
11
|
declare const DEBUG: boolean;
|
|
11
12
|
|
|
@@ -14,6 +15,10 @@ declare namespace env {
|
|
|
14
15
|
export { env_DEBUG as DEBUG };
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
declare const enum CompileAstFlags {
|
|
19
|
+
None = 0,
|
|
20
|
+
RespectImportant = 1
|
|
21
|
+
}
|
|
17
22
|
type DesignSystem = {
|
|
18
23
|
theme: Theme;
|
|
19
24
|
utilities: Utilities;
|
|
@@ -25,56 +30,152 @@ type DesignSystem = {
|
|
|
25
30
|
getVariants(): VariantEntry[];
|
|
26
31
|
parseCandidate(candidate: string): Readonly<Candidate>[];
|
|
27
32
|
parseVariant(variant: string): Readonly<Variant> | null;
|
|
28
|
-
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
|
33
|
+
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
|
34
|
+
printCandidate(candidate: Candidate): string;
|
|
35
|
+
printVariant(variant: Variant): string;
|
|
29
36
|
getVariantOrder(): Map<Variant, number>;
|
|
30
|
-
resolveThemeValue(path: string): string | undefined;
|
|
37
|
+
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
|
38
|
+
trackUsedVariables(raw: string): void;
|
|
39
|
+
canonicalizeCandidates(candidates: string[]): string[];
|
|
31
40
|
candidatesToCss(classes: string[]): (string | null)[];
|
|
32
41
|
};
|
|
33
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The source code for one or more nodes in the AST
|
|
45
|
+
*
|
|
46
|
+
* This generally corresponds to a stylesheet
|
|
47
|
+
*/
|
|
48
|
+
interface Source {
|
|
49
|
+
/**
|
|
50
|
+
* The path to the file that contains the referenced source code
|
|
51
|
+
*
|
|
52
|
+
* If this references the *output* source code, this is `null`.
|
|
53
|
+
*/
|
|
54
|
+
file: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The referenced source code
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The file and offsets within it that this node covers
|
|
62
|
+
*
|
|
63
|
+
* This can represent either:
|
|
64
|
+
* - A location in the original CSS which caused this node to be created
|
|
65
|
+
* - A location in the output CSS where this node resides
|
|
66
|
+
*/
|
|
67
|
+
type SourceLocation = [source: Source, start: number, end: number];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Line offset tables are the key to generating our source maps. They allow us
|
|
71
|
+
* to store indexes with our AST nodes and later convert them into positions as
|
|
72
|
+
* when given the source that the indexes refer to.
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* A position in source code
|
|
76
|
+
*
|
|
77
|
+
* https://tc39.es/ecma426/#sec-position-record-type
|
|
78
|
+
*/
|
|
79
|
+
interface Position {
|
|
80
|
+
/** The line number, one-based */
|
|
81
|
+
line: number;
|
|
82
|
+
/** The column/character number, one-based */
|
|
83
|
+
column: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface OriginalPosition extends Position {
|
|
87
|
+
source: DecodedSource;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A "decoded" sourcemap
|
|
91
|
+
*
|
|
92
|
+
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
|
93
|
+
*/
|
|
94
|
+
interface DecodedSourceMap {
|
|
95
|
+
file: string | null;
|
|
96
|
+
sources: DecodedSource[];
|
|
97
|
+
mappings: DecodedMapping[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A "decoded" source
|
|
101
|
+
*
|
|
102
|
+
* @see https://tc39.es/ecma426/#decoded-source-record
|
|
103
|
+
*/
|
|
104
|
+
interface DecodedSource {
|
|
105
|
+
url: string | null;
|
|
106
|
+
content: string | null;
|
|
107
|
+
ignore: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A "decoded" mapping
|
|
111
|
+
*
|
|
112
|
+
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
|
113
|
+
*/
|
|
114
|
+
interface DecodedMapping {
|
|
115
|
+
originalPosition: OriginalPosition | null;
|
|
116
|
+
generatedPosition: Position;
|
|
117
|
+
name: string | null;
|
|
118
|
+
}
|
|
119
|
+
|
|
34
120
|
type StyleRule = {
|
|
35
121
|
kind: 'rule';
|
|
36
122
|
selector: string;
|
|
37
123
|
nodes: AstNode[];
|
|
124
|
+
src?: SourceLocation;
|
|
125
|
+
dst?: SourceLocation;
|
|
38
126
|
};
|
|
39
127
|
type AtRule = {
|
|
40
128
|
kind: 'at-rule';
|
|
41
129
|
name: string;
|
|
42
130
|
params: string;
|
|
43
131
|
nodes: AstNode[];
|
|
132
|
+
src?: SourceLocation;
|
|
133
|
+
dst?: SourceLocation;
|
|
44
134
|
};
|
|
45
135
|
type Declaration = {
|
|
46
136
|
kind: 'declaration';
|
|
47
137
|
property: string;
|
|
48
138
|
value: string | undefined;
|
|
49
139
|
important: boolean;
|
|
140
|
+
src?: SourceLocation;
|
|
141
|
+
dst?: SourceLocation;
|
|
50
142
|
};
|
|
51
143
|
type Comment = {
|
|
52
144
|
kind: 'comment';
|
|
53
145
|
value: string;
|
|
146
|
+
src?: SourceLocation;
|
|
147
|
+
dst?: SourceLocation;
|
|
54
148
|
};
|
|
55
149
|
type Context = {
|
|
56
150
|
kind: 'context';
|
|
57
151
|
context: Record<string, string | boolean>;
|
|
58
152
|
nodes: AstNode[];
|
|
153
|
+
src?: undefined;
|
|
154
|
+
dst?: undefined;
|
|
59
155
|
};
|
|
60
156
|
type AtRoot = {
|
|
61
157
|
kind: 'at-root';
|
|
62
158
|
nodes: AstNode[];
|
|
159
|
+
src?: undefined;
|
|
160
|
+
dst?: undefined;
|
|
63
161
|
};
|
|
64
162
|
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
|
65
163
|
|
|
66
164
|
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
|
67
165
|
interface CompileOptions {
|
|
68
166
|
base: string;
|
|
167
|
+
from?: string;
|
|
69
168
|
onDependency: (path: string) => void;
|
|
70
169
|
shouldRewriteUrls?: boolean;
|
|
170
|
+
polyfills?: Polyfills;
|
|
71
171
|
customCssResolver?: Resolver;
|
|
72
172
|
customJsResolver?: Resolver;
|
|
73
173
|
}
|
|
74
174
|
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
75
|
-
|
|
175
|
+
sources: {
|
|
76
176
|
base: string;
|
|
77
177
|
pattern: string;
|
|
178
|
+
negated: boolean;
|
|
78
179
|
}[];
|
|
79
180
|
root: "none" | {
|
|
80
181
|
base: string;
|
|
@@ -84,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
|
84
185
|
build(candidates: string[]): AstNode[];
|
|
85
186
|
}>;
|
|
86
187
|
declare function compile(css: string, options: CompileOptions): Promise<{
|
|
87
|
-
|
|
188
|
+
sources: {
|
|
88
189
|
base: string;
|
|
89
190
|
pattern: string;
|
|
191
|
+
negated: boolean;
|
|
90
192
|
}[];
|
|
91
193
|
root: "none" | {
|
|
92
194
|
base: string;
|
|
@@ -94,10 +196,16 @@ declare function compile(css: string, options: CompileOptions): Promise<{
|
|
|
94
196
|
} | null;
|
|
95
197
|
features: Features;
|
|
96
198
|
build(candidates: string[]): string;
|
|
199
|
+
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
|
97
200
|
}>;
|
|
98
201
|
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
|
99
202
|
base: string;
|
|
100
203
|
}): Promise<DesignSystem>;
|
|
204
|
+
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
|
205
|
+
path: string;
|
|
206
|
+
base: string;
|
|
207
|
+
module: any;
|
|
208
|
+
}>;
|
|
101
209
|
|
|
102
210
|
declare class Instrumentation implements Disposable {
|
|
103
211
|
#private;
|
|
@@ -113,4 +221,32 @@ declare class Instrumentation implements Disposable {
|
|
|
113
221
|
|
|
114
222
|
declare function normalizePath(originalPath: string): string;
|
|
115
223
|
|
|
116
|
-
|
|
224
|
+
interface OptimizeOptions {
|
|
225
|
+
/**
|
|
226
|
+
* The file being transformed
|
|
227
|
+
*/
|
|
228
|
+
file?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Enabled minified output
|
|
231
|
+
*/
|
|
232
|
+
minify?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The output source map before optimization
|
|
235
|
+
*
|
|
236
|
+
* If omitted a resulting source map will not be available
|
|
237
|
+
*/
|
|
238
|
+
map?: string;
|
|
239
|
+
}
|
|
240
|
+
interface TransformResult {
|
|
241
|
+
code: string;
|
|
242
|
+
map: string | undefined;
|
|
243
|
+
}
|
|
244
|
+
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
|
245
|
+
|
|
246
|
+
interface SourceMap {
|
|
247
|
+
readonly raw: string;
|
|
248
|
+
readonly inline: string;
|
|
249
|
+
}
|
|
250
|
+
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
|
251
|
+
|
|
252
|
+
export { type CompileOptions, type DecodedSource, type DecodedSourceMap, Instrumentation, type OptimizeOptions, type Resolver, type SourceMap, type TransformResult, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize, toSourceMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ import { ClassEntry, VariantEntry } from './intellisense';
|
|
|
4
4
|
import { Theme } from './theme';
|
|
5
5
|
import { Utilities } from './utilities';
|
|
6
6
|
import { Variants } from './variants';
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import * as tailwindcss from 'tailwindcss';
|
|
8
|
+
import { Polyfills, Features } from 'tailwindcss';
|
|
9
|
+
export { Features, Polyfills } from 'tailwindcss';
|
|
9
10
|
|
|
10
11
|
declare const DEBUG: boolean;
|
|
11
12
|
|
|
@@ -14,6 +15,10 @@ declare namespace env {
|
|
|
14
15
|
export { env_DEBUG as DEBUG };
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
declare const enum CompileAstFlags {
|
|
19
|
+
None = 0,
|
|
20
|
+
RespectImportant = 1
|
|
21
|
+
}
|
|
17
22
|
type DesignSystem = {
|
|
18
23
|
theme: Theme;
|
|
19
24
|
utilities: Utilities;
|
|
@@ -25,56 +30,152 @@ type DesignSystem = {
|
|
|
25
30
|
getVariants(): VariantEntry[];
|
|
26
31
|
parseCandidate(candidate: string): Readonly<Candidate>[];
|
|
27
32
|
parseVariant(variant: string): Readonly<Variant> | null;
|
|
28
|
-
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
|
33
|
+
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
|
34
|
+
printCandidate(candidate: Candidate): string;
|
|
35
|
+
printVariant(variant: Variant): string;
|
|
29
36
|
getVariantOrder(): Map<Variant, number>;
|
|
30
|
-
resolveThemeValue(path: string): string | undefined;
|
|
37
|
+
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
|
38
|
+
trackUsedVariables(raw: string): void;
|
|
39
|
+
canonicalizeCandidates(candidates: string[]): string[];
|
|
31
40
|
candidatesToCss(classes: string[]): (string | null)[];
|
|
32
41
|
};
|
|
33
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The source code for one or more nodes in the AST
|
|
45
|
+
*
|
|
46
|
+
* This generally corresponds to a stylesheet
|
|
47
|
+
*/
|
|
48
|
+
interface Source {
|
|
49
|
+
/**
|
|
50
|
+
* The path to the file that contains the referenced source code
|
|
51
|
+
*
|
|
52
|
+
* If this references the *output* source code, this is `null`.
|
|
53
|
+
*/
|
|
54
|
+
file: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The referenced source code
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The file and offsets within it that this node covers
|
|
62
|
+
*
|
|
63
|
+
* This can represent either:
|
|
64
|
+
* - A location in the original CSS which caused this node to be created
|
|
65
|
+
* - A location in the output CSS where this node resides
|
|
66
|
+
*/
|
|
67
|
+
type SourceLocation = [source: Source, start: number, end: number];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Line offset tables are the key to generating our source maps. They allow us
|
|
71
|
+
* to store indexes with our AST nodes and later convert them into positions as
|
|
72
|
+
* when given the source that the indexes refer to.
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* A position in source code
|
|
76
|
+
*
|
|
77
|
+
* https://tc39.es/ecma426/#sec-position-record-type
|
|
78
|
+
*/
|
|
79
|
+
interface Position {
|
|
80
|
+
/** The line number, one-based */
|
|
81
|
+
line: number;
|
|
82
|
+
/** The column/character number, one-based */
|
|
83
|
+
column: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface OriginalPosition extends Position {
|
|
87
|
+
source: DecodedSource;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A "decoded" sourcemap
|
|
91
|
+
*
|
|
92
|
+
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
|
93
|
+
*/
|
|
94
|
+
interface DecodedSourceMap {
|
|
95
|
+
file: string | null;
|
|
96
|
+
sources: DecodedSource[];
|
|
97
|
+
mappings: DecodedMapping[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A "decoded" source
|
|
101
|
+
*
|
|
102
|
+
* @see https://tc39.es/ecma426/#decoded-source-record
|
|
103
|
+
*/
|
|
104
|
+
interface DecodedSource {
|
|
105
|
+
url: string | null;
|
|
106
|
+
content: string | null;
|
|
107
|
+
ignore: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A "decoded" mapping
|
|
111
|
+
*
|
|
112
|
+
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
|
113
|
+
*/
|
|
114
|
+
interface DecodedMapping {
|
|
115
|
+
originalPosition: OriginalPosition | null;
|
|
116
|
+
generatedPosition: Position;
|
|
117
|
+
name: string | null;
|
|
118
|
+
}
|
|
119
|
+
|
|
34
120
|
type StyleRule = {
|
|
35
121
|
kind: 'rule';
|
|
36
122
|
selector: string;
|
|
37
123
|
nodes: AstNode[];
|
|
124
|
+
src?: SourceLocation;
|
|
125
|
+
dst?: SourceLocation;
|
|
38
126
|
};
|
|
39
127
|
type AtRule = {
|
|
40
128
|
kind: 'at-rule';
|
|
41
129
|
name: string;
|
|
42
130
|
params: string;
|
|
43
131
|
nodes: AstNode[];
|
|
132
|
+
src?: SourceLocation;
|
|
133
|
+
dst?: SourceLocation;
|
|
44
134
|
};
|
|
45
135
|
type Declaration = {
|
|
46
136
|
kind: 'declaration';
|
|
47
137
|
property: string;
|
|
48
138
|
value: string | undefined;
|
|
49
139
|
important: boolean;
|
|
140
|
+
src?: SourceLocation;
|
|
141
|
+
dst?: SourceLocation;
|
|
50
142
|
};
|
|
51
143
|
type Comment = {
|
|
52
144
|
kind: 'comment';
|
|
53
145
|
value: string;
|
|
146
|
+
src?: SourceLocation;
|
|
147
|
+
dst?: SourceLocation;
|
|
54
148
|
};
|
|
55
149
|
type Context = {
|
|
56
150
|
kind: 'context';
|
|
57
151
|
context: Record<string, string | boolean>;
|
|
58
152
|
nodes: AstNode[];
|
|
153
|
+
src?: undefined;
|
|
154
|
+
dst?: undefined;
|
|
59
155
|
};
|
|
60
156
|
type AtRoot = {
|
|
61
157
|
kind: 'at-root';
|
|
62
158
|
nodes: AstNode[];
|
|
159
|
+
src?: undefined;
|
|
160
|
+
dst?: undefined;
|
|
63
161
|
};
|
|
64
162
|
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
|
65
163
|
|
|
66
164
|
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
|
67
165
|
interface CompileOptions {
|
|
68
166
|
base: string;
|
|
167
|
+
from?: string;
|
|
69
168
|
onDependency: (path: string) => void;
|
|
70
169
|
shouldRewriteUrls?: boolean;
|
|
170
|
+
polyfills?: Polyfills;
|
|
71
171
|
customCssResolver?: Resolver;
|
|
72
172
|
customJsResolver?: Resolver;
|
|
73
173
|
}
|
|
74
174
|
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
75
|
-
|
|
175
|
+
sources: {
|
|
76
176
|
base: string;
|
|
77
177
|
pattern: string;
|
|
178
|
+
negated: boolean;
|
|
78
179
|
}[];
|
|
79
180
|
root: "none" | {
|
|
80
181
|
base: string;
|
|
@@ -84,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
|
84
185
|
build(candidates: string[]): AstNode[];
|
|
85
186
|
}>;
|
|
86
187
|
declare function compile(css: string, options: CompileOptions): Promise<{
|
|
87
|
-
|
|
188
|
+
sources: {
|
|
88
189
|
base: string;
|
|
89
190
|
pattern: string;
|
|
191
|
+
negated: boolean;
|
|
90
192
|
}[];
|
|
91
193
|
root: "none" | {
|
|
92
194
|
base: string;
|
|
@@ -94,11 +196,13 @@ declare function compile(css: string, options: CompileOptions): Promise<{
|
|
|
94
196
|
} | null;
|
|
95
197
|
features: Features;
|
|
96
198
|
build(candidates: string[]): string;
|
|
199
|
+
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
|
97
200
|
}>;
|
|
98
201
|
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
|
99
202
|
base: string;
|
|
100
203
|
}): Promise<DesignSystem>;
|
|
101
204
|
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
|
205
|
+
path: string;
|
|
102
206
|
base: string;
|
|
103
207
|
module: any;
|
|
104
208
|
}>;
|
|
@@ -117,4 +221,32 @@ declare class Instrumentation implements Disposable {
|
|
|
117
221
|
|
|
118
222
|
declare function normalizePath(originalPath: string): string;
|
|
119
223
|
|
|
120
|
-
|
|
224
|
+
interface OptimizeOptions {
|
|
225
|
+
/**
|
|
226
|
+
* The file being transformed
|
|
227
|
+
*/
|
|
228
|
+
file?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Enabled minified output
|
|
231
|
+
*/
|
|
232
|
+
minify?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The output source map before optimization
|
|
235
|
+
*
|
|
236
|
+
* If omitted a resulting source map will not be available
|
|
237
|
+
*/
|
|
238
|
+
map?: string;
|
|
239
|
+
}
|
|
240
|
+
interface TransformResult {
|
|
241
|
+
code: string;
|
|
242
|
+
map: string | undefined;
|
|
243
|
+
}
|
|
244
|
+
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
|
245
|
+
|
|
246
|
+
interface SourceMap {
|
|
247
|
+
readonly raw: string;
|
|
248
|
+
readonly inline: string;
|
|
249
|
+
}
|
|
250
|
+
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
|
251
|
+
|
|
252
|
+
export { type CompileOptions, type DecodedSource, type DecodedSourceMap, Instrumentation, type OptimizeOptions, type Resolver, type SourceMap, type TransformResult, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize, toSourceMap };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var yr=Object.create;var we=Object.defineProperty;var br=Object.getOwnPropertyDescriptor;var xr=Object.getOwnPropertyNames;var Ar=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var ft=(e,t)=>{for(var r in t)we(e,r,{get:t[r],enumerable:!0})},ct=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xr(t))!Cr.call(e,n)&&n!==r&&we(e,n,{get:()=>t[n],enumerable:!(i=br(t,n))||i.enumerable});return e};var R=(e,t,r)=>(r=e!=null?yr(Ar(e)):{},ct(t||!e||!e.__esModule?we(r,"default",{value:e,enumerable:!0}):r,e)),$r=e=>ct(we({},"__esModule",{value:!0}),e);var En={};ft(En,{Features:()=>D.Features,Instrumentation:()=>ut,Polyfills:()=>D.Polyfills,__unstable__loadDesignSystem:()=>kn,compile:()=>wn,compileAst:()=>vn,env:()=>ke,loadModule:()=>at,normalizePath:()=>_e,optimize:()=>$n,toSourceMap:()=>Nn});module.exports=$r(En);var vr=R(require("module")),wr=require("url");var ke={};ft(ke,{DEBUG:()=>Ke});var Ke=Sr(process.env.DEBUG);function Sr(e){if(typeof e=="boolean")return e;if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let t=e.split(",").map(r=>r.split(":")[0]);return t.includes("-tailwindcss")?!1:!!t.includes("tailwindcss")}var Y=R(require("enhanced-resolve")),ur=require("jiti"),De=R(require("fs")),lt=R(require("fs/promises")),re=R(require("path")),nt=require("url"),D=require("tailwindcss");var ye=R(require("fs/promises")),X=R(require("path")),Vr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Nr=[".js",".cjs",".mjs"],Er=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Tr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Rr(e,t){for(let r of t){let i=`${e}${r}`;if((await ye.default.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await ye.default.access(i).then(()=>!0,()=>!1))return i}return null}async function pt(e,t,r,i){let n=Nr.includes(i)?Er:Tr,o=await Rr(X.default.resolve(r,t),n);if(o===null||e.has(o))return;e.add(o),r=X.default.dirname(o),i=X.default.extname(o);let l=await ye.default.readFile(o,"utf-8"),a=[];for(let s of Vr)for(let f of l.matchAll(s))f[1].startsWith(".")&&a.push(pt(e,f[1],r,i));await Promise.all(a)}async function dt(e){let t=new Set;return await pt(t,e,X.default.dirname(e),X.default.extname(e)),Array.from(t)}var rt=R(require("path"));function Me(e){return{kind:"word",value:e}}function Pr(e,t){return{kind:"function",value:e,nodes:t}}function Or(e){return{kind:"separator",value:e}}function $(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,a=t(n,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(i,1),l=0):s.length===1?(e[i]=s[0],l=1):(e.splice(i,1,...s),l=s.length):e[i]=s)}})??0;if(o){a===0?i--:i+=l-1;continue}if(a===2)return 2;if(a!==1&&n.kind==="function"&&$(n.nodes,t,n)===2)return 2}}function C(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+C(r.nodes)+")"}return t}var mt=92,_r=41,gt=58,ht=44,Dr=34,vt=61,wt=62,kt=60,yt=10,Ur=40,Ir=39,bt=47,xt=32,At=9;function b(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let t=[],r=[],s=[],i=null,o=null,n="",a="",l;for(let c=0;c<e.length;c++){let f=e.charCodeAt(c);if(f===v)n+=e.slice(c,c+2),c+=1;else if(f===N&&e.charCodeAt(c+1)===b){let u=c;for(let p=c+2;p<e.length;p++)if(l=e.charCodeAt(p),l===v)p+=1;else if(l===b&&e.charCodeAt(p+1)===N){c=p+1;break}let m=e.slice(u,c+1);m.charCodeAt(2)===Be&&r.push(le(m.slice(2,-2)))}else if(f===Ie||f===je){let u=c;for(let m=c+1;m<e.length;m++)if(l=e.charCodeAt(m),l===v)m+=1;else if(l===f){c=m;break}else{if(l===P&&e.charCodeAt(m+1)===x)throw new Error(`Unterminated string: ${e.slice(u,m+1)+String.fromCharCode(f)}`);if(l===x)throw new Error(`Unterminated string: ${e.slice(u,m)+String.fromCharCode(f)}`)}n+=e.slice(u,c+1)}else{if((f===S||f===x||f===D)&&(l=e.charCodeAt(c+1))&&(l===S||l===x||l===D))continue;if(f===x){if(n.length===0)continue;l=n.charCodeAt(n.length-1),l!==S&&l!==x&&l!==D&&(n+=" ")}else if(f===se&&e.charCodeAt(c+1)===se&&n.length===0){let u="",m=c,p=-1;for(let d=c+2;d<e.length;d++)if(l=e.charCodeAt(d),l===v)d+=1;else if(l===N&&e.charCodeAt(d+1)===b){for(let w=d+2;w<e.length;w++)if(l=e.charCodeAt(w),l===v)w+=1;else if(l===b&&e.charCodeAt(w+1)===N){d=w+1;break}}else if(p===-1&&l===Fe)p=n.length+d-m;else if(l===P&&u.length===0){n+=e.slice(m,d),c=d;break}else if(l===W)u+=")";else if(l===Me)u+="]";else if(l===te)u+="}";else if((l===M||e.length-1===d)&&u.length===0){c=d-1,n+=e.slice(m,d);break}else(l===re||l===Le||l===M)&&u.length>0&&e[d]===u[u.length-1]&&(u=u.slice(0,-1));let I=B(n,p);if(!I)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(I):t.push(I),n=""}else if(f===P&&n.charCodeAt(0)===L)o=C(n),i?i.nodes.push(o):t.push(o),n="",o=null;else if(f===P&&a[a.length-1]!==")"){let u=B(n);if(!u)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(u):t.push(u),n=""}else if(f===te&&a[a.length-1]!==")")a+="}",o=ne(n.trim()),i&&i.nodes.push(o),s.push(i),i=o,n="",o=null;else if(f===M&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),n.length>0)if(n.charCodeAt(0)===L)o=C(n),i?i.nodes.push(o):t.push(o),n="",o=null;else{let m=n.indexOf(":");if(i){let p=B(n,m);if(!p)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(p)}}let u=s.pop()??null;u===null&&i&&t.push(i),i=u,n="",o=null}else if(f===W)a+=")",n+="(";else if(f===re){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(f===S||f===x||f===D))continue;n+=String.fromCharCode(f)}}}if(n.charCodeAt(0)===L&&t.push(C(n)),a.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return r.length>0?r.concat(t):t}function C(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===S||s===W){let i=e.slice(0,r).trim(),o=e.slice(r).trim();return z(i,o,t)}}return z(e.trim(),"",t)}function B(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return oe(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var We=64;function ze(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function z(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function ne(e,t=[]){return e.charCodeAt(0)===We?C(e,t):ze(e,t)}function oe(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function le(e){return{kind:"comment",value:e}}function T(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let o=e[i],n=r[r.length-1]??null;if(o.kind==="context"){if(T(o.nodes,t,r,{...s,...o.context})===2)return 2;continue}r.push(o);let a=t(o,{parent:n,context:s,path:r,replaceWith(l){Array.isArray(l)?l.length===0?e.splice(i,1):l.length===1?e[i]=l[0]:e.splice(i,1,...l):e[i]=l,i--}})??0;if(r.pop(),a===2)return 2;if(a!==1&&(o.kind==="rule"||o.kind==="at-rule")){r.push(o);let l=T(o.nodes,t,r,s);if(r.pop(),l===2)return 2}}}function ae(e){function t(s,i=0){let o="",n=" ".repeat(i);if(s.kind==="declaration")o+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
|
|
4
|
-
|
|
5
|
-
`;for(let a of s.nodes)o+=t(a,i+1);o+=`${n}}
|
|
6
|
-
`}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`)){this.defaultFlush=t}#r=new E(()=>({value:0}));#t=new E(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(i=>i.label).join("//"),s=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(s).value++,this.#t.get(s),this.#e.push({id:s,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let s=this.#e.pop(),i=r-s.value;this.#t.get(s.id).value+=i}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:a}]of this.#r.entries()){if(this.#t.has(n))continue;r.length===0&&(s=!0,r.push("Hits:"));let l=n.split("//").length;r.push(`${" ".repeat(l)}${n} ${j(Re(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
|
|
12
|
-
|
|
3
|
+
`);let t=[],r=[],i=null,n="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case mt:{n+=e[l]+e[l+1],l++;break}case gt:case ht:case vt:case wt:case kt:case yt:case bt:case xt:case At:{if(n.length>0){let u=Me(n);i?i.nodes.push(u):t.push(u),n=""}let s=l,f=l+1;for(;f<e.length&&(o=e.charCodeAt(f),!(o!==gt&&o!==ht&&o!==vt&&o!==wt&&o!==kt&&o!==yt&&o!==bt&&o!==xt&&o!==At));f++);l=f-1;let c=Or(e.slice(s,f));i?i.nodes.push(c):t.push(c);break}case Ir:case Dr:{let s=l;for(let f=l+1;f<e.length;f++)if(o=e.charCodeAt(f),o===mt)f+=1;else if(o===a){l=f;break}n+=e.slice(s,l+1);break}case Ur:{let s=Pr(n,[]);n="",i?i.nodes.push(s):t.push(s),r.push(s),i=s;break}case _r:{let s=r.pop();if(n.length>0){let f=Me(n);s?.nodes.push(f),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(a)}}return n.length>0&&t.push(Me(n)),t}var h=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var In=new Uint8Array(256);var be=new Uint8Array(256);function A(e,t){let r=0,i=[],n=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){i.push(e.slice(n,a)),n=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let f=e.charCodeAt(a);if(f===92){a+=1;continue}if(f===s)break}break;case 40:be[r]=41,r++;break;case 91:be[r]=93,r++;break;case 123:be[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===be[r-1]&&r--;break}}return i.push(e.slice(n)),i}function Fe(e){if(e===null)return"";let t=Mr(e.value),r=t?e.value.slice(4,-1):e.value,[i,n]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${je(r)}${n}`:e.kind==="named"?`/${e.value}`:""}var Lr=new h(e=>{let t=b(e),r=new Set;return $(t,(i,{parent:n})=>{let o=n===null?t:n.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let l=o.indexOf(i)??-1;if(l===-1)return;let a=o[l-1];if(a?.kind!=="separator"||a.value!==" ")return;let s=o[l+1];if(s?.kind!=="separator"||s.value!==" ")return;r.add(a),r.add(s)}else i.kind==="separator"&&i.value.trim()==="/"?i.value="/":i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(o[0]===i||o[o.length-1]===i)&&r.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),r.size>0&&$(t,(i,{replaceWith:n})=>{r.has(i)&&(r.delete(i),n([]))}),ze(t),C(t)});function je(e){return Lr.get(e)}var Hn=new h(e=>{let t=b(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?C(t[2].nodes):e});function ze(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=ie(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=ie(t.value);for(let r=0;r<t.nodes.length;r++)ze([t.nodes[r]]);break}t.value=ie(t.value),ze(t.nodes);break}case"separator":t.value=ie(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=ie(t.value));break}default:zr(t)}}var Kr=new h(e=>{let t=b(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Mr(e){return Kr.get(e)}function zr(e){throw new Error(`Unexpected value: ${e}`)}function ie(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Fr=process.env.FEATURES_ENV!=="stable";var I=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ro=new RegExp(`^${I.source}$`);var io=new RegExp(`^${I.source}%$`);var no=new RegExp(`^${I.source}s*/s*${I.source}$`);var jr=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],oo=new RegExp(`^${I.source}(${jr.join("|")})$`);var Wr=["deg","rad","grad","turn"],lo=new RegExp(`^${I.source}(${Wr.join("|")})$`);var ao=new RegExp(`^${I.source} +${I.source} +${I.source}$`);function S(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ee(e){return Br(e,.25)}function Br(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ne(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var qr={"--alpha":Gr,"--spacing":Zr,"--theme":Yr,theme:Jr};function Gr(e,t,r,...i){let[n,o]=A(r,"/").map(l=>l.trim());if(!n||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);return ne(n,o)}function Zr(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function Yr(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let o=e.resolveThemeValue(r,n);if(!o){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return o;let l=i.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=b(o);return Xr(a,l),C(a)}return o}function Jr(e,t,r,...i){r=Qr(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var Vo=new RegExp(Object.keys(qr).map(e=>`${e}\\(`).join("|"));function Qr(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===r||o==="\\")?(t+=o,i++):t+=n}return t}function Xr(e,t){$(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let i=r.nodes[r.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=t)}})}function We(e,t){let r=e.length,i=t.length,n=r<i?r:i;for(let o=0;o<n;o++){let l=e.charCodeAt(o),a=t.charCodeAt(o);if(l>=48&&l<=57&&a>=48&&a<=57){let s=o,f=o+1,c=o,u=o+1;for(l=e.charCodeAt(f);l>=48&&l<=57;)l=e.charCodeAt(++f);for(a=t.charCodeAt(u);a>=48&&a<=57;)a=t.charCodeAt(++u);let p=e.slice(s,f),m=t.slice(c,u),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(l!==a)return l-a}return e.length-t.length}function Vt(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;te(e.charCodeAt(t));)t++;{for(r=t;t<i;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95))break}if(r===t)return null}let n=e.slice(r,t);for(;te(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(t);if(l===61)o="=",t++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;te(e.charCodeAt(t));)t++;if(t===i)return null;let a="",s=null;if(l=e.charCodeAt(t),l===39||l===34){s=e[t],t++,r=t;for(let c=t;c<i;c++){let u=e.charCodeAt(c);u===l?t=c+1:u===92&&c++}a=e.slice(r,t-1)}else{for(r=t;t<i&&!te(e.charCodeAt(t));)t++;a=e.slice(r,t)}for(;te(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:o,quote:s,value:a,sensitivity:null};let f=null;switch(e.charCodeAt(t)){case 105:case 73:{f="i",t++;break}case 115:case 83:{f="s",t++;break}default:return null}for(;te(e.charCodeAt(t));)t++;return t!==i?null:{attribute:n,operator:o,quote:s,value:a,sensitivity:f}}function te(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var ti=/^[a-zA-Z0-9-_%/\.]+$/;function He(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!ti.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function ri(e){return{kind:"combinator",value:e}}function ii(e,t){return{kind:"function",value:e,nodes:t}}function W(e){return{kind:"selector",value:e}}function ni(e){return{kind:"separator",value:e}}function oi(e){return{kind:"value",value:e}}function Ae(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,a=t(n,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(i,1),l=0):s.length===1?(e[i]=s[0],l=1):(e.splice(i,1,...s),l=s.length):(e[i]=s,l=1))}})??0;if(o){a===0?i--:i+=l-1;continue}if(a===2)return 2;if(a!==1&&n.kind==="function"&&Ae(n.nodes,t,n)===2)return 2}}function B(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+B(r.nodes)+")"}return t}var Et=92,li=93,Tt=41,ai=58,Rt=44,si=34,ui=46,Pt=62,Ot=10,fi=35,_t=91,Dt=40,Ut=43,ci=39,It=32,Lt=9,Kt=126,pi=38,di=42;function le(e){e=e.replaceAll(`\r
|
|
4
|
+
`,`
|
|
5
|
+
`);let t=[],r=[],i=null,n="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case Rt:case Pt:case Ot:case It:case Ut:case Lt:case Kt:{if(n.length>0){let p=W(n);i?i.nodes.push(p):t.push(p),n=""}let s=l,f=l+1;for(;f<e.length&&(o=e.charCodeAt(f),!(o!==Rt&&o!==Pt&&o!==Ot&&o!==It&&o!==Ut&&o!==Lt&&o!==Kt));f++);l=f-1;let c=e.slice(s,f),u=c.trim()===","?ni(c):ri(c);i?i.nodes.push(u):t.push(u);break}case Dt:{let s=ii(n,[]);if(n="",s.value!==":not"&&s.value!==":where"&&s.value!==":has"&&s.value!==":is"){let f=l+1,c=0;for(let p=l+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Dt){c++;continue}if(o===Tt){if(c===0){l=p;break}c--}}let u=l;s.nodes.push(oi(e.slice(f,u))),n="",l=u,i?i.nodes.push(s):t.push(s);break}i?i.nodes.push(s):t.push(s),r.push(s),i=s;break}case Tt:{let s=r.pop();if(n.length>0){let f=W(n);s.nodes.push(f),n=""}r.length>0?i=r[r.length-1]:i=null;break}case ui:case ai:case fi:{if(n.length>0){let s=W(n);i?i.nodes.push(s):t.push(s)}n=e[l];break}case _t:{if(n.length>0){let c=W(n);i?i.nodes.push(c):t.push(c)}n="";let s=l,f=0;for(let c=l+1;c<e.length;c++){if(o=e.charCodeAt(c),o===_t){f++;continue}if(o===li){if(f===0){l=c;break}f--}}n+=e.slice(s,l+1);break}case ci:case si:{let s=l;for(let f=l+1;f<e.length;f++)if(o=e.charCodeAt(f),o===Et)f+=1;else if(o===a){l=f;break}n+=e.slice(s,l+1);break}case pi:case di:{if(n.length>0){let s=W(n);i?i.nodes.push(s):t.push(s),n=""}i?i.nodes.push(W(e[l])):t.push(W(e[l]));break}case Et:{n+=e[l]+e[l+1],l+=1;break}default:n+=e[l]}}return n.length>0&&t.push(W(n)),t}var mi=/^(?<value>-?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)$/i,ae=new h(e=>{let t=mi.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let i=t.groups?.unit;if(i===void 0)return null;let n=Number(r);return Number.isNaN(n)?null:[n,i]});var H=new h(e=>new h(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[L(".x",[E("@apply",t)])];return gi(e,()=>{for(let n of e.parseCandidate(t))e.compileAstNodes(n,1);se(r,e)}),y(r,(n,{replaceWith:o})=>{n.kind==="declaration"?(n.value===void 0||n.property==="--tw-sort")&&o([]):n.kind==="context"||n.kind==="at-root"?o(n.nodes):n.kind==="comment"?o([]):n.kind==="at-rule"&&n.name==="@property"&&o([])}),y(r,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let o=!1,l=b(n.value),a=new Set;$(l,(s,{replaceWith:f})=>{if(s.kind!=="function"||s.value!=="var"||s.nodes.length!==1&&s.nodes.length<3)return;let c=s.nodes[0].value;e.theme.prefix&&c.startsWith(`--${e.theme.prefix}-`)&&(c=c.slice(`--${e.theme.prefix}-`.length));let u=e.resolveThemeValue(c);if(!a.has(c)&&(a.add(c),u!==void 0&&(s.nodes.length===1&&(o=!0,s.nodes.push(...b(`,${u}`))),s.nodes.length>=3))){let p=C(s.nodes),m=`${s.nodes[0].value},${u}`;p===m&&(o=!0,f(b(u)))}}),o&&(n.value=C(l))}if(n.value.includes("calc")){let o=!1,l=b(n.value);$(l,(a,{replaceWith:s})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let f=ae.get(a.nodes[0].value);if(f===null)return;let[c,u]=f,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,s(b(`${c*p}${u}`)))}),o&&(n.value=C(l))}n.value=je(n.value)}}),P(r)}catch{return Symbol()}})),Ge=new h(e=>{let t=H.get(e),r=new h(()=>[]);for(let[i,n]of e.getClassList()){let o=t.get(i);if(typeof o=="string"){r.get(o).push(i);for(let l of n.modifiers){if(ee(l))continue;let a=`${i}/${l}`,s=t.get(a);typeof s=="string"&&r.get(s).push(a)}}}return r}),Ce=new h(e=>new h(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[L(".x",[E("@apply",`${t}:flex`)])];return se(r,e),y(r,n=>{if(n.kind==="at-rule"&&n.params.includes(" "))n.params=n.params.replaceAll(" ","");else if(n.kind==="rule"){let o=le(n.selector),l=!1;Ae(o,(a,{replaceWith:s})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),l=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(l=!0,s(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(l=!0,s(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(l=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),l&&(n.selector=B(o))}}),P(r)}catch{return Symbol()}})),Mt=new h(e=>{let t=Ce.get(e),r=new h(()=>[]);for(let[i,n]of e.variants.entries())if(n.kind==="static"){let o=t.get(i);if(typeof o!="string")continue;r.get(o).push(i)}return r});function gi(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=n=>{let o=r.call(e.theme.values,n);return o===void 0||o.options&1&&(i.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let n of i)n.options|=1}}function z(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function ue(e){let t=[];for(let r of A(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),o=r.indexOf("]",n);if(n===-1||o===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,o)),i=o+1}i<=r.length-1&&t.push(r.slice(i))}return t}var ol=new h(e=>{let t=e.theme.prefix?`${e.theme.prefix}:`:"",r=wi.get(e),i=yi.get(e);return new h((n,o)=>{for(let l of e.parseCandidate(n)){let a=l.variants.slice().reverse().flatMap(c=>r.get(c)),s=l.important;if(s||a.length>0){let u=o.get(e.printCandidate({...l,variants:[],important:!1}));return e.theme.prefix!==null&&a.length>0&&(u=u.slice(t.length)),a.length>0&&(u=`${a.map(p=>e.printVariant(p)).join(":")}:${u}`),s&&(u+="!"),e.theme.prefix!==null&&a.length>0&&(u=`${t}${u}`),u}let f=i.get(n);if(f!==n)return f}return n})}),vi=[Ci,Ui,Ii,Oi],wi=new h(e=>new h(t=>{let r=[t];for(let i of vi)for(let n of r.splice(0)){let o=i(e,structuredClone(n));if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r})),ki=[xi,Ai,Ni,Ti,Pi,_i,Di,Li],yi=new h(e=>new h(t=>{for(let r of e.parseCandidate(t)){let i=structuredClone(r);for(let o of ki)i=o(e,i);let n=e.printCandidate(i);if(t!==n)return n}return t})),bi=["t","tr","r","br","b","bl","l","tl"];function xi(e,t){if(t.kind==="static"&&t.root.startsWith("bg-gradient-to-")){let r=t.root.slice(15);return bi.includes(r)&&(t.root=`bg-linear-to-${r}`),t}return t}function Ai(e,t){let r=Ft.get(e);if(t.kind==="arbitrary"){let[i,n]=r(t.value,t.modifier===null?1:0);i!==t.value&&(t.value=i,n!==null&&(t.modifier=n))}else if(t.kind==="functional"&&t.value?.kind==="arbitrary"){let[i,n]=r(t.value.value,t.modifier===null?1:0);i!==t.value.value&&(t.value.value=i,n!==null&&(t.modifier=n))}return t}function Ci(e,t){let r=Ft.get(e),i=Ve(t);for(let[n]of i)if(n.kind==="arbitrary"){let[o]=r(n.selector,2);o!==n.selector&&(n.selector=o)}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"){let[o]=r(n.value.value,2);o!==n.value.value&&(n.value.value=o)}return t}var Ft=new h(e=>{return t(e);function t(r){function i(a,s=0){let f=b(a);if(s&2)return[$e(f,l),null];let c=0,u=0;if($(f,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,$(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="separator"&&g.value.trim()==="/"?(u+=1,2):1))}),c===0)return[a,null];if(u===0)return[$e(f,o),null];if(u>1)return[$e(f,l),null];let p=null;return[$e(f,(d,g)=>{let v=A(d,"/").map(k=>k.trim());if(v.length>2)return null;if(f.length===1&&v.length===2&&s&1){let[k,w]=v;if(/^\d+%$/.test(w))p={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let N=Number(w)*100;p={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else p={kind:"arbitrary",value:w};d=k}return o(d,g)||l(d,g)}),p]}function n(a,s=!0){let f=`--${He(ue(a))}`;return r.theme.get([f])?s&&r.theme.prefix?`--${r.theme.prefix}-${f.slice(2)}`:f:null}function o(a,s){let f=n(a);if(f)return s?`var(${f}, ${s})`:`var(${f})`;let c=ue(a);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let u=c[1];return ee(u)?`--spacing(${u})`:null}return null}function l(a,s){let f=A(a,"/").map(p=>p.trim());a=f.shift();let c=n(a,!1);if(!c)return null;let u=f.length>0?`/${f.join("/")}`:"";return s?`--theme(${c}${u}, ${s})`:`--theme(${c}${u})`}return i}});function $e(e,t){return $(e,(r,{parent:i,replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let l=o.value,a=1;for(let c=a;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)l+=C([r.nodes[c]]),a=c+1;l=$i(l);let s=r.nodes.slice(a+1),f=s.length>0?t(l,C(s)):t(l);if(f===null)return;if(i){let c=i.nodes.indexOf(r)-1;for(;c!==-1;){let u=i.nodes[c];if(u.kind==="separator"&&u.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(u.value.trim())&&(f=`(${f})`);break}}n(b(f))}}),C(e)}function $i(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===r||o==="\\")?(t+=o,i++):t+=n}return t}function*Ve(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function F(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Si(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Vi=new h(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=ae.get(t);if(!r)return null;let[i,n]=r;return new h(o=>{let l=ae.get(o);if(!l)return null;let[a,s]=l;return s!==n?null:a/i})});function Ni(e,t){if(t.kind!=="arbitrary"&&!(t.kind==="functional"&&t.value?.kind==="arbitrary"))return t;let r=Ge.get(e),i=H.get(e),n=e.printCandidate(t),o=i.get(n);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(i.get(s)===o&&Ei(e,t,a))return a}return t;function*l(a,s){let f=r.get(a);if(!(f.length>1)){if(f.length===0&&s.modifier){let c={...s,modifier:null},u=i.get(e.printCandidate(c));if(typeof u=="string")for(let p of l(u,c))yield Object.assign({},p,{modifier:s.modifier})}if(f.length===1)for(let c of F(e,f[0]))yield c;else if(f.length===0){let c=s.kind==="arbitrary"?s.value:s.value?.value??null;if(c===null)return;let u=Vi.get(e)?.get(c)??null,p="";u!==null&&u<0&&(p="-",u=Math.abs(u));for(let m of Array.from(e.utilities.keys("functional")).sort((d,g)=>+(d[0]==="-")-+(g[0]==="-"))){p&&(m=`${p}${m}`);for(let d of F(e,`${m}-${c}`))yield d;if(s.modifier)for(let d of F(e,`${m}-${c}${s.modifier}`))yield d;if(u!==null){for(let d of F(e,`${m}-${u}`))yield d;if(s.modifier)for(let d of F(e,`${m}-${u}${Fe(s.modifier)}`))yield d}for(let d of F(e,`${m}-[${c}]`))yield d;if(s.modifier)for(let d of F(e,`${m}-[${c}]${Fe(s.modifier)}`))yield d}}}}}function Ei(e,t,r){let i=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?i=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(i=t.value),i===null)return!0;let n=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
6
|
+
`),o=!0;return $(b(i),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(n)||n.includes(`${a}:`))return o=!1,2}}),o}function Ti(e,t){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let r=Ge.get(e),i=H.get(e),n=e.printCandidate(t),o=i.get(n);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(i.get(s)===o)return a}return t;function*l(a,s){let f=r.get(a);if(!(f.length>1)){if(f.length===0&&s.modifier){let c={...s,modifier:null},u=i.get(e.printCandidate(c));if(typeof u=="string")for(let p of l(u,c))yield Object.assign({},p,{modifier:s.modifier})}if(f.length===1)for(let c of F(e,f[0]))yield c}}}var Ri=new Map([["order-none","order-0"]]);function Pi(e,t){let r=H.get(e),i=Si(e,t),n=Ri.get(i)??null;if(n===null)return t;let o=r.get(i);if(typeof o!="string")return t;let l=r.get(n);if(typeof l!="string"||o!==l)return t;let[a]=F(e,n);return a}function Oi(e,t){let r=Ce.get(e),i=Mt.get(e),n=Ve(t);for(let[o]of n){if(o.kind==="compound")continue;let l=e.printVariant(o),a=r.get(l);if(typeof a!="string")continue;let s=i.get(a);if(s.length!==1)continue;let f=s[0],c=e.parseVariant(f);c!==null&&z(o,c)}return t}function _i(e,t){let r=H.get(e);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let i=e.printCandidate({...t,value:{...t.value,dataType:null}});r.get(e.printCandidate(t))===r.get(i)&&(t.value.dataType=null)}return t}function Di(e,t){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let r=H.get(e),i=r.get(e.printCandidate(t));if(i===null)return t;for(let n of jt(t))if(r.get(e.printCandidate({...t,value:n}))===i)return t.value=n,t;return t}function Ui(e,t){let r=Ve(t);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[n,o]=A(i.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return t}function*jt(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&ee(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");S(o)&&S(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let i=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(o[0].trim());let n=Array.from(i).sort((o,l)=>o.length-l.length);for(let o of n)yield*jt(e,o,r)}function zt(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function Se(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function Ii(e,t){let r=[t],i=Ce.get(e),n=Ve(t);for(let[o,l]of n)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=le(o.selector.trim());if(!zt(a))continue;if(l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&a[2].value==="*"){z(o,e.parseVariant("*"));continue}if(l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="*"){z(o,e.parseVariant("**"));continue}if(l===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),z(o,e.parseVariant(`in-[${B(a)}]`));continue}if(l===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let u=i.get(e.printVariant(o)),p=b(B(a)),m=!1;if($(p,(d,{replaceWith:g})=>{d.kind==="word"&&d.value==="not"&&(m=!0,g([]))}),p=b(C(p)),$(p,d=>{d.kind==="separator"&&d.value!==" "&&d.value.trim()===""&&(d.value=" ")}),m){let d=e.parseVariant(`not-[${C(p)}]`);if(d===null)continue;let g=i.get(e.printVariant(d));if(u===g){z(o,d);continue}}}let s=null;l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&Se(a[2])&&(a=[a[2]],s=e.parseVariant("*")),l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&Se(a[2])&&(a=[a[2]],s=e.parseVariant("**"));let f=a.filter(u=>!(u.kind==="selector"&&u.value.trim()==="&"));if(f.length!==1)continue;let c=f[0];if(c.kind==="function"&&c.value===":is"){if(!zt(c.nodes)||c.nodes.length!==1||!Se(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let u=c,p=!1;if(u.kind==="function"&&u.value===":not"){if(p=!0,u.nodes.length!==1||u.nodes[0].kind!=="selector"&&u.nodes[0].kind!=="function"||u.nodes[0].value[0]!==":")continue;u=u.nodes[0]}let m=(g=>{if(g===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="odd")return p?(p=!1,"even"):"odd";if(g===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="even")return p?(p=!1,"odd"):"even";for(let[v,k]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===v&&u.kind==="function"&&u.nodes.length===1)return u.nodes.length===1&&u.nodes[0].kind==="value"&&S(u.nodes[0].value)?`${k}-${u.nodes[0].value}`:`${k}-[${B(u.nodes)}]`;if(p){let v=i.get(e.printVariant(o)),k=i.get(`not-[${g}]`);if(v===k)return`[&${g}]`}return null})(u.value);if(m===null)continue;p&&(m=`not-${m}`);let d=e.parseVariant(m);if(d===null)continue;z(o,d)}else if(Se(c)){let u=Vt(c.value);if(u===null)continue;if(u.attribute.startsWith("data-")){let p=u.attribute.slice(5);z(o,{kind:"functional",root:"data",modifier:null,value:u.value===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}else if(u.attribute.startsWith("aria-")){let p=u.attribute.slice(5);z(o,{kind:"functional",root:"aria",modifier:null,value:u.value===null?{kind:"arbitrary",value:p}:u.operator==="="&&u.value==="true"&&u.sensitivity===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${u.attribute}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}}if(s)return[s,o]}return r}function Li(e,t){if(t.kind!=="functional"&&t.kind!=="arbitrary"||t.modifier===null)return t;let r=H.get(e),i=r.get(e.printCandidate(t)),n=t.modifier;if(i===r.get(e.printCandidate({...t,modifier:null})))return t.modifier=null,t;{let o={kind:"named",value:n.value.endsWith("%")?n.value.slice(0,-1):n.value,fraction:null};if(i===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}{let o={kind:"named",value:`${parseFloat(n.value)*100}`,fraction:null};if(i===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}return t}function fe(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let n=new Map,o=[],l=new Map;for(let f of e){if(t.invalidCandidates.has(f)){r?.(f);continue}let c=t.parseCandidate(f);if(c.length===0){r?.(f);continue}l.set(f,c)}let a=0;(i??!0)&&(a|=1);let s=t.getVariantOrder();for(let[f,c]of l){let u=!1;for(let p of c){let m=t.compileAstNodes(p,a);if(m.length!==0){u=!0;for(let{node:d,propertySort:g}of m){let v=0n;for(let k of p.variants)v|=1n<<BigInt(s.get(k));n.set(d,{properties:g,variants:v,candidate:f}),o.push(d)}}}u||r?.(f)}return o.sort((f,c)=>{let u=n.get(f),p=n.get(c);if(u.variants-p.variants!==0n)return Number(u.variants-p.variants);let m=0;for(;m<u.properties.order.length&&m<p.properties.order.length&&u.properties.order[m]===p.properties.order[m];)m+=1;return(u.properties.order[m]??1/0)-(p.properties.order[m]??1/0)||p.properties.count-u.properties.count||We(u.candidate,p.candidate)}),{astNodes:o,nodeSorting:n}}function se(e,t){let r=0,i=K("&",e),n=new Set,o=new h(()=>new Set),l=new h(()=>new Set);y([i],(u,{parent:p,path:m})=>{if(u.kind==="at-rule"){if(u.name==="@keyframes")return y(u.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(u.name==="@utility"){let d=u.params.replace(/-\*$/,"");l.get(d).add(u),y(u.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){n.add(u);for(let v of Bt(g,t))o.get(u).add(v)}});return}if(u.name==="@apply"){if(p===null)return;r|=1,n.add(p);for(let d of Bt(u,t))for(let g of m)g!==u&&n.has(g)&&o.get(g).add(d)}}});let a=new Set,s=[],f=new Set;function c(u,p=[]){if(!a.has(u)){if(f.has(u)){let m=p[(p.indexOf(u)+1)%p.length];throw u.kind==="at-rule"&&u.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&y(u.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let v of g)for(let k of t.parseCandidate(v))switch(k.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===k.root)throw new Error(`You cannot \`@apply\` the \`${v}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
7
|
+
|
|
8
|
+
${P([u])}
|
|
9
|
+
Relies on:
|
|
10
|
+
|
|
11
|
+
${P([m])}`)}f.add(u);for(let m of o.get(u))for(let d of l.get(m))p.push(u),c(d,p),p.pop();a.add(u),f.delete(u),s.push(u)}}for(let u of n)c(u);for(let u of s)"nodes"in u&&y(u.nodes,(p,{replaceWith:m})=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let d=p.params.split(/(\s+)/g),g={},v=0;for(let[k,w]of d.entries())k%2===0&&(g[w]=v),v+=w.length;{let k=Object.keys(g),w=fe(k,t,{respectImportant:!1,onInvalidCandidate:x=>{if(t.theme.prefix&&!x.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${x}\`. Did you mean \`${t.theme.prefix}:${x}\`?`);if(t.invalidCandidates.has(x))throw new Error(`Cannot apply utility class \`${x}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let T=A(x,":");if(T.length>1){let ve=T.pop();if(t.candidatesToCss([ve])[0]){let J=t.candidatesToCss(T.map(Q=>`${Q}:[--tw-variant-check:1]`)),j=T.filter((Q,Le)=>J[Le]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${x}\` because the ${j.map(Q=>`\`${Q}\``)} variant does not exist.`);{let Q=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${x}\` because the ${Q.format(j.map(Le=>`\`${Le}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${x}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${x}\``)}}),N=p.src,kr=w.astNodes.map(x=>{let T=w.nodeSorting.get(x)?.candidate,ve=T?g[T]:void 0;if(x=structuredClone(x),!N||!T||ve===void 0)return y([x],j=>{j.src=N}),x;let J=[N[0],N[1],N[2]];return J[1]+=7+ve,J[2]=J[1]+T.length,y([x],j=>{j.src=J}),x}),Ie=[];for(let x of kr)if(x.kind==="rule")for(let T of x.nodes)Ie.push(T);else Ie.push(x);m(Ie)}});return r}function*Bt(e,t){for(let r of e.params.split(/\s+/g))for(let i of t.parseCandidate(r))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var pe=92,Ne=47,Ee=42,Ht=34,qt=39,Wi=58,Re=59,O=10,Pe=13,de=32,Te=9,Gt=123,Ze=125,Qe=40,Zt=41,Bi=91,Hi=93,Yt=45,Ye=64,qi=33;function ge(e,t){let r=t?.from?{file:t.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],n=[],o=[],l=null,a=null,s="",f="",c=0,u;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(!(m===Pe&&(u=e.charCodeAt(p+1),u===O)))if(m===pe)s===""&&(c=p),s+=e.slice(p,p+2),p+=1;else if(m===Ne&&e.charCodeAt(p+1)===Ee){let d=p;for(let v=p+2;v<e.length;v++)if(u=e.charCodeAt(v),u===pe)v+=1;else if(u===Ee&&e.charCodeAt(v+1)===Ne){p=v+1;break}let g=e.slice(d,p+1);if(g.charCodeAt(2)===qi){let v=et(g.slice(2,-2));n.push(v),r&&(v.src=[r,d,p+1],v.dst=[r,d,p+1])}}else if(m===qt||m===Ht){let d=Jt(e,p,m);s+=e.slice(p,d+1),p=d}else{if((m===de||m===O||m===Te)&&(u=e.charCodeAt(p+1))&&(u===de||u===O||u===Te||u===Pe&&(u=e.charCodeAt(p+2))&&u==O))continue;if(m===O){if(s.length===0)continue;u=s.charCodeAt(s.length-1),u!==de&&u!==O&&u!==Te&&(s+=" ")}else if(m===Yt&&e.charCodeAt(p+1)===Yt&&s.length===0){let d="",g=p,v=-1;for(let w=p+2;w<e.length;w++)if(u=e.charCodeAt(w),u===pe)w+=1;else if(u===qt||u===Ht)w=Jt(e,w,u);else if(u===Ne&&e.charCodeAt(w+1)===Ee){for(let N=w+2;N<e.length;N++)if(u=e.charCodeAt(N),u===pe)N+=1;else if(u===Ee&&e.charCodeAt(N+1)===Ne){w=N+1;break}}else if(v===-1&&u===Wi)v=s.length+w-g;else if(u===Re&&d.length===0){s+=e.slice(g,w),p=w;break}else if(u===Qe)d+=")";else if(u===Bi)d+="]";else if(u===Gt)d+="}";else if((u===Ze||e.length-1===w)&&d.length===0){p=w-1,s+=e.slice(g,w);break}else(u===Zt||u===Hi||u===Ze)&&d.length>0&&e[w]===d[d.length-1]&&(d=d.slice(0,-1));let k=Je(s,v);if(!k)throw new Error("Invalid custom property, expected a value");r&&(k.src=[r,g,p],k.dst=[r,g,p]),l?l.nodes.push(k):i.push(k),s=""}else if(m===Re&&s.charCodeAt(0)===Ye)a=me(s),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l?l.nodes.push(a):i.push(a),s="",a=null;else if(m===Re&&f[f.length-1]!==")"){let d=Je(s);if(!d){if(s.length===0)continue;throw new Error(`Invalid declaration: \`${s.trim()}\``)}r&&(d.src=[r,c,p],d.dst=[r,c,p]),l?l.nodes.push(d):i.push(d),s=""}else if(m===Gt&&f[f.length-1]!==")")f+="}",a=K(s.trim()),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l&&l.nodes.push(a),o.push(l),l=a,s="",a=null;else if(m===Ze&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),s.length>0)if(s.charCodeAt(0)===Ye)a=me(s),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l?l.nodes.push(a):i.push(a),s="",a=null;else{let g=s.indexOf(":");if(l){let v=Je(s,g);if(!v)throw new Error(`Invalid declaration: \`${s.trim()}\``);r&&(v.src=[r,c,p],v.dst=[r,c,p]),l.nodes.push(v)}}let d=o.pop()??null;d===null&&l&&i.push(l),l=d,s="",a=null}else if(m===Qe)f+=")",s+="(";else if(m===Zt){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),s+=")"}else{if(s.length===0&&(m===de||m===O||m===Te))continue;s===""&&(c=p),s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===Ye){let p=me(s);r&&(p.src=[r,c,e.length],p.dst=[r,c,e.length]),i.push(p)}if(f.length>0&&l){if(l.kind==="rule")throw new Error(`Missing closing } at ${l.selector}`);if(l.kind==="at-rule")throw new Error(`Missing closing } at ${l.name} ${l.params}`)}return n.length>0?n.concat(i):i}function me(e,t=[]){let r=e,i="";for(let n=5;n<e.length;n++){let o=e.charCodeAt(n);if(o===de||o===Qe){r=e.slice(0,n),i=e.slice(n);break}}return E(r.trim(),i.trim(),t)}function Je(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return M(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}function Jt(e,t,r){let i;for(let n=t+1;n<e.length;n++)if(i=e.charCodeAt(n),i===pe)n+=1;else{if(i===r)return n;if(i===Re&&(e.charCodeAt(n+1)===O||e.charCodeAt(n+1)===Pe&&e.charCodeAt(n+2)===O))throw new Error(`Unterminated string: ${e.slice(t,n+1)+String.fromCharCode(r)}`);if(i===O||i===Pe&&e.charCodeAt(n+1)===O)throw new Error(`Unterminated string: ${e.slice(t,n)+String.fromCharCode(r)}`)}return t}var tt={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Z(e){return{__BARE_VALUE__:e}}var _=Z(e=>{if(S(e.value))return e.value}),V=Z(e=>{if(S(e.value))return`${e.value}%`}),q=Z(e=>{if(S(e.value))return`${e.value}px`}),Xt=Z(e=>{if(S(e.value))return`${e.value}ms`}),Oe=Z(e=>{if(S(e.value))return`${e.value}deg`}),Qi=Z(e=>{if(e.fraction===null)return;let[t,r]=A(e.fraction,"/");if(!(!S(t)||!S(r)))return e.fraction}),er=Z(e=>{if(S(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Xi={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Qi},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Oe}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...q},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...tt}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",..._},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...q}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",..._},flexShrink:{0:"0",DEFAULT:"1",..._},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",..._},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",..._},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",..._},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",..._},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...er},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...er},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Oe},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",..._},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",..._},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Oe},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Oe},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",..._},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Xt},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Xt},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",..._}};var en=64;function L(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function E(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function K(e,t=[]){return e.charCodeAt(0)===en?me(e,t):L(e,t)}function M(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function et(e){return{kind:"comment",value:e}}function y(e,t,r=[],i={}){for(let n=0;n<e.length;n++){let o=e[n],l=r[r.length-1]??null;if(o.kind==="context"){if(y(o.nodes,t,r,{...i,...o.context})===2)return 2;continue}r.push(o);let a=!1,s=0,f=t(o,{parent:l,context:i,path:r,replaceWith(c){a||(a=!0,Array.isArray(c)?c.length===0?(e.splice(n,1),s=0):c.length===1?(e[n]=c[0],s=1):(e.splice(n,1,...c),s=c.length):(e[n]=c,s=1))}})??0;if(r.pop(),a){f===0?n--:n+=s-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in o){r.push(o);let c=y(o.nodes,t,r,i);if(r.pop(),c===2)return 2}}}function P(e,t){let r=0,i={file:null,code:""};function n(l,a=0){let s="",f=" ".repeat(a);if(l.kind==="declaration"){if(s+=`${f}${l.property}: ${l.value}${l.important?" !important":""};
|
|
12
|
+
`,t){r+=f.length;let c=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let u=r;r+=2,l.dst=[i,c,u]}}else if(l.kind==="rule"){if(s+=`${f}${l.selector} {
|
|
13
|
+
`,t){r+=f.length;let c=r;r+=l.selector.length,r+=1;let u=r;l.dst=[i,c,u],r+=2}for(let c of l.nodes)s+=n(c,a+1);s+=`${f}}
|
|
14
|
+
`,t&&(r+=f.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let c=`${f}${l.name} ${l.params};
|
|
15
|
+
`;if(t){r+=f.length;let u=r;r+=l.name.length,r+=1,r+=l.params.length;let p=r;r+=2,l.dst=[i,u,p]}return c}if(s+=`${f}${l.name}${l.params?` ${l.params} `:" "}{
|
|
16
|
+
`,t){r+=f.length;let c=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let u=r;l.dst=[i,c,u],r+=2}for(let c of l.nodes)s+=n(c,a+1);s+=`${f}}
|
|
17
|
+
`,t&&(r+=f.length,r+=2)}else if(l.kind==="comment"){if(s+=`${f}/*${l.value}*/
|
|
18
|
+
`,t){r+=f.length;let c=r;r+=2+l.value.length+2;let u=r;l.dst=[i,c,u],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return s}let o="";for(let l of e)o+=n(l,0);return i.code=o,o}function tn(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),i+o.join("/")}function _e(e){let t=tn(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var it=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,tr=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,rn=/(?:gradient|element|cross-fade|image)\(/,nn=/^\s*data:/i,on=/^([a-z]+:)?\/\//,ln=/^[A-Z_][.\w-]*\(/i,an=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,sn=/(?<!\\)"/g,un=/(?: |\\t|\\n|\\f|\\r)+/g,fn=e=>nn.test(e),cn=e=>on.test(e);async function rr({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ge(e),n=[];function o(l){if(l[0]==="/")return l;let a=rt.posix.join(_e(t),l),s=rt.posix.relative(_e(r),a);return s.startsWith(".")||(s="./"+s),s}return y(i,l=>{if(l.kind!=="declaration"||!l.value)return;let a=it.test(l.value),s=tr.test(l.value);if(a||s){let f=s?pn:ir;n.push(f(l.value,o).then(c=>{l.value=c}))}}),n.length&&await Promise.all(n),P(i)}function ir(e,t){return or(e,it,async r=>{let[i,n]=r;return await nr(n.trim(),i,t)})}async function pn(e,t){return await or(e,tr,async r=>{let[,i]=r;return await mn(i,async({url:o})=>it.test(o)?await ir(o,t):rn.test(o)?o:await nr(o,o,t))})}async function nr(e,t,r,i="url"){let n="",o=e[0];if((o==='"'||o==="'")&&(n=o,e=e.slice(1,-1)),dn(e))return t;let l=await r(e);return n===""&&l!==encodeURI(l)&&(n='"'),n==="'"&&l.includes("'")&&(n='"'),n==='"'&&l.includes('"')&&(l=l.replace(sn,'\\"')),`${i}(${n}${l}${n})`}function dn(e,t){return cn(e)||fn(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||ln.test(e)}function mn(e,t){return Promise.all(gn(e).map(async({url:r,descriptor:i})=>({url:await t({url:r,descriptor:i}),descriptor:i}))).then(hn)}function gn(e){let t=e.trim().replace(un," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(an);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function hn(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function or(e,t,r){let i,n=e,o="";for(;i=t.exec(n);)o+=n.slice(0,i.index),o+=await r(i),n=n.slice(i.index+i[0].length);return o+=n,o}var Cn={};function fr({base:e,from:t,polyfills:r,onDependency:i,shouldRewriteUrls:n,customCssResolver:o,customJsResolver:l}){return{base:e,polyfills:r,from:t,async loadModule(a,s){return at(a,s,i,l)},async loadStylesheet(a,s){let f=await pr(a,s,i,o);return n&&(f.content=await rr({css:f.content,root:e,base:f.base})),f}}}async function cr(e,t){if(e.root&&e.root!=="none"){let r=/[*{]/,i=[];for(let o of e.root.pattern.split("/")){if(r.test(o))break;i.push(o)}if(!await lt.default.stat(re.default.resolve(t,i.join("/"))).then(o=>o.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function vn(e,t){let r=await(0,D.compileAst)(e,fr(t));return await cr(r,t.base),r}async function wn(e,t){let r=await(0,D.compile)(e,fr(t));return await cr(r,t.base),r}async function kn(e,{base:t}){return(0,D.__unstable__loadDesignSystem)(e,{base:t,async loadModule(r,i){return at(r,i,()=>{})},async loadStylesheet(r,i){return pr(r,i,()=>{})}})}async function at(e,t,r,i){if(e[0]!=="."){let a=await sr(e,t,i);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let s=await ar((0,nt.pathToFileURL)(a).href);return{path:a,base:re.default.dirname(a),module:s.default??s}}let n=await sr(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([ar((0,nt.pathToFileURL)(n).href+"?id="+Date.now()),dt(n)]);for(let a of l)r(a);return{path:n,base:re.default.dirname(n),module:o.default??o}}async function pr(e,t,r,i){let n=await bn(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let l=await globalThis.__tw_readFile(n,"utf-8");if(l)return{path:n,base:re.default.dirname(n),content:l}}let o=await lt.default.readFile(n,"utf-8");return{path:n,base:re.default.dirname(n),content:o}}var lr=null;async function ar(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return lr??=(0,ur.createJiti)(Cn.url,{moduleCache:!1,fsCache:!1}),await lr.import(e)}}var st=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],yn=Y.default.ResolverFactory.createResolver({fileSystem:new Y.default.CachedInputFileSystem(De.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:st});async function bn(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return ot(yn,e,t)}var xn=Y.default.ResolverFactory.createResolver({fileSystem:new Y.default.CachedInputFileSystem(De.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:st}),An=Y.default.ResolverFactory.createResolver({fileSystem:new Y.default.CachedInputFileSystem(De.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:st});async function sr(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return ot(xn,e,t).catch(()=>ot(An,e,t))}function ot(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(o,l)=>{if(o)return n(o);i(l)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var ut=class{constructor(t=r=>void process.stderr.write(`${r}
|
|
19
|
+
`)){this.defaultFlush=t}#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(n=>n.label).join("//"),i=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=r-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],i=!1;for(let l=this.#e.length-1;l>=0;l--)this.end(this.#e[l].label);for(let[l,{value:a}]of this.#r.entries()){if(this.#t.has(l))continue;r.length===0&&(i=!0,r.push("Hits:"));let s=l.split("//").length;r.push(`${" ".repeat(s)}${l} ${Ue(dr(`\xD7 ${a}`))}`)}this.#t.size>0&&i&&r.push(`
|
|
20
|
+
Timers:`);let n=-1/0,o=new Map;for(let[l,{value:a}]of this.#t){let s=`${(Number(a)/1e6).toFixed(2)}ms`;o.set(l,s),n=Math.max(n,s.length)}for(let l of this.#t.keys()){let a=l.split("//").length;r.push(`${Ue(`[${o.get(l).padStart(n," ")}]`)}${" ".repeat(a-1)}${a===1?" ":Ue(" \u21B3 ")}${l.split("//").pop()} ${this.#r.get(l).value===1?"":Ue(dr(`\xD7 ${this.#r.get(l).value}`))}`.trimEnd())}t(`
|
|
13
21
|
${r.join(`
|
|
14
22
|
`)}
|
|
15
|
-
`),this.reset()}[Symbol.dispose](){
|
|
23
|
+
`),this.reset()}[Symbol.dispose](){Ke&&this.report()}};function Ue(e){return`\x1B[2m${e}\x1B[22m`}function dr(e){return`\x1B[34m${e}\x1B[39m`}var mr=R(require("@jridgewell/remapping")),G=require("lightningcss"),gr=R(require("magic-string"));function $n(e,{file:t="input.css",minify:r=!1,map:i}={}){function n(s,f){return(0,G.transform)({filename:t,code:s,minify:r,sourceMap:typeof f<"u",inputSourceMap:f,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:G.Features.Nesting|G.Features.MediaQueries,exclude:G.Features.LogicalProperties|G.Features.DirSelector|G.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let o=n(Buffer.from(e),i);if(i=o.map?.toString(),o.warnings.length>0){let s=e.split(`
|
|
24
|
+
`),f=[`Found ${o.warnings.length} ${o.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[c,u]of o.warnings.entries()){f.push(""),o.warnings.length>1&&f.push(`Issue #${c+1}:`);let p=2,m=Math.max(0,u.loc.line-p-1),d=Math.min(s.length,u.loc.line+p),g=s.slice(m,d).map((v,k)=>m+k+1===u.loc.line?`${he("\u2502")} ${v}`:he(`\u2502 ${v}`));g.splice(u.loc.line-m,0,`${he("\u2506")}${" ".repeat(u.loc.column-1)} ${Sn(`${he("^--")} ${u.message}`)}`,`${he("\u2506")}`),f.push(...g)}f.push(""),console.warn(f.join(`
|
|
25
|
+
`))}o=n(o.code,i),i=o.map?.toString();let l=o.code.toString(),a=new gr.default(l);if(a.replaceAll("@media not (","@media not all and ("),i!==void 0&&a.hasChanged()){let s=a.generateMap({source:"original",hires:"boundary"}).toString();i=(0,mr.default)([s,i],()=>null).toString()}return l=a.toString(),{code:l,map:i}}function he(e){return`\x1B[2m${e}\x1B[22m`}function Sn(e){return`\x1B[33m${e}\x1B[39m`}var hr=require("source-map-js");function Vn(e){let t=new hr.SourceMapGenerator,r=1,i=new h(n=>({url:n?.url??`<unknown ${r++}>`,content:n?.content??"<none>"}));for(let n of e.mappings){let o=i.get(n.originalPosition?.source??null);t.addMapping({generated:n.generatedPosition,original:n.originalPosition,source:o.url,name:n.name}),t.setSourceContent(o.url,o.content)}return t.toString()}function Nn(e){let t=typeof e=="string"?e:Vn(e);return{raw:t,get inline(){let r="";return r+="/*# sourceMappingURL=data:application/json;base64,",r+=Buffer.from(t,"utf-8").toString("base64"),r+=` */
|
|
26
|
+
`,r}}}process.versions.bun||vr.register?.((0,wr.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader")));0&&(module.exports={Features,Instrumentation,Polyfills,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath,optimize,toSourceMap});
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var fr=Object.defineProperty;var cr=(e,t)=>{for(var r in t)fr(e,r,{get:t[r],enumerable:!0})};import*as Te from"module";import{pathToFileURL as vn}from"url";var _e={};cr(_e,{DEBUG:()=>Oe});var Oe=pr(process.env.DEBUG);function pr(e){if(typeof e=="boolean")return e;if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let t=e.split(",").map(r=>r.split(":")[0]);return t.includes("-tailwindcss")?!1:!!t.includes("tailwindcss")}import J from"enhanced-resolve";import{createJiti as rn}from"jiti";import rt from"fs";import rr from"fs/promises";import pe from"path";import{pathToFileURL as Qt}from"url";import{__unstable__loadDesignSystem as nn,compile as on,compileAst as ln,Features as Nu,Polyfills as Eu}from"tailwindcss";import De from"fs/promises";import Q from"path";var dr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],mr=[".js",".cjs",".mjs"],gr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],hr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function vr(e,t){for(let r of t){let i=`${e}${r}`;if((await De.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await De.access(i).then(()=>!0,()=>!1))return i}return null}async function nt(e,t,r,i){let n=mr.includes(i)?gr:hr,o=await vr(Q.resolve(r,t),n);if(o===null||e.has(o))return;e.add(o),r=Q.dirname(o),i=Q.extname(o);let l=await De.readFile(o,"utf-8"),a=[];for(let s of dr)for(let f of l.matchAll(s))f[1].startsWith(".")&&a.push(nt(e,f[1],r,i));await Promise.all(a)}async function ot(e){let t=new Set;return await nt(t,e,Q.dirname(e),Q.extname(e)),Array.from(t)}import*as Xe from"path";function Ue(e){return{kind:"word",value:e}}function wr(e,t){return{kind:"function",value:e,nodes:t}}function kr(e){return{kind:"separator",value:e}}function $(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,a=t(n,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(i,1),l=0):s.length===1?(e[i]=s[0],l=1):(e.splice(i,1,...s),l=s.length):e[i]=s)}})??0;if(o){a===0?i--:i+=l-1;continue}if(a===2)return 2;if(a!==1&&n.kind==="function"&&$(n.nodes,t,n)===2)return 2}}function C(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+C(r.nodes)+")"}return t}var lt=92,yr=41,at=58,st=44,br=34,ut=61,ft=62,ct=60,pt=10,xr=40,Ar=39,dt=47,mt=32,gt=9;function b(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let t=[],r=[],s=[],i=null,o=null,n="",a="",l;for(let c=0;c<e.length;c++){let f=e.charCodeAt(c);if(f===A)n+=e.slice(c,c+2),c+=1;else if(f===S&&e.charCodeAt(c+1)===C){let u=c;for(let p=c+2;p<e.length;p++)if(l=e.charCodeAt(p),l===A)p+=1;else if(l===C&&e.charCodeAt(p+1)===S){c=p+1;break}let m=e.slice(u,c+1);m.charCodeAt(2)===Pe&&r.push(Z(m.slice(2,-2)))}else if(f===$e||f===_e){let u=c;for(let m=c+1;m<e.length;m++)if(l=e.charCodeAt(m),l===A)m+=1;else if(l===f){c=m;break}else{if(l===E&&e.charCodeAt(m+1)===g)throw new Error(`Unterminated string: ${e.slice(u,m+1)+String.fromCharCode(f)}`);if(l===g)throw new Error(`Unterminated string: ${e.slice(u,m)+String.fromCharCode(f)}`)}n+=e.slice(u,c+1)}else{if((f===w||f===g||f===_)&&(l=e.charCodeAt(c+1))&&(l===w||l===g||l===_))continue;if(f===g){if(n.length===0)continue;l=n.charCodeAt(n.length-1),l!==w&&l!==g&&l!==_&&(n+=" ")}else if(f===q&&e.charCodeAt(c+1)===q&&n.length===0){let u="",m=c,p=-1;for(let d=c+2;d<e.length;d++)if(l=e.charCodeAt(d),l===A)d+=1;else if(l===S&&e.charCodeAt(d+1)===C){for(let h=d+2;h<e.length;h++)if(l=e.charCodeAt(h),l===A)h+=1;else if(l===C&&e.charCodeAt(h+1)===S){d=h+1;break}}else if(p===-1&&l===ke)p=n.length+d-m;else if(l===E&&u.length===0){n+=e.slice(m,d),c=d;break}else if(l===I)u+=")";else if(l===Ne)u+="]";else if(l===J)u+="}";else if((l===U||e.length-1===d)&&u.length===0){c=d-1,n+=e.slice(m,d);break}else(l===V||l===be||l===U)&&u.length>0&&e[d]===u[u.length-1]&&(u=u.slice(0,-1));let b=j(n,p);if(!b)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(b):t.push(b),n=""}else if(f===E&&n.charCodeAt(0)===O)o=R(n),i?i.nodes.push(o):t.push(o),n="",o=null;else if(f===E&&a[a.length-1]!==")"){let u=j(n);if(!u)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(u):t.push(u),n=""}else if(f===J&&a[a.length-1]!==")")a+="}",o=Y(n.trim()),i&&i.nodes.push(o),s.push(i),i=o,n="",o=null;else if(f===U&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),n.length>0)if(n.charCodeAt(0)===O)o=R(n),i?i.nodes.push(o):t.push(o),n="",o=null;else{let m=n.indexOf(":");if(i){let p=j(n,m);if(!p)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(p)}}let u=s.pop()??null;u===null&&i&&t.push(i),i=u,n="",o=null}else if(f===I)a+=")",n+="(";else if(f===V){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(f===w||f===g||f===_))continue;n+=String.fromCharCode(f)}}}if(n.charCodeAt(0)===O&&t.push(R(n)),a.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return r.length>0?r.concat(t):t}function R(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===w||s===I){let i=e.slice(0,r).trim(),o=e.slice(r).trim();return F(i,o,t)}}return F(e.trim(),"",t)}function j(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return X(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var De=64;function Te(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function F(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function Y(e,t=[]){return e.charCodeAt(0)===De?R(e,t):Te(e,t)}function X(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Z(e){return{kind:"comment",value:e}}function $(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let o=e[i],n=r[r.length-1]??null;if(o.kind==="context"){if($(o.nodes,t,r,{...s,...o.context})===2)return 2;continue}r.push(o);let a=t(o,{parent:n,context:s,path:r,replaceWith(l){Array.isArray(l)?l.length===0?e.splice(i,1):l.length===1?e[i]=l[0]:e.splice(i,1,...l):e[i]=l,i--}})??0;if(r.pop(),a===2)return 2;if(a!==1&&(o.kind==="rule"||o.kind==="at-rule")){r.push(o);let l=$(o.nodes,t,r,s);if(r.pop(),l===2)return 2}}}function ee(e){function t(s,i=0){let o="",n=" ".repeat(i);if(s.kind==="declaration")o+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
|
|
4
|
-
|
|
5
|
-
`;for(let a of s.nodes)o+=t(a,i+1);o+=`${n}}
|
|
6
|
-
`}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`)){this.defaultFlush=t}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(i=>i.label).join("//"),s=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(s).value++,this.#t.get(s),this.#e.push({id:s,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let s=this.#e.pop(),i=r-s.value;this.#t.get(s.id).value+=i}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:a}]of this.#r.entries()){if(this.#t.has(n))continue;r.length===0&&(s=!0,r.push("Hits:"));let l=n.split("//").length;r.push(`${" ".repeat(l)}${n} ${k(ye(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
|
|
12
|
-
|
|
3
|
+
`);let t=[],r=[],i=null,n="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case lt:{n+=e[l]+e[l+1],l++;break}case at:case st:case ut:case ft:case ct:case pt:case dt:case mt:case gt:{if(n.length>0){let u=Ue(n);i?i.nodes.push(u):t.push(u),n=""}let s=l,f=l+1;for(;f<e.length&&(o=e.charCodeAt(f),!(o!==at&&o!==st&&o!==ut&&o!==ft&&o!==ct&&o!==pt&&o!==dt&&o!==mt&&o!==gt));f++);l=f-1;let c=kr(e.slice(s,f));i?i.nodes.push(c):t.push(c);break}case Ar:case br:{let s=l;for(let f=l+1;f<e.length;f++)if(o=e.charCodeAt(f),o===lt)f+=1;else if(o===a){l=f;break}n+=e.slice(s,l+1);break}case xr:{let s=wr(n,[]);n="",i?i.nodes.push(s):t.push(s),r.push(s),i=s;break}case yr:{let s=r.pop();if(n.length>0){let f=Ue(n);s?.nodes.push(f),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(a)}}return n.length>0&&t.push(Ue(n)),t}var h=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var Vn=new Uint8Array(256);var he=new Uint8Array(256);function A(e,t){let r=0,i=[],n=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){i.push(e.slice(n,a)),n=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let f=e.charCodeAt(a);if(f===92){a+=1;continue}if(f===s)break}break;case 40:he[r]=41,r++;break;case 91:he[r]=93,r++;break;case 123:he[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===he[r-1]&&r--;break}}return i.push(e.slice(n)),i}function Le(e){if(e===null)return"";let t=Sr(e.value),r=t?e.value.slice(4,-1):e.value,[i,n]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${Ke(r)}${n}`:e.kind==="named"?`/${e.value}`:""}var Cr=new h(e=>{let t=b(e),r=new Set;return $(t,(i,{parent:n})=>{let o=n===null?t:n.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let l=o.indexOf(i)??-1;if(l===-1)return;let a=o[l-1];if(a?.kind!=="separator"||a.value!==" ")return;let s=o[l+1];if(s?.kind!=="separator"||s.value!==" ")return;r.add(a),r.add(s)}else i.kind==="separator"&&i.value.trim()==="/"?i.value="/":i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(o[0]===i||o[o.length-1]===i)&&r.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),r.size>0&&$(t,(i,{replaceWith:n})=>{r.has(i)&&(r.delete(i),n([]))}),Ie(t),C(t)});function Ke(e){return Cr.get(e)}var Un=new h(e=>{let t=b(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?C(t[2].nodes):e});function Ie(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=X(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=X(t.value);for(let r=0;r<t.nodes.length;r++)Ie([t.nodes[r]]);break}t.value=X(t.value),Ie(t.nodes);break}case"separator":t.value=X(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=X(t.value));break}default:Vr(t)}}var $r=new h(e=>{let t=b(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Sr(e){return $r.get(e)}function Vr(e){throw new Error(`Unexpected value: ${e}`)}function X(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Nr=process.env.FEATURES_ENV!=="stable";var D=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,qn=new RegExp(`^${D.source}$`);var Hn=new RegExp(`^${D.source}%$`);var Gn=new RegExp(`^${D.source}s*/s*${D.source}$`);var Er=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Zn=new RegExp(`^${D.source}(${Er.join("|")})$`);var Tr=["deg","rad","grad","turn"],Yn=new RegExp(`^${D.source}(${Tr.join("|")})$`);var Jn=new RegExp(`^${D.source} +${D.source} +${D.source}$`);function S(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Z(e){return Rr(e,.25)}function Rr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ee(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var Or={"--alpha":_r,"--spacing":Dr,"--theme":Ur,theme:Ir};function _r(e,t,r,...i){let[n,o]=A(r,"/").map(l=>l.trim());if(!n||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);return ee(n,o)}function Dr(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function Ur(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let o=e.resolveThemeValue(r,n);if(!o){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return o;let l=i.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=b(o);return Kr(a,l),C(a)}return o}function Ir(e,t,r,...i){r=Lr(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var vo=new RegExp(Object.keys(Or).map(e=>`${e}\\(`).join("|"));function Lr(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===r||o==="\\")?(t+=o,i++):t+=n}return t}function Kr(e,t){$(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let i=r.nodes[r.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=t)}})}function Me(e,t){let r=e.length,i=t.length,n=r<i?r:i;for(let o=0;o<n;o++){let l=e.charCodeAt(o),a=t.charCodeAt(o);if(l>=48&&l<=57&&a>=48&&a<=57){let s=o,f=o+1,c=o,u=o+1;for(l=e.charCodeAt(f);l>=48&&l<=57;)l=e.charCodeAt(++f);for(a=t.charCodeAt(u);a>=48&&a<=57;)a=t.charCodeAt(++u);let p=e.slice(s,f),m=t.slice(c,u),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(l!==a)return l-a}return e.length-t.length}function kt(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;Y(e.charCodeAt(t));)t++;{for(r=t;t<i;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95))break}if(r===t)return null}let n=e.slice(r,t);for(;Y(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(t);if(l===61)o="=",t++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;Y(e.charCodeAt(t));)t++;if(t===i)return null;let a="",s=null;if(l=e.charCodeAt(t),l===39||l===34){s=e[t],t++,r=t;for(let c=t;c<i;c++){let u=e.charCodeAt(c);u===l?t=c+1:u===92&&c++}a=e.slice(r,t-1)}else{for(r=t;t<i&&!Y(e.charCodeAt(t));)t++;a=e.slice(r,t)}for(;Y(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:o,quote:s,value:a,sensitivity:null};let f=null;switch(e.charCodeAt(t)){case 105:case 73:{f="i",t++;break}case 115:case 83:{f="s",t++;break}default:return null}for(;Y(e.charCodeAt(t));)t++;return t!==i?null:{attribute:n,operator:o,quote:s,value:a,sensitivity:f}}function Y(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var zr=/^[a-zA-Z0-9-_%/\.]+$/;function Fe(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!zr.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function Fr(e){return{kind:"combinator",value:e}}function jr(e,t){return{kind:"function",value:e,nodes:t}}function F(e){return{kind:"selector",value:e}}function Wr(e){return{kind:"separator",value:e}}function Br(e){return{kind:"value",value:e}}function we(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,a=t(n,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(i,1),l=0):s.length===1?(e[i]=s[0],l=1):(e.splice(i,1,...s),l=s.length):(e[i]=s,l=1))}})??0;if(o){a===0?i--:i+=l-1;continue}if(a===2)return 2;if(a!==1&&n.kind==="function"&&we(n.nodes,t,n)===2)return 2}}function j(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+j(r.nodes)+")"}return t}var bt=92,qr=93,xt=41,Hr=58,At=44,Gr=34,Zr=46,Ct=62,$t=10,Yr=35,St=91,Vt=40,Nt=43,Jr=39,Et=32,Tt=9,Rt=126,Qr=38,Xr=42;function re(e){e=e.replaceAll(`\r
|
|
4
|
+
`,`
|
|
5
|
+
`);let t=[],r=[],i=null,n="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case At:case Ct:case $t:case Et:case Nt:case Tt:case Rt:{if(n.length>0){let p=F(n);i?i.nodes.push(p):t.push(p),n=""}let s=l,f=l+1;for(;f<e.length&&(o=e.charCodeAt(f),!(o!==At&&o!==Ct&&o!==$t&&o!==Et&&o!==Nt&&o!==Tt&&o!==Rt));f++);l=f-1;let c=e.slice(s,f),u=c.trim()===","?Wr(c):Fr(c);i?i.nodes.push(u):t.push(u);break}case Vt:{let s=jr(n,[]);if(n="",s.value!==":not"&&s.value!==":where"&&s.value!==":has"&&s.value!==":is"){let f=l+1,c=0;for(let p=l+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Vt){c++;continue}if(o===xt){if(c===0){l=p;break}c--}}let u=l;s.nodes.push(Br(e.slice(f,u))),n="",l=u,i?i.nodes.push(s):t.push(s);break}i?i.nodes.push(s):t.push(s),r.push(s),i=s;break}case xt:{let s=r.pop();if(n.length>0){let f=F(n);s.nodes.push(f),n=""}r.length>0?i=r[r.length-1]:i=null;break}case Zr:case Hr:case Yr:{if(n.length>0){let s=F(n);i?i.nodes.push(s):t.push(s)}n=e[l];break}case St:{if(n.length>0){let c=F(n);i?i.nodes.push(c):t.push(c)}n="";let s=l,f=0;for(let c=l+1;c<e.length;c++){if(o=e.charCodeAt(c),o===St){f++;continue}if(o===qr){if(f===0){l=c;break}f--}}n+=e.slice(s,l+1);break}case Jr:case Gr:{let s=l;for(let f=l+1;f<e.length;f++)if(o=e.charCodeAt(f),o===bt)f+=1;else if(o===a){l=f;break}n+=e.slice(s,l+1);break}case Qr:case Xr:{if(n.length>0){let s=F(n);i?i.nodes.push(s):t.push(s),n=""}i?i.nodes.push(F(e[l])):t.push(F(e[l]));break}case bt:{n+=e[l]+e[l+1],l+=1;break}default:n+=e[l]}}return n.length>0&&t.push(F(n)),t}var ei=/^(?<value>-?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)$/i,ie=new h(e=>{let t=ei.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let i=t.groups?.unit;if(i===void 0)return null;let n=Number(r);return Number.isNaN(n)?null:[n,i]});var W=new h(e=>new h(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[U(".x",[E("@apply",t)])];return ti(e,()=>{for(let n of e.parseCandidate(t))e.compileAstNodes(n,1);ne(r,e)}),y(r,(n,{replaceWith:o})=>{n.kind==="declaration"?(n.value===void 0||n.property==="--tw-sort")&&o([]):n.kind==="context"||n.kind==="at-root"?o(n.nodes):n.kind==="comment"?o([]):n.kind==="at-rule"&&n.name==="@property"&&o([])}),y(r,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let o=!1,l=b(n.value),a=new Set;$(l,(s,{replaceWith:f})=>{if(s.kind!=="function"||s.value!=="var"||s.nodes.length!==1&&s.nodes.length<3)return;let c=s.nodes[0].value;e.theme.prefix&&c.startsWith(`--${e.theme.prefix}-`)&&(c=c.slice(`--${e.theme.prefix}-`.length));let u=e.resolveThemeValue(c);if(!a.has(c)&&(a.add(c),u!==void 0&&(s.nodes.length===1&&(o=!0,s.nodes.push(...b(`,${u}`))),s.nodes.length>=3))){let p=C(s.nodes),m=`${s.nodes[0].value},${u}`;p===m&&(o=!0,f(b(u)))}}),o&&(n.value=C(l))}if(n.value.includes("calc")){let o=!1,l=b(n.value);$(l,(a,{replaceWith:s})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let f=ie.get(a.nodes[0].value);if(f===null)return;let[c,u]=f,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,s(b(`${c*p}${u}`)))}),o&&(n.value=C(l))}n.value=Ke(n.value)}}),R(r)}catch{return Symbol()}})),We=new h(e=>{let t=W.get(e),r=new h(()=>[]);for(let[i,n]of e.getClassList()){let o=t.get(i);if(typeof o=="string"){r.get(o).push(i);for(let l of n.modifiers){if(Z(l))continue;let a=`${i}/${l}`,s=t.get(a);typeof s=="string"&&r.get(s).push(a)}}}return r}),ke=new h(e=>new h(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[U(".x",[E("@apply",`${t}:flex`)])];return ne(r,e),y(r,n=>{if(n.kind==="at-rule"&&n.params.includes(" "))n.params=n.params.replaceAll(" ","");else if(n.kind==="rule"){let o=re(n.selector),l=!1;we(o,(a,{replaceWith:s})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),l=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(l=!0,s(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(l=!0,s(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(l=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),l&&(n.selector=j(o))}}),R(r)}catch{return Symbol()}})),Pt=new h(e=>{let t=ke.get(e),r=new h(()=>[]);for(let[i,n]of e.variants.entries())if(n.kind==="static"){let o=t.get(i);if(typeof o!="string")continue;r.get(o).push(i)}return r});function ti(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=n=>{let o=r.call(e.theme.values,n);return o===void 0||o.options&1&&(i.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let n of i)n.options|=1}}function K(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function oe(e){let t=[];for(let r of A(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),o=r.indexOf("]",n);if(n===-1||o===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,o)),i=o+1}i<=r.length-1&&t.push(r.slice(i))}return t}var Zo=new h(e=>{let t=e.theme.prefix?`${e.theme.prefix}:`:"",r=ni.get(e),i=li.get(e);return new h((n,o)=>{for(let l of e.parseCandidate(n)){let a=l.variants.slice().reverse().flatMap(c=>r.get(c)),s=l.important;if(s||a.length>0){let u=o.get(e.printCandidate({...l,variants:[],important:!1}));return e.theme.prefix!==null&&a.length>0&&(u=u.slice(t.length)),a.length>0&&(u=`${a.map(p=>e.printVariant(p)).join(":")}:${u}`),s&&(u+="!"),e.theme.prefix!==null&&a.length>0&&(u=`${t}${u}`),u}let f=i.get(n);if(f!==n)return f}return n})}),ii=[fi,xi,Ai,ki],ni=new h(e=>new h(t=>{let r=[t];for(let i of ii)for(let n of r.splice(0)){let o=i(e,structuredClone(n));if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r})),oi=[si,ui,mi,hi,wi,yi,bi,Ci],li=new h(e=>new h(t=>{for(let r of e.parseCandidate(t)){let i=structuredClone(r);for(let o of oi)i=o(e,i);let n=e.printCandidate(i);if(t!==n)return n}return t})),ai=["t","tr","r","br","b","bl","l","tl"];function si(e,t){if(t.kind==="static"&&t.root.startsWith("bg-gradient-to-")){let r=t.root.slice(15);return ai.includes(r)&&(t.root=`bg-linear-to-${r}`),t}return t}function ui(e,t){let r=_t.get(e);if(t.kind==="arbitrary"){let[i,n]=r(t.value,t.modifier===null?1:0);i!==t.value&&(t.value=i,n!==null&&(t.modifier=n))}else if(t.kind==="functional"&&t.value?.kind==="arbitrary"){let[i,n]=r(t.value.value,t.modifier===null?1:0);i!==t.value.value&&(t.value.value=i,n!==null&&(t.modifier=n))}return t}function fi(e,t){let r=_t.get(e),i=xe(t);for(let[n]of i)if(n.kind==="arbitrary"){let[o]=r(n.selector,2);o!==n.selector&&(n.selector=o)}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"){let[o]=r(n.value.value,2);o!==n.value.value&&(n.value.value=o)}return t}var _t=new h(e=>{return t(e);function t(r){function i(a,s=0){let f=b(a);if(s&2)return[ye(f,l),null];let c=0,u=0;if($(f,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,$(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="separator"&&g.value.trim()==="/"?(u+=1,2):1))}),c===0)return[a,null];if(u===0)return[ye(f,o),null];if(u>1)return[ye(f,l),null];let p=null;return[ye(f,(d,g)=>{let v=A(d,"/").map(k=>k.trim());if(v.length>2)return null;if(f.length===1&&v.length===2&&s&1){let[k,w]=v;if(/^\d+%$/.test(w))p={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let N=Number(w)*100;p={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else p={kind:"arbitrary",value:w};d=k}return o(d,g)||l(d,g)}),p]}function n(a,s=!0){let f=`--${Fe(oe(a))}`;return r.theme.get([f])?s&&r.theme.prefix?`--${r.theme.prefix}-${f.slice(2)}`:f:null}function o(a,s){let f=n(a);if(f)return s?`var(${f}, ${s})`:`var(${f})`;let c=oe(a);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let u=c[1];return Z(u)?`--spacing(${u})`:null}return null}function l(a,s){let f=A(a,"/").map(p=>p.trim());a=f.shift();let c=n(a,!1);if(!c)return null;let u=f.length>0?`/${f.join("/")}`:"";return s?`--theme(${c}${u}, ${s})`:`--theme(${c}${u})`}return i}});function ye(e,t){return $(e,(r,{parent:i,replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let l=o.value,a=1;for(let c=a;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)l+=C([r.nodes[c]]),a=c+1;l=ci(l);let s=r.nodes.slice(a+1),f=s.length>0?t(l,C(s)):t(l);if(f===null)return;if(i){let c=i.nodes.indexOf(r)-1;for(;c!==-1;){let u=i.nodes[c];if(u.kind==="separator"&&u.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(u.value.trim())&&(f=`(${f})`);break}}n(b(f))}}),C(e)}function ci(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===r||o==="\\")?(t+=o,i++):t+=n}return t}function*xe(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function M(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function pi(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var di=new h(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=ie.get(t);if(!r)return null;let[i,n]=r;return new h(o=>{let l=ie.get(o);if(!l)return null;let[a,s]=l;return s!==n?null:a/i})});function mi(e,t){if(t.kind!=="arbitrary"&&!(t.kind==="functional"&&t.value?.kind==="arbitrary"))return t;let r=We.get(e),i=W.get(e),n=e.printCandidate(t),o=i.get(n);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(i.get(s)===o&&gi(e,t,a))return a}return t;function*l(a,s){let f=r.get(a);if(!(f.length>1)){if(f.length===0&&s.modifier){let c={...s,modifier:null},u=i.get(e.printCandidate(c));if(typeof u=="string")for(let p of l(u,c))yield Object.assign({},p,{modifier:s.modifier})}if(f.length===1)for(let c of M(e,f[0]))yield c;else if(f.length===0){let c=s.kind==="arbitrary"?s.value:s.value?.value??null;if(c===null)return;let u=di.get(e)?.get(c)??null,p="";u!==null&&u<0&&(p="-",u=Math.abs(u));for(let m of Array.from(e.utilities.keys("functional")).sort((d,g)=>+(d[0]==="-")-+(g[0]==="-"))){p&&(m=`${p}${m}`);for(let d of M(e,`${m}-${c}`))yield d;if(s.modifier)for(let d of M(e,`${m}-${c}${s.modifier}`))yield d;if(u!==null){for(let d of M(e,`${m}-${u}`))yield d;if(s.modifier)for(let d of M(e,`${m}-${u}${Le(s.modifier)}`))yield d}for(let d of M(e,`${m}-[${c}]`))yield d;if(s.modifier)for(let d of M(e,`${m}-[${c}]${Le(s.modifier)}`))yield d}}}}}function gi(e,t,r){let i=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?i=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(i=t.value),i===null)return!0;let n=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
6
|
+
`),o=!0;return $(b(i),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(n)||n.includes(`${a}:`))return o=!1,2}}),o}function hi(e,t){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let r=We.get(e),i=W.get(e),n=e.printCandidate(t),o=i.get(n);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(i.get(s)===o)return a}return t;function*l(a,s){let f=r.get(a);if(!(f.length>1)){if(f.length===0&&s.modifier){let c={...s,modifier:null},u=i.get(e.printCandidate(c));if(typeof u=="string")for(let p of l(u,c))yield Object.assign({},p,{modifier:s.modifier})}if(f.length===1)for(let c of M(e,f[0]))yield c}}}var vi=new Map([["order-none","order-0"]]);function wi(e,t){let r=W.get(e),i=pi(e,t),n=vi.get(i)??null;if(n===null)return t;let o=r.get(i);if(typeof o!="string")return t;let l=r.get(n);if(typeof l!="string"||o!==l)return t;let[a]=M(e,n);return a}function ki(e,t){let r=ke.get(e),i=Pt.get(e),n=xe(t);for(let[o]of n){if(o.kind==="compound")continue;let l=e.printVariant(o),a=r.get(l);if(typeof a!="string")continue;let s=i.get(a);if(s.length!==1)continue;let f=s[0],c=e.parseVariant(f);c!==null&&K(o,c)}return t}function yi(e,t){let r=W.get(e);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let i=e.printCandidate({...t,value:{...t.value,dataType:null}});r.get(e.printCandidate(t))===r.get(i)&&(t.value.dataType=null)}return t}function bi(e,t){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let r=W.get(e),i=r.get(e.printCandidate(t));if(i===null)return t;for(let n of Dt(t))if(r.get(e.printCandidate({...t,value:n}))===i)return t.value=n,t;return t}function xi(e,t){let r=xe(t);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[n,o]=A(i.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return t}function*Dt(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&Z(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");S(o)&&S(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let i=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(o[0].trim());let n=Array.from(i).sort((o,l)=>o.length-l.length);for(let o of n)yield*Dt(e,o,r)}function Ot(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function be(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function Ai(e,t){let r=[t],i=ke.get(e),n=xe(t);for(let[o,l]of n)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=re(o.selector.trim());if(!Ot(a))continue;if(l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&a[2].value==="*"){K(o,e.parseVariant("*"));continue}if(l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="*"){K(o,e.parseVariant("**"));continue}if(l===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),K(o,e.parseVariant(`in-[${j(a)}]`));continue}if(l===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let u=i.get(e.printVariant(o)),p=b(j(a)),m=!1;if($(p,(d,{replaceWith:g})=>{d.kind==="word"&&d.value==="not"&&(m=!0,g([]))}),p=b(C(p)),$(p,d=>{d.kind==="separator"&&d.value!==" "&&d.value.trim()===""&&(d.value=" ")}),m){let d=e.parseVariant(`not-[${C(p)}]`);if(d===null)continue;let g=i.get(e.printVariant(d));if(u===g){K(o,d);continue}}}let s=null;l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&be(a[2])&&(a=[a[2]],s=e.parseVariant("*")),l===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&be(a[2])&&(a=[a[2]],s=e.parseVariant("**"));let f=a.filter(u=>!(u.kind==="selector"&&u.value.trim()==="&"));if(f.length!==1)continue;let c=f[0];if(c.kind==="function"&&c.value===":is"){if(!Ot(c.nodes)||c.nodes.length!==1||!be(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let u=c,p=!1;if(u.kind==="function"&&u.value===":not"){if(p=!0,u.nodes.length!==1||u.nodes[0].kind!=="selector"&&u.nodes[0].kind!=="function"||u.nodes[0].value[0]!==":")continue;u=u.nodes[0]}let m=(g=>{if(g===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="odd")return p?(p=!1,"even"):"odd";if(g===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="even")return p?(p=!1,"odd"):"even";for(let[v,k]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===v&&u.kind==="function"&&u.nodes.length===1)return u.nodes.length===1&&u.nodes[0].kind==="value"&&S(u.nodes[0].value)?`${k}-${u.nodes[0].value}`:`${k}-[${j(u.nodes)}]`;if(p){let v=i.get(e.printVariant(o)),k=i.get(`not-[${g}]`);if(v===k)return`[&${g}]`}return null})(u.value);if(m===null)continue;p&&(m=`not-${m}`);let d=e.parseVariant(m);if(d===null)continue;K(o,d)}else if(be(c)){let u=kt(c.value);if(u===null)continue;if(u.attribute.startsWith("data-")){let p=u.attribute.slice(5);K(o,{kind:"functional",root:"data",modifier:null,value:u.value===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}else if(u.attribute.startsWith("aria-")){let p=u.attribute.slice(5);K(o,{kind:"functional",root:"aria",modifier:null,value:u.value===null?{kind:"arbitrary",value:p}:u.operator==="="&&u.value==="true"&&u.sensitivity===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${u.attribute}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}}if(s)return[s,o]}return r}function Ci(e,t){if(t.kind!=="functional"&&t.kind!=="arbitrary"||t.modifier===null)return t;let r=W.get(e),i=r.get(e.printCandidate(t)),n=t.modifier;if(i===r.get(e.printCandidate({...t,modifier:null})))return t.modifier=null,t;{let o={kind:"named",value:n.value.endsWith("%")?n.value.slice(0,-1):n.value,fraction:null};if(i===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}{let o={kind:"named",value:`${parseFloat(n.value)*100}`,fraction:null};if(i===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}return t}function le(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let n=new Map,o=[],l=new Map;for(let f of e){if(t.invalidCandidates.has(f)){r?.(f);continue}let c=t.parseCandidate(f);if(c.length===0){r?.(f);continue}l.set(f,c)}let a=0;(i??!0)&&(a|=1);let s=t.getVariantOrder();for(let[f,c]of l){let u=!1;for(let p of c){let m=t.compileAstNodes(p,a);if(m.length!==0){u=!0;for(let{node:d,propertySort:g}of m){let v=0n;for(let k of p.variants)v|=1n<<BigInt(s.get(k));n.set(d,{properties:g,variants:v,candidate:f}),o.push(d)}}}u||r?.(f)}return o.sort((f,c)=>{let u=n.get(f),p=n.get(c);if(u.variants-p.variants!==0n)return Number(u.variants-p.variants);let m=0;for(;m<u.properties.order.length&&m<p.properties.order.length&&u.properties.order[m]===p.properties.order[m];)m+=1;return(u.properties.order[m]??1/0)-(p.properties.order[m]??1/0)||p.properties.count-u.properties.count||Me(u.candidate,p.candidate)}),{astNodes:o,nodeSorting:n}}function ne(e,t){let r=0,i=I("&",e),n=new Set,o=new h(()=>new Set),l=new h(()=>new Set);y([i],(u,{parent:p,path:m})=>{if(u.kind==="at-rule"){if(u.name==="@keyframes")return y(u.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(u.name==="@utility"){let d=u.params.replace(/-\*$/,"");l.get(d).add(u),y(u.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){n.add(u);for(let v of It(g,t))o.get(u).add(v)}});return}if(u.name==="@apply"){if(p===null)return;r|=1,n.add(p);for(let d of It(u,t))for(let g of m)g!==u&&n.has(g)&&o.get(g).add(d)}}});let a=new Set,s=[],f=new Set;function c(u,p=[]){if(!a.has(u)){if(f.has(u)){let m=p[(p.indexOf(u)+1)%p.length];throw u.kind==="at-rule"&&u.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&y(u.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let v of g)for(let k of t.parseCandidate(v))switch(k.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===k.root)throw new Error(`You cannot \`@apply\` the \`${v}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
7
|
+
|
|
8
|
+
${R([u])}
|
|
9
|
+
Relies on:
|
|
10
|
+
|
|
11
|
+
${R([m])}`)}f.add(u);for(let m of o.get(u))for(let d of l.get(m))p.push(u),c(d,p),p.pop();a.add(u),f.delete(u),s.push(u)}}for(let u of n)c(u);for(let u of s)"nodes"in u&&y(u.nodes,(p,{replaceWith:m})=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let d=p.params.split(/(\s+)/g),g={},v=0;for(let[k,w]of d.entries())k%2===0&&(g[w]=v),v+=w.length;{let k=Object.keys(g),w=le(k,t,{respectImportant:!1,onInvalidCandidate:x=>{if(t.theme.prefix&&!x.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${x}\`. Did you mean \`${t.theme.prefix}:${x}\`?`);if(t.invalidCandidates.has(x))throw new Error(`Cannot apply utility class \`${x}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let T=A(x,":");if(T.length>1){let ge=T.pop();if(t.candidatesToCss([ge])[0]){let H=t.candidatesToCss(T.map(G=>`${G}:[--tw-variant-check:1]`)),z=T.filter((G,Pe)=>H[Pe]===null);if(z.length>0){if(z.length===1)throw new Error(`Cannot apply utility class \`${x}\` because the ${z.map(G=>`\`${G}\``)} variant does not exist.`);{let G=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${x}\` because the ${G.format(z.map(Pe=>`\`${Pe}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${x}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${x}\``)}}),N=p.src,ur=w.astNodes.map(x=>{let T=w.nodeSorting.get(x)?.candidate,ge=T?g[T]:void 0;if(x=structuredClone(x),!N||!T||ge===void 0)return y([x],z=>{z.src=N}),x;let H=[N[0],N[1],N[2]];return H[1]+=7+ge,H[2]=H[1]+T.length,y([x],z=>{z.src=H}),x}),Re=[];for(let x of ur)if(x.kind==="rule")for(let T of x.nodes)Re.push(T);else Re.push(x);m(Re)}});return r}function*It(e,t){for(let r of e.params.split(/\s+/g))for(let i of t.parseCandidate(r))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var se=92,Ae=47,Ce=42,Lt=34,Kt=39,Ti=58,Se=59,P=10,Ve=13,ue=32,$e=9,Mt=123,Be=125,Ge=40,zt=41,Ri=91,Pi=93,Ft=45,qe=64,Oi=33;function ce(e,t){let r=t?.from?{file:t.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],n=[],o=[],l=null,a=null,s="",f="",c=0,u;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(!(m===Ve&&(u=e.charCodeAt(p+1),u===P)))if(m===se)s===""&&(c=p),s+=e.slice(p,p+2),p+=1;else if(m===Ae&&e.charCodeAt(p+1)===Ce){let d=p;for(let v=p+2;v<e.length;v++)if(u=e.charCodeAt(v),u===se)v+=1;else if(u===Ce&&e.charCodeAt(v+1)===Ae){p=v+1;break}let g=e.slice(d,p+1);if(g.charCodeAt(2)===Oi){let v=Ye(g.slice(2,-2));n.push(v),r&&(v.src=[r,d,p+1],v.dst=[r,d,p+1])}}else if(m===Kt||m===Lt){let d=jt(e,p,m);s+=e.slice(p,d+1),p=d}else{if((m===ue||m===P||m===$e)&&(u=e.charCodeAt(p+1))&&(u===ue||u===P||u===$e||u===Ve&&(u=e.charCodeAt(p+2))&&u==P))continue;if(m===P){if(s.length===0)continue;u=s.charCodeAt(s.length-1),u!==ue&&u!==P&&u!==$e&&(s+=" ")}else if(m===Ft&&e.charCodeAt(p+1)===Ft&&s.length===0){let d="",g=p,v=-1;for(let w=p+2;w<e.length;w++)if(u=e.charCodeAt(w),u===se)w+=1;else if(u===Kt||u===Lt)w=jt(e,w,u);else if(u===Ae&&e.charCodeAt(w+1)===Ce){for(let N=w+2;N<e.length;N++)if(u=e.charCodeAt(N),u===se)N+=1;else if(u===Ce&&e.charCodeAt(N+1)===Ae){w=N+1;break}}else if(v===-1&&u===Ti)v=s.length+w-g;else if(u===Se&&d.length===0){s+=e.slice(g,w),p=w;break}else if(u===Ge)d+=")";else if(u===Ri)d+="]";else if(u===Mt)d+="}";else if((u===Be||e.length-1===w)&&d.length===0){p=w-1,s+=e.slice(g,w);break}else(u===zt||u===Pi||u===Be)&&d.length>0&&e[w]===d[d.length-1]&&(d=d.slice(0,-1));let k=He(s,v);if(!k)throw new Error("Invalid custom property, expected a value");r&&(k.src=[r,g,p],k.dst=[r,g,p]),l?l.nodes.push(k):i.push(k),s=""}else if(m===Se&&s.charCodeAt(0)===qe)a=fe(s),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l?l.nodes.push(a):i.push(a),s="",a=null;else if(m===Se&&f[f.length-1]!==")"){let d=He(s);if(!d){if(s.length===0)continue;throw new Error(`Invalid declaration: \`${s.trim()}\``)}r&&(d.src=[r,c,p],d.dst=[r,c,p]),l?l.nodes.push(d):i.push(d),s=""}else if(m===Mt&&f[f.length-1]!==")")f+="}",a=I(s.trim()),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l&&l.nodes.push(a),o.push(l),l=a,s="",a=null;else if(m===Be&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),s.length>0)if(s.charCodeAt(0)===qe)a=fe(s),r&&(a.src=[r,c,p],a.dst=[r,c,p]),l?l.nodes.push(a):i.push(a),s="",a=null;else{let g=s.indexOf(":");if(l){let v=He(s,g);if(!v)throw new Error(`Invalid declaration: \`${s.trim()}\``);r&&(v.src=[r,c,p],v.dst=[r,c,p]),l.nodes.push(v)}}let d=o.pop()??null;d===null&&l&&i.push(l),l=d,s="",a=null}else if(m===Ge)f+=")",s+="(";else if(m===zt){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),s+=")"}else{if(s.length===0&&(m===ue||m===P||m===$e))continue;s===""&&(c=p),s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===qe){let p=fe(s);r&&(p.src=[r,c,e.length],p.dst=[r,c,e.length]),i.push(p)}if(f.length>0&&l){if(l.kind==="rule")throw new Error(`Missing closing } at ${l.selector}`);if(l.kind==="at-rule")throw new Error(`Missing closing } at ${l.name} ${l.params}`)}return n.length>0?n.concat(i):i}function fe(e,t=[]){let r=e,i="";for(let n=5;n<e.length;n++){let o=e.charCodeAt(n);if(o===ue||o===Ge){r=e.slice(0,n),i=e.slice(n);break}}return E(r.trim(),i.trim(),t)}function He(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return L(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}function jt(e,t,r){let i;for(let n=t+1;n<e.length;n++)if(i=e.charCodeAt(n),i===se)n+=1;else{if(i===r)return n;if(i===Se&&(e.charCodeAt(n+1)===P||e.charCodeAt(n+1)===Ve&&e.charCodeAt(n+2)===P))throw new Error(`Unterminated string: ${e.slice(t,n+1)+String.fromCharCode(r)}`);if(i===P||i===Ve&&e.charCodeAt(n+1)===P)throw new Error(`Unterminated string: ${e.slice(t,n)+String.fromCharCode(r)}`)}return t}var Je={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function q(e){return{__BARE_VALUE__:e}}var O=q(e=>{if(S(e.value))return e.value}),V=q(e=>{if(S(e.value))return`${e.value}%`}),B=q(e=>{if(S(e.value))return`${e.value}px`}),Bt=q(e=>{if(S(e.value))return`${e.value}ms`}),Ne=q(e=>{if(S(e.value))return`${e.value}deg`}),Li=q(e=>{if(e.fraction===null)return;let[t,r]=A(e.fraction,"/");if(!(!S(t)||!S(r)))return e.fraction}),qt=q(e=>{if(S(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ki={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Li},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ne}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...B},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...Je}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...O},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...B}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...O},flexShrink:{0:"0",DEFAULT:"1",...O},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...O},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...O},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...O},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...O},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...qt},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...qt},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Ne},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...O},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...O},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ne},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ne},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...O},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...B},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Bt},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Bt},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...O}};var Mi=64;function U(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function E(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function I(e,t=[]){return e.charCodeAt(0)===Mi?fe(e,t):U(e,t)}function L(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Ye(e){return{kind:"comment",value:e}}function y(e,t,r=[],i={}){for(let n=0;n<e.length;n++){let o=e[n],l=r[r.length-1]??null;if(o.kind==="context"){if(y(o.nodes,t,r,{...i,...o.context})===2)return 2;continue}r.push(o);let a=!1,s=0,f=t(o,{parent:l,context:i,path:r,replaceWith(c){a||(a=!0,Array.isArray(c)?c.length===0?(e.splice(n,1),s=0):c.length===1?(e[n]=c[0],s=1):(e.splice(n,1,...c),s=c.length):(e[n]=c,s=1))}})??0;if(r.pop(),a){f===0?n--:n+=s-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in o){r.push(o);let c=y(o.nodes,t,r,i);if(r.pop(),c===2)return 2}}}function R(e,t){let r=0,i={file:null,code:""};function n(l,a=0){let s="",f=" ".repeat(a);if(l.kind==="declaration"){if(s+=`${f}${l.property}: ${l.value}${l.important?" !important":""};
|
|
12
|
+
`,t){r+=f.length;let c=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let u=r;r+=2,l.dst=[i,c,u]}}else if(l.kind==="rule"){if(s+=`${f}${l.selector} {
|
|
13
|
+
`,t){r+=f.length;let c=r;r+=l.selector.length,r+=1;let u=r;l.dst=[i,c,u],r+=2}for(let c of l.nodes)s+=n(c,a+1);s+=`${f}}
|
|
14
|
+
`,t&&(r+=f.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let c=`${f}${l.name} ${l.params};
|
|
15
|
+
`;if(t){r+=f.length;let u=r;r+=l.name.length,r+=1,r+=l.params.length;let p=r;r+=2,l.dst=[i,u,p]}return c}if(s+=`${f}${l.name}${l.params?` ${l.params} `:" "}{
|
|
16
|
+
`,t){r+=f.length;let c=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let u=r;l.dst=[i,c,u],r+=2}for(let c of l.nodes)s+=n(c,a+1);s+=`${f}}
|
|
17
|
+
`,t&&(r+=f.length,r+=2)}else if(l.kind==="comment"){if(s+=`${f}/*${l.value}*/
|
|
18
|
+
`,t){r+=f.length;let c=r;r+=2+l.value.length+2;let u=r;l.dst=[i,c,u],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return s}let o="";for(let l of e)o+=n(l,0);return i.code=o,o}function zi(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),i+o.join("/")}function Qe(e){let t=zi(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var et=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,Ht=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Fi=/(?:gradient|element|cross-fade|image)\(/,ji=/^\s*data:/i,Wi=/^([a-z]+:)?\/\//,Bi=/^[A-Z_][.\w-]*\(/i,qi=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Hi=/(?<!\\)"/g,Gi=/(?: |\\t|\\n|\\f|\\r)+/g,Zi=e=>ji.test(e),Yi=e=>Wi.test(e);async function Gt({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ce(e),n=[];function o(l){if(l[0]==="/")return l;let a=Xe.posix.join(Qe(t),l),s=Xe.posix.relative(Qe(r),a);return s.startsWith(".")||(s="./"+s),s}return y(i,l=>{if(l.kind!=="declaration"||!l.value)return;let a=et.test(l.value),s=Ht.test(l.value);if(a||s){let f=s?Ji:Zt;n.push(f(l.value,o).then(c=>{l.value=c}))}}),n.length&&await Promise.all(n),R(i)}function Zt(e,t){return Jt(e,et,async r=>{let[i,n]=r;return await Yt(n.trim(),i,t)})}async function Ji(e,t){return await Jt(e,Ht,async r=>{let[,i]=r;return await Xi(i,async({url:o})=>et.test(o)?await Zt(o,t):Fi.test(o)?o:await Yt(o,o,t))})}async function Yt(e,t,r,i="url"){let n="",o=e[0];if((o==='"'||o==="'")&&(n=o,e=e.slice(1,-1)),Qi(e))return t;let l=await r(e);return n===""&&l!==encodeURI(l)&&(n='"'),n==="'"&&l.includes("'")&&(n='"'),n==='"'&&l.includes('"')&&(l=l.replace(Hi,'\\"')),`${i}(${n}${l}${n})`}function Qi(e,t){return Yi(e)||Zi(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||Bi.test(e)}function Xi(e,t){return Promise.all(en(e).map(async({url:r,descriptor:i})=>({url:await t({url:r,descriptor:i}),descriptor:i}))).then(tn)}function en(e){let t=e.trim().replace(Gi," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(qi);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function tn(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function Jt(e,t,r){let i,n=e,o="";for(;i=t.exec(n);)o+=n.slice(0,i.index),o+=await r(i),n=n.slice(i.index+i[0].length);return o+=n,o}function ir({base:e,from:t,polyfills:r,onDependency:i,shouldRewriteUrls:n,customCssResolver:o,customJsResolver:l}){return{base:e,polyfills:r,from:t,async loadModule(a,s){return or(a,s,i,l)},async loadStylesheet(a,s){let f=await lr(a,s,i,o);return n&&(f.content=await Gt({css:f.content,root:e,base:f.base})),f}}}async function nr(e,t){if(e.root&&e.root!=="none"){let r=/[*{]/,i=[];for(let o of e.root.pattern.split("/")){if(r.test(o))break;i.push(o)}if(!await rr.stat(pe.resolve(t,i.join("/"))).then(o=>o.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Pu(e,t){let r=await ln(e,ir(t));return await nr(r,t.base),r}async function Ou(e,t){let r=await on(e,ir(t));return await nr(r,t.base),r}async function _u(e,{base:t}){return nn(e,{base:t,async loadModule(r,i){return or(r,i,()=>{})},async loadStylesheet(r,i){return lr(r,i,()=>{})}})}async function or(e,t,r,i){if(e[0]!=="."){let a=await tr(e,t,i);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let s=await er(Qt(a).href);return{path:a,base:pe.dirname(a),module:s.default??s}}let n=await tr(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([er(Qt(n).href+"?id="+Date.now()),ot(n)]);for(let a of l)r(a);return{path:n,base:pe.dirname(n),module:o.default??o}}async function lr(e,t,r,i){let n=await sn(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let l=await globalThis.__tw_readFile(n,"utf-8");if(l)return{path:n,base:pe.dirname(n),content:l}}let o=await rr.readFile(n,"utf-8");return{path:n,base:pe.dirname(n),content:o}}var Xt=null;async function er(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return Xt??=rn(import.meta.url,{moduleCache:!1,fsCache:!1}),await Xt.import(e)}}var it=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],an=J.ResolverFactory.createResolver({fileSystem:new J.CachedInputFileSystem(rt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:it});async function sn(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return tt(an,e,t)}var un=J.ResolverFactory.createResolver({fileSystem:new J.CachedInputFileSystem(rt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:it}),fn=J.ResolverFactory.createResolver({fileSystem:new J.CachedInputFileSystem(rt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:it});async function tr(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return tt(un,e,t).catch(()=>tt(fn,e,t))}function tt(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(o,l)=>{if(o)return n(o);i(l)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var ar=class{constructor(t=r=>void process.stderr.write(`${r}
|
|
19
|
+
`)){this.defaultFlush=t}#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(n=>n.label).join("//"),i=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=r-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],i=!1;for(let l=this.#e.length-1;l>=0;l--)this.end(this.#e[l].label);for(let[l,{value:a}]of this.#r.entries()){if(this.#t.has(l))continue;r.length===0&&(i=!0,r.push("Hits:"));let s=l.split("//").length;r.push(`${" ".repeat(s)}${l} ${Ee(sr(`\xD7 ${a}`))}`)}this.#t.size>0&&i&&r.push(`
|
|
20
|
+
Timers:`);let n=-1/0,o=new Map;for(let[l,{value:a}]of this.#t){let s=`${(Number(a)/1e6).toFixed(2)}ms`;o.set(l,s),n=Math.max(n,s.length)}for(let l of this.#t.keys()){let a=l.split("//").length;r.push(`${Ee(`[${o.get(l).padStart(n," ")}]`)}${" ".repeat(a-1)}${a===1?" ":Ee(" \u21B3 ")}${l.split("//").pop()} ${this.#r.get(l).value===1?"":Ee(sr(`\xD7 ${this.#r.get(l).value}`))}`.trimEnd())}t(`
|
|
13
21
|
${r.join(`
|
|
14
22
|
`)}
|
|
15
|
-
`),this.reset()}[Symbol.dispose](){
|
|
23
|
+
`),this.reset()}[Symbol.dispose](){Oe&&this.report()}};function Ee(e){return`\x1B[2m${e}\x1B[22m`}function sr(e){return`\x1B[34m${e}\x1B[39m`}import cn from"@jridgewell/remapping";import{Features as de,transform as pn}from"lightningcss";import dn from"magic-string";function zu(e,{file:t="input.css",minify:r=!1,map:i}={}){function n(s,f){return pn({filename:t,code:s,minify:r,sourceMap:typeof f<"u",inputSourceMap:f,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:de.Nesting|de.MediaQueries,exclude:de.LogicalProperties|de.DirSelector|de.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let o=n(Buffer.from(e),i);if(i=o.map?.toString(),o.warnings.length>0){let s=e.split(`
|
|
24
|
+
`),f=[`Found ${o.warnings.length} ${o.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[c,u]of o.warnings.entries()){f.push(""),o.warnings.length>1&&f.push(`Issue #${c+1}:`);let p=2,m=Math.max(0,u.loc.line-p-1),d=Math.min(s.length,u.loc.line+p),g=s.slice(m,d).map((v,k)=>m+k+1===u.loc.line?`${me("\u2502")} ${v}`:me(`\u2502 ${v}`));g.splice(u.loc.line-m,0,`${me("\u2506")}${" ".repeat(u.loc.column-1)} ${mn(`${me("^--")} ${u.message}`)}`,`${me("\u2506")}`),f.push(...g)}f.push(""),console.warn(f.join(`
|
|
25
|
+
`))}o=n(o.code,i),i=o.map?.toString();let l=o.code.toString(),a=new dn(l);if(a.replaceAll("@media not (","@media not all and ("),i!==void 0&&a.hasChanged()){let s=a.generateMap({source:"original",hires:"boundary"}).toString();i=cn([s,i],()=>null).toString()}return l=a.toString(),{code:l,map:i}}function me(e){return`\x1B[2m${e}\x1B[22m`}function mn(e){return`\x1B[33m${e}\x1B[39m`}import{SourceMapGenerator as gn}from"source-map-js";function hn(e){let t=new gn,r=1,i=new h(n=>({url:n?.url??`<unknown ${r++}>`,content:n?.content??"<none>"}));for(let n of e.mappings){let o=i.get(n.originalPosition?.source??null);t.addMapping({generated:n.generatedPosition,original:n.originalPosition,source:o.url,name:n.name}),t.setSourceContent(o.url,o.content)}return t.toString()}function Bu(e){let t=typeof e=="string"?e:hn(e);return{raw:t,get inline(){let r="";return r+="/*# sourceMappingURL=data:application/json;base64,",r+=Buffer.from(t,"utf-8").toString("base64"),r+=` */
|
|
26
|
+
`,r}}}if(!process.versions.bun){let e=Te.createRequire(import.meta.url);Te.register?.(vn(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{Nu as Features,ar as Instrumentation,Eu as Polyfills,_u as __unstable__loadDesignSystem,Ou as compile,Pu as compileAst,_e as env,or as loadModule,Qe as normalizePath,zu as optimize,Bu as toSourceMap};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/node",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.b77971f",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,9 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
36
|
+
"@jridgewell/remapping": "^2.3.4",
|
|
37
|
+
"enhanced-resolve": "^5.18.3",
|
|
38
|
+
"jiti": "^2.6.0",
|
|
39
|
+
"lightningcss": "1.30.1",
|
|
40
|
+
"magic-string": "^0.30.19",
|
|
41
|
+
"source-map-js": "^1.2.1",
|
|
42
|
+
"tailwindcss": "0.0.0-insiders.b77971f"
|
|
39
43
|
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"build": "tsup-node",
|