@tailwindcss/upgrade 4.1.13 → 4.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +44 -43
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
- var io=Object.create;var pr=Object.defineProperty;var no=Object.getOwnPropertyDescriptor;var oo=Object.getOwnPropertyNames;var ao=Object.getPrototypeOf,lo=Object.prototype.hasOwnProperty;var so=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var uo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oo(t))!lo.call(e,i)&&i!==r&&pr(e,i,{get:()=>t[i],enumerable:!(n=no(t,i))||n.enumerable});return e};var fo=(e,t,r)=>(r=e!=null?io(ao(e)):{},uo(t||!e||!e.__esModule?pr(r,"default",{value:e,enumerable:!0}):r,e));var mi=so((gm,pi)=>{"use strict";var at=new Uint8Array(256);function xa(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let u=e.charCodeAt(a);if(r===0&&u===s){n.push(e.slice(i,a)),i=a+1;continue}switch(u){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let l=e.charCodeAt(a);if(l===92){a+=1;continue}if(l===u)break}break;case 40:at[r]=41,r++;break;case 91:at[r]=93,r++;break;case 123:at[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===at[r-1]&&r--;break}}return n.push(e.slice(i)),n}var ie=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,um=new RegExp(`^${ie.source}$`),fm=new RegExp(`^${ie.source}%$`),cm=new RegExp(`^${ie.source}s*/s*${ie.source}$`),Ca=["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"],pm=new RegExp(`^${ie.source}(${Ca.join("|")})$`),Aa=["deg","rad","grad","turn"],mm=new RegExp(`^${ie.source}(${Aa.join("|")})$`),dm=new RegExp(`^${ie.source} +${ie.source} +${ie.source}$`);function ce(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Sa={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function xe(e){return{__BARE_VALUE__:e}}var Y=xe(e=>{if(ce(e.value))return e.value}),U=xe(e=>{if(ce(e.value))return`${e.value}%`}),fe=xe(e=>{if(ce(e.value))return`${e.value}px`}),fi=xe(e=>{if(ce(e.value))return`${e.value}ms`}),lt=xe(e=>{if(ce(e.value))return`${e.value}deg`}),$a=xe(e=>{if(e.fraction===null)return;let[t,r]=xa(e.fraction,"/");if(!(!ce(t)||!ce(r)))return e.fraction}),ci=xe(e=>{if(ce(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ta={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...$a},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...U}),backdropContrast:({theme:e})=>({...e("contrast"),...U}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...U}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...lt}),backdropInvert:({theme:e})=>({...e("invert"),...U}),backdropOpacity:({theme:e})=>({...e("opacity"),...U}),backdropSaturate:({theme:e})=>({...e("saturate"),...U}),backdropSepia:({theme:e})=>({...e("sepia"),...U}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...fe},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...U},caretColor:({theme:e})=>e("colors"),colors:()=>({...Sa}),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",...Y},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...U},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...fe}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...Y},flexShrink:{0:"0",DEFAULT:"1",...Y},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...U},grayscale:{0:"0",DEFAULT:"100%",...U},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Y},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",...Y},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",...Y},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",...Y},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))",...ci},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))",...ci},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...lt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...U},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...Y},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...U},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",...Y},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...lt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...U},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",...U},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...U},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...lt},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...Y},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},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",...fi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...Y}};pi.exports=Ta});import{Scanner as $s}from"@tailwindcss/oxide";import{globby as Ts}from"globby";import to from"fs/promises";import Vs from"path";import Ns from"postcss";import{Scanner as bi}from"@tailwindcss/oxide";import ja from"fs/promises";import xi from"path";import{fileURLToPath as La}from"url";import Ee from"enhanced-resolve";import{createJiti as wa}from"jiti";import Gt from"fs";import Yp from"fs/promises";import ni from"path";import{pathToFileURL as oi}from"url";import{__unstable__loadDesignSystem as em,compile as tm,compileAst as rm,Features as im,Polyfills as nm}from"tailwindcss";import Pt from"fs/promises";import De from"path";var co=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],po=[".js",".cjs",".mjs"],mo=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],go=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function ho(e,t){for(let r of t){let n=`${e}${r}`;if((await Pt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Pt.access(n).then(()=>!0,()=>!1))return n}return null}async function mr(e,t,r,n){let i=po.includes(n)?mo:go,o=await ho(De.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=De.dirname(o),n=De.extname(o);let s=await Pt.readFile(o,"utf-8"),a=[];for(let u of co)for(let l of s.matchAll(u))l[1].startsWith(".")&&a.push(mr(e,l[1],r,n));await Promise.all(a)}async function dr(e){let t=new Set;return await mr(t,e,De.dirname(e),De.extname(e)),Array.from(t)}import*as va from"path";function Et(e){return{kind:"word",value:e}}function yo(e,t){return{kind:"function",value:e,nodes:t}}function vo(e){return{kind:"separator",value:e}}function S(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(u){o||(o=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),s=0):u.length===1?(e[n]=u[0],s=1):(e.splice(n,1,...u),s=u.length):e[n]=u)}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&S(i.nodes,t,i)===2)return 2}}function b(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+b(r.nodes)+")"}return t}var gr=92,wo=41,hr=58,yr=44,ko=34,vr=61,wr=62,kr=60,br=10,bo=40,xo=39,xr=47,Cr=32,Ar=9;function k(e){e=e.replaceAll(`\r
2
+ var oo=Object.create;var hr=Object.defineProperty;var ao=Object.getOwnPropertyDescriptor;var lo=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,uo=Object.prototype.hasOwnProperty;var co=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lo(t))!uo.call(e,i)&&i!==r&&hr(e,i,{get:()=>t[i],enumerable:!(n=ao(t,i))||n.enumerable});return e};var po=(e,t,r)=>(r=e!=null?oo(so(e)):{},fo(t||!e||!e.__esModule?hr(r,"default",{value:e,enumerable:!0}):r,e));var yi=co((Tm,hi)=>{"use strict";var ut=new Uint8Array(256);function Sa(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let u=e.charCodeAt(a);if(r===0&&u===s){n.push(e.slice(i,a)),i=a+1;continue}switch(u){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let l=e.charCodeAt(a);if(l===92){a+=1;continue}if(l===u)break}break;case 40:ut[r]=41,r++;break;case 91:ut[r]=93,r++;break;case 123:ut[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===ut[r-1]&&r--;break}}return n.push(e.slice(i)),n}var ne=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,xm=new RegExp(`^${ne.source}$`),Cm=new RegExp(`^${ne.source}%$`),Am=new RegExp(`^${ne.source}s*/s*${ne.source}$`),$a=["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"],Sm=new RegExp(`^${ne.source}(${$a.join("|")})$`),Va=["deg","rad","grad","turn"],$m=new RegExp(`^${ne.source}(${Va.join("|")})$`),Vm=new RegExp(`^${ne.source} +${ne.source} +${ne.source}$`);function me(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Ta={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Ae(e){return{__BARE_VALUE__:e}}var Q=Ae(e=>{if(me(e.value))return e.value}),U=Ae(e=>{if(me(e.value))return`${e.value}%`}),pe=Ae(e=>{if(me(e.value))return`${e.value}px`}),di=Ae(e=>{if(me(e.value))return`${e.value}ms`}),ct=Ae(e=>{if(me(e.value))return`${e.value}deg`}),Na=Ae(e=>{if(e.fraction===null)return;let[t,r]=Sa(e.fraction,"/");if(!(!me(t)||!me(r)))return e.fraction}),gi=Ae(e=>{if(me(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Pa={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Na},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...U}),backdropContrast:({theme:e})=>({...e("contrast"),...U}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...U}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...ct}),backdropInvert:({theme:e})=>({...e("invert"),...U}),backdropOpacity:({theme:e})=>({...e("opacity"),...U}),backdropSaturate:({theme:e})=>({...e("saturate"),...U}),backdropSepia:({theme:e})=>({...e("sepia"),...U}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...pe},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...U},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ta}),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",...Q},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...U},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...pe}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...Q},flexShrink:{0:"0",DEFAULT:"1",...Q},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...U},grayscale:{0:"0",DEFAULT:"100%",...U},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Q},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",...Q},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",...Q},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",...Q},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))",...gi},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))",...gi},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...ct},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...U},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...Q},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...U},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",...Q},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...ct},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...U},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",...U},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...U},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...ct},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...Q},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...pe},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",...di},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...di},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...Q}};hi.exports=Pa});import{Scanner as Es}from"@tailwindcss/oxide";import{globby as Rs}from"globby";import io from"fs/promises";import _s from"path";import G from"picocolors";import Os from"postcss";import{Scanner as Si}from"@tailwindcss/oxide";import za from"fs/promises";import $i from"path";import{fileURLToPath as Ka}from"url";import Oe from"enhanced-resolve";import{createJiti as xa}from"jiti";import Yt from"fs";import um from"fs/promises";import si from"path";import{pathToFileURL as ui}from"url";import{__unstable__loadDesignSystem as mm,compile as dm,compileAst as gm,Features as hm,Polyfills as ym}from"tailwindcss";import _t from"fs/promises";import Me from"path";var mo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],go=[".js",".cjs",".mjs"],ho=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],yo=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function vo(e,t){for(let r of t){let n=`${e}${r}`;if((await _t.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await _t.access(n).then(()=>!0,()=>!1))return n}return null}async function yr(e,t,r,n){let i=go.includes(n)?ho:yo,o=await vo(Me.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Me.dirname(o),n=Me.extname(o);let s=await _t.readFile(o,"utf-8"),a=[];for(let u of mo)for(let l of s.matchAll(u))l[1].startsWith(".")&&a.push(yr(e,l[1],r,n));await Promise.all(a)}async function vr(e){let t=new Set;return await yr(t,e,Me.dirname(e),Me.extname(e)),Array.from(t)}import*as ba from"path";function Ot(e){return{kind:"word",value:e}}function wo(e,t){return{kind:"function",value:e,nodes:t}}function ko(e){return{kind:"separator",value:e}}function S(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(u){o||(o=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),s=0):u.length===1?(e[n]=u[0],s=1):(e.splice(n,1,...u),s=u.length):e[n]=u)}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&S(i.nodes,t,i)===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var wr=92,bo=41,kr=58,br=44,xo=34,xr=61,Cr=62,Ar=60,Sr=10,Co=40,Ao=39,$r=47,Vr=32,Tr=9;function k(e){e=e.replaceAll(`\r
3
3
  `,`
