@tailwindcss/node 0.0.0-insiders.fadf442 → 0.0.0-insiders.fb0f432

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 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 any other conversation that would benefit from being searchable:
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"node: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};
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
@@ -1,11 +1,12 @@
1
1
  import { Candidate, Variant } from './candidate';
2
2
  import { compileAstNodes } from './compile';
3
- import { ClassEntry, VariantEntry } from './intellisense';
3
+ import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
4
4
  import { Theme } from './theme';
5
5
  import { Utilities } from './utilities';
6
6
  import { Variants } from './variants';
7
- import { Features } from 'tailwindcss';
8
- export { Features } from 'tailwindcss';
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,57 +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;
31
38
  trackUsedVariables(raw: string): void;
39
+ canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
32
40
  candidatesToCss(classes: string[]): (string | null)[];
33
41
  };
34
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
+
35
120
  type StyleRule = {
36
121
  kind: 'rule';
37
122
  selector: string;
38
123
  nodes: AstNode[];
124
+ src?: SourceLocation;
125
+ dst?: SourceLocation;
39
126
  };
40
127
  type AtRule = {
41
128
  kind: 'at-rule';
42
129
  name: string;
43
130
  params: string;
44
131
  nodes: AstNode[];
132
+ src?: SourceLocation;
133
+ dst?: SourceLocation;
45
134
  };
46
135
  type Declaration = {
47
136
  kind: 'declaration';
48
137
  property: string;
49
138
  value: string | undefined;
50
139
  important: boolean;
140
+ src?: SourceLocation;
141
+ dst?: SourceLocation;
51
142
  };
52
143
  type Comment = {
53
144
  kind: 'comment';
54
145
  value: string;
146
+ src?: SourceLocation;
147
+ dst?: SourceLocation;
55
148
  };
56
149
  type Context = {
57
150
  kind: 'context';
58
151
  context: Record<string, string | boolean>;
59
152
  nodes: AstNode[];
153
+ src?: undefined;
154
+ dst?: undefined;
60
155
  };
61
156
  type AtRoot = {
62
157
  kind: 'at-root';
63
158
  nodes: AstNode[];
159
+ src?: undefined;
160
+ dst?: undefined;
64
161
  };
65
162
  type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
66
163
 
67
164
  type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
68
165
  interface CompileOptions {
69
166
  base: string;
167
+ from?: string;
70
168
  onDependency: (path: string) => void;
71
169
  shouldRewriteUrls?: boolean;
170
+ polyfills?: Polyfills;
72
171
  customCssResolver?: Resolver;
73
172
  customJsResolver?: Resolver;
74
173
  }
75
174
  declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
