Files
locobook/node_modules/.vite/deps/tailwindcss.js
T

11010 lines
338 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//#region node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs
var l$1 = {
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)"
},
mauve: {
50: "oklch(98.5% 0 0)",
100: "oklch(96% 0.003 325.6)",
200: "oklch(92.2% 0.005 325.62)",
300: "oklch(86.5% 0.012 325.68)",
400: "oklch(71.1% 0.019 323.02)",
500: "oklch(54.2% 0.034 322.5)",
600: "oklch(43.5% 0.029 321.78)",
700: "oklch(36.4% 0.029 323.89)",
800: "oklch(26.3% 0.024 320.12)",
900: "oklch(21.2% 0.019 322.12)",
950: "oklch(14.5% 0.008 326)"
},
olive: {
50: "oklch(98.8% 0.003 106.5)",
100: "oklch(96.6% 0.005 106.5)",
200: "oklch(93% 0.007 106.5)",
300: "oklch(88% 0.011 106.6)",
400: "oklch(73.7% 0.021 106.9)",
500: "oklch(58% 0.031 107.3)",
600: "oklch(46.6% 0.025 107.3)",
700: "oklch(39.4% 0.023 107.4)",
800: "oklch(28.6% 0.016 107.4)",
900: "oklch(22.8% 0.013 107.4)",
950: "oklch(15.3% 0.006 107.1)"
},
mist: {
50: "oklch(98.7% 0.002 197.1)",
100: "oklch(96.3% 0.002 197.1)",
200: "oklch(92.5% 0.005 214.3)",
300: "oklch(87.2% 0.007 219.6)",
400: "oklch(72.3% 0.014 214.4)",
500: "oklch(56% 0.021 213.5)",
600: "oklch(45% 0.017 213.2)",
700: "oklch(37.8% 0.015 216)",
800: "oklch(27.5% 0.011 216.9)",
900: "oklch(21.8% 0.008 223.9)",
950: "oklch(14.8% 0.004 228.8)"
},
taupe: {
50: "oklch(98.6% 0.002 67.8)",
100: "oklch(96% 0.002 17.2)",
200: "oklch(92.2% 0.005 34.3)",
300: "oklch(86.8% 0.007 39.5)",
400: "oklch(71.4% 0.014 41.2)",
500: "oklch(54.7% 0.021 43.1)",
600: "oklch(43.8% 0.017 39.3)",
700: "oklch(36.7% 0.016 35.7)",
800: "oklch(26.8% 0.011 36.5)",
900: "oklch(21.4% 0.009 43.1)",
950: "oklch(14.7% 0.004 49.3)"
},
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)"
}
};
//#endregion
//#region node_modules/tailwindcss/dist/chunk-TDNFF6A4.mjs
var _$1 = new Set([
"black",
"silver",
"gray",
"white",
"maroon",
"red",
"purple",
"fuchsia",
"green",
"lime",
"olive",
"yellow",
"navy",
"blue",
"teal",
"aqua",
"aliceblue",
"antiquewhite",
"aqua",
"aquamarine",
"azure",
"beige",
"bisque",
"black",
"blanchedalmond",
"blue",
"blueviolet",
"brown",
"burlywood",
"cadetblue",
"chartreuse",
"chocolate",
"coral",
"cornflowerblue",
"cornsilk",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"darkgreen",
"darkgrey",
"darkkhaki",
"darkmagenta",
"darkolivegreen",
"darkorange",
"darkorchid",
"darkred",
"darksalmon",
"darkseagreen",
"darkslateblue",
"darkslategray",
"darkslategrey",
"darkturquoise",
"darkviolet",
"deeppink",
"deepskyblue",
"dimgray",
"dimgrey",
"dodgerblue",
"firebrick",
"floralwhite",
"forestgreen",
"fuchsia",
"gainsboro",
"ghostwhite",
"gold",
"goldenrod",
"gray",
"green",
"greenyellow",
"grey",
"honeydew",
"hotpink",
"indianred",
"indigo",
"ivory",
"khaki",
"lavender",
"lavenderblush",
"lawngreen",
"lemonchiffon",
"lightblue",
"lightcoral",
"lightcyan",
"lightgoldenrodyellow",
"lightgray",
"lightgreen",
"lightgrey",
"lightpink",
"lightsalmon",
"lightseagreen",
"lightskyblue",
"lightslategray",
"lightslategrey",
"lightsteelblue",
"lightyellow",
"lime",
"limegreen",
"linen",
"magenta",
"maroon",
"mediumaquamarine",
"mediumblue",
"mediumorchid",
"mediumpurple",
"mediumseagreen",
"mediumslateblue",
"mediumspringgreen",
"mediumturquoise",
"mediumvioletred",
"midnightblue",
"mintcream",
"mistyrose",
"moccasin",
"navajowhite",
"navy",
"oldlace",
"olive",
"olivedrab",
"orange",
"orangered",
"orchid",
"palegoldenrod",
"palegreen",
"paleturquoise",
"palevioletred",
"papayawhip",
"peachpuff",
"peru",
"pink",
"plum",
"powderblue",
"purple",
"rebeccapurple",
"red",
"rosybrown",
"royalblue",
"saddlebrown",
"salmon",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"silver",
"skyblue",
"slateblue",
"slategray",
"slategrey",
"snow",
"springgreen",
"steelblue",
"tan",
"teal",
"thistle",
"tomato",
"turquoise",
"violet",
"wheat",
"white",
"whitesmoke",
"yellow",
"yellowgreen",
"transparent",
"currentcolor",
"canvas",
"canvastext",
"linktext",
"visitedtext",
"activetext",
"buttonface",
"buttontext",
"buttonborder",
"field",
"fieldtext",
"highlight",
"highlighttext",
"selecteditem",
"selecteditemtext",
"mark",
"marktext",
"graytext",
"accentcolor",
"accentcolortext"
]), U = /^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;
function S(e) {
return e.charCodeAt(0) === 35 || U.test(e) || _$1.has(e.toLowerCase());
}
var A = [
"calc",
"min",
"max",
"clamp",
"mod",
"rem",
"sin",
"cos",
"tan",
"asin",
"acos",
"atan",
"atan2",
"pow",
"sqrt",
"hypot",
"log",
"exp",
"round"
];
function b(e) {
return e.indexOf("(") !== -1 && A.some((t) => e.includes(`${t}(`));
}
function oe$1(e) {
if (!A.some((n) => e.includes(n))) return e;
let t = "", r = [], s = null, m = null;
for (let n = 0; n < e.length; n++) {
let a = e.charCodeAt(n);
if (a >= 48 && a <= 57 || s !== null && (a === 37 || a >= 97 && a <= 122 || a >= 65 && a <= 90) ? s = n : (m = s, s = null), a === 40) {
t += e[n];
let i = n;
for (let p = n - 1; p >= 0; p--) {
let c = e.charCodeAt(p);
if (c >= 48 && c <= 57) i = p;
else if (c >= 97 && c <= 122) i = p;
else break;
}
let o = e.slice(i, n);
if (A.includes(o)) {
r.unshift(!0);
continue;
} else if (r[0] && o === "") {
r.unshift(!0);
continue;
}
r.unshift(!1);
continue;
} else if (a === 41) t += e[n], r.shift();
else if (a === 44 && r[0]) {
t += ", ";
continue;
} else {
if (a === 32 && r[0] && t.charCodeAt(t.length - 1) === 32) continue;
if ((a === 43 || a === 42 || a === 47 || a === 45) && r[0]) {
let i = t.trimEnd(), o = i.charCodeAt(i.length - 1), p = i.charCodeAt(i.length - 2), c = e.charCodeAt(n + 1);
if ((o === 101 || o === 69) && p >= 48 && p <= 57) {
t += e[n];
continue;
} else if (o === 43 || o === 42 || o === 47 || o === 45) {
t += e[n];
continue;
} else if (o === 40 || o === 44) {
t += e[n];
continue;
} else e.charCodeAt(n - 1) === 32 ? t += `${e[n]} ` : o >= 48 && o <= 57 || c >= 48 && c <= 57 || o === 41 || c === 40 || c === 43 || c === 42 || c === 47 || c === 45 || m !== null && m === n - 1 ? t += ` ${e[n]} ` : t += e[n];
} else t += e[n];
}
}
return t;
}
var E = new Uint8Array(256);
function d(e, t) {
let r = 0, s = [], m = 0, n = e.length, a = t.charCodeAt(0);
for (let i = 0; i < n; i++) {
let o = e.charCodeAt(i);
if (r === 0 && o === a) {
s.push(e.slice(m, i)), m = i + 1;
continue;
}
switch (o) {
case 92:
i += 1;
break;
case 39:
case 34:
for (; ++i < n;) {
let p = e.charCodeAt(i);
if (p === 92) {
i += 1;
continue;
}
if (p === o) break;
}
break;
case 40:
E[r] = 41, r++;
break;
case 91:
E[r] = 93, r++;
break;
case 123:
E[r] = 125, r++;
break;
case 93:
case 125:
case 41:
r > 0 && o === E[r - 1] && r--;
break;
}
}
return s.push(e.slice(m)), s;
}
var P = {
color: S,
length: y,
percentage: C,
ratio: G,
number: v,
integer: u,
url: R$1,
position: K,
"bg-size": Y$1,
"line-width": T,
image: F$1,
"family-name": M,
"generic-name": H,
"absolute-size": $$1,
"relative-size": W$1,
angle: X$1,
vector: te$1
};
function me(e, t) {
if (e.startsWith("var(")) return null;
for (let r of t) if (P[r]?.(e)) return r;
return null;
}
var z$1 = /^url\(.*\)$/;
function R$1(e) {
return z$1.test(e);
}
function T(e) {
return d(e, " ").every((t) => y(t) || v(t) || t === "thin" || t === "medium" || t === "thick");
}
var D = /^(?:element|image|cross-fade|image-set)\(/, I = /^(repeating-)?(conic|linear|radial)-gradient\(/;
function F$1(e) {
let t = 0;
for (let r of d(e, ",")) if (!r.startsWith("var(")) {
if (R$1(r)) {
t += 1;
continue;
}
if (I.test(r)) {
t += 1;
continue;
}
if (D.test(r)) {
t += 1;
continue;
}
return !1;
}
return t > 0;
}
function H(e) {
return e === "serif" || e === "sans-serif" || e === "monospace" || e === "cursive" || e === "fantasy" || e === "system-ui" || e === "ui-serif" || e === "ui-sans-serif" || e === "ui-monospace" || e === "ui-rounded" || e === "math" || e === "emoji" || e === "fangsong";
}
function M(e) {
let t = 0;
for (let r of d(e, ",")) {
let s = r.charCodeAt(0);
if (s >= 48 && s <= 57) return !1;
r.startsWith("var(") || (t += 1);
}
return t > 0;
}
function $$1(e) {
return e === "xx-small" || e === "x-small" || e === "small" || e === "medium" || e === "large" || e === "x-large" || e === "xx-large" || e === "xxx-large";
}
function W$1(e) {
return e === "larger" || e === "smaller";
}
var x = /[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/, B$1 = new RegExp(`^${x.source}$`);
function v(e) {
return B$1.test(e) || b(e);
}
var q$1 = new RegExp(`^${x.source}%$`);
function C(e) {
return q$1.test(e) || b(e);
}
var V = new RegExp(`^${x.source}\\s*/\\s*${x.source}$`);
function G(e) {
return V.test(e) || b(e);
}
var j = new RegExp(`^${x.source}(${[
"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"
].join("|")})$`);
function y(e) {
return j.test(e) || b(e);
}
function K(e) {
let t = 0;
for (let r of d(e, " ")) {
if (r === "center" || r === "top" || r === "right" || r === "bottom" || r === "left") {
t += 1;
continue;
}
if (!r.startsWith("var(")) {
if (y(r) || C(r)) {
t += 1;
continue;
}
return !1;
}
}
return t > 0;
}
function Y$1(e) {
let t = 0;
for (let r of d(e, ",")) {
if (r === "cover" || r === "contain") {
t += 1;
continue;
}
let s = d(r, " ");
if (s.length !== 1 && s.length !== 2) return !1;
if (s.every((m) => m === "auto" || y(m) || C(m))) {
t += 1;
continue;
}
}
return t > 0;
}
var J$1 = new RegExp(`^${x.source}(${[
"deg",
"rad",
"grad",
"turn"
].join("|")})$`);
function X$1(e) {
return J$1.test(e);
}
var ee = new RegExp(`^${x.source} +${x.source} +${x.source}$`);
function te$1(e) {
return ee.test(e);
}
function u(e) {
let t = Number(e);
return Number.isInteger(t) && t >= 0 && String(t) === String(e);
}
function pe$1(e) {
let t = Number(e);
return Number.isInteger(t) && t > 0 && String(t) === String(e);
}
function ge$1(e) {
return N(e, .25);
}
function ue(e) {
return N(e, .25);
}
function N(e, t) {
let r = Number(e);
return r >= 0 && r % t === 0 && String(r) === String(e);
}
function h(e) {
return { __BARE_VALUE__: e };
}
var g = h((e) => {
if (u(e.value)) return e.value;
}), l = h((e) => {
if (u(e.value)) return `${e.value}%`;
}), f = h((e) => {
if (u(e.value)) return `${e.value}px`;
}), O = h((e) => {
if (u(e.value)) return `${e.value}ms`;
}), w = h((e) => {
if (u(e.value)) return `${e.value}deg`;
}), re$1 = h((e) => {
if (e.fraction === null) return;
let [t, r] = d(e.fraction, "/");
if (!(!u(t) || !u(r))) return e.fraction;
}), L = h((e) => {
if (u(Number(e.value))) return `repeat(${e.value}, minmax(0, 1fr))`;
}), be$1 = {
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",
...re$1
},
backdropBlur: ({ theme: e }) => e("blur"),
backdropBrightness: ({ theme: e }) => ({
...e("brightness"),
...l
}),
backdropContrast: ({ theme: e }) => ({
...e("contrast"),
...l
}),
backdropGrayscale: ({ theme: e }) => ({
...e("grayscale"),
...l
}),
backdropHueRotate: ({ theme: e }) => ({
...e("hueRotate"),
...w
}),
backdropInvert: ({ theme: e }) => ({
...e("invert"),
...l
}),
backdropOpacity: ({ theme: e }) => ({
...e("opacity"),
...l
}),
backdropSaturate: ({ theme: e }) => ({
...e("saturate"),
...l
}),
backdropSepia: ({ theme: e }) => ({
...e("sepia"),
...l
}),
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",
...f
},
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",
...l
},
caretColor: ({ theme: e }) => e("colors"),
colors: () => ({ ...l$1 }),
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",
...g
},
container: {},
content: { none: "none" },
contrast: {
0: "0",
50: ".5",
75: ".75",
100: "1",
125: "1.25",
150: "1.5",
200: "2",
...l
},
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"),
...f
}),
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",
...g
},
flexShrink: {
0: "0",
DEFAULT: "1",
...g
},
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%",
...l
},
grayscale: {
0: "0",
DEFAULT: "100%",
...l
},
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",
...g
},
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",
...g
},
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",
...g
},
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",
...g
},
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))",
...L
},
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))",
...L
},
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",
...w
},
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%",
...l
},
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",
...g
},
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",
...l
},
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",
...g
},
outlineColor: ({ theme: e }) => e("colors"),
outlineOffset: {
0: "0px",
1: "1px",
2: "2px",
4: "4px",
8: "8px",
...f
},
outlineWidth: {
0: "0px",
1: "1px",
2: "2px",
4: "4px",
8: "8px",
...f
},
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",
...f
},
ringOpacity: ({ theme: e }) => ({
DEFAULT: "0.5",
...e("opacity")
}),
ringWidth: {
DEFAULT: "3px",
0: "0px",
1: "1px",
2: "2px",
4: "4px",
8: "8px",
...f
},
rotate: {
0: "0deg",
1: "1deg",
2: "2deg",
3: "3deg",
6: "6deg",
12: "12deg",
45: "45deg",
90: "90deg",
180: "180deg",
...w
},
saturate: {
0: "0",
50: ".5",
100: "1",
150: "1.5",
200: "2",
...l
},
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",
...l
},
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%",
...l
},
skew: {
0: "0deg",
1: "1deg",
2: "2deg",
3: "3deg",
6: "6deg",
12: "12deg",
...w
},
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",
...g
},
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",
...f
},
textIndent: ({ theme: e }) => e("spacing"),
textOpacity: ({ theme: e }) => e("opacity"),
textUnderlineOffset: {
auto: "auto",
0: "0px",
1: "1px",
2: "2px",
4: "4px",
8: "8px",
...f
},
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",
...O
},
transitionDuration: {
DEFAULT: "150ms",
0: "0s",
75: "75ms",
100: "100ms",
150: "150ms",
200: "200ms",
300: "300ms",
500: "500ms",
700: "700ms",
1e3: "1000ms",
...O
},
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",
...g
}
};
//#endregion
//#region node_modules/tailwindcss/dist/chunk-3IR7ZFJX.mjs
var ur = "4.2.4";
function lt(t) {
let r = [0];
for (let n = 0; n < t.length; n++) t.charCodeAt(n) === 10 && r.push(n + 1);
function i(n) {
let o = 0, l = r.length;
for (; l > 0;) {
let u = (l | 0) >> 1, f = o + u;
r[f] <= n ? (o = f + 1, l = l - u - 1) : l = u;
}
o -= 1;
let c = n - r[o];
return {
line: o + 1,
column: c
};
}
function e({ line: n, column: o }) {
n -= 1, n = Math.min(Math.max(n, 0), r.length - 1);
let l = r[n], c = r[n + 1] ?? l;
return Math.min(Math.max(l + o, 0), c);
}
return {
find: i,
findOffset: e
};
}
var Be = 92, at = 47, ot = 42, fr = 34, cr = 39, en = 58, st = 59, fe = 10, ut = 13, Ye = 32, Ge = 9, pr = 123, Et = 125, Pt = 40, dr = 41, tn = 91, rn = 93, mr = 45, Rt = 64, nn = 33, ce = class t extends Error {
loc;
constructor(r, i) {
if (i) {
let e = i[0], n = lt(e.code).find(i[1]);
r = `${e.file}:${n.line}:${n.column + 1}: ${r}`;
}
super(r), this.name = "CssSyntaxError", this.loc = i, Error.captureStackTrace && Error.captureStackTrace(this, t);
}
};
function Te(t, r) {
let i = r?.from ? {
file: r.from,
code: t
} : null;
t[0] === "" && (t = " " + t.slice(1));
let e = [], n = [], o = [], l = null, c = null, u = "", f = "", m = 0, d;
for (let p = 0; p < t.length; p++) {
let v = t.charCodeAt(p);
if (!(v === ut && (d = t.charCodeAt(p + 1), d === fe))) if (v === Be) u === "" && (m = p), u += t.slice(p, p + 2), p += 1;
else if (v === at && t.charCodeAt(p + 1) === ot) {
let h = p;
for (let b = p + 2; b < t.length; b++) if (d = t.charCodeAt(b), d === Be) b += 1;
else if (d === ot && t.charCodeAt(b + 1) === at) {
p = b + 1;
break;
}
let y = t.slice(h, p + 1);
if (y.charCodeAt(2) === nn) {
let b = ft(y.slice(2, -2));
n.push(b), i && (b.src = [
i,
h,
p + 1
], b.dst = [
i,
h,
p + 1
]);
}
} else if (v === cr || v === fr) {
let h = gr(t, p, v, i);
u += t.slice(p, h + 1), p = h;
} else {
if ((v === Ye || v === fe || v === Ge) && (d = t.charCodeAt(p + 1)) && (d === Ye || d === fe || d === Ge || d === ut && (d = t.charCodeAt(p + 2)) && d == fe)) continue;
if (v === fe) {
if (u.length === 0) continue;
d = u.charCodeAt(u.length - 1), d !== Ye && d !== fe && d !== Ge && (u += " ");
} else if (v === mr && t.charCodeAt(p + 1) === mr && u.length === 0) {
let h = "", y = p, b = -1;
for (let A = p + 2; A < t.length; A++) if (d = t.charCodeAt(A), d === Be) A += 1;
else if (d === cr || d === fr) A = gr(t, A, d, i);
else if (d === at && t.charCodeAt(A + 1) === ot) {
for (let k = A + 2; k < t.length; k++) if (d = t.charCodeAt(k), d === Be) k += 1;
else if (d === ot && t.charCodeAt(k + 1) === at) {
A = k + 1;
break;
}
} else if (b === -1 && d === en) b = u.length + A - y;
else if (d === st && h.length === 0) {
u += t.slice(y, A), p = A;
break;
} else if (d === Pt) h += ")";
else if (d === tn) h += "]";
else if (d === pr) h += "}";
else if ((d === Et || t.length - 1 === A) && h.length === 0) {
p = A - 1, u += t.slice(y, A);
break;
} else (d === dr || d === rn || d === Et) && h.length > 0 && t[A] === h[h.length - 1] && (h = h.slice(0, -1));
let T = Ot(u, b);
if (!T) throw new ce("Invalid custom property, expected a value", i ? [
i,
y,
p
] : null);
i && (T.src = [
i,
y,
p
], T.dst = [
i,
y,
p
]), l ? l.nodes.push(T) : e.push(T), u = "";
} else if (v === st && u.charCodeAt(0) === Rt) c = qe(u), i && (c.src = [
i,
m,
p
], c.dst = [
i,
m,
p
]), l ? l.nodes.push(c) : e.push(c), u = "", c = null;
else if (v === st && f[f.length - 1] !== ")") {
let h = Ot(u);
if (!h) {
if (u.length === 0) continue;
throw new ce(`Invalid declaration: \`${u.trim()}\``, i ? [
i,
m,
p
] : null);
}
i && (h.src = [
i,
m,
p
], h.dst = [
i,
m,
p
]), l ? l.nodes.push(h) : e.push(h), u = "";
} else if (v === pr && f[f.length - 1] !== ")") f += "}", c = J(u.trim()), i && (c.src = [
i,
m,
p
], c.dst = [
i,
m,
p
]), l && l.nodes.push(c), o.push(l), l = c, u = "", c = null;
else if (v === Et && f[f.length - 1] !== ")") {
if (f === "") throw new ce("Missing opening {", i ? [
i,
p,
p
] : null);
if (f = f.slice(0, -1), u.length > 0) if (u.charCodeAt(0) === Rt) c = qe(u), i && (c.src = [
i,
m,
p
], c.dst = [
i,
m,
p
]), l ? l.nodes.push(c) : e.push(c), u = "", c = null;
else {
let y = u.indexOf(":");
if (l) {
let b = Ot(u, y);
if (!b) throw new ce(`Invalid declaration: \`${u.trim()}\``, i ? [
i,
m,
p
] : null);
i && (b.src = [
i,
m,
p
], b.dst = [
i,
m,
p
]), l.nodes.push(b);
}
}
let h = o.pop() ?? null;
h === null && l && e.push(l), l = h, u = "", c = null;
} else if (v === Pt) f += ")", u += "(";
else if (v === dr) {
if (f[f.length - 1] !== ")") throw new ce("Missing opening (", i ? [
i,
p,
p
] : null);
f = f.slice(0, -1), u += ")";
} else {
if (u.length === 0 && (v === Ye || v === fe || v === Ge)) continue;
u === "" && (m = p), u += String.fromCharCode(v);
}
}
}
if (u.charCodeAt(0) === Rt) {
let p = qe(u);
i && (p.src = [
i,
m,
t.length
], p.dst = [
i,
m,
t.length
]), e.push(p);
}
if (f.length > 0 && l) {
if (l.kind === "rule") throw new ce(`Missing closing } at ${l.selector}`, l.src ? [
l.src[0],
l.src[1],
l.src[1]
] : null);
if (l.kind === "at-rule") throw new ce(`Missing closing } at ${l.name} ${l.params}`, l.src ? [
l.src[0],
l.src[1],
l.src[1]
] : null);
}
return n.length > 0 ? n.concat(e) : e;
}
function qe(t, r = []) {
let i = t, e = "";
for (let n = 5; n < t.length; n++) {
let o = t.charCodeAt(n);
if (o === Ye || o === Ge || o === Pt) {
i = t.slice(0, n), e = t.slice(n);
break;
}
}
return W(i.trim(), e.trim(), r);
}
function Ot(t, r = t.indexOf(":")) {
if (r === -1) return null;
let i = t.indexOf("!important", r + 1);
return a(t.slice(0, r).trim(), t.slice(r + 1, i === -1 ? t.length : i).trim(), i !== -1);
}
function gr(t, r, i, e = null) {
let n;
for (let o = r + 1; o < t.length; o++) if (n = t.charCodeAt(o), n === Be) o += 1;
else {
if (n === i) return o;
if (n === st && (t.charCodeAt(o + 1) === fe || t.charCodeAt(o + 1) === ut && t.charCodeAt(o + 2) === fe)) throw new ce(`Unterminated string: ${t.slice(r, o + 1) + String.fromCharCode(i)}`, e ? [
e,
r,
o + 1
] : null);
if (n === fe || n === ut && t.charCodeAt(o + 1) === fe) throw new ce(`Unterminated string: ${t.slice(r, o) + String.fromCharCode(i)}`, e ? [
e,
r,
o + 1
] : null);
}
return r;
}
function xe(t) {
if (arguments.length === 0) throw new TypeError("`CSS.escape` requires an argument.");
let r = String(t), i = r.length, e = -1, n, o = "", l = r.charCodeAt(0);
if (i === 1 && l === 45) return "\\" + r;
for (; ++e < i;) {
if (n = r.charCodeAt(e), n === 0) {
o += "";
continue;
}
if (n >= 1 && n <= 31 || n === 127 || e === 0 && n >= 48 && n <= 57 || e === 1 && n >= 48 && n <= 57 && l === 45) {
o += "\\" + n.toString(16) + " ";
continue;
}
if (n >= 128 || n === 45 || n === 95 || n >= 48 && n <= 57 || n >= 65 && n <= 90 || n >= 97 && n <= 122) {
o += r.charAt(e);
continue;
}
o += "\\" + r.charAt(e);
}
return o;
}
function ye(t) {
return t.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g, (r) => {
if (r.length <= 2) return r[1];
let i = Number.parseInt(r.slice(1).trim(), 16);
return i === 0 || i > 1114111 || i >= 55296 && i <= 57343 ? "" : String.fromCodePoint(i);
});
}
var vr = new Map([
["--font", ["--font-weight", "--font-size"]],
["--inset", ["--inset-shadow", "--inset-ring"]],
["--text", [
"--text-color",
"--text-decoration-color",
"--text-decoration-thickness",
"--text-indent",
"--text-shadow",
"--text-underline-offset"
]],
["--grid-column", ["--grid-column-start", "--grid-column-end"]],
["--grid-row", ["--grid-row-start", "--grid-row-end"]]
]);
function hr(t, r) {
return (vr.get(r) ?? []).some((i) => t === i || t.startsWith(`${i}-`));
}
var ct = class {
constructor(r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set([])) {
this.values = r;
this.keyframes = i;
}
prefix = null;
get size() {
return this.values.size;
}
add(r, i, e = 0, n) {
if (r.endsWith("-*")) {
if (i !== "initial") throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);
r === "--*" ? this.values.clear() : this.clearNamespace(r.slice(0, -2), 0);
}
if (e & 4) {
let o = this.values.get(r);
if (o && !(o.options & 4)) return;
}
i === "initial" ? this.values.delete(r) : this.values.set(r, {
value: i,
options: e,
src: n
});
}
keysInNamespaces(r) {
let i = [];
for (let e of r) {
let n = `${e}-`;
for (let o of this.values.keys()) o.startsWith(n) && o.indexOf("--", 2) === -1 && (hr(o, e) || i.push(o.slice(n.length)));
}
return i;
}
get(r) {
for (let i of r) {
let e = this.values.get(i);
if (e) return e.value;
}
return null;
}
hasDefault(r) {
return (this.getOptions(r) & 4) === 4;
}
getOptions(r) {
return r = ye(this.#r(r)), this.values.get(r)?.options ?? 0;
}
entries() {
return this.prefix ? Array.from(this.values, (r) => (r[0] = this.prefixKey(r[0]), r)) : this.values.entries();
}
prefixKey(r) {
return this.prefix ? `--${this.prefix}-${r.slice(2)}` : r;
}
#r(r) {
return this.prefix ? `--${r.slice(3 + this.prefix.length)}` : r;
}
clearNamespace(r, i) {
let e = vr.get(r) ?? [];
e: for (let n of this.values.keys()) if (n.startsWith(r)) {
if (i !== 0 && (this.getOptions(n) & i) !== i) continue;
for (let o of e) if (n.startsWith(o)) continue e;
this.values.delete(n);
}
}
#e(r, i) {
for (let e of i) {
let n = r !== null ? `${e}-${r}` : e;
if (!this.values.has(n)) if (r !== null && r.includes(".")) {
if (n = `${e}-${r.replaceAll(".", "_")}`, !this.values.has(n)) continue;
} else continue;
if (!hr(n, e)) return n;
}
return null;
}
#t(r) {
let i = this.values.get(r);
if (!i) return null;
let e = null;
return i.options & 2 && (e = i.value), `var(${xe(this.prefixKey(r))}${e ? `, ${e}` : ""})`;
}
markUsedVariable(r) {
let i = ye(this.#r(r)), e = this.values.get(i);
if (!e) return !1;
let n = e.options & 16;
return e.options |= 16, !n;
}
resolve(r, i, e = 0) {
let n = this.#e(r, i);
if (!n) return null;
let o = this.values.get(n);
return (e | o.options) & 1 ? o.value : this.#t(n);
}
resolveValue(r, i) {
let e = this.#e(r, i);
return e ? this.values.get(e).value : null;
}
resolveWith(r, i, e = []) {
let n = this.#e(r, i);
if (!n) return null;
let o = {};
for (let c of e) {
let u = `${n}${c}`, f = this.values.get(u);
f && (f.options & 1 ? o[c] = f.value : o[c] = this.#t(u));
}
let l = this.values.get(n);
return l.options & 1 ? [l.value, o] : [this.#t(n), o];
}
namespace(r) {
let i = /* @__PURE__ */ new Map(), e = `${r}-`;
for (let [n, o] of this.values) n === r ? i.set(null, o.value) : n.startsWith(`${e}-`) ? i.set(n.slice(r.length), o.value) : n.startsWith(e) && i.set(n.slice(e.length), o.value);
return i;
}
addKeyframes(r) {
this.keyframes.add(r);
}
getKeyframes() {
return Array.from(this.keyframes);
}
};
var z = class extends Map {
constructor(i) {
super();
this.factory = i;
}
get(i) {
let e = super.get(i);
return e === void 0 && (e = this.factory(i, this), this.set(i, e)), e;
}
};
function ne(t) {
return {
kind: "word",
value: t
};
}
function ln(t, r) {
return {
kind: "function",
value: t,
nodes: r
};
}
function an(t) {
return {
kind: "separator",
value: t
};
}
function Y(t) {
let r = "";
for (let i of t) switch (i.kind) {
case "word":
case "separator":
r += i.value;
break;
case "function": r += i.value + "(" + Y(i.nodes) + ")";
}
return r;
}
var wr = 92, on = 41, yr = 58, kr = 44, sn = 34, br = 61, xr = 62, Ar = 60, Cr = 10, un = 40, fn = 39, cn = 47, $r = 32, Sr = 9;
function F(t) {
t = t.replaceAll(`\r
`, `
`);
let r = [], i = [], e = null, n = "", o;
for (let l = 0; l < t.length; l++) {
let c = t.charCodeAt(l);
switch (c) {
case wr:
n += t[l] + t[l + 1], l++;
break;
case cn: {
if (n.length > 0) {
let f = ne(n);
e ? e.nodes.push(f) : r.push(f), n = "";
}
let u = ne(t[l]);
e ? e.nodes.push(u) : r.push(u);
break;
}
case yr:
case kr:
case br:
case xr:
case Ar:
case Cr:
case $r:
case Sr: {
if (n.length > 0) {
let d = ne(n);
e ? e.nodes.push(d) : r.push(d), n = "";
}
let u = l, f = l + 1;
for (; f < t.length && (o = t.charCodeAt(f), !(o !== yr && o !== kr && o !== br && o !== xr && o !== Ar && o !== Cr && o !== $r && o !== Sr)); f++);
l = f - 1;
let m = an(t.slice(u, f));
e ? e.nodes.push(m) : r.push(m);
break;
}
case fn:
case sn: {
let u = l;
for (let f = l + 1; f < t.length; f++) if (o = t.charCodeAt(f), o === wr) f += 1;
else if (o === c) {
l = f;
break;
}
n += t.slice(u, l + 1);
break;
}
case un: {
let u = ln(n, []);
n = "", e ? e.nodes.push(u) : r.push(u), i.push(u), e = u;
break;
}
case on: {
let u = i.pop();
if (n.length > 0) {
let f = ne(n);
u?.nodes.push(f), n = "";
}
i.length > 0 ? e = i[i.length - 1] : e = null;
break;
}
default: n += String.fromCharCode(c);
}
}
return n.length > 0 && r.push(ne(n)), r;
}
var _t = ((l) => (l[l.Continue = 0] = "Continue", l[l.Skip = 1] = "Skip", l[l.Stop = 2] = "Stop", l[l.Replace = 3] = "Replace", l[l.ReplaceSkip = 4] = "ReplaceSkip", l[l.ReplaceStop = 5] = "ReplaceStop", l))(_t || {}), R = {
Continue: { kind: 0 },
Skip: { kind: 1 },
Stop: { kind: 2 },
Replace: (t) => ({
kind: 3,
nodes: Array.isArray(t) ? t : [t]
}),
ReplaceSkip: (t) => ({
kind: 4,
nodes: Array.isArray(t) ? t : [t]
}),
ReplaceStop: (t) => ({
kind: 5,
nodes: Array.isArray(t) ? t : [t]
})
};
function _(t, r) {
typeof r == "function" ? Vr(t, r) : Vr(t, r.enter, r.exit);
}
function Vr(t, r = () => R.Continue, i = () => R.Continue) {
let e = {
value: [
t,
0,
null
],
prev: null
}, n = {
parent: null,
depth: 0,
path() {
let o = [], l = e;
for (; l;) {
let c = l.value[2];
c && o.push(c), l = l.prev;
}
return o.reverse(), o;
}
};
for (; e !== null;) {
let o = e.value, l = o[0], c = o[1], u = o[2];
if (c >= l.length) {
e = e.prev, n.depth -= 1;
continue;
}
if (n.parent = u, c >= 0) {
let p = l[c], v = r(p, n) ?? R.Continue;
switch (v.kind) {
case 0:
p.nodes && p.nodes.length > 0 && (n.depth += 1, e = {
value: [
p.nodes,
0,
p
],
prev: e
}), o[1] = ~c;
continue;
case 2: return;
case 1:
o[1] = ~c;
continue;
case 3:
l.splice(c, 1, ...v.nodes);
continue;
case 5:
l.splice(c, 1, ...v.nodes);
return;
case 4:
l.splice(c, 1, ...v.nodes), o[1] += v.nodes.length;
continue;
default: throw new Error(`Invalid \`WalkAction.${_t[v.kind] ?? `Unknown(${v.kind})`}\` in enter.`);
}
}
let f = ~c, m = l[f], d = i(m, n) ?? R.Continue;
switch (d.kind) {
case 0:
o[1] = f + 1;
continue;
case 2: return;
case 3:
l.splice(f, 1, ...d.nodes), o[1] = f + d.nodes.length;
continue;
case 5:
l.splice(f, 1, ...d.nodes);
return;
case 4:
l.splice(f, 1, ...d.nodes), o[1] = f + d.nodes.length;
continue;
default: throw new Error(`Invalid \`WalkAction.${_t[d.kind] ?? `Unknown(${d.kind})`}\` in exit.`);
}
}
}
function pt(t) {
let r = [];
return _(F(t), (i) => {
if (!(i.kind !== "function" || i.value !== "var")) return _(i.nodes, (e) => {
e.kind !== "word" || e.value[0] !== "-" || e.value[1] !== "-" || r.push(e.value);
}), R.Skip;
}), r;
}
var pn = 64;
function q(t, r = []) {
return {
kind: "rule",
selector: t,
nodes: r
};
}
function W(t, r = "", i = []) {
return {
kind: "at-rule",
name: t,
params: r,
nodes: i
};
}
function J(t, r = []) {
return t.charCodeAt(0) === pn ? qe(t, r) : q(t, r);
}
function a(t, r, i = !1) {
return {
kind: "declaration",
property: t,
value: r,
important: i
};
}
function ft(t) {
return {
kind: "comment",
value: t
};
}
function ge(t, r) {
return {
kind: "context",
context: t,
nodes: r
};
}
function B(t) {
return {
kind: "at-root",
nodes: t
};
}
function te(t) {
switch (t.kind) {
case "rule": return {
kind: t.kind,
selector: t.selector,
nodes: t.nodes.map(te),
src: t.src,
dst: t.dst
};
case "at-rule": return {
kind: t.kind,
name: t.name,
params: t.params,
nodes: t.nodes.map(te),
src: t.src,
dst: t.dst
};
case "at-root": return {
kind: t.kind,
nodes: t.nodes.map(te),
src: t.src,
dst: t.dst
};
case "context": return {
kind: t.kind,
context: { ...t.context },
nodes: t.nodes.map(te),
src: t.src,
dst: t.dst
};
case "declaration": return {
kind: t.kind,
property: t.property,
value: t.value,
important: t.important,
src: t.src,
dst: t.dst
};
case "comment": return {
kind: t.kind,
value: t.value,
src: t.src,
dst: t.dst
};
default: throw new Error(`Unknown node kind: ${t.kind}`);
}
}
function He(t) {
return {
depth: t.depth,
get context() {
let r = {};
for (let i of t.path()) i.kind === "context" && Object.assign(r, i.context);
return Object.defineProperty(this, "context", { value: r }), r;
},
get parent() {
let r = this.path().pop() ?? null;
return Object.defineProperty(this, "parent", { value: r }), r;
},
path() {
return t.path().filter((r) => r.kind !== "context");
}
};
}
function Ne(t, r, i = 3) {
let e = [], n = /* @__PURE__ */ new Set(), o = new z(() => /* @__PURE__ */ new Set()), l = new z(() => /* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), f = [], m = [], d = new z(() => /* @__PURE__ */ new Set());
function p(h, y, b = {}, T = 0) {
if (h.kind === "declaration") {
if (h.property === "--tw-sort" || h.value === void 0 || h.value === null) return;
if (b.theme && h.property[0] === "-" && h.property[1] === "-") {
if (h.value === "initial") {
h.value = void 0;
return;
}
b.keyframes || o.get(y).add(h);
}
if (h.value.includes("var(")) if (b.theme && h.property[0] === "-" && h.property[1] === "-") for (let A of pt(h.value)) d.get(A).add(h.property);
else r.trackUsedVariables(h.value);
if (h.property === "animation") for (let A of Tr(h.value)) u.add(A);
i & 2 && h.value.includes("color-mix(") && !b.supportsColorMix && !b.keyframes && l.get(y).add(h), y.push(h);
} else if (h.kind === "rule") {
let A = [];
for (let N of h.nodes) p(N, A, b, T + 1);
let k = {}, D = /* @__PURE__ */ new Set();
for (let N of A) {
if (N.kind !== "declaration") continue;
let E = `${N.property}:${N.value}:${N.important}`;
k[E] ??= [], k[E].push(N);
}
for (let N in k) for (let E = 0; E < k[N].length - 1; ++E) D.add(k[N][E]);
if (D.size > 0 && (A = A.filter((N) => !D.has(N))), A.length === 0) return;
h.selector === "&" ? y.push(...A) : y.push({
...h,
nodes: A
});
} else if (h.kind === "at-rule" && h.name === "@property" && T === 0) {
if (n.has(h.params)) return;
if (i & 1) {
let k = h.params, D = null, N = !1;
for (let U of h.nodes) U.kind === "declaration" && (U.property === "initial-value" ? D = U.value : U.property === "inherits" && (N = U.value === "true"));
let E = a(k, D ?? "initial");
E.src = h.src, N ? f.push(E) : m.push(E);
}
n.add(h.params);
let A = {
...h,
nodes: []
};
for (let k of h.nodes) p(k, A.nodes, b, T + 1);
y.push(A);
} else if (h.kind === "at-rule") {
h.name === "@keyframes" ? b = {
...b,
keyframes: !0
} : h.name === "@supports" && h.params.includes("color-mix(") && (b = {
...b,
supportsColorMix: !0
});
let A = {
...h,
nodes: []
};
for (let k of h.nodes) p(k, A.nodes, b, T + 1);
h.name === "@keyframes" && b.theme && c.add(A), (A.nodes.length > 0 || A.name === "@layer" || A.name === "@charset" || A.name === "@custom-media" || A.name === "@namespace" || A.name === "@import") && y.push(A);
} else if (h.kind === "at-root") for (let A of h.nodes) {
let k = [];
p(A, k, b, 0);
for (let D of k) e.push(D);
}
else if (h.kind === "context") {
if (h.context.reference) return;
for (let A of h.nodes) p(A, y, {
...b,
...h.context
}, T);
} else h.kind === "comment" && y.push(h);
}
let v = [];
for (let h of t) p(h, v, {}, 0);
e: for (let [h, y] of o) for (let b of y) {
if (Nr(b.property, r.theme, d)) {
if (b.property.startsWith(r.theme.prefixKey("--animate-"))) for (let k of Tr(b.value)) u.add(k);
continue;
}
let A = h.indexOf(b);
if (h.splice(A, 1), h.length === 0) {
let k = dn(v, (D) => D.kind === "rule" && D.nodes === h);
if (!k || k.length === 0) continue e;
k.unshift({
kind: "at-root",
nodes: v
});
do {
let D = k.pop();
if (!D) break;
let N = k[k.length - 1];
if (!N || N.kind !== "at-root" && N.kind !== "at-rule") break;
let E = N.nodes.indexOf(D);
if (E === -1) break;
N.nodes.splice(E, 1);
} while (!0);
continue e;
}
}
for (let h of c) if (!u.has(h.params)) {
let y = e.indexOf(h);
e.splice(y, 1);
}
if (v = v.concat(e), i & 2) for (let [h, y] of l) for (let b of y) {
let T = h.indexOf(b);
if (T === -1 || b.value == null) continue;
let A = F(b.value), k = !1;
if (_(A, (E) => {
if (E.kind !== "function" || E.value !== "color-mix") return;
let U = !1, P = !1;
if (_(E.nodes, (j) => {
if (j.kind == "word" && j.value.toLowerCase() === "currentcolor") {
P = !0, k = !0;
return;
}
let G = j, Z = null, se = /* @__PURE__ */ new Set();
do {
if (G.kind !== "function" || G.value !== "var") return;
let ue = G.nodes[0];
if (!ue || ue.kind !== "word") return;
let s = ue.value;
if (se.has(s)) {
U = !0;
return;
}
if (se.add(s), k = !0, Z = r.theme.resolveValue(null, [ue.value]), !Z) {
U = !0;
return;
}
if (Z.toLowerCase() === "currentcolor") {
P = !0;
return;
}
Z.startsWith("var(") ? G = F(Z)[0] : G = null;
} while (G);
return R.Replace({
kind: "word",
value: Z
});
}), U || P) {
let j = E.nodes.findIndex((Z) => Z.kind === "separator" && Z.value.trim().includes(","));
if (j === -1) return;
let G = E.nodes.length > j ? E.nodes[j + 1] : null;
return G ? R.Replace(G) : void 0;
} else if (k) {
let j = E.nodes[2];
j.kind === "word" && (j.value === "oklab" || j.value === "oklch" || j.value === "lab" || j.value === "lch") && (j.value = "srgb");
}
}), !k) continue;
let D = {
...b,
value: Y(A)
}, N = J("@supports (color: color-mix(in lab, red, red))", [b]);
N.src = b.src, h.splice(T, 1, D, N);
}
if (i & 1) {
let h = [];
if (f.length > 0) {
let y = J(":root, :host", f);
y.src = f[0].src, h.push(y);
}
if (m.length > 0) {
let y = J("*, ::before, ::after, ::backdrop", m);
y.src = m[0].src, h.push(y);
}
if (h.length > 0) {
let y = v.findIndex((A) => !(A.kind === "comment" || A.kind === "at-rule" && (A.name === "@charset" || A.name === "@import"))), b = W("@layer", "properties", []);
b.src = h[0].src, v.splice(y < 0 ? v.length : y, 0, b);
let T = J("@layer properties", [W("@supports", "((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))", h)]);
T.src = h[0].src, T.nodes[0].src = h[0].src, v.push(T);
}
}
return v;
}
function ie(t, r) {
let i = 0, e = {
file: null,
code: ""
};
function n(l, c = 0) {
let u = "", f = " ".repeat(c);
if (l.kind === "declaration") {
if (u += `${f}${l.property}: ${l.value}${l.important ? " !important" : ""};
`, r) {
i += f.length;
let m = i;
i += l.property.length, i += 2, i += l.value?.length ?? 0, l.important && (i += 11);
let d = i;
i += 2, l.dst = [
e,
m,
d
];
}
} else if (l.kind === "rule") {
if (u += `${f}${l.selector} {
`, r) {
i += f.length;
let m = i;
i += l.selector.length, i += 1;
l.dst = [
e,
m,
i
], i += 2;
}
for (let m of l.nodes) u += n(m, c + 1);
u += `${f}}
`, r && (i += f.length, i += 2);
} else if (l.kind === "at-rule") {
if (l.nodes.length === 0) {
let m = `${f}${l.name} ${l.params};
`;
if (r) {
i += f.length;
let d = i;
i += l.name.length, i += 1, i += l.params.length;
let p = i;
i += 2, l.dst = [
e,
d,
p
];
}
return m;
}
if (u += `${f}${l.name}${l.params ? ` ${l.params} ` : " "}{
`, r) {
i += f.length;
let m = i;
i += l.name.length, l.params && (i += 1, i += l.params.length), i += 1;
l.dst = [
e,
m,
i
], i += 2;
}
for (let m of l.nodes) u += n(m, c + 1);
u += `${f}}
`, r && (i += f.length, i += 2);
} else if (l.kind === "comment") {
if (u += `${f}/*${l.value}*/
`, r) {
i += f.length;
let m = i;
i += 2 + l.value.length + 2;
l.dst = [
e,
m,
i
], i += 1;
}
} else if (l.kind === "context" || l.kind === "at-root") return "";
return u;
}
let o = "";
for (let l of t) o += n(l, 0);
return e.code = o, o;
}
function dn(t, r) {
let i = [];
return _(t, (e, n) => {
if (r(e)) return i = n.path(), i.push(e), R.Stop;
}), i;
}
function Nr(t, r, i, e = /* @__PURE__ */ new Set()) {
if (e.has(t) || (e.add(t), r.getOptions(t) & 24)) return !0;
{
let o = i.get(t) ?? [];
for (let l of o) if (Nr(l, r, i, e)) return !0;
}
return !1;
}
function Tr(t) {
return t.split(/[\s,]+/);
}
function Ae(t) {
if (t.indexOf("(") === -1) return _e(t);
let r = F(t);
return Kt(r), t = Y(r), t = oe$1(t), t;
}
function _e(t, r = !1) {
let i = "";
for (let e = 0; e < t.length; e++) {
let n = t[e];
n === "\\" && t[e + 1] === "_" ? (i += "_", e += 1) : n === "_" && !r ? i += " " : i += n;
}
return i;
}
function Kt(t) {
for (let r of t) switch (r.kind) {
case "function":
if (r.value === "url" || r.value.endsWith("_url")) {
r.value = _e(r.value);
break;
}
if (r.value === "var" || r.value.endsWith("_var") || r.value === "theme" || r.value.endsWith("_theme")) {
r.value = _e(r.value);
for (let i = 0; i < r.nodes.length; i++) {
if (i == 0 && r.nodes[i].kind === "word") {
r.nodes[i].value = _e(r.nodes[i].value, !0);
continue;
}
Kt([r.nodes[i]]);
}
break;
}
r.value = _e(r.value), Kt(r.nodes);
break;
case "separator":
case "word":
r.value = _e(r.value);
break;
default: mn(r);
}
}
function mn(t) {
throw new Error(`Unexpected value: ${t}`);
}
var Ut = new Uint8Array(256);
function ke(t) {
let r = 0, i = t.length;
for (let e = 0; e < i; e++) {
let n = t.charCodeAt(e);
switch (n) {
case 92:
e += 1;
break;
case 39:
case 34:
for (; ++e < i;) {
let o = t.charCodeAt(e);
if (o === 92) {
e += 1;
continue;
}
if (o === n) break;
}
break;
case 40:
Ut[r] = 41, r++;
break;
case 91:
Ut[r] = 93, r++;
break;
case 123: break;
case 93:
case 125:
case 41:
if (r === 0) return !1;
r > 0 && n === Ut[r - 1] && r--;
break;
case 59:
if (r === 0) return !1;
break;
}
}
return !0;
}
var gn = 58, Er = 45, Rr = 97, Or = 122, jt = /^[a-zA-Z0-9_.%-]+$/;
function Ke(t) {
switch (t.kind) {
case "arbitrary": return {
kind: t.kind,
property: t.property,
value: t.value,
modifier: t.modifier ? {
kind: t.modifier.kind,
value: t.modifier.value
} : null,
variants: t.variants.map(De),
important: t.important,
raw: t.raw
};
case "static": return {
kind: t.kind,
root: t.root,
variants: t.variants.map(De),
important: t.important,
raw: t.raw
};
case "functional": return {
kind: t.kind,
root: t.root,
value: t.value ? t.value.kind === "arbitrary" ? {
kind: t.value.kind,
dataType: t.value.dataType,
value: t.value.value
} : {
kind: t.value.kind,
value: t.value.value,
fraction: t.value.fraction
} : null,
modifier: t.modifier ? {
kind: t.modifier.kind,
value: t.modifier.value
} : null,
variants: t.variants.map(De),
important: t.important,
raw: t.raw
};
default: throw new Error("Unknown candidate kind");
}
}
function De(t) {
switch (t.kind) {
case "arbitrary": return {
kind: t.kind,
selector: t.selector,
relative: t.relative
};
case "static": return {
kind: t.kind,
root: t.root
};
case "functional": return {
kind: t.kind,
root: t.root,
value: t.value ? {
kind: t.value.kind,
value: t.value.value
} : null,
modifier: t.modifier ? {
kind: t.modifier.kind,
value: t.modifier.value
} : null
};
case "compound": return {
kind: t.kind,
root: t.root,
variant: De(t.variant),
modifier: t.modifier ? {
kind: t.modifier.kind,
value: t.modifier.value
} : null
};
default: throw new Error("Unknown variant kind");
}
}
function* Pr(t, r) {
let i = d(t, ":");
if (r.theme.prefix) {
if (i.length === 1 || i[0] !== r.theme.prefix) return null;
i.shift();
}
let e = i.pop(), n = [];
for (let d = i.length - 1; d >= 0; --d) {
let p = r.parseVariant(i[d]);
if (p === null) return;
n.push(p);
}
let o = !1;
e[e.length - 1] === "!" ? (o = !0, e = e.slice(0, -1)) : e[0] === "!" && (o = !0, e = e.slice(1)), r.utilities.has(e, "static") && !e.includes("[") && (yield {
kind: "static",
root: e,
variants: n,
important: o,
raw: t
});
let [l, c = null, u] = d(e, "/");
if (u) return;
let f = c === null ? null : zt(c);
if (c !== null && f === null) return;
if (l[0] === "[") {
if (l[l.length - 1] !== "]") return;
let d = l.charCodeAt(1);
if (d !== Er && !(d >= Rr && d <= Or)) return;
l = l.slice(1, -1);
let p = l.indexOf(":");
if (p === -1 || p === 0 || p === l.length - 1) return;
let v = l.slice(0, p), h = Ae(l.slice(p + 1));
if (!ke(h)) return;
yield {
kind: "arbitrary",
property: v,
value: h,
modifier: f,
variants: n,
important: o,
raw: t
};
return;
}
let m;
if (l[l.length - 1] === "]") {
let d = l.indexOf("-[");
if (d === -1) return;
let p = l.slice(0, d);
if (!r.utilities.has(p, "functional")) return;
m = [[p, l.slice(d + 1)]];
} else if (l[l.length - 1] === ")") {
let d$1 = l.indexOf("-(");
if (d$1 === -1) return;
let p = l.slice(0, d$1);
if (!r.utilities.has(p, "functional")) return;
let v = l.slice(d$1 + 2, -1), h = d(v, ":"), y = null;
if (h.length === 2 && (y = h[0], v = h[1]), v[0] !== "-" || v[1] !== "-" || !ke(v)) return;
m = [[p, y === null ? `[var(${v})]` : `[${y}:var(${v})]`]];
} else m = _r(l, (d) => r.utilities.has(d, "functional"));
for (let [d, p] of m) {
let v = {
kind: "functional",
root: d,
modifier: f,
value: null,
variants: n,
important: o,
raw: t
};
if (p === null) {
yield v;
continue;
}
{
let h = p.indexOf("[");
if (h !== -1) {
if (p[p.length - 1] !== "]") return;
let b = Ae(p.slice(h + 1, -1));
if (!ke(b)) continue;
let T = null;
for (let A = 0; A < b.length; A++) {
let k = b.charCodeAt(A);
if (k === gn) {
T = b.slice(0, A), b = b.slice(A + 1);
break;
}
if (!(k === Er || k >= Rr && k <= Or)) break;
}
if (b.length === 0 || b.trim().length === 0 || T === "") continue;
v.value = {
kind: "arbitrary",
dataType: T || null,
value: b
};
} else {
let b = c === null || v.modifier?.kind === "arbitrary" ? null : `${p}/${c}`;
if (!jt.test(p)) continue;
v.value = {
kind: "named",
value: p,
fraction: b
};
}
}
yield v;
}
}
function zt(t) {
if (t[0] === "[" && t[t.length - 1] === "]") {
let r = Ae(t.slice(1, -1));
return !ke(r) || r.length === 0 || r.trim().length === 0 ? null : {
kind: "arbitrary",
value: r
};
}
return t[0] === "(" && t[t.length - 1] === ")" ? (t = t.slice(1, -1), t[0] !== "-" || t[1] !== "-" || !ke(t) ? null : (t = `var(${t})`, {
kind: "arbitrary",
value: Ae(t)
})) : jt.test(t) ? {
kind: "named",
value: t
} : null;
}
function Ir(t, r) {
if (t[0] === "[" && t[t.length - 1] === "]") {
if (t[1] === "@" && t.includes("&")) return null;
let i = Ae(t.slice(1, -1));
if (!ke(i) || i.length === 0 || i.trim().length === 0) return null;
let e = i[0] === ">" || i[0] === "+" || i[0] === "~";
return !e && i[0] !== "@" && !i.includes("&") && (i = `&:is(${i})`), {
kind: "arbitrary",
selector: i,
relative: e
};
}
{
let [i, e = null, n] = d(t, "/");
if (n) return null;
let o = _r(i, (l) => r.variants.has(l));
for (let [l, c] of o) switch (r.variants.kind(l)) {
case "static": return c !== null || e !== null ? null : {
kind: "static",
root: l
};
case "functional": {
let u = e === null ? null : zt(e);
if (e !== null && u === null) return null;
if (c === null) return {
kind: "functional",
root: l,
modifier: u,
value: null
};
if (c[c.length - 1] === "]") {
if (c[0] !== "[") continue;
let f = Ae(c.slice(1, -1));
return !ke(f) || f.length === 0 || f.trim().length === 0 ? null : {
kind: "functional",
root: l,
modifier: u,
value: {
kind: "arbitrary",
value: f
}
};
}
if (c[c.length - 1] === ")") {
if (c[0] !== "(") continue;
let f = Ae(c.slice(1, -1));
return !ke(f) || f.length === 0 || f.trim().length === 0 || f[0] !== "-" || f[1] !== "-" ? null : {
kind: "functional",
root: l,
modifier: u,
value: {
kind: "arbitrary",
value: `var(${f})`
}
};
}
if (!jt.test(c)) continue;
return {
kind: "functional",
root: l,
modifier: u,
value: {
kind: "named",
value: c
}
};
}
case "compound": {
if (c === null) return null;
e && (l === "not" || l === "has" || l === "in") && (c = `${c}/${e}`, e = null);
let u = r.parseVariant(c);
if (u === null || !r.variants.compoundsWith(l, u)) return null;
let f = e === null ? null : zt(e);
return e !== null && f === null ? null : {
kind: "compound",
root: l,
modifier: f,
variant: u
};
}
}
}
return null;
}
function* _r(t, r) {
r(t) && (yield [t, null]);
let i = t.lastIndexOf("-");
for (; i > 0;) {
let e = t.slice(0, i);
if (r(e)) {
let n = [e, t.slice(i + 1)];
if (n[1] === "" || n[0] === "@" && r("@") && t[i] === "-") break;
yield n;
}
i = t.lastIndexOf("-", i - 1);
}
t[0] === "@" && r("@") && (yield ["@", t.slice(1)]);
}
function Dr(t, r) {
let i = [];
for (let n of r.variants) i.unshift(dt(n));
t.theme.prefix && i.unshift(t.theme.prefix);
let e = "";
if (r.kind === "static" && (e += r.root), r.kind === "functional" && (e += r.root, r.value)) if (r.value.kind === "arbitrary") {
if (r.value !== null) {
let n = Mt(r.value.value), o = n ? r.value.value.slice(4, -1) : r.value.value, [l, c] = n ? ["(", ")"] : ["[", "]"];
r.value.dataType ? e += `-${l}${r.value.dataType}:${Ce(o)}${c}` : e += `-${l}${Ce(o)}${c}`;
}
} else r.value.kind === "named" && (e += `-${r.value.value}`);
return r.kind === "arbitrary" && (e += `[${r.property}:${Ce(r.value)}]`), (r.kind === "arbitrary" || r.kind === "functional") && (e += Qe(r.modifier)), r.important && (e += "!"), i.push(e), i.join(":");
}
function Qe(t) {
if (t === null) return "";
let r = Mt(t.value), i = r ? t.value.slice(4, -1) : t.value, [e, n] = r ? ["(", ")"] : ["[", "]"];
return t.kind === "arbitrary" ? `/${e}${Ce(i)}${n}` : t.kind === "named" ? `/${t.value}` : "";
}
function dt(t) {
if (t.kind === "static") return t.root;
if (t.kind === "arbitrary") return `[${Ce(wn(t.selector))}]`;
let r = "";
if (t.kind === "functional") {
r += t.root;
let i = t.root !== "@";
if (t.value) if (t.value.kind === "arbitrary") {
let e = Mt(t.value.value), n = e ? t.value.value.slice(4, -1) : t.value.value, [o, l] = e ? ["(", ")"] : ["[", "]"];
r += `${i ? "-" : ""}${o}${Ce(n)}${l}`;
} else t.value.kind === "named" && (r += `${i ? "-" : ""}${t.value.value}`);
}
return t.kind === "compound" && (r += t.root, r += "-", r += dt(t.variant)), (t.kind === "functional" || t.kind === "compound") && (r += Qe(t.modifier)), r;
}
var hn = new z((t) => {
let r = F(t), i = /* @__PURE__ */ new Set();
return _(r, (e, n) => {
let o = n.parent === null ? r : n.parent.nodes ?? [];
if (e.kind === "word" && (e.value === "+" || e.value === "-" || e.value === "*" || e.value === "/")) {
let l = o.indexOf(e) ?? -1;
if (l === -1) return;
let c = o[l - 1];
if (c?.kind !== "separator" || c.value !== " ") return;
let u = o[l + 1];
if (u?.kind !== "separator" || u.value !== " ") return;
i.add(c), i.add(u);
} else e.kind === "separator" && e.value.length > 0 && e.value.trim() === "" ? (o[0] === e || o[o.length - 1] === e) && i.add(e) : e.kind === "separator" && e.value.trim() === "," && (e.value = ",");
}), i.size > 0 && _(r, (e) => {
if (i.has(e)) return i.delete(e), R.ReplaceSkip([]);
}), Lt(r), Y(r);
});
function Ce(t) {
return hn.get(t);
}
var vn = new z((t) => {
let r = F(t);
return r.length === 3 && r[0].kind === "word" && r[0].value === "&" && r[1].kind === "separator" && r[1].value === ":" && r[2].kind === "function" && r[2].value === "is" ? Y(r[2].nodes) : t;
});
function wn(t) {
return vn.get(t);
}
function Lt(t) {
for (let r of t) switch (r.kind) {
case "function":
if (r.value === "url" || r.value.endsWith("_url")) {
r.value = Je(r.value);
break;
}
if (r.value === "var" || r.value.endsWith("_var") || r.value === "theme" || r.value.endsWith("_theme")) {
r.value = Je(r.value);
for (let i = 0; i < r.nodes.length; i++) Lt([r.nodes[i]]);
break;
}
r.value = Je(r.value), Lt(r.nodes);
break;
case "separator":
r.value = Je(r.value);
break;
case "word":
(r.value[0] !== "-" || r.value[1] !== "-") && (r.value = Je(r.value));
break;
default: kn(r);
}
}
var yn = new z((t) => {
let r = F(t);
return r.length === 1 && r[0].kind === "function" && r[0].value === "var";
});
function Mt(t) {
return yn.get(t);
}
function kn(t) {
throw new Error(`Unexpected value: ${t}`);
}
function Je(t) {
return t.replaceAll("_", String.raw`\_`).replaceAll(" ", "_");
}
function Ee(t, r, i) {
if (t === r) return 0;
let e = t.indexOf("("), n = r.indexOf("("), o = e === -1 ? t.replace(/[\d.]+/g, "") : t.slice(0, e), l = n === -1 ? r.replace(/[\d.]+/g, "") : r.slice(0, n), c = (o === l ? 0 : o < l ? -1 : 1) || (i === "asc" ? parseInt(t) - parseInt(r) : parseInt(r) - parseInt(t));
return Number.isNaN(c) ? t < r ? -1 : 1 : c;
}
var bn = new Set([
"inset",
"inherit",
"initial",
"revert",
"unset"
]), Kr = /^-?(\d+|\.\d+)(.*?)$/g;
function Xe(t, r) {
return d(t, ",").map((e) => {
e = e.trim();
let n = d(e, " ").filter((f) => f.trim() !== ""), o = null, l = null, c = null;
for (let f of n) bn.has(f) || (Kr.test(f) ? (l === null ? l = f : c === null && (c = f), Kr.lastIndex = 0) : o === null && (o = f));
if (l === null || c === null) return e;
let u = r(o ?? "currentcolor");
return o !== null ? e.replace(o, u) : `${e} ${u}`;
}).join(", ");
}
var vt = [
"0",
"0.5",
"1",
"1.5",
"2",
"2.5",
"3",
"3.5",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"14",
"16",
"20",
"24",
"28",
"32",
"36",
"40",
"44",
"48",
"52",
"56",
"60",
"64",
"72",
"80",
"96"
], Ft = class {
utilities = new z(() => []);
completions = /* @__PURE__ */ new Map();
static(r, i) {
this.utilities.get(r).push({
kind: "static",
compileFn: i
});
}
functional(r, i, e) {
this.utilities.get(r).push({
kind: "functional",
compileFn: i,
options: e
});
}
has(r, i) {
return this.utilities.has(r) && this.utilities.get(r).some((e) => e.kind === i);
}
get(r) {
return this.utilities.has(r) ? this.utilities.get(r) : [];
}
getCompletions(r) {
return this.has(r, "static") ? this.completions.get(r)?.() ?? [{
supportsNegative: !1,
values: [],
modifiers: []
}] : this.completions.get(r)?.() ?? [];
}
suggest(r, i) {
let e = this.completions.get(r);
e ? this.completions.set(r, () => [...e?.(), ...i?.()]) : this.completions.set(r, i);
}
keys(r) {
let i = [];
for (let [e, n] of this.utilities.entries()) for (let o of n) if (o.kind === r) {
i.push(e);
break;
}
return i;
}
};
function $(t, r, i) {
return W("@property", t, [
a("syntax", i ? `"${i}"` : "\"*\""),
a("inherits", "false"),
...r ? [a("initial-value", r)] : []
]);
}
function Q(t, r) {
if (r === null) return t;
let i = Number(r);
return Number.isNaN(i) || (r = `${i * 100}%`), r === "100%" ? t : `color-mix(in oklab, ${t} ${r}, transparent)`;
}
function zr(t, r) {
let i = Number(r);
return Number.isNaN(i) || (r = `${i * 100}%`), `oklab(from ${t} l a b / ${r})`;
}
function X(t, r, i) {
if (!r) return t;
if (r.kind === "arbitrary") return Q(t, r.value);
let e = i.resolve(r.value, ["--opacity"]);
return e ? Q(t, e) : ue(r.value) ? Q(t, `${r.value}%`) : null;
}
function re(t, r, i) {
let e = null;
switch (t.value.value) {
case "inherit":
e = "inherit";
break;
case "transparent":
e = "transparent";
break;
case "current":
e = "currentcolor";
break;
default:
e = r.resolve(t.value.value, i);
break;
}
return e ? X(e, t.modifier, r) : null;
}
var Lr = /(\d+)_(\d+)/g;
function jr(t) {
let r = new Ft();
function i(s, g) {
function* w(x) {
for (let S of t.keysInNamespaces(x)) yield S.replace(Lr, (K, V, O) => `${V}.${O}`);
}
let C = [
"1/2",
"1/3",
"2/3",
"1/4",
"2/4",
"3/4",
"1/5",
"2/5",
"3/5",
"4/5",
"1/6",
"2/6",
"3/6",
"4/6",
"5/6",
"1/12",
"2/12",
"3/12",
"4/12",
"5/12",
"6/12",
"7/12",
"8/12",
"9/12",
"10/12",
"11/12"
];
r.suggest(s, () => {
let x = [];
for (let S of g()) {
if (typeof S == "string") {
x.push({
values: [S],
modifiers: []
});
continue;
}
let K = [...S.values ?? [], ...w(S.valueThemeKeys ?? [])], V = [...S.modifiers ?? [], ...w(S.modifierThemeKeys ?? [])];
S.supportsFractions && K.push(...C), S.hasDefaultValue && K.unshift(null), x.push({
supportsNegative: S.supportsNegative,
values: K,
modifiers: V
});
}
return x;
});
}
function e(s, g) {
r.static(s, () => g.map((w) => typeof w == "function" ? w() : a(w[0], w[1])));
}
function n(s, g) {
g.staticValues && (g.staticValues = Object.assign(Object.create(null), g.staticValues));
function w({ negative: C }) {
return (x) => {
let S = null, K = null;
if (x.value) if (x.value.kind === "arbitrary") {
if (x.modifier) return;
S = x.value.value, K = x.value.dataType;
} else {
if (S = t.resolve(x.value.fraction ?? x.value.value, g.themeKeys ?? []), S === null && g.supportsFractions && x.value.fraction) {
let [V, O] = d(x.value.fraction, "/");
if (!u(V) || !u(O)) return;
S = `calc(${V} / ${O} * 100%)`;
}
if (S === null && C && g.handleNegativeBareValue) {
if (S = g.handleNegativeBareValue(x.value), !S?.includes("/") && x.modifier) return;
if (S !== null) return g.handle(S, null);
}
if (S === null && g.handleBareValue && (S = g.handleBareValue(x.value), !S?.includes("/") && x.modifier)) return;
if (S === null && !C && g.staticValues && !x.modifier) {
let V = g.staticValues[x.value.value];
if (V) return V.map(te);
}
}
else {
if (x.modifier) return;
S = g.defaultValue !== void 0 ? g.defaultValue : t.resolve(null, g.themeKeys ?? []);
}
if (S !== null) return g.handle(C ? `calc(${S} * -1)` : S, K);
};
}
if (g.supportsNegative && r.functional(`-${s}`, w({ negative: !0 })), r.functional(s, w({ negative: !1 })), i(s, () => [{
supportsNegative: g.supportsNegative,
valueThemeKeys: g.themeKeys ?? [],
hasDefaultValue: g.defaultValue !== void 0 && g.defaultValue !== null,
supportsFractions: g.supportsFractions
}]), g.staticValues && Object.keys(g.staticValues).length > 0) {
let C = Object.keys(g.staticValues);
i(s, () => [{ values: C }]);
}
}
function o(s, g) {
r.functional(s, (w) => {
if (!w.value) return;
let C = null;
if (w.value.kind === "arbitrary" ? (C = w.value.value, C = X(C, w.modifier, t)) : C = re(w, t, g.themeKeys), C !== null) return g.handle(C);
}), i(s, () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: g.themeKeys,
modifiers: Array.from({ length: 21 }, (w, C) => `${C * 5}`)
}]);
}
function l(s, g, w, { supportsNegative: C = !1, supportsFractions: x = !1, staticValues: S } = {}) {
C && r.static(`-${s}-px`, () => w("-1px")), r.static(`${s}-px`, () => w("1px")), n(s, {
themeKeys: g,
supportsFractions: x,
supportsNegative: C,
defaultValue: null,
handleBareValue: ({ value: K }) => {
let V = t.resolve(null, ["--spacing"]);
return !V || !ge$1(K) ? null : `calc(${V} * ${K})`;
},
handleNegativeBareValue: ({ value: K }) => {
let V = t.resolve(null, ["--spacing"]);
return !V || !ge$1(K) ? null : `calc(${V} * -${K})`;
},
handle: w,
staticValues: S
}), i(s, () => [{
values: t.get(["--spacing"]) ? vt : [],
supportsNegative: C,
supportsFractions: x,
valueThemeKeys: g
}]);
}
e("sr-only", [
["position", "absolute"],
["width", "1px"],
["height", "1px"],
["padding", "0"],
["margin", "-1px"],
["overflow", "hidden"],
["clip-path", "inset(50%)"],
["white-space", "nowrap"],
["border-width", "0"]
]), e("not-sr-only", [
["position", "static"],
["width", "auto"],
["height", "auto"],
["padding", "0"],
["margin", "0"],
["overflow", "visible"],
["clip-path", "none"],
["white-space", "normal"]
]), e("pointer-events-none", [["pointer-events", "none"]]), e("pointer-events-auto", [["pointer-events", "auto"]]), e("visible", [["visibility", "visible"]]), e("invisible", [["visibility", "hidden"]]), e("collapse", [["visibility", "collapse"]]), e("static", [["position", "static"]]), e("fixed", [["position", "fixed"]]), e("absolute", [["position", "absolute"]]), e("relative", [["position", "relative"]]), e("sticky", [["position", "sticky"]]);
for (let [s, g] of [
["inset", "inset"],
["inset-x", "inset-inline"],
["inset-y", "inset-block"],
["inset-s", "inset-inline-start"],
["inset-e", "inset-inline-end"],
["inset-bs", "inset-block-start"],
["inset-be", "inset-block-end"],
["top", "top"],
["right", "right"],
["bottom", "bottom"],
["left", "left"]
]) e(`${s}-auto`, [[g, "auto"]]), e(`${s}-full`, [[g, "100%"]]), e(`-${s}-full`, [[g, "-100%"]]), l(s, ["--inset", "--spacing"], (w) => [a(g, w)], {
supportsNegative: !0,
supportsFractions: !0
});
e("isolate", [["isolation", "isolate"]]), e("isolation-auto", [["isolation", "auto"]]), n("z", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--z-index"],
handle: (s) => [a("z-index", s)],
staticValues: { auto: [a("z-index", "auto")] }
}), i("z", () => [{
supportsNegative: !0,
values: [
"0",
"10",
"20",
"30",
"40",
"50"
],
valueThemeKeys: ["--z-index"]
}]), n("order", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--order"],
handle: (s) => [a("order", s)],
staticValues: {
first: [a("order", "-9999")],
last: [a("order", "9999")]
}
}), i("order", () => [{
supportsNegative: !0,
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--order"]
}]), n("col", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-column"],
handle: (s) => [a("grid-column", s)],
staticValues: { auto: [a("grid-column", "auto")] }
}), n("col-span", {
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [a("grid-column", `span ${s} / span ${s}`)],
staticValues: { full: [a("grid-column", "1 / -1")] }
}), n("col-start", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-column-start"],
handle: (s) => [a("grid-column-start", s)],
staticValues: { auto: [a("grid-column-start", "auto")] }
}), n("col-end", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-column-end"],
handle: (s) => [a("grid-column-end", s)],
staticValues: { auto: [a("grid-column-end", "auto")] }
}), i("col-span", () => [{
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: []
}]), i("col-start", () => [{
supportsNegative: !0,
values: Array.from({ length: 13 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-column-start"]
}]), i("col-end", () => [{
supportsNegative: !0,
values: Array.from({ length: 13 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-column-end"]
}]), n("row", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-row"],
handle: (s) => [a("grid-row", s)],
staticValues: { auto: [a("grid-row", "auto")] }
}), n("row-span", {
themeKeys: [],
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [a("grid-row", `span ${s} / span ${s}`)],
staticValues: { full: [a("grid-row", "1 / -1")] }
}), n("row-start", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-row-start"],
handle: (s) => [a("grid-row-start", s)],
staticValues: { auto: [a("grid-row-start", "auto")] }
}), n("row-end", {
supportsNegative: !0,
handleBareValue: ({ value: s }) => u(s) ? s : null,
themeKeys: ["--grid-row-end"],
handle: (s) => [a("grid-row-end", s)],
staticValues: { auto: [a("grid-row-end", "auto")] }
}), i("row-span", () => [{
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: []
}]), i("row-start", () => [{
supportsNegative: !0,
values: Array.from({ length: 13 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-row-start"]
}]), i("row-end", () => [{
supportsNegative: !0,
values: Array.from({ length: 13 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-row-end"]
}]), e("float-start", [["float", "inline-start"]]), e("float-end", [["float", "inline-end"]]), e("float-right", [["float", "right"]]), e("float-left", [["float", "left"]]), e("float-none", [["float", "none"]]), e("clear-start", [["clear", "inline-start"]]), e("clear-end", [["clear", "inline-end"]]), e("clear-right", [["clear", "right"]]), e("clear-left", [["clear", "left"]]), e("clear-both", [["clear", "both"]]), e("clear-none", [["clear", "none"]]);
for (let [s, g] of [
["m", "margin"],
["mx", "margin-inline"],
["my", "margin-block"],
["ms", "margin-inline-start"],
["me", "margin-inline-end"],
["mbs", "margin-block-start"],
["mbe", "margin-block-end"],
["mt", "margin-top"],
["mr", "margin-right"],
["mb", "margin-bottom"],
["ml", "margin-left"]
]) e(`${s}-auto`, [[g, "auto"]]), l(s, ["--margin", "--spacing"], (w) => [a(g, w)], { supportsNegative: !0 });
e("box-border", [["box-sizing", "border-box"]]), e("box-content", [["box-sizing", "content-box"]]), n("line-clamp", {
themeKeys: ["--line-clamp"],
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [
a("overflow", "hidden"),
a("display", "-webkit-box"),
a("-webkit-box-orient", "vertical"),
a("-webkit-line-clamp", s)
],
staticValues: { none: [
a("overflow", "visible"),
a("display", "block"),
a("-webkit-box-orient", "horizontal"),
a("-webkit-line-clamp", "unset")
] }
}), i("line-clamp", () => [{
values: [
"1",
"2",
"3",
"4",
"5",
"6"
],
valueThemeKeys: ["--line-clamp"]
}]), e("block", [["display", "block"]]), e("inline-block", [["display", "inline-block"]]), e("inline", [["display", "inline"]]), e("hidden", [["display", "none"]]), e("inline-flex", [["display", "inline-flex"]]), e("table", [["display", "table"]]), e("inline-table", [["display", "inline-table"]]), e("table-caption", [["display", "table-caption"]]), e("table-cell", [["display", "table-cell"]]), e("table-column", [["display", "table-column"]]), e("table-column-group", [["display", "table-column-group"]]), e("table-footer-group", [["display", "table-footer-group"]]), e("table-header-group", [["display", "table-header-group"]]), e("table-row-group", [["display", "table-row-group"]]), e("table-row", [["display", "table-row"]]), e("flow-root", [["display", "flow-root"]]), e("flex", [["display", "flex"]]), e("grid", [["display", "grid"]]), e("inline-grid", [["display", "inline-grid"]]), e("contents", [["display", "contents"]]), e("list-item", [["display", "list-item"]]), e("field-sizing-content", [["field-sizing", "content"]]), e("field-sizing-fixed", [["field-sizing", "fixed"]]), n("aspect", {
themeKeys: ["--aspect"],
handleBareValue: ({ fraction: s }) => {
if (s === null) return null;
let [g, w] = d(s, "/");
return !ge$1(g) || !ge$1(w) ? null : s;
},
handle: (s) => [a("aspect-ratio", s)],
staticValues: {
auto: [a("aspect-ratio", "auto")],
square: [a("aspect-ratio", "1 / 1")]
}
});
for (let [s, g] of [
["full", "100%"],
["svw", "100svw"],
["lvw", "100lvw"],
["dvw", "100dvw"],
["svh", "100svh"],
["lvh", "100lvh"],
["dvh", "100dvh"],
["min", "min-content"],
["max", "max-content"],
["fit", "fit-content"]
]) e(`size-${s}`, [
["--tw-sort", "size"],
["width", g],
["height", g]
]), e(`w-${s}`, [["width", g]]), e(`h-${s}`, [["height", g]]), e(`min-w-${s}`, [["min-width", g]]), e(`min-h-${s}`, [["min-height", g]]), e(`max-w-${s}`, [["max-width", g]]), e(`max-h-${s}`, [["max-height", g]]);
e("size-auto", [
["--tw-sort", "size"],
["width", "auto"],
["height", "auto"]
]), e("w-auto", [["width", "auto"]]), e("h-auto", [["height", "auto"]]), e("min-w-auto", [["min-width", "auto"]]), e("min-h-auto", [["min-height", "auto"]]), e("h-lh", [["height", "1lh"]]), e("min-h-lh", [["min-height", "1lh"]]), e("max-h-lh", [["max-height", "1lh"]]), e("w-screen", [["width", "100vw"]]), e("min-w-screen", [["min-width", "100vw"]]), e("max-w-screen", [["max-width", "100vw"]]), e("h-screen", [["height", "100vh"]]), e("min-h-screen", [["min-height", "100vh"]]), e("max-h-screen", [["max-height", "100vh"]]), e("max-w-none", [["max-width", "none"]]), e("max-h-none", [["max-height", "none"]]), l("size", ["--size", "--spacing"], (s) => [
a("--tw-sort", "size"),
a("width", s),
a("height", s)
], { supportsFractions: !0 });
for (let [s, g, w] of [
[
"w",
[
"--width",
"--spacing",
"--container"
],
"width"
],
[
"min-w",
[
"--min-width",
"--spacing",
"--container"
],
"min-width"
],
[
"max-w",
[
"--max-width",
"--spacing",
"--container"
],
"max-width"
],
[
"h",
["--height", "--spacing"],
"height"
],
[
"min-h",
[
"--min-height",
"--height",
"--spacing"
],
"min-height"
],
[
"max-h",
[
"--max-height",
"--height",
"--spacing"
],
"max-height"
]
]) l(s, g, (C) => [a(w, C)], { supportsFractions: !0 });
for (let [s, g] of [
["full", "100%"],
["min", "min-content"],
["max", "max-content"],
["fit", "fit-content"]
]) e(`inline-${s}`, [["inline-size", g]]), e(`block-${s}`, [["block-size", g]]), e(`min-inline-${s}`, [["min-inline-size", g]]), e(`min-block-${s}`, [["min-block-size", g]]), e(`max-inline-${s}`, [["max-inline-size", g]]), e(`max-block-${s}`, [["max-block-size", g]]);
for (let [s, g] of [
["svw", "100svw"],
["lvw", "100lvw"],
["dvw", "100dvw"]
]) e(`inline-${s}`, [["inline-size", g]]), e(`min-inline-${s}`, [["min-inline-size", g]]), e(`max-inline-${s}`, [["max-inline-size", g]]);
for (let [s, g] of [
["svh", "100svh"],
["lvh", "100lvh"],
["dvh", "100dvh"]
]) e(`block-${s}`, [["block-size", g]]), e(`min-block-${s}`, [["min-block-size", g]]), e(`max-block-${s}`, [["max-block-size", g]]);
e("inline-auto", [["inline-size", "auto"]]), e("block-auto", [["block-size", "auto"]]), e("min-inline-auto", [["min-inline-size", "auto"]]), e("min-block-auto", [["min-block-size", "auto"]]), e("block-lh", [["block-size", "1lh"]]), e("min-block-lh", [["min-block-size", "1lh"]]), e("max-block-lh", [["max-block-size", "1lh"]]), e("inline-screen", [["inline-size", "100vw"]]), e("min-inline-screen", [["min-inline-size", "100vw"]]), e("max-inline-screen", [["max-inline-size", "100vw"]]), e("block-screen", [["block-size", "100vh"]]), e("min-block-screen", [["min-block-size", "100vh"]]), e("max-block-screen", [["max-block-size", "100vh"]]), e("max-inline-none", [["max-inline-size", "none"]]), e("max-block-none", [["max-block-size", "none"]]);
for (let [s, g, w] of [
[
"inline",
["--spacing", "--container"],
"inline-size"
],
[
"min-inline",
["--spacing", "--container"],
"min-inline-size"
],
[
"max-inline",
["--spacing", "--container"],
"max-inline-size"
],
[
"block",
["--spacing"],
"block-size"
],
[
"min-block",
["--spacing"],
"min-block-size"
],
[
"max-block",
["--spacing"],
"max-block-size"
]
]) l(s, g, (C) => [a(w, C)], { supportsFractions: !0 });
r.static("container", () => {
let s = [...t.namespace("--breakpoint").values()];
s.sort((w, C) => Ee(w, C, "asc"));
let g = [a("--tw-sort", "--tw-container-component"), a("width", "100%")];
for (let w of s) g.push(W("@media", `(width >= ${w})`, [a("max-width", w)]));
return g;
}), e("flex-auto", [["flex", "auto"]]), e("flex-initial", [["flex", "0 auto"]]), e("flex-none", [["flex", "none"]]), r.functional("flex", (s) => {
if (s.value) {
if (s.value.kind === "arbitrary") return s.modifier ? void 0 : [a("flex", s.value.value)];
if (s.value.fraction) {
let [g, w] = d(s.value.fraction, "/");
return !u(g) || !u(w) ? void 0 : [a("flex", `calc(${s.value.fraction} * 100%)`)];
}
if (u(s.value.value)) return s.modifier ? void 0 : [a("flex", s.value.value)];
}
}), i("flex", () => [{ supportsFractions: !0 }, { values: Array.from({ length: 12 }, (s, g) => `${g + 1}`) }]), n("shrink", {
defaultValue: "1",
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [a("flex-shrink", s)]
}), n("grow", {
defaultValue: "1",
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [a("flex-grow", s)]
}), i("shrink", () => [{
values: ["0"],
valueThemeKeys: [],
hasDefaultValue: !0
}]), i("grow", () => [{
values: ["0"],
valueThemeKeys: [],
hasDefaultValue: !0
}]), e("basis-auto", [["flex-basis", "auto"]]), e("basis-full", [["flex-basis", "100%"]]), l("basis", [
"--flex-basis",
"--spacing",
"--container"
], (s) => [a("flex-basis", s)], { supportsFractions: !0 }), e("table-auto", [["table-layout", "auto"]]), e("table-fixed", [["table-layout", "fixed"]]), e("caption-top", [["caption-side", "top"]]), e("caption-bottom", [["caption-side", "bottom"]]), e("border-collapse", [["border-collapse", "collapse"]]), e("border-separate", [["border-collapse", "separate"]]);
let c = () => B([$("--tw-border-spacing-x", "0", "<length>"), $("--tw-border-spacing-y", "0", "<length>")]);
l("border-spacing", ["--border-spacing", "--spacing"], (s) => [
c(),
a("--tw-border-spacing-x", s),
a("--tw-border-spacing-y", s),
a("border-spacing", "var(--tw-border-spacing-x) var(--tw-border-spacing-y)")
]), l("border-spacing-x", ["--border-spacing", "--spacing"], (s) => [
c(),
a("--tw-border-spacing-x", s),
a("border-spacing", "var(--tw-border-spacing-x) var(--tw-border-spacing-y)")
]), l("border-spacing-y", ["--border-spacing", "--spacing"], (s) => [
c(),
a("--tw-border-spacing-y", s),
a("border-spacing", "var(--tw-border-spacing-x) var(--tw-border-spacing-y)")
]), n("origin", {
themeKeys: ["--transform-origin"],
handle: (s) => [a("transform-origin", s)],
staticValues: {
center: [a("transform-origin", "center")],
top: [a("transform-origin", "top")],
"top-right": [a("transform-origin", "100% 0")],
right: [a("transform-origin", "100%")],
"bottom-right": [a("transform-origin", "100% 100%")],
bottom: [a("transform-origin", "bottom")],
"bottom-left": [a("transform-origin", "0 100%")],
left: [a("transform-origin", "0")],
"top-left": [a("transform-origin", "0 0")]
}
}), n("perspective-origin", {
themeKeys: ["--perspective-origin"],
handle: (s) => [a("perspective-origin", s)],
staticValues: {
center: [a("perspective-origin", "center")],
top: [a("perspective-origin", "top")],
"top-right": [a("perspective-origin", "100% 0")],
right: [a("perspective-origin", "100%")],
"bottom-right": [a("perspective-origin", "100% 100%")],
bottom: [a("perspective-origin", "bottom")],
"bottom-left": [a("perspective-origin", "0 100%")],
left: [a("perspective-origin", "0")],
"top-left": [a("perspective-origin", "0 0")]
}
}), n("perspective", {
themeKeys: ["--perspective"],
handle: (s) => [a("perspective", s)],
staticValues: { none: [a("perspective", "none")] }
});
let u$1 = () => B([
$("--tw-translate-x", "0"),
$("--tw-translate-y", "0"),
$("--tw-translate-z", "0")
]);
e("translate-none", [["translate", "none"]]), e("-translate-full", [
u$1,
["--tw-translate-x", "-100%"],
["--tw-translate-y", "-100%"],
["translate", "var(--tw-translate-x) var(--tw-translate-y)"]
]), e("translate-full", [
u$1,
["--tw-translate-x", "100%"],
["--tw-translate-y", "100%"],
["translate", "var(--tw-translate-x) var(--tw-translate-y)"]
]), l("translate", ["--translate", "--spacing"], (s) => [
u$1(),
a("--tw-translate-x", s),
a("--tw-translate-y", s),
a("translate", "var(--tw-translate-x) var(--tw-translate-y)")
], {
supportsNegative: !0,
supportsFractions: !0
});
for (let s of ["x", "y"]) e(`-translate-${s}-full`, [
u$1,
[`--tw-translate-${s}`, "-100%"],
["translate", "var(--tw-translate-x) var(--tw-translate-y)"]
]), e(`translate-${s}-full`, [
u$1,
[`--tw-translate-${s}`, "100%"],
["translate", "var(--tw-translate-x) var(--tw-translate-y)"]
]), l(`translate-${s}`, ["--translate", "--spacing"], (g) => [
u$1(),
a(`--tw-translate-${s}`, g),
a("translate", "var(--tw-translate-x) var(--tw-translate-y)")
], {
supportsNegative: !0,
supportsFractions: !0
});
l("translate-z", ["--translate", "--spacing"], (s) => [
u$1(),
a("--tw-translate-z", s),
a("translate", "var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)")
], { supportsNegative: !0 }), e("translate-3d", [u$1, ["translate", "var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)"]]);
let f = () => B([
$("--tw-scale-x", "1"),
$("--tw-scale-y", "1"),
$("--tw-scale-z", "1")
]);
e("scale-none", [["scale", "none"]]);
function m({ negative: s }) {
return (g) => {
if (!g.value || g.modifier) return;
let w;
return g.value.kind === "arbitrary" ? (w = g.value.value, w = s ? `calc(${w} * -1)` : w, [a("scale", w)]) : (w = t.resolve(g.value.value, ["--scale"]), !w && u(g.value.value) && (w = `${g.value.value}%`), w ? (w = s ? `calc(${w} * -1)` : w, [
f(),
a("--tw-scale-x", w),
a("--tw-scale-y", w),
a("--tw-scale-z", w),
a("scale", "var(--tw-scale-x) var(--tw-scale-y)")
]) : void 0);
};
}
r.functional("-scale", m({ negative: !0 })), r.functional("scale", m({ negative: !1 })), i("scale", () => [{
supportsNegative: !0,
values: [
"0",
"50",
"75",
"90",
"95",
"100",
"105",
"110",
"125",
"150",
"200"
],
valueThemeKeys: ["--scale"]
}]);
for (let s of [
"x",
"y",
"z"
]) n(`scale-${s}`, {
supportsNegative: !0,
themeKeys: ["--scale"],
handleBareValue: ({ value: g }) => u(g) ? `${g}%` : null,
handle: (g) => [
f(),
a(`--tw-scale-${s}`, g),
a("scale", `var(--tw-scale-x) var(--tw-scale-y)${s === "z" ? " var(--tw-scale-z)" : ""}`)
]
}), i(`scale-${s}`, () => [{
supportsNegative: !0,
values: [
"0",
"50",
"75",
"90",
"95",
"100",
"105",
"110",
"125",
"150",
"200"
],
valueThemeKeys: ["--scale"]
}]);
e("scale-3d", [f, ["scale", "var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)"]]), e("rotate-none", [["rotate", "none"]]);
function d$2({ negative: s }) {
return (g) => {
if (!g.value || g.modifier) return;
let w;
if (g.value.kind === "arbitrary") {
w = g.value.value;
let C = g.value.dataType ?? me(w, ["angle", "vector"]);
if (C === "vector") return [a("rotate", `${w} var(--tw-rotate)`)];
if (C !== "angle") return [a("rotate", s ? `calc(${w} * -1)` : w)];
} else if (w = t.resolve(g.value.value, ["--rotate"]), !w && u(g.value.value) && (w = `${g.value.value}deg`), !w) return;
return [a("rotate", s ? `calc(${w} * -1)` : w)];
};
}
r.functional("-rotate", d$2({ negative: !0 })), r.functional("rotate", d$2({ negative: !1 })), i("rotate", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12",
"45",
"90",
"180"
],
valueThemeKeys: ["--rotate"]
}]);
{
let s = [
"var(--tw-rotate-x,)",
"var(--tw-rotate-y,)",
"var(--tw-rotate-z,)",
"var(--tw-skew-x,)",
"var(--tw-skew-y,)"
].join(" "), g = () => B([
$("--tw-rotate-x"),
$("--tw-rotate-y"),
$("--tw-rotate-z"),
$("--tw-skew-x"),
$("--tw-skew-y")
]);
for (let w of [
"x",
"y",
"z"
]) n(`rotate-${w}`, {
supportsNegative: !0,
themeKeys: ["--rotate"],
handleBareValue: ({ value: C }) => u(C) ? `${C}deg` : null,
handle: (C) => [
g(),
a(`--tw-rotate-${w}`, `rotate${w.toUpperCase()}(${C})`),
a("transform", s)
]
}), i(`rotate-${w}`, () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12",
"45",
"90",
"180"
],
valueThemeKeys: ["--rotate"]
}]);
n("skew", {
supportsNegative: !0,
themeKeys: ["--skew"],
handleBareValue: ({ value: w }) => u(w) ? `${w}deg` : null,
handle: (w) => [
g(),
a("--tw-skew-x", `skewX(${w})`),
a("--tw-skew-y", `skewY(${w})`),
a("transform", s)
]
}), n("skew-x", {
supportsNegative: !0,
themeKeys: ["--skew"],
handleBareValue: ({ value: w }) => u(w) ? `${w}deg` : null,
handle: (w) => [
g(),
a("--tw-skew-x", `skewX(${w})`),
a("transform", s)
]
}), n("skew-y", {
supportsNegative: !0,
themeKeys: ["--skew"],
handleBareValue: ({ value: w }) => u(w) ? `${w}deg` : null,
handle: (w) => [
g(),
a("--tw-skew-y", `skewY(${w})`),
a("transform", s)
]
}), i("skew", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12"
],
valueThemeKeys: ["--skew"]
}]), i("skew-x", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12"
],
valueThemeKeys: ["--skew"]
}]), i("skew-y", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12"
],
valueThemeKeys: ["--skew"]
}]), r.functional("transform", (w) => {
if (w.modifier) return;
let C = null;
if (w.value ? w.value.kind === "arbitrary" && (C = w.value.value) : C = s, C !== null) return [g(), a("transform", C)];
}), i("transform", () => [{ hasDefaultValue: !0 }]), e("transform-cpu", [["transform", s]]), e("transform-gpu", [["transform", `translateZ(0) ${s}`]]), e("transform-none", [["transform", "none"]]);
}
e("transform-flat", [["transform-style", "flat"]]), e("transform-3d", [["transform-style", "preserve-3d"]]), e("transform-content", [["transform-box", "content-box"]]), e("transform-border", [["transform-box", "border-box"]]), e("transform-fill", [["transform-box", "fill-box"]]), e("transform-stroke", [["transform-box", "stroke-box"]]), e("transform-view", [["transform-box", "view-box"]]), e("backface-visible", [["backface-visibility", "visible"]]), e("backface-hidden", [["backface-visibility", "hidden"]]);
for (let s of [
"auto",
"default",
"pointer",
"wait",
"text",
"move",
"help",
"not-allowed",
"none",
"context-menu",
"progress",
"cell",
"crosshair",
"vertical-text",
"alias",
"copy",
"no-drop",
"grab",
"grabbing",
"all-scroll",
"col-resize",
"row-resize",
"n-resize",
"e-resize",
"s-resize",
"w-resize",
"ne-resize",
"nw-resize",
"se-resize",
"sw-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"zoom-in",
"zoom-out"
]) e(`cursor-${s}`, [["cursor", s]]);
n("cursor", {
themeKeys: ["--cursor"],
handle: (s) => [a("cursor", s)]
});
for (let s of [
"auto",
"none",
"manipulation"
]) e(`touch-${s}`, [["touch-action", s]]);
let p = () => B([
$("--tw-pan-x"),
$("--tw-pan-y"),
$("--tw-pinch-zoom")
]);
for (let s of [
"x",
"left",
"right"
]) e(`touch-pan-${s}`, [
p,
["--tw-pan-x", `pan-${s}`],
["touch-action", "var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)"]
]);
for (let s of [
"y",
"up",
"down"
]) e(`touch-pan-${s}`, [
p,
["--tw-pan-y", `pan-${s}`],
["touch-action", "var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)"]
]);
e("touch-pinch-zoom", [
p,
["--tw-pinch-zoom", "pinch-zoom"],
["touch-action", "var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)"]
]);
for (let s of [
"none",
"text",
"all",
"auto"
]) e(`select-${s}`, [["-webkit-user-select", s], ["user-select", s]]);
e("resize-none", [["resize", "none"]]), e("resize-x", [["resize", "horizontal"]]), e("resize-y", [["resize", "vertical"]]), e("resize", [["resize", "both"]]), e("snap-none", [["scroll-snap-type", "none"]]);
let v = () => B([$("--tw-scroll-snap-strictness", "proximity", "*")]);
for (let s of [
"x",
"y",
"both"
]) e(`snap-${s}`, [v, ["scroll-snap-type", `${s} var(--tw-scroll-snap-strictness)`]]);
e("snap-mandatory", [v, ["--tw-scroll-snap-strictness", "mandatory"]]), e("snap-proximity", [v, ["--tw-scroll-snap-strictness", "proximity"]]), e("snap-align-none", [["scroll-snap-align", "none"]]), e("snap-start", [["scroll-snap-align", "start"]]), e("snap-end", [["scroll-snap-align", "end"]]), e("snap-center", [["scroll-snap-align", "center"]]), e("snap-normal", [["scroll-snap-stop", "normal"]]), e("snap-always", [["scroll-snap-stop", "always"]]);
for (let [s, g] of [
["scroll-m", "scroll-margin"],
["scroll-mx", "scroll-margin-inline"],
["scroll-my", "scroll-margin-block"],
["scroll-ms", "scroll-margin-inline-start"],
["scroll-me", "scroll-margin-inline-end"],
["scroll-mbs", "scroll-margin-block-start"],
["scroll-mbe", "scroll-margin-block-end"],
["scroll-mt", "scroll-margin-top"],
["scroll-mr", "scroll-margin-right"],
["scroll-mb", "scroll-margin-bottom"],
["scroll-ml", "scroll-margin-left"]
]) l(s, ["--scroll-margin", "--spacing"], (w) => [a(g, w)], { supportsNegative: !0 });
for (let [s, g] of [
["scroll-p", "scroll-padding"],
["scroll-px", "scroll-padding-inline"],
["scroll-py", "scroll-padding-block"],
["scroll-ps", "scroll-padding-inline-start"],
["scroll-pe", "scroll-padding-inline-end"],
["scroll-pbs", "scroll-padding-block-start"],
["scroll-pbe", "scroll-padding-block-end"],
["scroll-pt", "scroll-padding-top"],
["scroll-pr", "scroll-padding-right"],
["scroll-pb", "scroll-padding-bottom"],
["scroll-pl", "scroll-padding-left"]
]) l(s, ["--scroll-padding", "--spacing"], (w) => [a(g, w)]);
e("list-inside", [["list-style-position", "inside"]]), e("list-outside", [["list-style-position", "outside"]]), n("list", {
themeKeys: ["--list-style-type"],
handle: (s) => [a("list-style-type", s)],
staticValues: {
none: [a("list-style-type", "none")],
disc: [a("list-style-type", "disc")],
decimal: [a("list-style-type", "decimal")]
}
}), n("list-image", {
themeKeys: ["--list-style-image"],
handle: (s) => [a("list-style-image", s)],
staticValues: { none: [a("list-style-image", "none")] }
}), e("appearance-none", [["appearance", "none"]]), e("appearance-auto", [["appearance", "auto"]]), e("scheme-normal", [["color-scheme", "normal"]]), e("scheme-dark", [["color-scheme", "dark"]]), e("scheme-light", [["color-scheme", "light"]]), e("scheme-light-dark", [["color-scheme", "light dark"]]), e("scheme-only-dark", [["color-scheme", "only dark"]]), e("scheme-only-light", [["color-scheme", "only light"]]), n("columns", {
themeKeys: ["--columns", "--container"],
handleBareValue: ({ value: s }) => u(s) ? s : null,
handle: (s) => [a("columns", s)],
staticValues: { auto: [a("columns", "auto")] }
}), i("columns", () => [{
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--columns", "--container"]
}]);
for (let s of [
"auto",
"avoid",
"all",
"avoid-page",
"page",
"left",
"right",
"column"
]) e(`break-before-${s}`, [["break-before", s]]);
for (let s of [
"auto",
"avoid",
"avoid-page",
"avoid-column"
]) e(`break-inside-${s}`, [["break-inside", s]]);
for (let s of [
"auto",
"avoid",
"all",
"avoid-page",
"page",
"left",
"right",
"column"
]) e(`break-after-${s}`, [["break-after", s]]);
e("grid-flow-row", [["grid-auto-flow", "row"]]), e("grid-flow-col", [["grid-auto-flow", "column"]]), e("grid-flow-dense", [["grid-auto-flow", "dense"]]), e("grid-flow-row-dense", [["grid-auto-flow", "row dense"]]), e("grid-flow-col-dense", [["grid-auto-flow", "column dense"]]), n("auto-cols", {
themeKeys: ["--grid-auto-columns"],
handle: (s) => [a("grid-auto-columns", s)],
staticValues: {
auto: [a("grid-auto-columns", "auto")],
min: [a("grid-auto-columns", "min-content")],
max: [a("grid-auto-columns", "max-content")],
fr: [a("grid-auto-columns", "minmax(0, 1fr)")]
}
}), n("auto-rows", {
themeKeys: ["--grid-auto-rows"],
handle: (s) => [a("grid-auto-rows", s)],
staticValues: {
auto: [a("grid-auto-rows", "auto")],
min: [a("grid-auto-rows", "min-content")],
max: [a("grid-auto-rows", "max-content")],
fr: [a("grid-auto-rows", "minmax(0, 1fr)")]
}
}), n("grid-cols", {
themeKeys: ["--grid-template-columns"],
handleBareValue: ({ value: s }) => pe$1(s) ? `repeat(${s}, minmax(0, 1fr))` : null,
handle: (s) => [a("grid-template-columns", s)],
staticValues: {
none: [a("grid-template-columns", "none")],
subgrid: [a("grid-template-columns", "subgrid")]
}
}), n("grid-rows", {
themeKeys: ["--grid-template-rows"],
handleBareValue: ({ value: s }) => pe$1(s) ? `repeat(${s}, minmax(0, 1fr))` : null,
handle: (s) => [a("grid-template-rows", s)],
staticValues: {
none: [a("grid-template-rows", "none")],
subgrid: [a("grid-template-rows", "subgrid")]
}
}), i("grid-cols", () => [{
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-template-columns"]
}]), i("grid-rows", () => [{
values: Array.from({ length: 12 }, (s, g) => `${g + 1}`),
valueThemeKeys: ["--grid-template-rows"]
}]), e("flex-row", [["flex-direction", "row"]]), e("flex-row-reverse", [["flex-direction", "row-reverse"]]), e("flex-col", [["flex-direction", "column"]]), e("flex-col-reverse", [["flex-direction", "column-reverse"]]), e("flex-wrap", [["flex-wrap", "wrap"]]), e("flex-nowrap", [["flex-wrap", "nowrap"]]), e("flex-wrap-reverse", [["flex-wrap", "wrap-reverse"]]), e("place-content-center", [["place-content", "center"]]), e("place-content-start", [["place-content", "start"]]), e("place-content-end", [["place-content", "end"]]), e("place-content-center-safe", [["place-content", "safe center"]]), e("place-content-end-safe", [["place-content", "safe end"]]), e("place-content-between", [["place-content", "space-between"]]), e("place-content-around", [["place-content", "space-around"]]), e("place-content-evenly", [["place-content", "space-evenly"]]), e("place-content-baseline", [["place-content", "baseline"]]), e("place-content-stretch", [["place-content", "stretch"]]), e("place-items-center", [["place-items", "center"]]), e("place-items-start", [["place-items", "start"]]), e("place-items-end", [["place-items", "end"]]), e("place-items-center-safe", [["place-items", "safe center"]]), e("place-items-end-safe", [["place-items", "safe end"]]), e("place-items-baseline", [["place-items", "baseline"]]), e("place-items-stretch", [["place-items", "stretch"]]), e("content-normal", [["align-content", "normal"]]), e("content-center", [["align-content", "center"]]), e("content-start", [["align-content", "flex-start"]]), e("content-end", [["align-content", "flex-end"]]), e("content-center-safe", [["align-content", "safe center"]]), e("content-end-safe", [["align-content", "safe flex-end"]]), e("content-between", [["align-content", "space-between"]]), e("content-around", [["align-content", "space-around"]]), e("content-evenly", [["align-content", "space-evenly"]]), e("content-baseline", [["align-content", "baseline"]]), e("content-stretch", [["align-content", "stretch"]]), e("items-center", [["align-items", "center"]]), e("items-start", [["align-items", "flex-start"]]), e("items-end", [["align-items", "flex-end"]]), e("items-center-safe", [["align-items", "safe center"]]), e("items-end-safe", [["align-items", "safe flex-end"]]), e("items-baseline", [["align-items", "baseline"]]), e("items-baseline-last", [["align-items", "last baseline"]]), e("items-stretch", [["align-items", "stretch"]]), e("justify-normal", [["justify-content", "normal"]]), e("justify-center", [["justify-content", "center"]]), e("justify-start", [["justify-content", "flex-start"]]), e("justify-end", [["justify-content", "flex-end"]]), e("justify-center-safe", [["justify-content", "safe center"]]), e("justify-end-safe", [["justify-content", "safe flex-end"]]), e("justify-between", [["justify-content", "space-between"]]), e("justify-around", [["justify-content", "space-around"]]), e("justify-evenly", [["justify-content", "space-evenly"]]), e("justify-baseline", [["justify-content", "baseline"]]), e("justify-stretch", [["justify-content", "stretch"]]), e("justify-items-normal", [["justify-items", "normal"]]), e("justify-items-center", [["justify-items", "center"]]), e("justify-items-start", [["justify-items", "start"]]), e("justify-items-end", [["justify-items", "end"]]), e("justify-items-center-safe", [["justify-items", "safe center"]]), e("justify-items-end-safe", [["justify-items", "safe end"]]), e("justify-items-stretch", [["justify-items", "stretch"]]), l("gap", ["--gap", "--spacing"], (s) => [a("gap", s)]), l("gap-x", ["--gap", "--spacing"], (s) => [a("column-gap", s)]), l("gap-y", ["--gap", "--spacing"], (s) => [a("row-gap", s)]), l("space-x", ["--space", "--spacing"], (s) => [B([$("--tw-space-x-reverse", "0")]), q(":where(& > :not(:last-child))", [
a("--tw-sort", "row-gap"),
a("--tw-space-x-reverse", "0"),
a("margin-inline-start", `calc(${s} * var(--tw-space-x-reverse))`),
a("margin-inline-end", `calc(${s} * calc(1 - var(--tw-space-x-reverse)))`)
])], { supportsNegative: !0 }), l("space-y", ["--space", "--spacing"], (s) => [B([$("--tw-space-y-reverse", "0")]), q(":where(& > :not(:last-child))", [
a("--tw-sort", "column-gap"),
a("--tw-space-y-reverse", "0"),
a("margin-block-start", `calc(${s} * var(--tw-space-y-reverse))`),
a("margin-block-end", `calc(${s} * calc(1 - var(--tw-space-y-reverse)))`)
])], { supportsNegative: !0 }), e("space-x-reverse", [() => B([$("--tw-space-x-reverse", "0")]), () => q(":where(& > :not(:last-child))", [a("--tw-sort", "row-gap"), a("--tw-space-x-reverse", "1")])]), e("space-y-reverse", [() => B([$("--tw-space-y-reverse", "0")]), () => q(":where(& > :not(:last-child))", [a("--tw-sort", "column-gap"), a("--tw-space-y-reverse", "1")])]), e("accent-auto", [["accent-color", "auto"]]), o("accent", {
themeKeys: ["--accent-color", "--color"],
handle: (s) => [a("accent-color", s)]
}), o("caret", {
themeKeys: ["--caret-color", "--color"],
handle: (s) => [a("caret-color", s)]
}), o("divide", {
themeKeys: [
"--divide-color",
"--border-color",
"--color"
],
handle: (s) => [q(":where(& > :not(:last-child))", [a("--tw-sort", "divide-color"), a("border-color", s)])]
}), e("place-self-auto", [["place-self", "auto"]]), e("place-self-start", [["place-self", "start"]]), e("place-self-end", [["place-self", "end"]]), e("place-self-center", [["place-self", "center"]]), e("place-self-end-safe", [["place-self", "safe end"]]), e("place-self-center-safe", [["place-self", "safe center"]]), e("place-self-stretch", [["place-self", "stretch"]]), e("self-auto", [["align-self", "auto"]]), e("self-start", [["align-self", "flex-start"]]), e("self-end", [["align-self", "flex-end"]]), e("self-center", [["align-self", "center"]]), e("self-end-safe", [["align-self", "safe flex-end"]]), e("self-center-safe", [["align-self", "safe center"]]), e("self-stretch", [["align-self", "stretch"]]), e("self-baseline", [["align-self", "baseline"]]), e("self-baseline-last", [["align-self", "last baseline"]]), e("justify-self-auto", [["justify-self", "auto"]]), e("justify-self-start", [["justify-self", "flex-start"]]), e("justify-self-end", [["justify-self", "flex-end"]]), e("justify-self-center", [["justify-self", "center"]]), e("justify-self-end-safe", [["justify-self", "safe flex-end"]]), e("justify-self-center-safe", [["justify-self", "safe center"]]), e("justify-self-stretch", [["justify-self", "stretch"]]);
for (let s of [
"auto",
"hidden",
"clip",
"visible",
"scroll"
]) e(`overflow-${s}`, [["overflow", s]]), e(`overflow-x-${s}`, [["overflow-x", s]]), e(`overflow-y-${s}`, [["overflow-y", s]]);
for (let s of [
"auto",
"contain",
"none"
]) e(`overscroll-${s}`, [["overscroll-behavior", s]]), e(`overscroll-x-${s}`, [["overscroll-behavior-x", s]]), e(`overscroll-y-${s}`, [["overscroll-behavior-y", s]]);
e("scroll-auto", [["scroll-behavior", "auto"]]), e("scroll-smooth", [["scroll-behavior", "smooth"]]), e("truncate", [
["overflow", "hidden"],
["text-overflow", "ellipsis"],
["white-space", "nowrap"]
]), e("text-ellipsis", [["text-overflow", "ellipsis"]]), e("text-clip", [["text-overflow", "clip"]]), e("hyphens-none", [["-webkit-hyphens", "none"], ["hyphens", "none"]]), e("hyphens-manual", [["-webkit-hyphens", "manual"], ["hyphens", "manual"]]), e("hyphens-auto", [["-webkit-hyphens", "auto"], ["hyphens", "auto"]]), e("whitespace-normal", [["white-space", "normal"]]), e("whitespace-nowrap", [["white-space", "nowrap"]]), e("whitespace-pre", [["white-space", "pre"]]), e("whitespace-pre-line", [["white-space", "pre-line"]]), e("whitespace-pre-wrap", [["white-space", "pre-wrap"]]), e("whitespace-break-spaces", [["white-space", "break-spaces"]]), e("text-wrap", [["text-wrap", "wrap"]]), e("text-nowrap", [["text-wrap", "nowrap"]]), e("text-balance", [["text-wrap", "balance"]]), e("text-pretty", [["text-wrap", "pretty"]]), e("break-normal", [["overflow-wrap", "normal"], ["word-break", "normal"]]), e("break-all", [["word-break", "break-all"]]), e("break-keep", [["word-break", "keep-all"]]), e("wrap-anywhere", [["overflow-wrap", "anywhere"]]), e("wrap-break-word", [["overflow-wrap", "break-word"]]), e("wrap-normal", [["overflow-wrap", "normal"]]);
for (let [s, g] of [
["rounded", ["border-radius"]],
["rounded-s", ["border-start-start-radius", "border-end-start-radius"]],
["rounded-e", ["border-start-end-radius", "border-end-end-radius"]],
["rounded-t", ["border-top-left-radius", "border-top-right-radius"]],
["rounded-r", ["border-top-right-radius", "border-bottom-right-radius"]],
["rounded-b", ["border-bottom-right-radius", "border-bottom-left-radius"]],
["rounded-l", ["border-top-left-radius", "border-bottom-left-radius"]],
["rounded-ss", ["border-start-start-radius"]],
["rounded-se", ["border-start-end-radius"]],
["rounded-ee", ["border-end-end-radius"]],
["rounded-es", ["border-end-start-radius"]],
["rounded-tl", ["border-top-left-radius"]],
["rounded-tr", ["border-top-right-radius"]],
["rounded-br", ["border-bottom-right-radius"]],
["rounded-bl", ["border-bottom-left-radius"]]
]) n(s, {
themeKeys: ["--radius"],
handle: (w) => g.map((C) => a(C, w)),
staticValues: {
none: g.map((w) => a(w, "0")),
full: g.map((w) => a(w, "calc(infinity * 1px)"))
}
});
e("border-solid", [["--tw-border-style", "solid"], ["border-style", "solid"]]), e("border-dashed", [["--tw-border-style", "dashed"], ["border-style", "dashed"]]), e("border-dotted", [["--tw-border-style", "dotted"], ["border-style", "dotted"]]), e("border-double", [["--tw-border-style", "double"], ["border-style", "double"]]), e("border-hidden", [["--tw-border-style", "hidden"], ["border-style", "hidden"]]), e("border-none", [["--tw-border-style", "none"], ["border-style", "none"]]);
{
let g = function(w, C) {
r.functional(w, (x) => {
if (!x.value) {
if (x.modifier) return;
let S = t.get(["--default-border-width"]) ?? "1px", K = C.width(S);
return K ? [s(), ...K] : void 0;
}
if (x.value.kind === "arbitrary") {
let S = x.value.value;
switch (x.value.dataType ?? me(S, [
"color",
"line-width",
"length"
])) {
case "line-width":
case "length": {
if (x.modifier) return;
let V = C.width(S);
return V ? [s(), ...V] : void 0;
}
default: return S = X(S, x.modifier, t), S === null ? void 0 : C.color(S);
}
}
{
let S = re(x, t, ["--border-color", "--color"]);
if (S) return C.color(S);
}
{
if (x.modifier) return;
let S = t.resolve(x.value.value, ["--border-width"]);
if (S) {
let K = C.width(S);
return K ? [s(), ...K] : void 0;
}
if (u(x.value.value)) {
let K = C.width(`${x.value.value}px`);
return K ? [s(), ...K] : void 0;
}
}
}), i(w, () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--border-color", "--color"],
modifiers: Array.from({ length: 21 }, (x, S) => `${S * 5}`),
hasDefaultValue: !0
}, {
values: [
"0",
"2",
"4",
"8"
],
valueThemeKeys: ["--border-width"]
}]);
};
let s = () => B([$("--tw-border-style", "solid")]);
g("border", {
width: (w) => [a("border-style", "var(--tw-border-style)"), a("border-width", w)],
color: (w) => [a("border-color", w)]
}), g("border-x", {
width: (w) => [a("border-inline-style", "var(--tw-border-style)"), a("border-inline-width", w)],
color: (w) => [a("border-inline-color", w)]
}), g("border-y", {
width: (w) => [a("border-block-style", "var(--tw-border-style)"), a("border-block-width", w)],
color: (w) => [a("border-block-color", w)]
}), g("border-s", {
width: (w) => [a("border-inline-start-style", "var(--tw-border-style)"), a("border-inline-start-width", w)],
color: (w) => [a("border-inline-start-color", w)]
}), g("border-e", {
width: (w) => [a("border-inline-end-style", "var(--tw-border-style)"), a("border-inline-end-width", w)],
color: (w) => [a("border-inline-end-color", w)]
}), g("border-bs", {
width: (w) => [a("border-block-start-style", "var(--tw-border-style)"), a("border-block-start-width", w)],
color: (w) => [a("border-block-start-color", w)]
}), g("border-be", {
width: (w) => [a("border-block-end-style", "var(--tw-border-style)"), a("border-block-end-width", w)],
color: (w) => [a("border-block-end-color", w)]
}), g("border-t", {
width: (w) => [a("border-top-style", "var(--tw-border-style)"), a("border-top-width", w)],
color: (w) => [a("border-top-color", w)]
}), g("border-r", {
width: (w) => [a("border-right-style", "var(--tw-border-style)"), a("border-right-width", w)],
color: (w) => [a("border-right-color", w)]
}), g("border-b", {
width: (w) => [a("border-bottom-style", "var(--tw-border-style)"), a("border-bottom-width", w)],
color: (w) => [a("border-bottom-color", w)]
}), g("border-l", {
width: (w) => [a("border-left-style", "var(--tw-border-style)"), a("border-left-width", w)],
color: (w) => [a("border-left-color", w)]
}), n("divide-x", {
defaultValue: t.get(["--default-border-width"]) ?? "1px",
themeKeys: ["--divide-width", "--border-width"],
handleBareValue: ({ value: w }) => u(w) ? `${w}px` : null,
handle: (w) => [B([$("--tw-divide-x-reverse", "0")]), q(":where(& > :not(:last-child))", [
a("--tw-sort", "divide-x-width"),
s(),
a("--tw-divide-x-reverse", "0"),
a("border-inline-style", "var(--tw-border-style)"),
a("border-inline-start-width", `calc(${w} * var(--tw-divide-x-reverse))`),
a("border-inline-end-width", `calc(${w} * calc(1 - var(--tw-divide-x-reverse)))`)
])]
}), n("divide-y", {
defaultValue: t.get(["--default-border-width"]) ?? "1px",
themeKeys: ["--divide-width", "--border-width"],
handleBareValue: ({ value: w }) => u(w) ? `${w}px` : null,
handle: (w) => [B([$("--tw-divide-y-reverse", "0")]), q(":where(& > :not(:last-child))", [
a("--tw-sort", "divide-y-width"),
s(),
a("--tw-divide-y-reverse", "0"),
a("border-bottom-style", "var(--tw-border-style)"),
a("border-top-style", "var(--tw-border-style)"),
a("border-top-width", `calc(${w} * var(--tw-divide-y-reverse))`),
a("border-bottom-width", `calc(${w} * calc(1 - var(--tw-divide-y-reverse)))`)
])]
}), i("divide-x", () => [{
values: [
"0",
"2",
"4",
"8"
],
valueThemeKeys: ["--divide-width", "--border-width"],
hasDefaultValue: !0
}]), i("divide-y", () => [{
values: [
"0",
"2",
"4",
"8"
],
valueThemeKeys: ["--divide-width", "--border-width"],
hasDefaultValue: !0
}]), e("divide-x-reverse", [() => B([$("--tw-divide-x-reverse", "0")]), () => q(":where(& > :not(:last-child))", [a("--tw-divide-x-reverse", "1")])]), e("divide-y-reverse", [() => B([$("--tw-divide-y-reverse", "0")]), () => q(":where(& > :not(:last-child))", [a("--tw-divide-y-reverse", "1")])]);
for (let w of [
"solid",
"dashed",
"dotted",
"double",
"none"
]) e(`divide-${w}`, [() => q(":where(& > :not(:last-child))", [
a("--tw-sort", "divide-style"),
a("--tw-border-style", w),
a("border-style", w)
])]);
}
e("bg-auto", [["background-size", "auto"]]), e("bg-cover", [["background-size", "cover"]]), e("bg-contain", [["background-size", "contain"]]), n("bg-size", { handle(s) {
if (s) return [a("background-size", s)];
} }), e("bg-fixed", [["background-attachment", "fixed"]]), e("bg-local", [["background-attachment", "local"]]), e("bg-scroll", [["background-attachment", "scroll"]]), e("bg-top", [["background-position", "top"]]), e("bg-top-left", [["background-position", "left top"]]), e("bg-top-right", [["background-position", "right top"]]), e("bg-bottom", [["background-position", "bottom"]]), e("bg-bottom-left", [["background-position", "left bottom"]]), e("bg-bottom-right", [["background-position", "right bottom"]]), e("bg-left", [["background-position", "left"]]), e("bg-right", [["background-position", "right"]]), e("bg-center", [["background-position", "center"]]), n("bg-position", { handle(s) {
if (s) return [a("background-position", s)];
} }), e("bg-repeat", [["background-repeat", "repeat"]]), e("bg-no-repeat", [["background-repeat", "no-repeat"]]), e("bg-repeat-x", [["background-repeat", "repeat-x"]]), e("bg-repeat-y", [["background-repeat", "repeat-y"]]), e("bg-repeat-round", [["background-repeat", "round"]]), e("bg-repeat-space", [["background-repeat", "space"]]), e("bg-none", [["background-image", "none"]]);
{
let w = function(S) {
let K = "in oklab";
if (S?.kind === "named") switch (S.value) {
case "longer":
case "shorter":
case "increasing":
case "decreasing":
K = `in oklch ${S.value} hue`;
break;
default: K = `in ${S.value}`;
}
else S?.kind === "arbitrary" && (K = S.value);
return K;
}, C = function({ negative: S }) {
return (K) => {
if (!K.value) return;
if (K.value.kind === "arbitrary") {
if (K.modifier) return;
let M = K.value.value;
switch (K.value.dataType ?? me(M, ["angle"])) {
case "angle": return M = S ? `calc(${M} * -1)` : `${M}`, [a("--tw-gradient-position", M), a("background-image", `linear-gradient(var(--tw-gradient-stops,${M}))`)];
default: return S ? void 0 : [a("--tw-gradient-position", M), a("background-image", `linear-gradient(var(--tw-gradient-stops,${M}))`)];
}
}
let V = K.value.value;
if (!S && g.has(V)) V = g.get(V);
else if (u(V)) V = S ? `calc(${V}deg * -1)` : `${V}deg`;
else return;
let O = w(K.modifier);
return [
a("--tw-gradient-position", `${V}`),
J("@supports (background-image: linear-gradient(in lab, red, red))", [a("--tw-gradient-position", `${V} ${O}`)]),
a("background-image", "linear-gradient(var(--tw-gradient-stops))")
];
};
}, x = function({ negative: S }) {
return (K) => {
if (K.value?.kind === "arbitrary") {
if (K.modifier) return;
let M = K.value.value;
return [a("--tw-gradient-position", M), a("background-image", `conic-gradient(var(--tw-gradient-stops,${M}))`)];
}
let V = w(K.modifier);
if (!K.value) return [a("--tw-gradient-position", V), a("background-image", "conic-gradient(var(--tw-gradient-stops))")];
let O = K.value.value;
if (u(O)) return O = S ? `calc(${O}deg * -1)` : `${O}deg`, [a("--tw-gradient-position", `from ${O} ${V}`), a("background-image", "conic-gradient(var(--tw-gradient-stops))")];
};
};
let s = [
"oklab",
"oklch",
"srgb",
"hsl",
"longer",
"shorter",
"increasing",
"decreasing"
], g = new Map([
["to-t", "to top"],
["to-tr", "to top right"],
["to-r", "to right"],
["to-br", "to bottom right"],
["to-b", "to bottom"],
["to-bl", "to bottom left"],
["to-l", "to left"],
["to-tl", "to top left"]
]);
r.functional("-bg-linear", C({ negative: !0 })), r.functional("bg-linear", C({ negative: !1 })), i("bg-linear", () => [{
values: [...g.keys()],
modifiers: s
}, {
values: [
"0",
"30",
"60",
"90",
"120",
"150",
"180",
"210",
"240",
"270",
"300",
"330"
],
supportsNegative: !0,
modifiers: s
}]), r.functional("-bg-conic", x({ negative: !0 })), r.functional("bg-conic", x({ negative: !1 })), i("bg-conic", () => [{
hasDefaultValue: !0,
modifiers: s
}, {
values: [
"0",
"30",
"60",
"90",
"120",
"150",
"180",
"210",
"240",
"270",
"300",
"330"
],
supportsNegative: !0,
modifiers: s
}]), r.functional("bg-radial", (S) => {
if (!S.value) return [a("--tw-gradient-position", w(S.modifier)), a("background-image", "radial-gradient(var(--tw-gradient-stops))")];
if (S.value.kind === "arbitrary") {
if (S.modifier) return;
let K = S.value.value;
return [a("--tw-gradient-position", K), a("background-image", `radial-gradient(var(--tw-gradient-stops,${K}))`)];
}
}), i("bg-radial", () => [{
hasDefaultValue: !0,
modifiers: s
}]);
}
r.functional("bg", (s) => {
if (s.value) {
if (s.value.kind === "arbitrary") {
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"image",
"color",
"percentage",
"position",
"bg-size",
"length",
"url"
])) {
case "percentage":
case "position": return s.modifier ? void 0 : [a("background-position", g)];
case "bg-size":
case "length":
case "size": return s.modifier ? void 0 : [a("background-size", g)];
case "image":
case "url": return s.modifier ? void 0 : [a("background-image", g)];
default: return g = X(g, s.modifier, t), g === null ? void 0 : [a("background-color", g)];
}
}
{
let g = re(s, t, ["--background-color", "--color"]);
if (g) return [a("background-color", g)];
}
{
if (s.modifier) return;
let g = t.resolve(s.value.value, ["--background-image"]);
if (g) return [a("background-image", g)];
}
}
}), i("bg", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--background-color", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}, {
values: [],
valueThemeKeys: ["--background-image"]
}]);
let h = () => B([
$("--tw-gradient-position"),
$("--tw-gradient-from", "#0000", "<color>"),
$("--tw-gradient-via", "#0000", "<color>"),
$("--tw-gradient-to", "#0000", "<color>"),
$("--tw-gradient-stops"),
$("--tw-gradient-via-stops"),
$("--tw-gradient-from-position", "0%", "<length-percentage>"),
$("--tw-gradient-via-position", "50%", "<length-percentage>"),
$("--tw-gradient-to-position", "100%", "<length-percentage>")
]);
function y(s, g) {
r.functional(s, (w) => {
if (w.value) {
if (w.value.kind === "arbitrary") {
let C = w.value.value;
switch (w.value.dataType ?? me(C, [
"color",
"length",
"percentage"
])) {
case "length":
case "percentage": return w.modifier ? void 0 : g.position(C);
default: return C = X(C, w.modifier, t), C === null ? void 0 : g.color(C);
}
}
{
let C = re(w, t, ["--background-color", "--color"]);
if (C) return g.color(C);
}
{
if (w.modifier) return;
let C = t.resolve(w.value.value, ["--gradient-color-stop-positions"]);
if (C) return g.position(C);
if (w.value.value[w.value.value.length - 1] === "%" && u(w.value.value.slice(0, -1))) return g.position(w.value.value);
}
}
}), i(s, () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--background-color", "--color"],
modifiers: Array.from({ length: 21 }, (w, C) => `${C * 5}`)
}, {
values: Array.from({ length: 21 }, (w, C) => `${C * 5}%`),
valueThemeKeys: ["--gradient-color-stop-positions"]
}]);
}
y("from", {
color: (s) => [
h(),
a("--tw-sort", "--tw-gradient-from"),
a("--tw-gradient-from", s),
a("--tw-gradient-stops", "var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))")
],
position: (s) => [h(), a("--tw-gradient-from-position", s)]
}), e("via-none", [["--tw-gradient-via-stops", "initial"]]), y("via", {
color: (s) => [
h(),
a("--tw-sort", "--tw-gradient-via"),
a("--tw-gradient-via", s),
a("--tw-gradient-via-stops", "var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position)"),
a("--tw-gradient-stops", "var(--tw-gradient-via-stops)")
],
position: (s) => [h(), a("--tw-gradient-via-position", s)]
}), y("to", {
color: (s) => [
h(),
a("--tw-sort", "--tw-gradient-to"),
a("--tw-gradient-to", s),
a("--tw-gradient-stops", "var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))")
],
position: (s) => [h(), a("--tw-gradient-to-position", s)]
}), e("mask-none", [["mask-image", "none"]]), r.functional("mask", (s) => {
if (!s.value || s.modifier || s.value.kind !== "arbitrary") return;
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"image",
"percentage",
"position",
"bg-size",
"length",
"url"
])) {
case "percentage":
case "position": return s.modifier ? void 0 : [a("mask-position", g)];
case "bg-size":
case "length":
case "size": return [a("mask-size", g)];
default: return [a("mask-image", g)];
}
}), e("mask-add", [["mask-composite", "add"]]), e("mask-subtract", [["mask-composite", "subtract"]]), e("mask-intersect", [["mask-composite", "intersect"]]), e("mask-exclude", [["mask-composite", "exclude"]]), e("mask-alpha", [["mask-mode", "alpha"]]), e("mask-luminance", [["mask-mode", "luminance"]]), e("mask-match", [["mask-mode", "match-source"]]), e("mask-type-alpha", [["mask-type", "alpha"]]), e("mask-type-luminance", [["mask-type", "luminance"]]), e("mask-auto", [["mask-size", "auto"]]), e("mask-cover", [["mask-size", "cover"]]), e("mask-contain", [["mask-size", "contain"]]), n("mask-size", { handle(s) {
if (s) return [a("mask-size", s)];
} }), e("mask-top", [["mask-position", "top"]]), e("mask-top-left", [["mask-position", "left top"]]), e("mask-top-right", [["mask-position", "right top"]]), e("mask-bottom", [["mask-position", "bottom"]]), e("mask-bottom-left", [["mask-position", "left bottom"]]), e("mask-bottom-right", [["mask-position", "right bottom"]]), e("mask-left", [["mask-position", "left"]]), e("mask-right", [["mask-position", "right"]]), e("mask-center", [["mask-position", "center"]]), n("mask-position", { handle(s) {
if (s) return [a("mask-position", s)];
} }), e("mask-repeat", [["mask-repeat", "repeat"]]), e("mask-no-repeat", [["mask-repeat", "no-repeat"]]), e("mask-repeat-x", [["mask-repeat", "repeat-x"]]), e("mask-repeat-y", [["mask-repeat", "repeat-y"]]), e("mask-repeat-round", [["mask-repeat", "round"]]), e("mask-repeat-space", [["mask-repeat", "space"]]), e("mask-clip-border", [["mask-clip", "border-box"]]), e("mask-clip-padding", [["mask-clip", "padding-box"]]), e("mask-clip-content", [["mask-clip", "content-box"]]), e("mask-clip-fill", [["mask-clip", "fill-box"]]), e("mask-clip-stroke", [["mask-clip", "stroke-box"]]), e("mask-clip-view", [["mask-clip", "view-box"]]), e("mask-no-clip", [["mask-clip", "no-clip"]]), e("mask-origin-border", [["mask-origin", "border-box"]]), e("mask-origin-padding", [["mask-origin", "padding-box"]]), e("mask-origin-content", [["mask-origin", "content-box"]]), e("mask-origin-fill", [["mask-origin", "fill-box"]]), e("mask-origin-stroke", [["mask-origin", "stroke-box"]]), e("mask-origin-view", [["mask-origin", "view-box"]]);
let b = () => B([
$("--tw-mask-linear", "linear-gradient(#fff, #fff)"),
$("--tw-mask-radial", "linear-gradient(#fff, #fff)"),
$("--tw-mask-conic", "linear-gradient(#fff, #fff)")
]);
function T(s, g) {
r.functional(s, (w) => {
if (w.value) {
if (w.value.kind === "arbitrary") {
let C = w.value.value;
switch (w.value.dataType ?? me(C, [
"length",
"percentage",
"color"
])) {
case "color": return C = X(C, w.modifier, t), C === null ? void 0 : g.color(C);
case "percentage": return w.modifier || !u(C.slice(0, -1)) ? void 0 : g.position(C);
default: return w.modifier ? void 0 : g.position(C);
}
}
{
let C = re(w, t, ["--background-color", "--color"]);
if (C) return g.color(C);
}
{
if (w.modifier) return;
let C = me(w.value.value, ["number", "percentage"]);
if (!C) return;
switch (C) {
case "number": {
let x = t.resolve(null, ["--spacing"]);
return !x || !ge$1(w.value.value) ? void 0 : g.position(`calc(${x} * ${w.value.value})`);
}
case "percentage": return u(w.value.value.slice(0, -1)) ? g.position(w.value.value) : void 0;
default: return;
}
}
}
}), i(s, () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--background-color", "--color"],
modifiers: Array.from({ length: 21 }, (w, C) => `${C * 5}`)
}, {
values: Array.from({ length: 21 }, (w, C) => `${C * 5}%`),
valueThemeKeys: ["--gradient-color-stop-positions"]
}]), i(s, () => [
{ values: Array.from({ length: 21 }, (w, C) => `${C * 5}%`) },
{ values: t.get(["--spacing"]) ? vt : [] },
{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--background-color", "--color"],
modifiers: Array.from({ length: 21 }, (w, C) => `${C * 5}`)
}
]);
}
let A = () => B([
$("--tw-mask-left", "linear-gradient(#fff, #fff)"),
$("--tw-mask-right", "linear-gradient(#fff, #fff)"),
$("--tw-mask-bottom", "linear-gradient(#fff, #fff)"),
$("--tw-mask-top", "linear-gradient(#fff, #fff)")
]);
function k(s, g, w) {
T(s, {
color(C) {
let x = [
b(),
A(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear", "var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)")
];
for (let S of [
"top",
"right",
"bottom",
"left"
]) w[S] && (x.push(a(`--tw-mask-${S}`, `linear-gradient(to ${S}, var(--tw-mask-${S}-from-color) var(--tw-mask-${S}-from-position), var(--tw-mask-${S}-to-color) var(--tw-mask-${S}-to-position))`)), x.push(B([
$(`--tw-mask-${S}-from-position`, "0%"),
$(`--tw-mask-${S}-to-position`, "100%"),
$(`--tw-mask-${S}-from-color`, "black"),
$(`--tw-mask-${S}-to-color`, "transparent")
])), x.push(a(`--tw-mask-${S}-${g}-color`, C)));
return x;
},
position(C) {
let x = [
b(),
A(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear", "var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)")
];
for (let S of [
"top",
"right",
"bottom",
"left"
]) w[S] && (x.push(a(`--tw-mask-${S}`, `linear-gradient(to ${S}, var(--tw-mask-${S}-from-color) var(--tw-mask-${S}-from-position), var(--tw-mask-${S}-to-color) var(--tw-mask-${S}-to-position))`)), x.push(B([
$(`--tw-mask-${S}-from-position`, "0%"),
$(`--tw-mask-${S}-to-position`, "100%"),
$(`--tw-mask-${S}-from-color`, "black"),
$(`--tw-mask-${S}-to-color`, "transparent")
])), x.push(a(`--tw-mask-${S}-${g}-position`, C)));
return x;
}
});
}
k("mask-x-from", "from", {
top: !1,
right: !0,
bottom: !1,
left: !0
}), k("mask-x-to", "to", {
top: !1,
right: !0,
bottom: !1,
left: !0
}), k("mask-y-from", "from", {
top: !0,
right: !1,
bottom: !0,
left: !1
}), k("mask-y-to", "to", {
top: !0,
right: !1,
bottom: !0,
left: !1
}), k("mask-t-from", "from", {
top: !0,
right: !1,
bottom: !1,
left: !1
}), k("mask-t-to", "to", {
top: !0,
right: !1,
bottom: !1,
left: !1
}), k("mask-r-from", "from", {
top: !1,
right: !0,
bottom: !1,
left: !1
}), k("mask-r-to", "to", {
top: !1,
right: !0,
bottom: !1,
left: !1
}), k("mask-b-from", "from", {
top: !1,
right: !1,
bottom: !0,
left: !1
}), k("mask-b-to", "to", {
top: !1,
right: !1,
bottom: !0,
left: !1
}), k("mask-l-from", "from", {
top: !1,
right: !1,
bottom: !1,
left: !0
}), k("mask-l-to", "to", {
top: !1,
right: !1,
bottom: !1,
left: !0
});
let D = () => B([
$("--tw-mask-linear-position", "0deg"),
$("--tw-mask-linear-from-position", "0%"),
$("--tw-mask-linear-to-position", "100%"),
$("--tw-mask-linear-from-color", "black"),
$("--tw-mask-linear-to-color", "transparent")
]);
n("mask-linear", {
defaultValue: null,
supportsNegative: !0,
supportsFractions: !1,
handleBareValue(s) {
return u(s.value) ? `calc(1deg * ${s.value})` : null;
},
handleNegativeBareValue(s) {
return u(s.value) ? `calc(1deg * -${s.value})` : null;
},
handle: (s) => [
b(),
D(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear", "linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))"),
a("--tw-mask-linear-position", s)
]
}), i("mask-linear", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12",
"45",
"90",
"180"
]
}]), T("mask-linear-from", {
color: (s) => [
b(),
D(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear-stops", "var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)"),
a("--tw-mask-linear", "linear-gradient(var(--tw-mask-linear-stops))"),
a("--tw-mask-linear-from-color", s)
],
position: (s) => [
b(),
D(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear-stops", "var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)"),
a("--tw-mask-linear", "linear-gradient(var(--tw-mask-linear-stops))"),
a("--tw-mask-linear-from-position", s)
]
}), T("mask-linear-to", {
color: (s) => [
b(),
D(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear-stops", "var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)"),
a("--tw-mask-linear", "linear-gradient(var(--tw-mask-linear-stops))"),
a("--tw-mask-linear-to-color", s)
],
position: (s) => [
b(),
D(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-linear-stops", "var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position)"),
a("--tw-mask-linear", "linear-gradient(var(--tw-mask-linear-stops))"),
a("--tw-mask-linear-to-position", s)
]
});
let N = () => B([
$("--tw-mask-radial-from-position", "0%"),
$("--tw-mask-radial-to-position", "100%"),
$("--tw-mask-radial-from-color", "black"),
$("--tw-mask-radial-to-color", "transparent"),
$("--tw-mask-radial-shape", "ellipse"),
$("--tw-mask-radial-size", "farthest-corner"),
$("--tw-mask-radial-position", "center")
]);
e("mask-circle", [["--tw-mask-radial-shape", "circle"]]), e("mask-ellipse", [["--tw-mask-radial-shape", "ellipse"]]), e("mask-radial-closest-side", [["--tw-mask-radial-size", "closest-side"]]), e("mask-radial-farthest-side", [["--tw-mask-radial-size", "farthest-side"]]), e("mask-radial-closest-corner", [["--tw-mask-radial-size", "closest-corner"]]), e("mask-radial-farthest-corner", [["--tw-mask-radial-size", "farthest-corner"]]), e("mask-radial-at-top", [["--tw-mask-radial-position", "top"]]), e("mask-radial-at-top-left", [["--tw-mask-radial-position", "top left"]]), e("mask-radial-at-top-right", [["--tw-mask-radial-position", "top right"]]), e("mask-radial-at-bottom", [["--tw-mask-radial-position", "bottom"]]), e("mask-radial-at-bottom-left", [["--tw-mask-radial-position", "bottom left"]]), e("mask-radial-at-bottom-right", [["--tw-mask-radial-position", "bottom right"]]), e("mask-radial-at-left", [["--tw-mask-radial-position", "left"]]), e("mask-radial-at-right", [["--tw-mask-radial-position", "right"]]), e("mask-radial-at-center", [["--tw-mask-radial-position", "center"]]), n("mask-radial-at", {
defaultValue: null,
supportsNegative: !1,
supportsFractions: !1,
handle: (s) => [a("--tw-mask-radial-position", s)]
}), n("mask-radial", {
defaultValue: null,
supportsNegative: !1,
supportsFractions: !1,
handle: (s) => [
b(),
N(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-radial", "radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))"),
a("--tw-mask-radial-size", s)
]
}), T("mask-radial-from", {
color: (s) => [
b(),
N(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-radial-stops", "var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)"),
a("--tw-mask-radial", "radial-gradient(var(--tw-mask-radial-stops))"),
a("--tw-mask-radial-from-color", s)
],
position: (s) => [
b(),
N(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-radial-stops", "var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)"),
a("--tw-mask-radial", "radial-gradient(var(--tw-mask-radial-stops))"),
a("--tw-mask-radial-from-position", s)
]
}), T("mask-radial-to", {
color: (s) => [
b(),
N(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-radial-stops", "var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)"),
a("--tw-mask-radial", "radial-gradient(var(--tw-mask-radial-stops))"),
a("--tw-mask-radial-to-color", s)
],
position: (s) => [
b(),
N(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-radial-stops", "var(--tw-mask-radial-shape) var(--tw-mask-radial-size) at var(--tw-mask-radial-position), var(--tw-mask-radial-from-color) var(--tw-mask-radial-from-position), var(--tw-mask-radial-to-color) var(--tw-mask-radial-to-position)"),
a("--tw-mask-radial", "radial-gradient(var(--tw-mask-radial-stops))"),
a("--tw-mask-radial-to-position", s)
]
});
let E = () => B([
$("--tw-mask-conic-position", "0deg"),
$("--tw-mask-conic-from-position", "0%"),
$("--tw-mask-conic-to-position", "100%"),
$("--tw-mask-conic-from-color", "black"),
$("--tw-mask-conic-to-color", "transparent")
]);
n("mask-conic", {
defaultValue: null,
supportsNegative: !0,
supportsFractions: !1,
handleBareValue(s) {
return u(s.value) ? `calc(1deg * ${s.value})` : null;
},
handleNegativeBareValue(s) {
return u(s.value) ? `calc(1deg * -${s.value})` : null;
},
handle: (s) => [
b(),
E(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-conic", "conic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))"),
a("--tw-mask-conic-position", s)
]
}), i("mask-conic", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"3",
"6",
"12",
"45",
"90",
"180"
]
}]), T("mask-conic-from", {
color: (s) => [
b(),
E(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-conic-stops", "from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)"),
a("--tw-mask-conic", "conic-gradient(var(--tw-mask-conic-stops))"),
a("--tw-mask-conic-from-color", s)
],
position: (s) => [
b(),
E(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-conic-stops", "from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)"),
a("--tw-mask-conic", "conic-gradient(var(--tw-mask-conic-stops))"),
a("--tw-mask-conic-from-position", s)
]
}), T("mask-conic-to", {
color: (s) => [
b(),
E(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-conic-stops", "from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)"),
a("--tw-mask-conic", "conic-gradient(var(--tw-mask-conic-stops))"),
a("--tw-mask-conic-to-color", s)
],
position: (s) => [
b(),
E(),
a("mask-image", "var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)"),
a("mask-composite", "intersect"),
a("--tw-mask-conic-stops", "from var(--tw-mask-conic-position), var(--tw-mask-conic-from-color) var(--tw-mask-conic-from-position), var(--tw-mask-conic-to-color) var(--tw-mask-conic-to-position)"),
a("--tw-mask-conic", "conic-gradient(var(--tw-mask-conic-stops))"),
a("--tw-mask-conic-to-position", s)
]
}), e("box-decoration-slice", [["-webkit-box-decoration-break", "slice"], ["box-decoration-break", "slice"]]), e("box-decoration-clone", [["-webkit-box-decoration-break", "clone"], ["box-decoration-break", "clone"]]), e("bg-clip-text", [["background-clip", "text"]]), e("bg-clip-border", [["background-clip", "border-box"]]), e("bg-clip-padding", [["background-clip", "padding-box"]]), e("bg-clip-content", [["background-clip", "content-box"]]), e("bg-origin-border", [["background-origin", "border-box"]]), e("bg-origin-padding", [["background-origin", "padding-box"]]), e("bg-origin-content", [["background-origin", "content-box"]]);
for (let s of [
"normal",
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity"
]) e(`bg-blend-${s}`, [["background-blend-mode", s]]), e(`mix-blend-${s}`, [["mix-blend-mode", s]]);
e("mix-blend-plus-darker", [["mix-blend-mode", "plus-darker"]]), e("mix-blend-plus-lighter", [["mix-blend-mode", "plus-lighter"]]), e("fill-none", [["fill", "none"]]), r.functional("fill", (s) => {
if (!s.value) return;
if (s.value.kind === "arbitrary") {
let w = X(s.value.value, s.modifier, t);
return w === null ? void 0 : [a("fill", w)];
}
let g = re(s, t, ["--fill", "--color"]);
if (g) return [a("fill", g)];
}), i("fill", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--fill", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}]), e("stroke-none", [["stroke", "none"]]), r.functional("stroke", (s) => {
if (s.value) {
if (s.value.kind === "arbitrary") {
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"color",
"number",
"length",
"percentage"
])) {
case "number":
case "length":
case "percentage": return s.modifier ? void 0 : [a("stroke-width", g)];
default: return g = X(s.value.value, s.modifier, t), g === null ? void 0 : [a("stroke", g)];
}
}
{
let g = re(s, t, ["--stroke", "--color"]);
if (g) return [a("stroke", g)];
}
{
let g = t.resolve(s.value.value, ["--stroke-width"]);
if (g) return [a("stroke-width", g)];
if (u(s.value.value)) return [a("stroke-width", s.value.value)];
}
}
}), i("stroke", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--stroke", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}, {
values: [
"0",
"1",
"2",
"3"
],
valueThemeKeys: ["--stroke-width"]
}]), e("object-contain", [["object-fit", "contain"]]), e("object-cover", [["object-fit", "cover"]]), e("object-fill", [["object-fit", "fill"]]), e("object-none", [["object-fit", "none"]]), e("object-scale-down", [["object-fit", "scale-down"]]), n("object", {
themeKeys: ["--object-position"],
handle: (s) => [a("object-position", s)],
staticValues: {
top: [a("object-position", "top")],
"top-left": [a("object-position", "left top")],
"top-right": [a("object-position", "right top")],
bottom: [a("object-position", "bottom")],
"bottom-left": [a("object-position", "left bottom")],
"bottom-right": [a("object-position", "right bottom")],
left: [a("object-position", "left")],
right: [a("object-position", "right")],
center: [a("object-position", "center")]
}
});
for (let [s, g] of [
["p", "padding"],
["px", "padding-inline"],
["py", "padding-block"],
["ps", "padding-inline-start"],
["pe", "padding-inline-end"],
["pbs", "padding-block-start"],
["pbe", "padding-block-end"],
["pt", "padding-top"],
["pr", "padding-right"],
["pb", "padding-bottom"],
["pl", "padding-left"]
]) l(s, ["--padding", "--spacing"], (w) => [a(g, w)]);
e("text-left", [["text-align", "left"]]), e("text-center", [["text-align", "center"]]), e("text-right", [["text-align", "right"]]), e("text-justify", [["text-align", "justify"]]), e("text-start", [["text-align", "start"]]), e("text-end", [["text-align", "end"]]), l("indent", ["--text-indent", "--spacing"], (s) => [a("text-indent", s)], { supportsNegative: !0 }), e("align-baseline", [["vertical-align", "baseline"]]), e("align-top", [["vertical-align", "top"]]), e("align-middle", [["vertical-align", "middle"]]), e("align-bottom", [["vertical-align", "bottom"]]), e("align-text-top", [["vertical-align", "text-top"]]), e("align-text-bottom", [["vertical-align", "text-bottom"]]), e("align-sub", [["vertical-align", "sub"]]), e("align-super", [["vertical-align", "super"]]), n("align", {
themeKeys: [],
handle: (s) => [a("vertical-align", s)]
}), r.functional("font", (s) => {
if (!(!s.value || s.modifier)) {
if (s.value.kind === "arbitrary") {
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"number",
"generic-name",
"family-name"
])) {
case "generic-name":
case "family-name": return [a("font-family", g)];
default: return [
B([$("--tw-font-weight")]),
a("--tw-font-weight", g),
a("font-weight", g)
];
}
}
{
let g = t.resolveWith(s.value.value, ["--font"], ["--font-feature-settings", "--font-variation-settings"]);
if (g) {
let [w, C = {}] = g;
return [
a("font-family", w),
a("font-feature-settings", C["--font-feature-settings"]),
a("font-variation-settings", C["--font-variation-settings"])
];
}
}
{
let g = t.resolve(s.value.value, ["--font-weight"]);
if (g) return [
B([$("--tw-font-weight")]),
a("--tw-font-weight", g),
a("font-weight", g)
];
}
}
}), i("font", () => [{
values: [],
valueThemeKeys: ["--font"]
}, {
values: [],
valueThemeKeys: ["--font-weight"]
}]), n("font-features", {
themeKeys: [],
handle: (s) => [a("font-feature-settings", s)]
}), e("uppercase", [["text-transform", "uppercase"]]), e("lowercase", [["text-transform", "lowercase"]]), e("capitalize", [["text-transform", "capitalize"]]), e("normal-case", [["text-transform", "none"]]), e("italic", [["font-style", "italic"]]), e("not-italic", [["font-style", "normal"]]), e("underline", [["text-decoration-line", "underline"]]), e("overline", [["text-decoration-line", "overline"]]), e("line-through", [["text-decoration-line", "line-through"]]), e("no-underline", [["text-decoration-line", "none"]]), e("font-stretch-normal", [["font-stretch", "normal"]]), e("font-stretch-ultra-condensed", [["font-stretch", "ultra-condensed"]]), e("font-stretch-extra-condensed", [["font-stretch", "extra-condensed"]]), e("font-stretch-condensed", [["font-stretch", "condensed"]]), e("font-stretch-semi-condensed", [["font-stretch", "semi-condensed"]]), e("font-stretch-semi-expanded", [["font-stretch", "semi-expanded"]]), e("font-stretch-expanded", [["font-stretch", "expanded"]]), e("font-stretch-extra-expanded", [["font-stretch", "extra-expanded"]]), e("font-stretch-ultra-expanded", [["font-stretch", "ultra-expanded"]]), n("font-stretch", {
handleBareValue: ({ value: s }) => {
if (!s.endsWith("%")) return null;
let g = Number(s.slice(0, -1));
return !u(g) || Number.isNaN(g) || g < 50 || g > 200 ? null : s;
},
handle: (s) => [a("font-stretch", s)]
}), i("font-stretch", () => [{ values: [
"50%",
"75%",
"90%",
"95%",
"100%",
"105%",
"110%",
"125%",
"150%",
"200%"
] }]), o("placeholder", {
themeKeys: ["--placeholder-color", "--color"],
handle: (s) => [q("&::placeholder", [a("--tw-sort", "placeholder-color"), a("color", s)])]
}), e("decoration-solid", [["text-decoration-style", "solid"]]), e("decoration-double", [["text-decoration-style", "double"]]), e("decoration-dotted", [["text-decoration-style", "dotted"]]), e("decoration-dashed", [["text-decoration-style", "dashed"]]), e("decoration-wavy", [["text-decoration-style", "wavy"]]), e("decoration-auto", [["text-decoration-thickness", "auto"]]), e("decoration-from-font", [["text-decoration-thickness", "from-font"]]), r.functional("decoration", (s) => {
if (s.value) {
if (s.value.kind === "arbitrary") {
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"color",
"length",
"percentage"
])) {
case "length":
case "percentage": return s.modifier ? void 0 : [a("text-decoration-thickness", g)];
default: return g = X(g, s.modifier, t), g === null ? void 0 : [a("text-decoration-color", g)];
}
}
{
let g = t.resolve(s.value.value, ["--text-decoration-thickness"]);
if (g) return s.modifier ? void 0 : [a("text-decoration-thickness", g)];
if (u(s.value.value)) return s.modifier ? void 0 : [a("text-decoration-thickness", `${s.value.value}px`)];
}
{
let g = re(s, t, ["--text-decoration-color", "--color"]);
if (g) return [a("text-decoration-color", g)];
}
}
}), i("decoration", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--text-decoration-color", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}, {
values: [
"0",
"1",
"2"
],
valueThemeKeys: ["--text-decoration-thickness"]
}]), n("animate", {
themeKeys: ["--animate"],
handle: (s) => [a("animation", s)],
staticValues: { none: [a("animation", "none")] }
});
{
let s = [
"var(--tw-blur,)",
"var(--tw-brightness,)",
"var(--tw-contrast,)",
"var(--tw-grayscale,)",
"var(--tw-hue-rotate,)",
"var(--tw-invert,)",
"var(--tw-saturate,)",
"var(--tw-sepia,)",
"var(--tw-drop-shadow,)"
].join(" "), g = [
"var(--tw-backdrop-blur,)",
"var(--tw-backdrop-brightness,)",
"var(--tw-backdrop-contrast,)",
"var(--tw-backdrop-grayscale,)",
"var(--tw-backdrop-hue-rotate,)",
"var(--tw-backdrop-invert,)",
"var(--tw-backdrop-opacity,)",
"var(--tw-backdrop-saturate,)",
"var(--tw-backdrop-sepia,)"
].join(" "), w = () => B([
$("--tw-blur"),
$("--tw-brightness"),
$("--tw-contrast"),
$("--tw-grayscale"),
$("--tw-hue-rotate"),
$("--tw-invert"),
$("--tw-opacity"),
$("--tw-saturate"),
$("--tw-sepia"),
$("--tw-drop-shadow"),
$("--tw-drop-shadow-color"),
$("--tw-drop-shadow-alpha", "100%", "<percentage>"),
$("--tw-drop-shadow-size")
]), C = () => B([
$("--tw-backdrop-blur"),
$("--tw-backdrop-brightness"),
$("--tw-backdrop-contrast"),
$("--tw-backdrop-grayscale"),
$("--tw-backdrop-hue-rotate"),
$("--tw-backdrop-invert"),
$("--tw-backdrop-opacity"),
$("--tw-backdrop-saturate"),
$("--tw-backdrop-sepia")
]);
r.functional("filter", (x) => {
if (!x.modifier) {
if (x.value === null) return [w(), a("filter", s)];
if (x.value.kind === "arbitrary") return [a("filter", x.value.value)];
switch (x.value.value) {
case "none": return [a("filter", "none")];
}
}
}), r.functional("backdrop-filter", (x) => {
if (!x.modifier) {
if (x.value === null) return [
C(),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
];
if (x.value.kind === "arbitrary") return [a("-webkit-backdrop-filter", x.value.value), a("backdrop-filter", x.value.value)];
switch (x.value.value) {
case "none": return [a("-webkit-backdrop-filter", "none"), a("backdrop-filter", "none")];
}
}
}), n("blur", {
themeKeys: ["--blur"],
handle: (x) => [
w(),
a("--tw-blur", `blur(${x})`),
a("filter", s)
],
staticValues: { none: [
w(),
a("--tw-blur", " "),
a("filter", s)
] }
}), n("backdrop-blur", {
themeKeys: ["--backdrop-blur", "--blur"],
handle: (x) => [
C(),
a("--tw-backdrop-blur", `blur(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
],
staticValues: { none: [
C(),
a("--tw-backdrop-blur", " "),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
] }
}), n("brightness", {
themeKeys: ["--brightness"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
w(),
a("--tw-brightness", `brightness(${x})`),
a("filter", s)
]
}), n("backdrop-brightness", {
themeKeys: ["--backdrop-brightness", "--brightness"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
C(),
a("--tw-backdrop-brightness", `brightness(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("brightness", () => [{
values: [
"0",
"50",
"75",
"90",
"95",
"100",
"105",
"110",
"125",
"150",
"200"
],
valueThemeKeys: ["--brightness"]
}]), i("backdrop-brightness", () => [{
values: [
"0",
"50",
"75",
"90",
"95",
"100",
"105",
"110",
"125",
"150",
"200"
],
valueThemeKeys: ["--backdrop-brightness", "--brightness"]
}]), n("contrast", {
themeKeys: ["--contrast"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
w(),
a("--tw-contrast", `contrast(${x})`),
a("filter", s)
]
}), n("backdrop-contrast", {
themeKeys: ["--backdrop-contrast", "--contrast"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
C(),
a("--tw-backdrop-contrast", `contrast(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("contrast", () => [{
values: [
"0",
"50",
"75",
"100",
"125",
"150",
"200"
],
valueThemeKeys: ["--contrast"]
}]), i("backdrop-contrast", () => [{
values: [
"0",
"50",
"75",
"100",
"125",
"150",
"200"
],
valueThemeKeys: ["--backdrop-contrast", "--contrast"]
}]), n("grayscale", {
themeKeys: ["--grayscale"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
w(),
a("--tw-grayscale", `grayscale(${x})`),
a("filter", s)
]
}), n("backdrop-grayscale", {
themeKeys: ["--backdrop-grayscale", "--grayscale"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
C(),
a("--tw-backdrop-grayscale", `grayscale(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("grayscale", () => [{
values: [
"0",
"25",
"50",
"75",
"100"
],
valueThemeKeys: ["--grayscale"],
hasDefaultValue: !0
}]), i("backdrop-grayscale", () => [{
values: [
"0",
"25",
"50",
"75",
"100"
],
valueThemeKeys: ["--backdrop-grayscale", "--grayscale"],
hasDefaultValue: !0
}]), n("hue-rotate", {
supportsNegative: !0,
themeKeys: ["--hue-rotate"],
handleBareValue: ({ value: x }) => u(x) ? `${x}deg` : null,
handle: (x) => [
w(),
a("--tw-hue-rotate", `hue-rotate(${x})`),
a("filter", s)
]
}), n("backdrop-hue-rotate", {
supportsNegative: !0,
themeKeys: ["--backdrop-hue-rotate", "--hue-rotate"],
handleBareValue: ({ value: x }) => u(x) ? `${x}deg` : null,
handle: (x) => [
C(),
a("--tw-backdrop-hue-rotate", `hue-rotate(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("hue-rotate", () => [{
values: [
"0",
"15",
"30",
"60",
"90",
"180"
],
valueThemeKeys: ["--hue-rotate"]
}]), i("backdrop-hue-rotate", () => [{
values: [
"0",
"15",
"30",
"60",
"90",
"180"
],
valueThemeKeys: ["--backdrop-hue-rotate", "--hue-rotate"]
}]), n("invert", {
themeKeys: ["--invert"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
w(),
a("--tw-invert", `invert(${x})`),
a("filter", s)
]
}), n("backdrop-invert", {
themeKeys: ["--backdrop-invert", "--invert"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
C(),
a("--tw-backdrop-invert", `invert(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("invert", () => [{
values: [
"0",
"25",
"50",
"75",
"100"
],
valueThemeKeys: ["--invert"],
hasDefaultValue: !0
}]), i("backdrop-invert", () => [{
values: [
"0",
"25",
"50",
"75",
"100"
],
valueThemeKeys: ["--backdrop-invert", "--invert"],
hasDefaultValue: !0
}]), n("saturate", {
themeKeys: ["--saturate"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
w(),
a("--tw-saturate", `saturate(${x})`),
a("filter", s)
]
}), n("backdrop-saturate", {
themeKeys: ["--backdrop-saturate", "--saturate"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
handle: (x) => [
C(),
a("--tw-backdrop-saturate", `saturate(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("saturate", () => [{
values: [
"0",
"50",
"100",
"150",
"200"
],
valueThemeKeys: ["--saturate"]
}]), i("backdrop-saturate", () => [{
values: [
"0",
"50",
"100",
"150",
"200"
],
valueThemeKeys: ["--backdrop-saturate", "--saturate"]
}]), n("sepia", {
themeKeys: ["--sepia"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
w(),
a("--tw-sepia", `sepia(${x})`),
a("filter", s)
]
}), n("backdrop-sepia", {
themeKeys: ["--backdrop-sepia", "--sepia"],
handleBareValue: ({ value: x }) => u(x) ? `${x}%` : null,
defaultValue: "100%",
handle: (x) => [
C(),
a("--tw-backdrop-sepia", `sepia(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("sepia", () => [{
values: [
"0",
"50",
"100"
],
valueThemeKeys: ["--sepia"],
hasDefaultValue: !0
}]), i("backdrop-sepia", () => [{
values: [
"0",
"50",
"100"
],
valueThemeKeys: ["--backdrop-sepia", "--sepia"],
hasDefaultValue: !0
}]), e("drop-shadow-none", [
w,
["--tw-drop-shadow", " "],
["filter", s]
]), r.functional("drop-shadow", (x) => {
let S;
if (x.modifier && (x.modifier.kind === "arbitrary" ? S = x.modifier.value : u(x.modifier.value) && (S = `${x.modifier.value}%`)), !x.value) {
let K = t.get(["--drop-shadow"]), V = t.resolve(null, ["--drop-shadow"]);
return K === null || V === null ? void 0 : [
w(),
a("--tw-drop-shadow-alpha", S),
...mt("--tw-drop-shadow-size", K, S, (O) => `var(--tw-drop-shadow-color, ${O})`),
a("--tw-drop-shadow", d(V, ",").map((O) => `drop-shadow(${O})`).join(" ")),
a("filter", s)
];
}
if (x.value.kind === "arbitrary") {
let K = x.value.value;
switch (x.value.dataType ?? me(K, ["color"])) {
case "color": return K = X(K, x.modifier, t), K === null ? void 0 : [
w(),
a("--tw-drop-shadow-color", Q(K, "var(--tw-drop-shadow-alpha)")),
a("--tw-drop-shadow", "var(--tw-drop-shadow-size)")
];
default: return x.modifier && !S ? void 0 : [
w(),
a("--tw-drop-shadow-alpha", S),
...mt("--tw-drop-shadow-size", K, S, (O) => `var(--tw-drop-shadow-color, ${O})`),
a("--tw-drop-shadow", "var(--tw-drop-shadow-size)"),
a("filter", s)
];
}
}
{
let K = t.get([`--drop-shadow-${x.value.value}`]), V = t.resolve(x.value.value, ["--drop-shadow"]);
if (K && V) return x.modifier && !S ? void 0 : S ? [
w(),
a("--tw-drop-shadow-alpha", S),
...mt("--tw-drop-shadow-size", K, S, (O) => `var(--tw-drop-shadow-color, ${O})`),
a("--tw-drop-shadow", "var(--tw-drop-shadow-size)"),
a("filter", s)
] : [
w(),
a("--tw-drop-shadow-alpha", S),
...mt("--tw-drop-shadow-size", K, S, (O) => `var(--tw-drop-shadow-color, ${O})`),
a("--tw-drop-shadow", d(V, ",").map((O) => `drop-shadow(${O})`).join(" ")),
a("filter", s)
];
}
{
let K = re(x, t, ["--drop-shadow-color", "--color"]);
if (K) return K === "inherit" ? [
w(),
a("--tw-drop-shadow-color", "inherit"),
a("--tw-drop-shadow", "var(--tw-drop-shadow-size)")
] : [
w(),
a("--tw-drop-shadow-color", Q(K, "var(--tw-drop-shadow-alpha)")),
a("--tw-drop-shadow", "var(--tw-drop-shadow-size)")
];
}
}), i("drop-shadow", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--drop-shadow-color", "--color"],
modifiers: Array.from({ length: 21 }, (x, S) => `${S * 5}`)
}, { valueThemeKeys: ["--drop-shadow"] }]), n("backdrop-opacity", {
themeKeys: ["--backdrop-opacity", "--opacity"],
handleBareValue: ({ value: x }) => ue(x) ? `${x}%` : null,
handle: (x) => [
C(),
a("--tw-backdrop-opacity", `opacity(${x})`),
a("-webkit-backdrop-filter", g),
a("backdrop-filter", g)
]
}), i("backdrop-opacity", () => [{
values: Array.from({ length: 21 }, (x, S) => `${S * 5}`),
valueThemeKeys: ["--backdrop-opacity", "--opacity"]
}]);
}
{
let s = `var(--tw-ease, ${t.resolve(null, ["--default-transition-timing-function"]) ?? "ease"})`, g = `var(--tw-duration, ${t.resolve(null, ["--default-transition-duration"]) ?? "0s"})`;
n("transition", {
defaultValue: "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events",
themeKeys: ["--transition-property"],
handle: (w) => [
a("transition-property", w),
a("transition-timing-function", s),
a("transition-duration", g)
],
staticValues: {
none: [a("transition-property", "none")],
all: [
a("transition-property", "all"),
a("transition-timing-function", s),
a("transition-duration", g)
],
colors: [
a("transition-property", "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to"),
a("transition-timing-function", s),
a("transition-duration", g)
],
opacity: [
a("transition-property", "opacity"),
a("transition-timing-function", s),
a("transition-duration", g)
],
shadow: [
a("transition-property", "box-shadow"),
a("transition-timing-function", s),
a("transition-duration", g)
],
transform: [
a("transition-property", "transform, translate, scale, rotate"),
a("transition-timing-function", s),
a("transition-duration", g)
]
}
}), e("transition-discrete", [["transition-behavior", "allow-discrete"]]), e("transition-normal", [["transition-behavior", "normal"]]), n("delay", {
handleBareValue: ({ value: w }) => u(w) ? `${w}ms` : null,
themeKeys: ["--transition-delay"],
handle: (w) => [a("transition-delay", w)]
});
{
let w = () => B([$("--tw-duration")]);
e("duration-initial", [w, ["--tw-duration", "initial"]]), r.functional("duration", (C) => {
if (C.modifier || !C.value) return;
let x = null;
if (C.value.kind === "arbitrary" ? x = C.value.value : (x = t.resolve(C.value.fraction ?? C.value.value, ["--transition-duration"]), x === null && u(C.value.value) && (x = `${C.value.value}ms`)), x !== null) return [
w(),
a("--tw-duration", x),
a("transition-duration", x)
];
});
}
i("delay", () => [{
values: [
"75",
"100",
"150",
"200",
"300",
"500",
"700",
"1000"
],
valueThemeKeys: ["--transition-delay"]
}]), i("duration", () => [{
values: [
"75",
"100",
"150",
"200",
"300",
"500",
"700",
"1000"
],
valueThemeKeys: ["--transition-duration"]
}]);
}
{
let s = () => B([$("--tw-ease")]);
n("ease", {
themeKeys: ["--ease"],
handle: (g) => [
s(),
a("--tw-ease", g),
a("transition-timing-function", g)
],
staticValues: {
initial: [s(), a("--tw-ease", "initial")],
linear: [
s(),
a("--tw-ease", "linear"),
a("transition-timing-function", "linear")
]
}
});
}
e("will-change-auto", [["will-change", "auto"]]), e("will-change-scroll", [["will-change", "scroll-position"]]), e("will-change-contents", [["will-change", "contents"]]), e("will-change-transform", [["will-change", "transform"]]), n("will-change", {
themeKeys: [],
handle: (s) => [a("will-change", s)]
}), e("content-none", [["--tw-content", "none"], ["content", "none"]]), n("content", {
themeKeys: ["--content"],
handle: (s) => [
B([$("--tw-content", "\"\"")]),
a("--tw-content", s),
a("content", "var(--tw-content)")
]
});
{
let s = "var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)", g = () => B([
$("--tw-contain-size"),
$("--tw-contain-layout"),
$("--tw-contain-paint"),
$("--tw-contain-style")
]);
e("contain-none", [["contain", "none"]]), e("contain-content", [["contain", "content"]]), e("contain-strict", [["contain", "strict"]]), e("contain-size", [
g,
["--tw-contain-size", "size"],
["contain", s]
]), e("contain-inline-size", [
g,
["--tw-contain-size", "inline-size"],
["contain", s]
]), e("contain-layout", [
g,
["--tw-contain-layout", "layout"],
["contain", s]
]), e("contain-paint", [
g,
["--tw-contain-paint", "paint"],
["contain", s]
]), e("contain-style", [
g,
["--tw-contain-style", "style"],
["contain", s]
]), n("contain", {
themeKeys: [],
handle: (w) => [a("contain", w)]
});
}
e("forced-color-adjust-none", [["forced-color-adjust", "none"]]), e("forced-color-adjust-auto", [["forced-color-adjust", "auto"]]), l("leading", ["--leading", "--spacing"], (s) => [
B([$("--tw-leading")]),
a("--tw-leading", s),
a("line-height", s)
], { staticValues: { none: [
B([$("--tw-leading")]),
a("--tw-leading", "1"),
a("line-height", "1")
] } }), n("tracking", {
supportsNegative: !0,
themeKeys: ["--tracking"],
handle: (s) => [
B([$("--tw-tracking")]),
a("--tw-tracking", s),
a("letter-spacing", s)
]
}), e("antialiased", [["-webkit-font-smoothing", "antialiased"], ["-moz-osx-font-smoothing", "grayscale"]]), e("subpixel-antialiased", [["-webkit-font-smoothing", "auto"], ["-moz-osx-font-smoothing", "auto"]]);
{
let s = "var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)", g = () => B([
$("--tw-ordinal"),
$("--tw-slashed-zero"),
$("--tw-numeric-figure"),
$("--tw-numeric-spacing"),
$("--tw-numeric-fraction")
]);
e("normal-nums", [["font-variant-numeric", "normal"]]), e("ordinal", [
g,
["--tw-ordinal", "ordinal"],
["font-variant-numeric", s]
]), e("slashed-zero", [
g,
["--tw-slashed-zero", "slashed-zero"],
["font-variant-numeric", s]
]), e("lining-nums", [
g,
["--tw-numeric-figure", "lining-nums"],
["font-variant-numeric", s]
]), e("oldstyle-nums", [
g,
["--tw-numeric-figure", "oldstyle-nums"],
["font-variant-numeric", s]
]), e("proportional-nums", [
g,
["--tw-numeric-spacing", "proportional-nums"],
["font-variant-numeric", s]
]), e("tabular-nums", [
g,
["--tw-numeric-spacing", "tabular-nums"],
["font-variant-numeric", s]
]), e("diagonal-fractions", [
g,
["--tw-numeric-fraction", "diagonal-fractions"],
["font-variant-numeric", s]
]), e("stacked-fractions", [
g,
["--tw-numeric-fraction", "stacked-fractions"],
["font-variant-numeric", s]
]);
}
{
let s = () => B([$("--tw-outline-style", "solid")]);
r.static("outline-hidden", () => [
a("--tw-outline-style", "none"),
a("outline-style", "none"),
W("@media", "(forced-colors: active)", [a("outline", "2px solid transparent"), a("outline-offset", "2px")])
]), e("outline-none", [["--tw-outline-style", "none"], ["outline-style", "none"]]), e("outline-solid", [["--tw-outline-style", "solid"], ["outline-style", "solid"]]), e("outline-dashed", [["--tw-outline-style", "dashed"], ["outline-style", "dashed"]]), e("outline-dotted", [["--tw-outline-style", "dotted"], ["outline-style", "dotted"]]), e("outline-double", [["--tw-outline-style", "double"], ["outline-style", "double"]]), r.functional("outline", (g) => {
if (g.value === null) {
if (g.modifier) return;
let w = t.get(["--default-outline-width"]) ?? "1px";
return [
s(),
a("outline-style", "var(--tw-outline-style)"),
a("outline-width", w)
];
}
if (g.value.kind === "arbitrary") {
let w = g.value.value;
switch (g.value.dataType ?? me(w, [
"color",
"length",
"number",
"percentage"
])) {
case "length":
case "number":
case "percentage": return g.modifier ? void 0 : [
s(),
a("outline-style", "var(--tw-outline-style)"),
a("outline-width", w)
];
default: return w = X(w, g.modifier, t), w === null ? void 0 : [a("outline-color", w)];
}
}
{
let w = re(g, t, ["--outline-color", "--color"]);
if (w) return [a("outline-color", w)];
}
{
if (g.modifier) return;
let w = t.resolve(g.value.value, ["--outline-width"]);
if (w) return [
s(),
a("outline-style", "var(--tw-outline-style)"),
a("outline-width", w)
];
if (u(g.value.value)) return [
s(),
a("outline-style", "var(--tw-outline-style)"),
a("outline-width", `${g.value.value}px`)
];
}
}), i("outline", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--outline-color", "--color"],
modifiers: Array.from({ length: 21 }, (g, w) => `${w * 5}`),
hasDefaultValue: !0
}, {
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--outline-width"]
}]), n("outline-offset", {
supportsNegative: !0,
themeKeys: ["--outline-offset"],
handleBareValue: ({ value: g }) => u(g) ? `${g}px` : null,
handle: (g) => [a("outline-offset", g)]
}), i("outline-offset", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--outline-offset"]
}]);
}
n("opacity", {
themeKeys: ["--opacity"],
handleBareValue: ({ value: s }) => ue(s) ? `${s}%` : null,
handle: (s) => [a("opacity", s)]
}), i("opacity", () => [{
values: Array.from({ length: 21 }, (s, g) => `${g * 5}`),
valueThemeKeys: ["--opacity"]
}]), n("underline-offset", {
supportsNegative: !0,
themeKeys: ["--text-underline-offset"],
handleBareValue: ({ value: s }) => u(s) ? `${s}px` : null,
handle: (s) => [a("text-underline-offset", s)],
staticValues: { auto: [a("text-underline-offset", "auto")] }
}), i("underline-offset", () => [{
supportsNegative: !0,
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--text-underline-offset"]
}]), r.functional("text", (s) => {
if (s.value) {
if (s.value.kind === "arbitrary") {
let g = s.value.value;
switch (s.value.dataType ?? me(g, [
"color",
"length",
"percentage",
"absolute-size",
"relative-size"
])) {
case "size":
case "length":
case "percentage":
case "absolute-size":
case "relative-size":
if (s.modifier) {
let C = s.modifier.kind === "arbitrary" ? s.modifier.value : t.resolve(s.modifier.value, ["--leading"]);
if (!C && ge$1(s.modifier.value)) {
let x = t.resolve(null, ["--spacing"]);
if (!x) return null;
C = `calc(${x} * ${s.modifier.value})`;
}
return !C && s.modifier.value === "none" && (C = "1"), C ? [a("font-size", g), a("line-height", C)] : null;
}
return [a("font-size", g)];
default: return g = X(g, s.modifier, t), g === null ? void 0 : [a("color", g)];
}
}
{
let g = re(s, t, ["--text-color", "--color"]);
if (g) return [a("color", g)];
}
{
let g = t.resolveWith(s.value.value, ["--text"], [
"--line-height",
"--letter-spacing",
"--font-weight"
]);
if (g) {
let [w, C = {}] = Array.isArray(g) ? g : [g];
if (s.modifier) {
let x = s.modifier.kind === "arbitrary" ? s.modifier.value : t.resolve(s.modifier.value, ["--leading"]);
if (!x && ge$1(s.modifier.value)) {
let K = t.resolve(null, ["--spacing"]);
if (!K) return null;
x = `calc(${K} * ${s.modifier.value})`;
}
if (!x && s.modifier.value === "none" && (x = "1"), !x) return null;
let S = [a("font-size", w)];
return x && S.push(a("line-height", x)), S;
}
return typeof C == "string" ? [a("font-size", w), a("line-height", C)] : [
a("font-size", w),
a("line-height", C["--line-height"] ? `var(--tw-leading, ${C["--line-height"]})` : void 0),
a("letter-spacing", C["--letter-spacing"] ? `var(--tw-tracking, ${C["--letter-spacing"]})` : void 0),
a("font-weight", C["--font-weight"] ? `var(--tw-font-weight, ${C["--font-weight"]})` : void 0)
];
}
}
}
}), i("text", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--text-color", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}, {
values: [],
valueThemeKeys: ["--text"],
modifiers: [],
modifierThemeKeys: ["--leading"]
}]);
let U = () => B([$("--tw-text-shadow-color"), $("--tw-text-shadow-alpha", "100%", "<percentage>")]);
e("text-shadow-initial", [U, ["--tw-text-shadow-color", "initial"]]), r.functional("text-shadow", (s) => {
let g;
if (s.modifier && (s.modifier.kind === "arbitrary" ? g = s.modifier.value : u(s.modifier.value) && (g = `${s.modifier.value}%`)), !s.value) {
let w = t.get(["--text-shadow"]);
return w === null ? void 0 : [
U(),
a("--tw-text-shadow-alpha", g),
...be("text-shadow", w, g, (C) => `var(--tw-text-shadow-color, ${C})`)
];
}
if (s.value.kind === "arbitrary") {
let w = s.value.value;
switch (s.value.dataType ?? me(w, ["color"])) {
case "color": return w = X(w, s.modifier, t), w === null ? void 0 : [U(), a("--tw-text-shadow-color", Q(w, "var(--tw-text-shadow-alpha)"))];
default: return [
U(),
a("--tw-text-shadow-alpha", g),
...be("text-shadow", w, g, (x) => `var(--tw-text-shadow-color, ${x})`)
];
}
}
switch (s.value.value) {
case "none": return s.modifier ? void 0 : [U(), a("text-shadow", "none")];
case "inherit": return s.modifier ? void 0 : [U(), a("--tw-text-shadow-color", "inherit")];
}
{
let w = t.get([`--text-shadow-${s.value.value}`]);
if (w) return [
U(),
a("--tw-text-shadow-alpha", g),
...be("text-shadow", w, g, (C) => `var(--tw-text-shadow-color, ${C})`)
];
}
{
let w = re(s, t, ["--text-shadow-color", "--color"]);
if (w) return [U(), a("--tw-text-shadow-color", Q(w, "var(--tw-text-shadow-alpha)"))];
}
}), i("text-shadow", () => [
{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--text-shadow-color", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
},
{ values: ["none"] },
{
valueThemeKeys: ["--text-shadow"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`),
hasDefaultValue: t.get(["--text-shadow"]) !== null
}
]);
{
let x = function(V) {
return `var(--tw-ring-inset,) 0 0 0 calc(${V} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${C})`;
}, S = function(V) {
return `inset 0 0 0 ${V} var(--tw-inset-ring-color, currentcolor)`;
};
let s = [
"var(--tw-inset-shadow)",
"var(--tw-inset-ring-shadow)",
"var(--tw-ring-offset-shadow)",
"var(--tw-ring-shadow)",
"var(--tw-shadow)"
].join(", "), g = "0 0 #0000", w = () => B([
$("--tw-shadow", g),
$("--tw-shadow-color"),
$("--tw-shadow-alpha", "100%", "<percentage>"),
$("--tw-inset-shadow", g),
$("--tw-inset-shadow-color"),
$("--tw-inset-shadow-alpha", "100%", "<percentage>"),
$("--tw-ring-color"),
$("--tw-ring-shadow", g),
$("--tw-inset-ring-color"),
$("--tw-inset-ring-shadow", g),
$("--tw-ring-inset"),
$("--tw-ring-offset-width", "0px", "<length>"),
$("--tw-ring-offset-color", "#fff"),
$("--tw-ring-offset-shadow", g)
]);
e("shadow-initial", [w, ["--tw-shadow-color", "initial"]]), r.functional("shadow", (V) => {
let O;
if (V.modifier && (V.modifier.kind === "arbitrary" ? O = V.modifier.value : u(V.modifier.value) && (O = `${V.modifier.value}%`)), !V.value) {
let M = t.get(["--shadow"]);
return M === null ? void 0 : [
w(),
a("--tw-shadow-alpha", O),
...be("--tw-shadow", M, O, (de) => `var(--tw-shadow-color, ${de})`),
a("box-shadow", s)
];
}
if (V.value.kind === "arbitrary") {
let M = V.value.value;
switch (V.value.dataType ?? me(M, ["color"])) {
case "color": return M = X(M, V.modifier, t), M === null ? void 0 : [w(), a("--tw-shadow-color", Q(M, "var(--tw-shadow-alpha)"))];
default: return [
w(),
a("--tw-shadow-alpha", O),
...be("--tw-shadow", M, O, (Tt) => `var(--tw-shadow-color, ${Tt})`),
a("box-shadow", s)
];
}
}
switch (V.value.value) {
case "none": return V.modifier ? void 0 : [
w(),
a("--tw-shadow", g),
a("box-shadow", s)
];
case "inherit": return V.modifier ? void 0 : [w(), a("--tw-shadow-color", "inherit")];
}
{
let M = t.get([`--shadow-${V.value.value}`]);
if (M) return [
w(),
a("--tw-shadow-alpha", O),
...be("--tw-shadow", M, O, (de) => `var(--tw-shadow-color, ${de})`),
a("box-shadow", s)
];
}
{
let M = re(V, t, ["--box-shadow-color", "--color"]);
if (M) return [w(), a("--tw-shadow-color", Q(M, "var(--tw-shadow-alpha)"))];
}
}), i("shadow", () => [
{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--box-shadow-color", "--color"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`)
},
{ values: ["none"] },
{
valueThemeKeys: ["--shadow"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`),
hasDefaultValue: t.get(["--shadow"]) !== null
}
]), e("inset-shadow-initial", [w, ["--tw-inset-shadow-color", "initial"]]), r.functional("inset-shadow", (V) => {
let O;
if (V.modifier && (V.modifier.kind === "arbitrary" ? O = V.modifier.value : u(V.modifier.value) && (O = `${V.modifier.value}%`)), !V.value) {
let M = t.get(["--inset-shadow"]);
return M === null ? void 0 : [
w(),
a("--tw-inset-shadow-alpha", O),
...be("--tw-inset-shadow", M, O, (de) => `var(--tw-inset-shadow-color, ${de})`),
a("box-shadow", s)
];
}
if (V.value.kind === "arbitrary") {
let M = V.value.value;
switch (V.value.dataType ?? me(M, ["color"])) {
case "color": return M = X(M, V.modifier, t), M === null ? void 0 : [w(), a("--tw-inset-shadow-color", Q(M, "var(--tw-inset-shadow-alpha)"))];
default: return [
w(),
a("--tw-inset-shadow-alpha", O),
...be("--tw-inset-shadow", M, O, (Tt) => `var(--tw-inset-shadow-color, ${Tt})`, "inset"),
a("box-shadow", s)
];
}
}
switch (V.value.value) {
case "none": return V.modifier ? void 0 : [
w(),
a("--tw-inset-shadow", g),
a("box-shadow", s)
];
case "inherit": return V.modifier ? void 0 : [w(), a("--tw-inset-shadow-color", "inherit")];
}
{
let M = t.get([`--inset-shadow-${V.value.value}`]);
if (M) return [
w(),
a("--tw-inset-shadow-alpha", O),
...be("--tw-inset-shadow", M, O, (de) => `var(--tw-inset-shadow-color, ${de})`),
a("box-shadow", s)
];
}
{
let M = re(V, t, ["--box-shadow-color", "--color"]);
if (M) return [w(), a("--tw-inset-shadow-color", Q(M, "var(--tw-inset-shadow-alpha)"))];
}
}), i("inset-shadow", () => [
{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--box-shadow-color", "--color"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`)
},
{ values: ["none"] },
{
valueThemeKeys: ["--inset-shadow"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`),
hasDefaultValue: t.get(["--inset-shadow"]) !== null
}
]), e("ring-inset", [w, ["--tw-ring-inset", "inset"]]);
let C = t.get(["--default-ring-color"]) ?? "currentcolor";
r.functional("ring", (V) => {
if (!V.value) {
if (V.modifier) return;
let O = t.get(["--default-ring-width"]) ?? "1px";
return [
w(),
a("--tw-ring-shadow", x(O)),
a("box-shadow", s)
];
}
if (V.value.kind === "arbitrary") {
let O = V.value.value;
switch (V.value.dataType ?? me(O, ["color", "length"])) {
case "length": return V.modifier ? void 0 : [
w(),
a("--tw-ring-shadow", x(O)),
a("box-shadow", s)
];
default: return O = X(O, V.modifier, t), O === null ? void 0 : [a("--tw-ring-color", O)];
}
}
{
let O = re(V, t, ["--ring-color", "--color"]);
if (O) return [a("--tw-ring-color", O)];
}
{
if (V.modifier) return;
let O = t.resolve(V.value.value, ["--ring-width"]);
if (O === null && u(V.value.value) && (O = `${V.value.value}px`), O) return [
w(),
a("--tw-ring-shadow", x(O)),
a("box-shadow", s)
];
}
}), i("ring", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--ring-color", "--color"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`)
}, {
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--ring-width"],
hasDefaultValue: !0
}]), r.functional("inset-ring", (V) => {
if (!V.value) return V.modifier ? void 0 : [
w(),
a("--tw-inset-ring-shadow", S("1px")),
a("box-shadow", s)
];
if (V.value.kind === "arbitrary") {
let O = V.value.value;
switch (V.value.dataType ?? me(O, ["color", "length"])) {
case "length": return V.modifier ? void 0 : [
w(),
a("--tw-inset-ring-shadow", S(O)),
a("box-shadow", s)
];
default: return O = X(O, V.modifier, t), O === null ? void 0 : [a("--tw-inset-ring-color", O)];
}
}
{
let O = re(V, t, ["--ring-color", "--color"]);
if (O) return [a("--tw-inset-ring-color", O)];
}
{
if (V.modifier) return;
let O = t.resolve(V.value.value, ["--ring-width"]);
if (O === null && u(V.value.value) && (O = `${V.value.value}px`), O) return [
w(),
a("--tw-inset-ring-shadow", S(O)),
a("box-shadow", s)
];
}
}), i("inset-ring", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--ring-color", "--color"],
modifiers: Array.from({ length: 21 }, (V, O) => `${O * 5}`)
}, {
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--ring-width"],
hasDefaultValue: !0
}]);
let K = "var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)";
r.functional("ring-offset", (V) => {
if (V.value) {
if (V.value.kind === "arbitrary") {
let O = V.value.value;
switch (V.value.dataType ?? me(O, ["color", "length"])) {
case "length": return V.modifier ? void 0 : [a("--tw-ring-offset-width", O), a("--tw-ring-offset-shadow", K)];
default: return O = X(O, V.modifier, t), O === null ? void 0 : [a("--tw-ring-offset-color", O)];
}
}
{
let O = t.resolve(V.value.value, ["--ring-offset-width"]);
if (O) return V.modifier ? void 0 : [a("--tw-ring-offset-width", O), a("--tw-ring-offset-shadow", K)];
if (u(V.value.value)) return V.modifier ? void 0 : [a("--tw-ring-offset-width", `${V.value.value}px`), a("--tw-ring-offset-shadow", K)];
}
{
let O = re(V, t, ["--ring-offset-color", "--color"]);
if (O) return [a("--tw-ring-offset-color", O)];
}
}
});
}
return i("ring-offset", () => [{
values: [
"current",
"inherit",
"transparent"
],
valueThemeKeys: ["--ring-offset-color", "--color"],
modifiers: Array.from({ length: 21 }, (s, g) => `${g * 5}`)
}, {
values: [
"0",
"1",
"2",
"4",
"8"
],
valueThemeKeys: ["--ring-offset-width"]
}]), r.functional("@container", (s) => {
let g = null;
if (s.value === null ? g = "inline-size" : s.value.kind === "arbitrary" ? g = s.value.value : s.value.kind === "named" && s.value.value === "normal" && (g = "normal"), g !== null) return s.modifier ? [a("container-type", g), a("container-name", s.modifier.value)] : [a("container-type", g)];
}), i("@container", () => [{
values: ["normal"],
valueThemeKeys: [],
hasDefaultValue: !0
}]), r;
}
var Wt = [
"number",
"integer",
"ratio",
"percentage"
];
function Mr(t) {
let r = ye(t.params);
return Pn(r) ? (i) => {
let e = {
"--value": {
usedSpacingInteger: !1,
usedSpacingNumber: !1,
themeKeys: /* @__PURE__ */ new Set(),
literals: /* @__PURE__ */ new Set()
},
"--modifier": {
usedSpacingInteger: !1,
usedSpacingNumber: !1,
themeKeys: /* @__PURE__ */ new Set(),
literals: /* @__PURE__ */ new Set()
}
};
_(t.nodes, (n) => {
if (n.kind !== "declaration" || !n.value || !n.value.includes("--value(") && !n.value.includes("--modifier(")) return;
let o = F(n.value);
_(o, (l) => {
if (l.kind !== "function") return;
if (l.value === "--spacing" && !(e["--modifier"].usedSpacingNumber && e["--value"].usedSpacingNumber)) return _(l.nodes, (u) => {
if (u.kind !== "function" || u.value !== "--value" && u.value !== "--modifier") return;
let f = u.value;
for (let m of u.nodes) if (m.kind === "word") {
if (m.value === "integer") e[f].usedSpacingInteger ||= !0;
else if (m.value === "number" && (e[f].usedSpacingNumber ||= !0, e["--modifier"].usedSpacingNumber && e["--value"].usedSpacingNumber)) return R.Stop;
}
}), R.Continue;
if (l.value !== "--value" && l.value !== "--modifier") return;
let c = d(Y(l.nodes), ",");
for (let [u, f] of c.entries()) f = f.replace(/\\\*/g, "*"), f = f.replace(/--(.*?)\s--(.*?)/g, "--$1-*--$2"), f = f.replace(/\s+/g, ""), f = f.replace(/(-\*){2,}/g, "-*"), f[0] === "-" && f[1] === "-" && !f.includes("-*") && (f += "-*"), c[u] = f;
l.nodes = F(c.join(","));
for (let u of l.nodes) if (u.kind === "word" && (u.value[0] === "\"" || u.value[0] === "'") && u.value[0] === u.value[u.value.length - 1]) {
let f = u.value.slice(1, -1);
e[l.value].literals.add(f);
} else if (u.kind === "word" && u.value[0] === "-" && u.value[1] === "-") {
let f = u.value.replace(/-\*.*$/g, "");
e[l.value].themeKeys.add(f);
} else if (u.kind === "word" && !(u.value[0] === "[" && u.value[u.value.length - 1] === "]") && !Wt.includes(u.value)) {
console.warn(`Unsupported bare value data type: "${u.value}".
Only valid data types are: ${Wt.map((y) => `"${y}"`).join(", ")}.
`);
let f = u.value, m = structuredClone(l), d = "¶";
_(m.nodes, (y) => {
if (y.kind === "word" && y.value === f) return R.ReplaceSkip({
kind: "word",
value: d
});
});
let p = "^".repeat(Y([u]).length), v = Y([m]).indexOf(d), h = [
"```css",
Y([l]),
" ".repeat(v) + p,
"```"
].join(`
`);
console.warn(h);
}
}), n.value = Y(o);
}), i.utilities.functional(r.slice(0, -2), (n) => {
let o = te(t), l = n.value, c = n.modifier;
if (l === null) return;
let u = !1, f = !1, m = !1, d = !1, p = /* @__PURE__ */ new Map(), v = !1;
if (_([o], (h, y) => {
let b = y.parent;
if (b?.kind !== "rule" && b?.kind !== "at-rule" || h.kind !== "declaration" || !h.value) return;
let T = !1, A = F(h.value);
if (_(A, (k) => {
if (k.kind === "function") {
if (k.value === "--value") {
u = !0;
let D = Ur(l, k, i);
return D ? (f = !0, D.ratio ? v = !0 : p.set(h, b), R.ReplaceSkip(D.nodes)) : (u ||= !1, T = !0, R.Stop);
} else if (k.value === "--modifier") {
if (c === null) return T = !0, R.Stop;
m = !0;
let D = Ur(c, k, i);
return D ? (d = !0, R.ReplaceSkip(D.nodes)) : (m ||= !1, T = !0, R.Stop);
}
}
}), T) return R.ReplaceSkip([]);
h.value = Y(A);
}), u && !f || m && !d || v && d || c && !v && !d) return null;
if (v) for (let [h, y] of p) {
let b = y.nodes.indexOf(h);
b !== -1 && y.nodes.splice(b, 1);
}
return o.nodes;
}), i.utilities.suggest(r.slice(0, -2), () => {
let n = [], o = [];
for (let [l, { literals: c, usedSpacingNumber: u$2, usedSpacingInteger: f, themeKeys: m }] of [[n, e["--value"]], [o, e["--modifier"]]]) {
for (let d of c) l.push(d);
if (u$2) l.push(...vt);
else if (f) for (let d of vt) u(d) && l.push(d);
for (let d of i.theme.keysInNamespaces(m)) l.push(d.replace(Lr, (p, v, h) => `${v}.${h}`));
}
return [{
values: n,
modifiers: o
}];
});
} : On(r) ? (i) => {
i.utilities.static(r, () => t.nodes.map(te));
} : null;
}
function Ur(t, r, i) {
for (let e of r.nodes) {
if (t.kind === "named" && e.kind === "word" && (e.value[0] === "'" || e.value[0] === "\"") && e.value[e.value.length - 1] === e.value[0] && e.value.slice(1, -1) === t.value) return { nodes: F(t.value) };
if (t.kind === "named" && e.kind === "word" && e.value[0] === "-" && e.value[1] === "-") {
let n = e.value;
if (n.endsWith("-*")) {
n = n.slice(0, -2);
let o = i.theme.resolve(t.value, [n]);
if (o) return { nodes: F(o) };
} else {
let o = n.split("-*");
if (o.length <= 1) continue;
let l = [o.shift()], c = i.theme.resolveWith(t.value, l, o);
if (c) {
let [, u = {}] = c;
{
let f = u[o.pop()];
if (f) return { nodes: F(f) };
}
}
}
} else if (t.kind === "named" && e.kind === "word") {
if (!Wt.includes(e.value)) continue;
let n = e.value === "ratio" && "fraction" in t ? t.fraction : t.value;
if (!n) continue;
let o = me(n, [e.value]);
if (o === null) continue;
if (o === "ratio") {
let [l, c] = d(n, "/").map(Number);
if (!u(l) || !u(c)) continue;
} else {
if (o === "number" && !ge$1(n)) continue;
if (o === "percentage" && !u(n.slice(0, -1))) continue;
}
if (o === "ratio") {
let [l, c] = d(n, "/");
return {
nodes: F(`${l.trim()} / ${c.trim()}`),
ratio: !0
};
}
return {
nodes: F(n),
ratio: !1
};
} else if (t.kind === "arbitrary" && e.kind === "word" && e.value[0] === "[" && e.value[e.value.length - 1] === "]") {
let n = e.value.slice(1, -1);
if (n === "*") return { nodes: F(t.value) };
if ("dataType" in t && t.dataType && t.dataType !== n) continue;
if ("dataType" in t && t.dataType) return { nodes: F(t.value) };
if (me(t.value, [n]) !== null) return { nodes: F(t.value) };
}
}
}
function be(t, r, i, e, n = "") {
let o = !1, l = Xe(r, (u) => i == null ? e(u) : u.startsWith("current") ? e(Q(u, i)) : ((u.startsWith("var(") || i.startsWith("var(")) && (o = !0), e(zr(u, i))));
function c(u) {
return n ? d(u, ",").map((f) => n.trim() + " " + f.trim()).join(", ") : u;
}
return o ? [a(t, c(Xe(r, e))), J("@supports (color: lab(from red l a b))", [a(t, c(l))])] : [a(t, c(l))];
}
function mt(t, r, i, e, n = "") {
let o = !1, l = d(r, ",").map((c) => Xe(c, (u) => i == null ? e(u) : u.startsWith("current") ? e(Q(u, i)) : ((u.startsWith("var(") || i.startsWith("var(")) && (o = !0), e(zr(u, i))))).map((c) => `drop-shadow(${c})`).join(" ");
return o ? [a(t, n + d(r, ",").map((c) => `drop-shadow(${Xe(c, e)})`).join(" ")), J("@supports (color: lab(from red l a b))", [a(t, n + l)])] : [a(t, n + l)];
}
var Fr = /^-?[a-z][a-zA-Z0-9_-]*/, An = 37, Cn = 47, $n = 46, Sn = 97, Vn = 122, Tn = 65, Nn = 90, gt = 48, ht = 57, En = 95, Rn = 45;
function On(t) {
let r = Fr.exec(t);
if (r === null) return !1;
let i = r[0], e = t.slice(i.length);
if (e.length === 0 && i.endsWith("-")) return !1;
if (e.length === 0) return !0;
let n = !1;
for (let o = 0; o < e.length; o++) {
let l = e.charCodeAt(o);
switch (l) {
case An: {
if (o !== e.length - 1) return !1;
let u = (e[o - 1] || i[i.length - 1] || "").charCodeAt(0);
if (u < gt || u > ht) return !1;
break;
}
case Cn:
if (o === e.length - 1 || n) return !1;
n = !0;
break;
case $n: {
let u = (e[o - 1] || i[i.length - 1] || "").charCodeAt(0);
if (u < gt || u > ht) return !1;
let m = (e[o + 1] || "").charCodeAt(0);
if (m < gt || m > ht) return !1;
break;
}
case En:
case Rn: continue;
default:
if (l >= Sn && l <= Vn || l >= Tn && l <= Nn || l >= gt && l <= ht) continue;
return !1;
}
}
return !0;
}
function Pn(t) {
if (!t.endsWith("-*")) return !1;
t = t.slice(0, -2);
let r = Fr.exec(t);
if (r === null) return !1;
let i = r[0];
return t.slice(i.length).length === 0;
}
var Bt = {
"--alpha": In,
"--spacing": _n,
"--theme": Dn,
theme: Kn
};
function In(t, r, i, ...e) {
let [n, o] = d(i, "/").map((l) => l.trim());
if (!n || !o) throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n || "var(--my-color)"} / ${o || "50%"})\``);
if (e.length > 0) throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n || "var(--my-color)"} / ${o || "50%"})\``);
return Q(n, o);
}
function _n(t, r, i, ...e) {
if (!i) throw new Error("The --spacing(…) function requires an argument, but received none.");
if (e.length > 0) throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${e.length + 1}.`);
let n = t.theme.resolve(null, ["--spacing"]);
if (!n) throw new Error("The --spacing(…) function requires that the `--spacing` theme variable exists, but it was not found.");
return `calc(${n} * ${i})`;
}
function Dn(t, r, i, ...e) {
if (!i.startsWith("--")) throw new Error("The --theme(…) function can only be used with CSS variables from your theme.");
let n = !1;
i.endsWith(" inline") && (n = !0, i = i.slice(0, -7)), r.kind === "at-rule" && (n = !0);
let o = t.resolveThemeValue(i, n);
if (!o) {
if (e.length > 0) return e.join(", ");
throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`);
}
if (e.length === 0) return o;
let l = e.join(", ");
if (l === "initial") return o;
if (o === "initial") return l;
if (o.startsWith("var(") || o.startsWith("theme(") || o.startsWith("--theme(")) {
let c = F(o);
return zn(c, l), Y(c);
}
return o;
}
function Kn(t, r, i, ...e) {
i = Un(i);
let n = t.resolveThemeValue(i);
if (!n && e.length > 0) return e.join(", ");
if (!n) throw new Error(`Could not resolve value for theme function: \`theme(${i})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);
return n;
}
var Wr = new RegExp(Object.keys(Bt).map((t) => `${t}\\(`).join("|"));
function Ue(t, r) {
let i = 0;
return _(t, (e) => {
if (e.kind === "declaration" && e.value && Wr.test(e.value)) {
i |= 8, e.value = Br(e.value, e, r);
return;
}
e.kind === "at-rule" && (e.name === "@media" || e.name === "@custom-media" || e.name === "@container" || e.name === "@supports") && Wr.test(e.params) && (i |= 8, e.params = Br(e.params, e, r));
}), i;
}
function Br(t, r, i) {
let e = F(t);
return _(e, (n) => {
if (n.kind === "function" && n.value in Bt) {
let o = d(Y(n.nodes).trim(), ",").map((c) => c.trim()), l = Bt[n.value](i, r, ...o);
return R.Replace(F(l));
}
}), Y(e);
}
function Un(t) {
if (t[0] !== "'" && t[0] !== "\"") return t;
let r = "", i = t[0];
for (let e = 1; e < t.length - 1; e++) {
let n = t[e], o = t[e + 1];
n === "\\" && (o === i || o === "\\") ? (r += o, e++) : r += n;
}
return r;
}
function zn(t, r) {
_(t, (i) => {
if (i.kind === "function" && !(i.value !== "var" && i.value !== "theme" && i.value !== "--theme")) if (i.nodes.length === 1) i.nodes.push({
kind: "word",
value: `, ${r}`
});
else {
let e = i.nodes[i.nodes.length - 1];
e.kind === "word" && e.value === "initial" && (e.value = r);
}
});
}
function wt(t, r) {
let i = t.length, e = r.length, n = i < e ? i : e;
for (let o = 0; o < n; o++) {
let l = t.charCodeAt(o), c = r.charCodeAt(o);
if (l >= 48 && l <= 57 && c >= 48 && c <= 57) {
let u = o, f = o + 1, m = o, d = o + 1;
for (l = t.charCodeAt(f); l >= 48 && l <= 57;) l = t.charCodeAt(++f);
for (c = r.charCodeAt(d); c >= 48 && c <= 57;) c = r.charCodeAt(++d);
let p = t.slice(u, f), v = r.slice(m, d), h = Number(p) - Number(v);
if (h) return h;
if (p < v) return -1;
if (p > v) return 1;
continue;
}
if (l !== c) return l - c;
}
return t.length - r.length;
}
function Yr(t) {
if (t[0] !== "[" || t[t.length - 1] !== "]") return null;
let r = 1, i = r, e = t.length - 1;
for (; Le(t.charCodeAt(r));) r++;
for (i = r; r < e; r++) {
let m = t.charCodeAt(r);
if (m === 92) {
r++;
continue;
}
if (!(m >= 65 && m <= 90) && !(m >= 97 && m <= 122) && !(m >= 48 && m <= 57) && !(m === 45 || m === 95)) break;
}
if (i === r) return null;
let n = t.slice(i, r);
for (; Le(t.charCodeAt(r));) r++;
if (r === e) return {
attribute: n,
operator: null,
quote: null,
value: null,
sensitivity: null
};
let o = null, l = t.charCodeAt(r);
if (l === 61) o = "=", r++;
else if ((l === 126 || l === 124 || l === 94 || l === 36 || l === 42) && t.charCodeAt(r + 1) === 61) o = t[r] + "=", r += 2;
else return null;
for (; Le(t.charCodeAt(r));) r++;
if (r === e) return null;
let c = "", u = null;
if (l = t.charCodeAt(r), l === 39 || l === 34) {
u = t[r], r++, i = r;
for (let m = r; m < e; m++) {
let d = t.charCodeAt(m);
d === l ? r = m + 1 : d === 92 && m++;
}
c = t.slice(i, r - 1);
} else {
for (i = r; r < e && !Le(t.charCodeAt(r));) r++;
c = t.slice(i, r);
}
for (; Le(t.charCodeAt(r));) r++;
if (r === e) return {
attribute: n,
operator: o,
quote: u,
value: c,
sensitivity: null
};
let f = null;
switch (t.charCodeAt(r)) {
case 105:
case 73:
f = "i", r++;
break;
case 115:
case 83:
f = "s", r++;
break;
default: return null;
}
for (; Le(t.charCodeAt(r));) r++;
return r !== e ? null : {
attribute: n,
operator: o,
quote: u,
value: c,
sensitivity: f
};
}
function Le(t) {
switch (t) {
case 32:
case 9:
case 10:
case 13: return !0;
default: return !1;
}
}
var jn = /^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i, ae = new z((t) => {
let r = jn.exec(t);
if (!r) return null;
let i = r.groups?.value;
if (i === void 0) return null;
let e = Number(i);
if (Number.isNaN(e)) return null;
let n = r.groups?.unit;
return n === void 0 ? [e, null] : [e, n];
});
function Gr(t) {
let r = !1;
return _(t, { exit(i) {
if (i.kind !== "function" || i.value !== "calc" && i.value !== "" || i.nodes.length !== 5 || i.nodes[2].kind !== "word" || i.nodes[2].value !== "*" && i.nodes[2].value !== "+") return;
let e = i.nodes[0], n = i.nodes[4];
if (Mn(e, n)) {
r = !0;
let o = {
kind: "function",
value: i.value,
nodes: [
n,
i.nodes[1],
i.nodes[2],
i.nodes[3],
e
]
};
return R.ReplaceSkip(o);
}
} }), [r, t];
}
function Mn(t, r) {
let i = t.kind === "word" ? ae.get(t.value) : null, e = r.kind === "word" ? ae.get(r.value) : null;
if (i !== null && e === null) return !0;
if (i === null && e !== null) return !1;
if (i !== null && e !== null) {
let [n, o] = i, [l, c] = e;
if (o === null && c !== null) return !0;
if (o !== null && c === null) return !1;
if (n !== l) return n - l > 0;
if (o !== c) return (o ?? "").localeCompare(c ?? "") > 0;
}
return Y([t]).localeCompare(Y([r])) > 0;
}
function je(t, r = null) {
return Array.isArray(t) && t.length === 2 && typeof t[1] == "object" && true ? r ? t[1][r] ?? null : t[0] : Array.isArray(t) && r === null ? t.join(", ") : typeof t == "string" && r === null ? t : null;
}
function qr(t, { theme: r }, i) {
for (let e of i) {
let n = Me([e]);
n && t.theme.clearNamespace(`--${n}`, 4);
}
for (let [e, n] of Fn(r)) {
if (typeof n != "string" && typeof n != "number") continue;
if (typeof n == "string" && (n = n.replace(/<alpha-value>/g, "1")), e[0] === "opacity" && (typeof n == "number" || typeof n == "string")) {
let l = typeof n == "string" ? parseFloat(n) : n;
l >= 0 && l <= 1 && (n = l * 100 + "%");
}
let o = Me(e);
o && t.theme.add(`--${o}`, "" + n, 7);
}
if (Object.hasOwn(r, "fontFamily")) {
let e = 5;
{
let n = je(r.fontFamily.sans);
n && t.theme.hasDefault("--font-sans") && (t.theme.add("--default-font-family", n, e), t.theme.add("--default-font-feature-settings", je(r.fontFamily.sans, "fontFeatureSettings") ?? "normal", e), t.theme.add("--default-font-variation-settings", je(r.fontFamily.sans, "fontVariationSettings") ?? "normal", e));
}
{
let n = je(r.fontFamily.mono);
n && t.theme.hasDefault("--font-mono") && (t.theme.add("--default-mono-font-family", n, e), t.theme.add("--default-mono-font-feature-settings", je(r.fontFamily.mono, "fontFeatureSettings") ?? "normal", e), t.theme.add("--default-mono-font-variation-settings", je(r.fontFamily.mono, "fontVariationSettings") ?? "normal", e));
}
}
return r;
}
function Fn(t) {
let r = [];
return Zr(t, [], (i, e) => {
if (Gn(i)) return r.push([e, i]), 1;
if (qn(i)) {
r.push([e, i[0]]);
for (let n of Reflect.ownKeys(i[1])) r.push([[...e, `-${n}`], i[1][n]]);
return 1;
}
if (Array.isArray(i) && i.every((n) => typeof n == "string")) return e[0] === "fontSize" ? (r.push([e, i[0]]), i.length >= 2 && r.push([[...e, "-line-height"], i[1]])) : r.push([e, i.join(", ")]), 1;
}), r;
}
var Wn = {
borderWidth: "border-width",
outlineWidth: "outline-width",
ringColor: "ring-color",
ringWidth: "ring-width",
transitionDuration: "transition-duration",
transitionTimingFunction: "transition-timing-function"
}, Bn = {
animation: "animate",
aspectRatio: "aspect",
borderRadius: "radius",
boxShadow: "shadow",
colors: "color",
containers: "container",
fontFamily: "font",
fontSize: "text",
letterSpacing: "tracking",
lineHeight: "leading",
maxWidth: "container",
screens: "breakpoint",
transitionTimingFunction: "ease"
}, Yn = /^[a-zA-Z0-9-_%/.]+$/;
function Me(t) {
let r = Wn[t[0]];
if (r && t[1] === "DEFAULT") return `default-${r}`;
if (t[0] === "container") return null;
for (let e of t) if (!Yn.test(e)) return null;
let i = Bn[t[0]];
return i && (t = t.slice(), t[0] = i), t.map((e, n, o) => e === "1" && n !== o.length - 1 ? "" : e).map((e, n) => (e = e.replaceAll(".", "_"), (n === 0 || e.startsWith("-") || e === "lineHeight") && (e = e.replace(/([a-z])([A-Z])/g, (l, c, u) => `${c}-${u.toLowerCase()}`)), e)).filter((e, n) => e !== "DEFAULT" || n !== t.length - 1).join("-");
}
function Gn(t) {
return typeof t == "number" || typeof t == "string";
}
function qn(t) {
if (!Array.isArray(t) || t.length !== 2 || typeof t[0] != "string" && typeof t[0] != "number" || t[1] === void 0 || t[1] === null || typeof t[1] != "object") return !1;
for (let r of Reflect.ownKeys(t[1])) if (typeof r != "string" || typeof t[1][r] != "string" && typeof t[1][r] != "number") return !1;
return !0;
}
function Zr(t, r = [], i) {
for (let e of Reflect.ownKeys(t)) {
let n = t[e];
if (n == null) continue;
let o = [...r, e], l = i(n, o) ?? 0;
if (l !== 1) {
if (l === 2) return 2;
if (!(!Array.isArray(n) && typeof n != "object") && Zr(n, o, i) === 2) return 2;
}
}
}
function Yt(t, r = null) {
let [i, e] = et(F(t), r);
return i ? Y(e) : t;
}
function et(t, r = null) {
let i = !1;
return _(t, { exit(e) {
if (e.kind === "word" && e.value !== "0") {
let n = Zn(e.value, r);
return n === null || n === e.value ? void 0 : (i = !0, R.ReplaceSkip(ne(n)));
} else if (e.kind === "function" && (e.value === "calc" || e.value === "")) {
if (e.nodes.length !== 5 || e.nodes[2].kind !== "word") return;
let n = e.nodes[0], o = e.nodes[2].value, l = e.nodes[4], c = n.kind === "word" ? ae.get(n.value) : null, u = l.kind === "word" ? ae.get(l.value) : null;
if (o === "*" && (c?.[0] === 0 && c?.[1] === null || u?.[0] === 0 && u?.[1] === null)) return i = !0, R.ReplaceSkip(ne("0"));
if (o === "*") {
if (c?.[0] === 1 && c?.[1] === null) return i = !0, R.ReplaceSkip(l);
if (u?.[0] === 1 && u?.[1] === null) return i = !0, R.ReplaceSkip(n);
}
if (o === "*" || o === "+") {
let f = c ?? u, m = c === null ? n : u === null ? l : null;
if (f !== null && m !== null && m.kind === "function" && (m.value === "calc" || m.value === "") && m.nodes.length === 5 && m.nodes[2].kind === "word" && m.nodes[2].value === o) {
let d = m.nodes[0], p = m.nodes[4], v = d.kind === "word" ? ae.get(d.value) : null, h = p.kind === "word" ? ae.get(p.value) : null, y = v ?? h, b = v === null ? d : h === null ? p : null;
if (y !== null && b !== null) {
if (o === "*" && !(f[1] === null && y[1] === null || f[1] === null && y[1] !== null || f[1] !== null && y[1] === null) || o === "+" && f[1] !== y[1]) return;
let T;
switch (o) {
case "*":
T = `${f[0] * y[0]}${f[1] ?? y[1] ?? ""}`;
break;
case "+":
T = `${f[0] + y[0]}${f[1] ?? y[1] ?? ""}`;
break;
default: return;
}
if (i = !0, o === "*" && T === "1") return R.ReplaceSkip(b);
let A = {
kind: "function",
value: e.value,
nodes: [
ne(T),
e.nodes[1],
e.nodes[2],
e.nodes[3],
b
]
};
return R.ReplaceSkip(A);
}
}
}
if (c === null || u === null) return;
switch (o) {
case "*":
if (c[1] === u[1] || c[1] === null && u[1] !== null || c[1] !== null && u[1] === null) return i = !0, R.ReplaceSkip(ne(`${c[0] * u[0]}${c[1] ?? u[1] ?? ""}`));
break;
case "+":
if (c[1] === u[1]) return i = !0, R.ReplaceSkip(ne(`${c[0] + u[0]}${c[1] ?? ""}`));
break;
case "-":
if (c[1] === u[1]) return i = !0, R.ReplaceSkip(ne(`${c[0] - u[0]}${c[1] ?? ""}`));
break;
case "/":
if (u[0] !== 0 && (c[1] === null && u[1] === null || c[1] !== null && u[1] === null)) return i = !0, R.ReplaceSkip(ne(`${c[0] / u[0]}${c[1] ?? ""}`));
break;
}
}
} }), [i, t];
}
function Zn(t, r = null) {
let i = ae.get(t);
if (i === null) return null;
let [e, n] = i;
if (n === null) return `${e}`;
if (e === 0 && y(t)) return "0";
switch (n.toLowerCase()) {
case "in": return `${e * 96}px`;
case "cm": return `${e * 96 / 2.54}px`;
case "mm": return `${e * 96 / 2.54 / 10}px`;
case "q": return `${e * 96 / 2.54 / 10 / 4}px`;
case "pc": return `${e * 96 / 6}px`;
case "pt": return `${e * 96 / 72}px`;
case "rem": return r !== null ? `${e * r}px` : null;
case "grad": return `${e * .9}deg`;
case "rad": return `${e * 180 / Math.PI}deg`;
case "turn": return `${e * 360}deg`;
case "ms": return `${e / 1e3}s`;
case "khz": return `${e * 1e3}hz`;
default: return `${e}${n}`;
}
}
function Re(t, r = "top", i = "right", e = "bottom", n = "left") {
return Xr(`${t}-${r}`, `${t}-${i}`, `${t}-${e}`, `${t}-${n}`);
}
function Xr(t = "top", r = "right", i = "bottom", e = "left") {
return {
1: [
[t, 0],
[r, 0],
[i, 0],
[e, 0]
],
2: [
[t, 0],
[r, 1],
[i, 0],
[e, 1]
],
3: [
[t, 0],
[r, 1],
[i, 2],
[e, 1]
],
4: [
[t, 0],
[r, 1],
[i, 2],
[e, 3]
]
};
}
function le(t, r) {
return {
1: [[t, 0], [r, 0]],
2: [[t, 0], [r, 1]]
};
}
var Hr = {
inset: Xr(),
margin: Re("margin"),
padding: Re("padding"),
"scroll-margin": Re("scroll-margin"),
"scroll-padding": Re("scroll-padding"),
"border-width": Re("border", "top-width", "right-width", "bottom-width", "left-width"),
"border-style": Re("border", "top-style", "right-style", "bottom-style", "left-style"),
"border-color": Re("border", "top-color", "right-color", "bottom-color", "left-color"),
gap: le("row-gap", "column-gap"),
overflow: le("overflow-x", "overflow-y"),
"overscroll-behavior": le("overscroll-behavior-x", "overscroll-behavior-y")
}, Jr = {
"inset-block": le("top", "bottom"),
"inset-inline": le("left", "right"),
"margin-block": le("margin-top", "margin-bottom"),
"margin-inline": le("margin-left", "margin-right"),
"padding-block": le("padding-top", "padding-bottom"),
"padding-inline": le("padding-left", "padding-right"),
"scroll-margin-block": le("scroll-margin-top", "scroll-margin-bottom"),
"scroll-margin-inline": le("scroll-margin-left", "scroll-margin-right"),
"scroll-padding-block": le("scroll-padding-top", "scroll-padding-bottom"),
"scroll-padding-inline": le("scroll-padding-left", "scroll-padding-right")
}, Qr = {
"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 ei(t, r) {
if (r & 2) {
if (t.property in Jr) {
let i = d(t.value, " ");
return Jr[t.property][i.length]?.map(([e, n]) => a(e, i[n], t.important));
}
if (t.property in Qr) return Qr[t.property]?.map((i) => a(i, t.value, t.important));
}
if (t.property in Hr) {
let i = d(t.value, " ");
return Hr[t.property][i.length]?.map(([e, n]) => a(e, i[n], t.important));
}
return null;
}
function Hn(t) {
return {
kind: "combinator",
value: t
};
}
function Jn(t, r) {
return {
kind: "function",
value: t,
nodes: r
};
}
function $e(t) {
return {
kind: "selector",
value: t
};
}
function Qn(t) {
return {
kind: "separator",
value: t
};
}
function Xn(t) {
return {
kind: "value",
value: t
};
}
function he(t) {
let r = "";
for (let i of t) switch (i.kind) {
case "combinator":
case "selector":
case "separator":
case "value":
r += i.value;
break;
case "function": r += i.value + "(" + he(i.nodes) + ")";
}
return r;
}
var ti = 92, el = 93, ri = 41, tl = 58, ii = 44, rl = 34, il = 46, ni = 62, li = 10, nl = 35, ai = 91, oi = 40, si = 43, ll = 39, ui = 32, fi = 9, ci = 126, al = 38, ol = 42;
function Oe(t) {
t = t.replaceAll(`\r
`, `
`);
let r = [], i = [], e = null, n = "", o;
for (let l = 0; l < t.length; l++) {
let c = t.charCodeAt(l);
switch (c) {
case ii:
case ni:
case li:
case ui:
case si:
case fi:
case ci: {
if (n.length > 0) {
let p = $e(n);
e ? e.nodes.push(p) : r.push(p), n = "";
}
let u = l, f = l + 1;
for (; f < t.length && (o = t.charCodeAt(f), !(o !== ii && o !== ni && o !== li && o !== ui && o !== si && o !== fi && o !== ci)); f++);
l = f - 1;
let m = t.slice(u, f), d = m.trim() === "," ? Qn(m) : Hn(m);
e ? e.nodes.push(d) : r.push(d);
break;
}
case oi: {
let u = Jn(n, []);
if (n = "", u.value !== ":not" && u.value !== ":where" && u.value !== ":has" && u.value !== ":is") {
let f = l + 1, m = 0;
for (let p = l + 1; p < t.length; p++) {
if (o = t.charCodeAt(p), o === oi) {
m++;
continue;
}
if (o === ri) {
if (m === 0) {
l = p;
break;
}
m--;
}
}
let d = l;
u.nodes.push(Xn(t.slice(f, d))), n = "", l = d, e ? e.nodes.push(u) : r.push(u);
break;
}
e ? e.nodes.push(u) : r.push(u), i.push(u), e = u;
break;
}
case ri: {
let u = i.pop();
if (n.length > 0) {
let f = $e(n);
u.nodes.push(f), n = "";
}
i.length > 0 ? e = i[i.length - 1] : e = null;
break;
}
case il:
case tl:
case nl:
if (n.length > 0) {
let u = $e(n);
e ? e.nodes.push(u) : r.push(u);
}
n = t[l];
break;
case ai: {
if (n.length > 0) {
let m = $e(n);
e ? e.nodes.push(m) : r.push(m);
}
n = "";
let u = l, f = 0;
for (let m = l + 1; m < t.length; m++) {
if (o = t.charCodeAt(m), o === ai) {
f++;
continue;
}
if (o === el) {
if (f === 0) {
l = m;
break;
}
f--;
}
}
n += t.slice(u, l + 1);
break;
}
case ll:
case rl: {
let u = l;
for (let f = l + 1; f < t.length; f++) if (o = t.charCodeAt(f), o === ti) f += 1;
else if (o === c) {
l = f;
break;
}
n += t.slice(u, l + 1);
break;
}
case al:
case ol:
if (n.length > 0) {
let u = $e(n);
e ? e.nodes.push(u) : r.push(u), n = "";
}
e ? e.nodes.push($e(t[l])) : r.push($e(t[l]));
break;
case ti:
n += t[l] + t[l + 1], l += 1;
break;
default: n += t[l];
}
}
return n.length > 0 && r.push($e(n)), r;
}
function pe(t, r) {
for (let i in t) delete t[i];
return Object.assign(t, r);
}
function Pe(t) {
let r = [];
for (let i of d(t, ".")) {
if (!i.includes("[")) {
r.push(i);
continue;
}
let e = 0;
for (;;) {
let n = i.indexOf("[", e), o = i.indexOf("]", n);
if (n === -1 || o === -1) break;
n > e && r.push(i.slice(e, n)), r.push(i.slice(n + 1, o)), e = o + 1;
}
e <= i.length - 1 && r.push(i.slice(e));
}
return r;
}
function Gt(t, r) {
let i = t;
return i.storage[hi] ??= sl(), i.storage[vi] ??= cl(i), i.storage[wi] ??= ml(), i.storage[yi] ??= hl(), i.storage[ki] ??= wl(), i.storage[Zt] ??= Cl(i), i.storage[bt] ??= Sl(i, r), i.storage[ve] ??= jl(i), i.storage[Ht] ??= Fl(), i.storage[xt] ??= Wl(i), i.storage[Jt] ??= Bl(i), i.storage[Ct] ??= Yl(i), i.storage[Ci] ??= Gl(i), i.storage[tt] ??= ul(i), i;
}
var hi = Symbol();
function sl() {
return new z((t) => new z((r) => ({
rem: t,
features: r
})));
}
var tt = Symbol();
function ul(t) {
return new z((r) => {
let i = t.storage[ve].get(r);
return function(n, o) {
let l = typeof n == "string" ? n : t.printCandidate(n), c = i.get(l);
if (typeof c != "string") return !1;
let u = typeof o == "string" ? o : t.printCandidate(o), f = i.get(u);
return typeof f != "string" ? !1 : c === f;
};
});
}
function fl(t, r) {
let i = 0;
return r?.collapse && (i |= 1), r?.logicalToPhysical && (i |= 2), Gt(t, r).storage[hi].get(r?.rem ?? null).get(i);
}
var vi = Symbol();
function cl(t) {
return new z((r) => new z((i) => ({
features: i,
designSystem: t,
signatureOptions: r
})));
}
function pl(t, r, i) {
let e = 0;
return i?.collapse && (e |= 1), Gt(t).storage[vi].get(r).get(e);
}
function qt(t, r, i) {
let n = pl(t, fl(t, i), i), o = Gt(t), l = /* @__PURE__ */ new Set(), c = o.storage[wi].get(n);
for (let u of r) l.add(c.get(u));
return l.size <= 1 || !(n.features & 1) ? Array.from(l) : dl(n, Array.from(l));
}
function dl(t, r) {
let i = t.designSystem, e = new z((c) => new z((u) => /* @__PURE__ */ new Set())), n = t.designSystem.theme.prefix ? `${t.designSystem.theme.prefix}:` : "";
for (let c of r) {
let u = d(c, ":"), f = u.pop(), m = f.endsWith("!");
m && (f = f.slice(0, -1));
let d$3 = u.length > 0 ? `${u.join(":")}:` : "", p = m ? "!" : "";
e.get(d$3).get(p).add(`${n}${f}`);
}
let o = /* @__PURE__ */ new Set();
for (let [c, u] of e.entries()) for (let [f, m] of u.entries()) for (let d of l(Array.from(m))) n && d.startsWith(n) && (d = d.slice(n.length)), o.add(`${c}${d}${f}`);
return Array.from(o);
function l(c) {
let u = t.signatureOptions, f = i.storage[xt].get(u), m = i.storage[Ht].get(u), d = c.map((A) => f.get(A));
if (d.some((A) => A.has("line-height"))) {
let A = i.theme.keysInNamespaces(["--text"]);
if (A.length > 0) {
let k = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set();
for (let E of d) if (E.has("line-height")) for (let U of E.get("line-height")) {
if (D.has(U)) continue;
D.add(U);
let P = i.storage[bt]?.get(U) ?? null;
if (P !== null) if (ge$1(P)) {
k.add(P);
for (let j of A) f.get(`text-${j}/${P}`);
} else {
k.add(U);
for (let j of A) f.get(`text-${j}/[${U}]`);
}
}
let N = /* @__PURE__ */ new Set();
for (let E of d) if (E.has("font-size")) {
for (let U of E.get("font-size")) if (!N.has(U)) {
N.add(U);
for (let P of k) ge$1(P) ? f.get(`text-[${U}]/${P}`) : f.get(`text-[${U}]/[${P}]`);
}
}
}
}
let p = new z((A) => {
let k = new z((N) => new z((E) => /* @__PURE__ */ new Set())), D = new Set(f.get(A).keys());
if (D.size === 0) return k;
for (let N of oe(i, A)) if (!(N.kind !== "functional" || N.value === null)) {
for (let E of i.utilities.keys("functional")) {
if (E === N.root) continue;
let U = bi(i, {
...Ke(N),
root: E
}), P = f.get(U);
for (let [j, G] of P) if (D.has(j)) for (let Z of G) k.get(j).get(Z).add(U);
}
return k;
}
return k;
}), v = d.map((A, k) => {
let D = null;
for (let N of A.keys()) {
let E = /* @__PURE__ */ new Set();
for (let U of m.get(N).values()) for (let P of U) E.add(P);
for (let U of A.get(N)) for (let P of p.get(c[k]).get(N).get(U)) E.add(P);
if (D === null ? D = E : D = gi(D, E), D.size === 0) return D;
}
return D ?? /* @__PURE__ */ new Set();
}), h = new z((A) => new Set([A]));
for (let A = 0; A < v.length; A++) {
let k = v[A];
for (let D = A + 1; D < v.length; D++) {
let N = v[D];
for (let E of k) if (N.has(E)) {
h.get(A).add(D), h.get(D).add(A);
break;
}
}
}
if (h.size === 0) return c;
let y = new z((A) => A.split(",").map(Number));
for (let A of h.values()) {
let k = Array.from(A).sort((D, N) => D - N);
y.get(k.join(","));
}
let b = new Set(c), T = /* @__PURE__ */ new Set();
for (let A of y.values()) for (let k of Zl(A)) {
if (k.some((E) => T.has(c[E]))) continue;
let D = k.flatMap((E) => v[E]).reduce(gi), N = i.storage[ve].get(u).get(k.map((E) => c[E]).sort((E, U) => E.localeCompare(U)).join(" "));
for (let E of D) if (i.storage[ve].get(u).get(E) === N) {
b.add(E);
for (let P of k) c[P] !== E && T.add(c[P]);
break;
}
}
for (let A of T) b.delete(A);
return Array.from(b);
}
}
var wi = Symbol();
function ml() {
return new z((t) => {
let r = t.designSystem, i = r.theme.prefix ? `${r.theme.prefix}:` : "", e = r.storage[yi].get(t), n = r.storage[ki].get(t);
return new z((o, l) => {
for (let c of r.parseCandidate(o)) {
let u = c.variants.slice().reverse().flatMap((d) => e.get(d)), f = c.important;
if (f || u.length > 0) {
let p = l.get(r.printCandidate({
...c,
variants: [],
important: !1
}));
return r.theme.prefix !== null && u.length > 0 && (p = p.slice(i.length)), u.length > 0 && (p = `${u.map((v) => r.printVariant(v)).join(":")}:${p}`), f && (p += "!"), r.theme.prefix !== null && u.length > 0 && (p = `${i}${p}`), p;
}
let m = n.get(o);
if (m !== o) return m;
}
return o;
});
});
}
var gl = [
xl,
Kl,
Ul,
Il
], yi = Symbol();
function hl() {
return new z((t) => new z((r) => {
let i = [r];
for (let e of gl) for (let n of i.splice(0)) {
let o = e(De(n), t);
if (Array.isArray(o)) {
i.push(...o);
continue;
} else i.push(o);
}
return i;
}));
}
var vl = [
kl,
bl,
Al,
zl,
Vl,
Nl,
Pl,
_l,
Dl,
Ll
], ki = Symbol();
function wl() {
return new z((t) => {
let r = t.designSystem;
return new z((i) => {
for (let e of r.parseCandidate(i)) {
let n = Ke(e);
for (let l of vl) n = l(n, t);
let o = r.printCandidate(n);
if (i !== o) return o;
}
return i;
});
});
}
var yl = [
"t",
"tr",
"r",
"br",
"b",
"bl",
"l",
"tl"
];
function kl(t) {
if (t.kind === "static" && t.root.startsWith("bg-gradient-to-")) {
let r = t.root.slice(15);
return yl.includes(r) && (t.root = `bg-linear-to-${r}`), t;
}
return t;
}
function bl(t, r) {
let i = r.designSystem.storage[Zt];
if (t.kind === "arbitrary") {
let [e, n] = i(t.value, t.modifier === null ? 1 : 0);
e !== t.value && (t.value = e, n !== null && (t.modifier = n));
} else if (t.kind === "functional" && t.value?.kind === "arbitrary") {
let [e, n] = i(t.value.value, t.modifier === null ? 1 : 0);
e !== t.value.value && (t.value.value = e, n !== null && (t.modifier = n));
}
return t;
}
function xl(t, r) {
let i = r.designSystem.storage[Zt], e = At(t);
for (let [n] of e) if (n.kind === "arbitrary") {
let [o] = i(n.selector, 2);
o !== n.selector && (n.selector = o);
} else if (n.kind === "functional" && n.value?.kind === "arbitrary") {
let [o] = i(n.value.value, 2);
o !== n.value.value && (n.value.value = o);
}
return t;
}
function Al(t, r) {
return t.kind === "arbitrary" ? t.value = di(t.value, r.designSystem) : t.kind === "functional" && t.value?.kind === "arbitrary" && (t.value.value = di(t.value.value, r.designSystem)), t;
}
function di(t, r) {
let i = r.theme.prefix ? `--${r.theme.prefix}-spacing` : "--spacing", e = F(t);
return _(e, (n) => {
if (!(n.kind !== "function" || n.value !== "calc") && n.nodes.length === 5 && !(n.nodes[2].kind !== "word" || n.nodes[2].value !== "*") && !(n.nodes[0].kind !== "function" || n.nodes[0].value !== "var" || n.nodes[0].nodes.length !== 1 || n.nodes[0].nodes[0].kind !== "word" || n.nodes[0].nodes[0].value !== i)) return R.Replace(F(`--spacing(${Y([n.nodes[4]])})`));
}), Y(e);
}
var Zt = Symbol();
function Cl(t) {
return r(t);
function r(i) {
function e(c, u = 0) {
let f = F(c);
if (u & 2) return [yt(f, l), null];
let m = 0, d$4 = 0;
if (_(f, (h) => {
h.kind === "function" && h.value === "theme" && (m += 1, _(h.nodes, (y) => y.kind === "separator" && y.value.includes(",") ? R.Stop : y.kind === "word" && y.value === "/" ? (d$4 += 1, R.Stop) : R.Skip));
}), m === 0) return [c, null];
if (d$4 === 0) return [yt(f, o), null];
if (d$4 > 1) return [yt(f, l), null];
let p = null;
return [yt(f, (h, y) => {
let b = d(h, "/").map((T) => T.trim());
if (b.length > 2) return null;
if (f.length === 1 && b.length === 2 && u & 1) {
let [T, A] = b;
if (/^\d+%$/.test(A)) p = {
kind: "named",
value: A.slice(0, -1)
};
else if (/^0?\.\d+$/.test(A)) {
let k = Number(A) * 100;
p = {
kind: Number.isInteger(k) ? "named" : "arbitrary",
value: k.toString()
};
} else p = {
kind: "arbitrary",
value: A
};
h = T;
}
return o(h, y) || l(h, y);
}), p];
}
function n(c, u = !0) {
let f = `--${Me(Pe(c))}`;
return i.theme.get([f]) ? u && i.theme.prefix ? `--${i.theme.prefix}-${f.slice(2)}` : f : null;
}
function o(c, u) {
let f = n(c);
if (f) return u ? `var(${f}, ${u})` : `var(${f})`;
let m = Pe(c);
if (m[0] === "spacing" && i.theme.get(["--spacing"])) {
let d = m[1];
return ge$1(d) ? `--spacing(${d})` : null;
}
return null;
}
function l(c, u) {
let f = d(c, "/").map((p) => p.trim());
c = f.shift();
let m = n(c, !1);
if (!m) return null;
let d$5 = f.length > 0 ? `/${f.join("/")}` : "";
return u ? `--theme(${m}${d$5}, ${u})` : `--theme(${m}${d$5})`;
}
return e;
}
}
function yt(t, r) {
return _(t, (i, e) => {
if (i.kind === "function" && i.value === "theme") {
if (i.nodes.length < 1) return;
i.nodes[0].kind === "separator" && i.nodes[0].value.trim() === "" && i.nodes.shift();
let n = i.nodes[0];
if (n.kind !== "word") return;
let o = n.value, l = 1;
for (let f = l; f < i.nodes.length && !i.nodes[f].value.includes(","); f++) o += Y([i.nodes[f]]), l = f + 1;
o = $l(o);
let c = i.nodes.slice(l + 1), u = c.length > 0 ? r(o, Y(c)) : r(o);
if (u === null) return;
if (e.parent) {
let f = e.parent.nodes.indexOf(i) - 1;
for (; f !== -1;) {
let m = e.parent.nodes[f];
if (m.kind === "separator" && m.value.trim() === "") {
f -= 1;
continue;
}
/^[-+*/]$/.test(m.value.trim()) && (u = `(${u})`);
break;
}
}
return R.Replace(F(u));
}
}), Y(t);
}
function $l(t) {
if (t[0] !== "'" && t[0] !== "\"") return t;
let r = "", i = t[0];
for (let e = 1; e < t.length - 1; e++) {
let n = t[e], o = t[e + 1];
n === "\\" && (o === i || o === "\\") ? (r += o, e++) : r += n;
}
return r;
}
function* At(t) {
function* r(i, e = null) {
yield [i, e], i.kind === "compound" && (yield* r(i.variant, i));
}
yield* r(t, null);
}
function oe(t, r) {
return t.parseCandidate(t.theme.prefix && !r.startsWith(`${t.theme.prefix}:`) ? `${t.theme.prefix}:${r}` : r);
}
function bi(t, r) {
let i = t.printCandidate(r);
return t.theme.prefix && i.startsWith(`${t.theme.prefix}:`) ? i.slice(t.theme.prefix.length + 1) : i;
}
var bt = Symbol();
function Sl(t, r) {
let i = t.resolveThemeValue("--spacing");
if (i === void 0) return null;
i = Yt(i, r?.rem ?? null);
let e = ae.get(i);
if (!e) return null;
let [n, o] = e;
return new z((l) => {
if (n === 0) return null;
let c = ae.get(Yt(l, r?.rem ?? null));
if (!c) return null;
let [u, f] = c;
return f !== o ? null : u / n;
});
}
function Vl(t, r) {
if (t.kind !== "arbitrary" && !(t.kind === "functional" && t.value?.kind === "arbitrary")) return t;
let i = r.designSystem, e = i.storage[Jt].get(r.signatureOptions), n = i.storage[ve].get(r.signatureOptions), o = i.storage[tt].get(r.signatureOptions), l = i.printCandidate(t), c = n.get(l);
if (typeof c != "string") return t;
for (let f of u(c, t)) if (o(t, f) && Tl(i, t, f)) return f;
return t;
function* u(f, m) {
let d = e.get(f);
if (d.length > 1) {
let p;
for (let v of d) if (v[0] !== "-") {
if (p) return;
p = v;
}
if (p) for (let v of oe(i, p)) yield v;
return;
}
if (d.length === 0 && m.modifier) {
let p = {
...m,
modifier: null
}, v = n.get(i.printCandidate(p));
if (typeof v == "string") for (let h of u(v, p)) yield Object.assign({}, h, { modifier: m.modifier });
}
if (d.length === 1) for (let p of oe(i, d[0])) yield p;
else if (d.length === 0) {
let p = m.kind === "arbitrary" ? m.value : m.value?.value ?? null;
if (p === null) return;
if (r.signatureOptions.rem !== null && m.kind === "functional" && m.value?.kind === "arbitrary") {
let y = i.storage[bt]?.get(p) ?? null;
y !== null && ge$1(y) && (yield Object.assign({}, m, { value: {
kind: "named",
value: y,
fraction: null
} }));
}
let v = i.storage[bt]?.get(p) ?? null, h = "";
v !== null && v < 0 && (h = "-", v = Math.abs(v));
for (let y of Array.from(i.utilities.keys("functional")).sort((b, T) => +(b[0] === "-") - +(T[0] === "-"))) {
h && (y = `${h}${y}`);
for (let b of oe(i, `${y}-${p}`)) yield b;
if (m.modifier) for (let b of oe(i, `${y}-${p}${m.modifier}`)) yield b;
if (v !== null) {
for (let b of oe(i, `${y}-${v}`)) yield b;
if (m.modifier) for (let b of oe(i, `${y}-${v}${Qe(m.modifier)}`)) yield b;
}
for (let b of oe(i, `${y}-[${p}]`)) yield b;
if (m.modifier) for (let b of oe(i, `${y}-[${p}]${Qe(m.modifier)}`)) yield b;
}
}
}
}
function Tl(t, r, i) {
let e = null;
if (r.kind === "functional" && r.value?.kind === "arbitrary" && r.value.value.includes("var(--") ? e = r.value.value : r.kind === "arbitrary" && r.value.includes("var(--") && (e = r.value), e === null) return !0;
let n = t.candidatesToCss([t.printCandidate(i)]).join(`
`), o = !0;
return _(F(e), (l) => {
if (l.kind === "function" && l.value === "var") {
let c = l.nodes[0].value;
if (!new RegExp(`var\\(${c}[,)]\\s*`, "g").test(n) || n.includes(`${c}:`)) return o = !1, R.Stop;
}
}), o;
}
function Nl(t, r) {
if (t.kind !== "functional" || t.value?.kind !== "named") return t;
let i = r.designSystem, e = i.storage[Jt].get(r.signatureOptions), n = i.storage[ve].get(r.signatureOptions), o = i.storage[tt].get(r.signatureOptions), l = i.printCandidate(t), c = n.get(l);
if (typeof c != "string") return t;
for (let f of u(c, t)) if (o(t, f)) return f;
return t;
function* u(f, m) {
let d = e.get(f);
if (d.length > 1) {
let p;
for (let v of d) if (v[0] !== "-") {
if (p) return;
p = v;
}
if (p) for (let v of oe(i, p)) yield v;
return;
}
if (d.length === 0 && m.modifier) {
let p = {
...m,
modifier: null
}, v = n.get(i.printCandidate(p));
if (typeof v == "string") for (let h of u(v, p)) yield Object.assign({}, h, { modifier: m.modifier });
}
if (d.length === 1) for (let p of oe(i, d[0])) yield p;
}
}
var El = new Map([
["order-none", "order-0"],
["break-words", "wrap-break-word"],
["overflow-ellipsis", "text-ellipsis"]
]), Rl = new Map([[/^(-)?start-(.*?)$/, "$1inset-s-$2"], [/^(-)?end-(.*?)$/, "$1inset-e-$2"]]);
function* Ol(t) {
let r = El.get(t);
r && (yield r);
for (let [i, e] of Rl) {
let n = t.replace(i, e);
n !== t && (yield n);
}
}
function Pl(t, r) {
let i = r.designSystem, e = i.storage[tt].get(r.signatureOptions), n = bi(i, t);
for (let o of Ol(n)) {
if (!e(t, o)) continue;
let [l] = oe(i, o);
return l;
}
return t;
}
function Il(t, r) {
let i = r.designSystem, e = i.storage[Ct], n = i.storage[Ci], o = At(t);
for (let [l] of o) {
if (l.kind === "compound") continue;
let c = i.printVariant(l), u = e.get(c);
if (typeof u != "string") continue;
let f = n.get(u);
if (f.length !== 1) continue;
let m = f[0], d = i.parseVariant(m);
d !== null && pe(l, d);
}
return t;
}
function _l(t, r) {
let i = r.designSystem, e = i.storage[ve].get(r.signatureOptions);
if (t.kind === "functional" && t.value?.kind === "arbitrary" && t.value.dataType !== null) {
let n = i.printCandidate({
...t,
value: {
...t.value,
dataType: null
}
});
e.get(i.printCandidate(t)) === e.get(n) && (t.value.dataType = null);
}
return t;
}
function Dl(t, r) {
if (t.kind !== "functional" || t.value?.kind !== "arbitrary") return t;
let i = r.designSystem, e = i.storage[ve].get(r.signatureOptions), n = e.get(i.printCandidate(t));
if (n === null) return t;
for (let o of xi(t)) if (e.get(i.printCandidate({
...t,
value: o
})) === n) return t.value = o, t;
return t;
}
function Kl(t) {
let r = At(t);
for (let [i] of r) if (i.kind === "functional" && i.root === "data" && i.value?.kind === "arbitrary" && !i.value.value.includes("=")) i.value = {
kind: "named",
value: i.value.value
};
else if (i.kind === "functional" && i.root === "aria" && i.value?.kind === "arbitrary" && (i.value.value.endsWith("=true") || i.value.value.endsWith("=\"true\"") || i.value.value.endsWith("='true'"))) {
let [e, n] = d(i.value.value, "=");
if (e[e.length - 1] === "~" || e[e.length - 1] === "|" || e[e.length - 1] === "^" || e[e.length - 1] === "$" || e[e.length - 1] === "*") continue;
i.value = {
kind: "named",
value: i.value.value.slice(0, i.value.value.indexOf("="))
};
} else i.kind === "functional" && i.root === "supports" && i.value?.kind === "arbitrary" && /^[a-z-][a-z0-9-]*$/i.test(i.value.value) && (i.value = {
kind: "named",
value: i.value.value
});
return t;
}
function* xi(t, r = t.value?.value ?? "", i = /* @__PURE__ */ new Set()) {
if (i.has(r)) return;
if (i.add(r), yield {
kind: "named",
value: r,
fraction: null
}, r.endsWith("%") && ge$1(r.slice(0, -1)) && (yield {
kind: "named",
value: r.slice(0, -1),
fraction: null
}), r.includes("/")) {
let [o, l] = r.split("/");
u(o) && u(l) && (yield {
kind: "named",
value: o,
fraction: `${o}/${l}`
});
}
let e = /* @__PURE__ */ new Set();
for (let o of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g)) e.add(o[0].trim());
let n = Array.from(e).sort((o, l) => o.length - l.length);
for (let o of n) yield* xi(t, o, i);
}
function mi(t) {
return !t.some((r) => r.kind === "separator" && r.value.trim() === ",");
}
function kt(t) {
let r = t.value.trim();
return t.kind === "selector" && r[0] === "[" && r[r.length - 1] === "]";
}
function Ul(t, r) {
let i = [t], e = r.designSystem, n = e.storage[Ct], o = At(t);
for (let [l, c] of o) if (l.kind === "compound" && (l.root === "has" || l.root === "not" || l.root === "in") && l.modifier !== null && "modifier" in l.variant && (l.variant.modifier = l.modifier, l.modifier = null), l.kind === "arbitrary") {
if (l.relative) continue;
let u$3 = Oe(l.selector.trim());
if (!mi(u$3)) continue;
if (c === null && u$3.length === 3 && u$3[0].kind === "selector" && u$3[0].value === "&" && u$3[1].kind === "combinator" && u$3[1].value.trim() === ">" && u$3[2].kind === "selector" && u$3[2].value === "*") {
pe(l, e.parseVariant("*"));
continue;
}
if (c === null && u$3.length === 3 && u$3[0].kind === "selector" && u$3[0].value === "&" && u$3[1].kind === "combinator" && u$3[1].value.trim() === "" && u$3[2].kind === "selector" && u$3[2].value === "*") {
pe(l, e.parseVariant("**"));
continue;
}
if (c === null && u$3.length === 3 && u$3[1].kind === "combinator" && u$3[1].value.trim() === "" && u$3[2].kind === "selector" && u$3[2].value === "&") {
u$3.pop(), u$3.pop(), pe(l, e.parseVariant(`in-[${he(u$3)}]`));
continue;
}
if (c === null && u$3[0].kind === "selector" && (u$3[0].value === "@media" || u$3[0].value === "@supports")) {
let p = n.get(e.printVariant(l)), v = F(he(u$3)), h = !1;
if (_(v, (y) => {
if (y.kind === "word" && y.value === "not") return h = !0, R.Replace([]);
}), v = F(Y(v)), _(v, (y) => {
y.kind === "separator" && y.value !== " " && y.value.trim() === "" && (y.value = " ");
}), h) {
let y = e.parseVariant(`not-[${Y(v)}]`);
if (y === null) continue;
if (p === n.get(e.printVariant(y))) {
pe(l, y);
continue;
}
}
}
let f = null;
c === null && u$3.length === 3 && u$3[0].kind === "selector" && u$3[0].value.trim() === "&" && u$3[1].kind === "combinator" && u$3[1].value.trim() === ">" && u$3[2].kind === "selector" && (kt(u$3[2]) || u$3[2].value[0] === ":") && (u$3 = [u$3[2]], f = e.parseVariant("*")), c === null && u$3.length === 3 && u$3[0].kind === "selector" && u$3[0].value.trim() === "&" && u$3[1].kind === "combinator" && u$3[1].value.trim() === "" && u$3[2].kind === "selector" && (kt(u$3[2]) || u$3[2].value[0] === ":") && (u$3 = [u$3[2]], f = e.parseVariant("**"));
let m = u$3.filter((p) => !(p.kind === "selector" && p.value.trim() === "&"));
if (m.length !== 1) continue;
let d = m[0];
if (d.kind === "function" && d.value === ":is") {
if (!mi(d.nodes) || d.nodes.length !== 1 || !kt(d.nodes[0])) continue;
d = d.nodes[0];
}
if (d.kind === "function" && d.value[0] === ":" || d.kind === "selector" && d.value[0] === ":") {
let p = d, v = !1;
if (p.kind === "function" && p.value === ":not") {
if (v = !0, p.nodes.length !== 1 || p.nodes[0].kind !== "selector" && p.nodes[0].kind !== "function" || p.nodes[0].value[0] !== ":") continue;
p = p.nodes[0];
}
let h = ((b) => {
if (b === ":nth-child" && p.kind === "function" && p.nodes.length === 1 && p.nodes[0].kind === "value" && p.nodes[0].value === "odd") return v ? (v = !1, "even") : "odd";
if (b === ":nth-child" && p.kind === "function" && p.nodes.length === 1 && p.nodes[0].kind === "value" && p.nodes[0].value === "even") return v ? (v = !1, "odd") : "even";
for (let [T, A] of [
[":nth-child", "nth"],
[":nth-last-child", "nth-last"],
[":nth-of-type", "nth-of-type"],
[":nth-last-of-type", "nth-of-last-type"]
]) if (b === T && p.kind === "function" && p.nodes.length === 1) return p.nodes.length === 1 && p.nodes[0].kind === "value" && u(p.nodes[0].value) ? `${A}-${p.nodes[0].value}` : `${A}-[${he(p.nodes)}]`;
if (v) {
if (n.get(e.printVariant(l)) === n.get(`not-[${b}]`)) return `[&${b}]`;
}
return null;
})(p.value);
if (h === null) {
if (f) return pe(l, {
kind: "arbitrary",
selector: d.value,
relative: !1
}), [f, l];
continue;
}
v && (h = `not-${h}`);
let y = e.parseVariant(h);
if (y === null) continue;
pe(l, y);
} else if (kt(d)) {
let p = Yr(d.value);
if (p === null) continue;
if (p.attribute.startsWith("data-")) {
let v = p.attribute.slice(5);
pe(l, {
kind: "functional",
root: "data",
modifier: null,
value: p.value === null ? {
kind: "named",
value: v
} : {
kind: "arbitrary",
value: `${v}${p.operator}${p.quote ?? ""}${p.value}${p.quote ?? ""}${p.sensitivity ? ` ${p.sensitivity}` : ""}`
}
});
} else if (p.attribute.startsWith("aria-")) {
let v = p.attribute.slice(5);
pe(l, {
kind: "functional",
root: "aria",
modifier: null,
value: p.value === null ? {
kind: "arbitrary",
value: v
} : p.operator === "=" && p.value === "true" && p.sensitivity === null ? {
kind: "named",
value: v
} : {
kind: "arbitrary",
value: `${p.attribute}${p.operator}${p.quote ?? ""}${p.value}${p.quote ?? ""}${p.sensitivity ? ` ${p.sensitivity}` : ""}`
}
});
} else pe(l, {
kind: "arbitrary",
selector: d.value,
relative: !1
});
}
if (f) return [f, l];
}
return i;
}
function zl(t, r) {
if (t.kind !== "functional" || t.value?.kind !== "arbitrary") return t;
let e = r.designSystem.storage[tt].get(r.signatureOptions), n = F(t.value.value);
if (n.length === 1 && n[0].kind === "function" && n[0].value === "calc") {
let [o, l] = et(n);
if (o) {
let c = Ke(t);
c.value.value = Y(l), e(t, c) && (t = c, n = l);
}
}
if (t.root[0] === "-") {
if (n.length === 1 && n[0].kind === "function" && n[0].value === "var") return t;
let [l, c] = et(F(`calc(${t.value.value} * -1)`));
if (l) {
let u = Ke(t);
u.root = u.root.slice(1), u.value.value = Y(c), e(t, u) && (t = u, n = c);
}
}
if (n.length === 1 && n[0].kind === "function" && n[0].value === "calc") {
let o = n[0].nodes;
if (o.length === 5 && o[1].kind === "separator" && o[1].value === " " && o[2].kind === "word" && o[2].value === "*" && o[3].kind === "separator" && o[3].value === " ") {
let l = o[4].kind === "word" && o[4].value === "-1" ? o[0] : o[0].kind === "word" && o[0].value === "-1" ? o[4] : null;
if (l) {
let c = Ke(t);
c.root = `-${t.root}`, c.value.value = Y([l]), e(t, c) && (t = c);
}
}
}
return t;
}
function Ll(t, r) {
if (t.kind !== "functional" && t.kind !== "arbitrary" || t.modifier === null) return t;
let i = r.designSystem, e = i.storage[ve].get(r.signatureOptions), n = e.get(i.printCandidate(t)), o = t.modifier;
if (n === e.get(i.printCandidate({
...t,
modifier: null
}))) return t.modifier = null, t;
{
let l = {
kind: "named",
value: o.value.endsWith("%") ? o.value.includes(".") ? `${Number(o.value.slice(0, -1))}` : o.value.slice(0, -1) : o.value,
fraction: null
};
if (n === e.get(i.printCandidate({
...t,
modifier: l
}))) return t.modifier = l, t;
}
{
let l = {
kind: "named",
value: `${parseFloat(o.value) * 100}`,
fraction: null
};
if (n === e.get(i.printCandidate({
...t,
modifier: l
}))) return t.modifier = l, t;
}
return t;
}
var ve = Symbol();
function jl(t) {
return new z((r) => new z((i) => {
try {
i = t.theme.prefix && !i.startsWith(t.theme.prefix) ? `${t.theme.prefix}:${i}` : i;
let e = [q(".x", [W("@apply", i)])];
return ql(t, () => {
for (let o of t.parseCandidate(i)) t.compileAstNodes(o, 1);
Se(e, t);
}), Ai(t, e, r), ie(e);
} catch {
return Symbol();
}
}));
}
function Ai(t, r, i) {
let { rem: e } = i;
return _(r, {
enter(n, o) {
if (n.kind === "declaration") {
if (n.value === void 0 || n.property === "--tw-sort") return R.Replace([]);
if (n.property.startsWith("--tw-") && (o.parent?.nodes ?? []).some((d) => d.kind === "declaration" && n.value === d.value && n.important === d.important && !d.property.startsWith("--tw-"))) return R.Replace([]);
if (i.features & 1) {
let d = ei(n, i.features);
if (d) return R.Replace(d);
}
n.value.includes("var(") && (n.value = Ml(n.value, t));
let [c, u] = et(F(n.value), e), [f, m] = Gr(u);
(c || f) && (n.value = Y(m)), n.value = Ce(n.value);
} else {
if (n.kind === "context" || n.kind === "at-root") return R.Replace(n.nodes);
if (n.kind === "comment") return R.Replace([]);
if (n.kind === "at-rule" && n.name === "@property") return R.Replace([]);
}
},
exit(n) {
if (n.kind === "rule" || n.kind === "at-rule") {
if (n.nodes.length > 1) {
let o = /* @__PURE__ */ new Set();
for (let l = n.nodes.length - 1; l >= 0; l--) {
let c = n.nodes[l];
c.kind === "declaration" && c.value !== void 0 && (o.has(c.property) && n.nodes.splice(l, 1), o.add(c.property));
}
}
n.nodes.sort((o, l) => o.kind !== "declaration" || l.kind !== "declaration" ? 0 : o.property.localeCompare(l.property));
}
}
}), r;
}
function Ml(t, r) {
let i = !1, e = F(t), n = /* @__PURE__ */ new Set();
return _(e, (o) => {
if (o.kind !== "function" || o.value !== "var" || o.nodes.length !== 1 && o.nodes.length < 3) return;
let l = o.nodes[0].value;
r.theme.prefix && l.startsWith(`--${r.theme.prefix}-`) && (l = l.slice(`--${r.theme.prefix}-`.length));
let c = r.resolveThemeValue(l);
if (!n.has(l) && (n.add(l), c !== void 0 && (o.nodes.length === 1 && (i = !0, o.nodes.push(...F(`,${c}`))), o.nodes.length >= 3))) {
if (Y(o.nodes) === `${o.nodes[0].value},${c}`) return i = !0, R.Replace(F(c));
}
}), i ? Y(e) : t;
}
var Ht = Symbol();
function Fl() {
return new z((t) => new z((r) => new z((i) => /* @__PURE__ */ new Set())));
}
var xt = Symbol();
function Wl(t) {
return new z((r) => new z((i) => {
let e = new z((o) => /* @__PURE__ */ new Set());
t.theme.prefix && !i.startsWith(t.theme.prefix) && (i = `${t.theme.prefix}:${i}`);
let n = t.parseCandidate(i);
return n.length === 0 || _(Ai(t, t.compileAstNodes(n[0]).map((o) => te(o.node)), r), (o) => {
o.kind === "declaration" && (e.get(o.property).add(o.value), t.storage[Ht].get(r).get(o.property).get(o.value).add(i));
}), e;
}));
}
var Jt = Symbol();
function Bl(t) {
return new z((r) => {
let i = t.storage[ve].get(r), e = new z(() => []);
for (let [n, o] of t.getClassList()) {
let l = i.get(n);
if (typeof l == "string") {
if (n[0] === "-" && n.endsWith("-0")) {
let c = i.get(n.slice(1));
if (typeof c == "string" && l === c) continue;
}
e.get(l).push(n), t.storage[xt].get(r).get(n);
for (let c of o.modifiers) {
if (ge$1(c)) continue;
let u = `${n}/${c}`, f = i.get(u);
typeof f == "string" && (e.get(f).push(u), t.storage[xt].get(r).get(u));
}
}
}
return e;
});
}
var Ct = Symbol();
function Yl(t) {
return new z((r) => {
try {
r = t.theme.prefix && !r.startsWith(t.theme.prefix) ? `${t.theme.prefix}:${r}` : r;
let i = [q(".x", [W("@apply", `${r}:flex`)])];
return Se(i, t), _(i, (n) => {
if (n.kind === "at-rule" && n.params.includes(" ")) n.params = n.params.replaceAll(" ", "");
else if (n.kind === "rule") {
let o = Oe(n.selector), l = !1;
_(o, (c) => {
if (c.kind === "separator" && c.value !== " ") c.value = c.value.trim(), l = !0;
else if (c.kind === "function" && c.value === ":is") {
if (c.nodes.length === 1) return l = !0, R.Replace(c.nodes);
if (c.nodes.length === 2 && c.nodes[0].kind === "selector" && c.nodes[0].value === "*" && c.nodes[1].kind === "selector" && c.nodes[1].value[0] === ":") return l = !0, R.Replace(c.nodes[1]);
} else c.kind === "function" && c.value[0] === ":" && c.nodes[0]?.kind === "selector" && c.nodes[0]?.value[0] === ":" && (l = !0, c.nodes.unshift({
kind: "selector",
value: "*"
}));
}), l && (n.selector = he(o));
}
}), ie(i);
} catch {
return Symbol();
}
});
}
var Ci = Symbol();
function Gl(t) {
let r = t.storage[Ct], i = new z(() => []);
for (let [e, n] of t.variants.entries()) if (n.kind === "static") {
let o = r.get(e);
if (typeof o != "string") continue;
i.get(o).push(e);
}
return i;
}
function ql(t, r) {
let i = t.theme.values.get, e = /* @__PURE__ */ new Set();
t.theme.values.get = (n) => {
let o = i.call(t.theme.values, n);
return o === void 0 || o.options & 1 && (e.add(o), o.options &= -2), o;
};
try {
return r();
} finally {
t.theme.values.get = i;
for (let n of e) n.options |= 1;
}
}
function* Zl(t) {
let r = t.length, i = 1n << BigInt(r);
for (let e = r; e >= 2; e--) {
let n = (1n << BigInt(e)) - 1n;
for (; n < i;) {
let o = [];
for (let u = 0; u < r; u++) n >> BigInt(u) & 1n && o.push(t[u]);
yield o;
let l = n & -n, c = n + l;
n = ((c ^ n) >> 2n) / l | c;
}
}
}
function gi(t, r) {
if (typeof t.intersection == "function") return t.intersection(r);
if (t.size === 0 || r.size === 0) return /* @__PURE__ */ new Set();
let i = new Set(t);
for (let e of r) i.has(e) || i.delete(e);
return i;
}
var Jl = /^\d+\/\d+$/;
function $i(t) {
let r = new z((n) => ({
name: n,
utility: n,
fraction: !1,
modifiers: []
}));
for (let n of t.utilities.keys("static")) {
if (t.utilities.getCompletions(n).length === 0) continue;
let l = r.get(n);
l.fraction = !1, l.modifiers = [];
}
for (let n of t.utilities.keys("functional")) {
let o = t.utilities.getCompletions(n);
for (let l of o) for (let c of l.values) {
let u = c !== null && Jl.test(c), f = c === null ? n : `${n}-${c}`, m = r.get(f);
if (m.utility = n, m.fraction ||= u, m.modifiers.push(...l.modifiers), l.supportsNegative) {
let d = r.get(`-${f}`);
d.utility = `-${n}`, d.fraction ||= u, d.modifiers.push(...l.modifiers);
}
m.modifiers = Array.from(new Set(m.modifiers));
}
}
if (r.size === 0) return [];
let i = Array.from(r.values());
return i.sort((n, o) => wt(n.name, o.name)), Ql(i);
}
function Ql(t) {
let r = [], i = null, e = /* @__PURE__ */ new Map(), n = new z(() => []);
for (let l of t) {
let { utility: c, fraction: u } = l;
i || (i = {
utility: c,
items: []
}, e.set(c, i)), c !== i.utility && (r.push(i), i = {
utility: c,
items: []
}, e.set(c, i)), u ? n.get(c).push(l) : i.items.push(l);
}
i && r[r.length - 1] !== i && r.push(i);
for (let [l, c] of n) {
let u = e.get(l);
u && u.items.push(...c);
}
let o = [];
for (let l of r) for (let c of l.items) o.push([c.name, { modifiers: c.modifiers }]);
return o;
}
function Si(t) {
let r = [];
for (let [e, n] of t.variants.entries()) {
let c = function({ value: u, modifier: f } = {}) {
let m = e;
u && (m += o ? `-${u}` : u), f && (m += `/${f}`);
let d = t.parseVariant(m);
if (!d) return [];
let p = q(".__placeholder__", []);
if (Fe(p, d, t.variants) === null) return [];
let v = [];
return _(p.nodes, { exit(h, y) {
if (h.kind !== "rule" && h.kind !== "at-rule" || h.nodes.length > 0) return;
let b = y.path();
b.push(h), b.sort((k, D) => {
let N = k.kind === "at-rule", E = D.kind === "at-rule";
return N && !E ? -1 : !N && E ? 1 : 0;
});
let T = b.flatMap((k) => k.kind === "rule" ? k.selector === "&" ? [] : [k.selector] : k.kind === "at-rule" ? [`${k.name} ${k.params}`] : []), A = "";
for (let k = T.length - 1; k >= 0; k--) A = A === "" ? T[k] : `${T[k]} { ${A} }`;
v.push(A);
} }), v;
};
if (n.kind === "arbitrary") continue;
let o = e !== "@", l = t.variants.getCompletions(e);
switch (n.kind) {
case "static":
r.push({
name: e,
values: l,
isArbitrary: !1,
hasDash: o,
selectors: c
});
break;
case "functional":
r.push({
name: e,
values: l,
isArbitrary: !0,
hasDash: o,
selectors: c
});
break;
case "compound":
r.push({
name: e,
values: l,
isArbitrary: !0,
hasDash: o,
selectors: c
});
break;
}
}
return r;
}
function Vi(t, r) {
let { astNodes: i, nodeSorting: e } = Ve(Array.from(r), t), n = new Map(r.map((l) => [l, null])), o = 0n;
for (let l of i) {
let c = e.get(l)?.candidate;
c && n.set(c, n.get(c) ?? o++);
}
return r.map((l) => [l, n.get(l) ?? null]);
}
var $t = /^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/;
var Qt = class {
compareFns = /* @__PURE__ */ new Map();
variants = /* @__PURE__ */ new Map();
completions = /* @__PURE__ */ new Map();
groupOrder = null;
lastOrder = 0;
static(r, i, { compounds: e, order: n } = {}) {
this.set(r, {
kind: "static",
applyFn: i,
compoundsWith: 0,
compounds: e ?? 2,
order: n
});
}
fromAst(r, i, e) {
let n = [], o = !1;
_(i, (l) => {
l.kind === "rule" ? n.push(l.selector) : l.kind === "at-rule" && l.name === "@variant" ? o = !0 : l.kind === "at-rule" && l.name !== "@slot" && n.push(`${l.name} ${l.params}`);
}), this.static(r, (l) => {
let c = i.map(te);
o && rt(c, e), Xt(c, l.nodes), l.nodes = c;
}, { compounds: Ie(n) });
}
functional(r, i, { compounds: e, order: n } = {}) {
this.set(r, {
kind: "functional",
applyFn: i,
compoundsWith: 0,
compounds: e ?? 2,
order: n
});
}
compound(r, i, e, { compounds: n, order: o } = {}) {
this.set(r, {
kind: "compound",
applyFn: e,
compoundsWith: i,
compounds: n ?? 2,
order: o
});
}
group(r, i) {
this.groupOrder = this.nextOrder(), i && this.compareFns.set(this.groupOrder, i), r(), this.groupOrder = null;
}
has(r) {
return this.variants.has(r);
}
get(r) {
return this.variants.get(r);
}
kind(r) {
return this.variants.get(r)?.kind;
}
compoundsWith(r, i) {
let e = this.variants.get(r), n = typeof i == "string" ? this.variants.get(i) : i.kind === "arbitrary" ? { compounds: Ie([i.selector]) } : this.variants.get(i.root);
return !(!e || !n || e.kind !== "compound" || n.compounds === 0 || e.compoundsWith === 0 || (e.compoundsWith & n.compounds) === 0);
}
suggest(r, i) {
this.completions.set(r, i);
}
getCompletions(r) {
return this.completions.get(r)?.() ?? [];
}
compare(r, i) {
if (r === i) return 0;
if (r === null) return -1;
if (i === null) return 1;
if (r.kind === "arbitrary" && i.kind === "arbitrary") return r.selector < i.selector ? -1 : 1;
if (r.kind === "arbitrary") return 1;
if (i.kind === "arbitrary") return -1;
let e = this.variants.get(r.root).order, o = e - this.variants.get(i.root).order;
if (o !== 0) return o;
if (r.kind === "compound" && i.kind === "compound") {
let f = this.compare(r.variant, i.variant);
return f !== 0 ? f : r.modifier && i.modifier ? r.modifier.value < i.modifier.value ? -1 : 1 : r.modifier ? 1 : i.modifier ? -1 : 0;
}
let l = this.compareFns.get(e);
if (l !== void 0) return l(r, i);
if (r.root !== i.root) return r.root < i.root ? -1 : 1;
let c = r.value, u = i.value;
return c === null ? -1 : u === null || c.kind === "arbitrary" && u.kind !== "arbitrary" ? 1 : c.kind !== "arbitrary" && u.kind === "arbitrary" || c.value < u.value ? -1 : 1;
}
keys() {
return this.variants.keys();
}
entries() {
return this.variants.entries();
}
set(r, { kind: i, applyFn: e, compounds: n, compoundsWith: o, order: l }) {
let c = this.variants.get(r);
c ? Object.assign(c, {
kind: i,
applyFn: e,
compounds: n
}) : (l === void 0 && (this.lastOrder = this.nextOrder(), l = this.lastOrder), this.variants.set(r, {
kind: i,
applyFn: e,
order: l,
compoundsWith: o,
compounds: n
}));
}
nextOrder() {
return this.groupOrder ?? this.lastOrder + 1;
}
};
function Ie(t) {
let r = 0;
for (let i of t) {
if (i[0] === "@") {
if (!i.startsWith("@media") && !i.startsWith("@supports") && !i.startsWith("@container")) return 0;
r |= 1;
continue;
}
if (i.includes("::")) return 0;
r |= 2;
}
return r;
}
function Ni(t) {
let r = new Qt();
function i(f, m, { compounds: d } = {}) {
d = d ?? Ie(m), r.static(f, (p) => {
p.nodes = m.map((v) => J(v, p.nodes));
}, { compounds: d });
}
i("*", [":is(& > *)"], { compounds: 0 }), i("**", [":is(& *)"], { compounds: 0 });
function e(f, m) {
return m.map((d$6) => {
d$6 = d$6.trim();
let p = d(d$6, " ");
return p[0] === "not" ? p.slice(1).join(" ") : f === "@container" ? p[0][0] === "(" ? `not ${d$6}` : p[1] === "not" ? `${p[0]} ${p.slice(2).join(" ")}` : `${p[0]} not ${p.slice(1).join(" ")}` : `not ${d$6}`;
});
}
let n = [
"@media",
"@supports",
"@container"
];
function o(f) {
for (let m of n) {
if (m !== f.name) continue;
let d$7 = d(f.params, ",");
return d$7.length > 1 ? null : (d$7 = e(f.name, d$7), W(f.name, d$7.join(", ")));
}
return null;
}
function l(f) {
return f.includes("::") ? null : `&:not(${d(f, ",").map((d) => (d = d.replaceAll("&", "*"), d)).join(", ")})`;
}
r.compound("not", 3, (f, m) => {
if (m.variant.kind === "arbitrary" && m.variant.relative || m.modifier) return null;
let d = !1;
if (_([f], (p, v) => {
if (p.kind !== "rule" && p.kind !== "at-rule") return R.Continue;
if (p.nodes.length > 0) return R.Continue;
let h = [], y = [], b = v.path();
b.push(p);
for (let A of b) A.kind === "at-rule" ? h.push(A) : A.kind === "rule" && y.push(A);
if (h.length > 1) return R.Stop;
if (y.length > 1) return R.Stop;
let T = [];
for (let A of y) {
let k = l(A.selector);
if (!k) return d = !1, R.Stop;
T.push(q(k, []));
}
for (let A of h) {
let k = o(A);
if (!k) return d = !1, R.Stop;
T.push(k);
}
return Object.assign(f, q("&", T)), d = !0, R.Skip;
}), f.kind === "rule" && f.selector === "&" && f.nodes.length === 1 && Object.assign(f, f.nodes[0]), !d) return null;
}), r.suggest("not", () => Array.from(r.keys()).filter((f) => r.compoundsWith("not", f))), r.compound("group", 2, (f, m) => {
if (m.variant.kind === "arbitrary" && m.variant.relative) return null;
let d$8 = m.modifier ? `:where(.${t.prefix ? `${t.prefix}\\:` : ""}group\\/${m.modifier.value})` : `:where(.${t.prefix ? `${t.prefix}\\:` : ""}group)`, p = !1;
if (_([f], (v, h) => {
if (v.kind !== "rule") return R.Continue;
for (let b of h.path()) if (b.kind === "rule") return p = !1, R.Stop;
let y = v.selector.replaceAll("&", d$8);
d(y, ",").length > 1 && (y = `:is(${y})`), v.selector = `&:is(${y} *)`, p = !0;
}), !p) return null;
}), r.suggest("group", () => Array.from(r.keys()).filter((f) => r.compoundsWith("group", f))), r.compound("peer", 2, (f, m) => {
if (m.variant.kind === "arbitrary" && m.variant.relative) return null;
let d$9 = m.modifier ? `:where(.${t.prefix ? `${t.prefix}\\:` : ""}peer\\/${m.modifier.value})` : `:where(.${t.prefix ? `${t.prefix}\\:` : ""}peer)`, p = !1;
if (_([f], (v, h) => {
if (v.kind !== "rule") return R.Continue;
for (let b of h.path()) if (b.kind === "rule") return p = !1, R.Stop;
let y = v.selector.replaceAll("&", d$9);
d(y, ",").length > 1 && (y = `:is(${y})`), v.selector = `&:is(${y} ~ *)`, p = !0;
}), !p) return null;
}), r.suggest("peer", () => Array.from(r.keys()).filter((f) => r.compoundsWith("peer", f))), i("first-letter", ["&::first-letter"]), i("first-line", ["&::first-line"]), i("marker", [
"& *::marker",
"&::marker",
"& *::-webkit-details-marker",
"&::-webkit-details-marker"
]), i("selection", ["& *::selection", "&::selection"]), i("file", ["&::file-selector-button"]), i("placeholder", ["&::placeholder"]), i("backdrop", ["&::backdrop"]), i("details-content", ["&::details-content"]);
{
let f = function() {
return B([W("@property", "--tw-content", [
a("syntax", "\"*\""),
a("initial-value", "\"\""),
a("inherits", "false")
])]);
};
r.static("before", (m) => {
m.nodes = [q("&::before", [
f(),
a("content", "var(--tw-content)"),
...m.nodes
])];
}, { compounds: 0 }), r.static("after", (m) => {
m.nodes = [q("&::after", [
f(),
a("content", "var(--tw-content)"),
...m.nodes
])];
}, { compounds: 0 });
}
i("first", ["&:first-child"]), i("last", ["&:last-child"]), i("only", ["&:only-child"]), i("odd", ["&:nth-child(odd)"]), i("even", ["&:nth-child(even)"]), i("first-of-type", ["&:first-of-type"]), i("last-of-type", ["&:last-of-type"]), i("only-of-type", ["&:only-of-type"]), i("visited", ["&:visited"]), i("target", ["&:target"]), i("open", ["&:is([open], :popover-open, :open)"]), i("default", ["&:default"]), i("checked", ["&:checked"]), i("indeterminate", ["&:indeterminate"]), i("placeholder-shown", ["&:placeholder-shown"]), i("autofill", ["&:autofill"]), i("optional", ["&:optional"]), i("required", ["&:required"]), i("valid", ["&:valid"]), i("invalid", ["&:invalid"]), i("user-valid", ["&:user-valid"]), i("user-invalid", ["&:user-invalid"]), i("in-range", ["&:in-range"]), i("out-of-range", ["&:out-of-range"]), i("read-only", ["&:read-only"]), i("empty", ["&:empty"]), i("focus-within", ["&:focus-within"]), r.static("hover", (f) => {
f.nodes = [q("&:hover", [W("@media", "(hover: hover)", f.nodes)])];
}), i("focus", ["&:focus"]), i("focus-visible", ["&:focus-visible"]), i("active", ["&:active"]), i("enabled", ["&:enabled"]), i("disabled", ["&:disabled"]), i("inert", ["&:is([inert], [inert] *)"]), r.compound("in", 2, (f, m) => {
if (m.modifier) return null;
let d = !1;
if (_([f], (p, v) => {
if (p.kind !== "rule") return R.Continue;
for (let h of v.path()) if (h.kind === "rule") return d = !1, R.Stop;
p.selector = `:where(${p.selector.replaceAll("&", "*")}) &`, d = !0;
}), !d) return null;
}), r.suggest("in", () => Array.from(r.keys()).filter((f) => r.compoundsWith("in", f))), r.compound("has", 2, (f, m) => {
if (m.modifier) return null;
let d = !1;
if (_([f], (p, v) => {
if (p.kind !== "rule") return R.Continue;
for (let h of v.path()) if (h.kind === "rule") return d = !1, R.Stop;
p.selector = `&:has(${p.selector.replaceAll("&", "*")})`, d = !0;
}), !d) return null;
}), r.suggest("has", () => Array.from(r.keys()).filter((f) => r.compoundsWith("has", f))), r.functional("aria", (f, m) => {
if (!m.value || m.modifier) return null;
m.value.kind === "arbitrary" ? f.nodes = [q(`&[aria-${Ti(m.value.value)}]`, f.nodes)] : f.nodes = [q(`&[aria-${m.value.value}="true"]`, f.nodes)];
}), r.suggest("aria", () => [
"busy",
"checked",
"disabled",
"expanded",
"hidden",
"pressed",
"readonly",
"required",
"selected"
]), r.functional("data", (f, m) => {
if (!m.value || m.modifier) return null;
f.nodes = [q(`&[data-${Ti(m.value.value)}]`, f.nodes)];
}), r.functional("nth", (f, m) => {
if (!m.value || m.modifier || m.value.kind === "named" && !u(m.value.value)) return null;
f.nodes = [q(`&:nth-child(${m.value.value})`, f.nodes)];
}), r.functional("nth-last", (f, m) => {
if (!m.value || m.modifier || m.value.kind === "named" && !u(m.value.value)) return null;
f.nodes = [q(`&:nth-last-child(${m.value.value})`, f.nodes)];
}), r.functional("nth-of-type", (f, m) => {
if (!m.value || m.modifier || m.value.kind === "named" && !u(m.value.value)) return null;
f.nodes = [q(`&:nth-of-type(${m.value.value})`, f.nodes)];
}), r.functional("nth-last-of-type", (f, m) => {
if (!m.value || m.modifier || m.value.kind === "named" && !u(m.value.value)) return null;
f.nodes = [q(`&:nth-last-of-type(${m.value.value})`, f.nodes)];
}), r.functional("supports", (f, m) => {
if (!m.value || m.modifier) return null;
let d = m.value.value;
if (d === null) return null;
if (/^[\w-]*\s*\(/.test(d)) {
f.nodes = [W("@supports", d.replace(/\b(and|or|not)\b/g, " $1 "), f.nodes)];
return;
}
d.includes(":") || (d = `${d}: var(--tw)`), (d[0] !== "(" || d[d.length - 1] !== ")") && (d = `(${d})`), f.nodes = [W("@supports", d, f.nodes)];
}, { compounds: 1 }), i("motion-safe", ["@media (prefers-reduced-motion: no-preference)"]), i("motion-reduce", ["@media (prefers-reduced-motion: reduce)"]), i("contrast-more", ["@media (prefers-contrast: more)"]), i("contrast-less", ["@media (prefers-contrast: less)"]);
{
let f = function(m, d, p, v) {
if (m === d) return 0;
let h = v.get(m);
if (h === null) return p === "asc" ? -1 : 1;
let y = v.get(d);
return y === null ? p === "asc" ? 1 : -1 : Ee(h, y, p);
};
{
let m = t.namespace("--breakpoint"), d = new z((p) => {
switch (p.kind) {
case "static": return t.resolveValue(p.root, ["--breakpoint"]) ?? null;
case "functional": {
if (!p.value || p.modifier) return null;
let v = null;
return p.value.kind === "arbitrary" ? v = p.value.value : p.value.kind === "named" && (v = t.resolveValue(p.value.value, ["--breakpoint"])), !v || v.includes("var(") ? null : v;
}
case "arbitrary":
case "compound": return null;
}
});
r.group(() => {
r.functional("max", (p, v) => {
if (v.modifier) return null;
let h = d.get(v);
if (h === null) return null;
p.nodes = [W("@media", `(width < ${h})`, p.nodes)];
}, { compounds: 1 });
}, (p, v) => f(p, v, "desc", d)), r.suggest("max", () => Array.from(m.keys()).filter((p) => p !== null)), r.group(() => {
for (let [p, v] of t.namespace("--breakpoint")) p !== null && r.static(p, (h) => {
h.nodes = [W("@media", `(width >= ${v})`, h.nodes)];
}, { compounds: 1 });
r.functional("min", (p, v) => {
if (v.modifier) return null;
let h = d.get(v);
if (h === null) return null;
p.nodes = [W("@media", `(width >= ${h})`, p.nodes)];
}, { compounds: 1 });
}, (p, v) => f(p, v, "asc", d)), r.suggest("min", () => Array.from(m.keys()).filter((p) => p !== null));
}
{
let m = t.namespace("--container"), d = new z((p) => {
switch (p.kind) {
case "functional": {
if (p.value === null) return null;
let v = null;
return p.value.kind === "arbitrary" ? v = p.value.value : p.value.kind === "named" && (v = t.resolveValue(p.value.value, ["--container"])), !v || v.includes("var(") ? null : v;
}
case "static":
case "arbitrary":
case "compound": return null;
}
});
r.group(() => {
r.functional("@max", (p, v) => {
let h = d.get(v);
if (h === null) return null;
p.nodes = [W("@container", v.modifier ? `${v.modifier.value} (width < ${h})` : `(width < ${h})`, p.nodes)];
}, { compounds: 1 });
}, (p, v) => f(p, v, "desc", d)), r.suggest("@max", () => Array.from(m.keys()).filter((p) => p !== null)), r.group(() => {
r.functional("@", (p, v) => {
let h = d.get(v);
if (h === null) return null;
p.nodes = [W("@container", v.modifier ? `${v.modifier.value} (width >= ${h})` : `(width >= ${h})`, p.nodes)];
}, { compounds: 1 }), r.functional("@min", (p, v) => {
let h = d.get(v);
if (h === null) return null;
p.nodes = [W("@container", v.modifier ? `${v.modifier.value} (width >= ${h})` : `(width >= ${h})`, p.nodes)];
}, { compounds: 1 });
}, (p, v) => f(p, v, "asc", d)), r.suggest("@min", () => Array.from(m.keys()).filter((p) => p !== null)), r.suggest("@", () => Array.from(m.keys()).filter((p) => p !== null));
}
}
return i("portrait", ["@media (orientation: portrait)"]), i("landscape", ["@media (orientation: landscape)"]), i("ltr", ["&:where(:dir(ltr), [dir=\"ltr\"], [dir=\"ltr\"] *)"]), i("rtl", ["&:where(:dir(rtl), [dir=\"rtl\"], [dir=\"rtl\"] *)"]), i("dark", ["@media (prefers-color-scheme: dark)"]), i("starting", ["@starting-style"]), i("print", ["@media print"]), i("forced-colors", ["@media (forced-colors: active)"]), i("inverted-colors", ["@media (inverted-colors: inverted)"]), i("pointer-none", ["@media (pointer: none)"]), i("pointer-coarse", ["@media (pointer: coarse)"]), i("pointer-fine", ["@media (pointer: fine)"]), i("any-pointer-none", ["@media (any-pointer: none)"]), i("any-pointer-coarse", ["@media (any-pointer: coarse)"]), i("any-pointer-fine", ["@media (any-pointer: fine)"]), i("noscript", ["@media (scripting: none)"]), r;
}
function Ti(t) {
if (t.includes("=")) {
let [r, ...i] = d(t, "="), e = i.join("=").trim();
if (e[0] === "'" || e[0] === "\"") return t;
if (e.length > 1) {
let n = e[e.length - 1];
if (e[e.length - 2] === " " && (n === "i" || n === "I" || n === "s" || n === "S")) return `${r}="${e.slice(0, -2)}" ${n}`;
}
return `${r}="${e}"`;
}
return t;
}
function Xt(t, r) {
_(t, (i) => {
if (i.kind === "at-rule" && i.name === "@slot") return R.ReplaceSkip(r);
if (i.kind === "at-rule" && (i.name === "@keyframes" || i.name === "@property")) return Object.assign(i, B([W(i.name, i.params, i.nodes)])), R.Skip;
});
}
function rt(t, r) {
let i = 0;
return _(t, (e) => {
if (e.kind !== "at-rule" || e.name !== "@variant") return;
let n = q("&", e.nodes), o = e.params, l = r.parseVariant(o);
if (l === null) throw new Error(`Cannot use \`@variant\` with unknown variant: ${o}`);
if (Fe(n, l, r.variants) === null) throw new Error(`Cannot use \`@variant\` with variant: ${o}`);
return i |= 32, R.Replace(n);
}), i;
}
function Ei(t, r) {
let i = jr(t), e = Ni(t), n = new z((d) => Ir(d, m)), o = new z((d) => Array.from(Pr(d, m))), l = new z((d) => new z((p) => {
let v = Ri(p, m, d);
try {
Ue(v.map(({ node: h }) => h), m), rt(v.map(({ node: h }) => h), m);
} catch {
return [];
}
return v;
})), c = new z((d) => {
for (let p of pt(d)) t.markUsedVariable(p);
});
function u(d) {
let p = [];
for (let v of d) {
let h = !0, { astNodes: y } = Ve([v], m, { onInvalidCandidate() {
h = !1;
} });
r && _(y, (b) => (b.src ??= r, R.Continue)), y = Ne(y, m, 0), p.push(h ? y : []);
}
return p;
}
function f(d) {
return u(d).map((p) => p.length > 0 ? ie(p) : null);
}
let m = {
theme: t,
utilities: i,
variants: e,
invalidCandidates: /* @__PURE__ */ new Set(),
important: !1,
candidatesToCss: f,
candidatesToAst: u,
getClassOrder(d) {
return Vi(this, d);
},
getClassList() {
return $i(this);
},
getVariants() {
return Si(this);
},
parseCandidate(d) {
return o.get(d);
},
parseVariant(d) {
return n.get(d);
},
compileAstNodes(d, p = 1) {
return l.get(p).get(d);
},
printCandidate(d) {
return Dr(m, d);
},
printVariant(d) {
return dt(d);
},
getVariantOrder() {
let d = Array.from(n.values());
d.sort((y, b) => this.variants.compare(y, b));
let p = /* @__PURE__ */ new Map(), v, h = 0;
for (let y of d) y !== null && (v !== void 0 && this.variants.compare(v, y) !== 0 && h++, p.set(y, h), v = y);
return p;
},
resolveThemeValue(d, p = !0) {
let v = d.lastIndexOf("/"), h = null;
v !== -1 && (h = d.slice(v + 1).trim(), d = d.slice(0, v).trim());
let y = t.resolve(null, [d], p ? 1 : 0) ?? void 0;
return h && y ? Q(y, h) : y;
},
trackUsedVariables(d) {
c.get(d);
},
canonicalizeCandidates(d, p) {
return qt(this, d, p);
},
storage: {}
};
return m;
}
var er = [
"container-type",
"pointer-events",
"visibility",
"position",
"inset",
"inset-inline",
"inset-block",
"inset-inline-start",
"inset-inline-end",
"inset-block-start",
"inset-block-end",
"top",
"right",
"bottom",
"left",
"isolation",
"z-index",
"order",
"grid-column",
"grid-column-start",
"grid-column-end",
"grid-row",
"grid-row-start",
"grid-row-end",
"float",
"clear",
"--tw-container-component",
"margin",
"margin-inline",
"margin-block",
"margin-inline-start",
"margin-inline-end",
"margin-block-start",
"margin-block-end",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"box-sizing",
"display",
"field-sizing",
"aspect-ratio",
"height",
"max-height",
"min-height",
"width",
"max-width",
"min-width",
"flex",
"flex-shrink",
"flex-grow",
"flex-basis",
"table-layout",
"caption-side",
"border-collapse",
"border-spacing",
"transform-origin",
"translate",
"--tw-translate-x",
"--tw-translate-y",
"--tw-translate-z",
"scale",
"--tw-scale-x",
"--tw-scale-y",
"--tw-scale-z",
"rotate",
"--tw-rotate-x",
"--tw-rotate-y",
"--tw-rotate-z",
"--tw-skew-x",
"--tw-skew-y",
"transform",
"animation",
"cursor",
"touch-action",
"--tw-pan-x",
"--tw-pan-y",
"--tw-pinch-zoom",
"resize",
"scroll-snap-type",
"--tw-scroll-snap-strictness",
"scroll-snap-align",
"scroll-snap-stop",
"scroll-margin",
"scroll-margin-inline",
"scroll-margin-block",
"scroll-margin-inline-start",
"scroll-margin-inline-end",
"scroll-margin-block-start",
"scroll-margin-block-end",
"scroll-margin-top",
"scroll-margin-right",
"scroll-margin-bottom",
"scroll-margin-left",
"scroll-padding",
"scroll-padding-inline",
"scroll-padding-block",
"scroll-padding-inline-start",
"scroll-padding-inline-end",
"scroll-padding-block-start",
"scroll-padding-block-end",
"scroll-padding-top",
"scroll-padding-right",
"scroll-padding-bottom",
"scroll-padding-left",
"list-style-position",
"list-style-type",
"list-style-image",
"appearance",
"columns",
"break-before",
"break-inside",
"break-after",
"grid-auto-columns",
"grid-auto-flow",
"grid-auto-rows",
"grid-template-columns",
"grid-template-rows",
"flex-direction",
"flex-wrap",
"place-content",
"place-items",
"align-content",
"align-items",
"justify-content",
"justify-items",
"gap",
"column-gap",
"row-gap",
"--tw-space-x-reverse",
"--tw-space-y-reverse",
"divide-x-width",
"divide-y-width",
"--tw-divide-y-reverse",
"divide-style",
"divide-color",
"place-self",
"align-self",
"justify-self",
"overflow",
"overflow-x",
"overflow-y",
"overscroll-behavior",
"overscroll-behavior-x",
"overscroll-behavior-y",
"scroll-behavior",
"border-radius",
"border-start-radius",
"border-end-radius",
"border-top-radius",
"border-right-radius",
"border-bottom-radius",
"border-left-radius",
"border-start-start-radius",
"border-start-end-radius",
"border-end-end-radius",
"border-end-start-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-width",
"border-inline-width",
"border-block-width",
"border-inline-start-width",
"border-inline-end-width",
"border-block-start-width",
"border-block-end-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-style",
"border-inline-style",
"border-block-style",
"border-inline-start-style",
"border-inline-end-style",
"border-block-start-style",
"border-block-end-style",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-color",
"border-inline-color",
"border-block-color",
"border-inline-start-color",
"border-inline-end-color",
"border-block-start-color",
"border-block-end-color",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"background-color",
"background-image",
"--tw-gradient-position",
"--tw-gradient-stops",
"--tw-gradient-via-stops",
"--tw-gradient-from",
"--tw-gradient-from-position",
"--tw-gradient-via",
"--tw-gradient-via-position",
"--tw-gradient-to",
"--tw-gradient-to-position",
"mask-image",
"--tw-mask-top",
"--tw-mask-top-from-color",
"--tw-mask-top-from-position",
"--tw-mask-top-to-color",
"--tw-mask-top-to-position",
"--tw-mask-right",
"--tw-mask-right-from-color",
"--tw-mask-right-from-position",
"--tw-mask-right-to-color",
"--tw-mask-right-to-position",
"--tw-mask-bottom",
"--tw-mask-bottom-from-color",
"--tw-mask-bottom-from-position",
"--tw-mask-bottom-to-color",
"--tw-mask-bottom-to-position",
"--tw-mask-left",
"--tw-mask-left-from-color",
"--tw-mask-left-from-position",
"--tw-mask-left-to-color",
"--tw-mask-left-to-position",
"--tw-mask-linear",
"--tw-mask-linear-position",
"--tw-mask-linear-from-color",
"--tw-mask-linear-from-position",
"--tw-mask-linear-to-color",
"--tw-mask-linear-to-position",
"--tw-mask-radial",
"--tw-mask-radial-shape",
"--tw-mask-radial-size",
"--tw-mask-radial-position",
"--tw-mask-radial-from-color",
"--tw-mask-radial-from-position",
"--tw-mask-radial-to-color",
"--tw-mask-radial-to-position",
"--tw-mask-conic",
"--tw-mask-conic-position",
"--tw-mask-conic-from-color",
"--tw-mask-conic-from-position",
"--tw-mask-conic-to-color",
"--tw-mask-conic-to-position",
"box-decoration-break",
"background-size",
"background-attachment",
"background-clip",
"background-position",
"background-repeat",
"background-origin",
"mask-composite",
"mask-mode",
"mask-type",
"mask-size",
"mask-clip",
"mask-position",
"mask-repeat",
"mask-origin",
"fill",
"stroke",
"stroke-width",
"object-fit",
"object-position",
"padding",
"padding-inline",
"padding-block",
"padding-inline-start",
"padding-inline-end",
"padding-block-start",
"padding-block-end",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"text-align",
"text-indent",
"vertical-align",
"font-family",
"font-feature-settings",
"font-size",
"line-height",
"font-weight",
"letter-spacing",
"text-wrap",
"overflow-wrap",
"word-break",
"text-overflow",
"hyphens",
"white-space",
"color",
"text-transform",
"font-style",
"font-stretch",
"font-variant-numeric",
"text-decoration-line",
"text-decoration-color",
"text-decoration-style",
"text-decoration-thickness",
"text-underline-offset",
"-webkit-font-smoothing",
"placeholder-color",
"caret-color",
"accent-color",
"color-scheme",
"opacity",
"background-blend-mode",
"mix-blend-mode",
"box-shadow",
"--tw-shadow",
"--tw-shadow-color",
"--tw-ring-shadow",
"--tw-ring-color",
"--tw-inset-shadow",
"--tw-inset-shadow-color",
"--tw-inset-ring-shadow",
"--tw-inset-ring-color",
"--tw-ring-offset-width",
"--tw-ring-offset-color",
"outline",
"outline-width",
"outline-offset",
"outline-color",
"--tw-blur",
"--tw-brightness",
"--tw-contrast",
"--tw-drop-shadow",
"--tw-grayscale",
"--tw-hue-rotate",
"--tw-invert",
"--tw-saturate",
"--tw-sepia",
"filter",
"--tw-backdrop-blur",
"--tw-backdrop-brightness",
"--tw-backdrop-contrast",
"--tw-backdrop-grayscale",
"--tw-backdrop-hue-rotate",
"--tw-backdrop-invert",
"--tw-backdrop-opacity",
"--tw-backdrop-saturate",
"--tw-backdrop-sepia",
"backdrop-filter",
"transition-property",
"transition-behavior",
"transition-delay",
"transition-duration",
"transition-timing-function",
"will-change",
"contain",
"content",
"forced-color-adjust"
];
function Ve(t, r, { onInvalidCandidate: i, respectImportant: e } = {}) {
let n = /* @__PURE__ */ new Map(), o = [], l = /* @__PURE__ */ new Map();
for (let f of t) {
if (r.invalidCandidates.has(f)) {
i?.(f);
continue;
}
let m = r.parseCandidate(f);
if (m.length === 0) {
i?.(f);
continue;
}
l.set(f, m);
}
let c = 0;
(e ?? !0) && (c |= 1);
let u = r.getVariantOrder();
for (let [f, m] of l) {
let d = !1;
for (let p of m) {
let v = r.compileAstNodes(p, c);
if (v.length !== 0) {
d = !0;
for (let { node: h, propertySort: y } of v) {
let b = 0n;
for (let T of p.variants) b |= 1n << BigInt(u.get(T));
n.set(h, {
properties: y,
variants: b,
candidate: f
}), o.push(h);
}
}
}
d || i?.(f);
}
return o.sort((f, m) => {
let d = n.get(f), p = n.get(m);
if (d.variants - p.variants !== 0n) return Number(d.variants - p.variants);
let v = 0;
for (; v < d.properties.order.length && v < p.properties.order.length && d.properties.order[v] === p.properties.order[v];) v += 1;
return (d.properties.order[v] ?? Infinity) - (p.properties.order[v] ?? Infinity) || p.properties.count - d.properties.count || wt(d.candidate, p.candidate);
}), {
astNodes: o,
nodeSorting: n
};
}
function Ri(t, r, i) {
let e = Xl(t, r);
if (e.length === 0) return [];
let n = r.important && !!(i & 1), o = [], l = `.${xe(t.raw)}`;
for (let c of e) {
let u = ea(c);
(t.important || n) && Pi(c);
let f = {
kind: "rule",
selector: l,
nodes: c
};
for (let m of t.variants) if (Fe(f, m, r.variants) === null) return [];
o.push({
node: f,
propertySort: u
});
}
return o;
}
function Fe(t, r, i, e = 0) {
if (r.kind === "arbitrary") {
if (r.relative && e === 0) return null;
t.nodes = [J(r.selector, t.nodes)];
return;
}
let { applyFn: n } = i.get(r.root);
if (r.kind === "compound") {
let l = W("@slot");
if (Fe(l, r.variant, i, e + 1) === null || r.root === "not" && l.nodes.length > 1) return null;
for (let u of l.nodes) if (u.kind !== "rule" && u.kind !== "at-rule" || n(u, r) === null) return null;
_(l.nodes, (u) => {
if ((u.kind === "rule" || u.kind === "at-rule") && u.nodes.length <= 0) return u.nodes = t.nodes, R.Skip;
}), t.nodes = l.nodes;
return;
}
if (n(t, r) === null) return null;
}
function Oi(t) {
let r = t.options?.types ?? [];
return r.length > 1 && r.includes("any");
}
function Xl(t, r) {
if (t.kind === "arbitrary") {
let l = t.value;
return t.modifier && (l = X(l, t.modifier, r.theme)), l === null ? [] : [[a(t.property, l)]];
}
let i = r.utilities.get(t.root) ?? [], e = [], n = i.filter((l) => !Oi(l));
for (let l of n) {
if (l.kind !== t.kind) continue;
let c = l.compileFn(t);
if (c !== void 0) {
if (c === null) return e;
e.push(c);
}
}
if (e.length > 0) return e;
let o = i.filter((l) => Oi(l));
for (let l of o) {
if (l.kind !== t.kind) continue;
let c = l.compileFn(t);
if (c !== void 0) {
if (c === null) return e;
e.push(c);
}
}
return e;
}
function Pi(t) {
for (let r of t) r.kind !== "at-root" && (r.kind === "declaration" ? r.important = !0 : (r.kind === "rule" || r.kind === "at-rule") && Pi(r.nodes));
}
function ea(t) {
let r = /* @__PURE__ */ new Set(), i = 0, e = t.slice(), n = !1;
for (; e.length > 0;) {
let o = e.shift();
if (o.kind === "declaration") {
if (o.value === void 0 || (i++, n)) continue;
if (o.property === "--tw-sort") {
let c = er.indexOf(o.value ?? "");
if (c !== -1) {
r.add(c), n = !0;
continue;
}
}
let l = er.indexOf(o.property);
l !== -1 && r.add(l);
} else if (o.kind === "rule" || o.kind === "at-rule") for (let l of o.nodes) e.push(l);
}
return {
order: Array.from(r).sort((o, l) => o - l),
count: i
};
}
function Se(t, r) {
let i = 0, e = J("&", t), n = /* @__PURE__ */ new Set(), o = new z(() => /* @__PURE__ */ new Set()), l = new z(() => /* @__PURE__ */ new Set());
_([e], (d, p) => {
if (d.kind === "at-rule") {
if (d.name === "@keyframes") return _(d.nodes, (v) => {
if (v.kind === "at-rule" && v.name === "@apply") throw new Error("You cannot use `@apply` inside `@keyframes`.");
}), R.Skip;
if (d.name === "@utility") {
let v = d.params.replace(/-\*$/, "");
l.get(v).add(d), _(d.nodes, (h) => {
if (!(h.kind !== "at-rule" || h.name !== "@apply")) {
n.add(d);
for (let y of Ii(h, r)) o.get(d).add(y);
}
});
return;
}
if (d.name === "@apply") {
if (p.parent === null) return;
i |= 1, n.add(p.parent);
for (let v of Ii(d, r)) for (let h of p.path()) n.has(h) && o.get(h).add(v);
}
}
});
let c = /* @__PURE__ */ new Set(), u = [], f = /* @__PURE__ */ new Set();
function m(d, p = []) {
if (!c.has(d)) {
if (f.has(d)) {
let v = p[(p.indexOf(d) + 1) % p.length];
throw d.kind === "at-rule" && d.name === "@utility" && v.kind === "at-rule" && v.name === "@utility" && _(d.nodes, (h) => {
if (h.kind !== "at-rule" || h.name !== "@apply") return;
let y = h.params.split(/\s+/g);
for (let b of y) for (let T of r.parseCandidate(b)) switch (T.kind) {
case "arbitrary": break;
case "static":
case "functional":
if (v.params.replace(/-\*$/, "") === T.root) throw new Error(`You cannot \`@apply\` the \`${b}\` utility here because it creates a circular dependency.`);
break;
default:
}
}), /* @__PURE__ */ new Error(`Circular dependency detected:
${ie([d])}
Relies on:
${ie([v])}`);
}
f.add(d);
for (let v of o.get(d)) for (let h of l.get(v)) p.push(d), m(h, p), p.pop();
c.add(d), f.delete(d), u.push(d);
}
}
for (let d of n) m(d);
for (let d$10 of u) "nodes" in d$10 && _(d$10.nodes, (p) => {
if (p.kind !== "at-rule" || p.name !== "@apply") return;
let v = p.params.split(/(\s+)/g), h = {}, y = 0;
for (let [b, T] of v.entries()) b % 2 === 0 && (h[T] = y), y += T.length;
{
let T = Ve(Object.keys(h), r, {
respectImportant: !1,
onInvalidCandidate: (N) => {
if (r.theme.prefix && !N.startsWith(r.theme.prefix)) throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);
if (r.invalidCandidates.has(N)) throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);
let E = d(N, ":");
if (E.length > 1) {
let U = E.pop();
if (r.candidatesToCss([U])[0]) {
let P = r.candidatesToCss(E.map((G) => `${G}:[--tw-variant-check:1]`)), j = E.filter((G, Z) => P[Z] === null);
if (j.length > 0) {
if (j.length === 1) throw new Error(`Cannot apply utility class \`${N}\` because the ${j.map((G) => `\`${G}\``)} variant does not exist.`);
{
let G = new Intl.ListFormat("en", {
style: "long",
type: "conjunction"
});
throw new Error(`Cannot apply utility class \`${N}\` because the ${G.format(j.map((Z) => `\`${Z}\``))} variants do not exist.`);
}
}
}
}
throw r.theme.size === 0 ? /* @__PURE__ */ new Error(`Cannot apply unknown utility class \`${N}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`) : /* @__PURE__ */ new Error(`Cannot apply unknown utility class \`${N}\``);
}
}), A = p.src, k = T.astNodes.map((N) => {
let E = T.nodeSorting.get(N)?.candidate, U = E ? h[E] : void 0;
if (N = te(N), !A || !E || U === void 0) return _([N], (j) => {
j.src = A;
}), N;
let P = [
A[0],
A[1],
A[2]
];
return P[1] += 7 + U, P[2] = P[1] + E.length, _([N], (j) => {
j.src = P;
}), N;
}), D = [];
for (let N of k) if (N.kind === "rule") for (let E of N.nodes) D.push(E);
else D.push(N);
return R.Replace(D);
}
});
return i;
}
function* Ii(t, r) {
for (let i of t.params.split(/\s+/g)) for (let e of r.parseCandidate(i)) switch (e.kind) {
case "arbitrary": break;
case "static":
case "functional":
yield e.root;
break;
default:
}
}
async function tr(t, r, i, e = 0, n = !1) {
let o = 0, l = [];
return _(t, (c) => {
if (c.kind === "at-rule" && (c.name === "@import" || c.name === "@reference")) {
let u = ta(F(c.params));
if (u === null) return;
c.name === "@reference" && (u.media = "reference"), o |= 2;
let { uri: f, layer: m, media: d, supports: p } = u;
if (f.startsWith("data:") || f.startsWith("http://") || f.startsWith("https://")) return;
let v = ge({}, []);
return l.push((async () => {
if (e > 100) throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${r}\`)`);
let h = await i(f, r), y = Te(h.content, { from: n ? h.path : void 0 });
await tr(y, h.base, i, e + 1, n), v.nodes = ra(c, [ge({ base: h.base }, y)], m, d, p);
})()), R.ReplaceSkip(v);
}
}), l.length > 0 && await Promise.all(l), o;
}
function ta(t) {
let r, i = null, e = null, n = null;
for (let o = 0; o < t.length; o++) {
let l = t[o];
if (l.kind !== "separator") {
if (l.kind === "word" && !r) {
if (!l.value || l.value[0] !== "\"" && l.value[0] !== "'") return null;
r = l.value.slice(1, -1);
continue;
}
if (l.kind === "function" && l.value.toLowerCase() === "url" || !r) return null;
if ((l.kind === "word" || l.kind === "function") && l.value.toLowerCase() === "layer") {
if (i) return null;
if (n) throw new Error("`layer(…)` in an `@import` should come before any other functions or conditions");
"nodes" in l ? i = Y(l.nodes) : i = "";
continue;
}
if (l.kind === "function" && l.value.toLowerCase() === "supports") {
if (n) return null;
n = Y(l.nodes);
continue;
}
e = Y(t.slice(o));
break;
}
}
return r ? {
uri: r,
layer: i,
media: e,
supports: n
} : null;
}
function ra(t, r, i, e, n) {
let o = r;
if (i !== null) {
let l = W("@layer", i, o);
l.src = t.src, o = [l];
}
if (e !== null) {
let l = W("@media", e, o);
l.src = t.src, o = [l];
}
if (n !== null) {
let l = W("@supports", n[0] === "(" ? n : `(${n})`, o);
l.src = t.src, o = [l];
}
return o;
}
function We(t) {
if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
let r = Object.getPrototypeOf(t);
return r === null || Object.getPrototypeOf(r) === null;
}
function it(t, r, i, e = []) {
for (let n of r) if (n != null) for (let o of Reflect.ownKeys(n)) {
e.push(o);
let l = i(t[o], n[o], e);
l !== void 0 ? t[o] = l : !We(t[o]) || !We(n[o]) ? t[o] = n[o] : t[o] = it({}, [t[o], n[o]], i, e), e.pop();
}
return t;
}
function St(t, r, i) {
return function(n, o) {
let l = n.lastIndexOf("/"), c = null;
l !== -1 && (c = n.slice(l + 1).trim(), n = n.slice(0, l).trim());
let u = (() => {
let f = Pe(n), [m, d] = ia(t.theme, f), p = i(_i(r() ?? {}, f) ?? null);
if (typeof p == "string" && (p = p.replace("<alpha-value>", "1")), typeof m != "object") return typeof d != "object" && d & 4 ? p ?? m : m;
if (p !== null && typeof p == "object" && !Array.isArray(p)) {
let v = it({}, [p], (h, y) => y);
if (m === null && Object.hasOwn(p, "__CSS_VALUES__")) {
let h = {};
for (let y in p.__CSS_VALUES__) h[y] = p[y], delete v[y];
m = h;
}
for (let h in m) h !== "__CSS_VALUES__" && (p?.__CSS_VALUES__?.[h] & 4 && _i(v, h.split("-")) !== void 0 || (v[ye(h)] = m[h]));
return v;
}
if (Array.isArray(m) && Array.isArray(d) && Array.isArray(p)) {
let v = m[0], h = m[1];
d[0] & 4 && (v = p[0] ?? v);
for (let y of Object.keys(h)) d[1][y] & 4 && (h[y] = p[1][y] ?? h[y]);
return [v, h];
}
return m ?? p;
})();
return c && typeof u == "string" && (u = Q(u, c)), u ?? o;
};
}
function ia(t, r) {
if (r.length === 1 && r[0].startsWith("--")) return [t.get([r[0]]), t.getOptions(r[0])];
let i = Me(r), e = /* @__PURE__ */ new Map(), n = new z(() => /* @__PURE__ */ new Map()), o = t.namespace(`--${i}`);
if (o.size === 0) return [null, 0];
let l = /* @__PURE__ */ new Map();
for (let [m, d] of o) {
if (!m || !m.includes("--")) {
e.set(m, d), l.set(m, t.getOptions(m ? `--${i}-${m}` : `--${i}`));
continue;
}
let p = m.indexOf("--"), v = m.slice(0, p), h = m.slice(p + 2);
h = h.replace(/-([a-z])/g, (y, b) => b.toUpperCase()), n.get(v === "" ? null : v).set(h, [d, t.getOptions(`--${i}${m}`)]);
}
let c = t.getOptions(`--${i}`);
for (let [m, d] of n) {
let p = e.get(m);
if (typeof p != "string") continue;
let v = {}, h = {};
for (let [y, [b, T]] of d) v[y] = b, h[y] = T;
e.set(m, [p, v]), l.set(m, [c, h]);
}
let u = {}, f = {};
for (let [m, d] of e) Di(u, [m ?? "DEFAULT"], d);
for (let [m, d] of l) Di(f, [m ?? "DEFAULT"], d);
return r[r.length - 1] === "DEFAULT" ? [u?.DEFAULT ?? null, f.DEFAULT ?? 0] : "DEFAULT" in u && Object.keys(u).length === 1 ? [u.DEFAULT, f.DEFAULT ?? 0] : (u.__CSS_VALUES__ = f, [u, f]);
}
function _i(t, r) {
for (let i = 0; i < r.length; ++i) {
let e = r[i];
if (t == null || typeof t != "object" || !Object.hasOwn(t, e)) {
if (r[i + 1] === void 0) return;
r[i + 1] = `${e}-${r[i + 1]}`;
continue;
}
t = t[e];
}
return t;
}
function Di(t, r, i) {
for (let e of r.slice(0, -1)) t[e] === void 0 && (t[e] = {}), t = t[e];
t[r[r.length - 1]] = i;
}
var Ki = /^[a-z@][a-zA-Z0-9/%._-]*$/;
function rr({ designSystem: t, ast: r, resolvedConfig: i, featuresRef: e, referenceMode: n, src: o }) {
let l = {
addBase(c) {
if (n) return;
let u = we(c);
e.current |= Ue(u, t);
let f = W("@layer", "base", u);
_([f], (m) => {
m.src = o;
}), r.push(f);
},
addVariant(c, u) {
if (!$t.test(c)) throw new Error(`\`addVariant('${c}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);
if (typeof u == "string") {
if (u.includes(":merge(")) return;
} else if (Array.isArray(u)) {
if (u.some((m) => m.includes(":merge("))) return;
} else if (typeof u == "object") {
let m = function(d, p) {
return Object.entries(d).some(([v, h]) => v.includes(p) || typeof h == "object" && m(h, p));
};
if (m(u, ":merge(")) return;
}
typeof u == "string" || Array.isArray(u) ? t.variants.static(c, (m) => {
m.nodes = Ui(u, m.nodes);
}, { compounds: Ie(typeof u == "string" ? [u] : u) }) : typeof u == "object" && t.variants.fromAst(c, we(u), t);
},
matchVariant(c, u, f) {
function m(p, v, h) {
return Ui(u(p, { modifier: v?.value ?? null }), h);
}
try {
let p = u("a", { modifier: null });
if (typeof p == "string" && p.includes(":merge(")) return;
if (Array.isArray(p) && p.some((v) => v.includes(":merge("))) return;
} catch {}
let d = Object.keys(f?.values ?? {});
t.variants.group(() => {
t.variants.functional(c, (p, v) => {
if (!v.value) {
if (f?.values && "DEFAULT" in f.values) {
p.nodes = m(f.values.DEFAULT, v.modifier, p.nodes);
return;
}
return null;
}
if (v.value.kind === "arbitrary") p.nodes = m(v.value.value, v.modifier, p.nodes);
else if (v.value.kind === "named" && f?.values) {
if (!Object.hasOwn(f.values, v.value.value)) return null;
let h = f.values[v.value.value];
if (typeof h != "string") return null;
p.nodes = m(h, v.modifier, p.nodes);
} else return null;
});
}, (p, v) => {
if (p.kind !== "functional" || v.kind !== "functional") return 0;
let h = p.value ? p.value.value : "DEFAULT", y = v.value ? v.value.value : "DEFAULT", b = (f?.values && Object.hasOwn(f.values, h) ? f.values[h] : void 0) ?? h, T = (f?.values && Object.hasOwn(f.values, y) ? f.values[y] : void 0) ?? y;
if (f && typeof f.sort == "function") return f.sort({
value: b,
modifier: p.modifier?.value ?? null
}, {
value: T,
modifier: v.modifier?.value ?? null
});
let A = d.indexOf(h), k = d.indexOf(y);
return A = A === -1 ? d.length : A, k = k === -1 ? d.length : k, A !== k ? A - k : b < T ? -1 : 1;
}), t.variants.suggest(c, () => Object.keys(f?.values ?? {}).filter((p) => p !== "DEFAULT"));
},
addUtilities(c) {
c = Array.isArray(c) ? c : [c];
let u = c.flatMap((m) => Object.entries(m));
u = u.flatMap(([m, d$11]) => d(m, ",").map((p) => [p.trim(), d$11]));
let f = new z(() => []);
for (let [m, d] of u) {
if (m.startsWith("@keyframes ")) {
if (!n) {
let h = J(m, we(d));
_([h], (y) => {
y.src = o;
}), r.push(h);
}
continue;
}
let p = Oe(m), v = !1;
if (_(p, (h) => {
if (h.kind === "selector" && h.value[0] === "." && Ki.test(h.value.slice(1))) {
let y = h.value;
h.value = "&";
let b = he(p), T = y.slice(1), A = b === "&" ? we(d) : [J(b, we(d))];
f.get(T).push(...A), v = !0, h.value = y;
return;
}
if (h.kind === "function" && h.value === ":not") return R.Skip;
}), !v) throw new Error(`\`addUtilities({ '${m}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`);
}
for (let [m, d] of f) t.theme.prefix && _(d, (p) => {
if (p.kind === "rule") {
let v = Oe(p.selector);
_(v, (h) => {
h.kind === "selector" && h.value[0] === "." && (h.value = `.${t.theme.prefix}\\:${h.value.slice(1)}`);
}), p.selector = he(v);
}
}), t.utilities.static(m, (p) => {
let v = d.map(te);
return zi(v, m, p.raw), e.current |= Se(v, t), v;
});
},
matchUtilities(c, u) {
let f = u?.type ? Array.isArray(u?.type) ? u.type : [u.type] : ["any"];
for (let [d, p] of Object.entries(c)) {
let v = function({ negative: h }) {
return (y) => {
if (y.value?.kind === "arbitrary" && f.length > 0 && !f.includes("any") && (y.value.dataType && !f.includes(y.value.dataType) || !y.value.dataType && !me(y.value.value, f))) return;
let b = f.includes("color"), T = null, A = !1;
{
let N = u?.values ?? {};
b && (N = Object.assign({
inherit: "inherit",
transparent: "transparent",
current: "currentcolor"
}, N)), y.value ? y.value.kind === "arbitrary" ? T = y.value.value : y.value.fraction && Object.hasOwn(N, y.value.fraction) ? (T = N[y.value.fraction], A = !0) : Object.hasOwn(N, y.value.value) ? T = N[y.value.value] : N.__BARE_VALUE__ && (T = N.__BARE_VALUE__(y.value) ?? null, A = (y.value.fraction !== null && T?.includes("/")) ?? !1) : T = N.DEFAULT ?? null;
}
if (T === null) return;
let k;
{
let N = u?.modifiers ?? null;
y.modifier ? N === "any" || y.modifier.kind === "arbitrary" ? k = y.modifier.value : N && Object.hasOwn(N, y.modifier.value) ? k = N[y.modifier.value] : b && !Number.isNaN(Number(y.modifier.value)) ? k = `${y.modifier.value}%` : k = null : k = null;
}
if (y.modifier && k === null && !A) return y.value?.kind === "arbitrary" ? null : void 0;
b && k !== null && (T = Q(T, k)), h && (T = `calc(${T} * -1)`);
let D = we(p(T, { modifier: k }));
return zi(D, d, y.raw), e.current |= Se(D, t), D;
};
};
if (!Ki.test(d)) throw new Error(`\`matchUtilities({ '${d}' : \u2026 })\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`);
u?.supportsNegativeValues && t.utilities.functional(`-${d}`, v({ negative: !0 }), { types: f }), t.utilities.functional(d, v({ negative: !1 }), { types: f }), t.utilities.suggest(d, () => {
let h = u?.values ?? {}, y = new Set(Object.keys(h));
y.delete("__BARE_VALUE__"), y.delete("__CSS_VALUES__"), y.has("DEFAULT") && (y.delete("DEFAULT"), y.add(null));
let b = u?.modifiers ?? {}, T = b === "any" ? [] : Object.keys(b);
return [{
supportsNegative: u?.supportsNegativeValues ?? !1,
values: Array.from(y),
modifiers: T
}];
});
}
},
addComponents(c, u) {
this.addUtilities(c, u);
},
matchComponents(c, u) {
this.matchUtilities(c, u);
},
theme: St(t, () => i.theme ?? {}, (c) => c),
prefix(c) {
return c;
},
config(c, u) {
let f = i;
if (!c) return f;
let m = Pe(c);
for (let d = 0; d < m.length; ++d) {
let p = m[d];
if (f[p] === void 0) return u;
f = f[p];
}
return f ?? u;
}
};
return l.addComponents = l.addComponents.bind(l), l.matchComponents = l.matchComponents.bind(l), l;
}
function we(t) {
let r = [];
t = Array.isArray(t) ? t : [t];
let i = t.flatMap((e) => Object.entries(e));
for (let [e, n] of i) if (n != null && n !== !1) if (typeof n != "object") {
if (!e.startsWith("--")) {
if (n === "@slot") {
r.push(J(e, [W("@slot")]));
continue;
}
e = e.replace(/([A-Z])/g, "-$1").toLowerCase();
}
r.push(a(e, String(n)));
} else if (Array.isArray(n)) for (let o of n) typeof o == "string" ? r.push(a(e, o)) : r.push(J(e, we(o)));
else r.push(J(e, we(n)));
return r;
}
function Ui(t, r) {
return (typeof t == "string" ? [t] : t).flatMap((e) => {
if (e.trim().endsWith("}")) {
let o = Te(e.replace("}", "{@slot}}"));
return Xt(o, r), o;
} else return J(e, r);
});
}
function zi(t, r, i) {
_(t, (e) => {
if (e.kind === "rule") {
let n = Oe(e.selector);
_(n, (o) => {
o.kind === "selector" && o.value === `.${r}` && (o.value = `.${xe(i)}`);
}), e.selector = he(n);
}
});
}
function Li(t, r) {
for (let i of na(r)) t.theme.addKeyframes(i);
}
function na(t) {
let r = [];
if ("keyframes" in t.theme) for (let [i, e] of Object.entries(t.theme.keyframes)) r.push(W("@keyframes", i, we(e)));
return r;
}
function ji(t) {
return { theme: {
...be$1,
colors: ({ theme: r }) => r("color", {}),
extend: {
fontSize: ({ theme: r }) => ({ ...r("text", {}) }),
boxShadow: ({ theme: r }) => ({ ...r("shadow", {}) }),
animation: ({ theme: r }) => ({ ...r("animate", {}) }),
aspectRatio: ({ theme: r }) => ({ ...r("aspect", {}) }),
borderRadius: ({ theme: r }) => ({ ...r("radius", {}) }),
screens: ({ theme: r }) => ({ ...r("breakpoint", {}) }),
letterSpacing: ({ theme: r }) => ({ ...r("tracking", {}) }),
lineHeight: ({ theme: r }) => ({ ...r("leading", {}) }),
transitionDuration: { DEFAULT: t.get(["--default-transition-duration"]) ?? null },
transitionTimingFunction: { DEFAULT: t.get(["--default-transition-timing-function"]) ?? null },
maxWidth: ({ theme: r }) => ({ ...r("container", {}) })
}
} };
}
var la = {
blocklist: [],
future: {},
experimental: {},
prefix: "",
important: !1,
darkMode: null,
theme: {},
plugins: [],
content: { files: [] }
};
function nr(t, r) {
let i = {
design: t,
configs: [],
plugins: [],
content: { files: [] },
theme: {},
extend: {},
result: structuredClone(la)
};
for (let n of r) ir(i, n);
for (let n of i.configs) "darkMode" in n && n.darkMode !== void 0 && (i.result.darkMode = n.darkMode ?? null), "prefix" in n && n.prefix !== void 0 && (i.result.prefix = n.prefix ?? ""), "blocklist" in n && n.blocklist !== void 0 && (i.result.blocklist = n.blocklist ?? []), "important" in n && n.important !== void 0 && (i.result.important = n.important ?? !1);
let e = oa(i);
return {
resolvedConfig: {
...i.result,
content: i.content,
theme: i.theme,
plugins: i.plugins
},
replacedThemeKeys: e
};
}
function aa(t, r) {
if (Array.isArray(t) && We(t[0])) return t.concat(r);
if (Array.isArray(r) && We(r[0]) && We(t)) return [t, ...r];
if (Array.isArray(r)) return r;
}
function ir(t, { config: r, base: i, path: e, reference: n, src: o }) {
let l = [];
for (let f of r.plugins ?? []) "__isOptionsFunction" in f ? l.push({
...f(),
reference: n,
src: o
}) : "handler" in f ? l.push({
...f,
reference: n,
src: o
}) : l.push({
handler: f,
reference: n,
src: o
});
if (Array.isArray(r.presets) && r.presets.length === 0) throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");
for (let f of r.presets ?? []) ir(t, {
path: e,
base: i,
config: f,
reference: n,
src: o
});
for (let f of l) t.plugins.push(f), f.config && ir(t, {
path: e,
base: i,
config: f.config,
reference: !!f.reference,
src: f.src ?? o
});
let c = r.content ?? [], u = Array.isArray(c) ? c : c.files;
for (let f of u) t.content.files.push(typeof f == "object" ? f : {
base: i,
pattern: f
});
t.configs.push(r);
}
function oa(t) {
let r = /* @__PURE__ */ new Set(), i = St(t.design, () => t.theme, n), e = Object.assign(i, {
theme: i,
colors: l$1
});
function n(o) {
return typeof o == "function" ? o(e) ?? null : o ?? null;
}
for (let o of t.configs) {
let l = o.theme ?? {}, c = l.extend ?? {};
for (let u in l) u !== "extend" && r.add(u);
Object.assign(t.theme, l);
for (let u in c) t.extend[u] ??= [], t.extend[u].push(c[u]);
}
delete t.theme.extend;
for (let o in t.extend) {
let l = [t.theme[o], ...t.extend[o]];
t.theme[o] = () => {
return it({}, l.map(n), aa);
};
}
for (let o in t.theme) t.theme[o] = n(t.theme[o]);
if (t.theme.screens && typeof t.theme.screens == "object") for (let o of Object.keys(t.theme.screens)) {
let l = t.theme.screens[o];
l && typeof l == "object" && ("raw" in l || "max" in l || "min" in l && (t.theme.screens[o] = l.min));
}
return r;
}
function Mi(t, r) {
let i = t.theme.container || {};
if (typeof i != "object" || i === null) return;
let e = sa(i, r);
e.length !== 0 && r.utilities.static("container", () => e.map(te));
}
function sa({ center: t, padding: r, screens: i }, e) {
let n = [], o = null;
if (t && n.push(a("margin-inline", "auto")), (typeof r == "string" || typeof r == "object" && r !== null && "DEFAULT" in r) && n.push(a("padding-inline", typeof r == "string" ? r : r.DEFAULT)), typeof i == "object" && i !== null) {
o = /* @__PURE__ */ new Map();
let l = Array.from(e.theme.namespace("--breakpoint").entries());
if (l.sort((c, u) => Ee(c[1], u[1], "asc")), l.length > 0) {
let [c] = l[0];
n.push(W("@media", `(width >= --theme(--breakpoint-${c}))`, [a("max-width", "none")]));
}
for (let [c, u] of Object.entries(i)) {
if (typeof u == "object") if ("min" in u) u = u.min;
else continue;
o.set(c, W("@media", `(width >= ${u})`, [a("max-width", u)]));
}
}
if (typeof r == "object" && r !== null) {
let l = Object.entries(r).filter(([c]) => c !== "DEFAULT").map(([c, u]) => [
c,
e.theme.resolveValue(c, ["--breakpoint"]),
u
]).filter(Boolean);
l.sort((c, u) => Ee(c[1], u[1], "asc"));
for (let [c, , u] of l) if (o && o.has(c)) o.get(c).nodes.push(a("padding-inline", u));
else {
if (o) continue;
n.push(W("@media", `(width >= theme(--breakpoint-${c}))`, [a("padding-inline", u)]));
}
}
if (o) for (let [, l] of o) n.push(l);
return n;
}
function Fi({ addVariant: t, config: r }) {
let i = r("darkMode", null), [e, n = ".dark"] = Array.isArray(i) ? i : [i];
if (e === "variant") {
let o;
if (Array.isArray(n) || typeof n == "function" ? o = n : typeof n == "string" && (o = [n]), Array.isArray(o)) for (let l of o) l === ".dark" ? (e = !1, console.warn("When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: [\"variant\", \".your-selector &\"]`")) : l.includes("&") || (e = !1, console.warn("When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: [\"variant\", \".your-selector &\"]`"));
n = o;
}
e === null || (e === "selector" ? t("dark", `&:where(${n}, ${n} *)`) : e === "media" ? t("dark", "@media (prefers-color-scheme: dark)") : e === "variant" ? t("dark", n) : e === "class" && t("dark", `&:is(${n} *)`));
}
function Wi(t) {
for (let [i, e] of [
["t", "top"],
["tr", "top right"],
["r", "right"],
["br", "bottom right"],
["b", "bottom"],
["bl", "bottom left"],
["l", "left"],
["tl", "top left"]
]) t.utilities.suggest(`bg-gradient-to-${i}`, () => []), t.utilities.static(`bg-gradient-to-${i}`, () => [a("--tw-gradient-position", `to ${e} in oklab`), a("background-image", "linear-gradient(var(--tw-gradient-stops))")]);
t.utilities.suggest("bg-left-top", () => []), t.utilities.static("bg-left-top", () => [a("background-position", "left top")]), t.utilities.suggest("bg-right-top", () => []), t.utilities.static("bg-right-top", () => [a("background-position", "right top")]), t.utilities.suggest("bg-left-bottom", () => []), t.utilities.static("bg-left-bottom", () => [a("background-position", "left bottom")]), t.utilities.suggest("bg-right-bottom", () => []), t.utilities.static("bg-right-bottom", () => [a("background-position", "right bottom")]), t.utilities.suggest("object-left-top", () => []), t.utilities.static("object-left-top", () => [a("object-position", "left top")]), t.utilities.suggest("object-right-top", () => []), t.utilities.static("object-right-top", () => [a("object-position", "right top")]), t.utilities.suggest("object-left-bottom", () => []), t.utilities.static("object-left-bottom", () => [a("object-position", "left bottom")]), t.utilities.suggest("object-right-bottom", () => []), t.utilities.static("object-right-bottom", () => [a("object-position", "right bottom")]), t.utilities.suggest("max-w-screen", () => []), t.utilities.functional("max-w-screen", (i) => {
if (!i.value || i.value.kind === "arbitrary") return;
let e = t.theme.resolve(i.value.value, ["--breakpoint"]);
if (e) return [a("max-width", e)];
}), t.utilities.suggest("overflow-ellipsis", () => []), t.utilities.static("overflow-ellipsis", () => [a("text-overflow", "ellipsis")]), t.utilities.suggest("decoration-slice", () => []), t.utilities.static("decoration-slice", () => [a("-webkit-box-decoration-break", "slice"), a("box-decoration-break", "slice")]), t.utilities.suggest("decoration-clone", () => []), t.utilities.static("decoration-clone", () => [a("-webkit-box-decoration-break", "clone"), a("box-decoration-break", "clone")]), t.utilities.suggest("flex-shrink", () => []), t.utilities.functional("flex-shrink", (i) => {
if (!i.modifier) {
if (!i.value) return [a("flex-shrink", "1")];
if (i.value.kind === "arbitrary") return [a("flex-shrink", i.value.value)];
if (u(i.value.value)) return [a("flex-shrink", i.value.value)];
}
}), t.utilities.suggest("flex-grow", () => []), t.utilities.functional("flex-grow", (i) => {
if (!i.modifier) {
if (!i.value) return [a("flex-grow", "1")];
if (i.value.kind === "arbitrary") return [a("flex-grow", i.value.value)];
if (u(i.value.value)) return [a("flex-grow", i.value.value)];
}
}), t.utilities.suggest("order-none", () => []), t.utilities.static("order-none", () => [a("order", "0")]), t.utilities.suggest("break-words", () => []), t.utilities.static("break-words", () => [a("overflow-wrap", "break-word")]);
for (let [i, e] of [["start", "inset-inline-start"], ["end", "inset-inline-end"]]) {
let n = function({ negative: o }) {
return (l) => {
if (!l.value) {
if (l.modifier) return;
let u = t.theme.resolve(null, ["--inset", "--spacing"]);
return u === null ? void 0 : [a(e, o ? `calc(${u} * -1)` : u)];
}
if (l.value.kind === "arbitrary") {
if (l.modifier) return;
let u = l.value.value;
return [a(e, o ? `calc(${u} * -1)` : u)];
}
let c = t.theme.resolve(l.value.fraction ?? l.value.value, ["--inset", "--spacing"]);
if (c === null && l.value.fraction) {
let [u$4, f] = d(l.value.fraction, "/");
if (!u(u$4) || !u(f)) return;
c = `calc(${l.value.fraction} * 100%)`;
}
if (c === null && o) {
let u = t.theme.resolve(null, ["--spacing"]);
if (u && ge$1(l.value.value) && (c = `calc(${u} * -${l.value.value})`, c !== null)) return [a(e, c)];
}
if (c === null) {
let u = t.theme.resolve(null, ["--spacing"]);
u && ge$1(l.value.value) && (c = `calc(${u} * ${l.value.value})`);
}
if (c !== null) return [a(e, o ? `calc(${c} * -1)` : c)];
};
};
t.utilities.static(`${i}-auto`, () => [a(e, "auto")]), t.utilities.static(`${i}-full`, () => [a(e, "100%")]), t.utilities.static(`-${i}-full`, () => [a(e, "-100%")]), t.utilities.static(`${i}-px`, () => [a(e, "1px")]), t.utilities.static(`-${i}-px`, () => [a(e, "-1px")]), t.utilities.functional(`-${i}`, n({ negative: !0 })), t.utilities.functional(i, n({ negative: !1 }));
}
}
function Bi(t, r) {
let i = t.theme.screens || {}, e = r.variants.get("min")?.order ?? 0, n = [];
for (let [l, c] of Object.entries(i)) {
let p = function(v) {
r.variants.static(l, (h) => {
h.nodes = [W("@media", d, h.nodes)];
}, { order: v });
};
let u = r.variants.get(l), f = r.theme.resolveValue(l, ["--breakpoint"]);
if (u && f && !r.theme.hasDefault(`--breakpoint-${l}`)) continue;
let m = !0;
typeof c == "string" && (m = !1);
let d = ua(c);
m ? n.push(p) : p(e);
}
if (n.length !== 0) {
for (let [, l] of r.variants.variants) l.order > e && (l.order += n.length);
r.variants.compareFns = new Map(Array.from(r.variants.compareFns).map(([l, c]) => (l > e && (l += n.length), [l, c])));
for (let [l, c] of n.entries()) c(e + l + 1);
}
}
function ua(t) {
return (Array.isArray(t) ? t : [t]).map((i) => typeof i == "string" ? { min: i } : i && typeof i == "object" ? i : null).map((i) => {
if (i === null) return null;
if ("raw" in i) return i.raw;
let e = "";
return i.max !== void 0 && (e += `${i.max} >= `), e += "width", i.min !== void 0 && (e += ` >= ${i.min}`), `(${e})`;
}).filter(Boolean).join(", ");
}
function Yi(t, r) {
let i = t.theme.aria || {}, e = t.theme.supports || {}, n = t.theme.data || {};
if (Object.keys(i).length > 0) {
let o = r.variants.get("aria"), l = o?.applyFn, c = o?.compounds;
r.variants.functional("aria", (u, f) => {
let m = f.value;
return m && m.kind === "named" && m.value in i ? l?.(u, {
...f,
value: {
kind: "arbitrary",
value: i[m.value]
}
}) : l?.(u, f);
}, { compounds: c });
}
if (Object.keys(e).length > 0) {
let o = r.variants.get("supports"), l = o?.applyFn, c = o?.compounds;
r.variants.functional("supports", (u, f) => {
let m = f.value;
return m && m.kind === "named" && m.value in e ? l?.(u, {
...f,
value: {
kind: "arbitrary",
value: e[m.value]
}
}) : l?.(u, f);
}, { compounds: c });
}
if (Object.keys(n).length > 0) {
let o = r.variants.get("data"), l = o?.applyFn, c = o?.compounds;
r.variants.functional("data", (u, f) => {
let m = f.value;
return m && m.kind === "named" && m.value in n ? l?.(u, {
...f,
value: {
kind: "arbitrary",
value: n[m.value]
}
}) : l?.(u, f);
}, { compounds: c });
}
}
var fa = /^[a-z]+$/;
async function qi({ designSystem: t, base: r, ast: i, loadModule: e, sources: n }) {
let o = 0, l = [], c = [];
_(i, (d$12, p) => {
if (d$12.kind !== "at-rule") return;
let v = He(p);
if (d$12.name === "@plugin") {
if (v.parent !== null) throw new Error("`@plugin` cannot be nested.");
let h = d$12.params.slice(1, -1);
if (h.length === 0) throw new Error("`@plugin` must have a path.");
let y = {};
for (let b of d$12.nodes ?? []) {
if (b.kind !== "declaration") throw new Error(`Unexpected \`@plugin\` option:
${ie([b])}
\`@plugin\` options must be a flat list of declarations.`);
if (b.value === void 0) continue;
let T = b.value, A = d(T, ",").map((k) => {
if (k = k.trim(), k === "null") return null;
if (k === "true") return !0;
if (k === "false") return !1;
if (Number.isNaN(Number(k))) {
if (k[0] === "\"" && k[k.length - 1] === "\"" || k[0] === "'" && k[k.length - 1] === "'") return k.slice(1, -1);
if (k[0] === "{" && k[k.length - 1] === "}") throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ie([b]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`);
} else return Number(k);
return k;
});
y[b.property] = A.length === 1 ? A[0] : A;
}
return l.push([{
id: h,
base: v.context.base,
reference: !!v.context.reference,
src: d$12.src
}, Object.keys(y).length > 0 ? y : null]), o |= 4, R.Replace([]);
}
if (d$12.name === "@config") {
if (d$12.nodes.length > 0) throw new Error("`@config` cannot have a body.");
if (v.parent !== null) throw new Error("`@config` cannot be nested.");
return c.push({
id: d$12.params.slice(1, -1),
base: v.context.base,
reference: !!v.context.reference,
src: d$12.src
}), o |= 4, R.Replace([]);
}
}), Wi(t);
let u = t.resolveThemeValue;
if (t.resolveThemeValue = function(p, v) {
return p.startsWith("--") ? u(p, v) : (o |= Gi({
designSystem: t,
base: r,
ast: i,
sources: n,
configs: [],
pluginDetails: []
}), t.resolveThemeValue(p, v));
}, !l.length && !c.length) return 0;
let [f, m] = await Promise.all([Promise.all(c.map(async ({ id: d, base: p, reference: v, src: h }) => {
let y = await e(d, p, "config");
return {
path: d,
base: y.base,
config: y.module,
reference: v,
src: h
};
})), Promise.all(l.map(async ([{ id: d, base: p, reference: v, src: h }, y]) => {
let b = await e(d, p, "plugin");
return {
path: d,
base: b.base,
plugin: b.module,
options: y,
reference: v,
src: h
};
}))]);
return o |= Gi({
designSystem: t,
base: r,
ast: i,
sources: n,
configs: f,
pluginDetails: m
}), o;
}
function Gi({ designSystem: t, base: r, ast: i, sources: e, configs: n, pluginDetails: o }) {
let l = 0, u = [...o.map((y) => {
if (!y.options) return {
config: { plugins: [y.plugin] },
base: y.base,
reference: y.reference,
src: y.src
};
if ("__isOptionsFunction" in y.plugin) return {
config: { plugins: [y.plugin(y.options)] },
base: y.base,
reference: y.reference,
src: y.src
};
throw new Error(`The plugin "${y.path}" does not accept options`);
}), ...n], { resolvedConfig: f } = nr(t, [
{
config: ji(t.theme),
base: r,
reference: !0,
src: void 0
},
...u,
{
config: { plugins: [Fi] },
base: r,
reference: !0,
src: void 0
}
]), { resolvedConfig: m, replacedThemeKeys: d } = nr(t, u), p = {
designSystem: t,
ast: i,
resolvedConfig: f,
featuresRef: { set current(y) {
l |= y;
} }
}, v = rr({
...p,
referenceMode: !1,
src: void 0
}), h = t.resolveThemeValue;
t.resolveThemeValue = function(b, T) {
if (b[0] === "-" && b[1] === "-") return h(b, T);
let A = v.theme(b, void 0);
if (Array.isArray(A) && A.length === 2) return A[0];
if (Array.isArray(A)) return A.join(", ");
if (typeof A == "object" && A !== null && "DEFAULT" in A) return A.DEFAULT;
if (typeof A == "string") return A;
};
for (let { handler: y, reference: b, src: T } of f.plugins) y(rr({
...p,
referenceMode: b ?? !1,
src: T
}));
if (qr(t, m, d), Li(t, m), Yi(m, t), Bi(m, t), Mi(m, t), !t.theme.prefix && f.prefix) {
if (f.prefix.endsWith("-") && (f.prefix = f.prefix.slice(0, -1), console.warn(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)), !fa.test(f.prefix)) throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);
t.theme.prefix = f.prefix;
}
if (!t.important && f.important === !0 && (t.important = !0), typeof f.important == "string") {
let y = f.important;
_(i, (b, T) => {
if (b.kind !== "at-rule" || b.name !== "@tailwind" || b.params !== "utilities") return;
let A = He(T);
return A.parent?.kind === "rule" && A.parent.selector === y ? R.Stop : R.ReplaceStop(q(y, [b]));
});
}
for (let y of f.blocklist) t.invalidCandidates.add(y);
for (let y of f.content.files) {
if ("raw" in y) throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(y, null, 2)}
This feature is not currently supported.`);
let b = !1;
y.pattern[0] == "!" && (b = !0, y.pattern = y.pattern.slice(1)), e.push({
...y,
negated: b
});
}
return l;
}
function Zi({ ast: t }) {
let r = new z((n) => lt(n.code)), i = new z((n) => ({
url: n.file,
content: n.code,
ignore: !1
})), e = {
file: null,
sources: [],
mappings: []
};
_(t, (n) => {
if (!n.src || !n.dst) return;
let o = i.get(n.src[0]);
if (!o.content) return;
let l = r.get(n.src[0]), c = r.get(n.dst[0]), u = o.content.slice(n.src[1], n.src[2]), f = 0;
for (let p of u.split(`
`)) {
if (p.trim() !== "") {
let v = l.find(n.src[1] + f), h = c.find(n.dst[1]);
e.mappings.push({
name: null,
originalPosition: {
source: o,
...v
},
generatedPosition: h
});
}
f += p.length, f += 1;
}
let m = l.find(n.src[2]), d = c.find(n.dst[2]);
e.mappings.push({
name: null,
originalPosition: {
source: o,
...m
},
generatedPosition: d
});
});
for (let n of r.keys()) e.sources.push(i.get(n));
return e.mappings.sort((n, o) => n.generatedPosition.line - o.generatedPosition.line || n.generatedPosition.column - o.generatedPosition.column || (n.originalPosition?.line ?? 0) - (o.originalPosition?.line ?? 0) || (n.originalPosition?.column ?? 0) - (o.originalPosition?.column ?? 0)), e;
}
var Hi = /^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;
function Vt(t) {
let r = t.indexOf("{");
if (r === -1) return [t];
let i = [], e = t.slice(0, r), n = t.slice(r), o = 0, l = n.lastIndexOf("}");
for (let d = 0; d < n.length; d++) {
let p = n[d];
if (p === "{") o++;
else if (p === "}" && (o--, o === 0)) {
l = d;
break;
}
}
if (l === -1) throw new Error(`The pattern \`${t}\` is not balanced.`);
let c = n.slice(1, l), u = n.slice(l + 1), f;
ca(c) ? f = pa(c) : f = d(c, ","), f = f.flatMap((d) => Vt(d));
let m = Vt(u);
for (let d of m) for (let p of f) i.push(e + p + d);
return i;
}
function ca(t) {
return Hi.test(t);
}
function pa(t) {
let r = t.match(Hi);
if (!r) return [t];
let [, i, e, n] = r, o = n ? parseInt(n, 10) : void 0, l = [];
if (/^-?\d+$/.test(i) && /^-?\d+$/.test(e)) {
let c = parseInt(i, 10), u = parseInt(e, 10);
if (o === void 0 && (o = c <= u ? 1 : -1), o === 0) throw new Error("Step cannot be zero in sequence expansion.");
let f = c < u;
f && o < 0 && (o = -o), !f && o > 0 && (o = -o);
for (let m = c; f ? m <= u : m >= u; m += o) l.push(m.toString());
}
return l;
}
function Ji(t, r) {
let i = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), n = [];
function o(l, c = []) {
if (t.has(l) && !i.has(l)) {
e.has(l) && r.onCircularDependency?.(c, l), e.add(l);
for (let u of t.get(l) ?? []) c.push(l), o(u, c), c.pop();
i.add(l), e.delete(l), n.push(l);
}
}
for (let l of t.keys()) o(l);
return n;
}
var da = /^[a-z]+$/, Dt = ((n) => (n[n.None = 0] = "None", n[n.AtProperty = 1] = "AtProperty", n[n.ColorMix = 2] = "ColorMix", n[n.All = 3] = "All", n))(Dt || {});
function ma() {
throw new Error("No `loadModule` function provided to `compile`");
}
function ga() {
throw new Error("No `loadStylesheet` function provided to `compile`");
}
function ha(t) {
let r = 0, i = null;
for (let e of d(t, " ")) e === "reference" ? r |= 2 : e === "inline" ? r |= 1 : e === "default" ? r |= 4 : e === "static" ? r |= 8 : e.startsWith("prefix(") && e.endsWith(")") && (i = e.slice(7, -1));
return [r, i];
}
var ze = ((u) => (u[u.None = 0] = "None", u[u.AtApply = 1] = "AtApply", u[u.AtImport = 2] = "AtImport", u[u.JsPluginCompat = 4] = "JsPluginCompat", u[u.ThemeFunction = 8] = "ThemeFunction", u[u.Utilities = 16] = "Utilities", u[u.Variants = 32] = "Variants", u[u.AtTheme = 64] = "AtTheme", u))(ze || {});
async function Qi(t, { base: r = "", from: i, loadModule: e = ma, loadStylesheet: n = ga } = {}) {
let o = 0;
t = [ge({ base: r }, t)], o |= await tr(t, r, n, 0, i !== void 0);
let l = null, c = new ct(), u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), m = [], d$13 = null, p = null, v = [], h = [], y = [], b = [], T = null;
_(t, (k, D) => {
if (k.kind !== "at-rule") return;
let N = He(D);
if (k.name === "@tailwind" && (k.params === "utilities" || k.params.startsWith("utilities"))) {
if (p !== null) return R.Replace([]);
if (N.context.reference) return R.Replace([]);
let E = d(k.params, " ");
for (let U of E) if (U.startsWith("source(")) {
let P = U.slice(7, -1);
if (P === "none") {
T = P;
continue;
}
if (P[0] === "\"" && P[P.length - 1] !== "\"" || P[0] === "'" && P[P.length - 1] !== "'" || P[0] !== "'" && P[0] !== "\"") throw new Error("`source(…)` paths must be quoted.");
T = {
base: N.context.sourceBase ?? N.context.base,
pattern: P.slice(1, -1)
};
}
p = k, o |= 16;
}
if (k.name === "@utility") {
if (N.parent !== null) throw new Error("`@utility` cannot be nested.");
if (k.nodes.length === 0) throw new Error(`\`@utility ${k.params}\` is empty. Utilities should include at least one property.`);
let E = Mr(k);
if (E === null) {
if (!k.params.endsWith("-*")) {
if (k.params.endsWith("*")) throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);
if (k.params.includes("*")) throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`);
}
throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`);
}
m.push(E);
}
if (k.name === "@source") {
if (k.nodes.length > 0) throw new Error("`@source` cannot have a body.");
if (N.parent !== null) throw new Error("`@source` cannot be nested.");
let E = !1, U = !1, P = k.params;
if (P[0] === "n" && P.startsWith("not ") && (E = !0, P = P.slice(4)), P[0] === "i" && P.startsWith("inline(") && (U = !0, P = P.slice(7, -1).trim()), P[0] === "\"" && P[P.length - 1] !== "\"" || P[0] === "'" && P[P.length - 1] !== "'" || P[0] !== "'" && P[0] !== "\"") throw new Error("`@source` paths must be quoted.");
let j = P.slice(1, -1);
if (U) {
let G = E ? b : y, Z = d(j, " ");
for (let se of Z) for (let ue of Vt(se)) G.push(ue);
} else h.push({
base: N.context.base,
pattern: j,
negated: E
});
return R.ReplaceSkip([]);
}
if (k.name === "@variant" && (N.parent === null ? k.nodes.length === 0 ? k.name = "@custom-variant" : (_(k.nodes, (E) => {
if (E.kind === "at-rule" && E.name === "@slot") return k.name = "@custom-variant", R.Stop;
}), k.name === "@variant" && v.push(k)) : v.push(k)), k.name === "@custom-variant") {
if (N.parent !== null) throw new Error("`@custom-variant` cannot be nested.");
let [E, U] = d(k.params, " ");
if (!$t.test(E)) throw new Error(`\`@custom-variant ${E}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);
if (k.nodes.length > 0 && U) throw new Error(`\`@custom-variant ${E}\` cannot have both a selector and a body.`);
if (k.nodes.length === 0) {
if (!U) throw new Error(`\`@custom-variant ${E}\` has no selector or body.`);
let P = d(U.slice(1, -1), ",");
if (P.length === 0 || P.some((Z) => Z.trim() === "")) throw new Error(`\`@custom-variant ${E} (${P.join(",")})\` selector is invalid.`);
let j = [], G = [];
for (let Z of P) Z = Z.trim(), Z[0] === "@" ? j.push(Z) : G.push(Z);
u.set(E, (Z) => {
Z.variants.static(E, (se) => {
let ue = [];
G.length > 0 && ue.push(q(G.join(", "), se.nodes));
for (let s of j) ue.push(J(s, se.nodes));
se.nodes = ue;
}, { compounds: Ie([...G, ...j]) });
}), f.set(E, /* @__PURE__ */ new Set());
} else {
let P = /* @__PURE__ */ new Set();
_(k.nodes, (j) => {
j.kind === "at-rule" && j.name === "@variant" && P.add(j.params);
}), u.set(E, (j) => {
j.variants.fromAst(E, k.nodes, j);
}), f.set(E, P);
}
return R.ReplaceSkip([]);
}
if (k.name === "@media") {
let E = d(k.params, " "), U = [];
for (let P of E) if (P.startsWith("source(")) {
let j = P.slice(7, -1);
_(k.nodes, (G) => {
if (G.kind === "at-rule" && G.name === "@tailwind" && G.params === "utilities") return G.params += ` source(${j})`, R.ReplaceStop([ge({ sourceBase: N.context.base }, [G])]);
});
} else if (P.startsWith("theme(")) {
let j = P.slice(6, -1), G = j.includes("reference");
_(k.nodes, (Z) => {
if (Z.kind !== "context") {
if (Z.kind !== "at-rule") {
if (G) throw new Error("Files imported with `@import \"…\" theme(reference)` must only contain `@theme` blocks.\nUse `@reference \"…\";` instead.");
return R.Continue;
}
if (Z.name === "@theme") return Z.params += " " + j, R.Skip;
}
});
} else if (P.startsWith("prefix(")) {
let j = P.slice(7, -1);
_(k.nodes, (G) => {
if (G.kind === "at-rule" && G.name === "@theme") return G.params += ` prefix(${j})`, R.Skip;
});
} else P === "important" ? l = !0 : P === "reference" ? k.nodes = [ge({ reference: !0 }, k.nodes)] : U.push(P);
if (U.length > 0) k.params = U.join(" ");
else if (E.length > 0) return R.Replace(k.nodes);
return R.Continue;
}
if (k.name === "@theme") {
let [E, U] = ha(k.params);
if (o |= 64, N.context.reference && (E |= 2), U) {
if (!da.test(U)) throw new Error(`The prefix "${U}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);
c.prefix = U;
}
return _(k.nodes, (P) => {
if (P.kind === "at-rule" && P.name === "@keyframes") return c.addKeyframes(P), R.Skip;
if (P.kind === "comment") return;
if (P.kind === "declaration" && P.property.startsWith("--")) {
c.add(ye(P.property), P.value ?? "", E, P.src);
return;
}
let j = ie([W(k.name, k.params, [P])]).split(`
`).map((G, Z, se) => `${Z === 0 || Z >= se.length - 2 ? " " : ">"} ${G}`).join(`
`);
throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${j}`);
}), d$13 ? R.ReplaceSkip([]) : (d$13 = q(":root, :host", []), d$13.src = k.src, R.ReplaceSkip(d$13));
}
});
let A = Ei(c, p?.src);
if (l && (A.important = l), b.length > 0) for (let k of b) A.invalidCandidates.add(k);
o |= await qi({
designSystem: A,
base: r,
ast: t,
loadModule: e,
sources: h
});
for (let k of u.keys()) A.variants.static(k, () => {});
for (let k of Ji(f, { onCircularDependency(D, N) {
let E = ie(D.map((U, P) => W("@custom-variant", U, [W("@variant", D[P + 1] ?? N, [])]))).replaceAll(";", " { … }").replace(`@custom-variant ${N} {`, `@custom-variant ${N} { /* \u2190 */`);
throw new Error(`Circular dependency detected in custom variants:
${E}`);
} })) u.get(k)?.(A);
for (let k of m) k(A);
if (d$13) {
let k = [];
for (let [N, E] of A.theme.entries()) {
if (E.options & 2) continue;
let U = a(xe(N), E.value);
U.src = E.src, k.push(U);
}
let D = A.theme.getKeyframes();
for (let N of D) t.push(ge({ theme: !0 }, [B([N])]));
d$13.nodes = [ge({ theme: !0 }, k)];
}
if (o |= rt(t, A), o |= Ue(t, A), o |= Se(t, A), p) {
let k = p;
k.kind = "context", k.context = {};
}
return _(t, (k) => {
if (k.kind === "at-rule") return k.name === "@utility" ? R.Replace([]) : R.Skip;
}), {
designSystem: A,
ast: t,
sources: h,
root: T,
utilitiesNode: p,
features: o,
inlineCandidates: y
};
}
async function va(t, r = {}) {
let { designSystem: i, ast: e, sources: n, root: o, utilitiesNode: l, features: c, inlineCandidates: u } = await Qi(t, r);
e.unshift(ft(`! tailwindcss v${ur} | MIT License | https://tailwindcss.com `));
function f(h) {
i.invalidCandidates.add(h);
}
let m = /* @__PURE__ */ new Set(), d = null, p = 0, v = !1;
for (let h of u) i.invalidCandidates.has(h) || (m.add(h), v = !0);
return {
sources: n,
root: o,
features: c,
build(h) {
if (c === 0) return t;
if (!l) return d ??= Ne(e, i, r.polyfills), d;
let y = v, b = !1;
v = !1;
let T = m.size;
for (let k of h) if (!i.invalidCandidates.has(k)) if (k[0] === "-" && k[1] === "-") {
let D = i.theme.markUsedVariable(k);
y ||= D, b ||= D;
} else m.add(k), y ||= m.size !== T;
if (!y) return d ??= Ne(e, i, r.polyfills), d;
let A = Ve(m, i, { onInvalidCandidate: f }).astNodes;
return r.from && _(A, (k) => {
k.src ??= l.src;
}), !b && p === A.length ? (d ??= Ne(e, i, r.polyfills), d) : (p = A.length, l.nodes = A, d = Ne(e, i, r.polyfills), d);
}
};
}
async function Rf(t, r = {}) {
let i = Te(t, { from: r.from }), e = await va(i, r), n = i, o = t;
return {
...e,
build(l) {
let c = e.build(l);
return c === n || (o = ie(c, !!r.from), n = c), o;
},
buildSourceMap() {
return Zi({ ast: n });
}
};
}
async function Of(t, r = {}) {
return (await Qi(Te(t, { from: r.from }), r)).designSystem;
}
function wa() {
throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.");
}
//#endregion
export { ze as Features, Dt as Polyfills, Of as __unstable__loadDesignSystem, Rf as compile, va as compileAst, wa as default };
//# sourceMappingURL=tailwindcss.js.map