@tailwindcss/node 0.0.0-insiders.662c686 → 0.0.0-insiders.66c18ca

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 R=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var $e=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var X=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},Z=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ke(t))!be.call(e,n)&&n!==r&&R(e,n,{get:()=>t[n],enumerable:!(s=Re(t,n))||s.enumerable});return e};var h=(e,t,r)=>(r=e!=null?Ce($e(e)):{},Z(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Z(R({},"__esModule",{value:!0}),e);var ht={};X(ht,{Features:()=>g.Features,Instrumentation:()=>Y,__unstable__loadDesignSystem:()=>ut,compile:()=>at,compileAst:()=>ot,env:()=>k,loadModule:()=>J,normalizePath:()=>D});module.exports=Te(ht);var we=h(require("module")),Ee=require("url");var k={};X(k,{DEBUG:()=>V});var V=_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 A=h(require("enhanced-resolve")),Ae=require("jiti"),U=h(require("fs")),Q=h(require("fs/promises")),y=h(require("path")),z=require("url"),g=require("tailwindcss");var $=h(require("fs/promises")),S=h(require("path")),Oe=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Pe=[".js",".cjs",".mjs"],De=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ue=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Ie(e,t){for(let r of t){let s=`${e}${r}`;if((await $.default.stat(s).catch(()=>null))?.isFile())return s}for(let r of t){let s=`${e}/index${r}`;if(await $.default.access(s).then(()=>!0,()=>!1))return s}return null}async function ee(e,t,r,s){let n=Pe.includes(s)?De:Ue,l=await Ie(S.default.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=S.default.dirname(l),s=S.default.extname(l);let i=await $.default.readFile(l,"utf-8"),a=[];for(let o of Oe)for(let f of i.matchAll(o))f[1].startsWith(".")&&a.push(ee(e,f[1],r,s));await Promise.all(a)}async function te(e){let t=new Set;return await ee(t,e,S.default.dirname(e),S.default.extname(e)),Array.from(t)}var B=h(require("path"));var w=92,b=47,T=42,Fe=34,Ve=39,Le=58,_=59,x=10,E=32,O=9,re=123,L=125,j=40,se=41,We=91,Ke=93,ne=45,W=64,je=33;function ie(e){e=e.replaceAll(`\r
1
+ "use strict";var _r=Object.create;var xe=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var Ur=Object.getOwnPropertyNames;var Ir=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var dt=(e,t)=>{for(var r in t)xe(e,r,{get:t[r],enumerable:!0})},mt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ur(t))!Lr.call(e,n)&&n!==r&&xe(e,n,{get:()=>t[n],enumerable:!(i=Dr(t,n))||i.enumerable});return e};var _=(e,t,r)=>(r=e!=null?_r(Ir(e)):{},mt(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e)),zr=e=>mt(xe({},"__esModule",{value:!0}),e);var Qn={};dt(Qn,{Features:()=>z.Features,Instrumentation:()=>pt,Polyfills:()=>z.Polyfills,__unstable__loadDesignSystem:()=>Kn,compile:()=>zn,compileAst:()=>Ln,env:()=>Ae,loadModule:()=>ft,normalizePath:()=>Ue,optimize:()=>Gn,toSourceMap:()=>Zn});module.exports=zr(Qn);var Or=_(require("module")),Pr=require("url");var Ae={};dt(Ae,{DEBUG:()=>Me});var Me=Kr(process.env.DEBUG);function Kr(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 ee=_(require("enhanced-resolve")),Cr=require("jiti"),Ie=_(require("fs")),ut=_(require("fs/promises")),ae=_(require("path")),at=require("url"),z=require("tailwindcss");var Ce=_(require("fs/promises")),ie=_(require("path")),Mr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Fr=[".js",".cjs",".mjs"],jr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Wr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Br(e,t){for(let r of t){let i=`${e}${r}`;if((await Ce.default.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await Ce.default.access(i).then(()=>!0,()=>!1))return i}return null}async function gt(e,t,r,i){let n=Fr.includes(i)?jr:Wr,l=await Br(ie.default.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=ie.default.dirname(l),i=ie.default.extname(l);let o=await Ce.default.readFile(l,"utf-8"),s=[];for(let a of Mr)for(let u of o.matchAll(a))u[1].startsWith(".")&&s.push(gt(e,u[1],r,i));await Promise.all(s)}async function ht(e){let t=new Set;return await gt(t,e,ie.default.dirname(e),ie.default.extname(e)),Array.from(t)}var ot=_(require("path"));function N(e){return{kind:"word",value:e}}function Gr(e,t){return{kind:"function",value:e,nodes:t}}function qr(e){return{kind:"separator",value:e}}function S(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+S(r.nodes)+")"}return t}var vt=92,Hr=41,wt=58,yt=44,Zr=34,kt=61,bt=62,xt=60,At=10,Qr=40,Yr=39,Jr=47,Ct=32,St=9;function A(e){e=e.replaceAll(`\r
2
2
  `,`
3
- `);let t=[],r=[],s=[],n=null,l=null,i="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===w)i+=e.slice(f,f+2),f+=1;else if(u===b&&e.charCodeAt(f+1)===T){let c=f;for(let m=f+2;m<e.length;m++)if(o=e.charCodeAt(m),o===w)m+=1;else if(o===T&&e.charCodeAt(m+1)===b){f=m+1;break}let p=e.slice(c,f+1);p.charCodeAt(2)===je&&r.push(ae(p.slice(2,-2)))}else if(u===Ve||u===Fe){let c=f;for(let p=f+1;p<e.length;p++)if(o=e.charCodeAt(p),o===w)p+=1;else if(o===u){f=p;break}else{if(o===_&&e.charCodeAt(p+1)===x)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(u)}`);if(o===x)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(u)}`)}i+=e.slice(c,f+1)}else{if((u===E||u===x||u===O)&&(o=e.charCodeAt(f+1))&&(o===E||o===x||o===O))continue;if(u===x){if(i.length===0)continue;o=i.charCodeAt(i.length-1),o!==E&&o!==x&&o!==O&&(i+=" ")}else if(u===ne&&e.charCodeAt(f+1)===ne&&i.length===0){let c="",p=f,m=-1;for(let d=f+2;d<e.length;d++)if(o=e.charCodeAt(d),o===w)d+=1;else if(o===b&&e.charCodeAt(d+1)===T){for(let v=d+2;v<e.length;v++)if(o=e.charCodeAt(v),o===w)v+=1;else if(o===T&&e.charCodeAt(v+1)===b){d=v+1;break}}else if(m===-1&&o===Le)m=i.length+d-p;else if(o===_&&c.length===0){i+=e.slice(p,d),f=d;break}else if(o===j)c+=")";else if(o===We)c+="]";else if(o===re)c+="}";else if((o===L||e.length-1===d)&&c.length===0){f=d-1,i+=e.slice(p,d);break}else(o===se||o===Ke||o===L)&&c.length>0&&e[d]===c[c.length-1]&&(c=c.slice(0,-1));let F=K(i,m);if(!F)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(F):t.push(F),i=""}else if(u===_&&i.charCodeAt(0)===W)l=C(i),n?n.nodes.push(l):t.push(l),i="",l=null;else if(u===_&&a[a.length-1]!==")"){let c=K(i);if(!c)throw i.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${i.trim()}\``);n?n.nodes.push(c):t.push(c),i=""}else if(u===re&&a[a.length-1]!==")")a+="}",l=le(i.trim()),n&&n.nodes.push(l),s.push(n),n=l,i="",l=null;else if(u===L&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),i.length>0)if(i.charCodeAt(0)===W)l=C(i),n?n.nodes.push(l):t.push(l),i="",l=null;else{let p=i.indexOf(":");if(n){let m=K(i,p);if(!m)throw new Error(`Invalid declaration: \`${i.trim()}\``);n.nodes.push(m)}}let c=s.pop()??null;c===null&&n&&t.push(n),n=c,i="",l=null}else if(u===j)a+=")",i+="(";else if(u===se){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),i+=")"}else{if(i.length===0&&(u===E||u===x||u===O))continue;i+=String.fromCharCode(u)}}}if(i.charCodeAt(0)===W&&t.push(C(i)),a.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 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===j){let n=e.slice(0,r).trim(),l=e.slice(r).trim();return M(n,l,t)}}return M(e.trim(),"",t)}function K(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 N=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 He(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function M(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):He(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 P(e,t,r=[],s={}){for(let n=0;n<e.length;n++){let l=e[n],i=r[r.length-1]??null;if(l.kind==="context"){if(P(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,f=t(l,{parent:i,context:s,path:r,replaceWith(u){a=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),o=0):u.length===1?(e[n]=u[0],o=1):(e.splice(n,1,...u),o=u.length):(e[n]=u,o=1)}})??0;if(r.pop(),a){f===0?n--:n+=o-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in l){r.push(l);let u=P(l.nodes,t,r,s);if(r.pop(),u===2)return 2}}}function ue(e){function t(s,n=0){let l="",i=" ".repeat(n);if(s.kind==="declaration")l+=`${i}${s.property}: ${s.value}${s.important?" !important":""};
4
- `;else if(s.kind==="rule"){l+=`${i}${s.selector} {
5
- `;for(let a of s.nodes)l+=t(a,n+1);l+=`${i}}
6
- `}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${i}${s.name} ${s.params};
7
- `;l+=`${i}${s.name}${s.params?` ${s.params} `:" "}{
8
- `;for(let a of s.nodes)l+=t(a,n+1);l+=`${i}}
9
- `}else if(s.kind==="comment")l+=`${i}/*${s.value}*/
10
- `;else if(s.kind==="context"||s.kind==="at-root")return"";return l}let r="";for(let s of e){let n=t(s);n!==""&&(r+=n)}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 n=e[2];(n==="?"||n===".")&&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 D(e){let t=ze(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var H=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,fe=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Ge=/(?:gradient|element|cross-fade|image)\(/,Qe=/^\s*data:/i,Je=/^([a-z]+:)?\/\//,qe=/^[A-Z_][.\w-]*\(/i,Ye=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Xe=/(?<!\\)"/g,Ze=/(?: |\\t|\\n|\\f|\\r)+/g,et=e=>Qe.test(e),tt=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=ie(e),n=[];function l(i){if(i[0]==="/")return i;let a=B.posix.join(D(t),i),o=B.posix.relative(D(r),a);return o.startsWith(".")||(o="./"+o),o}return P(s,i=>{if(i.kind!=="declaration"||!i.value)return;let a=H.test(i.value),o=fe.test(i.value);if(a||o){let f=o?rt:pe;n.push(f(i.value,l).then(u=>{i.value=u}))}}),n.length&&await Promise.all(n),ue(s)}function pe(e,t){return me(e,H,async r=>{let[s,n]=r;return await de(n.trim(),s,t)})}async function rt(e,t){return await me(e,fe,async r=>{let[,s]=r;return await nt(s,async({url:l})=>H.test(l)?await pe(l,t):Ge.test(l)?l:await de(l,l,t))})}async function de(e,t,r,s="url"){let n="",l=e[0];if((l==='"'||l==="'")&&(n=l,e=e.slice(1,-1)),st(e))return t;let i=await r(e);return n===""&&i!==encodeURI(i)&&(n='"'),n==="'"&&i.includes("'")&&(n='"'),n==='"'&&i.includes('"')&&(i=i.replace(Xe,'\\"')),`${s}(${n}${i}${n})`}function st(e,t){return tt(e)||et(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||qe.test(e)}function nt(e,t){return Promise.all(it(e).map(async({url:r,descriptor:s})=>({url:await t({url:r,descriptor:s}),descriptor:s}))).then(lt)}function it(e){let t=e.trim().replace(Ze," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Ye);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function lt(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function me(e,t,r){let s,n=e,l="";for(;s=t.exec(n);)l+=n.slice(0,s.index),l+=await r(s),n=n.slice(s.index+s[0].length);return l+=n,l}var mt={};function ye({base:e,onDependency:t,shouldRewriteUrls:r,customCssResolver:s,customJsResolver:n}){return{base:e,async loadModule(l,i){return J(l,i,t,n)},async loadStylesheet(l,i){let a=await Se(l,i,t,s);return r&&(a.content=await ce({css:a.content,root:i,base:a.base})),a}}}async function ve(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 Q.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 ot(e,t){let r=await(0,g.compileAst)(e,ye(t));return await ve(r,t.base),r}async function at(e,t){let r=await(0,g.compile)(e,ye(t));return await ve(r,t.base),r}async function ut(e,{base:t}){return(0,g.__unstable__loadDesignSystem)(e,{base:t,async loadModule(r,s){return J(r,s,()=>{})},async loadStylesheet(r,s){return Se(r,s,()=>{})}})}async function J(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 ge((0,z.pathToFileURL)(a).href);return{base:(0,y.dirname)(a),module:o.default??o}}let n=await xe(e,t,s);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,i]=await Promise.all([ge((0,z.pathToFileURL)(n).href+"?id="+Date.now()),te(n)]);for(let a of i)r(a);return{base:(0,y.dirname)(n),module:l.default??l}}async function Se(e,t,r,s){let n=await ct(e,t,s);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let i=await globalThis.__tw_readFile(n,"utf-8");if(i)return{base:y.default.dirname(n),content:i}}let l=await Q.default.readFile(n,"utf-8");return{base:y.default.dirname(n),content:l}}var he=null;async function ge(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 he??=(0,Ae.createJiti)(mt.url,{moduleCache:!1,fsCache:!1}),await he.import(e)}}var q=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],ft=A.default.ResolverFactory.createResolver({fileSystem:new A.default.CachedInputFileSystem(U.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:q});async function ct(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 G(ft,e,t)}var pt=A.default.ResolverFactory.createResolver({fileSystem:new A.default.CachedInputFileSystem(U.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:q}),dt=A.default.ResolverFactory.createResolver({fileSystem:new A.default.CachedInputFileSystem(U.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 G(pt,e,t).catch(()=>G(dt,e,t))}function G(e,t,r){return new Promise((s,n)=>e.resolve({},r,t,{},(l,i)=>{if(l)return n(l);s(i)}))}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 N(()=>({value:0}));#t=new N(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(n=>n.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(),n=r-s.value;this.#t.get(s.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let i=this.#e.length-1;i>=0;i--)this.end(this.#e[i].label);for(let[i,{value:a}]of this.#r.entries()){if(this.#t.has(i))continue;r.length===0&&(s=!0,r.push("Hits:"));let o=i.split("//").length;r.push(`${" ".repeat(o)}${i} ${I(Ne(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
12
- Timers:`);let n=-1/0,l=new Map;for(let[i,{value:a}]of this.#t){let o=`${(Number(a)/1e6).toFixed(2)}ms`;l.set(i,o),n=Math.max(n,o.length)}for(let i of this.#t.keys()){let a=i.split("//").length;r.push(`${I(`[${l.get(i).padStart(n," ")}]`)}${" ".repeat(a-1)}${a===1?" ":I(" \u21B3 ")}${i.split("//").pop()} ${this.#r.get(i).value===1?"":I(Ne(`\xD7 ${this.#r.get(i).value}`))}`.trimEnd())}t(`
3
+ `);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case vt:{n+=e[o]+e[o+1],o++;break}case Jr:{if(n.length>0){let u=N(n);i?i.nodes.push(u):t.push(u),n=""}let a=N(e[o]);i?i.nodes.push(a):t.push(a);break}case wt:case yt:case kt:case bt:case xt:case At:case Ct:case St:{if(n.length>0){let c=N(n);i?i.nodes.push(c):t.push(c),n=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==wt&&l!==yt&&l!==kt&&l!==bt&&l!==xt&&l!==At&&l!==Ct&&l!==St));u++);o=u-1;let p=qr(e.slice(a,u));i?i.nodes.push(p):t.push(p);break}case Yr:case Zr:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===vt)u+=1;else if(l===s){o=u;break}n+=e.slice(a,o+1);break}case Qr:{let a=Gr(n,[]);n="",i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Hr:{let a=r.pop();if(n.length>0){let u=N(n);a?.nodes.push(u),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&t.push(N(n)),t}var Xr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function $t(e){return e.indexOf("(")!==-1&&Xr.some(t=>e.includes(`${t}(`))}var h=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var no=new Uint8Array(256);var Se=new Uint8Array(256);function x(e,t){let r=0,i=[],n=0,l=e.length,o=t.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(r===0&&a===o){i.push(e.slice(n,s)),n=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:Se[r]=41,r++;break;case 91:Se[r]=93,r++;break;case 123:Se[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===Se[r-1]&&r--;break}}return i.push(e.slice(n)),i}var Fe=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(Fe||{}),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 y(e,t){typeof t=="function"?Vt(e,t):Vt(e,t.enter,t.exit)}function Vt(e,t=()=>w.Continue,r=()=>w.Continue){let i=[[e,0,null]],n={parent:null,depth:0,path(){let l=[];for(let o=1;o<i.length;o++){let s=i[o][2];s&&l.push(s)}return l}};for(;i.length>0;){let l=i.length-1,o=i[l],s=o[0],a=o[1],u=o[2];if(a>=s.length){i.pop();continue}if(n.parent=u,n.depth=l,a>=0){let d=s[a],m=t(d,n)??w.Continue;switch(m.kind){case 0:{d.nodes&&d.nodes.length>0&&i.push([d.nodes,0,d]),o[1]=~a;continue}case 2:return;case 1:{o[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),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Fe[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let p=~a,c=s[p],f=r(c,n)??w.Continue;switch(f.kind){case 0:o[1]=p+1;continue;case 2:return;case 3:{s.splice(p,1,...f.nodes),o[1]=p+f.nodes.length;continue}case 5:{s.splice(p,1,...f.nodes);return}case 4:{s.splice(p,1,...f.nodes),o[1]=p+f.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Fe[f.kind]??`Unknown(${f.kind})`}\` in exit.`)}}}function Tt(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(ne),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(ne),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(ne),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function ne(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:ne(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function We(e){if(e===null)return"";let t=ri(e.value),r=t?e.value.slice(4,-1):e.value,[i,n]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${Be(r)}${n}`:e.kind==="named"?`/${e.value}`:""}var ei=new h(e=>{let t=A(e),r=new Set;return y(t,(i,n)=>{let l=n.parent===null?t:n.parent.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let o=l.indexOf(i)??-1;if(o===-1)return;let s=l[o-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l[o+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&&y(t,i=>{if(r.has(i))return r.delete(i),w.ReplaceSkip([])}),je(t),S(t)});function Be(e){return ei.get(e)}var ho=new h(e=>{let t=A(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"?S(t[2].nodes):e});function je(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=se(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=se(t.value);for(let r=0;r<t.nodes.length;r++)je([t.nodes[r]]);break}t.value=se(t.value),je(t.nodes);break}case"separator":t.value=se(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=se(t.value));break}default:ii(t)}}var ti=new h(e=>{let t=A(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function ri(e){return ti.get(e)}function ii(e){throw new Error(`Unexpected value: ${e}`)}function se(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var ni=process.env.FEATURES_ENV!=="stable";var K=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,So=new RegExp(`^${K.source}$`);var $o=new RegExp(`^${K.source}%$`);var Vo=new RegExp(`^${K.source}s*/s*${K.source}$`);var oi=["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"],li=new RegExp(`^${K.source}(${oi.join("|")})$`);function Et(e){return li.test(e)||$t(e)}var ai=["deg","rad","grad","turn"],To=new RegExp(`^${K.source}(${ai.join("|")})$`);var Eo=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 oe(e){return si(e,.25)}function si(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ue(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 fi={"--alpha":ci,"--spacing":pi,"--theme":di,theme:mi};function ci(e,t,r,...i){let[n,l]=x(r,"/").map(o=>o.trim());if(!n||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);return ue(n,l)}function pi(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function di(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let l=e.resolveThemeValue(r,n);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 o=i.join(", ");if(o==="initial")return l;if(l==="initial")return o;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let s=A(l);return hi(s,o),S(s)}return l}function mi(e,t,r,...i){r=gi(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var Qo=new RegExp(Object.keys(fi).map(e=>`${e}\\(`).join("|"));function gi(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function hi(e,t){y(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 Ge(e,t){let r=e.length,i=t.length,n=r<i?r:i;for(let l=0;l<n;l++){let o=e.charCodeAt(l),s=t.charCodeAt(l);if(o>=48&&o<=57&&s>=48&&s<=57){let a=l,u=l+1,p=l,c=l+1;for(o=e.charCodeAt(u);o>=48&&o<=57;)o=e.charCodeAt(++u);for(s=t.charCodeAt(c);s>=48&&s<=57;)s=t.charCodeAt(++c);let f=e.slice(a,u),d=t.slice(p,c),m=Number(f)-Number(d);if(m)return m;if(f<d)return-1;if(f>d)return 1;continue}if(o!==s)return o-s}return e.length-t.length}function Ot(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;le(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 n=e.slice(r,t);for(;le(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:null,quote:null,value:null,sensitivity:null};let l=null,o=e.charCodeAt(t);if(o===61)l="=",t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)l=e[t]+"=",t+=2;else return null;for(;le(e.charCodeAt(t));)t++;if(t===i)return null;let s="",a=null;if(o=e.charCodeAt(t),o===39||o===34){a=e[t],t++,r=t;for(let p=t;p<i;p++){let c=e.charCodeAt(p);c===o?t=p+1:c===92&&p++}s=e.slice(r,t-1)}else{for(r=t;t<i&&!le(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;le(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:l,quote:a,value:s,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;le(e.charCodeAt(t));)t++;return t!==i?null:{attribute:n,operator:l,quote:a,value:s,sensitivity:u}}function le(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var wi=/^[a-zA-Z0-9-_%/\.]+$/;function He(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(!wi.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function yi(e){return{kind:"combinator",value:e}}function ki(e,t){return{kind:"function",value:e,nodes:t}}function G(e){return{kind:"selector",value:e}}function bi(e){return{kind:"separator",value:e}}function xi(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 _t=92,Ai=93,Dt=41,Ci=58,Ut=44,Si=34,$i=46,It=62,Lt=10,Vi=35,zt=91,Kt=40,Mt=43,Ti=39,Ft=32,jt=9,Wt=126,Ei=38,Ni=42;function ce(e){e=e.replaceAll(`\r
4
+ `,`
5
+ `);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case Ut:case It:case Lt:case Ft:case Mt:case jt:case Wt:{if(n.length>0){let f=G(n);i?i.nodes.push(f):t.push(f),n=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Ut&&l!==It&&l!==Lt&&l!==Ft&&l!==Mt&&l!==jt&&l!==Wt));u++);o=u-1;let p=e.slice(a,u),c=p.trim()===","?bi(p):yi(p);i?i.nodes.push(c):t.push(c);break}case Kt:{let a=ki(n,[]);if(n="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let u=o+1,p=0;for(let f=o+1;f<e.length;f++){if(l=e.charCodeAt(f),l===Kt){p++;continue}if(l===Dt){if(p===0){o=f;break}p--}}let c=o;a.nodes.push(xi(e.slice(u,c))),n="",o=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 Dt:{let a=r.pop();if(n.length>0){let u=G(n);a.nodes.push(u),n=""}r.length>0?i=r[r.length-1]:i=null;break}case $i:case Ci:case Vi:{if(n.length>0){let a=G(n);i?i.nodes.push(a):t.push(a)}n=e[o];break}case zt:{if(n.length>0){let p=G(n);i?i.nodes.push(p):t.push(p)}n="";let a=o,u=0;for(let p=o+1;p<e.length;p++){if(l=e.charCodeAt(p),l===zt){u++;continue}if(l===Ai){if(u===0){o=p;break}u--}}n+=e.slice(a,o+1);break}case Ti:case Si:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===_t)u+=1;else if(l===s){o=u;break}n+=e.slice(a,o+1);break}case Ei:case Ni:{if(n.length>0){let a=G(n);i?i.nodes.push(a):t.push(a),n=""}i?i.nodes.push(G(e[o])):t.push(G(e[o]));break}case _t:{n+=e[o]+e[o+1],o+=1;break}default:n+=e[o]}}return n.length>0&&t.push(G(n)),t}var Ri=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,Y=new h(e=>{let t=Ri.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 n=t.groups?.unit;return n===void 0?[i,null]:[i,n]});function Bt(e,t=null){let r=!1,i=A(e);return y(i,{exit(n){if(n.kind==="word"&&n.value!=="0"){let l=Oi(n.value,t);return l===null||l===n.value?void 0:(r=!0,w.ReplaceSkip(N(l)))}else if(n.kind==="function"&&(n.value==="calc"||n.value==="")){if(n.nodes.length!==5)return;let l=Y.get(n.nodes[0].value),o=n.nodes[2].value,s=Y.get(n.nodes[4].value);if(o==="*"&&(l?.[0]===0&&l?.[1]===null||s?.[0]===0&&s?.[1]===null))return r=!0,w.ReplaceSkip(N("0"));if(l===null||s===null)return;switch(o){case"*":{if(l[1]===s[1]||l[1]===null&&s[1]!==null||l[1]!==null&&s[1]===null)return r=!0,w.ReplaceSkip(N(`${l[0]*s[0]}${l[1]??""}`));break}case"+":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(N(`${l[0]+s[0]}${l[1]??""}`));break}case"-":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(N(`${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(N(`${l[0]/s[0]}${l[1]??""}`));break}}}}}),r?S(i):e}function Oi(e,t=null){let r=Y.get(e);if(r===null)return null;let[i,n]=r;if(n===null)return`${i}`;if(i===0&&Et(e))return"0";switch(n.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}${n}`}}function Gt(e,t="top",r="right",i="bottom",n="left"){return Qt(`${e}-${t}`,`${e}-${r}`,`${e}-${i}`,`${e}-${n}`)}function Qt(e="top",t="right",r="bottom",i="left"){return{1:[[e,0],[t,0],[r,0],[i,0]],2:[[e,0],[t,1],[r,0],[i,1]],3:[[e,0],[t,1],[r,2],[i,1]],4:[[e,0],[t,1],[r,2],[i,3]]}}function J(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var qt={inset:Qt(),margin:Gt("margin"),padding:Gt("padding"),gap:J("row-gap","column-gap")},Ht={"inset-block":J("top","bottom"),"inset-inline":J("left","right"),"margin-block":J("margin-top","margin-bottom"),"margin-inline":J("margin-left","margin-right"),"padding-block":J("padding-top","padding-bottom"),"padding-inline":J("padding-left","padding-right")},Zt={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function Yt(e,t){if(t&2){if(e.property in Ht){let r=x(e.value," ");return Ht[e.property][r.length]?.map(([i,n])=>E(i,r[n],e.important))}if(e.property in Zt)return Zt[e.property]?.map(r=>E(r,e.value,e.important))}if(e.property in qt){let r=x(e.value," ");return qt[e.property][r.length]?.map(([i,n])=>E(i,r[n],e.important))}return null}var Jt=/\d*\.\d+(?:[eE][+-]?\d+)?%/g;var H=new h(e=>{let t=e.designSystem;return new h(r=>{try{r=t.theme.prefix&&!r.startsWith(t.theme.prefix)?`${t.theme.prefix}:${r}`:r;let i=[M(".x",[T("@apply",r)])];return Di(t,()=>{for(let l of t.parseCandidate(r))t.compileAstNodes(l,1);pe(i,t)}),Xt(i,e),D(i)}catch{return Symbol()}})});function Xt(e,t){let{rem:r,designSystem:i}=t;return y(e,{enter(n){if(n.kind==="declaration"){if(n.value===void 0||n.property==="--tw-sort")return w.Replace([]);if(t.features&1){let l=Yt(n,t.features);if(l)return w.Replace(l)}n.value.includes("%")&&(Jt.lastIndex=0,n.value=n.value.replaceAll(Jt,l=>`${Number(l.slice(0,-1))}%`)),n.value.includes("var(")&&(n.value=_i(n.value,i)),n.value=Bt(n.value,r),n.value=Be(n.value)}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([])}},exit(n){(n.kind==="rule"||n.kind==="at-rule")&&n.nodes.sort((l,o)=>l.kind!=="declaration"||o.kind!=="declaration"?0:l.property.localeCompare(o.property))}}),e}function _i(e,t){let r=!1,i=A(e),n=new Set;return y(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let o=l.nodes[0].value;t.theme.prefix&&o.startsWith(`--${t.theme.prefix}-`)&&(o=o.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(o);if(!n.has(o)&&(n.add(o),s!==void 0&&(l.nodes.length===1&&(r=!0,l.nodes.push(...A(`,${s}`))),l.nodes.length>=3))){let a=S(l.nodes),u=`${l.nodes[0].value},${s}`;if(a===u)return r=!0,w.Replace(A(s))}}),r?S(i):e}var er=new h(e=>new h(t=>new h(r=>new Set))),Qe=new h(e=>new h(t=>{let r=new h(l=>new Set),i=e.designSystem;e.designSystem.theme.prefix&&!t.startsWith(e.designSystem.theme.prefix)&&(t=`${e.designSystem.theme.prefix}:${t}`);let n=i.parseCandidate(t);return n.length===0||y(Xt(i.compileAstNodes(n[0]).map(l=>R(l.node)),e),l=>{l.kind==="declaration"&&(r.get(l.property).add(l.value),er.get(e).get(l.property).get(l.value).add(t))}),r})),Ye=new h(e=>{let{designSystem:t}=e,r=H.get(e),i=new h(()=>[]);for(let[n,l]of t.getClassList()){let o=r.get(n);if(typeof o=="string"){if(n[0]==="-"&&n.endsWith("-0")){let s=r.get(n.slice(1));if(typeof s=="string"&&o===s)continue}i.get(o).push(n),Qe.get(e).get(n);for(let s of l.modifiers){if(oe(s))continue;let a=`${n}/${s}`,u=r.get(a);typeof u=="string"&&(i.get(u).push(a),Qe.get(e).get(a))}}}return i}),Ve=new h(e=>{let{designSystem:t}=e;return new h(r=>{try{r=t.theme.prefix&&!r.startsWith(t.theme.prefix)?`${t.theme.prefix}:${r}`:r;let i=[M(".x",[T("@apply",`${r}:flex`)])];return pe(i,t),y(i,l=>{if(l.kind==="at-rule"&&l.params.includes(" "))l.params=l.params.replaceAll(" ","");else if(l.kind==="rule"){let o=ce(l.selector),s=!1;y(o,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(o))}}),D(i)}catch{return Symbol()}})}),tr=new h(e=>{let{designSystem:t}=e,r=Ve.get(e),i=new h(()=>[]);for(let[n,l]of t.variants.entries())if(l.kind==="static"){let o=r.get(n);if(typeof o!="string")continue;i.get(o).push(n)}return i});function Di(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=n=>{let l=r.call(e.theme.values,n);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 n of i)n.options|=1}}function j(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function de(e){let t=[];for(let r of x(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),l=r.indexOf("]",n);if(n===-1||l===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,l)),i=l+1}i<=r.length-1&&t.push(r.slice(i))}return t}var zl=new h(e=>new h((t=null)=>new h(r=>({designSystem:e,rem:t,features:r}))));var Kl=new h(e=>new h(t=>new h(r=>({features:r,designSystem:e,signatureOptions:t}))));var Ml=new h(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",i=Li.get(e),n=Ki.get(e);return new h((l,o)=>{for(let s of t.parseCandidate(l)){let a=s.variants.slice().reverse().flatMap(c=>i.get(c)),u=s.important;if(u||a.length>0){let f=o.get(t.printCandidate({...s,variants:[],important:!1}));return t.theme.prefix!==null&&a.length>0&&(f=f.slice(r.length)),a.length>0&&(f=`${a.map(d=>t.printVariant(d)).join(":")}:${f}`),u&&(f+="!"),t.theme.prefix!==null&&a.length>0&&(f=`${r}${f}`),f}let p=n.get(l);if(p!==l)return p}return l})}),Ii=[Wi,rn,nn,Xi],Li=new h(e=>new h(t=>{let r=[t];for(let i of Ii)for(let n of r.splice(0)){let l=i(ne(n),e);if(Array.isArray(l)){r.push(...l);continue}else r.push(l)}return r})),zi=[Fi,ji,Hi,Qi,Ji,en,tn,on],Ki=new h(e=>{let t=e.designSystem;return new h(r=>{for(let i of t.parseCandidate(r)){let n=Tt(i);for(let o of zi)n=o(n,e);let l=t.printCandidate(n);if(r!==l)return l}return r})}),Mi=["t","tr","r","br","b","bl","l","tl"];function Fi(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return Mi.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function ji(e,t){let r=ir.get(t.designSystem);if(e.kind==="arbitrary"){let[i,n]=r(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,n!==null&&(e.modifier=n))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,n]=r(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,n!==null&&(e.modifier=n))}return e}function Wi(e,t){let r=ir.get(t.designSystem),i=Ne(e);for(let[n]of i)if(n.kind==="arbitrary"){let[l]=r(n.selector,2);l!==n.selector&&(n.selector=l)}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"){let[l]=r(n.value.value,2);l!==n.value.value&&(n.value.value=l)}return e}var ir=new h(e=>{return t(e);function t(r){function i(s,a=0){let u=A(s);if(a&2)return[Te(u,o),null];let p=0,c=0;if(y(u,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,y(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[Te(u,l),null];if(c>1)return[Te(u,o),null];let f=null;return[Te(u,(m,g)=>{let v=x(m,"/").map(b=>b.trim());if(v.length>2)return null;if(u.length===1&&v.length===2&&a&1){let[b,k]=v;if(/^\d+%$/.test(k))f={kind:"named",value:k.slice(0,-1)};else if(/^0?\.\d+$/.test(k)){let O=Number(k)*100;f={kind:Number.isInteger(O)?"named":"arbitrary",value:O.toString()}}else f={kind:"arbitrary",value:k};m=b}return l(m,g)||o(m,g)}),f]}function n(s,a=!0){let u=`--${He(de(s))}`;return r.theme.get([u])?a&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function l(s,a){let u=n(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let p=de(s);if(p[0]==="spacing"&&r.theme.get(["--spacing"])){let c=p[1];return oe(c)?`--spacing(${c})`:null}return null}function o(s,a){let u=x(s,"/").map(f=>f.trim());s=u.shift();let p=n(s,!1);if(!p)return null;let c=u.length>0?`/${u.join("/")}`:"";return a?`--theme(${p}${c}, ${a})`:`--theme(${p}${c})`}return i}});function Te(e,t){return y(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 n=r.nodes[0];if(n.kind!=="word")return;let l=n.value,o=1;for(let u=o;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=S([r.nodes[u]]),o=u+1;l=Bi(l);let s=r.nodes.slice(o+1),a=s.length>0?t(l,S(s)):t(l);if(a===null)return;if(i.parent){let u=i.parent.nodes.indexOf(r)-1;for(;u!==-1;){let p=i.parent.nodes[u];if(p.kind==="separator"&&p.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(a=`(${a})`);break}}return w.Replace(A(a))}}),S(e)}function Bi(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function*Ne(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 Gi(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 qi=new h(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Y.get(t);if(!r)return null;let[i,n]=r;return new h(l=>{let o=Y.get(l);if(!o)return null;let[s,a]=o;return a!==n?null:s/i})});function Hi(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,i=Ye.get(t.signatureOptions),n=H.get(t.signatureOptions),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of s(o,e)){let u=r.printCandidate(a);if(n.get(u)===o&&Zi(r,e,a))return a}return e;function*s(a,u){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&u.modifier){let c={...u,modifier:null},f=n.get(r.printCandidate(c));if(typeof f=="string")for(let d of s(f,c))yield Object.assign({},d,{modifier:u.modifier})}if(p.length===1)for(let c of W(r,p[0]))yield c;else if(p.length===0){let c=u.kind==="arbitrary"?u.value:u.value?.value??null;if(c===null)return;let f=qi.get(r)?.get(c)??null,d="";f!==null&&f<0&&(d="-",f=Math.abs(f));for(let m of Array.from(r.utilities.keys("functional")).sort((g,v)=>+(g[0]==="-")-+(v[0]==="-"))){d&&(m=`${d}${m}`);for(let g of W(r,`${m}-${c}`))yield g;if(u.modifier)for(let g of W(r,`${m}-${c}${u.modifier}`))yield g;if(f!==null){for(let g of W(r,`${m}-${f}`))yield g;if(u.modifier)for(let g of W(r,`${m}-${f}${We(u.modifier)}`))yield g}for(let g of W(r,`${m}-[${c}]`))yield g;if(u.modifier)for(let g of W(r,`${m}-[${c}]${We(u.modifier)}`))yield g}}}}}function Zi(e,t,r){let i=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?i=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(i=t.value),i===null)return!0;let n=e.candidatesToCss([e.printCandidate(r)]).join(`
6
+ `),l=!0;return y(A(i),o=>{if(o.kind==="function"&&o.value==="var"){let s=o.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(n)||n.includes(`${s}:`))return l=!1,w.Stop}}),l}function Qi(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,i=Ye.get(t.signatureOptions),n=H.get(t.signatureOptions),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of s(o,e)){let u=r.printCandidate(a);if(n.get(u)===o)return a}return e;function*s(a,u){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&u.modifier){let c={...u,modifier:null},f=n.get(r.printCandidate(c));if(typeof f=="string")for(let d of s(f,c))yield Object.assign({},d,{modifier:u.modifier})}if(p.length===1)for(let c of W(r,p[0]))yield c}}}var Yi=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function Ji(e,t){let r=t.designSystem,i=H.get(t.signatureOptions),n=Gi(r,e),l=Yi.get(n)??null;if(l===null)return e;let o=i.get(n);if(typeof o!="string")return e;let s=i.get(l);if(typeof s!="string"||o!==s)return e;let[a]=W(r,l);return a}function Xi(e,t){let r=t.designSystem,i=Ve.get(t.signatureOptions),n=tr.get(t.signatureOptions),l=Ne(e);for(let[o]of l){if(o.kind==="compound")continue;let s=r.printVariant(o),a=i.get(s);if(typeof a!="string")continue;let u=n.get(a);if(u.length!==1)continue;let p=u[0],c=r.parseVariant(p);c!==null&&j(o,c)}return e}function en(e,t){let r=t.designSystem,i=H.get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});i.get(r.printCandidate(e))===i.get(n)&&(e.value.dataType=null)}return e}function tn(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,i=H.get(t.signatureOptions),n=i.get(r.printCandidate(e));if(n===null)return e;for(let l of nr(e))if(i.get(r.printCandidate({...e,value:l}))===n)return e.value=l,e;return e}function rn(e){let t=Ne(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,n]=x(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*nr(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("%")&&oe(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[l,o]=t.split("/");$(l)&&$(o)&&(yield{kind:"named",value:l,fraction:`${l}/${o}`})}let i=new Set;for(let l of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(l[0].trim());let n=Array.from(i).sort((l,o)=>l.length-o.length);for(let l of n)yield*nr(e,l,r)}function rr(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function Ee(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function nn(e,t){let r=[e],i=t.designSystem,n=Ve.get(t.signatureOptions),l=Ne(e);for(let[o,s]of l)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=ce(o.selector.trim());if(!rr(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(o,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(o,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(o,i.parseVariant(`in-[${q(a)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let f=n.get(i.printVariant(o)),d=A(q(a)),m=!1;if(y(d,g=>{if(g.kind==="word"&&g.value==="not")return m=!0,w.Replace([])}),d=A(S(d)),y(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${S(d)}]`);if(g===null)continue;let v=n.get(i.printVariant(g));if(f===v){j(o,g);continue}}}let u=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"&&Ee(a[2])&&(a=[a[2]],u=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"&&Ee(a[2])&&(a=[a[2]],u=i.parseVariant("**"));let p=a.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(p.length!==1)continue;let c=p[0];if(c.kind==="function"&&c.value===":is"){if(!rr(c.nodes)||c.nodes.length!==1||!Ee(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let f=c,d=!1;if(f.kind==="function"&&f.value===":not"){if(d=!0,f.nodes.length!==1||f.nodes[0].kind!=="selector"&&f.nodes[0].kind!=="function"||f.nodes[0].value[0]!==":")continue;f=f.nodes[0]}let m=(v=>{if(v===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(v===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,k]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(v===b&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&$(f.nodes[0].value)?`${k}-${f.nodes[0].value}`:`${k}-[${q(f.nodes)}]`;if(d){let b=n.get(i.printVariant(o)),k=n.get(`not-[${v}]`);if(b===k)return`[&${v}]`}return null})(f.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;j(o,g)}else if(Ee(c)){let f=Ot(c.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let d=f.attribute.slice(5);j(o,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let d=f.attribute.slice(5);j(o,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:d}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}}if(u)return[u,o]}return r}function on(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,i=H.get(t.signatureOptions),n=i.get(r.printCandidate(e)),l=e.modifier;if(n===i.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let o={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(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}{let o={kind:"named",value:`${parseFloat(l.value)*100}`,fraction:null};if(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}return e}function me(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let n=new Map,l=[],o=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let p=t.parseCandidate(u);if(p.length===0){r?.(u);continue}o.set(u,p)}let s=0;(i??!0)&&(s|=1);let a=t.getVariantOrder();for(let[u,p]of o){let c=!1;for(let f of p){let d=t.compileAstNodes(f,s);if(d.length!==0){c=!0;for(let{node:m,propertySort:g}of d){let v=0n;for(let b of f.variants)v|=1n<<BigInt(a.get(b));n.set(m,{properties:g,variants:v,candidate:u}),l.push(m)}}}c||r?.(u)}return l.sort((u,p)=>{let c=n.get(u),f=n.get(p);if(c.variants-f.variants!==0n)return Number(c.variants-f.variants);let d=0;for(;d<c.properties.order.length&&d<f.properties.order.length&&c.properties.order[d]===f.properties.order[d];)d+=1;return(c.properties.order[d]??1/0)-(f.properties.order[d]??1/0)||f.properties.count-c.properties.count||Ge(c.candidate,f.candidate)}),{astNodes:l,nodeSorting:n}}function pe(e,t){let r=0,i=F("&",e),n=new Set,l=new h(()=>new Set),o=new h(()=>new Set);y([i],(c,f)=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return y(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(/-\*$/,"");o.get(d).add(c),y(c.nodes,m=>{if(!(m.kind!=="at-rule"||m.name!=="@apply")){n.add(c);for(let g of lr(m,t))l.get(c).add(g)}});return}if(c.name==="@apply"){if(f.parent===null)return;r|=1,n.add(f.parent);for(let d of lr(c,t))for(let m of f.path())n.has(m)&&l.get(m).add(d)}}});let s=new Set,a=[],u=new Set;function p(c,f=[]){if(!s.has(c)){if(u.has(c)){let d=f[(f.indexOf(c)+1)%f.length];throw c.kind==="at-rule"&&c.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&y(c.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let v of g)for(let b of t.parseCandidate(v))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${v}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
7
+
8
+ ${D([c])}
9
+ Relies on:
10
+
11
+ ${D([d])}`)}u.add(c);for(let d of l.get(c))for(let m of o.get(d))f.push(c),p(m,f),f.pop();s.add(c),u.delete(c),a.push(c)}}for(let c of n)p(c);for(let c of a)"nodes"in c&&y(c.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let d=f.params.split(/(\s+)/g),m={},g=0;for(let[v,b]of d.entries())v%2===0&&(m[b]=g),g+=b.length;{let v=Object.keys(m),b=me(v,t,{respectImportant:!1,onInvalidCandidate:C=>{if(t.theme.prefix&&!C.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${C}\`. Did you mean \`${t.theme.prefix}:${C}\`?`);if(t.invalidCandidates.has(C))throw new Error(`Cannot apply utility class \`${C}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let P=x(C,":");if(P.length>1){let be=P.pop();if(t.candidatesToCss([be])[0]){let te=t.candidatesToCss(P.map(re=>`${re}:[--tw-variant-check:1]`)),B=P.filter((re,Ke)=>te[Ke]===null);if(B.length>0){if(B.length===1)throw new Error(`Cannot apply utility class \`${C}\` because the ${B.map(re=>`\`${re}\``)} variant does not exist.`);{let re=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${C}\` because the ${re.format(B.map(Ke=>`\`${Ke}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${C}\`. 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 \`${C}\``)}}),k=f.src,O=b.astNodes.map(C=>{let P=b.nodeSorting.get(C)?.candidate,be=P?m[P]:void 0;if(C=R(C),!k||!P||be===void 0)return y([C],B=>{B.src=k}),C;let te=[k[0],k[1],k[2]];return te[1]+=7+be,te[2]=te[1]+P.length,y([C],B=>{B.src=te}),C}),ze=[];for(let C of O)if(C.kind==="rule")for(let P of C.nodes)ze.push(P);else ze.push(C);return w.Replace(ze)}});return r}function*lr(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 ge=92,Re=47,Oe=42,ar=34,sr=39,cn=58,Pe=59,U=10,_e=13,he=32,ve=9,ur=123,Je=125,tt=40,fr=41,pn=91,dn=93,cr=45,Xe=64,mn=33;function ye(e,t){let r=t?.from?{file:t.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],n=[],l=[],o=null,s=null,a="",u="",p=0,c;for(let f=0;f<e.length;f++){let d=e.charCodeAt(f);if(!(d===_e&&(c=e.charCodeAt(f+1),c===U)))if(d===ge)a===""&&(p=f),a+=e.slice(f,f+2),f+=1;else if(d===Re&&e.charCodeAt(f+1)===Oe){let m=f;for(let v=f+2;v<e.length;v++)if(c=e.charCodeAt(v),c===ge)v+=1;else if(c===Oe&&e.charCodeAt(v+1)===Re){f=v+1;break}let g=e.slice(m,f+1);if(g.charCodeAt(2)===mn){let v=it(g.slice(2,-2));n.push(v),r&&(v.src=[r,m,f+1],v.dst=[r,m,f+1])}}else if(d===sr||d===ar){let m=pr(e,f,d);a+=e.slice(f,m+1),f=m}else{if((d===he||d===U||d===ve)&&(c=e.charCodeAt(f+1))&&(c===he||c===U||c===ve||c===_e&&(c=e.charCodeAt(f+2))&&c==U))continue;if(d===U){if(a.length===0)continue;c=a.charCodeAt(a.length-1),c!==he&&c!==U&&c!==ve&&(a+=" ")}else if(d===cr&&e.charCodeAt(f+1)===cr&&a.length===0){let m="",g=f,v=-1;for(let k=f+2;k<e.length;k++)if(c=e.charCodeAt(k),c===ge)k+=1;else if(c===sr||c===ar)k=pr(e,k,c);else if(c===Re&&e.charCodeAt(k+1)===Oe){for(let O=k+2;O<e.length;O++)if(c=e.charCodeAt(O),c===ge)O+=1;else if(c===Oe&&e.charCodeAt(O+1)===Re){k=O+1;break}}else if(v===-1&&c===cn)v=a.length+k-g;else if(c===Pe&&m.length===0){a+=e.slice(g,k),f=k;break}else if(c===tt)m+=")";else if(c===pn)m+="]";else if(c===ur)m+="}";else if((c===Je||e.length-1===k)&&m.length===0){f=k-1,a+=e.slice(g,k);break}else(c===fr||c===dn||c===Je)&&m.length>0&&e[k]===m[m.length-1]&&(m=m.slice(0,-1));let b=et(a,v);if(!b)throw new Error("Invalid custom property, expected a value");r&&(b.src=[r,g,f],b.dst=[r,g,f]),o?o.nodes.push(b):i.push(b),a=""}else if(d===Pe&&a.charCodeAt(0)===Xe)s=we(a),r&&(s.src=[r,p,f],s.dst=[r,p,f]),o?o.nodes.push(s):i.push(s),a="",s=null;else if(d===Pe&&u[u.length-1]!==")"){let m=et(a);if(!m){if(a.length===0)continue;throw new Error(`Invalid declaration: \`${a.trim()}\``)}r&&(m.src=[r,p,f],m.dst=[r,p,f]),o?o.nodes.push(m):i.push(m),a=""}else if(d===ur&&u[u.length-1]!==")")u+="}",s=F(a.trim()),r&&(s.src=[r,p,f],s.dst=[r,p,f]),o&&o.nodes.push(s),l.push(o),o=s,a="",s=null;else if(d===Je&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),a.length>0)if(a.charCodeAt(0)===Xe)s=we(a),r&&(s.src=[r,p,f],s.dst=[r,p,f]),o?o.nodes.push(s):i.push(s),a="",s=null;else{let g=a.indexOf(":");if(o){let v=et(a,g);if(!v)throw new Error(`Invalid declaration: \`${a.trim()}\``);r&&(v.src=[r,p,f],v.dst=[r,p,f]),o.nodes.push(v)}}let m=l.pop()??null;m===null&&o&&i.push(o),o=m,a="",s=null}else if(d===tt)u+=")",a+="(";else if(d===fr){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),a+=")"}else{if(a.length===0&&(d===he||d===U||d===ve))continue;a===""&&(p=f),a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===Xe){let f=we(a);r&&(f.src=[r,p,e.length],f.dst=[r,p,e.length]),i.push(f)}if(u.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return n.length>0?n.concat(i):i}function we(e,t=[]){let r=e,i="";for(let n=5;n<e.length;n++){let l=e.charCodeAt(n);if(l===he||l===ve||l===tt){r=e.slice(0,n),i=e.slice(n);break}}return T(r.trim(),i.trim(),t)}function et(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return E(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}function pr(e,t,r){let i;for(let n=t+1;n<e.length;n++)if(i=e.charCodeAt(n),i===ge)n+=1;else{if(i===r)return n;if(i===Pe&&(e.charCodeAt(n+1)===U||e.charCodeAt(n+1)===_e&&e.charCodeAt(n+2)===U))throw new Error(`Unterminated string: ${e.slice(t,n+1)+String.fromCharCode(r)}`);if(i===U||i===_e&&e.charCodeAt(n+1)===U)throw new Error(`Unterminated string: ${e.slice(t,n)+String.fromCharCode(r)}`)}return t}var nt={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 X(e){return{__BARE_VALUE__:e}}var I=X(e=>{if($(e.value))return e.value}),V=X(e=>{if($(e.value))return`${e.value}%`}),Z=X(e=>{if($(e.value))return`${e.value}px`}),mr=X(e=>{if($(e.value))return`${e.value}ms`}),De=X(e=>{if($(e.value))return`${e.value}deg`}),yn=X(e=>{if(e.fraction===null)return;let[t,r]=x(e.fraction,"/");if(!(!$(t)||!$(r)))return e.fraction}),gr=X(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),kn={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",...yn},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"),...De}),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:()=>({...nt}),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",...I},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",...I},flexShrink:{0:"0",DEFAULT:"1",...I},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",...I},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",...I},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",...I},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",...I},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))",...gr},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))",...gr},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",...De},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",...I},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",...I},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",...De},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",...De},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",...I},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",...mr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...mr},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",...I}};var xn=64;function M(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 F(e,t=[]){return e.charCodeAt(0)===xn?we(e,t):M(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function it(e){return{kind:"comment",value:e}}function R(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(R),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 D(e,t){let r=0,i={file:null,code:""};function n(o,s=0){let a="",u=" ".repeat(s);if(o.kind==="declaration"){if(a+=`${u}${o.property}: ${o.value}${o.important?" !important":""};
12
+ `,t){r+=u.length;let p=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let c=r;r+=2,o.dst=[i,p,c]}}else if(o.kind==="rule"){if(a+=`${u}${o.selector} {
13
+ `,t){r+=u.length;let p=r;r+=o.selector.length,r+=1;let c=r;o.dst=[i,p,c],r+=2}for(let p of o.nodes)a+=n(p,s+1);a+=`${u}}
14
+ `,t&&(r+=u.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let p=`${u}${o.name} ${o.params};
15
+ `;if(t){r+=u.length;let c=r;r+=o.name.length,r+=1,r+=o.params.length;let f=r;r+=2,o.dst=[i,c,f]}return p}if(a+=`${u}${o.name}${o.params?` ${o.params} `:" "}{
16
+ `,t){r+=u.length;let p=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let c=r;o.dst=[i,p,c],r+=2}for(let p of o.nodes)a+=n(p,s+1);a+=`${u}}
17
+ `,t&&(r+=u.length,r+=2)}else if(o.kind==="comment"){if(a+=`${u}/*${o.value}*/
18
+ `,t){r+=u.length;let p=r;r+=2+o.value.length+2;let c=r;o.dst=[i,p,c],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return a}let l="";for(let o of e)l+=n(o,0);return i.code=l,l}function An(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function Ue(e){let t=An(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var lt=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,hr=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Cn=/(?:gradient|element|cross-fade|image)\(/,Sn=/^\s*data:/i,$n=/^([a-z]+:)?\/\//,Vn=/^[A-Z_][.\w-]*\(/i,Tn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,En=/(?<!\\)"/g,Nn=/(?: |\\t|\\n|\\f|\\r)+/g,Rn=e=>Sn.test(e),On=e=>$n.test(e);async function vr({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ye(e),n=[];function l(o){if(o[0]==="/")return o;let s=ot.posix.join(Ue(t),o),a=ot.posix.relative(Ue(r),s);return a.startsWith(".")||(a="./"+a),a}return y(i,o=>{if(o.kind!=="declaration"||!o.value)return;let s=lt.test(o.value),a=hr.test(o.value);if(s||a){let u=a?Pn:wr;n.push(u(o.value,l).then(p=>{o.value=p}))}}),n.length&&await Promise.all(n),D(i)}function wr(e,t){return kr(e,lt,async r=>{let[i,n]=r;return await yr(n.trim(),i,t)})}async function Pn(e,t){return await kr(e,hr,async r=>{let[,i]=r;return await Dn(i,async({url:l})=>lt.test(l)?await wr(l,t):Cn.test(l)?l:await yr(l,l,t))})}async function yr(e,t,r,i="url"){let n="",l=e[0];if((l==='"'||l==="'")&&(n=l,e=e.slice(1,-1)),_n(e))return t;let o=await r(e);return n===""&&o!==encodeURI(o)&&(n='"'),n==="'"&&o.includes("'")&&(n='"'),n==='"'&&o.includes('"')&&(o=o.replace(En,'\\"')),`${i}(${n}${o}${n})`}function _n(e,t){return On(e)||Rn(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||Vn.test(e)}function Dn(e,t){return Promise.all(Un(e).map(async({url:r,descriptor:i})=>({url:await t({url:r,descriptor:i}),descriptor:i}))).then(In)}function Un(e){let t=e.trim().replace(Nn," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Tn);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function In(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function kr(e,t,r){let i,n=e,l="";for(;i=t.exec(n);)l+=n.slice(0,i.index),l+=await r(i),n=n.slice(i.index+i[0].length);return l+=n,l}var Bn={};function Sr({base:e,from:t,polyfills:r,onDependency:i,shouldRewriteUrls:n,customCssResolver:l,customJsResolver:o}){return{base:e,polyfills:r,from:t,async loadModule(s,a){return ft(s,a,i,o)},async loadStylesheet(s,a){let u=await Vr(s,a,i,l);return n&&(u.content=await vr({css:u.content,root:e,base:u.base})),u}}}async function $r(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 ut.default.stat(ae.default.resolve(t,i.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Ln(e,t){let r=await(0,z.compileAst)(e,Sr(t));return await $r(r,t.base),r}async function zn(e,t){let r=await(0,z.compile)(e,Sr(t));return await $r(r,t.base),r}async function Kn(e,{base:t}){return(0,z.__unstable__loadDesignSystem)(e,{base:t,async loadModule(r,i){return ft(r,i,()=>{})},async loadStylesheet(r,i){return Vr(r,i,()=>{})}})}async function ft(e,t,r,i){if(e[0]!=="."){let s=await Ar(e,t,i);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await xr((0,at.pathToFileURL)(s).href);return{path:s,base:ae.default.dirname(s),module:a.default??a}}let n=await Ar(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,o]=await Promise.all([xr((0,at.pathToFileURL)(n).href+"?id="+Date.now()),ht(n)]);for(let s of o)r(s);return{path:n,base:ae.default.dirname(n),module:l.default??l}}async function Vr(e,t,r,i){let n=await Fn(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let o=await globalThis.__tw_readFile(n,"utf-8");if(o)return{path:n,base:ae.default.dirname(n),content:o}}let l=await ut.default.readFile(n,"utf-8");return{path:n,base:ae.default.dirname(n),content:l}}var br=null;async function xr(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 br??=(0,Cr.createJiti)(Bn.url,{moduleCache:!1,fsCache:!1}),await br.import(e)}}var ct=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Mn=ee.default.ResolverFactory.createResolver({fileSystem:new ee.default.CachedInputFileSystem(Ie.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:ct});async function Fn(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 st(Mn,e,t)}var jn=ee.default.ResolverFactory.createResolver({fileSystem:new ee.default.CachedInputFileSystem(Ie.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:ct}),Wn=ee.default.ResolverFactory.createResolver({fileSystem:new ee.default.CachedInputFileSystem(Ie.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:ct});async function Ar(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 st(jn,e,t).catch(()=>st(Wn,e,t))}function st(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(l,o)=>{if(l)return n(l);i(o)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var pt=class{constructor(t=r=>void process.stderr.write(`${r}
19
+ `)){this.defaultFlush=t}#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(n=>n.label).join("//"),i=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=r-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],i=!1;for(let o=this.#e.length-1;o>=0;o--)this.end(this.#e[o].label);for(let[o,{value:s}]of this.#r.entries()){if(this.#t.has(o))continue;r.length===0&&(i=!0,r.push("Hits:"));let a=o.split("//").length;r.push(`${" ".repeat(a)}${o} ${Le(Tr(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&r.push(`
20
+ Timers:`);let n=-1/0,l=new Map;for(let[o,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(o,a),n=Math.max(n,a.length)}for(let o of this.#t.keys()){let s=o.split("//").length;r.push(`${Le(`[${l.get(o).padStart(n," ")}]`)}${" ".repeat(s-1)}${s===1?" ":Le(" \u21B3 ")}${o.split("//").pop()} ${this.#r.get(o).value===1?"":Le(Tr(`\xD7 ${this.#r.get(o).value}`))}`.trimEnd())}t(`
13
21
  ${r.join(`
14
22
  `)}
15
- `),this.reset()}[Symbol.dispose](){V&&this.report()}};function I(e){return`\x1B[2m${e}\x1B[22m`}function Ne(e){return`\x1B[34m${e}\x1B[39m`}process.versions.bun||we.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](){Me&&this.report()}};function Le(e){return`\x1B[2m${e}\x1B[22m`}function Tr(e){return`\x1B[34m${e}\x1B[39m`}var Er=_(require("@jridgewell/remapping")),Q=require("lightningcss"),Nr=_(require("magic-string"));function Gn(e,{file:t="input.css",minify:r=!1,map:i}={}){function n(a,u){return(0,Q.transform)({filename:t,code:a,minify:r,sourceMap:typeof u<"u",inputSourceMap:u,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:Q.Features.Nesting|Q.Features.MediaQueries,exclude:Q.Features.LogicalProperties|Q.Features.DirSelector|Q.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=n(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
+ `),u=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of l.warnings.entries()){u.push(""),l.warnings.length>1&&u.push(`Issue #${p+1}:`);let f=2,d=Math.max(0,c.loc.line-f-1),m=Math.min(a.length,c.loc.line+f),g=a.slice(d,m).map((v,b)=>d+b+1===c.loc.line?`${ke("\u2502")} ${v}`:ke(`\u2502 ${v}`));g.splice(c.loc.line-d,0,`${ke("\u2506")}${" ".repeat(c.loc.column-1)} ${qn(`${ke("^--")} ${c.message}`)}`,`${ke("\u2506")}`),u.push(...g)}u.push(""),console.warn(u.join(`
25
+ `))}l=n(l.code,i),i=l.map?.toString();let o=l.code.toString(),s=new Nr.default(o);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,Er.default)([a,i],()=>null).toString()}return o=s.toString(),{code:o,map:i}}function ke(e){return`\x1B[2m${e}\x1B[22m`}function qn(e){return`\x1B[33m${e}\x1B[39m`}var Rr=require("source-map-js");function Hn(e){let t=new Rr.SourceMapGenerator,r=1,i=new h(n=>({url:n?.url??`<unknown ${r++}>`,content:n?.content??"<none>"}));for(let n of e.mappings){let l=i.get(n.originalPosition?.source??null);t.addMapping({generated:n.generatedPosition,original:n.originalPosition,source:l.url,name:n.name}),t.setSourceContent(l.url,l.content)}return t.toString()}function Zn(e){let t=typeof e=="string"?e:Hn(e);return{raw:t,get inline(){let r="";return r+="/*# sourceMappingURL=data:application/json;base64,",r+=Buffer.from(t,"utf-8").toString("base64"),r+=` */
26
+ `,r}}}process.versions.bun||Or.register?.((0,Pr.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 ye=Object.defineProperty;var ve=(e,t)=>{for(var r in t)ye(e,r,{get:t[r],enumerable:!0})};import*as b from"node:module";import{pathToFileURL as ut}from"node:url";var O={};ve(O,{DEBUG:()=>_});var _=Se(process.env.DEBUG);function Se(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 A from"enhanced-resolve";import{createJiti as Ye}from"jiti";import B from"node:fs";import pe from"node:fs/promises";import M,{dirname as oe}from"node:path";import{pathToFileURL as ae}from"node:url";import{__unstable__loadDesignSystem as Xe,compile as Ze,compileAst as et,Features as tt}from"tailwindcss";import P from"node:fs/promises";import y from"node:path";var Ne=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],we=[".js",".cjs",".mjs"],Ee=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ce=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Re(e,t){for(let r of t){let s=`${e}${r}`;if((await P.stat(s).catch(()=>null))?.isFile())return s}for(let r of t){let s=`${e}/index${r}`;if(await P.access(s).then(()=>!0,()=>!1))return s}return null}async function z(e,t,r,s){let n=we.includes(s)?Ee:Ce,l=await Re(y.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=y.dirname(l),s=y.extname(l);let i=await P.readFile(l,"utf-8"),a=[];for(let o of Ne)for(let f of i.matchAll(o))f[1].startsWith(".")&&a.push(z(e,f[1],r,s));await Promise.all(a)}async function G(e){let t=new Set;return await z(t,e,y.dirname(e),y.extname(e)),Array.from(t)}import*as W from"node:path";var v=92,w=47,E=42,ke=34,$e=39,be=58,C=59,h=10,S=32,R=9,Q=123,D=125,F=40,q=41,Te=91,_e=93,J=45,U=64,Oe=33;function Y(e){e=e.replaceAll(`\r
1
+ var Cr=Object.defineProperty;var Sr=(e,t)=>{for(var r in t)Cr(e,r,{get:t[r],enumerable:!0})};import*as Oe from"module";import{pathToFileURL as Ln}from"url";var Ue={};Sr(Ue,{DEBUG:()=>De});var De=$r(process.env.DEBUG);function $r(e){if(typeof e=="boolean")return e;if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let t=e.split(",").map(r=>r.split(":")[0]);return t.includes("-tailwindcss")?!1:!!t.includes("tailwindcss")}import re from"enhanced-resolve";import{createJiti as Cn}from"jiti";import ot from"fs";import vr from"fs/promises";import he from"path";import{pathToFileURL as dr}from"url";import{__unstable__loadDesignSystem as Sn,compile as $n,compileAst as Vn,Features as kc,Polyfills as bc}from"tailwindcss";import Ie from"fs/promises";import ie 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],Tr=[".js",".cjs",".mjs"],Er=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Nr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Rr(e,t){for(let r of t){let i=`${e}${r}`;if((await Ie.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await Ie.access(i).then(()=>!0,()=>!1))return i}return null}async function at(e,t,r,i){let n=Tr.includes(i)?Er:Nr,l=await Rr(ie.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=ie.dirname(l),i=ie.extname(l);let o=await Ie.readFile(l,"utf-8"),s=[];for(let a of Vr)for(let u of o.matchAll(a))u[1].startsWith(".")&&s.push(at(e,u[1],r,i));await Promise.all(s)}async function st(e){let t=new Set;return await at(t,e,ie.dirname(e),ie.extname(e)),Array.from(t)}import*as rt from"path";function N(e){return{kind:"word",value:e}}function Or(e,t){return{kind:"function",value:e,nodes:t}}function Pr(e){return{kind:"separator",value:e}}function S(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+S(r.nodes)+")"}return t}var ut=92,_r=41,ct=58,ft=44,Dr=34,pt=61,dt=62,mt=60,gt=10,Ur=40,Ir=39,Lr=47,ht=32,vt=9;function A(e){e=e.replaceAll(`\r
2
2
  `,`
3
- `);let t=[],r=[],s=[],n=null,l=null,i="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===v)i+=e.slice(f,f+2),f+=1;else if(u===w&&e.charCodeAt(f+1)===E){let c=f;for(let m=f+2;m<e.length;m++)if(o=e.charCodeAt(m),o===v)m+=1;else if(o===E&&e.charCodeAt(m+1)===w){f=m+1;break}let p=e.slice(c,f+1);p.charCodeAt(2)===Oe&&r.push(ee(p.slice(2,-2)))}else if(u===$e||u===ke){let c=f;for(let p=f+1;p<e.length;p++)if(o=e.charCodeAt(p),o===v)p+=1;else if(o===u){f=p;break}else{if(o===C&&e.charCodeAt(p+1)===h)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(u)}`);if(o===h)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(u)}`)}i+=e.slice(c,f+1)}else{if((u===S||u===h||u===R)&&(o=e.charCodeAt(f+1))&&(o===S||o===h||o===R))continue;if(u===h){if(i.length===0)continue;o=i.charCodeAt(i.length-1),o!==S&&o!==h&&o!==R&&(i+=" ")}else if(u===J&&e.charCodeAt(f+1)===J&&i.length===0){let c="",p=f,m=-1;for(let d=f+2;d<e.length;d++)if(o=e.charCodeAt(d),o===v)d+=1;else if(o===w&&e.charCodeAt(d+1)===E){for(let g=d+2;g<e.length;g++)if(o=e.charCodeAt(g),o===v)g+=1;else if(o===E&&e.charCodeAt(g+1)===w){d=g+1;break}}else if(m===-1&&o===be)m=i.length+d-p;else if(o===C&&c.length===0){i+=e.slice(p,d),f=d;break}else if(o===F)c+=")";else if(o===Te)c+="]";else if(o===Q)c+="}";else if((o===D||e.length-1===d)&&c.length===0){f=d-1,i+=e.slice(p,d);break}else(o===q||o===_e||o===D)&&c.length>0&&e[d]===c[c.length-1]&&(c=c.slice(0,-1));let T=I(i,m);if(!T)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(T):t.push(T),i=""}else if(u===C&&i.charCodeAt(0)===U)l=N(i),n?n.nodes.push(l):t.push(l),i="",l=null;else if(u===C&&a[a.length-1]!==")"){let c=I(i);if(!c)throw i.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${i.trim()}\``);n?n.nodes.push(c):t.push(c),i=""}else if(u===Q&&a[a.length-1]!==")")a+="}",l=X(i.trim()),n&&n.nodes.push(l),s.push(n),n=l,i="",l=null;else if(u===D&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),i.length>0)if(i.charCodeAt(0)===U)l=N(i),n?n.nodes.push(l):t.push(l),i="",l=null;else{let p=i.indexOf(":");if(n){let m=I(i,p);if(!m)throw new Error(`Invalid declaration: \`${i.trim()}\``);n.nodes.push(m)}}let c=s.pop()??null;c===null&&n&&t.push(n),n=c,i="",l=null}else if(u===F)a+=")",i+="(";else if(u===q){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),i+=")"}else{if(i.length===0&&(u===S||u===h||u===R))continue;i+=String.fromCharCode(u)}}}if(i.charCodeAt(0)===U&&t.push(N(i)),a.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 r.length>0?r.concat(t):t}function N(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===S||s===F){let n=e.slice(0,r).trim(),l=e.slice(r).trim();return V(n,l,t)}}return V(e.trim(),"",t)}function I(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 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 De=64;function Ue(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function V(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function X(e,t=[]){return e.charCodeAt(0)===De?N(e,t):Ue(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 k(e,t,r=[],s={}){for(let n=0;n<e.length;n++){let l=e[n],i=r[r.length-1]??null;if(l.kind==="context"){if(k(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,f=t(l,{parent:i,context:s,path:r,replaceWith(u){a=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),o=0):u.length===1?(e[n]=u[0],o=1):(e.splice(n,1,...u),o=u.length):(e[n]=u,o=1)}})??0;if(r.pop(),a){f===0?n--:n+=o-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in l){r.push(l);let u=k(l.nodes,t,r,s);if(r.pop(),u===2)return 2}}}function te(e){function t(s,n=0){let l="",i=" ".repeat(n);if(s.kind==="declaration")l+=`${i}${s.property}: ${s.value}${s.important?" !important":""};
4
- `;else if(s.kind==="rule"){l+=`${i}${s.selector} {
5
- `;for(let a of s.nodes)l+=t(a,n+1);l+=`${i}}
6
- `}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${i}${s.name} ${s.params};
7
- `;l+=`${i}${s.name}${s.params?` ${s.params} `:" "}{
8
- `;for(let a of s.nodes)l+=t(a,n+1);l+=`${i}}
9
- `}else if(s.kind==="comment")l+=`${i}/*${s.value}*/
10
- `;else if(s.kind==="context"||s.kind==="at-root")return"";return l}let r="";for(let s of e){let n=t(s);n!==""&&(r+=n)}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 n=e[2];(n==="?"||n===".")&&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 L(e){let t=Ie(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var K=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,re=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Fe=/(?:gradient|element|cross-fade|image)\(/,Ve=/^\s*data:/i,Le=/^([a-z]+:)?\/\//,We=/^[A-Z_][.\w-]*\(/i,Ke=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Me=/(?<!\\)"/g,je=/(?: |\\t|\\n|\\f|\\r)+/g,Be=e=>Ve.test(e),He=e=>Le.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),n=[];function l(i){if(i[0]==="/")return i;let a=W.posix.join(L(t),i),o=W.posix.relative(L(r),a);return o.startsWith(".")||(o="./"+o),o}return k(s,i=>{if(i.kind!=="declaration"||!i.value)return;let a=K.test(i.value),o=re.test(i.value);if(a||o){let f=o?ze:ne;n.push(f(i.value,l).then(u=>{i.value=u}))}}),n.length&&await Promise.all(n),te(s)}function ne(e,t){return le(e,K,async r=>{let[s,n]=r;return await ie(n.trim(),s,t)})}async function ze(e,t){return await le(e,re,async r=>{let[,s]=r;return await Qe(s,async({url:l})=>K.test(l)?await ne(l,t):Fe.test(l)?l:await ie(l,l,t))})}async function ie(e,t,r,s="url"){let n="",l=e[0];if((l==='"'||l==="'")&&(n=l,e=e.slice(1,-1)),Ge(e))return t;let i=await r(e);return n===""&&i!==encodeURI(i)&&(n='"'),n==="'"&&i.includes("'")&&(n='"'),n==='"'&&i.includes('"')&&(i=i.replace(Me,'\\"')),`${s}(${n}${i}${n})`}function Ge(e,t){return He(e)||Be(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||We.test(e)}function Qe(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(je," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Ke);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,n=e,l="";for(;s=t.exec(n);)l+=n.slice(0,s.index),l+=await r(s),n=n.slice(s.index+s[0].length);return l+=n,l}function de({base:e,onDependency:t,shouldRewriteUrls:r,customCssResolver:s,customJsResolver:n}){return{base:e,async loadModule(l,i){return he(l,i,t,n)},async loadStylesheet(l,i){let a=await ge(l,i,t,s);return r&&(a.content=await se({css:a.content,root:i,base:a.base})),a}}}async function me(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 pe.stat(M.resolve(t,s.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function rt(e,t){let r=await et(e,de(t));return await me(r,t.base),r}async function st(e,t){let r=await Ze(e,de(t));return await me(r,t.base),r}async function nt(e,{base:t}){return Xe(e,{base:t,async loadModule(r,s){return he(r,s,()=>{})},async loadStylesheet(r,s){return ge(r,s,()=>{})}})}async function he(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 n=await ce(e,t,s);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,i]=await Promise.all([fe(ae(n).href+"?id="+Date.now()),G(n)]);for(let a of i)r(a);return{base:oe(n),module:l.default??l}}async function ge(e,t,r,s){let n=await lt(e,t,s);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let i=await globalThis.__tw_readFile(n,"utf-8");if(i)return{base:M.dirname(n),content:i}}let l=await pe.readFile(n,"utf-8");return{base:M.dirname(n),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??=Ye(import.meta.url,{moduleCache:!1,fsCache:!1}),await ue.import(e)}}var H=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],it=A.ResolverFactory.createResolver({fileSystem:new A.CachedInputFileSystem(B,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:H});async function lt(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 j(it,e,t)}var ot=A.ResolverFactory.createResolver({fileSystem:new A.CachedInputFileSystem(B,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:H}),at=A.ResolverFactory.createResolver({fileSystem:new A.CachedInputFileSystem(B,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:H});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 j(ot,e,t).catch(()=>j(at,e,t))}function j(e,t,r){return new Promise((s,n)=>e.resolve({},r,t,{},(l,i)=>{if(l)return n(l);s(i)}))}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(n=>n.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(),n=r-s.value;this.#t.get(s.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let i=this.#e.length-1;i>=0;i--)this.end(this.#e[i].label);for(let[i,{value:a}]of this.#r.entries()){if(this.#t.has(i))continue;r.length===0&&(s=!0,r.push("Hits:"));let o=i.split("//").length;r.push(`${" ".repeat(o)}${i} ${$(Ae(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
12
- Timers:`);let n=-1/0,l=new Map;for(let[i,{value:a}]of this.#t){let o=`${(Number(a)/1e6).toFixed(2)}ms`;l.set(i,o),n=Math.max(n,o.length)}for(let i of this.#t.keys()){let a=i.split("//").length;r.push(`${$(`[${l.get(i).padStart(n," ")}]`)}${" ".repeat(a-1)}${a===1?" ":$(" \u21B3 ")}${i.split("//").pop()} ${this.#r.get(i).value===1?"":$(Ae(`\xD7 ${this.#r.get(i).value}`))}`.trimEnd())}t(`
3
+ `);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case ut:{n+=e[o]+e[o+1],o++;break}case Lr:{if(n.length>0){let u=N(n);i?i.nodes.push(u):t.push(u),n=""}let a=N(e[o]);i?i.nodes.push(a):t.push(a);break}case ct:case ft:case pt:case dt:case mt:case gt:case ht:case vt:{if(n.length>0){let f=N(n);i?i.nodes.push(f):t.push(f),n=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==ct&&l!==ft&&l!==pt&&l!==dt&&l!==mt&&l!==gt&&l!==ht&&l!==vt));u++);o=u-1;let p=Pr(e.slice(a,u));i?i.nodes.push(p):t.push(p);break}case Ir:case Dr:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===ut)u+=1;else if(l===s){o=u;break}n+=e.slice(a,o+1);break}case Ur:{let a=Or(n,[]);n="",i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case _r:{let a=r.pop();if(n.length>0){let u=N(n);a?.nodes.push(u),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&t.push(N(n)),t}var zr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function wt(e){return e.indexOf("(")!==-1&&zr.some(t=>e.includes(`${t}(`))}var h=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var Hn=new Uint8Array(256);var ke=new Uint8Array(256);function x(e,t){let r=0,i=[],n=0,l=e.length,o=t.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(r===0&&a===o){i.push(e.slice(n,s)),n=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:ke[r]=41,r++;break;case 91:ke[r]=93,r++;break;case 123:ke[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===ke[r-1]&&r--;break}}return i.push(e.slice(n)),i}var Le=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(Le||{}),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 y(e,t){typeof t=="function"?yt(e,t):yt(e,t.enter,t.exit)}function yt(e,t=()=>w.Continue,r=()=>w.Continue){let i=[[e,0,null]],n={parent:null,depth:0,path(){let l=[];for(let o=1;o<i.length;o++){let s=i[o][2];s&&l.push(s)}return l}};for(;i.length>0;){let l=i.length-1,o=i[l],s=o[0],a=o[1],u=o[2];if(a>=s.length){i.pop();continue}if(n.parent=u,n.depth=l,a>=0){let d=s[a],m=t(d,n)??w.Continue;switch(m.kind){case 0:{d.nodes&&d.nodes.length>0&&i.push([d.nodes,0,d]),o[1]=~a;continue}case 2:return;case 1:{o[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),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Le[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let p=~a,f=s[p],c=r(f,n)??w.Continue;switch(c.kind){case 0:o[1]=p+1;continue;case 2:return;case 3:{s.splice(p,1,...c.nodes),o[1]=p+c.nodes.length;continue}case 5:{s.splice(p,1,...c.nodes);return}case 4:{s.splice(p,1,...c.nodes),o[1]=p+c.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Le[c.kind]??`Unknown(${c.kind})`}\` in exit.`)}}}function kt(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(X),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(X),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(X),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function X(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:X(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 t=Fr(e.value),r=t?e.value.slice(4,-1):e.value,[i,n]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${Me(r)}${n}`:e.kind==="named"?`/${e.value}`:""}var Kr=new h(e=>{let t=A(e),r=new Set;return y(t,(i,n)=>{let l=n.parent===null?t:n.parent.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let o=l.indexOf(i)??-1;if(o===-1)return;let s=l[o-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l[o+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&&y(t,i=>{if(r.has(i))return r.delete(i),w.ReplaceSkip([])}),ze(t),S(t)});function Me(e){return Kr.get(e)}var oo=new h(e=>{let t=A(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"?S(t[2].nodes):e});function ze(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=ne(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=ne(t.value);for(let r=0;r<t.nodes.length;r++)ze([t.nodes[r]]);break}t.value=ne(t.value),ze(t.nodes);break}case"separator":t.value=ne(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=ne(t.value));break}default:jr(t)}}var Mr=new h(e=>{let t=A(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Fr(e){return Mr.get(e)}function jr(e){throw new Error(`Unexpected value: ${e}`)}function ne(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Wr=process.env.FEATURES_ENV!=="stable";var L=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,go=new RegExp(`^${L.source}$`);var ho=new RegExp(`^${L.source}%$`);var vo=new RegExp(`^${L.source}s*/s*${L.source}$`);var Br=["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"],Gr=new RegExp(`^${L.source}(${Br.join("|")})$`);function bt(e){return Gr.test(e)||wt(e)}var qr=["deg","rad","grad","turn"],wo=new RegExp(`^${L.source}(${qr.join("|")})$`);var yo=new RegExp(`^${L.source} +${L.source} +${L.source}$`);function $(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ee(e){return Hr(e,.25)}function Hr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function oe(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var Qr={"--alpha":Yr,"--spacing":Jr,"--theme":Xr,theme:ei};function Yr(e,t,r,...i){let[n,l]=x(r,"/").map(o=>o.trim());if(!n||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);return oe(n,l)}function Jr(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function Xr(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let l=e.resolveThemeValue(r,n);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 o=i.join(", ");if(o==="initial")return l;if(l==="initial")return o;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let s=A(l);return ri(s,o),S(s)}return l}function ei(e,t,r,...i){r=ti(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var Ko=new RegExp(Object.keys(Qr).map(e=>`${e}\\(`).join("|"));function ti(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function ri(e,t){y(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 Fe(e,t){let r=e.length,i=t.length,n=r<i?r:i;for(let l=0;l<n;l++){let o=e.charCodeAt(l),s=t.charCodeAt(l);if(o>=48&&o<=57&&s>=48&&s<=57){let a=l,u=l+1,p=l,f=l+1;for(o=e.charCodeAt(u);o>=48&&o<=57;)o=e.charCodeAt(++u);for(s=t.charCodeAt(f);s>=48&&s<=57;)s=t.charCodeAt(++f);let c=e.slice(a,u),d=t.slice(p,f),m=Number(c)-Number(d);if(m)return m;if(c<d)return-1;if(c>d)return 1;continue}if(o!==s)return o-s}return e.length-t.length}function Ct(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;te(e.charCodeAt(t));)t++;{for(r=t;t<i;t++){let 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 n=e.slice(r,t);for(;te(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:null,quote:null,value:null,sensitivity:null};let l=null,o=e.charCodeAt(t);if(o===61)l="=",t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)l=e[t]+"=",t+=2;else return null;for(;te(e.charCodeAt(t));)t++;if(t===i)return null;let s="",a=null;if(o=e.charCodeAt(t),o===39||o===34){a=e[t],t++,r=t;for(let p=t;p<i;p++){let f=e.charCodeAt(p);f===o?t=p+1:f===92&&p++}s=e.slice(r,t-1)}else{for(r=t;t<i&&!te(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;te(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:l,quote:a,value:s,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;te(e.charCodeAt(t));)t++;return t!==i?null:{attribute:n,operator:l,quote:a,value:s,sensitivity:u}}function te(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var ni=/^[a-zA-Z0-9-_%/\.]+$/;function We(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(!ni.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function oi(e){return{kind:"combinator",value:e}}function li(e,t){return{kind:"function",value:e,nodes:t}}function W(e){return{kind:"selector",value:e}}function ai(e){return{kind:"separator",value:e}}function si(e){return{kind:"value",value:e}}function B(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+B(r.nodes)+")"}return t}var $t=92,ui=93,Vt=41,ci=58,Tt=44,fi=34,pi=46,Et=62,Nt=10,di=35,Rt=91,Ot=40,Pt=43,mi=39,_t=32,Dt=9,Ut=126,gi=38,hi=42;function ae(e){e=e.replaceAll(`\r
4
+ `,`
5
+ `);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case Tt:case Et:case Nt:case _t:case Pt:case Dt:case Ut:{if(n.length>0){let c=W(n);i?i.nodes.push(c):t.push(c),n=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Tt&&l!==Et&&l!==Nt&&l!==_t&&l!==Pt&&l!==Dt&&l!==Ut));u++);o=u-1;let p=e.slice(a,u),f=p.trim()===","?ai(p):oi(p);i?i.nodes.push(f):t.push(f);break}case Ot:{let a=li(n,[]);if(n="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let u=o+1,p=0;for(let c=o+1;c<e.length;c++){if(l=e.charCodeAt(c),l===Ot){p++;continue}if(l===Vt){if(p===0){o=c;break}p--}}let f=o;a.nodes.push(si(e.slice(u,f))),n="",o=f,i?i.nodes.push(a):t.push(a);break}i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Vt:{let a=r.pop();if(n.length>0){let u=W(n);a.nodes.push(u),n=""}r.length>0?i=r[r.length-1]:i=null;break}case pi:case ci:case di:{if(n.length>0){let a=W(n);i?i.nodes.push(a):t.push(a)}n=e[o];break}case Rt:{if(n.length>0){let p=W(n);i?i.nodes.push(p):t.push(p)}n="";let a=o,u=0;for(let p=o+1;p<e.length;p++){if(l=e.charCodeAt(p),l===Rt){u++;continue}if(l===ui){if(u===0){o=p;break}u--}}n+=e.slice(a,o+1);break}case mi:case fi:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===$t)u+=1;else if(l===s){o=u;break}n+=e.slice(a,o+1);break}case gi:case hi:{if(n.length>0){let a=W(n);i?i.nodes.push(a):t.push(a),n=""}i?i.nodes.push(W(e[o])):t.push(W(e[o]));break}case $t:{n+=e[o]+e[o+1],o+=1;break}default:n+=e[o]}}return n.length>0&&t.push(W(n)),t}var vi=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,H=new h(e=>{let t=vi.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 n=t.groups?.unit;return n===void 0?[i,null]:[i,n]});function It(e,t=null){let r=!1,i=A(e);return y(i,{exit(n){if(n.kind==="word"&&n.value!=="0"){let l=wi(n.value,t);return l===null||l===n.value?void 0:(r=!0,w.ReplaceSkip(N(l)))}else if(n.kind==="function"&&(n.value==="calc"||n.value==="")){if(n.nodes.length!==5)return;let l=H.get(n.nodes[0].value),o=n.nodes[2].value,s=H.get(n.nodes[4].value);if(o==="*"&&(l?.[0]===0&&l?.[1]===null||s?.[0]===0&&s?.[1]===null))return r=!0,w.ReplaceSkip(N("0"));if(l===null||s===null)return;switch(o){case"*":{if(l[1]===s[1]||l[1]===null&&s[1]!==null||l[1]!==null&&s[1]===null)return r=!0,w.ReplaceSkip(N(`${l[0]*s[0]}${l[1]??""}`));break}case"+":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(N(`${l[0]+s[0]}${l[1]??""}`));break}case"-":{if(l[1]===s[1])return r=!0,w.ReplaceSkip(N(`${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(N(`${l[0]/s[0]}${l[1]??""}`));break}}}}}),r?S(i):e}function wi(e,t=null){let r=H.get(e);if(r===null)return null;let[i,n]=r;if(n===null)return`${i}`;if(i===0&&bt(e))return"0";switch(n.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}${n}`}}function Lt(e,t="top",r="right",i="bottom",n="left"){return Ft(`${e}-${t}`,`${e}-${r}`,`${e}-${i}`,`${e}-${n}`)}function Ft(e="top",t="right",r="bottom",i="left"){return{1:[[e,0],[t,0],[r,0],[i,0]],2:[[e,0],[t,1],[r,0],[i,1]],3:[[e,0],[t,1],[r,2],[i,1]],4:[[e,0],[t,1],[r,2],[i,3]]}}function Z(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var zt={inset:Ft(),margin:Lt("margin"),padding:Lt("padding"),gap:Z("row-gap","column-gap")},Kt={"inset-block":Z("top","bottom"),"inset-inline":Z("left","right"),"margin-block":Z("margin-top","margin-bottom"),"margin-inline":Z("margin-left","margin-right"),"padding-block":Z("padding-top","padding-bottom"),"padding-inline":Z("padding-left","padding-right")},Mt={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function jt(e,t){if(t&2){if(e.property in Kt){let r=x(e.value," ");return Kt[e.property][r.length]?.map(([i,n])=>E(i,r[n],e.important))}if(e.property in Mt)return Mt[e.property]?.map(r=>E(r,e.value,e.important))}if(e.property in zt){let r=x(e.value," ");return zt[e.property][r.length]?.map(([i,n])=>E(i,r[n],e.important))}return null}var Wt=/\d*\.\d+(?:[eE][+-]?\d+)?%/g;var G=new h(e=>{let t=e.designSystem;return new h(r=>{try{r=t.theme.prefix&&!r.startsWith(t.theme.prefix)?`${t.theme.prefix}:${r}`:r;let i=[z(".x",[T("@apply",r)])];return bi(t,()=>{for(let l of t.parseCandidate(r))t.compileAstNodes(l,1);se(i,t)}),Bt(i,e),_(i)}catch{return Symbol()}})});function Bt(e,t){let{rem:r,designSystem:i}=t;return y(e,{enter(n){if(n.kind==="declaration"){if(n.value===void 0||n.property==="--tw-sort")return w.Replace([]);if(t.features&1){let l=jt(n,t.features);if(l)return w.Replace(l)}n.value.includes("%")&&(Wt.lastIndex=0,n.value=n.value.replaceAll(Wt,l=>`${Number(l.slice(0,-1))}%`)),n.value.includes("var(")&&(n.value=ki(n.value,i)),n.value=It(n.value,r),n.value=Me(n.value)}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([])}},exit(n){(n.kind==="rule"||n.kind==="at-rule")&&n.nodes.sort((l,o)=>l.kind!=="declaration"||o.kind!=="declaration"?0:l.property.localeCompare(o.property))}}),e}function ki(e,t){let r=!1,i=A(e),n=new Set;return y(i,l=>{if(l.kind!=="function"||l.value!=="var"||l.nodes.length!==1&&l.nodes.length<3)return;let o=l.nodes[0].value;t.theme.prefix&&o.startsWith(`--${t.theme.prefix}-`)&&(o=o.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(o);if(!n.has(o)&&(n.add(o),s!==void 0&&(l.nodes.length===1&&(r=!0,l.nodes.push(...A(`,${s}`))),l.nodes.length>=3))){let a=S(l.nodes),u=`${l.nodes[0].value},${s}`;if(a===u)return r=!0,w.Replace(A(s))}}),r?S(i):e}var Gt=new h(e=>new h(t=>new h(r=>new Set))),Ge=new h(e=>new h(t=>{let r=new h(l=>new Set),i=e.designSystem;e.designSystem.theme.prefix&&!t.startsWith(e.designSystem.theme.prefix)&&(t=`${e.designSystem.theme.prefix}:${t}`);let n=i.parseCandidate(t);return n.length===0||y(Bt(i.compileAstNodes(n[0]).map(l=>R(l.node)),e),l=>{l.kind==="declaration"&&(r.get(l.property).add(l.value),Gt.get(e).get(l.property).get(l.value).add(t))}),r})),qe=new h(e=>{let{designSystem:t}=e,r=G.get(e),i=new h(()=>[]);for(let[n,l]of t.getClassList()){let o=r.get(n);if(typeof o=="string"){if(n[0]==="-"&&n.endsWith("-0")){let s=r.get(n.slice(1));if(typeof s=="string"&&o===s)continue}i.get(o).push(n),Ge.get(e).get(n);for(let s of l.modifiers){if(ee(s))continue;let a=`${n}/${s}`,u=r.get(a);typeof u=="string"&&(i.get(u).push(a),Ge.get(e).get(a))}}}return i}),xe=new h(e=>{let{designSystem:t}=e;return new h(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 se(i,t),y(i,l=>{if(l.kind==="at-rule"&&l.params.includes(" "))l.params=l.params.replaceAll(" ","");else if(l.kind==="rule"){let o=ae(l.selector),s=!1;y(o,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(o))}}),_(i)}catch{return Symbol()}})}),qt=new h(e=>{let{designSystem:t}=e,r=xe.get(e),i=new h(()=>[]);for(let[n,l]of t.variants.entries())if(l.kind==="static"){let o=r.get(n);if(typeof o!="string")continue;i.get(o).push(n)}return i});function bi(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=n=>{let l=r.call(e.theme.values,n);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 n of i)n.options|=1}}function M(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function ue(e){let t=[];for(let r of x(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),l=r.indexOf("]",n);if(n===-1||l===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,l)),i=l+1}i<=r.length-1&&t.push(r.slice(i))}return t}var El=new h(e=>new h((t=null)=>new h(r=>({designSystem:e,rem:t,features:r}))));var Nl=new h(e=>new h(t=>new h(r=>({features:r,designSystem:e,signatureOptions:t}))));var Rl=new h(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",i=Ci.get(e),n=$i.get(e);return new h((l,o)=>{for(let s of t.parseCandidate(l)){let a=s.variants.slice().reverse().flatMap(f=>i.get(f)),u=s.important;if(u||a.length>0){let c=o.get(t.printCandidate({...s,variants:[],important:!1}));return t.theme.prefix!==null&&a.length>0&&(c=c.slice(r.length)),a.length>0&&(c=`${a.map(d=>t.printVariant(d)).join(":")}:${c}`),u&&(c+="!"),t.theme.prefix!==null&&a.length>0&&(c=`${r}${c}`),c}let p=n.get(l);if(p!==l)return p}return l})}),Ai=[Ni,Fi,ji,zi],Ci=new h(e=>new h(t=>{let r=[t];for(let i of Ai)for(let n of r.splice(0)){let l=i(X(n),e);if(Array.isArray(l)){r.push(...l);continue}else r.push(l)}return r})),Si=[Ti,Ei,_i,Ui,Li,Ki,Mi,Wi],$i=new h(e=>{let t=e.designSystem;return new h(r=>{for(let i of t.parseCandidate(r)){let n=kt(i);for(let o of Si)n=o(n,e);let l=t.printCandidate(n);if(r!==l)return l}return r})}),Vi=["t","tr","r","br","b","bl","l","tl"];function Ti(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return Vi.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Ei(e,t){let r=Zt.get(t.designSystem);if(e.kind==="arbitrary"){let[i,n]=r(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,n!==null&&(e.modifier=n))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,n]=r(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,n!==null&&(e.modifier=n))}return e}function Ni(e,t){let r=Zt.get(t.designSystem),i=Se(e);for(let[n]of i)if(n.kind==="arbitrary"){let[l]=r(n.selector,2);l!==n.selector&&(n.selector=l)}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"){let[l]=r(n.value.value,2);l!==n.value.value&&(n.value.value=l)}return e}var Zt=new h(e=>{return t(e);function t(r){function i(s,a=0){let u=A(s);if(a&2)return[Ae(u,o),null];let p=0,f=0;if(y(u,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,y(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[Ae(u,l),null];if(f>1)return[Ae(u,o),null];let c=null;return[Ae(u,(m,g)=>{let v=x(m,"/").map(b=>b.trim());if(v.length>2)return null;if(u.length===1&&v.length===2&&a&1){let[b,k]=v;if(/^\d+%$/.test(k))c={kind:"named",value:k.slice(0,-1)};else if(/^0?\.\d+$/.test(k)){let O=Number(k)*100;c={kind:Number.isInteger(O)?"named":"arbitrary",value:O.toString()}}else c={kind:"arbitrary",value:k};m=b}return l(m,g)||o(m,g)}),c]}function n(s,a=!0){let u=`--${We(ue(s))}`;return r.theme.get([u])?a&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function l(s,a){let u=n(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let p=ue(s);if(p[0]==="spacing"&&r.theme.get(["--spacing"])){let f=p[1];return ee(f)?`--spacing(${f})`:null}return null}function o(s,a){let u=x(s,"/").map(c=>c.trim());s=u.shift();let p=n(s,!1);if(!p)return null;let f=u.length>0?`/${u.join("/")}`:"";return a?`--theme(${p}${f}, ${a})`:`--theme(${p}${f})`}return i}});function Ae(e,t){return y(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 n=r.nodes[0];if(n.kind!=="word")return;let l=n.value,o=1;for(let u=o;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=S([r.nodes[u]]),o=u+1;l=Ri(l);let s=r.nodes.slice(o+1),a=s.length>0?t(l,S(s)):t(l);if(a===null)return;if(i.parent){let u=i.parent.nodes.indexOf(r)-1;for(;u!==-1;){let p=i.parent.nodes[u];if(p.kind==="separator"&&p.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(a=`(${a})`);break}}return w.Replace(A(a))}}),S(e)}function Ri(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function*Se(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function F(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Oi(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 Pi=new h(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=H.get(t);if(!r)return null;let[i,n]=r;return new h(l=>{let o=H.get(l);if(!o)return null;let[s,a]=o;return a!==n?null:s/i})});function _i(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,i=qe.get(t.signatureOptions),n=G.get(t.signatureOptions),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of s(o,e)){let u=r.printCandidate(a);if(n.get(u)===o&&Di(r,e,a))return a}return e;function*s(a,u){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&u.modifier){let f={...u,modifier:null},c=n.get(r.printCandidate(f));if(typeof c=="string")for(let d of s(c,f))yield Object.assign({},d,{modifier:u.modifier})}if(p.length===1)for(let f of F(r,p[0]))yield f;else if(p.length===0){let f=u.kind==="arbitrary"?u.value:u.value?.value??null;if(f===null)return;let c=Pi.get(r)?.get(f)??null,d="";c!==null&&c<0&&(d="-",c=Math.abs(c));for(let m of Array.from(r.utilities.keys("functional")).sort((g,v)=>+(g[0]==="-")-+(v[0]==="-"))){d&&(m=`${d}${m}`);for(let g of F(r,`${m}-${f}`))yield g;if(u.modifier)for(let g of F(r,`${m}-${f}${u.modifier}`))yield g;if(c!==null){for(let g of F(r,`${m}-${c}`))yield g;if(u.modifier)for(let g of F(r,`${m}-${c}${Ke(u.modifier)}`))yield g}for(let g of F(r,`${m}-[${f}]`))yield g;if(u.modifier)for(let g of F(r,`${m}-[${f}]${Ke(u.modifier)}`))yield g}}}}}function Di(e,t,r){let i=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?i=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(i=t.value),i===null)return!0;let n=e.candidatesToCss([e.printCandidate(r)]).join(`
6
+ `),l=!0;return y(A(i),o=>{if(o.kind==="function"&&o.value==="var"){let s=o.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(n)||n.includes(`${s}:`))return l=!1,w.Stop}}),l}function Ui(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,i=qe.get(t.signatureOptions),n=G.get(t.signatureOptions),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of s(o,e)){let u=r.printCandidate(a);if(n.get(u)===o)return a}return e;function*s(a,u){let p=i.get(a);if(!(p.length>1)){if(p.length===0&&u.modifier){let f={...u,modifier:null},c=n.get(r.printCandidate(f));if(typeof c=="string")for(let d of s(c,f))yield Object.assign({},d,{modifier:u.modifier})}if(p.length===1)for(let f of F(r,p[0]))yield f}}}var Ii=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function Li(e,t){let r=t.designSystem,i=G.get(t.signatureOptions),n=Oi(r,e),l=Ii.get(n)??null;if(l===null)return e;let o=i.get(n);if(typeof o!="string")return e;let s=i.get(l);if(typeof s!="string"||o!==s)return e;let[a]=F(r,l);return a}function zi(e,t){let r=t.designSystem,i=xe.get(t.signatureOptions),n=qt.get(t.signatureOptions),l=Se(e);for(let[o]of l){if(o.kind==="compound")continue;let s=r.printVariant(o),a=i.get(s);if(typeof a!="string")continue;let u=n.get(a);if(u.length!==1)continue;let p=u[0],f=r.parseVariant(p);f!==null&&M(o,f)}return e}function Ki(e,t){let r=t.designSystem,i=G.get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});i.get(r.printCandidate(e))===i.get(n)&&(e.value.dataType=null)}return e}function Mi(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,i=G.get(t.signatureOptions),n=i.get(r.printCandidate(e));if(n===null)return e;for(let l of Qt(e))if(i.get(r.printCandidate({...e,value:l}))===n)return e.value=l,e;return e}function Fi(e){let t=Se(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,n]=x(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*Qt(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&ee(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[l,o]=t.split("/");$(l)&&$(o)&&(yield{kind:"named",value:l,fraction:`${l}/${o}`})}let i=new Set;for(let l of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(l[0].trim());let n=Array.from(i).sort((l,o)=>l.length-o.length);for(let l of n)yield*Qt(e,l,r)}function Ht(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function Ce(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function ji(e,t){let r=[e],i=t.designSystem,n=xe.get(t.signatureOptions),l=Se(e);for(let[o,s]of l)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=ae(o.selector.trim());if(!Ht(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(o,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(o,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(o,i.parseVariant(`in-[${B(a)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let c=n.get(i.printVariant(o)),d=A(B(a)),m=!1;if(y(d,g=>{if(g.kind==="word"&&g.value==="not")return m=!0,w.Replace([])}),d=A(S(d)),y(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${S(d)}]`);if(g===null)continue;let v=n.get(i.printVariant(g));if(c===v){M(o,g);continue}}}let u=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"&&Ce(a[2])&&(a=[a[2]],u=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"&&Ce(a[2])&&(a=[a[2]],u=i.parseVariant("**"));let p=a.filter(c=>!(c.kind==="selector"&&c.value.trim()==="&"));if(p.length!==1)continue;let f=p[0];if(f.kind==="function"&&f.value===":is"){if(!Ht(f.nodes)||f.nodes.length!==1||!Ce(f.nodes[0]))continue;f=f.nodes[0]}if(f.kind==="function"&&f.value[0]===":"||f.kind==="selector"&&f.value[0]===":"){let c=f,d=!1;if(c.kind==="function"&&c.value===":not"){if(d=!0,c.nodes.length!==1||c.nodes[0].kind!=="selector"&&c.nodes[0].kind!=="function"||c.nodes[0].value[0]!==":")continue;c=c.nodes[0]}let m=(v=>{if(v===":nth-child"&&c.kind==="function"&&c.nodes.length===1&&c.nodes[0].kind==="value"&&c.nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(v===":nth-child"&&c.kind==="function"&&c.nodes.length===1&&c.nodes[0].kind==="value"&&c.nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,k]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(v===b&&c.kind==="function"&&c.nodes.length===1)return c.nodes.length===1&&c.nodes[0].kind==="value"&&$(c.nodes[0].value)?`${k}-${c.nodes[0].value}`:`${k}-[${B(c.nodes)}]`;if(d){let b=n.get(i.printVariant(o)),k=n.get(`not-[${v}]`);if(b===k)return`[&${v}]`}return null})(c.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;M(o,g)}else if(Ce(f)){let c=Ct(f.value);if(c===null)continue;if(c.attribute.startsWith("data-")){let d=c.attribute.slice(5);M(o,{kind:"functional",root:"data",modifier:null,value:c.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${c.operator}${c.quote??""}${c.value}${c.quote??""}${c.sensitivity?` ${c.sensitivity}`:""}`}})}else if(c.attribute.startsWith("aria-")){let d=c.attribute.slice(5);M(o,{kind:"functional",root:"aria",modifier:null,value:c.value===null?{kind:"arbitrary",value:d}:c.operator==="="&&c.value==="true"&&c.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${c.attribute}${c.operator}${c.quote??""}${c.value}${c.quote??""}${c.sensitivity?` ${c.sensitivity}`:""}`}})}}if(u)return[u,o]}return r}function Wi(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,i=G.get(t.signatureOptions),n=i.get(r.printCandidate(e)),l=e.modifier;if(n===i.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let o={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(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}{let o={kind:"named",value:`${parseFloat(l.value)*100}`,fraction:null};if(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}return e}function ce(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let n=new Map,l=[],o=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let p=t.parseCandidate(u);if(p.length===0){r?.(u);continue}o.set(u,p)}let s=0;(i??!0)&&(s|=1);let a=t.getVariantOrder();for(let[u,p]of o){let f=!1;for(let c of p){let d=t.compileAstNodes(c,s);if(d.length!==0){f=!0;for(let{node:m,propertySort:g}of d){let v=0n;for(let b of c.variants)v|=1n<<BigInt(a.get(b));n.set(m,{properties:g,variants:v,candidate:u}),l.push(m)}}}f||r?.(u)}return l.sort((u,p)=>{let f=n.get(u),c=n.get(p);if(f.variants-c.variants!==0n)return Number(f.variants-c.variants);let d=0;for(;d<f.properties.order.length&&d<c.properties.order.length&&f.properties.order[d]===c.properties.order[d];)d+=1;return(f.properties.order[d]??1/0)-(c.properties.order[d]??1/0)||c.properties.count-f.properties.count||Fe(f.candidate,c.candidate)}),{astNodes:l,nodeSorting:n}}function se(e,t){let r=0,i=K("&",e),n=new Set,l=new h(()=>new Set),o=new h(()=>new Set);y([i],(f,c)=>{if(f.kind==="at-rule"){if(f.name==="@keyframes")return y(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(/-\*$/,"");o.get(d).add(f),y(f.nodes,m=>{if(!(m.kind!=="at-rule"||m.name!=="@apply")){n.add(f);for(let g of Jt(m,t))l.get(f).add(g)}});return}if(f.name==="@apply"){if(c.parent===null)return;r|=1,n.add(c.parent);for(let d of Jt(f,t))for(let m of c.path())n.has(m)&&l.get(m).add(d)}}});let s=new Set,a=[],u=new Set;function p(f,c=[]){if(!s.has(f)){if(u.has(f)){let d=c[(c.indexOf(f)+1)%c.length];throw f.kind==="at-rule"&&f.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&y(f.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let v of g)for(let b of t.parseCandidate(v))switch(b.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===b.root)throw new Error(`You cannot \`@apply\` the \`${v}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
7
+
8
+ ${_([f])}
9
+ Relies on:
10
+
11
+ ${_([d])}`)}u.add(f);for(let d of l.get(f))for(let m of o.get(d))c.push(f),p(m,c),c.pop();s.add(f),u.delete(f),a.push(f)}}for(let f of n)p(f);for(let f of a)"nodes"in f&&y(f.nodes,c=>{if(c.kind!=="at-rule"||c.name!=="@apply")return;let d=c.params.split(/(\s+)/g),m={},g=0;for(let[v,b]of d.entries())v%2===0&&(m[b]=g),g+=b.length;{let v=Object.keys(m),b=ce(v,t,{respectImportant:!1,onInvalidCandidate:C=>{if(t.theme.prefix&&!C.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${C}\`. Did you mean \`${t.theme.prefix}:${C}\`?`);if(t.invalidCandidates.has(C))throw new Error(`Cannot apply utility class \`${C}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let P=x(C,":");if(P.length>1){let ye=P.pop();if(t.candidatesToCss([ye])[0]){let Y=t.candidatesToCss(P.map(J=>`${J}:[--tw-variant-check:1]`)),j=P.filter((J,_e)=>Y[_e]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${C}\` 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 \`${C}\` because the ${J.format(j.map(_e=>`\`${_e}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${C}\`. 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 \`${C}\``)}}),k=c.src,O=b.astNodes.map(C=>{let P=b.nodeSorting.get(C)?.candidate,ye=P?m[P]:void 0;if(C=R(C),!k||!P||ye===void 0)return y([C],j=>{j.src=k}),C;let Y=[k[0],k[1],k[2]];return Y[1]+=7+ye,Y[2]=Y[1]+P.length,y([C],j=>{j.src=Y}),C}),Pe=[];for(let C of O)if(C.kind==="rule")for(let P of C.nodes)Pe.push(P);else Pe.push(C);return w.Replace(Pe)}});return r}function*Jt(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 fe=92,$e=47,Ve=42,Xt=34,er=39,Qi=58,Te=59,D=10,Ee=13,pe=32,de=9,tr=123,He=125,Ye=40,rr=41,Yi=91,Ji=93,ir=45,Ze=64,Xi=33;function ge(e,t){let r=t?.from?{file:t.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],n=[],l=[],o=null,s=null,a="",u="",p=0,f;for(let c=0;c<e.length;c++){let d=e.charCodeAt(c);if(!(d===Ee&&(f=e.charCodeAt(c+1),f===D)))if(d===fe)a===""&&(p=c),a+=e.slice(c,c+2),c+=1;else if(d===$e&&e.charCodeAt(c+1)===Ve){let m=c;for(let v=c+2;v<e.length;v++)if(f=e.charCodeAt(v),f===fe)v+=1;else if(f===Ve&&e.charCodeAt(v+1)===$e){c=v+1;break}let g=e.slice(m,c+1);if(g.charCodeAt(2)===Xi){let v=Xe(g.slice(2,-2));n.push(v),r&&(v.src=[r,m,c+1],v.dst=[r,m,c+1])}}else if(d===er||d===Xt){let m=nr(e,c,d);a+=e.slice(c,m+1),c=m}else{if((d===pe||d===D||d===de)&&(f=e.charCodeAt(c+1))&&(f===pe||f===D||f===de||f===Ee&&(f=e.charCodeAt(c+2))&&f==D))continue;if(d===D){if(a.length===0)continue;f=a.charCodeAt(a.length-1),f!==pe&&f!==D&&f!==de&&(a+=" ")}else if(d===ir&&e.charCodeAt(c+1)===ir&&a.length===0){let m="",g=c,v=-1;for(let k=c+2;k<e.length;k++)if(f=e.charCodeAt(k),f===fe)k+=1;else if(f===er||f===Xt)k=nr(e,k,f);else if(f===$e&&e.charCodeAt(k+1)===Ve){for(let O=k+2;O<e.length;O++)if(f=e.charCodeAt(O),f===fe)O+=1;else if(f===Ve&&e.charCodeAt(O+1)===$e){k=O+1;break}}else if(v===-1&&f===Qi)v=a.length+k-g;else if(f===Te&&m.length===0){a+=e.slice(g,k),c=k;break}else if(f===Ye)m+=")";else if(f===Yi)m+="]";else if(f===tr)m+="}";else if((f===He||e.length-1===k)&&m.length===0){c=k-1,a+=e.slice(g,k);break}else(f===rr||f===Ji||f===He)&&m.length>0&&e[k]===m[m.length-1]&&(m=m.slice(0,-1));let b=Qe(a,v);if(!b)throw new Error("Invalid custom property, expected a value");r&&(b.src=[r,g,c],b.dst=[r,g,c]),o?o.nodes.push(b):i.push(b),a=""}else if(d===Te&&a.charCodeAt(0)===Ze)s=me(a),r&&(s.src=[r,p,c],s.dst=[r,p,c]),o?o.nodes.push(s):i.push(s),a="",s=null;else if(d===Te&&u[u.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,c],m.dst=[r,p,c]),o?o.nodes.push(m):i.push(m),a=""}else if(d===tr&&u[u.length-1]!==")")u+="}",s=K(a.trim()),r&&(s.src=[r,p,c],s.dst=[r,p,c]),o&&o.nodes.push(s),l.push(o),o=s,a="",s=null;else if(d===He&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),a.length>0)if(a.charCodeAt(0)===Ze)s=me(a),r&&(s.src=[r,p,c],s.dst=[r,p,c]),o?o.nodes.push(s):i.push(s),a="",s=null;else{let g=a.indexOf(":");if(o){let v=Qe(a,g);if(!v)throw new Error(`Invalid declaration: \`${a.trim()}\``);r&&(v.src=[r,p,c],v.dst=[r,p,c]),o.nodes.push(v)}}let m=l.pop()??null;m===null&&o&&i.push(o),o=m,a="",s=null}else if(d===Ye)u+=")",a+="(";else if(d===rr){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),a+=")"}else{if(a.length===0&&(d===pe||d===D||d===de))continue;a===""&&(p=c),a+=String.fromCharCode(d)}}}if(a.charCodeAt(0)===Ze){let c=me(a);r&&(c.src=[r,p,e.length],c.dst=[r,p,e.length]),i.push(c)}if(u.length>0&&o){if(o.kind==="rule")throw new Error(`Missing closing } at ${o.selector}`);if(o.kind==="at-rule")throw new Error(`Missing closing } at ${o.name} ${o.params}`)}return n.length>0?n.concat(i):i}function me(e,t=[]){let r=e,i="";for(let n=5;n<e.length;n++){let l=e.charCodeAt(n);if(l===pe||l===de||l===Ye){r=e.slice(0,n),i=e.slice(n);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 E(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}function nr(e,t,r){let i;for(let n=t+1;n<e.length;n++)if(i=e.charCodeAt(n),i===fe)n+=1;else{if(i===r)return n;if(i===Te&&(e.charCodeAt(n+1)===D||e.charCodeAt(n+1)===Ee&&e.charCodeAt(n+2)===D))throw new Error(`Unterminated string: ${e.slice(t,n+1)+String.fromCharCode(r)}`);if(i===D||i===Ee&&e.charCodeAt(n+1)===D)throw new Error(`Unterminated string: ${e.slice(t,n)+String.fromCharCode(r)}`)}return t}var et={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 U=Q(e=>{if($(e.value))return e.value}),V=Q(e=>{if($(e.value))return`${e.value}%`}),q=Q(e=>{if($(e.value))return`${e.value}px`}),lr=Q(e=>{if($(e.value))return`${e.value}ms`}),Ne=Q(e=>{if($(e.value))return`${e.value}deg`}),on=Q(e=>{if(e.fraction===null)return;let[t,r]=x(e.fraction,"/");if(!(!$(t)||!$(r)))return e.fraction}),ar=Q(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ln={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",...on},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ne}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...q},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...et}),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",...U},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...q}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...U},flexShrink:{0:"0",DEFAULT:"1",...U},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",...U},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",...U},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",...U},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",...U},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))",...ar},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))",...ar},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Ne},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...U},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",...U},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ne},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ne},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...U},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...q},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...lr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...lr},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",...U}};var sn=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 K(e,t=[]){return e.charCodeAt(0)===sn?me(e,t):z(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Xe(e){return{kind:"comment",value:e}}function R(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(R),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(R),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 _(e,t){let r=0,i={file:null,code:""};function n(o,s=0){let a="",u=" ".repeat(s);if(o.kind==="declaration"){if(a+=`${u}${o.property}: ${o.value}${o.important?" !important":""};
12
+ `,t){r+=u.length;let p=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let f=r;r+=2,o.dst=[i,p,f]}}else if(o.kind==="rule"){if(a+=`${u}${o.selector} {
13
+ `,t){r+=u.length;let p=r;r+=o.selector.length,r+=1;let f=r;o.dst=[i,p,f],r+=2}for(let p of o.nodes)a+=n(p,s+1);a+=`${u}}
14
+ `,t&&(r+=u.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let p=`${u}${o.name} ${o.params};
15
+ `;if(t){r+=u.length;let f=r;r+=o.name.length,r+=1,r+=o.params.length;let c=r;r+=2,o.dst=[i,f,c]}return p}if(a+=`${u}${o.name}${o.params?` ${o.params} `:" "}{
16
+ `,t){r+=u.length;let p=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let f=r;o.dst=[i,p,f],r+=2}for(let p of o.nodes)a+=n(p,s+1);a+=`${u}}
17
+ `,t&&(r+=u.length,r+=2)}else if(o.kind==="comment"){if(a+=`${u}/*${o.value}*/
18
+ `,t){r+=u.length;let p=r;r+=2+o.value.length+2;let f=r;o.dst=[i,p,f],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return a}let l="";for(let o of e)l+=n(o,0);return i.code=l,l}function un(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function tt(e){let t=un(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var it=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,sr=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,cn=/(?:gradient|element|cross-fade|image)\(/,fn=/^\s*data:/i,pn=/^([a-z]+:)?\/\//,dn=/^[A-Z_][.\w-]*\(/i,mn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,gn=/(?<!\\)"/g,hn=/(?: |\\t|\\n|\\f|\\r)+/g,vn=e=>fn.test(e),wn=e=>pn.test(e);async function ur({css:e,base:t,root:r}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ge(e),n=[];function l(o){if(o[0]==="/")return o;let s=rt.posix.join(tt(t),o),a=rt.posix.relative(tt(r),s);return a.startsWith(".")||(a="./"+a),a}return y(i,o=>{if(o.kind!=="declaration"||!o.value)return;let s=it.test(o.value),a=sr.test(o.value);if(s||a){let u=a?yn:cr;n.push(u(o.value,l).then(p=>{o.value=p}))}}),n.length&&await Promise.all(n),_(i)}function cr(e,t){return pr(e,it,async r=>{let[i,n]=r;return await fr(n.trim(),i,t)})}async function yn(e,t){return await pr(e,sr,async r=>{let[,i]=r;return await bn(i,async({url:l})=>it.test(l)?await cr(l,t):cn.test(l)?l:await fr(l,l,t))})}async function fr(e,t,r,i="url"){let n="",l=e[0];if((l==='"'||l==="'")&&(n=l,e=e.slice(1,-1)),kn(e))return t;let o=await r(e);return n===""&&o!==encodeURI(o)&&(n='"'),n==="'"&&o.includes("'")&&(n='"'),n==='"'&&o.includes('"')&&(o=o.replace(gn,'\\"')),`${i}(${n}${o}${n})`}function kn(e,t){return wn(e)||vn(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||dn.test(e)}function bn(e,t){return Promise.all(xn(e).map(async({url:r,descriptor:i})=>({url:await t({url:r,descriptor:i}),descriptor:i}))).then(An)}function xn(e){let t=e.trim().replace(hn," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(mn);return Array.from(t,({groups:r})=>({url:r?.url?.trim()??"",descriptor:r?.descriptor?.trim()??""})).filter(({url:r})=>!!r)}function An(e){return e.map(({url:t,descriptor:r})=>t+(r?` ${r}`:"")).join(", ")}async function pr(e,t,r){let i,n=e,l="";for(;i=t.exec(n);)l+=n.slice(0,i.index),l+=await r(i),n=n.slice(i.index+i[0].length);return l+=n,l}function wr({base:e,from:t,polyfills:r,onDependency:i,shouldRewriteUrls:n,customCssResolver:l,customJsResolver:o}){return{base:e,polyfills:r,from:t,async loadModule(s,a){return kr(s,a,i,o)},async loadStylesheet(s,a){let u=await br(s,a,i,l);return n&&(u.content=await ur({css:u.content,root:e,base:u.base})),u}}}async function yr(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 vr.stat(he.resolve(t,i.join("/"))).then(l=>l.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Cc(e,t){let r=await Vn(e,wr(t));return await yr(r,t.base),r}async function Sc(e,t){let r=await $n(e,wr(t));return await yr(r,t.base),r}async function $c(e,{base:t}){return Sn(e,{base:t,async loadModule(r,i){return kr(r,i,()=>{})},async loadStylesheet(r,i){return br(r,i,()=>{})}})}async function kr(e,t,r,i){if(e[0]!=="."){let s=await hr(e,t,i);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await gr(dr(s).href);return{path:s,base:he.dirname(s),module:a.default??a}}let n=await hr(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,o]=await Promise.all([gr(dr(n).href+"?id="+Date.now()),st(n)]);for(let s of o)r(s);return{path:n,base:he.dirname(n),module:l.default??l}}async function br(e,t,r,i){let n=await En(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);if(r(n),typeof globalThis.__tw_readFile=="function"){let o=await globalThis.__tw_readFile(n,"utf-8");if(o)return{path:n,base:he.dirname(n),content:o}}let l=await vr.readFile(n,"utf-8");return{path:n,base:he.dirname(n),content:l}}var mr=null;async function gr(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 mr??=Cn(import.meta.url,{moduleCache:!1,fsCache:!1}),await mr.import(e)}}var lt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Tn=re.ResolverFactory.createResolver({fileSystem:new re.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:lt});async function En(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 nt(Tn,e,t)}var Nn=re.ResolverFactory.createResolver({fileSystem:new re.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:lt}),Rn=re.ResolverFactory.createResolver({fileSystem:new re.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:lt});async function hr(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 nt(Nn,e,t).catch(()=>nt(Rn,e,t))}function nt(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(l,o)=>{if(l)return n(l);i(o)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var xr=class{constructor(t=r=>void process.stderr.write(`${r}
19
+ `)){this.defaultFlush=t}#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(n=>n.label).join("//"),i=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=r-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],i=!1;for(let o=this.#e.length-1;o>=0;o--)this.end(this.#e[o].label);for(let[o,{value:s}]of this.#r.entries()){if(this.#t.has(o))continue;r.length===0&&(i=!0,r.push("Hits:"));let a=o.split("//").length;r.push(`${" ".repeat(a)}${o} ${Re(Ar(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&r.push(`
20
+ Timers:`);let n=-1/0,l=new Map;for(let[o,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(o,a),n=Math.max(n,a.length)}for(let o of this.#t.keys()){let s=o.split("//").length;r.push(`${Re(`[${l.get(o).padStart(n," ")}]`)}${" ".repeat(s-1)}${s===1?" ":Re(" \u21B3 ")}${o.split("//").pop()} ${this.#r.get(o).value===1?"":Re(Ar(`\xD7 ${this.#r.get(o).value}`))}`.trimEnd())}t(`
13
21
  ${r.join(`
14
22
  `)}
15
- `),this.reset()}[Symbol.dispose](){_&&this.report()}};function $(e){return`\x1B[2m${e}\x1B[22m`}function Ae(e){return`\x1B[34m${e}\x1B[39m`}if(!process.versions.bun){let e=b.createRequire(import.meta.url);b.register?.(ut(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{tt as Features,xe as Instrumentation,nt as __unstable__loadDesignSystem,st as compile,rt as compileAst,O as env,L as normalizePath};
23
+ `),this.reset()}[Symbol.dispose](){De&&this.report()}};function Re(e){return`\x1B[2m${e}\x1B[22m`}function Ar(e){return`\x1B[34m${e}\x1B[39m`}import On from"@jridgewell/remapping";import{Features as ve,transform as Pn}from"lightningcss";import _n from"magic-string";function Pc(e,{file:t="input.css",minify:r=!1,map:i}={}){function n(a,u){return Pn({filename:t,code:a,minify:r,sourceMap:typeof u<"u",inputSourceMap:u,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:ve.Nesting|ve.MediaQueries,exclude:ve.LogicalProperties|ve.DirSelector|ve.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=n(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
+ `),u=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,f]of l.warnings.entries()){u.push(""),l.warnings.length>1&&u.push(`Issue #${p+1}:`);let c=2,d=Math.max(0,f.loc.line-c-1),m=Math.min(a.length,f.loc.line+c),g=a.slice(d,m).map((v,b)=>d+b+1===f.loc.line?`${we("\u2502")} ${v}`:we(`\u2502 ${v}`));g.splice(f.loc.line-d,0,`${we("\u2506")}${" ".repeat(f.loc.column-1)} ${Dn(`${we("^--")} ${f.message}`)}`,`${we("\u2506")}`),u.push(...g)}u.push(""),console.warn(u.join(`
25
+ `))}l=n(l.code,i),i=l.map?.toString();let o=l.code.toString(),s=new _n(o);if(s.replaceAll("@media not (","@media not all and ("),i!==void 0&&s.hasChanged()){let a=s.generateMap({source:"original",hires:"boundary"}).toString();i=On([a,i],()=>null).toString()}return o=s.toString(),{code:o,map:i}}function we(e){return`\x1B[2m${e}\x1B[22m`}function Dn(e){return`\x1B[33m${e}\x1B[39m`}import{SourceMapGenerator as Un}from"source-map-js";function In(e){let t=new Un,r=1,i=new h(n=>({url:n?.url??`<unknown ${r++}>`,content:n?.content??"<none>"}));for(let n of e.mappings){let l=i.get(n.originalPosition?.source??null);t.addMapping({generated:n.generatedPosition,original:n.originalPosition,source:l.url,name:n.name}),t.setSourceContent(l.url,l.content)}return t.toString()}function Ic(e){let t=typeof e=="string"?e:In(e);return{raw:t,get inline(){let r="";return r+="/*# sourceMappingURL=data:application/json;base64,",r+=Buffer.from(t,"utf-8").toString("base64"),r+=` */
26
+ `,r}}}if(!process.versions.bun){let e=Oe.createRequire(import.meta.url);Oe.register?.(Ln(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{kc as Features,xr as Instrumentation,bc as Polyfills,$c as __unstable__loadDesignSystem,Sc as compile,Cc as compileAst,Ue as env,kr as loadModule,tt as normalizePath,Pc as optimize,Ic as toSourceMap};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/node",
3
- "version": "0.0.0-insiders.662c686",
3
+ "version": "0.0.0-insiders.66c18ca",
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.662c686"
36
+ "@jridgewell/remapping": "^2.3.4",
37
+ "enhanced-resolve": "^5.18.3",
38
+ "jiti": "^2.6.1",
39
+ "lightningcss": "1.30.2",
40
+ "magic-string": "^0.30.19",
41
+ "source-map-js": "^1.2.1",
42
+ "tailwindcss": "0.0.0-insiders.66c18ca"
39
43
  },
40
44
  "scripts": {
41
45
  "build": "tsup-node",