76
- globs: {
175
+ sources: {
77
176
  base: string;
78
177
  pattern: string;
178
+ negated: boolean;
79
179
  }[];
80
180
  root: "none" | {
81
181
  base: string;
@@ -85,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
85
185
  build(candidates: string[]): AstNode[];
86
186
  }>;
87
187
  declare function compile(css: string, options: CompileOptions): Promise<{
88
- globs: {
188
+ sources: {
89
189
  base: string;
90
190
  pattern: string;
191
+ negated: boolean;
91
192
  }[];
92
193
  root: "none" | {
93
194
  base: string;
@@ -95,10 +196,16 @@ declare function compile(css: string, options: CompileOptions): Promise<{
95
196
  } | null;
96
197
  features: Features;
97
198
  build(candidates: string[]): string;
199
+ buildSourceMap(): tailwindcss.DecodedSourceMap;
98
200
  }>;
99
201
  declare function __unstable__loadDesignSystem(css: string, { base }: {
100
202
  base: string;
101
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
+ }>;
102
209
 
103
210
  declare class Instrumentation implements Disposable {
104
211
  #private;
@@ -114,4 +221,32 @@ declare class Instrumentation implements Disposable {
114
221
 
115
222
  declare function normalizePath(originalPath: string): string;
116
223
 
117
- export { Instrumentation, __unstable__loadDesignSystem, compile, compileAst, env, normalizePath };
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
@@ -1,11 +1,12 @@
1
1
  import { Candidate, Variant } from './candidate';
2
2
  import { compileAstNodes } from './compile';
3
- import { ClassEntry, VariantEntry } from './intellisense';
3
+ import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
4
4
  import { Theme } from './theme';
5
5
  import { Utilities } from './utilities';
6
6
  import { Variants } from './variants';
7
- import { Features } from 'tailwindcss';
8
- export { Features } from 'tailwindcss';
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,57 +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;
31
38
  trackUsedVariables(raw: string): void;
39
+ canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
32
40
  candidatesToCss(classes: string[]): (string | null)[];
33
41
  };
34
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
+
35
120
  type StyleRule = {
36
121
  kind: 'rule';
37
122
  selector: string;
38
123
  nodes: AstNode[];
124
+ src?: SourceLocation;
125
+ dst?: SourceLocation;
39
126
  };
40
127
  type AtRule = {
41
128
  kind: 'at-rule';
42
129
  name: string;
43
130
  params: string;
44
131
  nodes: AstNode[];
132
+ src?: SourceLocation;
133
+ dst?: SourceLocation;
45
134
  };
46
135
  type Declaration = {
47
136
  kind: 'declaration';
48
137
  property: string;
49
138
  value: string | undefined;
50
139
  important: boolean;
140
+ src?: SourceLocation;
141
+ dst?: SourceLocation;
51
142
  };
52
143
  type Comment = {
53
144
  kind: 'comment';
54
145
  value: string;
146
+ src?: SourceLocation;
147
+ dst?: SourceLocation;
55
148
  };
56
149
  type Context = {
57
150
  kind: 'context';
58
151
  context: Record<string, string | boolean>;
59
152
  nodes: AstNode[];
153
+ src?: undefined;
154
+ dst?: undefined;
60
155
  };
61
156
  type AtRoot = {
62
157
  kind: 'at-root';
63
158
  nodes: AstNode[];
159
+ src?: undefined;
160
+ dst?: undefined;
64
161
  };
65
162
  type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
66
163
 
67
164
  type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
68
165
  interface CompileOptions {
69
166
  base: string;
167
+ from?: string;
70
168
  onDependency: (path: string) => void;
71
169
  shouldRewriteUrls?: boolean;
170
+ polyfills?: Polyfills;
72
171
  customCssResolver?: Resolver;
73
172
  customJsResolver?: Resolver;
74
173
  }
75
174
  declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
76
- globs: {
175
+ sources: {
77
176
  base: string;
78
177
  pattern: string;
178
+ negated: boolean;
79
179
  }[];
80
180
  root: "none" | {
81
181
  base: string;
@@ -85,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
85
185
  build(candidates: string[]): AstNode[];
86
186
  }>;
87
187
  declare function compile(css: string, options: CompileOptions): Promise<{
88
- globs: {
188
+ sources: {
89
189
  base: string;
90
190
  pattern: string;
191
+ negated: boolean;
91
192
  }[];
92
193
  root: "none" | {
93
194
  base: string;
@@ -95,11 +196,13 @@ declare function compile(css: string, options: CompileOptions): Promise<{
95
196
  } | null;
96
197
  features: Features;
97
198
  build(candidates: string[]): string;
199
+ buildSourceMap(): tailwindcss.DecodedSourceMap;
98
200
  }>;
99
201
  declare function __unstable__loadDesignSystem(css: string, { base }: {
100
202
  base: string;
101
203
  }): Promise<DesignSystem>;
102
204
  declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
205
+ path: string;
103
206
  base: string;
104
207
  module: any;
105
208
  }>;
@@ -118,4 +221,32 @@ declare class Instrumentation implements Disposable {
118
221
 
119
222
  declare function normalizePath(originalPath: string): string;
120
223
 
121
- export { type CompileOptions, Instrumentation, type Resolver, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath };
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 Ce=Object.create;var N=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var be=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var X=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},Z=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $e(t))!ke.call(e,i)&&i!==r&&N(e,i,{get:()=>t[i],enumerable:!(s=Ne(t,i))||s.enumerable});return e};var g=(e,t,r)=>(r=e!=null?Ce(be(e)):{},Z(t||!e||!e.__esModule?N(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Z(N({},"__esModule",{value:!0}),e);var dt={};X(dt,{Features:()=>h.Features,Instrumentation:()=>Y,__unstable__loadDesignSystem:()=>at,compile:()=>ot,compileAst:()=>lt,env:()=>$,loadModule:()=>q,normalizePath:()=>O});module.exports=Te(dt);var Re=g(require("module")),Ee=require("url");var $={};X($,{DEBUG:()=>K});var K=_e(process.env.DEBUG);function _e(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 v=g(require("enhanced-resolve")),ve=require("jiti"),I=g(require("fs")),J=g(require("fs/promises")),y=g(require("path")),G=require("url"),h=require("tailwindcss");var b=g(require("fs/promises")),w=g(require("path")),De=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Ue=[".js",".cjs",".mjs"],Oe=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ie=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Pe(e,t){for(let r of t){let s=`${e}${r}`;if((await b.default.stat(s).catch(()=>null))?.isFile())return s}for(let r of t){let s=`${e}/index${r}`;if(await b.default.access(s).then(()=>!0,()=>!1))return s}return null}async function ee(e,t,r,s){let i=Ue.includes(s)?Oe:Ie,l=await Pe(w.default.resolve(r,t),i);if(l===null||e.has(l))return;e.add(l),r=w.default.dirname(l),s=w.default.extname(l);let n=await b.default.readFile(l,"utf-8"),a=[];for(let o of De)for(let u of n.matchAll(o))u[1].startsWith(".")&&a.push(ee(e,u[1],r,s));await Promise.all(a)}async function te(e){let t=new Set;return await ee(t,e,w.default.dirname(e),w.default.extname(e)),Array.from(t)}var V=g(require("path"));var R=92,k=47,T=42,Fe=34,Ke=39,je=58,_=59,x=10,E=32,D=9,re=123,j=125,W=40,se=41,Le=91,Me=93,ie=45,L=64,We=33;function ne(e){e=e.replaceAll(`\r
1
+ "use strict";var Cr=Object.create;var be=Object.defineProperty;var Sr=Object.getOwnPropertyDescriptor;var $r=Object.getOwnPropertyNames;var Vr=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty;var ct=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})},pt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $r(t))!Tr.call(e,o)&&o!==r&&be(e,o,{get:()=>t[o],enumerable:!(i=Sr(t,o))||i.enumerable});return e};var P=(e,t,r)=>(r=e!=null?Cr(Vr(e)):{},pt(t||!e||!e.__esModule?be(r,"default",{value:e,enumerable:!0}):r,e)),Er=e=>pt(be({},"__esModule",{value:!0}),e);var Ln={};ct(Ln,{Features:()=>L.Features,Instrumentation:()=>ft,Polyfills:()=>L.Polyfills,__unstable__loadDesignSystem:()=>Tn,compile:()=>Vn,compileAst:()=>$n,env:()=>xe,loadModule:()=>st,normalizePath:()=>De,optimize:()=>_n,toSourceMap:()=>In});module.exports=Er(Ln);var xr=P(require("module")),Ar=require("url");var xe={};ct(xe,{DEBUG:()=>ze});var ze=Nr(process.env.DEBUG);function Nr(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 X=P(require("enhanced-resolve")),mr=require("jiti"),Ue=P(require("fs")),at=P(require("fs/promises")),le=P(require("path")),ot=require("url"),L=require("tailwindcss");var Ae=P(require("fs/promises")),re=P(require("path")),Rr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Pr=[".js",".cjs",".mjs"],Or=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],_r=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Dr(e,t){for(let r of t){let i=`${e}${r}`;if((await Ae.default.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await Ae.default.access(i).then(()=>!0,()=>!1))return i}return null}async function dt(e,t,r,i){let o=Pr.includes(i)?Or:_r,l=await Dr(re.default.resolve(r,t),o);if(l===null||e.has(l))return;e.add(l),r=re.default.dirname(l),i=re.default.extname(l);let n=await Ae.default.readFile(l,"utf-8"),s=[];for(let a of Rr)for(let f of n.matchAll(a))f[1].startsWith(".")&&s.push(dt(e,f[1],r,i));await Promise.all(s)}async function mt(e){let t=new Set;return await dt(t,e,re.default.dirname(e),re.default.extname(e)),Array.from(t)}var it=P(require("path"));function E(e){return{kind:"word",value:e}}function Ur(e,t){return{kind:"function",value:e,nodes:t}}function Ir(e){return{kind:"separator",value:e}}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 gt=92,Lr=41,ht=58,vt=44,Kr=34,wt=61,kt=62,yt=60,bt=10,zr=40,Mr=39,Fr=47,xt=32,At=9;function x(e){e=e.replaceAll(`\r
2
2
  `,`
3
- `);let t=[],r=[],s=[],i=null,l=null,n="",a="",o;for(let u=0;u<e.length;u++){let f=e.charCodeAt(u);if(f===R)n+=e.slice(u,u+2),u+=1;else if(f===k&&e.charCodeAt(u+1)===T){let c=u;for(let d=u+2;d<e.length;d++)if(o=e.charCodeAt(d),o===R)d+=1;else if(o===T&&e.charCodeAt(d+1)===k){u=d+1;break}let p=e.slice(c,u+1);p.charCodeAt(2)===We&&r.push(ae(p.slice(2,-2)))}else if(f===Ke||f===Fe){let c=u;for(let p=u+1;p<e.length;p++)if(o=e.charCodeAt(p),o===R)p+=1;else if(o===f){u=p;break}else{if(o===_&&e.charCodeAt(p+1)===x)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(f)}`);if(o===x)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(f)}`)}n+=e.slice(c,u+1)}else{if((f===E||f===x||f===D)&&(o=e.charCodeAt(u+1))&&(o===E||o===x||o===D))continue;if(f===x){if(n.length===0)continue;o=n.charCodeAt(n.length-1),o!==E&&o!==x&&o!==D&&(n+=" ")}else if(f===ie&&e.charCodeAt(u+1)===ie&&n.length===0){let c="",p=u,d=-1;for(let m=u+2;m<e.length;m++)if(o=e.charCodeAt(m),o===R)m+=1;else if(o===k&&e.charCodeAt(m+1)===T){for(let A=m+2;A<e.length;A++)if(o=e.charCodeAt(A),o===R)A+=1;else if(o===T&&e.charCodeAt(A+1)===k){m=A+1;break}}else if(d===-1&&o===je)d=n.length+m-p;else if(o===_&&c.length===0){n+=e.slice(p,m),u=m;break}else if(o===W)c+=")";else if(o===Le)c+="]";else if(o===re)c+="}";else if((o===j||e.length-1===m)&&c.length===0){u=m-1,n+=e.slice(p,m);break}else(o===se||o===Me||o===j)&&c.length>0&&e[m]===c[c.length-1]&&(c=c.slice(0,-1));let F=M(n,d);if(!F)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(F):t.push(F),n=""}else if(f===_&&n.charCodeAt(0)===L)l=C(n),i?i.nodes.push(l):t.push(l),n="",l=null;else if(f===_&&a[a.length-1]!==")"){let c=M(n);if(!c)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(c):t.push(c),n=""}else if(f===re&&a[a.length-1]!==")")a+="}",l=le(n.trim()),i&&i.nodes.push(l),s.push(i),i=l,n="",l=null;else if(f===j&&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)l=C(n),i?i.nodes.push(l):t.push(l),n="",l=null;else{let p=n.indexOf(":");if(i){let d=M(n,p);if(!d)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(d)}}let c=s.pop()??null;c===null&&i&&t.push(i),i=c,n="",l=null}else if(f===W)a+=")",n+="(";else if(f===se){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(f===E||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===E||s===W){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return B(i,l,t)}}return B(e.trim(),"",t)}function M(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 yt=process.env.FEATURES_ENV!=="stable";var S=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var Be=64;function Ve(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function B(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function le(e,t=[]){return e.charCodeAt(0)===Be?C(e,t):Ve(e,t)}function oe(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ae(e){return{kind:"comment",value:e}}function U(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let l=e[i],n=r[r.length-1]??null;if(l.kind==="context"){if(U(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,u=t(l,{parent:n,context:s,path:r,replaceWith(f){a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),o=0):f.length===1?(e[i]=f[0],o=1):(e.splice(i,1,...f),o=f.length):(e[i]=f,o=1)}})??0;if(r.pop(),a){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in l){r.push(l);let f=U(l.nodes,t,r,s);if(r.pop(),f===2)return 2}}}function fe(e){function t(s,i=0){let l="",n=" ".repeat(i);if(s.kind==="declaration")l+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
4
- `;else if(s.kind==="rule"){l+=`${n}${s.selector} {
5
- `;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
6
- `}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${n}${s.name} ${s.params};
7
- `;l+=`${n}${s.name}${s.params?` ${s.params} `:" "}{
8
- `;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
9
- `}else if(s.kind==="comment")l+=`${n}/*${s.value}*/
10
- `;else if(s.kind==="context"||s.kind==="at-root")return"";return l}let r="";for(let s of e){let i=t(s);i!==""&&(r+=i)}return r}function ze(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 s="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),s="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),s+l.join("/")}function O(e){let t=ze(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var z=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,ue=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Ge=/(?:gradient|element|cross-fade|image)\(/,He=/^\s*data:/i,Je=/^([a-z]+:)?\/\//,qe=/^[A-Z_][.\w-]*\(/i,Qe=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Ye=/(?<!\\)"/g,Xe=/(?: |\\t|\\n|\\f|\\r)+/g,Ze=e=>He.test(e),et=e=>Je.test(e);async function ce({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let s=ne(e),i=[];function l(n){if(n[0]==="/")return n;let a=V.posix.join(O(t),n),o=V.posix.relative(O(r),a);return o.startsWith(".")||(o="./"+o),o}return U(s,n=>{if(n.kind!=="declaration"||!n.value)return;let a=z.test(n.value),o=ue.test(n.value);if(a||o){let u=o?tt:pe;i.push(u(n.value,l).then(f=>{n.value=f}))}}),i.length&&await Promise.all(i),fe(s)}function pe(e,t){return de(e,z,async r=>{let[s,i]=r;return await me(i.trim(),s,t)})}async function tt(e,t){return await de(e,ue,async r=>{let[,s]=r;return await st(s,async({url:l})=>z.test(l)?await pe(l,t):Ge.test(l)?l:await me(l,l,t))})}async function me(e,t,r,s="url"){let i="",l=e[0];if((l==='"'||l==="'")&&(i=l,e=e.slice(1,-1)),rt(e))return t;let n=await r(e);return i===""&&n!==encodeURI(n)&&(i='"'),i==="'"&&n.includes("'")&&(i='"'),i==='"'&&n.includes('"')&&(n=n.replace(Ye,'\\"')),`${s}(${i}${n}${i})`}function rt(e,t){return et(e)||Ze(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||qe.test(e)}function st(e,t){return Promise.all(it(e).map(async({url:r,descriptor:s})=>({url:await t({url:r,descriptor:s}),descriptor:s}))).then(nt)}function it(e){let t=e.trim().replace(Xe," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Qe);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function nt(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function de(e,t,r){let s,i=e,l="";for(;s=t.exec(i);)l+=i.slice(0,s.index),l+=await r(s),i=i.slice(s.index+s[0].length);return l+=i,l}var mt={};function ye({base:e,onDependency:t,shouldRewriteUrls:r,customCssResolver:s,customJsResolver:i}){return{base:e,async loadModule(l,n){return q(l,n,t,i)},async loadStylesheet(l,n){let a=await we(l,n,t,s);return r&&(a.content=await ce({css:a.content,root:n,base:a.base})),a}}}async function Ae(e,t){if(e.root&&e.root!=="none"){let r=/[*{]/,s=[];for(let l of e.root.pattern.split("/")){if(r.test(l))break;s.push(l)}if(!await J.default.stat(y.default.resolve(t,s.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function lt(e,t){let r=await(0,h.compileAst)(e,ye(t));return await Ae(r,t.base),r}async function ot(e,t){let r=await(0,h.compile)(e,ye(t));return await Ae(r,t.base),r}async function at(e,{base:t}){return(0,h.__unstable__loadDesignSystem)(e,{base:t,async loadModule(r,s){return q(r,s,()=>{})},async loadStylesheet(r,s){return we(r,s,()=>{})}})}async function q(e,t,r,s){if(e[0]!=="."){let a=await xe(e,t,s);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await he((0,G.pathToFileURL)(a).href);return{base:(0,y.dirname)(a),module:o.default??o}}let i=await xe(e,t,s);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,n]=await Promise.all([he((0,G.pathToFileURL)(i).href+"?id="+Date.now()),te(i)]);for(let a of n)r(a);return{base:(0,y.dirname)(i),module:l.default??l}}async function we(e,t,r,s){let i=await ut(e,t,s);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(i),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(i,"utf-8");if(n)return{base:y.default.dirname(i),content:n}}let l=await J.default.readFile(i,"utf-8");return{base:y.default.dirname(i),content:l}}var ge=null;async function he(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 ge??=(0,ve.createJiti)(mt.url,{moduleCache:!1,fsCache:!1}),await ge.import(e)}}var Q=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],ft=v.default.ResolverFactory.createResolver({fileSystem:new v.default.CachedInputFileSystem(I.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Q});async function ut(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let s=globalThis.__tw_resolve(e,t);if(s)return Promise.resolve(s)}if(r){let s=await r(e,t);if(s)return s}return H(ft,e,t)}var ct=v.default.ResolverFactory.createResolver({fileSystem:new v.default.CachedInputFileSystem(I.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Q}),pt=v.default.ResolverFactory.createResolver({fileSystem:new v.default.CachedInputFileSystem(I.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Q});async function xe(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let s=globalThis.__tw_resolve(e,t);if(s)return Promise.resolve(s)}if(r){let s=await r(e,t);if(s)return s}return H(ct,e,t).catch(()=>H(pt,e,t))}function H(e,t,r){return new Promise((s,i)=>e.resolve({},r,t,{},(l,n)=>{if(l)return i(l);s(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var Y=class{constructor(t=r=>void process.stderr.write(`${r}
11
- `)){this.defaultFlush=t}#r=new S(()=>({value:0}));#t=new S(()=>({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 o=n.split("//").length;r.push(`${" ".repeat(o)}${n} ${P(Se(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
12
- Timers:`);let i=-1/0,l=new Map;for(let[n,{value:a}]of this.#t){let o=`${(Number(a)/1e6).toFixed(2)}ms`;l.set(n,o),i=Math.max(i,o.length)}for(let n of this.#t.keys()){let a=n.split("//").length;r.push(`${P(`[${l.get(n).padStart(i," ")}]`)}${" ".repeat(a-1)}${a===1?" ":P(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":P(Se(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}t(`
3
+ `);let t=[],r=[],i=null,o="",l;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);switch(s){case gt:{o+=e[n]+e[n+1],n++;break}case Fr:{if(o.length>0){let f=E(o);i?i.nodes.push(f):t.push(f),o=""}let a=E(e[n]);i?i.nodes.push(a):t.push(a);break}case ht:case vt:case wt:case kt:case yt:case bt:case xt:case At:{if(o.length>0){let c=E(o);i?i.nodes.push(c):t.push(c),o=""}let a=n,f=n+1;for(;f<e.length&&(l=e.charCodeAt(f),!(l!==ht&&l!==vt&&l!==wt&&l!==kt&&l!==yt&&l!==bt&&l!==xt&&l!==At));f++);n=f-1;let p=Ir(e.slice(a,f));i?i.nodes.push(p):t.push(p);break}case Mr:case Kr:{let a=n;for(let f=n+1;f<e.length;f++)if(l=e.charCodeAt(f),l===gt)f+=1;else if(l===s){n=f;break}o+=e.slice(a,n+1);break}case zr:{let a=Ur(o,[]);o="",i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Lr:{let a=r.pop();if(o.length>0){let f=E(o);a?.nodes.push(f),o=""}r.length>0?i=r[r.length-1]:i=null;break}default:o+=String.fromCharCode(s)}}return o.length>0&&t.push(E(o)),t}var jr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function Ct(e){return e.indexOf("(")!==-1&&jr.some(t=>e.includes(`${t}(`))}var v=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 Gn=new Uint8Array(256);var Ce=new Uint8Array(256);function S(e,t){let r=0,i=[],o=0,l=e.length,n=t.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(r===0&&a===n){i.push(e.slice(o,s)),o=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let f=e.charCodeAt(s);if(f===92){s+=1;continue}if(f===a)break}break;case 40:Ce[r]=41,r++;break;case 91:Ce[r]=93,r++;break;case 123:Ce[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===Ce[r-1]&&r--;break}}return i.push(e.slice(o)),i}var Me=(n=>(n[n.Continue=0]="Continue",n[n.Skip=1]="Skip",n[n.Stop=2]="Stop",n[n.Replace=3]="Replace",n[n.ReplaceSkip=4]="ReplaceSkip",n[n.ReplaceStop=5]="ReplaceStop",n))(Me||{}),w={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function k(e,t){typeof t=="function"?St(e,t):St(e,t.enter,t.exit)}function St(e,t=()=>w.Continue,r=()=>w.Continue){let i=[[e,0,null]],o={parent:null,depth:0,path(){let l=[];for(let n=1;n<i.length;n++){let s=i[n][2];s&&l.push(s)}return l}};for(;i.length>0;){let l=i.length-1,n=i[l],s=n[0],a=n[1],f=n[2];if(a>=s.length){i.pop();continue}if(o.parent=f,o.depth=l,a>=0){let d=s[a],m=t(d,o)??w.Continue;switch(m.kind){case 0:{d.nodes&&d.nodes.length>0&&i.push([d.nodes,0,d]),n[1]=~a;continue}case 2:return;case 1:{n[1]=~a;continue}case 3:{s.splice(a,1,...m.nodes);continue}case 5:{s.splice(a,1,...m.nodes);return}case 4:{s.splice(a,1,...m.nodes),n[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Me[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let p=~a,c=s[p],u=r(c,o)??w.Continue;switch(u.kind){case 0:n[1]=p+1;continue;case 2:return;case 3:{s.splice(p,1,...u.nodes),n[1]=p+u.nodes.length;continue}case 5:{s.splice(p,1,...u.nodes);return}case 4:{s.splice(p,1,...u.nodes),n[1]=p+u.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function $t(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(ie),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(ie),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(ie),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function ie(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:ie(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function je(e){if(e===null)return"";let t=Gr(e.value),r=t?e.value.slice(4,-1):e.value,[i,o]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${We(r)}${o}`:e.kind==="named"?`/${e.value}`:""}var Wr=new v(e=>{let t=x(e),r=new Set;return k(t,(i,o)=>{let l=o.parent===null?t:o.parent.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let n=l.indexOf(i)??-1;if(n===-1)return;let s=l[n-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l[n+1];if(a?.kind!=="separator"||a.value!==" ")return;r.add(s),r.add(a)}else i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(l[0]===i||l[l.length-1]===i)&&r.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),r.size>0&&k(t,i=>{if(r.has(i))return r.delete(i),w.ReplaceSkip([])}),Fe(t),C(t)});function We(e){return Wr.get(e)}var io=new v(e=>{let t=x(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 Fe(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=ae(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=ae(t.value);for(let r=0;r<t.nodes.length;r++)Fe([t.nodes[r]]);break}t.value=ae(t.value),Fe(t.nodes);break}case"separator":t.value=ae(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=ae(t.value));break}default:qr(t)}}var Br=new v(e=>{let t=x(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Gr(e){return Br.get(e)}function qr(e){throw new Error(`Unexpected value: ${e}`)}function ae(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Hr=process.env.FEATURES_ENV!=="stable";var K=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,po=new RegExp(`^${K.source}$`);var mo=new RegExp(`^${K.source}%$`);var go=new RegExp(`^${K.source}s*/s*${K.source}$`);var Zr=["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"],Yr=new RegExp(`^${K.source}(${Zr.join("|")})$`);function Vt(e){return Yr.test(e)||Ct(e)}var Jr=["deg","rad","grad","turn"],ho=new RegExp(`^${K.source}(${Jr.join("|")})$`);var vo=new RegExp(`^${K.source} +${K.source} +${K.source}$`);function $(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ne(e){return Qr(e,.25)}function Qr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function se(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 ei={"--alpha":ti,"--spacing":ri,"--theme":ii,theme:ni};function ti(e,t,r,...i){let[o,l]=S(r,"/").map(n=>n.trim());if(!o||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${o||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${o||"var(--my-color)"} / ${l||"50%"})\``);return se(o,l)}function ri(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 o=e.theme.resolve(null,["--spacing"]);if(!o)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${o} * ${r})`}function ii(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 o=!1;r.endsWith(" inline")&&(o=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(o=!0);let l=e.resolveThemeValue(r,o);if(!l){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 l;let n=i.join(", ");if(n==="initial")return l;if(l==="initial")return n;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let s=x(l);return li(s,n),C(s)}return l}function ni(e,t,r,...i){r=oi(r);let o=e.resolveThemeValue(r);if(!o&&i.length>0)return i.join(", ");if(!o)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 o}var Lo=new RegExp(Object.keys(ei).map(e=>`${e}\\(`).join("|"));function oi(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],l=e[i+1];o==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=o}return t}function li(e,t){k(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 Be(e,t){let r=e.length,i=t.length,o=r<i?r:i;for(let l=0;l<o;l++){let n=e.charCodeAt(l),s=t.charCodeAt(l);if(n>=48&&n<=57&&s>=48&&s<=57){let a=l,f=l+1,p=l,c=l+1;for(n=e.charCodeAt(f);n>=48&&n<=57;)n=e.charCodeAt(++f);for(s=t.charCodeAt(c);s>=48&&s<=57;)s=t.charCodeAt(++c);let u=e.slice(a,f),d=t.slice(p,c),m=Number(u)-Number(d);if(m)return m;if(u<d)return-1;if(u>d)return 1;continue}if(n!==s)return n-s}return e.length-t.length}function Nt(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;oe(e.charCodeAt(t));)t++;{for(r=t;t<i;t++){let p=e.charCodeAt(t);if(p===92){t++;continue}if(!(p>=65&&p<=90)&&!(p>=97&&p<=122)&&!(p>=48&&p<=57)&&!(p===45||p===95))break}if(r===t)return null}let o=e.slice(r,t);for(;oe(e.charCodeAt(t));)t++;if(t===i)return{attribute:o,operator:null,quote:null,value:null,sensitivity:null};let l=null,n=e.charCodeAt(t);if(n===61)l="=",t++;else if((n===126||n===124||n===94||n===36||n===42)&&e.charCodeAt(t+1)===61)l=e[t]+"=",t+=2;else return null;for(;oe(e.charCodeAt(t));)t++;if(t===i)return null;let s="",a=null;if(n=e.charCodeAt(t),n===39||n===34){a=e[t],t++,r=t;for(let p=t;p<i;p++){let c=e.charCodeAt(p);c===n?t=p+1:c===92&&p++}s=e.slice(r,t-1)}else{for(r=t;t<i&&!oe(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;oe(e.charCodeAt(t));)t++;if(t===i)return{attribute:o,operator:l,quote:a,value:s,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(;oe(e.charCodeAt(t));)t++;return t!==i?null:{attribute:o,operator:l,quote:a,value:s,sensitivity:f}}function oe(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var si=/^[a-zA-Z0-9-_%/\.]+$/;function qe(e){if(e[0]==="container")return null;e=e.slice(),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(!si.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,o)=>`${i}-${o.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function ui(e){return{kind:"combinator",value:e}}function fi(e,t){return{kind:"function",value:e,nodes:t}}function G(e){return{kind:"selector",value:e}}function ci(e){return{kind:"separator",value:e}}function pi(e){return{kind:"value",value:e}}function q(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+"("+q(r.nodes)+")"}return t}var Pt=92,di=93,Ot=41,mi=58,_t=44,gi=34,hi=46,Dt=62,Ut=10,vi=35,It=91,Lt=40,Kt=43,wi=39,zt=32,Mt=9,Ft=126,ki=38,yi=42;function fe(e){e=e.replaceAll(`\r
4
+ `,`
5
+ `);let t=[],r=[],i=null,o="",l;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);switch(s){case _t:case Dt:case Ut:case zt:case Kt:case Mt:case Ft:{if(o.length>0){let u=G(o);i?i.nodes.push(u):t.push(u),o=""}let a=n,f=n+1;for(;f<e.length&&(l=e.charCodeAt(f),!(l!==_t&&l!==Dt&&l!==Ut&&l!==zt&&l!==Kt&&l!==Mt&&l!==Ft));f++);n=f-1;let p=e.slice(a,f),c=p.trim()===","?ci(p):ui(p);i?i.nodes.push(c):t.push(c);break}case Lt:{let a=fi(o,[]);if(o="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let f=n+1,p=0;for(let u=n+1;u<e.length;u++){if(l=e.charCodeAt(u),l===Lt){p++;continue}if(l===Ot){if(p===0){n=u;break}p--}}let c=n;a.nodes.push(pi(e.slice(f,c))),o="",n=c,i?i.nodes.push(a):t.push(a);break}i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Ot:{let a=r.pop();if(o.length>0){let f=G(o);a.nodes.push(f),o=""}r.length>0?i=r[r.length-1]:i=null;break}case hi:case mi:case vi:{if(o.length>0){let a=G(o);i?i.nodes.push(a):t.push(a)}o=e[n];break}case It:{if(o.length>0){let p=G(o);i?i.nodes.push(p):t.push(p)}o="";let a=n,f=0;for(let p=n+1;p<e.length;p++){if(l=e.charCodeAt(p),l===It){f++;continue}if(l===di){if(f===0){n=p;break}f--}}o+=e.slice(a,n+1);break}case wi:case gi:{let a=n;for(let f=n+1;f<e.length;f++)if(l=e.charCodeAt(f),l===Pt)f+=1;else if(l===s){n=f;break}o+=e.slice(a,n+1);break}case ki:case yi:{if(o.length>0){let a=G(o);i?i.nodes.push(a):t.push(a),o=""}i?i.nodes.push(G(e[n])):t.push(G(e[n]));break}case Pt:{o+=e[n]+e[n+1],n+=1;break}default:o+=e[n]}}return o.length>0&&t.push(G(o)),t}var bi=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,J=new v(e=>{let t=bi.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let i=Number(r);if(Number.isNaN(i))return null;let o=t.groups?.unit;return o===void 0?[i,null]:[i,o]});function jt(e,t=null){let r=!1,i=x(e);return k(i,{exit(o){if(o.kind==="word"&&o.value!=="0"){let l=xi(o.value,t);return l===null||l===o.value?void 0:(r=!0,w.ReplaceSkip(E(l)))}else if(o.kind==="function"&&(o.value==="calc"||o.value==="")){if(o.nodes.length!==5)return;let l=J.get(o.nodes[0].value),n=o.nodes[2].value,s=J.get(o.nodes[4].value);if(n==="*"&&(l?.[0]===0&&l?.[1]===null||s?.[0]===0&&s?.[1]===null))return r=!0,w.ReplaceSkip(E("0"));if(l===null||s===null)return;switch(n){case"*":{if(l[1]===s[1]||l[1]===null&&s[1]!==null||l[1]!==null&&s[1]===null)return r=!0,w.ReplaceSkip(E(`${l[0]*s[0]}${l[1]??""}`));break}case"+":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(E(`${l[0]+s[0]}${l[1]??""}`));break}case"-":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(E(`${l[0]-s[0]}${l[1]??""}`));break}case"/":{if(s[0]!==0&&(l[1]===null&&s[1]===null||l[1]!==null&&s[1]===null))return r=!0,w.ReplaceSkip(E(`${l[0]/s[0]}${l[1]??""}`));break}}}}}),r?C(i):e}function xi(e,t=null){let r=J.get(e);if(r===null)return null;let[i,o]=r;if(o===null)return`${i}`;if(i===0&&Vt(e))return"0";switch(o.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return t!==null?`${i*t}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${o}`}}var Wt=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,H=new v(e=>{let{rem:t,designSystem:r}=e;return new v(i=>{try{i=r.theme.prefix&&!i.startsWith(r.theme.prefix)?`${r.theme.prefix}:${i}`:i;let o=[z(".x",[T("@apply",i)])];return Ai(r,()=>{for(let n of r.parseCandidate(i))r.compileAstNodes(n,1);ce(o,r)}),k(o,n=>{if(n.kind==="declaration"){if(n.value===void 0||n.property==="--tw-sort")return w.Replace([]);n.value.includes("%")&&(Wt.lastIndex=0,n.value=n.value.replaceAll(Wt,s=>`${Number(s.slice(0,-1))}%`))}else{if(n.kind==="context"||n.kind==="at-root")return w.Replace(n.nodes);if(n.kind==="comment")return w.Replace([]);if(n.kind==="at-rule"&&n.name==="@property")return w.Replace([])}}),k(o,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let s=!1,a=x(n.value),f=new Set;k(a,p=>{if(p.kind!=="function"||p.value!=="var"||p.nodes.length!==1&&p.nodes.length<3)return;let c=p.nodes[0].value;r.theme.prefix&&c.startsWith(`--${r.theme.prefix}-`)&&(c=c.slice(`--${r.theme.prefix}-`.length));let u=r.resolveThemeValue(c);if(!f.has(c)&&(f.add(c),u!==void 0&&(p.nodes.length===1&&(s=!0,p.nodes.push(...x(`,${u}`))),p.nodes.length>=3))){let d=C(p.nodes),m=`${p.nodes[0].value},${u}`;if(d===m)return s=!0,w.Replace(x(u))}}),s&&(n.value=C(a))}n.value=jt(n.value,t),n.value=We(n.value)}}),O(o)}catch{return Symbol()}})}),Ze=new v(e=>{let{designSystem:t}=e,r=H.get(e),i=new v(()=>[]);for(let[o,l]of t.getClassList()){let n=r.get(o);if(typeof n=="string"){if(o[0]==="-"&&o.endsWith("-0")){let s=r.get(o.slice(1));if(typeof s=="string"&&n===s)continue}i.get(n).push(o);for(let s of l.modifiers){if(ne(s))continue;let a=`${o}/${s}`,f=r.get(a);typeof f=="string"&&i.get(f).push(a)}}}return i}),$e=new v(e=>{let{designSystem:t}=e;return new v(r=>{try{r=t.theme.prefix&&!r.startsWith(t.theme.prefix)?`${t.theme.prefix}:${r}`:r;let i=[z(".x",[T("@apply",`${r}:flex`)])];return ce(i,t),k(i,l=>{if(l.kind==="at-rule"&&l.params.includes(" "))l.params=l.params.replaceAll(" ","");else if(l.kind==="rule"){let n=fe(l.selector),s=!1;k(n,a=>{if(a.kind==="separator"&&a.value!==" ")a.value=a.value.trim(),s=!0;else if(a.kind==="function"&&a.value===":is"){if(a.nodes.length===1)return s=!0,w.Replace(a.nodes);if(a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":")return s=!0,w.Replace(a.nodes[1])}else a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(s=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),s&&(l.selector=q(n))}}),O(i)}catch{return Symbol()}})}),Bt=new v(e=>{let{designSystem:t}=e,r=$e.get(e),i=new v(()=>[]);for(let[o,l]of t.variants.entries())if(l.kind==="static"){let n=r.get(o);if(typeof n!="string")continue;i.get(n).push(o)}return i});function Ai(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=o=>{let l=r.call(e.theme.values,o);return l===void 0||l.options&1&&(i.add(l),l.options&=-2),l};try{return t()}finally{e.theme.values.get=r;for(let o of i)o.options|=1}}function j(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function pe(e){let t=[];for(let r of S(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let o=r.indexOf("[",i),l=r.indexOf("]",o);if(o===-1||l===-1)break;o>i&&t.push(r.slice(i,o)),t.push(r.slice(o+1,l)),i=l+1}i<=r.length-1&&t.push(r.slice(i))}return t}var xl=new v(e=>new v((t=null)=>({designSystem:e,rem:t})));var Al=new v(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",i=$i.get(e),o=Ti.get(e);return new v((l,n)=>{for(let s of t.parseCandidate(l)){let a=s.variants.slice().reverse().flatMap(c=>i.get(c)),f=s.important;if(f||a.length>0){let u=n.get(t.printCandidate({...s,variants:[],important:!1}));return t.theme.prefix!==null&&a.length>0&&(u=u.slice(r.length)),a.length>0&&(u=`${a.map(d=>t.printVariant(d)).join(":")}:${u}`),f&&(u+="!"),t.theme.prefix!==null&&a.length>0&&(u=`${r}${u}`),u}let p=o.get(l);if(p!==l)return p}return l})}),Si=[Pi,Wi,Bi,Mi],$i=new v(e=>new v(t=>{let r=[t];for(let i of Si)for(let o of r.splice(0)){let l=i(ie(o),e);if(Array.isArray(l)){r.push(...l);continue}else r.push(l)}return r})),Vi=[Ni,Ri,Ui,Li,zi,Fi,ji,Gi],Ti=new v(e=>{let t=e.designSystem;return new v(r=>{for(let i of t.parseCandidate(r)){let o=$t(i);for(let n of Vi)o=n(o,e);let l=t.printCandidate(o);if(r!==l)return l}return r})}),Ei=["t","tr","r","br","b","bl","l","tl"];function Ni(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return Ei.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Ri(e,t){let r=qt.get(t.designSystem);if(e.kind==="arbitrary"){let[i,o]=r(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,o!==null&&(e.modifier=o))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,o]=r(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,o!==null&&(e.modifier=o))}return e}function Pi(e,t){let r=qt.get(t.designSystem),i=Ee(e);for(let[o]of i)if(o.kind==="arbitrary"){let[l]=r(o.selector,2);l!==o.selector&&(o.selector=l)}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[l]=r(o.value.value,2);l!==o.value.value&&(o.value.value=l)}return e}var qt=new v(e=>{return t(e);function t(r){function i(s,a=0){let f=x(s);if(a&2)return[Ve(f,n),null];let p=0,c=0;if(k(f,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,k(m.nodes,g=>g.kind==="separator"&&g.value.includes(",")?w.Stop:g.kind==="word"&&g.value==="/"?(c+=1,w.Stop):w.Skip))}),p===0)return[s,null];if(c===0)return[Ve(f,l),null];if(c>1)return[Ve(f,n),null];let u=null;return[Ve(f,(m,g)=>{let h=S(m,"/").map(b=>b.trim());if(h.length>2)return null;if(f.length===1&&h.length===2&&a&1){let[b,y]=h;if(/^\d+%$/.test(y))u={kind:"named",value:y.slice(0,-1)};else if(/^0?\.\d+$/.test(y)){let N=Number(y)*100;u={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else u={kind:"arbitrary",value:y};m=b}return l(m,g)||n(m,g)}),u]}function o(s,a=!0){let f=`--${qe(pe(s))}`;return r.theme.get([f])?a&&r.theme.prefix?`--${r.theme.prefix}-${f.slice(2)}`:f:null}function l(s,a){let f=o(s);if(f)return a?`var(${f}, ${a})`:`var(${f})`;let p=pe(s);if(p[0]==="spacing"&&r.theme.get(["--spacing"])){let c=p[1];return ne(c)?`--spacing(${c})`:null}return null}function n(s,a){let f=S(s,"/").map(u=>u.trim());s=f.shift();let p=o(s,!1);if(!p)return null;let c=f.length>0?`/${f.join("/")}`:"";return a?`--theme(${p}${c}, ${a})`:`--theme(${p}${c})`}return i}});function Ve(e,t){return k(e,(r,i)=>{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,n=1;for(let f=n;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)l+=C([r.nodes[f]]),n=f+1;l=Oi(l);let s=r.nodes.slice(n+1),a=s.length>0?t(l,C(s)):t(l);if(a===null)return;if(i.parent){let f=i.parent.nodes.indexOf(r)-1;for(;f!==-1;){let p=i.parent.nodes[f];if(p.kind==="separator"&&p.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(a=`(${a})`);break}}return w.Replace(x(a))}}),C(e)}function Oi(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],l=e[i+1];o==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=o}return t}function*Ee(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function W(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function _i(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 v(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=J.get(t);if(!r)return null;let[i,o]=r;return new v(l=>{let n=J.get(l);if(!n)return null;let[s,a]=n;return a!==o?null:s/i})});function Ui(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,i=Ze.get(t),o=H.get(t),l=r.printCandidate(e),n=o.get(l);if(typeof n!="string")return e;for(let a of s(n,e)){let f=r.printCandidate(a);if(o.get(f)===n&&Ii(r,e,a))return a}return e;function*s(a,f){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&f.modifier){let c={...f,modifier:null},u=o.get(r.printCandidate(c));if(typeof u=="string")for(let d of s(u,c))yield Object.assign({},d,{modifier:f.modifier})}if(p.length===1)for(let c of W(r,p[0]))yield c;else if(p.length===0){let c=f.kind==="arbitrary"?f.value:f.value?.value??null;if(c===null)return;let u=Di.get(r)?.get(c)??null,d="";u!==null&&u<0&&(d="-",u=Math.abs(u));for(let m of Array.from(r.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){d&&(m=`${d}${m}`);for(let g of W(r,`${m}-${c}`))yield g;if(f.modifier)for(let g of W(r,`${m}-${c}${f.modifier}`))yield g;if(u!==null){for(let g of W(r,`${m}-${u}`))yield g;if(f.modifier)for(let g of W(r,`${m}-${u}${je(f.modifier)}`))yield g}for(let g of W(r,`${m}-[${c}]`))yield g;if(f.modifier)for(let g of W(r,`${m}-[${c}]${je(f.modifier)}`))yield g}}}}}function Ii(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 o=e.candidatesToCss([e.printCandidate(r)]).join(`
6
+ `),l=!0;return k(x(i),n=>{if(n.kind==="function"&&n.value==="var"){let s=n.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(o)||o.includes(`${s}:`))return l=!1,w.Stop}}),l}function Li(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,i=Ze.get(t),o=H.get(t),l=r.printCandidate(e),n=o.get(l);if(typeof n!="string")return e;for(let a of s(n,e)){let f=r.printCandidate(a);if(o.get(f)===n)return a}return e;function*s(a,f){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&f.modifier){let c={...f,modifier:null},u=o.get(r.printCandidate(c));if(typeof u=="string")for(let d of s(u,c))yield Object.assign({},d,{modifier:f.modifier})}if(p.length===1)for(let c of W(r,p[0]))yield c}}}var Ki=new Map([["order-none","order-0"]]);function zi(e,t){let r=t.designSystem,i=H.get(t),o=_i(r,e),l=Ki.get(o)??null;if(l===null)return e;let n=i.get(o);if(typeof n!="string")return e;let s=i.get(l);if(typeof s!="string"||n!==s)return e;let[a]=W(r,l);return a}function Mi(e,t){let r=t.designSystem,i=$e.get(t),o=Bt.get(t),l=Ee(e);for(let[n]of l){if(n.kind==="compound")continue;let s=r.printVariant(n),a=i.get(s);if(typeof a!="string")continue;let f=o.get(a);if(f.length!==1)continue;let p=f[0],c=r.parseVariant(p);c!==null&&j(n,c)}return e}function Fi(e,t){let r=t.designSystem,i=H.get(t);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let o=r.printCandidate({...e,value:{...e.value,dataType:null}});i.get(r.printCandidate(e))===i.get(o)&&(e.value.dataType=null)}return e}function ji(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,i=H.get(t),o=i.get(r.printCandidate(e));if(o===null)return e;for(let l of Ht(e))if(i.get(r.printCandidate({...e,value:l}))===o)return e.value=l,e;return e}function Wi(e){let t=Ee(e);for(let[r]of t)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[i,o]=S(r.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Ht(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("%")&&ne(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[l,n]=t.split("/");$(l)&&$(n)&&(yield{kind:"named",value:l,fraction:`${l}/${n}`})}let i=new Set;for(let l of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(l[0].trim());let o=Array.from(i).sort((l,n)=>l.length-n.length);for(let l of o)yield*Ht(e,l,r)}function Gt(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function Te(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function Bi(e,t){let r=[e],i=t.designSystem,o=$e.get(t),l=Ee(e);for(let[n,s]of l)if(n.kind==="compound"&&(n.root==="has"||n.root==="not"||n.root==="in")&&n.modifier!==null&&"modifier"in n.variant&&(n.variant.modifier=n.modifier,n.modifier=null),n.kind==="arbitrary"){if(n.relative)continue;let a=fe(n.selector.trim());if(!Gt(a))continue;if(s===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==="*"){j(n,i.parseVariant("*"));continue}if(s===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==="*"){j(n,i.parseVariant("**"));continue}if(s===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),j(n,i.parseVariant(`in-[${q(a)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let u=o.get(i.printVariant(n)),d=x(q(a)),m=!1;if(k(d,g=>{if(g.kind==="word"&&g.value==="not")return m=!0,w.Replace([])}),d=x(C(d)),k(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${C(d)}]`);if(g===null)continue;let h=o.get(i.printVariant(g));if(u===h){j(n,g);continue}}}let f=null;s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&Te(a[2])&&(a=[a[2]],f=i.parseVariant("*")),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&Te(a[2])&&(a=[a[2]],f=i.parseVariant("**"));let p=a.filter(u=>!(u.kind==="selector"&&u.value.trim()==="&"));if(p.length!==1)continue;let c=p[0];if(c.kind==="function"&&c.value===":is"){if(!Gt(c.nodes)||c.nodes.length!==1||!Te(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let u=c,d=!1;if(u.kind==="function"&&u.value===":not"){if(d=!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=(h=>{if(h===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(h===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,y]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(h===b&&u.kind==="function"&&u.nodes.length===1)return u.nodes.length===1&&u.nodes[0].kind==="value"&&$(u.nodes[0].value)?`${y}-${u.nodes[0].value}`:`${y}-[${q(u.nodes)}]`;if(d){let b=o.get(i.printVariant(n)),y=o.get(`not-[${h}]`);if(b===y)return`[&${h}]`}return null})(u.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;j(n,g)}else if(Te(c)){let u=Nt(c.value);if(u===null)continue;if(u.attribute.startsWith("data-")){let d=u.attribute.slice(5);j(n,{kind:"functional",root:"data",modifier:null,value:u.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}else if(u.attribute.startsWith("aria-")){let d=u.attribute.slice(5);j(n,{kind:"functional",root:"aria",modifier:null,value:u.value===null?{kind:"arbitrary",value:d}:u.operator==="="&&u.value==="true"&&u.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${u.attribute}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}}if(f)return[f,n]}return r}function Gi(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,i=H.get(t),o=i.get(r.printCandidate(e)),l=e.modifier;if(o===i.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let n={kind:"named",value:l.value.endsWith("%")?l.value.includes(".")?`${Number(l.value.slice(0,-1))}`:l.value.slice(0,-1):l.value,fraction:null};if(o===i.get(r.printCandidate({...e,modifier:n})))return e.modifier=n,e}{let n={kind:"named",value:`${parseFloat(l.value)*100}`,fraction:null};if(o===i.get(r.printCandidate({...e,modifier:n})))return e.modifier=n,e}return e}function de(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let o=new Map,l=[],n=new Map;for(let f of e){if(t.invalidCandidates.has(f)){r?.(f);continue}let p=t.parseCandidate(f);if(p.length===0){r?.(f);continue}n.set(f,p)}let s=0;(i??!0)&&(s|=1);let a=t.getVariantOrder();for(let[f,p]of n){let c=!1;for(let u of p){let d=t.compileAstNodes(u,s);if(d.length!==0){c=!0;for(let{node:m,propertySort:g}of d){let h=0n;for(let b of u.variants)h|=1n<<BigInt(a.get(b));o.set(m,{properties:g,variants:h,candidate:f}),l.push(m)}}}c||r?.(f)}return l.sort((f,p)=>{let c=o.get(f),u=o.get(p);if(c.variants-u.variants!==0n)return Number(c.variants-u.variants);let d=0;for(;d<c.properties.order.length&&d<u.properties.order.length&&c.properties.order[d]===u.properties.order[d];)d+=1;return(c.properties.order[d]??1/0)-(u.properties.order[d]??1/0)||u.properties.count-c.properties.count||Be(c.candidate,u.candidate)}),{astNodes:l,nodeSorting:o}}function ce(e,t){let r=0,i=M("&",e),o=new Set,l=new v(()=>new Set),n=new v(()=>new Set);k([i],(c,u)=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return k(c.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),w.Skip;if(c.name==="@utility"){let d=c.params.replace(/-\*$/,"");n.get(d).add(c),k(c.nodes,m=>{if(!(m.kind!=="at-rule"||m.name!=="@apply")){o.add(c);for(let g of Yt(m,t))l.get(c).add(g)}});return}if(c.name==="@apply"){if(u.parent===null)return;r|=1,o.add(u.parent);for(let d of Yt(c,t))for(let m of u.path())o.has(m)&&l.get(m).add(d)}}});let s=new Set,a=[],f=new Set;function p(c,u=[]){if(!s.has(c)){if(f.has(c)){let d=u[(u.indexOf(c)+1)%u.length];throw c.kind==="at-rule"&&c.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&k(c.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let h of g)for(let b of t.parseCandidate(h))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
7
+
8
+ ${O([c])}
9
+ Relies on:
10
+
11
+ ${O([d])}`)}f.add(c);for(let d of l.get(c))for(let m of n.get(d))u.push(c),p(m,u),u.pop();s.add(c),f.delete(c),a.push(c)}}for(let c of o)p(c);for(let c of a)"nodes"in c&&k(c.nodes,u=>{if(u.kind!=="at-rule"||u.name!=="@apply")return;let d=u.params.split(/(\s+)/g),m={},g=0;for(let[h,b]of d.entries())h%2===0&&(m[b]=g),g+=b.length;{let h=Object.keys(m),b=de(h,t,{respectImportant:!1,onInvalidCandidate:A=>{if(t.theme.prefix&&!A.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${A}\`. Did you mean \`${t.theme.prefix}:${A}\`?`);if(t.invalidCandidates.has(A))throw new Error(`Cannot apply utility class \`${A}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let R=S(A,":");if(R.length>1){let ye=R.pop();if(t.candidatesToCss([ye])[0]){let ee=t.candidatesToCss(R.map(te=>`${te}:[--tw-variant-check:1]`)),B=R.filter((te,Ke)=>ee[Ke]===null);if(B.length>0){if(B.length===1)throw new Error(`Cannot apply utility class \`${A}\` because the ${B.map(te=>`\`${te}\``)} variant does not exist.`);{let te=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${A}\` because the ${te.format(B.map(Ke=>`\`${Ke}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${A}\`. 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 \`${A}\``)}}),y=u.src,N=b.astNodes.map(A=>{let R=b.nodeSorting.get(A)?.candidate,ye=R?m[R]:void 0;if(A=I(A),!y||!R||ye===void 0)return k([A],B=>{B.src=y}),A;let ee=[y[0],y[1],y[2]];return ee[1]+=7+ye,ee[2]=ee[1]+R.length,k([A],B=>{B.src=ee}),A}),Le=[];for(let A of N)if(A.kind==="rule")for(let R of A.nodes)Le.push(R);else Le.push(A);return w.Replace(Le)}});return r}function*Yt(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 me=92,Ne=47,Re=42,Jt=34,Qt=39,Qi=58,Pe=59,_=10,Oe=13,ge=32,he=9,Xt=123,Ye=125,Xe=40,er=41,Xi=91,en=93,tr=45,Je=64,tn=33;function we(e,t){let r=t?.from?{file:t.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],o=[],l=[],n=null,s=null,a="",f="",p=0,c;for(let u=0;u<e.length;u++){let d=e.charCodeAt(u);if(!(d===Oe&&(c=e.charCodeAt(u+1),c===_)))if(d===me)a===""&&(p=u),a+=e.slice(u,u+2),u+=1;else if(d===Ne&&e.charCodeAt(u+1)===Re){let m=u;for(let h=u+2;h<e.length;h++)if(c=e.charCodeAt(h),c===me)h+=1;else if(c===Re&&e.charCodeAt(h+1)===Ne){u=h+1;break}let g=e.slice(m,u+1);if(g.charCodeAt(2)===tn){let h=tt(g.slice(2,-2));o.push(h),r&&(h.src=[r,m,u+1],h.dst=[r,m,u+1])}}else if(d===Qt||d===Jt){let m=rr(e,u,d);a+=e.slice(u,m+1),u=m}else{if((d===ge||d===_||d===he)&&(c=e.charCodeAt(u+1))&&(c===ge||c===_||c===he||c===Oe&&(c=e.charCodeAt(u+2))&&c==_))continue;if(d===_){if(a.length===0)continue;c=a.charCodeAt(a.length-1),c!==ge&&c!==_&&c!==he&&(a+=" ")}else if(d===tr&&e.charCodeAt(u+1)===tr&&a.length===0){let m="",g=u,h=-1;for(let y=u+2;y<e.length;y++)if(c=e.charCodeAt(y),c===me)y+=1;else if(c===Qt||c===Jt)y=rr(e,y,c);else if(c===Ne&&e.charCodeAt(y+1)===Re){for(let N=y+2;N<e.length;N++)if(c=e.charCodeAt(N),c===me)N+=1;else if(c===Re&&e.charCodeAt(N+1)===Ne){y=N+1;break}}else if(h===-1&&c===Qi)h=a.length+y-g;else if(c===Pe&&m.length===0){a+=e.slice(g,y),u=y;break}else if(c===Xe)m+=")";else if(c===Xi)m+="]";else if(c===Xt)m+="}";else if((c===Ye||e.length-1===y)&&m.length===0){u=y-1,a+=e.slice(g,y);break}else(c===er||c===en||c===Ye)&&m.length>0&&e[y]===m[m.length-1]&&(m=m.slice(0,-1));let b=Qe(a,h);if(!b)throw new Error("Invalid custom property, expected a value");r&&(b.src=[r,g,u],b.dst=[r,g,u]),n?n.nodes.push(b):i.push(b),a=""}else if(d===Pe&&a.charCodeAt(0)===Je)s=ve(a),r&&(s.src=[r,p,u],s.dst=[r,p,u]),n?n.nodes.push(s):i.push(s),a="",s=null;else if(d===Pe&&f[f.length-1]!==")"){let m=Qe(a);if(!m){if(a.length===0)continue;throw new Error(`Invalid declaration: \`${a.trim()}\``)}r&&(m.src=[r,p,u],m.dst=[r,p,u]),n?n.nodes.push(m):i.push(m),a=""}else if(d===Xt&&f[f.length-1]!==")")f+="}",s=M(a.trim()),r&&(s.src=[r,p,u],s.dst=[r,p,u]),n&&n.nodes.push(s),l.push(n),n=s,a="",s=null;else if(d===Ye&&f[f.length-1]!==")"){if(f==="")throw new Error("Missing opening {");if(f=f.slice(0,-1),a.length>0)if(a.charCodeAt(0)===Je)s=ve(a),r&&(s.src=[r,p,u],s.dst=[r,p,u]),n?n.nodes.push(s):i.push(s),a="",s=null;else{let g=a.indexOf(":");if(n){let h=Qe(a,g);if(!h)throw new Error(`Invalid declaration: \`${a.trim()}\``);r&&(h.src=[r,p,u],h.dst=[r,p,u]),n.nodes.push(h)}}let m=l.pop()??null;m===null&&n&&i.push(n),n=m,a="",s=null}else if(d===Xe)f+=")",a+="(";else if(d===er){if(f[f.length-1]!==")")throw new Error("Missing opening (");f=f.slice(0,-1),a+=")"}else{if(a.length===0&&(d===ge||d===_||d===he))continue;a===""&&(p=u),a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===Je){let u=ve(a);r&&(u.src=[r,p,e.length],u.dst=[r,p,e.length]),i.push(u)}if(f.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return o.length>0?o.concat(i):i}function ve(e,t=[]){let r=e,i="";for(let o=5;o<e.length;o++){let l=e.charCodeAt(o);if(l===ge||l===he||l===Xe){r=e.slice(0,o),i=e.slice(o);break}}return T(r.trim(),i.trim(),t)}function Qe(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return F(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}function rr(e,t,r){let i;for(let o=t+1;o<e.length;o++)if(i=e.charCodeAt(o),i===me)o+=1;else{if(i===r)return o;if(i===Pe&&(e.charCodeAt(o+1)===_||e.charCodeAt(o+1)===Oe&&e.charCodeAt(o+2)===_))throw new Error(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`);if(i===_||i===Oe&&e.charCodeAt(o+1)===_)throw new Error(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`)}return t}var rt={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 D=Q(e=>{if($(e.value))return e.value}),V=Q(e=>{if($(e.value))return`${e.value}%`}),Z=Q(e=>{if($(e.value))return`${e.value}px`}),nr=Q(e=>{if($(e.value))return`${e.value}ms`}),_e=Q(e=>{if($(e.value))return`${e.value}deg`}),an=Q(e=>{if(e.fraction===null)return;let[t,r]=S(e.fraction,"/");if(!(!$(t)||!$(r)))return e.fraction}),or=Q(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),sn={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",...an},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"),..._e}),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",...Z},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:()=>({...rt}),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",...D},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"),...Z}),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",...D},flexShrink:{0:"0",DEFAULT:"1",...D},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",...D},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",...D},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",...D},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",...D},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))",...or},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))",...or},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",..._e},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",...D},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",...D},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},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",...Z},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",..._e},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",..._e},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",...D},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",...Z},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},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",...nr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...nr},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",...D}};var fn=64;function z(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function T(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function M(e,t=[]){return e.charCodeAt(0)===fn?ve(e,t):z(e,t)}function F(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function tt(e){return{kind:"comment",value:e}}function I(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function O(e,t){let r=0,i={file:null,code:""};function o(n,s=0){let a="",f=" ".repeat(s);if(n.kind==="declaration"){if(a+=`${f}${n.property}: ${n.value}${n.important?" !important":""};
12
+ `,t){r+=f.length;let p=r;r+=n.property.length,r+=2,r+=n.value?.length??0,n.important&&(r+=11);let c=r;r+=2,n.dst=[i,p,c]}}else if(n.kind==="rule"){if(a+=`${f}${n.selector} {
13
+ `,t){r+=f.length;let p=r;r+=n.selector.length,r+=1;let c=r;n.dst=[i,p,c],r+=2}for(let p of n.nodes)a+=o(p,s+1);a+=`${f}}
14
+ `,t&&(r+=f.length,r+=2)}else if(n.kind==="at-rule"){if(n.nodes.length===0){let p=`${f}${n.name} ${n.params};
15
+ `;if(t){r+=f.length;let c=r;r+=n.name.length,r+=1,r+=n.params.length;let u=r;r+=2,n.dst=[i,c,u]}return p}if(a+=`${f}${n.name}${n.params?` ${n.params} `:" "}{
16
+ `,t){r+=f.length;let p=r;r+=n.name.length,n.params&&(r+=1,r+=n.params.length),r+=1;let c=r;n.dst=[i,p,c],r+=2}for(let p of n.nodes)a+=o(p,s+1);a+=`${f}}
17
+ `,t&&(r+=f.length,r+=2)}else if(n.kind==="comment"){if(a+=`${f}/*${n.value}*/
18
+ `,t){r+=f.length;let p=r;r+=2+n.value.length+2;let c=r;n.dst=[i,p,c],r+=1}}else if(n.kind==="context"||n.kind==="at-root")return"";return a}let l="";for(let n of e)l+=o(n,0);return i.code=l,l}function cn(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 o=e[2];(o==="?"||o===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function De(e){let t=cn(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var nt=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,lr=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,pn=/(?:gradient|element|cross-fade|image)\(/,dn=/^\s*data:/i,mn=/^([a-z]+:)?\/\//,gn=/^[A-Z_][.\w-]*\(/i,hn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,vn=/(?<!\\)"/g,wn=/(?: |\\t|\\n|\\f|\\r)+/g,kn=e=>dn.test(e),yn=e=>mn.test(e);async function ar({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=we(e),o=[];function l(n){if(n[0]==="/")return n;let s=it.posix.join(De(t),n),a=it.posix.relative(De(r),s);return a.startsWith(".")||(a="./"+a),a}return k(i,n=>{if(n.kind!=="declaration"||!n.value)return;let s=nt.test(n.value),a=lr.test(n.value);if(s||a){let f=a?bn:sr;o.push(f(n.value,l).then(p=>{n.value=p}))}}),o.length&&await Promise.all(o),O(i)}function sr(e,t){return fr(e,nt,async r=>{let[i,o]=r;return await ur(o.trim(),i,t)})}async function bn(e,t){return await fr(e,lr,async r=>{let[,i]=r;return await An(i,async({url:l})=>nt.test(l)?await sr(l,t):pn.test(l)?l:await ur(l,l,t))})}async function ur(e,t,r,i="url"){let o="",l=e[0];if((l==='"'||l==="'")&&(o=l,e=e.slice(1,-1)),xn(e))return t;let n=await r(e);return o===""&&n!==encodeURI(n)&&(o='"'),o==="'"&&n.includes("'")&&(o='"'),o==='"'&&n.includes('"')&&(n=n.replace(vn,'\\"')),`${i}(${o}${n}${o})`}function xn(e,t){return yn(e)||kn(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||gn.test(e)}function An(e,t){return Promise.all(Cn(e).map(async({url:r,descriptor:i})=>({url:await t({url:r,descriptor:i}),descriptor:i}))).then(Sn)}function Cn(e){let t=e.trim().replace(wn," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(hn);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function Sn(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function fr(e,t,r){let i,o=e,l="";for(;i=t.exec(o);)l+=o.slice(0,i.index),l+=await r(i),o=o.slice(i.index+i[0].length);return l+=o,l}var On={};function gr({base:e,from:t,polyfills:r,onDependency:i,shouldRewriteUrls:o,customCssResolver:l,customJsResolver:n}){return{base:e,polyfills:r,from:t,async loadModule(s,a){return st(s,a,i,n)},async loadStylesheet(s,a){let f=await vr(s,a,i,l);return o&&(f.content=await ar({css:f.content,root:e,base:f.base})),f}}}async function hr(e,t){if(e.root&&e.root!=="none"){let r=/[*{]/,i=[];for(let l of e.root.pattern.split("/")){if(r.test(l))break;i.push(l)}if(!await at.default.stat(le.default.resolve(t,i.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function $n(e,t){let r=await(0,L.compileAst)(e,gr(t));return await hr(r,t.base),r}async function Vn(e,t){let r=await(0,L.compile)(e,gr(t));return await hr(r,t.base),r}async function Tn(e,{base:t}){return(0,L.__unstable__loadDesignSystem)(e,{base:t,async loadModule(r,i){return st(r,i,()=>{})},async loadStylesheet(r,i){return vr(r,i,()=>{})}})}async function st(e,t,r,i){if(e[0]!=="."){let s=await dr(e,t,i);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await pr((0,ot.pathToFileURL)(s).href);return{path:s,base:le.default.dirname(s),module:a.default??a}}let o=await dr(e,t,i);if(!o)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,n]=await Promise.all([pr((0,ot.pathToFileURL)(o).href+"?id="+Date.now()),mt(o)]);for(let s of n)r(s);return{path:o,base:le.default.dirname(o),module:l.default??l}}async function vr(e,t,r,i){let o=await Nn(e,t,i);if(!o)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(o),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(o,"utf-8");if(n)return{path:o,base:le.default.dirname(o),content:n}}let l=await at.default.readFile(o,"utf-8");return{path:o,base:le.default.dirname(o),content:l}}var cr=null;async function pr(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 cr??=(0,mr.createJiti)(On.url,{moduleCache:!1,fsCache:!1}),await cr.import(e)}}var ut=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],En=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Ue.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:ut});async function Nn(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 lt(En,e,t)}var Rn=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Ue.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:ut}),Pn=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Ue.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:ut});async function dr(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 lt(Rn,e,t).catch(()=>lt(Pn,e,t))}function lt(e,t,r){return new Promise((i,o)=>e.resolve({},r,t,{},(l,n)=>{if(l)return o(l);i(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var ft=class{constructor(t=r=>void process.stderr.write(`${r}
19
+ `)){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(o=>o.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(),o=r-i.value;this.#t.get(i.id).value+=o}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],i=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:s}]of this.#r.entries()){if(this.#t.has(n))continue;r.length===0&&(i=!0,r.push("Hits:"));let a=n.split("//").length;r.push(`${" ".repeat(a)}${n} ${Ie(wr(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&r.push(`
20
+ Timers:`);let o=-1/0,l=new Map;for(let[n,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(n,a),o=Math.max(o,a.length)}for(let n of this.#t.keys()){let s=n.split("//").length;r.push(`${Ie(`[${l.get(n).padStart(o," ")}]`)}${" ".repeat(s-1)}${s===1?" ":Ie(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":Ie(wr(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}t(`
13
21
  ${r.join(`
14
22
  `)}
15
- `),this.reset()}[Symbol.dispose](){K&&this.report()}};function P(e){return`\x1B[2m${e}\x1B[22m`}function Se(e){return`\x1B[34m${e}\x1B[39m`}process.versions.bun||Re.register?.((0,Ee.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader")));0&&(module.exports={Features,Instrumentation,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath});
23
+ `),this.reset()}[Symbol.dispose](){ze&&this.report()}};function Ie(e){return`\x1B[2m${e}\x1B[22m`}function wr(e){return`\x1B[34m${e}\x1B[39m`}var kr=P(require("@jridgewell/remapping")),Y=require("lightningcss"),yr=P(require("magic-string"));function _n(e,{file:t="input.css",minify:r=!1,map:i}={}){function o(a,f){return(0,Y.transform)({filename:t,code:a,minify:r,sourceMap:typeof f<"u",inputSourceMap:f,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:Y.Features.Nesting|Y.Features.MediaQueries,exclude:Y.Features.LogicalProperties|Y.Features.DirSelector|Y.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=o(Buffer.from(e),i);if(i=l.map?.toString(),l.warnings=l.warnings.filter(a=>!/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(a.message)),l.warnings.length>0){let a=e.split(`
24
+ `),f=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of l.warnings.entries()){f.push(""),l.warnings.length>1&&f.push(`Issue #${p+1}:`);let u=2,d=Math.max(0,c.loc.line-u-1),m=Math.min(a.length,c.loc.line+u),g=a.slice(d,m).map((h,b)=>d+b+1===c.loc.line?`${ke("\u2502")} ${h}`:ke(`\u2502 ${h}`));g.splice(c.loc.line-d,0,`${ke("\u2506")}${" ".repeat(c.loc.column-1)} ${Dn(`${ke("^--")} ${c.message}`)}`,`${ke("\u2506")}`),f.push(...g)}f.push(""),console.warn(f.join(`
25
+ `))}l=o(l.code,i),i=l.map?.toString();let n=l.code.toString(),s=new yr.default(n);if(s.replaceAll("@media not (","@media not all and ("),i!==void 0&&s.hasChanged()){let a=s.generateMap({source:"original",hires:"boundary"}).toString();i=(0,kr.default)([a,i],()=>null).toString()}return n=s.toString(),{code:n,map:i}}function ke(e){return`\x1B[2m${e}\x1B[22m`}function Dn(e){return`\x1B[33m${e}\x1B[39m`}var br=require("source-map-js");function Un(e){let t=new br.SourceMapGenerator,r=1,i=new v(o=>({url:o?.url??`<unknown ${r++}>`,content:o?.content??"<none>"}));for(let o of e.mappings){let l=i.get(o.originalPosition?.source??null);t.addMapping({generated:o.generatedPosition,original:o.originalPosition,source:l.url,name:o.name}),t.setSourceContent(l.url,l.content)}return t.toString()}function In(e){let t=typeof e=="string"?e:Un(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||xr.register?.((0,Ar.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 ve=Object.defineProperty;var Ae=(e,t)=>{for(var r in t)ve(e,r,{get:t[r],enumerable:!0})};import*as b from"node:module";import{pathToFileURL as at}from"node:url";var D={};Ae(D,{DEBUG:()=>T});var T=we(process.env.DEBUG);function we(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 y from"enhanced-resolve";import{createJiti as Qe}from"jiti";import V from"node:fs";import me from"node:fs/promises";import W,{dirname as oe}from"node:path";import{pathToFileURL as ae}from"node:url";import{__unstable__loadDesignSystem as Ye,compile as Xe,compileAst as Ze,Features as et}from"tailwindcss";import U from"node:fs/promises";import v from"node:path";var Re=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Se=[".js",".cjs",".mjs"],Ee=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ce=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Ne(e,t){for(let r of t){let s=`${e}${r}`;if((await U.stat(s).catch(()=>null))?.isFile())return s}for(let r of t){let s=`${e}/index${r}`;if(await U.access(s).then(()=>!0,()=>!1))return s}return null}async function G(e,t,r,s){let i=Se.includes(s)?Ee:Ce,l=await Ne(v.resolve(r,t),i);if(l===null||e.has(l))return;e.add(l),r=v.dirname(l),s=v.extname(l);let n=await U.readFile(l,"utf-8"),a=[];for(let o of Re)for(let f of n.matchAll(o))f[1].startsWith(".")&&a.push(G(e,f[1],r,s));await Promise.all(a)}async function H(e){let t=new Set;return await G(t,e,v.dirname(e),v.extname(e)),Array.from(t)}import*as L from"node:path";var A=92,S=47,E=42,$e=34,_e=39,be=58,C=59,g=10,w=32,N=9,q=123,O=125,F=40,J=41,ke=91,Te=93,Q=45,I=64,De=33;function Y(e){e=e.replaceAll(`\r
1
+ var mr=Object.defineProperty;var gr=(e,r)=>{for(var t in r)mr(e,t,{get:r[t],enumerable:!0})};import*as Re from"module";import{pathToFileURL as $n}from"url";var De={};gr(De,{DEBUG:()=>_e});var _e=hr(process.env.DEBUG);function hr(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 r=e.split(",").map(t=>t.split(":")[0]);return r.includes("-tailwindcss")?!1:!!r.includes("tailwindcss")}import te from"enhanced-resolve";import{createJiti as pn}from"jiti";import it from"fs";import ar from"fs/promises";import ge from"path";import{pathToFileURL as ir}from"url";import{__unstable__loadDesignSystem as dn,compile as mn,compileAst as gn,Features as rc,Polyfills as ic}from"tailwindcss";import Ue from"fs/promises";import re from"path";var vr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],wr=[".js",".cjs",".mjs"],kr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],yr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function br(e,r){for(let t of r){let i=`${e}${t}`;if((await Ue.stat(i).catch(()=>null))?.isFile())return i}for(let t of r){let i=`${e}/index${t}`;if(await Ue.access(i).then(()=>!0,()=>!1))return i}return null}async function ot(e,r,t,i){let o=wr.includes(i)?kr:yr,l=await br(re.resolve(t,r),o);if(l===null||e.has(l))return;e.add(l),t=re.dirname(l),i=re.extname(l);let n=await Ue.readFile(l,"utf-8"),s=[];for(let a of vr)for(let c of n.matchAll(a))c[1].startsWith(".")&&s.push(ot(e,c[1],t,i));await Promise.all(s)}async function lt(e){let r=new Set;return await ot(r,e,re.dirname(e),re.extname(e)),Array.from(r)}import*as et from"path";function E(e){return{kind:"word",value:e}}function xr(e,r){return{kind:"function",value:e,nodes:r}}function Ar(e){return{kind:"separator",value:e}}function C(e){let r="";for(let t of e)switch(t.kind){case"word":case"separator":{r+=t.value;break}case"function":r+=t.value+"("+C(t.nodes)+")"}return r}var at=92,Cr=41,st=58,ut=44,Sr=34,ct=61,ft=62,pt=60,dt=10,$r=40,Vr=39,Tr=47,mt=32,gt=9;function x(e){e=e.replaceAll(`\r
2
2
  `,`
3
- `);let t=[],r=[],s=[],i=null,l=null,n="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===A)n+=e.slice(f,f+2),f+=1;else if(u===S&&e.charCodeAt(f+1)===E){let c=f;for(let d=f+2;d<e.length;d++)if(o=e.charCodeAt(d),o===A)d+=1;else if(o===E&&e.charCodeAt(d+1)===S){f=d+1;break}let m=e.slice(c,f+1);m.charCodeAt(2)===De&&r.push(ee(m.slice(2,-2)))}else if(u===_e||u===$e){let c=f;for(let m=f+1;m<e.length;m++)if(o=e.charCodeAt(m),o===A)m+=1;else if(o===u){f=m;break}else{if(o===C&&e.charCodeAt(m+1)===g)throw new Error(`Unterminated string: ${e.slice(c,m+1)+String.fromCharCode(u)}`);if(o===g)throw new Error(`Unterminated string: ${e.slice(c,m)+String.fromCharCode(u)}`)}n+=e.slice(c,f+1)}else{if((u===w||u===g||u===N)&&(o=e.charCodeAt(f+1))&&(o===w||o===g||o===N))continue;if(u===g){if(n.length===0)continue;o=n.charCodeAt(n.length-1),o!==w&&o!==g&&o!==N&&(n+=" ")}else if(u===Q&&e.charCodeAt(f+1)===Q&&n.length===0){let c="",m=f,d=-1;for(let p=f+2;p<e.length;p++)if(o=e.charCodeAt(p),o===A)p+=1;else if(o===S&&e.charCodeAt(p+1)===E){for(let h=p+2;h<e.length;h++)if(o=e.charCodeAt(h),o===A)h+=1;else if(o===E&&e.charCodeAt(h+1)===S){p=h+1;break}}else if(d===-1&&o===be)d=n.length+p-m;else if(o===C&&c.length===0){n+=e.slice(m,p),f=p;break}else if(o===F)c+=")";else if(o===ke)c+="]";else if(o===q)c+="}";else if((o===O||e.length-1===p)&&c.length===0){f=p-1,n+=e.slice(m,p);break}else(o===J||o===Te||o===O)&&c.length>0&&e[p]===c[c.length-1]&&(c=c.slice(0,-1));let k=P(n,d);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):t.push(k),n=""}else if(u===C&&n.charCodeAt(0)===I)l=R(n),i?i.nodes.push(l):t.push(l),n="",l=null;else if(u===C&&a[a.length-1]!==")"){let c=P(n);if(!c)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(c):t.push(c),n=""}else if(u===q&&a[a.length-1]!==")")a+="}",l=X(n.trim()),i&&i.nodes.push(l),s.push(i),i=l,n="",l=null;else if(u===O&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),n.length>0)if(n.charCodeAt(0)===I)l=R(n),i?i.nodes.push(l):t.push(l),n="",l=null;else{let m=n.indexOf(":");if(i){let d=P(n,m);if(!d)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(d)}}let c=s.pop()??null;c===null&&i&&t.push(i),i=c,n="",l=null}else if(u===F)a+=")",n+="(";else if(u===J){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(u===w||u===g||u===N))continue;n+=String.fromCharCode(u)}}}if(n.charCodeAt(0)===I&&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===F){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return K(i,l,t)}}return K(e.trim(),"",t)}function P(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return Z(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var gt=process.env.FEATURES_ENV!=="stable";var x=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var Ue=64;function Oe(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function K(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function X(e,t=[]){return e.charCodeAt(0)===Ue?R(e,t):Oe(e,t)}function Z(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ee(e){return{kind:"comment",value:e}}function $(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let l=e[i],n=r[r.length-1]??null;if(l.kind==="context"){if($(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,f=t(l,{parent:n,context:s,path:r,replaceWith(u){a=!0,Array.isArray(u)?u.length===0?(e.splice(i,1),o=0):u.length===1?(e[i]=u[0],o=1):(e.splice(i,1,...u),o=u.length):(e[i]=u,o=1)}})??0;if(r.pop(),a){f===0?i--:i+=o-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in l){r.push(l);let u=$(l.nodes,t,r,s);if(r.pop(),u===2)return 2}}}function te(e){function t(s,i=0){let l="",n=" ".repeat(i);if(s.kind==="declaration")l+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
4
- `;else if(s.kind==="rule"){l+=`${n}${s.selector} {
5
- `;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
6
- `}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${n}${s.name} ${s.params};
7
- `;l+=`${n}${s.name}${s.params?` ${s.params} `:" "}{
8
- `;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
9
- `}else if(s.kind==="comment")l+=`${n}/*${s.value}*/
10
- `;else if(s.kind==="context"||s.kind==="at-root")return"";return l}let r="";for(let s of e){let i=t(s);i!==""&&(r+=i)}return r}function Ie(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 s="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),s="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),s+l.join("/")}function j(e){let t=Ie(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var M=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,re=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Pe=/(?:gradient|element|cross-fade|image)\(/,Fe=/^\s*data:/i,Ke=/^([a-z]+:)?\/\//,je=/^[A-Z_][.\w-]*\(/i,Le=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Me=/(?<!\\)"/g,We=/(?: |\\t|\\n|\\f|\\r)+/g,Be=e=>Fe.test(e),Ve=e=>Ke.test(e);async function se({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let s=Y(e),i=[];function l(n){if(n[0]==="/")return n;let a=L.posix.join(j(t),n),o=L.posix.relative(j(r),a);return o.startsWith(".")||(o="./"+o),o}return $(s,n=>{if(n.kind!=="declaration"||!n.value)return;let a=M.test(n.value),o=re.test(n.value);if(a||o){let f=o?ze:ie;i.push(f(n.value,l).then(u=>{n.value=u}))}}),i.length&&await Promise.all(i),te(s)}function ie(e,t){return le(e,M,async r=>{let[s,i]=r;return await ne(i.trim(),s,t)})}async function ze(e,t){return await le(e,re,async r=>{let[,s]=r;return await He(s,async({url:l})=>M.test(l)?await ie(l,t):Pe.test(l)?l:await ne(l,l,t))})}async function ne(e,t,r,s="url"){let i="",l=e[0];if((l==='"'||l==="'")&&(i=l,e=e.slice(1,-1)),Ge(e))return t;let n=await r(e);return i===""&&n!==encodeURI(n)&&(i='"'),i==="'"&&n.includes("'")&&(i='"'),i==='"'&&n.includes('"')&&(n=n.replace(Me,'\\"')),`${s}(${i}${n}${i})`}function Ge(e,t){return Ve(e)||Be(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||je.test(e)}function He(e,t){return Promise.all(qe(e).map(async({url:r,descriptor:s})=>({url:await t({url:r,descriptor:s}),descriptor:s}))).then(Je)}function qe(e){let t=e.trim().replace(We," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Le);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function Je(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function le(e,t,r){let s,i=e,l="";for(;s=t.exec(i);)l+=i.slice(0,s.index),l+=await r(s),i=i.slice(s.index+s[0].length);return l+=i,l}function pe({base:e,onDependency:t,shouldRewriteUrls:r,customCssResolver:s,customJsResolver:i}){return{base:e,async loadModule(l,n){return ge(l,n,t,i)},async loadStylesheet(l,n){let a=await he(l,n,t,s);return r&&(a.content=await se({css:a.content,root:n,base:a.base})),a}}}async function de(e,t){if(e.root&&e.root!=="none"){let r=/[*{]/,s=[];for(let l of e.root.pattern.split("/")){if(r.test(l))break;s.push(l)}if(!await me.stat(W.resolve(t,s.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function tt(e,t){let r=await Ze(e,pe(t));return await de(r,t.base),r}async function rt(e,t){let r=await Xe(e,pe(t));return await de(r,t.base),r}async function st(e,{base:t}){return Ye(e,{base:t,async loadModule(r,s){return ge(r,s,()=>{})},async loadStylesheet(r,s){return he(r,s,()=>{})}})}async function ge(e,t,r,s){if(e[0]!=="."){let a=await ce(e,t,s);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await fe(ae(a).href);return{base:oe(a),module:o.default??o}}let i=await ce(e,t,s);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,n]=await Promise.all([fe(ae(i).href+"?id="+Date.now()),H(i)]);for(let a of n)r(a);return{base:oe(i),module:l.default??l}}async function he(e,t,r,s){let i=await nt(e,t,s);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(i),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(i,"utf-8");if(n)return{base:W.dirname(i),content:n}}let l=await me.readFile(i,"utf-8");return{base:W.dirname(i),content:l}}var ue=null;async function fe(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 ue??=Qe(import.meta.url,{moduleCache:!1,fsCache:!1}),await ue.import(e)}}var z=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],it=y.ResolverFactory.createResolver({fileSystem:new y.CachedInputFileSystem(V,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:z});async function nt(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let s=globalThis.__tw_resolve(e,t);if(s)return Promise.resolve(s)}if(r){let s=await r(e,t);if(s)return s}return B(it,e,t)}var lt=y.ResolverFactory.createResolver({fileSystem:new y.CachedInputFileSystem(V,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:z}),ot=y.ResolverFactory.createResolver({fileSystem:new y.CachedInputFileSystem(V,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:z});async function ce(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let s=globalThis.__tw_resolve(e,t);if(s)return Promise.resolve(s)}if(r){let s=await r(e,t);if(s)return s}return B(lt,e,t).catch(()=>B(ot,e,t))}function B(e,t,r){return new Promise((s,i)=>e.resolve({},r,t,{},(l,n)=>{if(l)return i(l);s(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var xe=class{constructor(t=r=>void process.stderr.write(`${r}
11
- `)){this.defaultFlush=t}#r=new x(()=>({value:0}));#t=new x(()=>({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 o=n.split("//").length;r.push(`${" ".repeat(o)}${n} ${_(ye(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
12
- Timers:`);let i=-1/0,l=new Map;for(let[n,{value:a}]of this.#t){let o=`${(Number(a)/1e6).toFixed(2)}ms`;l.set(n,o),i=Math.max(i,o.length)}for(let n of this.#t.keys()){let a=n.split("//").length;r.push(`${_(`[${l.get(n).padStart(i," ")}]`)}${" ".repeat(a-1)}${a===1?" ":_(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":_(ye(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}t(`
13
- ${r.join(`
3
+ `);let r=[],t=[],i=null,o="",l;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);switch(s){case at:{o+=e[n]+e[n+1],n++;break}case Tr:{if(o.length>0){let c=E(o);i?i.nodes.push(c):r.push(c),o=""}let a=E(e[n]);i?i.nodes.push(a):r.push(a);break}case st:case ut:case ct:case ft:case pt:case dt:case mt:case gt:{if(o.length>0){let f=E(o);i?i.nodes.push(f):r.push(f),o=""}let a=n,c=n+1;for(;c<e.length&&(l=e.charCodeAt(c),!(l!==st&&l!==ut&&l!==ct&&l!==ft&&l!==pt&&l!==dt&&l!==mt&&l!==gt));c++);n=c-1;let p=Ar(e.slice(a,c));i?i.nodes.push(p):r.push(p);break}case Vr:case Sr:{let a=n;for(let c=n+1;c<e.length;c++)if(l=e.charCodeAt(c),l===at)c+=1;else if(l===s){n=c;break}o+=e.slice(a,n+1);break}case $r:{let a=xr(o,[]);o="",i?i.nodes.push(a):r.push(a),t.push(a),i=a;break}case Cr:{let a=t.pop();if(o.length>0){let c=E(o);a?.nodes.push(c),o=""}t.length>0?i=t[t.length-1]:i=null;break}default:o+=String.fromCharCode(s)}}return o.length>0&&r.push(E(o)),r}var Er=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function ht(e){return e.indexOf("(")!==-1&&Er.some(r=>e.includes(`${r}(`))}var v=class extends Map{constructor(t){super();this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t,this),this.set(t,i)),i}};var Un=new Uint8Array(256);var ke=new Uint8Array(256);function S(e,r){let t=0,i=[],o=0,l=e.length,n=r.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(t===0&&a===n){i.push(e.slice(o,s)),o=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let c=e.charCodeAt(s);if(c===92){s+=1;continue}if(c===a)break}break;case 40:ke[t]=41,t++;break;case 91:ke[t]=93,t++;break;case 123:ke[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===ke[t-1]&&t--;break}}return i.push(e.slice(o)),i}var Ie=(n=>(n[n.Continue=0]="Continue",n[n.Skip=1]="Skip",n[n.Stop=2]="Stop",n[n.Replace=3]="Replace",n[n.ReplaceSkip=4]="ReplaceSkip",n[n.ReplaceStop=5]="ReplaceStop",n))(Ie||{}),w={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function k(e,r){typeof r=="function"?vt(e,r):vt(e,r.enter,r.exit)}function vt(e,r=()=>w.Continue,t=()=>w.Continue){let i=[[e,0,null]],o={parent:null,depth:0,path(){let l=[];for(let n=1;n<i.length;n++){let s=i[n][2];s&&l.push(s)}return l}};for(;i.length>0;){let l=i.length-1,n=i[l],s=n[0],a=n[1],c=n[2];if(a>=s.length){i.pop();continue}if(o.parent=c,o.depth=l,a>=0){let d=s[a],m=r(d,o)??w.Continue;switch(m.kind){case 0:{d.nodes&&d.nodes.length>0&&i.push([d.nodes,0,d]),n[1]=~a;continue}case 2:return;case 1:{n[1]=~a;continue}case 3:{s.splice(a,1,...m.nodes);continue}case 5:{s.splice(a,1,...m.nodes);return}case 4:{s.splice(a,1,...m.nodes),n[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ie[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let p=~a,f=s[p],u=t(f,o)??w.Continue;switch(u.kind){case 0:n[1]=p+1;continue;case 2:return;case 3:{s.splice(p,1,...u.nodes),n[1]=p+u.nodes.length;continue}case 5:{s.splice(p,1,...u.nodes);return}case 4:{s.splice(p,1,...u.nodes),n[1]=p+u.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ie[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function wt(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Q),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Q),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Q),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Q(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Q(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function Ke(e){if(e===null)return"";let r=Pr(e.value),t=r?e.value.slice(4,-1):e.value,[i,o]=r?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${ze(t)}${o}`:e.kind==="named"?`/${e.value}`:""}var Nr=new v(e=>{let r=x(e),t=new Set;return k(r,(i,o)=>{let l=o.parent===null?r:o.parent.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let n=l.indexOf(i)??-1;if(n===-1)return;let s=l[n-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l[n+1];if(a?.kind!=="separator"||a.value!==" ")return;t.add(s),t.add(a)}else i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(l[0]===i||l[l.length-1]===i)&&t.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),t.size>0&&k(r,i=>{if(t.has(i))return t.delete(i),w.ReplaceSkip([])}),Le(r),C(r)});function ze(e){return Nr.get(e)}var Gn=new v(e=>{let r=x(e);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?C(r[2].nodes):e});function Le(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ie(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ie(r.value);for(let t=0;t<r.nodes.length;t++)Le([r.nodes[t]]);break}r.value=ie(r.value),Le(r.nodes);break}case"separator":r.value=ie(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=ie(r.value));break}default:Or(r)}}var Rr=new v(e=>{let r=x(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Pr(e){return Rr.get(e)}function Or(e){throw new Error(`Unexpected value: ${e}`)}function ie(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var _r=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 Dr=["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"],Ur=new RegExp(`^${I.source}(${Dr.join("|")})$`);function kt(e){return Ur.test(e)||ht(e)}var Ir=["deg","rad","grad","turn"],oo=new RegExp(`^${I.source}(${Ir.join("|")})$`);var lo=new RegExp(`^${I.source} +${I.source} +${I.source}$`);function $(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function X(e){return Lr(e,.25)}function Lr(e,r){let t=Number(e);return t>=0&&t%r===0&&String(t)===String(e)}function ne(e,r){if(r===null)return e;let t=Number(r);return Number.isNaN(t)||(r=`${t*100}%`),r==="100%"?e:`color-mix(in oklab, ${e} ${r}, transparent)`}var zr={"--alpha":Mr,"--spacing":Fr,"--theme":jr,theme:Wr};function Mr(e,r,t,...i){let[o,l]=S(t,"/").map(n=>n.trim());if(!o||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${o||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${o||"var(--my-color)"} / ${l||"50%"})\``);return ne(o,l)}function Fr(e,r,t,...i){if(!t)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 o=e.theme.resolve(null,["--spacing"]);if(!o)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${o} * ${t})`}function jr(e,r,t,...i){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let o=!1;t.endsWith(" inline")&&(o=!0,t=t.slice(0,-7)),r.kind==="at-rule"&&(o=!0);let l=e.resolveThemeValue(t,o);if(!l){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return l;let n=i.join(", ");if(n==="initial")return l;if(l==="initial")return n;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let s=x(l);return qr(s,n),C(s)}return l}function Wr(e,r,t,...i){t=Br(t);let o=e.resolveThemeValue(t);if(!o&&i.length>0)return i.join(", ");if(!o)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return o}var To=new RegExp(Object.keys(zr).map(e=>`${e}\\(`).join("|"));function Br(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],l=e[i+1];o==="\\"&&(l===t||l==="\\")?(r+=l,i++):r+=o}return r}function qr(e,r){k(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${r}`});else{let i=t.nodes[t.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=r)}})}function Me(e,r){let t=e.length,i=r.length,o=t<i?t:i;for(let l=0;l<o;l++){let n=e.charCodeAt(l),s=r.charCodeAt(l);if(n>=48&&n<=57&&s>=48&&s<=57){let a=l,c=l+1,p=l,f=l+1;for(n=e.charCodeAt(c);n>=48&&n<=57;)n=e.charCodeAt(++c);for(s=r.charCodeAt(f);s>=48&&s<=57;)s=r.charCodeAt(++f);let u=e.slice(a,c),d=r.slice(p,f),m=Number(u)-Number(d);if(m)return m;if(u<d)return-1;if(u>d)return 1;continue}if(n!==s)return n-s}return e.length-r.length}function xt(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let r=1,t=r,i=e.length-1;for(;ee(e.charCodeAt(r));)r++;{for(t=r;r<i;r++){let p=e.charCodeAt(r);if(p===92){r++;continue}if(!(p>=65&&p<=90)&&!(p>=97&&p<=122)&&!(p>=48&&p<=57)&&!(p===45||p===95))break}if(t===r)return null}let o=e.slice(t,r);for(;ee(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:null,quote:null,value:null,sensitivity:null};let l=null,n=e.charCodeAt(r);if(n===61)l="=",r++;else if((n===126||n===124||n===94||n===36||n===42)&&e.charCodeAt(r+1)===61)l=e[r]+"=",r+=2;else return null;for(;ee(e.charCodeAt(r));)r++;if(r===i)return null;let s="",a=null;if(n=e.charCodeAt(r),n===39||n===34){a=e[r],r++,t=r;for(let p=r;p<i;p++){let f=e.charCodeAt(p);f===n?r=p+1:f===92&&p++}s=e.slice(t,r-1)}else{for(t=r;r<i&&!ee(e.charCodeAt(r));)r++;s=e.slice(t,r)}for(;ee(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:l,quote:a,value:s,sensitivity:null};let c=null;switch(e.charCodeAt(r)){case 105:case 73:{c="i",r++;break}case 115:case 83:{c="s",r++;break}default:return null}for(;ee(e.charCodeAt(r));)r++;return r!==i?null:{attribute:o,operator:l,quote:a,value:s,sensitivity:c}}function ee(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Hr=/^[a-zA-Z0-9-_%/\.]+$/;function je(e){if(e[0]==="container")return null;e=e.slice(),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 r of e)if(!Hr.test(r))return null;return e.map((r,t,i)=>r==="1"&&t!==i.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(t,i,o)=>`${i}-${o.toLowerCase()}`)).filter((r,t)=>r!=="DEFAULT"||t!==e.length-1).join("-")}function Zr(e){return{kind:"combinator",value:e}}function Yr(e,r){return{kind:"function",value:e,nodes:r}}function W(e){return{kind:"selector",value:e}}function Jr(e){return{kind:"separator",value:e}}function Qr(e){return{kind:"value",value:e}}function B(e){let r="";for(let t of e)switch(t.kind){case"combinator":case"selector":case"separator":case"value":{r+=t.value;break}case"function":r+=t.value+"("+B(t.nodes)+")"}return r}var Ct=92,Xr=93,St=41,ei=58,$t=44,ti=34,ri=46,Vt=62,Tt=10,ii=35,Et=91,Nt=40,Rt=43,ni=39,Pt=32,Ot=9,_t=126,oi=38,li=42;function le(e){e=e.replaceAll(`\r
4
+ `,`
5
+ `);let r=[],t=[],i=null,o="",l;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);switch(s){case $t:case Vt:case Tt:case Pt:case Rt:case Ot:case _t:{if(o.length>0){let u=W(o);i?i.nodes.push(u):r.push(u),o=""}let a=n,c=n+1;for(;c<e.length&&(l=e.charCodeAt(c),!(l!==$t&&l!==Vt&&l!==Tt&&l!==Pt&&l!==Rt&&l!==Ot&&l!==_t));c++);n=c-1;let p=e.slice(a,c),f=p.trim()===","?Jr(p):Zr(p);i?i.nodes.push(f):r.push(f);break}case Nt:{let a=Yr(o,[]);if(o="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let c=n+1,p=0;for(let u=n+1;u<e.length;u++){if(l=e.charCodeAt(u),l===Nt){p++;continue}if(l===St){if(p===0){n=u;break}p--}}let f=n;a.nodes.push(Qr(e.slice(c,f))),o="",n=f,i?i.nodes.push(a):r.push(a);break}i?i.nodes.push(a):r.push(a),t.push(a),i=a;break}case St:{let a=t.pop();if(o.length>0){let c=W(o);a.nodes.push(c),o=""}t.length>0?i=t[t.length-1]:i=null;break}case ri:case ei:case ii:{if(o.length>0){let a=W(o);i?i.nodes.push(a):r.push(a)}o=e[n];break}case Et:{if(o.length>0){let p=W(o);i?i.nodes.push(p):r.push(p)}o="";let a=n,c=0;for(let p=n+1;p<e.length;p++){if(l=e.charCodeAt(p),l===Et){c++;continue}if(l===Xr){if(c===0){n=p;break}c--}}o+=e.slice(a,n+1);break}case ni:case ti:{let a=n;for(let c=n+1;c<e.length;c++)if(l=e.charCodeAt(c),l===Ct)c+=1;else if(l===s){n=c;break}o+=e.slice(a,n+1);break}case oi:case li:{if(o.length>0){let a=W(o);i?i.nodes.push(a):r.push(a),o=""}i?i.nodes.push(W(e[n])):r.push(W(e[n]));break}case Ct:{o+=e[n]+e[n+1],n+=1;break}default:o+=e[n]}}return o.length>0&&r.push(W(o)),r}var ai=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,H=new v(e=>{let r=ai.exec(e);if(!r)return null;let t=r.groups?.value;if(t===void 0)return null;let i=Number(t);if(Number.isNaN(i))return null;let o=r.groups?.unit;return o===void 0?[i,null]:[i,o]});function Dt(e,r=null){let t=!1,i=x(e);return k(i,{exit(o){if(o.kind==="word"&&o.value!=="0"){let l=si(o.value,r);return l===null||l===o.value?void 0:(t=!0,w.ReplaceSkip(E(l)))}else if(o.kind==="function"&&(o.value==="calc"||o.value==="")){if(o.nodes.length!==5)return;let l=H.get(o.nodes[0].value),n=o.nodes[2].value,s=H.get(o.nodes[4].value);if(n==="*"&&(l?.[0]===0&&l?.[1]===null||s?.[0]===0&&s?.[1]===null))return t=!0,w.ReplaceSkip(E("0"));if(l===null||s===null)return;switch(n){case"*":{if(l[1]===s[1]||l[1]===null&&s[1]!==null||l[1]!==null&&s[1]===null)return t=!0,w.ReplaceSkip(E(`${l[0]*s[0]}${l[1]??""}`));break}case"+":{if(l[1]===s[1])return t=!0,w.ReplaceSkip(E(`${l[0]+s[0]}${l[1]??""}`));break}case"-":{if(l[1]===s[1])return t=!0,w.ReplaceSkip(E(`${l[0]-s[0]}${l[1]??""}`));break}case"/":{if(s[0]!==0&&(l[1]===null&&s[1]===null||l[1]!==null&&s[1]===null))return t=!0,w.ReplaceSkip(E(`${l[0]/s[0]}${l[1]??""}`));break}}}}}),t?C(i):e}function si(e,r=null){let t=H.get(e);if(t===null)return null;let[i,o]=t;if(o===null)return`${i}`;if(i===0&&kt(e))return"0";switch(o.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return r!==null?`${i*r}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${o}`}}var Ut=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,q=new v(e=>{let{rem:r,designSystem:t}=e;return new v(i=>{try{i=t.theme.prefix&&!i.startsWith(t.theme.prefix)?`${t.theme.prefix}:${i}`:i;let o=[L(".x",[T("@apply",i)])];return ui(t,()=>{for(let n of t.parseCandidate(i))t.compileAstNodes(n,1);ae(o,t)}),k(o,n=>{if(n.kind==="declaration"){if(n.value===void 0||n.property==="--tw-sort")return w.Replace([]);n.value.includes("%")&&(Ut.lastIndex=0,n.value=n.value.replaceAll(Ut,s=>`${Number(s.slice(0,-1))}%`))}else{if(n.kind==="context"||n.kind==="at-root")return w.Replace(n.nodes);if(n.kind==="comment")return w.Replace([]);if(n.kind==="at-rule"&&n.name==="@property")return w.Replace([])}}),k(o,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let s=!1,a=x(n.value),c=new Set;k(a,p=>{if(p.kind!=="function"||p.value!=="var"||p.nodes.length!==1&&p.nodes.length<3)return;let f=p.nodes[0].value;t.theme.prefix&&f.startsWith(`--${t.theme.prefix}-`)&&(f=f.slice(`--${t.theme.prefix}-`.length));let u=t.resolveThemeValue(f);if(!c.has(f)&&(c.add(f),u!==void 0&&(p.nodes.length===1&&(s=!0,p.nodes.push(...x(`,${u}`))),p.nodes.length>=3))){let d=C(p.nodes),m=`${p.nodes[0].value},${u}`;if(d===m)return s=!0,w.Replace(x(u))}}),s&&(n.value=C(a))}n.value=Dt(n.value,r),n.value=ze(n.value)}}),P(o)}catch{return Symbol()}})}),Be=new v(e=>{let{designSystem:r}=e,t=q.get(e),i=new v(()=>[]);for(let[o,l]of r.getClassList()){let n=t.get(o);if(typeof n=="string"){if(o[0]==="-"&&o.endsWith("-0")){let s=t.get(o.slice(1));if(typeof s=="string"&&n===s)continue}i.get(n).push(o);for(let s of l.modifiers){if(X(s))continue;let a=`${o}/${s}`,c=t.get(a);typeof c=="string"&&i.get(c).push(a)}}}return i}),be=new v(e=>{let{designSystem:r}=e;return new v(t=>{try{t=r.theme.prefix&&!t.startsWith(r.theme.prefix)?`${r.theme.prefix}:${t}`:t;let i=[L(".x",[T("@apply",`${t}:flex`)])];return ae(i,r),k(i,l=>{if(l.kind==="at-rule"&&l.params.includes(" "))l.params=l.params.replaceAll(" ","");else if(l.kind==="rule"){let n=le(l.selector),s=!1;k(n,a=>{if(a.kind==="separator"&&a.value!==" ")a.value=a.value.trim(),s=!0;else if(a.kind==="function"&&a.value===":is"){if(a.nodes.length===1)return s=!0,w.Replace(a.nodes);if(a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":")return s=!0,w.Replace(a.nodes[1])}else a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(s=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),s&&(l.selector=B(n))}}),P(i)}catch{return Symbol()}})}),It=new v(e=>{let{designSystem:r}=e,t=be.get(e),i=new v(()=>[]);for(let[o,l]of r.variants.entries())if(l.kind==="static"){let n=t.get(o);if(typeof n!="string")continue;i.get(n).push(o)}return i});function ui(e,r){let t=e.theme.values.get,i=new Set;e.theme.values.get=o=>{let l=t.call(e.theme.values,o);return l===void 0||l.options&1&&(i.add(l),l.options&=-2),l};try{return r()}finally{e.theme.values.get=t;for(let o of i)o.options|=1}}function M(e,r){for(let t in e)delete e[t];return Object.assign(e,r)}function se(e){let r=[];for(let t of S(e,".")){if(!t.includes("[")){r.push(t);continue}let i=0;for(;;){let o=t.indexOf("[",i),l=t.indexOf("]",o);if(o===-1||l===-1)break;o>i&&r.push(t.slice(i,o)),r.push(t.slice(o+1,l)),i=l+1}i<=t.length-1&&r.push(t.slice(i))}return r}var pl=new v(e=>new v((r=null)=>({designSystem:e,rem:r})));var dl=new v(e=>{let r=e.designSystem,t=r.theme.prefix?`${r.theme.prefix}:`:"",i=pi.get(e),o=mi.get(e);return new v((l,n)=>{for(let s of r.parseCandidate(l)){let a=s.variants.slice().reverse().flatMap(f=>i.get(f)),c=s.important;if(c||a.length>0){let u=n.get(r.printCandidate({...s,variants:[],important:!1}));return r.theme.prefix!==null&&a.length>0&&(u=u.slice(t.length)),a.length>0&&(u=`${a.map(d=>r.printVariant(d)).join(":")}:${u}`),c&&(u+="!"),r.theme.prefix!==null&&a.length>0&&(u=`${t}${u}`),u}let p=o.get(l);if(p!==l)return p}return l})}),fi=[wi,Ni,Ri,Vi],pi=new v(e=>new v(r=>{let t=[r];for(let i of fi)for(let o of t.splice(0)){let l=i(Q(o),e);if(Array.isArray(l)){t.push(...l);continue}else t.push(l)}return t})),di=[hi,vi,xi,Ci,$i,Ti,Ei,Pi],mi=new v(e=>{let r=e.designSystem;return new v(t=>{for(let i of r.parseCandidate(t)){let o=wt(i);for(let n of di)o=n(o,e);let l=r.printCandidate(o);if(t!==l)return l}return t})}),gi=["t","tr","r","br","b","bl","l","tl"];function hi(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let r=e.root.slice(15);return gi.includes(r)&&(e.root=`bg-linear-to-${r}`),e}return e}function vi(e,r){let t=Kt.get(r.designSystem);if(e.kind==="arbitrary"){let[i,o]=t(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,o!==null&&(e.modifier=o))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,o]=t(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,o!==null&&(e.modifier=o))}return e}function wi(e,r){let t=Kt.get(r.designSystem),i=Ce(e);for(let[o]of i)if(o.kind==="arbitrary"){let[l]=t(o.selector,2);l!==o.selector&&(o.selector=l)}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[l]=t(o.value.value,2);l!==o.value.value&&(o.value.value=l)}return e}var Kt=new v(e=>{return r(e);function r(t){function i(s,a=0){let c=x(s);if(a&2)return[xe(c,n),null];let p=0,f=0;if(k(c,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,k(m.nodes,g=>g.kind==="separator"&&g.value.includes(",")?w.Stop:g.kind==="word"&&g.value==="/"?(f+=1,w.Stop):w.Skip))}),p===0)return[s,null];if(f===0)return[xe(c,l),null];if(f>1)return[xe(c,n),null];let u=null;return[xe(c,(m,g)=>{let h=S(m,"/").map(b=>b.trim());if(h.length>2)return null;if(c.length===1&&h.length===2&&a&1){let[b,y]=h;if(/^\d+%$/.test(y))u={kind:"named",value:y.slice(0,-1)};else if(/^0?\.\d+$/.test(y)){let N=Number(y)*100;u={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else u={kind:"arbitrary",value:y};m=b}return l(m,g)||n(m,g)}),u]}function o(s,a=!0){let c=`--${je(se(s))}`;return t.theme.get([c])?a&&t.theme.prefix?`--${t.theme.prefix}-${c.slice(2)}`:c:null}function l(s,a){let c=o(s);if(c)return a?`var(${c}, ${a})`:`var(${c})`;let p=se(s);if(p[0]==="spacing"&&t.theme.get(["--spacing"])){let f=p[1];return X(f)?`--spacing(${f})`:null}return null}function n(s,a){let c=S(s,"/").map(u=>u.trim());s=c.shift();let p=o(s,!1);if(!p)return null;let f=c.length>0?`/${c.join("/")}`:"";return a?`--theme(${p}${f}, ${a})`:`--theme(${p}${f})`}return i}});function xe(e,r){return k(e,(t,i)=>{if(t.kind==="function"&&t.value==="theme"){if(t.nodes.length<1)return;t.nodes[0].kind==="separator"&&t.nodes[0].value.trim()===""&&t.nodes.shift();let o=t.nodes[0];if(o.kind!=="word")return;let l=o.value,n=1;for(let c=n;c<t.nodes.length&&!t.nodes[c].value.includes(",");c++)l+=C([t.nodes[c]]),n=c+1;l=ki(l);let s=t.nodes.slice(n+1),a=s.length>0?r(l,C(s)):r(l);if(a===null)return;if(i.parent){let c=i.parent.nodes.indexOf(t)-1;for(;c!==-1;){let p=i.parent.nodes[c];if(p.kind==="separator"&&p.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(a=`(${a})`);break}}return w.Replace(x(a))}}),C(e)}function ki(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],l=e[i+1];o==="\\"&&(l===t||l==="\\")?(r+=l,i++):r+=o}return r}function*Ce(e){function*r(t,i=null){yield[t,i],t.kind==="compound"&&(yield*r(t.variant,t))}yield*r(e,null)}function F(e,r){return e.parseCandidate(e.theme.prefix&&!r.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${r}`:r)}function yi(e,r){let t=e.printCandidate(r);return e.theme.prefix&&t.startsWith(`${e.theme.prefix}:`)?t.slice(e.theme.prefix.length+1):t}var bi=new v(e=>{let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;let t=H.get(r);if(!t)return null;let[i,o]=t;return new v(l=>{let n=H.get(l);if(!n)return null;let[s,a]=n;return a!==o?null:s/i})});function xi(e,r){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let t=r.designSystem,i=Be.get(r),o=q.get(r),l=t.printCandidate(e),n=o.get(l);if(typeof n!="string")return e;for(let a of s(n,e)){let c=t.printCandidate(a);if(o.get(c)===n&&Ai(t,e,a))return a}return e;function*s(a,c){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&c.modifier){let f={...c,modifier:null},u=o.get(t.printCandidate(f));if(typeof u=="string")for(let d of s(u,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of F(t,p[0]))yield f;else if(p.length===0){let f=c.kind==="arbitrary"?c.value:c.value?.value??null;if(f===null)return;let u=bi.get(t)?.get(f)??null,d="";u!==null&&u<0&&(d="-",u=Math.abs(u));for(let m of Array.from(t.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){d&&(m=`${d}${m}`);for(let g of F(t,`${m}-${f}`))yield g;if(c.modifier)for(let g of F(t,`${m}-${f}${c.modifier}`))yield g;if(u!==null){for(let g of F(t,`${m}-${u}`))yield g;if(c.modifier)for(let g of F(t,`${m}-${u}${Ke(c.modifier)}`))yield g}for(let g of F(t,`${m}-[${f}]`))yield g;if(c.modifier)for(let g of F(t,`${m}-[${f}]${Ke(c.modifier)}`))yield g}}}}}function Ai(e,r,t){let i=null;if(r.kind==="functional"&&r.value?.kind==="arbitrary"&&r.value.value.includes("var(--")?i=r.value.value:r.kind==="arbitrary"&&r.value.includes("var(--")&&(i=r.value),i===null)return!0;let o=e.candidatesToCss([e.printCandidate(t)]).join(`
6
+ `),l=!0;return k(x(i),n=>{if(n.kind==="function"&&n.value==="var"){let s=n.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(o)||o.includes(`${s}:`))return l=!1,w.Stop}}),l}function Ci(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let t=r.designSystem,i=Be.get(r),o=q.get(r),l=t.printCandidate(e),n=o.get(l);if(typeof n!="string")return e;for(let a of s(n,e)){let c=t.printCandidate(a);if(o.get(c)===n)return a}return e;function*s(a,c){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&c.modifier){let f={...c,modifier:null},u=o.get(t.printCandidate(f));if(typeof u=="string")for(let d of s(u,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of F(t,p[0]))yield f}}}var Si=new Map([["order-none","order-0"]]);function $i(e,r){let t=r.designSystem,i=q.get(r),o=yi(t,e),l=Si.get(o)??null;if(l===null)return e;let n=i.get(o);if(typeof n!="string")return e;let s=i.get(l);if(typeof s!="string"||n!==s)return e;let[a]=F(t,l);return a}function Vi(e,r){let t=r.designSystem,i=be.get(r),o=It.get(r),l=Ce(e);for(let[n]of l){if(n.kind==="compound")continue;let s=t.printVariant(n),a=i.get(s);if(typeof a!="string")continue;let c=o.get(a);if(c.length!==1)continue;let p=c[0],f=t.parseVariant(p);f!==null&&M(n,f)}return e}function Ti(e,r){let t=r.designSystem,i=q.get(r);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let o=t.printCandidate({...e,value:{...e.value,dataType:null}});i.get(t.printCandidate(e))===i.get(o)&&(e.value.dataType=null)}return e}function Ei(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=r.designSystem,i=q.get(r),o=i.get(t.printCandidate(e));if(o===null)return e;for(let l of zt(e))if(i.get(t.printCandidate({...e,value:l}))===o)return e.value=l,e;return e}function Ni(e){let r=Ce(e);for(let[t]of r)if(t.kind==="functional"&&t.root==="data"&&t.value?.kind==="arbitrary"&&!t.value.value.includes("="))t.value={kind:"named",value:t.value.value};else if(t.kind==="functional"&&t.root==="aria"&&t.value?.kind==="arbitrary"&&(t.value.value.endsWith("=true")||t.value.value.endsWith('="true"')||t.value.value.endsWith("='true'"))){let[i,o]=S(t.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;t.value={kind:"named",value:t.value.value.slice(0,t.value.value.indexOf("="))}}else t.kind==="functional"&&t.root==="supports"&&t.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(t.value.value)&&(t.value={kind:"named",value:t.value.value});return e}function*zt(e,r=e.value?.value??"",t=new Set){if(t.has(r))return;if(t.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&X(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[l,n]=r.split("/");$(l)&&$(n)&&(yield{kind:"named",value:l,fraction:`${l}/${n}`})}let i=new Set;for(let l of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(l[0].trim());let o=Array.from(i).sort((l,n)=>l.length-n.length);for(let l of o)yield*zt(e,l,t)}function Lt(e){return!e.some(r=>r.kind==="separator"&&r.value.trim()===",")}function Ae(e){let r=e.value.trim();return e.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function Ri(e,r){let t=[e],i=r.designSystem,o=be.get(r),l=Ce(e);for(let[n,s]of l)if(n.kind==="compound"&&(n.root==="has"||n.root==="not"||n.root==="in")&&n.modifier!==null&&"modifier"in n.variant&&(n.variant.modifier=n.modifier,n.modifier=null),n.kind==="arbitrary"){if(n.relative)continue;let a=le(n.selector.trim());if(!Lt(a))continue;if(s===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==="*"){M(n,i.parseVariant("*"));continue}if(s===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==="*"){M(n,i.parseVariant("**"));continue}if(s===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),M(n,i.parseVariant(`in-[${B(a)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let u=o.get(i.printVariant(n)),d=x(B(a)),m=!1;if(k(d,g=>{if(g.kind==="word"&&g.value==="not")return m=!0,w.Replace([])}),d=x(C(d)),k(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${C(d)}]`);if(g===null)continue;let h=o.get(i.printVariant(g));if(u===h){M(n,g);continue}}}let c=null;s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&Ae(a[2])&&(a=[a[2]],c=i.parseVariant("*")),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&Ae(a[2])&&(a=[a[2]],c=i.parseVariant("**"));let p=a.filter(u=>!(u.kind==="selector"&&u.value.trim()==="&"));if(p.length!==1)continue;let f=p[0];if(f.kind==="function"&&f.value===":is"){if(!Lt(f.nodes)||f.nodes.length!==1||!Ae(f.nodes[0]))continue;f=f.nodes[0]}if(f.kind==="function"&&f.value[0]===":"||f.kind==="selector"&&f.value[0]===":"){let u=f,d=!1;if(u.kind==="function"&&u.value===":not"){if(d=!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=(h=>{if(h===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(h===":nth-child"&&u.kind==="function"&&u.nodes.length===1&&u.nodes[0].kind==="value"&&u.nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,y]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(h===b&&u.kind==="function"&&u.nodes.length===1)return u.nodes.length===1&&u.nodes[0].kind==="value"&&$(u.nodes[0].value)?`${y}-${u.nodes[0].value}`:`${y}-[${B(u.nodes)}]`;if(d){let b=o.get(i.printVariant(n)),y=o.get(`not-[${h}]`);if(b===y)return`[&${h}]`}return null})(u.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;M(n,g)}else if(Ae(f)){let u=xt(f.value);if(u===null)continue;if(u.attribute.startsWith("data-")){let d=u.attribute.slice(5);M(n,{kind:"functional",root:"data",modifier:null,value:u.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}else if(u.attribute.startsWith("aria-")){let d=u.attribute.slice(5);M(n,{kind:"functional",root:"aria",modifier:null,value:u.value===null?{kind:"arbitrary",value:d}:u.operator==="="&&u.value==="true"&&u.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${u.attribute}${u.operator}${u.quote??""}${u.value}${u.quote??""}${u.sensitivity?` ${u.sensitivity}`:""}`}})}}if(c)return[c,n]}return t}function Pi(e,r){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let t=r.designSystem,i=q.get(r),o=i.get(t.printCandidate(e)),l=e.modifier;if(o===i.get(t.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let n={kind:"named",value:l.value.endsWith("%")?l.value.includes(".")?`${Number(l.value.slice(0,-1))}`:l.value.slice(0,-1):l.value,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}{let n={kind:"named",value:`${parseFloat(l.value)*100}`,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}return e}function ue(e,r,{onInvalidCandidate:t,respectImportant:i}={}){let o=new Map,l=[],n=new Map;for(let c of e){if(r.invalidCandidates.has(c)){t?.(c);continue}let p=r.parseCandidate(c);if(p.length===0){t?.(c);continue}n.set(c,p)}let s=0;(i??!0)&&(s|=1);let a=r.getVariantOrder();for(let[c,p]of n){let f=!1;for(let u of p){let d=r.compileAstNodes(u,s);if(d.length!==0){f=!0;for(let{node:m,propertySort:g}of d){let h=0n;for(let b of u.variants)h|=1n<<BigInt(a.get(b));o.set(m,{properties:g,variants:h,candidate:c}),l.push(m)}}}f||t?.(c)}return l.sort((c,p)=>{let f=o.get(c),u=o.get(p);if(f.variants-u.variants!==0n)return Number(f.variants-u.variants);let d=0;for(;d<f.properties.order.length&&d<u.properties.order.length&&f.properties.order[d]===u.properties.order[d];)d+=1;return(f.properties.order[d]??1/0)-(u.properties.order[d]??1/0)||u.properties.count-f.properties.count||Me(f.candidate,u.candidate)}),{astNodes:l,nodeSorting:o}}function ae(e,r){let t=0,i=K("&",e),o=new Set,l=new v(()=>new Set),n=new v(()=>new Set);k([i],(f,u)=>{if(f.kind==="at-rule"){if(f.name==="@keyframes")return k(f.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),w.Skip;if(f.name==="@utility"){let d=f.params.replace(/-\*$/,"");n.get(d).add(f),k(f.nodes,m=>{if(!(m.kind!=="at-rule"||m.name!=="@apply")){o.add(f);for(let g of Ft(m,r))l.get(f).add(g)}});return}if(f.name==="@apply"){if(u.parent===null)return;t|=1,o.add(u.parent);for(let d of Ft(f,r))for(let m of u.path())o.has(m)&&l.get(m).add(d)}}});let s=new Set,a=[],c=new Set;function p(f,u=[]){if(!s.has(f)){if(c.has(f)){let d=u[(u.indexOf(f)+1)%u.length];throw f.kind==="at-rule"&&f.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&k(f.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let h of g)for(let b of r.parseCandidate(h))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
7
+
8
+ ${P([f])}
9
+ Relies on:
10
+
11
+ ${P([d])}`)}c.add(f);for(let d of l.get(f))for(let m of n.get(d))u.push(f),p(m,u),u.pop();s.add(f),c.delete(f),a.push(f)}}for(let f of o)p(f);for(let f of a)"nodes"in f&&k(f.nodes,u=>{if(u.kind!=="at-rule"||u.name!=="@apply")return;let d=u.params.split(/(\s+)/g),m={},g=0;for(let[h,b]of d.entries())h%2===0&&(m[b]=g),g+=b.length;{let h=Object.keys(m),b=ue(h,r,{respectImportant:!1,onInvalidCandidate:A=>{if(r.theme.prefix&&!A.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${A}\`. Did you mean \`${r.theme.prefix}:${A}\`?`);if(r.invalidCandidates.has(A))throw new Error(`Cannot apply utility class \`${A}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let R=S(A,":");if(R.length>1){let we=R.pop();if(r.candidatesToCss([we])[0]){let Y=r.candidatesToCss(R.map(J=>`${J}:[--tw-variant-check:1]`)),j=R.filter((J,Oe)=>Y[Oe]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${A}\` because the ${j.map(J=>`\`${J}\``)} variant does not exist.`);{let J=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${A}\` because the ${J.format(j.map(Oe=>`\`${Oe}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${A}\`. 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 \`${A}\``)}}),y=u.src,N=b.astNodes.map(A=>{let R=b.nodeSorting.get(A)?.candidate,we=R?m[R]:void 0;if(A=U(A),!y||!R||we===void 0)return k([A],j=>{j.src=y}),A;let Y=[y[0],y[1],y[2]];return Y[1]+=7+we,Y[2]=Y[1]+R.length,k([A],j=>{j.src=Y}),A}),Pe=[];for(let A of N)if(A.kind==="rule")for(let R of A.nodes)Pe.push(R);else Pe.push(A);return w.Replace(Pe)}});return t}function*Ft(e,r){for(let t of e.params.split(/\s+/g))for(let i of r.parseCandidate(t))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var ce=92,Se=47,$e=42,jt=34,Wt=39,Li=58,Ve=59,O=10,Te=13,fe=32,pe=9,Bt=123,qe=125,Ze=40,qt=41,Ki=91,zi=93,Gt=45,Ge=64,Mi=33;function me(e,r){let t=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],o=[],l=[],n=null,s=null,a="",c="",p=0,f;for(let u=0;u<e.length;u++){let d=e.charCodeAt(u);if(!(d===Te&&(f=e.charCodeAt(u+1),f===O)))if(d===ce)a===""&&(p=u),a+=e.slice(u,u+2),u+=1;else if(d===Se&&e.charCodeAt(u+1)===$e){let m=u;for(let h=u+2;h<e.length;h++)if(f=e.charCodeAt(h),f===ce)h+=1;else if(f===$e&&e.charCodeAt(h+1)===Se){u=h+1;break}let g=e.slice(m,u+1);if(g.charCodeAt(2)===Mi){let h=Je(g.slice(2,-2));o.push(h),t&&(h.src=[t,m,u+1],h.dst=[t,m,u+1])}}else if(d===Wt||d===jt){let m=Ht(e,u,d);a+=e.slice(u,m+1),u=m}else{if((d===fe||d===O||d===pe)&&(f=e.charCodeAt(u+1))&&(f===fe||f===O||f===pe||f===Te&&(f=e.charCodeAt(u+2))&&f==O))continue;if(d===O){if(a.length===0)continue;f=a.charCodeAt(a.length-1),f!==fe&&f!==O&&f!==pe&&(a+=" ")}else if(d===Gt&&e.charCodeAt(u+1)===Gt&&a.length===0){let m="",g=u,h=-1;for(let y=u+2;y<e.length;y++)if(f=e.charCodeAt(y),f===ce)y+=1;else if(f===Wt||f===jt)y=Ht(e,y,f);else if(f===Se&&e.charCodeAt(y+1)===$e){for(let N=y+2;N<e.length;N++)if(f=e.charCodeAt(N),f===ce)N+=1;else if(f===$e&&e.charCodeAt(N+1)===Se){y=N+1;break}}else if(h===-1&&f===Li)h=a.length+y-g;else if(f===Ve&&m.length===0){a+=e.slice(g,y),u=y;break}else if(f===Ze)m+=")";else if(f===Ki)m+="]";else if(f===Bt)m+="}";else if((f===qe||e.length-1===y)&&m.length===0){u=y-1,a+=e.slice(g,y);break}else(f===qt||f===zi||f===qe)&&m.length>0&&e[y]===m[m.length-1]&&(m=m.slice(0,-1));let b=He(a,h);if(!b)throw new Error("Invalid custom property, expected a value");t&&(b.src=[t,g,u],b.dst=[t,g,u]),n?n.nodes.push(b):i.push(b),a=""}else if(d===Ve&&a.charCodeAt(0)===Ge)s=de(a),t&&(s.src=[t,p,u],s.dst=[t,p,u]),n?n.nodes.push(s):i.push(s),a="",s=null;else if(d===Ve&&c[c.length-1]!==")"){let m=He(a);if(!m){if(a.length===0)continue;throw new Error(`Invalid declaration: \`${a.trim()}\``)}t&&(m.src=[t,p,u],m.dst=[t,p,u]),n?n.nodes.push(m):i.push(m),a=""}else if(d===Bt&&c[c.length-1]!==")")c+="}",s=K(a.trim()),t&&(s.src=[t,p,u],s.dst=[t,p,u]),n&&n.nodes.push(s),l.push(n),n=s,a="",s=null;else if(d===qe&&c[c.length-1]!==")"){if(c==="")throw new Error("Missing opening {");if(c=c.slice(0,-1),a.length>0)if(a.charCodeAt(0)===Ge)s=de(a),t&&(s.src=[t,p,u],s.dst=[t,p,u]),n?n.nodes.push(s):i.push(s),a="",s=null;else{let g=a.indexOf(":");if(n){let h=He(a,g);if(!h)throw new Error(`Invalid declaration: \`${a.trim()}\``);t&&(h.src=[t,p,u],h.dst=[t,p,u]),n.nodes.push(h)}}let m=l.pop()??null;m===null&&n&&i.push(n),n=m,a="",s=null}else if(d===Ze)c+=")",a+="(";else if(d===qt){if(c[c.length-1]!==")")throw new Error("Missing opening (");c=c.slice(0,-1),a+=")"}else{if(a.length===0&&(d===fe||d===O||d===pe))continue;a===""&&(p=u),a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===Ge){let u=de(a);t&&(u.src=[t,p,e.length],u.dst=[t,p,e.length]),i.push(u)}if(c.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return o.length>0?o.concat(i):i}function de(e,r=[]){let t=e,i="";for(let o=5;o<e.length;o++){let l=e.charCodeAt(o);if(l===fe||l===pe||l===Ze){t=e.slice(0,o),i=e.slice(o);break}}return T(t.trim(),i.trim(),r)}function He(e,r=e.indexOf(":")){if(r===-1)return null;let t=e.indexOf("!important",r+1);return z(e.slice(0,r).trim(),e.slice(r+1,t===-1?e.length:t).trim(),t!==-1)}function Ht(e,r,t){let i;for(let o=r+1;o<e.length;o++)if(i=e.charCodeAt(o),i===ce)o+=1;else{if(i===t)return o;if(i===Ve&&(e.charCodeAt(o+1)===O||e.charCodeAt(o+1)===Te&&e.charCodeAt(o+2)===O))throw new Error(`Unterminated string: ${e.slice(r,o+1)+String.fromCharCode(t)}`);if(i===O||i===Te&&e.charCodeAt(o+1)===O)throw new Error(`Unterminated string: ${e.slice(r,o)+String.fromCharCode(t)}`)}return r}var Qe={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($(e.value))return e.value}),V=Z(e=>{if($(e.value))return`${e.value}%`}),G=Z(e=>{if($(e.value))return`${e.value}px`}),Yt=Z(e=>{if($(e.value))return`${e.value}ms`}),Ee=Z(e=>{if($(e.value))return`${e.value}deg`}),qi=Z(e=>{if(e.fraction===null)return;let[r,t]=S(e.fraction,"/");if(!(!$(r)||!$(t)))return e.fraction}),Jt=Z(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Gi={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"),...Ee}),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",...G},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:()=>({...Qe}),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"),...G}),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))",...Jt},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))",...Jt},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",...Ee},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",...G},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},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",...G},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ee},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",...Ee},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",...G},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},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",...Yt},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Yt},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 Zi=64;function L(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function T(e,r="",t=[]){return{kind:"at-rule",name:e,params:r,nodes:t}}function K(e,r=[]){return e.charCodeAt(0)===Zi?de(e,r):L(e,r)}function z(e,r,t=!1){return{kind:"declaration",property:e,value:r,important:t}}function Je(e){return{kind:"comment",value:e}}function U(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function P(e,r){let t=0,i={file:null,code:""};function o(n,s=0){let a="",c=" ".repeat(s);if(n.kind==="declaration"){if(a+=`${c}${n.property}: ${n.value}${n.important?" !important":""};
12
+ `,r){t+=c.length;let p=t;t+=n.property.length,t+=2,t+=n.value?.length??0,n.important&&(t+=11);let f=t;t+=2,n.dst=[i,p,f]}}else if(n.kind==="rule"){if(a+=`${c}${n.selector} {
13
+ `,r){t+=c.length;let p=t;t+=n.selector.length,t+=1;let f=t;n.dst=[i,p,f],t+=2}for(let p of n.nodes)a+=o(p,s+1);a+=`${c}}
14
+ `,r&&(t+=c.length,t+=2)}else if(n.kind==="at-rule"){if(n.nodes.length===0){let p=`${c}${n.name} ${n.params};
15
+ `;if(r){t+=c.length;let f=t;t+=n.name.length,t+=1,t+=n.params.length;let u=t;t+=2,n.dst=[i,f,u]}return p}if(a+=`${c}${n.name}${n.params?` ${n.params} `:" "}{
16
+ `,r){t+=c.length;let p=t;t+=n.name.length,n.params&&(t+=1,t+=n.params.length),t+=1;let f=t;n.dst=[i,p,f],t+=2}for(let p of n.nodes)a+=o(p,s+1);a+=`${c}}
17
+ `,r&&(t+=c.length,t+=2)}else if(n.kind==="comment"){if(a+=`${c}/*${n.value}*/
18
+ `,r){t+=c.length;let p=t;t+=2+n.value.length+2;let f=t;n.dst=[i,p,f],t+=1}}else if(n.kind==="context"||n.kind==="at-root")return"";return a}let l="";for(let n of e)l+=o(n,0);return i.code=l,l}function Yi(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var t=e.length;if(t<=1)return e;var i="";if(t>4&&e[3]==="\\"){var o=e[2];(o==="?"||o===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return r!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function Xe(e){let r=Yi(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var tt=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,Qt=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Ji=/(?:gradient|element|cross-fade|image)\(/,Qi=/^\s*data:/i,Xi=/^([a-z]+:)?\/\//,en=/^[A-Z_][.\w-]*\(/i,tn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,rn=/(?<!\\)"/g,nn=/(?: |\\t|\\n|\\f|\\r)+/g,on=e=>Qi.test(e),ln=e=>Xi.test(e);async function Xt({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=me(e),o=[];function l(n){if(n[0]==="/")return n;let s=et.posix.join(Xe(r),n),a=et.posix.relative(Xe(t),s);return a.startsWith(".")||(a="./"+a),a}return k(i,n=>{if(n.kind!=="declaration"||!n.value)return;let s=tt.test(n.value),a=Qt.test(n.value);if(s||a){let c=a?an:er;o.push(c(n.value,l).then(p=>{n.value=p}))}}),o.length&&await Promise.all(o),P(i)}function er(e,r){return rr(e,tt,async t=>{let[i,o]=t;return await tr(o.trim(),i,r)})}async function an(e,r){return await rr(e,Qt,async t=>{let[,i]=t;return await un(i,async({url:l})=>tt.test(l)?await er(l,r):Ji.test(l)?l:await tr(l,l,r))})}async function tr(e,r,t,i="url"){let o="",l=e[0];if((l==='"'||l==="'")&&(o=l,e=e.slice(1,-1)),sn(e))return r;let n=await t(e);return o===""&&n!==encodeURI(n)&&(o='"'),o==="'"&&n.includes("'")&&(o='"'),o==='"'&&n.includes('"')&&(n=n.replace(rn,'\\"')),`${i}(${o}${n}${o})`}function sn(e,r){return ln(e)||on(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||en.test(e)}function un(e,r){return Promise.all(cn(e).map(async({url:t,descriptor:i})=>({url:await r({url:t,descriptor:i}),descriptor:i}))).then(fn)}function cn(e){let r=e.trim().replace(nn," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(tn);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function fn(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function rr(e,r,t){let i,o=e,l="";for(;i=r.exec(o);)l+=o.slice(0,i.index),l+=await t(i),o=o.slice(i.index+i[0].length);return l+=o,l}function sr({base:e,from:r,polyfills:t,onDependency:i,shouldRewriteUrls:o,customCssResolver:l,customJsResolver:n}){return{base:e,polyfills:t,from:r,async loadModule(s,a){return cr(s,a,i,n)},async loadStylesheet(s,a){let c=await fr(s,a,i,l);return o&&(c.content=await Xt({css:c.content,root:e,base:c.base})),c}}}async function ur(e,r){if(e.root&&e.root!=="none"){let t=/[*{]/,i=[];for(let l of e.root.pattern.split("/")){if(t.test(l))break;i.push(l)}if(!await ar.stat(ge.resolve(r,i.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function lc(e,r){let t=await gn(e,sr(r));return await ur(t,r.base),t}async function ac(e,r){let t=await mn(e,sr(r));return await ur(t,r.base),t}async function sc(e,{base:r}){return dn(e,{base:r,async loadModule(t,i){return cr(t,i,()=>{})},async loadStylesheet(t,i){return fr(t,i,()=>{})}})}async function cr(e,r,t,i){if(e[0]!=="."){let s=await lr(e,r,i);if(!s)throw new Error(`Could not resolve '${e}' from '${r}'`);let a=await or(ir(s).href);return{path:s,base:ge.dirname(s),module:a.default??a}}let o=await lr(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);let[l,n]=await Promise.all([or(ir(o).href+"?id="+Date.now()),lt(o)]);for(let s of n)t(s);return{path:o,base:ge.dirname(o),module:l.default??l}}async function fr(e,r,t,i){let o=await vn(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);if(t(o),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(o,"utf-8");if(n)return{path:o,base:ge.dirname(o),content:n}}let l=await ar.readFile(o,"utf-8");return{path:o,base:ge.dirname(o),content:l}}var nr=null;async function or(e){if(typeof globalThis.__tw_load=="function"){let r=await globalThis.__tw_load(e);if(r)return r}try{return await import(e)}catch{return nr??=pn(import.meta.url,{moduleCache:!1,fsCache:!1}),await nr.import(e)}}var nt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],hn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(it,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:nt});async function vn(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return rt(hn,e,r)}var wn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(it,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:nt}),kn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(it,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:nt});async function lr(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return rt(wn,e,r).catch(()=>rt(kn,e,r))}function rt(e,r,t){return new Promise((i,o)=>e.resolve({},t,r,{},(l,n)=>{if(l)return o(l);i(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var pr=class{constructor(r=t=>void process.stderr.write(`${t}
19
+ `)){this.defaultFlush=r}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(o=>o.label).join("//"),i=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:r,namespace:t,value:process.hrtime.bigint()})}end(r){let t=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==r)throw new Error(`Mismatched timer label: \`${r}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),o=t-i.value;this.#t.get(i.id).value+=o}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],i=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:s}]of this.#r.entries()){if(this.#t.has(n))continue;t.length===0&&(i=!0,t.push("Hits:"));let a=n.split("//").length;t.push(`${" ".repeat(a)}${n} ${Ne(dr(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&t.push(`
20
+ Timers:`);let o=-1/0,l=new Map;for(let[n,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(n,a),o=Math.max(o,a.length)}for(let n of this.#t.keys()){let s=n.split("//").length;t.push(`${Ne(`[${l.get(n).padStart(o," ")}]`)}${" ".repeat(s-1)}${s===1?" ":Ne(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":Ne(dr(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}r(`
21
+ ${t.join(`
14
22
  `)}
15
- `),this.reset()}[Symbol.dispose](){T&&this.report()}};function _(e){return`\x1B[2m${e}\x1B[22m`}function ye(e){return`\x1B[34m${e}\x1B[39m`}if(!process.versions.bun){let e=b.createRequire(import.meta.url);b.register?.(at(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{et as Features,xe as Instrumentation,st as __unstable__loadDesignSystem,rt as compile,tt as compileAst,D as env,j as normalizePath};
23
+ `),this.reset()}[Symbol.dispose](){_e&&this.report()}};function Ne(e){return`\x1B[2m${e}\x1B[22m`}function dr(e){return`\x1B[34m${e}\x1B[39m`}import yn from"@jridgewell/remapping";import{Features as he,transform as bn}from"lightningcss";import xn from"magic-string";function gc(e,{file:r="input.css",minify:t=!1,map:i}={}){function o(a,c){return bn({filename:r,code:a,minify:t,sourceMap:typeof c<"u",inputSourceMap:c,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:he.Nesting|he.MediaQueries,exclude:he.LogicalProperties|he.DirSelector|he.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=o(Buffer.from(e),i);if(i=l.map?.toString(),l.warnings=l.warnings.filter(a=>!/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(a.message)),l.warnings.length>0){let a=e.split(`
24
+ `),c=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,f]of l.warnings.entries()){c.push(""),l.warnings.length>1&&c.push(`Issue #${p+1}:`);let u=2,d=Math.max(0,f.loc.line-u-1),m=Math.min(a.length,f.loc.line+u),g=a.slice(d,m).map((h,b)=>d+b+1===f.loc.line?`${ve("\u2502")} ${h}`:ve(`\u2502 ${h}`));g.splice(f.loc.line-d,0,`${ve("\u2506")}${" ".repeat(f.loc.column-1)} ${An(`${ve("^--")} ${f.message}`)}`,`${ve("\u2506")}`),c.push(...g)}c.push(""),console.warn(c.join(`
25
+ `))}l=o(l.code,i),i=l.map?.toString();let n=l.code.toString(),s=new xn(n);if(s.replaceAll("@media not (","@media not all and ("),i!==void 0&&s.hasChanged()){let a=s.generateMap({source:"original",hires:"boundary"}).toString();i=yn([a,i],()=>null).toString()}return n=s.toString(),{code:n,map:i}}function ve(e){return`\x1B[2m${e}\x1B[22m`}function An(e){return`\x1B[33m${e}\x1B[39m`}import{SourceMapGenerator as Cn}from"source-map-js";function Sn(e){let r=new Cn,t=1,i=new v(o=>({url:o?.url??`<unknown ${t++}>`,content:o?.content??"<none>"}));for(let o of e.mappings){let l=i.get(o.originalPosition?.source??null);r.addMapping({generated:o.generatedPosition,original:o.originalPosition,source:l.url,name:o.name}),r.setSourceContent(l.url,l.content)}return r.toString()}function kc(e){let r=typeof e=="string"?e:Sn(e);return{raw:r,get inline(){let t="";return t+="/*# sourceMappingURL=data:application/json;base64,",t+=Buffer.from(r,"utf-8").toString("base64"),t+=` */
26
+ `,t}}}if(!process.versions.bun){let e=Re.createRequire(import.meta.url);Re.register?.($n(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{rc as Features,pr as Instrumentation,ic as Polyfills,sc as __unstable__loadDesignSystem,ac as compile,lc as compileAst,De as env,cr as loadModule,Xe as normalizePath,gc as optimize,kc as toSourceMap};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/node",
3
- "version": "0.0.0-insiders.fadf442",
3
+ "version": "0.0.0-insiders.fb0f432",
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
- "enhanced-resolve": "^5.18.1",
37
- "jiti": "^2.4.2",
38
- "tailwindcss": "0.0.0-insiders.fadf442"
36
+ "@jridgewell/remapping": "^2.3.4",
37
+ "enhanced-resolve": "^5.18.3",
38
+ "jiti": "^2.6.0",
39
+ "lightningcss": "1.30.2",
40
+ "magic-string": "^0.30.19",
41
+ "source-map-js": "^1.2.1",
42
+ "tailwindcss": "0.0.0-insiders.fb0f432"
39
43
  },
40
44
  "scripts": {
41
45
  "build": "tsup-node",