4
- `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case gr:{i+=e[s]+e[s+1],s++;break}case hr:case yr:case vr:case wr:case kr:case br:case xr:case Cr:case Ar:{if(i.length>0){let c=Et(i);n?n.nodes.push(c):t.push(c),i=""}let u=s,l=s+1;for(;l<e.length&&(o=e.charCodeAt(l),!(o!==hr&&o!==yr&&o!==vr&&o!==wr&&o!==kr&&o!==br&&o!==xr&&o!==Cr&&o!==Ar));l++);s=l-1;let f=vo(e.slice(u,l));n?n.nodes.push(f):t.push(f);break}case xo:case ko:{let u=s;for(let l=s+1;l<e.length;l++)if(o=e.charCodeAt(l),o===gr)l+=1;else if(o===a){s=l;break}i+=e.slice(u,s+1);break}case bo:{let u=yo(i,[]);i="",n?n.nodes.push(u):t.push(u),r.push(u),n=u;break}case wo:{let u=r.pop();if(i.length>0){let l=Et(i);u?.nodes.push(l),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Et(i)),t}var Sr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function $r(e){if(!Sr.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);if(s>=48&&s<=57||n!==null&&(s===37||s>=97&&s<=122||s>=65&&s<=90)?n=o:(i=n,n=null),s===40){t+=e[o];let a=o;for(let l=o-1;l>=0;l--){let f=e.charCodeAt(l);if(f>=48&&f<=57)a=l;else if(f>=97&&f<=122)a=l;else break}let u=e.slice(a,o);if(Sr.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(s===41)t+=e[o],r.shift();else if(s===44&&r[0]){t+=", ";continue}else{if(s===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((s===43||s===42||s===47||s===45)&&r[0]){let a=t.trimEnd(),u=a.charCodeAt(a.length-1),l=a.charCodeAt(a.length-2),f=e.charCodeAt(o+1);if((u===101||u===69)&&l>=48&&l<=57){t+=e[o];continue}else if(u===43||u===42||u===47||u===45){t+=e[o];continue}else if(u===40||u===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:u>=48&&u<=57||f>=48&&f<=57||u===41||f===40||f===43||f===42||f===47||f===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function Ue(e){if(e.indexOf("(")===-1)return $e(e);let t=k(e);return Rt(t),e=b(t),e=$r(e),e}function $e(e,t=!1){let r="";for(let n=0;n<e.length;n++){let i=e[n];i==="\\"&&e[n+1]==="_"?(r+="_",n+=1):i==="_"&&!t?r+=" ":r+=i}return r}function Rt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=$e(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=$e(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=$e(t.nodes[r].value,!0);continue}Rt([t.nodes[r]])}break}t.value=$e(t.value),Rt(t.nodes);break}case"separator":case"word":{t.value=$e(t.value);break}default:Co(t)}}function Co(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var _t=new Uint8Array(256);function Te(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:_t[t]=41,t++;break;case 91:_t[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===_t[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var Qe=new Uint8Array(256);function w(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let u=e.charCodeAt(a);if(r===0&&u===s){n.push(e.slice(i,a)),i=a+1;continue}switch(u){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let l=e.charCodeAt(a);if(l===92){a+=1;continue}if(l===u)break}break;case 40:Qe[r]=41,r++;break;case 91:Qe[r]=93,r++;break;case 123:Qe[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===Qe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Ao=58,Tr=45,Vr=97,Nr=122;function*F(e,t){let r=w(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let c=r.length-1;c>=0;--c){let p=t.parseVariant(r[c]);if(p===null)return;i.push(p)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[s,a=null,u]=w(n,"/");if(u)return;let l=a===null?null:So(a);if(a!==null&&l===null)return;if(s[0]==="["){if(s[s.length-1]!=="]")return;let c=s.charCodeAt(1);if(c!==Tr&&!(c>=Vr&&c<=Nr))return;s=s.slice(1,-1);let p=s.indexOf(":");if(p===-1||p===0||p===s.length-1)return;let m=s.slice(0,p),d=Ue(s.slice(p+1));if(!Te(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:l,variants:i,important:o,raw:e};return}let f;if(s[s.length-1]==="]"){let c=s.indexOf("-[");if(c===-1)return;let p=s.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=s.slice(c+1);f=[[p,m]]}else if(s[s.length-1]===")"){let c=s.indexOf("-(");if(c===-1)return;let p=s.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=s.slice(c+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Te(m))return;f=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else f=$o(s,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let m={kind:"functional",root:c,modifier:l,value:null,variants:i,important:o,raw:e};if(p===null){yield m;continue}{let d=p.indexOf("[");if(d!==-1){if(p[p.length-1]!=="]")return;let h=Ue(p.slice(d+1,-1));if(!Te(h))continue;let v="";for(let A=0;A<h.length;A++){let N=h.charCodeAt(A);if(N===Ao){v=h.slice(0,A),h=h.slice(A+1);break}if(!(N===Tr||N>=Vr&&N<=Nr))break}if(h.length===0||h.trim().length===0)continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=a===null||m.modifier?.kind==="arbitrary"?null:`${p}/${a}`;m.value={kind:"named",value:p,fraction:h}}}yield m}}function So(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ue(e.slice(1,-1));return!Te(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!Te(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ue(e)})):{kind:"named",value:e}}function*$o(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Dt(e){if(e===null)return"";let t=No(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Ut(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var To=new y(e=>{let t=k(e),r=new Set;return S(t,(n,{parent:i})=>{let o=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let s=o.indexOf(n)??-1;if(s===-1)return;let a=o[s-1];if(a?.kind!=="separator"||a.value!==" ")return;let u=o[s+1];if(u?.kind!=="separator"||u.value!==" ")return;r.add(a),r.add(u)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(o[0]===n||o[o.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&S(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),Ot(t),b(t)});function Ut(e){return To.get(e)}var Bs=new y(e=>{let t=k(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?b(t[2].nodes):e});function Ot(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ie(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ie(t.value);for(let r=0;r<t.nodes.length;r++)Ot([t.nodes[r]]);break}t.value=Ie(t.value),Ot(t.nodes);break}case"separator":t.value=Ie(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Ie(t.value));break}default:Po(t)}}var Vo=new y(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function No(e){return Vo.get(e)}function Po(e){throw new Error(`Unexpected value: ${e}`)}function Ie(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Me(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),s=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),a=(o===s?0:o<s?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(a)?e<t?-1:1:a}var X=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,eu=new RegExp(`^${X.source}$`);var tu=new RegExp(`^${X.source}%$`);var ru=new RegExp(`^${X.source}s*/s*${X.source}$`);var Eo=["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"],iu=new RegExp(`^${X.source}(${Eo.join("|")})$`);var Ro=["deg","rad","grad","turn"],nu=new RegExp(`^${X.source}(${Ro.join("|")})$`);var ou=new RegExp(`^${X.source} +${X.source} +${X.source}$`);function R(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ee(e){return Pr(e,.25)}function It(e){return Pr(e,.25)}function Pr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ve(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var Oo={"--alpha":Do,"--spacing":Uo,"--theme":Io,theme:Mo};function Do(e,t,r,...n){let[i,o]=w(r,"/").map(s=>s.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return Ve(i,o)}function Uo(e,t,r,...n){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(n.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${n.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${i} * ${r})`}function Io(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(n.length===0)return o;let s=n.join(", ");if(s==="initial")return o;if(o==="initial")return s;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=k(o);return Lo(a,s),b(a)}return o}function Mo(e,t,r,...n){r=jo(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var xu=new RegExp(Object.keys(Oo).map(e=>`${e}\\(`).join("|"));function jo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Lo(e,t){S(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function Lt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let s=e.charCodeAt(o),a=t.charCodeAt(o);if(s>=48&&s<=57&&a>=48&&a<=57){let u=o,l=o+1,f=o,c=o+1;for(s=e.charCodeAt(l);s>=48&&s<=57;)s=e.charCodeAt(++l);for(a=t.charCodeAt(c);a>=48&&a<=57;)a=t.charCodeAt(++c);let p=e.slice(u,l),m=t.slice(f,c),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(s!==a)return s-a}return e.length-t.length}function le(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",s=t.charCodeAt(0);if(r===1&&s===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&s===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function Ze(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function je(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],s=new Map;for(let l of e){if(t.invalidCandidates.has(l)){r?.(l);continue}let f=t.parseCandidate(l);if(f.length===0){r?.(l);continue}s.set(l,f)}let a=0;(n??!0)&&(a|=1);let u=t.getVariantOrder();for(let[l,f]of s){let c=!1;for(let p of f){let m=t.compileAstNodes(p,a);if(m.length!==0){c=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let v of p.variants)h|=1n<<BigInt(u.get(v));i.set(d,{properties:g,variants:h,candidate:l}),o.push(d)}}}c||r?.(l)}return o.sort((l,f)=>{let c=i.get(l),p=i.get(f);if(c.variants-p.variants!==0n)return Number(c.variants-p.variants);let m=0;for(;m<c.properties.order.length&&m<p.properties.order.length&&c.properties.order[m]===p.properties.order[m];)m+=1;return(c.properties.order[m]??1/0)-(p.properties.order[m]??1/0)||p.properties.count-c.properties.count||Lt(c.candidate,p.candidate)}),{astNodes:o,nodeSorting:i}}function Fe(e,t){let r=0,n=z("&",e),i=new Set,o=new y(()=>new Set),s=new y(()=>new Set);C([n],(c,{parent:p,path:m})=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return C(c.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(c.name==="@utility"){let d=c.params.replace(/-\*$/,"");s.get(d).add(c),C(c.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){i.add(c);for(let h of _r(g,t))o.get(c).add(h)}});return}if(c.name==="@apply"){if(p===null)return;r|=1,i.add(p);for(let d of _r(c,t))for(let g of m)g!==c&&i.has(g)&&o.get(g).add(d)}}});let a=new Set,u=[],l=new Set;function f(c,p=[]){if(!a.has(c)){if(l.has(c)){let m=p[(p.indexOf(c)+1)%p.length];throw c.kind==="at-rule"&&c.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&C(c.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let v of t.parseCandidate(h))switch(v.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===v.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
4
+ `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case wr:{i+=e[s]+e[s+1],s++;break}case kr:case br:case xr:case Cr:case Ar:case Sr:case $r:case Vr:case Tr:{if(i.length>0){let f=Ot(i);n?n.nodes.push(f):t.push(f),i=""}let u=s,l=s+1;for(;l<e.length&&(o=e.charCodeAt(l),!(o!==kr&&o!==br&&o!==xr&&o!==Cr&&o!==Ar&&o!==Sr&&o!==$r&&o!==Vr&&o!==Tr));l++);s=l-1;let c=ko(e.slice(u,l));n?n.nodes.push(c):t.push(c);break}case Ao:case xo:{let u=s;for(let l=s+1;l<e.length;l++)if(o=e.charCodeAt(l),o===wr)l+=1;else if(o===a){s=l;break}i+=e.slice(u,s+1);break}case Co:{let u=wo(i,[]);i="",n?n.nodes.push(u):t.push(u),r.push(u),n=u;break}case bo:{let u=r.pop();if(i.length>0){let l=Ot(i);u?.nodes.push(l),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Ot(i)),t}var Nr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function Pr(e){if(!Nr.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);if(s>=48&&s<=57||n!==null&&(s===37||s>=97&&s<=122||s>=65&&s<=90)?n=o:(i=n,n=null),s===40){t+=e[o];let a=o;for(let l=o-1;l>=0;l--){let c=e.charCodeAt(l);if(c>=48&&c<=57)a=l;else if(c>=97&&c<=122)a=l;else break}let u=e.slice(a,o);if(Nr.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(s===41)t+=e[o],r.shift();else if(s===44&&r[0]){t+=", ";continue}else{if(s===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((s===43||s===42||s===47||s===45)&&r[0]){let a=t.trimEnd(),u=a.charCodeAt(a.length-1),l=a.charCodeAt(a.length-2),c=e.charCodeAt(o+1);if((u===101||u===69)&&l>=48&&l<=57){t+=e[o];continue}else if(u===43||u===42||u===47||u===45){t+=e[o];continue}else if(u===40||u===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:u>=48&&u<=57||c>=48&&c<=57||u===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function Ie(e){if(e.indexOf("(")===-1)return Ne(e);let t=k(e);return Dt(t),e=x(t),e=Pr(e),e}function Ne(e,t=!1){let r="";for(let n=0;n<e.length;n++){let i=e[n];i==="\\"&&e[n+1]==="_"?(r+="_",n+=1):i==="_"&&!t?r+=" ":r+=i}return r}function Dt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ne(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ne(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=Ne(t.nodes[r].value,!0);continue}Dt([t.nodes[r]])}break}t.value=Ne(t.value),Dt(t.nodes);break}case"separator":case"word":{t.value=Ne(t.value);break}default:So(t)}}function So(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var Ut=new Uint8Array(256);function Pe(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:Ut[t]=41,t++;break;case 91:Ut[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Ut[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var Xe=new Uint8Array(256);function w(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let u=e.charCodeAt(a);if(r===0&&u===s){n.push(e.slice(i,a)),i=a+1;continue}switch(u){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let l=e.charCodeAt(a);if(l===92){a+=1;continue}if(l===u)break}break;case 40:Xe[r]=41,r++;break;case 91:Xe[r]=93,r++;break;case 123:Xe[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===Xe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var $o=58,Er=45,Rr=97,_r=122;function*z(e,t){let r=w(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let f=r.length-1;f>=0;--f){let p=t.parseVariant(r[f]);if(p===null)return;i.push(p)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[s,a=null,u]=w(n,"/");if(u)return;let l=a===null?null:Vo(a);if(a!==null&&l===null)return;if(s[0]==="["){if(s[s.length-1]!=="]")return;let f=s.charCodeAt(1);if(f!==Er&&!(f>=Rr&&f<=_r))return;s=s.slice(1,-1);let p=s.indexOf(":");if(p===-1||p===0||p===s.length-1)return;let m=s.slice(0,p),d=Ie(s.slice(p+1));if(!Pe(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:l,variants:i,important:o,raw:e};return}let c;if(s[s.length-1]==="]"){let f=s.indexOf("-[");if(f===-1)return;let p=s.slice(0,f);if(!t.utilities.has(p,"functional"))return;let m=s.slice(f+1);c=[[p,m]]}else if(s[s.length-1]===")"){let f=s.indexOf("-(");if(f===-1)return;let p=s.slice(0,f);if(!t.utilities.has(p,"functional"))return;let m=s.slice(f+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Pe(m))return;c=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=To(s,f=>t.utilities.has(f,"functional"));for(let[f,p]of c){let m={kind:"functional",root:f,modifier:l,value:null,variants:i,important:o,raw:e};if(p===null){yield m;continue}{let d=p.indexOf("[");if(d!==-1){if(p[p.length-1]!=="]")return;let h=Ie(p.slice(d+1,-1));if(!Pe(h))continue;let v="";for(let A=0;A<h.length;A++){let N=h.charCodeAt(A);if(N===$o){v=h.slice(0,A),h=h.slice(A+1);break}if(!(N===Er||N>=Rr&&N<=_r))break}if(h.length===0||h.trim().length===0)continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=a===null||m.modifier?.kind==="arbitrary"?null:`${p}/${a}`;m.value={kind:"named",value:p,fraction:h}}}yield m}}function Vo(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ie(e.slice(1,-1));return!Pe(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!Pe(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ie(e)})):{kind:"named",value:e}}function*To(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function It(e){if(e===null)return"";let t=Eo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Lt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var No=new y(e=>{let t=k(e),r=new Set;return S(t,(n,{parent:i})=>{let o=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let s=o.indexOf(n)??-1;if(s===-1)return;let a=o[s-1];if(a?.kind!=="separator"||a.value!==" ")return;let u=o[s+1];if(u?.kind!=="separator"||u.value!==" ")return;r.add(a),r.add(u)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(o[0]===n||o[o.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&S(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),Mt(t),x(t)});function Lt(e){return No.get(e)}var Ys=new y(e=>{let t=k(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?x(t[2].nodes):e});function Mt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Le(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Le(t.value);for(let r=0;r<t.nodes.length;r++)Mt([t.nodes[r]]);break}t.value=Le(t.value),Mt(t.nodes);break}case"separator":t.value=Le(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Le(t.value));break}default:Ro(t)}}var Po=new y(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Eo(e){return Po.get(e)}function Ro(e){throw new Error(`Unexpected value: ${e}`)}function Le(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var _o=process.env.FEATURES_ENV!=="stable";function je(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),s=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),a=(o===s?0:o<s?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(a)?e<t?-1:1:a}var ee=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,au=new RegExp(`^${ee.source}$`);var lu=new RegExp(`^${ee.source}%$`);var su=new RegExp(`^${ee.source}s*/s*${ee.source}$`);var Oo=["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"],uu=new RegExp(`^${ee.source}(${Oo.join("|")})$`);var Do=["deg","rad","grad","turn"],cu=new RegExp(`^${ee.source}(${Do.join("|")})$`);var fu=new RegExp(`^${ee.source} +${ee.source} +${ee.source}$`);function _(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function te(e){return Or(e,.25)}function jt(e){return Or(e,.25)}function Or(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ee(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var Mo={"--alpha":Io,"--spacing":Lo,"--theme":jo,theme:Fo};function Io(e,t,r,...n){let[i,o]=w(r,"/").map(s=>s.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return Ee(i,o)}function Lo(e,t,r,...n){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(n.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${n.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${i} * ${r})`}function jo(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(n.length===0)return o;let s=n.join(", ");if(s==="initial")return o;if(o==="initial")return s;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=k(o);return Ko(a,s),x(a)}return o}function Fo(e,t,r,...n){r=zo(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var Nu=new RegExp(Object.keys(Mo).map(e=>`${e}\\(`).join("|"));function zo(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Ko(e,t){S(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function zt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let s=e.charCodeAt(o),a=t.charCodeAt(o);if(s>=48&&s<=57&&a>=48&&a<=57){let u=o,l=o+1,c=o,f=o+1;for(s=e.charCodeAt(l);s>=48&&s<=57;)s=e.charCodeAt(++l);for(a=t.charCodeAt(f);a>=48&&a<=57;)a=t.charCodeAt(++f);let p=e.slice(u,l),m=t.slice(c,f),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(s!==a)return s-a}return e.length-t.length}function ue(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",s=t.charCodeAt(0);if(r===1&&s===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&s===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function tt(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function Fe(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],s=new Map;for(let l of e){if(t.invalidCandidates.has(l)){r?.(l);continue}let c=t.parseCandidate(l);if(c.length===0){r?.(l);continue}s.set(l,c)}let a=0;(n??!0)&&(a|=1);let u=t.getVariantOrder();for(let[l,c]of s){let f=!1;for(let p of c){let m=t.compileAstNodes(p,a);if(m.length!==0){f=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let v of p.variants)h|=1n<<BigInt(u.get(v));i.set(d,{properties:g,variants:h,candidate:l}),o.push(d)}}}f||r?.(l)}return o.sort((l,c)=>{let f=i.get(l),p=i.get(c);if(f.variants-p.variants!==0n)return Number(f.variants-p.variants);let m=0;for(;m<f.properties.order.length&&m<p.properties.order.length&&f.properties.order[m]===p.properties.order[m];)m+=1;return(f.properties.order[m]??1/0)-(p.properties.order[m]??1/0)||p.properties.count-f.properties.count||zt(f.candidate,p.candidate)}),{astNodes:o,nodeSorting:i}}function Ke(e,t){let r=0,n=K("&",e),i=new Set,o=new y(()=>new Set),s=new y(()=>new Set);C([n],(f,{parent:p,path:m})=>{if(f.kind==="at-rule"){if(f.name==="@keyframes")return C(f.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(f.name==="@utility"){let d=f.params.replace(/-\*$/,"");s.get(d).add(f),C(f.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){i.add(f);for(let h of Mr(g,t))o.get(f).add(h)}});return}if(f.name==="@apply"){if(p===null)return;r|=1,i.add(p);for(let d of Mr(f,t))for(let g of m)g!==f&&i.has(g)&&o.get(g).add(d)}}});let a=new Set,u=[],l=new Set;function c(f,p=[]){if(!a.has(f)){if(l.has(f)){let m=p[(p.indexOf(f)+1)%p.length];throw f.kind==="at-rule"&&f.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&C(f.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let v of t.parseCandidate(h))switch(v.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===v.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
5
5
 
6
- ${K([c])}
6
+ ${W([f])}
7
7
  Relies on:
8
8
 
9
- ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p),p.pop();a.add(c),l.delete(c),u.push(c)}}for(let c of i)f(c);for(let c of u)"nodes"in c&&C(c.nodes,(p,{replaceWith:m})=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let d=p.params.split(/(\s+)/g),g={},h=0;for(let[v,A]of d.entries())v%2===0&&(g[A]=h),h+=A.length;{let v=Object.keys(g),A=je(v,t,{respectImportant:!1,onInvalidCandidate:V=>{if(t.theme.prefix&&!V.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${V}\`. Did you mean \`${t.theme.prefix}:${V}\`?`);if(t.invalidCandidates.has(V))throw new Error(`Cannot apply utility class \`${V}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let G=w(V,":");if(G.length>1){let Ye=G.pop();if(t.candidatesToCss([Ye])[0]){let Ae=t.candidatesToCss(G.map(Se=>`${Se}:[--tw-variant-check:1]`)),ae=G.filter((Se,Nt)=>Ae[Nt]===null);if(ae.length>0){if(ae.length===1)throw new Error(`Cannot apply utility class \`${V}\` because the ${ae.map(Se=>`\`${Se}\``)} variant does not exist.`);{let Se=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${V}\` because the ${Se.format(ae.map(Nt=>`\`${Nt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${V}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${V}\``)}}),N=p.src,Q=A.astNodes.map(V=>{let G=A.nodeSorting.get(V)?.candidate,Ye=G?g[G]:void 0;if(V=structuredClone(V),!N||!G||Ye===void 0)return C([V],ae=>{ae.src=N}),V;let Ae=[N[0],N[1],N[2]];return Ae[1]+=7+Ye,Ae[2]=Ae[1]+G.length,C([V],ae=>{ae.src=Ae}),V}),we=[];for(let V of Q)if(V.kind==="rule")for(let G of V.nodes)we.push(G);else we.push(V);m(we)}});return r}function*_r(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var qo=32;var Ho=40;function Or(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===qo||o===Ho){r=e.slice(0,i),n=e.slice(i);break}}return $(r.trim(),n.trim(),t)}function Dr(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let s=e[o];if(s.kind!=="separator"){if(s.kind==="word"&&!t){if(!s.value||s.value[0]!=='"'&&s.value[0]!=="'")return null;t=s.value.slice(1,-1);continue}if(s.kind==="function"&&s.value.toLowerCase()==="url"||!t)return null;if((s.kind==="word"||s.kind==="function")&&s.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in s?r=b(s.nodes):r="";continue}if(s.kind==="function"&&s.value.toLowerCase()==="supports"){if(i)return null;i=b(s.nodes);continue}n=b(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Ir(e){let t=[];return Mr(e,[],(r,n)=>{if(Jo(r))return t.push([n,r]),1;if(Yo(r)){t.push([n,r[0]]);for(let i of Reflect.ownKeys(r[1]))t.push([[...n,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return n[0]==="fontSize"?(t.push([n,r[0]]),r.length>=2&&t.push([[...n,"-line-height"],r[1]])):t.push([n,r.join(", ")]),1}),t}var Go=/^[a-zA-Z0-9-_%/\.]+$/;function re(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!Go.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function Jo(e){return typeof e=="number"||typeof e=="string"}function Yo(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Mr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],s=r(i,o)??0;if(s!==1){if(s===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Mr(i,o,r)===2)return 2}}}function se(e){let t=[];for(let r of w(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}function Pe(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ze(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let s=r(e[o],i[o],n);s!==void 0?e[o]=s:!Pe(e[o])||!Pe(i[o])?e[o]=i[o]:e[o]=ze({},[e[o],i[o]],r,n),n.pop()}return e}function Kt(e,t,r){return function(i,o){let s=i.lastIndexOf("/"),a=null;s!==-1&&(a=i.slice(s+1).trim(),i=i.slice(0,s).trim());let u=(()=>{let l=se(i),[f,c]=Qo(e.theme,l),p=r(jr(t()??{},l)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof f!="object")return typeof c!="object"&&c&4?p??f:f;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let m=ze({},[p],(d,g)=>g);if(f===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let g in p.__CSS_VALUES__)d[g]=p[g],delete m[g];f=d}for(let d in f)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&jr(m,d.split("-"))!==void 0||(m[Ze(d)]=f[d]));return m}if(Array.isArray(f)&&Array.isArray(c)&&Array.isArray(p)){let m=f[0],d=f[1];c[0]&4&&(m=p[0]??m);for(let g of Object.keys(d))c[1][g]&4&&(d[g]=p[1][g]??d[g]);return[m,d]}return f??p})();return a&&typeof u=="string"&&(u=Ve(u,a)),u??o}}function Qo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=re(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let s=new Map;for(let[f,c]of o){if(!f||!f.includes("--")){n.set(f,c),s.set(f,e.getOptions(f?`--${r}-${f}`:`--${r}`));continue}let p=f.indexOf("--"),m=f.slice(0,p),d=f.slice(p+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[c,e.getOptions(`--${r}${f}`)])}let a=e.getOptions(`--${r}`);for(let[f,c]of i){let p=n.get(f);if(typeof p!="string")continue;let m={},d={};for(let[g,[h,v]]of c)m[g]=h,d[g]=v;n.set(f,[p,m]),s.set(f,[a,d])}let u={},l={};for(let[f,c]of n)Lr(u,[f??"DEFAULT"],c);for(let[f,c]of s)Lr(l,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[u?.DEFAULT??null,l.DEFAULT??0]:"DEFAULT"in u&&Object.keys(u).length===1?[u.DEFAULT,l.DEFAULT??0]:(u.__CSS_VALUES__=l,[u,l])}function jr(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e?.[n]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function Lr(e,t,r){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=r}function Zo(e){return{kind:"combinator",value:e}}function Xo(e,t){return{kind:"function",value:e,nodes:t}}function Ke(e){return{kind:"selector",value:e}}function ea(e){return{kind:"separator",value:e}}function ta(e){return{kind:"value",value:e}}function et(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(u){o||(o=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),s=0):u.length===1?(e[n]=u[0],s=1):(e.splice(n,1,...u),s=u.length):(e[n]=u,s=1))}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&et(i.nodes,t,i)===2)return 2}}function tt(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+tt(r.nodes)+")"}return t}var Fr=92,ra=93,zr=41,ia=58,Kr=44,na=34,oa=46,Wr=62,Br=10,aa=35,qr=91,Hr=40,Gr=43,la=39,Jr=32,Yr=9,Qr=126;function Wt(e){e=e.replaceAll(`\r
9
+ ${W([m])}`)}l.add(f);for(let m of o.get(f))for(let d of s.get(m))p.push(f),c(d,p),p.pop();a.add(f),l.delete(f),u.push(f)}}for(let f of i)c(f);for(let f of u)"nodes"in f&&C(f.nodes,(p,{replaceWith:m})=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let d=p.params.split(/(\s+)/g),g={},h=0;for(let[v,A]of d.entries())v%2===0&&(g[A]=h),h+=A.length;{let v=Object.keys(g),A=Fe(v,t,{respectImportant:!1,onInvalidCandidate:T=>{if(t.theme.prefix&&!T.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${T}\`. Did you mean \`${t.theme.prefix}:${T}\`?`);if(t.invalidCandidates.has(T))throw new Error(`Cannot apply utility class \`${T}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let J=w(T,":");if(J.length>1){let Ze=J.pop();if(t.candidatesToCss([Ze])[0]){let Ve=t.candidatesToCss(J.map(Te=>`${Te}:[--tw-variant-check:1]`)),se=J.filter((Te,Rt)=>Ve[Rt]===null);if(se.length>0){if(se.length===1)throw new Error(`Cannot apply utility class \`${T}\` because the ${se.map(Te=>`\`${Te}\``)} variant does not exist.`);{let Te=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${T}\` because the ${Te.format(se.map(Rt=>`\`${Rt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${T}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${T}\``)}}),N=p.src,Z=A.astNodes.map(T=>{let J=A.nodeSorting.get(T)?.candidate,Ze=J?g[J]:void 0;if(T=structuredClone(T),!N||!J||Ze===void 0)return C([T],se=>{se.src=N}),T;let Ve=[N[0],N[1],N[2]];return Ve[1]+=7+Ze,Ve[2]=Ve[1]+J.length,C([T],se=>{se.src=Ve}),T}),be=[];for(let T of Z)if(T.kind==="rule")for(let J of T.nodes)be.push(J);else be.push(T);m(be)}});return r}function*Mr(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var Jo=32;var Yo=40;function Ir(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Jo||o===Yo){r=e.slice(0,i),n=e.slice(i);break}}return $(r.trim(),n.trim(),t)}function Lr(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let s=e[o];if(s.kind!=="separator"){if(s.kind==="word"&&!t){if(!s.value||s.value[0]!=='"'&&s.value[0]!=="'")return null;t=s.value.slice(1,-1);continue}if(s.kind==="function"&&s.value.toLowerCase()==="url"||!t)return null;if((s.kind==="word"||s.kind==="function")&&s.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in s?r=x(s.nodes):r="";continue}if(s.kind==="function"&&s.value.toLowerCase()==="supports"){if(i)return null;i=x(s.nodes);continue}n=x(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Fr(e){let t=[];return zr(e,[],(r,n)=>{if(Zo(r))return t.push([n,r]),1;if(Xo(r)){t.push([n,r[0]]);for(let i of Reflect.ownKeys(r[1]))t.push([[...n,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return n[0]==="fontSize"?(t.push([n,r[0]]),r.length>=2&&t.push([[...n,"-line-height"],r[1]])):t.push([n,r.join(", ")]),1}),t}var Qo=/^[a-zA-Z0-9-_%/\.]+$/;function ie(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!Qo.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function Zo(e){return typeof e=="number"||typeof e=="string"}function Xo(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function zr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],s=r(i,o)??0;if(s!==1){if(s===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&zr(i,o,r)===2)return 2}}}function ce(e){let t=[];for(let r of w(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}function _e(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function We(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let s=r(e[o],i[o],n);s!==void 0?e[o]=s:!_e(e[o])||!_e(i[o])?e[o]=i[o]:e[o]=We({},[e[o],i[o]],r,n),n.pop()}return e}function Bt(e,t,r){return function(i,o){let s=i.lastIndexOf("/"),a=null;s!==-1&&(a=i.slice(s+1).trim(),i=i.slice(0,s).trim());let u=(()=>{let l=ce(i),[c,f]=ea(e.theme,l),p=r(Kr(t()??{},l)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof c!="object")return typeof f!="object"&&f&4?p??c:c;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let m=We({},[p],(d,g)=>g);if(c===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let g in p.__CSS_VALUES__)d[g]=p[g],delete m[g];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&Kr(m,d.split("-"))!==void 0||(m[tt(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(f)&&Array.isArray(p)){let m=c[0],d=c[1];f[0]&4&&(m=p[0]??m);for(let g of Object.keys(d))f[1][g]&4&&(d[g]=p[1][g]??d[g]);return[m,d]}return c??p})();return a&&typeof u=="string"&&(u=Ee(u,a)),u??o}}function ea(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=ie(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let s=new Map;for(let[c,f]of o){if(!c||!c.includes("--")){n.set(c,f),s.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let p=c.indexOf("--"),m=c.slice(0,p),d=c.slice(p+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[f,e.getOptions(`--${r}${c}`)])}let a=e.getOptions(`--${r}`);for(let[c,f]of i){let p=n.get(c);if(typeof p!="string")continue;let m={},d={};for(let[g,[h,v]]of f)m[g]=h,d[g]=v;n.set(c,[p,m]),s.set(c,[a,d])}let u={},l={};for(let[c,f]of n)Wr(u,[c??"DEFAULT"],f);for(let[c,f]of s)Wr(l,[c??"DEFAULT"],f);return t[t.length-1]==="DEFAULT"?[u?.DEFAULT??null,l.DEFAULT??0]:"DEFAULT"in u&&Object.keys(u).length===1?[u.DEFAULT,l.DEFAULT??0]:(u.__CSS_VALUES__=l,[u,l])}function Kr(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e?.[n]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function Wr(e,t,r){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=r}function ta(e){return{kind:"combinator",value:e}}function ra(e,t){return{kind:"function",value:e,nodes:t}}function Be(e){return{kind:"selector",value:e}}function ia(e){return{kind:"separator",value:e}}function na(e){return{kind:"value",value:e}}function it(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,s=0,a=t(i,{parent:r,replaceWith(u){o||(o=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),s=0):u.length===1?(e[n]=u[0],s=1):(e.splice(n,1,...u),s=u.length):(e[n]=u,s=1))}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&it(i.nodes,t,i)===2)return 2}}function nt(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+nt(r.nodes)+")"}return t}var Br=92,oa=93,qr=41,aa=58,Hr=44,la=34,sa=46,Gr=62,Jr=10,ua=35,Yr=91,Qr=40,Zr=43,ca=39,Xr=32,ei=9,ti=126;function qt(e){e=e.replaceAll(`\r
10
10
  `,`
11
- `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case Kr:case Wr:case Br:case Jr:case Gr:case Yr:case Qr:{if(i.length>0){let p=Ke(i);n?n.nodes.push(p):t.push(p),i=""}let u=s,l=s+1;for(;l<e.length&&(o=e.charCodeAt(l),!(o!==Kr&&o!==Wr&&o!==Br&&o!==Jr&&o!==Gr&&o!==Yr&&o!==Qr));l++);s=l-1;let f=e.slice(u,l),c=f.trim()===","?ea(f):Zo(f);n?n.nodes.push(c):t.push(c);break}case Hr:{let u=Xo(i,[]);if(i="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let l=s+1,f=0;for(let p=s+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Hr){f++;continue}if(o===zr){if(f===0){s=p;break}f--}}let c=s;u.nodes.push(ta(e.slice(l,c))),i="",s=c,n?n.nodes.push(u):t.push(u);break}n?n.nodes.push(u):t.push(u),r.push(u),n=u;break}case zr:{let u=r.pop();if(i.length>0){let l=Ke(i);u.nodes.push(l),i=""}r.length>0?n=r[r.length-1]:n=null;break}case oa:case ia:case aa:{if(i.length>0){let u=Ke(i);n?n.nodes.push(u):t.push(u)}i=String.fromCharCode(a);break}case qr:{if(i.length>0){let f=Ke(i);n?n.nodes.push(f):t.push(f)}i="";let u=s,l=0;for(let f=s+1;f<e.length;f++){if(o=e.charCodeAt(f),o===qr){l++;continue}if(o===ra){if(l===0){s=f;break}l--}}i+=e.slice(u,s+1);break}case la:case na:{let u=s;for(let l=s+1;l<e.length;l++)if(o=e.charCodeAt(l),o===Fr)l+=1;else if(o===a){s=l;break}i+=e.slice(u,s+1);break}case Fr:{let u=e.charCodeAt(s+1);i+=String.fromCharCode(a)+String.fromCharCode(u),s+=1;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Ke(i)),t}function rt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(z(n,[$("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(T(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(T(n,o)):t.push(z(n,rt(o)));else t.push(z(n,rt(i)));return t}function Xr(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push($("@keyframes",r,rt(n)));return t}var it={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function ke(e){return{__BARE_VALUE__:e}}var J=ke(e=>{if(R(e.value))return e.value}),D=ke(e=>{if(R(e.value))return`${e.value}%`}),ue=ke(e=>{if(R(e.value))return`${e.value}px`}),ei=ke(e=>{if(R(e.value))return`${e.value}ms`}),nt=ke(e=>{if(R(e.value))return`${e.value}deg`}),fa=ke(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!R(t)||!R(r)))return e.fraction}),ti=ke(e=>{if(R(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ca={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...fa},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...D}),backdropContrast:({theme:e})=>({...e("contrast"),...D}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...D}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...nt}),backdropInvert:({theme:e})=>({...e("invert"),...D}),backdropOpacity:({theme:e})=>({...e("opacity"),...D}),backdropSaturate:({theme:e})=>({...e("saturate"),...D}),backdropSepia:({theme:e})=>({...e("sepia"),...D}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ue},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...D},caretColor:({theme:e})=>e("colors"),colors:()=>({...it}),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",...J},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...D},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ue}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...J},flexShrink:{0:"0",DEFAULT:"1",...J},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...D},grayscale:{0:"0",DEFAULT:"100%",...D},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...J},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",...J},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",...J},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",...J},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))",...ti},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))",...ti},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...nt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...D},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...J},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...D},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",...J},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...nt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...D},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",...D},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...D},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...nt},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...J},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ue},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",...ei},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ei},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...J}};var pa={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function be(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(pa)};for(let i of t)Bt(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=da(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function ma(e,t){if(Array.isArray(e)&&Pe(e[0]))return e.concat(t);if(Array.isArray(t)&&Pe(t[0])&&Pe(e))return[e,...t];if(Array.isArray(t))return t}function Bt(e,{config:t,base:r,path:n,reference:i,src:o}){let s=[];for(let l of t.plugins??[])"__isOptionsFunction"in l?s.push({...l(),reference:i,src:o}):"handler"in l?s.push({...l,reference:i,src:o}):s.push({handler:l,reference:i,src:o});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let l of t.presets??[])Bt(e,{path:n,base:r,config:l,reference:i,src:o});for(let l of s)e.plugins.push(l),l.config&&Bt(e,{path:n,base:r,config:l.config,reference:!!l.reference,src:l.src??o});let a=t.content??[],u=Array.isArray(a)?a:a.files;for(let l of u)e.content.files.push(typeof l=="object"?l:{base:r,pattern:l});e.configs.push(t)}function da(e){let t=new Set,r=Kt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:it});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let s=o.theme??{},a=s.extend??{};for(let u in s)u!=="extend"&&t.add(u);Object.assign(e.theme,s);for(let u in a)e.extend[u]??=[],e.extend[u].push(a[u])}delete e.theme.extend;for(let o in e.extend){let s=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let a=s.map(i);return ze({},a,ma)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let s=e.theme.screens[o];s&&typeof s=="object"&&("raw"in s||"max"in s||"min"in s&&(e.theme.screens[o]=s.min))}return t}function ri({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(T("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(T("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let s=Array.from(n.theme.namespace("--breakpoint").entries());if(s.sort((a,u)=>Me(a[1],u[1],"asc")),s.length>0){let[a]=s[0];i.push($("@media",`(width >= --theme(--breakpoint-${a}))`,[T("max-width","none")]))}for(let[a,u]of Object.entries(r)){if(typeof u=="object")if("min"in u)u=u.min;else continue;o.set(a,$("@media",`(width >= ${u})`,[T("max-width",u)]))}}if(typeof t=="object"&&t!==null){let s=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,u])=>[a,n.theme.resolveValue(a,["--breakpoint"]),u]).filter(Boolean);s.sort((a,u)=>Me(a[1],u[1],"asc"));for(let[a,,u]of s)if(o&&o.has(a))o.get(a).nodes.push(T("padding-inline",u));else{if(o)continue;i.push($("@media",`(width >= theme(--breakpoint-${a}))`,[T("padding-inline",u)]))}}if(o)for(let[,s]of o)i.push(s);return i}function qt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let s of o)s===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):s.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function ii(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}var ha=64;function te(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function $(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function z(e,t=[]){return e.charCodeAt(0)===ha?Or(e,t):te(e,t)}function T(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Xe(e){return{kind:"comment",value:e}}function C(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],s=r[r.length-1]??null;if(o.kind==="context"){if(C(o.nodes,t,r,{...n,...o.context})===2)return 2;continue}r.push(o);let a=!1,u=0,l=t(o,{parent:s,context:n,path:r,replaceWith(f){a||(a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),u=0):f.length===1?(e[i]=f[0],u=1):(e.splice(i,1,...f),u=f.length):(e[i]=f,u=1))}})??0;if(r.pop(),a){l===0?i--:i+=u-1;continue}if(l===2)return 2;if(l!==1&&"nodes"in o){r.push(o);let f=C(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function K(e,t){let r=0,n={file:null,code:""};function i(s,a=0){let u="",l=" ".repeat(a);if(s.kind==="declaration"){if(u+=`${l}${s.property}: ${s.value}${s.important?" !important":""};
12
- `,t){r+=l.length;let f=r;r+=s.property.length,r+=2,r+=s.value?.length??0,s.important&&(r+=11);let c=r;r+=2,s.dst=[n,f,c]}}else if(s.kind==="rule"){if(u+=`${l}${s.selector} {
13
- `,t){r+=l.length;let f=r;r+=s.selector.length,r+=1;let c=r;s.dst=[n,f,c],r+=2}for(let f of s.nodes)u+=i(f,a+1);u+=`${l}}
14
- `,t&&(r+=l.length,r+=2)}else if(s.kind==="at-rule"){if(s.nodes.length===0){let f=`${l}${s.name} ${s.params};
15
- `;if(t){r+=l.length;let c=r;r+=s.name.length,r+=1,r+=s.params.length;let p=r;r+=2,s.dst=[n,c,p]}return f}if(u+=`${l}${s.name}${s.params?` ${s.params} `:" "}{
16
- `,t){r+=l.length;let f=r;r+=s.name.length,s.params&&(r+=1,r+=s.params.length),r+=1;let c=r;s.dst=[n,f,c],r+=2}for(let f of s.nodes)u+=i(f,a+1);u+=`${l}}
11
+ `);let t=[],r=[],n=null,i="",o;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);switch(a){case Hr:case Gr:case Jr:case Xr:case Zr:case ei:case ti:{if(i.length>0){let p=Be(i);n?n.nodes.push(p):t.push(p),i=""}let u=s,l=s+1;for(;l<e.length&&(o=e.charCodeAt(l),!(o!==Hr&&o!==Gr&&o!==Jr&&o!==Xr&&o!==Zr&&o!==ei&&o!==ti));l++);s=l-1;let c=e.slice(u,l),f=c.trim()===","?ia(c):ta(c);n?n.nodes.push(f):t.push(f);break}case Qr:{let u=ra(i,[]);if(i="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let l=s+1,c=0;for(let p=s+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Qr){c++;continue}if(o===qr){if(c===0){s=p;break}c--}}let f=s;u.nodes.push(na(e.slice(l,f))),i="",s=f,n?n.nodes.push(u):t.push(u);break}n?n.nodes.push(u):t.push(u),r.push(u),n=u;break}case qr:{let u=r.pop();if(i.length>0){let l=Be(i);u.nodes.push(l),i=""}r.length>0?n=r[r.length-1]:n=null;break}case sa:case aa:case ua:{if(i.length>0){let u=Be(i);n?n.nodes.push(u):t.push(u)}i=String.fromCharCode(a);break}case Yr:{if(i.length>0){let c=Be(i);n?n.nodes.push(c):t.push(c)}i="";let u=s,l=0;for(let c=s+1;c<e.length;c++){if(o=e.charCodeAt(c),o===Yr){l++;continue}if(o===oa){if(l===0){s=c;break}l--}}i+=e.slice(u,s+1);break}case ca:case la:{let u=s;for(let l=s+1;l<e.length;l++)if(o=e.charCodeAt(l),o===Br)l+=1;else if(o===a){s=l;break}i+=e.slice(u,s+1);break}case Br:{let u=e.charCodeAt(s+1);i+=String.fromCharCode(a)+String.fromCharCode(u),s+=1;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Be(i)),t}function ot(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(K(n,[$("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(V(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(V(n,o)):t.push(K(n,ot(o)));else t.push(K(n,ot(i)));return t}function ii(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push($("@keyframes",r,ot(n)));return t}var at={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function xe(e){return{__BARE_VALUE__:e}}var Y=xe(e=>{if(_(e.value))return e.value}),D=xe(e=>{if(_(e.value))return`${e.value}%`}),fe=xe(e=>{if(_(e.value))return`${e.value}px`}),ni=xe(e=>{if(_(e.value))return`${e.value}ms`}),lt=xe(e=>{if(_(e.value))return`${e.value}deg`}),ma=xe(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!_(t)||!_(r)))return e.fraction}),oi=xe(e=>{if(_(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),da={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...ma},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...D}),backdropContrast:({theme:e})=>({...e("contrast"),...D}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...D}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...lt}),backdropInvert:({theme:e})=>({...e("invert"),...D}),backdropOpacity:({theme:e})=>({...e("opacity"),...D}),backdropSaturate:({theme:e})=>({...e("saturate"),...D}),backdropSepia:({theme:e})=>({...e("sepia"),...D}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...fe},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...D},caretColor:({theme:e})=>e("colors"),colors:()=>({...at}),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",...Y},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...D},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...fe}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...Y},flexShrink:{0:"0",DEFAULT:"1",...Y},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...D},grayscale:{0:"0",DEFAULT:"100%",...D},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Y},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",...Y},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",...Y},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",...Y},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))",...oi},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))",...oi},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...lt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...D},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...Y},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...D},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",...Y},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...lt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...D},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",...D},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...D},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...lt},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...Y},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...fe},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",...ni},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ni},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...Y}};var ga={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Ce(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(ga)};for(let i of t)Ht(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=ya(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function ha(e,t){if(Array.isArray(e)&&_e(e[0]))return e.concat(t);if(Array.isArray(t)&&_e(t[0])&&_e(e))return[e,...t];if(Array.isArray(t))return t}function Ht(e,{config:t,base:r,path:n,reference:i,src:o}){let s=[];for(let l of t.plugins??[])"__isOptionsFunction"in l?s.push({...l(),reference:i,src:o}):"handler"in l?s.push({...l,reference:i,src:o}):s.push({handler:l,reference:i,src:o});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let l of t.presets??[])Ht(e,{path:n,base:r,config:l,reference:i,src:o});for(let l of s)e.plugins.push(l),l.config&&Ht(e,{path:n,base:r,config:l.config,reference:!!l.reference,src:l.src??o});let a=t.content??[],u=Array.isArray(a)?a:a.files;for(let l of u)e.content.files.push(typeof l=="object"?l:{base:r,pattern:l});e.configs.push(t)}function ya(e){let t=new Set,r=Bt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:at});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let s=o.theme??{},a=s.extend??{};for(let u in s)u!=="extend"&&t.add(u);Object.assign(e.theme,s);for(let u in a)e.extend[u]??=[],e.extend[u].push(a[u])}delete e.theme.extend;for(let o in e.extend){let s=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let a=s.map(i);return We({},a,ha)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let s=e.theme.screens[o];s&&typeof s=="object"&&("raw"in s||"max"in s||"min"in s&&(e.theme.screens[o]=s.min))}return t}function ai({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(V("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(V("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let s=Array.from(n.theme.namespace("--breakpoint").entries());if(s.sort((a,u)=>je(a[1],u[1],"asc")),s.length>0){let[a]=s[0];i.push($("@media",`(width >= --theme(--breakpoint-${a}))`,[V("max-width","none")]))}for(let[a,u]of Object.entries(r)){if(typeof u=="object")if("min"in u)u=u.min;else continue;o.set(a,$("@media",`(width >= ${u})`,[V("max-width",u)]))}}if(typeof t=="object"&&t!==null){let s=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,u])=>[a,n.theme.resolveValue(a,["--breakpoint"]),u]).filter(Boolean);s.sort((a,u)=>je(a[1],u[1],"asc"));for(let[a,,u]of s)if(o&&o.has(a))o.get(a).nodes.push(V("padding-inline",u));else{if(o)continue;i.push($("@media",`(width >= theme(--breakpoint-${a}))`,[V("padding-inline",u)]))}}if(o)for(let[,s]of o)i.push(s);return i}function Gt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let s of o)s===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):s.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function li(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}var wa=64;function re(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function $(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function K(e,t=[]){return e.charCodeAt(0)===wa?Ir(e,t):re(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function rt(e){return{kind:"comment",value:e}}function C(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],s=r[r.length-1]??null;if(o.kind==="context"){if(C(o.nodes,t,r,{...n,...o.context})===2)return 2;continue}r.push(o);let a=!1,u=0,l=t(o,{parent:s,context:n,path:r,replaceWith(c){a||(a=!0,Array.isArray(c)?c.length===0?(e.splice(i,1),u=0):c.length===1?(e[i]=c[0],u=1):(e.splice(i,1,...c),u=c.length):(e[i]=c,u=1))}})??0;if(r.pop(),a){l===0?i--:i+=u-1;continue}if(l===2)return 2;if(l!==1&&"nodes"in o){r.push(o);let c=C(o.nodes,t,r,n);if(r.pop(),c===2)return 2}}}function W(e,t){let r=0,n={file:null,code:""};function i(s,a=0){let u="",l=" ".repeat(a);if(s.kind==="declaration"){if(u+=`${l}${s.property}: ${s.value}${s.important?" !important":""};
12
+ `,t){r+=l.length;let c=r;r+=s.property.length,r+=2,r+=s.value?.length??0,s.important&&(r+=11);let f=r;r+=2,s.dst=[n,c,f]}}else if(s.kind==="rule"){if(u+=`${l}${s.selector} {
13
+ `,t){r+=l.length;let c=r;r+=s.selector.length,r+=1;let f=r;s.dst=[n,c,f],r+=2}for(let c of s.nodes)u+=i(c,a+1);u+=`${l}}
14
+ `,t&&(r+=l.length,r+=2)}else if(s.kind==="at-rule"){if(s.nodes.length===0){let c=`${l}${s.name} ${s.params};
15
+ `;if(t){r+=l.length;let f=r;r+=s.name.length,r+=1,r+=s.params.length;let p=r;r+=2,s.dst=[n,f,p]}return c}if(u+=`${l}${s.name}${s.params?` ${s.params} `:" "}{
16
+ `,t){r+=l.length;let c=r;r+=s.name.length,s.params&&(r+=1,r+=s.params.length),r+=1;let f=r;s.dst=[n,c,f],r+=2}for(let c of s.nodes)u+=i(c,a+1);u+=`${l}}
17
17
  `,t&&(r+=l.length,r+=2)}else if(s.kind==="comment"){if(u+=`${l}/*${s.value}*/
18
- `,t){r+=l.length;let f=r;r+=2+s.value.length+2;let c=r;s.dst=[n,f,c],r+=1}}else if(s.kind==="context"||s.kind==="at-root")return"";return u}let o="";for(let s of e)o+=i(s,0);return n.code=o,o}function ya(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),n+o.join("/")}function Ht(e){let t=ya(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function ot(e,t,r,n){if(e[0]!=="."){let a=await si(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let u=await li(oi(a).href);return{path:a,base:ni.dirname(a),module:u.default??u}}let i=await si(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,s]=await Promise.all([li(oi(i).href+"?id="+Date.now()),dr(i)]);for(let a of s)r(a);return{path:i,base:ni.dirname(i),module:o.default??o}}var ai=null;async function li(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return ai??=wa(import.meta.url,{moduleCache:!1,fsCache:!1}),await ai.import(e)}}var Jt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],lm=Ee.ResolverFactory.createResolver({fileSystem:new Ee.CachedInputFileSystem(Gt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Jt});var ka=Ee.ResolverFactory.createResolver({fileSystem:new Ee.CachedInputFileSystem(Gt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Jt}),ba=Ee.ResolverFactory.createResolver({fileSystem:new Ee.CachedInputFileSystem(Gt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Jt});async function si(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let n=globalThis.__tw_resolve(e,t);if(n)return Promise.resolve(n)}if(r){let n=await r(e,t);if(n)return n}return ui(ka,e,t).catch(()=>ui(ba,e,t))}function ui(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,s)=>{if(o)return i(o);n(s)}))}var Ci=fo(mi());import st from"tree-sitter";import ut from"tree-sitter-typescript";var Yt=new st;Yt.setLanguage(ut.typescript);var Qt=String.raw,Va=new st.Query(ut.typescript,Qt`
18
+ `,t){r+=l.length;let c=r;r+=2+s.value.length+2;let f=r;s.dst=[n,c,f],r+=1}}else if(s.kind==="context"||s.kind==="at-root")return"";return u}let o="";for(let s of e)o+=i(s,0);return n.code=o,o}function ka(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),n+o.join("/")}function Jt(e){let t=ka(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function st(e,t,r,n){if(e[0]!=="."){let a=await pi(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let u=await fi(ui(a).href);return{path:a,base:si.dirname(a),module:u.default??u}}let i=await pi(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,s]=await Promise.all([fi(ui(i).href+"?id="+Date.now()),vr(i)]);for(let a of s)r(a);return{path:i,base:si.dirname(i),module:o.default??o}}var ci=null;async function fi(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return ci??=xa(import.meta.url,{moduleCache:!1,fsCache:!1}),await ci.import(e)}}var Qt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],km=Oe.ResolverFactory.createResolver({fileSystem:new Oe.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Qt});var Ca=Oe.ResolverFactory.createResolver({fileSystem:new Oe.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Qt}),Aa=Oe.ResolverFactory.createResolver({fileSystem:new Oe.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Qt});async function pi(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let n=globalThis.__tw_resolve(e,t);if(n)return Promise.resolve(n)}if(r){let n=await r(e,t);if(n)return n}return mi(Ca,e,t).catch(()=>mi(Aa,e,t))}function mi(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,s)=>{if(o)return i(o);n(s)}))}var Vi=po(yi());import ft from"tree-sitter";import pt from"tree-sitter-typescript";var Zt=new ft;Zt.setLanguage(pt.typescript);var Xt=String.raw,Ea=new ft.Query(pt.typescript,Xt`
19
19
  ; export default {}
20
20
  (export_statement
21
21
  value: [
@@ -66,7 +66,7 @@ ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
66
66
  ]
67
67
  )
68
68
  )
69
- `),Na=new st.Query(ut.typescript,Qt`
69
+ `),Ra=new ft.Query(pt.typescript,Xt`
70
70
  (call_expression
71
71
  function: [
72
72
  (call_expression
@@ -119,7 +119,7 @@ ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
119
119
  (string (string_fragment) @module_string)
120
120
  )
121
121
  )
122
- `);function Zt(e){try{let r=Yt.parse(e).rootNode,n=Ea(e),i=Va.matches(r),o=[];for(let s of i)for(let a of s.captures)if(a.name==="imports"){for(let u of a.node.children)if(!(u.type==="["||u.type==="]"||u.type===","))switch(u.type){case"identifier":let l=n[u.text];if(!l||l.export!==null)return null;o.push([l.module,null]);break;case"string":o.push([u.children[1].text,null]);break;case"call_expression":let f=Na.matches(u);if(f.length===0)return null;let c=null,p=null,m=null,d=null,g=f.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let v=g[h];switch(v.name){case"module_identifier":{p=v.node.text;break}case"module_string":{c=v.node.text;break}case"property":{if(d!==null)return null;d=v.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(d===null)return null;m??={},m[d]=di(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let A=[],N=h;e:for(let Q=h+1;Q<g.length;Q++){let we=g[Q];switch(we.name){case"property":{if(we.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":A.push(di(we)),N=Q}}h=N,m[d]=A,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(p!==null){let h=n[p];if(!h||h.export!==null&&h.export!=="*")return null;c=h.module}if(c===null)return null;o.push([c,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var Pa=new st.Query(ut.typescript,Qt`
122
+ `);function er(e){try{let r=Zt.parse(e).rootNode,n=Oa(e),i=Ea.matches(r),o=[];for(let s of i)for(let a of s.captures)if(a.name==="imports"){for(let u of a.node.children)if(!(u.type==="["||u.type==="]"||u.type===","))switch(u.type){case"identifier":let l=n[u.text];if(!l||l.export!==null)return null;o.push([l.module,null]);break;case"string":o.push([u.children[1].text,null]);break;case"call_expression":let c=Ra.matches(u);if(c.length===0)return null;let f=null,p=null,m=null,d=null,g=c.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let v=g[h];switch(v.name){case"module_identifier":{p=v.node.text;break}case"module_string":{f=v.node.text;break}case"property":{if(d!==null)return null;d=v.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(d===null)return null;m??={},m[d]=vi(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let A=[],N=h;e:for(let Z=h+1;Z<g.length;Z++){let be=g[Z];switch(be.name){case"property":{if(be.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":A.push(vi(be)),N=Z}}h=N,m[d]=A,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(p!==null){let h=n[p];if(!h||h.export!==null&&h.export!=="*")return null;f=h.module}if(f===null)return null;o.push([f,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var _a=new ft.Query(pt.typescript,Xt`
123
123
  ; ESM import
124
124
  (import_statement
125
125
  (import_clause
@@ -158,15 +158,15 @@ ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
158
158
  )
159
159
  )
160
160
  )
161
- `);function Ea(e){let r=Yt.parse(e).rootNode,n=Pa.matches(r),i={};for(let o of n){let s=[],a="";for(let u=0;u<o.captures.length;u++){let l=o.captures[u];switch(l.name){case"default":s.push({name:l.node.text,export:null});break;case"imported-name":s.push({name:l.node.text,export:l.node.text});break;case"imported-from":a=l.node.text;break;case"imported-namespace":s.push({name:l.node.text,export:"*"});break;case"imported-alias":if(s.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let f=s[s.length-1],c=f.name;f.export=c,f.name=l.node.text;break}}for(let{name:u,export:l}of s)i[u]={module:a,export:l}}return i}function di(e){return e.name==="num_value"?parseFloat(e.node.text):e.name==="null_value"?null:e.name==="true_value"?!0:e.name==="false_value"?!1:e.node.text}import Ia from"fs";import yi from"path";import{stripVTControlCharacters as vi}from"util";import L from"picocolors";import Re from"enhanced-resolve";import Xt from"fs";import{createRequire as Ra}from"module";var _a=Ra(import.meta.url).resolve;function gi(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return _a(e)}var Oa=Re.ResolverFactory.createResolver({fileSystem:new Re.CachedInputFileSystem(Xt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Da=Re.ResolverFactory.createResolver({fileSystem:new Re.CachedInputFileSystem(Xt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function hi(e,t){try{return Oa.resolveSync({},t,e)}catch{return Da.resolveSync({},t,e)}}var Ua=Re.ResolverFactory.createResolver({fileSystem:new Re.CachedInputFileSystem(Xt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function er(e,t){return Ua.resolveSync({},t,e)}var ft={indent:2};function ct(){return`${L.italic(L.bold(L.blue("\u2248")))} tailwindcss ${L.blue(`v${Ma()}`)}`}function x(e){return`${L.dim(L.blue("`"))}${L.blue(e)}${L.dim(L.blue("`"))}`}function _(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=yi.relative(t,e);return n.startsWith("..")||(n=`.${yi.sep}${n}`),r&&n.length>e.length?e:n}function We(e,t){if(e.includes(`
161
+ `);function Oa(e){let r=Zt.parse(e).rootNode,n=_a.matches(r),i={};for(let o of n){let s=[],a="";for(let u=0;u<o.captures.length;u++){let l=o.captures[u];switch(l.name){case"default":s.push({name:l.node.text,export:null});break;case"imported-name":s.push({name:l.node.text,export:l.node.text});break;case"imported-from":a=l.node.text;break;case"imported-namespace":s.push({name:l.node.text,export:"*"});break;case"imported-alias":if(s.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let c=s[s.length-1],f=c.name;c.export=f,c.name=l.node.text;break}}for(let{name:u,export:l}of s)i[u]={module:a,export:l}}return i}function vi(e){return e.name==="num_value"?parseFloat(e.node.text):e.name==="null_value"?null:e.name==="true_value"?!0:e.name==="false_value"?!1:e.node.text}import ja from"fs";import bi from"path";import{stripVTControlCharacters as xi}from"util";import j from"picocolors";import De from"enhanced-resolve";import tr from"fs";import{createRequire as Da}from"module";var Ua=Da(import.meta.url).resolve;function wi(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Ua(e)}var Ma=De.ResolverFactory.createResolver({fileSystem:new De.CachedInputFileSystem(tr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Ia=De.ResolverFactory.createResolver({fileSystem:new De.CachedInputFileSystem(tr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function ki(e,t){try{return Ma.resolveSync({},t,e)}catch{return Ia.resolveSync({},t,e)}}var La=De.ResolverFactory.createResolver({fileSystem:new De.CachedInputFileSystem(tr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function rr(e,t){return La.resolveSync({},t,e)}var mt={indent:2};function dt(){return`${j.italic(j.bold(j.blue("\u2248")))} tailwindcss ${j.blue(`v${Fa()}`)}`}function b(e){return`${j.dim(j.blue("`"))}${j.blue(e)}${j.dim(j.blue("`"))}`}function O(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=bi.relative(t,e);return n.startsWith("..")||(n=`.${bi.sep}${n}`),r&&n.length>e.length?e:n}function qe(e,t){if(e.includes(`
162
162
  `))return e.split(`
163
- `).flatMap(s=>We(s,t));let r=e.split(" "),n=[],i="",o=0;for(let s of r){let a=vi(s).length;o+a+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+s,o+=a+(o?1:0)}return o&&n.push(i),n}function Be(e,t=0){return`${" ".repeat(t+ft.indent)}${e}`}function pt(e,{art:t=L.gray("\u2502"),prefix:r="",print:n=pe}){let i=r.length,o=" ",s=o.length,a=vi(t).length,l=process.stderr.columns-i-s*2-a;We(e,l).map((f,c)=>n(`${t}${o}${c===0?r:" ".repeat(i)}${f}${o}`)),n()}function M(e,{prefix:t="",print:r=pe}={}){pt(e,{art:L.green("\u2502"),prefix:t,print:r})}function W(e,{prefix:t="",print:r=pe}={}){pt(e,{art:L.blue("\u2502"),prefix:t,print:r})}function O(e,{prefix:t="",print:r=pe}={}){pt(e,{art:L.red("\u2502"),prefix:t,print:r})}function mt(e,{prefix:t="",print:r=pe}={}){pt(e,{art:L.yellow("\u2502"),prefix:t,print:r})}function pe(e=""){process.stderr.write(`${e}
163
+ `).flatMap(s=>s?qe(s,t):[""]);let r=e.split(" "),n=[],i="",o=0;for(let s of r){let a=xi(s).length;o+a+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+s,o+=a+(o?1:0)}return o&&n.push(i),n}function He(e,t=0){return`${" ".repeat(t+mt.indent)}${e}`}function gt(e,{art:t=j.gray("\u2502"),prefix:r="",print:n=de}){let i=r.length,o=" ",s=o.length,a=xi(t).length,l=process.stderr.columns-i-s*2-a;qe(e,l).map((c,f)=>n(`${t}${o}${f===0?r:" ".repeat(i)}${c}${o}`)),n()}function I(e,{prefix:t="",print:r=de}={}){gt(e,{art:j.green("\u2502"),prefix:t,print:r})}function F(e,{prefix:t="",print:r=de}={}){gt(e,{art:j.blue("\u2502"),prefix:t,print:r})}function E(e,{prefix:t="",print:r=de}={}){gt(e,{art:j.red("\u2502"),prefix:t,print:r})}function ht(e,{prefix:t="",print:r=de}={}){gt(e,{art:j.yellow("\u2502"),prefix:t,print:r})}function de(e=""){process.stderr.write(`${e}
164
164
  `)}function B(e=""){process.stdout.write(`${e}
165
- `)}function Ma(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Ia.readFileSync(gi("tailwindcss/package.json"),"utf-8"));return e}var Fa=La(import.meta.url),za=xi.dirname(Fa);async function Ai(e,t,r){let[n,i]=await Promise.all([ot(t,za,()=>{}).then(l=>l.module),ja.readFile(t,"utf-8")]);if(!Ha(n,i))return W(`The configuration file at ${x(_(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let o=[],s=[],a=[];if("darkMode"in n&&a.push(Wa(n)),"content"in n&&(o=await qa(n,t,r)),"theme"in n){let l=await Ka(e,n,r);l&&a.push(l)}"corePlugins"in n&&W("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let u=Zt(i);if(u!==null)for(let[l,f]of u)s.push({base:r,path:l,options:f});return{sources:o,plugins:s,css:a.join(`
166
- `)}}async function Ka(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=be(e,[n]),s=new Map(Array.from(o.entries()).map(([p])=>[p,!1]));Za(e,i,o);let a="",u="",l=[],f="",c=new Map;{if("keyframes"in i.theme&&(f+=Ja(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let p=ri(i.theme.container,e);p.length>0&&(a+=`
165
+ `)}function Fa(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(ja.readFileSync(wi("tailwindcss/package.json"),"utf-8"));return e}var Wa=Ka(import.meta.url),Ba=$i.dirname(Wa);async function Ti(e,t,r){let[n,i]=await Promise.all([st(t,Ba,()=>{}).then(l=>l.module),za.readFile(t,"utf-8")]);if(!Ya(n,i))return F(`The configuration file at ${b(O(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let o=[],s=[],a=[];if("darkMode"in n&&a.push(Ha(n)),"content"in n&&(o=await Ja(n,t,r)),"theme"in n){let l=await qa(e,n,r);l&&a.push(l)}"corePlugins"in n&&F("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let u=er(i);if(u!==null)for(let[l,c]of u)s.push({base:r,path:l,options:c});return{sources:o,plugins:s,css:a.join(`
166
+ `)}}async function qa(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=Ce(e,[n]),s=new Map(Array.from(o.entries()).map(([p])=>[p,!1]));tl(e,i,o);let a="",u="",l=[],c="",f=new Map;{if("keyframes"in i.theme&&(c+=Za(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let p=ai(i.theme.container,e);p.length>0&&(a+=`
167
167
  @tw-bucket theme {
168
- `,a+=K([$("@utility","container",p)]),a+=`}
169
- `),delete i.theme.container}if("aria"in i.theme){for(let[p,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${p}=(['"]?)true\\1$`).test(`${m}`)||c.set(`aria-${p}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[p,m]of Object.entries(i.theme.data??{}))p!==m&&c.set(`data-${p}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[p,m]of Object.entries(i.theme.supports??{})){let d=k(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===p&&d[2].kind==="function"&&d[2].value==="var")&&c.set(`supports-${p}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[p,m]of Ir(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),p[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&p[1]===m.replace(/%$/,"")&&It(p[1]))continue}let d=Ba(p);if(d!==u&&(l.push(""),u=d),s.has(p[0])&&s.get(p[0])===!1){s.set(p[0],!0);let h=re([p[0]]);h!==null&&l.push(` ${le(`--${h}`)}-*: initial;`)}let g=re(p);g!==null&&l.push(` ${le(`--${g}`)}: ${m};`)}if(f&&l.push("",f),l.length>0&&(a+=`
168
+ `,a+=W([$("@utility","container",p)]),a+=`}
169
+ `),delete i.theme.container}if("aria"in i.theme){for(let[p,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${p}=(['"]?)true\\1$`).test(`${m}`)||f.set(`aria-${p}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[p,m]of Object.entries(i.theme.data??{}))p!==m&&f.set(`data-${p}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[p,m]of Object.entries(i.theme.supports??{})){let d=k(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===p&&d[2].kind==="function"&&d[2].value==="var")&&f.set(`supports-${p}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[p,m]of Fr(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),p[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&p[1]===m.replace(/%$/,"")&&jt(p[1]))continue}let d=Ga(p);if(d!==u&&(l.push(""),u=d),s.has(p[0])&&s.get(p[0])===!1){s.set(p[0],!0);let h=ie([p[0]]);h!==null&&l.push(` ${ue(`--${h}`)}-*: initial;`)}let g=ie(p);g!==null&&l.push(` ${ue(`--${g}`)}: ${m};`)}if(c&&l.push("",c),l.length>0&&(a+=`
170
170
  @tw-bucket theme {
171
171
  `,a+=`
172
172
  @theme {
@@ -174,13 +174,13 @@ ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
174
174
  `)+`
175
175
  `,a+=`}
176
176
  `,a+=`}
177
- `),c.size>0){a+=`
177
+ `),f.size>0){a+=`
178
178
  @tw-bucket custom-variant {
179
- `;let p="";for(let[m,d]of c){let g=m.split("-")[0];p!==g&&(a+=`
179
+ `;let p="";for(let[m,d]of f){let g=m.split("-")[0];p!==g&&(a+=`
180
180
  `),p=g,d.startsWith("{")?a+=`@custom-variant ${m} ${d}
181
181
  `:a+=`@custom-variant ${m} (${d});
182
182
  `}a+=`}
183
- `}return a}function Wa(e){let t="";if(qt({config:()=>e.darkMode,addVariant:(o,s)=>t=s}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
183
+ `}return a}function Ha(e){let t="";if(Gt({config:()=>e.darkMode,addVariant:(o,s)=>t=s}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
184
184
  @tw-bucket custom-variant {
185
185
  @custom-variant dark (${t[0]});
186
186
  }
@@ -190,45 +190,45 @@ ${K([m])}`)}l.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
190
190
  @tw-bucket custom-variant {
191
191
  @custom-variant dark {${i}};
192
192
  }
193
- `:""}function Ba(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function qa(e,t,r){let n=Ya(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,s=Array.isArray(e.content)?e.content.map(a=>({base:r,pattern:a})):(e.content?.files??[]).map(a=>typeof a=="string"&&o?{base:xi.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:u}of s){if(typeof u!="string")throw new Error("Unsupported content value: "+u);let l=Qa({base:a,pattern:u[0]==="!"?u.slice(1):u,negated:u[0]==="!"}),f=!0;for(let c of l)if(!n.includes(c)){f=!1;break}f||i.push({base:a,pattern:u})}return i}function Ha(e,t){function r(a){return typeof a=="function"?!1:Array.isArray(a)?a.every(r):typeof a=="object"&&a!==null?Object.values(a).every(r):["string","number","boolean","undefined"].includes(typeof a)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let s=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(a=>!s.includes(a))||Zt(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!wi(i.extend))return!1;let{extend:a,...u}=i;if(!wi(u))return!1}return!0}var Ga=[...Object.keys(Ci.default),"containers"];function wi(e){for(let t of Object.keys(e))if(!Ga.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function Ja(e){let t=Xr({theme:{keyframes:e}});return K(t).trim()+`
194
- `}function Ya(e){let t=new bi({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Qa(e){let t=new bi({sources:[e]});return t.scan(),t.files}function Za(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=ki(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[s,a]of Object.entries(t.theme.spacing??{})){let[u,l]=ki(a);u!==null&&ee(s)&&l===o&&parseFloat(u)===Number(s)*parseFloat(i)&&(delete t.theme.spacing[s],e.theme.clearNamespace(le(`--spacing-${s.replaceAll(".","_")}`),0))}}function ki(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import ne from"fs/promises";import rr from"path";import{exec as Xa}from"child_process";import{readFileSync as el}from"fs";import _e from"fs/promises";import{dirname as tl,resolve as Ce}from"path";import{promisify as rl}from"util";var Si=rl(Xa),$i={default:"-D",bun:"-d"},tr=new y(e=>{try{let t=Ce(e,"package.json");return el(t,"utf-8")}catch{return""}});function Oe(e){return{async add(t,r="dependencies"){let n=await Vi.get(e),i=t.slice();r==="devDependencies"&&i.push($i[n]||$i.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await Si(o,{cwd:e})}catch(s){throw O(`An error occurred while running \`${o}\`
193
+ `:""}function Ga(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function Ja(e,t,r){let n=Xa(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,s=Array.isArray(e.content)?e.content.map(a=>({base:r,pattern:a})):(e.content?.files??[]).map(a=>typeof a=="string"&&o?{base:$i.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:u}of s){if(typeof u!="string")throw new Error("Unsupported content value: "+u);let l=el({base:a,pattern:u[0]==="!"?u.slice(1):u,negated:u[0]==="!"}),c=!0;for(let f of l)if(!n.includes(f)){c=!1;break}c||i.push({base:a,pattern:u})}return i}function Ya(e,t){function r(a){return typeof a=="function"?!1:Array.isArray(a)?a.every(r):typeof a=="object"&&a!==null?Object.values(a).every(r):["string","number","boolean","undefined"].includes(typeof a)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let s=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(a=>!s.includes(a))||er(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!Ci(i.extend))return!1;let{extend:a,...u}=i;if(!Ci(u))return!1}return!0}var Qa=[...Object.keys(Vi.default),"containers"];function Ci(e){for(let t of Object.keys(e))if(!Qa.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function Za(e){let t=ii({theme:{keyframes:e}});return W(t).trim()+`
194
+ `}function Xa(e){let t=new Si({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function el(e){let t=new Si({sources:[e]});return t.scan(),t.files}function tl(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=Ai(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[s,a]of Object.entries(t.theme.spacing??{})){let[u,l]=Ai(a);u!==null&&te(s)&&l===o&&parseFloat(u)===Number(s)*parseFloat(i)&&(delete t.theme.spacing[s],e.theme.clearNamespace(ue(`--spacing-${s.replaceAll(".","_")}`),0))}}function Ai(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import oe from"fs/promises";import or from"path";import{exec as rl}from"child_process";import{readFileSync as il}from"fs";import Ue from"fs/promises";import{dirname as nl,resolve as Se}from"path";import{promisify as ol}from"util";var Ni=ol(rl),Pi={default:"-D",bun:"-d"},ir=new y(e=>{try{let t=Se(e,"package.json");return il(t,"utf-8")}catch{return""}});function $e(e){return{async manager(){return await nr.get(e)},async add(t,r="dependencies"){let n=await nr.get(e),i=t.slice();r==="devDependencies"&&i.push(Pi[n]||Pi.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await Ni(o,{cwd:e})}catch(s){throw E(`An error occurred while running \`${o}\`
195
195
 
196
196
  ${s.stdout}
197
- ${s.stderr}`,{prefix:"\u21B3 "}),s}finally{tr.delete(e)}},has(t){return tr.get(e).includes(`"${t}":`)},async remove(t){let n=`${await Vi.get(e)} remove ${t.join(" ")}`;try{return await Si(n,{cwd:e})}catch(i){throw O(`An error occurred while running \`${n}\`
197
+ ${s.stderr}`,{prefix:"\u21B3 "}),s}finally{ir.delete(e)}},has(t){return ir.get(e).includes(`"${t}":`)},async remove(t){let n=`${await nr.get(e)} remove ${t.join(" ")}`;try{return await Ni(n,{cwd:e})}catch(i){throw E(`An error occurred while running \`${n}\`
198
198
 
199
199
  ${i.stdout}
200
- ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{tr.delete(e)}}}}var Ti=!1,Vi=new y(async e=>{do{let t=Ce(e,"package.json");try{let n=await _e.readFile(t,"utf-8"),i=JSON.parse(n);if(i.packageManager){if(i.packageManager.includes("bun"))return"bun";if(i.packageManager.includes("yarn"))return"yarn";if(i.packageManager.includes("pnpm"))return"pnpm";if(i.packageManager.includes("npm"))return"npm"}}catch{}try{return await _e.access(Ce(e,"bun.lockb")),"bun"}catch{}try{return await _e.access(Ce(e,"bun.lock")),"bun"}catch{}try{return await _e.access(Ce(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await _e.access(Ce(e,"yarn.lock")),"yarn"}catch{}try{return await _e.access(Ce(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=tl(e),r===e)return Ti||(Ti=!0,mt("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Pi(e){let t=!1,r=!1,n=!1,i=!1,o=!1,s=rr.resolve(e,"package.json"),a;try{a=JSON.parse(await ne.readFile(s,"utf-8"))}catch{}let u=await ol(e);if(u){let l=await il(u);t=!0,l&&(r=!0,n=l.didAddPostcssClient,i=l.didRemoveAutoprefixer,o=l.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let l=await Ni(a.postcss);t=!0,l&&(await ne.writeFile(s,JSON.stringify({...a,postcss:l?.json},null,2)),r=!0,n=l.didAddPostcssClient,i=l.didRemoveAutoprefixer,o=l.didRemovePostCSSImport)}if(!t){let l=await ll(e),f=null;if(l){try{f=JSON.parse(await ne.readFile(l,"utf-8"))}catch{}if(f){let c=await Ni(f);t=!0,c&&(await ne.writeFile(l,JSON.stringify(c.json,null,2)),r=!0,n=c.didAddPostcssClient,i=c.didRemoveAutoprefixer,o=c.didRemovePostCSSImport)}}}if(!t){W("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let l=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(l!==null)try{await Oe(e).add(["@tailwindcss/postcss@latest"],l),M(`Installed package: ${x("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Oe(e).remove(["autoprefixer"]),M(`Removed package: ${x("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Oe(e).remove(["postcss-import"]),M(`Removed package: ${x("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&u&&M(`Migrated PostCSS configuration: ${x(_(u,e))}`,{prefix:"\u21B3 "})}async function il(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function n(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function i(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(W("Migrating PostCSS configuration\u2026"),!await sl(e))return mt("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let s=!1,a=!1,u=!1,f=(await ne.readFile(e,"utf-8")).split(`
201
- `),c=[];for(let p=0;p<f.length;p++){let m=f[p];if(t(m))s=!0,c.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))a=!0;else if(r(m)){let d=!1;for(let g=p+1;g<f.length;g++){let h=f[g];if(t(h))break;if(!i(h)){d=!0;break}}d?c.push(m):u=!0}else if(i(m)){let d=f[p+1];t(d)||c.push(m)}else c.push(m)}return await ne.writeFile(e,c.join(`
202
- `)),{didAddPostcssClient:s,didRemoveAutoprefixer:a,didRemovePostCSSImport:u}}async function Ni(e){function t(f,c){return f==="tailwindcss"&&dt(c)}function r(f,c){return f==="postcss-import"&&dt(c)}function n(f,c){return f==="autoprefixer"&&dt(c)}function i(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||dt(c))}let o=!1,s=!1,a=!1,u=Object.entries(e.plugins||{}),l=[];for(let f=0;f<u.length;f++){let[c,p]=u[f];if(t(c,p))o=!0,l.push(["@tailwindcss/postcss",p]);else if(n(c,p))s=!0;else if(r(c,p)){let m=!1;for(let d=f+1;d<u.length;d++){let[g,h]=u[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?l.push([c,p]):a=!0}else if(i(c,p)){let[m,d]=u[f+1];t(m,d)||l.push([c,p])}else l.push([c,p])}return{json:{...e,plugins:Object.fromEntries(l)},didAddPostcssClient:o,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}var nl=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function ol(e){for(let t of nl){let r=rr.resolve(e,t);try{return await ne.access(r),r}catch{}}return null}var al=[".postcssrc",".postcssrc.json"];async function ll(e){for(let t of al){let r=rr.resolve(e,t);try{return await ne.access(r),r}catch{}}return null}async function sl(e){let t=await ne.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function dt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as pl}from"globby";import ml from"path";import dl from"postcss";import{__unstable__loadDesignSystem as fl,compileAst as cl}from"@tailwindcss/node";import*as Ri from"fs";import*as _i from"fs/promises";import*as me from"path";import*as Oi from"util";import*as gt from"postcss";import sd,{Input as ud}from"postcss";var ul=33;function Ei(e){let t=new y(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let s=o.source;if(!s)return;let a=s.input;if(a&&s.start!==void 0&&s.end!==void 0)return[t.get(a),s.start.offset,s.end.offset]}function n(o,s){if(o.type==="decl"){let a=T(o.prop,o.value,o.important);a.src=r(o),s.push(a)}else if(o.type==="rule"){let a=z(o.selector);a.src=r(o),o.each(u=>n(u,a.nodes)),s.push(a)}else if(o.type==="atrule"){let a=$(`@${o.name}`,o.params);a.src=r(o),o.each(u=>n(u,a.nodes)),s.push(a)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==ul)return;let a=Xe(o.text);a.src=r(o),s.push(a)}}let i=[];return e.each(o=>n(o,i)),i}var Z=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=me.resolve(process.cwd(),t);let r=await _i.readFile(t,"utf-8"),n=gt.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=me.resolve(process.cwd(),t);let r=Ri.readFileSync(t,"utf-8"),n=gt.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=gt.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=me.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of qe(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of qe(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of qe(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let o of i.layers)t.add(o);return t}*pathsToRoot(){for(let{item:t,path:r}of qe(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:o}of n)for(let s of o.layers)i||=s==="utilities"||s==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}async compiler(){return!this.isTailwindRoot||!this.file?null:cl(Ei(this.root),{base:me.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:fl(this.root.toString(),{base:me.dirname(this.file)})}[Oi.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*qe(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*qe(n.item,t,i),yield{item:n.item,path:i}}}async function Di(e){let t=await pl(),r=[],n=new y(u=>{try{if(t(u))return null}catch{return null}try{let l=Z.loadSync(u);return e.push(l),r.push(()=>i.process(l.root,{from:l.file})),l}catch{return null}}),i=dl([{postcssPlugin:"mark-import-nodes",AtRule:{import(u){let l=u.params.match(/['"](.*?)['"]/)?.[1];if(!l)return;let f=u.source?.input.file?ml.dirname(u.source.input.file):process.cwd(),c=!1;try{if(l[0]!==".")try{c=er(`./${l}`,f)}catch{}c||(c=er(l,f))}catch{if(l.startsWith("http://")||l.startsWith("https://")||l.startsWith("//"))return;O(`Failed to resolve import: ${x(l)} in ${x(_(u.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=n.get(c);if(!p)return;u.raws.tailwind_destination_sheet_id=p.id;let m=u.source?.input.file?n.get(u.source.input.file):void 0,d=[];for(let g of w(u.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};p.parents.add({item:m,meta:g}),m.children.add({item:p,meta:g})}}}}]);for(let u of e)u.file&&(n.set(u.file,u),r.push(()=>i.process(u.root,{from:u.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function s(u){let l=[];for(let f of u){if(!f.item.file)continue;let c=f.item.file.replace(o,""),p=f.meta.layers.join(", ");p.length>0?l.push(`${c} (layers: ${p})`):l.push(c)}return l.join(" <- ")}let a=[];for(let u of e){if(!u.file)continue;let{convertiblePaths:l,nonConvertiblePaths:f}=u.analyzeImportPaths();if(!(l.length>0&&f.length>0))continue;u.canMigrate=!1;let p=u.file.replace(o,"");for(let m of l)a.push(`- ${p} <- ${s(m)}`);for(let m of f)a.push(`- ${p} <- ${s(m)}`)}if(a.length===0){let u=new Set;for(let l of e)l.root.walkAtRules("config",()=>(l.isTailwindRoot=!0,!1)),!l.isTailwindRoot&&l.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(l.isTailwindRoot=!0,u.add(l))});if(u.size<=1)return;{let l=new y(()=>new Set);for(let c of u)l.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of l)for(let[m,d]of l){if(c===m)continue;let g=[c].concat(Array.from(c.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let v of g)for(let A of h){if(v!==A)continue;let N=v;l.delete(c),l.delete(m);for(let Q of p)l.get(N).add(Q);for(let Q of d)l.get(N).add(Q);f=!0;continue e}}}for(let[c,p]of l){c.isTailwindRoot=!0;for(let m of p)c!==m&&(m.isTailwindRoot=!1)}return}}{let u=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
200
+ ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{ir.delete(e)}}}}var Ei=!1,nr=new y(async e=>{do{let t=Se(e,"package.json");try{let n=await Ue.readFile(t,"utf-8"),i=JSON.parse(n);if(i.packageManager){if(i.packageManager.includes("bun"))return"bun";if(i.packageManager.includes("yarn"))return"yarn";if(i.packageManager.includes("pnpm"))return"pnpm";if(i.packageManager.includes("npm"))return"npm"}}catch{}try{return await Ue.access(Se(e,"bun.lockb")),"bun"}catch{}try{return await Ue.access(Se(e,"bun.lock")),"bun"}catch{}try{return await Ue.access(Se(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await Ue.access(Se(e,"yarn.lock")),"yarn"}catch{}try{return await Ue.access(Se(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=nl(e),r===e)return Ei||(Ei=!0,ht("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function _i(e){let t=!1,r=!1,n=!1,i=!1,o=!1,s=or.resolve(e,"package.json"),a;try{a=JSON.parse(await oe.readFile(s,"utf-8"))}catch{}let u=await sl(e);if(u){let l=await al(u);t=!0,l&&(r=!0,n=l.didAddPostcssClient,i=l.didRemoveAutoprefixer,o=l.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let l=await Ri(a.postcss);t=!0,l&&(await oe.writeFile(s,JSON.stringify({...a,postcss:l?.json},null,2)),r=!0,n=l.didAddPostcssClient,i=l.didRemoveAutoprefixer,o=l.didRemovePostCSSImport)}if(!t){let l=await cl(e),c=null;if(l){try{c=JSON.parse(await oe.readFile(l,"utf-8"))}catch{}if(c){let f=await Ri(c);t=!0,f&&(await oe.writeFile(l,JSON.stringify(f.json,null,2)),r=!0,n=f.didAddPostcssClient,i=f.didRemoveAutoprefixer,o=f.didRemovePostCSSImport)}}}if(!t){F("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let l=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(l!==null)try{await $e(e).add(["@tailwindcss/postcss@latest"],l),I(`Installed package: ${b("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await $e(e).remove(["autoprefixer"]),I(`Removed package: ${b("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await $e(e).remove(["postcss-import"]),I(`Removed package: ${b("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&u&&I(`Migrated PostCSS configuration: ${b(O(u,e))}`,{prefix:"\u21B3 "})}async function al(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function n(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function i(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(F("Migrating PostCSS configuration\u2026"),!await fl(e))return ht("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let s=!1,a=!1,u=!1,c=(await oe.readFile(e,"utf-8")).split(`
201
+ `),f=[];for(let p=0;p<c.length;p++){let m=c[p];if(t(m))s=!0,f.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))a=!0;else if(r(m)){let d=!1;for(let g=p+1;g<c.length;g++){let h=c[g];if(t(h))break;if(!i(h)){d=!0;break}}d?f.push(m):u=!0}else if(i(m)){let d=c[p+1];t(d)||f.push(m)}else f.push(m)}return await oe.writeFile(e,f.join(`
202
+ `)),{didAddPostcssClient:s,didRemoveAutoprefixer:a,didRemovePostCSSImport:u}}async function Ri(e){function t(c,f){return c==="tailwindcss"&&yt(f)}function r(c,f){return c==="postcss-import"&&yt(f)}function n(c,f){return c==="autoprefixer"&&yt(f)}function i(c,f){return c==="tailwindcss/nesting"&&(f==="postcss-nesting"||yt(f))}let o=!1,s=!1,a=!1,u=Object.entries(e.plugins||{}),l=[];for(let c=0;c<u.length;c++){let[f,p]=u[c];if(t(f,p))o=!0,l.push(["@tailwindcss/postcss",p]);else if(n(f,p))s=!0;else if(r(f,p)){let m=!1;for(let d=c+1;d<u.length;d++){let[g,h]=u[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?l.push([f,p]):a=!0}else if(i(f,p)){let[m,d]=u[c+1];t(m,d)||l.push([f,p])}else l.push([f,p])}return{json:{...e,plugins:Object.fromEntries(l)},didAddPostcssClient:o,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}var ll=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function sl(e){for(let t of ll){let r=or.resolve(e,t);try{return await oe.access(r),r}catch{}}return null}var ul=[".postcssrc",".postcssrc.json"];async function cl(e){for(let t of ul){let r=or.resolve(e,t);try{return await oe.access(r),r}catch{}}return null}async function fl(e){let t=await oe.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function yt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as gl}from"globby";import hl from"path";import yl from"postcss";import{__unstable__loadDesignSystem as ml,compileAst as dl}from"@tailwindcss/node";import*as Di from"fs";import*as Ui from"fs/promises";import*as ge from"path";import*as Mi from"util";import*as vt from"postcss";var pl=33;function Oi(e){let t=new y(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let s=o.source;if(!s)return;let a=s.input;if(a&&s.start!==void 0&&s.end!==void 0)return[t.get(a),s.start.offset,s.end.offset]}function n(o,s){if(o.type==="decl"){let a=V(o.prop,o.value,o.important);a.src=r(o),s.push(a)}else if(o.type==="rule"){let a=K(o.selector);a.src=r(o),o.each(u=>n(u,a.nodes)),s.push(a)}else if(o.type==="atrule"){let a=$(`@${o.name}`,o.params);a.src=r(o),o.each(u=>n(u,a.nodes)),s.push(a)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==pl)return;let a=rt(o.text);a.src=r(o),s.push(a)}}let i=[];return e.each(o=>n(o,i)),i}var X=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=ge.resolve(process.cwd(),t);let r=await Ui.readFile(t,"utf-8"),n=vt.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=ge.resolve(process.cwd(),t);let r=Di.readFileSync(t,"utf-8"),n=vt.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=vt.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=ge.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of Ge(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Ge(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Ge(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let o of i.layers)t.add(o);return t}*pathsToRoot(){for(let{item:t,path:r}of Ge(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:o}of n)for(let s of o.layers)i||=s==="utilities"||s==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}async compiler(){return!this.isTailwindRoot||!this.file?null:dl(Oi(this.root),{base:ge.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:ml(this.root.toString(),{base:ge.dirname(this.file)})}[Mi.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*Ge(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Ge(n.item,t,i),yield{item:n.item,path:i}}}async function Ii(e){let t=await gl(),r=[],n=new y(u=>{try{if(t(u))return null}catch{return null}try{let l=X.loadSync(u);return e.push(l),r.push(()=>i.process(l.root,{from:l.file})),l}catch{return null}}),i=yl([{postcssPlugin:"mark-import-nodes",AtRule:{import(u){let l=u.params.match(/['"](.*?)['"]/)?.[1];if(!l)return;let c=u.source?.input.file?hl.dirname(u.source.input.file):process.cwd(),f=!1;try{if(l[0]!==".")try{f=rr(`./${l}`,c)}catch{}f||(f=rr(l,c))}catch{if(l.startsWith("http://")||l.startsWith("https://")||l.startsWith("//"))return;E(`Failed to resolve import: ${b(l)} in ${b(O(u.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!f)return;let p=n.get(f);if(!p)return;u.raws.tailwind_destination_sheet_id=p.id;let m=u.source?.input.file?n.get(u.source.input.file):void 0,d=[];for(let g of w(u.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};p.parents.add({item:m,meta:g}),m.children.add({item:p,meta:g})}}}}]);for(let u of e)u.file&&(n.set(u.file,u),r.push(()=>i.process(u.root,{from:u.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function s(u){let l=[];for(let c of u){if(!c.item.file)continue;let f=c.item.file.replace(o,""),p=c.meta.layers.join(", ");p.length>0?l.push(`${f} (layers: ${p})`):l.push(f)}return l.join(" <- ")}let a=[];for(let u of e){if(!u.file)continue;let{convertiblePaths:l,nonConvertiblePaths:c}=u.analyzeImportPaths();if(!(l.length>0&&c.length>0))continue;u.canMigrate=!1;let p=u.file.replace(o,"");for(let m of l)a.push(`- ${p} <- ${s(m)}`);for(let m of c)a.push(`- ${p} <- ${s(m)}`)}if(a.length===0){let u=new Set;for(let l of e)l.root.walkAtRules("config",()=>(l.isTailwindRoot=!0,!1)),!l.isTailwindRoot&&l.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(l.isTailwindRoot=!0,u.add(l))});if(u.size<=1)return;{let l=new y(()=>new Set);for(let f of u)l.get(f).add(f);let c=!0;e:for(;c;){c=!1;for(let[f,p]of l)for(let[m,d]of l){if(f===m)continue;let g=[f].concat(Array.from(f.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let v of g)for(let A of h){if(v!==A)continue;let N=v;l.delete(f),l.delete(m);for(let Z of p)l.get(N).add(Z);for(let Z of d)l.get(N).add(Z);c=!0;continue e}}}for(let[f,p]of l){f.isTailwindRoot=!0;for(let m of p)f!==m&&(m.isTailwindRoot=!1)}return}}{let u=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
203
203
  `;throw u+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
204
204
  `,new Error(u+a.join(`
205
- `))}}import Ui from"postcss";import{format as Ii}from"prettier";function E(e,t){let r;return e.each?.((n,i)=>{let o=t(n,i,e)??0;if(o===2)return r=!1,r;if(o!==1)return r=E(n,t),r}),r}function ir(e,t){e?.each?.(r=>{ir(r,t),t(r)})}var Mi={parser:"css",semi:!0,singleQuote:!0};function ji(){async function e(t){let r=[];E(t,(i,o,s)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=s,r.unshift(i))});let n=[];for(let i of r){let o=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(o);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await Ii(o,Mi));continue}i.replaceWith(Ui.parse(`${i.raws.before??""}${(await Ii(o,Mi)).trim()}`))}t.removeAll(),t.append(Ui.parse(n.map(i=>i.trim()).filter(Boolean).join(`
205
+ `))}}import Li from"postcss";import{format as ji}from"prettier";function R(e,t){let r;return e.each?.((n,i)=>{let o=t(n,i,e)??0;if(o===2)return r=!1,r;if(o!==1)return r=R(n,t),r}),r}function ar(e,t){e?.each?.(r=>{ar(r,t),t(r)})}var Fi={parser:"css",semi:!0,singleQuote:!0};function zi(){async function e(t){let r=[];R(t,(i,o,s)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=s,r.unshift(i))});let n=[];for(let i of r){let o=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(o);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await ji(o,Fi));continue}i.replaceWith(Li.parse(`${i.raws.before??""}${(await ji(o,Fi)).trim()}`))}t.removeAll(),t.append(Li.parse(n.map(i=>i.trim()).filter(Boolean).join(`
206
206
 
207
- `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as $l}from"@tailwindcss/node";import ge from"path";import Tl from"postcss";import{__unstable__loadDesignSystem as Hi,compile as wl}from"@tailwindcss/node";import kl from"fs/promises";import de,{dirname as Gi}from"path";import{fileURLToPath as bl}from"url";import Fi from"semver";import{readFileSync as gl}from"fs";import _d from"fs/promises";function Li(e,t){try{let r=hi(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(gl(r,"utf8"));return n}catch{return null}}function P(e){return Fi.satisfies(Ki(),`>=${e}.0.0 <${e+1}.0.0`)}function zi(e){return Fi.gte(Ki(),`${e+1}.0.0`)}var hl=new y(e=>{let t=Li("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function Ki(e=process.cwd()){return hl.get(e)}var Wi=new WeakSet;function Bi(e,t,r){if(!e.theme.prefix||!t||!P(3))return r;Wi.has(e)||(e.utilities.functional("group",s=>[T("--phantom-class","group"),T("--phantom-modifier",s.modifier?.value)]),e.utilities.functional("peer",s=>[T("--phantom-class","peer"),T("--phantom-modifier",s.modifier?.value)]),Wi.add(e));let n=yl(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let s=r.slice(0,n.start)+n.base+r.slice(n.end),a=[...F(s,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function yl(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=w(r,":").pop(),o=r.length-i.length,s=o+i.length,a=!1,u=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(u=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),u&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:s})}var vl=/([a-z]+)/;function qi(e){let t=vl.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var xl=bl(import.meta.url),He=Gi(xl),Ji=String.raw;async function Yi(e,t){try{e===null?e=await nr(t.base):de.isAbsolute(e)||(e=de.resolve(t.base,e));let r=de.relative(He,e);!r.startsWith(".")&&!de.isAbsolute(r)&&(r="./"+r);let n=await Cl(e),i=n.prefix?qi(n.prefix):null,o=Ji`
207
+ `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as El}from"@tailwindcss/node";import ye from"path";import Rl from"postcss";import{__unstable__loadDesignSystem as Ji,compile as Al}from"@tailwindcss/node";import Sl from"fs/promises";import he,{dirname as Yi}from"path";import{fileURLToPath as $l}from"url";import{execSync as wl}from"child_process";import Wi from"semver";import{readFileSync as vl}from"fs";import Kd from"fs/promises";function Ki(e,t){try{let r=ki(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(vl(r,"utf8"));return n}catch{return null}}function P(e){return Wi.satisfies(ae(),`>=${e}.0.0 <${e+1}.0.0`)}function Bi(e){return Wi.gte(ae(),`${e+1}.0.0`)}var kl=new y(e=>{let t=Ki("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ae(e=process.cwd()){return kl.get(e)}var bl=new y(e=>{try{return wl("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),ae(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??ae(e)}catch{return ae(e)}}});function lr(e=process.cwd()){return bl.get(e)}var qi=new WeakSet;function Hi(e,t,r){if(!e.theme.prefix||!t||!P(3))return r;qi.has(e)||(e.utilities.functional("group",s=>[V("--phantom-class","group"),V("--phantom-modifier",s.modifier?.value)]),e.utilities.functional("peer",s=>[V("--phantom-class","peer"),V("--phantom-modifier",s.modifier?.value)]),qi.add(e));let n=xl(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let s=r.slice(0,n.start)+n.base+r.slice(n.end),a=[...z(s,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function xl(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=w(r,":").pop(),o=r.length-i.length,s=o+i.length,a=!1,u=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(u=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),u&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:s})}var Cl=/([a-z]+)/;function Gi(e){let t=Cl.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var Vl=$l(import.meta.url),Je=Yi(Vl),Qi=String.raw;async function Zi(e,t){try{e===null?e=await sr(t.base):he.isAbsolute(e)||(e=he.resolve(t.base,e));let r=he.relative(Je,e);!r.startsWith(".")&&!he.isAbsolute(r)&&(r="./"+r);let n=await Tl(e),i=n.prefix?Gi(n.prefix):null,o=Qi`
208
208
  @import 'tailwindcss' ${i?`prefix(${i})`:""};
209
209
  @config '${r}';
210
- `,[s,a]=await Promise.all([wl(o,{base:He,onDependency:()=>{}}),Hi(o,{base:He})]);return{designSystem:a,sources:s.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){O("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Cl(e){let[t,r]=await Promise.all([Hi(Ji`
210
+ `,[s,a]=await Promise.all([Al(o,{base:Je,onDependency:()=>{}}),Ji(o,{base:Je})]);return{designSystem:a,sources:s.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){E("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Tl(e){let[t,r]=await Promise.all([Ji(Qi`
211
211
  @import 'tailwindcss';
212
- `,{base:He}),ot(e,He,()=>{}).then(n=>n.module)]);return be(t,[{base:Gi(e),config:r,reference:!1}]).resolvedConfig}var Al=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function nr(e,t=e){for(let r of Sl(e,t))for(let n of Al){let i=de.resolve(r,n);try{return await kl.access(i),i}catch{}}throw new Error(`No configuration file found for ${x(_(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${x("--config")} option.`)}function*Sl(e,t=e){let r=de.resolve(e),n=de.resolve(t);if(!r.startsWith(n))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===n){yield r;return}let i=r;do yield i,i=de.dirname(i);while(i!==n);yield n}async function Qi(e,{configPath:t,base:r}){let n=e.filter(l=>l.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
213
- Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${x("@tailwind")}.`);let i=n.filter(l=>{let f=!1;return l.root.walkAtRules("config",c=>{let p=ge.resolve(ge.dirname(l.file),c.params.slice(1,-1));return l.linkedConfigPath=p,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,s=new y(()=>new Set);for(let l of i){if(!l.file)continue;let f=t;t===null?f=await nr(ge.dirname(l.file),r):ge.isAbsolute(f)||(f=ge.resolve(r,f)),o.set(l,f),s.get(f).add(l)}let a=new Set;for(let l of s.values())if(l.size>1)for(let f of l)a.add(f);if(a.size>1){for(let l of a)O(`Could not determine configuration file for: ${x(_(l.file,r))}
214
- Update your stylesheet to use ${x("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let u=_;for(let[l,f]of o)try{if(!l||!l.file)return;M(`Linked ${x(u(f,r))} to ${x(u(l.file,r))}`,{prefix:"\u21B3 "}),l.linkedConfigPath=f;let c=ge.relative(ge.dirname(l.file),f);!c.startsWith(".")&&!ge.isAbsolute(c)&&(c="./"+c),c=$l(c);{let p=l.root,m=Tl.atRule({name:"config",params:`'${c}'`});l.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?l.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(c){O("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}import ks from"postcss";import Nn from"fs/promises";import Pn,{extname as ns}from"path";function Zi(e,t){if(!t[0])return e;t.sort((i,o)=>i.end-o.end||i.start-o.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let o=t[i];r+=e.slice(n.end,o.start),r+=o.replacement,n=o}return r+=e.slice(n.end),r}import{Scanner as Vl}from"@tailwindcss/oxide";async function Xi(e,t="html"){let n=new Vl({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:s}of n)i.push({rawCandidate:o,start:s,end:s+o.length});return i}function he(e){let t=structuredClone(e);return t.important=!1,t.variants=[],t}function q(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function en(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Nl=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Pl=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/(?<!:?class)=['"]$/,/addEventListener\(['"`]$/,/x-if=['"]$/,/x-show=['"]$/,/wire:[^\s]*?$/],El=/placeholder=\{?['"`]$/,Rl=/\b\$?emit\(['"`]$/;function rn(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let u=_l.get(t.contents);for(let l=0;l<u.length;l+=2){let f=u[l],c=u[l+1];if(t.start>=f&&t.end<=c)return!1}}let[n]=F(e,r);if(!n&&zi(3))return!1;if(n&&(n.variants.length>0||n.kind==="arbitrary"||n.kind==="static"&&n.root.includes("-")||n.kind==="functional"&&n.value!==null||n.kind==="functional"&&n.root.includes("-")||n.kind==="functional"&&n.modifier))return!0;let i="";for(let u=t.start-1;u>=0;u--){let l=t.contents.at(u);if(l===`
212
+ `,{base:Je}),st(e,Je,()=>{}).then(n=>n.module)]);return Ce(t,[{base:Yi(e),config:r,reference:!1}]).resolvedConfig}var Nl=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function sr(e,t=e){for(let r of Pl(e,t))for(let n of Nl){let i=he.resolve(r,n);try{return await Sl.access(i),i}catch{}}throw new Error(`No configuration file found for ${b(O(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${b("--config")} option.`)}function*Pl(e,t=e){let r=he.resolve(e),n=he.resolve(t);if(!r.startsWith(n))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===n){yield r;return}let i=r;do yield i,i=he.dirname(i);while(i!==n);yield n}async function Xi(e,{configPath:t,base:r}){let n=e.filter(l=>l.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
213
+ Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${b("@tailwind")}.`);let i=n.filter(l=>{let c=!1;return l.root.walkAtRules("config",f=>{let p=ye.resolve(ye.dirname(l.file),f.params.slice(1,-1));return l.linkedConfigPath=p,c=!0,!1}),!c});if(i.length===0)return;let o=new Map,s=new y(()=>new Set);for(let l of i){if(!l.file)continue;let c=t;t===null?c=await sr(ye.dirname(l.file),r):ye.isAbsolute(c)||(c=ye.resolve(r,c)),o.set(l,c),s.get(c).add(l)}let a=new Set;for(let l of s.values())if(l.size>1)for(let c of l)a.add(c);if(a.size>1){for(let l of a)E(`Could not determine configuration file for: ${b(O(l.file,r))}
214
+ Update your stylesheet to use ${b("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let u=O;for(let[l,c]of o)try{if(!l||!l.file)return;I(`Linked ${b(u(c,r))} to ${b(u(l.file,r))}`,{prefix:"\u21B3 "}),l.linkedConfigPath=c;let f=ye.relative(ye.dirname(l.file),c);!f.startsWith(".")&&!ye.isAbsolute(f)&&(f="./"+f),f=El(f);{let p=l.root,m=Rl.atRule({name:"config",params:`'${f}'`});l.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?l.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(f){E("Could not load the configuration file: "+f.message,{prefix:"\u21B3 "}),process.exit(1)}}import Ss from"postcss";import En from"fs/promises";import Rn,{extname as us}from"path";function en(e,t){if(!t[0])return e;t.sort((i,o)=>i.end-o.end||i.start-o.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let o=t[i];r+=e.slice(n.end,o.start),r+=o.replacement,n=o}return r+=e.slice(n.end),r}import{Scanner as _l}from"@tailwindcss/oxide";async function tn(e,t="html"){let n=new _l({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:s}of n)i.push({rawCandidate:o,start:s,end:s+o.length});return i}function ve(e){let t=structuredClone(e);return t.important=!1,t.variants=[],t}function q(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function rn(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Ol=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Dl=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],Ul=/placeholder=\{?['"`]$/,Ml=/\b\$?emit\(['"`]$/;function on(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let u=Il.get(t.contents);for(let l=0;l<u.length;l+=2){let c=u[l],f=u[l+1];if(t.start>=c&&t.end<=f)return!1}}let[n]=z(e,r);if(!n&&Bi(3))return!1;if(n&&(n.variants.length>0||n.kind==="arbitrary"||n.kind==="static"&&n.root.includes("-")||n.kind==="functional"&&n.value!==null||n.kind==="functional"&&n.root.includes("-")||n.kind==="functional"&&n.modifier))return!0;let i="";for(let u=t.start-1;u>=0;u--){let l=t.contents.at(u);if(l===`
215
215
  `)break;i=l+i}let o="";for(let u=t.end;u<t.contents.length;u++){let l=t.contents.at(u);if(l===`
216
- `)break;o+=l}let s=tn(i),a=tn(o);if(!s||!a||o[0]==="."||o.trim().startsWith("("))return!1;for(let u of Nl)if(o.trim().startsWith(u)||i.trim().endsWith(u))return!1;for(let u of Pl)if(u.test(i))return!1;return!(El.test(i)||Rl.test(i))}var _l=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),Ol=92,Dl=34,Ul=39,Il=96;function tn(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case Ol:r++;break;case Ul:case Dl:case Il:t===n?t=null:t===null&&(t=n);break}}return t!==null}var Ge=new y(e=>{let t=/^(?<value>-?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)$/i.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=t.groups?.unit;if(n===void 0)return null;let i=Number(r);return Number.isNaN(i)?null:[i,n]});var j=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[te(".x",[$("@apply",t)])];return Ml(e,()=>{for(let i of e.parseCandidate(t))e.compileAstNodes(i,0),e.compileAstNodes(i,1);Fe(r,e)}),r=structuredClone(r),C(r,(i,{replaceWith:o})=>{i.kind==="declaration"?(i.value===void 0||i.property==="--tw-sort")&&o([]):i.kind==="context"||i.kind==="at-root"?o(i.nodes):i.kind==="comment"&&o([])}),C(r,i=>{if(i.kind==="declaration"&&i.value!==void 0){if(i.value.includes("var(")){let o=k(i.value),s=new Set;S(o,(a,{replaceWith:u})=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let l=a.nodes[0].value;e.theme.prefix&&l.startsWith(`--${e.theme.prefix}-`)&&(l=l.slice(`--${e.theme.prefix}-`.length));let f=e.resolveThemeValue(l);if(!s.has(l)&&(s.add(l),f!==void 0&&(a.nodes.length===1&&a.nodes.push(...k(`,${f}`)),a.nodes.length>=3))){let c=b(a.nodes),p=`${a.nodes[0].value},${f}`;c===p&&u(k(f))}}),i.value=b(o)}if(i.value.includes("calc")){let o=!1,s=k(i.value);S(s,(a,{replaceWith:u})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let l=Ge.get(a.nodes[0].value);if(l===null)return;let[f,c]=l,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,u(k(`${f*p}${c}`)))}),o&&(i.value=b(s))}i.value=Ut(i.value)}}),K(r)}catch{return Symbol()}})),ht=new y(e=>{let t=j.get(e),r=new y(()=>[]);for(let[n,i]of e.getClassList()){let o=t.get(n);if(typeof o=="string"){r.get(o).push(n);for(let s of i.modifiers){if(ee(s))continue;let a=`${n}/${s}`,u=t.get(a);typeof u=="string"&&r.get(u).push(a)}}}return r}),Je=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[te(".x",[$("@apply",`${t}:flex`)])];return Fe(r,e),C(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=Wt(i.selector),s=!1;et(o,(a,{replaceWith:u})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),s=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(s=!0,u(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(s=!0,u(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(s=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),s&&(i.selector=tt(o))}}),K(r)}catch{return Symbol()}})),nn=new y(e=>{let t=Je.get(e),r=new y(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r});function Ml(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}var or=new y(()=>new Map),jl=new y(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Ge.get(t);if(!r)return null;let[n,i]=r;return new y(o=>{let s=Ge.get(o);if(!s)return null;let[a,u]=s;return u!==i?null:a/n})});function on(e,t,r){let n=ht.get(e),i=j.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="arbitrary"&&!(s.kind==="functional"&&s.value?.kind==="arbitrary"))continue;let a=structuredClone(s),u=he(a),l=e.printCandidate(u);if(or.get(e).has(l)){let c=structuredClone(or.get(e).get(l));return c.variants=a.variants,c.important=a.important,e.printCandidate(c)}let f=i.get(l);if(typeof f=="string")for(let c of o(f,u)){let p=e.printCandidate(c);if(i.get(p)===f&&Ll(e,a,c))return c=structuredClone(c),or.get(e).set(l,c),c.variants=a.variants,c.important=a.important,Object.assign(a,c),e.printCandidate(a)}}return r;function*o(s,a){let u=n.get(s);if(!(u.length>1)){if(u.length===0&&a.modifier){let l={...a,modifier:null},f=i.get(e.printCandidate(l));if(typeof f=="string")for(let c of o(f,l))yield Object.assign({},c,{modifier:a.modifier})}if(u.length===1)for(let l of q(e,u[0]))yield l;else if(u.length===0){let l=a.kind==="arbitrary"?a.value:a.value?.value??null;if(l===null)return;let f=jl.get(e)?.get(l)??null,c="";f!==null&&f<0&&(c="-",f=Math.abs(f));for(let p of Array.from(e.utilities.keys("functional")).sort((m,d)=>+(m[0]==="-")-+(d[0]==="-"))){c&&(p=`${c}${p}`);for(let m of q(e,`${p}-${l}`))yield m;if(a.modifier)for(let m of q(e,`${p}-${l}${a.modifier}`))yield m;if(f!==null){for(let m of q(e,`${p}-${f}`))yield m;if(a.modifier)for(let m of q(e,`${p}-${f}${Dt(a.modifier)}`))yield m}for(let m of q(e,`${p}-[${l}]`))yield m;if(a.modifier)for(let m of q(e,`${p}-[${l}]${Dt(a.modifier)}`))yield m}}}}}function Ll(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
217
- `),o=!0;return S(k(n),s=>{if(s.kind==="function"&&s.value==="var"){let a=s.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,2}}),o}function*ye(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}function an(e,t,r){let n=j.get(e);for(let i of F(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let a=n.get(r);if(a!==null){for(let u of ln(o))if(n.get(e.printCandidate({...o,value:u}))===a){s=!0,o.value=u;break}}}for(let[a]of ye(o))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))s=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[u,l]=w(a.value.value,"=");if(u[u.length-1]==="~"||u[u.length-1]==="|"||u[u.length-1]==="^"||u[u.length-1]==="$"||u[u.length-1]==="*")continue;s=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(s=!0,a.value={kind:"named",value:a.value.value});return s?e.printCandidate(o):r}return r}function*ln(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&ee(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,s]=t.split("/");R(o)&&R(s)&&(yield{kind:"named",value:o,fraction:`${o}/${s}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,s)=>o.length-s.length);for(let o of i)yield*ln(e,o,r)}function H(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function sn(e,t,r){let n=Je.get(e),i=nn.get(e);for(let o of e.parseCandidate(r)){if(o.variants.length<=0)return r;let s=structuredClone(o);for(let[a]of ye(s)){if(a.kind==="compound")continue;let u=e.printVariant(a),l=n.get(u);if(typeof l!="string")continue;let f=i.get(l);if(f.length!==1)continue;let c=f[0],p=e.parseVariant(c);p!==null&&H(a,p)}return e.printCandidate(s)}return r}function un(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!vt(e,i,i.modifier.value)){let{value:s,didChange:a}=yt(i.modifier.value);i.modifier.value=s,o||=a}for(let s of i.variants)fn(e,s)&&(o=!0);if(i.kind==="arbitrary"&&!vt(e,i,i.value)){let{value:s,didChange:a}=yt(i.value);i.value=s,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!vt(e,i,i.value.value)){let{value:s,didChange:a}=yt(i.value.value);i.value.value=s,o||=a}if(o)return e.printCandidate(i)}return r}function yt(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||k(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function fn(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!vt(e,Fl(t),t.value.value)){let{value:n,didChange:i}=yt(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&fn(e,t.variant)&&(r=!0),r}function Fl(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var zl=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function vt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return C(n,o=>{if(o.kind==="declaration"&&zl.has(o.property)&&o.value==r)return i=!0,2}),i}var ar=new y(()=>new Map);function cn(e,t,r){let n=ht.get(e),i=j.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="functional"||s.value?.kind!=="named")continue;let a=structuredClone(s),u=he(a),l=e.printCandidate(u);if(ar.get(e).has(l)){let c=structuredClone(ar.get(e).get(l));return c.variants=a.variants,c.important=a.important,e.printCandidate(c)}let f=i.get(l);if(typeof f=="string")for(let c of o(f,u)){let p=e.printCandidate(c);if(i.get(p)===f)return c=structuredClone(c),ar.get(e).set(l,c),c.variants=a.variants,c.important=a.important,Object.assign(a,c),e.printCandidate(a)}}return r;function*o(s,a){let u=n.get(s);if(!(u.length>1)){if(u.length===0&&a.modifier){let l={...a,modifier:null},f=i.get(e.printCandidate(l));if(typeof f=="string")for(let c of o(f,l))yield Object.assign({},c,{modifier:a.modifier})}if(u.length===1)for(let l of q(e,u[0]))yield l}}}var Kl=["t","tr","r","br","b","bl","l","tl"];function pn(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="static"&&n.root.startsWith("bg-gradient-to-")){let i=n.root.slice(15);if(!Kl.includes(i))continue;return e.printCandidate({...n,root:`bg-linear-to-${i}`})}return r}function dn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=structuredClone(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=mn(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=mn(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function mn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function gn(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}var Wl=new Map([["order-none","order-0"]]);async function hn(e,t,r){let n=j.get(e);for(let i of e.parseCandidate(r)){let o=structuredClone(i),s=he(o),a=en(e,s),u=Wl.get(a)??null;if(u===null)return r;let l=n.get(a);if(typeof l!="string")return r;let f=n.get(u);if(typeof f!="string"||l!==f)return r;let[c]=q(e,u);return e.printCandidate(Object.assign(structuredClone(c),{variants:o.variants,important:o.important}))}return r}function yn(e,t,r){let n=j.get(e);for(let i of e.parseCandidate(r))if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType!==null){let o=e.printCandidate({...i,value:{...i.value,dataType:null}});if(n.get(r)===n.get(o))return o}return r}function vn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function wn(e,t,r){for(let n of F(r,e)){let i=structuredClone(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=w(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as Bl}from"@tailwindcss/node";import ql from"path";import Hl from"url";var Gl=Hl.fileURLToPath(import.meta.url),Jl=ql.dirname(Gl),Yl=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"],["outline","outline-solid"]]),kn=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),Ql=new y(e=>Bl('@import "tailwindcss";',{base:e}));async function bn(e,t,r){if(!P(3))return r;let n=await Ql.get(Jl);function*i(o){for(let s of e.parseCandidate(o)){let a=he(s),u=e.printCandidate(a),l=Yl.get(u);if(!l)continue;let[f]=e.parseCandidate(l);if(!f)continue;let c=structuredClone(f);c.variants=s.variants,c.important=s.important,yield[c,kn.get(u),kn.get(l)]}}for(let[o,s,a]of i(r)){if(s&&a){let u=e.resolveThemeValue(s,!0),l=n.resolveThemeValue(s,!0),f=e.resolveThemeValue(a,!0),c=n.resolveThemeValue(a);if(f===void 0&&c!==void 0||u!==l||f!==c)continue}return e.printCandidate(o)}return r}function xn(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import Zl from"postcss-selector-parser";function Cn(e,t,r){let n=Je.get(e);for(let i of F(r,e)){let o=structuredClone(i),s=!1;for(let[a,u]of ye(o)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(s=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(s=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let l=Zl().astSync(a.selector);if(l.nodes.length!==1)continue;if(u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="universal"){s=!0,H(a,e.parseVariant("*"));continue}if(u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="universal"){s=!0,H(a,e.parseVariant("**"));continue}if(u===null&&l.nodes[0].nodes.length===3&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="nesting"){l.nodes[0].nodes.pop(),l.nodes[0].nodes.pop(),s=!0,H(a,e.parseVariant(`in-[${l.toString()}]`));continue}if(u===null&&l.nodes[0].nodes[0].type==="tag"&&(l.nodes[0].nodes[0].value.startsWith("@media")||l.nodes[0].nodes[0].value.startsWith("@supports"))){let m=n.get(e.printVariant(a)),d=k(l.nodes[0].toString().trim()),g=!1;if(S(d,(h,{replaceWith:v})=>{h.kind==="word"&&h.value==="not"&&(g=!0,v([]))}),d=k(b(d)),S(d,h=>{h.kind==="separator"&&h.value!==" "&&h.value.trim()===""&&(h.value=" ")}),g){let h=e.parseVariant(`not-[${b(d)}]`);if(h===null)continue;let v=n.get(e.printVariant(h));if(m===v){s=!0,H(a,h);continue}}}let f=null;u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],f=e.parseVariant("*")),u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],f=e.parseVariant("**"));let c=l.nodes[0].filter(m=>m.type!=="nesting");if(c.length!==1)continue;let p=c[0];if(p.type==="pseudo"&&p.value===":is"){if(p.nodes.length!==1||p.nodes[0].nodes.length!==1)continue;p=p.nodes[0].nodes[0]}if(p.type==="pseudo"){let m=p,d=!1;if(p.value===":not"){if(d=!0,p.nodes.length!==1||p.nodes[0].type!=="selector"||p.nodes[0].nodes.length!==1||p.nodes[0].nodes[0].type!=="pseudo")continue;m=p.nodes[0].nodes[0]}let g=(v=>{if(v===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(v===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[A,N]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(v===A&&m.nodes.length===1)return m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&R(m.nodes[0].nodes[0].value)?`${N}-${m.nodes[0].nodes[0].value}`:`${N}-[${m.nodes[0].toString()}]`;if(d){let A=n.get(e.printVariant(a)),N=n.get(`not-[${v}]`);if(A===N)return`[&${v}]`}return null})(m.value);if(g===null)continue;d&&(g=`not-${g}`);let h=e.parseVariant(g);if(h===null)continue;s=!0,H(a,structuredClone(h))}else if(p.type==="attribute"){let m=p.attribute,d=p.value?p.quoted?`${p.quoteMark}${p.value}${p.quoteMark}`:p.value:null;p.insensitive&&d&&(d+=" i");let g=p.operator??"=";m.startsWith("data-")?(s=!0,m=m.slice(5),H(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}})):m.startsWith("aria-")&&(s=!0,m=m.slice(5),H(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:m}:g==="="&&p.value==="true"&&!p.insensitive?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}}))}if(f){let m=o.variants.indexOf(a);if(m===-1)continue;o.variants.splice(m,1,a,f)}}}return s?e.printCandidate(o):r}return r}function An(e,t,r){let n=j.get(e);for(let i of e.parseCandidate(r)){let o=structuredClone(i);if(o.kind==="functional"&&o.modifier!==null||o.kind==="arbitrary"&&o.modifier!==null){let s=n.get(r),a=o.modifier,u=!1;if(s===n.get(e.printCandidate({...o,modifier:null}))&&(u=!0,o.modifier=null),!u){let l={kind:"named",value:a.value.endsWith("%")?a.value.slice(0,-1):a.value,fraction:null};s===n.get(e.printCandidate({...o,modifier:l}))&&(u=!0,o.modifier=l)}if(!u){let l={kind:"named",value:`${parseFloat(a.value)*100}`,fraction:null};s===n.get(e.printCandidate({...o,modifier:l}))&&(u=!0,o.modifier=l)}return u?e.printCandidate(o):r}}return r}var wt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","bg-left-top":"bg-top-left","bg-left-bottom":"bg-bottom-left","bg-right-top":"bg-top-right","bg-right-bottom":"bg-bottom-right","object-left-top":"object-top-left","object-left-bottom":"object-bottom-left","object-right-top":"object-top-right","object-right-bottom":"object-bottom-right"},Sn=new WeakSet;function $n(e,t,r){if(P(3)&&(wt["outline-none"]="outline-hidden"),!Sn.has(e)){for(let n in wt)e.utilities.static(n,()=>[]);Sn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(wt,n.root))return e.printCandidate({...n,root:wt[n.root]});return r}function Tn(e,t,r){let n=lr(e);for(let i of F(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="arbitrary"){let[a,u]=n(o.value,o.modifier===null?1:0);a!==o.value&&(s=!0,o.value=a,u!==null&&(o.modifier=u))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a,u]=n(o.value.value,o.modifier===null?1:0);a!==o.value.value&&(s=!0,o.value.value=a,u!==null&&(o.modifier=u))}for(let[a]of ye(o))if(a.kind==="arbitrary"){let[u]=n(a.selector,2);u!==a.selector&&(s=!0,a.selector=u)}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[u]=n(a.value.value,2);u!==a.value.value&&(s=!0,a.value.value=u)}return s?e.printCandidate(o):r}return r}function lr(e,{prettyPrint:t=!1}={}){function r(s,a=0){let u=k(s);if(a&2)return[kt(u,o),null];let l=0,f=0;if(S(u,m=>{m.kind==="function"&&m.value==="theme"&&(l+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(f+=1,2):1))}),l===0)return[s,null];if(f===0)return[kt(u,i),null];if(f>1)return[kt(u,o),null];let c=null;return[kt(u,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(u.length===1&&g.length===2&&a&1){let[h,v]=g;if(/^\d+%$/.test(v))c={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let A=Number(v)*100;c={kind:Number.isInteger(A)?"named":"arbitrary",value:A.toString()}}else c={kind:"arbitrary",value:v};m=h}return i(m,d)||o(m,d)}),c]}function n(s){let a=`--${re(se(s))}`;return e.theme.get([a])?e.theme.prefix?`--${e.theme.prefix}-${a.slice(2)}`:a:null}function i(s,a){let u=n(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let l=se(s);if(l[0]==="spacing"&&e.theme.get(["--spacing"])){let f=l[1];return ee(f)?`--spacing(${f})`:null}return null}function o(s,a){let u=w(s,"/").map(c=>c.trim());s=u.shift();let l=n(s);if(!l)return null;let f=u.length>0?t?` / ${u.join(" / ")}`:`/${u.join("/")}`:"";return a?`--theme(${l}${f}, ${a})`:`--theme(${l}${f})`}return r}function kt(e,t){return S(e,(r,{parent:n,replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let s=o.value,a=1;for(let f=a;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)s+=b([r.nodes[f]]),a=f+1;s=Xl(s);let u=r.nodes.slice(a+1),l=u.length>0?t(s,b(u)):t(s);if(l===null)return;if(n){let f=n.nodes.indexOf(r)-1;for(;f!==-1;){let c=n.nodes[f];if(c.kind==="separator"&&c.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(l=`(${l})`);break}}i(k(l))}}),b(e)}function Xl(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Vn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],s=[],a=n.variants;for(let f of n.variants)es(e,f)?i.push(f):rs(e,f)?s.push(f):o.push(f);let u=o.some(f=>ts(e,f)),l=[...s,...u?o.reverse():o,...i];if(!is(a,l))return e.printCandidate({...n,variants:l})}return r}function es(e,t){return t.kind==="static"&&t.root==="dark"?!0:sr(e,t).every(n=>n.kind==="at-rule")}function ts(e,t){return sr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function rs(e,t){return sr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes("::after")||n.selector.includes("::backdrop")||n.selector.includes("::before")||n.selector.includes("::first-letter")||n.selector.includes("::first-line")||n.selector.includes("::marker")||n.selector.includes("::placeholder")||n.selector.includes("::selection")))}function sr(e,t){let r=[],n=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(i=>i.node);return C(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function is(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var os=[vn,Bi,gn,pn,$n,dn,bn,xn,Tn,Vn,un,wn,on,cn,hn,Cn,sn,yn,an,An],as=new y(e=>new y(t=>new y(async r=>{let n=r;for(let o of os)r=await o(e,t,r);return typeof j.get(e).get(r)!="string"?n:r})));async function ur(e,t,r,n){return n&&!rn(r,n,e)?r:as.get(e).get(t).get(r)}async function En(e,t,r,n){let i=await Xi(r,n),o=[];for(let{rawCandidate:s,start:a,end:u}of i){let l=await ur(e,t,s,{contents:r,start:a,end:u});l!==s&&o.push({start:a,end:u,replacement:l})}return Zi(r,o)}async function Rn(e,t,r){let n=Pn.isAbsolute(r)?r:Pn.resolve(process.cwd(),r),i=await Nn.readFile(n,"utf-8");await Nn.writeFile(n,await En(e,t,i,ns(r)))}function _n({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let s=i.map(a=>{if(a.trim()==="")return a;let u=w(a,":"),l=u.pop();return o&&l[0]!=="!"&&l[l.length-1]!=="!"&&(l+="!"),[...u,l].join(":")});return async()=>{e&&(s=await Promise.all(s.map(async a=>await ur(e,t,a))),n.params=s.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import bt from"postcss-selector-parser";function Dn(e){function t(r){if(!P(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();E(r,s=>{if(s.type!=="rule")return;let a=w(s.selector,",");if(a.length>1){let u=[];for(let l of a){let f=s.clone({selector:l});u.push(f)}s.replaceWith(u)}return 1});let i=new Set;E(r,s=>{if(s.type==="rule")return bt(a=>{a.each(u=>{E(u,l=>{if(l.type==="pseudo"&&l.value===":not")return 1;l.type==="class"&&i.add(l.value)})})}).processSync(s.selector,{updateSelector:!1}),1}),E(n,s=>{s.type==="rule"&&bt(a=>{a.each(u=>{E(u,l=>{if(l.type==="pseudo"&&l.value===":not")return 1;if(l.type==="class"&&i.has(l.value))return s.remove(),2})})}).processSync(s,{updateSelector:!0})});let o=[n];for(let s of i){let a=r.clone();o.push(a),E(a,u=>{if(u.type==="atrule"&&(!u.nodes||u.nodes?.length===0)&&u.remove(),u.type!=="rule")return;let l=!1;if(bt(f=>{f.each(c=>{E(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===s){l=!0;let m=c.atPosition(p.source.start.line,p.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),v=d.at(g);d.at(g+1).replaceWith(v),d.at(g).replaceWith(h),g--}m.replaceWith(bt.nesting())}})})}).processSync(u,{updateSelector:!0}),!l){let f=[u],c=u.parent?.index(u)??null;if(c!==null)for(let p=c-1;p>=0&&u.parent?.nodes.at(p)?.type!=="rule";p--)u.parent?.nodes.at(p)?.type==="comment"&&f.push(u.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),a.name="utility",a.params=s,a.raws.before=`${a.raws.before??""}
216
+ `)break;o+=l}let s=nn(i),a=nn(o);if(!s||!a||o[0]==="."||o.trim().startsWith("("))return!1;for(let u of Ol)if(o.trim().startsWith(u)||i.trim().endsWith(u))return!1;for(let u of Dl)if(u.test(i))return!1;return!(Ul.test(i)||Ml.test(i))}var Il=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),Ll=92,jl=34,Fl=39,zl=96;function nn(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case Ll:r++;break;case Fl:case jl:case zl:t===n?t=null:t===null&&(t=n);break}}return t!==null}var Ye=new y(e=>{let t=/^(?<value>-?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)$/i.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=t.groups?.unit;if(n===void 0)return null;let i=Number(r);return Number.isNaN(i)?null:[i,n]});var L=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[re(".x",[$("@apply",t)])];return Kl(e,()=>{for(let i of e.parseCandidate(t))e.compileAstNodes(i,0),e.compileAstNodes(i,1);Ke(r,e)}),r=structuredClone(r),C(r,(i,{replaceWith:o})=>{i.kind==="declaration"?(i.value===void 0||i.property==="--tw-sort")&&o([]):i.kind==="context"||i.kind==="at-root"?o(i.nodes):i.kind==="comment"&&o([])}),C(r,i=>{if(i.kind==="declaration"&&i.value!==void 0){if(i.value.includes("var(")){let o=k(i.value),s=new Set;S(o,(a,{replaceWith:u})=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let l=a.nodes[0].value;e.theme.prefix&&l.startsWith(`--${e.theme.prefix}-`)&&(l=l.slice(`--${e.theme.prefix}-`.length));let c=e.resolveThemeValue(l);if(!s.has(l)&&(s.add(l),c!==void 0&&(a.nodes.length===1&&a.nodes.push(...k(`,${c}`)),a.nodes.length>=3))){let f=x(a.nodes),p=`${a.nodes[0].value},${c}`;f===p&&u(k(c))}}),i.value=x(o)}if(i.value.includes("calc")){let o=!1,s=k(i.value);S(s,(a,{replaceWith:u})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let l=Ye.get(a.nodes[0].value);if(l===null)return;let[c,f]=l,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,u(k(`${c*p}${f}`)))}),o&&(i.value=x(s))}i.value=Lt(i.value)}}),W(r)}catch{return Symbol()}})),wt=new y(e=>{let t=L.get(e),r=new y(()=>[]);for(let[n,i]of e.getClassList()){let o=t.get(n);if(typeof o=="string"){r.get(o).push(n);for(let s of i.modifiers){if(te(s))continue;let a=`${n}/${s}`,u=t.get(a);typeof u=="string"&&r.get(u).push(a)}}}return r}),Qe=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[re(".x",[$("@apply",`${t}:flex`)])];return Ke(r,e),C(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=qt(i.selector),s=!1;it(o,(a,{replaceWith:u})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),s=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(s=!0,u(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(s=!0,u(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(s=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),s&&(i.selector=nt(o))}}),W(r)}catch{return Symbol()}})),an=new y(e=>{let t=Qe.get(e),r=new y(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r});function Kl(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}var ur=new y(()=>new Map),Wl=new y(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Ye.get(t);if(!r)return null;let[n,i]=r;return new y(o=>{let s=Ye.get(o);if(!s)return null;let[a,u]=s;return u!==i?null:a/n})});function ln(e,t,r){let n=wt.get(e),i=L.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="arbitrary"&&!(s.kind==="functional"&&s.value?.kind==="arbitrary"))continue;let a=structuredClone(s),u=ve(a),l=e.printCandidate(u);if(ur.get(e).has(l)){let f=structuredClone(ur.get(e).get(l));return f.variants=a.variants,f.important=a.important,e.printCandidate(f)}let c=i.get(l);if(typeof c=="string")for(let f of o(c,u)){let p=e.printCandidate(f);if(i.get(p)===c&&Bl(e,a,f))return f=structuredClone(f),ur.get(e).set(l,f),f.variants=a.variants,f.important=a.important,Object.assign(a,f),e.printCandidate(a)}}return r;function*o(s,a){let u=n.get(s);if(!(u.length>1)){if(u.length===0&&a.modifier){let l={...a,modifier:null},c=i.get(e.printCandidate(l));if(typeof c=="string")for(let f of o(c,l))yield Object.assign({},f,{modifier:a.modifier})}if(u.length===1)for(let l of q(e,u[0]))yield l;else if(u.length===0){let l=a.kind==="arbitrary"?a.value:a.value?.value??null;if(l===null)return;let c=Wl.get(e)?.get(l)??null,f="";c!==null&&c<0&&(f="-",c=Math.abs(c));for(let p of Array.from(e.utilities.keys("functional")).sort((m,d)=>+(m[0]==="-")-+(d[0]==="-"))){f&&(p=`${f}${p}`);for(let m of q(e,`${p}-${l}`))yield m;if(a.modifier)for(let m of q(e,`${p}-${l}${a.modifier}`))yield m;if(c!==null){for(let m of q(e,`${p}-${c}`))yield m;if(a.modifier)for(let m of q(e,`${p}-${c}${It(a.modifier)}`))yield m}for(let m of q(e,`${p}-[${l}]`))yield m;if(a.modifier)for(let m of q(e,`${p}-[${l}]${It(a.modifier)}`))yield m}}}}}function Bl(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
217
+ `),o=!0;return S(k(n),s=>{if(s.kind==="function"&&s.value==="var"){let a=s.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,2}}),o}function*we(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}function sn(e,t,r){let n=L.get(e);for(let i of z(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let a=n.get(r);if(a!==null){for(let u of un(o))if(n.get(e.printCandidate({...o,value:u}))===a){s=!0,o.value=u;break}}}for(let[a]of we(o))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))s=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[u,l]=w(a.value.value,"=");if(u[u.length-1]==="~"||u[u.length-1]==="|"||u[u.length-1]==="^"||u[u.length-1]==="$"||u[u.length-1]==="*")continue;s=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(s=!0,a.value={kind:"named",value:a.value.value});return s?e.printCandidate(o):r}return r}function*un(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&te(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,s]=t.split("/");_(o)&&_(s)&&(yield{kind:"named",value:o,fraction:`${o}/${s}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,s)=>o.length-s.length);for(let o of i)yield*un(e,o,r)}function H(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function cn(e,t,r){let n=Qe.get(e),i=an.get(e);for(let o of e.parseCandidate(r)){if(o.variants.length<=0)return r;let s=structuredClone(o);for(let[a]of we(s)){if(a.kind==="compound")continue;let u=e.printVariant(a),l=n.get(u);if(typeof l!="string")continue;let c=i.get(l);if(c.length!==1)continue;let f=c[0],p=e.parseVariant(f);p!==null&&H(a,p)}return e.printCandidate(s)}return r}function fn(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!bt(e,i,i.modifier.value)){let{value:s,didChange:a}=kt(i.modifier.value);i.modifier.value=s,o||=a}for(let s of i.variants)pn(e,s)&&(o=!0);if(i.kind==="arbitrary"&&!bt(e,i,i.value)){let{value:s,didChange:a}=kt(i.value);i.value=s,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!bt(e,i,i.value.value)){let{value:s,didChange:a}=kt(i.value.value);i.value.value=s,o||=a}if(o)return e.printCandidate(i)}return r}function kt(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||k(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function pn(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!bt(e,ql(t),t.value.value)){let{value:n,didChange:i}=kt(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&pn(e,t.variant)&&(r=!0),r}function ql(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Hl=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function bt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return C(n,o=>{if(o.kind==="declaration"&&Hl.has(o.property)&&o.value==r)return i=!0,2}),i}var cr=new y(()=>new Map);function mn(e,t,r){let n=wt.get(e),i=L.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="functional"||s.value?.kind!=="named")continue;let a=structuredClone(s),u=ve(a),l=e.printCandidate(u);if(cr.get(e).has(l)){let f=structuredClone(cr.get(e).get(l));return f.variants=a.variants,f.important=a.important,e.printCandidate(f)}let c=i.get(l);if(typeof c=="string")for(let f of o(c,u)){let p=e.printCandidate(f);if(i.get(p)===c)return f=structuredClone(f),cr.get(e).set(l,f),f.variants=a.variants,f.important=a.important,Object.assign(a,f),e.printCandidate(a)}}return r;function*o(s,a){let u=n.get(s);if(!(u.length>1)){if(u.length===0&&a.modifier){let l={...a,modifier:null},c=i.get(e.printCandidate(l));if(typeof c=="string")for(let f of o(c,l))yield Object.assign({},f,{modifier:a.modifier})}if(u.length===1)for(let l of q(e,u[0]))yield l}}}var Gl=["t","tr","r","br","b","bl","l","tl"];function dn(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="static"&&n.root.startsWith("bg-gradient-to-")){let i=n.root.slice(15);if(!Gl.includes(i))continue;return e.printCandidate({...n,root:`bg-linear-to-${i}`})}return r}function hn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=structuredClone(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=gn(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=gn(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function gn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function yn(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}var Jl=new Map([["order-none","order-0"]]);async function vn(e,t,r){let n=L.get(e);for(let i of e.parseCandidate(r)){let o=structuredClone(i),s=ve(o),a=rn(e,s),u=Jl.get(a)??null;if(u===null)return r;let l=n.get(a);if(typeof l!="string")return r;let c=n.get(u);if(typeof c!="string"||l!==c)return r;let[f]=q(e,u);return e.printCandidate(Object.assign(structuredClone(f),{variants:o.variants,important:o.important}))}return r}function wn(e,t,r){let n=L.get(e);for(let i of e.parseCandidate(r))if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType!==null){let o=e.printCandidate({...i,value:{...i.value,dataType:null}});if(n.get(r)===n.get(o))return o}return r}function kn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function bn(e,t,r){for(let n of z(r,e)){let i=structuredClone(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=w(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as Yl}from"@tailwindcss/node";import Ql from"path";import Zl from"url";var Xl=Zl.fileURLToPath(import.meta.url),es=Ql.dirname(Xl),ts=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"],["outline","outline-solid"]]),xn=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),rs=new y(e=>Yl('@import "tailwindcss";',{base:e}));async function Cn(e,t,r){if(!P(3))return r;let n=await rs.get(es);function*i(o){for(let s of e.parseCandidate(o)){let a=ve(s),u=e.printCandidate(a),l=ts.get(u);if(!l)continue;let[c]=e.parseCandidate(l);if(!c)continue;let f=structuredClone(c);f.variants=s.variants,f.important=s.important,yield[f,xn.get(u),xn.get(l)]}}for(let[o,s,a]of i(r)){if(s&&a){let u=e.resolveThemeValue(s,!0),l=n.resolveThemeValue(s,!0),c=e.resolveThemeValue(a,!0),f=n.resolveThemeValue(a);if(c===void 0&&f!==void 0||u!==l||c!==f)continue}return e.printCandidate(o)}return r}function An(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import is from"postcss-selector-parser";function Sn(e,t,r){let n=Qe.get(e);for(let i of z(r,e)){let o=structuredClone(i),s=!1;for(let[a,u]of we(o)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(s=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(s=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let l=is().astSync(a.selector);if(l.nodes.length!==1)continue;if(u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="universal"){s=!0,H(a,e.parseVariant("*"));continue}if(u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="universal"){s=!0,H(a,e.parseVariant("**"));continue}if(u===null&&l.nodes[0].nodes.length===3&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="nesting"){l.nodes[0].nodes.pop(),l.nodes[0].nodes.pop(),s=!0,H(a,e.parseVariant(`in-[${l.toString()}]`));continue}if(u===null&&l.nodes[0].nodes[0].type==="tag"&&(l.nodes[0].nodes[0].value.startsWith("@media")||l.nodes[0].nodes[0].value.startsWith("@supports"))){let m=n.get(e.printVariant(a)),d=k(l.nodes[0].toString().trim()),g=!1;if(S(d,(h,{replaceWith:v})=>{h.kind==="word"&&h.value==="not"&&(g=!0,v([]))}),d=k(x(d)),S(d,h=>{h.kind==="separator"&&h.value!==" "&&h.value.trim()===""&&(h.value=" ")}),g){let h=e.parseVariant(`not-[${x(d)}]`);if(h===null)continue;let v=n.get(e.printVariant(h));if(m===v){s=!0,H(a,h);continue}}}let c=null;u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],c=e.parseVariant("*")),u===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],c=e.parseVariant("**"));let f=l.nodes[0].filter(m=>m.type!=="nesting");if(f.length!==1)continue;let p=f[0];if(p.type==="pseudo"&&p.value===":is"){if(p.nodes.length!==1||p.nodes[0].nodes.length!==1)continue;p=p.nodes[0].nodes[0]}if(p.type==="pseudo"){let m=p,d=!1;if(p.value===":not"){if(d=!0,p.nodes.length!==1||p.nodes[0].type!=="selector"||p.nodes[0].nodes.length!==1||p.nodes[0].nodes[0].type!=="pseudo")continue;m=p.nodes[0].nodes[0]}let g=(v=>{if(v===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(v===":nth-child"&&m.nodes.length===1&&m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&m.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[A,N]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(v===A&&m.nodes.length===1)return m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&_(m.nodes[0].nodes[0].value)?`${N}-${m.nodes[0].nodes[0].value}`:`${N}-[${m.nodes[0].toString()}]`;if(d){let A=n.get(e.printVariant(a)),N=n.get(`not-[${v}]`);if(A===N)return`[&${v}]`}return null})(m.value);if(g===null)continue;d&&(g=`not-${g}`);let h=e.parseVariant(g);if(h===null)continue;s=!0,H(a,structuredClone(h))}else if(p.type==="attribute"){let m=p.attribute,d=p.value?p.quoted?`${p.quoteMark}${p.value}${p.quoteMark}`:p.value:null;p.insensitive&&d&&(d+=" i");let g=p.operator??"=";m.startsWith("data-")?(s=!0,m=m.slice(5),H(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}})):m.startsWith("aria-")&&(s=!0,m=m.slice(5),H(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:m}:g==="="&&p.value==="true"&&!p.insensitive?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}}))}if(c){let m=o.variants.indexOf(a);if(m===-1)continue;o.variants.splice(m,1,a,c)}}}return s?e.printCandidate(o):r}return r}function $n(e,t,r){let n=L.get(e);for(let i of e.parseCandidate(r)){let o=structuredClone(i);if(o.kind==="functional"&&o.modifier!==null||o.kind==="arbitrary"&&o.modifier!==null){let s=n.get(r),a=o.modifier,u=!1;if(s===n.get(e.printCandidate({...o,modifier:null}))&&(u=!0,o.modifier=null),!u){let l={kind:"named",value:a.value.endsWith("%")?a.value.slice(0,-1):a.value,fraction:null};s===n.get(e.printCandidate({...o,modifier:l}))&&(u=!0,o.modifier=l)}if(!u){let l={kind:"named",value:`${parseFloat(a.value)*100}`,fraction:null};s===n.get(e.printCandidate({...o,modifier:l}))&&(u=!0,o.modifier=l)}return u?e.printCandidate(o):r}}return r}var xt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","bg-left-top":"bg-top-left","bg-left-bottom":"bg-bottom-left","bg-right-top":"bg-top-right","bg-right-bottom":"bg-bottom-right","object-left-top":"object-top-left","object-left-bottom":"object-bottom-left","object-right-top":"object-top-right","object-right-bottom":"object-bottom-right"},Vn=new WeakSet;function Tn(e,t,r){if(P(3)&&(xt["outline-none"]="outline-hidden"),!Vn.has(e)){for(let n in xt)e.utilities.static(n,()=>[]);Vn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(xt,n.root))return e.printCandidate({...n,root:xt[n.root]});return r}function Nn(e,t,r){let n=fr(e);for(let i of z(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="arbitrary"){let[a,u]=n(o.value,o.modifier===null?1:0);a!==o.value&&(s=!0,o.value=a,u!==null&&(o.modifier=u))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a,u]=n(o.value.value,o.modifier===null?1:0);a!==o.value.value&&(s=!0,o.value.value=a,u!==null&&(o.modifier=u))}for(let[a]of we(o))if(a.kind==="arbitrary"){let[u]=n(a.selector,2);u!==a.selector&&(s=!0,a.selector=u)}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[u]=n(a.value.value,2);u!==a.value.value&&(s=!0,a.value.value=u)}return s?e.printCandidate(o):r}return r}function fr(e,{prettyPrint:t=!1}={}){function r(s,a=0){let u=k(s);if(a&2)return[Ct(u,o),null];let l=0,c=0;if(S(u,m=>{m.kind==="function"&&m.value==="theme"&&(l+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(c+=1,2):1))}),l===0)return[s,null];if(c===0)return[Ct(u,i),null];if(c>1)return[Ct(u,o),null];let f=null;return[Ct(u,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(u.length===1&&g.length===2&&a&1){let[h,v]=g;if(/^\d+%$/.test(v))f={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let A=Number(v)*100;f={kind:Number.isInteger(A)?"named":"arbitrary",value:A.toString()}}else f={kind:"arbitrary",value:v};m=h}return i(m,d)||o(m,d)}),f]}function n(s){let a=`--${ie(ce(s))}`;return e.theme.get([a])?e.theme.prefix?`--${e.theme.prefix}-${a.slice(2)}`:a:null}function i(s,a){let u=n(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let l=ce(s);if(l[0]==="spacing"&&e.theme.get(["--spacing"])){let c=l[1];return te(c)?`--spacing(${c})`:null}return null}function o(s,a){let u=w(s,"/").map(f=>f.trim());s=u.shift();let l=n(s);if(!l)return null;let c=u.length>0?t?` / ${u.join(" / ")}`:`/${u.join("/")}`:"";return a?`--theme(${l}${c}, ${a})`:`--theme(${l}${c})`}return r}function Ct(e,t){return S(e,(r,{parent:n,replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let s=o.value,a=1;for(let c=a;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)s+=x([r.nodes[c]]),a=c+1;s=ns(s);let u=r.nodes.slice(a+1),l=u.length>0?t(s,x(u)):t(s);if(l===null)return;if(n){let c=n.nodes.indexOf(r)-1;for(;c!==-1;){let f=n.nodes[c];if(f.kind==="separator"&&f.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(f.value.trim())&&(l=`(${l})`);break}}i(k(l))}}),x(e)}function ns(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Pn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],s=[],a=n.variants;for(let c of n.variants)os(e,c)?i.push(c):ls(e,c)?s.push(c):o.push(c);let u=o.some(c=>as(e,c)),l=[...s,...u?o.reverse():o,...i];if(!ss(a,l))return e.printCandidate({...n,variants:l})}return r}function os(e,t){return t.kind==="static"&&t.root==="dark"?!0:pr(e,t).every(n=>n.kind==="at-rule")}function as(e,t){return pr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function ls(e,t){return pr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes("::after")||n.selector.includes("::backdrop")||n.selector.includes("::before")||n.selector.includes("::first-letter")||n.selector.includes("::first-line")||n.selector.includes("::marker")||n.selector.includes("::placeholder")||n.selector.includes("::selection")))}function pr(e,t){let r=[],n=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(i=>i.node);return C(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function ss(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var cs=[kn,Hi,yn,dn,Tn,hn,Cn,An,Nn,Pn,fn,bn,ln,mn,vn,Sn,cn,wn,sn,$n],fs=new y(e=>new y(t=>new y(async r=>{let n=r;for(let o of cs)r=await o(e,t,r);return typeof L.get(e).get(r)!="string"?n:r})));async function mr(e,t,r,n){return n&&!on(r,n,e)?r:fs.get(e).get(t).get(r)}async function _n(e,t,r,n){let i=await tn(r,n),o=[];for(let{rawCandidate:s,start:a,end:u}of i){let l=await mr(e,t,s,{contents:r,start:a,end:u});l!==s&&o.push({start:a,end:u,replacement:l})}return en(r,o)}async function On(e,t,r){let n=Rn.isAbsolute(r)?r:Rn.resolve(process.cwd(),r),i=await En.readFile(n,"utf-8");await En.writeFile(n,await _n(e,t,i,us(r)))}function Dn({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let s=i.map(a=>{if(a.trim()==="")return a;let u=w(a,":"),l=u.pop();return o&&l[0]!=="!"&&l[l.length-1]!=="!"&&(l+="!"),[...u,l].join(":")});return async()=>{e&&(s=await Promise.all(s.map(async a=>await mr(e,t,a))),n.params=s.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import At from"postcss-selector-parser";function Mn(e){function t(r){if(!P(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();R(r,s=>{if(s.type!=="rule")return;let a=w(s.selector,",");if(a.length>1){let u=[];for(let l of a){let c=s.clone({selector:l});u.push(c)}s.replaceWith(u)}return 1});let i=new Set;R(r,s=>{if(s.type==="rule")return At(a=>{a.each(u=>{R(u,l=>{if(l.type==="pseudo"&&l.value===":not")return 1;l.type==="class"&&i.add(l.value)})})}).processSync(s.selector,{updateSelector:!1}),1}),R(n,s=>{s.type==="rule"&&At(a=>{a.each(u=>{R(u,l=>{if(l.type==="pseudo"&&l.value===":not")return 1;if(l.type==="class"&&i.has(l.value))return s.remove(),2})})}).processSync(s,{updateSelector:!0})});let o=[n];for(let s of i){let a=r.clone();o.push(a),R(a,u=>{if(u.type==="atrule"&&(!u.nodes||u.nodes?.length===0)&&u.remove(),u.type!=="rule")return;let l=!1;if(At(c=>{c.each(f=>{R(f,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===s){l=!0;let m=f.atPosition(p.source.start.line,p.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),v=d.at(g);d.at(g+1).replaceWith(v),d.at(g).replaceWith(h),g--}m.replaceWith(At.nesting())}})})}).processSync(u,{updateSelector:!0}),!l){let c=[u],f=u.parent?.index(u)??null;if(f!==null)for(let p=f-1;p>=0&&u.parent?.nodes.at(p)?.type!=="rule";p--)u.parent?.nodes.at(p)?.type==="comment"&&c.push(u.parent?.nodes.at(p));for(let p of c)p.remove()}return 1}),a.name="utility",a.params=s,a.raws.before=`${a.raws.before??""}
218
218
 
219
- `}for(let s=o.length-1;s>=0;s--){let a=o[s];ir(a,u=>{if(a===n&&u.type==="comment"){let l=!1;for(let f of o)if(f!==n&&(E(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===u.source?.start?.offset)return u.remove(),l=!0,2}),l))return 1}if((u.type==="rule"||u.type==="atrule")&&u.nodes?.length===0)u.remove();else if(u.type==="rule"&&u.selector==="&"){let l=u.parent,f=!1;for(;l;){if(l.type==="rule"){f=!0;break}l=l.parent}f||u.replaceWith(u.nodes)}}),a.nodes?.length===0&&o.splice(s,1)}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let s=n({name:"layer",params:"utilities"});s.append(r.nodes),r.append(s)}r.walkAtRules("layer",t);{let s=new Map;E(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let u=s.get(a.params);u?(u.append(a.nodes),a.remove()):s.set(a.params,a)}})}o&&r.each(s=>{s.type==="atrule"&&s.name==="layer"&&s.params==="utilities"&&s.replaceWith(s.nodes??[])})}}}import xt from"path";import ls,{AtRule as ss}from"postcss";var Un=new WeakMap;function jn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=Un.get(e);if(i&&i.includes(t))return;i?i.push(t):Un.set(e,[t]);let o=e.root;if(!e.file)return;let s=new ss;if(r!==null){o.walkAtRules("config",u=>{u.remove()});let a=`
219
+ `}for(let s=o.length-1;s>=0;s--){let a=o[s];ar(a,u=>{if(a===n&&u.type==="comment"){let l=!1;for(let c of o)if(c!==n&&(R(c,f=>{if(f.type==="comment"&&f.source?.start?.offset===u.source?.start?.offset)return u.remove(),l=!0,2}),l))return 1}if((u.type==="rule"||u.type==="atrule")&&u.nodes?.length===0)u.remove();else if(u.type==="rule"&&u.selector==="&"){let l=u.parent,c=!1;for(;l;){if(l.type==="rule"){c=!0;break}l=l.parent}c||u.replaceWith(u.nodes)}}),a.nodes?.length===0&&o.splice(s,1)}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let s=n({name:"layer",params:"utilities"});s.append(r.nodes),r.append(s)}r.walkAtRules("layer",t);{let s=new Map;R(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let u=s.get(a.params);u?(u.append(a.nodes),a.remove()):s.set(a.params,a)}})}o&&r.each(s=>{s.type==="atrule"&&s.name==="layer"&&s.params==="utilities"&&s.replaceWith(s.nodes??[])})}}}import St from"path";import ps,{AtRule as ms}from"postcss";var In=new WeakMap;function Fn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=In.get(e);if(i&&i.includes(t))return;i?i.push(t):In.set(e,[t]);let o=e.root;if(!e.file)return;let s=new ms;if(r!==null){o.walkAtRules("config",u=>{u.remove()});let a=`
220
220
 
221
221
  `;a+=`
222
- @tw-bucket source {`;for(let u of r.sources){let l=xt.resolve(u.base,u.pattern);a+=`@source '${In(e,l)}';
222
+ @tw-bucket source {`;for(let u of r.sources){let l=St.resolve(u.base,u.pattern);a+=`@source '${Ln(e,l)}';
223
223
  `}a+=`}
224
224
  `,a+=`
225
225
  @tw-bucket plugin {
226
- `;for(let u of r.plugins){let l=u.path[0]==="."?In(e,xt.resolve(u.base,u.path)):u.path;if(u.options===null)a+=`@plugin '${l}';
226
+ `;for(let u of r.plugins){let l=u.path[0]==="."?Ln(e,St.resolve(u.base,u.path)):u.path;if(u.options===null)a+=`@plugin '${l}';
227
227
  `;else{a+=`@plugin '${l}' {
228
- `;for(let[f,c]of Object.entries(u.options)){let p="";typeof c=="string"?p=Mn(c):Array.isArray(c)?p=c.map(m=>typeof m=="string"?Mn(m):""+m).join(", "):p=""+c,a+=` ${f}: ${p};
228
+ `;for(let[c,f]of Object.entries(u.options)){let p="";typeof f=="string"?p=jn(f):Array.isArray(f)?p=f.map(m=>typeof m=="string"?jn(m):""+m).join(", "):p=""+f,a+=` ${c}: ${p};
229
229
  `}a+=`}
230
230
  `}}a+=`}
231
- `,s.append(ls.parse(a+r.css))}o.append(s.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function In(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=xt.relative(xt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Ht(n)}function Mn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import us from"fs/promises";import{dirname as fs,resolve as cs}from"path";import"postcss";function Ln(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...s]=w(i.params," "),a=Dr(k(o));if(!a)return;let u=a.uri[0]===".",l=a.uri.endsWith(".css");if(u&&l)return;let f=cs(fs(r),a.uri);l||(f+=".css"),n.push(us.stat(f).then(()=>{let c=l?"":".css",p=u?a.uri:`./${a.uri}`;i.params=[`'${p}${c}'`,...s].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Fn({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=be(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},s=new y(a=>{let u=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof u=="string"?`(width >= theme(--breakpoint-${a}))`:u?ii(u):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let u=a.params.match(/screen\(([^)]+)\)/);if(!u)return;let l=s.get(u[1]);l&&(a.params=l)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as ps}from"postcss";function zn(){function e(t){let r="",n=[],i=[],o=null;t.each(s=>{if(s.type==="atrule"){if(s.name==="config"||s.name==="source"||s.name==="theme"||s.name==="utility"||s.name==="custom-variant"||s.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="tailwind"&&s.params==="base"||s.name==="import"&&s.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(s.name==="tailwind"&&s.params==="components"||s.name==="import"&&s.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(s.name==="tailwind"&&s.params==="utilities"||s.name==="import"&&s.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(s.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[s]]);return}}r===""&&(s.type==="comment"||s.type==="atrule"&&!s.nodes||s.type==="atrule"&&s.name==="charset")||n.push(s)});for(let[s,a]of i){let u=s||o||"";if(u===""||a.every(c=>c.type==="comment"))continue;if(a.every(c=>c.type==="atrule"&&c.name==="import")){for(let c of a)if(!(c.type!=="atrule"||c.name!=="import")&&!c.params.includes("layer(")){let p=w(c.params," ");p.splice(1,0,`layer(${u})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let l=a[0],f=new ps({name:"layer",params:u,nodes:a.map(c=>c===l?c:c.remove()),raws:{tailwind_pretty:!0}});l.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import ms from"dedent";import ds from"postcss";var gs="currentcolor",hs=ms,ys=hs`
231
+ `,s.append(ps.parse(a+r.css))}o.append(s.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Ln(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=St.relative(St.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Jt(n)}function jn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import ds from"fs/promises";import{dirname as gs,resolve as hs}from"path";import"postcss";function zn(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...s]=w(i.params," "),a=Lr(k(o));if(!a)return;let u=a.uri[0]===".",l=a.uri.endsWith(".css");if(u&&l)return;let c=hs(gs(r),a.uri);l||(c+=".css"),n.push(ds.stat(c).then(()=>{let f=l?"":".css",p=u?a.uri:`./${a.uri}`;i.params=[`'${p}${f}'`,...s].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Kn({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Ce(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},s=new y(a=>{let u=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof u=="string"?`(width >= theme(--breakpoint-${a}))`:u?li(u):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let u=a.params.match(/screen\(([^)]+)\)/);if(!u)return;let l=s.get(u[1]);l&&(a.params=l)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as ys}from"postcss";function Wn(){function e(t){let r="",n=[],i=[],o=null;t.each(s=>{if(s.type==="atrule"){if(s.name==="config"||s.name==="source"||s.name==="theme"||s.name==="utility"||s.name==="custom-variant"||s.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="tailwind"&&s.params==="base"||s.name==="import"&&s.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(s.name==="tailwind"&&s.params==="components"||s.name==="import"&&s.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(s.name==="tailwind"&&s.params==="utilities"||s.name==="import"&&s.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(s.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(s.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[s]]);return}}r===""&&(s.type==="comment"||s.type==="atrule"&&!s.nodes||s.type==="atrule"&&s.name==="charset")||n.push(s)});for(let[s,a]of i){let u=s||o||"";if(u===""||a.every(f=>f.type==="comment"))continue;if(a.every(f=>f.type==="atrule"&&f.name==="import")){for(let f of a)if(!(f.type!=="atrule"||f.name!=="import")&&!f.params.includes("layer(")){let p=w(f.params," ");p.splice(1,0,`layer(${u})`),f.params=p.join(" "),f.raws.tailwind_injected_layer=!0}continue}let l=a[0],c=new ys({name:"layer",params:u,nodes:a.map(f=>f===l?f:f.remove()),raws:{tailwind_pretty:!0}});l.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import vs from"dedent";import ws from"postcss";var ks="currentcolor",bs=vs,xs=bs`
232
232
  /*
233
233
  The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
234
234
  so we've added these compatibility styles to make sure everything still
@@ -246,10 +246,11 @@ Update your stylesheet to use ${x("@config")} to specify the correct configurati
246
246
  border-color: theme(borderColor.DEFAULT);
247
247
  }
248
248
  }
249
- `;function Kn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let s=`--${re(se(o))}`;return!!e.theme.get([s])}function i(o){if(!P(3))return;let s=!1;if(o.walkAtRules("import",l=>{if(/['"]tailwindcss['"]/.test(l.params)||/['"]tailwindcss\/preflight['"]/.test(l.params))return s=!0,!1}),!s)return;let a="";r!==gs&&(a+=ys,a+=`
249
+ `;function Bn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let s=`--${ie(ce(o))}`;return!!e.theme.get([s])}function i(o){if(!P(3))return;let s=!1;if(o.walkAtRules("import",l=>{if(/['"]tailwindcss['"]/.test(l.params)||/['"]tailwindcss\/preflight['"]/.test(l.params))return s=!0,!1}),!s)return;let a="";r!==ks&&(a+=xs,a+=`
250
250
 
251
251
  `),a=`
252
252
  @tw-bucket compatibility {
253
253
  ${a}
254
254
  }
255
- `;let u=ds.parse(a);u.walkDecls(l=>{l.value.includes("theme(")&&(l.value=vs(k(l.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",l=>{l.walkDecls("--border-color",f=>{f.remove()}),l.nodes?.length===0&&l.remove()}),o.append(u)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function vs(e,t){return S(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,s=1;for(let l=s;l<r.nodes.length&&!r.nodes[l].value.includes(",");l++)o+=b([r.nodes[l]]),s=l+1;o=ws(o);let a=r.nodes.slice(s+1),u=a.length>0?t(o,b(a)):t(o);if(u===null)return;n(k(u))}}),b(e)}function ws(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as Ct}from"postcss";var fr=["theme","base","components","utilities"];function Wn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,s=[],a=null,u=null,l=null,f=null,c=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))c.push("base"),s.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))c.push("utilities"),s.push(p),o=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let m of p.nodes)m.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),i!==null&&o!==null?(a||At(s).before(new Ct({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(u||At(s).before(new Ct({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||At(s).before(new Ct({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),l||At(s).before(new Ct({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>fr.indexOf(m)-fr.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=fr.toSorted((d,g)=>c.indexOf(d)-c.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function At(e){let t=e.at(0),r=t.prev();for(;r;){if(r.type==="rule"&&(t=r),r.type==="atrule")if(r.name==="charset"||r.name==="import"){r=r.prev();continue}else if(r.name==="layer"&&!r.nodes){r=r.prev();continue}else t=r;r=r.prev()}return t}import"postcss";function Bn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=lr(e,{prettyPrint:!0});t.walkDecls(n=>{let[i]=r(n.value);n.value=i}),t.walkAtRules(n=>{if(n.name==="media"||n.name==="custom-media"||n.name==="container"||n.name==="supports"){let[i]=r(n.params,2);n.params=i}})}}}import"postcss";function qn(){function e(t){t.walkAtRules("variants",r=>{r.name==="variants"&&(r.name="layer",r.params="utilities")})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-variants-directive",OnceExit:e}}async function Hn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await bs(e,t)}async function bs(e,t,r){return typeof e=="string"&&(e=await Z.fromString(e),e.file=r??null),ks().use(Ln()).use(_n(t)).use(Fn(t)).use(qn()).use(Dn(e)).use(zn()).use(Wn(t)).use(jn(e,t)).use(Kn(t)).use(Bn(t)).process(e.root,{from:e.file??void 0})}import xs from"postcss";var Gn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Yn(){async function e(t){{let a=function(u,...l){s=u,o.get(u).nodes?.push(...i.splice(0),...l)};var n=a;let i=[],o=new y(u=>{let l=xs.atRule({name:"tw-bucket",params:u,nodes:[]});return t.append(l),l});t.walkAtRules("tw-bucket",u=>{o.set(u.params,u)});let s="user";E(t,u=>{if(u.type==="atrule"&&u.name==="tw-bucket")return 1;if(u.type==="comment"){if(i.length>0){i.push(u);return}let l=Jn(u.prev(),u)??1/0,f=Jn(u,u.next())??1/0;l<f?o.get(s).nodes?.push(u):i.push(u)}else u.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(u.name)?a(u.name,u):u.type==="atrule"&&u.name==="layer"&&!u.nodes||u.type==="atrule"&&u.name==="import"||u.type==="atrule"&&u.name==="charset"||u.type==="atrule"&&u.name==="tailwind"?a("import",u):(u.type==="rule"||u.type,a("user",u));return 1}),i.length>0&&a(s)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,s)=>{let a=Gn.indexOf(o.params),u=Gn.indexOf(s.params);return a-u});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Jn(e,t){return!e||!t||!e.source||!t.source||!e.source.start||!t.source.start||!e.source.end||!t.source.end?null:Math.abs(e.source.end.line-t.source.start.line)}import Cs from"postcss";async function Qn(e){let t=new Map,r=new Map;for(let a of e)t.set(a.id,a),a.file&&r.set(a.file,a);let n=new Set;for(let a of e){if(a.isTailwindRoot)continue;let u=!1,l=a.layers().size>0;E(a.root,f=>{if(f.type==="atrule"&&f.name==="utility")u=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;l=!0}return u&&l?2:1}),u&&l&&n.add(a)}let i=new Map;for(let a of e){if(!a.file||a.parents.size===0||!n.has(a)&&!Array.from(a.descendants()).some(p=>n.has(p)))continue;let u=Cs.root();E(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return u.append(p),1});let l=a.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(l);)f+=1,l=a.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await Z.fromRoot(u,l);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(a,c),t.set(c.id,c)}for(let[a,u]of i){for(let l of a.parents){let f=i.get(l.item);f&&u.parents.add({item:f,meta:l.meta})}for(let l of a.children){let f=i.get(l.item);f&&u.children.add({item:f,meta:l.meta})}}for(let a of e){let u=i.get(a),l=new Set;for(let f of a.importRules){let c=f.raws.tailwind_destination_sheet_id;if(!c)continue;let p=t.get(c);if(!p)continue;let m=i.get(p);if(!m)continue;let d=f.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],v=h.replace(/\.css$/,m.extension),A=f.clone({params:`${g}${v}${g}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});u?l.add(A):f.after(A)}u&&l.size>0&&u.root.prepend(Array.from(l))}let o=new y(()=>new Set);for(let a of t.values())for(let u of a.importRules){let l=u.raws.tailwind_destination_sheet_id;if(!l)continue;let f=t.get(l);f&&o.get(f).add(u)}let s=[];for(let a of e.slice()){for(let u of a.descendants())s.push(u);s.push(a)}for(let a of s){let u=i.get(a);if(u&&a.isEmpty){a.root=u.root;for(let l of o.get(u))l.params=l.raws.tailwind_original_params;for(let l of o.get(a))l.remove();i.delete(a)}}e.push(...i.values())}import ve from"picocolors";function Zn({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(B(ct()),e&&(B(),B(`${ve.dim("Invalid command:")} ${e}`)),t&&t.length>0){B(),B(ve.dim("Usage:"));for(let[i,o]of t.entries()){let s=o.slice(0,o.indexOf("[")),a=o.slice(o.indexOf("["));a=a.replace(/\[.*?\]/g,f=>ve.dim(f));let l=We(a,n-ft.indent-s.length-1);l.length>1&&i!==0&&B(),B(Be(`${s}${l.shift()}`));for(let f of l)B(Be(f,s.length))}}if(r){let i=0;for(let{alias:u}of Object.values(r))u&&(i=Math.max(i,u.length));let o=[],s=0;for(let[u,{alias:l}]of Object.entries(r)){let f=[l&&`${l.padStart(i)}`,l?u:" ".repeat(i+2)+u].filter(Boolean).join(", ");o.push(f),s=Math.max(s,f.length)}B(),B(ve.dim("Options:"));let a=8;for(let{description:u,default:l=null}of Object.values(r)){let f=o.shift(),c=a+(s-f.length),p=2,m=n-f.length-c-p-ft.indent,d=We(l!==null?`${u} ${ve.dim(`[default:\u202F${x(`${l}`)}]`)}`:u,m);B(Be(`${ve.blue(f)} ${ve.dim(ve.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let g of d)B(Be(`${" ".repeat(f.length+c+p)}${g}`))}}}import As from"mri";function eo(e,t=process.argv.slice(2)){let r=As(t),n={_:r._};for(let[i,{type:o,alias:s,default:a=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=a,s){let u=s.slice(1);r[u]!==void 0&&(n[i]=Xn(r[u],o))}{let u=i.slice(2);r[u]!==void 0&&(n[i]=Xn(r[u],o))}}return n}function Xn(e,t){switch(t){case"string":return Tt(e);case"boolean":return St(e);case"number":return $t(e);case"boolean | string":return St(e)??Tt(e);case"number | string":return $t(e)??Tt(e);case"boolean | number":return St(e)??$t(e);case"boolean | number | string":return St(e)??$t(e)??Tt(e);default:throw new Error(`Unhandled type: ${t}`)}}function St(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function $t(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function Tt(e){return`${e}`}import{execSync as Ss}from"child_process";function cr(){try{return Ss("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var ro={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},Vt=eo(ro);Vt["--help"]&&(Zn({usage:["npx @tailwindcss/upgrade"],options:ro}),process.exit(0));async function Ps(){let e=process.cwd();pe(ct()),pe();let t=[];Vt["--force"]||cr()&&(O("Git directory is not clean. Please stash or commit your changes before migrating."),W(`You may use the ${x("--force")} flag to silence this warning and perform the migration.`),process.exit(1));{let r=Vt._.map(l=>Vs.resolve(e,l));r.length===0&&(W("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await Ts(["**/*.css"],{absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),r=r.filter(l=>l.endsWith(".css"));let n=await Promise.allSettled(r.map(l=>Z.load(l)));for(let l of n)l.status==="rejected"&&O(`${l.reason?.message??l.reason}`,{prefix:"\u21B3 "});let i=n.filter(l=>l.status==="fulfilled").map(l=>l.value),o=new Map(i.map(l=>[l,l.root.toString()]));try{await Di(i)}catch(l){O(`${l?.message??l}`,{prefix:"\u21B3 "})}if(P(3))try{await Qi(i,{configPath:Vt["--config"],base:e})}catch(l){O(`${l?.message??l}`,{prefix:"\u21B3 "})}i.some(l=>l.isTailwindRoot&&l.linkedConfigPath)&&W("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let l of i){if(!l.isTailwindRoot||!P(3)&&!l.linkedConfigPath)continue;let f=await Yi(l.linkedConfigPath,{base:e});s.set(l,f);let c=await Ai(f.designSystem,f.configFilePath,e);a.set(l,c),c!==null&&t.push(()=>to.rm(f.configFilePath)),c!==null&&M(`Migrated configuration file: ${x(_(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&W("Migrating stylesheets\u2026"),await Promise.all(i.map(async l=>{try{let f=s.get(l),c=a.get(l)??null;if(!f){for(let p of l.ancestors())if(p.isTailwindRoot){f??=s.get(p),c??=a.get(p)??null;break}}await Hn(l,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await l.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:c})}catch(f){O(`${f?.message??f} in ${x(_(l.file,e))}`,{prefix:"\u21B3 "})}})),P(3)){try{await Qn(i)}catch(l){O(`${l?.message??l}`,{prefix:"\u21B3 "})}for(let l of i)for(let f of l.importRules){if(!f.raws.tailwind_injected_layer)continue;let c=i.find(p=>p.id===f.raws.tailwind_destination_sheet_id);c&&c.containsRule(p=>p.type==="atrule"&&p.name==="utility")&&(f.params=f.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let l of i)o.get(l)!==l.root.toString()&&await Ns([Yn(),ji()]).process(l.root,{from:l.file});for(let l of i)l.file&&(await to.writeFile(l.file,l.root.toString()),l.isTailwindRoot&&M(`Migrated stylesheet: ${x(_(l.file,e))}`,{prefix:"\u21B3 "}));W("Updating dependencies\u2026");{let l=Oe(e),f=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(c=>c==="tailwindcss"||l.has(c));try{await l.add(f.map(c=>`${c}@latest`));for(let c of f)M(`Updated package: ${x(c)}`,{prefix:"\u21B3 "})}catch{}}let u=i.filter(l=>l.isTailwindRoot&&l.file);u.length>0&&W("Migrating templates\u2026");{let l=new Set;for(let f of u){let c=await f.compiler();if(!c)continue;let p=await f.designSystem();if(!p)continue;let m=(c.root==="none"?[]:c.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...c.root,negated:!1}]).concat(c.sources),d=s.get(f),g=new $s({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||l.has(v)||(l.add(v),h.push(v));await Promise.allSettled(h.map(v=>Rn(p,d?.userConfig??null,v))),d?.configFilePath?M(`Migrated templates for configuration file: ${x(_(d.configFilePath,e))}`,{prefix:"\u21B3 "}):M(`Migrated templates for: ${x(_(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}P(3)&&await Pi(e),await Promise.allSettled(t.map(r=>r())),cr()?M("Verify the changes and commit them to your repository."):M("No changes were made to your repository.")}Ps().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
255
+ `;let u=ws.parse(a);u.walkDecls(l=>{l.value.includes("theme(")&&(l.value=Cs(k(l.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",l=>{l.walkDecls("--border-color",c=>{c.remove()}),l.nodes?.length===0&&l.remove()}),o.append(u)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Cs(e,t){return S(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,s=1;for(let l=s;l<r.nodes.length&&!r.nodes[l].value.includes(",");l++)o+=x([r.nodes[l]]),s=l+1;o=As(o);let a=r.nodes.slice(s+1),u=a.length>0?t(o,x(a)):t(o);if(u===null)return;n(k(u))}}),x(e)}function As(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as $t}from"postcss";var dr=["theme","base","components","utilities"];function qn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,s=[],a=null,u=null,l=null,c=null,f=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))f.push("base"),s.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))f.push("utilities"),s.push(p),o=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let m of p.nodes)m.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),i!==null&&o!==null?(a||Vt(s).before(new $t({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(u||Vt(s).before(new $t({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(c||Vt(s).before(new $t({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),l||Vt(s).before(new $t({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=f.toSorted((m,d)=>dr.indexOf(m)-dr.indexOf(d));if(f.some((m,d)=>m!==p[d])){let m=dr.toSorted((d,g)=>f.indexOf(d)-f.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Vt(e){let t=e.at(0),r=t.prev();for(;r;){if(r.type==="rule"&&(t=r),r.type==="atrule")if(r.name==="charset"||r.name==="import"){r=r.prev();continue}else if(r.name==="layer"&&!r.nodes){r=r.prev();continue}else t=r;r=r.prev()}return t}import"postcss";function Hn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=fr(e,{prettyPrint:!0});t.walkDecls(n=>{let[i]=r(n.value);n.value=i}),t.walkAtRules(n=>{if(n.name==="media"||n.name==="custom-media"||n.name==="container"||n.name==="supports"){let[i]=r(n.params,2);n.params=i}})}}}import"postcss";function Gn(){function e(t){t.walkAtRules("variants",r=>{r.name==="variants"&&(r.name="layer",r.params="utilities")})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-variants-directive",OnceExit:e}}async function Jn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await $s(e,t)}async function $s(e,t,r){return typeof e=="string"&&(e=await X.fromString(e),e.file=r??null),Ss().use(zn()).use(Dn(t)).use(Kn(t)).use(Gn()).use(Mn(e)).use(Wn()).use(qn(t)).use(Fn(e,t)).use(Bn(t)).use(Hn(t)).process(e.root,{from:e.file??void 0})}import Vs from"postcss";var Yn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Zn(){async function e(t){{let a=function(u,...l){s=u,o.get(u).nodes?.push(...i.splice(0),...l)};var n=a;let i=[],o=new y(u=>{let l=Vs.atRule({name:"tw-bucket",params:u,nodes:[]});return t.append(l),l});t.walkAtRules("tw-bucket",u=>{o.set(u.params,u)});let s="user";R(t,u=>{if(u.type==="atrule"&&u.name==="tw-bucket")return 1;if(u.type==="comment"){if(i.length>0){i.push(u);return}let l=Qn(u.prev(),u)??1/0,c=Qn(u,u.next())??1/0;l<c?o.get(s).nodes?.push(u):i.push(u)}else u.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(u.name)?a(u.name,u):u.type==="atrule"&&u.name==="layer"&&!u.nodes||u.type==="atrule"&&u.name==="import"||u.type==="atrule"&&u.name==="charset"||u.type==="atrule"&&u.name==="tailwind"?a("import",u):(u.type==="rule"||u.type,a("user",u));return 1}),i.length>0&&a(s)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,s)=>{let a=Yn.indexOf(o.params),u=Yn.indexOf(s.params);return a-u});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Qn(e,t){return!e||!t||!e.source||!t.source||!e.source.start||!t.source.start||!e.source.end||!t.source.end?null:Math.abs(e.source.end.line-t.source.start.line)}import Ts from"postcss";async function Xn(e){let t=new Map,r=new Map;for(let a of e)t.set(a.id,a),a.file&&r.set(a.file,a);let n=new Set;for(let a of e){if(a.isTailwindRoot)continue;let u=!1,l=a.layers().size>0;R(a.root,c=>{if(c.type==="atrule"&&c.name==="utility")u=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;l=!0}return u&&l?2:1}),u&&l&&n.add(a)}let i=new Map;for(let a of e){if(!a.file||a.parents.size===0||!n.has(a)&&!Array.from(a.descendants()).some(p=>n.has(p)))continue;let u=Ts.root();R(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return u.append(p),1});let l=a.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(l);)c+=1,l=a.file.replace(/\.css$/,`.utilities.${c}.css`);let f=await X.fromRoot(u,l);f.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(a,f),t.set(f.id,f)}for(let[a,u]of i){for(let l of a.parents){let c=i.get(l.item);c&&u.parents.add({item:c,meta:l.meta})}for(let l of a.children){let c=i.get(l.item);c&&u.children.add({item:c,meta:l.meta})}}for(let a of e){let u=i.get(a),l=new Set;for(let c of a.importRules){let f=c.raws.tailwind_destination_sheet_id;if(!f)continue;let p=t.get(f);if(!p)continue;let m=i.get(p);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],v=h.replace(/\.css$/,m.extension),A=c.clone({params:`${g}${v}${g}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});u?l.add(A):c.after(A)}u&&l.size>0&&u.root.prepend(Array.from(l))}let o=new y(()=>new Set);for(let a of t.values())for(let u of a.importRules){let l=u.raws.tailwind_destination_sheet_id;if(!l)continue;let c=t.get(l);c&&o.get(c).add(u)}let s=[];for(let a of e.slice()){for(let u of a.descendants())s.push(u);s.push(a)}for(let a of s){let u=i.get(a);if(u&&a.isEmpty){a.root=u.root;for(let l of o.get(u))l.params=l.raws.tailwind_original_params;for(let l of o.get(a))l.remove();i.delete(a)}}e.push(...i.values())}import ke from"picocolors";function eo({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(B(dt()),e&&(B(),B(`${ke.dim("Invalid command:")} ${e}`)),t&&t.length>0){B(),B(ke.dim("Usage:"));for(let[i,o]of t.entries()){let s=o.slice(0,o.indexOf("[")),a=o.slice(o.indexOf("["));a=a.replace(/\[.*?\]/g,c=>ke.dim(c));let l=qe(a,n-mt.indent-s.length-1);l.length>1&&i!==0&&B(),B(He(`${s}${l.shift()}`));for(let c of l)B(He(c,s.length))}}if(r){let i=0;for(let{alias:u}of Object.values(r))u&&(i=Math.max(i,u.length));let o=[],s=0;for(let[u,{alias:l}]of Object.entries(r)){let c=[l&&`${l.padStart(i)}`,l?u:" ".repeat(i+2)+u].filter(Boolean).join(", ");o.push(c),s=Math.max(s,c.length)}B(),B(ke.dim("Options:"));let a=8;for(let{description:u,default:l=null}of Object.values(r)){let c=o.shift(),f=a+(s-c.length),p=2,m=n-c.length-f-p-mt.indent,d=qe(l!==null?`${u} ${ke.dim(`[default:\u202F${b(`${l}`)}]`)}`:u,m);B(He(`${ke.blue(c)} ${ke.dim(ke.gray("\xB7")).repeat(f)} ${d.shift()}`));for(let g of d)B(He(`${" ".repeat(c.length+f+p)}${g}`))}}}import Ns from"mri";function ro(e,t=process.argv.slice(2)){let r=Ns(t),n={_:r._};for(let[i,{type:o,alias:s,default:a=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=a,s){let u=s.slice(1);r[u]!==void 0&&(n[i]=to(r[u],o))}{let u=i.slice(2);r[u]!==void 0&&(n[i]=to(r[u],o))}}return n}function to(e,t){switch(t){case"string":return Pt(e);case"boolean":return Tt(e);case"number":return Nt(e);case"boolean | string":return Tt(e)??Pt(e);case"number | string":return Nt(e)??Pt(e);case"boolean | number":return Tt(e)??Nt(e);case"boolean | number | string":return Tt(e)??Nt(e)??Pt(e);default:throw new Error(`Unhandled type: ${t}`)}}function Tt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Nt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function Pt(e){return`${e}`}import{execSync as Ps}from"child_process";function gr(){try{return Ps("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var no={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},Et=ro(no);Et["--help"]&&(eo({usage:["npx @tailwindcss/upgrade"],options:no}),process.exit(0));async function Ds(){let e=process.cwd();de(dt()),de();let t=[];if(Et["--force"]||gr()&&(E("Git directory is not clean. Please stash or commit your changes before migrating."),F(`You may use the ${b("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),F(`Upgrading from Tailwind CSS ${b(`v${ae(e)}`)}`,{prefix:"\u21B3 "}),ae(e)!==lr(e)){let r=await $e(e).manager();E(["Version mismatch","",G.dim("```diff"),`${G.red("-")} ${`${G.dim('"tailwindcss":')} ${`${G.dim('"')}${G.blue(lr(e))}${G.dim('"')}`}`} (expected version in ${b("package.json")})`,`${G.green("+")} ${`${G.dim('"tailwindcss":')} ${`${G.dim('"')}${G.blue(ae(e))}${G.dim('"')}`}`} (installed version in ${b("node_modules")})`,G.dim("```"),"",`Make sure to run ${b(`${r} install`)} and try again.`].join(`
256
+ `),{prefix:"\u21B3 "}),process.exit(1)}{let r=Et._.map(l=>_s.resolve(e,l));r.length===0&&(F("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await Rs(["**/*.css"],{absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),r=r.filter(l=>l.endsWith(".css"));let n=await Promise.allSettled(r.map(l=>X.load(l)));for(let l of n)l.status==="rejected"&&E(`${l.reason?.message??l.reason}`,{prefix:"\u21B3 "});let i=n.filter(l=>l.status==="fulfilled").map(l=>l.value),o=new Map(i.map(l=>[l,l.root.toString()]));try{await Ii(i)}catch(l){E(`${l?.message??l}`,{prefix:"\u21B3 "})}if(P(3))try{await Xi(i,{configPath:Et["--config"],base:e})}catch(l){E(`${l?.message??l}`,{prefix:"\u21B3 "})}i.some(l=>l.isTailwindRoot&&l.linkedConfigPath)&&F("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let l of i){if(!l.isTailwindRoot||!P(3)&&!l.linkedConfigPath)continue;let c=await Zi(l.linkedConfigPath,{base:e});s.set(l,c);let f=await Ti(c.designSystem,c.configFilePath,e);a.set(l,f),f!==null&&t.push(()=>io.rm(c.configFilePath)),f!==null&&I(`Migrated configuration file: ${b(O(c.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&F("Migrating stylesheets\u2026"),await Promise.all(i.map(async l=>{try{let c=s.get(l),f=a.get(l)??null;if(!c){for(let p of l.ancestors())if(p.isTailwindRoot){c??=s.get(p),f??=a.get(p)??null;break}}await Jn(l,{newPrefix:c?.newPrefix??null,designSystem:c?.designSystem??await l.designSystem(),userConfig:c?.userConfig??null,configFilePath:c?.configFilePath??null,jsConfigMigration:f})}catch(c){E(`${c?.message??c} in ${b(O(l.file,e))}`,{prefix:"\u21B3 "})}})),P(3)){try{await Xn(i)}catch(l){E(`${l?.message??l}`,{prefix:"\u21B3 "})}for(let l of i)for(let c of l.importRules){if(!c.raws.tailwind_injected_layer)continue;let f=i.find(p=>p.id===c.raws.tailwind_destination_sheet_id);f&&f.containsRule(p=>p.type==="atrule"&&p.name==="utility")&&(c.params=c.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let l of i)o.get(l)!==l.root.toString()&&await Os([Zn(),zi()]).process(l.root,{from:l.file});for(let l of i)l.file&&(await io.writeFile(l.file,l.root.toString()),l.isTailwindRoot&&I(`Migrated stylesheet: ${b(O(l.file,e))}`,{prefix:"\u21B3 "}));F("Updating dependencies\u2026");{let l=$e(e),c=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(f=>f==="tailwindcss"||l.has(f));try{await l.add(c.map(f=>`${f}@latest`));for(let f of c)I(`Updated package: ${b(f)}`,{prefix:"\u21B3 "})}catch{}}let u=i.filter(l=>l.isTailwindRoot&&l.file);u.length>0&&F("Migrating templates\u2026");{let l=new Set;for(let c of u){let f=await c.compiler();if(!f)continue;let p=await c.designSystem();if(!p)continue;let m=(f.root==="none"?[]:f.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...f.root,negated:!1}]).concat(f.sources),d=s.get(c),g=new Es({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||l.has(v)||(l.add(v),h.push(v));await Promise.allSettled(h.map(v=>On(p,d?.userConfig??null,v))),d?.configFilePath?I(`Migrated templates for configuration file: ${b(O(d.configFilePath,e))}`,{prefix:"\u21B3 "}):I(`Migrated templates for: ${b(O(c.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}P(3)&&await _i(e),await Promise.allSettled(t.map(r=>r())),gr()?I("Verify the changes and commit them to your repository."):I("No changes were made to your repository.")}Ds().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});