1var __defProp = Object.defineProperty; 2var __typeError = (msg) => { 3 throw TypeError(msg); 4}; 5var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 6var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); 7var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); 8var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); 9var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); 10var _Ne_instances, e_fn, t_fn, n_fn, _a2; 11import { o as e, t } from "./rolldown-runtime-CMxvf4Kt.js"; 12import { t as n } from "./chunk-X4GG3EDV-DHGklrDp.js"; 13import { n as r } from "./lib-DaZz88T4.js"; 14import { t as i } from "./path-browserify-CRIrsyPl.js"; 15import { n as a, r as o, t as s, u as c } from "./cssesc-CBKzJz-F.js"; 16var l = 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`.split(`.`)), u = /^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i; 17function d(e3) { 18 return e3.charCodeAt(0) === 35 || u.test(e3) || l.has(e3.toLowerCase()); 19} 20function f(e3) { 21 return l.has(e3.toLowerCase()); 22} 23var p = [`calc`, `min`, `max`, `clamp`, `mod`, `rem`, `sin`, `cos`, `tan`, `asin`, `acos`, `atan`, `atan2`, `pow`, `sqrt`, `hypot`, `log`, `exp`, `round`]; 24function m(e3) { 25 return e3.indexOf(`(`) !== -1 && p.some((t2) => e3.includes(`${t2}(`)); 26} 27function h(e3) { 28 if (!p.some((t3) => e3.includes(t3))) return e3; 29 let t2 = ``, n2 = [], r2 = null, i2 = null; 30 for (let a2 = 0; a2 < e3.length; a2++) { 31 let o2 = e3.charCodeAt(a2); 32 if (o2 >= 48 && o2 <= 57 || r2 !== null && (o2 === 37 || o2 >= 97 && o2 <= 122 || o2 >= 65 && o2 <= 90) ? r2 = a2 : (i2 = r2, r2 = null), o2 === 40) { 33 t2 += e3[a2]; 34 let r3 = a2; 35 for (let t3 = a2 - 1; t3 >= 0; t3--) { 36 let n3 = e3.charCodeAt(t3); 37 if (n3 >= 48 && n3 <= 57) r3 = t3; 38 else if (n3 >= 97 && n3 <= 122) r3 = t3; 39 else break; 40 } 41 let i3 = e3.slice(r3, a2); 42 if (p.includes(i3)) { 43 n2.unshift(true); 44 continue; 45 } else if (n2[0] && i3 === ``) { 46 n2.unshift(true); 47 continue; 48 } 49 n2.unshift(false); 50 continue; 51 } else if (o2 === 41) t2 += e3[a2], n2.shift(); 52 else if (o2 === 44 && n2[0]) { 53 t2 += `, `; 54 continue; 55 } else { 56 if (o2 === 32 && n2[0] && t2.charCodeAt(t2.length - 1) === 32) continue; 57 if ((o2 === 43 || o2 === 42 || o2 === 47 || o2 === 45) && n2[0]) { 58 let n3 = t2.trimEnd(), r3 = n3.charCodeAt(n3.length - 1), o3 = n3.charCodeAt(n3.length - 2), s2 = e3.charCodeAt(a2 + 1); 59 if ((r3 === 101 || r3 === 69) && o3 >= 48 && o3 <= 57) { 60 t2 += e3[a2]; 61 continue; 62 } else if (r3 === 43 || r3 === 42 || r3 === 47 || r3 === 45) { 63 t2 += e3[a2]; 64 continue; 65 } else if (r3 === 40 || r3 === 44) { 66 t2 += e3[a2]; 67 continue; 68 } else e3.charCodeAt(a2 - 1) === 32 ? t2 += `${e3[a2]} ` : r3 >= 48 && r3 <= 57 || s2 >= 48 && s2 <= 57 || r3 === 41 || s2 === 40 || s2 === 43 || s2 === 42 || s2 === 47 || s2 === 45 || i2 !== null && i2 === a2 - 1 ? t2 += ` ${e3[a2]} ` : t2 += e3[a2]; 69 } else t2 += e3[a2]; 70 } 71 } 72 return t2; 73} 74var g = new Uint8Array(256); 75function _(e3, t2) { 76 let n2 = 0, r2 = [], i2 = 0, a2 = e3.length, o2 = t2.charCodeAt(0); 77 for (let t3 = 0; t3 < a2; t3++) { 78 let s2 = e3.charCodeAt(t3); 79 if (n2 === 0 && s2 === o2) { 80 r2.push(e3.slice(i2, t3)), i2 = t3 + 1; 81 continue; 82 } 83 switch (s2) { 84 case 92: 85 t3 += 1; 86 break; 87 case 39: 88 case 34: 89 for (; ++t3 < a2; ) { 90 let n3 = e3.charCodeAt(t3); 91 if (n3 === 92) { 92 t3 += 1; 93 continue; 94 } 95 if (n3 === s2) break; 96 } 97 break; 98 case 40: 99 g[n2] = 41, n2++; 100 break; 101 case 91: 102 g[n2] = 93, n2++; 103 break; 104 case 123: 105 g[n2] = 125, n2++; 106 break; 107 case 93: 108 case 125: 109 case 41: 110 n2 > 0 && s2 === g[n2 - 1] && n2--; 111 break; 112 } 113 } 114 return r2.push(e3.slice(i2)), r2; 115} 116var v = { color: d, length: fe, percentage: ce, ratio: ue, number: oe, integer: E, url: ee, position: pe, "bg-size": me, "line-width": x, image: te, "family-name": ne, "generic-name": w, "absolute-size": re, "relative-size": ie, angle: ge, vector: ve }; 117function y(e3, t2) { 118 if (e3.startsWith(`var(`)) return null; 119 for (let n2 of t2) if (v[n2]?.(e3)) return n2; 120 return null; 121} 122var b = /^url\(.*\)$/; 123function ee(e3) { 124 return b.test(e3); 125} 126function x(e3) { 127 return _(e3, ` `).every((e4) => fe(e4) || oe(e4) || e4 === `thin` || e4 === `medium` || e4 === `thick`); 128} 129var S = /^(?:element|image|cross-fade|image-set)\(/, C = /^(repeating-)?(conic|linear|radial)-gradient\(/; 130function te(e3) { 131 let t2 = 0; 132 for (let n2 of _(e3, `,`)) if (!n2.startsWith(`var(`)) { 133 if (ee(n2)) { 134 t2 += 1; 135 continue; 136 } 137 if (C.test(n2)) { 138 t2 += 1; 139 continue; 140 } 141 if (S.test(n2)) { 142 t2 += 1; 143 continue; 144 } 145 return false;
146 } 147 return t2 > 0; 148} 149function w(e3) { 150 return e3 === `serif` || e3 === `sans-serif` || e3 === `monospace` || e3 === `cursive` || e3 === `fantasy` || e3 === `system-ui` || e3 === `ui-serif` || e3 === `ui-sans-serif` || e3 === `ui-monospace` || e3 === `ui-rounded` || e3 === `math` || e3 === `emoji` || e3 === `fangsong`; 151} 152function ne(e3) { 153 let t2 = 0; 154 for (let n2 of _(e3, `,`)) { 155 let e4 = n2.charCodeAt(0); 156 if (e4 >= 48 && e4 <= 57) return false; 157 n2.startsWith(`var(`) || (t2 += 1); 158 } 159 return t2 > 0; 160} 161function re(e3) { 162 return e3 === `xx-small` || e3 === `x-small` || e3 === `small` || e3 === `medium` || e3 === `large` || e3 === `x-large` || e3 === `xx-large` || e3 === `xxx-large`; 163} 164function ie(e3) { 165 return e3 === `larger` || e3 === `smaller`; 166} 167var T = /[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/, ae = RegExp(`^${T.source}$`); 168function oe(e3) { 169 return ae.test(e3) || m(e3); 170} 171var se = RegExp(`^${T.source}%$`); 172function ce(e3) { 173 return se.test(e3) || m(e3); 174} 175var le = RegExp(`^${T.source}\\s*/\\s*${T.source}$`); 176function ue(e3) { 177 return le.test(e3) || m(e3); 178} 179var de = RegExp(`^${T.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`.split(`.`).join(`|`)})$`); 180function fe(e3) { 181 return de.test(e3) || m(e3); 182} 183function pe(e3) { 184 let t2 = 0; 185 for (let n2 of _(e3, ` `)) { 186 if (n2 === `center` || n2 === `top` || n2 === `right` || n2 === `bottom` || n2 === `left`) { 187 t2 += 1; 188 continue; 189 } 190 if (!n2.startsWith(`var(`)) { 191 if (fe(n2) || ce(n2)) { 192 t2 += 1; 193 continue; 194 } 195 return false; 196 } 197 } 198 return t2 > 0; 199} 200function me(e3) { 201 let t2 = 0; 202 for (let n2 of _(e3, `,`)) { 203 if (n2 === `cover` || n2 === `contain`) { 204 t2 += 1; 205 continue; 206 } 207 let e4 = _(n2, ` `); 208 if (e4.length !== 1 && e4.length !== 2) return false; 209 if (e4.every((e5) => e5 === `auto` || fe(e5) || ce(e5))) { 210 t2 += 1; 211 continue; 212 } 213 } 214 return t2 > 0; 215} 216var he = RegExp(`^${T.source}(${[`deg`, `rad`, `grad`, `turn`].join(`|`)})$`); 217function ge(e3) { 218 return he.test(e3); 219} 220var _e = RegExp(`^${T.source} +${T.source} +${T.source}$`); 221function ve(e3) { 222 return _e.test(e3); 223} 224function E(e3) { 225 let t2 = Number(e3); 226 return Number.isInteger(t2) && t2 >= 0 && String(t2) === String(e3); 227} 228function ye(e3) { 229 let t2 = Number(e3); 230 return Number.isInteger(t2) && t2 > 0 && String(t2) === String(e3); 231} 232function D(e3) { 233 return xe(e3, 0.25); 234} 235function be(e3) { 236 return xe(e3, 0.25); 237} 238function xe(e3, t2) { 239 let n2 = Number(e3); 240 return n2 >= 0 && n2 % t2 === 0 && String(n2) === String(e3); 241} 242function Se(e3) { 243 return { __BARE_VALUE__: e3 }; 244} 245var O = Se((e3) => { 246 if (E(e3.value)) return e3.value; 247}), k = Se((e3) => { 248 if (E(e3.value)) return `${e3.value}%`; 249}), Ce = Se((e3) => { 250 if (E(e3.value)) return `${e3.value}px`; 251}), we = Se((e3) => { 252 if (E(e3.value)) return `${e3.value}ms`; 253}), Te = Se((e3) => { 254 if (E(e3.value)) return `${e3.value}deg`; 255}), Ee = Se((e3) => { 256 if (e3.fraction === null) return; 257 let [t2, n2] = _(e3.fraction, `/`); 258 if (!(!E(t2) || !E(n2))) return e3.fraction; 259}), De = Se((e3) => { 260 if (E(Number(e3.value))) return `repeat(${e3.value}, minmax(0, 1fr))`; 261}), Oe = { accentColor: ({ theme: e3 }) => e3(`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`, ...Ee }, backdropBlur: ({ theme: e3 }) => e3(`blur`), backdropBrightness: ({ theme: e3 }) => ({ ...e3(`brightness`), ...k }), backdropContrast: ({ theme: e3 }) => ({ ...e3(`contrast`), ...k }), backdropGrayscale: ({ theme: e3 }) => ({ ...e3(`grayscale`), ...k }), backdropHueRotate: ({ theme: e3 }) => ({ ...e3(`hueRotate`), ...Te }), backdropInvert: ({ theme: e3 }) => ({ ...e3(`invert`), ...k }), backdropOpacity: ({ theme: e3 }) => ({ ...e3(`opacity`), ...k }), backdropSaturate: ({ theme: e3 }) => ({ ...e3(`saturate`), ...k }), backdropSepia: ({ theme: e3 }) => ({ ...e3(`sepia`), ...k }), backgroundColor: ({ theme: e3 }) => e3(`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"
vendor: 6,273 bytes, line 261
261: `linear-gradient(to left, var(--tw-gradient-stops))`, "gradient-to-tl": `linear-gradient(to top left, var(--tw-gradient-stops))` }, backgroundOpacity: ({ theme: e3 }) => e3(`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: e3 }) => ({ DEFAULT: `currentcolor`, ...e3(`colors`) }), borderOpacity: ({ theme: e3 }) => e3(`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: e3 }) => e3(`spacing`), borderWidth: { DEFAULT: `1px`, 0: `0px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, 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: e3 }) => e3(`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`, ...k }, caretColor: ({ theme: e3 }) => e3(`colors`), colors: () => ({ ...n }), columns: { auto: `auto`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, "3xs": `16rem`, "2xs": `18rem`, xs: `20rem`, sm: `24rem`, md: `28rem`, lg: `32rem`, xl: `36rem`, "2xl": `42rem`, "3xl": `48rem`, "4xl": `56rem`, "5xl": `64rem`, "6xl": `72rem`, "7xl": `80rem`, ...O }, container: {}, content: { none: `none` }, contrast: { 0: `0`, 50: `.5`, 75: `.75`, 100: `1`, 125: `1.25`, 150: `1.5`, 200: `2`, ...k }, 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: e3 }) => e3(`borderColor`), divideOpacity: ({ theme: e3 }) => e3(`borderOpacity`), divideWidth: ({ theme: e3 }) => ({ ...e3(`borderWidth`), ...Ce }), 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: e3 }) => e3(`colors`), flex: { 1: `1 1 0%`, auto: `1 1 auto`, initial: `0 1 auto`, none: `none` }, flexBasis: ({ theme: e3 }) => ({ 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%`, ...e3(`spacing`) }), flexGrow: { 0: `0`, DEFAULT: `1`, ...O }, flexShrink: { 0: `0`, DEFAULT: `1`, ...O }, fontFamily: { sans: [`ui-sans-serif`, `system-ui`, `sans-serif`, `"Apple Color Emoji"`, `"Segoe UI Emoji"`, `"Segoe UI Symbol"`, `"Noto Color Emoji"`], serif: [`ui-serif`, `Georgia`, `Cambria`, `"Times New Roman"`, `Times`, `serif`], mono: [`ui-monospace`, `SFMono-Regular`, `Menlo`, `Monaco`, `Consolas`, `"Liberation Mono"`, `"Courier New"`, `monospace`] }, fontSize: { xs: [`0.75rem`, { lineHeight: `1rem` }], sm: [`0.875rem`, { lineHeight: `1.25rem` }], base: [`1rem`, { lineHeight: `1.5rem` }], lg: [`1.125rem`, { lineHeight: `1.75rem` }], xl: [`1.25rem`, { lineHeight: `1.75rem` }], "2xl": [`1.5rem`, { lineHeight: `2rem` }], "3xl": [`1.875rem`, { lineHeight: `2.25rem` }], "4xl": [`2.25rem`, { lineHeight: `2.5rem` }], "5xl": [`3rem`, { lineHeight: `1` }], "6xl": [`3.75rem`, { lineHeight: `1` }], "7xl": [`4.5rem`, { lineHeight: `1` }], "8xl": [`6rem`, { lineHeight: `1` }], "9xl": [`8rem`, { lineHeight: `1` }] }, fontWeight: { thin: `100`, extralight: `200`, light: `300`, normal: `400`, medium: `500`, semibold: `600`, bold: `700`, extrabold: `800`, black: `900` }, gap: ({ theme: e3 }) => e3(`spacing`), gradientColorStops: ({ theme: e3 }) => e3(`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%`, ...k }, grayscale: { 0: `0`, DEFAULT: `100%`, ...k }, 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-
2617": `span 7 / span 7`, "span-8": `span 8 / span 8`, "span-9": `span 9 / span 9`, "span-10": `span 10 / span 10`, "span-11": `span 11 / span 11`, "span-12": `span 12 / span 12`, "span-full": `1 / -1` }, gridColumnEnd: { auto: `auto`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, 13: `13`, ...O }, gridColumnStart: { auto: `auto`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, 13: `13`, ...O }, gridRow: { auto: `auto`, "span-1": `span 1 / span 1`, "span-2": `span 2 / span 2`, "span-3": `span 3 / span 3`, "span-4": `span 4 / span 4`, "span-5": `span 5 / span 5`, "span-6": `span 6 / span 6`, "span-7": `span 7 / span 7`, "span-8": `span 8 / span 8`, "span-9": `span 9 / span 9`, "span-10": `span 10 / span 10`, "span-11": `span 11 / span 11`, "span-12": `span 12 / span 12`, "span-full": `1 / -1` }, gridRowEnd: { auto: `auto`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, 13: `13`, ...O }, gridRowStart: { auto: `auto`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, 13: `13`, ...O }, gridTemplateColumns: { none: `none`, subgrid: `subgrid`, 1: `repeat(1, minmax(0, 1fr))`, 2: `repeat(2, minmax(0, 1fr))`, 3: `repeat(3, minmax(0, 1fr))`, 4: `repeat(4, minmax(0, 1fr))`, 5: `repeat(5, minmax(0, 1fr))`, 6: `repeat(6, minmax(0, 1fr))`, 7: `repeat(7, minmax(0, 1fr))`, 8: `repeat(8, minmax(0, 1fr))`, 9: `repeat(9, minmax(0, 1fr))`, 10: `repeat(10, minmax(0, 1fr))`, 11: `repeat(11, minmax(0, 1fr))`, 12: `repeat(12, minmax(0, 1fr))`, ...De }, 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))`, ...De }, height: ({ theme: e3 }) => ({ 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`, ...e3(`spacing`) }), hueRotate: { 0: `0deg`, 15: `15deg`, 30: `30deg`, 60: `60deg`, 90: `90deg`, 180: `180deg`, ...Te }, inset: ({ theme: e3 }) => ({ auto: `auto`, "1/2": `50%`, "1/3": `33.333333%`, "2/3": `66.666667%`, "1/4": `25%`, "2/4": `50%`, "3/4": `75%`, full: `100%`, ...e3(`spacing`) }), invert: { 0: `0`, DEFAULT: `100%`, ...k }, 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: e3 }) => ({ auto: `auto`, ...e3(`spacing`) }), lineClamp: { 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, ...O }, maxHeight: ({ theme: e3 }) => ({ none: `none`, full: `100%`, screen: `100vh`, svh: `100svh`, lvh: `100lvh`, dvh: `100dvh`, min: `min-content`, max: `max-content`, fit: `fit-content`, ...e3(`spacing`) }), maxWidth: ({ theme: e3 }) => ({ 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`, ...e3(`spacing`) }), minHeight: ({ theme: e3 }) => ({ full: `100%`, screen: `100vh`, svh: `100svh`, lvh: `100lvh`, dvh: `100dvh`, min: `min-content`, max: `max-content`, fit: `fit-content`, ...e3(`spacing`) }), minWidth: ({ theme: e3 }) => ({ full: `100%`, min: `min-content`, max: `max-content`, fit: `fit-content`, ...e3(`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`, ...k }, order: { first: `-9999`, last: `9999`, none: `0`, 1: `1`, 2: `2`, 3: `3`, 4: `4`, 5: `5`, 6: `6`, 7: `7`, 8: `8`, 9: `9`, 10: `10`, 11: `11`, 12: `12`, ...O }, outlineColor: ({ theme: e3 }) => e3(`colors`), outlineOffset: { 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, outlineWidth: { 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, padding: ({ theme: e3 }) => e3(`spacing`), placeholderColor: ({ theme: e3 }) => e3(`colors`), placeholderOpacity: ({ theme: e3 }) => e3(`opacity`), ringColor: ({ theme: e3 }) => ({ DEFAULT: `currentcolor`, ...e3(`colors`) }), ringOffsetColor: ({ theme: e3 }) => e3(`colors`), ringOffsetWidth: { 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, ringOpacity: ({ theme: e3 }) => ({ DEFAULT: `0.5`, ...e3(`opacity`) }), ringWidth: { DEFAULT: `3px`, 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }
261, rotate: { 0: `0deg`, 1: `1deg`, 2: `2deg`, 3: `3deg`, 6: `6deg`, 12: `12deg`, 45: `45deg`, 90: `90deg`, 180: `180deg`, ...Te }, saturate: { 0: `0`, 50: `.5`, 100: `1`, 150: `1.5`, 200: `2`, ...k }, 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`, ...k }, screens: { sm: `40rem`, md: `48rem`, lg: `64rem`, xl: `80rem`, "2xl": `96rem` }, scrollMargin: ({ theme: e3 }) => e3(`spacing`), scrollPadding: ({ theme: e3 }) => e3(`spacing`), sepia: { 0: `0`, DEFAULT: `100%`, ...k }, skew: { 0: `0deg`, 1: `1deg`, 2: `2deg`, 3: `3deg`, 6: `6deg`, 12: `12deg`, ...Te }, space: ({ theme: e3 }) => e3(`spacing`), spacing: { px: `1px`, 0: `0px`, 0.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: e3 }) => ({ none: `none`, ...e3(`colors`) }), strokeWidth: { 0: `0`, 1: `1`, 2: `2`, ...O }, supports: {}, data: {}, textColor: ({ theme: e3 }) => e3(`colors`), textDecorationColor: ({ theme: e3 }) => e3(`colors`), textDecorationThickness: { auto: `auto`, "from-font": `from-font`, 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, textIndent: ({ theme: e3 }) => e3(`spacing`), textOpacity: ({ theme: e3 }) => e3(`opacity`), textUnderlineOffset: { auto: `auto`, 0: `0px`, 1: `1px`, 2: `2px`, 4: `4px`, 8: `8px`, ...Ce }, 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`, ...we }, transitionDuration: { DEFAULT: `150ms`, 0: `0s`, 75: `75ms`, 100: `100ms`, 150: `150ms`, 200: `200ms`, 300: `300ms`, 500: `500ms`, 700: `700ms`, 1e3: `1000ms`, ...we }, 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: e3 }) => ({ "1/2": `50%`, "1/3": `33.333333%`, "2/3": `66.666667%`, "1/4": `25%`, "2/4": `50%`, "3/4": `75%`, full: `100%`, ...e3(`spacing`) }), size: ({ theme: e3 }) => ({ 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`, ...e3(`spacing`) }), width: ({ theme: e3 }) => ({ 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`, ...e3(`spacing`) }), willChange: { auto: `auto`, scroll: `scroll-position`, contents: `contents`, transform: `transform` }, zIndex: { auto: `auto`, 0: `0`, 10: `10`, 20: `20`, 30: `30`, 40: `40`, 50: `50`, ...O } }; 262function ke(e3) { 263 if (arguments.length === 0) throw TypeError("`CSS.escape` requires an argument."); 264 let t2 = String(e3), n2 = t2.length, r2 = -1, i2, a2 = ``, o2 = t2.charCodeAt(0); 265 if (n2 === 1 && o2 === 45) return `\\` + t2; 266 for (; ++r2 < n2; ) { 267 if (i2 = t2.charCodeAt(r2), i2 === 0) { 268 a2 += `\uFFFD`; 269 continue; 270 } 271 if (i2 >= 1 && i2 <= 31 || i2 === 127 || r2 === 0 && i2 >= 48 && i2 <= 57 || r2 === 1 && i2 >= 48 && i2 <= 57 && o2 === 45) { 272 a2 += `\\` + i2.toString(16) + ` `; 273 continue; 274 } 275 if (i2 >= 128 || i2 === 45 || i2 === 95 || i2 >= 48 && i2 <= 57 || i2 >= 65 && i2 <= 90 || i2 >= 97 && i2 <= 122) { 276 a2 += t2.charAt(r2); 277 continue; 278 } 279 a2 += `\\` + t2.charAt(r2); 280 } 281 return a2; 282} 283function Ae(e3) { 284 return e3.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g, (e4) => { 285 if (e4.length <= 2) return e4[1]; 286 let t2 = Number.parseInt(e4.slice(1).trim(), 16); 287 return t2 === 0 || t2 > 1114111 || t2 >= 55296 && t2 <= 57343 ? `\uFFFD` : String.fromCodePoint(t2); 288 }); 289} 290var je = /* @__PURE__ */ 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`]]]); 291function Me(e3, t2) { 292 return (je.get(t2) ?? []).some((t3) => e3 === t3 || e3.startsWith(`${t3}-`)); 293} 294var Ne = (_a2 = class { 295 constructor(e3 = /* @__PURE__ */ new Map(), t2 = /* @__PURE__ */ new Set([])) { 296 __privateAdd(this, _Ne_instances); 297 __publicField(this, "values"); 298 __publicField(this, "keyframes"); 299 __publicField(this, "prefix", null); 300 this.values = e3, this.keyframes = t2; 301 } 302 get size() { 303 return this.values.size; 304 } 305 add(e3, t2, n2 = 0, r2) { 306 if (e3.endsWith(`-*`)) { 307 if (t2 !== `initial`) throw Error(`Invalid theme value \`${t2}\` for namespace \`${e3}\``); 308 e3 === `--*` ? this.values.clear() : this.clearNamespace(e3.slice(0, -2), 0); 309 } 310 if (n2 & 4) { 311 let t3 = this.values.get(e3); 312 if (t3 && !(t3.options & 4)) return; 313 } 314 t2 === `initial` ? this.values.delete(e3) : this.values.set(e3, { value: t2, options: n2, src: r2 }); 315 } 316 keysInNamespaces(e3) { 317 let t2 = []; 318 for (let n2 of e3) { 319 let e4 = `${n2}-`; 320 for (let r2 of this.values.keys()) r2.startsWith(e4) && r2.indexOf(`--`, 2) === -1 && (Me(r2, n2) || t2.push(r2.slice(e4.length))); 321 } 322 return t2; 323 } 324 get(e3) { 325 for (let t2 of e3) { 326 let e4 = this.values.get(t2); 327 if (e4) return e4.value; 328 } 329 return null; 330 } 331 hasDefault(e3) { 332 return (this.getOptions(e3) & 4) == 4; 333 } 334 getOptions(e3) { 335 return e3 = Ae(__privateMethod(this, _Ne_instances, e_fn).call(this, e3)), this.values.get(e3)?.options ?? 0; 336 } 337 entries() { 338 return this.prefix ? Array.from(this.values, (e3) => (e3[0] = this.prefixKey(e3[0]), e3)) : this.values.entries(); 339 } 340 prefixKey(e3) { 341 return this.prefix ? `--${this.prefix}-${e3.slice(2)}` : e3; 342 } 343 clearNamespace(e3, t2) { 344 let n2 = je.get(e3) ?? []; 345 e: for (let r2 of this.values.keys()) if (r2.startsWith(e3)) { 346 if (t2 !== 0 && (this.getOptions(r2) & t2) !== t2) continue; 347 for (let e4 of n2) if (r2.startsWith(e4)) continue e; 348 this.values.delete(r2); 349 } 350 } 351 markUsedVariable(e3) { 352 let t2 = Ae(__privateMethod(this, _Ne_instances, e_fn).call(this, e3)), n2 = this.values.get(t2); 353 if (!n2) return false;
354 let r2 = n2.options & 16; 355 return n2.options |= 16, !r2; 356 } 357 resolve(e3, t2, n2 = 0) { 358 let r2 = __privateMethod(this, _Ne_instances, t_fn).call(this, e3, t2); 359 if (!r2) return null; 360 let i2 = this.values.get(r2); 361 return (n2 | i2.options) & 1 ? i2.value : __privateMethod(this, _Ne_instances, n_fn).call(this, r2); 362 } 363 resolveValue(e3, t2) { 364 let n2 = __privateMethod(this, _Ne_instances, t_fn).call(this, e3, t2); 365 return n2 ? this.values.get(n2).value : null; 366 } 367 resolveWith(e3, t2, n2 = []) { 368 let r2 = __privateMethod(this, _Ne_instances, t_fn).call(this, e3, t2); 369 if (!r2) return null; 370 let i2 = {}; 371 for (let e4 of n2) { 372 let t3 = `${r2}${e4}`, n3 = this.values.get(t3); 373 n3 && (n3.options & 1 ? i2[e4] = n3.value : i2[e4] = __privateMethod(this, _Ne_instances, n_fn).call(this, t3)); 374 } 375 let a2 = this.values.get(r2); 376 return a2.options & 1 ? [a2.value, i2] : [__privateMethod(this, _Ne_instances, n_fn).call(this, r2), i2]; 377 } 378 namespace(e3) { 379 let t2 = /* @__PURE__ */ new Map(), n2 = `${e3}-`; 380 for (let [r2, i2] of this.values) r2 === e3 ? t2.set(null, i2.value) : r2.startsWith(`${n2}-`) ? t2.set(r2.slice(e3.length), i2.value) : r2.startsWith(n2) && t2.set(r2.slice(n2.length), i2.value); 381 return t2; 382 } 383 addKeyframes(e3) { 384 this.keyframes.add(e3); 385 } 386 getKeyframes() { 387 return Array.from(this.keyframes); 388 } 389}, _Ne_instances = new WeakSet(), e_fn = function(e3) { 390 return this.prefix ? `--${e3.slice(3 + this.prefix.length)}` : e3; 391}, t_fn = function(e3, t2) { 392 for (let n2 of t2) { 393 let t3 = e3 === null ? n2 : `${n2}-${e3}`; 394 if (!this.values.has(t3)) if (e3 !== null && e3.includes(`.`)) { 395 if (t3 = `${n2}-${e3.replaceAll(`.`, `_`)}`, !this.values.has(t3)) continue; 396 } else continue; 397 if (!Me(t3, n2)) return t3; 398 } 399 return null; 400}, n_fn = function(e3) { 401 let t2 = this.values.get(e3); 402 if (!t2) return null; 403 let n2 = null; 404 return t2.options & 2 && (n2 = t2.value), `var(${ke(this.prefixKey(e3))}${n2 ? `, ${n2}` : ``})`; 405}, _a2), Pe = `4.3.1`; 406function Fe(e3) { 407 let t2 = [0]; 408 for (let n3 = 0; n3 < e3.length; n3++) e3.charCodeAt(n3) === 10 && t2.push(n3 + 1); 409 function n2(e4) { 410 let n3 = 0, r3 = t2.length; 411 for (; r3 > 0; ) { 412 let i3 = (r3 | 0) >> 1, a2 = n3 + i3; 413 t2[a2] <= e4 ? (n3 = a2 + 1, r3 = r3 - i3 - 1) : r3 = i3; 414 } 415 --n3; 416 let i2 = e4 - t2[n3]; 417 return { line: n3 + 1, column: i2 }; 418 } 419 function r2({ line: e4, column: n3 }) { 420 --e4, e4 = Math.min(Math.max(e4, 0), t2.length - 1); 421 let r3 = t2[e4], i2 = t2[e4 + 1] ?? r3; 422 return Math.min(Math.max(r3 + n3, 0), i2); 423 } 424 return { find: n2, findOffset: r2 }; 425} 426var Ie = 92, Le = 47, Re = 42, ze = 34, Be = 39, Ve = 58, He = 59, A = 10, Ue = 13, We = 32, Ge = 9, Ke = 123, qe = 125, Je = 40, Ye = 41, Xe = 91, Ze = 93, Qe = 45, $e = 64, et = 33, tt = class e2 extends Error { 427 constructor(t2, n2) { 428 if (n2) { 429 let e3 = n2[0], r2 = Fe(e3.code).find(n2[1]); 430 t2 = `${e3.file}:${r2.line}:${r2.column + 1}: ${t2}`; 431 } 432 super(t2); 433 __publicField(this, "loc"); 434 this.name = `CssSyntaxError`, this.loc = n2, Error.captureStackTrace && Error.captureStackTrace(this, e2); 435 } 436}; 437function nt(e3, t2) { 438 let n2 = t2?.from ? { file: t2.from, code: e3 } : null; 439 e3[0] === `\uFEFF` && (e3 = ` ` + e3.slice(1)); 440 let r2 = [], i2 = [], a2 = [], o2 = null, s2 = null, c2 = ``, l2 = ``, u2 = 0, d2; 441 for (let t3 = 0; t3 < e3.length; t3++) { 442 let f2 = e3.charCodeAt(t3); 443 if (!(f2 === Ue && (d2 = e3.charCodeAt(t3 + 1), d2 === A))) if (f2 === Ie) c2 === `` && (u2 = t3), c2 += e3.slice(t3, t3 + 2), t3 += 1; 444 else if (f2 === Le && e3.charCodeAt(t3 + 1) === Re) { 445 let r3 = t3; 446 for (let n3 = t3 + 2; n3 < e3.length; n3++) if (d2 = e3.charCodeAt(n3), d2 === Ie) n3 += 1; 447 else if (d2 === Re && e3.charCodeAt(n3 + 1) === Le) { 448 t3 = n3 + 1; 449 break; 450 } 451 let a3 = e3.slice(r3, t3 + 1); 452 if (a3.charCodeAt(2) === et) { 453 let e4 = Et(a3.slice(2, -2)); 454 i2.push(e4), n2 && (e4.src = [n2, r3, t3 + 1], e4.dst = [n2, r3, t3 + 1]); 455 } 456 } else if (f2 === Be || f2 === ze) { 457 let r3 = at(e3, t3, f2, n2); 458 c2 += e3.slice(t3, r3 + 1), t3 = r3; 459 } else { 460 if ((f2 === We || f2 === A || f2 === Ge) && (d2 = e3.charCodeAt(t3 + 1)) && (d2 === We || d2 === A || d2 === Ge || d2 === Ue && (d2 = e3.charCodeAt(t3 + 2)) && d2 == A)) continue; 461 if (f2 === A) { 462 if (c2.length === 0) continue; 463 d2 = c2.charCodeAt(c2.length - 1), d2 !== We && d2 !== A && d2 !== Ge && (c2 += ` `); 464 } else if (f2 === Qe && e3.charCodeAt(t3 + 1) === Qe && c2.length === 0) { 465 let i3 = ``, a3 = t3, s3 = -1; 466 for (let r3 = t3 + 2; r3 < e3.length; r3++) if (d2 = e3.charCodeAt(r3), d2 === Ie) r3 += 1; 467 else if (d2 === Be || d2 === ze) r3 = at(e3, r3, d2, n2); 468 else if (d2 === Le && e3.charCodeAt(r3 + 1) === Re) { 469 for (let t4 = r3 + 2; t4 < e3.length; t4++) if (d2 = e3.charCodeAt(t4), d2 === Ie) t4 += 1; 470 else if (d2 === Re && e3.charCodeAt(t4 + 1) === Le) { 471 r3 = t4 + 1; 472 break; 473 } 474 } else if (s3 === -1 && d2 === Ve) s3 = c2.length + r3 - a3; 475 else if (d2 === He && i3.length === 0) { 476 c2 += e3.slice(a3, r3), t3 = r3; 477 break; 478 } else if (d2 === Je) i3 += `)`; 479 else if (d2 === Xe) i3 += `]`; 480 else if (d2 === Ke) i3 += `}`; 481 else if ((d2 === qe || e3.length - 1 === r3) && i3.length === 0) { 482 t3 = r3 - 1, c2 += e3.slice(a3, r3); 483 break; 484 } else (d2 === Ye || d2 === Ze || d2 === qe) && i3.length > 0 && e3[r3] === i3[i3.length - 1] && (i3 = i3.slice(0, -1)); 485 let l3 = it(c2, s3); 486 if (!l3) throw new tt(`Invalid custom property, expected a value`, n2 ? [n2, a3, t3] : null); 487 n2 && (l3.src = [n2, a3, t3], l3.dst = [n2, a3, t3]), o2 ? o2.nodes.push(l3) : r2.push(l3), c2 = ``; 488 } else if (f2 === He && c2.charCodeAt(0) === $e) s2 = rt(c2), n2 && (s2.src = [n2, u2, t3], s2.dst = [n2, u2, t3]), o2 ? o2.nodes.push(s2) : r2.push(s2), c2 = ``, s2 = null; 489 else if (f2 === He && l2[l2.length - 1] !== `)`) { 490 let e4 = it(c2); 491 if (!e4) { 492 if (c2.length === 0) continue; 493 throw new tt(`Invalid declaration: \`${c2.trim()}\``, n2 ? [n2, u2, t3] : null); 494 } 495 n2 && (e4.src = [n2, u2, t3], e4.dst = [n2, u2, t3]), o2 ? o2.nodes.push(e4) : r2.push(e4), c2 = ``; 496 } else if (f2 === Ke && l2[l2.length - 1] !== `)`) l2 += `}`, s2 = z(c2.trim()), n2 && (s2.src = [n2, u2, t3], s2.dst = [n2, u2, t3]), o2 && o2.nodes.push(s2), a2.push(o2), o2 = s2, c2 = ``, s2 = null; 497 else if (f2 === qe && l2[l2.length - 1] !== `)`) { 498 if (l2 === ``) throw new tt(`Missing opening {`, n2 ? [n2, t3, t3] : null); 499 if (l2 = l2.slice(0, -1), c2.length > 0) if (c2.charCodeAt(0) === $e) s2 = rt(c2), n2 && (s2.src = [n2, u2, t3], s2.dst = [n2, u2, t3]), o2 ? o2.nodes.push(s2) : r2.push(s2), c2 = ``, s2 = null; 500 else { 501 let e5 = c2.indexOf(`:`); 502 if (o2) { 503 let r3 = it(c2, e5); 504 if (!r3) throw new tt(`Invalid declaration: \`${c2.trim()}\``, n2 ? [n2, u2, t3] : null); 505 n2 && (r3.src = [n2, u2, t3], r3.dst = [n2, u2, t3]), o2.nodes.push(r3); 506 } 507 } 508 let e4 = a2.pop() ?? null; 509 e4 === null && o2 && r2.push(o2), o2 = e4, c2 = ``, s2 = null; 510 } else if (f2 === Je) l2 += `)`, c2 += `(`; 511 else if (f2 === Ye) { 512 if (l2[l2.length - 1] !== `)`) throw new tt(`Missing opening (`, n2 ? [n2, t3, t3] : null); 513 l2 = l2.slice(0, -1), c2 += `)`; 514 } else { 515 if (c2.length === 0 && (f2 === We || f2 === A || f2 === Ge)) continue; 516 c2 === `` && (u2 = t3), c2 += String.fromCharCode(f2); 517 } 518 } 519 } 520 if (c2.charCodeAt(0) === $e) { 521 let t3 = rt(c2); 522 n2 && (t3.src = [n2, u2, e3.length], t3.dst = [n2, u2, e3.length]), r2.push(t3); 523 } 524 if (l2.length > 0 && o2) { 525 if (o2.kind === `rule`) throw new tt(`Missing closing } at ${o2.selector}`, o2.src ? [o2.src[0], o2.src[1], o2.src[1]] : null); 526 if (o2.kind === `at-rule`) throw new tt(`Missing closing } at ${o2.name} ${o2.params}`, o2.src ? [o2.src[0], o2.src[1], o2.src[1]] : null); 527 } 528 return i2.length > 0 ? i2.concat(r2) : r2; 529} 530function rt(e3, t2 = []) { 531 let n2 = e3, r2 = ``; 532 for (let t3 = 5; t3 < e3.length; t3++) { 533 let i2 = e3.charCodeAt(t3); 534 if (i2 === We || i2 === Ge || i2 === Je) { 535 n2 = e3.slice(0, t3), r2 = e3.slice(t3); 536 break; 537 } 538 } 539 return R(n2.trim(), r2.trim(), t2); 540} 541function it(e3, t2 = e3.indexOf(`:`)) { 542 if (t2 === -1) return null; 543 let n2 = e3.indexOf(`!important`, t2 + 1); 544 return B(e3.slice(0, t2).trim(), e3.slice(t2 + 1, n2 === -1 ? e3.length : n2).trim(), n2 !== -1); 545} 546function at(e3, t2, n2, r2 = null) { 547 let i2; 548 for (let a2 = t2 + 1; a2 < e3.length; a2++) if (i2 = e3.charCodeAt(a2), i2 === Ie) a2 += 1; 549 else { 550 if (i2 === n2) return a2; 551 if (i2 === He && (e3.charCodeAt(a2 + 1) === A || e3.charCodeAt(a2 + 1) === Ue && e3.charCodeAt(a2 + 2) === A)) throw new tt(`Unterminated string: ${e3.slice(t2, a2 + 1) + String.fromCharCode(n2)}`, r2 ? [r2, t2, a2 + 1] : null); 552 if (i2 === A || i2 === Ue && e3.charCodeAt(a2 + 1) === A) throw new tt(`Unterminated string: ${e3.slice(t2, a2) + String.fromCharCode(n2)}`, r2 ? [r2, t2, a2 + 1] : null); 553 } 554 return t2; 555} 556var j = class extends Map { 557 constructor(e3) { 558 super(); 559 __publicField(this, "factory"); 560 this.factory = e3; 561 } 562 get(e3) { 563 let t2 = super.get(e3); 564 return t2 === void 0 && (t2 = this.factory(e3, this), this.set(e3, t2)), t2; 565 } 566}; 567function M(e3) { 568 return { kind: `word`, value: e3 }; 569} 570function ot(e3, t2) { 571 return { kind: `function`, value: e3, nodes: t2 }; 572} 573function st(e3) { 574 return { kind: `separator`, value: e3 }; 575} 576function N(e3) { 577 let t2 = ``; 578 for (let n2 of e3) switch (n2.kind) { 579 case `word`: 580 case `separator`: 581 t2 += n2.value; 582 break; 583 case `function`: 584 t2 += n2.value + `(` + N(n2.nodes) + `)`; 585 } 586 return t2; 587} 588var ct = 92, lt = 41, ut = 58, dt = 44, ft = 34, pt = 61, mt = 62, ht = 60, gt = 10, _t = 40, vt = 39, yt = 47, bt = 32, xt = 9; 589function P(e3) { 590 e3 = e3.replaceAll(`\r 591`, ` 592`); 593 let t2 = [], n2 = [], r2 = null, i2 = ``, a2; 594 for (let o2 = 0; o2 < e3.length; o2++) { 595 let s2 = e3.charCodeAt(o2); 596 switch (s2) { 597 case ct: 598 i2 += e3[o2] + e3[o2 + 1], o2++; 599 break; 600 case yt: { 601 if (i2.length > 0) { 602 let e4 = M(i2); 603 r2 ? r2.nodes.push(e4) : t2.push(e4), i2 = ``; 604 } 605 let n3 = M(e3[o2]); 606 r2 ? r2.nodes.push(n3) : t2.push(n3); 607 break; 608 } 609 case ut: 610 case dt: 611 case pt: 612 case mt: 613 case ht: 614 case gt: 615 case bt: 616 case xt: { 617 if (i2.length > 0) { 618 let e4 = M(i2); 619 r2 ? r2.nodes.push(e4) : t2.push(e4), i2 = ``; 620 } 621 let n3 = o2, s3 = o2 + 1; 622 for (; s3 < e3.length && (a2 = e3.charCodeAt(s3), !(a2 !== ut && a2 !== dt && a2 !== pt && a2 !== mt && a2 !== ht && a2 !== gt && a2 !== bt && a2 !== xt)); s3++) ; 623 o2 = s3 - 1; 624 let c2 = st(e3.slice(n3, s3)); 625 r2 ? r2.nodes.push(c2) : t2.push(c2); 626 break; 627 } 628 case vt: 629 case ft: { 630 let t3 = o2; 631 for (let t4 = o2 + 1; t4 < e3.length; t4++) if (a2 = e3.charCodeAt(t4), a2 === ct) t4 += 1; 632 else if (a2 === s2) { 633 o2 = t4; 634 break; 635 } 636 i2 += e3.slice(t3, o2 + 1); 637 break; 638 } 639 case _t: { 640 let e4 = ot(i2, []); 641 i2 = ``, r2 ? r2.nodes.push(e4) : t2.push(e4), n2.push(e4), r2 = e4; 642 break; 643 } 644 case lt: { 645 let e4 = n2.pop(); 646 if (i2.length > 0) { 647 let t3 = M(i2); 648 e4?.nodes.push(t3), i2 = ``; 649 } 650 r2 = n2.length > 0 ? n2[n2.length - 1] : null; 651 break; 652 } 653 default: 654 i2 += String.fromCharCode(s2); 655 } 656 } 657 return i2.length > 0 && t2.push(M(i2)), t2; 658} 659var St = ((e3) =>
659 (e3[e3.Continue = 0] = `Continue`, e3[e3.Skip = 1] = `Skip`, e3[e3.Stop = 2] = `Stop`, e3[e3.Replace = 3] = `Replace`, e3[e3.ReplaceSkip = 4] = `ReplaceSkip`, e3[e3.ReplaceStop = 5] = `ReplaceStop`, e3))(St || {}), F = { Continue: { kind: 0 }, Skip: { kind: 1 }, Stop: { kind: 2 }, Replace: (e3) => ({ kind: 3, nodes: Array.isArray(e3) ? e3 : [e3] }), ReplaceSkip: (e3) => ({ kind: 4, nodes: Array.isArray(e3) ? e3 : [e3] }), ReplaceStop: (e3) => ({ kind: 5, nodes: Array.isArray(e3) ? e3 : [e3] }) }; 660function I(e3, t2) { 661 typeof t2 == `function` ? Ct(e3, t2) : Ct(e3, t2.enter, t2.exit); 662} 663function Ct(e3, t2 = () => F.Continue, n2 = () => F.Continue) { 664 let r2 = { value: [e3, 0, null], prev: null }, i2 = { parent: null, depth: 0, index: 0, siblings: e3, path() { 665 let e4 = [], t3 = r2; 666 for (; t3; ) { 667 let n3 = t3.value[2]; 668 n3 && e4.push(n3), t3 = t3.prev; 669 } 670 return e4.reverse(), e4; 671 } }; 672 for (; r2 !== null; ) { 673 let e4 = r2.value, a2 = e4[0], o2 = e4[1], s2 = e4[2]; 674 if (o2 >= a2.length) { 675 r2 = r2.prev, --i2.depth; 676 continue; 677 } 678 if (i2.parent = s2, i2.siblings = a2, o2 >= 0) { 679 i2.index = o2; 680 let n3 = a2[o2], s3 = t2(n3, i2) ?? F.Continue; 681 switch (s3.kind) { 682 case 0: 683 n3.nodes && n3.nodes.length > 0 && (i2.depth += 1, r2 = { value: [n3.nodes, 0, n3], prev: r2 }), e4[1] = ~o2; 684 continue; 685 case 2: 686 return; 687 case 1: 688 e4[1] = ~o2; 689 continue; 690 case 3: 691 a2.splice(o2, 1, ...s3.nodes); 692 continue; 693 case 5: 694 a2.splice(o2, 1, ...s3.nodes); 695 return; 696 case 4: 697 a2.splice(o2, 1, ...s3.nodes), e4[1] += s3.nodes.length; 698 continue; 699 default: 700 throw Error(`Invalid \`WalkAction.${St[s3.kind] ?? `Unknown(${s3.kind})`}\` in enter.`); 701 } 702 } 703 let c2 = ~o2; 704 i2.index = c2; 705 let l2 = a2[c2], u2 = n2(l2, i2) ?? F.Continue; 706 switch (u2.kind) { 707 case 0: 708 e4[1] = c2 + 1; 709 continue; 710 case 2: 711 return; 712 case 3: 713 a2.splice(c2, 1, ...u2.nodes), e4[1] = c2 + u2.nodes.length; 714 continue; 715 case 5: 716 a2.splice(c2, 1, ...u2.nodes); 717 return; 718 case 4: 719 a2.splice(c2, 1, ...u2.nodes), e4[1] = c2 + u2.nodes.length; 720 continue; 721 default: 722 throw Error(`Invalid \`WalkAction.${St[u2.kind] ?? `Unknown(${u2.kind})`}\` in exit.`); 723 } 724 } 725} 726function wt(e3) { 727 let t2 = []; 728 return I(P(e3), (e4) => { 729 if (!(e4.kind !== `function` || e4.value !== `var`)) return I(e4.nodes, (e5) => { 730 e5.kind !== `word` || e5.value[0] !== `-` || e5.value[1] !== `-` || t2.push(e5.value); 731 }), F.Skip; 732 }), t2; 733} 734var Tt = 64; 735function L(e3, t2 = []) { 736 return { kind: `rule`, selector: e3, nodes: t2 }; 737} 738function R(e3, t2 = ``, n2 = []) { 739 return { kind: `at-rule`, name: e3, params: t2, nodes: n2 }; 740} 741function z(e3, t2 = []) { 742 return e3.charCodeAt(0) === Tt ? rt(e3, t2) : L(e3, t2); 743} 744function B(e3, t2, n2 = false) { 745 return { kind: `declaration`, property: e3, value: t2, important: n2 }; 746} 747function Et(e3) { 748 return { kind: `comment`, value: e3 }; 749} 750function Dt(e3, t2) { 751 return { kind: `context`, context: e3, nodes: t2 }; 752} 753function V(e3) { 754 return { kind: `at-root`, nodes: e3 }; 755} 756function H(e3) { 757 switch (e3.kind) { 758 case `rule`: 759 return { kind: e3.kind, selector: e3.selector, nodes: e3.nodes.map(H), src: e3.src, dst: e3.dst }; 760 case `at-rule`: 761 return { kind: e3.kind, name: e3.name, params: e3.params, nodes: e3.nodes.map(H), src: e3.src, dst: e3.dst }; 762 case `at-root`: 763 return { kind: e3.kind, nodes: e3.nodes.map(H), src: e3.src, dst: e3.dst }; 764 case `context`: 765 return { kind: e3.kind, context: { ...e3.context }, nodes: e3.nodes.map(H), src: e3.src, dst: e3.dst }; 766 case `declaration`: 767 return { kind: e3.kind, property: e3.property, value: e3.value, important: e3.important, src: e3.src, dst: e3.dst }; 768 case `comment`: 769 return { kind: e3.kind, value: e3.value, src: e3.src, dst: e3.dst }; 770 default: 771 throw Error(`Unknown node kind: ${e3.kind}`); 772 } 773} 774function Ot(e3) { 775 return { depth: e3.depth, index: e3.index, siblings: e3.siblings, get context() { 776 let t2 = {}; 777 for (let n2 of e3.path()) n2.kind === `context` && Object.assign(t2, n2.context); 778 return Object.defineProperty(this, "context", { value: t2 }), t2; 779 }, get parent() { 780 let e4 = this.path().pop() ?? null; 781 return Object.defineProperty(this, "parent", { value: e4 }), e4; 782 }, path() { 783 return e3.path().filter((e4) => e4.kind !== `context`); 784 } }; 785} 786function kt(e3, t2, n2 = 3) { 787 let r2 = [], i2 = /* @__PURE__ */ new Set(), a2 = new j(() => /* @__PURE__ */ new Set()), o2 = new j(() => /* @__PURE__ */ new Set()), s2 = /* @__PURE__ */ new Set(), c2 = /* @__PURE__ */ new Set(), l2 = [], u2 = [], d2 = new j(() => /* @__PURE__ */ new Set()); 788 function f2(e4, p3, m2 = {}, h2 = 0) { 789 if (e4.kind === `declaration`) { 790 if (e4.property === `--tw-sort` || e4.value === void 0 || e4.value === null) return; 791 if (m2.theme && e4.property[0] === `-` && e4.property[1] === `-`) { 792 if (e4.value === `initial`) { 793 e4.value = void 0; 794 return; 795 } 796 m2.keyframes || a2.get(p3).add(e4); 797 } 798 if (e4.value.includes(`var(`)) if (m2.theme && e4.property[0] === `-` && e4.property[1] === `-`) for (let t3 of wt(e4.value)) d2.get(t3).add(e4.property); 799 else t2.trackUsedVariables(e4.value); 800 if (e4.property === `animation`) for (let t3 of Nt(e4.value)) c2.add(t3); 801 n2 & 2 && e4.value.includes(`color-mix(`) && !m2.supportsColorMix && !m2.keyframes && o2.get(p3).add(e4), p3.push(e4); 802 } else if (e4.kind === `rule`) { 803 let t3 = []; 804 for (let n4 of e4.nodes) f2(n4, t3, m2, h2 + 1); 805 let n3 = {}, r3 = /* @__PURE__ */ new Set(); 806 for (let e5 of t3) { 807 if (e5.kind !== `declaration`) continue; 808 let t4 = `${e5.property}:${e5.value}:${e5.important}`; 809 n3[t4] ?? (n3[t4] = []), n3[t4].push(e5); 810 } 811 for (let e5 in n3) for (let t4 = 0; t4 < n3[e5].length - 1; ++t4) r3.add(n3[e5][t4]); 812 if (r3.size > 0 && (t3 = t3.filter((e5) => !r3.has(e5))), t3.length === 0) return; 813 e4.selector === `&` ? p3.push(...t3) : p3.push({ ...e4, nodes: t3 }); 814 } else if (e4.kind === `at-rule` && e4.name === `@property` && h2 === 0) { 815 if (i2.has(e4.params)) return; 816 if (n2 & 1) { 817 let t4 = e4.params, n3 = null, r3 = false;
818 for (let t5 of e4.nodes) t5.kind === `declaration` && (t5.property === `initial-value` ? n3 = t5.value : t5.property === `inherits` && (r3 = t5.value === `true`)); 819 let i3 = B(t4, n3 ?? `initial`); 820 i3.src = e4.src, r3 ? l2.push(i3) : u2.push(i3); 821 } 822 i2.add(e4.params); 823 let t3 = { ...e4, nodes: [] }; 824 for (let n3 of e4.nodes) f2(n3, t3.nodes, m2, h2 + 1); 825 p3.push(t3); 826 } else if (e4.kind === `at-rule`) { 827 e4.name === `@keyframes` ? m2 = { ...m2, keyframes: true } : e4.name === `@supports` && e4.params.includes(`color-mix(`) && (m2 = { ...m2, supportsColorMix: true }); 828 let t3 = { ...e4, nodes: [] }; 829 for (let n3 of e4.nodes) f2(n3, t3.nodes, m2, h2 + 1); 830 e4.name === `@keyframes` && m2.theme && s2.add(t3), (t3.nodes.length > 0 || t3.name === `@layer` || t3.name === `@charset` || t3.name === `@custom-media` || t3.name === `@namespace` || t3.name === `@import` || t3.name === `@apply`) && p3.push(t3); 831 } else if (e4.kind === `at-root`) for (let t3 of e4.nodes) { 832 let e5 = []; 833 f2(t3, e5, m2, 0); 834 for (let t4 of e5) r2.push(t4); 835 } 836 else if (e4.kind === `context`) { 837 if (e4.context.reference) return; 838 for (let t3 of e4.nodes) f2(t3, p3, { ...m2, ...e4.context }, h2); 839 } else e4.kind === `comment` && p3.push(e4); 840 } 841 let p2 = []; 842 for (let t3 of e3) f2(t3, p2, {}, 0); 843 e: for (let [e4, n3] of a2) for (let r3 of n3) { 844 if (Mt(r3.property, t2.theme, d2)) { 845 if (r3.property.startsWith(t2.theme.prefixKey(`--animate-`))) for (let e5 of Nt(r3.value)) c2.add(e5); 846 continue; 847 } 848 let n4 = e4.indexOf(r3); 849 if (e4.splice(n4, 1), e4.length === 0) { 850 let t3 = jt(p2, (t4) => t4.kind === `rule` && t4.nodes === e4); 851 if (!t3 || t3.length === 0) continue e; 852 t3.unshift({ kind: `at-root`, nodes: p2 }); 853 do { 854 let e5 = t3.pop(); 855 if (!e5) break; 856 let n5 = t3[t3.length - 1]; 857 if (!n5 || n5.kind !== `at-root` && n5.kind !== `at-rule`) break; 858 let r4 = n5.nodes.indexOf(e5); 859 if (r4 === -1) break; 860 n5.nodes.splice(r4, 1); 861 } while (true); 862 continue e; 863 } 864 } 865 for (let e4 of s2) if (!c2.has(e4.params)) { 866 let t3 = r2.indexOf(e4); 867 r2.splice(t3, 1); 868 } 869 if (p2 = p2.concat(r2), n2 & 2) for (let [e4, n3] of o2) for (let r3 of n3) { 870 let n4 = e4.indexOf(r3); 871 if (n4 === -1 || r3.value == null) continue; 872 let i3 = P(r3.value), a3 = false; 873 if (I(i3, (e5) => { 874 if (e5.kind !== `function` || e5.value !== `color-mix`) return; 875 let n5 = false, r4 = false;
876 if (I(e5.nodes, (e6) => { 877 if (e6.kind == `word` && e6.value.toLowerCase() === `currentcolor`) { 878 r4 = true, a3 = true; 879 return; 880 } 881 let i4 = e6, o4 = null, s4 = /* @__PURE__ */ new Set(); 882 do { 883 if (i4.kind !== `function` || i4.value !== `var`) return; 884 let e7 = i4.nodes[0]; 885 if (!e7 || e7.kind !== `word`) return; 886 let c3 = e7.value; 887 if (s4.has(c3)) { 888 n5 = true; 889 return; 890 } 891 if (s4.add(c3), a3 = true, o4 = t2.theme.resolveValue(null, [e7.value]), !o4) { 892 n5 = true; 893 return; 894 } 895 if (o4.toLowerCase() === `currentcolor`) { 896 r4 = true; 897 return; 898 } 899 i4 = o4.startsWith(`var(`) ? P(o4)[0] : null; 900 } while (i4); 901 return F.Replace({ kind: `word`, value: o4 }); 902 }), n5 || r4) { 903 let t3 = e5.nodes.findIndex((e6) => e6.kind === `separator` && e6.value.trim().includes(`,`)); 904 if (t3 === -1) return; 905 let n6 = e5.nodes.length > t3 ? e5.nodes[t3 + 1] : null; 906 return n6 ? F.Replace(n6) : void 0; 907 } else if (a3) { 908 let t3 = e5.nodes[2]; 909 t3.kind === `word` && (t3.value === `oklab` || t3.value === `oklch` || t3.value === `lab` || t3.value === `lch`) && (t3.value = `srgb`); 910 } 911 }), !a3) continue; 912 let o3 = { ...r3, value: N(i3) }, s3 = z(`@supports (color: color-mix(in lab, red, red))`, [r3]); 913 s3.src = r3.src, e4.splice(n4, 1, o3, s3); 914 } 915 if (n2 & 1) { 916 let e4 = []; 917 if (l2.length > 0) { 918 let t3 = z(`:root, :host`, l2); 919 t3.src = l2[0].src, e4.push(t3); 920 } 921 if (u2.length > 0) { 922 let t3 = z(`*, ::before, ::after, ::backdrop`, u2); 923 t3.src = u2[0].src, e4.push(t3); 924 } 925 if (e4.length > 0) { 926 let t3 = p2.findIndex((e5) => !(e5.kind === `comment` || e5.kind === `at-rule` && (e5.name === `@charset` || e5.name === `@import`))), n3 = R(`@layer`, `properties`, []); 927 n3.src = e4[0].src, p2.splice(t3 < 0 ? p2.length : t3, 0, n3); 928 let r3 = z(`@layer properties`, [R(`@supports`, `((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`, e4)]); 929 r3.src = e4[0].src, r3.nodes[0].src = e4[0].src, p2.push(r3); 930 } 931 } 932 return p2; 933} 934function At(e3, t2) { 935 let n2 = 0, r2 = { file: null, code: `` }; 936 function i2(e4, a3 = 0) { 937 let o2 = ``, s2 = ` `.repeat(a3); 938 if (e4.kind === `declaration`) { 939 if (o2 += `${s2}${e4.property}: ${e4.value}${e4.important ? ` !important` : ``}; 940`, t2) { 941 n2 += s2.length; 942 let t3 = n2; 943 n2 += e4.property.length, n2 += 2, n2 += e4.value?.length ?? 0, e4.important && (n2 += 11); 944 let i3 = n2; 945 n2 += 2, e4.dst = [r2, t3, i3]; 946 } 947 } else if (e4.kind === `rule`) { 948 if (o2 += `${s2}${e4.selector} { 949`, t2) { 950 n2 += s2.length; 951 let t3 = n2; 952 n2 += e4.selector.length, n2 += 1, e4.dst = [r2, t3, n2], n2 += 2; 953 } 954 for (let t3 of e4.nodes) o2 += i2(t3, a3 + 1); 955 o2 += `${s2}} 956`, t2 && (n2 += s2.length, n2 += 2); 957 } else if (e4.kind === `at-rule`) { 958 if (e4.nodes.length === 0) { 959 let i3 = `${s2}${e4.name} ${e4.params}; 960`; 961 if (t2) { 962 n2 += s2.length; 963 let t3 = n2; 964 n2 += e4.name.length, n2 += 1, n2 += e4.params.length; 965 let i4 = n2; 966 n2 += 2, e4.dst = [r2, t3, i4]; 967 } 968 return i3; 969 } 970 if (o2 += `${s2}${e4.name}${e4.params ? ` ${e4.params} ` : ` `}{ 971`, t2) { 972 n2 += s2.length; 973 let t3 = n2; 974 n2 += e4.name.length, e4.params && (n2 += 1, n2 += e4.params.length), n2 += 1, e4.dst = [r2, t3, n2], n2 += 2; 975 } 976 for (let t3 of e4.nodes) o2 += i2(t3, a3 + 1); 977 o2 += `${s2}} 978`, t2 && (n2 += s2.length, n2 += 2); 979 } else if (e4.kind === `comment`) { 980 if (o2 += `${s2}/*${e4.value}*/ 981`, t2) { 982 n2 += s2.length; 983 let t3 = n2; 984 n2 += 2 + e4.value.length + 2, e4.dst = [r2, t3, n2], n2 += 1; 985 } 986 } else if (e4.kind === `context` || e4.kind === `at-root`) return ``; 987 return o2; 988 } 989 let a2 = ``; 990 for (let t3 of e3) a2 += i2(t3, 0); 991 return r2.code = a2, a2; 992} 993function jt(e3, t2) { 994 let n2 = []; 995 return I(e3, (e4, r2) => { 996 if (t2(e4)) return n2 = r2.path(), n2.push(e4), F.Stop; 997 }), n2; 998} 999function Mt(e3, t2, n2, r2 = /* @__PURE__ */ new Set()) { 1000 if (r2.has(e3) || (r2.add(e3), t2.getOptions(e3) & 24)) return true; 1001 { 1002 let i2 = n2.get(e3) ?? []; 1003 for (let e4 of i2) if (Mt(e4, t2, n2, r2)) return true; 1004 } 1005 return false;
1006} 1007function Nt(e3) { 1008 return e3.split(/[\s,]+/); 1009} 1010function Pt(e3) { 1011 if (e3.indexOf(`(`) === -1) return Ft(e3); 1012 let t2 = P(e3); 1013 return It(t2), e3 = N(t2), e3 = h(e3), e3; 1014} 1015function Ft(e3, t2 = false) { 1016 let n2 = ``; 1017 for (let r2 = 0; r2 < e3.length; r2++) { 1018 let i2 = e3[r2]; 1019 i2 === `\\` && e3[r2 + 1] === `_` ? (n2 += `_`, r2 += 1) : i2 === `_` && !t2 ? n2 += ` ` : n2 += i2; 1020 } 1021 return n2; 1022} 1023function It(e3) { 1024 for (let t2 of e3) switch (t2.kind) { 1025 case `function`: 1026 if (t2.value === `url` || t2.value.endsWith(`_url`)) { 1027 t2.value = Ft(t2.value); 1028 break; 1029 } 1030 if (t2.value === `var` || t2.value.endsWith(`_var`) || t2.value === `theme` || t2.value.endsWith(`_theme`)) { 1031 t2.value = Ft(t2.value); 1032 for (let e4 = 0; e4 < t2.nodes.length; e4++) { 1033 if (e4 == 0 && t2.nodes[e4].kind === `word`) { 1034 t2.nodes[e4].value = Ft(t2.nodes[e4].value, true); 1035 continue; 1036 } 1037 It([t2.nodes[e4]]); 1038 } 1039 break; 1040 } 1041 t2.value = Ft(t2.value), It(t2.nodes); 1042 break; 1043 case `separator`: 1044 case `word`: 1045 t2.value = Ft(t2.value); 1046 break; 1047 default: 1048 Lt(t2); 1049 } 1050} 1051function Lt(e3) { 1052 throw Error(`Unexpected value: ${e3}`); 1053} 1054var Rt = new Uint8Array(256); 1055function zt(e3) { 1056 let t2 = 0, n2 = e3.length; 1057 for (let r2 = 0; r2 < n2; r2++) { 1058 let i2 = e3.charCodeAt(r2); 1059 switch (i2) { 1060 case 92: 1061 r2 += 1; 1062 break; 1063 case 39: 1064 case 34: 1065 for (; ++r2 < n2; ) { 1066 let t3 = e3.charCodeAt(r2); 1067 if (t3 === 92) { 1068 r2 += 1; 1069 continue; 1070 } 1071 if (t3 === i2) break; 1072 } 1073 break; 1074 case 40: 1075 Rt[t2] = 41, t2++; 1076 break; 1077 case 91: 1078 Rt[t2] = 93, t2++; 1079 break; 1080 case 123: 1081 break; 1082 case 93: 1083 case 125: 1084 case 41: 1085 if (t2 === 0) return false; 1086 t2 > 0 && i2 === Rt[t2 - 1] && t2--; 1087 break; 1088 case 59: 1089 if (t2 === 0) return false; 1090 break; 1091 } 1092 } 1093 return true; 1094} 1095var Bt = 58, Vt = 45, Ht = 97, Ut = 122, Wt = /^[a-zA-Z0-9_.%-]+$/; 1096function Gt(e3) { 1097 switch (e3.kind) { 1098 case `arbitrary`: 1099 return { kind: e3.kind, property: e3.property, value: e3.value, modifier: e3.modifier ? { kind: e3.modifier.kind, value: e3.modifier.value } : null, variants: e3.variants.map(Kt), important: e3.important, raw: e3.raw }; 1100 case `static`: 1101 return { kind: e3.kind, root: e3.root, variants: e3.variants.map(Kt), important: e3.important, raw: e3.raw }; 1102 case `functional`: 1103 return { kind: e3.kind, root: e3.root, value: e3.value ? e3.value.kind === `arbitrary` ? { kind: e3.value.kind, dataType: e3.value.dataType, value: e3.value.value } : { kind: e3.value.kind, value: e3.value.value, fraction: e3.value.fraction } : null, modifier: e3.modifier ? { kind: e3.modifier.kind, value: e3.modifier.value } : null, variants: e3.variants.map(Kt), important: e3.important, raw: e3.raw }; 1104 default: 1105 throw Error(`Unknown candidate kind`); 1106 } 1107} 1108function Kt(e3) { 1109 switch (e3.kind) { 1110 case `arbitrary`: 1111 return { kind: e3.kind, selector: e3.selector, relative: e3.relative }; 1112 case `static`: 1113 return { kind: e3.kind, root: e3.root }; 1114 case `functional`: 1115 return { kind: e3.kind, root: e3.root, value: e3.value ? { kind: e3.value.kind, value: e3.value.value } : null, modifier: e3.modifier ? { kind: e3.modifier.kind, value: e3.modifier.value } : null }; 1116 case `compound`: 1117 return { kind: e3.kind, root: e3.root, variant: Kt(e3.variant), modifier: e3.modifier ? { kind: e3.modifier.kind, value: e3.modifier.value } : null }; 1118 default: 1119 throw Error(`Unknown variant kind`); 1120 } 1121} 1122function* qt(e3, t2) { 1123 let n2 = _(e3, `:`); 1124 if (t2.theme.prefix) { 1125 if (n2.length === 1 || n2[0] !== t2.theme.prefix) return null; 1126 n2.shift(); 1127 } 1128 let r2 = n2.pop(), i2 = []; 1129 for (let e4 = n2.length - 1; e4 >= 0; --e4) { 1130 let r3 = t2.parseVariant(n2[e4]); 1131 if (r3 === null) return; 1132 i2.push(r3); 1133 } 1134 let a2 = false;
1135 r2[r2.length - 1] === `!` ? (a2 = true, r2 = r2.slice(0, -1)) : r2[0] === `!` && (a2 = true, r2 = r2.slice(1)), t2.utilities.has(r2, `static`) && !r2.includes(`[`) && (yield { kind: `static`, root: r2, variants: i2, important: a2, raw: e3 }); 1136 let [o2, s2 = null, c2] = _(r2, `/`); 1137 if (c2) return; 1138 let l2 = s2 === null ? null : Jt(s2); 1139 if (s2 !== null && l2 === null) return; 1140 if (o2[0] === `[`) { 1141 if (o2[o2.length - 1] !== `]`) return; 1142 let t3 = o2.charCodeAt(1); 1143 if (t3 !== Vt && !(t3 >= Ht && t3 <= Ut)) return; 1144 o2 = o2.slice(1, -1); 1145 let n3 = o2.indexOf(`:`); 1146 if (n3 === -1 || n3 === 0 || n3 === o2.length - 1) return; 1147 let r3 = o2.slice(0, n3), s3 = Pt(o2.slice(n3 + 1)); 1148 if (!zt(s3)) return; 1149 yield { kind: `arbitrary`, property: r3, value: s3, modifier: l2, variants: i2, important: a2, raw: e3 }; 1150 return; 1151 } 1152 let u2; 1153 if (o2[o2.length - 1] === `]`) { 1154 let e4 = o2.indexOf(`-[`); 1155 if (e4 === -1) return; 1156 let n3 = o2.slice(0, e4); 1157 if (!t2.utilities.has(n3, `functional`)) return; 1158 u2 = [[n3, o2.slice(e4 + 1)]]; 1159 } else if (o2[o2.length - 1] === `)`) { 1160 let e4 = o2.indexOf(`-(`); 1161 if (e4 === -1) return; 1162 let n3 = o2.slice(0, e4); 1163 if (!t2.utilities.has(n3, `functional`)) return; 1164 let r3 = o2.slice(e4 + 2, -1), i3 = _(r3, `:`), a3 = null; 1165 if (i3.length === 2 && (a3 = i3[0], r3 = i3[1]), r3[0] !== `-` || r3[1] !== `-` || !zt(r3)) return; 1166 u2 = [[n3, a3 === null ? `[var(${r3})]` : `[${a3}:var(${r3})]`]]; 1167 } else u2 = Xt(o2, (e4) => t2.utilities.has(e4, `functional`)); 1168 for (let [t3, n3] of u2) { 1169 let r3 = { kind: `functional`, root: t3, modifier: l2, value: null, variants: i2, important: a2, raw: e3 }; 1170 if (n3 === null) { 1171 yield r3; 1172 continue; 1173 } 1174 { 1175 let e4 = n3.indexOf(`[`); 1176 if (e4 !== -1) { 1177 if (n3[n3.length - 1] !== `]`) return; 1178 let t4 = Pt(n3.slice(e4 + 1, -1)); 1179 if (!zt(t4)) continue; 1180 let i3 = null; 1181 for (let e5 = 0; e5 < t4.length; e5++) { 1182 let n4 = t4.charCodeAt(e5); 1183 if (n4 === Bt) { 1184 i3 = t4.slice(0, e5), t4 = t4.slice(e5 + 1); 1185 break; 1186 } 1187 if (!(n4 === Vt || n4 >= Ht && n4 <= Ut)) break; 1188 } 1189 if (t4.length === 0 || t4.trim().length === 0 || i3 === ``) continue; 1190 r3.value = { kind: `arbitrary`, dataType: i3 || null, value: t4 }; 1191 } else { 1192 let e5 = s2 === null || r3.modifier?.kind === `arbitrary` ? null : `${n3}/${s2}`; 1193 if (!Wt.test(n3)) continue; 1194 r3.value = { kind: `named`, value: n3, fraction: e5 }; 1195 } 1196 } 1197 yield r3; 1198 } 1199} 1200function Jt(e3) { 1201 if (e3[0] === `[` && e3[e3.length - 1] === `]`) { 1202 let t2 = Pt(e3.slice(1, -1)); 1203 return !zt(t2) || t2.length === 0 || t2.trim().length === 0 ? null : { kind: `arbitrary`, value: t2 }; 1204 } 1205 return e3[0] === `(` && e3[e3.length - 1] === `)` ? (e3 = e3.slice(1, -1), e3[0] !== `-` || e3[1] !== `-` || !zt(e3) ? null : (e3 = `var(${e3})`, { kind: `arbitrary`, value: Pt(e3) })) : Wt.test(e3) ? { kind: `named`, value: e3 } : null; 1206} 1207function Yt(e3, t2) { 1208 if (e3[0] === `[` && e3[e3.length - 1] === `]`) { 1209 if (e3[1] === `@` && e3.includes(`&`)) return null; 1210 let t3 = Pt(e3.slice(1, -1)); 1211 if (!zt(t3) || t3.length === 0 || t3.trim().length === 0) return null; 1212 let n2 = t3[0] === `>` || t3[0] === `+` || t3[0] === `~`; 1213 return !n2 && t3[0] !== `@` && !t3.includes(`&`) && (t3 = `&:is(${t3})`), { kind: `arbitrary`, selector: t3, relative: n2 }; 1214 } 1215 { 1216 let [n2, r2 = null, i2] = _(e3, `/`); 1217 if (i2) return null; 1218 let a2 = Xt(n2, (e4) => t2.variants.has(e4)); 1219 for (let [e4, n3] of a2) switch (t2.variants.kind(e4)) { 1220 case `static`:
vendor: 1,403 bytes, lines 1221-1244
1221 return n3 !== null || r2 !== null ? null : { kind: `static`, root: e4 }; 1222 case `functional`: { 1223 let t3 = r2 === null ? null : Jt(r2); 1224 if (r2 !== null && t3 === null) return null; 1225 if (n3 === null) return { kind: `functional`, root: e4, modifier: t3, value: null }; 1226 if (n3[n3.length - 1] === `]`) { 1227 if (n3[0] !== `[`) continue; 1228 let r3 = Pt(n3.slice(1, -1)); 1229 return !zt(r3) || r3.length === 0 || r3.trim().length === 0 ? null : { kind: `functional`, root: e4, modifier: t3, value: { kind: `arbitrary`, value: r3 } }; 1230 } 1231 if (n3[n3.length - 1] === `)`) { 1232 if (n3[0] !== `(`) continue; 1233 let r3 = Pt(n3.slice(1, -1)); 1234 return !zt(r3) || r3.length === 0 || r3.trim().length === 0 || r3[0] !== `-` || r3[1] !== `-` ? null : { kind: `functional`, root: e4, modifier: t3, value: { kind: `arbitrary`, value: `var(${r3})` } }; 1235 } 1236 if (!Wt.test(n3)) continue; 1237 return { kind: `functional`, root: e4, modifier: t3, value: { kind: `named`, value: n3 } }; 1238 } 1239 case `compound`: { 1240 if (n3 === null) return null; 1241 r2 && (e4 === `not` || e4 === `has` || e4 === `in`) && (n3 = `${n3}/${r2}`, r2 = null); 1242 let i3 = t2.parseVariant(n3); 1243 if (i3 === null || !t2.variants.compoundsWith(e4, i3)) return null; 1244 let a3 = r2 === null ? null : Jt(r2);
1245 return r2 !== null && a3 === null ? null : { kind: `compound`, root: e4, modifier: a3, variant: i3 }; 1246 } 1247 } 1248 } 1249 return null; 1250} 1251function* Xt(e3, t2) { 1252 t2(e3) && (yield [e3, null]); 1253 let n2 = e3.lastIndexOf(`-`); 1254 for (; n2 > 0; ) { 1255 let r2 = e3.slice(0, n2); 1256 if (t2(r2)) { 1257 let i2 = [r2, e3.slice(n2 + 1)]; 1258 if (i2[1] === `` || i2[0] === `@` && t2(`@`) && e3[n2] === `-`) break; 1259 yield i2; 1260 } 1261 n2 = e3.lastIndexOf(`-`, n2 - 1); 1262 } 1263 e3[0] === `@` && t2(`@`) && (yield [`@`, e3.slice(1)]); 1264} 1265function Zt(e3, t2) { 1266 let n2 = []; 1267 for (let e4 of t2.variants) n2.unshift($t(e4)); 1268 e3.theme.prefix && n2.unshift(e3.theme.prefix); 1269 let r2 = ``; 1270 if (t2.kind === `static` && (r2 += t2.root), t2.kind === `functional` && (r2 += t2.root, t2.value)) if (t2.value.kind === `arbitrary`) { 1271 if (t2.value !== null) { 1272 let e4 = sn(t2.value.value), n3 = e4 ? t2.value.value.slice(4, -1) : t2.value.value, [i2, a2] = e4 ? [`(`, `)`] : [`[`, `]`]; 1273 t2.value.dataType ? r2 += `-${i2}${t2.value.dataType}:${tn(n3)}${a2}` : r2 += `-${i2}${tn(n3)}${a2}`; 1274 } 1275 } else t2.value.kind === `named` && (r2 += `-${t2.value.value}`); 1276 return t2.kind === `arbitrary` && (r2 += `[${t2.property}:${tn(t2.value)}]`), (t2.kind === `arbitrary` || t2.kind === `functional`) && (r2 += Qt(t2.modifier)), t2.important && (r2 += `!`), n2.push(r2), n2.join(`:`); 1277} 1278function Qt(e3) { 1279 if (e3 === null) return ``; 1280 let t2 = sn(e3.value), n2 = t2 ? e3.value.slice(4, -1) : e3.value, [r2, i2] = t2 ? [`(`, `)`] : [`[`, `]`]; 1281 return e3.kind === `arbitrary` ? `/${r2}${tn(n2)}${i2}` : e3.kind === `named` ? `/${e3.value}` : ``; 1282} 1283function $t(e3) { 1284 if (e3.kind === `static`) return e3.root; 1285 if (e3.kind === `arbitrary`) return `[${tn(rn(e3.selector))}]`; 1286 let t2 = ``; 1287 if (e3.kind === `functional`) { 1288 t2 += e3.root; 1289 let n2 = e3.root !== `@`; 1290 if (e3.value) if (e3.value.kind === `arbitrary`) { 1291 let r2 = sn(e3.value.value), i2 = r2 ? e3.value.value.slice(4, -1) : e3.value.value, [a2, o2] = r2 ? [`(`, `)`] : [`[`, `]`]; 1292 t2 += `${n2 ? `-` : ``}${a2}${tn(i2)}${o2}`; 1293 } else e3.value.kind === `named` && (t2 += `${n2 ? `-` : ``}${e3.value.value}`); 1294 } 1295 return e3.kind === `compound` && (t2 += e3.root, t2 += `-`, t2 += $t(e3.variant)), (e3.kind === `functional` || e3.kind === `compound`) && (t2 += Qt(e3.modifier)), t2; 1296} 1297var en = new j((e3) => { 1298 let t2 = P(e3), n2 = /* @__PURE__ */ new Set(), r2 = /* @__PURE__ */ new Set([`~`, `>`, `+`, `-`, `*`, `/`]); 1299 return I(t2, (e4, t3) => { 1300 if (e4.kind === `word` && r2.has(e4.value)) { 1301 let e5 = t3.index; 1302 if (e5 === -1) return; 1303 let i2 = t3.siblings[e5 - 1]; 1304 if (i2?.kind !== `separator` || i2.value !== ` `) return; 1305 let a2 = t3.siblings[e5 + 1]; 1306 if (a2?.kind !== `separator` || a2.value !== ` `) return; 1307 let o2 = t3.siblings[e5 - 2]; 1308 if (o2 && r2.has(o2.value)) return; 1309 let s2 = t3.siblings[e5 + 2]; 1310 if (s2 && r2.has(s2.value)) return; 1311 n2.add(i2), n2.add(a2); 1312 } else if (e4.kind === `separator` && e4.value.length > 0 && e4.value.trim() === ``) (t3.siblings[0] === e4 || t3.siblings[t3.siblings.length - 1] === e4) && n2.add(e4); 1313 else if (e4.kind === `separator` && e4.value.trim() === `,`) e4.value = `,`; 1314 else if (e4.kind === `function` && e4.value.startsWith(`--`)) { 1315 let n3 = t3.index; 1316 if (n3 <= 0) return; 1317 let i2 = t3.siblings[n3 - 1]; 1318 if (i2?.kind === `separator` && i2.value === `,`) return; 1319 let a2 = t3.siblings[n3 - 2]; 1320 return a2 && !r2.has(a2.value) ? void 0 : F.ReplaceSkip({ kind: `function`, value: ``, nodes: [e4] }); 1321 } 1322 }), n2.size > 0 && I(t2, (e4) => { 1323 if (n2.has(e4)) return n2.delete(e4), F.ReplaceSkip([]); 1324 }), an(t2), N(t2); 1325}); 1326function tn(e3) { 1327 return en.get(e3); 1328} 1329var nn = new j((e3) => { 1330 let t2 = P(e3); 1331 return t2.length === 3 && t2[0].kind === `word` && t2[0].value === `&` && t2[1].kind === `separator` && t2[1].value === `:` && t2[2].kind === `function` && t2[2].value === `is` ? N(t2[2].nodes) : e3; 1332}); 1333function rn(e3) { 1334 return nn.get(e3); 1335} 1336function an(e3) { 1337 for (let t2 of e3) switch (t2.kind) { 1338 case `function`: 1339 if (t2.value === `url` || t2.value.endsWith(`_url`)) { 1340 t2.value = ln(t2.value); 1341 break; 1342 } 1343 if (t2.value === `var` || t2.value.endsWith(`_var`) || t2.value === `theme` || t2.value.endsWith(`_theme`)) { 1344 t2.value = ln(t2.value); 1345 for (let e4 = 0; e4 < t2.nodes.length; e4++) an([t2.nodes[e4]]); 1346 break; 1347 } 1348 t2.value = ln(t2.value), an(t2.nodes); 1349 break; 1350 case `separator`: 1351 t2.value = ln(t2.value); 1352 break; 1353 case `word`: 1354 (t2.value[0] !== `-` || t2.value[1] !== `-`) && (t2.value = ln(t2.value)); 1355 break; 1356 default: 1357 cn(t2); 1358 } 1359} 1360var on = new j((e3) => { 1361 let t2 = P(e3); 1362 return t2.length === 1 && t2[0].kind === `function` && t2[0].value === `var`; 1363}); 1364function sn(e3) { 1365 return on.get(e3); 1366} 1367function cn(e3) { 1368 throw Error(`Unexpected value: ${e3}`); 1369} 1370function ln(e3) { 1371 return e3.replaceAll(`_`, String.raw`\_`).replaceAll(` `, `_`); 1372} 1373function un(e3, t2, n2) { 1374 if (e3 === t2) return 0; 1375 let r2 = e3.indexOf(`(`), i2 = t2.indexOf(`(`), a2 = r2 === -1 ? e3.replace(/[\d.]+/g, ``) : e3.slice(0, r2), o2 = i2 === -1 ? t2.replace(/[\d.]+/g, ``) : t2.slice(0, i2), s2 = (a2 === o2 ? 0 : a2 < o2 ? -1 : 1) || (n2 === `asc` ? parseInt(e3) - parseInt(t2) : parseInt(t2) - parseInt(e3)); 1376 return Number.isNaN(s2) ? e3 < t2 ? -1 : 1 : s2; 1377} 1378var dn = /^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i, U = new j((e3) => { 1379 let t2 = dn.exec(e3); 1380 if (!t2) return null; 1381 let n2 = t2.groups?.value; 1382 if (n2 === void 0) return null; 1383 let r2 = Number(n2); 1384 if (Number.isNaN(r2)) return null; 1385 let i2 = t2.groups?.unit; 1386 return i2 === void 0 ? [r2, null] : [r2, i2]; 1387}), fn = /* @__PURE__ */ new Set([`inset`, `inherit`, `initial`, `revert`, `unset`]), pn = /* @__PURE__ */ new Set([`calc`, `clamp`, `max`, `min`, `--spacing`]), mn = /* @__PURE__ */ new Set([`color`, `color-mix`, `contrast-color`, `device-cmyk`, `hsl`, `hsla`, `hwb`, `lab`, `lch`, `light-dark`, `oklab`, `oklch`, `rgb`, `rgba`, `--alpha`]), hn = /^-?(\d+|\.\d+)(.*?)$/; 1388function gn(e3, t2) { 1389 function n2(e4) { 1390 return P(t2(N([e4]))); 1391 } 1392 return _(e3, `,`).map((e4) => { 1393 e4 = e4.trim(); 1394 let r2 = P(e4), i2 = null, a2 = 0, o2 = 0, s2 = false;
1395 return I(r2, (e5) => { 1396 switch (e5.kind) { 1397 case `word`: 1398 if (fn.has(e5.value.toLowerCase())) return F.Continue; 1399 if (hn.test(e5.value.toLowerCase())) return o2++, F.Continue; 1400 if (e5.value[0] === `#` || f(e5.value)) return s2 = true, F.ReplaceStop(n2(e5)); 1401 i2 = e5, a2++; 1402 break; 1403 case `function`: 1404 return mn.has(e5.value.toLowerCase()) ? (s2 = true, F.ReplaceStop(n2(e5))) : pn.has(e5.value.toLowerCase()) ? (o2++, F.Skip) : (i2 = e5, a2++, F.Skip); 1405 case `separator`: 1406 return F.Continue; 1407 default: 1408 } 1409 }), s2 ? N(r2) : o2 < 2 ? e4 : a2 === 0 ? `${e4} ${t2(`currentcolor`)}` : (a2 === 1 && I(r2, (e5) => e5 === i2 ? (s2 = true, F.ReplaceStop(n2(e5))) : F.Skip), s2 ? N(r2) : e4); 1410 }).join(`, `); 1411} 1412var _n = `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`.split(`,`), vn = class { 1413 constructor() { 1414 __publicField(this, "utilities", new j(() => [])); 1415 __publicField(this, "completions", /* @__PURE__ */ new Map()); 1416 } 1417 static(e3, t2) { 1418 this.utilities.get(e3).push({ kind: `static`, compileFn: t2 }); 1419 } 1420 functional(e3, t2, n2) { 1421 this.utilities.get(e3).push({ kind: `functional`, compileFn: t2, options: n2 }); 1422 } 1423 has(e3, t2) { 1424 return this.utilities.has(e3) && this.utilities.get(e3).some((e4) => e4.kind === t2); 1425 } 1426 get(e3) { 1427 return this.utilities.has(e3) ? this.utilities.get(e3) : []; 1428 } 1429 getCompletions(e3) { 1430 return this.has(e3, `static`) ? this.completions.get(e3)?.() ?? [{ supportsNegative: false, values: [], modifiers: [] }] : this.completions.get(e3)?.() ?? []; 1431 } 1432 suggest(e3, t2) { 1433 let n2 = this.completions.get(e3); 1434 n2 ? this.completions.set(e3, () => [...n2?.(), ...t2?.()]) : this.completions.set(e3, t2); 1435 } 1436 keys(e3) { 1437 let t2 = []; 1438 for (let [n2, r2] of this.utilities.entries()) for (let i2 of r2) if (i2.kind === e3) { 1439 t2.push(n2); 1440 break; 1441 } 1442 return t2; 1443 } 1444}; 1445function W(e3, t2, n2) { 1446 return R(`@property`, e3, [B(`syntax`, n2 ? `"${n2}"` : `"*"`), B(`inherits`, `false`), ...t2 ? [B(`initial-value`, t2)] : []]); 1447} 1448function G(e3, t2) { 1449 if (t2 === null) return e3; 1450 let n2 = Number(t2); 1451 return Number.isNaN(n2) || (t2 = `${n2 * 100}%`), t2 === `100%` ? e3 : `color-mix(in oklab, ${e3} ${t2}, transparent)`; 1452} 1453function yn(e3, t2) { 1454 let n2 = Number(t2); 1455 return Number.isNaN(n2) || (t2 = `${n2 * 100}%`), `oklab(from ${e3} l a b / ${t2})`; 1456} 1457function K(e3, t2, n2) { 1458 if (!t2) return e3; 1459 if (t2.kind === `arbitrary`) return G(e3, t2.value); 1460 let r2 = n2.resolve(t2.value, [`--opacity`]); 1461 return r2 ? G(e3, r2) : be(t2.value) ? G(e3, `${t2.value}%`) : null; 1462} 1463function q(e3, t2, n2) { 1464 let r2 = null; 1465 switch (e3.value.value) { 1466 case `inherit`: 1467 r2 = `inherit`; 1468 break; 1469 case `transparent`: 1470 r2 = `transparent`; 1471 break; 1472 case `current`: 1473 r2 = `currentcolor`; 1474 break; 1475 default: 1476 r2 = t2.resolve(e3.value.value, n2); 1477 break; 1478 } 1479 return r2 ? K(r2, e3.modifier, t2) : null; 1480} 1481var bn = /(\d+)_(\d+)/g; 1482function xn(e3) { 1483 let t2 = new vn(); 1484 function n2(n3, r3) { 1485 function* i3(t3) { 1486 for (let n4 of e3.keysInNamespaces(t3)) yield n4.replace(bn, (e4, t4, n5) => `${t4}.${n5}`); 1487 } 1488 let a3 = `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`.split(`.`); 1489 t2.suggest(n3, () => { 1490 let e4 = []; 1491 for (let t3 of r3()) { 1492 if (typeof t3 == `string`) { 1493 e4.push({ values: [t3], modifiers: [] }); 1494 continue; 1495 } 1496 let n4 = [...t3.values ?? [], ...i3(t3.valueThemeKeys ?? [])], r4 = [...t3.modifiers ?? [], ...i3(t3.modifierThemeKeys ?? [])]; 1497 t3.supportsFractions && n4.push(...a3), t3.hasDefaultValue && n4.unshift(null), e4.push({ supportsNegative: t3.supportsNegative, values: n4, modifiers: r4 }); 1498 } 1499 return e4; 1500 }); 1501 } 1502 function r2(e4, n3) { 1503 t2.static(e4, () => n3.map((e5) => typeof e5 == `function` ? e5() : B(e5[0], e5[1]))); 1504 } 1505 function i2(r3, i3) { 1506 i3.staticValues && (i3.staticValues = Object.assign(/* @__PURE__ */ Object.create(null), i3.staticValues)); 1507 function a3({ negative: t3 }) { 1508 return (n3) => { 1509 let r4 = null, a4 = null; 1510 if (n3.value) if (n3.value.kind === `arbitrary`) { 1511 if (n3.modifier) return; 1512 r4 = n3.value.value, a4 = n3.value.dataType; 1513 } else { 1514 if (r4 = e3.resolve(n3.value.fraction ?? n3.value.value, i3.themeKeys ?? []), r4 === null && i3.supportsFractions && n3.value.fraction) { 1515 let [e4, t4] = _(n3.value.fraction, `/`); 1516 if (!E(e4) || !E(t4)) return; 1517 r4 = `calc(${e4} / ${t4} * 100%)`; 1518 } 1519 if (r4 === null && t3 && i3.handleNegativeBareValue) { 1520 if (r4 = i3.handleNegativeBareValue(n3.value), !r4?.includes(`/`) && n3.modifier) return; 1521 if (r4 !== null) return i3.handle(r4, null); 1522 } 1523 if (r4 === null && i3.handleBareValue && (r4 = i3.handleBareValue(n3.value), !r4?.includes(`/`) && n3.modifier)) return; 1524 if (r4 === null && !t3 && i3.staticValues && !n3.modifier) { 1525 let e4 = i3.staticValues[n3.value.value]; 1526 if (e4) return e4.map(H); 1527 } 1528 } 1529 else { 1530 if (n3.modifier) return; 1531 r4 = i3.defaultValue === void 0 ? e3.resolve(null, i3.themeKeys ?? []) : i3.defaultValue; 1532 } 1533 if (r4 !== null) return i3.handle(t3 ? h(`calc(${r4} * -1)`) : r4, a4); 1534 }; 1535 } 1536 if (i3.supportsNegative && t2.functional(`-${r3}`, a3({ negative: true })), t2.functional(r3, a3({ negative: false }
1536)), n2(r3, () => [{ supportsNegative: i3.supportsNegative, valueThemeKeys: i3.themeKeys ?? [], hasDefaultValue: i3.defaultValue !== void 0 && i3.defaultValue !== null, supportsFractions: i3.supportsFractions }]), i3.staticValues && Object.keys(i3.staticValues).length > 0) { 1537 let e4 = Object.keys(i3.staticValues); 1538 n2(r3, () => [{ values: e4 }]); 1539 } 1540 } 1541 function a2(r3, i3) { 1542 t2.functional(r3, (t3) => { 1543 if (!t3.value) return; 1544 let n3 = null; 1545 if (t3.value.kind === `arbitrary` ? (n3 = t3.value.value, n3 = K(n3, t3.modifier, e3)) : n3 = q(t3, e3, i3.themeKeys), n3 !== null) return i3.handle(n3); 1546 }), n2(r3, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: i3.themeKeys, modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }]); 1547 } 1548 function o2(r3, a3, o3, { supportsNegative: s3 = false, supportsFractions: c3 = false, staticValues: l3 } = {}) { 1549 s3 && t2.static(`-${r3}-px`, () => o3(`-1px`)), t2.static(`${r3}-px`, () => o3(`1px`)), i2(r3, { themeKeys: a3, supportsFractions: c3, supportsNegative: s3, defaultValue: null, handleBareValue: ({ value: t3 }) => !e3.resolve(null, [`--spacing`]) || !D(t3) ? null : `--spacing(${t3})`, handleNegativeBareValue: ({ value: t3 }) => !e3.resolve(null, [`--spacing`]) || !D(t3) ? null : `--spacing(-${t3})`, handle: o3, staticValues: l3 }), n2(r3, () => [{ values: e3.get([`--spacing`]) ? _n : [], supportsNegative: s3, supportsFractions: c3, valueThemeKeys: a3 }]); 1550 } 1551 r2(`sr-only`, [[`position`, `absolute`], [`width`, `1px`], [`height`, `1px`], [`padding`, `0`], [`margin`, `-1px`], [`overflow`, `hidden`], [`clip-path`, `inset(50%)`], [`white-space`, `nowrap`], [`border-width`, `0`]]), r2(`not-sr-only`, [[`position`, `static`], [`width`, `auto`], [`height`, `auto`], [`padding`, `0`], [`margin`, `0`], [`overflow`, `visible`], [`clip-path`, `none`], [`white-space`, `normal`]]), r2(`pointer-events-none`, [[`pointer-events`, `none`]]), r2(`pointer-events-auto`, [[`pointer-events`, `auto`]]), r2(`visible`, [[`visibility`, `visible`]]), r2(`invisible`, [[`visibility`, `hidden`]]), r2(`collapse`, [[`visibility`, `collapse`]]), r2(`static`, [[`position`, `static`]]), r2(`fixed`, [[`position`, `fixed`]]), r2(`absolute`, [[`position`, `absolute`]]), r2(`relative`, [[`position`, `relative`]]), r2(`sticky`, [[`position`, `sticky`]]); 1552 for (let [e4, t3] 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`]]) r2(`${e4}-auto`, [[t3, `auto`]]), r2(`${e4}-full`, [[t3, `100%`]]), r2(`-${e4}-full`, [[t3, `-100%`]]), o2(e4, [`--inset`, `--spacing`], (e5) => [B(t3, e5)], { supportsNegative: true, supportsFractions: true }); 1553 r2(`isolate`, [[`isolation`, `isolate`]]), r2(`isolation-auto`, [[`isolation`, `auto`]]), i2(`z`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--z-index`], handle: (e4) => [B(`z-index`, e4)], staticValues: { auto: [B(`z-index`, `auto`)] } }), n2(`z`, () => [{ supportsNegative: true, values: [`0`, `10`, `20`, `30`, `40`, `50`], valueThemeKeys: [`--z-index`] }]), i2(`order`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--order`], handle: (e4) => [B(`order`, e4)], staticValues: { first: [B(`order`, `-9999`)], last: [B(`order`, `9999`)] } }), n2(`order`, () => [{ supportsNegative: true, values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--order`] }]), i2(`col`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-column`], handle: (e4) => [B(`grid-column`, e4)], staticValues: { auto: [B(`grid-column`, `auto`)] } }), i2(`col-span`, { handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`grid-column`, `span ${e4} / span ${e4}`)], staticValues: { full: [B(`grid-column`, `1 / -1`)] } }), i2(`col-start`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-column-start`], handle: (e4) => [B(`grid-column-start`, e4)], staticValues: { auto: [B(`grid-column-start`, `auto`)] } }), i2(`col-end`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-column-end`], handle: (e4) => [B(`grid-column-end`, e4)], staticValues: { auto: [B(`grid-column-end`, `auto`)] } }), n2(`col-span`, () => [{ values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [] }]), n2(`col-start`, () => [{ supportsNegative: true, values: Array.from({ length: 13 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-column-start`] }]), n2(`col-end`, () => [{ supportsNegative: true, values: Array.from({ length: 13 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-column-end`] }]), i2(`row`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-row`], handle: (e4) => [B(`grid-row`, e4)], staticValues: { auto: [B(`grid-row`, `auto`)] } }), i2(`row-span`, { themeKeys: [], handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`grid-row`, `span ${e4} / span ${e4}`)], staticValues: { full: [B(`grid-row`, `1 / -1`)] } }), i2(`row-start`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-row-start`], handle: (e4) => [B(`grid-row-start`, e4)], staticValues: { auto: [B(`grid-row-start`, `auto`)] } }), i2(`row-end`, { supportsNegative: true, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, themeKeys: [`--grid-row-end`], handle: (e4) => [B(`grid-row-end`, e4)], staticValues: { auto: [B(`grid-row-end`, `auto`)] } }), n2(`row-span`, () => [{ values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [] }]), n2(`row-start`, () => [{ supportsNegative: true, values: Array.from({ length: 13 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-row-start`] }]), n2(`row-end`, () => [{ supportsNegative: true, values: Array.from({ length: 13 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-row-end`] }]), r2(`float-start`, [[`float`, `inline-start`]]), r2(`float-end`, [[`float`, `inline-end`]]), r2(`float-right`, [[`float`, `right`]]), r2(`float-left`, [[`float`, `left`]]), r2(`float-none`, [[`float`, `none`]]), r2(`clear-start`, [[`clear`, `inline-start`]]), r2(`clear-end`, [[`clear`, `inline-end`]]), r2(`clear-right`, [[`clear`, `right`]]), r2(`clear-left`, [[`clear`, `left`]]), r2(`clear-both`, [[`clear`, `both`]]), r2(`clear-none`, [[`clear`, `none`]]); 1554 for (let [e4, t3] 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`]
vendor: 13,599 bytes, lines 1554-1615
1554]) r2(`${e4}-auto`, [[t3, `auto`]]), o2(e4, [`--margin`, `--spacing`], (e5) => [B(t3, e5)], { supportsNegative: true }); 1555 r2(`box-border`, [[`box-sizing`, `border-box`]]), r2(`box-content`, [[`box-sizing`, `content-box`]]), i2(`line-clamp`, { themeKeys: [`--line-clamp`], handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`overflow`, `hidden`), B(`display`, `-webkit-box`), B(`-webkit-box-orient`, `vertical`), B(`-webkit-line-clamp`, e4)], staticValues: { none: [B(`overflow`, `visible`), B(`display`, `block`), B(`-webkit-box-orient`, `horizontal`), B(`-webkit-line-clamp`, `unset`)] } }), n2(`line-clamp`, () => [{ values: [`1`, `2`, `3`, `4`, `5`, `6`], valueThemeKeys: [`--line-clamp`] }]), r2(`block`, [[`display`, `block`]]), r2(`inline-block`, [[`display`, `inline-block`]]), r2(`inline`, [[`display`, `inline`]]), r2(`hidden`, [[`display`, `none`]]), r2(`inline-flex`, [[`display`, `inline-flex`]]), r2(`table`, [[`display`, `table`]]), r2(`inline-table`, [[`display`, `inline-table`]]), r2(`table-caption`, [[`display`, `table-caption`]]), r2(`table-cell`, [[`display`, `table-cell`]]), r2(`table-column`, [[`display`, `table-column`]]), r2(`table-column-group`, [[`display`, `table-column-group`]]), r2(`table-footer-group`, [[`display`, `table-footer-group`]]), r2(`table-header-group`, [[`display`, `table-header-group`]]), r2(`table-row-group`, [[`display`, `table-row-group`]]), r2(`table-row`, [[`display`, `table-row`]]), r2(`flow-root`, [[`display`, `flow-root`]]), r2(`flex`, [[`display`, `flex`]]), r2(`grid`, [[`display`, `grid`]]), r2(`inline-grid`, [[`display`, `inline-grid`]]), r2(`contents`, [[`display`, `contents`]]), r2(`list-item`, [[`display`, `list-item`]]), r2(`field-sizing-content`, [[`field-sizing`, `content`]]), r2(`field-sizing-fixed`, [[`field-sizing`, `fixed`]]), i2(`aspect`, { themeKeys: [`--aspect`], handleBareValue: ({ fraction: e4 }) => { 1556 if (e4 === null) return null; 1557 let [t3, n3] = _(e4, `/`); 1558 return !D(t3) || !D(n3) ? null : e4; 1559 }, handle: (e4) => [B(`aspect-ratio`, e4)], staticValues: { auto: [B(`aspect-ratio`, `auto`)], square: [B(`aspect-ratio`, `1 / 1`)] } }); 1560 for (let [e4, t3] of [[`full`, `100%`], [`svw`, `100svw`], [`lvw`, `100lvw`], [`dvw`, `100dvw`], [`svh`, `100svh`], [`lvh`, `100lvh`], [`dvh`, `100dvh`], [`min`, `min-content`], [`max`, `max-content`], [`fit`, `fit-content`]]) r2(`size-${e4}`, [[`--tw-sort`, `size`], [`width`, t3], [`height`, t3]]), r2(`w-${e4}`, [[`width`, t3]]), r2(`h-${e4}`, [[`height`, t3]]), r2(`min-w-${e4}`, [[`min-width`, t3]]), r2(`min-h-${e4}`, [[`min-height`, t3]]), r2(`max-w-${e4}`, [[`max-width`, t3]]), r2(`max-h-${e4}`, [[`max-height`, t3]]); 1561 r2(`size-auto`, [[`--tw-sort`, `size`], [`width`, `auto`], [`height`, `auto`]]), r2(`w-auto`, [[`width`, `auto`]]), r2(`h-auto`, [[`height`, `auto`]]), r2(`min-w-auto`, [[`min-width`, `auto`]]), r2(`min-h-auto`, [[`min-height`, `auto`]]), r2(`h-lh`, [[`height`, `1lh`]]), r2(`min-h-lh`, [[`min-height`, `1lh`]]), r2(`max-h-lh`, [[`max-height`, `1lh`]]), r2(`w-screen`, [[`width`, `100vw`]]), r2(`min-w-screen`, [[`min-width`, `100vw`]]), r2(`max-w-screen`, [[`max-width`, `100vw`]]), r2(`h-screen`, [[`height`, `100vh`]]), r2(`min-h-screen`, [[`min-height`, `100vh`]]), r2(`max-h-screen`, [[`max-height`, `100vh`]]), r2(`max-w-none`, [[`max-width`, `none`]]), r2(`max-h-none`, [[`max-height`, `none`]]), o2(`size`, [`--size`, `--spacing`], (e4) => [B(`--tw-sort`, `size`), B(`width`, e4), B(`height`, e4)], { supportsFractions: true }); 1562 for (let [e4, t3, n3] 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`]]) o2(e4, t3, (e5) => [B(n3, e5)], { supportsFractions: true }); 1563 for (let [e4, t3] of [[`full`, `100%`], [`min`, `min-content`], [`max`, `max-content`], [`fit`, `fit-content`]]) r2(`inline-${e4}`, [[`inline-size`, t3]]), r2(`block-${e4}`, [[`block-size`, t3]]), r2(`min-inline-${e4}`, [[`min-inline-size`, t3]]), r2(`min-block-${e4}`, [[`min-block-size`, t3]]), r2(`max-inline-${e4}`, [[`max-inline-size`, t3]]), r2(`max-block-${e4}`, [[`max-block-size`, t3]]); 1564 for (let [e4, t3] of [[`svw`, `100svw`], [`lvw`, `100lvw`], [`dvw`, `100dvw`]]) r2(`inline-${e4}`, [[`inline-size`, t3]]), r2(`min-inline-${e4}`, [[`min-inline-size`, t3]]), r2(`max-inline-${e4}`, [[`max-inline-size`, t3]]); 1565 for (let [e4, t3] of [[`svh`, `100svh`], [`lvh`, `100lvh`], [`dvh`, `100dvh`]]) r2(`block-${e4}`, [[`block-size`, t3]]), r2(`min-block-${e4}`, [[`min-block-size`, t3]]), r2(`max-block-${e4}`, [[`max-block-size`, t3]]); 1566 r2(`inline-auto`, [[`inline-size`, `auto`]]), r2(`block-auto`, [[`block-size`, `auto`]]), r2(`min-inline-auto`, [[`min-inline-size`, `auto`]]), r2(`min-block-auto`, [[`min-block-size`, `auto`]]), r2(`block-lh`, [[`block-size`, `1lh`]]), r2(`min-block-lh`, [[`min-block-size`, `1lh`]]), r2(`max-block-lh`, [[`max-block-size`, `1lh`]]), r2(`inline-screen`, [[`inline-size`, `100vw`]]), r2(`min-inline-screen`, [[`min-inline-size`, `100vw`]]), r2(`max-inline-screen`, [[`max-inline-size`, `100vw`]]), r2(`block-screen`, [[`block-size`, `100vh`]]), r2(`min-block-screen`, [[`min-block-size`, `100vh`]]), r2(`max-block-screen`, [[`max-block-size`, `100vh`]]), r2(`max-inline-none`, [[`max-inline-size`, `none`]]), r2(`max-block-none`, [[`max-block-size`, `none`]]); 1567 for (let [e4, t3, n3] 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`]]) o2(e4, t3, (e5) => [B(n3, e5)], { supportsFractions: true }); 1568 t2.static(`container`, () => { 1569 let t3 = [...e3.namespace(`--breakpoint`).values()]; 1570 t3.sort((e4, t4) => un(e4, t4, `asc`)); 1571 let n3 = [B(`--tw-sort`, `--tw-container-component`), B(`width`, `100%`)]; 1572 for (let e4 of t3) n3.push(R(`@media`, `(width >= ${e4})`, [B(`max-width`, e4)])); 1573 return n3; 1574 }), r2(`flex-auto`, [[`flex`, `auto`]]), r2(`flex-initial`, [[`flex`, `0 auto`]]), r2(`flex-none`, [[`flex`, `none`]]), t2.functional(`flex`, (e4) => { 1575 if (e4.value) { 1576 if (e4.value.kind === `arbitrary`) return e4.modifier ? void 0 : [B(`flex`, e4.value.value)]; 1577 if (e4.value.fraction) { 1578 let [t3, n3] = _(e4.value.fraction, `/`); 1579 return !E(t3) || !E(n3) ? void 0 : [B(`flex`, `calc(${e4.value.fraction} * 100%)`)]; 1580 } 1581 if (E(e4.value.value)) return e4.modifier ? void 0 : [B(`flex`, e4.value.value)]; 1582 } 1583 }), n2(`flex`, () => [{ supportsFractions: true }, { values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`) }]), i2(`shrink`, { defaultValue: `1`, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`flex-shrink`, e4)] }), i2(`grow`, { defaultValue: `1`, handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`flex-grow`, e4)] }), n2(`shrink`, () => [{ values: [`0`], valueThemeKeys: [], hasDefaultValue: true }]), n2(`grow`, () => [{ values: [`0`], valueThemeKeys: [], hasDefaultValue: true }]), r2(`basis-auto`, [[`flex-basis`, `auto`]]), r2(`basis-full`, [[`flex-basis`, `100%`]]), o2(`basis`, [`--flex-basis`, `--spacing`, `--container`], (e4) => [B(`flex-basis`, e4)], { supportsFractions: true }), r2(`table-auto`, [[`table-layout`, `auto`]]), r2(`table-fixed`, [[`table-layout`, `fixed`]]), r2(`caption-top`, [[`caption-side`, `top`]]), r2(`caption-bottom`, [[`caption-side`, `bottom`]]), r2(`border-collapse`, [[`border-collapse`, `collapse`]]), r2(`border-separate`, [[`border-collapse`, `separate`]]); 1584 let s2 = () => V([W(`--tw-border-spacing-x`, `0`, `<length>`), W(`--tw-border-spacing-y`, `0`, `<length>`)]); 1585 o2(`border-spacing`, [`--border-spacing`, `--spacing`], (e4) => [s2(), B(`--tw-border-spacing-x`, e4), B(`--tw-border-spacing-y`, e4), B(`border-spacing`, `var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]), o2(`border-spacing-x`, [`--border-spacing`, `--spacing`], (e4) => [s2(), B(`--tw-border-spacing-x`, e4), B(`border-spacing`, `var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]), o2(`border-spacing-y`, [`--border-spacing`, `--spacing`], (e4) => [s2(), B(`--tw-border-spacing-y`, e4), B(`border-spacing`, `var(--tw-border-spacing-x) var(--tw-border-spacing-y)`)]), i2(`origin`, { themeKeys: [`--transform-origin`], handle: (e4) => [B(`transform-origin`, e4)], staticValues: { center: [B(`transform-origin`, `center`)], top: [B(`transform-origin`, `top`)], "top-right": [B(`transform-origin`, `100% 0`)], right: [B(`transform-origin`, `100%`)], "bottom-right": [B(`transform-origin`, `100% 100%`)], bottom: [B(`transform-origin`, `bottom`)], "bottom-left": [B(`transform-origin`, `0 100%`)], left: [B(`transform-origin`, `0`)], "top-left": [B(`transform-origin`, `0 0`)] } }), i2(`perspective-origin`, { themeKeys: [`--perspective-origin`], handle: (e4) => [B(`perspective-origin`, e4)], staticValues: { center: [B(`perspective-origin`, `center`)], top: [B(`perspective-origin`, `top`)], "top-right": [B(`perspective-origin`, `100% 0`)], right: [B(`perspective-origin`, `100%`)], "bottom-right": [B(`perspective-origin`, `100% 100%`)], bottom: [B(`perspective-origin`, `bottom`)], "bottom-left": [B(`perspective-origin`, `0 100%`)], left: [B(`perspective-origin`, `0`)], "top-left": [B(`perspective-origin`, `0 0`)] } }), i2(`perspective`, { themeKeys: [`--perspective`], handle: (e4) => [B(`perspective`, e4)], staticValues: { none: [B(`perspective`, `none`)] } }); 1586 let c2 = () => V([W(`--tw-translate-x`, `0`), W(`--tw-translate-y`, `0`), W(`--tw-translate-z`, `0`)]); 1587 r2(`translate-none`, [[`translate`, `none`]]), r2(`-translate-full`, [c2, [`--tw-translate-x`, `-100%`], [`--tw-translate-y`, `-100%`], [`translate`, `var(--tw-translate-x) var(--tw-translate-y)`]]), r2(`translate-full`, [c2, [`--tw-translate-x`, `100%`], [`--tw-translate-y`, `100%`], [`translate`, `var(--tw-translate-x) var(--tw-translate-y)`]]), o2(`translate`, [`--translate`, `--spacing`], (e4) => [c2(), B(`--tw-translate-x`, e4), B(`--tw-translate-y`, e4), B(`translate`, `var(--tw-translate-x) var(--tw-translate-y)`)], { supportsNegative: true, supportsFractions: true }); 1588 for (let e4 of [`x`, `y`]) r2(`-translate-${e4}-full`, [c2, [`--tw-translate-${e4}`, `-100%`], [`translate`, `var(--tw-translate-x) var(--tw-translate-y)`]]), r2(`translate-${e4}-full`, [c2, [`--tw-translate-${e4}`, `100%`], [`translate`, `var(--tw-translate-x) var(--tw-translate-y)`]]), o2(`translate-${e4}`, [`--translate`, `--spacing`], (t3) => [c2(), B(`--tw-translate-${e4}`, t3), B(`translate`, `var(--tw-translate-x) var(--tw-translate-y)`)], { supportsNegative: true, supportsFractions: true }); 1589 o2(`translate-z`, [`--translate`, `--spacing`], (e4) => [c2(), B(`--tw-translate-z`, e4), B(`translate`, `var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`)], { supportsNegative: true }), r2(`translate-3d`, [c2, [`translate`, `var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)`]]); 1590 let l2 = () => V([W(`--tw-scale-x`, `1`), W(`--tw-scale-y`, `1`), W(`--tw-scale-z`, `1`)]); 1591 r2(`scale-none`, [[`scale`, `none`]]); 1592 function u2({ negative: t3 }) { 1593 return (n3) => { 1594 if (!n3.value || n3.modifier) return; 1595 let r3; 1596 return n3.value.kind === `arbitrary` ? (r3 = n3.value.value, r3 = t3 ? `calc(${r3} * -1)` : r3, [B(`scale`, r3)]) : (r3 = e3.resolve(n3.value.value, [`--scale`]), !r3 && E(n3.value.value) && (r3 = `${n3.value.value}%`), r3 ? (r3 = t3 ? `calc(${r3} * -1)` : r3, [l2(), B(`--tw-scale-x`, r3), B(`--tw-scale-y`, r3), B(`--tw-scale-z`, r3), B(`scale`, `var(--tw-scale-x) var(--tw-scale-y)`)]) : void 0); 1597 }; 1598 } 1599 t2.functional(`-scale`, u2({ negative: true })), t2.functional(`scale`, u2({ negative: false })), n2(`scale`, () => [{ supportsNegative: true, values: [`0`, `50`, `75`, `90`, `95`, `100`, `105`, `110`, `125`, `150`, `200`], valueThemeKeys: [`--scale`] }]); 1600 for (let e4 of [`x`, `y`, `z`]) i2(`scale-${e4}`, { supportsNegative: true, themeKeys: [`--scale`], handleBareValue: ({ value: e5 }) => E(e5) ? `${e5}%` : null, handle: (t3) => [l2(), B(`--tw-scale-${e4}`, t3), B(`scale`, `var(--tw-scale-x) var(--tw-scale-y)${e4 === `z` ? ` var(--tw-scale-z)` : ``}`)] }), n2(`scale-${e4}`, () => [{ supportsNegative: true, values: [`0`, `50`, `75`, `90`, `95`, `100`, `105`, `110`, `125`, `150`, `200`], valueThemeKeys: [`--scale`] }]); 1601 r2(`scale-3d`, [l2, [`scale`, `var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)`]]), r2(`rotate-none`, [[`rotate`, `none`]]); 1602 function d2({ negative: t3 }) { 1603 return (n3) => { 1604 if (!n3.value || n3.modifier) return; 1605 let r3; 1606 if (n3.value.kind === `arbitrary`) { 1607 r3 = n3.value.value; 1608 let e4 = n3.value.dataType ?? y(r3, [`angle`, `vector`]); 1609 if (e4 === `vector`) return [B(`rotate`, `${r3} var(--tw-rotate)`)]; 1610 if (e4 !== `angle`) return [B(`rotate`, t3 ? `calc(${r3} * -1)` : r3)]; 1611 } else if (r3 = e3.resolve(n3.value.value, [`--rotate`]), !r3 && E(n3.value.value) && (r3 = `${n3.value.value}deg`), !r3) return; 1612 return [B(`rotate`, t3 ? `calc(${r3} * -1)` : r3)]; 1613 }; 1614 } 1615 t2.functional(`-rotate`, d2({ negative: true })), t2.functional(`rotate`, d2({ negative: false }
1615)), n2(`rotate`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`, `45`, `90`, `180`], valueThemeKeys: [`--rotate`] }]); 1616 { 1617 let e4 = [`var(--tw-rotate-x,)`, `var(--tw-rotate-y,)`, `var(--tw-rotate-z,)`, `var(--tw-skew-x,)`, `var(--tw-skew-y,)`].join(` `), a3 = () => V([W(`--tw-rotate-x`), W(`--tw-rotate-y`), W(`--tw-rotate-z`), W(`--tw-skew-x`), W(`--tw-skew-y`)]); 1618 for (let t3 of [`x`, `y`, `z`]) i2(`rotate-${t3}`, { supportsNegative: true, themeKeys: [`--rotate`], handleBareValue: ({ value: e5 }) => E(e5) ? `${e5}deg` : null, handle: (n3) => [a3(), B(`--tw-rotate-${t3}`, `rotate${t3.toUpperCase()}(${n3})`), B(`transform`, e4)] }), n2(`rotate-${t3}`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`, `45`, `90`, `180`], valueThemeKeys: [`--rotate`] }]); 1619 i2(`skew`, { supportsNegative: true, themeKeys: [`--skew`], handleBareValue: ({ value: e5 }) => E(e5) ? `${e5}deg` : null, handle: (t3) => [a3(), B(`--tw-skew-x`, `skewX(${t3})`), B(`--tw-skew-y`, `skewY(${t3})`), B(`transform`, e4)] }), i2(`skew-x`, { supportsNegative: true, themeKeys: [`--skew`], handleBareValue: ({ value: e5 }) => E(e5) ? `${e5}deg` : null, handle: (t3) => [a3(), B(`--tw-skew-x`, `skewX(${t3})`), B(`transform`, e4)] }), i2(`skew-y`, { supportsNegative: true, themeKeys: [`--skew`], handleBareValue: ({ value: e5 }) => E(e5) ? `${e5}deg` : null, handle: (t3) => [a3(), B(`--tw-skew-y`, `skewY(${t3})`), B(`transform`, e4)] }), n2(`skew`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`], valueThemeKeys: [`--skew`] }]), n2(`skew-x`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`], valueThemeKeys: [`--skew`] }]), n2(`skew-y`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`], valueThemeKeys: [`--skew`] }]), t2.functional(`transform`, (t3) => { 1620 if (t3.modifier) return; 1621 let n3 = null; 1622 if (t3.value ? t3.value.kind === `arbitrary` && (n3 = t3.value.value) : n3 = e4, n3 !== null) return [a3(), B(`transform`, n3)]; 1623 }), n2(`transform`, () => [{ hasDefaultValue: true }]), r2(`transform-cpu`, [[`transform`, e4]]), r2(`transform-gpu`, [[`transform`, `translateZ(0) ${e4}`]]), r2(`transform-none`, [[`transform`, `none`]]); 1624 } 1625 i2(`zoom`, { handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [B(`zoom`, e4)] }), n2(`zoom`, () => [{ values: [`50`, `75`, `90`, `95`, `100`, `105`, `110`, `125`, `150`, `200`] }]), r2(`transform-flat`, [[`transform-style`, `flat`]]), r2(`transform-3d`, [[`transform-style`, `preserve-3d`]]), r2(`transform-content`, [[`transform-box`, `content-box`]]), r2(`transform-border`, [[`transform-box`, `border-box`]]), r2(`transform-fill`, [[`transform-box`, `fill-box`]]
vendor: 4,112 bytes, lines 1625-1640
1625), r2(`transform-stroke`, [[`transform-box`, `stroke-box`]]), r2(`transform-view`, [[`transform-box`, `view-box`]]), r2(`backface-visible`, [[`backface-visibility`, `visible`]]), r2(`backface-hidden`, [[`backface-visibility`, `hidden`]]); 1626 for (let e4 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`.split(`.`)) r2(`cursor-${e4}`, [[`cursor`, e4]]); 1627 i2(`cursor`, { themeKeys: [`--cursor`], handle: (e4) => [B(`cursor`, e4)] }); 1628 for (let e4 of [`auto`, `none`, `manipulation`]) r2(`touch-${e4}`, [[`touch-action`, e4]]); 1629 let f2 = () => V([W(`--tw-pan-x`), W(`--tw-pan-y`), W(`--tw-pinch-zoom`)]); 1630 for (let e4 of [`x`, `left`, `right`]) r2(`touch-pan-${e4}`, [f2, [`--tw-pan-x`, `pan-${e4}`], [`touch-action`, `var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]); 1631 for (let e4 of [`y`, `up`, `down`]) r2(`touch-pan-${e4}`, [f2, [`--tw-pan-y`, `pan-${e4}`], [`touch-action`, `var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]); 1632 r2(`touch-pinch-zoom`, [f2, [`--tw-pinch-zoom`, `pinch-zoom`], [`touch-action`, `var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)`]]); 1633 for (let e4 of [`none`, `text`, `all`, `auto`]) r2(`select-${e4}`, [[`-webkit-user-select`, e4], [`user-select`, e4]]); 1634 r2(`resize-none`, [[`resize`, `none`]]), r2(`resize-x`, [[`resize`, `horizontal`]]), r2(`resize-y`, [[`resize`, `vertical`]]), r2(`resize`, [[`resize`, `both`]]), r2(`snap-none`, [[`scroll-snap-type`, `none`]]); 1635 let p2 = () => V([W(`--tw-scroll-snap-strictness`, `proximity`, `*`)]); 1636 for (let e4 of [`x`, `y`, `both`]) r2(`snap-${e4}`, [p2, [`scroll-snap-type`, `${e4} var(--tw-scroll-snap-strictness)`]]); 1637 r2(`snap-mandatory`, [p2, [`--tw-scroll-snap-strictness`, `mandatory`]]), r2(`snap-proximity`, [p2, [`--tw-scroll-snap-strictness`, `proximity`]]), r2(`snap-align-none`, [[`scroll-snap-align`, `none`]]), r2(`snap-start`, [[`scroll-snap-align`, `start`]]), r2(`snap-end`, [[`scroll-snap-align`, `end`]]), r2(`snap-center`, [[`scroll-snap-align`, `center`]]), r2(`snap-normal`, [[`scroll-snap-stop`, `normal`]]), r2(`snap-always`, [[`scroll-snap-stop`, `always`]]); 1638 for (let [e4, t3] 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`]]) o2(e4, [`--scroll-margin`, `--spacing`], (e5) => [B(t3, e5)], { supportsNegative: true }); 1639 for (let [e4, t3] 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`]]) o2(e4, [`--scroll-padding`, `--spacing`], (e5) => [B(t3, e5)]); 1640 r2(`list-inside`, [[`list-style-position`, `inside`]]), r2(`list-outside`, [[`list-style-position`, `outside`]]), i2(`list`, { themeKeys: [`--list-style-type`], handle: (e4) => [B(`list-style-type`, e4)], staticValues: { none: [B(`list-style-type`, `none`)], disc: [B(`list-style-type`, `disc`)], decimal: [B(`list-style-type`, `decimal`)] } }), i2(`list-image`, { themeKeys: [`--list-style-image`], handle: (e4) => [B(`list-style-image`, e4)], staticValues: { none: [B(`list-style-image`, `none`)] } }), r2(`appearance-none`, [[`appearance`, `none`]]), r2(`appearance-auto`, [[`appearance`, `auto`]]), r2(`scheme-normal`, [[`color-scheme`, `normal`]]), r2(`sc
1640heme-dark`, [[`color-scheme`, `dark`]]), r2(`scheme-light`, [[`color-scheme`, `light`]]), r2(`scheme-light-dark`, [[`color-scheme`, `light dark`]]), r2(`scheme-only-dark`, [[`color-scheme`, `only dark`]]), r2(`scheme-only-light`, [[`color-scheme`, `only light`]]), i2(`columns`, { themeKeys: [`--columns`, `--container`], handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`columns`, e4)], staticValues: { auto: [B(`columns`, `auto`)] } }), n2(`columns`, () => [{ values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--columns`, `--container`] }]); 1641 for (let e4 of [`auto`, `avoid`, `all`, `avoid-page`, `page`, `left`, `right`, `column`]) r2(`break-before-${e4}`, [[`break-before`, e4]]); 1642 for (let e4 of [`auto`, `avoid`, `avoid-page`, `avoid-column`]) r2(`break-inside-${e4}`, [[`break-inside`, e4]]); 1643 for (let e4 of [`auto`, `avoid`, `all`, `avoid-page`, `page`, `left`, `right`, `column`]) r2(`break-after-${e4}`, [[`break-after`, e4]]); 1644 r2(`grid-flow-row`, [[`grid-auto-flow`, `row`]]), r2(`grid-flow-col`, [[`grid-auto-flow`, `column`]]), r2(`grid-flow-dense`, [[`grid-auto-flow`, `dense`]]), r2(`grid-flow-row-dense`, [[`grid-auto-flow`, `row dense`]]), r2(`grid-flow-col-dense`, [[`grid-auto-flow`, `column dense`]]), i2(`auto-cols`, { themeKeys: [`--grid-auto-columns`], handle: (e4) => [B(`grid-auto-columns`, e4)], staticValues: { auto: [B(`grid-auto-columns`, `auto`)], min: [B(`grid-auto-columns`, `min-content`)], max: [B(`grid-auto-columns`, `max-content`)], fr: [B(`grid-auto-columns`, `minmax(0, 1fr)`)] } }), i2(`auto-rows`, { themeKeys: [`--grid-auto-rows`], handle: (e4) => [B(`grid-auto-rows`, e4)], staticValues: { auto: [B(`grid-auto-rows`, `auto`)], min: [B(`grid-auto-rows`, `min-content`)], max: [B(`grid-auto-rows`, `max-content`)], fr: [B(`grid-auto-rows`, `minmax(0, 1fr)`)] } }), i2(`grid-cols`, { themeKeys: [`--grid-template-columns`], handleBareValue: ({ value: e4 }) => ye(e4) ? `repeat(${e4}, minmax(0, 1fr))` : null, handle: (e4) => [B(`grid-template-columns`, e4)], staticValues: { none: [B(`grid-template-columns`, `none`)], subgrid: [B(`grid-template-columns`, `subgrid`)] } }), i2(`grid-rows`, { themeKeys: [`--grid-template-rows`], handleBareValue: ({ value: e4 }) => ye(e4) ? `repeat(${e4}, minmax(0, 1fr))` : null, handle: (e4) => [B(`grid-template-rows`, e4)], staticValues: { none: [B(`grid-template-rows`, `none`)], subgrid: [B(`grid-template-rows`, `subgrid`)] } }), n2(`grid-cols`, () => [{ values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-template-columns`] }]), n2(`grid-rows`, () => [{ values: Array.from({ length: 12 }, (e4, t3) => `${t3 + 1}`), valueThemeKeys: [`--grid-template-rows`] }]), r2(`flex-row`, [[`flex-direction`, `row`]]), r2(`flex-row-reverse`, [[`flex-direction`, `row-reverse`]]), r2(`flex-col`, [[`flex-direction`, `column`]]), r2(`flex-col-reverse`, [[`flex-direction`, `column-reverse`]]), r2(`flex-wrap`, [[`flex-wrap`, `wrap`]]), r2(`flex-nowrap`, [[`flex-wrap`, `nowrap`]]), r2(`flex-wrap-reverse`, [[`flex-wrap`, `wrap-reverse`]]), r2(`place-content-center`, [[`place-content`, `center`]]), r2(`place-content-start`, [[`place-content`, `start`]]), r2(`place-content-end`, [[`place-content`, `end`]]), r2(`place-content-center-safe`, [[`place-content`, `safe center`]]), r2(`place-content-end-safe`, [[`place-content`, `safe end`]]), r2(`place-content-between`, [[`place-content`, `space-between`]]), r2(`place-content-around`, [[`place-content`, `space-around`]]), r2(`place-content-evenly`, [[`place-content`, `space-evenly`]]), r2(`place-content-baseline`, [[`place-content`, `baseline`]]), r2(`place-content-stretch`, [[`place-content`, `stretch`]]), r2(`place-items-center`, [[`place-items`, `center`]]), r2(`place-items-start`, [[`place-items`, `start`]]), r2(`place-items-end`, [[`place-items`, `end`]]), r2(`place-items-center-safe`, [[`place-items`, `safe center`]]), r2(`place-items-end-safe`, [[`place-items`, `safe end`]]), r2(`place-items-baseline`, [[`place-items`, `baseline`]]), r2(`place-items-stretch`, [[`place-items`, `stretch`]]
1644), r2(`content-normal`, [[`align-content`, `normal`]]), r2(`content-center`, [[`align-content`, `center`]]), r2(`content-start`, [[`align-content`, `flex-start`]]), r2(`content-end`, [[`align-content`, `flex-end`]]), r2(`content-center-safe`, [[`align-content`, `safe center`]]), r2(`content-end-safe`, [[`align-content`, `safe flex-end`]]), r2(`content-between`, [[`align-content`, `space-between`]]), r2(`content-around`, [[`align-content`, `space-around`]]), r2(`content-evenly`, [[`align-content`, `space-evenly`]]), r2(`content-baseline`, [[`align-content`, `baseline`]]), r2(`content-stretch`, [[`align-content`, `stretch`]]), r2(`items-center`, [[`align-items`, `center`]]), r2(`items-start`, [[`align-items`, `flex-start`]]), r2(`items-end`, [[`align-items`, `flex-end`]]), r2(`items-center-safe`, [[`align-items`, `safe center`]]), r2(`items-end-safe`, [[`align-items`, `safe flex-end`]]), r2(`items-baseline`, [[`align-items`, `baseline`]]), r2(`items-baseline-last`, [[`align-items`, `last baseline`]]), r2(`items-stretch`, [[`align-items`, `stretch`]]), r2(`justify-normal`, [[`justify-content`, `normal`]]), r2(`justify-center`, [[`justify-content`, `center`]]), r2(`justify-start`, [[`justify-content`, `flex-start`]]), r2(`justify-end`, [[`justify-content`, `flex-end`]]), r2(`justify-center-safe`, [[`justify-content`, `safe center`]]), r2(`justify-end-safe`, [[`justify-content`, `safe flex-end`]]), r2(`justify-between`, [[`justify-content`, `space-between`]]), r2(`justify-around`, [[`justify-content`, `space-around`]]), r2(`justify-evenly`, [[`justify-content`, `space-evenly`]]), r2(`justify-baseline`, [[`justify-content`, `baseline`]]), r2(`justify-stretch`, [[`justify-content`, `stretch`]]), r2(`justify-items-normal`, [[`justify-items`, `normal`]]), r2(`justify-items-center`, [[`justify-items`, `center`]]), r2(`justify-items-start`, [[`justify-items`, `start`]]), r2(`justify-items-end`, [[`justify-items`, `end`]]), r2(`justify-items-center-safe`, [[`justify-items`, `safe center`]]), r2(`justify-items-end-safe`, [[`justify-items`, `safe end`]]), r2(`justify-items-stretch`, [[`justify-items`, `stretch`]]), o2(`gap`, [`--gap`, `--spacing`], (e4) => [B(`gap`, e4)]), o2(`gap-x`, [`--gap`, `--spacing`], (e4) => [B(`column-gap`, e4)]), o2(`gap-y`, [`--gap`, `--spacing`], (e4) => [B(`row-gap`, e4)]), o2(`space-x`, [`--space`, `--spacing`], (e4) => { 1645 let t3 = (() => { 1646 if (e4 === `--spacing(0)` || e4 === `--spacing(-0)`) return true; 1647 let t4 = U.get(e4); 1648 return !!(t4 && t4[0] === 0 && (t4[1] === null || fe(e4))); 1649 })(); 1650 return [V([W(`--tw-space-x-reverse`, `0`)]), L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `row-gap`), B(`--tw-space-x-reverse`, `0`), B(`margin-inline-start`, t3 ? `0` : `calc(${e4} * var(--tw-space-x-reverse))`), B(`margin-inline-end`, t3 ? `0` : `calc(${e4} * calc(1 - var(--tw-space-x-reverse)))`)])]; 1651 }, { supportsNegative: true }), o2(`space-y`, [`--space`, `--spacing`], (e4) => { 1652 let t3 = (() => { 1653 if (e4 === `--spacing(0)` || e4 === `--spacing(-0)`) return true; 1654 let t4 = U.get(e4); 1655 return !!(t4 && t4[0] === 0 && (t4[1] === null || fe(e4))); 1656 })(); 1657 return [V([W(`--tw-space-y-reverse`, `0`)]), L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `column-gap`), B(`--tw-space-y-reverse`, `0`), B(`margin-block-start`, t3 ? `0` : `calc(${e4} * var(--tw-space-y-reverse))`), B(`margin-block-end`, t3 ? `0` : `calc(${e4} * calc(1 - var(--tw-space-y-reverse)))`)])]; 1658 }, { supportsNegative: true }), r2(`space-x-reverse`, [() => V([W(`--tw-space-x-reverse`, `0`)]), () => L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `row-gap`), B(`--tw-space-x-reverse`, `1`)])]), r2(`space-y-reverse`, [() => V([W(`--tw-space-y-reverse`, `0`)]), () => L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `column-gap`), B(`--tw-space-y-reverse`, `1`)])]), r2(`accent-auto`, [[`accent-color`, `auto`]]), a2(`accent`, { themeKeys: [`--accent-color`, `--color`], handle: (e4) => [B(`accent-color`, e4)] }), a2(`caret`, { themeKeys: [`--caret-color`, `--color`], handle: (e4) => [B(`caret-color`, e4)] }), a2(`divide`, { themeKeys: [`--divide-color`, `--border-color`, `--color`], handle: (e4) => [L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `divide-color`), B(`border-color`, e4)])] }), r2(`place-self-auto`, [[`place-self`, `auto`]]), r2(`place-self-start`, [[`place-self`, `start`]]), r2(`place-self-end`, [[`place-self`, `end`]]), r2(`place-self-ce
1658nter`, [[`place-self`, `center`]]), r2(`place-self-end-safe`, [[`place-self`, `safe end`]]), r2(`place-self-center-safe`, [[`place-self`, `safe center`]]), r2(`place-self-stretch`, [[`place-self`, `stretch`]]), r2(`self-auto`, [[`align-self`, `auto`]]), r2(`self-start`, [[`align-self`, `flex-start`]]), r2(`self-end`, [[`align-self`, `flex-end`]]), r2(`self-center`, [[`align-self`, `center`]]), r2(`self-end-safe`, [[`align-self`, `safe flex-end`]]), r2(`self-center-safe`, [[`align-self`, `safe center`]]), r2(`self-stretch`, [[`align-self`, `stretch`]]), r2(`self-baseline`, [[`align-self`, `baseline`]]), r2(`self-baseline-last`, [[`align-self`, `last baseline`]]), r2(`justify-self-auto`, [[`justify-self`, `auto`]]), r2(`justify-self-start`, [[`justify-self`, `flex-start`]]), r2(`justify-self-end`, [[`justify-self`, `flex-end`]]), r2(`justify-self-center`, [[`justify-self`, `center`]]), r2(`justify-self-end-safe`, [[`justify-self`, `safe flex-end`]]), r2(`justify-self-center-safe`, [[`justify-self`, `safe center`]]), r2(`justify-self-stretch`, [[`justify-self`, `stretch`]]); 1659 for (let e4 of [`auto`, `hidden`, `clip`, `visible`, `scroll`]) r2(`overflow-${e4}`, [[`overflow`, e4]]), r2(`overflow-x-${e4}`, [[`overflow-x`, e4]]), r2(`overflow-y-${e4}`, [[`overflow-y`, e4]]); 1660 for (let e4 of [`auto`, `contain`, `none`]) r2(`overscroll-${e4}`, [[`overscroll-behavior`, e4]]), r2(`overscroll-x-${e4}`, [[`overscroll-behavior-x`, e4]]), r2(`overscroll-y-${e4}`, [[`overscroll-behavior-y`, e4]]); 1661 r2(`scroll-auto`, [[`scroll-behavior`, `auto`]]), r2(`scroll-smooth`, [[`scroll-behavior`, `smooth`]]), r2(`scrollbar-auto`, [[`scrollbar-width`, `auto`]]), r2(`scrollbar-thin`, [[`scrollbar-width`, `thin`]]), r2(`scrollbar-none`, [[`scrollbar-width`, `none`]]); 1662 { 1663 let e4 = () => V([W(`--tw-scrollbar-thumb`, `#0000`, `<color>`), W(`--tw-scrollbar-track`, `#0000`, `<color>`)]); 1664 a2(`scrollbar-thumb`, { themeKeys: [`--color`], handle: (t3) => [e4(), B(`--tw-scrollbar-thumb`, t3), B(`scrollbar-color`, `var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)] }), a2(`scrollbar-track`, { themeKeys: [`--color`], handle: (t3) => [e4(), B(`--tw-scrollbar-track`, t3), B(`scrollbar-color`, `var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)`)] }); 1665 } 1666 r2(`scrollbar-gutter-auto`, [[`scrollbar-gutter`, `auto`]]), r2(`scrollbar-gutter-stable`, [[`scrollbar-gutter`, `stable`]]), r2(`scrollbar-gutter-both`, [[`scrollbar-gutter`, `stable both-edges`]]), r2(`truncate`, [[`overflow`, `hidden`], [`text-overflow`, `ellipsis`], [`white-space`, `nowrap`]]), r2(`text-ellipsis`, [[`text-overflow`, `ellipsis`]]), r2(`text-clip`, [[`text-overflow`, `clip`]]), r2(`hyphens-none`, [[`-webkit-hyphens`, `none`], [`hyphens`, `none`]]), r2(`hyphens-manual`, [[`-webkit-hyphens`, `manual`], [`hyphens`, `manual`]]), r2(`hyphens-auto`, [[`-webkit-hyphens`, `auto`], [`hyphens`, `auto`]]), r2(`whitespace-normal`, [[`white-space`, `normal`]]), r2(`whitespace-nowrap`, [[`white-space`, `nowrap`]]), r2(`whitespace-pre`, [[`white-space`, `pre`]]), r2(`whitespace-pre-line`, [[`white-space`, `pre-line`]]), r2(`whitespace-pre-wrap`, [[`white-space`, `pre-wrap`]]), r2(`whitespace-break-spaces`, [[`white-space`, `break-spaces`]]), i2(`tab`, { handleBareValue: ({ value: e4 }) => E(e4) ? e4 : null, handle: (e4) => [B(`tab-size`, e4)] }), n2(`tab`, () => [{ values: [`2`, `4`, `8`] }]), r2(`text-wrap`, [[`text-wrap`, `wrap`]]), r2(`text-nowrap`, [[`text-wrap`, `nowrap`]]), r2(`text-balance`, [[`text-wrap`, `balance`]]), r2(`text-pretty`, [[`text-wrap`, `pretty`]]), r2(`break-normal`, [[`overflow-wrap`, `normal`], [`word-break`, `normal`]]), r2(`break-all`, [[`word-break`, `break-all`]]), r2(`break-keep`, [[`word-break`, `keep-all`]]), r2(`wrap-anywhere`, [[`overflow-wrap`, `anywhere`]]), r2(`wrap-break-word`, [[`overflow-wrap`, `break-word`]]), r2(`wrap-normal`, [[`overflow-wrap`, `normal`]]); 1667 for (let [e4, t3] 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`]]]) i2(e4, { themeKeys: [`--radius`], handle: (e5) => t3.map((t4) => B(t4, e5)), staticValues: { none: t3.map((e5) => B(e5, `0`)), full: t3.map((e5) => B(e5, `calc(infinity * 1px)`)) } }); 1668 r2(`border-solid`, [[`--tw-border-style`, `solid`], [`border-style`, `solid`]]), r2(`border-dashed`, [[`--tw-border-style`, `dashed`], [`border-style`, `dashed`]]), r2(`border-dotted`, [[`--tw-border-style`, `dotted`], [`border-style`, `dotted`]]), r2(`border-double`, [[`--tw-border-style`, `double`], [`border-style`, `double`]]), r2(`border-hidden`, [[`--tw-border-style`, `hidden`], [`border-style`, `hidden`]]), r2(`border-none`, [[`--tw-border-style`, `none`], [`border-style`, `none`]]); 1669 { 1670 let a3 = function(r3, i3) { 1671 t2.functional(r3, (t3) => { 1672 if (!t3.value) { 1673 if (t3.modifier) return; 1674 let n3 = e3.get([`--default-border-width`]) ?? `1px`, r4 = i3.width(n3); 1675 return r4 ? [o3(), ...r4] : void 0; 1676 } 1677 if (t3.value.kind === `arbitrary`) { 1678 let n3 = t3.value.value; 1679 switch (t3.value.dataType ?? y(n3, [`color`, `line-width`, `length`])) { 1680 case `line-width`: 1681 case `length`: { 1682 if (t3.modifier) return; 1683 let e4 = i3.width(n3); 1684 return e4 ? [o3(), ...e4] : void 0; 1685 } 1686 default: 1687 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : i3.color(n3); 1688 } 1689 } 1690 { 1691 let n3 = q(t3, e3, [`--border-color`, `--color`]); 1692 if (n3) return i3.color(n3); 1693 } 1694 { 1695 if (t3.modifier) return; 1696 let n3 = e3.resolve(t3.value.value, [`--border-width`]); 1697 if (n3) { 1698 let e4 = i3.width(n3); 1699 return e4 ? [o3(), ...e4] : void 0; 1700 } 1701 if (E(t3.value.value)) { 1702 let e4 = i3.width(`${t3.value.value}px`); 1703 return e4 ? [o3(), ...e4] : void 0; 1704 } 1705 } 1706 }
1706), n2(r3, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--border-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), hasDefaultValue: true }, { values: [`0`, `2`, `4`, `8`], valueThemeKeys: [`--border-width`] }]); 1707 }, o3 = () => V([W(`--tw-border-style`, `solid`)]); 1708 a3(`border`, { width: (e4) => [B(`border-style`, `var(--tw-border-style)`), B(`border-width`, e4)], color: (e4) => [B(`border-color`, e4)] }), a3(`border-x`, { width: (e4) => [B(`border-inline-style`, `var(--tw-border-style)`), B(`border-inline-width`, e4)], color: (e4) => [B(`border-inline-color`, e4)] }), a3(`border-y`, { width: (e4) => [B(`border-block-style`, `var(--tw-border-style)`), B(`border-block-width`, e4)], color: (e4) => [B(`border-block-color`, e4)] }), a3(`border-s`, { width: (e4) => [B(`border-inline-start-style`, `var(--tw-border-style)`), B(`border-inline-start-width`, e4)], color: (e4) => [B(`border-inline-start-color`, e4)] }), a3(`border-e`, { width: (e4) => [B(`border-inline-end-style`, `var(--tw-border-style)`), B(`border-inline-end-width`, e4)], color: (e4) => [B(`border-inline-end-color`, e4)] }), a3(`border-bs`, { width: (e4) => [B(`border-block-start-style`, `var(--tw-border-style)`), B(`border-block-start-width`, e4)], color: (e4) => [B(`border-block-start-color`, e4)] }), a3(`border-be`, { width: (e4) => [B(`border-block-end-style`, `var(--tw-border-style)`), B(`border-block-end-width`, e4)], color: (e4) => [B(`border-block-end-color`, e4)] }), a3(`border-t`, { width: (e4) => [B(`border-top-style`, `var(--tw-border-style)`), B(`border-top-width`, e4)], color: (e4) => [B(`border-top-color`, e4)] }), a3(`border-r`, { width: (e4) => [B(`border-right-style`, `var(--tw-border-style)`), B(`border-right-width`, e4)], color: (e4) => [B(`border-right-color`, e4)] }), a3(`border-b`, { width: (e4) => [B(`border-bottom-style`, `var(--tw-border-style)`), B(`border-bottom-width`, e4)], color: (e4) => [B(`border-bottom-color`, e4)] }), a3(`border-l`, { width: (e4) => [B(`border-left-style`, `var(--tw-border-style)`), B(`border-left-width`, e4)], color: (e4) => [B(`border-left-color`, e4)] }), i2(`divide-x`, { defaultValue: e3.get([`--default-border-width`]) ?? `1px`, themeKeys: [`--divide-width`, `--border-width`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}px` : null, handle: (e4) => [V([W(`--tw-divide-x-reverse`, `0`)]), L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `divide-x-width`), o3(), B(`--tw-divide-x-reverse`, `0`), B(`border-inline-style`, `var(--tw-border-style)`), B(`border-inline-start-width`, `calc(${e4} * var(--tw-divide-x-reverse))`), B(`border-inline-end-width`, `calc(${e4} * calc(1 - var(--tw-divide-x-reverse)))`)])] }), i2(`divide-y`, { defaultValue: e3.get([`--default-border-width`]) ?? `1px`, themeKeys: [`--divide-width`, `--border-width`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}px` : null, handle: (e4) => [V([W(`--tw-divide-y-reverse`, `0`)]), L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `divide-y-width`), o3(), B(`--tw-divide-y-reverse`, `0`), B(`border-bottom-style`, `var(--tw-border-style)`), B(`border-top-style`, `var(--tw-border-style)`), B(`border-top-width`, `calc(${e4} * var(--tw-divide-y-reverse))`), B(`border-bottom-width`, `calc(${e4} * calc(1 - var(--tw-divide-y-reverse)))`)])] }), n2(`divide-x`, () => [{ values: [`0`, `2`, `4`, `8`], valueThemeKeys: [`--divide-width`, `--border-width`], hasDefaultValue: true }]), n2(`divide-y`, () => [{ values: [`0`, `2`, `4`, `8`], valueThemeKeys: [`--divide-width`, `--border-width`], hasDefaultValue: true }]), r2(`divide-x-reverse`, [() => V([W(`--tw-divide-x-reverse`, `0`)]), () => L(`:where(& > :not(:last-child))`, [B(`--tw-divide-x-reverse`, `1`)])]), r2(`divide-y-reverse`, [() => V([W(`--tw-divide-y-reverse`, `0`)]), () => L(`:where(& > :not(:last-child))`, [B(`--tw-divide-y-reverse`, `1`)])]); 1709 for (let e4 of [`solid`, `dashed`, `dotted`, `double`, `none`]) r2(`divide-${e4}`, [() => L(`:where(& > :not(:last-child))`, [B(`--tw-sort`, `divide-style`), B(`--tw-border-style`, e4), B(`border-style`, e4)])]); 1710 } 1711 r2(`bg-auto`, [[`background-size`, `auto`]]), r2(`bg-cover`, [[`background-size`, `cover`]]), r2(`bg-contain`, [[`background-size`, `contain`]]), i2(`bg-size`, { handle(e4) { 1712 if (e4) return [B(`background-size`, e4)]; 1713 } }), r2(`bg-fixed`, [[`background-attachment`, `fixed`]]), r2(`bg-local`, [[`background-attachment`, `local`]]), r2(`bg-scroll`, [[`background-attachment`, `scroll`]]), r2(`bg-top`, [[`background-position`, `top`]]), r2(`bg-top-left`, [[`background-position`, `left top`]]), r2(`bg-top-right`, [[`background-position`, `right top`]]), r2(`bg-bottom`, [[`background-position`, `bottom`]]), r2(`bg-bottom-left`, [[`background-position`, `left bottom`]]), r2(`bg-bottom-right`, [[`background-position`, `right bottom`]]), r2(`bg-left`, [[`background-position`, `left`]]), r2(`bg-right`, [[`background-position`, `right`]]), r2(`bg-center`, [[`background-position`, `center`]]), i2(`bg-position`, { handle(e4) { 1714 if (e4) return [B(`background-position`, e4)]; 1715 } }), r2(`bg-repeat`, [[`background-repeat`, `repeat`]]), r2(`bg-no-repeat`, [[`background-repeat`, `no-repeat`]]), r2(`bg-repeat-x`, [[`background-repeat`, `repeat-x`]]), r2(`bg-repeat-y`, [[`background-repeat`, `repeat-y`]]), r2(`bg-repeat-round`, [[`background-repeat`, `round`]]), r2(`bg-repeat-space`, [[`background-repeat`, `space`]]), r2(`bg-none`, [[`background-image`, `none`]]); 1716 { 1717 let e4 = function(e5) { 1718 let t3 = `in oklab`; 1719 if (e5?.kind === `named`) switch (e5.value) { 1720 case `longer`: 1721 case `shorter`: 1722 case `increasing`: 1723 case `decreasing`: 1724 t3 = `in oklch ${e5.value} hue`; 1725 break; 1726 default: 1727 t3 = `in ${e5.value}`; 1728 } 1729 else e5?.kind === `arbitrary` && (t3 = e5.value); 1730 return t3; 1731 }, r3 = function({ negative: t3 }) { 1732 return (n3) => { 1733 if (!n3.value) return; 1734 if (n3.value.kind === `arbitrary`) { 1735 if (n3.modifier) return; 1736 let e5 = n3.value.value; 1737 return (n3.value.dataType ?? y(e5, [`angle`])) === `angle` ? (e5 = t3 ? `calc(${e5} * -1)` : `${e5}`, [B(`--tw-gradient-position`, e5), B(`background-image`, `linear-gradient(var(--tw-gradient-stops,${e5}))`)]) : t3 ? void 0 : [B(`--tw-gradient-position`, e5), B(`background-image`, `linear-gradient(var(--tw-gradient-stops,${e5}))`)]; 1738 } 1739 let r4 = n3.value.value; 1740 if (!t3 && o3.has(r4)) r4 = o3.get(r4); 1741 else if (E(r4)) r4 = t3 ? `calc(${r4}deg * -1)` : `${r4}deg`; 1742 else return; 1743 let i4 = e4(n3.modifier); 1744 return [B(`--tw-gradient-position`, `${r4}`), z(`@supports (background-image: linear-gradient(in lab, red, red))`, [B(`--tw-gradient-position`, `${r4} ${i4}`)]), B(`background-image`, `linear-gradient(var(--tw-gradient-stops))`)]; 1745 }; 1746 }, i3 = function({ negative: t3 }) { 1747 return (n3) => { 1748 if (n3.value?.kind === `arbitrary`) { 1749 if (n3.modifier) return; 1750 let e5 = n3.value.value; 1751 return [B(`--tw-gradient-position`, e5), B(`background-image`, `conic-gradient(var(--tw-gradient-stops,${e5}))`)]; 1752 } 1753 let r4 = e4(n3.modifier); 1754 if (!n3.value) return [B(`--tw-gradient-position`, r4), B(`background-image`, `conic-gradient(var(--tw-gradient-stops))`)]; 1755 let i4 = n3.value.value; 1756 if (E(i4)) return i4 = t3 ? `calc(${i4}deg * -1)` : `${i4}deg`, [B(`--tw-gradient-position`, `from ${i4} ${r4}`), B(`background-image`, `conic-gradient(var(--tw-gradient-stops))`)]; 1757 }; 1758 }, a3 = [`oklab`, `oklch`, `srgb`, `hsl`, `longer`, `shorter`, `increasing`, `decreasing`], o3 = /* @__PURE__ */ 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`]]); 1759 t2.functional(`-bg-linear`, r3({ negative: true })), t2.functional(`bg-linear`, r3({ negative: false })), n2(`bg-linear`, () => [{ values: [...o3.keys()], modifiers: a3 }, { values: [`0`, `30`, `60`, `90`, `120`, `150`, `180`, `210`, `240`, `270`, `300`, `330`], supportsNegative: true, modifiers: a3 }]), t2.functional(`-bg-conic`, i3({ negative: true })), t2.functional(`bg-conic`, i3({ negative: false })), n2(`bg-conic`, () => [{ hasDefaultValue: true, modifiers: a3 }, { values: [`0`, `30`, `60`, `90`, `120`, `150`, `180`, `210`, `240`, `270`, `300`, `330`], supportsNegative: true, modifiers: a3 }]), t2.functional(`bg-radial`, (t3) => { 1760 if (!t3.value) return [B(`--tw-gradient-position`, e4(t3.modifier)), B(`background-image`, `radial-gradient(var(--tw-gradient-stops))`)]; 1761 if (t3.value.kind === `arbitrary`) { 1762 if (t3.modifier) return; 1763 let e5 = t3.value.value; 1764 return [B(`--tw-gradient-position`, e5), B(`background-image`, `radial-gradient(var(--tw-gradient-stops,${e5}))`)]; 1765 } 1766 }), n2(`bg-radial`, () => [{ hasDefaultValue: true, modifiers: a3 }]); 1767 } 1768 t2.functional(`bg`, (t3) => { 1769 if (t3.value) { 1770 if (t3.value.kind === `arbitrary`) { 1771 let n3 = t3.value.value; 1772 switch (t3.value.dataType ?? y(n3, [`image`, `color`, `percentage`, `position`, `bg-size`, `length`, `url`])) { 1773 case `percentage`: 1774 case `position`: 1775 return t3.modifier ? void 0 : [B(`background-position`, n3)]; 1776 case `bg-size`: 1777 case `length`: 1778 case `size`: 1779 return t3.modifier ? void 0 : [B(`background-size`, n3)]; 1780 case `image`: 1781 case `url`: 1782 return t3.modifier ? void 0 : [B(`background-image`, n3)]; 1783 default: 1784 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`background-color`, n3)]; 1785 } 1786 } 1787 { 1788 let n3 = q(t3, e3, [`--background-color`, `--color`]); 1789 if (n3) return [B(`background-color`, n3)]; 1790 } 1791 { 1792 if (t3.modifier) return; 1793 let n3 = e3.resolve(t3.value.value, [`--background-image`]); 1794 if (n3) return [B(`background-image`, n3)]; 1795 } 1796 } 1797 }), n2(`bg`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--background-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [], valueThemeKeys: [`--background-image`] }]); 1798 let m2 = () => V([W(`--tw-gradient-position`), W(`--tw-gradient-from`, `#0000`, `<color>`), W(`--tw-gradient-via`, `#0000`, `<color>`), W(`--tw-gradient-to`, `#0000`, `<color>`), W(`--tw-gradient-stops`), W(`--tw-gradient-via-stops`), W(`--tw-gradient-from-position`, `0%`, `<length-percentage>
1798`), W(`--tw-gradient-via-position`, `50%`, `<length-percentage>`), W(`--tw-gradient-to-position`, `100%`, `<length-percentage>`)]); 1799 function g2(r3, i3) { 1800 t2.functional(r3, (t3) => { 1801 if (t3.value) { 1802 if (t3.value.kind === `arbitrary`) { 1803 let n3 = t3.value.value; 1804 switch (t3.value.dataType ?? y(n3, [`color`, `length`, `percentage`])) { 1805 case `length`: 1806 case `percentage`: 1807 return t3.modifier ? void 0 : i3.position(n3); 1808 default: 1809 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : i3.color(n3); 1810 } 1811 } 1812 { 1813 let n3 = q(t3, e3, [`--background-color`, `--color`]); 1814 if (n3) return i3.color(n3); 1815 } 1816 { 1817 if (t3.modifier) return; 1818 let n3 = e3.resolve(t3.value.value, [`--gradient-color-stop-positions`]); 1819 if (n3) return i3.position(n3); 1820 if (t3.value.value[t3.value.value.length - 1] === `%` && E(t3.value.value.slice(0, -1))) return i3.position(t3.value.value); 1821 } 1822 } 1823 }), n2(r3, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--background-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}%`), valueThemeKeys: [`--gradient-color-stop-positions`] }]); 1824 } 1825 g2(`from`, { color: (e4) => [m2(), B(`--tw-sort`, `--tw-gradient-from`), B(`--tw-gradient-from`, e4), B(`--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: (e4) => [m2(), B(`--tw-gradient-from-position`, e4)] }), r2(`via-none`, [[`--tw-gradient-via-stops`, `initial`]]), g2(`via`, { color: (e4) => [m2(), B(`--tw-sort`, `--tw-gradient-via`), B(`--tw-gradient-via`, e4), B(`--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)`), B(`--tw-gradient-stops`, `var(--tw-gradient-via-stops)`)], position: (e4) => [m2(), B(`--tw-gradient-via-position`, e4)] }), g2(`to`, { color: (e4) => [m2(), B(`--tw-sort`, `--tw-gradient-to`), B(`--tw-gradient-to`, e4), B(`--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: (e4) => [m2(), B(`--tw-gradient-to-position`, e4)] }), r2(`mask-none`, [[`mask-image`, `none`]]), t2.functional(`mask`, (e4) => { 1826 if (!e4.value || e4.modifier || e4.value.kind !== `arbitrary`) return; 1827 let t3 = e4.value.value; 1828 switch (e4.value.dataType ?? y(t3, [`image`, `percentage`, `position`, `bg-size`, `length`, `url`])) { 1829 case `percentage`: 1830 case `position`: 1831 return e4.modifier ? void 0 : [B(`mask-position`, t3)]; 1832 case `bg-size`: 1833 case `length`: 1834 case `size`: 1835 return [B(`mask-size`, t3)]; 1836 default: 1837 return [B(`mask-image`, t3)]; 1838 } 1839 }), r2(`mask-add`, [[`mask-composite`, `add`]]), r2(`mask-subtract`, [[`mask-composite`, `subtract`]]), r2(`mask-intersect`, [[`mask-composite`, `intersect`]]), r2(`mask-exclude`, [[`mask-composite`, `exclude`]]), r2(`mask-alpha`, [[`mask-mode`, `alpha`]]), r2(`mask-luminance`, [[`mask-mode`, `luminance`]]), r2(`mask-match`, [[`mask-mode`, `match-source`]]), r2(`mask-type-alpha`, [[`mask-type`, `alpha`]]), r2(`mask-type-luminance`, [[`mask-type`, `luminance`]]), r2(`mask-auto`, [[`mask-size`, `auto`]]), r2(`mask-cover`, [[`mask-size`, `cover`]]), r2(`mask-contain`, [[`mask-size`, `contain`]]), i2(`mask-size`, { handle(e4) { 1840 if (e4) return [B(`mask-size`, e4)]; 1841 } }), r2(`mask-top`, [[`mask-position`, `top`]]), r2(`mask-top-left`, [[`mask-position`, `left top`]]), r2(`mask-top-right`, [[`mask-position`, `right top`]]), r2(`mask-bottom`, [[`mask-position`, `bottom`]]), r2(`mask-bottom-left`, [[`mask-position`, `left bottom`]]), r2(`mask-bottom-right`, [[`mask-position`, `right bottom`]]), r2(`mask-left`, [[`mask-position`, `left`]]), r2(`mask-right`, [[`mask-position`, `right`]]), r2(`mask-center`, [[`mask-position`, `center`]]), i2(`mask-position`, { handle(e4) {
1842 if (e4) return [B(`mask-position`, e4)]; 1843 } }), r2(`mask-repeat`, [[`mask-repeat`, `repeat`]]), r2(`mask-no-repeat`, [[`mask-repeat`, `no-repeat`]]), r2(`mask-repeat-x`, [[`mask-repeat`, `repeat-x`]]), r2(`mask-repeat-y`, [[`mask-repeat`, `repeat-y`]]), r2(`mask-repeat-round`, [[`mask-repeat`, `round`]]), r2(`mask-repeat-space`, [[`mask-repeat`, `space`]]), r2(`mask-clip-border`, [[`mask-clip`, `border-box`]]), r2(`mask-clip-padding`, [[`mask-clip`, `padding-box`]]), r2(`mask-clip-content`, [[`mask-clip`, `content-box`]]), r2(`mask-clip-fill`, [[`mask-clip`, `fill-box`]]), r2(`mask-clip-stroke`, [[`mask-clip`, `stroke-box`]]), r2(`mask-clip-view`, [[`mask-clip`, `view-box`]]), r2(`mask-no-clip`, [[`mask-clip`, `no-clip`]]), r2(`mask-origin-border`, [[`mask-origin`, `border-box`]]), r2(`mask-origin-padding`, [[`mask-origin`, `padding-box`]]), r2(`mask-origin-content`, [[`mask-origin`, `content-box`]]), r2(`mask-origin-fill`, [[`mask-origin`, `fill-box`]]), r2(`mask-origin-stroke`, [[`mask-origin`, `stroke-box`]]), r2(`mask-origin-view`, [[`mask-origin`, `view-box`]]); 1844 let v2 = () => V([W(`--tw-mask-linear`, `linear-gradient(#fff, #fff)`), W(`--tw-mask-radial`, `linear-gradient(#fff, #fff)`), W(`--tw-mask-conic`, `linear-gradient(#fff, #fff)`)]); 1845 function b2(r3, i3) { 1846 t2.functional(r3, (t3) => { 1847 if (t3.value) { 1848 if (t3.value.kind === `arbitrary`) { 1849 let n3 = t3.value.value; 1850 switch (t3.value.dataType ?? y(n3, [`length`, `percentage`, `color`])) { 1851 case `color`: 1852 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : i3.color(n3); 1853 case `percentage`: 1854 return t3.modifier || !E(n3.slice(0, -1)) ? void 0 : i3.position(n3); 1855 default: 1856 return t3.modifier ? void 0 : i3.position(n3); 1857 } 1858 } 1859 { 1860 let n3 = q(t3, e3, [`--background-color`, `--color`]); 1861 if (n3) return i3.color(n3); 1862 } 1863 { 1864 if (t3.modifier) return; 1865 let n3 = y(t3.value.value, [`number`, `percentage`]); 1866 if (!n3) return; 1867 switch (n3) { 1868 case `number`: 1869 return !e3.resolve(null, [`--spacing`]) || !D(t3.value.value) ? void 0 : i3.position(`--spacing(${t3.value.value})`); 1870 case `percentage`: 1871 return E(t3.value.value.slice(0, -1)) ? i3.position(t3.value.value) : void 0; 1872 default: 1873 return; 1874 } 1875 } 1876 } 1877 }), n2(r3, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--background-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}%`), valueThemeKeys: [`--gradient-color-stop-positions`] }]), n2(r3, () => [{ values: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}%`) }, { values: e3.get([`--spacing`]) ? _n : [] }, { values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--background-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }]); 1878 } 1879 let ee2 = () => V([W(`--tw-mask-left`, `linear-gradient(#fff, #fff)`), W(`--tw-mask-right`, `linear-gradient(#fff, #fff)`), W(`--tw-mask-bottom`, `linear-gradient(#fff, #fff)`), W(`--tw-mask-top`, `linear-gradient(#fff, #fff)`)]); 1880 function x2(e4, t3, n3) { 1881 b2(e4, { color(e5) { 1882 let r3 = [v2(), ee2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--tw-mask-linear`, `var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)]; 1883 for (let i3 of [`top`, `right`, `bottom`, `left`]) n3[i3] && (r3.push(B(`--tw-mask-${i3}`, `linear-gradient(to ${i3}, var(--tw-mask-${i3}-from-color) var(--tw-mask-${i3}-from-position), var(--tw-mask-${i3}-to-color) var(--tw-mask-${i3}-to-position))`)), r3.push(V([W(`--tw-mask-${i3}-from-position`, `0%`), W(`--tw-mask-${i3}-to-position`, `100%`), W(`--tw-mask-${i3}-from-color`, `black`), W(`--tw-mask-${i3}-to-color`, `transparent`)])), r3.push(B(`--tw-mask-${i3}-${t3}-color`, e5))); 1884 return r3; 1885 }, position(e5) { 1886 let r3 = [v2(), ee2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--tw-mask-linear`, `var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top)`)]; 1887 for (let i3 of [`top`, `right`, `bottom`, `left`]) n3[i3] && (r3.push(B(`--tw-mask-${i3}`, `linear-gradient(to ${i3}, var(--tw-mask-${i3}-from-color) var(--tw-mask-${i3}-from-position), var(--tw-mask-${i3}-to-color) var(--tw-mask-${i3}-to-position))`)), r3.push(V([W(`--tw-mask-${i3}-from-position`, `0%`), W(`--tw-mask-${i3}-to-position`, `100%`), W(`--tw-mask-${i3}-from-color`, `black`), W(`--tw-mask-${i3}-to-color`, `transparent`)])), r3.push(B(`--tw-mask-${i3}-${t3}-position`, e5))); 1888 return r3; 1889 } }); 1890 } 1891 x2(`mask-x-from`, `from`, { top: false, right: true, bottom: false, left: true }), x2(`mask-x-to`, `to`, { top: false, right: true, bottom: false, left: true }), x2(`mask-y-from`, `from`, { top: true, right: false, bottom: true, left: false }), x2(`mask-y-to`, `to`, { top: true, right: false, bottom: true, left: false }), x2(`mask-t-from`, `from`, { top: true, right: false, bottom: false, left: false }), x2(`mask-t-to`, `to`, { top: true, right: false, bottom: false, left: false }), x2(`mask-r-from`, `from`, { top: false, right: true, bottom: false, left: false }), x2(`mask-r-to`, `to`, { top: false, right: true, bottom: false, left: false }), x2(`mask-b-from`, `from`, { top: false, right: false, bottom: true, left: false }), x2(`mask-b-to`, `to`, { top: false, right: false, bottom: true, left: false }), x2(`mask-l-from`, `from`, { top: false, right: false, bottom: false, left: true }), x2(`mask-l-to`, `to`, { top: false, right: false, bottom: false, left: true }); 1892 let S2 = () => V([W(`--tw-mask-linear-position`, `0deg`), W(`--tw-mask-linear-from-position`, `0%`), W(`--tw-mask-linear-to-position`, `100%`), W(`--tw-mask-linear-from-color`, `black`), W(`--tw-mask-linear-to-color`, `transparent`)]); 1893 i2(`mask-linear`, { defaultValue: null, supportsNegative: true, supportsFractions: false, handleBareValue({ value: e4 }) { 1894 if (!E(e4)) return null; 1895 let t3 = Number(e4); 1896 return t3 === 0 ? `0deg` : t3 === 1 ? `1deg` : `calc(1deg * ${e4})`; 1897 }, handleNegativeBareValue({ value: e4 }) { 1898 if (!E(e4)) return null; 1899 let t3 = Number(e4); 1900 return t3 === 0 ? `0deg` : t3 === 1 ? `-1deg` : `calc(1deg * -${e4})`; 1901 }, handle: (e4) => [v2(), S2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--tw-mask-linear`, `linear-gradient(var(--tw-mask-linear-stops, var(--tw-mask-linear-position)))`), B(`--tw-mask-linear-position`, e4)] }), n2(`mask-linear`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`, `45`, `90`, `180`] }]), b2(`mask-linear-from`, { color: (e4) => [v2(), S2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-linear`, `linear-gradient(var(--tw-mask-linear-stops))`), B(`--tw-mask-linear-from-color`, e4)], position: (e4) => [v2(), S2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-linear`, `linear-gradient(var(--tw-mask-linear-stops))`), B(`--tw-mask-linear-from-position`, e4)] }), b2(`mask-linear-to`, { color: (e4) => [v2(), S2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-linear`, `linear-gradient(var(--tw-mask-linear-stops))`), B(`--tw-mask-linear-to-color`, e4)], position: (e4) => [v2(), S2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-linear`, `linear-gradient(var(--tw-mask-linear-stops))`), B(`--tw-mask-linear-to-position`, e4)] }); 1902 let C2 = () => V([W(`--tw-mask-radial-from-position`, `0%`), W(`--tw-mask-radial-to-position`, `100%`), W(`--tw-mask-radial-from-color`, `black`), W(`--tw-mask-radial-to-color`, `transparent`), W(`--tw-mask-radial-shape`, `ellipse`), W(`--tw-mask-radial-size`, `farthest-corner`), W(`--tw-mask-radial-position`, `center`)]); 1903 r2(`mask-circle`, [[`--tw-mask-radial-shape`, `circle`]]), r2(`mask-ellipse`, [[`--tw-mask-radial-shape`, `ellipse`]]), r2(`mask-radial-closest-side`, [[`--tw-mask-radial-size`, `closest-side`]]), r2(`mask-radial-farthest-side`, [[`--tw-mask-radial-size`, `farthest-side`]]), r2(`mask-radial-closest-corner`, [[`--tw-mask-radial-size`, `closest-corner`]]), r2(`mask-radial-farthest-corner`, [[`--tw-mask-radial-size`, `farthest-corner`]]), r2(`mask-radial-at-top`, [[`--tw-mask-radial-position`, `top`]]), r2(`mask-radial-at-top-left`, [[`--tw-mask-radial-position`, `top left`]]), r2(`mask-radial-at-top-right`, [[`--tw-mask-radial-position`, `top right`]]), r2(`mask-radial-at-bottom`, [[`--tw-mask-radial-position`, `bottom`]]), r2(`mask-radial-at-bottom-left`, [[`--tw-mask-radial-position`, `bottom left`]]), r2(`mask-radial-at-bottom-right`, [[`--tw-mask-radial-position`, `bottom right`]]), r2(`mask-radial-at-left`, [[`--tw-mask-radial-position`, `left`]]), r2(`mask-radial-at-right`, [[`--tw-mask-radial-position`, `right`]]), r2(`mask-radial-at-center`, [[`--tw-mask-radial-position`, `center`]]), i2(`mask-radial-at`, { defaultValue: null, supportsNegative: false, supportsFractions: false, handle: (e4) => [B(`--tw-mask-radial-position`, e4)] }), i2(`mask-radial`, { defaultValue: null, supportsNegative: false, supportsFractions: false, handle: (e4) => [v2(), C2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--tw-mask-radial`, `radial-gradient(var(--tw-mask-radial-stops, var(--tw-mask-radial-size)))`), B(`--tw-mask-radial-size`, e4)] }), b2(`mask-radial-from`, { color: (e4) => [v2(), C2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-radial`, `radial-gradient(var(--tw-mask-radial-stops))`), B(`--tw-mask-radial-from-color`, e4)], position: (e4) => [v2(), C2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-radial`, `radial-gradient(var(--tw-mask-radial-stops))`), B(`--tw-mask-radial-from-position`, e4)] }), b2(`mask-radial-to`, { color: (e4) => [v2(), C2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-radial`, `radial-gradient(var(--tw-mask-radial-stops))`), B(`--tw-mask-radial-to-color`, e4)], position: (e4) => [v2(), C2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-radial`, `radial-gradient(var(--tw-mask-radial-stops))`), B(`--tw-mask-radial-to-position`, e4)] }); 1904 let te2 = () => V([W(`--tw-mask-conic-position`, `0deg`), W(`--tw-mask-conic-from-position`, `0%`), W(`--tw-mask-conic-to-position`, `100%`), W(`--tw-mask-conic-from-color`, `black`), W(`--tw-mask-conic-to-color`, `transparent`)]); 1905 i2(`mask-conic`, { defaultValue: null, supportsNegative: true, supportsFractions: false, handleBareValue({ value: e4 }) { 1906 if (!E(e4)) return null; 1907 let t3 = Number(e4); 1908 return t3 === 0 ? `0deg` : t3 === 1 ? `1deg` : `calc(1deg * ${e4})`; 1909 }, handleNegativeBareValue({ value: e4 }) { 1910 if (!E(e4)) return null; 1911 let t3 = Number(e4); 1912 return t3 === 0 ? `0deg` : t3 === 1 ? `-1deg` : `calc(1deg * -${e4})`; 1913 }, handle: (e4) => [v2(), te2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--tw-mask-conic`, `c
1913onic-gradient(var(--tw-mask-conic-stops, var(--tw-mask-conic-position)))`), B(`--tw-mask-conic-position`, e4)] }), n2(`mask-conic`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `3`, `6`, `12`, `45`, `90`, `180`] }]), b2(`mask-conic-from`, { color: (e4) => [v2(), te2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-conic`, `conic-gradient(var(--tw-mask-conic-stops))`), B(`--tw-mask-conic-from-color`, e4)], position: (e4) => [v2(), te2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-conic`, `c
1913onic-gradient(var(--tw-mask-conic-stops))`), B(`--tw-mask-conic-from-position`, e4)] }), b2(`mask-conic-to`, { color: (e4) => [v2(), te2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-conic`, `conic-gradient(var(--tw-mask-conic-stops))`), B(`--tw-mask-conic-to-color`, e4)], position: (e4) => [v2(), te2(), B(`mask-image`, `var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic)`), B(`mask-composite`, `intersect`), B(`--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)`), B(`--tw-mask-conic`, `conic-gradient(var(--tw-mask-conic-stops))`), B(`--tw-mask-conic-to-position`, e4)] }), r2(`box-decoration-slice`, [[`-webkit-box-decoration-break`, `slice`], [`box-decoration-break`, `slice`]]), r2(`box-decoration-clone`, [[`-webkit-box-decoration-break`, `clone`], [`box-decoration-break`, `clone`]]), r2(`bg-clip-text`, [[`background-clip`, `text`]]), r2(`bg-clip-border`, [[`background-clip`, `border-box`]]), r2(`bg-clip-padding`, [[`background-clip`, `padding-box`]]), r2(`bg-clip-content`, [[`background-clip`, `content-box`]]), r2(`bg-origin-border`, [[`background-origin`, `border-box`]]), r2(`bg-origin-padding`, [[`background-origin`, `padding-box`]]), r2(`bg-origin-content`, [[`background-origin`, `content-box`]]); 1914 for (let e4 of [`normal`, `multiply`, `screen`, `overlay`, `darken`, `lighten`, `color-dodge`, `color-burn`, `hard-light`, `soft-light`, `difference`, `exclusion`, `hue`, `saturation`, `color`, `luminosity`]) r2(`bg-blend-${e4}`, [[`background-blend-mode`, e4]]), r2(`mix-blend-${e4}`, [[`mix-blend-mode`, e4]]); 1915 r2(`mix-blend-plus-darker`, [[`mix-blend-mode`, `plus-darker`]]), r2(`mix-blend-plus-lighter`, [[`mix-blend-mode`, `plus-lighter`]]), r2(`fill-none`, [[`fill`, `none`]]), t2.functional(`fill`, (t3) => { 1916 if (!t3.value) return; 1917 if (t3.value.kind === `arbitrary`) { 1918 let n4 = K(t3.value.value, t3.modifier, e3); 1919 return n4 === null ? void 0 : [B(`fill`, n4)]; 1920 } 1921 let n3 = q(t3, e3, [`--fill`, `--color`]); 1922 if (n3) return [B(`fill`, n3)]; 1923 }), n2(`fill`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--fill`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }]), r2(`stroke-none`, [[`stroke`, `none`]]), t2.functional(`stroke`, (t3) => { 1924 if (t3.value) { 1925 if (t3.value.kind === `arbitrary`) { 1926 let n3 = t3.value.value; 1927 switch (t3.value.dataType ?? y(n3, [`color`, `number`, `length`, `percentage`])) { 1928 case `number`: 1929 case `length`: 1930 case `percentage`: 1931 return t3.modifier ? void 0 : [B(`stroke-width`, n3)]; 1932 default: 1933 return n3 = K(t3.value.value, t3.modifier, e3), n3 === null ? void 0 : [B(`stroke`, n3)]; 1934 } 1935 } 1936 { 1937 let n3 = q(t3, e3, [`--stroke`, `--color`]); 1938 if (n3) return [B(`stroke`, n3)]; 1939 } 1940 { 1941 let n3 = e3.resolve(t3.value.value, [`--stroke-width`]); 1942 if (n3) return [B(`stroke-width`, n3)]; 1943 if (E(t3.value.value)) return [B(`stroke-width`, t3.value.value)]; 1944 } 1945 } 1946 }), n2(`stroke`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--stroke`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`0`, `1`, `2`, `3`], valueThemeKeys: [`--stroke-width`] }]), r2(`object-contain`, [[`object-fit`, `contain`]]), r2(`object-cover`, [[`object-fit`, `cover`]]), r2(`object-fill`, [[`object-fit`, `fill`]]), r2(`object-none`, [[`object-fit`, `none`]]), r2(`object-scale-down`, [[`object-fit`, `scale-down`]]), i2(`object`, { themeKeys: [`--object-position`], handle: (e4) => [B(`object-position`, e4)], staticValues: { top: [B(`object-position`, `top`)], "top-left": [B(`object-position`, `left top`)], "top-right": [B(`object-position`, `right top`)], bottom: [B(`object-position`, `bottom`)], "bottom-left": [B(`object-position`, `left bottom`)], "bottom-right": [B(`object-position`, `right bottom`)], left: [B(`object-position`, `left`)], right: [B(`object-position`, `right`)], center: [B(`object-position`, `center`)] } }); 1947 for (let [e4, t3] 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`]]) o2(e4, [`--padding`, `--spacing`], (e5) => [B(t3, e5)]); 1948 r2(`text-left`, [[`text-align`, `left`]]), r2(`text-center`, [[`text-align`, `center`]]), r2(`text-right`, [[`text-align`, `right`]]), r2(`text-justify`, [[`text-align`, `justify`]]), r2(`text-start`, [[`text-align`, `start`]]), r2(`text-end`, [[`text-align`, `end`]]), o2(`indent`, [`--text-indent`, `--spacing`], (e4) => [B(`text-indent`, e4)], { supportsNegative: true }), r2(`align-baseline`, [[`vertical-align`, `baseline`]]), r2(`align-top`, [[`vertical-align`, `top`]]), r2(`align-middle`, [[`vertical-align`, `middle`]]), r2(`align-bottom`, [[`vertical-align`, `bottom`]]), r2(`align-text-top`, [[`vertical-align`, `text-top`]]), r2(`align-text-bottom`, [[`vertical-align`, `text-bottom`]]), r2(`align-sub`, [[`vertical-align`, `sub`]]), r2(`align-super`, [[`vertical-align`, `super`]]), i2(`align`, { themeKeys: [], handle: (e4) => [B(`vertical-align`, e4)] }), t2.functional(`font`, (t3) => { 1949 if (!(!t3.value || t3.modifier)) { 1950 if (t3.value.kind === `arbitrary`) { 1951 let e4 = t3.value.value; 1952 switch (t3.value.dataType ?? y(e4, [`number`, `generic-name`, `family-name`])) { 1953 case `generic-name`: 1954 case `family-name`: 1955 return [B(`font-family`, e4)]; 1956 default: 1957 return [V([W(`--tw-font-weight`)]), B(`--tw-font-weight`, e4), B(`font-weight`, e4)]; 1958 } 1959 } 1960 { 1961 let n3 = e3.resolveWith(t3.value.value, [`--font`], [`--font-feature-settings`, `--font-variation-settings`]); 1962 if (n3) { 1963 let [e4, t4 = {}] = n3; 1964 return [B(`font-family`, e4), B(`font-feature-settings`, t4[`--font-feature-settings`]), B(`font-variation-settings`, t4[`--font-variation-settings`])]; 1965 } 1966 } 1967 { 1968 let n3 = e3.resolve(t3.value.value, [`--font-weight`]); 1969 if (n3) return [V([W(`--tw-font-weight`)]), B(`--tw-font-weight`, n3), B(`font-weight`, n3)]; 1970 } 1971 } 1972 }), n2(`font`, () => [{ values: [], valueThemeKeys: [`--font`] }, { values: [], valueThemeKeys: [`--font-weight`] }]), i2(`font-features`, { themeKeys: [], handle: (e4) => [B(`font-feature-settings`, e4)] }), r2(`uppercase`, [[`text-transform`, `uppercase`]]), r2(`lowercase`, [[`text-transform`, `lowercase`]]), r2(`capitalize`, [[`text-transform`, `capitalize`]]), r2(`normal-case`, [[`text-transform`, `none`]]), r2(`italic`, [[`font-style`, `italic`]]), r2(`not-italic`, [[`font-style`, `normal`]]), r2(`underline`, [[`text-decoration-line`, `underline`]]), r2(`overline`, [[`text-decoration-line`, `overline`]]), r2(`line-through`, [[`text-decoration-line`, `line-through`]]), r2(`no-u
1972nderline`, [[`text-decoration-line`, `none`]]), r2(`font-stretch-normal`, [[`font-stretch`, `normal`]]), r2(`font-stretch-ultra-condensed`, [[`font-stretch`, `ultra-condensed`]]), r2(`font-stretch-extra-condensed`, [[`font-stretch`, `extra-condensed`]]), r2(`font-stretch-condensed`, [[`font-stretch`, `condensed`]]), r2(`font-stretch-semi-condensed`, [[`font-stretch`, `semi-condensed`]]), r2(`font-stretch-semi-expanded`, [[`font-stretch`, `semi-expanded`]]), r2(`font-stretch-expanded`, [[`font-stretch`, `expanded`]]), r2(`font-stretch-extra-expanded`, [[`font-stretch`, `extra-expanded`]]), r2(`font-stretch-ultra-expanded`, [[`font-stretch`, `ultra-expanded`]]), i2(`font-stretch`, { handleBareValue: ({ value: e4 }) => { 1973 if (!e4.endsWith(`%`)) return null; 1974 let t3 = Number(e4.slice(0, -1)); 1975 return !E(t3) || Number.isNaN(t3) || t3 < 50 || t3 > 200 ? null : e4; 1976 }, handle: (e4) => [B(`font-stretch`, e4)] }), n2(`font-stretch`, () => [{ values: [`50%`, `75%`, `90%`, `95%`, `100%`, `105%`, `110%`, `125%`, `150%`, `200%`] }]), a2(`placeholder`, { themeKeys: [`--placeholder-color`, `--color`], handle: (e4) => [L(`&::placeholder`, [B(`--tw-sort`, `placeholder-color`), B(`color`, e4)])] }), r2(`decoration-solid`, [[`text-decoration-style`, `solid`]]), r2(`decoration-double`, [[`text-decoration-style`, `double`]]), r2(`decoration-dotted`, [[`text-decoration-style`, `dotted`]]), r2(`decoration-dashed`, [[`text-decoration-style`, `dashed`]]), r2(`decoration-wavy`, [[`text-decoration-style`, `wavy`]]), r2(`decoration-auto`, [[`text-decoration-thickness`, `auto`]]), r2(`decoration-from-font`, [[`text-decoration-thickness`, `from-font`]]), t2.functional(`decoration`, (t3) => { 1977 if (t3.value) { 1978 if (t3.value.kind === `arbitrary`) { 1979 let n3 = t3.value.value; 1980 switch (t3.value.dataType ?? y(n3, [`color`, `length`, `percentage`])) { 1981 case `length`: 1982 case `percentage`: 1983 return t3.modifier ? void 0 : [B(`text-decoration-thickness`, n3)]; 1984 default: 1985 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`text-decoration-color`, n3)]; 1986 } 1987 } 1988 { 1989 let n3 = e3.resolve(t3.value.value, [`--text-decoration-thickness`]); 1990 if (n3) return t3.modifier ? void 0 : [B(`text-decoration-thickness`, n3)]; 1991 if (E(t3.value.value)) return t3.modifier ? void 0 : [B(`text-decoration-thickness`, `${t3.value.value}px`)]; 1992 } 1993 { 1994 let n3 = q(t3, e3, [`--text-decoration-color`, `--color`]); 1995 if (n3) return [B(`text-decoration-color`, n3)]; 1996 } 1997 } 1998 }), n2(`decoration`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--text-decoration-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`0`, `1`, `2`], valueThemeKeys: [`--text-decoration-thickness`] }]), i2(`animate`, { themeKeys: [`--animate`], handle: (e4) => [B(`animation`, e4)], staticValues: { none: [B(`animation`, `none`)] } }); 1999 { 2000 let a3 = [`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(` `), o3 = [`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(` `), s3 = () => V([W(`--tw-blur`), W(`--tw-brightness`), W(`--tw-contrast`), W(`--tw-grayscale`), W(`--tw-hue-rotate`), W(`--tw-invert`), W(`--tw-opacity`), W(`--tw-saturate`), W(`--tw-sepia`), W(`--tw-drop-shadow`), W(`--tw-drop-shadow-color`), W(`--tw-drop-shadow-alpha`, `100%`, `<percentage>`), W(`--tw-drop-shadow-size`)]), c3 = () => V([W(`--tw-backdrop-blur`), W(`--tw-backdrop-brightness`), W(`--tw-backdrop-contrast`), W(`--tw-backdrop-grayscale`), W(`--tw-backdrop-hue-rotate`), W(`--tw-backdrop-invert`), W(`--tw-backdrop-opacity`), W(`--tw-backdrop-saturate`), W(`--tw-backdrop-sepia`)]); 2001 t2.functional(`filter`, (e4) => { 2002 if (!e4.modifier) { 2003 if (e4.value === null) return [s3(), B(`filter`, a3)]; 2004 if (e4.value.kind === `arbitrary`) return [B(`filter`, e4.value.value)]; 2005 if (e4.value.value === `none`) return [B(`filter`, `none`)]; 2006 } 2007 }), t2.functional(`backdrop-filter`, (e4) => { 2008 if (!e4.modifier) { 2009 if (e4.value === null) return [c3(), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)]; 2010 if (e4.value.kind === `arbitrary`) return [B(`-webkit-backdrop-filter`, e4.value.value), B(`backdrop-filter`, e4.value.value)]; 2011 if (e4.value.value === `none`) return [B(`-webkit-backdrop-filter`, `none`), B(`backdrop-filter`, `none`)]; 2012 } 2013 }), i2(`blur`, { themeKeys: [`--blur`], handle: (e4) => [s3(), B(`--tw-blur`, `blur(${e4})`), B(`filter`, a3)], staticValues: { none: [s3(), B(`--tw-blur`, ` `), B(`filter`, a3)] } }), i2(`backdrop-blur`, { themeKeys: [`--backdrop-blur`, `--blur`], handle: (e4) => [c3(), B(`--tw-backdrop-blur`, `blur(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)], staticValues: { none: [c3(), B(`--tw-backdrop-blur`, ` `), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] } }), i2(`brightness`, { themeKeys: [`--brightness`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [s3(), B(`--tw-brightness`, `brightness(${e4})`), B(`filter`, a3)] }), i2(`backdrop-brightness`, { themeKeys: [`--backdrop-brightness`, `--brightness`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [c3(), B(`--tw-backdrop-brightness`, `brightness(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`brightness`, () => [{ values: [`0`, `50`, `75`, `90`, `95`, `100`, `105`, `110`, `125`, `150`, `200`], valueThemeKeys: [`--brightness`] }]), n2(`backdrop-brightness`, () => [{ values: [`0`, `50`, `75`, `90`, `95`, `100`, `105`, `110`, `125`, `150`, `200`], valueThemeKeys: [`--backdrop-brightness`, `--brightness`] }]), i2(`contrast`, { themeKeys: [`--contrast`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [s3(), B(`--tw-contrast`, `contrast(${e4})`), B(`filter`, a3)] }), i2(`backdrop-contrast`, { themeKeys: [`--backdrop-contrast`, `--contrast`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [c3(), B(`--tw-backdrop-contrast`, `contrast(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`contrast`, () => [{ values: [`0`, `50`, `75`, `100`, `125`, `150`, `200`], valueThemeKeys: [`--contrast`] }]), n2(`backdrop-contrast`, () => [{ values: [`0`, `50`, `75`, `100`, `125`, `150`, `200`], valueThemeKeys: [`--backdrop-contrast`, `--contrast`] }]), i2(`grayscale`, { themeKeys: [`--grayscale`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [s3(), B(`--tw-grayscale`, `grayscale(${e4})`), B(`filter`, a3)] }), i2(`backdrop-grayscale`, { themeKeys: [`--backdrop-grayscale`, `--grayscale`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [c3(), B(`--tw-backdrop-grayscale`, `grayscale(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`grayscale`, () => [{ values: [`0`, `25`, `50`, `75`, `100`], valueThemeKeys: [`--grayscale`], hasDefaultValue: true }]), n2(`backdrop-grayscale`, () => [{ values: [`0`, `25`, `50`, `75`, `100`], valueThemeKeys: [`--backdrop-grayscale`, `--grayscale`], hasDefaultValue: true }]), i2(`hue-rotate`, { supportsNegative: true, themeKeys: [`--hue-rotate`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}deg` : null, handle: (e4) => [s3(), B(`--tw-hue-rotate`, `hue-rotate(${e4})`), B(`filter`, a3)] }), i2(`backdrop-hue-rotate`, { supportsNegative: true, themeKeys: [`--backdrop-hue-rotate`, `--hue-rotate`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}deg` : null, handle: (e4) => [c3(), B(`--tw-backdrop-hue-rotate`, `hue-rotate(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }
vendor: 16,384 bytes, lines 2013-2128
2013), n2(`hue-rotate`, () => [{ values: [`0`, `15`, `30`, `60`, `90`, `180`], valueThemeKeys: [`--hue-rotate`] }]), n2(`backdrop-hue-rotate`, () => [{ values: [`0`, `15`, `30`, `60`, `90`, `180`], valueThemeKeys: [`--backdrop-hue-rotate`, `--hue-rotate`] }]), i2(`invert`, { themeKeys: [`--invert`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [s3(), B(`--tw-invert`, `invert(${e4})`), B(`filter`, a3)] }), i2(`backdrop-invert`, { themeKeys: [`--backdrop-invert`, `--invert`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [c3(), B(`--tw-backdrop-invert`, `invert(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`invert`, () => [{ values: [`0`, `25`, `50`, `75`, `100`], valueThemeKeys: [`--invert`], hasDefaultValue: true }]), n2(`backdrop-invert`, () => [{ values: [`0`, `25`, `50`, `75`, `100`], valueThemeKeys: [`--backdrop-invert`, `--invert`], hasDefaultValue: true }]), i2(`saturate`, { themeKeys: [`--saturate`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [s3(), B(`--tw-saturate`, `saturate(${e4})`), B(`filter`, a3)] }), i2(`backdrop-saturate`, { themeKeys: [`--backdrop-saturate`, `--saturate`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, handle: (e4) => [c3(), B(`--tw-backdrop-saturate`, `saturate(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`saturate`, () => [{ values: [`0`, `50`, `100`, `150`, `200`], valueThemeKeys: [`--saturate`] }]), n2(`backdrop-saturate`, () => [{ values: [`0`, `50`, `100`, `150`, `200`], valueThemeKeys: [`--backdrop-saturate`, `--saturate`] }]), i2(`sepia`, { themeKeys: [`--sepia`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [s3(), B(`--tw-sepia`, `sepia(${e4})`), B(`filter`, a3)] }), i2(`backdrop-sepia`, { themeKeys: [`--backdrop-sepia`, `--sepia`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}%` : null, defaultValue: `100%`, handle: (e4) => [c3(), B(`--tw-backdrop-sepia`, `sepia(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`sepia`, () => [{ values: [`0`, `50`, `100`], valueThemeKeys: [`--sepia`], hasDefaultValue: true }]), n2(`backdrop-sepia`, () => [{ values: [`0`, `50`, `100`], valueThemeKeys: [`--backdrop-sepia`, `--sepia`], hasDefaultValue: true }]), r2(`drop-shadow-none`, [s3, [`--tw-drop-shadow`, ` `], [`filter`, a3]]), t2.functional(`drop-shadow`, (t3) => { 2014 let n3; 2015 if (t3.modifier && (t3.modifier.kind === `arbitrary` ? n3 = t3.modifier.value : E(t3.modifier.value) && (n3 = `${t3.modifier.value}%`)), !t3.value) { 2016 let t4 = e3.get([`--drop-shadow`]), r3 = e3.resolve(null, [`--drop-shadow`]); 2017 return t4 === null || r3 === null ? void 0 : [s3(), B(`--tw-drop-shadow-alpha`, n3), ...En(`--tw-drop-shadow-size`, t4, n3, (e4) => `var(--tw-drop-shadow-color, ${e4})`), B(`--tw-drop-shadow`, _(r3, `,`).map((e4) => `drop-shadow(${e4})`).join(` `)), B(`filter`, a3)]; 2018 } 2019 if (t3.value.kind === `arbitrary`) { 2020 let r3 = t3.value.value; 2021 return (t3.value.dataType ?? y(r3, [`color`])) === `color` ? (r3 = K(r3, t3.modifier, e3), r3 === null ? void 0 : [s3(), B(`--tw-drop-shadow-color`, G(r3, `var(--tw-drop-shadow-alpha)`)), B(`--tw-drop-shadow`, `var(--tw-drop-shadow-size)`)]) : t3.modifier && !n3 ? void 0 : [s3(), B(`--tw-drop-shadow-alpha`, n3), ...En(`--tw-drop-shadow-size`, r3, n3, (e4) => `var(--tw-drop-shadow-color, ${e4})`), B(`--tw-drop-shadow`, `var(--tw-drop-shadow-size)`), B(`filter`, a3)]; 2022 } 2023 { 2024 let r3 = e3.get([`--drop-shadow-${t3.value.value}`]), i3 = e3.resolve(t3.value.value, [`--drop-shadow`]); 2025 if (r3 && i3) return t3.modifier && !n3 ? void 0 : n3 ? [s3(), B(`--tw-drop-shadow-alpha`, n3), ...En(`--tw-drop-shadow-size`, r3, n3, (e4) => `var(--tw-drop-shadow-color, ${e4})`), B(`--tw-drop-shadow`, `var(--tw-drop-shadow-size)`), B(`filter`, a3)] : [s3(), B(`--tw-drop-shadow-alpha`, n3), ...En(`--tw-drop-shadow-size`, r3, n3, (e4) => `var(--tw-drop-shadow-color, ${e4})`), B(`--tw-drop-shadow`, _(i3, `,`).map((e4) => `drop-shadow(${e4})`).join(` `)), B(`filter`, a3)]; 2026 } 2027 { 2028 let n4 = q(t3, e3, [`--drop-shadow-color`, `--color`]); 2029 if (n4) return n4 === `inherit` ? [s3(), B(`--tw-drop-shadow-color`, `inherit`), B(`--tw-drop-shadow`, `var(--tw-drop-shadow-size)`)] : [s3(), B(`--tw-drop-shadow-color`, G(n4, `var(--tw-drop-shadow-alpha)`)), B(`--tw-drop-shadow`, `var(--tw-drop-shadow-size)`)]; 2030 } 2031 }), n2(`drop-shadow`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--drop-shadow-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { valueThemeKeys: [`--drop-shadow`] }]), i2(`backdrop-opacity`, { themeKeys: [`--backdrop-opacity`, `--opacity`], handleBareValue: ({ value: e4 }) => be(e4) ? `${e4}%` : null, handle: (e4) => [c3(), B(`--tw-backdrop-opacity`, `opacity(${e4})`), B(`-webkit-backdrop-filter`, o3), B(`backdrop-filter`, o3)] }), n2(`backdrop-opacity`, () => [{ values: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), valueThemeKeys: [`--backdrop-opacity`, `--opacity`] }]); 2032 } 2033 { 2034 let a3 = `var(--tw-ease, ${e3.resolve(null, [`--default-transition-timing-function`]) ?? `ease`})`, o3 = `var(--tw-duration, ${e3.resolve(null, [`--default-transition-duration`]) ?? `0s`})`; 2035 i2(`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: (e4) => [B(`transition-property`, e4), B(`transition-timing-function`, a3), B(`transition-duration`, o3)], staticValues: { none: [B(`transition-property`, `none`)], all: [B(`transition-property`, `all`), B(`transition-timing-function`, a3), B(`transition-duration`, o3)], colors: [B(`transition-property`, `color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to`), B(`transition-timing-function`, a3), B(`transition-duration`, o3)], opacity: [B(`transition-property`, `opacity`), B(`transition-timing-function`, a3), B(`transition-duration`, o3)], shadow: [B(`transition-property`, `box-shadow`), B(`transition-timing-function`, a3), B(`transition-duration`, o3)], transform: [B(`transition-property`, `transform, translate, scale, rotate`), B(`transition-timing-function`, a3), B(`transition-duration`, o3)] } }), r2(`transition-discrete`, [[`transition-behavior`, `allow-discrete`]]), r2(`transition-normal`, [[`transition-behavior`, `normal`]]), i2(`delay`, { handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}ms` : null, themeKeys: [`--transition-delay`], handle: (e4) => [B(`transition-delay`, e4)] }); 2036 { 2037 let n3 = () => V([W(`--tw-duration`)]); 2038 r2(`duration-initial`, [n3, [`--tw-duration`, `initial`]]), t2.functional(`duration`, (t3) => { 2039 if (t3.modifier || !t3.value) return; 2040 let r3 = null; 2041 if (t3.value.kind === `arbitrary` ? r3 = t3.value.value : (r3 = e3.resolve(t3.value.fraction ?? t3.value.value, [`--transition-duration`]), r3 === null && E(t3.value.value) && (r3 = `${t3.value.value}ms`)), r3 !== null) return [n3(), B(`--tw-duration`, r3), B(`transition-duration`, r3)]; 2042 }); 2043 } 2044 n2(`delay`, () => [{ values: [`75`, `100`, `150`, `200`, `300`, `500`, `700`, `1000`], valueThemeKeys: [`--transition-delay`] }]), n2(`duration`, () => [{ values: [`75`, `100`, `150`, `200`, `300`, `500`, `700`, `1000`], valueThemeKeys: [`--transition-duration`] }]); 2045 } 2046 { 2047 let e4 = () => V([W(`--tw-ease`)]); 2048 i2(`ease`, { themeKeys: [`--ease`], handle: (t3) => [e4(), B(`--tw-ease`, t3), B(`transition-timing-function`, t3)], staticValues: { initial: [e4(), B(`--tw-ease`, `initial`)], linear: [e4(), B(`--tw-ease`, `linear`), B(`transition-timing-function`, `linear`)] } }); 2049 } 2050 r2(`will-change-auto`, [[`will-change`, `auto`]]), r2(`will-change-scroll`, [[`will-change`, `scroll-position`]]), r2(`will-change-contents`, [[`will-change`, `contents`]]), r2(`will-change-transform`, [[`will-change`, `transform`]]), i2(`will-change`, { themeKeys: [], handle: (e4) => [B(`will-change`, e4)] }), r2(`content-none`, [[`--tw-content`, `none`], [`content`, `none`]]), i2(`content`, { themeKeys: [`--content`], handle: (e4) => [V([W(`--tw-content`, `""`)]), B(`--tw-content`, e4), B(`content`, `var(--tw-content)`)] }); 2051 { 2052 let e4 = `var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)`, t3 = () => V([W(`--tw-contain-size`), W(`--tw-contain-layout`), W(`--tw-contain-paint`), W(`--tw-contain-style`)]); 2053 r2(`contain-none`, [[`contain`, `none`]]), r2(`contain-content`, [[`contain`, `content`]]), r2(`contain-strict`, [[`contain`, `strict`]]), r2(`contain-size`, [t3, [`--tw-contain-size`, `size`], [`contain`, e4]]), r2(`contain-inline-size`, [t3, [`--tw-contain-size`, `inline-size`], [`contain`, e4]]), r2(`contain-layout`, [t3, [`--tw-contain-layout`, `layout`], [`contain`, e4]]), r2(`contain-paint`, [t3, [`--tw-contain-paint`, `paint`], [`contain`, e4]]), r2(`contain-style`, [t3, [`--tw-contain-style`, `style`], [`contain`, e4]]), i2(`contain`, { themeKeys: [], handle: (e5) => [B(`contain`, e5)] }); 2054 } 2055 r2(`forced-color-adjust-none`, [[`forced-color-adjust`, `none`]]), r2(`forced-color-adjust-auto`, [[`forced-color-adjust`, `auto`]]), o2(`leading`, [`--leading`, `--spacing`], (e4) => [V([W(`--tw-leading`)]), B(`--tw-leading`, e4), B(`line-height`, e4)], { staticValues: { none: [V([W(`--tw-leading`)]), B(`--tw-leading`, `1`), B(`line-height`, `1`)] } }), i2(`tracking`, { supportsNegative: true, themeKeys: [`--tracking`], handle: (e4) => [V([W(`--tw-tracking`)]), B(`--tw-tracking`, e4), B(`letter-spacing`, e4)] }), r2(`antialiased`, [[`-webkit-font-smoothing`, `antialiased`], [`-moz-osx-font-smoothing`, `grayscale`]]), r2(`subpixel-antialiased`, [[`-webkit-font-smoothing`, `auto`], [`-moz-osx-font-smoothing`, `auto`]]); 2056 { 2057 let e4 = `var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)`, t3 = () => V([W(`--tw-ordinal`), W(`--tw-slashed-zero`), W(`--tw-numeric-figure`), W(`--tw-numeric-spacing`), W(`--tw-numeric-fraction`)]); 2058 r2(`normal-nums`, [[`font-variant-numeric`, `normal`]]), r2(`ordinal`, [t3, [`--tw-ordinal`, `ordinal`], [`font-variant-numeric`, e4]]), r2(`slashed-zero`, [t3, [`--tw-slashed-zero`, `slashed-zero`], [`font-variant-numeric`, e4]]), r2(`lining-nums`, [t3, [`--tw-numeric-figure`, `lining-nums`], [`font-variant-numeric`, e4]]), r2(`oldstyle-nums`, [t3, [`--tw-numeric-figure`, `oldstyle-nums`], [`font-variant-numeric`, e4]]), r2(`proportional-nums`, [t3, [`--tw-numeric-spacing`, `proportional-nums`], [`font-variant-numeric`, e4]]), r2(`tabular-nums`, [t3, [`--tw-numeric-spacing`, `tabular-nums`], [`font-variant-numeric`, e4]]), r2(`diagonal-fractions`, [t3, [`--tw-numeric-fraction`, `diagonal-fractions`], [`font-variant-numeric`, e4]]), r2(`stacked-fractions`, [t3, [`--tw-numeric-fraction`, `stacked-fractions`], [`font-variant-numeric`, e4]]); 2059 } 2060 { 2061 let a3 = () => V([W(`--tw-outline-style`, `solid`)]); 2062 t2.static(`outline-hidden`, () => [B(`--tw-outline-style`, `none`), B(`outline-style`, `none`), R(`@media`, `(forced-colors: active)`, [B(`outline`, `2px solid transparent`), B(`outline-offset`, `2px`)])]), r2(`outline-none`, [[`--tw-outline-style`, `none`], [`outline-style`, `none`]]), r2(`outline-solid`, [[`--tw-outline-style`, `solid`], [`outline-style`, `solid`]]), r2(`outline-dashed`, [[`--tw-outline-style`, `dashed`], [`outline-style`, `dashed`]]), r2(`outline-dotted`, [[`--tw-outline-style`, `dotted`], [`outline-style`, `dotted`]]), r2(`outline-double`, [[`--tw-outline-style`, `double`], [`outline-style`, `double`]]), t2.functional(`outline`, (t3) => { 2063 if (t3.value === null) { 2064 if (t3.modifier) return; 2065 let n3 = e3.get([`--default-outline-width`]) ?? `1px`; 2066 return [a3(), B(`outline-style`, `var(--tw-outline-style)`), B(`outline-width`, n3)]; 2067 } 2068 if (t3.value.kind === `arbitrary`) { 2069 let n3 = t3.value.value; 2070 switch (t3.value.dataType ?? y(n3, [`color`, `length`, `number`, `percentage`])) { 2071 case `length`: 2072 case `number`: 2073 case `percentage`: 2074 return t3.modifier ? void 0 : [a3(), B(`outline-style`, `var(--tw-outline-style)`), B(`outline-width`, n3)]; 2075 default: 2076 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`outline-color`, n3)]; 2077 } 2078 } 2079 { 2080 let n3 = q(t3, e3, [`--outline-color`, `--color`]); 2081 if (n3) return [B(`outline-color`, n3)]; 2082 } 2083 { 2084 if (t3.modifier) return; 2085 let n3 = e3.resolve(t3.value.value, [`--outline-width`]); 2086 if (n3) return [a3(), B(`outline-style`, `var(--tw-outline-style)`), B(`outline-width`, n3)]; 2087 if (E(t3.value.value)) return [a3(), B(`outline-style`, `var(--tw-outline-style)`), B(`outline-width`, `${t3.value.value}px`)]; 2088 } 2089 }), n2(`outline`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--outline-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), hasDefaultValue: true }, { values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--outline-width`] }]), i2(`outline-offset`, { supportsNegative: true, themeKeys: [`--outline-offset`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}px` : null, handle: (e4) => [B(`outline-offset`, e4)] }), n2(`outline-offset`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--outline-offset`] }]); 2090 } 2091 i2(`opacity`, { themeKeys: [`--opacity`], handleBareValue: ({ value: e4 }) => be(e4) ? `${e4}%` : null, handle: (e4) => [B(`opacity`, e4)] }), n2(`opacity`, () => [{ values: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), valueThemeKeys: [`--opacity`] }]), i2(`underline-offset`, { supportsNegative: true, themeKeys: [`--text-underline-offset`], handleBareValue: ({ value: e4 }) => E(e4) ? `${e4}px` : null, handle: (e4) => [B(`text-underline-offset`, e4)], staticValues: { auto: [B(`text-underline-offset`, `auto`)] } }), n2(`underline-offset`, () => [{ supportsNegative: true, values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--text-underline-offset`] }]), t2.functional(`text`, (t3) => { 2092 if (t3.value) { 2093 if (t3.value.kind === `arbitrary`) { 2094 let n3 = t3.value.value; 2095 switch (t3.value.dataType ?? y(n3, [`color`, `length`, `percentage`, `absolute-size`, `relative-size`])) { 2096 case `size`: 2097 case `length`: 2098 case `percentage`: 2099 case `absolute-size`: 2100 case `relative-size`: 2101 if (t3.modifier) { 2102 let r3 = t3.modifier.kind === `arbitrary` ? t3.modifier.value : e3.resolve(t3.modifier.value, [`--leading`]); 2103 if (!r3 && D(t3.modifier.value)) { 2104 if (!e3.resolve(null, [`--spacing`])) return null; 2105 r3 = `--spacing(${t3.modifier.value})`; 2106 } 2107 return !r3 && t3.modifier.value === `none` && (r3 = `1`), r3 ? [B(`font-size`, n3), B(`line-height`, r3)] : null; 2108 } 2109 return [B(`font-size`, n3)]; 2110 default: 2111 return n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`color`, n3)]; 2112 } 2113 } 2114 { 2115 let n3 = q(t3, e3, [`--text-color`, `--color`]); 2116 if (n3) return [B(`color`, n3)]; 2117 } 2118 { 2119 let n3 = e3.resolveWith(t3.value.value, [`--text`], [`--line-height`, `--letter-spacing`, `--font-weight`]); 2120 if (n3) { 2121 let [r3, i3 = {}] = Array.isArray(n3) ? n3 : [n3]; 2122 if (t3.modifier) { 2123 let n4 = t3.modifier.kind === `arbitrary` ? t3.modifier.value : e3.resolve(t3.modifier.value, [`--leading`]); 2124 if (!n4 && D(t3.modifier.value)) { 2125 if (!e3.resolve(null, [`--spacing`])) return null; 2126 n4 = `--spacing(${t3.modifier.value})`; 2127 } 2128 if (!n4
2128 && t3.modifier.value === `none` && (n4 = `1`), !n4) return null; 2129 let i4 = [B(`font-size`, r3)]; 2130 return n4 && i4.push(B(`line-height`, n4)), i4; 2131 } 2132 return typeof i3 == `string` ? [B(`font-size`, r3), B(`line-height`, i3)] : [B(`font-size`, r3), B(`line-height`, i3[`--line-height`] ? `var(--tw-leading, ${i3[`--line-height`]})` : void 0), B(`letter-spacing`, i3[`--letter-spacing`] ? `var(--tw-tracking, ${i3[`--letter-spacing`]})` : void 0), B(`font-weight`, i3[`--font-weight`] ? `var(--tw-font-weight, ${i3[`--font-weight`]})` : void 0)]; 2133 } 2134 } 2135 } 2136 }), n2(`text`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--text-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [], valueThemeKeys: [`--text`], modifiers: [], modifierThemeKeys: [`--leading`] }]); 2137 let w2 = () => V([W(`--tw-text-shadow-color`), W(`--tw-text-shadow-alpha`, `100%`, `<percentage>`)]); 2138 r2(`text-shadow-initial`, [w2, [`--tw-text-shadow-color`, `initial`]]), t2.functional(`text-shadow`, (t3) => { 2139 let n3; 2140 if (t3.modifier && (t3.modifier.kind === `arbitrary` ? n3 = t3.modifier.value : E(t3.modifier.value) && (n3 = `${t3.modifier.value}%`)), !t3.value) { 2141 let t4 = e3.get([`--text-shadow`]); 2142 return t4 === null ? void 0 : [w2(), B(`--tw-text-shadow-alpha`, n3), ...Tn(`text-shadow`, t4, n3, (e4) => `var(--tw-text-shadow-color, ${e4})`)]; 2143 } 2144 if (t3.value.kind === `arbitrary`) { 2145 let r3 = t3.value.value; 2146 return (t3.value.dataType ?? y(r3, [`color`])) === `color` ? (r3 = K(r3, t3.modifier, e3), r3 === null ? void 0 : [w2(), B(`--tw-text-shadow-color`, G(r3, `var(--tw-text-shadow-alpha)`))]) : [w2(), B(`--tw-text-shadow-alpha`, n3), ...Tn(`text-shadow`, r3, n3, (e4) => `var(--tw-text-shadow-color, ${e4})`)]; 2147 } 2148 switch (t3.value.value) { 2149 case `none`: 2150 return t3.modifier ? void 0 : [w2(), B(`text-shadow`, `none`)]; 2151 case `inherit`: 2152 return t3.modifier ? void 0 : [w2(), B(`--tw-text-shadow-color`, `inherit`)]; 2153 } 2154 { 2155 let r3 = e3.get([`--text-shadow-${t3.value.value}`]); 2156 if (r3) return [w2(), B(`--tw-text-shadow-alpha`, n3), ...Tn(`text-shadow`, r3, n3, (e4) => `var(--tw-text-shadow-color, ${e4})`)]; 2157 } 2158 { 2159 let n4 = q(t3, e3, [`--text-shadow-color`, `--color`]); 2160 if (n4) return [w2(), B(`--tw-text-shadow-color`, G(n4, `var(--tw-text-shadow-alpha)`))]; 2161 } 2162 }), n2(`text-shadow`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--text-shadow-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`none`] }, { valueThemeKeys: [`--text-shadow`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), hasDefaultValue: e3.get([`--text-shadow`]) !== null }]); 2163 { 2164 let i3 = function(e4) { 2165 return `var(--tw-ring-inset,) 0 0 0 calc(${e4} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${l3})`; 2166 }, a3 = function(e4) { 2167 return `inset 0 0 0 ${e4} var(--tw-inset-ring-color, currentcolor)`; 2168 }, o3 = [`var(--tw-inset-shadow)`, `var(--tw-inset-ring-shadow)`, `var(--tw-ring-offset-shadow)`, `var(--tw-ring-shadow)`, `var(--tw-sha
2168dow)`].join(`, `), s3 = `0 0 #0000`, c3 = () => V([W(`--tw-shadow`, s3), W(`--tw-shadow-color`), W(`--tw-shadow-alpha`, `100%`, `<percentage>`), W(`--tw-inset-shadow`, s3), W(`--tw-inset-shadow-color`), W(`--tw-inset-shadow-alpha`, `100%`, `<percentage>`), W(`--tw-ring-color`), W(`--tw-ring-shadow`, s3), W(`--tw-inset-ring-color`), W(`--tw-inset-ring-shadow`, s3), W(`--tw-ring-inset`), W(`--tw-ring-offset-width`, `0px`, `<length>`), W(`--tw-ring-offset-color`, `#fff`), W(`--tw-ring-offset-shadow`, s3)]); 2169 r2(`shadow-initial`, [c3, [`--tw-shadow-color`, `initial`]]), t2.functional(`shadow`, (t3) => { 2170 let n3; 2171 if (t3.modifier && (t3.modifier.kind === `arbitrary` ? n3 = t3.modifier.value : E(t3.modifier.value) && (n3 = `${t3.modifier.value}%`)), !t3.value) { 2172 let t4 = e3.get([`--shadow`]); 2173 return t4 === null ? void 0 : [c3(), B(`--tw-shadow-alpha`, n3), ...Tn(`--tw-shadow`, t4, n3, (e4) => `var(--tw-shadow-color, ${e4})`), B(`box-shadow`, o3)]; 2174 } 2175 if (t3.value.kind === `arbitrary`) { 2176 let r3 = t3.value.value; 2177 return (t3.value.dataType ?? y(r3, [`color`])) === `color` ? (r3 = K(r3, t3.modifier, e3), r3 === null ? void 0 : [c3(), B(`--tw-shadow-color`, G(r3, `var(--tw-sha
2177dow-alpha)`))]) : [c3(), B(`--tw-shadow-alpha`, n3), ...Tn(`--tw-shadow`, r3, n3, (e4) => `var(--tw-shadow-color, ${e4})`), B(`box-shadow`, o3)]; 2178 } 2179 switch (t3.value.value) { 2180 case `none`: 2181 return t3.modifier ? void 0 : [c3(), B(`--tw-shadow`, s3), B(`box-shadow`, o3)]; 2182 case `inherit`: 2183 return t3.modifier ? void 0 : [c3(), B(`--tw-shadow-color`, `inherit`)]; 2184 } 2185 { 2186 let r3 = e3.get([`--shadow-${t3.value.value}`]); 2187 if (r3) return [c3(), B(`--tw-shadow-alpha`, n3), ...Tn(`--tw-shadow`, r3, n3, (e4) => `var(--tw-shadow-color, ${e4})`), B(`box-shadow`, o3)]; 2188 } 2189 { 2190 let n4 = q(t3, e3, [`--box-shadow-color`, `--color`]); 2191 if (n4) return [c3(), B(`--tw-shadow-color`, G(n4, `var(--tw-shadow-alpha)`))]; 2192 } 2193 }), n2(`shadow`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--box-shadow-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`none`] }, { valueThemeKeys: [`--shadow`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), hasDefaultValue: e3.get([`--shadow`]) !== null }]), r2(`inset-shadow-initial`, [c3, [`--tw-inset-shadow-color`, `initial`]]), t2.functional(`inset-shadow`, (t3) => { 2194 let n3; 2195 if (t3.modifier && (t3.modifier.kind === `arbitrary` ? n3 = t3.modifier.value : E(t3.modifier.value) && (n3 = `${t3.modifier.value}%`)), !t3.value) { 2196 let t4 = e3.get([`--inset-shadow`]); 2197 return t4 === null ? void 0 : [c3(), B(`--tw-inset-shadow-alpha`, n3), ...Tn(`--tw-inset-shadow`, t4, n3, (e4) => `var(--tw-inset-shadow-color, ${e4})`), B(`box-shadow`, o3)]; 2198 } 2199 if (t3.value.kind === `arbitrary`) { 2200 let r3 = t3.value.value; 2201 return (t3.value.dataType ?? y(r3, [`color`])) === `color` ? (r3 = K(r3, t3.modifier, e3), r3 === null ? void 0 : [c3(), B(`--tw-inset-shadow-color`, G(r3, `var(--tw-inset-shadow-alpha)`))]) : [c3(), B(`--tw-inset-shadow-alpha`, n3), ...Tn(`--tw-inset-shadow`, r3, n3, (e4) => `var(--tw-inset-shadow-color, ${e4})`, `inset`), B(`box-shadow`, o3)]; 2202 } 2203 switch (t3.value.value) { 2204 case `none`: 2205 return t3.modifier ? void 0 : [c3(), B(`--tw-inset-shadow`, `inset ${s3}`), B(`box-shadow`, o3)]; 2206 case `inherit`: 2207 return t3.modifier ? void 0 : [c3(), B(`--tw-inset-shadow-color`, `inherit`)]; 2208 } 2209 { 2210 let r3 = e3.get([`--inset-shadow-${t3.value.value}`]); 2211 if (r3) return [c3(), B(`--tw-inset-shadow-alpha`, n3), ...Tn(`--tw-inset-shadow`, r3, n3, (e4) => `var(--tw-inset-shadow-color, ${e4})`), B(`box-shadow`, o3)]; 2212 } 2213 { 2214 let n4 = q(t3, e3, [`--box-shadow-color`, `--color`]); 2215 if (n4) return [c3(), B(`--tw-inset-shadow-color`, G(n4, `var(--tw-inset-shadow-alpha)`))]; 2216 } 2217 }), n2(`inset-shadow`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--box-shadow-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`none`] }, { valueThemeKeys: [`--inset-shadow`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`), hasDefaultValue: e3.get([`--inset-shadow`]) !== null }]), r2(`ring-inset`, [c3, [`--tw-ring-inset`, `inset`]]); 2218 let l3 = e3.get([`--default-ring-color`]) ?? `currentcolor`; 2219 t2.functional(`ring`, (t3) => { 2220 if (!t3.value) { 2221 if (t3.modifier) return; 2222 let n3 = e3.get([`--default-ring-width`]) ?? `1px`; 2223 return [c3(), B(`--tw-ring-shadow`, i3(n3)), B(`box-shadow`, o3)]; 2224 } 2225 if (t3.value.kind === `arbitrary`) { 2226 let n3 = t3.value.value; 2227 return (t3.value.dataType ?? y(n3, [`color`, `length`])) === `length` ? t3.modifier ? void 0 : [c3(), B(`--tw-ring-shadow`, i3(n3)), B(`box-shadow`, o3)] : (n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`--tw-ring-color`, n3)]); 2228 } 2229 { 2230 let n3 = q(t3, e3, [`--ring-color`, `--color`]); 2231 if (n3) return [B(`--tw-ring-color`, n3)]; 2232 } 2233 { 2234 if (t3.modifier) return; 2235 let n3 = e3.resolve(t3.value.value, [`--ring-width`]); 2236 if (n3 === null && E(t3.value.value) && (n3 = `${t3.value.value}px`), n3) return [c3(), B(`--tw-ring-shadow`, i3(n3)), B(`box-shadow`, o3)]; 2237 } 2238 }), n2(`ring`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--ring-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--ring-width`], hasDefaultValue: true }]), t2.functional(`inset-ring`, (t3) => { 2239 if (!t3.value) return t3.modifier ? void 0 : [c3(), B(`--tw-inset-ring-shadow`, a3(`1px`)), B(`box-shadow`, o3)]; 2240 if (t3.value.kind === `arbitrary`) { 2241 let n3 = t3.value.value; 2242 return (t3.value.dataType ?? y(n3, [`color`, `length`])) === `length` ? t3.modifier ? void 0 : [c3(), B(`--tw-inset-ring-shadow`, a3(n3)), B(`box-shadow`, o3)] : (n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`--tw-inset-ring-color`, n3)]); 2243 } 2244 { 2245 let n3 = q(t3, e3, [`--ring-color`, `--color`]); 2246 if (n3) return [B(`--tw-inset-ring-color`, n3)]; 2247 } 2248 { 2249 if (t3.modifier) return; 2250 let n3 = e3.resolve(t3.value.value, [`--ring-width`]); 2251 if (n3 === null && E(t3.value.value) && (n3 = `${t3.value.value}px`), n3) return [c3(), B(`--tw-inset-ring-shadow`, a3(n3)), B(`box-shadow`, o3)]; 2252 } 2253 }), n2(`inset-ring`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--ring-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--ring-width`], hasDefaultValue: true }]); 2254 let u3 = `var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`; 2255 t2.functional(`ring-offset`, (t3) => { 2256 if (t3.value) { 2257 if (t3.value.kind === `arbitrary`) { 2258 let n3 = t3.value.value; 2259 return (t3.value.dataType ?? y(n3, [`color`, `length`])) === `length` ? t3.modifier ? void 0 : [B(`--tw-ring-offset-width`, n3), B(`--tw-ring-offset-shadow`, u3)] : (n3 = K(n3, t3.modifier, e3), n3 === null ? void 0 : [B(`--tw-ring-offset-color`, n3)]); 2260 } 2261 { 2262 let n3 = e3.resolve(t3.value.value, [`--ring-offset-width`]); 2263 if (n3) return t3.modifier ? void 0 : [B(`--tw-ring-offset-width`, n3), B(`--tw-ring-offset-shadow`, u3)]; 2264 if (E(t3.value.value)) return t3.modifier ? void 0 : [B(`--tw-ring-offset-width`, `${t3.value.value}px`), B(`--tw-ring-offset-shadow`, u3)]; 2265 } 2266 { 2267 let n3 = q(t3, e3, [`--ring-offset-color`, `--color`]); 2268 if (n3) return [B(`--tw-ring-offset-color`, n3)]; 2269 } 2270 } 2271 }); 2272 } 2273 return n2(`ring-offset`, () => [{ values: [`current`, `inherit`, `transparent`], valueThemeKeys: [`--ring-offset-color`, `--color`], modifiers: Array.from({ length: 21 }, (e4, t3) => `${t3 * 5}`) }, { values: [`0`, `1`, `2`, `4`, `8`], valueThemeKeys: [`--ring-offset-width`] }]), t2.functional(`@container`, (e4) => { 2274 let t3 = null; 2275 if (e4.value === null ? t3 = `inline-size` : e4.value.kind === `arbitrary` ? t3 = e4.value.value : e4.value.kind === `named` && e4.value.value === `normal` ? t3 = `normal` : e4.value.kind === `named` && e4.value.value === `size` && (t3 = `size`), t3 !== null) return e4.modifier ? [B(`container-type`, t3), B(`container-name`, e4.modifier.value)] : [B(`container-type`, t3)]; 2276 }), n2(`@container`, () => [{ values: [`normal`], valueThemeKeys: [], hasDefaultValue: true }]), t2; 2277} 2278var Sn = [`number`, `integer`, `ratio`, `percentage`]; 2279function Cn(e3) { 2280 let t2 = Ae(e3.params); 2281 return Bn(t2) ? (n2) => { 2282 let r2 = { "--value": { usedSpacingInteger: false, usedSpacingNumber: false, themeKeys: /* @__PURE__ */ new Set(), literals: /* @__PURE__ */ new Set() }, "--modifier": { usedSpacingInteger: false, usedSpacingNumber: false, themeKeys: /* @__PURE__ */ new Set(), literals: /* @__PURE__ */ new Set() } }; 2283 I(e3.nodes, (e4) => { 2284 if (e4.kind !== `declaration` || !e4.value || !e4.value.includes(`--value(`) && !e4.value.includes(`--modifier(`)) return; 2285 let t3 = P(e4.value); 2286 I(t3, (e5) => { 2287 if (e5.kind !== `function`) return; 2288 if (e5.value === `--spacing` && !(r2[`--modifier`].usedSpacingNumber && r2[`--value`].usedSpacingNumber)) return I(e5.nodes, (e6) => { 2289 var _a3, _b; 2290 if (e6.kind !== `function` || e6.value !== `--value` && e6.value !== `--modifier`) return; 2291 let t5 = e6.value; 2292 for (let n3 of e6.nodes) if (n3.kind === `word`) { 2293 if (n3.value === `integer`) (_a3 = r2[t5]).usedSpacingInteger || (_a3.usedSpacingInteger = true); 2294 else if (n3.value === `number` && ((_b = r2[t5]).usedSpacingNumber || (_b.usedSpacingNumber = true), r2[`--modifier`].usedSpacingNumber && r2[`--value`].usedSpacingNumber)) return F.Stop; 2295 } 2296 }), F.Continue; 2297 if (e5.value !== `--value` && e5.value !== `--modifier`) return; 2298 let t4 = _(N(e5.nodes), `,`); 2299 for (let [e6, n3] of t4.entries()) n3 = n3.replace(/\\\*/g, `*`), n3 = n3.replace(/--(.*?)\s--(.*?)/g, `--$1-*--$2`), n3 = n3.replace(/\s+/g, ``), n3 = n3.replace(/(-\*){2,}/g, `-*`), n3[0] === `-` && n3[1] === `-` && !n3.includes(`(`) && !n3.includes(`-*`) && (n3 += `-*`), t4[e6] = n3; 2300 e5.nodes = P(t4.join(`,`)); 2301 for (let t5 of e5.nodes) if (t5.kind === `word` && (t5.value[0] === `"` || t5.value[0] === `'`) && t5.value[0] === t5.value[t5.value.length - 1]) { 2302 let n3 = t5.value.slice(1, -1); 2303 r2[e5.value].literals.add(n3); 2304 } else if (t5.kind === `word` && t5.value[0] === `-` && t5.value[1] === `-`) { 2305 let n3 = t5.value.replace(/-\*.*$/g, ``); 2306 r2[e5.value].themeKeys.add(n3); 2307 } else if (t5.kind === `word` && !(t5.value[0] === `[` && t5.value[t5.value.length - 1] === `]`) && !Sn.includes(t5.value)) { 2308 console.warn(`Unsupported bare value data type: "${t5.value}". 2309Only valid data types are: ${Sn.map((e6) => `"${e6}"`).join(`, `)}. 2310`); 2311 let n3 = t5.value, r3 = structuredClone(e5); 2312 I(r3.nodes, (e6) => { 2313 if (e6.kind === `word` && e6.value === n3) return F.ReplaceSkip({ kind: `word`, value: `\xB6` }); 2314 }); 2315 let i2 = `^`.repeat(N([t5]).length), a2 = N([r3]).indexOf(`\xB6`), o2 = ["```css", N([e5]), ` `.repeat(a2) + i2, "```"].join(` 2316`); 2317 console.warn(o2); 2318 } 2319 }), e4.value = N(t3); 2320 }), n2.utilities.functional(t2.slice(0, -2), (t3) => { 2321 let r3 = H(e3), i2 = t3.value, a2 = t3.modifier, o2 = false, s2 = false, c2 = false, l2 = false, u2 = /* @__PURE__ */ new Map(), d2 = false;
2322 if (I([r3], (e4, t4) => { 2323 let r4 = t4.parent; 2324 if (r4?.kind !== `rule` && r4?.kind !== `at-rule` || e4.kind !== `declaration` || !e4.value) return; 2325 let f2 = false, p2 = P(e4.value); 2326 if (I(p2, (t5) => { 2327 if (t5.kind === `function`) { 2328 if (t5.value === `--value`) { 2329 o2 = true; 2330 let a3 = wn(i2, t5, n2); 2331 return a3 ? (s2 = true, a3.ratio ? d2 = true : u2.set(e4, r4), F.ReplaceSkip(a3.nodes)) : (f2 = true, F.Stop); 2332 } else if (t5.value === `--modifier`) { 2333 c2 = true; 2334 let e5 = wn(a2, t5, n2); 2335 return e5 ? (l2 = true, F.ReplaceSkip(e5.nodes)) : (f2 = true, F.Stop); 2336 } 2337 } 2338 }), f2) return F.ReplaceSkip([]); 2339 e4.value = N(p2); 2340 }), !o2 || !s2 || c2 && !l2 && a2 !== null || d2 && l2 || a2 && !d2 && !l2) return null; 2341 if (d2) for (let [e4, t4] of u2) { 2342 let n3 = t4.nodes.indexOf(e4); 2343 n3 !== -1 && t4.nodes.splice(n3, 1); 2344 } 2345 return r3.nodes; 2346 }), n2.utilities.suggest(t2.slice(0, -2), () => { 2347 let e4 = [], t3 = []; 2348 for (let [i2, { literals: a2, usedSpacingNumber: o2, usedSpacingInteger: s2, themeKeys: c2 }] of [[e4, r2[`--value`]], [t3, r2[`--modifier`]]]) { 2349 for (let e5 of a2) i2.push(e5); 2350 if (o2) i2.push(..._n); 2351 else if (s2) for (let e5 of _n) E(e5) && i2.push(e5); 2352 for (let e5 of n2.theme.keysInNamespaces(c2)) i2.push(e5.replace(bn, (e6, t4, n3) => `${t4}.${n3}`)); 2353 } 2354 return [{ values: e4, modifiers: t3 }]; 2355 }); 2356 } : zn(t2) ? (n2) => { 2357 n2.utilities.static(t2, () => e3.nodes.map(H)); 2358 } : null; 2359} 2360function wn(e3, t2, n2) { 2361 if (e3 === null) { 2362 for (let e4 of t2.nodes) if (e4.kind === `function` && e4.value === `--default`) return { nodes: e4.nodes }; 2363 return; 2364 } 2365 for (let r2 of t2.nodes) { 2366 if (e3.kind === `named` && r2.kind === `word` && (r2.value[0] === `'` || r2.value[0] === `"`) && r2.value[r2.value.length - 1] === r2.value[0] && r2.value.slice(1, -1) === e3.value) return { nodes: P(e3.value) }; 2367 if (e3.kind === `named` && r2.kind === `word` && r2.value[0] === `-` && r2.value[1] === `-`) { 2368 let t3 = r2.value; 2369 if (t3.endsWith(`-*`)) { 2370 t3 = t3.slice(0, -2); 2371 let r3 = n2.theme.resolve(e3.value, [t3]); 2372 if (r3) return { nodes: P(r3) }; 2373 } else { 2374 let r3 = t3.split(`-*`); 2375 if (r3.length <= 1) continue; 2376 let i2 = [r3.shift()], a2 = n2.theme.resolveWith(e3.value, i2, r3); 2377 if (a2) { 2378 let [, e4 = {}] = a2; 2379 { 2380 let t4 = e4[r3.pop()]; 2381 if (t4) return { nodes: P(t4) }; 2382 } 2383 } 2384 } 2385 } else if (e3.kind === `named` && r2.kind === `word`) { 2386 if (!Sn.includes(r2.value)) continue; 2387 let t3 = r2.value === `ratio` && `fraction` in e3 ? e3.fraction : e3.value; 2388 if (!t3) continue; 2389 let n3 = y(t3, [r2.value]); 2390 if (n3 === null) continue; 2391 if (n3 === `ratio`) { 2392 let [e4, n4] = _(t3, `/`).map(Number); 2393 if (!E(e4) || !E(n4)) continue; 2394 } else if (n3 === `number` && !D(t3) || n3 === `percentage` && !E(t3.slice(0, -1))) continue; 2395 if (n3 === `ratio`) { 2396 let [e4, n4] = _(t3, `/`); 2397 return { nodes: P(`${e4.trim()} / ${n4.trim()}`), ratio: true }; 2398 } 2399 return { nodes: P(t3), ratio: false }; 2400 } else if (e3.kind === `arbitrary` && r2.kind === `word` && r2.value[0] === `[` && r2.value[r2.value.length - 1] === `]`) { 2401 let t3 = r2.value.slice(1, -1); 2402 if (t3 === `*`) return { nodes: P(e3.value) }; 2403 if (`dataType` in e3 && e3.dataType && e3.dataType !== t3) continue; 2404 if (`dataType` in e3 && e3.dataType || y(e3.value, [t3]) !== null) return { nodes: P(e3.value) }; 2405 } 2406 } 2407} 2408function Tn(e3, t2, n2, r2, i2 = ``) { 2409 let a2 = false, o2 = gn(t2, (e4) => n2 == null ? r2(e4) : e4.startsWith(`current`) ? r2(G(e4, n2)) : ((e4.startsWith(`var(`) || n2.startsWith(`var(`)) && (a2 = true), r2(yn(e4, n2)))); 2410 function s2(e4) { 2411 return i2 ? _(e4, `,`).map((e5) => i2.trim() + ` ` + e5.trim()).join(`, `) : e4; 2412 } 2413 return a2 ? [B(e3, s2(gn(t2, r2))), z(`@supports (color: lab(from red l a b))`, [B(e3, s2(o2))])] : [B(e3, s2(o2))]; 2414} 2415function En(e3, t2, n2, r2, i2 = ``) { 2416 let a2 = false, o2 = _(t2, `,`).map((e4) => gn(e4, (e5) => n2 == null ? r2(e5) : e5.startsWith(`current`) ? r2(G(e5, n2)) : ((e5.startsWith(`var(`) || n2.startsWith(`var(`)) && (a2 = true), r2(yn(e5, n2))))).map((e4) => `drop-shadow(${e4})`).join(` `); 2417 return a2 ? [B(e3, i2 + _(t2, `,`).map((e4) => `drop-shadow(${gn(e4, r2)})`).join(` `)), z(`@supports (color: lab(from red l a b))`, [B(e3, i2 + o2)])] : [B(e3, i2 + o2)]; 2418} 2419var Dn = /^-?[a-z][a-zA-Z0-9_-]*/, On = 37, kn = 47, An = 46, jn = 97, Mn = 122, Nn = 65, Pn = 90, Fn = 48, In = 57, Ln = 95, Rn = 45; 2420function zn(e3) { 2421 let t2 = Dn.exec(e3); 2422 if (t2 === null) return false;
2423 let n2 = t2[0], r2 = e3.slice(n2.length); 2424 if (r2.length === 0 && n2.endsWith(`-`)) return false; 2425 if (r2.length === 0) return true; 2426 let i2 = false; 2427 for (let e4 = 0; e4 < r2.length; e4++) { 2428 let t3 = r2.charCodeAt(e4); 2429 switch (t3) { 2430 case On: { 2431 if (e4 !== r2.length - 1) return false; 2432 let t4 = (r2[e4 - 1] || n2[n2.length - 1] || ``).charCodeAt(0); 2433 if (t4 < Fn || t4 > In) return false; 2434 break; 2435 } 2436 case kn: 2437 if (e4 === r2.length - 1 || i2) return false; 2438 i2 = true; 2439 break; 2440 case An: { 2441 let t4 = (r2[e4 - 1] || n2[n2.length - 1] || ``).charCodeAt(0); 2442 if (t4 < Fn || t4 > In) return false; 2443 let i3 = (r2[e4 + 1] || ``).charCodeAt(0); 2444 if (i3 < Fn || i3 > In) return false; 2445 break; 2446 } 2447 case Ln: 2448 case Rn: 2449 continue; 2450 default: 2451 if (t3 >= jn && t3 <= Mn || t3 >= Nn && t3 <= Pn || t3 >= Fn && t3 <= In) continue; 2452 return false; 2453 } 2454 } 2455 return true; 2456} 2457function Bn(e3) { 2458 if (!e3.endsWith(`-*`)) return false; 2459 e3 = e3.slice(0, -2); 2460 let t2 = Dn.exec(e3); 2461 if (t2 === null) return false; 2462 let n2 = t2[0]; 2463 return e3.slice(n2.length).length === 0; 2464} 2465var Vn = { "--alpha": Hn, "--spacing": Un, "--theme": Wn, theme: Gn }; 2466function Hn(e3, t2, n2, ...r2) { 2467 let [i2, a2] = _(n2, `/`).map((e4) => e4.trim()); 2468 if (!i2 || !a2) throw Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i2 || `var(--my-color)`} / ${a2 || `50%`})\``); 2469 if (r2.length > 0) throw Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i2 || `var(--my-color)`} / ${a2 || `50%`})\``); 2470 return G(i2, a2); 2471} 2472function Un(e3, t2, n2, ...r2) { 2473 if (!n2) throw Error(`The --spacing(\u2026) function requires an argument, but received none.`); 2474 if (r2.length > 0) throw Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r2.length + 1}.`); 2475 let i2 = e3.theme.resolve(null, [`--spacing`]); 2476 if (!i2) throw Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found."); 2477 let a2 = U.get(n2); 2478 if (a2) { 2479 if (a2[0] === 0) return `0`; 2480 if (a2[0] === 1) return i2; 2481 } 2482 return `calc(${i2} * ${n2})`; 2483} 2484function Wn(e3, t2, n2, ...r2) { 2485 if (!n2.startsWith(`--`)) throw Error(`The --theme(\u2026) function can only be used with CSS variables from your theme.`); 2486 let i2 = false; 2487 n2.endsWith(` inline`) && (i2 = true, n2 = n2.slice(0, -7)), t2.kind === `at-rule` && (i2 = true); 2488 let a2 = e3.resolveThemeValue(n2, i2); 2489 if (!a2) { 2490 if (r2.length > 0) return r2.join(`, `); 2491 throw Error(`Could not resolve value for theme function: \`theme(${n2})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`); 2492 } 2493 if (r2.length === 0) return a2; 2494 let o2 = r2.join(`, `); 2495 if (o2 === `initial`) return a2; 2496 if (a2 === `initial`) return o2; 2497 if (a2.startsWith(`var(`) || a2.startsWith(`theme(`) || a2.startsWith(`--theme(`)) { 2498 let e4 = P(a2); 2499 return Xn(e4, o2), N(e4); 2500 } 2501 return a2; 2502} 2503function Gn(e3, t2, n2, ...r2) { 2504 n2 = Yn(n2); 2505 let i2 = e3.resolveThemeValue(n2); 2506 if (!i2 && r2.length > 0) return r2.join(`, `); 2507 if (!i2) throw Error(`Could not resolve value for theme function: \`theme(${n2})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`); 2508 return i2; 2509} 2510var Kn = new RegExp(Object.keys(Vn).map((e3) => `${e3}\\(`).join(`|`)); 2511function qn(e3, t2) { 2512 let n2 = 0; 2513 return I(e3, (e4) => { 2514 if (e4.kind === `declaration` && e4.value && Kn.test(e4.value)) { 2515 n2 |= 8, e4.value = Jn(e4.value, e4, t2); 2516 return; 2517 } 2518 e4.kind === `at-rule` && (e4.name === `@media` || e4.name === `@custom-media` || e4.name === `@container` || e4.name === `@supports`) && Kn.test(e4.params) && (n2 |= 8, e4.params = Jn(e4.params, e4, t2)); 2519 }), n2; 2520} 2521function Jn(e3, t2, n2) { 2522 let r2 = P(e3); 2523 return I(r2, (e4) => { 2524 if (e4.kind === `function` && e4.value in Vn) { 2525 let r3 = _(N(e4.nodes).trim(), `,`).map((e5) => e5.trim()), i2 = Vn[e4.value](n2, t2, ...r3); 2526 return F.Replace(P(i2)); 2527 } 2528 }), N(r2); 2529} 2530function Yn(e3) { 2531 if (e3[0] !== `'` && e3[0] !== `"`) return e3; 2532 let t2 = ``, n2 = e3[0]; 2533 for (let r2 = 1; r2 < e3.length - 1; r2++) { 2534 let i2 = e3[r2], a2 = e3[r2 + 1]; 2535 i2 === `\\` && (a2 === n2 || a2 === `\\`) ? (t2 += a2, r2++) : t2 += i2; 2536 } 2537 return t2; 2538} 2539function Xn(e3, t2) { 2540 I(e3, (e4) => { 2541 if (e4.kind === `function` && !(e4.value !== `var` && e4.value !== `theme` && e4.value !== `--theme`)) if (e4.nodes.length === 1) e4.nodes.push({ kind: `word`, value: `, ${t2}` }); 2542 else { 2543 let n2 = e4.nodes[e4.nodes.length - 1]; 2544 n2.kind === `word` && n2.value === `initial` && (n2.value = t2); 2545 } 2546 }); 2547} 2548function Zn(e3, t2) { 2549 let n2 = e3.length, r2 = t2.length, i2 = n2 < r2 ? n2 : r2; 2550 for (let n3 = 0; n3 < i2; n3++) { 2551 let r3 = e3.charCodeAt(n3), i3 = t2.charCodeAt(n3); 2552 if (r3 >= 48 && r3 <= 57 && i3 >= 48 && i3 <= 57) { 2553 let a2 = n3, o2 = n3 + 1, s2 = n3, c2 = n3 + 1; 2554 for (r3 = e3.charCodeAt(o2); r3 >= 48 && r3 <= 57; ) r3 = e3.charCodeAt(++o2); 2555 for (i3 = t2.charCodeAt(c2); i3 >= 48 && i3 <= 57; ) i3 = t2.charCodeAt(++c2); 2556 let l2 = e3.slice(a2, o2), u2 = t2.slice(s2, c2), d2 = Number(l2) - Number(u2); 2557 if (d2) return d2; 2558 if (l2 < u2) return -1; 2559 if (l2 > u2) return 1; 2560 continue; 2561 } 2562 if (r3 !== i3) return r3 - i3; 2563 } 2564 return e3.length - t2.length; 2565} 2566function Qn(e3) { 2567 if (e3[0] !== `[` || e3[e3.length - 1] !== `]`) return null; 2568 let t2 = 1, n2 = t2, r2 = e3.length - 1; 2569 for (; $n(e3.charCodeAt(t2)); ) t2++; 2570 for (n2 = t2; t2 < r2; t2++) { 2571 let n3 = e3.charCodeAt(t2); 2572 if (n3 === 92) { 2573 t2++; 2574 continue; 2575 } 2576 if (!(n3 >= 65 && n3 <= 90) && !(n3 >= 97 && n3 <= 122) && !(n3 >= 48 && n3 <= 57) && !(n3 === 45 || n3 === 95)) break; 2577 } 2578 if (n2 === t2) return null; 2579 let i2 = e3.slice(n2, t2); 2580 for (; $n(e3.charCodeAt(t2)); ) t2++; 2581 if (t2 === r2) return { attribute: i2, operator: null, quote: null, value: null, sensitivity: null }; 2582 let a2 = null, o2 = e3.charCodeAt(t2); 2583 if (o2 === 61) a2 = `=`, t2++; 2584 else if ((o2 === 126 || o2 === 124 || o2 === 94 || o2 === 36 || o2 === 42) && e3.charCodeAt(t2 + 1) === 61) a2 = e3[t2] + `=`, t2 += 2; 2585 else return null; 2586 for (; $n(e3.charCodeAt(t2)); ) t2++; 2587 if (t2 === r2) return null; 2588 let s2 = ``, c2 = null; 2589 if (o2 = e3.charCodeAt(t2), o2 === 39 || o2 === 34) { 2590 c2 = e3[t2], t2++, n2 = t2; 2591 for (let n3 = t2; n3 < r2; n3++) { 2592 let r3 = e3.charCodeAt(n3); 2593 r3 === o2 ? t2 = n3 + 1 : r3 === 92 && n3++; 2594 } 2595 s2 = e3.slice(n2, t2 - 1); 2596 } else { 2597 for (n2 = t2; t2 < r2 && !$n(e3.charCodeAt(t2)); ) t2++; 2598 s2 = e3.slice(n2, t2); 2599 } 2600 for (; $n(e3.charCodeAt(t2)); ) t2++; 2601 if (t2 === r2) return { attribute: i2, operator: a2, quote: c2, value: s2, sensitivity: null }; 2602 let l2 = null; 2603 switch (e3.charCodeAt(t2)) { 2604 case 105: 2605 case 73: 2606 l2 = `i`, t2++; 2607 break; 2608 case 115: 2609 case 83: 2610 l2 = `s`, t2++; 2611 break; 2612 default: 2613 return null; 2614 } 2615 for (; $n(e3.charCodeAt(t2)); ) t2++; 2616 return t2 === r2 ? { attribute: i2, operator: a2, quote: c2, value: s2, sensitivity: l2 } : null; 2617} 2618function $n(e3) { 2619 switch (e3) { 2620 case 32: 2621 case 9: 2622 case 10: 2623 case 13: 2624 return true; 2625 default: 2626 return false;
2627 } 2628} 2629function er(e3) { 2630 let t2 = false; 2631 return I(e3, { exit(e4) { 2632 if (e4.kind !== `function` || e4.value !== `calc` && e4.value !== `` || e4.nodes.length !== 5 || e4.nodes[2].kind !== `word` || e4.nodes[2].value !== `*` && e4.nodes[2].value !== `+`) return; 2633 let n2 = e4.nodes[0], r2 = e4.nodes[4]; 2634 if (tr(n2, r2)) { 2635 t2 = true; 2636 let i2 = { kind: `function`, value: e4.value, nodes: [r2, e4.nodes[1], e4.nodes[2], e4.nodes[3], n2] }; 2637 return F.ReplaceSkip(i2); 2638 } 2639 } }), [t2, e3]; 2640} 2641function tr(e3, t2) { 2642 let n2 = e3.kind === `word` ? U.get(e3.value) : null, r2 = t2.kind === `word` ? U.get(t2.value) : null; 2643 if (n2 !== null && r2 === null) return true; 2644 if (n2 === null && r2 !== null) return false; 2645 if (n2 !== null && r2 !== null) { 2646 let [e4, t3] = n2, [i2, a2] = r2; 2647 if (t3 === null && a2 !== null) return true; 2648 if (t3 !== null && a2 === null) return false; 2649 if (e4 !== i2) return e4 - i2 > 0; 2650 if (t3 !== a2) return (t3 ?? ``).localeCompare(a2 ?? ``) > 0; 2651 } 2652 return N([e3]).localeCompare(N([t2])) > 0; 2653} 2654function nr(e3, t2 = null) { 2655 return Array.isArray(e3) && e3.length === 2 && typeof e3[1] == `object` ? t2 ? e3[1][t2] ?? null : e3[0] : Array.isArray(e3) && t2 === null ? e3.join(`, `) : typeof e3 == `string` && t2 === null ? e3 : null; 2656} 2657function rr(e3, { theme: t2 }, n2) { 2658 for (let t3 of n2) { 2659 let n3 = cr([t3]); 2660 n3 && e3.theme.clearNamespace(`--${n3}`, 4); 2661 } 2662 for (let [n3, r2] of ir(t2)) { 2663 if (typeof r2 != `string` && typeof r2 != `number`) continue; 2664 if (typeof r2 == `string` && (r2 = r2.replace(/<alpha-value>/g, `1`)), n3[0] === `opacity` && (typeof r2 == `number` || typeof r2 == `string`)) { 2665 let e4 = typeof r2 == `string` ? parseFloat(r2) : r2; 2666 e4 >= 0 && e4 <= 1 && (r2 = e4 * 100 + `%`); 2667 } 2668 let t3 = cr(n3); 2669 t3 && e3.theme.add(`--${t3}`, `` + r2, 7); 2670 } 2671 if (Object.hasOwn(t2, `fontFamily`)) { 2672 { 2673 let n3 = nr(t2.fontFamily.sans); 2674 n3 && e3.theme.hasDefault(`--font-sans`) && (e3.theme.add(`--default-font-family`, n3, 5), e3.theme.add(`--default-font-feature-settings`, nr(t2.fontFamily.sans, `fontFeatureSettings`) ?? `normal`, 5), e3.theme.add(`--default-font-variation-settings`, nr(t2.fontFamily.sans, `fontVariationSettings`) ?? `normal`, 5)); 2675 } 2676 { 2677 let n3 = nr(t2.fontFamily.mono); 2678 n3 && e3.theme.hasDefault(`--font-mono`) && (e3.theme.add(`--default-mono-font-family`, n3, 5), e3.theme.add(`--default-mono-font-feature-settings`, nr(t2.fontFamily.mono, `fontFeatureSettings`) ?? `normal`, 5), e3.theme.add(`--default-mono-font-variation-settings`, nr(t2.fontFamily.mono, `fontVariationSettings`) ?? `normal`, 5)); 2679 } 2680 } 2681 return t2; 2682} 2683function ir(e3) { 2684 let t2 = []; 2685 return dr(e3, [], (e4, n2) => { 2686 if (lr(e4)) return t2.push([n2, e4]), 1; 2687 if (ur(e4)) { 2688 t2.push([n2, e4[0]]); 2689 for (let r2 of Reflect.ownKeys(e4[1])) t2.push([[...n2, `-${r2}`], e4[1][r2]]); 2690 return 1; 2691 } 2692 if (Array.isArray(e4) && e4.every((e5) => typeof e5 == `string`)) return n2[0] === `fontSize` ? (t2.push([n2, e4[0]]), e4.length >= 2 && t2.push([[...n2, `-line-height`], e4[1]])) : t2.push([n2, e4.join(`, `)]), 1; 2693 }), t2; 2694} 2695var ar = { borderWidth: `border-width`, outlineWidth: `outline-width`, ringColor: `ring-color`, ringWidth: `ring-width`, transitionDuration: `transition-duration`, transitionTimingFunction: `transition-timing-function` }, or = { 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` }, sr = /^[a-zA-Z0-9-_%/.]+$/; 2696function cr(e3) { 2697 let t2 = ar[e3[0]]; 2698 if (t2 && e3[1] === `DEFAULT`) return `default-${t2}`; 2699 if (e3[0] === `container`) return null; 2700 for (let t3 of e3) if (!sr.test(t3)) return null; 2701 let n2 = or[e3[0]]; 2702 return n2 && (e3 = e3.slice(), e3[0] = n2), e3.map((e4, t3, n3) => e4 === `1` && t3 !== n3.length - 1 ? `` : e4).map((e4, t3) => (e4 = e4.replaceAll(`.`, `_`), (t3 === 0 || e4.startsWith(`-`) || e4 === `lineHeight`) && (e4 = e4.replace(/([a-z])([A-Z])/g, (e5, t4, n3) => `${t4}-${n3.toLowerCase()}`)), e4)).filter((t3, n3) => t3 !== `DEFAULT` || n3 !== e3.length - 1).join(`-`); 2703} 2704function lr(e3) { 2705 return typeof e3 == `number` || typeof e3 == `string`; 2706} 2707function ur(e3) { 2708 if (!Array.isArray(e3) || e3.length !== 2 || typeof e3[0] != `string` && typeof e3[0] != `number` || e3[1] === void 0 || e3[1] === null || typeof e3[1] != `object`) return false;
2709 for (let t2 of Reflect.ownKeys(e3[1])) if (typeof t2 != `string` || typeof e3[1][t2] != `string` && typeof e3[1][t2] != `number`) return false; 2710 return true; 2711} 2712function dr(e3, t2 = [], n2) { 2713 for (let r2 of Reflect.ownKeys(e3)) { 2714 let i2 = e3[r2]; 2715 if (i2 == null) continue; 2716 let a2 = [...t2, r2], o2 = n2(i2, a2) ?? 0; 2717 if (o2 !== 1 && (o2 === 2 || !(!Array.isArray(i2) && typeof i2 != `object`) && dr(i2, a2, n2) === 2)) return 2; 2718 } 2719} 2720function fr(e3, t2 = null, n2 = true) { 2721 let [r2, i2] = pr(P(e3), t2, n2); 2722 return r2 ? N(i2) : e3; 2723} 2724function pr(e3, t2 = null, n2 = true) { 2725 let r2 = false; 2726 return I(e3, { exit(e4, i2) { 2727 if (e4.kind === `word` && e4.value !== `0`) { 2728 let a2 = mr(e4.value, t2, n2); 2729 if (a2 === null || a2 === e4.value) return; 2730 if (a2 === `0` && i2.parent?.kind === `function`) { 2731 let n3 = mr(e4.value, t2, false); 2732 return n3 === null ? void 0 : (r2 = true, F.ReplaceSkip(M(n3))); 2733 } 2734 return r2 = true, F.ReplaceSkip(M(a2)); 2735 } else if (e4.kind === `function` && (e4.value === `calc` || e4.value === ``)) { 2736 if (e4.nodes.length !== 5 || e4.nodes[2].kind !== `word`) return; 2737 let t3 = e4.nodes[0], n3 = e4.nodes[2].value, a2 = e4.nodes[4], o2 = t3.kind === `word` ? U.get(t3.value) : null, s2 = a2.kind === `word` ? U.get(a2.value) : null; 2738 if (n3 === `*` && (o2?.[0] === 0 && o2?.[1] === null || s2?.[0] === 0 && s2?.[1] === null)) return r2 = true, F.ReplaceSkip(M(`0`)); 2739 if (n3 === `*` && o2?.[0] === 0 && o2?.[1] !== null && s2?.[1] === null) return r2 = true, i2.parent?.kind === `function` ? F.ReplaceSkip(M(`0${o2[1]}`)) : F.ReplaceSkip(M(`0`)); 2740 if (n3 === `*` && s2?.[0] === 0 && s2?.[1] !== null && o2?.[1] === null) return r2 = true, i2.parent?.kind === `function` ? F.ReplaceSkip(M(`0${s2[1]}`)) : F.ReplaceSkip(M(`0`)); 2741 if (n3 === `*`) { 2742 if (o2?.[0] === 1 && o2?.[1] === null) return r2 = true, F.ReplaceSkip(a2); 2743 if (s2?.[0] === 1 && s2?.[1] === null) return r2 = true, F.ReplaceSkip(t3); 2744 } 2745 if (n3 === `*` || n3 === `+`) { 2746 let i3 = o2 ?? s2, c2 = o2 === null ? t3 : s2 === null ? a2 : null; 2747 if (i3 !== null && c2 !== null && c2.kind === `function` && (c2.value === `calc` || c2.value === ``) && c2.nodes.length === 5 && c2.nodes[2].kind === `word` && c2.nodes[2].value === n3) { 2748 let t4 = c2.nodes[0], a3 = c2.nodes[4], o3 = t4.kind === `word` ? U.get(t4.value) : null, s3 = a3.kind === `word` ? U.get(a3.value) : null, l2 = o3 ?? s3, u2 = o3 === null ? t4 : s3 === null ? a3 : null; 2749 if (l2 !== null && u2 !== null) { 2750 if (n3 === `*` && !(i3[1] === null && l2[1] === null || i3[1] === null && l2[1] !== null || i3[1] !== null && l2[1] === null) || n3 === `+` && i3[1] !== l2[1]) return; 2751 let t5; 2752 switch (n3) { 2753 case `*`: 2754 t5 = `${i3[0] * l2[0]}${i3[1] ?? l2[1] ?? ``}`; 2755 break; 2756 case `+`: 2757 t5 = `${i3[0] + l2[0]}${i3[1] ?? l2[1] ?? ``}`; 2758 break; 2759 default: 2760 return; 2761 } 2762 if (r2 = true, n3 === `*` && t5 === `1`) return F.ReplaceSkip(u2); 2763 let a4 = { kind: `function`, value: e4.value, nodes: [M(t5), e4.nodes[1], e4.nodes[2], e4.nodes[3], u2] }; 2764 return F.ReplaceSkip(a4); 2765 } 2766 } 2767 } 2768 if (o2 === null || s2 === null) return; 2769 switch (n3) { 2770 case `*`: 2771 if (o2[1] === s2[1] || o2[1] === null && s2[1] !== null || o2[1] !== null && s2[1] === null) return r2 = true, F.ReplaceSkip(M(`${o2[0] * s2[0]}${o2[1] ?? s2[1] ?? ``}`)); 2772 break; 2773 case `+`: 2774 if (o2[1] === s2[1]) return r2 = true, F.ReplaceSkip(M(`${o2[0] + s2[0]}${o2[1] ?? ``}`)); 2775 break; 2776 case `-`: 2777 if (o2[1] === s2[1]) return r2 = true, F.ReplaceSkip(M(`${o2[0] - s2[0]}${o2[1] ?? ``}`)); 2778 break; 2779 case `/`: 2780 if (s2[0] !== 0 && (o2[1] === null && s2[1] === null || o2[1] !== null && s2[1] === null)) { 2781 let e5 = o2[0] / s2[0]; 2782 if (Math.round(e5 * 100) / 100 !== e5) break; 2783 return r2 = true, F.ReplaceSkip(M(`${e5}${o2[1] ?? ``}`)); 2784 } 2785 break; 2786 } 2787 } 2788 } }), [r2, e3]; 2789} 2790function mr(e3, t2 = null, n2 = true) { 2791 let r2 = U.get(e3); 2792 if (r2 === null) return null; 2793 let [i2, a2] = r2; 2794 if (a2 === null) return `${i2}`; 2795 if (i2 === 0 && fe(e3)) return n2 ? `0` : `0${a2}`; 2796 if (!n2) return `${e3}`; 2797 switch (a2.toLowerCase()) { 2798 case `in`: 2799 return `${i2 * 96}px`; 2800 case `cm`: 2801 return `${i2 * 96 / 2.54}px`; 2802 case `mm`: 2803 return `${i2 * 96 / 2.54 / 10}px`; 2804 case `q`: 2805 return `${i2 * 96 / 2.54 / 10 / 4}px`; 2806 case `pc`: 2807 return `${i2 * 96 / 6}px`; 2808 case `pt`: 2809 return `${i2 * 96 / 72}px`; 2810 case `rem`: 2811 return t2 === null ? null : `${i2 * t2}px`; 2812 case `grad`: 2813 return `${i2 * 0.9}deg`; 2814 case `rad`: 2815 return `${i2 * 180 / Math.PI}deg`; 2816 case `turn`: 2817 return `${i2 * 360}deg`; 2818 case `ms`: 2819 return `${i2 / 1e3}s`; 2820 case `khz`: 2821 return `${i2 * 1e3}hz`; 2822 default: 2823 return `${i2}${a2}`; 2824 } 2825} 2826function hr(e3, t2 = `top`, n2 = `right`, r2 = `bottom`, i2 = `left`) { 2827 return gr(`${e3}-${t2}`, `${e3}-${n2}`, `${e3}-${r2}`, `${e3}-${i2}`); 2828} 2829function gr(e3 = `top`, t2 = `right`, n2 = `bottom`, r2 = `left`) { 2830 return { 1: [[e3, 0], [t2, 0], [n2, 0], [r2, 0]], 2: [[e3, 0], [t2, 1], [n2, 0], [r2, 1]], 3: [[e3, 0], [t2, 1], [n2, 2], [r2, 1]], 4: [[e3, 0], [t2, 1], [n2, 2], [r2, 3]] }; 2831} 2832function J(e3, t2) { 2833 return { 1: [[e3, 0], [t2, 0]], 2: [[e3, 0], [t2, 1]] }; 2834} 2835var _r = { inset: gr(), margin: hr(`margin`), padding: hr(`padding`), "scroll-margin": hr(`scroll-margin`), "scroll-padding": hr(`scroll-padding`), "border-width": hr(`border`, `top-width`, `right-width`, `bottom-width`, `left-width`), "border-style": hr(`border`, `top-style`, `right-style`, `bottom-style`, `left-style`), "border-color": hr(`border`, `top-color`, `right-color`, `bottom-color`, `left-color`), gap: J(`row-gap`, `column-gap`), overflow: J(`overflow-x`, `overflow-y`), "overscroll-behavior": J(`overscroll-behavior-x`, `overscroll-behavior-y`) }, vr = { "inset-block": J(`top`, `bottom`), "inset-inline": J(`left`, `right`), "margin-block": J(`margin-top`, `margin-bottom`), "margin-inline": J(`margin-left`, `margin-right`), "padding-block": J(`padding-top`, `padding-bottom`), "padding-inline": J(`padding-left`, `padding-right`), "scroll-margin-block": J(`scroll-margin-top`, `scroll-margin-bottom`), "scroll-margin-inline": J(`scroll-margin-left`, `scroll-margin-right`), "scroll-padding-block": J(`scroll-padding-top`, `scroll-padding-bottom`), "scroll-padding-inline": J(`scroll-padding-left`, `scroll-padding-right`) }, yr = { "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`] }; 2836function br(e3, t2) { 2837 if (t2 & 2) { 2838 if (e3.property in vr) { 2839 let t3 = _(e3.value, ` `); 2840 return vr[e3.property][t3.length]?.map(([n2, r2]) => B(n2, t3[r2], e3.important)); 2841 } 2842 if (e3.property in yr) return yr[e3.property]?.map((t3) => B(t3, e3.value, e3.important)); 2843 } 2844 if (e3.property in _r) { 2845 let t3 = _(e3.value, ` `); 2846 return _r[e3.property][t3.length]?.map(([n2, r2]) => B(n2, t3[r2], e3.important)); 2847 } 2848 return null; 2849} 2850function xr(e3) { 2851 return { kind: `combinator`, value: e3 }; 2852} 2853function Sr(e3) { 2854 return { kind: `complex`, nodes: e3 }; 2855} 2856function Cr(e3) { 2857 return { kind: `compound`, nodes: e3 }; 2858} 2859function wr(e3, t2) { 2860 return { kind: `function`, value: e3, nodes: t2 }; 2861} 2862function Tr(e3) { 2863 return { kind: `list`, nodes: e3 }; 2864} 2865function Er(e3) { 2866 return { kind: `selector`, value: e3 }; 2867} 2868function Dr(e3) { 2869 return { kind: `value`, value: e3 }; 2870} 2871function Y(e3, t2 = false) { 2872 let n2 = ``; 2873 for (let r2 of e3) switch (r2.kind) { 2874 case `selector`: 2875 case `value`: 2876 n2 += r2.value; 2877 break; 2878 case `combinator`: 2879 t2 || r2.value === ` ` ? n2 += r2.value : n2 += ` ${r2.value} `; 2880 break; 2881 case `function`: 2882 n2 += `${r2.value}(${Y(r2.nodes, t2)})`; 2883 break; 2884 case `complex`: 2885 case `compound`: 2886 n2 += Y(r2.nodes, t2); 2887 break; 2888 case `list`: 2889 n2 += r2.nodes.map((e4) => Y([e4], t2)).join(t2 ? `,` : `, `); 2890 break; 2891 } 2892 return n2; 2893} 2894var Or = 92, kr = 93, Ar = 41, jr = 58, Mr = 44, Nr = 34, Pr = 46, Fr = 62, Ir = 10, Lr = 35, Rr = 91, zr = 40, Br = 43, Vr = 39, Hr = 32, Ur = 9, Wr = 126, Gr = 38, Kr = 42; 2895function qr(e3) { 2896 e3 = e3.replaceAll(`\r 2897`, ` 2898`); 2899 let t2 = [], n2 = t2, r2 = false, i2 = [], a2 = null, o2 = ``, s2; 2900 function c2(e4 = n2) { 2901 return e4.length === 1 ? e4[0] : r2 ? Sr(e4) : Cr(e4); 2902 } 2903 function l2(e4) { 2904 let t3 = n2[n2.length - 1];
2905 t3?.kind === `compound` ? t3.nodes.push(e4) : t3 && t3.kind !== `list` && t3.kind !== `combinator` ? n2[n2.length - 1] = Cr([t3, e4]) : n2.push(e4); 2906 } 2907 for (let u2 = 0; u2 < e3.length; u2++) { 2908 let d2 = e3.charCodeAt(u2); 2909 switch (d2) { 2910 case Mr: 2911 for (o2.length > 0 && (l2(Er(o2)), o2 = ``); u2 + 1 < e3.length && (s2 = e3.charCodeAt(u2 + 1), !(s2 !== Ir && s2 !== Hr && s2 !== Ur)); u2++) ; 2912 if (a2) a2.nodes.push(c2()), n2 = [], r2 = false; 2913 else { 2914 let e4 = Tr([c2(n2.splice(0))]); 2915 n2.push(e4), a2 = e4, n2 = [], r2 = false; 2916 } 2917 break; 2918 case Fr: 2919 case Ir: 2920 case Hr: 2921 case Br: 2922 case Ur: 2923 case Wr: { 2924 o2.length > 0 && (l2(Er(o2)), o2 = ``); 2925 let t3 = u2, i3 = u2 + 1; 2926 for (; i3 < e3.length && (s2 = e3.charCodeAt(i3), !(s2 !== Fr && s2 !== Ir && s2 !== Hr && s2 !== Br && s2 !== Ur && s2 !== Wr)); i3++) ; 2927 u2 = i3 - 1; 2928 let a3 = e3.slice(t3, i3).trim(); 2929 if (a3 === `` && (n2.length === 0 || i3 >= e3.length || e3.charCodeAt(i3) === Mr)) break; 2930 n2.push(xr(a3 === `` ? ` ` : a3)), r2 = true; 2931 break; 2932 } 2933 case zr: { 2934 let t3 = wr(o2, []); 2935 if (o2 = ``, t3.value !== `:not` && t3.value !== `:where` && t3.value !== `:has` && t3.value !== `:is`) { 2936 let n3 = u2 + 1, r3 = 0; 2937 for (let t4 = u2 + 1; t4 < e3.length; t4++) { 2938 if (s2 = e3.charCodeAt(t4), s2 === zr) { 2939 r3++; 2940 continue; 2941 } 2942 if (s2 === Ar) { 2943 if (r3 === 0) { 2944 u2 = t4; 2945 break; 2946 } 2947 r3--; 2948 } 2949 } 2950 let i3 = u2; 2951 t3.nodes.push(Dr(e3.slice(n3, i3))), o2 = ``, u2 = i3, l2(t3); 2952 break; 2953 } 2954 l2(t3), i2.push({ target: n2, currentList: a2, containsCombinator: r2 }), n2 = t3.nodes, r2 = false, a2 = null; 2955 break; 2956 } 2957 case Ar: { 2958 o2.length > 0 && (l2(Er(o2)), o2 = ``), a2 ? a2.nodes.push(c2()) : r2 && n2.splice(0, n2.length, Sr(n2.splice(0))); 2959 let e4 = i2.pop(); 2960 n2 = e4?.target ?? t2, a2 = e4?.currentList ?? null, r2 = e4?.containsCombinator ?? false; 2961 break; 2962 } 2963 case Pr: 2964 case jr: 2965 case Lr: 2966 if (d2 === jr && o2 === `:`) { 2967 o2 += e3[u2]; 2968 break; 2969 } 2970 o2.length > 0 && l2(Er(o2)), o2 = e3[u2]; 2971 break; 2972 case Rr: { 2973 o2.length > 0 && l2(Er(o2)), o2 = ``; 2974 let t3 = u2, n3 = 0; 2975 for (let t4 = u2 + 1; t4 < e3.length; t4++) { 2976 if (s2 = e3.charCodeAt(t4), s2 === Rr) { 2977 n3++; 2978 continue; 2979 } 2980 if (s2 === kr) { 2981 if (n3 === 0) { 2982 u2 = t4; 2983 break; 2984 } 2985 n3--; 2986 } 2987 } 2988 o2 += e3.slice(t3, u2 + 1); 2989 break; 2990 } 2991 case Vr: 2992 case Nr: { 2993 let t3 = u2; 2994 for (let t4 = u2 + 1; t4 < e3.length; t4++) if (s2 = e3.charCodeAt(t4), s2 === Or) t4 += 1; 2995 else if (s2 === d2) { 2996 u2 = t4; 2997 break; 2998 } 2999 o2 += e3.slice(t3, u2 + 1); 3000 break; 3001 } 3002 case Gr: 3003 case Kr: 3004 o2.length > 0 && (l2(Er(o2)), o2 = ``), l2(Er(e3[u2])); 3005 break; 3006 case Or: 3007 o2 += e3[u2] + e3[u2 + 1], u2 += 1; 3008 break; 3009 default: 3010 o2 += e3[u2]; 3011 } 3012 } 3013 return o2.length > 0 && l2(Er(o2)), a2 ? a2.nodes.push(c2()) : r2 && n2.splice(0, n2.length, Sr(n2.splice(0))), t2; 3014} 3015function X(e3, t2) { 3016 for (let t3 in e3) delete e3[t3]; 3017 return Object.assign(e3, t2); 3018} 3019function Jr(e3) { 3020 let t2 = []; 3021 for (let n2 of _(e3, `.`)) { 3022 if (!n2.includes(`[`)) { 3023 t2.push(n2); 3024 continue; 3025 } 3026 let e4 = 0; 3027 for (; ; ) { 3028 let r2 = n2.indexOf(`[`, e4), i2 = n2.indexOf(`]`, r2); 3029 if (r2 === -1 || i2 === -1) break; 3030 r2 > e4 && t2.push(n2.slice(e4, r2)), t2.push(n2.slice(r2 + 1, i2)), e4 = i2 + 1; 3031 } 3032 e4 <= n2.length - 1 && t2.push(n2.slice(e4)); 3033 } 3034 return t2; 3035} 3036function Yr(e3, t2) { 3037 var _a3, _b, _c, _d, _e2, _f, _g, _h, _i2, _j, _k, _l, _m, _n2; 3038 let n2 = e3; 3039 return (_a3 = n2.storage)[Xr] ?? (_a3[Xr] = Zr()), (_b = n2.storage)[ti] ?? (_b[ti] = ni(n2)), (_c = n2.storage)[oi] ?? (_c[oi] = si()), (_d = n2.storage)[li] ?? (_d[li] = ui()), (_e2 = n2.storage)[fi] ?? (_e2[fi] = pi()), (_f = n2.storage)[bi] ?? (_f[bi] = xi(n2)), (_g = n2.storage)[Ei] ?? (_g[Ei] = Ai(n2, t2)), (_h = n2.storage)[Ji] ?? (_h[Ji] = Yi(n2)), (_i2 = n2.storage)[Qi] ?? (_i2[Qi] = $i()), (_j = n2.storage)[ea] ?? (_j[ea] = ta(n2)), (_k = n2.storage)[na] ?? (_k[na] = ra(n2)), (_l = n2.storage)[ia] ?? (_l[i
3039a] = aa(n2)), (_m = n2.storage)[oa] ?? (_m[oa] = sa(n2)), (_n2 = n2.storage)[Qr] ?? (_n2[Qr] = $r(n2)), n2; 3040} 3041var Xr = /* @__PURE__ */ Symbol(); 3042function Zr() { 3043 return new j((e3) => new j((t2) => ({ rem: e3, features: t2 }))); 3044} 3045var Qr = /* @__PURE__ */ Symbol(); 3046function $r(e3) { 3047 return new j((t2) => { 3048 let n2 = e3.storage[Ji].get(t2); 3049 return function(t3, r2) { 3050 let i2 = typeof t3 == `string` ? t3 : e3.printCandidate(t3), a2 = n2.get(i2); 3051 if (typeof a2 != `string`) return false; 3052 let o2 = typeof r2 == `string` ? r2 : e3.printCandidate(r2), s2 = n2.get(o2); 3053 return typeof s2 == `string` ? a2 === s2 : false; 3054 }; 3055 }); 3056} 3057function ei(e3, t2) { 3058 let n2 = 0; 3059 return t2?.collapse && (n2 |= 1), t2?.logicalToPhysical && (n2 |= 2), Yr(e3, t2).storage[Xr].get(t2?.rem ?? null).get(n2); 3060} 3061var ti = /* @__PURE__ */ Symbol(); 3062function ni(e3) { 3063 return new j((t2) => new j((n2) => ({ features: n2, designSystem: e3, signatureOptions: t2 }))); 3064} 3065function ri(e3, t2, n2) { 3066 let r2 = 0; 3067 return n2?.collapse && (r2 |= 1), Yr(e3).storage[ti].get(t2).get(r2); 3068} 3069function ii(e3, t2, n2) { 3070 let r2 = ri(e3, ei(e3, n2), n2), i2 = Yr(e3), a2 = /* @__PURE__ */ new Set(), o2 = i2.storage[oi].get(r2); 3071 for (let e4 of t2) a2.add(o2.get(e4)); 3072 return a2.size <= 1 || !(r2.features & 1) ? Array.from(a2) : ai(r2, Array.from(a2)); 3073} 3074function ai(e3, t2) { 3075 let n2 = e3.designSystem, r2 = new j((e4) => new j((e5) => /* @__PURE__ */ new Set())), i2 = e3.designSystem.theme.prefix ? `${e3.designSystem.theme.prefix}:` : ``; 3076 for (let e4 of t2) { 3077 let t3 = _(e4, `:`), n3 = t3.pop(), a3 = n3.endsWith(`!`); 3078 a3 && (n3 = n3.slice(0, -1)); 3079 let o3 = t3.length > 0 ? `${t3.join(`:`)}:` : ``, s2 = a3 ? `!` : ``; 3080 r2.get(o3).get(s2).add(`${i2}${n3}`); 3081 } 3082 let a2 = /* @__PURE__ */ new Set(); 3083 for (let [e4, t3] of r2.entries()) for (let [n3, r3] of t3.entries()) for (let t4 of o2(Array.from(r3))) i2 && t4.startsWith(i2) && (t4 = t4.slice(i2.length)), a2.add(`${e4}${t4}${n3}`); 3084 return Array.from(a2); 3085 function o2(t3) { 3086 let r3 = e3.signatureOptions, i3 = n2.storage[ea].get(r3), a3 = n2.storage[Qi].get(r3), o3 = t3.map((e4) => i3.get(e4)); 3087 if (o3.some((e4) => e4.has(`line-height`))) { 3088 let e4 = n2.theme.keysInNamespaces([`--text`]); 3089 if (e4.length > 0) { 3090 let t4 = /* @__PURE__ */ new Set(), r4 = /* @__PURE__ */ new Set(); 3091 for (let a5 of o3) if (a5.has(`line-height`)) for (let o4 of a5.get(`line-height`)) { 3092 if (r4.has(o4)) continue; 3093 r4.add(o4); 3094 let a6 = n2.storage[Ei]?.get(o4) ?? null; 3095 if (a6 !== null) if (D(a6)) { 3096 t4.add(a6); 3097 for (let t5 of e4) i3.get(`text-${t5}/${a6}`); 3098 } else { 3099 t4.add(o4); 3100 for (let t5 of e4) i3.get(`text-${t5}/[${o4}]`); 3101 } 3102 } 3103 let a4 = /* @__PURE__ */ new Set(); 3104 for (let e5 of o3) if (e5.has(`font-size`)) { 3105 for (let n3 of e5.get(`font-size`)) if (!a4.has(n3)) { 3106 a4.add(n3); 3107 for (let e6 of t4) D(e6) ? i3.get(`text-[${n3}]/${e6}`) : i3.get(`text-[${n3}]/[${e6}]`); 3108 } 3109 } 3110 } 3111 } 3112 let s2 = new j((e4) => { 3113 let t4 = new j((e5) => new j((e6) => /* @__PURE__ */ new Set())), r4 = new Set(i3.get(e4).keys()); 3114 if (r4.size === 0) return t4; 3115 for (let a4 of Z(n2, e4)) if (!(a4.kind !== `functional` || a4.value === null)) { 3116 for (let e5 of n2.utilities.keys(`functional`)) { 3117 if (e5 === a4.root) continue; 3118 let o4 = Ti(n2, { ...Gt(a4), root: e5 }), s3 = i3.get(o4); 3119 for (let [e6, n3] of s3) if (r4.has(e6)) for (let r5 of n3) t4.get(e6).get(r5).add(o4); 3120 } 3121 return t4; 3122 } 3123 return t4; 3124 }), c2 = o3.map((e4, n3) => { 3125 let r4 = null; 3126 for (let i4 of e4.keys()) { 3127 let o4 = /* @__PURE__ */ new Set(); 3128 for (let e5 of a3.get(i4).values()) for (let t4 of e5) o4.add(t4); 3129 for (let r5 of e4.get(i4)) for (let e5 of s2.get(t3[n3]).get(i4).get(r5)) o4.add(e5); 3130 if (r4 = r4 === null ? o4 : ua(r4, o4), r4.size === 0) return r4; 3131 }
3132 return r4 ?? /* @__PURE__ */ new Set(); 3133 }), l2 = new j((e4) => /* @__PURE__ */ new Set([e4])); 3134 for (let e4 = 0; e4 < c2.length; e4++) { 3135 let t4 = c2[e4]; 3136 for (let n3 = e4 + 1; n3 < c2.length; n3++) { 3137 let r4 = c2[n3]; 3138 for (let i4 of t4) if (r4.has(i4)) { 3139 l2.get(e4).add(n3), l2.get(n3).add(e4); 3140 break; 3141 } 3142 } 3143 } 3144 if (l2.size === 0) return t3; 3145 let u2 = new j((e4) => e4.split(`,`).map(Number)); 3146 for (let e4 of l2.values()) { 3147 let t4 = Array.from(e4).sort((e5, t5) => e5 - t5); 3148 u2.get(t4.join(`,`)); 3149 } 3150 let d2 = new Set(t3), f2 = /* @__PURE__ */ new Set(); 3151 for (let e4 of u2.values()) for (let i4 of la(e4)) { 3152 if (i4.some((e6) => f2.has(t3[e6]))) continue; 3153 let e5 = i4.flatMap((e6) => c2[e6]).reduce(ua), a4 = n2.storage[Ji].get(r3).get(i4.map((e6) => t3[e6]).sort((e6, t4) => e6.localeCompare(t4)).join(` `)); 3154 for (let o4 of e5) if (n2.storage[Ji].get(r3).get(o4) === a4) { 3155 d2.add(o4); 3156 for (let e6 of i4) t3[e6] !== o4 && f2.add(t3[e6]); 3157 break; 3158 } 3159 } 3160 for (let e4 of f2) d2.delete(e4); 3161 return Array.from(d2); 3162 } 3163} 3164var oi = /* @__PURE__ */ Symbol(); 3165function si() { 3166 return new j((e3) => { 3167 let t2 = e3.designSystem, n2 = t2.theme.prefix ? `${t2.theme.prefix}:` : ``, r2 = t2.storage[li].get(e3), i2 = t2.storage[fi].get(e3); 3168 return new j((e4, a2) => { 3169 for (let o2 of t2.parseCandidate(e4)) { 3170 let s2 = o2.variants.slice().reverse().flatMap((e5) => r2.get(e5)), c2 = o2.important; 3171 if (c2 || s2.length > 0) { 3172 let e5 = a2.get(t2.printCandidate({ ...o2, variants: [], important: false })); 3173 return t2.theme.prefix !== null && s2.length > 0 && (e5 = e5.slice(n2.length)), s2.length > 0 && (e5 = `${s2.map((e6) => t2.printVariant(e6)).join(`:`)}:${e5}`), c2 && (e5 += `!`), t2.theme.prefix !== null && s2.length > 0 && (e5 = `${n2}${e5}`), e5; 3174 } 3175 let l2 = i2.get(e4); 3176 if (l2 !== e4) return l2; 3177 } 3178 return e4; 3179 }); 3180 }); 3181} 3182var ci = [_i, Vi, Gi, Ri], li = /* @__PURE__ */ Symbol(); 3183function ui() { 3184 return new j((e3) => new j((t2) => { 3185 let n2 = [t2]; 3186 for (let t3 of ci) for (let r2 of n2.splice(0)) { 3187 let i2 = t3(Kt(r2), e3); 3188 if (Array.isArray(i2)) { 3189 n2.push(...i2); 3190 continue; 3191 } else n2.push(i2); 3192 } 3193 return n2; 3194 })); 3195} 3196var di = [hi, gi, vi, Ki, ji, Ni, Li, zi, Bi, qi], fi = /* @__PURE__ */ Symbol(); 3197function pi() { 3198 return new j((e3) => { 3199 let t2 = e3.designSystem; 3200 return new j((n2) => { 3201 for (let r2 of t2.parseCandidate(n2)) { 3202 let i2 = Gt(r2); 3203 for (let t3 of di) i2 = t3(i2, e3); 3204 let a2 = t2.printCandidate(i2); 3205 if (n2 !== a2) return a2; 3206 } 3207 return n2; 3208 }); 3209 }); 3210} 3211var mi = [`t`, `tr`, `r`, `br`, `b`, `bl`, `l`, `tl`]; 3212function hi(e3) { 3213 if (e3.kind === `static` && e3.root.startsWith(`bg-gradient-to-`)) { 3214 let t2 = e3.root.slice(15); 3215 return mi.includes(t2) && (e3.root = `bg-linear-to-${t2}`), e3; 3216 } 3217 return e3; 3218} 3219function gi(e3, t2) { 3220 let n2 = t2.designSystem.storage[bi]; 3221 if (e3.kind === `arbitrary`) { 3222 let [t3, r2] = n2(e3.value, +(e3.modifier === null)); 3223 t3 !== e3.value && (e3.value = t3, r2 !== null && (e3.modifier = r2)); 3224 } else if (e3.kind === `functional` && e3.value?.kind === `arbitrary`) { 3225 let [t3, r2] = n2(e3.value.value, +(e3.modifier === null)); 3226 t3 !== e3.value.value && (e3.value.value = t3, r2 !== null && (e3.modifier = r2)); 3227 } 3228 return e3; 3229} 3230function _i(e3, t2) { 3231 let n2 = t2.designSystem.storage[bi], r2 = wi(e3); 3232 for (let [e4] of r2) if (e4.kind === `arbitrary`) { 3233 let [t3] = n2(e4.selector, 2); 3234 t3 !== e4.selector && (e4.selector = t3); 3235 } else if (e4.kind === `functional` && e4.value?.kind === `arbitrary`) { 3236 let [t3] = n2(e4.value.value, 2); 3237 t3 !== e4.value.value && (e4.value.value = t3); 3238 } 3239 return e3; 3240} 3241function vi(e3, t2) { 3242 return e3.kind === `arbitrary` ? e3.value = yi(e3.value, t2.designSystem) : e3.kind === `functional` && e3.value?.kind === `arbitrary` && (e3.value.value = yi(e3.value.value, t2.designSystem)), e3; 3243} 3244function yi(e3, t2) { 3245 let n2 = t2.theme.prefix ? `--${t2.theme.prefix}-spacing` : `--spacing`, r2 = P(e3); 3246 return I(r2, (e4) => { 3247 if (!(e4.kind !== `function` || e4.value !== `calc`) && e4.nodes.length === 5 && !(e4.nodes[2].kind !== `word` || e4.nodes[2].value !== `*`) && !(e4.nodes[0].kind !== `function` || e4.nodes[0].value !== `var` || e4.nodes[0].nodes.length !== 1 || e4.nodes[0].nodes[0].kind !== `word` || e4.nodes[0].nodes[0].value !== n2)) return F.Replace(P(`--spacing(${N([e4.nodes[4]])})`)); 3248 }), N(r2); 3249} 3250var bi = /* @__PURE__ */ Symbol(); 3251function xi(e3) { 3252 return t2(e3); 3253 function t2(e4) { 3254 function t3(e5, t4 = 0) { 3255 let n3 = P(e5); 3256 if (t4 & 2) return [Si(n3, i2), null]; 3257 let a2 = 0, o2 = 0; 3258 if (I(n3, (e6) => { 3259 e6.kind === `function` && e6.value === `theme` && (a2 += 1, I(e6.nodes, (e7) => e7.kind === `separator` && e7.value.includes(`,`) ? F.Stop : e7.kind === `word` && e7.value === `/` ? (o2 += 1, F.Stop) : F.Skip)); 3260 }), a2 === 0) return [e5, null]; 3261 if (o2 === 0) return [Si(n3, r2), null]; 3262 if (o2 > 1) return [Si(n3, i2), null]; 3263 let s2 = null; 3264 return [Si(n3, (e6, a3) => { 3265 let o3 = _(e6, `/`).map((e7) => e7.trim()); 3266 if (o3.length > 2) return null; 3267 if (n3.length === 1 && o3.length === 2 && t4 & 1) { 3268 let [t5, n4] = o3; 3269 if (/^\d+%$/.test(n4)) s2 = { kind: `named`, value: n4.slice(0, -1) }; 3270 else if (/^0?\.\d+$/.test(n4)) {
3271 let e7 = Number(n4) * 100; 3272 s2 = { kind: Number.isInteger(e7) ? `named` : `arbitrary`, value: e7.toString() }; 3273 } else s2 = { kind: `arbitrary`, value: n4 }; 3274 e6 = t5; 3275 } 3276 return r2(e6, a3) || i2(e6, a3); 3277 }), s2]; 3278 } 3279 function n2(t4, n3 = true) { 3280 let r3 = `--${cr(Jr(t4))}`; 3281 return e4.theme.get([r3]) ? n3 && e4.theme.prefix ? `--${e4.theme.prefix}-${r3.slice(2)}` : r3 : null; 3282 } 3283 function r2(t4, r3) { 3284 let i3 = n2(t4); 3285 if (i3) return r3 ? `var(${i3}, ${r3})` : `var(${i3})`; 3286 let a2 = Jr(t4); 3287 if (a2[0] === `spacing` && e4.theme.get([`--spacing`])) { 3288 let e5 = a2[1]; 3289 return D(e5) ? `--spacing(${e5})` : null; 3290 } 3291 return null; 3292 } 3293 function i2(e5, t4) { 3294 let r3 = _(e5, `/`).map((e6) => e6.trim()); 3295 e5 = r3.shift(); 3296 let i3 = n2(e5, false); 3297 if (!i3) return null; 3298 let a2 = r3.length > 0 ? `/${r3.join(`/`)}` : ``; 3299 return t4 ? `--theme(${i3}${a2}, ${t4})` : `--theme(${i3}${a2})`; 3300 } 3301 return t3; 3302 } 3303} 3304function Si(e3, t2) { 3305 return I(e3, (e4, n2) => { 3306 if (e4.kind === `function` && e4.value === `theme`) { 3307 if (e4.nodes.length < 1) return; 3308 e4.nodes[0].kind === `separator` && e4.nodes[0].value.trim() === `` && e4.nodes.shift(); 3309 let r2 = e4.nodes[0]; 3310 if (r2.kind !== `word`) return; 3311 let i2 = r2.value, a2 = 1; 3312 for (let t3 = a2; t3 < e4.nodes.length && !e4.nodes[t3].value.includes(`,`); t3++) i2 += N([e4.nodes[t3]]), a2 = t3 + 1; 3313 i2 = Ci(i2); 3314 let o2 = e4.nodes.slice(a2 + 1), s2 = o2.length > 0 ? t2(i2, N(o2)) : t2(i2); 3315 if (s2 === null) return; 3316 { 3317 let e5 = n2.index - 1; 3318 for (; e5 !== -1; ) { 3319 let t3 = n2.siblings[e5]; 3320 if (t3.kind === `separator` && t3.value.trim() === ``) { 3321 --e5; 3322 continue; 3323 } 3324 /^[-+*/]$/.test(t3.value.trim()) && (s2 = `(${s2})`); 3325 break; 3326 } 3327 } 3328 return F.Replace(P(s2)); 3329 } 3330 }), N(e3); 3331} 3332function Ci(e3) { 3333 if (e3[0] !== `'` && e3[0] !== `"`) return e3; 3334 let t2 = ``, n2 = e3[0]; 3335 for (let r2 = 1; r2 < e3.length - 1; r2++) { 3336 let i2 = e3[r2], a2 = e3[r2 + 1]; 3337 i2 === `\\` && (a2 === n2 || a2 === `\\`) ? (t2 += a2, r2++) : t2 += i2; 3338 } 3339 return t2; 3340} 3341function* wi(e3) { 3342 function* t2(e4, n2 = null) { 3343 yield [e4, n2], e4.kind === `compound` && (yield* t2(e4.variant, e4)); 3344 } 3345 yield* t2(e3, null); 3346} 3347function Z(e3, t2) { 3348 return e3.parseCandidate(e3.theme.prefix && !t2.startsWith(`${e3.theme.prefix}:`) ? `${e3.theme.prefix}:${t2}` : t2); 3349} 3350function Ti(e3, t2) { 3351 let n2 = e3.printCandidate(t2); 3352 return e3.theme.prefix && n2.startsWith(`${e3.theme.prefix}:`) ? n2.slice(e3.theme.prefix.length + 1) : n2; 3353} 3354var Ei = /* @__PURE__ */ Symbol(), Di = 1536, Oi = Di / 16; 3355function ki(e3, t2, n2) { 3356 let r2 = t2.resolveThemeValue(`--spacing`); 3357 if (r2 === void 0) return false; 3358 let i2 = U.get(fr(r2, n2)); 3359 if (i2 === null) return false; 3360 let [a2, o2] = i2, s2 = e3 * a2; 3361 return o2 === `px` ? s2 <= Di : o2 === `rem` ? s2 <= Oi : false; 3362} 3363function Ai(e3, t2) { 3364 let n2 = e3.resolveThemeValue(`--spacing`); 3365 if (n2 === void 0) return null; 3366 n2 = fr(n2, t2?.rem ?? null); 3367 let r2 = U.get(n2); 3368 if (!r2) return null; 3369 let [i2, a2] = r2; 3370 return new j((e4) => { 3371 if (i2 === 0) return null; 3372 let n3 = U.get(fr(e4, t2?.rem ?? null)); 3373 if (!n3) return null; 3374 let [r3, o2] = n3; 3375 return o2 === a2 ? r3 / i2 : null; 3376 }); 3377} 3378function ji(e3, t2) { 3379 if (e3.kind !== `arbitrary` && !(e3.kind === `functional` && e3.value?.kind === `arbitrary`)) return e3; 3380 let n2 = t2.designSystem, r2 = n2.storage[na].get(t2.signatureOptions), i2 = n2.storage[Ji].get(t2.signatureOptions), a2 = n2.storage[Qr].get(t2.signatureOptions), o2 = n2.printCandidate(e3), s2 = i2.get(o2); 3381 if (typeof s2 != `string`) return e3; 3382 for (let t3 of c2(s2, e3)) if (a2(e3, t3) && Mi(n2, e3, t3)) return t3; 3383 return e3; 3384 function* c2(e4, a3) { 3385 let o3 = r2.get(e4); 3386 if (o3.length > 1) { 3387 let e5; 3388 for (let t3 of o3) if (t3[0] !== `-`) { 3389 if (e5) return; 3390 e5 = t3; 3391 } 3392 if (e5) for (let t3 of Z(n2, e5)) yield t3; 3393 return; 3394 } 3395 if (o3.length === 0 && a3.modifier) { 3396 let e5 = { ...a3, modifier: null }, t3 = i2.get(n2.printCandidate(e5)); 3397 if (typeof t3 == `string`) for (let n3 of c2(t3, e5)) yield Object.assign({}, n3, { modifier: a3.modifier }); 3398 } 3399 if (o3.length === 1) for (let e5 of Z(n2, o3[0])) yield e5; 3400 else if (o3.length === 0) { 3401 let e5 = a3.kind === `arbitrary` ? a3.value : a3.value?.value ?? null; 3402 if (e5 === null) return; 3403 if (t2.signatureOptions.rem !== null && a3.kind === `functional` && a3.value?.kind === `arbitrary`) { 3404 let r4 = n2.storage[Ei]?.get(e5) ?? null; 3405 r4 !== null && D(r4) && ki(r4, n2, t2.signatureOptions.rem) && (yield Object.assign({}, a3, { value: { kind: `named`, value: r4, fraction: null } })); 3406 } 3407 let r3 = n2.storage[Ei]?.get(e5) ?? null, i3 = ``; 3408 r3 !== null && r3 < 0 && (i3 = `-`, r3 = Math.abs(r3));
3409 for (let o4 of Array.from(n2.utilities.keys(`functional`)).sort((e6, t3) => (e6[0] === `-`) - +(t3[0] === `-`))) { 3410 i3 && (o4 = `${i3}${o4}`); 3411 for (let t3 of Z(n2, `${o4}-${e5}`)) yield t3; 3412 if (a3.modifier) for (let t3 of Z(n2, `${o4}-${e5}${a3.modifier}`)) yield t3; 3413 if (r3 !== null && D(r3) && ki(r3, n2, t2.signatureOptions.rem)) { 3414 for (let e6 of Z(n2, `${o4}-${r3}`)) yield e6; 3415 if (a3.modifier) for (let e6 of Z(n2, `${o4}-${r3}${Qt(a3.modifier)}`)) yield e6; 3416 } 3417 for (let t3 of Z(n2, `${o4}-[${e5}]`)) yield t3; 3418 if (a3.modifier) for (let t3 of Z(n2, `${o4}-[${e5}]${Qt(a3.modifier)}`)) yield t3; 3419 } 3420 } 3421 } 3422} 3423function Mi(e3, t2, n2) { 3424 let r2 = null; 3425 if (t2.kind === `functional` && t2.value?.kind === `arbitrary` && t2.value.value.includes(`var(--`) ? r2 = t2.value.value : t2.kind === `arbitrary` && t2.value.includes(`var(--`) && (r2 = t2.value), r2 === null) return true; 3426 let i2 = e3.candidatesToCss([e3.printCandidate(n2)]).join(` 3427`), a2 = true; 3428 return I(P(r2), (e4) => { 3429 if (e4.kind === `function` && e4.value === `var`) { 3430 let t3 = e4.nodes[0].value; 3431 if (!RegExp(`var\\(${t3}[,)]\\s*`, `g`).test(i2) || i2.includes(`${t3}:`)) return a2 = false, F.Stop; 3432 } 3433 }), a2; 3434} 3435function Ni(e3, t2) { 3436 if (e3.kind !== `functional` || e3.value?.kind !== `named`) return e3; 3437 let n2 = t2.designSystem, r2 = n2.storage[na].get(t2.signatureOptions), i2 = n2.storage[Ji].get(t2.signatureOptions), a2 = n2.storage[Qr].get(t2.signatureOptions), o2 = n2.printCandidate(e3), s2 = i2.get(o2); 3438 if (typeof s2 != `string`) return e3; 3439 for (let t3 of c2(s2, e3)) if (a2(e3, t3)) return t3; 3440 return e3; 3441 function* c2(e4, t3) { 3442 let a3 = r2.get(e4); 3443 if (a3.length > 1) { 3444 let e5; 3445 for (let t4 of a3) if (t4[0] !== `-`) { 3446 if (e5) return; 3447 e5 = t4; 3448 } 3449 if (e5) for (let t4 of Z(n2, e5)) yield t4; 3450 return; 3451 } 3452 if (a3.length === 0 && t3.modifier) { 3453 let e5 = { ...t3, modifier: null }, r3 = i2.get(n2.printCandidate(e5)); 3454 if (typeof r3 == `string`) for (let n3 of c2(r3, e5)) yield Object.assign({}, n3, { modifier: t3.modifier }); 3455 } 3456 if (a3.length === 1) for (let e5 of Z(n2, a3[0])) yield e5; 3457 } 3458} 3459var Pi = /* @__PURE__ */ new Map([[`order-none`, `order-0`], [`break-words`, `wrap-break-word`], [`overflow-ellipsis`, `text-ellipsis`]]), Fi = /* @__PURE__ */ new Map([[/^(-)?start-(.*?)$/, `$1inset-s-$2`], [/^(-)?end-(.*?)$/, `$1inset-e-$2`]]); 3460function* Ii(e3) { 3461 let t2 = Pi.get(e3); 3462 t2 && (yield t2); 3463 for (let [t3, n2] of Fi) { 3464 let r2 = e3.replace(t3, n2); 3465 r2 !== e3 && (yield r2); 3466 } 3467} 3468function Li(e3, t2) { 3469 let n2 = t2.designSystem, r2 = n2.storage[Qr].get(t2.signatureOptions), i2 = Ti(n2, e3); 3470 for (let t3 of Ii(i2)) { 3471 if (!r2(e3, t3)) continue; 3472 let [i3] = Z(n2, t3); 3473 return i3; 3474 } 3475 return e3; 3476} 3477function Ri(e3, t2) { 3478 let n2 = t2.designSystem, r2 = n2.storage[ia], i2 = n2.storage[oa], a2 = wi(e3); 3479 for (let [e4] of a2) { 3480 if (e4.kind === `compound`) continue; 3481 let t3 = n2.printVariant(e4), a3 = r2.get(t3); 3482 if (typeof a3 != `string`) continue; 3483 let o2 = i2.get(a3); 3484 if (o2.length !== 1) continue; 3485 let s2 = o2[0], c2 = n2.parseVariant(s2); 3486 c2 !== null && X(e4, c2); 3487 } 3488 return e3; 3489} 3490function zi(e3, t2) { 3491 let n2 = t2.designSystem, r2 = n2.storage[Ji].get(t2.signatureOptions); 3492 if (e3.kind === `functional` && e3.value?.kind === `arbitrary` && e3.value.dataType !== null) { 3493 let t3 = n2.printCandidate({ ...e3, value: { ...e3.value, dataType: null } }); 3494 r2.get(n2.printCandidate(e3)) === r2.get(t3) && (e3.value.dataType = null); 3495 } 3496 return e3; 3497} 3498function Bi(e3, t2) { 3499 if (e3.kind !== `functional` || e3.value?.kind !== `arbitrary`) return e3; 3500 let n2 = t2.designSystem, r2 = n2.storage[Ji].get(t2.signatureOptions), i2 = r2.get(n2.printCandidate(e3)); 3501 if (i2 === null) return e3; 3502 for (let t3 of Hi(e3)) if (r2.get(n2.printCandidate({ ...e3, value: t3 })) === i2) return e3.value = t3, e3; 3503 return e3; 3504} 3505function Vi(e3) { 3506 let t2 = wi(e3); 3507 for (let [e4] of t2) if (e4.kind === `functional` && e4.root === `data` && e4.value?.kind === `arbitrary` && !e4.value.value.includes(`=`)) e4.value = {
3507kind: `named`, value: e4.value.value }; 3508 else if (e4.kind === `functional` && e4.root === `aria` && e4.value?.kind === `arbitrary` && (e4.value.value.endsWith(`=true`) || e4.value.value.endsWith(`="true"`) || e4.value.value.endsWith(`='true'`))) { 3509 let [t3, n2] = _(e4.value.value, `=`); 3510 if (t3[t3.length - 1] === `~` || t3[t3.length - 1] === `|` || t3[t3.length - 1] === `^` || t3[t3.length - 1] === `$` || t3[t3.length - 1] === `*`) continue; 3511 e4.value = { kind: `named`, value: e4.value.value.slice(0, e4.value.value.indexOf(`=`)) }; 3512 } else e4.kind === `functional` && e4.root === `supports` && e4.value?.kind === `arbitrary` && /^[a-z-][a-z0-9-]*$/i.test(e4.value.value) && (e4.value = { kind: `named`, value: e4.value.value }); 3513 return e3; 3514} 3515function* Hi(e3, t2 = e3.value?.value ?? ``, n2 = /* @__PURE__ */ new Set()) { 3516 if (n2.has(t2)) return; 3517 if (n2.add(t2), yield { kind: `named`, value: t2, fraction: null }, t2.endsWith(`%`) && D(t2.slice(0, -1)) && (yield { kind: `named`, value: t2.slice(0, -1), fraction: null }), t2.includes(`/`)) { 3518 let [e4, n3] = t2.split(`/`); 3519 E(e4) && E(n3) && (yield { kind: `named`, value: e4, fraction: `${e4}/${n3}` }); 3520 } 3521 let r2 = /* @__PURE__ */ new Set(); 3522 for (let e4 of t2.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g)) r2.add(e4[0].trim()); 3523 let i2 = Array.from(r2).sort((e4, t3) => e4.length - t3.length); 3524 for (let t3 of i2) yield* Hi(e3, t3, n2); 3525} 3526function Ui(e3) { 3527 return !(e3.length === 1 && e3[0].kind === `list`); 3528} 3529function Wi(e3) { 3530 return e3.value[0] === `[` && e3.value[e3.value.length - 1] === `]`; 3531} 3532function Gi(e3, t2) { 3533 let n2 = [e3], r2 = t2.designSystem, i2 = r2.storage[ia], a2 = wi(e3); 3534 for (let [e4, t3] of a2) if (e4.kind === `compound` && (e4.root === `has` || e4.root === `not` || e4.root === `in`) && e4.modifier !== null && `modifier` in e4.variant && (e4.variant.modifier = e4.modifier, e4.modifier = null), e4.kind === `arbitrary`) { 3535 if (e4.relative) continue; 3536 let n3 = qr(e4.selector); 3537 if (!Ui(n3)) continue; 3538 if (n3.length === 1 && n3[0].kind === `complex` && (n3 = n3[0].nodes), t3 === null && n3.length === 3 && n3[0].kind === `selector` && n3[0].value === `&` && n3[1].kind === `combinator` && n3[1].value === `>` && n3[2].kind === `selector` && n3[2].value === `*`) { 3539 X(e4, r2.parseVariant(`*`)); 3540 continue; 3541 } 3542 if (t3 === null && n3.length === 3 && n3[0].kind === `selector` && n3[0].value === `&` && n3[1].kind === `combinator` && n3[1].value === ` ` && n3[2].kind === `selector` && n3[2].value === `*`) { 3543 X(e4, r2.parseVariant(`**`)); 3544 continue; 3545 } 3546 if (t3 === null && n3.length === 1 && n3[0].kind === `compound` && n3[0].nodes.length === 2 && n3[0].nodes[0].kind === `selector` && n3[0].nodes[0].value === `&` && n3[0].nodes[1].kind === `function` && n3[0].nodes[1].value === `:has` && n3[0].nodes[1].nodes.length === 1 && n3[0].nodes[1].nodes[0].kind === `selector`) { 3547 X(e4, r2.parseVariant(`has-[${Y(n3[0].nodes[1].nodes, true)}]`)); 3548 continue; 3549 } 3550 if (t3 === null && n3.length === 3 && n3[0].kind === `selector` && n3[1].kind === `combinator` && n3[1].value === ` ` && n3[2].kind === `selector` && n3[2].value === `&`) { 3551 n3.pop(), n3.pop(), X(e4, r2.parseVariant(`in-[${Y(n3, true)}]`)); 3552 continue; 3553 } 3554 if (t3 === null && n3[0].kind === `selector` && (n3[0].value === `@media` || n3[0].value === `@supports`)) { 3555 let t4 = i2.get(r2.printVariant(e4)), a4 = P(Y(n3, true)), o3 = false; 3556 if (I(a4, (e5) => { 3557 if (e5.kind === `word` && e5.value === `not`) return o3 = true, F.Replace([]); 3558 }), a4 = P(N(a4)), I(a4, (e5) => { 3559 e5.kind === `separator` && e5.value !== ` ` && e5.value.trim() === `` && (e5.value = ` `); 3560 }), o3) { 3561 let n4 = r2.parseVariant(`not-[${N(a4)}]`); 3562 if (n4 === null) continue; 3563 if (t4 === i2.get(r2.printVariant(n4))) { 3564 X(e4, n4); 3565 continue; 3566 } 3567 } 3568 } 3569 let a3 = null; 3570 t3 === null && n3.length === 3 && n3[0].kind === `selector` && n3[0].value === `&` && n3[1].kind === `combinator` && n3[1].value === `>` && n3[2].kind === `selector` && (n3[2].value[0] === `:` || Wi(n3[2])) && (n3 = [n3[2]], a3 = r2.parseVariant(`*`)), t3 === null && n3.length === 3 && n3[0].kind === `selector` && n3[0].value === `&` && n3[1].kind === `combinator` && n3[1].value === ` ` && n3[2].kind === `selector` && (n3[2].value[0] === `:` || Wi(n3[2])) && (n3 = [n3[2]], a3 = r2.parseVariant(`**`)); 3571 let o2 = n3; 3572 if (I(o2, { enter(e5) { 3573 if (e5.kind === `selector` && e5.value === `&`) return F.Replace([]); 3574 if (e5.kind === `function`) return F.Skip; 3575 }, exit(e5) { 3576 if (e5.kind === `compound` && e5.nodes.length === 1) return F.ReplaceSkip(e5.nodes); 3577 } }), o2.length !== 1) continue; 3578 let s2 = o2[0]; 3579 if (s2.kind === `function` && s2.value === `:is`) { 3580 if (!Ui(s2.nodes) || s2.nodes.length !== 1 || s2.nodes[0].kind === `selector` && !Wi(s2.nodes[0])) continue;
3581 s2 = s2.nodes[0]; 3582 } 3583 if (s2.kind === `function` && s2.value[0] === `:` || s2.kind === `selector` && s2.value[0] === `:`) { 3584 let t4 = s2, n4 = false; 3585 if (t4.kind === `function` && t4.value === `:not`) { 3586 if (n4 = true, t4.nodes.length !== 1 || t4.nodes[0].kind !== `selector` && t4.nodes[0].kind !== `function` || t4.nodes[0].value[0] !== `:`) continue; 3587 t4 = t4.nodes[0]; 3588 } 3589 let o3 = ((a4) => { 3590 if (a4 === `:nth-child` && t4.kind === `function` && t4.nodes.length === 1 && t4.nodes[0].kind === `value` && t4.nodes[0].value === `odd`) return n4 ? (n4 = false, `even`) : `odd`; 3591 if (a4 === `:nth-child` && t4.kind === `function` && t4.nodes.length === 1 && t4.nodes[0].kind === `value` && t4.nodes[0].value === `even`) return n4 ? (n4 = false, `odd`) : `even`; 3592 for (let [e5, n5] of [[`:nth-child`, `nth`], [`:nth-last-child`, `nth-last`], [`:nth-of-type`, `nth-of-type`], [`:nth-last-of-type`, `nth-of-last-type`]]) if (a4 === e5 && t4.kind === `function` && t4.nodes.length === 1) return t4.nodes.length === 1 && t4.nodes[0].kind === `value` && E(t4.nodes[0].value) ? `${n5}-${t4.nodes[0].value}` : `${n5}-[${Y(t4.nodes, true)}]`; 3593 return n4 && i2.get(r2.printVariant(e4)) === i2.get(`not-[${a4}]`) ? `[&${a4}]` : null; 3594 })(t4.value); 3595 if (o3 === null) { 3596 if (a3) return X(e4, { kind: `arbitrary`, selector: s2.value, relative: false }), [a3, e4]; 3597 continue; 3598 } 3599 n4 && (o3 = `not-${o3}`); 3600 let c2 = r2.parseVariant(o3); 3601 if (c2 === null) continue; 3602 X(e4, c2); 3603 } else if (s2.kind === `selector` && Wi(s2)) { 3604 let t4 = Qn(s2.value); 3605 if (t4 === null) continue; 3606 if (t4.attribute.startsWith(`data-`)) { 3607 let n4 = t4.attribute.slice(5); 3608 X(e4, { kind: `functional`, root: `data`, modifier: null, value: t4.value === null ? { kind: `named`, value: n4 } : { kind: `arbitrary`, value: `${n4}${t4.operator}${t4.quote ?? ``}${t4.value}${t4.quote ?? ``}${t4.sensitivity ? ` ${t4.sensitivity}` : ``}` } }); 3609 } else if (t4.attribute.startsWith(`aria-`)) { 3610 let n4 = t4.attribute.slice(5); 3611 X(e4, { kind: `functional`, root: `aria`, modifier: null, value: t4.value === null ? { kind: `arbitrary`, value: n4 } : t4.operator === `=` && t4.value === `true` && t4.sensitivity === null ? { kind: `named`, value: n4 } : { kind: `arbitrary`, value: `${t4.attribute}${t4.operator}${t4.quote ?? ``}${t4.value}${t4.quote ?? ``}${t4.sensitivity ? ` ${t4.sensitivity}` : ``}` } }); 3612 } else X(e4, { kind: `arbitrary`, selector: s2.value, relative: false }); 3613 } 3614 if (a3) return [a3, e4]; 3615 } 3616 return n2; 3617} 3618function Ki(e3, t2) { 3619 if (e3.kind !== `functional` || e3.value?.kind !== `arbitrary`) return e3; 3620 let n2 = t2.designSystem.storage[Qr].get(t2.signatureOptions), r2 = P(e3.value.value); 3621 if (r2.length === 1 && r2[0].kind === `function` && r2[0].value === `calc`) { 3622 let [t3, i2] = pr(r2, null, false); 3623 if (t3) { 3624 let t4 = Gt(e3); 3625 t4.value.value = N(i2), n2(e3, t4) && (e3 = t4, r2 = i2); 3626 } 3627 } 3628 if (e3.root[0] === `-`) { 3629 if (r2.length === 1 && r2[0].kind === `function` && r2[0].value === `var`) return e3; 3630 let [t3, i2] = pr(P(`calc(${e3.value.value} * -1)`), null, false); 3631 if (t3) { 3632 let t4 = Gt(e3); 3633 t4.root = t4.root.slice(1), t4.value.value = N(i2), n2(e3, t4) && (e3 = t4, r2 = i2); 3634 } 3635 } 3636 if (r2.length === 1 && r2[0].kind === `function` && r2[0].value === `calc`) { 3637 let t3 = r2[0].nodes; 3638 if (t3.length === 5 && t3[1].kind === `separator` && t3[1].value === ` ` && t3[2].kind === `word` && t3[2].value === `*` && t3[3].kind === `separator` && t3[3].value === ` `) { 3639 let r3 = t3[4].kind === `word` && t3[4].value === `-1` ? t3[0] : t3[0].kind === `word` && t3[0].value === `-1` ? t3[4] : null; 3640 if (r3) { 3641 let t4 = Gt(e3); 3642 t4.root = `-${e3.root}`, t4.value.value = N([r3]), n2(e3, t4) && (e3 = t4); 3643 } 3644 } 3645 } 3646 return e3; 3647} 3648function qi(e3, t2) { 3649 if (e3.kind !== `functional` && e3.kind !== `arbitrary` || e3.modifier === null) return e3; 3650 let n2 = t2.designSystem, r2 = n2.storage[Ji].get(t2.signatureOptions), i2 = r2.get(n2.printCandidate(e3)), a2 = e3.modifier; 3651 if (i2 === r2.get(n2.printCandidate({ ...e3, modifier: null }
3651))) return e3.modifier = null, e3; 3652 { 3653 let t3 = { kind: `named`, value: a2.value.endsWith(`%`) ? a2.value.includes(`.`) ? `${Number(a2.value.slice(0, -1))}` : a2.value.slice(0, -1) : a2.value, fraction: null }; 3654 if (i2 === r2.get(n2.printCandidate({ ...e3, modifier: t3 }))) return e3.modifier = t3, e3; 3655 } 3656 { 3657 let t3 = { kind: `named`, value: `${parseFloat(a2.value) * 100}`, fraction: null }; 3658 if (i2 === r2.get(n2.printCandidate({ ...e3, modifier: t3 }))) return e3.modifier = t3, e3; 3659 } 3660 return e3; 3661} 3662var Ji = /* @__PURE__ */ Symbol(); 3663function Yi(e3) { 3664 return new j((t2) => new j((n2) => { 3665 try { 3666 n2 = e3.theme.prefix && !n2.startsWith(e3.theme.prefix) ? `${e3.theme.prefix}:${n2}` : n2; 3667 let r2 = [L(`.x`, [R(`@apply`, n2)])]; 3668 return ca(e3, () => { 3669 for (let t3 of e3.parseCandidate(n2)) e3.compileAstNodes(t3, 1); 3670 Ma(r2, e3); 3671 }), Xi(e3, r2, t2), At(r2); 3672 } catch { 3673 return /* @__PURE__ */ Symbol(); 3674 } 3675 })); 3676} 3677function Xi(e3, t2, n2) { 3678 let { rem: r2 } = n2; 3679 return I(t2, { enter(t3, i2) { 3680 if (t3.kind === `declaration`) { 3681 if (t3.value === void 0 || t3.property === `--tw-sort` || t3.property.startsWith(`--tw-`) && i2.siblings.some((e4) => e4.kind === `declaration` && t3.value === e4.value && t3.important === e4.important && !e4.property.startsWith(`--tw-`))) return F.Replace([]); 3682 if (n2.features & 1) { 3683 let e4 = br(t3, n2.features); 3684 if (e4) return F.Replace(e4); 3685 } 3686 t3.value.includes(`var(`) && (t3.value = Zi(t3.value, e3)); 3687 let [a2, o2] = pr(P(t3.value), r2), [s2, c2] = er(o2); 3688 (a2 || s2) && (t3.value = N(c2)), t3.value = tn(t3.value); 3689 } else { 3690 if (t3.kind === `context` || t3.kind === `at-root`) return F.Replace(t3.nodes); 3691 if (t3.kind === `comment` || t3.kind === `at-rule` && t3.name === `@property`) return F.Replace([]); 3692 } 3693 }, exit(e4) { 3694 if (e4.kind === `rule` || e4.kind === `at-rule`) { 3695 if (e4.nodes.length > 1) { 3696 let t3 = /* @__PURE__ */ new Set(); 3697 for (let n3 = e4.nodes.length - 1; n3 >= 0; n3--) { 3698 let r3 = e4.nodes[n3]; 3699 r3.kind === `declaration` && r3.value !== void 0 && (t3.has(r3.property) && e4.nodes.splice(n3, 1), t3.add(r3.property)); 3700 } 3701 } 3702 e4.nodes.sort((e5, t3) => e5.kind !== `declaration` || t3.kind !== `declaration` ? 0 : e5.property.localeCompare(t3.property)); 3703 } 3704 } }), t2; 3705} 3706function Zi(e3, t2) { 3707 let n2 = false, r2 = P(e3), i2 = /* @__PURE__ */ new Set(); 3708 return I(r2, (e4) => { 3709 if (e4.kind !== `function` || e4.value !== `var` || e4.nodes.length !== 1 && e4.nodes.length < 3) return; 3710 let r3 = e4.nodes[0].value; 3711 t2.theme.prefix && r3.startsWith(`--${t2.theme.prefix}-`) && (r3 = r3.slice(`--${t2.theme.prefix}-`.length)); 3712 let a2 = t2.resolveThemeValue(r3); 3713 if (!i2.has(r3) && (i2.add(r3), a2 !== void 0 && (e4.nodes.length === 1 && (n2 = true, e4.nodes.push(...P(`,${a2}`))), e4.nodes.length >= 3)) && N(e4.nodes) === `${e4.nodes[0].value},${a2}`) return n2 = true, F.Replace(P(a2)); 3714 }), n2 ? N(r2) : e3; 3715} 3716var Qi = /* @__PURE__ */ Symbol(); 3717function $i() { 3718 return new j((e3) => new j((e4) => new j((e5) => /* @__PURE__ */ new Set()))); 3719} 3720var ea = /* @__PURE__ */ Symbol(); 3721function ta(e3) { 3722 return new j((t2) => new j((n2) => { 3723 let r2 = new j((e4) => /* @__PURE__ */ new Set()); 3724 e3.theme.prefix && !n2.startsWith(e3.theme.prefix) && (n2 = `${e3.theme.prefix}:${n2}`); 3725 let i2 = e3.parseCandidate(n2); 3726 if (i2.length === 0) return r2; 3727 try { 3728 I(Xi(e3, e3.compileAstNodes(i2[0]).map((e4) => H(e4.node)), t2), (i3) => { 3729 i3.kind === `declaration` && (r2.get(i3.property).add(i3.value), e3.storage[Qi].get(t2).get(i3.property).get(i3.value).add(n2)); 3730 }); 3731 } catch { 3732 } 3733 return r2; 3734 })); 3735} 3736var na = /* @__PURE__ */ Symbol(); 3737function ra(e3) { 3738 return new j((t2) => { 3739 let n2 = e3.storage[Ji].get(t2), r2 = new j(() => []); 3740 for (let [i2, a2] of e3.getClassList()) { 3741 let o2 = n2.get(i2); 3742 if (typeof o2 == `string`) { 3743 if (i2[0] === `-` && i2.endsWith(`-0`)) { 3744 let e4 = n2.get(i2.slice(1)); 3745 if (typeof e4 == `string` && o2 === e4) continue; 3746 } 3747 r2.get(o2).push(i2), e3.storage[ea].get(t2).get(i2); 3748 for (let o3 of a2.modifiers) { 3749 if (D(o3)) continue; 3750 let a3 = `${i2}/${o3}`, s2 = n2.get(a3); 3751 typeof s2 == `string` && (r2.get(s2).push(a3), e3.storage[ea].get(t2).get(a3)); 3752 } 3753 } 3754 } 3755 return r2; 3756 }); 3757} 3758var ia = /* @__PURE__ */ Symbol(); 3759function aa(e3) { 3760 return new j((t2) => { 3761 try { 3762 t2 = e3.theme.prefix && !t2.startsWith(e3.theme.prefix) ? `${e3.theme.prefix}:${t2}` : t2; 3763 let n2 = [L(`.x`, [R(`@apply`, `${t2}:flex`)])]; 3764 return Ma(n2, e3), I(n2, (e4) => { 3765 if (e4.kind === `at-rule` && e4.params.includes(` `)) e4.params = e4.params.replaceAll(` `, ``); 3766 else if (e4.kind === `rule`) { 3767 let t3 = qr(e4.selector), n3 = false;
3768 I(t3, (e5) => { 3769 if (e5.kind === `list` || e5.kind === `combinator`) n3 = true; 3770 else if (e5.kind === `function` && e5.value === `:is`) { 3771 if (e5.nodes.length === 1) return n3 = true, F.Replace(e5.nodes); 3772 if (e5.nodes.length === 2 && e5.nodes[0].kind === `selector` && e5.nodes[0].value === `*` && e5.nodes[1].kind === `selector` && e5.nodes[1].value[0] === `:`) return n3 = true, F.Replace(e5.nodes[1]); 3773 } else e5.kind === `function` && e5.value[0] === `:` && e5.nodes[0]?.kind === `selector` && e5.nodes[0]?.value[0] === `:` && (n3 = true, e5.nodes.unshift({ kind: `selector`, value: `*` })); 3774 }), n3 && (e4.selector = Y(t3, true)); 3775 } 3776 }), At(n2); 3777 } catch { 3778 return /* @__PURE__ */ Symbol(); 3779 } 3780 }); 3781} 3782var oa = /* @__PURE__ */ Symbol(); 3783function sa(e3) { 3784 let t2 = e3.storage[ia], n2 = new j(() => []); 3785 for (let [r2, i2] of e3.variants.entries()) if (i2.kind === `static`) { 3786 let e4 = t2.get(r2); 3787 if (typeof e4 != `string`) continue; 3788 n2.get(e4).push(r2); 3789 } 3790 return n2; 3791} 3792function ca(e3, t2) { 3793 let n2 = e3.theme.values.get, r2 = /* @__PURE__ */ new Set(); 3794 e3.theme.values.get = (t3) => { 3795 let i2 = n2.call(e3.theme.values, t3); 3796 return i2 === void 0 || i2.options & 1 && (r2.add(i2), i2.options &= -2), i2; 3797 }; 3798 try { 3799 return t2(); 3800 } finally { 3801 e3.theme.values.get = n2; 3802 for (let e4 of r2) e4.options |= 1; 3803 } 3804} 3805function* la(e3) { 3806 let t2 = e3.length, n2 = 1n << BigInt(t2); 3807 for (let r2 = t2; r2 >= 2; r2--) { 3808 let i2 = (1n << BigInt(r2)) - 1n; 3809 for (; i2 < n2; ) { 3810 let n3 = []; 3811 for (let r4 = 0; r4 < t2; r4++) i2 >> BigInt(r4) & 1n && n3.push(e3[r4]); 3812 yield n3; 3813 let r3 = i2 & -i2, a2 = i2 + r3; 3814 i2 = ((a2 ^ i2) >> 2n) / r3 | a2; 3815 } 3816 } 3817} 3818function ua(e3, t2) { 3819 if (typeof e3.intersection == `function`) return e3.intersection(t2); 3820 if (e3.size === 0 || t2.size === 0) return /* @__PURE__ */ new Set(); 3821 let n2 = new Set(e3); 3822 for (let e4 of t2) n2.has(e4) || n2.delete(e4); 3823 return n2; 3824} 3825var da = /^\d+\/\d+$/; 3826function fa(e3) { 3827 let t2 = new j((e4) => ({ name: e4, utility: e4, fraction: false, modifiers: [] })); 3828 for (let n3 of e3.utilities.keys(`static`)) { 3829 if (e3.utilities.getCompletions(n3).length === 0) continue; 3830 let r2 = t2.get(n3); 3831 r2.fraction = false, r2.modifiers = []; 3832 } 3833 for (let n3 of e3.utilities.keys(`functional`)) { 3834 let r2 = e3.utilities.getCompletions(n3); 3835 for (let e4 of r2) for (let r3 of e4.values) { 3836 let i2 = r3 !== null && da.test(r3), a2 = r3 === null ? n3 : `${n3}-${r3}`, o2 = t2.get(a2); 3837 if (o2.utility = n3, o2.fraction || (o2.fraction = i2), o2.modifiers.push(...e4.modifiers), e4.supportsNegative) { 3838 let r4 = t2.get(`-${a2}`); 3839 r4.utility = `-${n3}`, r4.fraction || (r4.fraction = i2), r4.modifiers.push(...e4.modifiers); 3840 } 3841 o2.modifiers = Array.from(new Set(o2.modifiers)); 3842 } 3843 } 3844 if (t2.size === 0) return []; 3845 let n2 = Array.from(t2.values()); 3846 return n2.sort((e4, t3) => Zn(e4.name, t3.name)), pa(n2); 3847} 3848function pa(e3) { 3849 let t2 = [], n2 = null, r2 = /* @__PURE__ */ new Map(), i2 = new j(() => []); 3850 for (let a3 of e3) { 3851 let { utility: e4, fraction: o2 } = a3; 3852 n2 || (n2 = { utility: e4, items: [] }, r2.set(e4, n2)), e4 !== n2.utility && (t2.push(n2), n2 = { utility: e4, items: [] }, r2.set(e4, n2)), o2 ? i2.get(e4).push(a3) : n2.items.push(a3); 3853 } 3854 n2 && t2[t2.length - 1] !== n2 && t2.push(n2); 3855 for (let [e4, t3] of i2) { 3856 let n3 = r2.get(e4); 3857 n3 && n3.items.push(...t3); 3858 } 3859 let a2 = []; 3860 for (let e4 of t2) for (let t3 of e4.items) a2.push([t3.name, { modifiers: t3.modifiers }]); 3861 return a2; 3862} 3863function ma(e3) { 3864 let t2 = []; 3865 for (let [n2, r2] of e3.variants.entries()) { 3866 let i2 = function({ value: t3, modifier: r3 } = {}) { 3867 let i3 = n2; 3868 t3 && (i3 += a2 ? `-${t3}` : t3), r3 && (i3 += `/${r3}`); 3869 let o3 = e3.parseVariant(i3); 3870 if (!o3) return []; 3871 let s2 = L(`.__placeholder__`, []); 3872 if (Da(s2, o3, e3.variants) === null) return []; 3873 let c2 = []; 3874 return I(s2.nodes, { exit(e4, t4) { 3875 if (e4.kind !== `rule` && e4.kind !== `at-rule` || e4.nodes.length > 0) return; 3876 let n3 = t4.path(); 3877 n3.push(e4), n3.sort((e5, t5) => { 3878 let n4 = e5.kind === `at-rule`, r5 = t5.kind === `at-rule`; 3879 return n4 && !r5 ? -1 : !n4 && r5 ? 1 : 0; 3880 }); 3881 let r4 = n3.flatMap((e5) => e5.kind === `rule` ? e5.selector === `&` ? [] : [e5.selector] : e5.kind === `at-rule` ? [`${e5.name} ${e5.params}`] : []), i4 = ``; 3882 for (let e5 = r4.length - 1; e5 >= 0; e5--) i4 = i4 === `` ? r4[e5] : `${r4[e5]} { ${i4} }`; 3883 c2.push(i4); 3884 } }), c2; 3885 }; 3886 if (r2.kind === `arbitrary`) continue; 3887 let a2 = n2 !== `@`, o2 = e3.variants.getCompletions(n2); 3888 switch (r2.kind) { 3889 case `static`: 3890 t2.push({ name: n2, values: o2, isArbitrary: false, hasDash: a2, selectors: i2 }); 3891 break; 3892 case `functional`: 3893 t2.push({ name: n2, values: o2, isArbitrary: true, hasDash: a2, selectors: i2 }); 3894 break; 3895 case `compound`: 3896 t2.push({ name: n2, values: o2, isArbitrary: true, hasDash: a2, selectors: i2 }); 3897 break; 3898 } 3899 } 3900 return t2; 3901} 3902function ha(e3, t2) { 3903 let { astNodes: n2, nodeSorting: r2 } = Ta(Array.from(t2), e3), i2 = new Map(t2.map((e4) => [e4, null])), a2 = 0n; 3904 for (let e4 of n2) { 3905 let t3 = r2.get(e4)?.candidate; 3906 t3 && i2.set(t3, i2.get(t3) ?? a2++); 3907 } 3908 return t2.map((e4) => [e4, i2.get(e4) ?? null]); 3909} 3910var ga = /^@?[a-z0-9][a-zA-Z0-9_-]*(?<![_-])$/, _a = class { 3911 constructor() {
3912 __publicField(this, "compareFns", /* @__PURE__ */ new Map()); 3913 __publicField(this, "variants", /* @__PURE__ */ new Map()); 3914 __publicField(this, "completions", /* @__PURE__ */ new Map()); 3915 __publicField(this, "groupOrder", null); 3916 __publicField(this, "lastOrder", 0); 3917 } 3918 static(e3, t2, { compounds: n2, order: r2 } = {}) { 3919 this.set(e3, { kind: `static`, applyFn: t2, compoundsWith: 0, compounds: n2 ?? 2, order: r2 }); 3920 } 3921 fromAst(e3, t2, n2) { 3922 let r2 = [], i2 = false; 3923 I(t2, (e4) => { 3924 e4.kind === `rule` ? r2.push(e4.selector) : e4.kind === `at-rule` && e4.name === `@variant` ? i2 = true : e4.kind === `at-rule` && e4.name !== `@slot` && r2.push(`${e4.name} ${e4.params}`); 3925 }), this.static(e3, (e4) => { 3926 let r3 = t2.map(H); 3927 i2 && Sa(r3, n2), xa(r3, e4.nodes), e4.nodes = r3; 3928 }, { compounds: va(r2) }); 3929 } 3930 functional(e3, t2, { compounds: n2, order: r2 } = {}) { 3931 this.set(e3, { kind: `functional`, applyFn: t2, compoundsWith: 0, compounds: n2 ?? 2, order: r2 }); 3932 } 3933 compound(e3, t2, n2, { compounds: r2, order: i2 } = {}) { 3934 this.set(e3, { kind: `compound`, applyFn: n2, compoundsWith: t2, compounds: r2 ?? 2, order: i2 }); 3935 } 3936 group(e3, t2) { 3937 this.groupOrder = this.nextOrder(), t2 && this.compareFns.set(this.groupOrder, t2), e3(), this.groupOrder = null; 3938 } 3939 has(e3) { 3940 return this.variants.has(e3); 3941 } 3942 get(e3) { 3943 return this.variants.get(e3); 3944 } 3945 kind(e3) { 3946 return this.variants.get(e3)?.kind; 3947 } 3948 compoundsWith(e3, t2) { 3949 let n2 = this.variants.get(e3), r2 = typeof t2 == `string` ? this.variants.get(t2) : t2.kind === `arbitrary` ? { compounds: va([t2.selector]) } : this.variants.get(t2.root); 3950 return !(!n2 || !r2 || n2.kind !== `compound` || r2.compounds === 0 || n2.compoundsWith === 0 || (n2.compoundsWith & r2.compounds) === 0); 3951 } 3952 suggest(e3, t2) { 3953 this.completions.set(e3, t2); 3954 } 3955 getCompletions(e3) { 3956 return this.completions.get(e3)?.() ?? []; 3957 } 3958 compare(e3, t2) { 3959 if (e3 === t2) return 0; 3960 if (e3 === null) return -1; 3961 if (t2 === null) return 1; 3962 if (e3.kind === `arbitrary` && t2.kind === `arbitrary`) return e3.selector < t2.selector ? -1 : 1; 3963 if (e3.kind === `arbitrary`) return 1; 3964 if (t2.kind === `arbitrary`) return -1; 3965 let n2 = this.variants.get(e3.root).order, r2 = n2 - this.variants.get(t2.root).order; 3966 if (r2 !== 0) return r2; 3967 if (e3.kind === `compound` && t2.kind === `compound`) { 3968 let n3 = this.compare(e3.variant, t2.variant); 3969 return n3 === 0 ? e3.modifier && t2.modifier ? e3.modifier.value < t2.modifier.value ? -1 : 1 : e3.modifier ? 1 : t2.modifier ? -1 : 0 : n3; 3970 } 3971 let i2 = this.compareFns.get(n2); 3972 if (i2 !== void 0) return i2(e3, t2); 3973 if (e3.root !== t2.root) return e3.root < t2.root ? -1 : 1; 3974 let a2 = e3.value, o2 = t2.value; 3975 return a2 === null ? -1 : o2 === null || a2.kind === `arbitrary` && o2.kind !== `arbitrary` ? 1 : a2.kind !== `arbitrary` && o2.kind === `arbitrary` || a2.value < o2.value ? -1 : 1; 3976 } 3977 keys() { 3978 return this.variants.keys(); 3979 } 3980 entries() { 3981 return this.variants.entries(); 3982 } 3983 set(e3, { kind: t2, applyFn: n2, compounds: r2, compoundsWith: i2, order: a2 }) { 3984 let o2 = this.variants.get(e3); 3985 o2 ? Object.assign(o2, { kind: t2, applyFn: n2, compounds: r2 }) : (a2 === void 0 && (this.lastOrder = this.nextOrder(), a2 = this.lastOrder), this.variants.set(e3, { kind: t2, applyFn: n2, order: a2, compoundsWith: i2, compounds: r2 })); 3986 } 3987 nextOrder() { 3988 return this.groupOrder ?? this.lastOrder + 1; 3989 } 3990}; 3991function va(e3) { 3992 let t2 = 0; 3993 for (let n2 of e3) { 3994 if (n2[0] === `@`) { 3995 if (!n2.startsWith(`@media`) && !n2.startsWith(`@supports`) && !n2.startsWith(`@container`)) return 0; 3996 t2 |= 1; 3997 continue; 3998 } 3999 if (n2.includes(`::`)) return 0; 4000 t2 |= 2; 4001 } 4002 return t2; 4003} 4004function ya(e3) { 4005 let t2 = new _a(); 4006 function n2(e4, n3, { compounds: r3 } = {}) { 4007 r3 ?? (r3 = va(n3)), t2.static(e4, (e5) => { 4008 e5.nodes = n3.map((t3) => z(t3, e5.nodes)); 4009 }, { compounds: r3 }); 4010 } 4011 n2(`*`, [`:is(& > *)`], { compounds: 0 }), n2(`**`, [`:is(& *)`], { compounds: 0 }); 4012 function r2(e4, t3) { 4013 return t3.map((t4) => { 4014 if (e4 === `@container`) { 4015 let e5 = P(t4.trim()); 4016 return e5.length >= 1 && e5[0].kind === `function` ? `not ${t4}` : e5.length >= 3 && e5[0].kind === `word` && e5[0].value === `not` && e5[2].kind === `function` ? (e5.splice(0, 2), N(e5)) : e5.length >= 5 && e5[0].kind === `word` && e5[2].kind === `word` && e5[2].value === `not` && e5[4].kind === `function` ? (e5.splice(2, 2), N(e5)) : e5.length >= 3 && e5[0].kind === `word` && e5[0].value !== `not` && e5[2].kind === `function` ? (e5.splice(1, 0, { kind: `separator`, value: ` ` }, { kind: `word`, value: `not` }), N(e5)) : `not ${t4}`; 4017 } else { 4018 t4 = t4.trim(); 4019 let e5 = _(t4, ` `); 4020 return e5[0] === `not` ? e5.slice(1).join(` `) : `not ${t4}`; 4021 } 4022 }); 4023 } 4024 let i2 = [`@media`, `@supports`, `@container`]; 4025 function a2(e4) { 4026 for (let t3 of i2) { 4027 if (t3 !== e4.name) continue; 4028 let n3 = _(e4.params, `,`); 4029 return n3.length > 1 ? null : (n3 = r2(e4.name, n3), R(e4.name, n3.join(`, `))); 4030 } 4031 return null; 4032 } 4033 function o2(e4) { 4034 return e4.includes(`::`) ? null : `&:not(${_(e4, `,`).map((e5) => (e5 = e5.replaceAll(`&`, `*`), e5)).join(`, `)})`; 4035 } 4036 t2.compound(`not`, 3, (e4, t3) => { 4037 if (t3.variant.kind === `arbitrary` && t3.variant.relative || t3.modifier) return null; 4038 let n3 = false;
4039 if (I([e4], (t4, r3) => { 4040 if (t4.kind !== `rule` && t4.kind !== `at-rule` || t4.nodes.length > 0) return F.Continue; 4041 let i3 = [], s2 = [], c2 = r3.path(); 4042 c2.push(t4); 4043 for (let e5 of c2) e5.kind === `at-rule` ? i3.push(e5) : e5.kind === `rule` && s2.push(e5); 4044 if (i3.length > 1 || s2.length > 1) return F.Stop; 4045 let l2 = []; 4046 for (let e5 of s2) { 4047 let t5 = o2(e5.selector); 4048 if (!t5) return n3 = false, F.Stop; 4049 l2.push(L(t5, [])); 4050 } 4051 for (let e5 of i3) { 4052 let t5 = a2(e5); 4053 if (!t5) return n3 = false, F.Stop; 4054 l2.push(t5); 4055 } 4056 return Object.assign(e4, L(`&`, l2)), n3 = true, F.Skip; 4057 }), e4.kind === `rule` && e4.selector === `&` && e4.nodes.length === 1 && Object.assign(e4, e4.nodes[0]), !n3) return null; 4058 }), t2.suggest(`not`, () => Array.from(t2.keys()).filter((e4) => t2.compoundsWith(`not`, e4))), t2.compound(`group`, 2, (t3, n3) => { 4059 if (n3.variant.kind === `arbitrary` && n3.variant.relative) return null; 4060 let r3 = n3.modifier ? `:where(.${e3.prefix ? `${e3.prefix}\\:` : ``}group\\/${n3.modifier.value})` : `:where(.${e3.prefix ? `${e3.prefix}\\:` : ``}group)`, i3 = false;
4061 if (I([t3], (e4, t4) => { 4062 if (e4.kind !== `rule`) return F.Continue; 4063 for (let e5 of t4.path()) if (e5.kind === `rule`) return i3 = false, F.Stop; 4064 let n4 = e4.selector.replaceAll(`&`, r3); 4065 _(n4, `,`).length > 1 && (n4 = `:is(${n4})`), e4.selector = `&:is(${n4} *)`, i3 = true; 4066 }), !i3) return null; 4067 }), t2.suggest(`group`, () => Array.from(t2.keys()).filter((e4) => t2.compoundsWith(`group`, e4))), t2.compound(`peer`, 2, (t3, n3) => { 4068 if (n3.variant.kind === `arbitrary` && n3.variant.relative) return null; 4069 let r3 = n3.modifier ? `:where(.${e3.prefix ? `${e3.prefix}\\:` : ``}peer\\/${n3.modifier.value})` : `:where(.${e3.prefix ? `${e3.prefix}\\:` : ``}peer)`, i3 = false; 4070 if (I([t3], (e4, t4) => { 4071 if (e4.kind !== `rule`) return F.Continue; 4072 for (let e5 of t4.path()) if (e5.kind === `rule`) return i3 = false, F.Stop; 4073 let n4 = e4.selector.replaceAll(`&`, r3); 4074 _(n4, `,`).length > 1 && (n4 = `:is(${n4})`), e4.selector = `&:is(${n4} ~ *)`, i3 = true; 4075 }), !i3) return null; 4076 }), t2.suggest(`peer`, () => Array.from(t2.keys()).filter((e4) => t2.compoundsWith(`peer`, e4))), n2(`first-letter`, [`&::first-letter`]), n2(`first-line`, [`&::first-line`]), n2(`marker`, [`& *::marker`, `&::marker`, `& *::-webkit-details-marker`, `&::-webkit-details-marker`]), n2(`selection`, [`& *::selection`, `&::selection`]), n2(`file`, [`&::file-selector-button`]), n2(`placeholder`, [`&::placeholder`]), n2(`backdrop`, [`&::backdrop`]), n2(`details-content`, [`&::details-content`]); 4077 { 4078 let e4 = function() { 4079 return V([R(`@property`, `--tw-content`, [B(`syntax`, `"*"`), B(`initial-value`, `""`), B(`inherits`, `false`)])]); 4080 }; 4081 t2.static(`before`, (t3) => { 4082 t3.nodes = [L(`&::before`, [e4(), B(`content`, `var(--tw-content)`), ...t3.nodes])]; 4083 }, { compounds: 0 }), t2.static(`after`, (t3) => { 4084 t3.nodes = [L(`&::after`, [e4(), B(`content`, `var(--tw-content)`), ...t3.nodes])]; 4085 }, { compounds: 0 }); 4086 } 4087 n2(`first`, [`&:first-child`]), n2(`last`, [`&:last-child`]), n2(`only`, [`&:only-child`]), n2(`odd`, [`&:nth-child(odd)`]), n2(`even`, [`&:nth-child(even)`]), n2(`first-of-type`, [`&:first-of-type`]), n2(`last-of-type`, [`&:last-of-type`]), n2(`only-of-type`, [`&:only-of-type`]), n2(`visited`, [`&:visited`]), n2(`target`, [`&:target`]), n2(`open`, [`&:is([open], :popover-open, :open)`]), n2(`default`, [`&:default`]), n2(`checked`, [`&:checked`]), n2(`indeterminate`, [`&:indeterminate`]), n2(`placeholder-shown`, [`&:placeholder-shown`]), n2(`autofill`, [`&:autofill`]), n2(`optional`, [`&:optional`]), n2(`required`, [`&:required`]), n2(`valid`, [`&:valid`]), n2(`invalid`, [`&:invalid`]), n2(`user-valid`, [`&:user-valid`]), n2(`user-invalid`, [`&:user-invalid`]), n2(`in-range`, [`&:in-range`]), n2(`out-of-range`, [`&:out-of-range`]), n2(`read-only`, [`&:read-only`]), n2(`empty`, [`&:empty`]), n2(`focus-within`, [`&:focus-within`]), t2.static(`hover`, (e4) => { 4088 e4.nodes = [L(`&:hover`, [R(`@media`, `(hover: hover)`, e4.nodes)])]; 4089 }), n2(`focus`, [`&:focus`]), n2(`focus-visible`, [`&:focus-visible`]), n2(`active`, [`&:active`]), n2(`enabled`, [`&:enabled`]), n2(`disabled`, [`&:disabled`]), n2(`inert`, [`&:is([inert], [inert] *)`]), t2.compound(`in`, 2, (e4, t3) => { 4090 if (t3.modifier) return null; 4091 let n3 = false;
4092 if (I([e4], (e5, t4) => { 4093 if (e5.kind !== `rule`) return F.Continue; 4094 for (let e6 of t4.path()) if (e6.kind === `rule`) return n3 = false, F.Stop; 4095 e5.selector = `:where(${e5.selector.replaceAll(`&`, `*`)}) &`, n3 = true; 4096 }), !n3) return null; 4097 }), t2.suggest(`in`, () => Array.from(t2.keys()).filter((e4) => t2.compoundsWith(`in`, e4))), t2.compound(`has`, 2, (e4, t3) => { 4098 if (t3.modifier) return null; 4099 let n3 = false; 4100 if (I([e4], (e5, t4) => { 4101 if (e5.kind !== `rule`) return F.Continue; 4102 for (let e6 of t4.path()) if (e6.kind === `rule`) return n3 = false, F.Stop; 4103 e5.selector = `&:has(${e5.selector.replaceAll(`&`, `*`)})`, n3 = true; 4104 }), !n3) return null; 4105 }), t2.suggest(`has`, () => Array.from(t2.keys()).filter((e4) => t2.compoundsWith(`has`, e4))), t2.functional(`aria`, (e4, t3) => { 4106 if (!t3.value || t3.modifier) return null; 4107 t3.value.kind === `arbitrary` ? e4.nodes = [L(`&[aria-${ba(t3.value.value)}]`, e4.nodes)] : e4.nodes = [L(`&[aria-${t3.value.value}="true"]`, e4.nodes)]; 4108 }), t2.suggest(`aria`, () => [`busy`, `checked`, `disabled`, `expanded`, `hidden`, `pressed`, `readonly`, `required`, `selected`]), t2.functional(`data`, (e4, t3) => { 4109 if (!t3.value || t3.modifier) return null; 4110 e4.nodes = [L(`&[data-${ba(t3.value.value)}]`, e4.nodes)]; 4111 }), t2.functional(`nth`, (e4, t3) => { 4112 if (!t3.value || t3.modifier || t3.value.kind === `named` && !E(t3.value.value)) return null; 4113 e4.nodes = [L(`&:nth-child(${t3.value.value})`, e4.nodes)]; 4114 }), t2.functional(`nth-last`, (e4, t3) => { 4115 if (!t3.value || t3.modifier || t3.value.kind === `named` && !E(t3.value.value)) return null; 4116 e4.nodes = [L(`&:nth-last-child(${t3.value.value})`, e4.nodes)]; 4117 }), t2.functional(`nth-of-type`, (e4, t3) => { 4118 if (!t3.value || t3.modifier || t3.value.kind === `named` && !E(t3.value.value)) return null; 4119 e4.nodes = [L(`&:nth-of-type(${t3.value.value})`, e4.nodes)]; 4120 }), t2.functional(`nth-last-of-type`, (e4, t3) => { 4121 if (!t3.value || t3.modifier || t3.value.kind === `named` && !E(t3.value.value)) return null; 4122 e4.nodes = [L(`&:nth-last-of-type(${t3.value.value})`, e4.nodes)]; 4123 }), t2.functional(`supports`, (e4, t3) => { 4124 if (!t3.value || t3.modifier) return null; 4125 let n3 = t3.value.value; 4126 if (n3 === null) return null; 4127 if (/^[\w-]*\s*\(/.test(n3)) { 4128 e4.nodes = [R(`@supports`, n3.replace(/\b(and|or|not)\b/g, ` $1 `), e4.nodes)]; 4129 return; 4130 } 4131 n3.includes(`:`) || (n3 = `${n3}: var(--tw)`), (n3[0] !== `(` || n3[n3.length - 1] !== `)`) && (n3 = `(${n3})`), e4.nodes = [R(`@supports`, n3, e4.nodes)]; 4132 }, { compounds: 1 }), n2(`motion-safe`, [`@media (prefers-reduced-motion: no-preference)`]), n2(`motion-reduce`, [`@media (prefers-reduced-motion: reduce)`]), n2(`contrast-more`, [`@media (prefers-contrast: more)`]), n2(`contrast-less`, [`@media (prefers-contrast: less)`]); 4133 { 4134 let n3 = function(e4, t3, n4, r3) { 4135 if (e4 === t3) return 0; 4136 let i3 = r3.get(e4); 4137 if (i3 === null) return n4 === `asc` ? -1 : 1; 4138 let a3 = r3.get(t3); 4139 return a3 === null ? n4 === `asc` ? 1 : -1 : un(i3, a3, n4); 4140 }; 4141 { 4142 let r3 = e3.namespace(`--breakpoint`), i3 = new j((t3) => { 4143 switch (t3.kind) { 4144 case `static`: 4145 return e3.resolveValue(t3.root, [`--breakpoint`]) ?? null; 4146 case `functional`: { 4147 if (!t3.value || t3.modifier) return null; 4148 let n4 = null; 4149 return t3.value.kind === `arbitrary` ? n4 = t3.value.value : t3.value.kind === `named` && (n4 = e3.resolveValue(t3.value.value, [`--breakpoint`])), !n4 || n4.includes(`var(`) ? null : n4; 4150 } 4151 case `arbitrary`: 4152 case `compound`: 4153 return null; 4154 } 4155 }); 4156 t2.group(() => { 4157 t2.functional(`max`, (e4, t3) => { 4158 if (t3.modifier) return null; 4159 let n4 = i3.get(t3); 4160 if (n4 === null) return null; 4161 e4.nodes = [R(`@media`, `(width < ${n4})`, e4.nodes)]; 4162 }, { compounds: 1 }); 4163 }, (e4, t3) => n3(e4, t3, `desc`, i3)), t2.suggest(`max`, () => Array.from(r3.keys()).filter((e4) => e4 !== null)), t2.group(() => { 4164 for (let [n4, r4] of e3.namespace(`--breakpoint`)) n4 !== null && t2.static(n4, (e4) => { 4165 e4.nodes = [R(`@media`, `(width >= ${r4})`, e4.nodes)]; 4166 }, { compounds: 1 }); 4167 t2.functional(`min`, (e4, t3) => { 4168 if (t3.modifier) return null; 4169 let n4 = i3.get(t3); 4170 if (n4 === null) return null; 4171 e4.nodes = [R(`@media`, `(width >= ${n4})`, e4.nodes)]; 4172 }, { compounds: 1 }); 4173 }, (e4, t3) => n3(e4, t3, `asc`, i3)), t2.suggest(`min`, () => Array.from(r3.keys()).filter((e4) => e4 !== null)); 4174 } 4175 { 4176 let r3 = e3.namespace(`--container`), i3 = new j((t3) => { 4177 switch (t3.kind) { 4178 case `functional`: { 4179 if (t3.value === null) return null; 4180 let n4 = null; 4181 return t3.value.kind === `arbitrary` ? n4 = t3.value.value : t3.value.kind === `named` && (n4 = e3.resolveValue(t3.value.value, [`--container`])), !n4 || n4.includes(`var(`) ? null : n4; 4182 } 4183 case `static`: 4184 case `arbitrary`: 4185 case `compound`: 4186 return null; 4187 } 4188 }); 4189 t2.group(() => { 4190 t2.functional(`@max`, (e4, t3) => { 4191 let n4 = i3.get(t3); 4192 if (n4 === null) return null; 4193 e4.nodes = [R(`@container`, t3.modifier ? `${t3.modifier.value} (width < ${n4})` : `(width < ${n4})`, e4.nodes)]; 4194 }, { compounds: 1 }); 4195 }, (e4, t3) => n3(e4, t3, `desc`, i3)), t2.suggest(`@max`, () => Array.from(r3.keys()).filter((e4) => e4 !== null)), t2.group(() => { 4196 t2.functional(`@`, (e4, t3) => { 4197 let n4 = i3.get(t3); 4198 if (n4 === null) return null; 4199 e4.nodes = [R(`@container`, t3.modifier ? `${t3.modifier.value} (width >= ${n4})` : `(width >= ${n4})`, e4.nodes)]; 4200 }, { compounds: 1 }), t2.functional(`@min`, (e4, t3) => { 4201 let n4 = i3.get(t3); 4202 if (n4 === null) return null; 4203 e4.nodes = [R(`@container`, t3.modifier ? `${t3.modifier.value} (width >= ${n4})` : `(width >= ${n4})`, e4.nodes)]; 4204 }, { compounds: 1 }); 4205 }, (e4, t3) => n3(e4, t3, `asc`, i3)), t2.suggest(`@min`, () => Array.from(r3.keys()).filter((e4) => e4 !== null)), t2.suggest(`@`, () => Array.from(r3.keys()).filter((e4) => e4 !== null)); 4206 } 4207 } 4208 return n2(`portrait`, [`@media (orientation: portrait)`]), n2(`landscape`, [`@media (orientation: landscape)`]), n2(`ltr`, [`&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)`]), n2(`rtl`, [`&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)`]), n2(`dark`, [`@media (prefers-color-scheme: dark)`]), n2(`starting`, [`@starting-style`]), n2(`print`, [`@media print`]), n2(`forced-colors`, [`@media (forced-colors: active)`]), n2(`inverted-colors`, [`@media (inverted-colors:
4208inverted)`]), n2(`pointer-none`, [`@media (pointer: none)`]), n2(`pointer-coarse`, [`@media (pointer: coarse)`]), n2(`pointer-fine`, [`@media (pointer: fine)`]), n2(`any-pointer-none`, [`@media (any-pointer: none)`]), n2(`any-pointer-coarse`, [`@media (any-pointer: coarse)`]), n2(`any-pointer-fine`, [`@media (any-pointer: fine)`]), n2(`noscript`, [`@media (scripting: none)`]), t2; 4209} 4210function ba(e3) { 4211 if (e3.includes(`=`)) { 4212 let [t2, ...n2] = _(e3, `=`), r2 = n2.join(`=`).trim(); 4213 if (r2[0] === `'` || r2[0] === `"`) return e3; 4214 if (r2.length > 1) { 4215 let e4 = r2[r2.length - 1]; 4216 if (r2[r2.length - 2] === ` ` && (e4 === `i` || e4 === `I` || e4 === `s` || e4 === `S`)) return `${t2}="${r2.slice(0, -2)}" ${e4}`; 4217 } 4218 return `${t2}="${r2}"`; 4219 } 4220 return e3; 4221} 4222function xa(e3, t2) { 4223 I(e3, (e4) => { 4224 if (e4.kind === `at-rule` && e4.name === `@slot`) return F.ReplaceSkip(t2); 4225 if (e4.kind === `at-rule` && (e4.name === `@keyframes` || e4.name === `@property`)) return Object.assign(e4, V([R(e4.name, e4.params, e4.nodes)])), F.Skip; 4226 }); 4227} 4228function Sa(e3, t2) { 4229 let n2 = 0; 4230 return I(e3, (e4) => { 4231 if (e4.kind !== `at-rule` || e4.name !== `@variant`) return; 4232 let r2 = [], i2 = _(e4.params, `,`); 4233 for (let [n3, a2] of i2.entries()) { 4234 let o2 = L(`&`, n3 === i2.length - 1 ? e4.nodes : e4.nodes.map(H)), s2 = _(a2, `:`); 4235 for (let e5 = s2.length - 1; e5 >= 0; --e5) { 4236 let n4 = s2[e5].trim(); 4237 if (!n4) throw Error("Cannot use `@variant` with empty variant"); 4238 let r3 = t2.parseVariant(n4); 4239 if (r3 === null) throw Error(`Cannot use \`@variant\` with unknown variant: ${n4}`); 4240 if (Da(o2, r3, t2.variants) === null) throw Error(`Cannot use \`@variant\` with variant: ${n4}`); 4241 } 4242 r2.push(o2); 4243 } 4244 return n2 |= 32, F.Replace(r2); 4245 }), n2; 4246} 4247function Ca(e3, t2) { 4248 let n2 = xn(e3), r2 = ya(e3), i2 = new j((e4) => Yt(e4, u2)), a2 = new j((e4) => Array.from(qt(e4, u2))), o2 = new j((e4) => new j((t3) => { 4249 let n3 = Ea(t3, u2, e4); 4250 try { 4251 qn(n3.map(({ node: e5 }) => e5), u2), Sa(n3.map(({ node: e5 }) => e5), u2); 4252 } catch { 4253 return []; 4254 } 4255 return n3; 4256 })), s2 = new j((t3) => { 4257 for (let n3 of wt(t3)) e3.markUsedVariable(n3); 4258 }); 4259 function c2(e4) { 4260 let n3 = []; 4261 for (let r3 of e4) { 4262 let e5 = true, { astNodes: i3 } = Ta([r3], u2, { onInvalidCandidate() { 4263 e5 = false; 4264 } }); 4265 t2 && I(i3, (e6) => (e6.src ?? (e6.src = t2), F.Continue)), i3 = kt(i3, u2, 0), n3.push(e5 ? i3 : []); 4266 } 4267 return n3; 4268 } 4269 function l2(e4) { 4270 return c2(e4).map((e5) => e5.length > 0 ? At(e5) : null); 4271 } 4272 let u2 = { theme: e3, utilities: n2, variants: r2, invalidCandidates: /* @__PURE__ */ new Set(), important: false, candidatesToCss: l2, candidatesToAst: c2, getClassOrder(e4) { 4273 return ha(this, e4); 4274 }, getClassList() { 4275 return fa(this); 4276 }, getVariants() { 4277 return ma(this); 4278 }, parseCandidate(e4) { 4279 return a2.get(e4); 4280 }, parseVariant(e4) { 4281 return i2.get(e4); 4282 }, compileAstNodes(e4, t3 = 1) { 4283 return o2.get(t3).get(e4); 4284 }, printCandidate(e4) { 4285 return Zt(u2, e4); 4286 }, printVariant(e4) { 4287 return $t(e4); 4288 }, getVariantOrder() { 4289 let e4 = Array.from(i2.values()); 4290 e4.sort((e5, t4) => this.variants.compare(e5, t4)); 4291 let t3 = /* @__PURE__ */ new Map(), n3, r3 = 0; 4292 for (let i3 of e4) i3 !== null && (n3 !== void 0 && this.variants.compare(n3, i3) !== 0 && r3++, t3.set(i3, r3), n3 = i3); 4293 return t3; 4294 }, resolveThemeValue(t3, n3 = true) { 4295 let r3 = t3.lastIndexOf(`/`), i3 = null; 4296 r3 !== -1 && (i3 = t3.slice(r3 + 1).trim(), t3 = t3.slice(0, r3).trim()); 4297 let a3 = e3.resolve(null, [t3], +!!n3) ?? void 0; 4298 return i3 && a3 ? G(a3, i3) : a3; 4299 }, trackUsedVariables(e4) { 4300 s2.get(e4); 4301 }, canonicalizeCandidates(e4, t3) { 4302 return ii(this, e4, t3); 4303 }, storage: {} }; 4304 return u2; 4305} 4306var wa = `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.zoom.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.scrollbar-width.scrollbar-color.scrollbar-gutter.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-p
4306osition.--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.tab-size.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`.split(`.`); 4307function Ta(e3, t2, { onInvalidCandidate: n2, respectImportant: r2 } = {}) { 4308 let i2 = /* @__PURE__ */ new Map(), a2 = [], o2 = /* @__PURE__ */ new Map(); 4309 for (let r3 of e3) { 4310 if (t2.invalidCandidates.has(r3)) { 4311 n2?.(r3); 4312 continue; 4313 } 4314 let e4 = t2.parseCandidate(r3); 4315 if (e4.length === 0) { 4316 n2?.(r3); 4317 continue; 4318 } 4319 o2.set(r3, e4); 4320 } 4321 let s2 = 0; 4322 (r2 ?? true) && (s2 |= 1); 4323 let c2 = t2.getVariantOrder(); 4324 for (let [e4, r3] of o2) { 4325 let o3 = false; 4326 for (let n3 of r3) { 4327 let r4 = t2.compileAstNodes(n3, s2); 4328 if (r4.length !== 0) { 4329 o3 = true; 4330 for (let { node: t3, propertySort: o4 } of r4) { 4331 let r5 = 0n; 4332 for (let e5 of n3.variants) r5 |= 1n << BigInt(c2.get(e5)); 4333 i2.set(t3, { properties: o4, variants: r5, candidate: e4 }), a2.push(t3); 4334 } 4335 } 4336 } 4337 o3 || n2?.(e4); 4338 } 4339 return a2.sort((e4, t3) => { 4340 let n3 = i2.get(e4), r3 = i2.get(t3); 4341 if (n3.variants - r3.variants !== 0n) return Number(n3.variants - r3.variants); 4342 let a3 = 0; 4343 for (; a3 < n3.properties.order.length && a3 < r3.properties.order.length && n3.properties.order[a3] === r3.properties.order[a3]; ) a3 += 1; 4344 return (n3.properties.order[a3] ?? 1 / 0) - (r3.properties.order[a3] ?? 1 / 0) || r3.properties.count - n3.properties.count || Zn(n3.candidate, r3.candidate); 4345 }), { astNodes: a2, nodeSorting: i2 }; 4346} 4347function Ea(e3, t2, n2) { 4348 let r2 = ka(e3, t2); 4349 if (r2.length === 0) return []; 4350 let i2 = t2.important && !!(n2 & 1), a2 = [], o2 = `.${ke(e3.raw)}`; 4351 for (let n3 of r2) { 4352 let r3 = ja(n3); 4353 (e3.important || i2) && Aa(n3); 4354 let s2 = { kind: `rule`, selector: o2, nodes: n3 }; 4355 for (let n4 of e3.variants) if (Da(s2, n4, t2.variants) === null) return []; 4356 a2.push({ node: s2, propertySort: r3 }); 4357 } 4358 return a2; 4359} 4360function Da(e3, t2, n2, r2 = 0) { 4361 if (t2.kind === `arbitrary`) { 4362 if (t2.relative && r2 === 0) return null; 4363 e3.nodes = [z(t2.selector, e3.nodes)]; 4364 return; 4365 } 4366 let { applyFn: i2 } = n2.get(t2.root); 4367 if (t2.kind === `compound`) { 4368 let a2 = R(`@slot`); 4369 if (Da(a2, t2.variant, n2, r2 + 1) === null || t2.root === `not` && a2.nodes.length > 1) return null; 4370 for (let e4 of a2.nodes) if (e4.kind !== `rule` && e4.kind !== `at-rule` || i2(e4, t2) === null) return null; 4371 I(a2.nodes, (t3) => { 4372 if ((t3.kind === `rule` || t3.kind === `at-rule`) && t3.no
4372des.length <= 0) return t3.nodes = e3.nodes, F.Skip; 4373 }), e3.nodes = a2.nodes; 4374 return; 4375 } 4376 if (i2(e3, t2) === null) return null; 4377} 4378function Oa(e3) { 4379 let t2 = e3.options?.types ?? []; 4380 return t2.length > 1 && t2.includes(`any`); 4381} 4382function ka(e3, t2) { 4383 if (e3.kind === `arbitrary`) { 4384 let n3 = e3.value; 4385 return e3.modifier && (n3 = K(n3, e3.modifier, t2.theme)), n3 === null ? [] : [[B(e3.property, n3)]]; 4386 } 4387 let n2 = t2.utilities.get(e3.root) ?? [], r2 = [], i2 = n2.filter((e4) => !Oa(e4)); 4388 for (let t3 of i2) { 4389 if (t3.kind !== e3.kind) continue; 4390 let n3 = t3.compileFn(e3); 4391 if (n3 !== void 0) { 4392 if (n3 === null) { 4393 if (t3.options?.types?.length) return r2; 4394 continue; 4395 } 4396 r2.push(n3); 4397 } 4398 } 4399 if (r2.length > 0) return r2; 4400 let a2 = n2.filter((e4) => Oa(e4)); 4401 for (let t3 of a2) { 4402 if (t3.kind !== e3.kind) continue; 4403 let n3 = t3.compileFn(e3); 4404 if (n3 !== void 0) { 4405 if (n3 === null) { 4406 if (t3.options?.types?.length) return r2; 4407 continue; 4408 } 4409 r2.push(n3); 4410 } 4411 } 4412 return r2; 4413} 4414function Aa(e3) { 4415 for (let t2 of e3) t2.kind !== `at-root` && (t2.kind === `declaration` ? t2.important = true : (t2.kind === `rule` || t2.kind === `at-rule`) && Aa(t2.nodes)); 4416} 4417function ja(e3) { 4418 let t2 = /* @__PURE__ */ new Set(), n2 = 0, r2 = e3.slice(), i2 = false; 4419 for (; r2.length > 0; ) { 4420 let e4 = r2.shift(); 4421 if (e4.kind === `declaration`) { 4422 if (e4.value === void 0 || (n2++, i2)) continue; 4423 if (e4.property === `--tw-sort`) { 4424 let n3 = wa.indexOf(e4.value ?? ``); 4425 if (n3 !== -1) { 4426 t2.add(n3), i2 = true; 4427 continue; 4428 } 4429 } 4430 let r3 = wa.indexOf(e4.property); 4431 r3 !== -1 && t2.add(r3); 4432 } else if (e4.kind === `rule` || e4.kind === `at-rule`) for (let t3 of e4.nodes) r2.push(t3); 4433 } 4434 return { order: Array.from(t2).sort((e4, t3) => e4 - t3), count: n2 }; 4435} 4436function Ma(e3, t2) { 4437 let n2 = 0, r2 = z(`&`, e3), i2 = /* @__PURE__ */ new Set(), a2 = new j(() => /* @__PURE__ */ new Set()), o2 = new j(() => /* @__PURE__ */ new Set()); 4438 I([r2], (e4, r3) => { 4439 if (e4.kind === `at-rule`) { 4440 if (e4.name === `@keyframes`) return I(e4.nodes, (e5) => { 4441 if (e5.kind === `at-rule` && e5.name === `@apply`) throw Error("You cannot use `@apply` inside `@keyframes`."); 4442 }), F.Skip; 4443 if (e4.name === `@utility`) { 4444 let n3 = e4.params.replace(/-\*$/, ``); 4445 o2.get(n3).add(e4), I(e4.nodes, (n4) => { 4446 if (!(n4.kind !== `at-rule` || n4.name !== `@apply`)) { 4447 i2.add(e4); 4448 for (let r4 of Na(n4, t2)) a2.get(e4).add(r4); 4449 } 4450 }); 4451 return; 4452 } 4453 if (e4.name === `@apply`) { 4454 if (r3.parent === null) return; 4455 n2 |= 1, i2.add(r3.parent); 4456 for (let n3 of Na(e4, t2)) for (let e5 of r3.path()) i2.has(e5) && a2.get(e5).add(n3); 4457 } 4458 } 4459 }); 4460 let s2 = /* @__PURE__ */ new Set(), c2 = [], l2 = /* @__PURE__ */ new Set(); 4461 function u2(e4, n3 = []) { 4462 if (!s2.has(e4)) { 4463 if (l2.has(e4)) { 4464 let r3 = n3[(n3.indexOf(e4) + 1) % n3.length]; 4465 throw e4.kind === `at-rule` && e4.name === `@utility` && r3.kind === `at-rule` && r3.name === `@utility` && I(e4.nodes, (e5) => { 4466 if (e5.kind !== `at-rule` || e5.name !== `@apply`) return; 4467 let n4 = e5.params.split(/\s+/g); 4468 for (let e6 of n4) for (let n5 of t2.parseCandidate(e6)) switch (n5.kind) { 4469 case `arbitrary`: 4470 break; 4471 case `static`: 4472 case `functional`: 4473 if (r3.params.replace(/-\*$/, ``) === n5.root) throw Error(`You cannot \`@apply\` the \`${e6}\` utility here because it creates a circular dependency.`); 4474 break; 4475 default: 4476 } 4477 }), Error(`Circular dependency detected: 4478 4479${At([e4])} 4480Relies on: 4481 4482${At([r3])}`); 4483 } 4484 l2.add(e4); 4485 for (let t3 of a2.get(e4)) for (let r3 of o2.get(t3)) n3.push(e4), u2(r3, n3), n3.pop(); 4486 s2.add(e4), l2.delete(e4), c2.push(e4); 4487 } 4488 } 4489 for (let e4 of i2) u2(e4); 4490 for (let e4 of c2) `nodes` in e4 && I(e4.nodes, (e5) => { 4491 if (e5.kind !== `at-rule` || e5.name !== `@apply`) return; 4492 let n3 = e5.params.split(/(\s+)/g), r3 = {}, i3 = [], a3 = [], o3 = 0; 4493 for (let [e6, t3] of n3.entries()) e6 % 2 == 0 && (t3[0] === `-` && t3[1] === `-` ? a3.push(t3) : i3.push(t3), r3[t3] = o3), o3 += t3.length; 4494 if (a3.length) { 4495 if (i3.length === 0) return F.Skip; 4496 let e6 = a3.join(` `); 4497 throw Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${e6}\` into a separate rule.`); 4498 } 4499 if (e5.nodes.length > 0 && i3.length) { 4500 let e6 = i3.join(` `); 4501 throw Error(`The rule \`@apply ${e6}\` must not have a body.`); 4502 } 4503 { 4504 let n4 = Ta(Object.keys(r3), t2, { respectImportant: false, onInvalidCandidate: (e6) => { 4505 if (t2.theme.prefix && !e6.startsWith(t2.theme.prefix)) throw Error(`Cannot apply unprefixed utility class \`${e6}\`. Did you mean \`${t2.theme.prefix}:${e6}\`?`); 4506 if (t2.invalidCandidates.has(e6)) throw Error(`Cannot apply utility class \`${e6}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`); 4507 let n5 = _(e6, `:`); 4508 if (n5.length > 1) { 4509 let r4 = n5.pop(); 4510 if (t2.candidatesToCss([r4])[0]) { 4511 let r5 = t2.candidatesToCss(n5.map((e7) => `${e7}:[--tw-variant-check:1]`)), i5 = n5.filter((e7, t3) => r5[t3] === null); 4512 if (i5.length > 0) { 4513 if (i5.length === 1) throw Error(`Cannot apply utility class \`${e6}\` because the ${i5.map((e7) => `\`${e7}\``)} variant does not exist.`); 4514 { 4515 let t3 = new Intl.ListFormat(`en`, { style: `long`, type: `conjunction` }); 4516 throw Error(`Cannot apply utility class \`${e6}\` because the ${t3.format(i5.map((e7) => `\`${e7}\``))} variants do not exist.`); 4517 } 4518 } 4519 } 4520 } 4521 throw t2.theme.size === 0 ? Error(`Cannot apply unknown utility class \`${e6}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`) : Error(`Cannot apply unknown utility class \`${e6}\``); 4522 } }), i4 = e5.src, a4 = n4.astNodes.map((e6) => { 4523 let t3 = n4.nodeSorting.get(e6)?.candidate, a5 = t3 ? r3[t3] : void 0; 4524 if (e6 = H(e6), !i4 || !t3 || a5 === void 0) return I([e6], (e7) => { 4525 e7.src = i4; 4526 }), e6; 4527 let o5 = [i4[0], i4[1], i4[2]]; 4528 return o5[1] += 7 + a5, o5[2] = o5[1] + t3.length, I([e6], (e7) => { 4529 e7.src = o5; 4530 }), e6; 4531 }), o4 = []; 4532 for (let e6 of a4) if (e6.kind === `rule`) for (let t3 of e6.nodes) o4.push(t3); 4533 else o4.push(e6); 4534 return F.Replace(o4); 4535 } 4536 }); 4537 return n2; 4538} 4539function* Na(e3, t2) { 4540 for (let n2 of e3.params.split(/\s+/g)) for (let e4 of t2.parseCandidate(n2)) switch (e4.kind) { 4541 case `arbitrary`: 4542 break; 4543 case `static`: 4544 case `functional`: 4545 yield e4.root; 4546 break; 4547 default: 4548 } 4549} 4550async function Pa(e3, t2, n2, r2 = 0, i2 = false) { 4551 let a2 = 0, o2 = []; 4552 return I(e3, (e4) => { 4553 if (e4.kind === `at-rule` && (e4.name === `@import` || e4.name === `@reference`)) { 4554 let s2 = Fa(P(e4.params)); 4555 if (s2 === null) return; 4556 e4.name === `@reference` && (s2.media = `reference`), a2 |= 2; 4557 let { uri: c2, layer: l2, media: u2, supports: d2 } = s2; 4558 if (c2.startsWith(`data:`) || c2.startsWith(`http://`) || c2.startsWith(`https://`)) return; 4559 let f2 = Dt({}, []); 4560 return o2.push((async () => { 4561 if (r2 > 100) throw Error(`Exceeded maximum recursion depth while resolving \`${c2}\` in \`${t2}\`)`); 4562 let a3 = await n2(c2, t2), o3 = nt(a3.content, { from: i2 ? a3.path : void 0 });
4563 await Pa(o3, a3.base, n2, r2 + 1, i2), f2.nodes = Ia(e4, [Dt({ base: a3.base }, o3)], l2, u2, d2); 4564 })()), F.ReplaceSkip(f2); 4565 } 4566 }), o2.length > 0 && await Promise.all(o2), a2; 4567} 4568function Fa(e3) { 4569 let t2, n2 = null, r2 = null, i2 = null; 4570 for (let a2 = 0; a2 < e3.length; a2++) { 4571 let o2 = e3[a2]; 4572 if (o2.kind !== `separator`) { 4573 if (o2.kind === `word` && !t2) { 4574 if (!o2.value || o2.value[0] !== `"` && o2.value[0] !== `'`) return null; 4575 t2 = o2.value.slice(1, -1); 4576 continue; 4577 } 4578 if (o2.kind === `function` && o2.value.toLowerCase() === `url` || !t2) return null; 4579 if ((o2.kind === `word` || o2.kind === `function`) && o2.value.toLowerCase() === `layer`) { 4580 if (n2) return null; 4581 if (i2) throw Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions"); 4582 n2 = `nodes` in o2 ? N(o2.nodes) : ``; 4583 continue; 4584 } 4585 if (o2.kind === `function` && o2.value.toLowerCase() === `supports`) { 4586 if (i2) return null; 4587 i2 = N(o2.nodes); 4588 continue; 4589 } 4590 r2 = N(e3.slice(a2)); 4591 break; 4592 } 4593 } 4594 return t2 ? { uri: t2, layer: n2, media: r2, supports: i2 } : null; 4595} 4596function Ia(e3, t2, n2, r2, i2) { 4597 let a2 = t2; 4598 if (n2 !== null) { 4599 let t3 = R(`@layer`, n2, a2); 4600 t3.src = e3.src, a2 = [t3]; 4601 } 4602 if (r2 !== null) { 4603 let t3 = R(`@media`, r2, a2); 4604 t3.src = e3.src, a2 = [t3]; 4605 } 4606 if (i2 !== null) { 4607 let t3 = R(`@supports`, i2[0] === `(` ? i2 : `(${i2})`, a2); 4608 t3.src = e3.src, a2 = [t3]; 4609 } 4610 return a2; 4611} 4612function La(e3) { 4613 if (Object.prototype.toString.call(e3) !== `[object Object]`) return false; 4614 let t2 = Object.getPrototypeOf(e3); 4615 return t2 === null || Object.getPrototypeOf(t2) === null; 4616} 4617function Ra(e3, t2, n2, r2 = []) { 4618 for (let i2 of t2) if (i2 != null) for (let t3 of Reflect.ownKeys(i2)) { 4619 r2.push(t3); 4620 let a2 = n2(e3[t3], i2[t3], r2); 4621 a2 === void 0 ? !La(e3[t3]) || !La(i2[t3]) ? e3[t3] = i2[t3] : e3[t3] = Ra({}, [e3[t3], i2[t3]], n2, r2) : e3[t3] = a2, r2.pop(); 4622 } 4623 return e3; 4624} 4625function za(e3, t2, n2) { 4626 return function(r2, i2) { 4627 let a2 = r2.lastIndexOf(`/`), o2 = null; 4628 a2 !== -1 && (o2 = r2.slice(a2 + 1).trim(), r2 = r2.slice(0, a2).trim()); 4629 let s2 = (() => { 4630 let i3 = Jr(r2), [a3, o3] = Ba(e3.theme, i3), s3 = n2(Va(t2() ?? {}, i3) ?? null); 4631 if (typeof s3 == `string` && (s3 = s3.replace(`<alpha-value>`, `1`)), typeof a3 != `object`) return typeof o3 != `object` && o3 & 4 ? s3 ?? a3 : a3; 4632 if (typeof s3 == `object` && s3 && !Array.isArray(s3)) { 4633 let e4 = Ra({}, [s3], (e5, t3) => t3); 4634 if (a3 === null && Object.hasOwn(s3, `__CSS_VALUES__`)) { 4635 let t3 = {}; 4636 for (let n3 in s3.__CSS_VALUES__) t3[n3] = s3[n3], delete e4[n3]; 4637 a3 = t3; 4638 } 4639 for (let t3 in a3) t3 !== `__CSS_VALUES__` && (s3?.__CSS_VALUES__?.[t3] & 4 && Va(e4, t3.split(`-`)) !== void 0 || (e4[Ae(t3)] = a3[t3])); 4640 return e4; 4641 } 4642 if (Array.isArray(a3) && Array.isArray(o3) && Array.isArray(s3)) { 4643 let e4 = a3[0], t3 = a3[1]; 4644 o3[0] & 4 && (e4 = s3[0] ?? e4); 4645 for (let e5 of Object.keys(t3)) o3[1][e5] & 4 && (t3[e5] = s3[1][e5] ?? t3[e5]); 4646 return [e4, t3]; 4647 } 4648 return a3 ?? s3; 4649 })(); 4650 return o2 && typeof s2 == `string` && (s2 = G(s2, o2)), s2 ?? i2; 4651 }; 4652} 4653function Ba(e3, t2) { 4654 if (t2.length === 1 && t2[0].startsWith(`--`)) return [e3.get([t2[0]]), e3.getOptions(t2[0])]; 4655 let n2 = cr(t2), r2 = /* @__PURE__ */ new Map(), i2 = new j(() => /* @__PURE__ */ new Map()), a2 = e3.namespace(`--${n2}`); 4656 if (a2.size === 0) return [null, 0]; 4657 let o2 = /* @__PURE__ */ new Map(); 4658 for (let [t3, s3] of a2) { 4659 if (!t3 || !t3.includes(`--`)) { 4660 r2.set(t3, s3), o2.set(t3, e3.getOptions(t3 ? `--${n2}-${t3}` : `--${n2}`)); 4661 continue; 4662 } 4663 let a3 = t3.indexOf(`--`), c3 = t3.slice(0, a3), l3 = t3.slice(a3 + 2); 4664 l3 = l3.replace(/-([a-z])/g, (e4, t4) => t4.toUpperCase()), i2.get(c3 === `` ? null : c3).set(l3, [s3, e3.getOptions(`--${n2}${t3}`)]); 4665 } 4666 let s2 = e3.getOptions(`--${n2}`); 4667 for (let [e4, t3] of i2) { 4668 let n3 = r2.get(e4); 4669 if (typeof n3 != `string`) continue; 4670 let i3 = {}, a3 = {}; 4671 for (let [e5, [n4, r3]] of t3) i3[e5] = n4, a3[e5] = r3; 4672 r2.set(e4, [n3, i3]), o2.set(e4, [s2, a3]); 4673 } 4674 let c2 = {}, l2 = {}; 4675 for (let [e4, t3] of r2) Ha(c2, [e4 ?? `DEFAULT`], t3); 4676 for (let [e4, t3] of o2) Ha(l2, [e4 ?? `DEFAULT`], t3); 4677 return t2[t2.length - 1] === `DEFAULT` ? [c2?.DEFAULT ?? null, l2.DEFAULT ?? 0] : `DEFAULT` in c2 && Ob
4677ject.keys(c2).length === 1 ? [c2.DEFAULT, l2.DEFAULT ?? 0] : (c2.__CSS_VALUES__ = l2, [c2, l2]); 4678} 4679function Va(e3, t2) { 4680 for (let n2 = 0; n2 < t2.length; ++n2) { 4681 let r2 = t2[n2]; 4682 if (typeof e3 != `object` || !e3 || !Object.hasOwn(e3, r2)) { 4683 if (t2[n2 + 1] === void 0) return; 4684 t2[n2 + 1] = `${r2}-${t2[n2 + 1]}`; 4685 continue; 4686 } 4687 e3 = e3[r2]; 4688 } 4689 return e3; 4690} 4691function Ha(e3, t2, n2) { 4692 for (let n3 of t2.slice(0, -1)) e3[n3] === void 0 && (e3[n3] = {}), e3 = e3[n3]; 4693 e3[t2[t2.length - 1]] = n2; 4694} 4695var Ua = /^[a-z@][a-zA-Z0-9/%._-]*$/; 4696function Wa({ designSystem: e3, ast: t2, resolvedConfig: n2, featuresRef: r2, referenceMode: i2, src: a2 }) { 4697 let o2 = { addBase(n3) { 4698 if (i2) return; 4699 let o3 = Ga(n3); 4700 r2.current |= qn(o3, e3), r2.current |= Sa(o3, e3); 4701 let s2 = R(`@layer`, `base`, o3); 4702 I([s2], (e4) => { 4703 e4.src = a2; 4704 }), t2.push(s2); 4705 }, addVariant(t3, n3) { 4706 if (!ga.test(t3)) throw Error(`\`addVariant('${t3}')\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`); 4707 if (typeof n3 == `string`) { 4708 if (n3.includes(`:merge(`)) return; 4709 } else if (Array.isArray(n3)) { 4710 if (n3.some((e4) => e4.includes(`:merge(`))) return; 4711 } else if (typeof n3 == `object`) { 4712 let e4 = function(t4, n4) { 4713 return Object.entries(t4).some(([t5, r3]) => t5.includes(n4) || typeof r3 == `object` && e4(r3, n4)); 4714 }; 4715 if (e4(n3, `:merge(`)) return; 4716 } 4717 typeof n3 == `string` || Array.isArray(n3) ? e3.variants.static(t3, (e4) => { 4718 e4.nodes = Ka(n3, e4.nodes); 4719 }, { compounds: va(typeof n3 == `string` ? [n3] : n3) }) : typeof n3 == `object` && e3.variants.fromAst(t3, Ga(n3), e3); 4720 }, matchVariant(t3, n3, r3) { 4721 function i3(e4, t4, r4) { 4722 return Ka(n3(e4, { modifier: t4?.value ?? null }), r4); 4723 } 4724 try { 4725 let e4 = n3(`a`, { modifier: null }); 4726 if (typeof e4 == `string` && e4.includes(`:merge(`) || Array.isArray(e4) && e4.some((e5) => e5.includes(`:merge(`))) return; 4727 } catch { 4728 } 4729 let a3 = Object.keys(r3?.values ?? {}); 4730 e3.variants.group(() => { 4731 e3.variants.functional(t3, (e4, t4) => { 4732 if (!t4.value) { 4733 if (r3?.values && `DEFAULT` in r3.values) { 4734 e4.nodes = i3(r3.values.DEFAULT, t4.modifier, e4.nodes); 4735 return; 4736 } 4737 return null; 4738 }
4739 if (t4.value.kind === `arbitrary`) e4.nodes = i3(t4.value.value, t4.modifier, e4.nodes); 4740 else if (t4.value.kind === `named` && r3?.values) { 4741 if (!Object.hasOwn(r3.values, t4.value.value)) return null; 4742 let n4 = r3.values[t4.value.value]; 4743 if (typeof n4 != `string`) return null; 4744 e4.nodes = i3(n4, t4.modifier, e4.nodes); 4745 } else return null; 4746 }); 4747 }, (e4, t4) => { 4748 if (e4.kind !== `functional` || t4.kind !== `functional`) return 0; 4749 let n4 = e4.value ? e4.value.value : `DEFAULT`, i4 = t4.value ? t4.value.value : `DEFAULT`, o3 = (r3?.values && Object.hasOwn(r3.values, n4) ? r3.values[n4] : void 0) ?? n4, s2 = (r3?.values && Object.hasOwn(r3.values, i4) ? r3.values[i4] : void 0) ?? i4; 4750 if (r3 && typeof r3.sort == `function`) return r3.sort({ value: o3, modifier: e4.modifier?.value ?? null }, { value: s2, modifier: t4.modifier?.value ?? null }); 4751 let c2 = a3.indexOf(n4), l2 = a3.indexOf(i4); 4752 return c2 = c2 === -1 ? a3.length : c2, l2 = l2 === -1 ? a3.length : l2, c2 === l2 ? o3 < s2 ? -1 : 1 : c2 - l2; 4753 }), e3.variants.suggest(t3, () => Object.keys(r3?.values ?? {}).filter((e4) => e4 !== `DEFAULT`)); 4754 }, addUtilities(n3) { 4755 n3 = Array.isArray(n3) ? n3 : [n3]; 4756 let o3 = n3.flatMap((e4) => Object.entries(e4)); 4757 o3 = o3.flatMap(([e4, t3]) => _(e4, `,`).map((e5) => [e5.trim(), t3])); 4758 let s2 = new j(() => []); 4759 for (let [e4, n4] of o3) { 4760 if (e4.startsWith(`@keyframes `)) { 4761 if (!i2) { 4762 let r4 = z(e4, Ga(n4)); 4763 I([r4], (e5) => { 4764 e5.src = a2; 4765 }), t2.push(r4); 4766 } 4767 continue; 4768 } 4769 let r3 = qr(e4), o4 = false; 4770 if (I(r3, (e5) => { 4771 if (e5.kind === `selector` && e5.value[0] === `.` && Ua.test(e5.value.slice(1))) { 4772 let t3 = e5.value; 4773 e5.value = `&`; 4774 let i3 = Y(r3), a3 = t3.slice(1), c2 = i3 === `&` ? Ga(n4) : [z(i3, Ga(n4))]; 4775 s2.get(a3).push(...c2), o4 = true, e5.value = t3; 4776 return; 4777 } 4778 if (e5.kind === `function` && e5.value === `:not`) return F.Skip; 4779 }), !o4) throw Error(`\`addUtilities({ '${e4}' : \u2026 })\` defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. \`.scrollbar-none\`.`); 4780 } 4781 for (let [t3, n4] of s2) e3.theme.prefix && I(n4, (t4) => { 4782 if (t4.kind === `rule`) { 4783 let n5 = qr(t4.selector); 4784 I(n5, (t5) => { 4785 t5.kind === `selector` && t5.value[0] === `.` && (t5.value = `.${e3.theme.prefix}\\:${t5.value.slice(1)}`); 4786 }), t4.selector = Y(n5); 4787 } 4788 }), e3.utilities.static(t3, (i3) => { 4789 let a3 = n4.map(H); 4790 return qa(a3, t3, i3.raw), r2.current |= Ma(a3, e3), a3; 4791 }); 4792 }, matchUtilities(t3, n3) { 4793 let i3 = n3?.type ? Array.isArray(n3?.type) ? n3.type : [n3.type] : [`any`]; 4794 for (let [a3, o3] of Object.entries(t3)) { 4795 let t4 = function({ negative: t5 }) { 4796 return (s2) => { 4797 if (s2.value?.kind === `arbitrary` && i3.length > 0 && !i3.includes(`any`) && (s2.value.dataType && !i3.includes(s2.value.dataType) || !s2.value.dataType && !y(s2.value.value, i3))) return; 4798 let c2 = i3.includes(`color`), l2 = null, u2 = false; 4799 { 4800 let e4 = n3?.values ?? {}; 4801 c2 && (e4 = Object.assign({ inherit: `inherit`, transparent: `transparent`, current: `currentcolor` }, e4)), s2.value ? s2.value.kind === `arbitrary` ? l2 = s2.value.value : s2.value.fraction && Object.hasOwn(e4, s2.value.fraction) ? (l2 = e4[s2.value.fraction], u2 = true) : Object.hasOwn(e4, s2.value.value) ? l2 = e4[s2.value.value] : e4.__BARE_VALUE__ && (l2 = e4.__BARE_VALUE__(s2.value) ?? null, u2 = (s2.value.fraction !== null && l2?.includes(`/`)) ?? false) : l2 = e4.DEFAULT ?? null; 4802 } 4803 if (l2 === null) return; 4804 let d2; 4805 { 4806 let e4 = n3?.modifiers ?? null; 4807 d2 = s2.modifier ? e4 === `any` || s2.modifier.kind === `arbitrary` ? s2.modifier.value : e4 && Object.hasOwn(e4, s2.modifier.value) ? e4[s2.modifier.value] : c2 && !Number.isNaN(Number(s2.modifier.value)) ? `${s2.modifier.value}%` : null : null; 4808 } 4809 if (s2.modifier && d2 === null && !u2) return s2.value?.kind === `arbitrary` ? null : void 0; 4810 c2 && d2 !== null && (l2 = G(l2, d2)), t5 && (l2 = `calc(${l2} * -1)`); 4811 let f2 = Ga(o3(l2, { modifier: d2 })); 4812 return qa(f2, a3, s2.raw), r2.current |= Ma(f2, e3), f2; 4813 }; 4814 }; 4815 if (!Ua.test(a3)) throw Error(`\`matchUtilities({ '${a3}' : \u2026 }
4815)\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. \`scrollbar\`.`); 4816 n3?.supportsNegativeValues && e3.utilities.functional(`-${a3}`, t4({ negative: true }), { types: i3 }), e3.utilities.functional(a3, t4({ negative: false }), { types: i3 }), e3.utilities.suggest(a3, () => { 4817 let e4 = n3?.values ?? {}, t5 = new Set(Object.keys(e4)); 4818 t5.delete(`__BARE_VALUE__`), t5.delete(`__CSS_VALUES__`), t5.has(`DEFAULT`) && (t5.delete(`DEFAULT`), t5.add(null)); 4819 let r3 = n3?.modifiers ?? {}, i4 = r3 === `any` ? [] : Object.keys(r3); 4820 return [{ supportsNegative: n3?.supportsNegativeValues ?? false, values: Array.from(t5), modifiers: i4 }]; 4821 }); 4822 } 4823 }, addComponents(e4, t3) { 4824 this.addUtilities(e4, t3); 4825 }, matchComponents(e4, t3) { 4826 this.matchUtilities(e4, t3); 4827 }, theme: za(e3, () => n2.theme ?? {}, (e4) => e4), prefix(e4) { 4828 return e4; 4829 }, config(e4, t3) { 4830 let r3 = n2; 4831 if (!e4) return r3; 4832 let i3 = Jr(e4); 4833 for (let e5 = 0; e5 < i3.length; ++e5) { 4834 let n3 = i3[e5]; 4835 if (r3[n3] === void 0) return t3; 4836 r3 = r3[n3]; 4837 } 4838 return r3 ?? t3; 4839 } }; 4840 return o2.addComponents = o2.addComponents.bind(o2), o2.matchComponents = o2.matchComponents.bind(o2), o2; 4841} 4842function Ga(e3) { 4843 let t2 = []; 4844 e3 = Array.isArray(e3) ? e3 : [e3]; 4845 let n2 = e3.flatMap((e4) => Object.entries(e4)); 4846 for (let [e4, r2] of n2) if (r2 != null && r2 !== false) if (typeof r2 != `object`) { 4847 if (!e4.startsWith(`--`)) { 4848 if (r2 === `@slot`) { 4849 t2.push(z(e4, [R(`@slot`)])); 4850 continue; 4851 } 4852 e4 = e4.replace(/([A-Z])/g, `-$1`).toLowerCase(); 4853 } 4854 t2.push(B(e4, String(r2))); 4855 } else if (Array.isArray(r2)) for (let n3 of r2) typeof n3 == `string` ? t2.push(B(e4, n3)) : t2.push(z(e4, Ga(n3))); 4856 else t2.push(z(e4, Ga(r2))); 4857 return t2; 4858} 4859function Ka(e3, t2) { 4860 return (typeof e3 == `string` ? [e3] : e3).flatMap((e4) => { 4861 if (e4.trim().endsWith(`}`)) { 4862 let n2 = nt(e4.replace(`}`, `{@slot}}`)); 4863 return xa(n2, t2), n2; 4864 } else return z(e4, t2); 4865 }); 4866} 4867function qa(e3, t2, n2) { 4868 I(e3, (e4) => { 4869 if (e4.kind === `rule`) { 4870 let r2 = qr(e4.selector); 4871 I(r2, (e5) => { 4872 e5.kind === `selector` && e5.value === `.${t2}` && (e5.value = `.${ke(n2)}`); 4873 }), e4.selector = Y(r2); 4874 } 4875 }); 4876} 4877function Ja(e3, t2) { 4878 for (let n2 of Ya(t2)) e3.theme.addKeyframes(n2); 4879} 4880function Ya(e3) { 4881 let t2 = []; 4882 if (`keyframes` in e3.theme) for (let [n2, r2] of Object.entries(e3.theme.keyframes)) t2.push(R(`@keyframes`, n2, Ga(r2))); 4883 return t2; 4884} 4885function Xa(e3) { 4886 return { theme: { ...Oe, colors: ({ theme: e4 }) => e4(`color`, {}), extend: { fontSize: ({ theme: e4 }) => ({ ...e4(`text`, {}) }), boxShadow: ({ theme: e4 }) => ({ ...e4(`shadow`, {}) }), animation: ({ theme: e4 }) => ({ ...e4(`animate`, {}) }), aspectRatio: ({ theme: e4 }) => ({ ...e4(`aspect`, {}) }), borderRadius: ({ theme: e4 }) => ({ ...e4(`radius`, {}) }), screens: ({ theme: e4 }) => ({ ...e4(`breakpoint`, {}) }), letterSpacing: ({ theme: e4 }) => ({ ...e4(`tracking`, {}) }), lineHeight: ({ theme: e4 }) => ({ ...e4(`leading`, {}) }), transitionDuration: { DEFAULT: e3.get([`--default-transition-duration`]) ?? null }, transitionTimingFunction: { DEFAULT: e3.get([`--default-transition-timing-function`]) ?? null }, maxWidth: ({ theme: e4 }) => ({ ...e4(`container`, {}) }) } } }; 4887} 4888var Za = { blocklist: [], future: {}, experimental: {}, prefix: ``, important: false, darkMode: null, theme: {}, plugins: [], content: { files: [] } }; 4889function Qa(e3, t2) { 4890 let n2 = { design: e3, configs: [], plugins: [], content: { files: [] }, theme: {}, extend: {}, result: structuredClone(Za) }; 4891 for (let e4 of t2) eo(n2, e4); 4892 for (let e4 of n2.configs) `darkMode` in e4 && e4.darkMode !== void 0 && (n2.result.darkMode = e4.darkMode ?? null), `prefix` in e4 && e4.prefix !== void 0 && (n2.result.prefix = e4.prefix ?? ``), `blocklist` in e4 && e4.blocklist !== void 0 && (n2.result.blocklist = e4.blocklist ?? []), `important` in e4 && e4.important !== void 0 && (n2.result.important = e4.important ?? false); 4893 let r2 = to(n2); 4894 return { resolvedConfig: { ...n2.result, content: n2.content, theme: n2.theme, plugins: n2.plugins }, replacedThemeKeys: r2 }; 4895} 4896function $a(e3, t2) { 4897 if (Array.isArray(e3) && La(e3[0])) return e3.concat(t2); 4898 if (Array.isArray(t2) && La(t2[0]) && La(e3)) return [e3, ...t2]; 4899 if (Array.isArray(t2)) return t2; 4900} 4901function eo(e3, { config: t2, base: n2, path: r2, reference: i2, src: a2 }) { 4902 let o2 = []; 4903 for (let e4 of t2.plugins ?? []) `__isOptionsFunction` in e4 ? o2.push({ ...e4(), reference: i2, src: a2 }) : `handler` in e4 ? o2.push({ ...e4, reference: i2, src: a2 }) : o2.push({ handler: e4, reference: i2, src: a2 }); 4904 if (Array.isArray(t2.presets) && t2.presets.length === 0) throw Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported."); 4905 for (let o3 of t2.presets ?? []) eo(e3, { path: r2, base: n2, config: o3, reference: i2, src: a2 }); 4906 for (let t3 of o2) e3.plugins.push(t3), t3.config && eo(e3, { path: r2, base: n2, config: t3.config, reference: !!t3.reference, src: t3.
4906src ?? a2 }); 4907 let s2 = t2.content ?? [], c2 = Array.isArray(s2) ? s2 : s2.files; 4908 for (let t3 of c2) e3.content.files.push(typeof t3 == `object` ? t3 : { base: n2, pattern: t3 }); 4909 e3.configs.push(t2); 4910} 4911function to(e3) { 4912 var _a3; 4913 let t2 = /* @__PURE__ */ new Set(), r2 = za(e3.design, () => e3.theme, a2), i2 = Object.assign(r2, { theme: r2, colors: n }); 4914 function a2(e4) { 4915 return typeof e4 == `function` ? e4(i2) ?? null : e4 ?? null; 4916 } 4917 for (let n2 of e3.configs) { 4918 let r3 = n2.theme ?? {}, i3 = r3.extend ?? {}; 4919 for (let e4 in r3) e4 !== `extend` && t2.add(e4); 4920 Object.assign(e3.theme, r3); 4921 for (let t3 in i3) (_a3 = e3.extend)[t3] ?? (_a3[t3] = []), e3.extend[t3].push(i3[t3]); 4922 } 4923 delete e3.theme.extend; 4924 for (let t3 in e3.extend) { 4925 let n2 = [e3.theme[t3], ...e3.extend[t3]]; 4926 e3.theme[t3] = () => Ra({}, n2.map(a2), $a); 4927 } 4928 for (let t3 in e3.theme) e3.theme[t3] = a2(e3.theme[t3]); 4929 if (e3.theme.screens && typeof e3.theme.screens == `object`) for (let t3 of Object.keys(e3.theme.screens)) { 4930 let n2 = e3.theme.screens[t3]; 4931 n2 && typeof n2 == `object` && (`raw` in n2 || `max` in n2 || `min` in n2 && (e3.theme.screens[t3] = n2.min)); 4932 } 4933 return t2; 4934} 4935function no(e3, t2) { 4936 let n2 = e3.theme.container || {}; 4937 if (typeof n2 != `object` || !n2) return; 4938 let r2 = ro(n2, t2); 4939 r2.length !== 0 && t2.utilities.static(`container`, () => r2.map(H)); 4940} 4941function ro({ center: e3, padding: t2, screens: n2 }, r2) { 4942 let i2 = [], a2 = null; 4943 if (e3 && i2.push(B(`margin-inline`, `auto`)), (typeof t2 == `string` || typeof t2 == `object` && t2 && `DEFAULT` in t2) && i2.push(B(`padding-inline`, typeof t2 == `string` ? t2 : t2.DEFAULT)), typeof n2 == `object` && n2) { 4944 a2 = /* @__PURE__ */ new Map(); 4945 let e4 = Array.from(r2.theme.namespace(`--breakpoint`).entries()); 4946 if (e4.sort((e5, t3) => un(e5[1], t3[1], `asc`)), e4.length > 0) { 4947 let [t3] = e4[0]; 4948 i2.push(R(`@media`, `(width >= --theme(--breakpoint-${t3}))`, [B(`max-width`, `none`)])); 4949 } 4950 for (let [e5, t3] of Object.entries(n2)) { 4951 if (typeof t3 == `object`) if (`min` in t3) t3 = t3.min; 4952 else continue; 4953 a2.set(e5, R(`@media`, `(width >= ${t3})`, [B(`max-width`, t3)])); 4954 } 4955 } 4956 if (typeof t2 == `object` && t2) { 4957 let e4 = Object.entries(t2).filter(([e5]) => e5 !== `DEFAULT`).map(([e5, t3]) => [e5, r2.theme.resolveValue(e5, [`--breakpoint`]), t3]).filter(Boolean); 4958 e4.sort((e5, t3) => un(e5[1], t3[1], `asc`)); 4959 for (let [t3, , n3] of e4) if (a2 && a2.has(t3)) a2.get(t3).nodes.push(B(`padding-inline`, n3)); 4960 else { 4961 if (a2) continue; 4962 i2.push(R(`@media`, `(width >= theme(--breakpoint-${t3}))`, [B(`padding-inline`, n3)])); 4963 } 4964 } 4965 if (a2) for (let [, e4] of a2) i2.push(e4); 4966 return i2; 4967} 4968function io({ addVariant: e3, config: t2 }) { 4969 let n2 = t2(`darkMode`, null), [r2, i2 = `.dark`] = Array.isArray(n2) ? n2 : [n2]; 4970 if (r2 === `variant`) { 4971 let e4; 4972 if (Array.isArray(i2) || typeof i2 == `function` ? e4 = i2 : typeof i2 == `string` && (e4 = [i2]), Array.isArray(e4)) for (let t3 of e4) t3 === `.dark` ? (r2 = false, console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')) : t3.includes(`&`) || (r2 = false, console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`')); 4973 i2 = e4; 4974 } 4975 r2 === null || (r2 === `selector` ? e3(`dark`, `&:where(${i2}, ${i2} *)`) : r2 === `media` ? e3(`dark`, `@media (prefers-color-scheme: dark)`) : r2 === `variant` ? e3(`dark`, i2) : r2 === `class` && e3(`dark`, `&:is(${i2} *)`)); 4976} 4977function ao(e3) { 4978 for (let [t2, n2] of [[`t`, `top`], [`tr`, `top right`], [`r`, `right`], [`br`, `bottom right`], [`b`, `bottom`], [`bl`, `bottom left`], [`l`, `left`], [`tl`, `top left`]]) e3.utilities.suggest(`bg-gradient-to-${t2}`, () => []), e3.utilities.static(`bg-gradient-to-${t2}`, () => [B(`--tw-gradient-position`, `to ${n2} in oklab`), B(`background-image`, `linear-gradient(var(--tw-gradient-stops))`)]); 4979 e3.utilities.suggest(`bg-left-top`, () => []), e3.utilities.static(`bg-left-top`, () => [B(`background-position`, `left top`)]), e3.utilities.suggest(`bg-right-top`, () => []), e3.utilities.static(`bg-right-top`, () => [B(`background-position`, `right top`)]), e3.utilities.suggest(`bg-left-bottom`, () => []), e3.utilities.static(`bg-left-bottom`, () => [B(`background-position`, `left bottom`)]), e3.utilities.suggest(`bg-right-bottom`, () => []), e3.utilities.static(`bg-right-bottom`, () => [B(`background-position`, `right bottom`)]), e3.utilities.suggest(`object-left-top`, () => []), e3.utilities.static(`object-left-top`, () => [B(`object-position`, `left top`)]), e3.utilities.suggest(`object-right-top`, () => []), e3.utilities.static(`object-right-top`, () => [B(`object-position`, `right top`)]), e3.utilities.suggest(`object-left-bottom`, () => []), e3.utilities.static(`object-left-bottom`, () => [B(`object-position`, `left bottom`)]), e3.utilities.suggest(`object-right-bottom`, () => []), e3.utilities.static(`object-right-bottom`, () => [B(`object-position`, `right bottom`)]), e3.utilities.suggest(`max-w-screen`, () => []), e3.utilities.functional(`max-w-screen`, (t2) => { 4980 if (!t2.value || t2.value.kind === `arbitrary`) return; 4981 let n2 = e3.theme.resolve(t2.value.value, [`--breakpoint`]); 4982 if (n2) return [B(`max-width`, n2)]; 4983 }), e3.utilities.suggest(`overflow-ellipsis`, () => []), e3.utilities.static(`overflow-ellipsis`, () => [B(`text-overflow`, `ellipsis`)]), e3.utilities.suggest(`decoration-slice`, () => []), e3.utilities.static(`decoration-slice`, () => [B(`-webkit-box-decoration-break`, `slice`), B(`box-decoration-break`, `slice`)]), e3.utilities.suggest(`decoration-clone`, () => []), e3.utilities.static(`decoration-clone`, () => [B(`-webkit-box-decoration-break`, `clone`), B(`box-decoration-break`, `clone`)]), e3.utilities.suggest(`flex-shrink`, () => []), e3.utilities.functional(`flex-shrink`, (e4) => { 4984 if (!e4.modifier) { 4985 if (!e4.value) return [B(`flex-shrink`, `1`)]; 4986 if (e4.value.kind === `arbitrary` || E(e4.value.value)) return [B(`flex-shrink`, e4.value.value)]; 4987 } 4988 }), e3.utilities.suggest(`flex-grow`, () => []), e3.utilities.functional(`flex-grow`, (e4) => { 4989 if (!e4.modifier) { 4990 if (!e4.value) return [B(`flex-grow`, `1`)]; 4991 if (e4.value.kind === `arbitrary` || E(e4.value.value)) return [B(`flex-grow`, e4.value.value)]; 4992 } 4993 }), e3.utilities.suggest(`order-none`, () => []), e3.utilities.static(`order-none`, () => [B(`order`, `0`)]), e3.utilities.suggest(`break-words`, () => []), e3.utilities.static(`break-words`, () => [B(`overflow-wrap`, `break-word`)]); 4994 for (let [t2, n2] of [[`start`, `inset-inline-start`], [`end`, `inset-inline-end`]]) { 4995 let r2 = function({ negative: t3 }) { 4996 return (r3) => { 4997 if (r3.value === null) return; 4998 if (r3.value.kind === `arbitrary`) { 4999 if (r3.modifier) return; 5000 let e4 = r3.value.value; 5001 return [B(n2, t3 ? `calc(${e4} * -1)` : e4)]; 5002 } 5003 let i2 = e3.theme.resolve(r3.value.fraction ?? r3.value.value, [`--inset`, `--spacing`]); 5004 if (i2 === null && r3.value.fraction) { 5005 let [e4, t4] = _(r3.value.fraction, `/`); 5006 if (!E(e4) || !E(t4)) return; 5007 i2 = `calc(${r3.value.fraction} * 100%)`; 5008 } 5009 if (i2 === null && t3) { 5010 let t4 = e3.theme.resolve(null, [`--spacing`]); 5011 if (t4 && D(r3.value.value) && (i2 = `calc(${t4} * -${r3.value.value})`, i2 !== null)) return [B(n2, i2)]; 5012 } 5013 if (i2 === null) { 5014 let t4 = e3.theme.resolve(null, [`--spacing`]); 5015 t4 && D(r3.value.value) && (i2 = `calc(${t4} * ${r3.value.value})`); 5016 } 5017 if (i2 !== null) return [B(n2, t3 ? `calc(${i2} * -1)` : i2)]; 5018 }; 5019 }; 5020 e3.utilities.static(`${t2}-auto`, () => [B(n2, `auto`)]), e3.utilities.static(`${t2}
5020-full`, () => [B(n2, `100%`)]), e3.utilities.static(`-${t2}-full`, () => [B(n2, `-100%`)]), e3.utilities.static(`${t2}-px`, () => [B(n2, `1px`)]), e3.utilities.static(`-${t2}-px`, () => [B(n2, `-1px`)]), e3.utilities.functional(`-${t2}`, r2({ negative: true })), e3.utilities.functional(t2, r2({ negative: false })); 5021 } 5022} 5023function oo(e3, t2) { 5024 let n2 = e3.theme.screens || {}, r2 = t2.variants.get(`min`)?.order ?? 0, i2 = []; 5025 for (let [e4, a2] of Object.entries(n2)) { 5026 let n3 = function(n4) { 5027 t2.variants.static(e4, (e5) => { 5028 e5.nodes = [R(`@media`, l2, e5.nodes)]; 5029 }, { order: n4 }); 5030 }, o2 = t2.variants.get(e4), s2 = t2.theme.resolveValue(e4, [`--breakpoint`]); 5031 if (o2 && s2 && !t2.theme.hasDefault(`--breakpoint-${e4}`)) continue; 5032 let c2 = true; 5033 typeof a2 == `string` && (c2 = false); 5034 let l2 = so(a2); 5035 c2 ? i2.push(n3) : n3(r2); 5036 } 5037 if (i2.length !== 0) { 5038 for (let [, e4] of t2.variants.variants) e4.order > r2 && (e4.order += i2.length); 5039 t2.variants.compareFns = new Map(Array.from(t2.variants.compareFns).map(([e4, t3]) => (e4 > r2 && (e4 += i2.length), [e4, t3]))); 5040 for (let [e4, t3] of i2.entries()) t3(r2 + e4 + 1); 5041 } 5042} 5043function so(e3) { 5044 return (Array.isArray(e3) ? e3 : [e3]).map((e4) => typeof e4 == `string` ? { min: e4 } : e4 && typeof e4 == `object` ? e4 : null).map((e4) => { 5045 if (e4 === null) return null; 5046 if (`raw` in e4) return e4.raw; 5047 let t2 = ``; 5048 return e4.max !== void 0 && (t2 += `${e4.max} >= `), t2 += `width`, e4.min !== void 0 && (t2 += ` >= ${e4.min}`), `(${t2})`; 5049 }).filter(Boolean).join(`, `); 5050} 5051function co(e3, t2) { 5052 let n2 = e3.theme.aria || {}, r2 = e3.theme.supports || {}, i2 = e3.theme.data || {}; 5053 if (Object.keys(n2).length > 0) { 5054 let e4 = t2.variants.get(`aria`), r3 = e4?.applyFn, i3 = e4?.compounds; 5055 t2.variants.functional(`aria`, (e5, t3) => { 5056 let i4 = t3.value; 5057 return i4 && i4.kind === `named` && i4.value in n2 ? r3?.(e5, { ...t3, value: { kind: `arbitrary`, value: n2[i4.value] } }) : r3?.(e5, t3); 5058 }, { compounds: i3 }); 5059 } 5060 if (Object.keys(r2).length > 0) { 5061 let e4 = t2.variants.get(`supports`), n3 = e4?.applyFn, i3 = e4?.compounds; 5062 t2.variants.functional(`supports`, (e5, t3) => { 5063 let i4 = t3.value; 5064 return i4 && i4.kind === `named` && i4.value in r2 ? n3?.(e5, { ...t3, value: { kind: `arbitrary`, value: r2[i4.value] } }) : n3?.(e5, t3); 5065 }, { compounds: i3 }); 5066 } 5067 if (Object.keys(i2).length > 0) { 5068 let e4 = t2.variants.get(`data`), n3 = e4?.applyFn, r3 = e4?.compounds; 5069 t2.variants.functional(`data`, (e5, t3) => { 5070 let r4 = t3.value; 5071 return r4 && r4.kind === `named` && r4.value in i2 ? n3?.(e5, { ...t3, value: { kind: `arbitrary`, value: i2[r4.value] } }) : n3?.(e5, t3); 5072 }, { compounds: r3 }); 5073 } 5074} 5075var lo = /^[a-z]+$/; 5076async function uo({ designSystem: e3, base: t2, ast: n2, loadModule: r2, sources: i2 }) { 5077 let a2 = 0, o2 = [], s2 = []; 5078 I(n2, (e4, t3) => { 5079 if (e4.kind !== `at-rule`) return; 5080 let n3 = Ot(t3); 5081 if (e4.name === `@plugin`) { 5082 if (n3.parent !== null) throw Error("`@plugin` cannot be nested."); 5083 let t4 = e4.params.slice(1, -1); 5084 if (t4.length === 0) throw Error("`@plugin` must have a path."); 5085 let r3 = {}; 5086 for (let t5 of e4.nodes ?? []) { 5087 if (t5.kind !== `declaration`) throw Error(`Unexpected \`@plugin\` option: 5088 5089${At([t5])} 5090 5091\`@plugin\` options must be a flat list of declarations.`); 5092 if (t5.value === void 0) continue; 5093 let e5 = t5.value, n4 = _(e5, `,`).map((e6) => { 5094 if (e6 = e6.trim(), e6 === `null`) return null; 5095 if (e6 === `true`) return true; 5096 if (e6 === `false`) return false; 5097 if (Number.isNaN(Number(e6))) { 5098 if (e6[0] === `"` && e6[e6.length - 1] === `"` || e6[0] === `'` && e6[e6.length - 1] === `'`) return e6.slice(1, -1); 5099 if (e6[0] === `{` && e6[e6.length - 1] === `}`) throw Error(`Unexpected \`@plugin\` option: Value of declaration \`${At([t5]).trim()}\` is not supported. 5100 5101Using an object as a plugin option is currently only supported in JavaScript configuration files.`); 5102 } else return Number(e6); 5103 return e6; 5104 }); 5105 r3[t5.property] = n4.length === 1 ? n4[0] : n4; 5106 } 5107 return o2.push([{ id: t4, base: n3.context.base, reference: !!n3.context.reference, src: e4.src }, Object.keys(r3).length > 0 ? r3 : null]), a2 |= 4, F.Replace([]); 5108 } 5109 if (e4.name === `@config`) { 5110 if (e4.nodes.length > 0) throw Error("`@config` cannot have a body."); 5111 if (n3.parent !== null) throw Error("`@config` cannot be nested."); 5112 return s2.push({ id: e4.params.slice(1, -1), base: n3.context.base, reference: !!n3.context.reference, src: e4.src }), a2 |= 4, F.Replace([]); 5113 } 5114 }), ao(e3);
5115 let c2 = e3.resolveThemeValue; 5116 if (e3.resolveThemeValue = function(r3, o3) { 5117 return r3.startsWith(`--`) ? c2(r3, o3) : (a2 |= fo({ designSystem: e3, base: t2, ast: n2, sources: i2, configs: [], pluginDetails: [] }), e3.resolveThemeValue(r3, o3)); 5118 }, !o2.length && !s2.length) return 0; 5119 let [l2, u2] = await Promise.all([Promise.all(s2.map(async ({ id: e4, base: t3, reference: n3, src: i3 }) => { 5120 let a3 = await r2(e4, t3, `config`); 5121 return { path: e4, base: a3.base, config: a3.module, reference: n3, src: i3 }; 5122 })), Promise.all(o2.map(async ([{ id: e4, base: t3, reference: n3, src: i3 }, a3]) => { 5123 let o3 = await r2(e4, t3, `plugin`); 5124 return { path: e4, base: o3.base, plugin: o3.module, options: a3, reference: n3, src: i3 }; 5125 }))]); 5126 return a2 |= fo({ designSystem: e3, base: t2, ast: n2, sources: i2, configs: l2, pluginDetails: u2 }), a2; 5127} 5128function fo({ designSystem: e3, base: t2, ast: n2, sources: r2, configs: i2, pluginDetails: a2 }) { 5129 let o2 = 0, s2 = [...a2.map((e4) => { 5130 if (!e4.options) return { config: { plugins: [e4.plugin] }, base: e4.base, reference: e4.reference, src: e4.src }; 5131 if (`__isOptionsFunction` in e4.plugin) return { config: { plugins: [e4.plugin(e4.options)] }, base: e4.base, reference: e4.reference, src: e4.src }; 5132 throw Error(`The plugin "${e4.path}" does not accept options`); 5133 }), ...i2], { resolvedConfig: c2 } = Qa(e3, [{ config: Xa(e3.theme), base: t2, reference: true, src: void 0 }, ...s2, { config: { plugins: [io] }, base: t2, reference: true, src: void 0 }]), { resolvedConfig: l2, replacedThemeKeys: u2 } = Qa(e3, s2), d2 = { designSystem: e3, ast: n2, resolvedConfig: c2, featuresRef: { set current(e4) { 5134 o2 |= e4; 5135 } } }, f2 = Wa({ ...d2, referenceMode: false, src: void 0 }), p2 = e3.resolveThemeValue; 5136 e3.resolveThemeValue = function(e4, t3) { 5137 if (e4[0] === `-` && e4[1] === `-`) return p2(e4, t3); 5138 let n3 = f2.theme(e4, void 0); 5139 if (Array.isArray(n3) && n3.length === 2) return n3[0]; 5140 if (Array.isArray(n3)) return n3.join(`, `); 5141 if (typeof n3 == `object` && n3 && `DEFAULT` in n3) return n3.DEFAULT; 5142 if (typeof n3 == `string`) return n3; 5143 }; 5144 for (let { handler: e4, reference: t3, src: n3 } of c2.plugins) e4(Wa({ ...d2, referenceMode: t3 ?? false, src: n3 })); 5145 if (rr(e3, l2, u2), Ja(e3, l2), co(l2, e3), oo(l2, e3), no(l2, e3), !e3.theme.prefix && c2.prefix) { 5146 if (c2.prefix.endsWith(`-`) && (c2.prefix = c2.prefix.slice(0, -1), console.warn(`The prefix "${c2.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.`)), !lo.test(c2.prefix)) throw Error(`The prefix "${c2.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`); 5147 e3.theme.prefix = c2.prefix; 5148 } 5149 if (!e3.important && c2.important === true && (e3.important = true), typeof c2.important == `string`) { 5150 let e4 = c2.important; 5151 I(n2, (t3, n3) => { 5152 if (t3.kind !== `at-rule` || t3.name !== `@tailwind` || t3.params !== `utilities`) return; 5153 let r3 = Ot(n3); 5154 return r3.parent?.kind === `rule` && r3.parent.selector === e4 ? F.Stop : F.ReplaceStop(L(e4, [t3])); 5155 }); 5156 } 5157 for (let t3 of c2.blocklist) e3.invalidCandidates.add(t3); 5158 for (let e4 of c2.content.files) { 5159 if (`raw` in e4) throw Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry: 5160 5161${JSON.stringify(e4, null, 2)} 5162 5163This feature is not currently supported.`); 5164 let t3 = false; 5165 e4.pattern[0] == `!` && (t3 = true, e4.pattern = e4.pattern.slice(1)), r2.push({ ...e4, negated: t3 }); 5166 } 5167 return o2; 5168} 5169function po({ ast: e3 }) { 5170 let t2 = new j((e4) => Fe(e4.code)), n2 = new j((e4) => ({ url: e4.file, content: e4.code, ignore: false })), r2 = { file: null, sources: [], mappings: [] }; 5171 I(e3, (e4) => { 5172 if (!e4.src || !e4.dst) return; 5173 let i2 = n2.get(e4.src[0]); 5174 if (!i2.content) return; 5175 let a2 = t2.get(e4.src[0]), o2 = t2.get(e4.dst[0]), s2 = i2.content.slice(e4.src[1], e4.src[2]), c2 = 0; 5176 for (let t3 of s2.split(` 5177`)) { 5178 if (t3.trim() !== ``) { 5179 let t4 = a2.find(e4.src[1] + c2), n3 = o2.find(e4.dst[1]); 5180 r2.mappings.push({ name: null, originalPosition: { source: i2, ...t4 }, generatedPosition: n3 }); 5181 } 5182 c2 += t3.length, c2 += 1; 5183 } 5184 let l2 = a2.find(e4.src[2]), u2 = o2.find(e4.dst[2]); 5185 r2.mappings.push({ name: null, originalPosition: { source: i2, ...l2 }, generatedPosition: u2 }); 5186 }); 5187 for (let e4 of t2.keys()) r2.sources.push(n2.get(e4)); 5188 return r2.mappings.sort((e4, t3) => e4.generatedPosition.line - t3.generatedPosition.line || e4.generatedPosition.column - t3.generatedPosition.column || (e4.originalPosition?.line ?? 0) - (t3.originalPosition?.line ?? 0) || (e4.originalPosition?.column ?? 0) - (t3.originalPosition?.column ?? 0)), r2; 5189} 5190var mo = /^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/; 5191function ho(e3) { 5192 let t2 = e3.indexOf(`{`); 5193 if (t2 === -1) return [e3]; 5194 let n2 = [], r2 = e3.slice(0, t2), i2 = e3.slice(t2), a2 = 0, o2 = i2.lastIndexOf(`}`); 5195 for (let e4 = 0; e4 < i2.length; e4++) { 5196 let t3 = i2[e4]; 5197 if (t3 === `{`) a2++; 5198 else if (t3 === `}` && (a2--, a2 === 0)) { 5199 o2 = e4; 5200 break; 5201 } 5202 } 5203 if (o2 === -1) throw Error(`The pattern \`${e3}\` is not balanced.`); 5204 let s2 = i2.slice(1, o2), c2 = i2.slice(o2 + 1), l2; 5205 l2 = go(s2) ? _o(s2) : _(s2, `,`), l2 = l2.flatMap((e4) => ho(e4)); 5206 let u2 = ho(c2); 5207 for (let e4 of u2) for (let t3 of l2) n2.push(r2 + t3 + e4); 5208 return n2; 5209} 5210function go(e3) { 5211 return mo.test(e3); 5212} 5213function _o(e3) { 5214 let t2 = e3.match(mo); 5215 if (!t2) return [e3]; 5216 let [, n2, r2, i2] = t2, a2 = i2 ? parseInt(i2, 10) : void 0, o2 = []; 5217 if (/^-?\d+$/.test(n2) && /^-?\d+$/.test(r2)) { 5218 let e4 = parseInt(n2, 10), t3 = parseInt(r2, 10); 5219 if (a2 === void 0 && (a2 = e4 <= t3 ? 1 : -1), a2 === 0) throw Error(`Step cannot be zero in sequence expansion.`); 5220 let i3 = e4 < t3; 5221 i3 && a2 < 0 && (a2 = -a2), !i3 && a2 > 0 && (a2 = -a2); 5222 for (let n3 = e4; i3 ? n3 <= t3 : n3 >= t3; n3 += a2) o2.push(n3.toString()); 5223 } 5224 return o2; 5225} 5226function vo(e3, t2) { 5227 let n2 = /* @__PURE__ */ new Set(), r2 = /* @__PURE__ */ new Set(), i2 = []; 5228 function a2(o2, s2 = []) { 5229 if (e3.has(o2) && !n2.has(o2)) { 5230 r2.has(o2) && t2.onCircularDependency?.(s2, o2), r2.add(o2); 5231 for (let t3 of e3.get(o2) ?? []) s2.push(o2), a2(t3, s2), s2.pop(); 5232 n2.add(o2), r2.delete(o2), i2.push(o2); 5233 } 5234 } 5235 for (let t3 of e3.keys()) a2(t3); 5236 return i2; 5237} 5238var yo = /^[a-z]+$/, bo = ((e3) => (e3[e3.None = 0] = `None`, e3[e3.AtProperty = 1] = `AtProperty`, e3[e3.ColorMix = 2] = `ColorMix`, e3[e3.All = 3] = `All`, e3))(bo || {}); 5239function xo() { 5240 throw Error("No `loadModule` function provided to `compile`"); 5241} 5242function So() { 5243 throw Error("No `loadStylesheet` function provided to `compile`"); 5244} 5245function Co(e3) { 5246 let t2 = 0, n2 = null; 5247 for (let r2 of _(e3, ` `)) r2 === `reference` ? t2 |= 2 : r2 === `inline` ? t2 |= 1 : r2 === "default" ? t2 |= 4 : r2 === `static` ? t2 |= 8 : r2.startsWith(`prefix(`) && r2.endsWith(`)`) && (n2 = r2.slice(7, -1)); 5248 return [t2, n2]; 5249} 5250var wo = ((e3) => (e3[e3.None = 0] = `None`, e3[e3.AtApply = 1] = `AtApply`, e3[e3.AtImport = 2] = `AtImport`, e3[e3.JsPluginCompat = 4] = `JsPluginCompat`, e3[e3.ThemeFunction = 8] = `ThemeFunction`, e3[e3.Utilities = 16] = `Utilities`, e3[e3.Variants = 32] = `Variants`, e3[e3.AtTheme = 64] = `AtTheme`, e3))(wo || {}); 5251async function To(e3, { base: t2 = ``, from: n2, loadModule: r2 = xo, loadStylesheet: i2 = So } = {}) { 5252 let a2 = 0; 5253 e3 = [Dt({ base: t2 }, e3)], a2 |= await Pa(e3, t2, i2, 0, n2 !== void 0);
5254 let o2 = null, s2 = new Ne(), c2 = /* @__PURE__ */ new Map(), l2 = /* @__PURE__ */ new Map(), u2 = [], d2 = null, f2 = null, p2 = [], m2 = [], h2 = [], g2 = [], v2 = null; 5255 I(e3, (e4, t3) => { 5256 if (e4.kind !== `at-rule`) return; 5257 let n3 = Ot(t3); 5258 if (e4.name === `@tailwind` && (e4.params === `utilities` || e4.params.startsWith(`utilities`))) { 5259 if (f2 !== null || n3.context.reference) return F.Replace([]); 5260 let t4 = _(e4.params, ` `); 5261 for (let e5 of t4) if (e5.startsWith(`source(`)) { 5262 let t5 = e5.slice(7, -1); 5263 if (t5 === `none`) { 5264 v2 = t5; 5265 continue; 5266 } 5267 if (t5[0] === `"` && t5[t5.length - 1] !== `"` || t5[0] === `'` && t5[t5.length - 1] !== `'` || t5[0] !== `'` && t5[0] !== `"`) throw Error("`source(\u2026)` paths must be quoted."); 5268 v2 = { base: n3.context.sourceBase ?? n3.context.base, pattern: t5.slice(1, -1) }; 5269 } 5270 f2 = e4, a2 |= 16; 5271 } 5272 if (e4.name === `@utility`) { 5273 if (n3.parent !== null) throw Error("`@utility` cannot be nested."); 5274 if (e4.nodes.length === 0) throw Error(`\`@utility ${e4.params}\` is empty. Utilities should include at least one property.`); 5275 let t4 = Cn(e4); 5276 if (t4 === null) { 5277 if (!e4.params.endsWith(`-*`)) { 5278 if (e4.params.endsWith(`*`)) throw Error(`\`@utility ${e4.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`); 5279 if (e4.params.includes(`*`)) throw Error(`\`@utility ${e4.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`); 5280 } 5281 throw Error(`\`@utility ${e4.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`); 5282 } 5283 u2.push(t4); 5284 } 5285 if (e4.name === `@source`) { 5286 if (e4.nodes.length > 0) throw Error("`@source` cannot have a body."); 5287 if (n3.parent !== null) throw Error("`@source` cannot be nested."); 5288 let t4 = false, r3 = false, i3 = e4.params; 5289 if (i3[0] === `n` && i3.startsWith(`not `) && (t4 = true, i3 = i3.slice(4)), i3[0] === `i` && i3.startsWith(`inline(`) && (r3 = true, i3 = i3.slice(7, -1).trim()), i3[0] === `"` && i3[i3.length - 1] !== `"` || i3[0] === `'` && i3[i3.length - 1] !== `'` || i3[0] !== `'` && i3[0] !== `"`) throw Error("`@source` paths must be quoted."); 5290 let a3 = i3.slice(1, -1); 5291 if (r3) { 5292 let e5 = t4 ? g2 : h2, n4 = _(a3, ` `); 5293 for (let t5 of n4) for (let n5 of ho(t5)) e5.push(n5); 5294 } else m2.push({ base: n3.context.base, pattern: a3, negated: t4 }); 5295 return F.ReplaceSkip([]); 5296 } 5297 if (e4.name === `@variant` && (n3.parent === null ? e4.nodes.length === 0 ? e4.name = `@custom-variant` : (I(e4.nodes, (t4) => { 5298 if (t4.kind === `at-rule` && t4.name === `@slot`) return e4.name = `@custom-variant`, F.Stop; 5299 }), e4.name === `@variant` && p2.push(e4)) : p2.push(e4)), e4.name === `@custom-variant`) { 5300 if (n3.parent !== null) throw Error("`@custom-variant` cannot be nested."); 5301 let [t4, r3] = _(e4.params, ` `); 5302 if (!ga.test(t4)) throw Error(`\`@custom-variant ${t4}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`); 5303 if (e4.nodes.length > 0 && r3) throw Error(`\`@custom-variant ${t4}\` cannot have both a selector and a body.`); 5304 if (e4.nodes.length === 0) { 5305 if (!r3) throw Error(`\`@custom-variant ${t4}\` has no selector or body.`); 5306 let e5 = _(r3.slice(1, -1), `,`); 5307 if (e5.length === 0 || e5.some((e6) => e6.trim() === ``)) throw Error(`\`@custom-variant ${t4} (${e5.join(`,`)})\` selector is invalid.`); 5308 let n4 = [], i3 = []; 5309 for (let t5 of e5) t5 = t5.trim(), t5[0] === `@` ? n4.push(t5) : i3.push(t5); 5310 c2.set(t4, (e6) => { 5311 e6.variants.static(t4, (e7) => { 5312 let t5 = []; 5313 i3.length > 0 && t5.push(L(i3.join(`, `), e7.nodes)); 5314 for (let r4 of n4) t5.push(z(r4, e7.nodes)); 5315 e7.nodes = t5; 5316 }, { compounds: va([...i3, ...n4]) }); 5317 }
5317), l2.set(t4, /* @__PURE__ */ new Set()); 5318 } else { 5319 let n4 = /* @__PURE__ */ new Set(); 5320 I(e4.nodes, (e5) => { 5321 e5.kind === `at-rule` && e5.name === `@variant` && n4.add(e5.params); 5322 }), c2.set(t4, (n5) => { 5323 n5.variants.fromAst(t4, e4.nodes, n5); 5324 }), l2.set(t4, n4); 5325 } 5326 return F.ReplaceSkip([]); 5327 } 5328 if (e4.name === `@media`) { 5329 let t4 = _(e4.params, ` `), r3 = []; 5330 for (let i3 of t4) if (i3.startsWith(`source(`)) { 5331 let t5 = i3.slice(7, -1); 5332 I(e4.nodes, (e5) => { 5333 if (e5.kind === `at-rule` && e5.name === `@tailwind` && e5.params === `utilities`) return e5.params += ` source(${t5})`, F.ReplaceStop([Dt({ sourceBase: n3.context.base }, [e5])]); 5334 }); 5335 } else if (i3.startsWith(`theme(`)) { 5336 let t5 = i3.slice(6, -1), n4 = t5.includes(`reference`); 5337 I(e4.nodes, (e5) => { 5338 if (e5.kind !== `context`) { 5339 if (e5.kind !== `at-rule`) { 5340 if (n4) throw Error('Files imported with `@import "\u2026" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "\u2026";` instead.'); 5341 return F.Continue; 5342 } 5343 if (e5.name === `@theme`) return e5.params += ` ` + t5, F.Skip; 5344 } 5345 }); 5346 } else if (i3.startsWith(`prefix(`)) { 5347 let t5 = i3.slice(7, -1); 5348 I(e4.nodes, (e5) => { 5349 if (e5.kind === `at-rule` && e5.name === `@theme`) return e5.params += ` prefix(${t5})`, F.Skip; 5350 }); 5351 } else i3 === `important` ? o2 = true : i3 === `reference` ? e4.nodes = [Dt({ reference: true }, e4.nodes)] : r3.push(i3); 5352 if (r3.length > 0) e4.params = r3.join(` `); 5353 else if (t4.length > 0) return F.Replace(e4.nodes); 5354 return F.Continue; 5355 } 5356 if (e4.name === `@theme`) { 5357 let [t4, r3] = Co(e4.params); 5358 if (a2 |= 64, n3.context.reference && (t4 |= 2), r3) { 5359 if (!yo.test(r3)) throw Error(`The prefix "${r3}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`); 5360 s2.prefix = r3; 5361 } 5362 return I(e4.nodes, (n4) => { 5363 if (n4.kind === `at-rule` && n4.name === `@keyframes`) return s2.addKeyframes(n4), F.Skip; 5364 if (n4.kind === `comment`) return; 5365 if (n4.kind === `declaration` && n4.property.startsWith(`--`)) { 5366 s2.add(Ae(n4.property), n4.value ?? ``, t4, n4.src); 5367 return; 5368 } 5369 let r4 = At([R(e4.name, e4.params, [n4])]).split(` 5370`).map((e5, t5, n5) => `${t5 === 0 || t5 >= n5.length - 2 ? ` ` : `>`} ${e5}`).join(` 5371`); 5372 throw Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`. 5373 5374${r4}`); 5375 }), d2 ? F.ReplaceSkip([]) : (d2 = L(`:root, :host`, []), d2.src = e4.src, F.ReplaceSkip(d2)); 5376 } 5377 }); 5378 let y2 = Ca(s2, f2?.src); 5379 if (o2 && (y2.important = o2), g2.length > 0) for (let e4 of g2) y2.invalidCandidates.add(e4); 5380 a2 |= await uo({ designSystem: y2, base: t2, ast: e3, loadModule: r2, sources: m2 }); 5381 for (let e4 of c2.keys()) y2.variants.static(e4, () => { 5382 }); 5383 for (let e4 of vo(l2, { onCircularDependency(e5, t3) { 5384 let n3 = At(e5.map((n4, r3) => R(`@custom-variant`, n4, [R(`@variant`, e5[r3 + 1] ?? t3, [])]))).replaceAll(`;`, ` { \u2026 }`).replace(`@custom-variant ${t3} {`, `@custom-variant ${t3} { /* \u2190 */`); 5385 throw Error(`Circular dependency detected in custom variants: 5386 5387${n3}`); 5388 } })) c2.get(e4)?.(y2); 5389 for (let e4 of u2) e4(y2); 5390 if (d2) { 5391 let t3 = []; 5392 for (let [e4, n4] of y2.theme.entries()) { 5393 if (n4.options & 2) continue; 5394 let r3 = B(ke(e4), n4.value); 5395 r3.src = n4.src, t3.push(r3); 5396 } 5397 let n3 = y2.theme.getKeyframes(); 5398 for (let t4 of n3) e3.push(Dt({ theme: true }, [V([t4])])); 5399 d2.nodes = [Dt({ theme: true }, t3)]; 5400 } 5401 if (a2 |= Sa(e3, y2), a2 |= qn(e3, y2), a2 |= Ma(e3, y2), f2) { 5402 let e4 = f2; 5403 e4.kind = `context`, e4.context = {}; 5404 } 5405 return I(e3, (e4) => { 5406 if (e4.kind === `at-rule`) return e4.name === `@utility` ? F.Replace([]) : F.Skip; 5407 }), { designSystem: y2, ast: e3, sources: m2, root: v2, utilitiesNode: f2, features: a2, inlineCandidates: h2 }; 5408} 5409async function Eo(e3, t2 = {}) { 5410 let { designSystem: n2, ast: r2, sources: i2, root: a2, utilitiesNode: o2, features: s2, inlineCandidates: c2 } = await To(e3, t2); 5411 r2.unshift(Et(`! tailwindcss v${Pe} | MIT License | https://tailwindcss.com `)); 5412 function l2(e4) {
5413 n2.invalidCandidates.add(e4); 5414 } 5415 let u2 = /* @__PURE__ */ new Set(), d2 = null, f2 = 0, p2 = false; 5416 for (let e4 of c2) n2.invalidCandidates.has(e4) || (u2.add(e4), p2 = true); 5417 return { sources: i2, root: a2, features: s2, build(i3) { 5418 if (s2 === 0) return e3; 5419 if (!o2) return d2 ?? (d2 = kt(r2, n2, t2.polyfills)), d2; 5420 let a3 = p2, c3 = false; 5421 p2 = false; 5422 let m2 = u2.size; 5423 for (let e4 of i3) if (!n2.invalidCandidates.has(e4)) if (e4[0] === `-` && e4[1] === `-`) { 5424 let t3 = n2.theme.markUsedVariable(e4); 5425 a3 || (a3 = t3), c3 || (c3 = t3); 5426 } else u2.add(e4), a3 || (a3 = u2.size !== m2); 5427 if (!a3) return d2 ?? (d2 = kt(r2, n2, t2.polyfills)), d2; 5428 let h2 = Ta(u2, n2, { onInvalidCandidate: l2 }).astNodes; 5429 return t2.from && I(h2, (e4) => { 5430 e4.src ?? (e4.src = o2.src); 5431 }), !c3 && f2 === h2.length ? (d2 ?? (d2 = kt(r2, n2, t2.polyfills)), d2) : (f2 = h2.length, o2.nodes = h2, d2 = kt(r2, n2, t2.polyfills), d2); 5432 } }; 5433} 5434async function Do(e3, t2 = {}) { 5435 let n2 = nt(e3, { from: t2.from }), r2 = await Eo(n2, t2), i2 = n2, a2 = e3; 5436 return { ...r2, build(e4) { 5437 let n3 = r2.build(e4); 5438 return n3 === i2 || (a2 = At(n3, !!t2.from), i2 = n3), a2; 5439 }, buildSourceMap() { 5440 return po({ ast: i2 }); 5441 } }; 5442} 5443async function Oo(e3, t2 = {}) { 5444 return (await To(nt(e3, { from: t2.from }), t2)).designSystem; 5445} 5446var Q = e(i(), 1), ko = { "/tailwindcss": `@import './tailwindcss/index.css';`, "/tailwindcss/index.css": `@layer theme, base, components, utilities; 5447 5448@layer theme { 5449 @theme default { 5450 --font-sans: 5451 ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", 5452 "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 5453 --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; 5454 --font-mono: 5455 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", 5456 "Courier New", monospace; 5457 5458 --color-red-50: oklch(97.1% 0.013 17.38); 5459 --color-red-100: oklch(93.6% 0.032 17.717); 5460 --color-red-200: oklch(88.5% 0.062 18.334); 5461 --color-red-300: oklch(80.8% 0.114 19.571); 5462 --color-red-400: oklch(70.4% 0.191 22.216); 5463 --color-red-500: oklch(63.7% 0.237 25.331); 5464 --color-red-600: oklch(57.7% 0.245 27.325); 5465 --color-red-700: oklch(50.5% 0.213 27.518); 5466 --color-red-800: oklch(44.4% 0.177 26.899); 5467 --color-red-900: oklch(39.6% 0.141 25.723); 5468 --color-red-950: oklch(25.8% 0.092 26.042); 5469 5470 --color-orange-50: oklch(98% 0.016 73.684); 5471 --color-orange-100: oklch(95.4% 0.038 75.164); 5472 --color-orange-200: oklch(90.1% 0.076 70.697); 5473 --color-orange-300: oklch(83.7% 0.128 66.29); 5474 --color-orange-400: oklch(75% 0.183 55.934); 5475 --color-orange-500: oklch(70.5% 0.213 47.604); 5476 --color-orange-600: oklch(64.6% 0.222 41.116); 5477 --color-orange-700: oklch(55.3% 0.195 38.402); 5478 --color-orange-800: oklch(47% 0.157 37.304); 5479 --color-orange-900: oklch(40.8% 0.123 38.172); 5480 --color-orange-950: oklch(26.6% 0.079 36.259); 5481 5482 --color-amber-50: oklch(98.7% 0.022 95.277); 5483 --color-amber-100: oklch(96.2% 0.059 95.617); 5484 --color-amber-200: oklch(92.4% 0.12 95.746); 5485 --color-amber-300: oklch(87.9% 0.169 91.605); 5486 --color-amber-400: oklch(82.8% 0.189 84.429); 5487 --color-amber-500: oklch(76.9% 0.188 70.08); 5488 --color-amber-600: oklch(66.6% 0.179 58.318); 5489 --color-amber-700: oklch(55.5% 0.163 48.998); 5490 --color-amber-800: oklch(47.3% 0.137 46.201); 5491 --color-amber-900: oklch(41.4% 0.112 45.904); 5492 --color-amber-950: oklch(27.9% 0.077 45.635); 5493 5494 --color-yellow-50: oklch(98.7% 0.026 102.212); 5495 --color-yellow-100: oklch(97.3% 0.071 103.193); 5496 --color-yellow-200: oklch(94.5% 0.129 101.54); 5497 --color-yellow-300: oklch(90.5% 0.182 98.111); 5498 --color-yellow-400: oklch(85.2% 0.199 91.936); 5499 --color-yellow-500: oklch(79.5% 0.184 86.047); 5500 --color-yellow-600: oklch(68.1% 0.162 75.834); 5501 --color-yellow-700: oklch(55.4% 0.135 66.442); 5502 --color-yellow-800: oklch(47.6% 0.114 61.907); 5503 --color-yellow-900: oklch(42.1% 0.095 57.708); 5504 --color-yellow-950: oklch(28.6% 0.066 53.813); 5505 5506 --color-lime-50: oklch(98.6% 0.031 120.757); 5507 --color-lime-100: oklch(96.7% 0.067 122.328); 5508 --color-lime-200: oklch(93.8% 0.127 124.321); 5509 --color-lime-300: oklch(89.7% 0.196 126.665); 5510 --color-lime-400: oklch(84.1% 0.238 128.85); 5511 --color-lime-500: oklch(76.8% 0.233 130.85); 5512 --color-lime-600: oklch(64.8% 0.2 131.684); 5513 --color-lime-700: oklch(53.2% 0.157 131.589); 5514 --color-lime-800: oklch(45.3% 0.124 130.933); 5515 --color-lime-900: oklch(40.5% 0.101 131.063); 5516 --color-lime-950: oklch(27.4% 0.072 132.109); 5517 5518 --color-green-50: oklch(98.2% 0.018 155.826); 5519 --color-green-100: oklch(96.2% 0.044 156.743); 5520 --color-green-200: oklch(92.5% 0.084 155.995); 5521 --color-green-300: oklch(87.1% 0.15 154.449); 5522 --color-green-400: oklch(79.2% 0.209 151.711); 5523 --color-green-500: oklch(72.3% 0.219 149.579); 5524 --color-green-600: oklch(62.7% 0.194 149.214); 5525 --color-green-700: oklch(52.7% 0.154 150.069); 5526 --color-green-800: oklch(44.8% 0.119 151.328); 5527 --color-green-900: oklch(39.3% 0.095 152.535); 5528 --color-green-950: oklch(26.6% 0.065 152.934); 5529
5530 --color-emerald-50: oklch(97.9% 0.021 166.113); 5531 --color-emerald-100: oklch(95% 0.052 163.051); 5532 --color-emerald-200: oklch(90.5% 0.093 164.15); 5533 --color-emerald-300: oklch(84.5% 0.143 164.978); 5534 --color-emerald-400: oklch(76.5% 0.177 163.223); 5535 --color-emerald-500: oklch(69.6% 0.17 162.48); 5536 --color-emerald-600: oklch(59.6% 0.145 163.225); 5537 --color-emerald-700: oklch(50.8% 0.118 165.612); 5538 --color-emerald-800: oklch(43.2% 0.095 166.913); 5539 --color-emerald-900: oklch(37.8% 0.077 168.94); 5540 --color-emerald-950: oklch(26.2% 0.051 172.552); 5541 5542 --color-teal-50: oklch(98.4% 0.014 180.72); 5543 --color-teal-100: oklch(95.3% 0.051 180.801); 5544 --color-teal-200: oklch(91% 0.096 180.426); 5545 --color-teal-300: oklch(85.5% 0.138 181.071); 5546 --color-teal-400: oklch(77.7% 0.152 181.912); 5547 --color-teal-500: oklch(70.4% 0.14 182.503); 5548 --color-teal-600: oklch(60% 0.118 184.704); 5549 --color-teal-700: oklch(51.1% 0.096 186.391); 5550 --color-teal-800: oklch(43.7% 0.078 188.216); 5551 --color-teal-900: oklch(38.6% 0.063 188.416); 5552 --color-teal-950: oklch(27.7% 0.046 192.524); 5553 5554 --color-cyan-50: oklch(98.4% 0.019 200.873); 5555 --color-cyan-100: oklch(95.6% 0.045 203.388); 5556 --color-cyan-200: oklch(91.7% 0.08 205.041); 5557 --color-cyan-300: oklch(86.5% 0.127 207.078); 5558 --color-cyan-400: oklch(78.9% 0.154 211.53); 5559 --color-cyan-500: oklch(71.5% 0.143 215.221); 5560 --color-cyan-600: oklch(60.9% 0.126 221.723); 5561 --color-cyan-700: oklch(52% 0.105 223.128); 5562 --color-cyan-800: oklch(45% 0.085 224.283); 5563 --color-cyan-900: oklch(39.8% 0.07 227.392); 5564 --color-cyan-950: oklch(30.2% 0.056 229.695); 5565 5566 --color-sky-50: oklch(97.7% 0.013 236.62); 5567 --color-sky-100: oklch(95.1% 0.026 236.824); 5568 --color-sky-200: oklch(90.1% 0.058 230.902); 5569 --color-sky-300: oklch(82.8% 0.111 230.318); 5570 --color-sky-400: oklch(74.6% 0.16 232.661); 5571 --color-sky-500: oklch(68.5% 0.169 237.323); 5572 --color-sky-600: oklch(58.8% 0.158 241.966); 5573 --color-sky-700: oklch(50% 0.134 242.749); 5574 --color-sky-800: oklch(44.3% 0.11 240.79); 5575 --color-sky-900: oklch(39.1% 0.09 240.876); 5576 --color-sky-950: oklch(29.3% 0.066 243.157); 5577 5578 --color-blue-50: oklch(97% 0.014 254.604); 5579 --color-blue-100: oklch(93.2% 0.032 255.585); 5580 --color-blue-200: oklch(88.2% 0.059 254.128); 5581 --color-blue-300: oklch(80.9% 0.105 251.813); 5582 --color-blue-400: oklch(70.7% 0.165 254.624); 5583 --color-blue-500: oklch(62.3% 0.214 259.815); 5584 --color-blue-600: oklch(54.6% 0.245 262.881); 5585 --color-blue-700: oklch(48.8% 0.243 264.376); 5586 --color-blue-800: oklch(42.4% 0.199 265.638); 5587 --color-blue-900: oklch(37.9% 0.146 265.522); 5588 --color-blue-950: oklch(28.2% 0.091 267.935); 5589 5590 --color-indigo-50: oklch(96.2% 0.018 272.314); 5591 --color-indigo-100: oklch(93% 0.034 272.788); 5592 --color-indigo-200: oklch(87% 0.065 274.039); 5593 --color-indigo-300: oklch(78.5% 0.115 274.713); 5594 --color-indigo-400: oklch(67.3% 0.182 276.935); 5595 --color-indigo-500: oklch(58.5% 0.233 277.117); 5596 --color-indigo-600: oklch(51.1% 0.262 276.966); 5597 --color-indigo-700: oklch(45.7% 0.24 277.023); 5598 --color-indigo-800: oklch(39.8% 0.195 277.366); 5599 --color-indigo-900: oklch(35.9% 0.144 278.697); 5600 --color-indigo-950: oklch(25.7% 0.09 281.288); 5601 5602 --color-violet-50: oklch(96.9% 0.016 293.756); 5603 --color-violet-100: oklch(94.3% 0.029 294.588); 5604 --color-violet-200: oklch(89.4% 0.057 293.283); 5605 --color-violet-300: oklch(81.1% 0.111 293.571); 5606 --color-violet-400: oklch(70.2% 0.183 293.541); 5607 --color-violet-500: oklch(60.6% 0.25 292.717); 5608 --color-violet-600: oklch(54.1% 0.281 293.009); 5609 --color-violet-700: oklch(49.1% 0.27 292.581); 5610 --color-violet-800: oklch(43.2% 0.232 292.759); 5611 --color-violet-900: oklch(38% 0.189 293.745); 5612 --color-violet-950: oklch(28.3% 0.141 291.089); 5613 5614 --color-purple-50: oklch(97.7% 0.014 308.299); 5615 --color-purple-100: oklch(94.6% 0.033 307.174); 5616 --color-purple-200: oklch(90.2% 0.063 306.703); 5617 --color-purple-300: oklch(82.7% 0.119 306.383); 5618 --color-purple-400: oklch(71.4% 0.203 305.504); 5619 --color-purple-500: oklch(62.7% 0.265 303.9); 5620 --color-purple-600: oklch(55.8% 0.288 302.321); 5621 --color-purple-700: oklch(49.6% 0.265 301.924); 5622 --color-purple-800: oklch(43.8% 0.218 303.724); 5623 --color-purple-900: oklch(38.1% 0.176 304.987);
5624 --color-purple-950: oklch(29.1% 0.149 302.717); 5625 5626 --color-fuchsia-50: oklch(97.7% 0.017 320.058); 5627 --color-fuchsia-100: oklch(95.2% 0.037 318.852); 5628 --color-fuchsia-200: oklch(90.3% 0.076 319.62); 5629 --color-fuchsia-300: oklch(83.3% 0.145 321.434); 5630 --color-fuchsia-400: oklch(74% 0.238 322.16); 5631 --color-fuchsia-500: oklch(66.7% 0.295 322.15); 5632 --color-fuchsia-600: oklch(59.1% 0.293 322.896); 5633 --color-fuchsia-700: oklch(51.8% 0.253 323.949); 5634 --color-fuchsia-800: oklch(45.2% 0.211 324.591); 5635 --color-fuchsia-900: oklch(40.1% 0.17 325.612); 5636 --color-fuchsia-950: oklch(29.3% 0.136 325.661); 5637 5638 --color-pink-50: oklch(97.1% 0.014 343.198); 5639 --color-pink-100: oklch(94.8% 0.028 342.258); 5640 --color-pink-200: oklch(89.9% 0.061 343.231); 5641 --color-pink-300: oklch(82.3% 0.12 346.018); 5642 --color-pink-400: oklch(71.8% 0.202 349.761); 5643 --color-pink-500: oklch(65.6% 0.241 354.308); 5644 --color-pink-600: oklch(59.2% 0.249 0.584); 5645 --color-pink-700: oklch(52.5% 0.223 3.958); 5646 --color-pink-800: oklch(45.9% 0.187 3.815); 5647 --color-pink-900: oklch(40.8% 0.153 2.432); 5648 --color-pink-950: oklch(28.4% 0.109 3.907); 5649 5650 --color-rose-50: oklch(96.9% 0.015 12.422); 5651 --color-rose-100: oklch(94.1% 0.03 12.58); 5652 --color-rose-200: oklch(89.2% 0.058 10.001); 5653 --color-rose-300: oklch(81% 0.117 11.638); 5654 --color-rose-400: oklch(71.2% 0.194 13.428); 5655 --color-rose-500: oklch(64.5% 0.246 16.439); 5656 --color-rose-600: oklch(58.6% 0.253 17.585); 5657 --color-rose-700: oklch(51.4% 0.222 16.935); 5658 --color-rose-800: oklch(45.5% 0.188 13.697); 5659 --color-rose-900: oklch(41% 0.159 10.272); 5660 --color-rose-950: oklch(27.1% 0.105 12.094); 5661 5662 --color-slate-50: oklch(98.4% 0.003 247.858); 5663 --color-slate-100: oklch(96.8% 0.007 247.896); 5664 --color-slate-200: oklch(92.9% 0.013 255.508); 5665 --color-slate-300: oklch(86.9% 0.022 252.894); 5666 --color-slate-400: oklch(70.4% 0.04 256.788); 5667 --color-slate-500: oklch(55.4% 0.046 257.417); 5668 --color-slate-600: oklch(44.6% 0.043 257.281); 5669 --color-slate-700: oklch(37.2% 0.044 257.287); 5670 --color-slate-800: oklch(27.9% 0.041 260.031); 5671 --color-slate-900: oklch(20.8% 0.042 265.755); 5672 --color-slate-950: oklch(12.9% 0.042 264.695); 5673 5674 --color-gray-50: oklch(98.5% 0.002 247.839); 5675 --color-gray-100: oklch(96.7% 0.003 264.542); 5676 --color-gray-200: oklch(92.8% 0.006 264.531); 5677 --color-gray-300: oklch(87.2% 0.01 258.338); 5678 --color-gray-400: oklch(70.7% 0.022 261.325); 5679 --color-gray-500: oklch(55.1% 0.027 264.364); 5680 --color-gray-600: oklch(44.6% 0.03 256.802); 5681 --color-gray-700: oklch(37.3% 0.034 259.733); 5682 --color-gray-800: oklch(27.8% 0.033 256.848); 5683 --color-gray-900: oklch(21% 0.034 264.665); 5684 --color-gray-950: oklch(13% 0.028 261.692); 5685 5686 --color-zinc-50: oklch(98.5% 0 0); 5687 --color-zinc-100: oklch(96.7% 0.001 286.375); 5688 --color-zinc-200: oklch(92% 0.004 286.32); 5689 --color-zinc-300: oklch(87.1% 0.006 286.286); 5690 --color-zinc-400: oklch(70.5% 0.015 286.067); 5691 --color-zinc-500: oklch(55.2% 0.016 285.938); 5692 --color-zinc-600: oklch(44.2% 0.017 285.786); 5693 --color-zinc-700: oklch(37% 0.013 285.805); 5694 --color-zinc-800: oklch(27.4% 0.006 286.033); 5695 --color-zinc-900: oklch(21% 0.006 285.885); 5696 --color-zinc-950: oklch(14.1% 0.005 285.823); 5697 5698 --color-neutral-50: oklch(98.5% 0 0); 5699 --color-neutral-100: oklch(97% 0 0); 5700 --color-neutral-200: oklch(92.2% 0 0); 5701 --color-neutral-300: oklch(87% 0 0); 5702 --color-neutral-400: oklch(70.8% 0 0); 5703 --color-neutral-500: oklch(55.6% 0 0); 5704 --color-neutral-600: oklch(43.9% 0 0); 5705 --color-neutral-700: oklch(37.1% 0 0); 5706 --color-neutral-800: oklch(26.9% 0 0); 5707 --color-neutral-900: oklch(20.5% 0 0); 5708 --color-neutral-950: oklch(14.5% 0 0); 5709 5710 --color-stone-50: oklch(98.5% 0.001 106.423); 5711 --color-stone-100: oklch(97% 0.001 106.424); 5712 --color-stone-200: oklch(92.3% 0.003 48.717); 5713 --color-stone-300: oklch(86.9% 0.005 56.366); 5714 --color-stone-400: oklch(70.9% 0.01 56.259); 5715 --color-stone-500: oklch(55.3% 0.013 58.071); 5716 --color-stone-600: oklch(44.4% 0.011 73.639); 5717 --color-stone-700: oklch(37.4% 0.01 67.558); 5718 --color-stone-800: oklch(26.8% 0.007 34.298); 5719 --color-stone-900: oklch(21.6% 0.006 56.043); 5720 --color-stone-950: oklch(14.7% 0.004 49.25); 5721 5722 --color-mauve-50: oklch(98.5% 0 0); 5723 --color-mauve-100: oklch(96% 0.003 325.6); 5724 --color-mauve-200: oklch(92.2% 0.005 325.62); 5725 --color-mauve-300: oklch(86.5% 0.012 325.68); 5726 --color-mauve-400: oklch(71.1% 0.019 323.02); 5727 --color-mauve-500: oklch(54.2% 0.034 322.5); 5728 --color-mauve-600: oklch(43.5% 0.029 321.78); 5729 --color-mauve-700: oklch(36.4% 0.029 323.89); 5730 --color-mauve-800: oklch(26.3% 0.024 320.12); 5731 --color-mauve-900: oklch(21.2% 0.019 322.12); 5732 --color-mauve-950: oklch(14.5% 0.008 326); 5733 5734 --color-olive-50: oklch(98.8% 0.003 106.5); 5735 --color-olive-100: oklch(96.6% 0.005 106.5); 5736 --color-olive-200: oklch(93% 0.007 106.5); 5737 --color-olive-300: oklch(88% 0.011 106.6); 5738 --color-olive-400: oklch(73.7% 0.021 106.9); 5739 --color-olive-500: oklch(58% 0.031 107.3); 5740 --color-olive-600: oklch(46.6% 0.025 107.3); 5741 --color-olive-700: oklch(39.4% 0.023 107.4); 5742 --color-olive-800: oklch(28.6% 0.016 107.4); 5743 --color-olive-900: oklch(22.8% 0.013 107.4);
5744 --color-olive-950: oklch(15.3% 0.006 107.1); 5745 5746 --color-mist-50: oklch(98.7% 0.002 197.1); 5747 --color-mist-100: oklch(96.3% 0.002 197.1); 5748 --color-mist-200: oklch(92.5% 0.005 214.3); 5749 --color-mist-300: oklch(87.2% 0.007 219.6); 5750 --color-mist-400: oklch(72.3% 0.014 214.4); 5751 --color-mist-500: oklch(56% 0.021 213.5); 5752 --color-mist-600: oklch(45% 0.017 213.2); 5753 --color-mist-700: oklch(37.8% 0.015 216); 5754 --color-mist-800: oklch(27.5% 0.011 216.9); 5755 --color-mist-900: oklch(21.8% 0.008 223.9); 5756 --color-mist-950: oklch(14.8% 0.004 228.8); 5757 5758 --color-taupe-50: oklch(98.6% 0.002 67.8); 5759 --color-taupe-100: oklch(96% 0.002 17.2); 5760 --color-taupe-200: oklch(92.2% 0.005 34.3); 5761 --color-taupe-300: oklch(86.8% 0.007 39.5); 5762 --color-taupe-400: oklch(71.4% 0.014 41.2); 5763 --color-taupe-500: oklch(54.7% 0.021 43.1); 5764 --color-taupe-600: oklch(43.8% 0.017 39.3); 5765 --color-taupe-700: oklch(36.7% 0.016 35.7); 5766 --color-taupe-800: oklch(26.8% 0.011 36.5); 5767 --color-taupe-900: oklch(21.4% 0.009 43.1); 5768 --color-taupe-950: oklch(14.7% 0.004 49.3); 5769 5770 --color-black: #000; 5771 --color-white: #fff; 5772 5773 --spacing: 0.25rem; 5774 5775 --breakpoint-sm: 40rem; 5776 --breakpoint-md: 48rem; 5777 --breakpoint-lg: 64rem; 5778 --breakpoint-xl: 80rem; 5779 --breakpoint-2xl: 96rem; 5780 5781 --container-3xs: 16rem; 5782 --container-2xs: 18rem; 5783 --container-xs: 20rem; 5784 --container-sm: 24rem; 5785 --container-md: 28rem; 5786 --container-lg: 32rem; 5787 --container-xl: 36rem; 5788 --container-2xl: 42rem; 5789 --container-3xl: 48rem; 5790 --container-4xl: 56rem; 5791 --container-5xl: 64rem; 5792 --container-6xl: 72rem; 5793 --container-7xl: 80rem; 5794 5795 --text-xs: 0.75rem; 5796 --text-xs--line-height: calc(1 / 0.75); 5797 --text-sm: 0.875rem; 5798 --text-sm--line-height: calc(1.25 / 0.875); 5799 --text-base: 1rem; 5800 --text-base--line-height: calc(1.5 / 1); 5801 --text-lg: 1.125rem; 5802 --text-lg--line-height: calc(1.75 / 1.125); 5803 --text-xl: 1.25rem; 5804 --text-xl--line-height: calc(1.75 / 1.25); 5805 --text-2xl: 1.5rem; 5806 --text-2xl--line-height: calc(2 / 1.5); 5807 --text-3xl: 1.875rem; 5808 --text-3xl--line-height: calc(2.25 / 1.875); 5809 --text-4xl: 2.25rem; 5810 --text-4xl--line-height: calc(2.5 / 2.25); 5811 --text-5xl: 3rem; 5812 --text-5xl--line-height: 1; 5813 --text-6xl: 3.75rem; 5814 --text-6xl--line-height: 1; 5815 --text-7xl: 4.5rem; 5816 --text-7xl--line-height: 1; 5817 --text-8xl: 6rem; 5818 --text-8xl--line-height: 1; 5819 --text-9xl: 8rem; 5820 --text-9xl--line-height: 1; 5821 5822 --font-weight-thin: 100; 5823 --font-weight-extralight: 200; 5824 --font-weight-light: 300; 5825 --font-weight-normal: 400; 5826 --font-weight-medium: 500; 5827 --font-weight-semibold: 600; 5828 --font-weight-bold: 700; 5829 --font-weight-extrabold: 800; 5830 --font-weight-black: 900; 5831 5832 --tracking-tighter: -0.05em; 5833 --tracking-tight: -0.025em; 5834 --tracking-normal: 0em; 5835 --tracking-wide: 0.025em; 5836 --tracking-wider: 0.05em; 5837 --tracking-widest: 0.1em; 5838 5839 --leading-tight: 1.25; 5840 --leading-snug: 1.375; 5841 --leading-normal: 1.5; 5842 --leading-relaxed: 1.625; 5843 --leading-loose: 2; 5844 5845 --radius-xs: 0.125rem; 5846 --radius-sm: 0.25rem; 5847 --radius-md: 0.375rem; 5848 --radius-lg: 0.5rem; 5849 --radius-xl: 0.75rem; 5850 --radius-2xl: 1rem; 5851 --radius-3xl: 1.5rem; 5852 --radius-4xl: 2rem; 5853 5854 --shadow-2xs: 0 1px rgb(0 0 0 / 0.05); 5855 --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05); 5856 --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); 5857 --shadow-md: 5858 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 5859 --shadow-lg: 5860 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 5861 --shadow-xl: 5862 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); 5863 --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); 5864 5865 --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05); 5866 --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05); 5867 --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05); 5868 5869 --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05); 5870 --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15); 5871 --drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12); 5872 --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15); 5873 --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1); 5874 --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15); 5875 5876 --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15); 5877 --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2); 5878 --text-shadow-sm: 5879 0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 5880 0px 2px 2px rgb(0 0 0 / 0.075); 5881 --text-shadow-md: 5882 0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 5883 0px 2px 4px rgb(0 0 0 / 0.1); 5884 --text-shadow-lg: 5885 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 5886 0px 4px 8px rgb(0 0 0 / 0.1); 5887 5888 --ease-in: cubic-bezier(0.4, 0, 1, 1); 5889 --ease-out: cubic-bezier(0, 0, 0.2, 1); 5890 --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); 5891 5892 --animate-spin: spin 1s linear infinite; 5893 --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; 5894 --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 5895 --animate-bounce: bounce 1s infinite; 5896
5897 @keyframes spin { 5898 to { 5899 transform: rotate(360deg); 5900 } 5901 } 5902 5903 @keyframes ping { 5904 75%, 5905 100% { 5906 transform: scale(2); 5907 opacity: 0; 5908 } 5909 } 5910 5911 @keyframes pulse { 5912 50% { 5913 opacity: 0.5; 5914 } 5915 } 5916 5917 @keyframes bounce { 5918 0%, 5919 100% { 5920 transform: translateY(-25%); 5921 animation-timing-function: cubic-bezier(0.8, 0, 1, 1); 5922 } 5923 5924 50% { 5925 transform: none; 5926 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 5927 } 5928 } 5929 5930 --blur-xs: 4px; 5931 --blur-sm: 8px; 5932 --blur-md: 12px; 5933 --blur-lg: 16px; 5934 --blur-xl: 24px; 5935 --blur-2xl: 40px; 5936 --blur-3xl: 64px; 5937 5938 --perspective-dramatic: 100px; 5939 --perspective-near: 300px; 5940 --perspective-normal: 500px; 5941 --perspective-midrange: 800px; 5942 --perspective-distant: 1200px; 5943 5944 --aspect-video: 16 / 9; 5945 5946 --default-transition-duration: 150ms; 5947 --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 5948 --default-font-family: --theme(--font-sans, initial); 5949 --default-font-feature-settings: --theme( 5950 --font-sans--font-feature-settings, 5951 initial 5952 ); 5953 --default-font-variation-settings: --theme( 5954 --font-sans--font-variation-settings, 5955 initial 5956 ); 5957 --default-mono-font-family: --theme(--font-mono, initial); 5958 --default-mono-font-feature-settings: --theme( 5959 --font-mono--font-feature-settings, 5960 initial 5961 ); 5962 --default-mono-font-variation-settings: --theme( 5963 --font-mono--font-variation-settings, 5964 initial 5965 ); 5966 } 5967 5968 /* Deprecated */ 5969 @theme default inline reference { 5970 --blur: 8px; 5971 --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); 5972 --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); 5973 --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06); 5974 --radius: 0.25rem; 5975 --max-width-prose: 65ch; 5976 } 5977} 5978 5979@layer base { 5980 /* 5981 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 5982 2. Remove default margins and padding 5983 3. Reset all borders. 5984*/ 5985 5986 *, 5987 ::after, 5988 ::before, 5989 ::backdrop, 5990 ::file-selector-button { 5991 box-sizing: border-box; /* 1 */ 5992 margin: 0; /* 2 */ 5993 padding: 0; /* 2 */ 5994 border: 0 solid; /* 3 */ 5995 } 5996 5997 /* 5998 1. Use a consistent sensible line-height in all browsers. 5999 2. Prevent adjustments of font size after orientation changes in iOS. 6000 3. Use a more readable tab size. 6001 4. Use the user's configured \`sans\` font-family by default. 6002 5. Use the user's configured \`sans\` font-feature-settings by default. 6003 6. Use the user's configured \`sans\` font-variation-settings by default. 6004 7. Disable tap highlights on iOS. 6005*/ 6006 6007 html, 6008 :host { 6009 line-height: 1.5; /* 1 */ 6010 -webkit-text-size-adjust: 100%; /* 2 */ 6011 tab-size: 4; /* 3 */ 6012 font-family: --theme( 6013 --default-font-family, 6014 ui-sans-serif, 6015 system-ui, 6016 sans-serif, 6017 "Apple Color Emoji", 6018 "Segoe UI Emoji", 6019 "Segoe UI Symbol", 6020 "Noto Color Emoji" 6021 ); /* 4 */ 6022 font-feature-settings: --theme( 6023 --default-font-feature-settings, 6024 normal 6025 ); /* 5 */ 6026 font-variation-settings: --theme( 6027 --default-font-variation-settings, 6028 normal 6029 ); /* 6 */ 6030 -webkit-tap-highlight-color: transparent; /* 7 */ 6031 } 6032 6033 /* 6034 1. Add the correct height in Firefox. 6035 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 6036 3. Reset the default border style to a 1px solid border. 6037*/ 6038 6039 hr { 6040 height: 0; /* 1 */ 6041 color: inherit; /* 2 */ 6042 border-top-width: 1px; /* 3 */ 6043 } 6044 6045 /* 6046 Add the correct text decoration in Chrome, Edge, and Safari. 6047*/ 6048 6049 abbr:where([title]) { 6050 -webkit-text-decoration: underline dotted; 6051 text-decoration: underline dotted; 6052 } 6053 6054 /* 6055 Remove the default font size and weight for headings. 6056*/ 6057 6058 h1, 6059 h2, 6060 h3, 6061 h4, 6062 h5, 6063 h6 { 6064 font-size: inherit; 6065 font-weight: inherit; 6066 } 6067 6068 /* 6069 Reset links to optimize for opt-in styling instead of opt-out. 6070*/ 6071 6072 a { 6073 color: inherit; 6074 -webkit-text-decoration: inherit; 6075 text-decoration: inherit; 6076 } 6077 6078 /* 6079 Add the correct font weight in Edge and Safari. 6080*/ 6081 6082 b, 6083 strong { 6084 font-weight: bolder; 6085 } 6086 6087 /* 6088 1. Use the user's configured \`mono\` font-family by default. 6089 2. Use the user's configured \`mono\` font-feature-settings by default. 6090 3. Use the user's configured \`mono\` font-variation-settings by default. 6091 4. Correct the odd \`em\` font sizing in all browsers. 6092*/ 6093 6094 code, 6095 kbd, 6096 samp, 6097 pre { 6098 font-family: --theme( 6099 --default-mono-font-family, 6100 ui-monospace, 6101 SFMono-Regular, 6102 Menlo, 6103 Monaco, 6104 Consolas, 6105 "Liberation Mono", 6106 "Courier New", 6107 monospace 6108 ); /* 1 */ 6109 font-feature-settings: --theme( 6110 --default-mono-font-feature-settings, 6111 normal 6112 ); /* 2 */ 6113 font-variation-settings: --theme( 6114 --default-mono-font-variation-settings, 6115 normal 6116 ); /* 3 */ 6117 font-size: 1em; /* 4 */ 6118 } 6119 6120 /* 6121 Add the correct font size in all browsers. 6122*/ 6123 6124 small { 6125 font-size: 80%; 6126 } 6127 6128 /* 6129 Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers. 6130*/ 6131 6132 sub, 6133 sup { 6134 font-size: 75%; 6135 line-height: 0; 6136 position: relative; 6137 vertical-align: baseline; 6138 } 6139 6140 sub { 6141 bottom: -0.25em; 6142 } 6143 6144 sup { 6145 top: -0.5em; 6146 } 6147 6148 /* 6149 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 6150 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 6151 3. Remove gaps between table borders by default. 6152*/ 6153 6154 table { 6155 text-indent: 0; /* 1 */ 6156 border-color: inherit; /* 2 */ 6157 border-collapse: collapse; /* 3 */ 6158 } 6159 6160 /* 6161 Use the modern Firefox focus style for all focusable elements. 6162*/ 6163 6164 :-moz-focusring { 6165 outline: auto; 6166 } 6167 6168 /* 6169 Add the correct vertical alignment in Chrome and Firefox. 6170*/ 6171 6172 progress { 6173 vertical-align: baseline; 6174 } 6175 6176 /* 6177 Add the correct display in Chrome and Safari. 6178*/ 6179 6180 summary { 6181 display: list-item; 6182 } 6183 6184 /* 6185 Make lists unstyled by default. 6186*/ 6187 6188 ol, 6189 ul, 6190 menu { 6191 list-style: none; 6192 } 6193 6194 /* 6195 1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14) 6196 2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/je
6196nsimmons/cssremedy/issues/14#issuecomment-634934210) 6197 This can trigger a poorly considered lint error in some tools but is included by design. 6198*/ 6199 6200 img, 6201 svg, 6202 video, 6203 canvas, 6204 audio, 6205 iframe, 6206 embed, 6207 object { 6208 display: block; /* 1 */ 6209 vertical-align: middle; /* 2 */ 6210 } 6211 6212 /* 6213 Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) 6214*/ 6215 6216 img, 6217 video { 6218 max-width: 100%; 6219 height: auto; 6220 } 6221 6222 /* 6223 1. Inherit font styles in all browsers. 6224 2. Remove border radius in all browsers. 6225 3. Remove background color in all browsers. 6226 4. Ensure consistent opacity for disabled states in all browsers. 6227*/ 6228 6229 button, 6230 input, 6231 select, 6232 optgroup, 6233 textarea, 6234 ::file-selector-button { 6235 font: inherit; /* 1 */ 6236 font-feature-settings: inherit; /* 1 */ 6237 font-variation-settings: inherit; /* 1 */ 6238 letter-spacing: inherit; /* 1 */ 6239 color: inherit; /* 1 */ 6240 border-radius: 0; /* 2 */ 6241 background-color: transparent; /* 3 */ 6242 opacity: 1; /* 4 */ 6243 } 6244 6245 /* 6246 Restore default font weight. 6247*/ 6248 6249 :where(select:is([multiple], [size])) optgroup { 6250 font-weight: bolder; 6251 } 6252 6253 /* 6254 Restore indentation. 6255*/ 6256 6257 :where(select:is([multiple], [size])) optgroup option { 6258 padding-inline-start: 20px; 6259 } 6260 6261 /* 6262 Restore space after button. 6263*/ 6264 6265 ::file-selector-button { 6266 margin-inline-end: 4px; 6267 } 6268 6269 /* 6270 Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) 6271*/ 6272 6273 ::placeholder { 6274 opacity: 1; 6275 } 6276 6277 /* 6278 Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not 6279 crash when using \`color-mix(\u2026)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194) 6280*/ 6281 6282 @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or 6283 (contain-intrinsic-size: 1px) /* Safari 17+ */ { 6284 ::placeholder { 6285 color: color-mix(in oklab, currentcolor 50%, transparent); 6286 } 6287 } 6288 6289 /* 6290 Prevent resizing textareas horizontally by default. 6291*/ 6292 6293 textarea { 6294 resize: vertical; 6295 } 6296 6297 /* 6298 Remove the inner padding in Chrome and Safari on macOS. 6299*/ 6300 6301 ::-webkit-search-decoration { 6302 -webkit-appearance: none; 6303 } 6304 6305 /* 6306 1. Ensure date/time inputs have the same height when empty in iOS Safari. 6307 2. Ensure text alignment can be changed on date/time inputs in iOS Safari. 6308*/ 6309 6310 ::-webkit-date-and-time-value { 6311 min-height: 1lh; /* 1 */ 6312 text-align: inherit; /* 2 */ 6313 } 6314 6315 /* 6316 Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`. 6317*/ 6318 6319 ::-webkit-datetime-edit { 6320 display: inline-flex; 6321 } 6322 6323 /* 6324 Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers. 6325*/ 6326 6327 ::-webkit-datetime-edit-fields-wrapper { 6328 padding: 0; 6329 } 6330 6331 ::-webkit-datetime-edit, 6332 ::-webkit-datetime-edit-year-field, 6333 ::-webkit-datetime-edit-month-field, 6334 ::-webkit-datetime-edit-day-field, 6335 ::-webkit-datetime-edit-hour-field, 6336 ::-webkit-datetime-edit-minute-field, 6337 ::-webkit-datetime-edit-second-field, 6338 ::-webkit-datetime-edit-millisecond-field, 6339 ::-webkit-datetime-edit-meridiem-field { 6340 padding-block: 0; 6341 } 6342 6343 /* 6344 Center dropdown marker shown on inputs with paired \`<datalist>\`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499) 6345*/ 6346 6347 ::-webkit-calendar-picker-indicator { 6348 line-height: 1; 6349 } 6350 6351 /* 6352 Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) 6353*/ 6354 6355 :-moz-ui-invalid { 6356 box-shadow: none; 6357 } 6358 6359 /* 6360 Correct the inability to style the border radius in iOS Safari. 6361*/ 6362 6363 button, 6364 input:where([type="button"], [type="reset"], [type="submit"]), 6365 ::file-selector-button { 6366 appearance: button; 6367 } 6368 6369 /* 6370 Correct the cursor style of increment and decrement buttons in Safari. 6371*/ 6372 6373 ::-webkit-inner-spin-button, 6374 ::-webkit-outer-spin-button { 6375 height: auto; 6376 } 6377 6378 /* 6379 Make elements with the HTML hidden attribute stay hidden by default. 6380*/ 6381
6382 [hidden]:where(:not([hidden="until-found"])) { 6383 display: none !important; 6384 } 6385} 6386 6387@layer utilities { 6388 @tailwind utilities; 6389} 6390`, "/tailwindcss/theme.css": `@theme default { 6391 --font-sans: 6392 ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 6393 'Noto Color Emoji'; 6394 --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif; 6395 --font-mono: 6396 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', 6397 monospace; 6398 6399 --color-red-50: oklch(97.1% 0.013 17.38); 6400 --color-red-100: oklch(93.6% 0.032 17.717); 6401 --color-red-200: oklch(88.5% 0.062 18.334); 6402 --color-red-300: oklch(80.8% 0.114 19.571); 6403 --color-red-400: oklch(70.4% 0.191 22.216); 6404 --color-red-500: oklch(63.7% 0.237 25.331); 6405 --color-red-600: oklch(57.7% 0.245 27.325); 6406 --color-red-700: oklch(50.5% 0.213 27.518); 6407 --color-red-800: oklch(44.4% 0.177 26.899); 6408 --color-red-900: oklch(39.6% 0.141 25.723); 6409 --color-red-950: oklch(25.8% 0.092 26.042); 6410 6411 --color-orange-50: oklch(98% 0.016 73.684); 6412 --color-orange-100: oklch(95.4% 0.038 75.164); 6413 --color-orange-200: oklch(90.1% 0.076 70.697); 6414 --color-orange-300: oklch(83.7% 0.128 66.29); 6415 --color-orange-400: oklch(75% 0.183 55.934); 6416 --color-orange-500: oklch(70.5% 0.213 47.604); 6417 --color-orange-600: oklch(64.6% 0.222 41.116); 6418 --color-orange-700: oklch(55.3% 0.195 38.402); 6419 --color-orange-800: oklch(47% 0.157 37.304); 6420 --color-orange-900: oklch(40.8% 0.123 38.172); 6421 --color-orange-950: oklch(26.6% 0.079 36.259); 6422 6423 --color-amber-50: oklch(98.7% 0.022 95.277); 6424 --color-amber-100: oklch(96.2% 0.059 95.617); 6425 --color-amber-200: oklch(92.4% 0.12 95.746); 6426 --color-amber-300: oklch(87.9% 0.169 91.605); 6427 --color-amber-400: oklch(82.8% 0.189 84.429); 6428 --color-amber-500: oklch(76.9% 0.188 70.08); 6429 --color-amber-600: oklch(66.6% 0.179 58.318); 6430 --color-amber-700: oklch(55.5% 0.163 48.998); 6431 --color-amber-800: oklch(47.3% 0.137 46.201); 6432 --color-amber-900: oklch(41.4% 0.112 45.904); 6433 --color-amber-950: oklch(27.9% 0.077 45.635); 6434 6435 --color-yellow-50: oklch(98.7% 0.026 102.212); 6436 --color-yellow-100: oklch(97.3% 0.071 103.193); 6437 --color-yellow-200: oklch(94.5% 0.129 101.54); 6438 --color-yellow-300: oklch(90.5% 0.182 98.111); 6439 --color-yellow-400: oklch(85.2% 0.199 91.936); 6440 --color-yellow-500: oklch(79.5% 0.184 86.047); 6441 --color-yellow-600: oklch(68.1% 0.162 75.834); 6442 --color-yellow-700: oklch(55.4% 0.135 66.442); 6443 --color-yellow-800: oklch(47.6% 0.114 61.907); 6444 --color-yellow-900: oklch(42.1% 0.095 57.708); 6445 --color-yellow-950: oklch(28.6% 0.066 53.813); 6446 6447 --color-lime-50: oklch(98.6% 0.031 120.757); 6448 --color-lime-100: oklch(96.7% 0.067 122.328); 6449 --color-lime-200: oklch(93.8% 0.127 124.321); 6450 --color-lime-300: oklch(89.7% 0.196 126.665); 6451 --color-lime-400: oklch(84.1% 0.238 128.85); 6452 --color-lime-500: oklch(76.8% 0.233 130.85); 6453 --color-lime-600: oklch(64.8% 0.2 131.684); 6454 --color-lime-700: oklch(53.2% 0.157 131.589); 6455 --color-lime-800: oklch(45.3% 0.124 130.933); 6456 --color-lime-900: oklch(40.5% 0.101 131.063); 6457 --color-lime-950: oklch(27.4% 0.072 132.109); 6458 6459 --color-green-50: oklch(98.2% 0.018 155.826); 6460 --color-green-100: oklch(96.2% 0.044 156.743); 6461 --color-green-200: oklch(92.5% 0.084 155.995); 6462 --color-green-300: oklch(87.1% 0.15 154.449); 6463 --color-green-400: oklch(79.2% 0.209 151.711); 6464 --color-green-500: oklch(72.3% 0.219 149.579); 6465 --color-green-600: oklch(62.7% 0.194 149.214); 6466 --color-green-700: oklch(52.7% 0.154 150.069); 6467 --color-green-800: oklch(44.8% 0.119 151.328); 6468 --color-green-900: oklch(39.3% 0.095 152.535); 6469 --color-green-950: oklch(26.6% 0.065 152.934); 6470 6471 --color-emerald-50: oklch(97.9% 0.021 166.113); 6472 --color-emerald-100: oklch(95% 0.052 163.051); 6473 --color-emerald-200: oklch(90.5% 0.093 164.15); 6474 --color-emerald-300: oklch(84.5% 0.143 164.978); 6475 --color-emerald-400: oklch(76.5% 0.177 163.223); 6476 --color-emerald-500: oklch(69.6% 0.17 162.48); 6477 --color-emerald-600: oklch(59.6% 0.145 163.225); 6478 --color-emerald-700: oklch(50.8% 0.118 165.612); 6479 --color-emerald-800: oklch(43.2% 0.095 166.913);
6480 --color-emerald-900: oklch(37.8% 0.077 168.94); 6481 --color-emerald-950: oklch(26.2% 0.051 172.552); 6482 6483 --color-teal-50: oklch(98.4% 0.014 180.72); 6484 --color-teal-100: oklch(95.3% 0.051 180.801); 6485 --color-teal-200: oklch(91% 0.096 180.426); 6486 --color-teal-300: oklch(85.5% 0.138 181.071); 6487 --color-teal-400: oklch(77.7% 0.152 181.912); 6488 --color-teal-500: oklch(70.4% 0.14 182.503); 6489 --color-teal-600: oklch(60% 0.118 184.704); 6490 --color-teal-700: oklch(51.1% 0.096 186.391); 6491 --color-teal-800: oklch(43.7% 0.078 188.216); 6492 --color-teal-900: oklch(38.6% 0.063 188.416); 6493 --color-teal-950: oklch(27.7% 0.046 192.524); 6494 6495 --color-cyan-50: oklch(98.4% 0.019 200.873); 6496 --color-cyan-100: oklch(95.6% 0.045 203.388); 6497 --color-cyan-200: oklch(91.7% 0.08 205.041); 6498 --color-cyan-300: oklch(86.5% 0.127 207.078); 6499 --color-cyan-400: oklch(78.9% 0.154 211.53); 6500 --color-cyan-500: oklch(71.5% 0.143 215.221); 6501 --color-cyan-600: oklch(60.9% 0.126 221.723); 6502 --color-cyan-700: oklch(52% 0.105 223.128); 6503 --color-cyan-800: oklch(45% 0.085 224.283); 6504 --color-cyan-900: oklch(39.8% 0.07 227.392); 6505 --color-cyan-950: oklch(30.2% 0.056 229.695); 6506 6507 --color-sky-50: oklch(97.7% 0.013 236.62); 6508 --color-sky-100: oklch(95.1% 0.026 236.824); 6509 --color-sky-200: oklch(90.1% 0.058 230.902); 6510 --color-sky-300: oklch(82.8% 0.111 230.318); 6511 --color-sky-400: oklch(74.6% 0.16 232.661); 6512 --color-sky-500: oklch(68.5% 0.169 237.323); 6513 --color-sky-600: oklch(58.8% 0.158 241.966); 6514 --color-sky-700: oklch(50% 0.134 242.749); 6515 --color-sky-800: oklch(44.3% 0.11 240.79); 6516 --color-sky-900: oklch(39.1% 0.09 240.876); 6517 --color-sky-950: oklch(29.3% 0.066 243.157); 6518 6519 --color-blue-50: oklch(97% 0.014 254.604); 6520 --color-blue-100: oklch(93.2% 0.032 255.585); 6521 --color-blue-200: oklch(88.2% 0.059 254.128); 6522 --color-blue-300: oklch(80.9% 0.105 251.813); 6523 --color-blue-400: oklch(70.7% 0.165 254.624); 6524 --color-blue-500: oklch(62.3% 0.214 259.815); 6525 --color-blue-600: oklch(54.6% 0.245 262.881); 6526 --color-blue-700: oklch(48.8% 0.243 264.376); 6527 --color-blue-800: oklch(42.4% 0.199 265.638); 6528 --color-blue-900: oklch(37.9% 0.146 265.522); 6529 --color-blue-950: oklch(28.2% 0.091 267.935); 6530 6531 --color-indigo-50: oklch(96.2% 0.018 272.314); 6532 --color-indigo-100: oklch(93% 0.034 272.788); 6533 --color-indigo-200: oklch(87% 0.065 274.039); 6534 --color-indigo-300: oklch(78.5% 0.115 274.713); 6535 --color-indigo-400: oklch(67.3% 0.182 276.935); 6536 --color-indigo-500: oklch(58.5% 0.233 277.117); 6537 --color-indigo-600: oklch(51.1% 0.262 276.966); 6538 --color-indigo-700: oklch(45.7% 0.24 277.023); 6539 --color-indigo-800: oklch(39.8% 0.195 277.366); 6540 --color-indigo-900: oklch(35.9% 0.144 278.697); 6541 --color-indigo-950: oklch(25.7% 0.09 281.288); 6542 6543 --color-violet-50: oklch(96.9% 0.016 293.756); 6544 --color-violet-100: oklch(94.3% 0.029 294.588); 6545 --color-violet-200: oklch(89.4% 0.057 293.283); 6546 --color-violet-300: oklch(81.1% 0.111 293.571); 6547 --color-violet-400: oklch(70.2% 0.183 293.541); 6548 --color-violet-500: oklch(60.6% 0.25 292.717); 6549 --color-violet-600: oklch(54.1% 0.281 293.009); 6550 --color-violet-700: oklch(49.1% 0.27 292.581); 6551 --color-violet-800: oklch(43.2% 0.232 292.759); 6552 --color-violet-900: oklch(38% 0.189 293.745); 6553 --color-violet-950: oklch(28.3% 0.141 291.089); 6554 6555 --color-purple-50: oklch(97.7% 0.014 308.299); 6556 --color-purple-100: oklch(94.6% 0.033 307.174); 6557 --color-purple-200: oklch(90.2% 0.063 306.703); 6558 --color-purple-300: oklch(82.7% 0.119 306.383); 6559 --color-purple-400: oklch(71.4% 0.203 305.504); 6560 --color-purple-500: oklch(62.7% 0.265 303.9); 6561 --color-purple-600: oklch(55.8% 0.288 302.321); 6562 --color-purple-700: oklch(49.6% 0.265 301.924); 6563 --color-purple-800: oklch(43.8% 0.218 303.724); 6564 --color-purple-900: oklch(38.1% 0.176 304.987); 6565 --color-purple-950: oklch(29.1% 0.149 302.717); 6566 6567 --color-fuchsia-50: oklch(97.7% 0.017 320.058); 6568 --color-fuchsia-100: oklch(95.2% 0.037 318.852); 6569 --color-fuchsia-200: oklch(90.3% 0.076 319.62); 6570 --color-fuchsia-300: oklch(83.3% 0.145 321.434); 6571 --color-fuchsia-400: oklch(74% 0.238 322.16); 6572 --color-fuchsia-500: oklch(66.7% 0.295 322.15); 6573 --color-fuchsia-600: oklch(59.1% 0.293 322.896); 6574 --color-fuchsia-700: oklch(51.8% 0.253 323.949); 6575 --color-fuchsia-800: oklch(45.2% 0.211 324.591); 6576 --color-fuchsia-900: oklch(40.1% 0.17 325.612); 6577 --color-fuchsia-950: oklch(29.3% 0.136 325.661); 6578 6579 --color-pink-50: oklch(97.1% 0.014 343.198); 6580 --color-pink-100: oklch(94.8% 0.028 342.258); 6581 --color-pink-200: oklch(89.9% 0.061 343.231); 6582 --color-pink-300: oklch(82.3% 0.12 346.018); 6583 --color-pink-400: oklch(71.8% 0.202 349.761); 6584 --color-pink-500: oklch(65.6% 0.241 354.308); 6585 --color-pink-600: oklch(59.2% 0.249 0.584); 6586 --color-pink-700: oklch(52.5% 0.223 3.958); 6587 --color-pink-800: oklch(45.9% 0.187 3.815); 6588 --color-pink-900: oklch(40.8% 0.153 2.432); 6589 --color-pink-950: oklch(28.4% 0.109 3.907); 6590 6591 --color-rose-50: oklch(96.9% 0.015 12.422); 6592 --color-rose-100: oklch(94.1% 0.03 12.58);
6593 --color-rose-200: oklch(89.2% 0.058 10.001); 6594 --color-rose-300: oklch(81% 0.117 11.638); 6595 --color-rose-400: oklch(71.2% 0.194 13.428); 6596 --color-rose-500: oklch(64.5% 0.246 16.439); 6597 --color-rose-600: oklch(58.6% 0.253 17.585); 6598 --color-rose-700: oklch(51.4% 0.222 16.935); 6599 --color-rose-800: oklch(45.5% 0.188 13.697); 6600 --color-rose-900: oklch(41% 0.159 10.272); 6601 --color-rose-950: oklch(27.1% 0.105 12.094); 6602 6603 --color-slate-50: oklch(98.4% 0.003 247.858); 6604 --color-slate-100: oklch(96.8% 0.007 247.896); 6605 --color-slate-200: oklch(92.9% 0.013 255.508); 6606 --color-slate-300: oklch(86.9% 0.022 252.894); 6607 --color-slate-400: oklch(70.4% 0.04 256.788); 6608 --color-slate-500: oklch(55.4% 0.046 257.417); 6609 --color-slate-600: oklch(44.6% 0.043 257.281); 6610 --color-slate-700: oklch(37.2% 0.044 257.287); 6611 --color-slate-800: oklch(27.9% 0.041 260.031); 6612 --color-slate-900: oklch(20.8% 0.042 265.755); 6613 --color-slate-950: oklch(12.9% 0.042 264.695); 6614 6615 --color-gray-50: oklch(98.5% 0.002 247.839); 6616 --color-gray-100: oklch(96.7% 0.003 264.542); 6617 --color-gray-200: oklch(92.8% 0.006 264.531); 6618 --color-gray-300: oklch(87.2% 0.01 258.338); 6619 --color-gray-400: oklch(70.7% 0.022 261.325); 6620 --color-gray-500: oklch(55.1% 0.027 264.364); 6621 --color-gray-600: oklch(44.6% 0.03 256.802); 6622 --color-gray-700: oklch(37.3% 0.034 259.733); 6623 --color-gray-800: oklch(27.8% 0.033 256.848); 6624 --color-gray-900: oklch(21% 0.034 264.665); 6625 --color-gray-950: oklch(13% 0.028 261.692); 6626 6627 --color-zinc-50: oklch(98.5% 0 0); 6628 --color-zinc-100: oklch(96.7% 0.001 286.375); 6629 --color-zinc-200: oklch(92% 0.004 286.32); 6630 --color-zinc-300: oklch(87.1% 0.006 286.286); 6631 --color-zinc-400: oklch(70.5% 0.015 286.067); 6632 --color-zinc-500: oklch(55.2% 0.016 285.938); 6633 --color-zinc-600: oklch(44.2% 0.017 285.786); 6634 --color-zinc-700: oklch(37% 0.013 285.805); 6635 --color-zinc-800: oklch(27.4% 0.006 286.033); 6636 --color-zinc-900: oklch(21% 0.006 285.885); 6637 --color-zinc-950: oklch(14.1% 0.005 285.823); 6638 6639 --color-neutral-50: oklch(98.5% 0 0); 6640 --color-neutral-100: oklch(97% 0 0); 6641 --color-neutral-200: oklch(92.2% 0 0); 6642 --color-neutral-300: oklch(87% 0 0); 6643 --color-neutral-400: oklch(70.8% 0 0); 6644 --color-neutral-500: oklch(55.6% 0 0); 6645 --color-neutral-600: oklch(43.9% 0 0); 6646 --color-neutral-700: oklch(37.1% 0 0); 6647 --color-neutral-800: oklch(26.9% 0 0); 6648 --color-neutral-900: oklch(20.5% 0 0); 6649 --color-neutral-950: oklch(14.5% 0 0); 6650 6651 --color-stone-50: oklch(98.5% 0.001 106.423); 6652 --color-stone-100: oklch(97% 0.001 106.424); 6653 --color-stone-200: oklch(92.3% 0.003 48.717); 6654 --color-stone-300: oklch(86.9% 0.005 56.366); 6655 --color-stone-400: oklch(70.9% 0.01 56.259); 6656 --color-stone-500: oklch(55.3% 0.013 58.071); 6657 --color-stone-600: oklch(44.4% 0.011 73.639); 6658 --color-stone-700: oklch(37.4% 0.01 67.558); 6659 --color-stone-800: oklch(26.8% 0.007 34.298); 6660 --color-stone-900: oklch(21.6% 0.006 56.043); 6661 --color-stone-950: oklch(14.7% 0.004 49.25); 6662 6663 --color-mauve-50: oklch(98.5% 0 0); 6664 --color-mauve-100: oklch(96% 0.003 325.6); 6665 --color-mauve-200: oklch(92.2% 0.005 325.62); 6666 --color-mauve-300: oklch(86.5% 0.012 325.68); 6667 --color-mauve-400: oklch(71.1% 0.019 323.02); 6668 --color-mauve-500: oklch(54.2% 0.034 322.5); 6669 --color-mauve-600: oklch(43.5% 0.029 321.78); 6670 --color-mauve-700: oklch(36.4% 0.029 323.89); 6671 --color-mauve-800: oklch(26.3% 0.024 320.12); 6672 --color-mauve-900: oklch(21.2% 0.019 322.12); 6673 --color-mauve-950: oklch(14.5% 0.008 326); 6674 6675 --color-olive-50: oklch(98.8% 0.003 106.5); 6676 --color-olive-100: oklch(96.6% 0.005 106.5); 6677 --color-olive-200: oklch(93% 0.007 106.5); 6678 --color-olive-300: oklch(88% 0.011 106.6); 6679 --color-olive-400: oklch(73.7% 0.021 106.9); 6680 --color-olive-500: oklch(58% 0.031 107.3); 6681 --color-olive-600: oklch(46.6% 0.025 107.3); 6682 --color-olive-700: oklch(39.4% 0.023 107.4); 6683 --color-olive-800: oklch(28.6% 0.016 107.4); 6684 --color-olive-900: oklch(22.8% 0.013 107.4); 6685 --color-olive-950: oklch(15.3% 0.006 107.1); 6686 6687 --color-mist-50: oklch(98.7% 0.002 197.1); 6688 --color-mist-100: oklch(96.3% 0.002 197.1); 6689 --color-mist-200: oklch(92.5% 0.005 214.3); 6690 --color-mist-300: oklch(87.2% 0.007 219.6); 6691 --color-mist-400: oklch(72.3% 0.014 214.4); 6692 --color-mist-500: oklch(56% 0.021 213.5); 6693 --color-mist-600: oklch(45% 0.017 213.2);
6694 --color-mist-700: oklch(37.8% 0.015 216); 6695 --color-mist-800: oklch(27.5% 0.011 216.9); 6696 --color-mist-900: oklch(21.8% 0.008 223.9); 6697 --color-mist-950: oklch(14.8% 0.004 228.8); 6698 6699 --color-taupe-50: oklch(98.6% 0.002 67.8); 6700 --color-taupe-100: oklch(96% 0.002 17.2); 6701 --color-taupe-200: oklch(92.2% 0.005 34.3); 6702 --color-taupe-300: oklch(86.8% 0.007 39.5); 6703 --color-taupe-400: oklch(71.4% 0.014 41.2); 6704 --color-taupe-500: oklch(54.7% 0.021 43.1); 6705 --color-taupe-600: oklch(43.8% 0.017 39.3); 6706 --color-taupe-700: oklch(36.7% 0.016 35.7); 6707 --color-taupe-800: oklch(26.8% 0.011 36.5); 6708 --color-taupe-900: oklch(21.4% 0.009 43.1); 6709 --color-taupe-950: oklch(14.7% 0.004 49.3); 6710 6711 --color-black: #000; 6712 --color-white: #fff; 6713 6714 --spacing: 0.25rem; 6715 6716 --breakpoint-sm: 40rem; 6717 --breakpoint-md: 48rem; 6718 --breakpoint-lg: 64rem; 6719 --breakpoint-xl: 80rem; 6720 --breakpoint-2xl: 96rem; 6721 6722 --container-3xs: 16rem; 6723 --container-2xs: 18rem; 6724 --container-xs: 20rem; 6725 --container-sm: 24rem; 6726 --container-md: 28rem; 6727 --container-lg: 32rem; 6728 --container-xl: 36rem; 6729 --container-2xl: 42rem; 6730 --container-3xl: 48rem; 6731 --container-4xl: 56rem; 6732 --container-5xl: 64rem; 6733 --container-6xl: 72rem; 6734 --container-7xl: 80rem; 6735 6736 --text-xs: 0.75rem; 6737 --text-xs--line-height: calc(1 / 0.75); 6738 --text-sm: 0.875rem; 6739 --text-sm--line-height: calc(1.25 / 0.875); 6740 --text-base: 1rem; 6741 --text-base--line-height: calc(1.5 / 1); 6742 --text-lg: 1.125rem; 6743 --text-lg--line-height: calc(1.75 / 1.125); 6744 --text-xl: 1.25rem; 6745 --text-xl--line-height: calc(1.75 / 1.25); 6746 --text-2xl: 1.5rem; 6747 --text-2xl--line-height: calc(2 / 1.5); 6748 --text-3xl: 1.875rem; 6749 --text-3xl--line-height: calc(2.25 / 1.875); 6750 --text-4xl: 2.25rem; 6751 --text-4xl--line-height: calc(2.5 / 2.25); 6752 --text-5xl: 3rem; 6753 --text-5xl--line-height: 1; 6754 --text-6xl: 3.75rem; 6755 --text-6xl--line-height: 1; 6756 --text-7xl: 4.5rem; 6757 --text-7xl--line-height: 1; 6758 --text-8xl: 6rem; 6759 --text-8xl--line-height: 1; 6760 --text-9xl: 8rem; 6761 --text-9xl--line-height: 1; 6762 6763 --font-weight-thin: 100; 6764 --font-weight-extralight: 200; 6765 --font-weight-light: 300; 6766 --font-weight-normal: 400; 6767 --font-weight-medium: 500; 6768 --font-weight-semibold: 600; 6769 --font-weight-bold: 700; 6770 --font-weight-extrabold: 800; 6771 --font-weight-black: 900; 6772 6773 --tracking-tighter: -0.05em; 6774 --tracking-tight: -0.025em; 6775 --tracking-normal: 0em; 6776 --tracking-wide: 0.025em; 6777 --tracking-wider: 0.05em; 6778 --tracking-widest: 0.1em; 6779 6780 --leading-tight: 1.25; 6781 --leading-snug: 1.375; 6782 --leading-normal: 1.5; 6783 --leading-relaxed: 1.625; 6784 --leading-loose: 2; 6785 6786 --radius-xs: 0.125rem; 6787 --radius-sm: 0.25rem; 6788 --radius-md: 0.375rem; 6789 --radius-lg: 0.5rem; 6790 --radius-xl: 0.75rem; 6791 --radius-2xl: 1rem; 6792 --radius-3xl: 1.5rem; 6793 --radius-4xl: 2rem; 6794 6795 --shadow-2xs: 0 1px rgb(0 0 0 / 0.05); 6796 --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05); 6797 --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); 6798 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 6799 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 6800 --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); 6801 --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); 6802 6803 --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05); 6804 --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05); 6805 --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05); 6806 6807 --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05); 6808 --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15); 6809 --drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12); 6810 --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15); 6811 --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1); 6812 --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15); 6813 6814 --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15); 6815 --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2); 6816 --text-shadow-sm: 6817 0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075); 6818 --text-shadow-md: 6819 0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1); 6820 --text-shadow-lg: 6821 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1); 6822 6823 --ease-in: cubic-bezier(0.4, 0, 1, 1); 6824 --ease-out: cubic-bezier(0, 0, 0.2, 1); 6825 --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); 6826 6827 --animate-spin: spin 1s linear infinite; 6828 --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; 6829 --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 6830 --animate-bounce: bounce 1s infinite; 6831 6832 @keyframes spin { 6833 to { 6834 transform: rotate(360deg); 6835 } 6836 } 6837 6838 @keyframes ping { 6839 75%, 6840 100% { 6841 transform: scale(2); 6842 opacity: 0; 6843 } 6844 } 6845 6846 @keyframes pulse { 6847 50% { 6848 opacity: 0.5; 6849 } 6850 } 6851 6852 @keyframes bounce { 6853 0%, 6854 100% { 6855 transform: translateY(-25%); 6856 animation-timing-function: cubic-bezier(0.8, 0, 1, 1); 6857 } 6858 6859 50% { 6860 transform: none; 6861 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 6862 } 6863 } 6864 6865 --blur-xs: 4px; 6866 --blur-sm: 8px; 6867 --blur-md: 12px; 6868 --blur-lg: 16px; 6869 --blur-xl: 24px; 6870 --blur-2xl: 40px; 6871 --blur-3xl: 64px; 6872 6873 --perspective-dramatic: 100px; 6874 --perspective-near: 300px; 6875 --perspective-normal: 500px; 6876 --perspective-midrange: 800px; 6877 --perspective-distant: 1200px; 6878 6879 --aspect-video: 16 / 9; 6880 6881 --default-transition-duration: 150ms; 6882 --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 6883 --default-font-family: --theme(--font-sans, initial); 6884 --default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial); 6885 --default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial); 6886 --default-mono-font-family: --theme(--font-mono, initial); 6887 --default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial); 6888 --default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial); 6889} 6890 6891/* Deprecated */ 6892@theme default inline reference { 6893 --blur: 8px; 6894 --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); 6895 --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); 6896 --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06); 6897 --radius: 0.25rem; 6898 --max-width-prose: 65ch; 6899} 6900`, "/tailwindcss/preflight.css":
vendor: 5,995 bytes, lines 6900-7187
6900`/* 6901 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 6902 2. Remove default margins and padding 6903 3. Reset all borders. 6904*/ 6905 6906*, 6907::after, 6908::before, 6909::backdrop, 6910::file-selector-button { 6911 box-sizing: border-box; /* 1 */ 6912 margin: 0; /* 2 */ 6913 padding: 0; /* 2 */ 6914 border: 0 solid; /* 3 */ 6915} 6916 6917/* 6918 1. Use a consistent sensible line-height in all browsers. 6919 2. Prevent adjustments of font size after orientation changes in iOS. 6920 3. Use a more readable tab size. 6921 4. Use the user's configured \`sans\` font-family by default. 6922 5. Use the user's configured \`sans\` font-feature-settings by default. 6923 6. Use the user's configured \`sans\` font-variation-settings by default. 6924 7. Disable tap highlights on iOS. 6925*/ 6926 6927html, 6928:host { 6929 line-height: 1.5; /* 1 */ 6930 -webkit-text-size-adjust: 100%; /* 2 */ 6931 tab-size: 4; /* 3 */ 6932 font-family: --theme( 6933 --default-font-family, 6934 ui-sans-serif, 6935 system-ui, 6936 sans-serif, 6937 'Apple Color Emoji', 6938 'Segoe UI Emoji', 6939 'Segoe UI Symbol', 6940 'Noto Color Emoji' 6941 ); /* 4 */ 6942 font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */ 6943 font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */ 6944 -webkit-tap-highlight-color: transparent; /* 7 */ 6945} 6946 6947/* 6948 1. Add the correct height in Firefox. 6949 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 6950 3. Reset the default border style to a 1px solid border. 6951*/ 6952 6953hr { 6954 height: 0; /* 1 */ 6955 color: inherit; /* 2 */ 6956 border-top-width: 1px; /* 3 */ 6957} 6958 6959/* 6960 Add the correct text decoration in Chrome, Edge, and Safari. 6961*/ 6962 6963abbr:where([title]) { 6964 -webkit-text-decoration: underline dotted; 6965 text-decoration: underline dotted; 6966} 6967 6968/* 6969 Remove the default font size and weight for headings. 6970*/ 6971 6972h1, 6973h2, 6974h3, 6975h4, 6976h5, 6977h6 { 6978 font-size: inherit; 6979 font-weight: inherit; 6980} 6981 6982/* 6983 Reset links to optimize for opt-in styling instead of opt-out. 6984*/ 6985 6986a { 6987 color: inherit; 6988 -webkit-text-decoration: inherit; 6989 text-decoration: inherit; 6990} 6991 6992/* 6993 Add the correct font weight in Edge and Safari. 6994*/ 6995 6996b, 6997strong { 6998 font-weight: bolder; 6999} 7000 7001/* 7002 1. Use the user's configured \`mono\` font-family by default. 7003 2. Use the user's configured \`mono\` font-feature-settings by default. 7004 3. Use the user's configured \`mono\` font-variation-settings by default. 7005 4. Correct the odd \`em\` font sizing in all browsers. 7006*/ 7007 7008code, 7009kbd, 7010samp, 7011pre { 7012 font-family: --theme( 7013 --default-mono-font-family, 7014 ui-monospace, 7015 SFMono-Regular, 7016 Menlo, 7017 Monaco, 7018 Consolas, 7019 'Liberation Mono', 7020 'Courier New', 7021 monospace 7022 ); /* 1 */ 7023 font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */ 7024 font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */ 7025 font-size: 1em; /* 4 */ 7026} 7027 7028/* 7029 Add the correct font size in all browsers. 7030*/ 7031 7032small { 7033 font-size: 80%; 7034} 7035 7036/* 7037 Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers. 7038*/ 7039 7040sub, 7041sup { 7042 font-size: 75%; 7043 line-height: 0; 7044 position: relative; 7045 vertical-align: baseline; 7046} 7047 7048sub { 7049 bottom: -0.25em; 7050} 7051 7052sup { 7053 top: -0.5em; 7054} 7055 7056/* 7057 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 7058 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 7059 3. Remove gaps between table borders by default. 7060*/ 7061 7062table { 7063 text-indent: 0; /* 1 */ 7064 border-color: inherit; /* 2 */ 7065 border-collapse: collapse; /* 3 */ 7066} 7067 7068/* 7069 Use the modern Firefox focus style for all focusable elements. 7070*/ 7071 7072:-moz-focusring { 7073 outline: auto; 7074} 7075 7076/* 7077 Add the correct vertical alignment in Chrome and Firefox. 7078*/ 7079 7080progress { 7081 vertical-align: baseline; 7082} 7083 7084/* 7085 Add the correct display in Chrome and Safari. 7086*/ 7087 7088summary { 7089 display: list-item; 7090} 7091 7092/* 7093 Make lists unstyled by default. 7094*/ 7095 7096ol, 7097ul, 7098menu { 7099 list-style: none; 7100} 7101 7102/* 7103 1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14) 7104 2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) 7105 This can trigger a poorly considered lint error in some tools but is included by design. 7106*/ 7107 7108img, 7109svg, 7110video, 7111canvas, 7112audio, 7113iframe, 7114embed, 7115object { 7116 display: block; /* 1 */ 7117 vertical-align: middle; /* 2 */ 7118} 7119 7120/* 7121 Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) 7122*/ 7123 7124img, 7125video { 7126 max-width: 100%; 7127 height: auto; 7128} 7129 7130/* 7131 1. Inherit font styles in all browsers. 7132 2. Remove border radius in all browsers. 7133 3. Remove background color in all browsers. 7134 4. Ensure consistent opacity for disabled states in all browsers. 7135*/ 7136 7137button, 7138input, 7139select, 7140optgroup, 7141textarea, 7142::file-selector-button { 7143 font: inherit; /* 1 */ 7144 font-feature-settings: inherit; /* 1 */ 7145 font-variation-settings: inherit; /* 1 */ 7146 letter-spacing: inherit; /* 1 */ 7147 color: inherit; /* 1 */ 7148 border-radius: 0; /* 2 */ 7149 background-color: transparent; /* 3 */ 7150 opacity: 1; /* 4 */ 7151} 7152 7153/* 7154 Restore default font weight. 7155*/ 7156 7157:where(select:is([multiple], [size])) optgroup { 7158 font-weight: bolder; 7159} 7160 7161/* 7162 Restore indentation. 7163*/ 7164 7165:where(select:is([multiple], [size])) optgroup option { 7166 padding-inline-start: 20px; 7167} 7168 7169/* 7170 Restore space after button. 7171*/ 7172 7173::file-selector-button { 7174 margin-inline-end: 4px; 7175} 7176 7177/* 7178 Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) 7179*/ 7180 7181::placeholder { 7182 opacity: 1; 7183} 7184 7185/* 7186 Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not 7187 crash when using \`color-mix(
7187\u2026)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194) 7188*/ 7189 7190@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or 7191 (contain-intrinsic-size: 1px) /* Safari 17+ */ { 7192 ::placeholder { 7193 color: color-mix(in oklab, currentcolor 50%, transparent); 7194 } 7195} 7196 7197/* 7198 Prevent resizing textareas horizontally by default. 7199*/ 7200 7201textarea { 7202 resize: vertical; 7203} 7204 7205/* 7206 Remove the inner padding in Chrome and Safari on macOS. 7207*/ 7208 7209::-webkit-search-decoration { 7210 -webkit-appearance: none; 7211} 7212 7213/* 7214 1. Ensure date/time inputs have the same height when empty in iOS Safari. 7215 2. Ensure text alignment can be changed on date/time inputs in iOS Safari. 7216*/ 7217 7218::-webkit-date-and-time-value { 7219 min-height: 1lh; /* 1 */ 7220 text-align: inherit; /* 2 */ 7221} 7222 7223/* 7224 Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`. 7225*/ 7226 7227::-webkit-datetime-edit { 7228 display: inline-flex; 7229} 7230 7231/* 7232 Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers. 7233*/ 7234 7235::-webkit-datetime-edit-fields-wrapper { 7236 padding: 0; 7237} 7238 7239::-webkit-datetime-edit, 7240::-webkit-datetime-edit-year-field, 7241::-webkit-datetime-edit-month-field, 7242::-webkit-datetime-edit-day-field, 7243::-webkit-datetime-edit-hour-field, 7244::-webkit-datetime-edit-minute-field, 7245::-webkit-datetime-edit-second-field, 7246::-webkit-datetime-edit-millisecond-field, 7247::-webkit-datetime-edit-meridiem-field { 7248 padding-block: 0; 7249} 7250 7251/* 7252 Center dropdown marker shown on inputs with paired \`<datalist>\`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499) 7253*/ 7254 7255::-webkit-calendar-picker-indicator { 7256 line-height: 1; 7257} 7258 7259/* 7260 Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) 7261*/ 7262 7263:-moz-ui-invalid { 7264 box-shadow: none; 7265} 7266 7267/* 7268 Correct the inability to style the border radius in iOS Safari. 7269*/ 7270 7271button, 7272input:where([type='button'], [type='reset'], [type='submit']), 7273::file-selector-button { 7274 appearance: button; 7275} 7276 7277/* 7278 Correct the cursor style of increment and decrement buttons in Safari. 7279*/ 7280 7281::-webkit-inner-spin-button, 7282::-webkit-outer-spin-button { 7283 height: auto; 7284} 7285 7286/* 7287 Make elements with the HTML hidden attribute stay hidden by default. 7288*/ 7289 7290[hidden]:where(:not([hidden='until-found'])) { 7291 display: none !important; 7292} 7293`, "/tailwindcss/utilities.css": `@tailwind utilities; 7294` }; 7295async function Ao(e3) { 7296 return await fetch(e3).then((e4) => e4.text()); 7297} 7298async function jo(e3, t2 = `/`, n2 = {}) { 7299 t2 || (t2 = `/`); 7300 let r2 = e3; 7301 if (e3.startsWith(`fetch:`) && c(e3.substring(6))) return { base: Q.default.dirname(e3), content: await Ao(new URL(e3.substring(6)).toString()), path: e3 }; 7302 { 7303 for (let [e4, t3] of Object.entries(ko)) Object.keys(n2).includes(e4) || (n2[e4] = t3); 7304 !e3.startsWith(`/`) && (Object.keys(ko).includes(Q.default.resolve(e3)) || Object.keys(ko).includes(Q.default.resolve(e3).concat(`.css`))) && (t2 = `/`, e3 = Q.default.resolve(e3)), e3.startsWith(`.`) && (e3 = Q.default.resolve(t2, e3)), e3.startsWith(`/`) && (e3.endsWith(`.css`) || (Object.keys(n2).some((t3) => t3.includes(e3.concat(`.css`))) ? e3 = e3.concat(`.css`) : Object.keys(n2).some((t3) => t3.includes(e3.concat(`/index.css`))) && (e3 = e3.concat(`/index.css`)))); 7305 let i2 = Q.default.resolve(t2, e3); 7306 if (n2[i2]) return { base: Q.default.dirname(e3), content: n2[i2], path: e3 }; 7307 let a2 = new URL(e3, `https://esm.sh`); 7308 i2 = a2.pathname; 7309 let o2 = false, s2 = null, c2 = null, l2 = [i2]; 7310 i2.endsWith(`.css`) || (l2.push(i2 + `.css`), l2.push(i2 + `/index.css`)), i2 = i2.concat(a2.search); 7311 for (let t3 of l2) try { 7312 c2 = t3; 7313 let r3 = await fetch(`https://esm.sh${t3}`); 7314 if (!r3.ok) throw Error(); 7315 let a3 = r3.headers.get(`content-type`) || ``; 7316 if (!a3.includes(`text/css`)) throw Error(`Response is not a CSS file: ${a3}`); 7317 let s3 = await r3.text(); 7318 s3 = s3.replace(/@config\s+['|"](.*)['|"]/g, (t4, n3) => `@config 'https://esm.sh${Q.default.resolve(Q.default.dirname(e3))}${Q.default.resolve(n3)}'`).replace(/@plugin\s+['|"](.*)['|"]/g, (t4, n3) => `@plugin 'https://esm.sh${Q.default.resolve(Q.default.dirname(e3))}${Q.default.resolve(n3)}'`), n2[t3] = s3, i2 = t3, o2 = true; 7319 break; 7320 } catch (e4) { 7321 s2 = e4; 7322 } 7323 if (s2) if (o2) console.warn(`Warning: The stylesheet '${r2}' was successfully fetched from the CDN using fallback path '${c2}'.`); 7324 else throw Error(r2.startsWith(`.`) ? `Cannot find stylesheet '${r2}' on the Simple File System` : `Cannot find stylesheet '${r2}' on the CDN`); 7325 return { base: Q.default.dirname(e3), content: n2[i2], path: e3 }; 7326 } 7327} 7328var Mo = t(((e3) => { 7329 Object.defineProperty(e3, "__esModule", { value: true }), e3.default = r2; 7330 function t2(e4) { 7331 for (var t3 = e4.toLowerCase(), n3 = ``, r3 = false, i2 = 0; i2 < 6 && t3[i2] !== void 0; i2++) { 7332 var a2 = t3.charCodeAt(i2), o2 = a2 >= 97 && a2 <= 102 || a2 >= 48 && a2 <= 57; 7333 if (r3 = a2 === 32, !o2) break; 7334 n3 += t3[i2]; 7335 } 7336 if (n3.length !== 0) { 7337 var s2 = parseInt(n3, 16); 7338 return s2 >= 55296 && s2 <= 57343 || s2 === 0 || s2 > 1114111 ? [`\uFFFD`, n3.length + +!!r3] : [String.fromCodePoint(s2), n3.length + +!!r3]; 7339 } 7340 } 7341 var n2 = /\\/; 7342 function r2(e4) { 7343 if (!n2.test(e4)) return e4; 7344 for (var r3 = ``, i2 = 0; i2 < e4.length; i2++) { 7345 if (e4[i2] === `\\`) { 7346 var a2 = t2(e4.slice(i2 + 1, i2 + 7)); 7347 if (a2 !== void 0) { 7348 r3 += a2[0], i2 += a2[1]; 7349 continue; 7350 } 7351 if (e4[i2 + 1] === `\\`) { 7352 r3 += `\\`, i2++; 7353 continue; 7354 } 7355 e4.length === i2 + 1 && (r3 += e4[i2]); 7356 continue; 7357 } 7358 r3 += e4[i2]; 7359 } 7360 return r3; 7361 } 7362})), No = t(((e3) => { 7363 Object.defineProperty(e3, "__esModule", { value: true }), e3.default = t2; 7364 function t2(e4) { 7365 for (var t3 = [...arguments].slice(1); t3.length > 0; ) { 7366 var n2 = t3.shift(); 7367 if (!e4[n2]) return; 7368 e4 = e4[n2]; 7369 } 7370 return e4; 7371 } 7372})), Po = t(((e3) => { 7373 Object.defineProperty(e3, "__esModule", { value: true }), e3.default = t2; 7374 function t2(e4) { 7375 for (var t3 = [...arguments].slice(1); t3.length > 0; ) { 7376 var n2 = t3.shift();
7377 e4[n2] || (e4[n2] = {}), e4 = e4[n2]; 7378 } 7379 } 7380})), Fo = t(((e3) => { 7381 Object.defineProperty(e3, "__esModule", { value: true }), e3.default = t2; 7382 function t2(e4) { 7383 for (var t3 = ``, n2 = e4.indexOf(`/*`), r2 = 0; n2 >= 0; ) { 7384 t3 += e4.slice(r2, n2); 7385 var i2 = e4.indexOf(`*/`, n2 + 2); 7386 if (i2 < 0) return t3; 7387 r2 = i2 + 2, n2 = e4.indexOf(`/*`, r2); 7388 } 7389 return t3 += e4.slice(r2), t3; 7390 } 7391})), Io = t(((e3) => { 7392 Object.defineProperty(e3, "__esModule", { value: true }), e3.MAX_NESTING_DEPTH = void 0, e3.default = t2, e3.MAX_NESTING_DEPTH = 256; 7393 function t2(t3) { 7394 return Number.isSafeInteger(t3) && t3 >= 0 ? t3 : e3.MAX_NESTING_DEPTH; 7395 } 7396})), Lo = t(((e3) => { 7397 var t2 = e3 && e3.__importDefault || function(e4) { 7398 return e4 && e4.__esModule ? e4 : { default: e4 }; 7399 }; 7400 Object.defineProperty(e3, "__esModule", { value: true }), e3.MAX_NESTING_DEPTH = e3.resolveMaxNestingDepth = e3.stripComments = e3.ensureObject = e3.getProp = e3.unesc = void 0; 7401 var n2 = Mo(); 7402 Object.defineProperty(e3, "unesc", { enumerable: true, get: function() { 7403 return t2(n2).default; 7404 } }); 7405 var r2 = No(); 7406 Object.defineProperty(e3, "getProp", { enumerable: true, get: function() { 7407 return t2(r2).default; 7408 } }); 7409 var i2 = Po(); 7410 Object.defineProperty(e3, "ensureObject", { enumerable: true, get: function() { 7411 return t2(i2).default; 7412 } }); 7413 var a2 = Fo(); 7414 Object.defineProperty(e3, "stripComments", { enumerable: true, get: function() { 7415 return t2(a2).default; 7416 } }); 7417 var o2 = Io(); 7418 Object.defineProperty(e3, "resolveMaxNestingDepth", { enumerable: true, get: function() { 7419 return t2(o2).default; 7420 } }), Object.defineProperty(e3, "MAX_NESTING_DEPTH", { enumerable: true, get: function() { 7421 return o2.MAX_NESTING_DEPTH; 7422 } }); 7423})), Ro = t(((e3) => { 7424 Object.defineProperty(e3, "__esModule", { value: true }); 7425 var t2 = Lo(), n2 = function(e4, r2, i2) { 7426 if (i2 === void 0 && (i2 = 0), i2 > t2.MAX_NESTING_DEPTH) throw Error(`Cannot clone selector: nesting depth exceeds the maximum of ${t2.MAX_NESTING_DEPTH}.`); 7427 if (typeof e4 != `object` || !e4) return e4; 7428 var a2 = new e4.constructor(); 7429 for (var o2 in e4) if (e4.hasOwnProperty(o2)) { 7430 var s2 = e4[o2]; 7431 o2 === `parent` && typeof s2 == `object` ? r2 && (a2[o2] = r2)
7431: s2 instanceof Array ? a2[o2] = s2.map(function(e5) { 7432 return n2(e5, a2, i2 + 1); 7433 }) : a2[o2] = n2(s2, a2, i2 + 1); 7434 } 7435 return a2; 7436 }; 7437 e3.default = (function() { 7438 function e4(e5) { 7439 e5 === void 0 && (e5 = {}), Object.assign(this, e5), this.spaces = this.spaces || {}, this.spaces.before = this.spaces.before || ``, this.spaces.after = this.spaces.after || ``; 7440 } 7441 return e4.prototype.remove = function() { 7442 return this.parent && this.parent.removeChild(this), this.parent = void 0, this; 7443 }, e4.prototype.replaceWith = function() { 7444 if (this.parent) { 7445 for (var e5 in arguments) this.parent.insertBefore(this, arguments[e5]); 7446 this.remove(); 7447 } 7448 return this; 7449 }, e4.prototype.next = function() { 7450 return this.parent.at(this.parent.index(this) + 1); 7451 }, e4.prototype.prev = function() { 7452 return this.parent.at(this.parent.index(this) - 1); 7453 }, e4.prototype.clone = function(e5) { 7454 e5 === void 0 && (e5 = {}); 7455 var t3 = n2(this); 7456 for (var r2 in e5) t3[r2] = e5[r2]; 7457 return t3; 7458 }, e4.prototype.appendToPropertyAndEscape = function(e5, t3, n3) { 7459 this.raws || (this.raws = {}); 7460 var r2 = this[e5], i2 = this.raws[e5]; 7461 this[e5] = r2 + t3, i2 || n3 !== t3 ? this.raws[e5] = (i2 || r2) + n3 : delete this.raws[e5]; 7462 }, e4.prototype.setPropertyAndEscape = function(e5, t3, n3) { 7463 this.raws || (this.raws = {}), this[e5] = t3, this.raws[e5] = n3; 7464 }, e4.prototype.setPropertyWithoutEscape = function(e5, t3) { 7465 this[e5] = t3, this.raws && delete this.raws[e5]; 7466 }, e4.prototype.isAtPosition = function(e5, t3) { 7467 if (this.source && this.source.start && this.source.end) return !(this.source.start.line > e5 || this.source.end.line < e5 || this.source.start.line === e5 && this.source.start.column > t3 || this.source.end.line === e5 && this.source.end.column < t3); 7468 }, e4.prototype.stringifyProperty = function(e5) { 7469 return this.raws && this.raws[e5] || this[e5]; 7470 }, Object.defineProperty(e4.prototype, "rawSpaceBefore", { get: function() { 7471 var e5 = this.raws && this.raws.spaces && this.raws.spaces.before; 7472 return e5 === void 0 && (e5 = this.spaces && this.spaces.before), e5 || ``; 7473 }, set: function(e5) { 7474 (0, t2.ensureObject)(this, `raws`, `spaces`), this.raws.spaces.before = e5; 7475 }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "rawSpaceAfter", { get: function() { 7476 var e5 = this.raws && this.raws.spaces && this.raws.spaces.after; 7477 return e5 === void 0 && (e5 = this.spaces.after), e5 || ``; 7478 }, set: function(e5) { 7479 (0, t2.ensureObject)(this, `raws`, `spaces`), this.raws.spaces.after = e5; 7480 }, enumerable: false, configurable: true }), e4.prototype.valueToString = function() { 7481 return String(this.stringifyProperty(`value`)); 7482 }, e4.prototype.toString = function() { 7483 return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join(``); 7484 }, e4.prototype._stringify = function() { 7485 return this.toString(); 7486 }, e4; 7487 })(); 7488})), $ = t(((e3) => { 7489 Object.defineProperty(e3, "__esModule", { value: true }), e3.UNIVERSAL = e3.ATTRIBUTE = e3.CLASS = e3.COMBINATOR = e3.COMMENT = e3.ID = e3.NESTING = e3.PSEUDO = e3.ROOT = e3.SELECTOR = e3.STRING = e3.TAG = void 0, e3.TAG = `tag`, e3.STRING = `string`, e3.SELECTOR = `selector`, e3.ROOT = `root`, e3.PSEUDO = `pseudo`, e3.NESTING = `nesting`, e3.ID = `id`, e3.COMMENT = `comment`, e3.COMBINATOR = `combinator`, e3.CLASS = `class`, e3.ATTRIBUTE = `attribute`, e3.UNIVERSAL = `universal`; 7490})), zo = t(((e3) => {
7491 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7492 var e4 = function(t3, n3) { 7493 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7494 e5.__proto__ = t4; 7495 } || function(e5, t4) { 7496 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7497 }, e4(t3, n3); 7498 }; 7499 return function(t3, n3) { 7500 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7501 e4(t3, n3); 7502 function r3() { 7503 this.constructor = t3; 7504 } 7505 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7506 }; 7507 })(), n2 = e3 && e3.__createBinding || (Object.create ? (function(e4, t3, n3, r3) { 7508 r3 === void 0 && (r3 = n3); 7509 var i3 = Object.getOwnPropertyDescriptor(t3, n3); 7510 (!i3 || (`get` in i3 ? !t3.__esModule : i3.writable || i3.configurable)) && (i3 = { enumerable: true, get: function() { 7511 return t3[n3]; 7512 } }), Object.defineProperty(e4, r3, i3); 7513 }) : (function(e4, t3, n3, r3) { 7514 r3 === void 0 && (r3 = n3), e4[r3] = t3[n3]; 7515 })), r2 = e3 && e3.__setModuleDefault || (Object.create ? (function(e4, t3) { 7516 Object.defineProperty(e4, "default", { enumerable: true, value: t3 }); 7517 }) : function(e4, t3) { 7518 e4.default = t3; 7519 }), i2 = e3 && e3.__importStar || /* @__PURE__ */ (function() { 7520 var e4 = function(t3) { 7521 return e4 = Object.getOwnPropertyNames || function(e5) { 7522 var t4 = []; 7523 for (var n3 in e5) Object.prototype.hasOwnProperty.call(e5, n3) && (t4[t4.length] = n3); 7524 return t4; 7525 }, e4(t3); 7526 }; 7527 return function(t3) { 7528 if (t3 && t3.__esModule) return t3; 7529 var i3 = {}; 7530 if (t3 != null) for (var a3 = e4(t3), o3 = 0; o3 < a3.length; o3++) a3[o3] !== "default" && n2(i3, t3, a3[o3]); 7531 return r2(i3, t3), i3; 7532 }; 7533 })(), a2 = e3 && e3.__values || function(e4) { 7534 var t3 = typeof Symbol == `function` && Symbol.iterator, n3 = t3 && e4[t3], r3 = 0; 7535 if (n3) return n3.call(e4); 7536 if (e4 && typeof e4.length == `number`) return { next: function() { 7537 return e4 && r3 >= e4.length && (e4 = void 0), { value: e4 && e4[r3++], done: !e4 }; 7538 } }; 7539 throw TypeError(t3 ? `Object is not iterable.` : `Symbol.iterator is not defined.`); 7540 }, o2 = e3 && e3.__read || function(e4, t3) { 7541 var n3 = typeof Symbol == `function` && e4[Symbol.iterator]; 7542 if (!n3) return e4; 7543 var r3 = n3.call(e4), i3, a3 = [], o3; 7544 try { 7545 for (; (t3 === void 0 || t3-- > 0) && !(i3 = r3.next()).done; ) a3.push(i3.value); 7546 } catch (e5) { 7547 o3 = { error: e5 }; 7548 } finally { 7549 try { 7550 i3 && !i3.done && (n3 = r3.return) && n3.call(r3); 7551 } finally { 7552 if (o3) throw o3.error; 7553 } 7554 } 7555 return a3; 7556 }, s2 = e3 && e3.__spreadArray || function(e4, t3, n3) { 7557 if (n3 || arguments.length === 2) for (var r3 = 0, i3 = t3.length, a3; r3 < i3; r3++) (a3 || !(r3 in t3)) && (a3 || (a3 = Array.prototype.slice.call(t3, 0, r3)), a3[r3] = t3[r3]); 7558 return e4.concat(a3 || Array.prototype.slice.call(t3)); 7559 }, c2 = e3 && e3.__importDefault || function(e4) { 7560 return e4 && e4.__esModule ? e4 : { default: e4 }; 7561 }; 7562 Object.defineProperty(e3, "__esModule", { value: true }); 7563 var l2 = Lo(), u2 = c2(Ro()), d2 = i2($()); 7564 e3.default = (function(e4) { 7565 t2(n3, e4); 7566 function n3(t3) { 7567 var n4 = e4.call(this, t3) || this; 7568 return n4.nodes || (n4.nodes = []), n4; 7569 } 7570 return n3.prototype.append = function(e5) { 7571 return e5.parent = this, this.nodes.push(e5), this; 7572 }, n3.prototype.prepend = function(e5) { 7573 for (var t3 in e5.parent = this, this.nodes.unshift(e5), this.indexes) this.indexes[t3]++; 7574 return this; 7575 }, n3.prototype.at = function(e5) { 7576 return this.nodes[e5]; 7577 }, n3.prototype.index = function(e5) { 7578 return typeof e5 == `number` ? e5 : this.nodes.indexOf(e5); 7579 }, Object.defineProperty(n3.prototype, "first", { get: function() { 7580 return this.at(0); 7581 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "last", { get: function() { 7582 return this.at(this.length - 1); 7583 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "length", { get: function() { 7584 return this.nodes.length; 7585 }, enumerable: false, configurable: true }), n3.prototype.removeChild = function(e5) { 7586 e5 = this.index(e5), this.at(e5).parent = void 0, this.nodes.splice(e5, 1); 7587 var t3; 7588 for (var n4 in this.indexes) t3 = this.indexes[n4], t3 >= e5 && (this.indexes[n4] = t3 - 1); 7589 return this; 7590 }, n3.prototype.removeAll = function() { 7591 var e5, t3;
7592 try { 7593 for (var n4 = a2(this.nodes), r3 = n4.next(); !r3.done; r3 = n4.next()) { 7594 var i3 = r3.value; 7595 i3.parent = void 0; 7596 } 7597 } catch (t4) { 7598 e5 = { error: t4 }; 7599 } finally { 7600 try { 7601 r3 && !r3.done && (t3 = n4.return) && t3.call(n4); 7602 } finally { 7603 if (e5) throw e5.error; 7604 } 7605 } 7606 return this.nodes = [], this; 7607 }, n3.prototype.empty = function() { 7608 return this.removeAll(); 7609 }, n3.prototype.insertAfter = function(e5, t3) { 7610 var n4; 7611 t3.parent = this; 7612 for (var r3 = this.index(e5), i3 = [], a3 = 2; a3 < arguments.length; a3++) i3.push(arguments[a3]); 7613 (n4 = this.nodes).splice.apply(n4, s2([r3 + 1, 0, t3], o2(i3), false)), t3.parent = this; 7614 var c3; 7615 for (var l3 in this.indexes) c3 = this.indexes[l3], r3 < c3 && (this.indexes[l3] = c3 + arguments.length - 1); 7616 return this; 7617 }, n3.prototype.insertBefore = function(e5, t3) { 7618 var n4; 7619 t3.parent = this; 7620 for (var r3 = this.index(e5), i3 = [], a3 = 2; a3 < arguments.length; a3++) i3.push(arguments[a3]); 7621 (n4 = this.nodes).splice.apply(n4, s2([r3, 0, t3], o2(i3), false)), t3.parent = this; 7622 var c3; 7623 for (var l3 in this.indexes) c3 = this.indexes[l3], c3 >= r3 && (this.indexes[l3] = c3 + arguments.length - 1); 7624 return this; 7625 }, n3.prototype._findChildAtPosition = function(e5, t3) { 7626 var n4 = void 0; 7627 return this.each(function(r3) { 7628 if (r3.atPosition) { 7629 var i3 = r3.atPosition(e5, t3); 7630 if (i3) return n4 = i3, false; 7631 } else if (r3.isAtPosition(e5, t3)) return n4 = r3, false; 7632 }), n4; 7633 }, n3.prototype.atPosition = function(e5, t3) { 7634 if (this.isAtPosition(e5, t3)) return this._findChildAtPosition(e5, t3) || this; 7635 }, n3.prototype._inferEndPosition = function() { 7636 this.last && this.last.source && this.last.source.end && (this.source = this.source || {}, this.source.end = this.source.end || {}, Object.assign(this.source.end, this.last.source.end)); 7637 }, n3.prototype.each = function(e5) { 7638 this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach++; 7639 var t3 = this.lastEach; 7640 if (this.indexes[t3] = 0, this.length) { 7641 for (var n4, r3; this.indexes[t3] < this.length && (n4 = this.indexes[t3], r3 = e5(this.at(n4), n4), r3 !== false); ) this.indexes[t3] += 1; 7642 if (delete this.indexes[t3], r3 === false) return false; 7643 } 7644 }, n3.prototype.walk = function(e5, t3) { 7645 if (t3 === void 0 && (t3 = 0), t3 > l2.MAX_NESTING_DEPTH) throw Error(`Cannot walk selector: nesting depth exceeds the maximum of ${l2.MAX_NESTING_DEPTH}.`); 7646 return this.each(function(n4, r3) { 7647 var i3 = e5(n4, r3); 7648 if (i3 !== false && n4.length && (i3 = n4.walk(e5, t3 + 1)), i3 === false) return false; 7649 }); 7650 }, n3.prototype.walkAttributes = function(e5) { 7651 var t3 = this; 7652 return this.walk(function(n4) { 7653 if (n4.type === d2.ATTRIBUTE) return e5.call(t3, n4); 7654 }); 7655 }, n3.prototype.walkClasses = function(e5) { 7656 var t3 = this; 7657 return this.walk(function(n4) { 7658 if (n4.type === d2.CLASS) return e5.call(t3, n4); 7659 }); 7660 }, n3.prototype.walkCombinators = function(e5) { 7661 var t3 = this; 7662 return this.walk(function(n4) { 7663 if (n4.type === d2.COMBINATOR) return e5.call(t3, n4); 7664 }); 7665 }, n3.prototype.walkComments = function(e5) { 7666 var t3 = this; 7667 return this.walk(function(n4) { 7668 if (n4.type === d2.COMMENT) return e5.call(t3, n4); 7669 }); 7670 }, n3.prototype.walkIds = function(e5) { 7671 var t3 = this; 7672 return this.walk(function(n4) { 7673 if (n4.type === d2.ID) return e5.call(t3, n4); 7674 }); 7675 }, n3.prototype.walkNesting = function(e5) { 7676 var t3 = this; 7677 return this.walk(function(n4) { 7678 if (n4.type === d2.NESTING) return e5.call(t3, n4); 7679 }); 7680 }, n3.prototype.walkPseudos = function(e5) { 7681 var t3 = this; 7682 return this.walk(function(n4) { 7683 if (n4.type === d2.PSEUDO) return e5.call(t3, n4); 7684 }); 7685 }, n3.prototype.walkTags = function(e5) { 7686 var t3 = this; 7687 return this.walk(function(n4) { 7688 if (n4.type === d2.TAG) return e5.call(t3, n4); 7689 }); 7690 }, n3.prototype.walkUniversals = function(e5) { 7691 var t3 = this; 7692 return this.walk(function(n4) { 7693 if (n4.type === d2.UNIVERSAL) return e5.call(t3, n4); 7694 }); 7695 }, n3.prototype.split = function(e5) { 7696 var t3 = this, n4 = []; 7697 return this.reduce(function(r3, i3, a3) { 7698 var o3 = e5.call(t3, i3); 7699 return n4.push(i3), o3 ? (r3.push(n4), n4 = []) : a3 === t3.length - 1 && r3.push(n4), r3; 7700 }, []); 7701 }, n3.prototype.map = function(e5) { 7702 return this.nodes.map(e5); 7703 }, n3.prototype.reduce = function(e5, t3) { 7704 return this.nodes.reduce(e5, t3); 7705 }, n3.prototype.every = function(e5) { 7706 return this.nodes.every(e5); 7707 }, n3.prototype.some = function(e5) { 7708 return this.nodes.some(e5); 7709 }, n3.prototype.filter = function(e5) { 7710 return this.nodes.filter(e5); 7711 }, n3.prototype.sort = function(e5) { 7712 return this.nodes.sort(e5); 7713 }, n3.prototype.toString = function(e5) { 7714 return e5 === void 0 && (e5 = {}), this._stringify(e5, 0, (0, l2.resolveMaxNestingDepth)(e5.maxNestingDepth)); 7715 }, n3.prototype._stringify = function(e5, t3, n4) { 7716 var r3 = this; 7717 return this.map(function(i3) { 7718 return r3._stringifyChild(i3, e5, t3, n4); 7719 }).join(``); 7720 }, n3.prototype._stringifyChild = function(e5, t3, n4, r3) { 7721 return typeof e5._stringify == `function` ? e5._stringify(t3, n4, r3) : String(e5); 7722 }, n3; 7723 })(u2.default); 7724})), Bo = t(((e3) => {
7725 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7726 var e4 = function(t3, n3) { 7727 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7728 e5.__proto__ = t4; 7729 } || function(e5, t4) { 7730 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7731 }, e4(t3, n3); 7732 }; 7733 return function(t3, n3) { 7734 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7735 e4(t3, n3); 7736 function r3() { 7737 this.constructor = t3; 7738 } 7739 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7740 }; 7741 })(), n2 = e3 && e3.__importDefault || function(e4) { 7742 return e4 && e4.__esModule ? e4 : { default: e4 }; 7743 }; 7744 Object.defineProperty(e3, "__esModule", { value: true }); 7745 var r2 = n2(zo()), i2 = $(); 7746 e3.default = (function(e4) { 7747 t2(n3, e4); 7748 function n3(t3) { 7749 var n4 = e4.call(this, t3) || this; 7750 return n4.type = i2.ROOT, n4; 7751 } 7752 return n3.prototype._stringify = function(e5, t3, n4) { 7753 var r3 = this, i3 = this.reduce(function(i4, a2) { 7754 return i4.push(r3._stringifyChild(a2, e5, t3, n4)), i4; 7755 }, []).join(`,`); 7756 return this.trailingComma ? i3 + `,` : i3; 7757 }, n3.prototype.error = function(e5, t3) { 7758 return this._error ? this._error(e5, t3) : Error(e5); 7759 }, Object.defineProperty(n3.prototype, "errorGenerator", { set: function(e5) { 7760 this._error = e5; 7761 }, enumerable: false, configurable: true }), n3; 7762 })(r2.default); 7763})), Vo = t(((e3) => {
7764 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7765 var e4 = function(t3, n3) { 7766 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7767 e5.__proto__ = t4; 7768 } || function(e5, t4) { 7769 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7770 }, e4(t3, n3); 7771 }; 7772 return function(t3, n3) { 7773 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7774 e4(t3, n3); 7775 function r3() { 7776 this.constructor = t3; 7777 } 7778 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7779 }; 7780 })(), n2 = e3 && e3.__importDefault || function(e4) { 7781 return e4 && e4.__esModule ? e4 : { default: e4 }; 7782 }; 7783 Object.defineProperty(e3, "__esModule", { value: true }); 7784 var r2 = n2(zo()), i2 = $(); 7785 e3.default = (function(e4) { 7786 t2(n3, e4); 7787 function n3(t3) { 7788 var n4 = e4.call(this, t3) || this; 7789 return n4.type = i2.SELECTOR, n4; 7790 } 7791 return n3; 7792 })(r2.default); 7793})), Ho = t(((e3) => {
7794 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7795 var e4 = function(t3, n3) { 7796 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7797 e5.__proto__ = t4; 7798 } || function(e5, t4) { 7799 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7800 }, e4(t3, n3); 7801 }; 7802 return function(t3, n3) { 7803 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7804 e4(t3, n3); 7805 function r3() { 7806 this.constructor = t3; 7807 } 7808 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7809 }; 7810 })(), n2 = e3 && e3.__importDefault || function(e4) { 7811 return e4 && e4.__esModule ? e4 : { default: e4 }; 7812 }; 7813 Object.defineProperty(e3, "__esModule", { value: true }); 7814 var r2 = n2(s()), i2 = Lo(), a2 = n2(Ro()), o2 = $(); 7815 e3.default = (function(e4) { 7816 t2(n3, e4); 7817 function n3(t3) { 7818 var n4 = e4.call(this, t3) || this; 7819 return n4.type = o2.CLASS, n4._constructed = true, n4; 7820 } 7821 return Object.defineProperty(n3.prototype, "value", { get: function() { 7822 return this._value; 7823 }, set: function(e5) { 7824 if (this._constructed) { 7825 var t3 = (0, r2.default)(e5, { isIdentifier: true }); 7826 t3 === e5 ? this.raws && delete this.raws.value : ((0, i2.ensureObject)(this, `raws`), this.raws.value = t3); 7827 } 7828 this._value = e5; 7829 }, enumerable: false, configurable: true }), n3.prototype.valueToString = function() { 7830 return `.` + e4.prototype.valueToString.call(this); 7831 }, n3; 7832 })(a2.default); 7833})), Uo = t(((e3) => {
7834 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7835 var e4 = function(t3, n3) { 7836 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7837 e5.__proto__ = t4; 7838 } || function(e5, t4) { 7839 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7840 }, e4(t3, n3); 7841 }; 7842 return function(t3, n3) { 7843 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7844 e4(t3, n3); 7845 function r3() { 7846 this.constructor = t3; 7847 } 7848 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7849 }; 7850 })(), n2 = e3 && e3.__importDefault || function(e4) { 7851 return e4 && e4.__esModule ? e4 : { default: e4 }; 7852 }; 7853 Object.defineProperty(e3, "__esModule", { value: true }); 7854 var r2 = n2(Ro()), i2 = $(); 7855 e3.default = (function(e4) { 7856 t2(n3, e4); 7857 function n3(t3) { 7858 var n4 = e4.call(this, t3) || this; 7859 return n4.type = i2.COMMENT, n4; 7860 } 7861 return n3; 7862 })(r2.default); 7863})), Wo = t(((e3) => {
7864 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7865 var e4 = function(t3, n3) { 7866 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7867 e5.__proto__ = t4; 7868 } || function(e5, t4) { 7869 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7870 }, e4(t3, n3); 7871 }; 7872 return function(t3, n3) { 7873 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7874 e4(t3, n3); 7875 function r3() { 7876 this.constructor = t3; 7877 } 7878 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7879 }; 7880 })(), n2 = e3 && e3.__importDefault || function(e4) { 7881 return e4 && e4.__esModule ? e4 : { default: e4 }; 7882 }; 7883 Object.defineProperty(e3, "__esModule", { value: true }); 7884 var r2 = n2(Ro()), i2 = $(); 7885 e3.default = (function(e4) { 7886 t2(n3, e4); 7887 function n3(t3) { 7888 var n4 = e4.call(this, t3) || this; 7889 return n4.type = i2.ID, n4; 7890 } 7891 return n3.prototype.valueToString = function() { 7892 return `#` + e4.prototype.valueToString.call(this); 7893 }, n3; 7894 })(r2.default); 7895})), Go = t(((e3) => {
7896 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7897 var e4 = function(t3, n3) { 7898 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7899 e5.__proto__ = t4; 7900 } || function(e5, t4) { 7901 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7902 }, e4(t3, n3); 7903 }; 7904 return function(t3, n3) { 7905 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7906 e4(t3, n3); 7907 function r3() { 7908 this.constructor = t3; 7909 } 7910 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7911 }; 7912 })(), n2 = e3 && e3.__importDefault || function(e4) { 7913 return e4 && e4.__esModule ? e4 : { default: e4 }; 7914 }; 7915 Object.defineProperty(e3, "__esModule", { value: true }); 7916 var r2 = n2(s()), i2 = Lo(); 7917 e3.default = (function(e4) { 7918 t2(n3, e4); 7919 function n3() { 7920 return e4 !== null && e4.apply(this, arguments) || this; 7921 } 7922 return Object.defineProperty(n3.prototype, "namespace", { get: function() { 7923 return this._namespace; 7924 }, set: function(e5) { 7925 if (e5 === true || e5 === `*` || e5 === `&`) { 7926 this._namespace = e5, this.raws && delete this.raws.namespace; 7927 return; 7928 } 7929 var t3 = (0, r2.default)(e5, { isIdentifier: true }); 7930 this._namespace = e5, t3 === e5 ? this.raws && delete this.raws.namespace : ((0, i2.ensureObject)(this, `raws`), this.raws.namespace = t3); 7931 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "ns", { get: function() { 7932 return this._namespace; 7933 }, set: function(e5) { 7934 this.namespace = e5; 7935 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "namespaceString", { get: function() { 7936 if (this.namespace) { 7937 var e5 = this.stringifyProperty(`namespace`); 7938 return e5 === true ? `` : e5; 7939 } else return ``; 7940 }, enumerable: false, configurable: true }), n3.prototype.qualifiedName = function(e5) { 7941 return this.namespace ? `${this.namespaceString}|${e5}` : e5; 7942 }, n3.prototype.valueToString = function() { 7943 return this.qualifiedName(e4.prototype.valueToString.call(this)); 7944 }, n3; 7945 })(n2(Ro()).default); 7946})), Ko = t(((e3) => {
7947 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7948 var e4 = function(t3, n3) { 7949 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7950 e5.__proto__ = t4; 7951 } || function(e5, t4) { 7952 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7953 }, e4(t3, n3); 7954 }; 7955 return function(t3, n3) { 7956 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 7957 e4(t3, n3); 7958 function r3() { 7959 this.constructor = t3; 7960 } 7961 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7962 }; 7963 })(), n2 = e3 && e3.__importDefault || function(e4) { 7964 return e4 && e4.__esModule ? e4 : { default: e4 }; 7965 }; 7966 Object.defineProperty(e3, "__esModule", { value: true }); 7967 var r2 = n2(Go()), i2 = $(); 7968 e3.default = (function(e4) { 7969 t2(n3, e4); 7970 function n3(t3) { 7971 var n4 = e4.call(this, t3) || this; 7972 return n4.type = i2.TAG, n4; 7973 } 7974 return n3; 7975 })(r2.default); 7976})), qo = t(((e3) => {
7977 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 7978 var e4 = function(t3, n3) { 7979 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 7980 e5.__proto__ = t4; 7981 } || function(e5, t4) { 7982 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 7983 }, e4(t3, n3); 7984 }; 7985 return function(t3, n3) { 7986 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + a2(n3) + ` is not a constructor or null`); 7987 e4(t3, n3); 7988 function r3() { 7989 this.constructor = t3; 7990 } 7991 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 7992 }; 7993 })(), n2 = e3 && e3.__importDefault || function(e4) { 7994 return e4 && e4.__esModule ? e4 : { default: e4 }; 7995 }; 7996 Object.defineProperty(e3, "__esModule", { value: true }); 7997 var r2 = n2(Ro()), i2 = $(), a2 = (function(e4) { 7998 t2(n3, e4); 7999 function n3(t3) { 8000 var n4 = e4.call(this, t3) || this; 8001 return n4.type = i2.STRING, n4; 8002 } 8003 return n3; 8004 })(r2.default); 8005 e3.default = a2; 8006})), Jo = t(((e3) => {
8007 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 8008 var e4 = function(t3, n3) { 8009 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 8010 e5.__proto__ = t4; 8011 } || function(e5, t4) { 8012 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 8013 }, e4(t3, n3); 8014 }; 8015 return function(t3, n3) { 8016 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 8017 e4(t3, n3); 8018 function r3() { 8019 this.constructor = t3; 8020 } 8021 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 8022 }; 8023 })(), n2 = e3 && e3.__importDefault || function(e4) { 8024 return e4 && e4.__esModule ? e4 : { default: e4 }; 8025 }; 8026 Object.defineProperty(e3, "__esModule", { value: true }); 8027 var r2 = n2(zo()), i2 = $(); 8028 e3.default = (function(e4) { 8029 t2(n3, e4); 8030 function n3(t3) { 8031 var n4 = e4.call(this, t3) || this; 8032 return n4.type = i2.PSEUDO, n4; 8033 } 8034 return n3.prototype._stringify = function(e5, t3, n4) { 8035 var r3 = this; 8036 if (t3 >= n4) throw Error(`Cannot serialize selector: nesting depth exceeds the maximum of ${n4}.`); 8037 var i3 = this.length ? `(` + this.map(function(i4) { 8038 return r3._stringifyChild(i4, e5, t3 + 1, n4); 8039 }).join(`,`) + `)` : ``; 8040 return [this.rawSpaceBefore, this.stringifyProperty(`value`), i3, this.rawSpaceAfter].join(``); 8041 }, n3; 8042 })(r2.default); 8043})), Yo = t(((e3) => {
8044 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 8045 var e4 = function(t3, n3) { 8046 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 8047 e5.__proto__ = t4; 8048 } || function(e5, t4) { 8049 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 8050 }, e4(t3, n3); 8051 }; 8052 return function(t3, n3) { 8053 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 8054 e4(t3, n3); 8055 function r2() { 8056 this.constructor = t3; 8057 } 8058 t3.prototype = n3 === null ? Object.create(n3) : (r2.prototype = n3.prototype, new r2()); 8059 }; 8060 })(), n2 = e3 && e3.__importDefault || function(e4) { 8061 return e4 && e4.__esModule ? e4 : { default: e4 }; 8062 }, i2; 8063 Object.defineProperty(e3, "__esModule", { value: true }), e3.unescapeValue = h2; 8064 var a2 = n2(s()), o2 = n2(Mo()), c2 = n2(Go()), l2 = $(), u2 = r(), d2 = /^('|")([^]*)\1$/, f2 = u2(function() { 8065 }, `Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.`), p2 = u2(function() { 8066 }, `Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.`), m2 = u2(function() { 8067 }, `Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.`); 8068 function h2(e4) { 8069 var t3 = false, n3 = null, r2 = e4, i3 = r2.match(d2); 8070 return i3 && (n3 = i3[1], r2 = i3[2]), r2 = (0, o2.default)(r2), r2 !== e4 && (t3 = true), { deprecatedUsage: t3, unescaped: r2, quoteMark: n3 }; 8071 } 8072 function g2(e4) { 8073 if (e4.quoteMark !== void 0 || e4.value === void 0) return e4; 8074 m2(); 8075 var t3 = h2(e4.value), n3 = t3.quoteMark, r2 = t3.unescaped; 8076 return e4.raws || (e4.raws = {}), e4.raws.value === void 0 && (e4.raws.value = e4.value), e4.value = r2, e4.quoteMark = n3, e4; 8077 } 8078 e3.default = (function(e4) { 8079 t2(n3, e4); 8080 function n3(t3) { 8081 t3 === void 0 && (t3 = {}); 8082 var n4 = e4.call(this, g2(t3)) || this; 8083 return n4.type = l2.ATTRIBUTE, n4.raws = n4.raws || {}, Object.defineProperty(n4.raws, "unquoted", { get: u2(function() { 8084 return n4.value; 8085 }, `attr.raws.unquoted is deprecated. Call attr.value instead.`), set: u2(function() { 8086 return n4.value; 8087 }, `Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.`) }), n4._constructed = true, n4; 8088 } 8089 return n3.prototype.getQuotedValue = function(e5) { 8090 e5 === void 0 && (e5 = {}); 8091 var t3 = _2[this._determineQuoteMark(e5)]; 8092 return (0, a2.default)(this._value, t3); 8093 }, n3.prototype._determineQuoteMark = function(e5) { 8094 return e5.smart ? this.smartQuoteMark(e5) : this.preferredQuoteMark(e5); 8095 }, n3.prototype.setValue = function(e5, t3) { 8096 t3 === void 0 && (t3 = {}), this._value = e5, this._quoteMark = this._determineQuoteMark(t3), this._syncRawValue(); 8097 }, n3.prototype.smartQuoteMark = function(e5) { 8098 var t3 = this.value, r2 = t3.replace(/[^']/g, ``).length, i3 = t3.replace(/[^"]/g, ``).length; 8099 if (r2 + i3 === 0) { 8100 var o3 = (0, a2.default)(t3, { isIdentifier: true }); 8101 if (o3 === t3) return n3.NO_QUOTE; 8102 var s2 = this.preferredQuoteMark(e5); 8103 if (s2 === n3.NO_QUOTE) { 8104 var c3 = this.quoteMark || e5.quoteMark || n3.DOUBLE_QUOTE, l3 = _2[c3]; 8105 if ((0, a2.default)(t3, l3).length < o3.length) return c3; 8106 } 8107 return s2; 8108 } else if (i3 === r2) return this.preferredQuoteMark(e5); 8109 else if (i3 < r2) return n3.DOUBLE_QUOTE; 8110 else return n3.SINGLE_QUOTE; 8111 }, n3.prototype.preferredQuoteMark = function(e5) { 8112 var t3 = e5.preferCurrentQuoteMark ? this.quoteMark : e5.quoteMark; 8113 return t3 === void 0 && (t3 = e5.preferCurrentQuoteMark ? e5.quoteMark : this.quoteMark), t3 === void 0 && (t3 = n3.DOUBLE_QUOTE), t3; 8114 }, Object.defineProperty(n3.prototype, "quoted", { get: function() { 8115 var e5 = this.quoteMark; 8116 return e5 === `'` || e5 === `"`; 8117 }, set: function(e5) { 8118 p2(); 8119 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "quoteMark", { get: function() { 8120 return this._quoteMark; 8121 }, set: function(e5) { 8122 if (!this._constructed) { 8123 this._quoteMark = e5; 8124 return; 8125 } 8126 this._quoteMark !== e5 && (this._quoteMark = e5, this._syncRawValue()); 8127 }, enumerable: false, configurable: true }), n3.prototype._syncRawValue = function() { 8128 var e5 = (0, a2.default)(this._value, _2[this.quoteMark]); 8129 e5 === this._value ? this.raws && delete this.raws.value : this.raws.value = e5; 8130 }, Object.defineProperty(n3.prototype, "qualifiedAttribute", { get: function() {
8131 return this.qualifiedName(this.raws.attribute || this.attribute); 8132 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "insensitiveFlag", { get: function() { 8133 return this.insensitive ? `i` : ``; 8134 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "value", { get: function() { 8135 return this._value; 8136 }, set: function(e5) { 8137 if (this._constructed) { 8138 var t3 = h2(e5), n4 = t3.deprecatedUsage, r2 = t3.unescaped, i3 = t3.quoteMark; 8139 if (n4 && f2(), r2 === this._value && i3 === this._quoteMark) return; 8140 this._value = r2, this._quoteMark = i3, this._syncRawValue(); 8141 } else this._value = e5; 8142 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "insensitive", { get: function() { 8143 return this._insensitive; 8144 }, set: function(e5) { 8145 e5 || (this._insensitive = false, this.raws && (this.raws.insensitiveFlag === `I` || this.raws.insensitiveFlag === `i`) && (this.raws.insensitiveFlag = void 0)), this._insensitive = e5; 8146 }, enumerable: false, configurable: true }), Object.defineProperty(n3.prototype, "attribute", { get: function() { 8147 return this._attribute; 8148 }, set: function(e5) { 8149 this._handleEscapes(`attribute`, e5), this._attribute = e5; 8150 }, enumerable: false, configurable: true }), n3.prototype._handleEscapes = function(e5, t3) { 8151 if (this._constructed) { 8152 var n4 = (0, a2.default)(t3, { isIdentifier: true }); 8153 n4 === t3 ? delete this.raws[e5] : this.raws[e5] = n4; 8154 } 8155 }, n3.prototype._spacesFor = function(e5) { 8156 var t3 = { before: ``, after: `` }, n4 = this.spaces[e5] || {}, r2 = this.raws.spaces && this.raws.spaces[e5] || {}; 8157 return Object.assign(t3, n4, r2); 8158 }, n3.prototype._stringFor = function(e5, t3, n4) { 8159 t3 === void 0 && (t3 = e5), n4 === void 0 && (n4 = v2); 8160 var r2 = this._spacesFor(t3); 8161 return n4(this.stringifyProperty(e5), r2); 8162 }, n3.prototype.offsetOf = function(e5) { 8163 var t3 = 1, n4 = this._spacesFor(`attribute`); 8164 if (t3 += n4.before.length, e5 === `namespace` || e5 === `ns`) return this.namespace ? t3 : -1; 8165 if (e5 === `attributeNS` || (t3 += this.namespaceString.length, this.namespace && (t3 += 1), e5 === `attribute`)) return t3; 8166 t3 += this.stringifyProperty(`attribute`).length, t3 += n4.after.length; 8167 var r2 = this._spacesFor(`operator`); 8168 t3 += r2.before.length; 8169 var i3 = this.stringifyProperty(`operator`); 8170 if (e5 === `operator`) return i3 ? t3 : -1; 8171 t3 += i3.length, t3 += r2.after.length; 8172 var a3 = this._spacesFor(`value`); 8173 t3 += a3.before.length; 8174 var o3 = this.stringifyProperty(`value`); 8175 if (e5 === `value`) return o3 ? t3 : -1; 8176 t3 += o3.length, t3 += a3.after.length; 8177 var s2 = this._spacesFor(`insensitive`); 8178 return t3 += s2.before.length, e5 === `insensitive` && this.insensitive ? t3 : -1; 8179 }, n3.prototype.toString = function() { 8180 var e5 = this, t3 = [this.rawSpaceBefore, `[`]; 8181 return t3.push(this._stringFor(`qualifiedAttribute`, `attribute`)), this.operator && (this.value || this.value === ``) && (t3.push(this._stringFor(`operator`)), t3.push(this._stringFor(`value`)), t3.push(this._stringFor(`insensitiveFlag`, `insensitive`, function(t4, n4) { 8182 return t4.length > 0 && !e5.quoted && n4.before.length === 0 && !(e5.spaces.value && e5.spaces.value.after) && (n4.before = ` `), v2(t4, n4); 8183 }))), t3.push(`]`), t3.push(this.rawSpaceAfter), t3.join(``); 8184 }, n3.NO_QUOTE = null, n3.SINGLE_QUOTE = `'`, n3.DOUBLE_QUOTE = `"`, n3; 8185 })(c2.default); 8186 var _2 = (i2 = { "'": { quotes: `single`, wrap: true }, '"': { quotes: `double`, wrap: true } }, i2[null] = { isIdentifier: true }, i2); 8187 function v2(e4, t3) { 8188 return `${t3.before}${e4}${t3.after}`; 8189 } 8190})), Xo = t(((e3) => {
8191 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 8192 var e4 = function(t3, n3) { 8193 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 8194 e5.__proto__ = t4; 8195 } || function(e5, t4) { 8196 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 8197 }, e4(t3, n3); 8198 }; 8199 return function(t3, n3) { 8200 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 8201 e4(t3, n3); 8202 function r3() { 8203 this.constructor = t3; 8204 } 8205 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 8206 }; 8207 })(), n2 = e3 && e3.__importDefault || function(e4) { 8208 return e4 && e4.__esModule ? e4 : { default: e4 }; 8209 }; 8210 Object.defineProperty(e3, "__esModule", { value: true }); 8211 var r2 = n2(Go()), i2 = $(); 8212 e3.default = (function(e4) { 8213 t2(n3, e4); 8214 function n3(t3) { 8215 var n4 = e4.call(this, t3) || this; 8216 return n4.type = i2.UNIVERSAL, n4.value = `*`, n4; 8217 } 8218 return n3; 8219 })(r2.default); 8220})), Zo = t(((e3) => {
8221 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 8222 var e4 = function(t3, n3) { 8223 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 8224 e5.__proto__ = t4; 8225 } || function(e5, t4) { 8226 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 8227 }, e4(t3, n3); 8228 }; 8229 return function(t3, n3) { 8230 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 8231 e4(t3, n3); 8232 function r3() { 8233 this.constructor = t3; 8234 } 8235 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 8236 }; 8237 })(), n2 = e3 && e3.__importDefault || function(e4) { 8238 return e4 && e4.__esModule ? e4 : { default: e4 }; 8239 }; 8240 Object.defineProperty(e3, "__esModule", { value: true }); 8241 var r2 = n2(Ro()), i2 = $(); 8242 e3.default = (function(e4) { 8243 t2(n3, e4); 8244 function n3(t3) { 8245 var n4 = e4.call(this, t3) || this; 8246 return n4.type = i2.COMBINATOR, n4; 8247 } 8248 return n3; 8249 })(r2.default); 8250})), Qo = t(((e3) => {
8251 var t2 = e3 && e3.__extends || /* @__PURE__ */ (function() { 8252 var e4 = function(t3, n3) { 8253 return e4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t4) { 8254 e5.__proto__ = t4; 8255 } || function(e5, t4) { 8256 for (var n4 in t4) Object.prototype.hasOwnProperty.call(t4, n4) && (e5[n4] = t4[n4]); 8257 }, e4(t3, n3); 8258 }; 8259 return function(t3, n3) { 8260 if (typeof n3 != `function` && n3 !== null) throw TypeError(`Class extends value ` + String(n3) + ` is not a constructor or null`); 8261 e4(t3, n3); 8262 function r3() { 8263 this.constructor = t3; 8264 } 8265 t3.prototype = n3 === null ? Object.create(n3) : (r3.prototype = n3.prototype, new r3()); 8266 }; 8267 })(), n2 = e3 && e3.__importDefault || function(e4) { 8268 return e4 && e4.__esModule ? e4 : { default: e4 }; 8269 }; 8270 Object.defineProperty(e3, "__esModule", { value: true }); 8271 var r2 = n2(Ro()), i2 = $(); 8272 e3.default = (function(e4) { 8273 t2(n3, e4); 8274 function n3(t3) { 8275 var n4 = e4.call(this, t3) || this; 8276 return n4.type = i2.NESTING, n4.value = `&`, n4; 8277 } 8278 return n3; 8279 })(r2.default); 8280})), $o = t(((e3) => { 8281 Object.defineProperty(e3, "__esModule", { value: true }), e3.default = t2; 8282 function t2(e4) { 8283 return e4.sort(function(e5, t3) { 8284 return e5 - t3; 8285 }); 8286 } 8287})), es = t(((e3) => { 8288 Object.defineProperty(e3, "__esModule", { value: true }), e3.combinator = e3.word = e3.comment = e3.str = e3.tab = e3.newline = e3.feed = e3.cr = e3.backslash = e3.bang = e3.slash = e3.doubleQuote = e3.singleQuote = e3.space = e3.greaterThan = e3.pipe = e3.equals = e3.plus = e3.caret = e3.tilde = e3.dollar = e3.closeSquare = e3.openSquare = e3.closeParenthesis = e3.openParenthesis = e3.semicolon = e3.colon = e3.comma = e3.at = e3.asterisk = e3.ampersand = void 0, e3.ampersand = 38, e3.asterisk = 42, e3.at = 64, e3.comma = 44, e3.colon = 58, e3.semicolon = 59, e3.openParenthesis = 40, e3.closeParenthesis = 41, e3.openSquare = 91, e3.closeSquare = 93, e3.dollar = 36, e3.tilde = 126, e3.caret = 94, e3.plus = 43, e3.equals = 61, e3.pipe = 124, e3.greaterThan = 62, e3.space = 32, e3.singleQuote = 39, e3.doubleQuote = 34, e3.slash = 47, e3.bang = 33, e3.backslash = 92, e3.cr = 13, e3.feed = 12, e3.newline = 10, e3.tab = 9, e3.str = e3.singleQuote, e3.comment = -1, e3.word = -2, e3.combinator = -3; 8289})), ts = t(((e3) => { 8290 var t2 = e3 && e3.__createBinding || (Object.create ? (function(e4, t3, n3, r3) { 8291 r3 === void 0 && (r3 = n3); 8292 var i3 = Object.getOwnPropertyDescriptor(t3, n3); 8293 (!i3 || (`get` in i3 ? !t3.__esModule : i3.writable || i3.configurable)) && (i3 = { enumerable: true, get: function() { 8294 return t3[n3]; 8295 } }), Object.defineProperty(e4, r3, i3); 8296 }) : (function(e4, t3, n3, r3) { 8297 r3 === void 0 && (r3 = n3), e4[r3] = t3[n3]; 8298 })), n2 = e3 && e3.__setModuleDefault || (Object.create ? (function(e4, t3) { 8299 Object.defineProperty(e4, "default", { enumerable: true, value: t3 }); 8300 }) : function(e4, t3) { 8301 e4.default = t3; 8302 }), r2 = e3 && e3.__importStar || /* @__PURE__ */ (function() { 8303 var e4 = function(t3) { 8304 return e4 = Object.getOwnPropertyNames || function(e5) { 8305 var t4 = []; 8306 for (var n3 in e5) Object.prototype.hasOwnProperty.call(e5, n3) && (t4[t4.length] = n3); 8307 return t4; 8308 }, e4(t3); 8309 }; 8310 return function(r3) { 8311 if (r3 && r3.__esModule) return r3; 8312 var i3 = {}; 8313 if (r3 != null) for (var a3 = e4(r3), o3 = 0; o3 < a3.length; o3++) a3[o3] !== "default" && t2(i3, r3, a3[o3]); 8314 return n2(i3, r3), i3; 8315 }; 8316 })(), i2, a2; 8317 Object.defineProperty(e3, "__esModule", { value: true }), e3.FIELDS = void 0, e3.default = m2; 8318 for (var o2 = r2(es()), s2 = (i2 = {}, i2[o2.tab] = true, i2[o2.newline] = true, i2[o2.cr] = true, i2[o2.feed] = true, i2), c2 = (a2 = {}, a2[o2.space] = true, a2[o2.tab] = true, a2[o2.newline] = true, a2[o2.cr] = true, a2[o2.feed] = true, a2[o2.ampersand] = true, a2[o2.asterisk] = true, a2[o2.bang] = true, a2[o2.comma] = true, a2[o2.colon] = true, a2[o2.semicolon] = true, a2[o2.openParenthesis] = true, a2[o2.closeParenthesis] = true, a2[o2.openSquare] = true, a2[o2.closeSquare] = true, a2[o2.singleQuote] = true, a2[o2.doubleQuote] = true, a2[o2.plus] = true, a2[o2.pipe] = true, a2[o2.tilde] = true, a2[o2.greaterThan] = true, a2[o2.equals] = true, a2[o2.dollar] = true, a2[o2.caret] = true, a2[o2.slash] = true, a2), l2 = {}, u2 = `0123456789abcdefABCDEF`, d2 = 0; d2 < u2.length; d2++) l2[u2.charCodeAt(d2)] = true; 8319 function f2(e4, t3) { 8320 var n3 = t3, r3; 8321 do { 8322 if (r3 = e4.charCodeAt(n3), c2[r3]) return n3 - 1; 8323 r3 === o2.backslash ? n3 = p2(e4, n3) + 1 : n3++; 8324 } while (n3 < e4.length); 8325 return n3 - 1; 8326 } 8327 function p2(e4, t3) { 8328 var n3 = t3, r3 = e4.charCodeAt(n3 + 1); 8329 if (!s2[r3]) if (l2[r3]) { 8330 var i3 = 0; 8331 do 8332 n3++, i3++, r3 = e4.charCodeAt(n3 + 1); 8333 while (l2[r3] && i3 < 6); 8334 i3 < 6 && r3 === o2.space && n3++; 8335 } else n3++; 8336 return n3; 8337 } 8338 e3.FIELDS = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; 8339 function m2(e4) { 8340 var t3 = [], n3 = e4.css.valueOf(), r3 = n3.length, i3 = -1, a3 = 1, s3 = 0, c3 = 0, l3, u3, d3, p3, m3, h2, g2, _2, v2, y2, b2, ee2, x2; 8341 function S2(t4, r4) { 8342 if (e4.safe) n3 += r4, v2 = n3.length - 1; 8343 else throw e4.error(`Unclosed ` + t4, a3, s3 - i3, s3); 8344 } 8345 for (; s3 < r3; ) { 8346 switch (l3 = n3.charCodeAt(s3), l3 === o2.newline && (i3 = s3, a3 += 1), l3) { 8347 case o2.space: 8348 case o2.tab: 8349 case o2.newline: 8350 case o2.cr: 8351 case o2.feed: 8352 v2 = s3; 8353 do 8354 v2 += 1, l3 = n3.charCodeAt(v2), l3 === o2.newline && (i3 = v2, a3 += 1); 8355 while (l3 === o2.space || l3 === o2.newline || l3 === o2.tab || l3 === o2.cr || l3 === o2.feed); 8356 x2 = o2.space, p3 = a3, d3 = v2 - i3 - 1, c3 = v2; 8357 break; 8358 case o2.plus: 8359 case o2.greaterThan: 8360 case o2.tilde: 8361 case o2.pipe: 8362 v2 = s3; 8363 do 8364 v2 += 1, l3 = n3.charCodeAt(v2); 8365 while (l3 === o2.plus || l3 === o2.greaterThan || l3 === o2.tilde || l3 === o2.pipe); 8366 x2 = o2.combinator, p3 = a3, d3 = s3 - i3, c3 = v2; 8367 break; 8368 case o2.asterisk: 8369 case o2.ampersand: 8370 case o2.bang: 8371 case o2.comma: 8372 case o2.equals: 8373 case o2.dollar: 8374 case o2.caret: 8375 case o2.openSquare: 8376 case o2.closeSquare: 8377 case o2.colon: 8378 case o2.semicolon: 8379 case o2.openParenthesis: 8380 case o2.closeParenthesis: 8381 v2 = s3, x2 = l3, p3 = a3, d3 = s3 - i3, c3 = v2 + 1; 8382 break; 8383 case o2.singleQuote: 8384 case o2.doubleQuote: 8385 ee2 = l3 === o2.singleQuote ? `'` : `"`, v2 = s3; 8386 do 8387 for (m3 = false, v2 = n3.indexOf(ee2, v2 + 1), v2 === -1 && S2(`quote`, ee2), h2 = v2; n3.charCodeAt(h2 - 1) === o2.backslash; ) --h2, m3 = !m3; 8388 while (m3); 8389 x2 = o2.str, p3 = a3, d3 = s3 - i3, c3 = v2 + 1; 8390 break; 8391 default: 8392 l3 === o2.slash && n3.charCodeAt(s3 + 1) === o2.asterisk ? (v2 = n3.indexOf(`*/`, s3 + 2) + 1, v2 === 0 && S2(`comment`, `*/`), u3 = n3.slice(s3, v2 + 1), _2 = u3.split(` 8393`), g2 = _2.length - 1, g2 > 0 ? (y2 = a3 + g2, b2 = v2 - _2[g2].length) : (y2 = a3, b2 = i3), x2 = o2.comment, a3 = y2, p3 = y2, d3 = v2 - b2) : l3 === o2.slash ? (v2 = s3, x2 = l3, p3 = a3, d3 = s3 - i3, c3 = v2 + 1) : (v2 = f2(n3, s3), x2 = o2.word, p3 = a3, d3 = v2 - i3), c3 = v2 + 1; 8394 break; 8395 } 8396 t3.push([x2, a3, s3 - i3, p3, d3, s3, c3]), b2 && (b2 = (i3 = b2, null)), s3 = c3; 8397 } 8398 return t3; 8399 } 8400})), ns = t(((e3) => { 8401 var t2 = e3 && e3.__assign || function() { 8402 return t2 = Object.assign || function(e4) { 8403 for (var t3, n3 = 1, r3 = arguments.length; n3 < r3; n3++) for (var i3 in t3 = arguments[n3], t3) Object.prototype.hasOwnProperty.call(t3, i3) && (e4[i3] = t3[i3]); 8404 return e4; 8405 }, t2.apply(this, arguments); 8406 }, n2 = e3 && e3.__createBinding || (Object.create ? (function(e4, t3, n3, r3) { 8407 r3 === void 0 && (r3 = n3); 8408 var i3 = Object.getOwnPropertyDescriptor(t3, n3);
8409 (!i3 || (`get` in i3 ? !t3.__esModule : i3.writable || i3.configurable)) && (i3 = { enumerable: true, get: function() { 8410 return t3[n3]; 8411 } }), Object.defineProperty(e4, r3, i3); 8412 }) : (function(e4, t3, n3, r3) { 8413 r3 === void 0 && (r3 = n3), e4[r3] = t3[n3]; 8414 })), r2 = e3 && e3.__setModuleDefault || (Object.create ? (function(e4, t3) { 8415 Object.defineProperty(e4, "default", { enumerable: true, value: t3 }); 8416 }) : function(e4, t3) { 8417 e4.default = t3; 8418 }), i2 = e3 && e3.__importStar || /* @__PURE__ */ (function() { 8419 var e4 = function(t3) { 8420 return e4 = Object.getOwnPropertyNames || function(e5) { 8421 var t4 = []; 8422 for (var n3 in e5) Object.prototype.hasOwnProperty.call(e5, n3) && (t4[t4.length] = n3); 8423 return t4; 8424 }, e4(t3); 8425 }; 8426 return function(t3) { 8427 if (t3 && t3.__esModule) return t3; 8428 var i3 = {}; 8429 if (t3 != null) for (var a3 = e4(t3), o3 = 0; o3 < a3.length; o3++) a3[o3] !== "default" && n2(i3, t3, a3[o3]); 8430 return r2(i3, t3), i3; 8431 }; 8432 })(), a2 = e3 && e3.__read || function(e4, t3) { 8433 var n3 = typeof Symbol == `function` && e4[Symbol.iterator]; 8434 if (!n3) return e4; 8435 var r3 = n3.call(e4), i3, a3 = [], o3; 8436 try { 8437 for (; (t3 === void 0 || t3-- > 0) && !(i3 = r3.next()).done; ) a3.push(i3.value); 8438 } catch (e5) { 8439 o3 = { error: e5 }; 8440 } finally { 8441 try { 8442 i3 && !i3.done && (n3 = r3.return) && n3.call(r3); 8443 } finally { 8444 if (o3) throw o3.error; 8445 } 8446 } 8447 return a3; 8448 }, o2 = e3 && e3.__spreadArray || function(e4, t3, n3) { 8449 if (n3 || arguments.length === 2) for (var r3 = 0, i3 = t3.length, a3; r3 < i3; r3++) (a3 || !(r3 in t3)) && (a3 || (a3 = Array.prototype.slice.call(t3, 0, r3)), a3[r3] = t3[r3]); 8450 return e4.concat(a3 || Array.prototype.slice.call(t3)); 8451 }, s2 = e3 && e3.__importDefault || function(e4) { 8452 return e4 && e4.__esModule ? e4 : { default: e4 }; 8453 }, c2, l2; 8454 Object.defineProperty(e3, "__esModule", { value: true }); 8455 var u2 = s2(Bo()), d2 = s2(Vo()), f2 = s2(Ho()), p2 = s2(Uo()), m2 = s2(Wo()), h2 = s2(Ko()), g2 = s2(qo()), _2 = s2(Jo()), v2 = i2(Yo()), y2 = s2(Xo()), b2 = s2(Zo()), ee2 = s2(Qo()), x2 = s2($o()), S2 = i2(ts()), C2 = i2(es()), te2 = i2($()), w2 = Lo(), ne2 = (c2 = {}, c2[C2.space] = true, c2[C2.cr] = true, c2[C2.feed] = true, c2[C2.newline] = true, c2[C2.tab] = true, c2), re2 = t2(t2({}, ne2), (l2 = {}, l2[C2.comment] = true, l2)); 8456 function ie2(e4) { 8457 return { line: e4[S2.FIELDS.START_LINE], column: e4[S2.FIELDS.START_COL] }; 8458 } 8459 function T2(e4) { 8460 return { line: e4[S2.FIELDS.END_LINE], column: e4[S2.FIELDS.END_COL] }; 8461 } 8462 function ae2(e4, t3, n3, r3) { 8463 return { start: { line: e4, column: t3 }, end: { line: n3, column: r3 } }; 8464 } 8465 function oe2(e4) { 8466 return ae2(e4[S2.FIELDS.START_LINE], e4[S2.FIELDS.START_COL], e4[S2.FIELDS.END_LINE], e4[S2.FIELDS.END_COL]); 8467 } 8468 function se2(e4, t3) { 8469 if (e4) return ae2(e4[S2.FIELDS.START_LINE], e4[S2.FIELDS.START_COL], t3[S2.FIELDS.END_LINE], t3[S2.FIELDS.END_COL]); 8470 } 8471 function ce2(e4, t3) { 8472 var n3 = e4[t3]; 8473 if (typeof n3 == `string`) return n3.indexOf(`\\`) !== -1 && ((0, w2.ensureObject)(e4, `raws`), e4[t3] = (0, w2.unesc)(n3), e4.raws[t3] === void 0 && (e4.raws[t3] = n3)), e4; 8474 } 8475 function le2(e4, t3) { 8476 for (var n3 = -1, r3 = []; (n3 = e4.indexOf(t3, n3 + 1)) !== -1; ) r3.push(n3); 8477 return r3; 8478 } 8479 function ue2() { 8480 var e4 = Array.prototype.concat.apply([], arguments); 8481 return e4.filter(function(t3, n3) { 8482 return n3 === e4.indexOf(t3); 8483 }); 8484 } 8485 e3.default = (function() { 8486 function e4(e5, t3) { 8487 t3 === void 0 && (t3 = {}), this.rule = e5, this.options = Object.assign({ lossy: false, safe: false }, t3), this.position = 0, this.nestingDepth = 0, this.maxNestingDepth = (0, w2.resolveMaxNestingDepth)(this.options.maxNestingDepth), this.css = typeof this.rule == `string` ? this.rule : this.rule.selector, this.tokens = (0, S2.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); 8488 var n3 = se2(this.tokens[0], this.tokens[this.tokens.length - 1]); 8489 this.root = new u2.default({ source: n3 }), this.root.errorGenerator = this._errorGenerator(); 8490 var r3 = new d2.default({ source: { start: { line: 1, column: 1 } }, sourceIndex: 0 }); 8491 this.root.append(r3), this.current = r3, this.loop(); 8492 } 8493 return e4.prototype._errorGenerator = function() { 8494 var e5 = this; 8495 return function(t3, n3) { 8496 return typeof e5.rule == `string` ? Error(t3) : e5.rule.error(t3, n3); 8497 }; 8498 }, e4.prototype.attribute = function() { 8499 var e5 = [], t3 = this.currToken; 8500 for (this.position++; this.position < this.tokens.length && this.currToken[S2.FIELDS.TYPE] !== C2.closeSquare; ) e5.push(this.currToken), this.position++; 8501 if (this.currToken[S2.FIELDS.TYPE] !== C2.closeSquare) return this.expected(`closing square bracket`, this.currToken[S2.FIELDS.START_POS]); 8502 var n3 = e5.length, r3 = { source: ae2(t3[1], t3[2], this.currToken[3], this.currToken[4]), sourceIndex: t3[S2.FIELDS.START_POS] }; 8503 if (n3 === 1 && !~[C2.word].indexOf(e5[0][S2.FIELDS.TYPE])) return this.expected(`attribute`, e5[0][S2.FIELDS.START_POS]); 8504 for (var i3 = 0, a3 = ``, o3 = ``, s3 = null, c3 = false; i3 < n3; ) { 8505 var l3 = e5[i3], u3 = this.content(l3), d3 = e5[i3 + 1]; 8506 switch (l3[S2.FIELDS.TYPE]) {
vendor: 17,880 bytes, lines 8507-8764
8507 case C2.space: 8508 if (c3 = true, this.options.lossy) break; 8509 if (s3) { 8510 (0, w2.ensureObject)(r3, `spaces`, s3); 8511 var f3 = r3.spaces[s3].after || ``; 8512 r3.spaces[s3].after = f3 + u3; 8513 var p3 = (0, w2.getProp)(r3, `raws`, `spaces`, s3, `after`) || null; 8514 p3 && (r3.raws.spaces[s3].after = p3 + u3); 8515 } else a3 += u3, o3 += u3; 8516 break; 8517 case C2.asterisk: 8518 if (d3[S2.FIELDS.TYPE] === C2.equals) r3.operator = u3, s3 = `operator`; 8519 else if ((!r3.namespace || s3 === `namespace` && !c3) && d3) { 8520 a3 && (a3 = ((0, w2.ensureObject)(r3, `spaces`, `attribute`), r3.spaces.attribute.before = a3, ``)), o3 && (o3 = ((0, w2.ensureObject)(r3, `raws`, `spaces`, `attribute`), r3.raws.spaces.attribute.before = a3, ``)), r3.namespace = (r3.namespace || ``) + u3; 8521 var m3 = (0, w2.getProp)(r3, `raws`, `namespace`) || null; 8522 m3 && (r3.raws.namespace += u3), s3 = `namespace`; 8523 } 8524 c3 = false; 8525 break; 8526 case C2.dollar: 8527 if (s3 === `value`) { 8528 var h3 = (0, w2.getProp)(r3, `raws`, `value`); 8529 r3.value += `$`, h3 && (r3.raws.value = h3 + `$`); 8530 break; 8531 } 8532 case C2.caret: 8533 d3[S2.FIELDS.TYPE] === C2.equals && (r3.operator = u3, s3 = `operator`), c3 = false; 8534 break; 8535 case C2.combinator: 8536 if (u3 === `~` && d3[S2.FIELDS.TYPE] === C2.equals && (r3.operator = u3, s3 = `operator`), u3 !== `|`) { 8537 c3 = false; 8538 break; 8539 } 8540 d3[S2.FIELDS.TYPE] === C2.equals ? (r3.operator = u3, s3 = `operator`) : !r3.namespace && !r3.attribute && (r3.namespace = true), c3 = false; 8541 break; 8542 case C2.word: 8543 if (d3 && this.content(d3) === `|` && e5[i3 + 2] && e5[i3 + 2][S2.FIELDS.TYPE] !== C2.equals && !r3.operator && !r3.namespace) r3.namespace = u3, s3 = `namespace`; 8544 else if (!r3.attribute || s3 === `attribute` && !c3) { 8545 a3 && (a3 = ((0, w2.ensureObject)(r3, `spaces`, `attribute`), r3.spaces.attribute.before = a3, ``)), o3 && (o3 = ((0, w2.ensureObject)(r3, `raws`, `spaces`, `attribute`), r3.raws.spaces.attribute.before = o3, ``)), r3.attribute = (r3.attribute || ``) + u3; 8546 var m3 = (0, w2.getProp)(r3, `raws`, `attribute`) || null; 8547 m3 && (r3.raws.attribute += u3), s3 = `attribute`; 8548 } else if (!r3.value && r3.value !== `` || s3 === `value` && !(c3 || r3.quoteMark)) { 8549 var g3 = (0, w2.unesc)(u3), h3 = (0, w2.getProp)(r3, `raws`, `value`) || ``, _3 = r3.value || ``; 8550 r3.value = _3 + g3, r3.quoteMark = null, (g3 !== u3 || h3) && ((0, w2.ensureObject)(r3, `raws`), r3.raws.value = (h3 || _3) + u3), s3 = `value`; 8551 } else { 8552 var y3 = u3 === `i` || u3 === `I`; 8553 (r3.value || r3.value === ``) && (r3.quoteMark || c3) ? (r3.insensitive = y3, (!y3 || u3 === `I`) && ((0, w2.ensureObject)(r3, `raws`), r3.raws.insensitiveFlag = u3), s3 = `insensitive`, a3 && (a3 = ((0, w2.ensureObject)(r3, `spaces`, `insensitive`), r3.spaces.insensitive.before = a3, ``)), o3 && (o3 = ((0, w2.ensureObject)(r3, `raws`, `spaces`, `insensitive`), r3.raws.spaces.insensitive.before = o3, ``))) : (r3.value || r3.value === ``) && (s3 = `value`, r3.value += u3, r3.raws.value && (r3.raws.value += u3)); 8554 } 8555 c3 = false; 8556 break; 8557 case C2.str: 8558 if (!r3.attribute || !r3.operator) return this.error(`Expected an attribute followed by an operator preceding the string.`, { index: l3[S2.FIELDS.START_POS] }); 8559 var b3 = (0, v2.unescapeValue)(u3), ee3 = b3.unescaped, x3 = b3.quoteMark; 8560 r3.value = ee3, r3.quoteMark = x3, s3 = `value`, (0, w2.ensureObject)(r3, `raws`), r3.raws.value = u3, c3 = false; 8561 break; 8562 case C2.equals: 8563 if (!r3.attribute) return this.expected(`attribute`, l3[S2.FIELDS.START_POS], u3); 8564 if (r3.value) return this.error(`Unexpected "=" found; an operator was already defined.`, { index: l3[S2.FIELDS.START_POS] }); 8565 r3.operator = r3.operator ? r3.operator + u3 : u3, s3 = `operator`, c3 = false; 8566 break; 8567 case C2.comment: 8568 if (s3) if (c3 || d3 && d3[S2.FIELDS.TYPE] === C2.space || s3 === `insensitive`) { 8569 var te3 = (0, w2.getProp)(r3, `spaces`, s3, `after`) || ``, ne3 = (0, w2.getProp)(r3, `raws`, `spaces`, s3, `after`) || te3; 8570 (0, w2.ensureObject)(r3, `raws`, `spaces`, s3), r3.raws.spaces[s3].after = ne3 + u3; 8571 } else { 8572 var re3 = r3[s3] || ``, ie3 = (0, w2.getProp)(r3, `raws`, s3) || re3; 8573 (0, w2.ensureObject)(r3, `raws`), r3.raws[s3] = ie3 + u3; 8574 } 8575 else o3 += u3; 8576 break; 8577 default: 8578 return this.error(`Unexpected "${u3}" found.`, { index: l3[S2.FIELDS.START_POS] }); 8579 } 8580 i3++; 8581 } 8582 ce2(r3, `attribute`), ce2(r3, `namespace`), this.newNode(new v2.default(r3)), this.position++; 8583 }, e4.prototype.parseWhitespaceEquivalentTokens = function(e5) { 8584 e5 < 0 && (e5 = this.tokens.length); 8585 var t3 = this.position, n3 = [], r3 = ``, i3 = void 0; 8586 do 8587 if (ne2[this.currToken[S2.FIELDS.TYPE]]) this.options.lossy || (r3 += this.content()); 8588 else if (this.currToken[S2.FIELDS.TYPE] === C2.comment) { 8589 var a3 = {}; 8590 r3 && (r3 = (a3.before = r3, ``)), i3 = new p2.default({ value: this.content(), source: oe2(this.currToken), sourceIndex: this.currToken[S2.FIELDS.START_POS], spaces: a3 }), n3.push(i3); 8591 } 8592 while (++this.position < e5); 8593 if (r3) { 8594 if (i3) i3.spaces.after = r3; 8595 else if (!this.options.lossy) { 8596 var o3 = this.tokens[t3], s3 = this.tokens[this.position - 1]; 8597 n3.push(new g2.default({ value: ``, source: ae2(o3[S2.FIELDS.START_LINE], o3[S2.FIELDS.START_COL], s3[S2.FIELDS.END_LINE], s3[S2.FIELDS.END_COL]), sourceIndex: o3[S2.FIELDS.START_POS], spaces: { before: r3, after: `` } })); 8598 } 8599 } 8600 return n3; 8601 }, e4.prototype.convertWhitespaceNodesToSpace = function(e5, t3) { 8602 var n3 = this; 8603 t3 === void 0 && (t3 = false); 8604 var r3 = ``, i3 = ``; 8605 return e5.forEach(function(e6) { 8606 var a3 = n3.lossySpace(e6.spaces.before, t3), o3 = n3.lossySpace(e6.rawSpaceBefore, t3); 8607 r3 += a3 + n3.lossySpace(e6.spaces.after, t3 && a3.length === 0), i3 += a3 + e6.value + n3.lossySpace(e6.rawSpaceAfter, t3 && o3.length === 0); 8608 }), i3 === r3 && (i3 = void 0), { space: r3, rawSpace: i3 }; 8609 }, e4.prototype.isNamedCombinator = function(e5) { 8610 return e5 === void 0 && (e5 = this.position), this.tokens[e5 + 0] && this.tokens[e5 + 0][S2.FIELDS.TYPE] === C2.slash && this.tokens[e5 + 1] && this.tokens[e5 + 1][S2.FIELDS.TYPE] === C2.word && this.tokens[e5 + 2] && this.tokens[e5 + 2][S2.FIELDS.TYPE] === C2.slash; 8611 }, e4.prototype.namedCombinator = function() { 8612 if (this.isNamedCombinator()) { 8613 var e5 = this.content(this.tokens[this.position + 1]), t3 = (0, w2.unesc)(e5).toLowerCase(), n3 = {}; 8614 t3 !== e5 && (n3.value = `/${e5}/`); 8615 var r3 = new b2.default({ value: `/${t3}/`, source: ae2(this.currToken[S2.FIELDS.START_LINE], this.currToken[S2.FIELDS.START_COL], this.tokens[this.position + 2][S2.FIELDS.END_LINE], this.tokens[this.position + 2][S2.FIELDS.END_COL]), sourceIndex: this.currToken[S2.FIELDS.START_POS], raws: n3 }); 8616 return this.position += 3, r3; 8617 } else this.unexpected(); 8618 }, e4.prototype.combinator = function() { 8619 var e5 = this; 8620 if (this.content() === `|`) return this.namespace(); 8621 var t3 = this.locateNextMeaningfulToken(this.position); 8622 if (t3 < 0 || this.tokens[t3][S2.FIELDS.TYPE] === C2.comma || this.tokens[t3][S2.FIELDS.TYPE] === C2.closeParenthesis) { 8623 var n3 = this.parseWhitespaceEquivalentTokens(t3); 8624 if (n3.length > 0) { 8625 var r3 = this.current.last; 8626 if (r3) { 8627 var i3 = this.convertWhitespaceNodesToSpace(n3), a3 = i3.space, o3 = i3.rawSpace; 8628 o3 !== void 0 && (r3.rawSpaceAfter += o3), r3.spaces.after += a3; 8629 } else n3.forEach(function(t4) { 8630 return e5.newNode(t4); 8631 }); 8632 } 8633 return; 8634 } 8635 var s3 = this.currToken, c3 = void 0; 8636 t3 > this.position && (c3 = this.parseWhitespaceEquivalentTokens(t3)); 8637 var l3; 8638 if (this.isNamedCombinator() ? l3 = this.namedCombinator() : this.currToken[S2.FIELDS.TYPE] === C2.combinator ? (l3 = new b2.default({ value: this.content(), source: oe2(this.currToken), sourceIndex: this.currToken[S2.FIELDS.START_POS] }), this.position++) : ne2[this.currToken[S2.FIELDS.TYPE]] || c3 || this.unexpected(), l3) { 8639 if (c3) { 8640 var u3 = this.convertWhitespaceNodesToSpace(c3), a3 = u3.space, o3 = u3.rawSpace; 8641 l3.spaces.before = a3, l3.rawSpaceBefore = o3; 8642 } 8643 } else { 8644 var d3 = this.convertWhitespaceNodesToSpace(c3, true), a3 = d3.space, o3 = d3.rawSpace; 8645 o3 || (o3 = a3); 8646 var f3 = {}, p3 = { spaces: {} }; 8647 a3.endsWith(` `) && o3.endsWith(` `) ? (f3.before = a3.slice(0, a3.length - 1), p3.spaces.before = o3.slice(0, o3.length - 1)) : a3[0] === ` ` && o3[0] === ` ` ? (f3.after = a3.slice(1), p3.spaces.after = o3.slice(1)) : p3.value = o3, l3 = new b2.default({ value: ` `, source: se2(s3, this.tokens[this.position - 1]), sourceIndex: s3[S2.FIELDS.START_POS], spaces: f3, raws: p3 }); 8648 } 8649 return this.currToken && this.currToken[S2.FIELDS.TYPE] === C2.space && (l3.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(l3); 8650 }, e4.prototype.comma = function() { 8651 if (this.position === this.tokens.length - 1) { 8652 this.root.trailingComma = true, this.position++; 8653 return; 8654 } 8655 this.current._inferEndPosition(); 8656 var e5 = new d2.default({ source: { start: ie2(this.tokens[this.position + 1]) }, sourceIndex: this.tokens[this.position + 1][S2.FIELDS.START_POS] }); 8657 this.current.parent.append(e5), this.current = e5, this.position++; 8658 }, e4.prototype.comment = function() { 8659 var e5 = this.currToken; 8660 this.newNode(new p2.default({ value: this.content(), source: oe2(e5), sourceIndex: e5[S2.FIELDS.START_POS] })), this.position++; 8661 }, e4.prototype.error = function(e5, t3) { 8662 throw this.root.error(e5, t3); 8663 }, e4.prototype.missingBackslash = function() { 8664 return this.error(`Expected a backslash preceding the semicolon.`, { index: this.currToken[S2.FIELDS.START_POS] }); 8665 }, e4.prototype.missingParenthesis = function() { 8666 return this.expected(`opening parenthesis`, this.currToken[S2.FIELDS.START_POS]); 8667 }, e4.prototype.missingSquareBracket = function() { 8668 return this.expected(`opening square bracket`, this.currToken[S2.FIELDS.START_POS]); 8669 }, e4.prototype.unexpected = function() { 8670 return this.error(`Unexpected '${this.content()}'. Escaping special characters with \\ may help.`, this.currToken[S2.FIELDS.START_POS]); 8671 }, e4.prototype.unexpectedPipe = function() { 8672 return this.error(`Unexpected '|'.`, this.currToken[S2.FIELDS.START_POS]); 8673 }, e4.prototype.namespace = function() { 8674 var e5 = this.prevToken && this.content(this.prevToken) || true; 8675 if (this.nextToken[S2.FIELDS.TYPE] === C2.word) return this.position++, this.word(e5); 8676 if (this.nextToken[S2.FIELDS.TYPE] === C2.asterisk) return this.position++, this.universal(e5); 8677 this.unexpectedPipe(); 8678 }, e4.prototype.nesting = function() { 8679 if (this.nextToken && this.content(this.nextToken) === `|`) { 8680 this.position++; 8681 return; 8682 } 8683 var e5 = this.currToken; 8684 this.newNode(new ee2.default({ value: this.content(), source: oe2(e5), sourceIndex: e5[S2.FIELDS.START_POS] })), this.position++; 8685 }, e4.prototype.parentheses = function() { 8686 var e5 = this.current.last, t3 = 1; 8687 if (this.position++, e5 && e5.type === te2.PSEUDO) { 8688 var n3 = new d2.default({ source: { start: ie2(this.tokens[this.position]) }, sourceIndex: this.tokens[this.position][S2.FIELDS.START_POS] }), r3 = this.current; 8689 e5.append(n3), this.current = n3, this.nestingDepth++; 8690 try { 8691 for (this.nestingDepth > this.maxNestingDepth && this.error(`Cannot parse selector: nesting depth exceeds the maximum of ${this.maxNestingDepth}.`, { index: this.currToken[S2.FIELDS.START_POS] }); this.position < this.tokens.length && t3; ) this.currToken[S2.FIELDS.TYPE] === C2.openParenthesis && t3++, this.currToken[S2.FIELDS.TYPE] === C2.closeParenthesis && t3--, t3 ? this.parse() : (this.current.source.end = T2(this.currToken), this.current.parent.source.end = T2(this.currToken), this.position++); 8692 } finally { 8693 this.nestingDepth--; 8694 } 8695 this.current = r3; 8696 } else { 8697 for (var i3 = this.currToken, a3 = `(`, o3 = void 0; this.position < this.tokens.length && t3; ) this.currToken[S2.FIELDS.TYPE] === C2.openParenthesis && t3++, this.currToken[S2.FIELDS.TYPE] === C2.closeParenthesis && t3--, o3 = this.currToken, a3 += this.parseParenthesisToken(this.currToken), this.position++; 8698 e5 ? e5.appendToPropertyAndEscape(`value`, a3, a3) : this.newNode(new g2.default({ value: a3, source: ae2(i3[S2.FIELDS.START_LINE], i3[S2.FIELDS.START_COL], o3[S2.FIELDS.END_LINE], o3[S2.FIELDS.END_COL]), sourceIndex: i3[S2.FIELDS.START_POS] })); 8699 } 8700 if (t3) return this.expected(`closing parenthesis`, this.currToken[S2.FIELDS.START_POS]); 8701 }, e4.prototype.pseudo = function() { 8702 for (var e5 = this, t3 = ``, n3 = this.currToken; this.currToken && this.currToken[S2.FIELDS.TYPE] === C2.colon; ) t3 += this.content(), this.position++; 8703 if (!this.currToken) return this.expected([`pseudo-class`, `pseudo-element`], this.position - 1); 8704 if (this.currToken[S2.FIELDS.TYPE] === C2.word) this.splitWord(false, function(r3, i3) { 8705 t3 += r3, e5.newNode(new _2.default({ value: t3, source: se2(n3, e5.currToken), sourceIndex: n3[S2.FIELDS.START_POS] })), i3 > 1 && e5.nextToken && e5.nextToken[S2.FIELDS.TYPE] === C2.openParenthesis && e5.error(`Misplaced parenthesis.`, { index: e5.nextToken[S2.FIELDS.START_POS] }); 8706 }); 8707 else return this.expected([`pseudo-class`, `pseudo-element`], this.currToken[S2.FIELDS.START_POS]); 8708 }, e4.prototype.space = function() { 8709 var e5 = this.content(); 8710 this.position === 0 || this.prevToken[S2.FIELDS.TYPE] === C2.comma || this.prevToken[S2.FIELDS.TYPE] === C2.openParenthesis || this.current.nodes.every(function(e6) { 8711 return e6.type === `comment`; 8712 }) ? (this.spaces = this.optionalSpace(e5), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[S2.FIELDS.TYPE] === C2.comma || this.nextToken[S2.FIELDS.TYPE] === C2.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(e5), this.position++) : this.combinator(); 8713 }, e4.prototype.string = function() { 8714 var e5 = this.currToken; 8715 this.newNode(new g2.default({ value: this.content(), source: oe2(e5), sourceIndex: e5[S2.FIELDS.START_POS] })), this.position++; 8716 }, e4.prototype.universal = function(e5) { 8717 var t3 = this.nextToken; 8718 if (t3 && this.content(t3) === `|`) return this.position++, this.namespace(); 8719 var n3 = this.currToken; 8720 this.newNode(new y2.default({ value: this.content(), source: oe2(n3), sourceIndex: n3[S2.FIELDS.START_POS] }), e5), this.position++; 8721 }, e4.prototype.splitWord = function(e5, t3) { 8722 for (var n3 = this, r3 = this.nextToken, i3 = this.content(); r3 && ~[C2.dollar, C2.caret, C2.equals, C2.word].indexOf(r3[S2.FIELDS.TYPE]); ) { 8723 this.position++; 8724 var s3 = this.content(); 8725 if (i3 += s3, s3.lastIndexOf(`\\`) === s3.length - 1) { 8726 var c3 = this.nextToken; 8727 c3 && c3[S2.FIELDS.TYPE] === C2.space && (i3 += this.requiredSpace(this.content(c3)), this.position++); 8728 } 8729 r3 = this.nextToken; 8730 } 8731 var l3 = le2(i3, `.`).filter(function(e6) { 8732 var t4 = i3[e6 - 1] === `\\`, n4 = /^\d+\.\d+%$/.test(i3); 8733 return !t4 && !n4; 8734 }), u3 = le2(i3, `#`).filter(function(e6) { 8735 return i3[e6 - 1] !== `\\`; 8736 }), d3 = le2(i3, `#{`); 8737 d3.length && (u3 = u3.filter(function(e6) { 8738 return !~d3.indexOf(e6); 8739 })); 8740 var p3 = (0, x2.default)(ue2(o2(o2([0], a2(l3), false), a2(u3), false))); 8741 p3.forEach(function(r4, a3) { 8742 var o3 = p3[a3 + 1] || i3.length, s4 = i3.slice(r4, o3); 8743 if (a3 === 0 && t3) return t3.call(n3, s4, p3.length); 8744 var c4, d4 = n3.currToken, g3 = d4[S2.FIELDS.START_POS] + p3[a3], _3 = ae2(d4[1], d4[2] + r4, d4[3], d4[2] + (o3 - 1)); 8745 if (~l3.indexOf(r4)) { 8746 var v3 = { value: s4.slice(1), source: _3, sourceIndex: g3 }; 8747 c4 = new f2.default(ce2(v3, `value`)); 8748 } else if (~u3.indexOf(r4)) { 8749 var y3 = { value: s4.slice(1), source: _3, sourceIndex: g3 }; 8750 c4 = new m2.default(ce2(y3, `value`)); 8751 } else { 8752 var b3 = { value: s4, source: _3, sourceIndex: g3 }; 8753 ce2(b3, `value`), c4 = new h2.default(b3); 8754 } 8755 n3.newNode(c4, e5), e5 = null; 8756 }), this.position++; 8757 }, e4.prototype.word = function(e5) { 8758 var t3 = this.nextToken; 8759 return t3 && this.content(t3) === `|` ? (this.position++, this.namespace()) : this.splitWord(e5); 8760 }, e4.prototype.loop = function() { 8761 for (; this.position < this.tokens.length; ) this.parse(true); 8762 return this.current._inferEndPosition(), this.root; 8763 }, e4.prototype.parse = function(e5) { 8764 switch (this.currToken[S2.FIELDS.TYPE]) {
8765 case C2.space: 8766 this.space(); 8767 break; 8768 case C2.comment: 8769 this.comment(); 8770 break; 8771 case C2.openParenthesis: 8772 this.parentheses(); 8773 break; 8774 case C2.closeParenthesis: 8775 e5 && this.missingParenthesis(); 8776 break; 8777 case C2.openSquare: 8778 this.attribute(); 8779 break; 8780 case C2.dollar: 8781 case C2.caret: 8782 case C2.equals: 8783 case C2.word: 8784 this.word(); 8785 break; 8786 case C2.colon: 8787 this.pseudo(); 8788 break; 8789 case C2.comma: 8790 this.comma(); 8791 break; 8792 case C2.asterisk: 8793 this.universal(); 8794 break; 8795 case C2.ampersand: 8796 this.nesting(); 8797 break; 8798 case C2.slash: 8799 case C2.combinator: 8800 this.combinator(); 8801 break; 8802 case C2.str: 8803 this.string(); 8804 break; 8805 case C2.closeSquare: 8806 this.missingSquareBracket(); 8807 case C2.semicolon: 8808 this.missingBackslash(); 8809 default: 8810 this.unexpected(); 8811 } 8812 }, e4.prototype.expected = function(e5, t3, n3) { 8813 if (Array.isArray(e5)) { 8814 var r3 = e5.pop(); 8815 e5 = `${e5.join(`, `)} or ${r3}`; 8816 } 8817 var i3 = /^[aeiou]/.test(e5[0]) ? `an` : `a`; 8818 return n3 ? this.error(`Expected ${i3} ${e5}, found "${n3}" instead.`, { index: t3 }) : this.error(`Expected ${i3} ${e5}.`, { index: t3 }); 8819 }, e4.prototype.requiredSpace = function(e5) { 8820 return this.options.lossy ? ` ` : e5; 8821 }, e4.prototype.optionalSpace = function(e5) { 8822 return this.options.lossy ? `` : e5; 8823 }, e4.prototype.lossySpace = function(e5, t3) { 8824 return this.options.lossy ? t3 ? ` ` : `` : e5; 8825 }, e4.prototype.parseParenthesisToken = function(e5) { 8826 var t3 = this.content(e5); 8827 return e5[S2.FIELDS.TYPE] === C2.space ? this.requiredSpace(t3) : t3; 8828 }, e4.prototype.newNode = function(e5, t3) { 8829 return t3 && (/^ +$/.test(t3) && (this.options.lossy || (this.spaces = (this.spaces || ``) + t3), t3 = true), e5.namespace = t3, ce2(e5, `namespace`)), this.spaces && (this.spaces = (e5.spaces.before = this.spaces, ``)), this.current.append(e5); 8830 }, e4.prototype.content = function(e5) { 8831 return e5 === void 0 && (e5 = this.currToken), this.css.slice(e5[S2.FIELDS.START_POS], e5[S2.FIELDS.END_POS]); 8832 }, Object.defineProperty(e4.prototype, "currToken", { get: function() { 8833 return this.tokens[this.position]; 8834 }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "nextToken", { get: function() { 8835 return this.tokens[this.position + 1]; 8836 }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "prevToken", { get: function() { 8837 return this.tokens[this.position - 1]; 8838 }, enumerable: false, configurable: true }), e4.prototype.locateNextMeaningfulToken = function(e5) { 8839 e5 === void 0 && (e5 = this.position + 1); 8840 for (var t3 = e5; t3 < this.tokens.length; ) if (re2[this.tokens[t3][S2.FIELDS.TYPE]]) { 8841 t3++; 8842 continue; 8843 } else return t3; 8844 return -1; 8845 }, e4; 8846 })(); 8847})), rs = t(((e3) => { 8848 var t2 = e3 && e3.__importDefault || function(e4) { 8849 return e4 && e4.__esModule ? e4 : { default: e4 }; 8850 }; 8851 Object.defineProperty(e3, "__esModule", { value: true }); 8852 var n2 = t2(ns()); 8853 e3.default = (function() { 8854 function e4(e5, t3) { 8855 this.func = e5 || function() { 8856 }, this.funcRes = null, this.options = t3; 8857 } 8858 return e4.prototype._shouldUpdateSelector = function(e5, t3) { 8859 return t3 === void 0 && (t3 = {}), Object.assign({}, this.options, t3).updateSelector === false ? false : typeof e5 != `string`; 8860 }, e4.prototype._isLossy = function(e5) { 8861 return e5 === void 0 && (e5 = {}), Object.assign({}, this.options, e5).lossless === false; 8862 }, e4.prototype._root = function(e5, t3) { 8863 return t3 === void 0 && (t3 = {}), new n2.default(e5, this._parseOptions(t3)).root; 8864 }, e4.prototype._parseOptions = function(e5) { 8865 var t3 = Object.assign({}, this.options, e5); 8866 return { lossy: this._isLossy(t3), maxNestingDepth: t3.maxNestingDepth }; 8867 }, e4.prototype._stringifyOptions = function(e5) { 8868 return { maxNestingDepth: Object.assign({}, this.options, e5).maxNestingDepth }; 8869 }, e4.prototype._run = function(e5, t3) { 8870 var n3 = this; 8871 return t3 === void 0 && (t3 = {}), new Promise(function(r2, i2) { 8872 try { 8873 var a2 = n3._root(e5, t3); 8874 Promise.resolve(n3.func(a2)).then(function(r3) { 8875 var i3 = void 0; 8876 return n3._shouldUpdateSelector(e5, t3) && (i3 = a2.toString(n3._stringifyOptions(t3)), e5.selector = i3), { transform: r3, root: a2, string: i3 }; 8877 }).then(r2, i2); 8878 } catch (e6) { 8879 i2(e6); 8880 return; 8881 } 8882 }); 8883 }, e4.prototype._runSync = function(e5, t3) { 8884 t3 === void 0 && (t3 = {}); 8885 var n3 = this._root(e5, t3), r2 = this.func(n3); 8886 if (r2 && typeof r2.then == `function`) throw Error(`Selector processor returned a promise to a synchronous call.`); 8887 var i2 = void 0; 8888 return t3.updateSelector && typeof e5 != `string` && (i2 = n3.toString(this._stringifyOptions(t3)), e5.selector = i2), { transform: r2, root: n3, string: i2 }; 8889 }, e4.prototype.ast = function(e5, t3) { 8890 return this._run(e5, t3).then(function(e6) { 8891 return e6.root; 8892 }); 8893 }, e4.prototype.astSync = function(e5, t3) { 8894 return this._runSync(e5, t3).root; 8895 }, e4.prototype.transform = function(e5, t3) { 8896 return this._run(e5, t3).then(function(e6) { 8897 return e6.transform; 8898 }); 8899 }, e4.prototype.transformSync = function(e5, t3) { 8900 return this._runSync(e5, t3).transform; 8901 }, e4.prototype.process = function(e5, t3) { 8902 var n3 = this; 8903 return this._run(e5, t3).then(function(e6) { 8904 return e6.string || e6.root.toString(n3._stringifyOptions(t3)); 8905 }); 8906 }, e4.prototype.processSync = function(e5, t3) { 8907 var n3 = this._runSync(e5, t3); 8908 return n3.string || n3.root.toString(this._stringifyOptions(t3)); 8909 }, e4; 8910 })(); 8911})), is = t(((e3) => { 8912 var t2 = e3 && e3.__importDefault || function(e4) { 8913 return e4 && e4.__esModule ? e4 : { default: e4 }; 8914 }; 8915 Object.defineProperty(e3, "__esModule", { value: true }), e3.universal = e3.tag = e3.string = e3.selector = e3.root = e3.pseudo = e3.nesting = e3.id = e3.comment = e3.combinator = e3.className = e3.attribute = void 0; 8916 var n2 = t2(Yo()), r2 = t2(Ho()), i2 = t2(Zo()), a2 = t2(Uo()), o2 = t2(Wo()), s2 = t2(Qo()), c2 = t2(Jo()), l2 = t2(Bo()), u2 = t2(Vo()), d2 = t2(qo()), f2 = t2(Ko()), p2 = t2(Xo()); 8917 e3.attribute = function(e4) { 8918 return new n2.default(e4); 8919 }, e3.className = function(e4) { 8920 return new r2.default(e4); 8921 }, e3.combinator = function(e4) { 8922 return new i2.default(e4); 8923 }, e3.comment = function(e4) { 8924 return new a2.default(e4); 8925 }, e3.id = function(e4) { 8926 return new o2.default(e4); 8927 }, e3.nesting = function(e4) { 8928 return new s2.default(e4); 8929 }, e3.pseudo = function(e4) { 8930 return new c2.default(e4); 8931 }, e3.root = function(e4) { 8932 return new l2.default(e4); 8933 }, e3.selector = function(e4) { 8934 return new u2.default(e4); 8935 }, e3.string = function(e4) { 8936 return new d2.default(e4); 8937 }, e3.tag = function(e4) { 8938 return new f2.default(e4); 8939 }, e3.universal = function(e4) { 8940 return new p2.default(e4); 8941 }; 8942})), as = t(((e3) => { 8943 var t2; 8944 Object.defineProperty(e3, "__esModule", { value: true }), e3.isUniversal = e3.isTag = e3.isString = e3.isSelector = e3.isRoot = e3.isPseudo = e3.isNesting = e3.isIdentifier = e3.isComment = e3.isCombinator = e3.isClassName = e3.isAttribute = void 0, e3.isNode = i2, e3.isPseudoElement = o2, e3.isPseudoClass = s2, e3.isContainer = c2, e3.isNamespace = l2; 8945 var n2 = $(), r2 = (t2 = {}, t2[n2.ATTRIBUTE] = true, t2[n2.CLASS] = true, t2[n2.COMBINATOR] = true, t2[n2.COMMENT] = true, t2[n2.ID] = true, t2[n2.NESTING] = true, t2[n2.PSEUDO] = true, t2[n2.ROOT] = true, t2[n2.SELECTOR] = true, t2[n2.STRING] = true, t2[n2.TAG] = true, t2[n2.UNIVERSAL] = true, t2); 8946 function i2(e4) { 8947 return typeof e4 == `object` && r2[e4.type]; 8948 } 8949 function a2(e4, t3) { 8950 return i2(t3) && t3.type === e4; 8951 } 8952 e3.isAttribute = a2.bind(null, n2.ATTRIBUTE), e3.isClassName = a2.bind(null, n2.CLASS), e3.isCombinator = a2.bind(null, n2.COMBINATOR), e3.isComment = a2.bind(null, n2.COMMENT), e3.isIdentifier = a2.bind(null, n2.ID), e3.isNesting = a2.bind(null, n2.NESTING), e3.isPseudo = a2.bind(null, n2.PSEUDO), e3.isRoot = a2.bind(null, n2.ROOT), e3.isSelector = a2.bind(null, n2.SELECTOR), e3.isString = a2.bind(null, n2.STRING), e3.isTag = a2.bind(null, n2.TAG), e3.isUniversal = a2.bind(null, n2.UNIVERSAL); 8953 function o2(t3) { 8954 return (0, e3.isPseudo)(t3) && t3.value && (t3.value.startsWith(`::`) || t3.value.toLowerCase() === `:before` || t3.value.toLowerCase() === `:after` || t3.value.toLowerCase() === `:first-letter` || t3.value.toLowerCase() === `:first-line`); 8955 } 8956 function s2(t3) { 8957 return (0, e3.isPseudo)(t3) && !o2(t3); 8958 } 8959 function c2(e4) { 8960 return !!(i2(e4) && e4.walk); 8961 } 8962 function l2(t3) { 8963 return (0, e3.isAttribute)(t3) || (0, e3.isTag)(t3); 8964 } 8965})), os = t(((e3) => { 8966 var t2 = e3 && e3.__createBinding || (Object.create ? (function(e4, t3, n3, r2) { 8967 r2 === void 0 && (r2 = n3); 8968 var i2 = Object.getOwnPropertyDescriptor(t3, n3);
8969 (!i2 || (`get` in i2 ? !t3.__esModule : i2.writable || i2.configurable)) && (i2 = { enumerable: true, get: function() { 8970 return t3[n3]; 8971 } }), Object.defineProperty(e4, r2, i2); 8972 }) : (function(e4, t3, n3, r2) { 8973 r2 === void 0 && (r2 = n3), e4[r2] = t3[n3]; 8974 })), n2 = e3 && e3.__exportStar || function(e4, n3) { 8975 for (var r2 in e4) r2 !== "default" && !Object.prototype.hasOwnProperty.call(n3, r2) && t2(n3, e4, r2); 8976 }; 8977 Object.defineProperty(e3, "__esModule", { value: true }), n2($(), e3), n2(is(), e3), n2(as(), e3); 8978})), ss = t(((e3, t2) => { 8979 var n2 = e3 && e3.__createBinding || (Object.create ? (function(e4, t3, n3, r3) { 8980 r3 === void 0 && (r3 = n3); 8981 var i3 = Object.getOwnPropertyDescriptor(t3, n3); 8982 (!i3 || (`get` in i3 ? !t3.__esModule : i3.writable || i3.configurable)) && (i3 = { enumerable: true, get: function() { 8983 return t3[n3]; 8984 } }), Object.defineProperty(e4, r3, i3); 8985 }) : (function(e4, t3, n3, r3) { 8986 r3 === void 0 && (r3 = n3), e4[r3] = t3[n3]; 8987 })), r2 = e3 && e3.__setModuleDefault || (Object.create ? (function(e4, t3) { 8988 Object.defineProperty(e4, "default", { enumerable: true, value: t3 }); 8989 }) : function(e4, t3) { 8990 e4.default = t3; 8991 }), i2 = e3 && e3.__importStar || /* @__PURE__ */ (function() { 8992 var e4 = function(t3) { 8993 return e4 = Object.getOwnPropertyNames || function(e5) { 8994 var t4 = []; 8995 for (var n3 in e5) Object.prototype.hasOwnProperty.call(e5, n3) && (t4[t4.length] = n3); 8996 return t4; 8997 }, e4(t3); 8998 }; 8999 return function(t3) { 9000 if (t3 && t3.__esModule) return t3; 9001 var i3 = {}; 9002 if (t3 != null) for (var a3 = e4(t3), o3 = 0; o3 < a3.length; o3++) a3[o3] !== "default" && n2(i3, t3, a3[o3]); 9003 return r2(i3, t3), i3; 9004 }; 9005 })(), a2 = (e3 && e3.__importDefault || function(e4) { 9006 return e4 && e4.__esModule ? e4 : { default: e4 }; 9007 })(rs()), o2 = i2(os()), s2 = function(e4) { 9008 return new a2.default(e4); 9009 }; 9010 Object.assign(s2, o2), delete s2.__esModule, t2.exports = s2; 9011})), cs = e(t(((e3, t2) => { 9012 var { AtRule: n2, Rule: r2 } = o(), i2 = ss(); 9013 function a2(e4, t3) { 9014 let n3; 9015 try { 9016 i2((e5) => { 9017 n3 = e5; 9018 }).processSync(e4); 9019 } catch (n4) { 9020 throw e4.includes(`:`) ? t3 ? t3.error(`Missed semicolon`) : n4 : t3 ? t3.error(n4.message) : n4; 9021 } 9022 return n3.at(0); 9023 } 9024 function s2(e4, t3) { 9025 let n3 = false;
9026 return e4.each((e5) => { 9027 if (e5.type === `nesting`) { 9028 let r3 = t3.clone({}); 9029 e5.value === `&` ? e5.replaceWith(r3) : e5.replaceWith(a2(e5.value.replace(`&`, r3.toString()))), n3 = true; 9030 } else `nodes` in e5 && e5.nodes && s2(e5, t3) && (n3 = true); 9031 }), n3; 9032 } 9033 function c2(e4, t3) { 9034 let n3 = []; 9035 for (let r3 of e4.selectors) { 9036 let o2 = a2(r3, e4); 9037 for (let e5 of t3.selectors) { 9038 if (!e5) continue; 9039 let r4 = a2(e5, t3); 9040 s2(r4, o2) || (r4.prepend(i2.combinator({ value: ` ` })), r4.prepend(o2.clone({}))), n3.push(r4.toString()); 9041 } 9042 } 9043 return n3; 9044 } 9045 function l2(e4, t3) { 9046 if (e4.prev()?.type !== `comment`) return t3.after(e4), e4; 9047 let n3 = e4.prev(); 9048 return e4.parent.toString().match(/[*]\/ *\n.*{/) ? t3.after(e4).after(n3) : t3.after(e4), e4; 9049 } 9050 function u2(e4) { 9051 return function t3(n3, r3, i3, a3 = i3) { 9052 let o2 = []; 9053 if (r3.each((s3) => { 9054 s3.type === `rule` && i3 ? a3 && (s3.selectors = c2(n3, s3)) : s3.type === `atrule` && s3.nodes ? e4[s3.name] ? t3(n3, s3, a3) : r3[_2] !== false && o2.push(s3) : o2.push(s3); 9055 }), i3 && o2.length) { 9056 let e5 = n3.clone({ nodes: [] }); 9057 for (let t4 of o2) e5.append(t4); 9058 r3.prepend(e5); 9059 } 9060 }; 9061 } 9062 function d2(e4, t3, n3) { 9063 let i3 = new r2({ nodes: [], selector: e4 }); 9064 return i3.append(t3), n3.after(i3), i3; 9065 } 9066 function f2(e4, t3, n3, r3 = true) { 9067 return t3.length ? (n3 = d2(e4, t3, n3), r3 && (t3 = []), [n3, t3]) : [n3, t3]; 9068 } 9069 function p2(e4, t3 = ``) { 9070 let n3 = e4.concat(t3), r3 = {}; 9071 for (let e5 of n3) r3[e5.replace(/^@/, ``)] = true; 9072 return r3; 9073 } 9074 function m2(e4) { 9075 e4 = e4.trim(); 9076 let t3 = e4.match(/^\((.*)\)$/); 9077 if (!t3) return { selector: e4, type: `basic` }; 9078 let n3 = t3[1].match(/^(with(?:out)?):(.+)$/); 9079 if (n3) { 9080 let e5 = n3[1] === `with`, t4 = Object.fromEntries(n3[2].trim().split(/\s+/).map((e6) => [e6, true])); 9081 if (e5 && t4.all) return { type: `noop` }; 9082 let r3 = (e6) => !!t4[e6]; 9083 return t4.all ? r3 = () => true : e5 && (r3 = (e6) => e6 === `all` ? false : !t4[e6]), { escapes: r3, type: `withrules` }; 9084 } 9085 return { type: `unknown` }; 9086 } 9087 function h2(e4) { 9088 let t3 = [], r3 = e4.parent; 9089 for (; r3 && r3 instanceof n2; ) t3.push(r3), r3 = r3.parent; 9090 return t3; 9091 } 9092 function g2(e4) { 9093 let t3 = e4[v2]; 9094 if (!t3) e4.after(e4.nodes); 9095 else { 9096 let n3 = e4.nodes, r3, i3 = -1, a3, o2, s3, c3 = h2(e4); 9097 if (c3.forEach((e5, n4) => { 9098 if (t3(e5.name)) r3 = e5, i3 = n4, o2 = s3; 9099 else { 9100 let t4 = s3; 9101 s3 = e5.clone({ nodes: [] }), t4 && s3.append(t4), a3 || (a3 = s3); 9102 } 9103 }), r3 ? o2 ? (a3.append(n3), r3.after(o2)) : r3.after(n3) : e4.after(n3), e4.next() && r3) { 9104 let t4; 9105 c3.slice(0, i3 + 1).forEach((n4, r4, i4) => { 9106 let a4 = t4; 9107 t4 = n4.clone({ nodes: [] }), a4 && t4.append(a4); 9108 let o3 = [], s4 = (i4[r4 - 1] || e4).next(); 9109 for (; s4; ) o3.push(s4), s4 = s4.next(); 9110 t4.append(o3); 9111 }), t4 && (o2 || n3[n3.length - 1]).after(t4); 9112 } 9113 } 9114 e4.remove(); 9115 } 9116 var _2 = /* @__PURE__ */ Symbol(`rootRuleMergeSel`), v2 = /* @__PURE__ */ Symbol(`rootRuleEscapes`); 9117 function y2(e4) { 9118 let { params: t3 } = e4, { escapes: n3, selector: i3, type: a3 } = m2(t3); 9119 if (a3 === `unknown`) throw e4.error(`Unknown @${e4.name} parameter ${JSON.stringify(t3)}`); 9120 if (a3 === `basic` && i3) { 9121 let t4 = new r2({ nodes: e4.nodes, selector: i3 }); 9122 e4.removeAll(), e4.append(t4); 9123 } 9124 e4[v2] = n3, e4[_2] = n3 ? !n3(`all`) : a3 === `noop`; 9125 } 9126 var b2 = /* @__PURE__ */ Symbol(`hasRootRule`); 9127 t2.exports = (e4 = {}) => { 9128 let t3 = p2([`media`, `supports`, `layer`, `container`, `starting-style`], e4.bubble), n3 = u2(t3), r3 = p2([`document`, `font-face`, `keyframes`, `-webkit-keyframes`, `-moz-keyframes`], e4.unwrap), i3 = (e4.rootRuleName || `at-root`).replace(/^@/, ``), a3 = e4.preserveEmpty; 9129 return { Once(e5) {
9130 e5.walkAtRules(i3, (t4) => { 9131 y2(t4), e5[b2] = true; 9132 }); 9133 }, postcssPlugin: `postcss-nested`, RootExit(e5) { 9134 e5[b2] && (e5.walkAtRules(i3, g2), e5[b2] = false); 9135 }, Rule(e5) { 9136 let o2 = false, s3 = e5, u3 = false, d3 = []; 9137 e5.each((a4) => { 9138 switch (a4.type) { 9139 case `atrule`: 9140 [s3, d3] = f2(e5.selector, d3, s3), a4.name === i3 ? (o2 = true, n3(e5, a4, true, a4[_2]), s3 = l2(a4, s3)) : t3[a4.name] ? (u3 = true, o2 = true, n3(e5, a4, true), s3 = l2(a4, s3)) : r3[a4.name] ? (u3 = true, o2 = true, n3(e5, a4, false), s3 = l2(a4, s3)) : u3 && d3.push(a4); 9141 break; 9142 case `decl`: 9143 u3 && d3.push(a4); 9144 break; 9145 case `rule`: 9146 [s3, d3] = f2(e5.selector, d3, s3), u3 = true, o2 = true, a4.selectors = c2(e5, a4), s3 = l2(a4, s3); 9147 break; 9148 } 9149 }), f2(e5.selector, d3, s3, false), o2 && a3 !== true && (e5.raws.semicolon = true, e5.nodes.length === 0 && e5.remove()); 9150 } }; 9151 }, t2.exports.postcss = true; 9152}))(), 1); 9153async function ls({ entrypoint: e3 = `/main.css`, volume: t2 = {}, ...n2 } = {}) { 9154 return n2 = { entrypoint: e3, volume: t2, ...n2 }, { css: (await a().use((0, cs.default)()).process(n2.volume[n2.entrypoint], { from: n2.entrypoint, parser: n2.parser || null })).css }; 9155} 9156var us = class extends Map { 9157 constructor(e3) { 9158 super(); 9159 __publicField(this, "factory"); 9160 this.factory = e3; 9161 } 9162 get(e3) { 9163 let t2 = super.get(e3); 9164 return t2 === void 0 && (t2 = this.factory(e3, this), this.set(e3, t2)), t2; 9165 } 9166}; 9167export { 9168 Do as a, 9169 jo as i, 9170 ls as n, 9171 Oo as o, 9172 ss as r, 9173 us as t 9174};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.