@tailwindcss/upgrade 0.0.0-insiders.17ca56d → 0.0.0-insiders.19e2b29

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 +53 -53
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
- var Fn=Object.create;var or=Object.defineProperty;var Ln=Object.getOwnPropertyDescriptor;var zn=Object.getOwnPropertyNames;var Kn=Object.getPrototypeOf,Wn=Object.prototype.hasOwnProperty;var Bn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zn(t))!Wn.call(e,i)&&i!==r&&or(e,i,{get:()=>t[i],enumerable:!(n=Ln(t,i))||n.enumerable});return e};var Hn=(e,t,r)=>(r=e!=null?Fn(Kn(e)):{},qn(t||!e||!e.__esModule?or(r,"default",{value:e,enumerable:!0}):r,e));var li=Bn((zp,ai)=>{"use strict";var ia=["anchor-size"],Dp=new RegExp(`(${ia.join("|")})\\(`,"g"),Xe=new Uint8Array(256);function na(e,t){let r=0,n=[],i=0,o=e.length,s=t.charCodeAt(0);for(let a=0;a<o;a++){let l=e.charCodeAt(a);if(r===0&&l===s){n.push(e.slice(i,a)),i=a+1;continue}switch(l){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===l)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&&l===Xe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Z=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Ip=new RegExp(`^${Z.source}$`),jp=new RegExp(`^${Z.source}%$`),Up=new RegExp(`^${Z.source}s*/s*${Z.source}$`),oa=["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"],Mp=new RegExp(`^${Z.source}(${oa.join("|")})$`),aa=["deg","rad","grad","turn"],Fp=new RegExp(`^${Z.source}(${aa.join("|")})$`),Lp=new RegExp(`^${Z.source} +${Z.source} +${Z.source}$`);function ae(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var la={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 ge(e){return{__BARE_VALUE__:e}}var q=ge(e=>{if(ae(e.value))return e.value}),O=ge(e=>{if(ae(e.value))return`${e.value}%`}),oe=ge(e=>{if(ae(e.value))return`${e.value}px`}),ni=ge(e=>{if(ae(e.value))return`${e.value}ms`}),et=ge(e=>{if(ae(e.value))return`${e.value}deg`}),sa=ge(e=>{if(e.fraction===null)return;let[t,r]=na(e.fraction,"/");if(!(!ae(t)||!ae(r)))return e.fraction}),oi=ge(e=>{if(ae(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ua={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",...sa},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...O}),backdropContrast:({theme:e})=>({...e("contrast"),...O}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...O}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...et}),backdropInvert:({theme:e})=>({...e("invert"),...O}),backdropOpacity:({theme:e})=>({...e("opacity"),...O}),backdropSaturate:({theme:e})=>({...e("saturate"),...O}),backdropSepia:({theme:e})=>({...e("sepia"),...O}),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",...oe},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",...O},caretColor:({theme:e})=>e("colors"),colors:()=>({...la}),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",...O},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"),...oe}),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%",...O},grayscale:{0:"0",DEFAULT:"100%",...O},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))",...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",...et},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%",...O},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",...O},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",...oe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},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",...oe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...et},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...O},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",...O},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%",...O},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...et},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",...oe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},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",...q}};ai.exports=ua});import{Scanner as os}from"@tailwindcss/oxide";import{globby as as}from"globby";import Un from"node:fs/promises";import ls from"node:path";import ss from"postcss";import{Scanner as gi}from"@tailwindcss/oxide";import ba from"node:fs/promises";import hi from"node:path";import{fileURLToPath as xa}from"node:url";import Ae from"enhanced-resolve";import{createJiti as ea}from"jiti";import Lt from"node:fs";import bp from"node:fs/promises";import Cp,{dirname as Zr}from"node:path";import{pathToFileURL as Xr}from"node:url";import{__unstable__loadDesignSystem as $p,compile as Vp,compileAst as Tp,Features as Np,Polyfills as Pp}from"tailwindcss";import Ct from"node:fs/promises";import Te from"node:path";var Jn=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Gn=[".js",".cjs",".mjs"],Yn=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Qn=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Zn(e,t){for(let r of t){let n=`${e}${r}`;if((await Ct.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Ct.access(n).then(()=>!0,()=>!1))return n}return null}async function ar(e,t,r,n){let i=Gn.includes(n)?Yn:Qn,o=await Zn(Te.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Te.dirname(o),n=Te.extname(o);let s=await Ct.readFile(o,"utf-8"),a=[];for(let l of Jn)for(let u of s.matchAll(l))u[1].startsWith(".")&&a.push(ar(e,u[1],r,n));await Promise.all(a)}async function lr(e){let t=new Set;return await ar(t,e,Te.dirname(e),Te.extname(e)),Array.from(t)}import*as Xo from"node:path";function At(e){return{kind:"word",value:e}}function Xn(e,t){return{kind:"function",value:e,nodes:t}}function eo(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(l){o||(o=!0,Array.isArray(l)?l.length===0?(e.splice(n,1),s=0):l.length===1?(e[n]=l[0],s=1):(e.splice(n,1,...l),s=l.length):e[n]=l)}})??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 sr=92,to=41,ur=58,fr=44,ro=34,cr=61,pr=62,mr=60,dr=10,io=40,no=39,gr=47,hr=32,yr=9;function k(e){e=e.replaceAll(`\r
2
+ var Bn=Object.create;var fr=Object.defineProperty;var qn=Object.getOwnPropertyDescriptor;var Hn=Object.getOwnPropertyNames;var Jn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty;var Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hn(t))!Gn.call(e,i)&&i!==r&&fr(e,i,{get:()=>t[i],enumerable:!(n=qn(t,i))||n.enumerable});return e};var Zn=(e,t,r)=>(r=e!=null?Bn(Jn(e)):{},Qn(t||!e||!e.__esModule?fr(r,"default",{value:e,enumerable:!0}):r,e));var pi=Yn((em,ci)=>{"use strict";var ua=["anchor-size"],Hp=new RegExp(`(${ua.join("|")})\\(`,"g"),it=new Uint8Array(256);function fa(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){n.push(e.slice(i,a)),i=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===s)break}break;case 40:it[r]=41,r++;break;case 91:it[r]=93,r++;break;case 123:it[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===it[r-1]&&r--;break}}return n.push(e.slice(i)),n}var ee=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Jp=new RegExp(`^${ee.source}$`),Gp=new RegExp(`^${ee.source}%$`),Yp=new RegExp(`^${ee.source}s*/s*${ee.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"],Qp=new RegExp(`^${ee.source}(${ca.join("|")})$`),pa=["deg","rad","grad","turn"],Zp=new RegExp(`^${ee.source}(${pa.join("|")})$`),Xp=new RegExp(`^${ee.source} +${ee.source} +${ee.source}$`);function le(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var ma={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 ye(e){return{__BARE_VALUE__:e}}var H=ye(e=>{if(le(e.value))return e.value}),D=ye(e=>{if(le(e.value))return`${e.value}%`}),ae=ye(e=>{if(le(e.value))return`${e.value}px`}),ui=ye(e=>{if(le(e.value))return`${e.value}ms`}),nt=ye(e=>{if(le(e.value))return`${e.value}deg`}),da=ye(e=>{if(e.fraction===null)return;let[t,r]=fa(e.fraction,"/");if(!(!le(t)||!le(r)))return e.fraction}),fi=ye(e=>{if(le(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ga={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",...da},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",...ae},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:()=>({...ma}),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",...H},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"),...ae}),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",...H},flexShrink:{0:"0",DEFAULT:"1",...H},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",...H},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",...H},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",...H},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",...H},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))",...fi},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))",...fi},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",...H},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",...H},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},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",...ae},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},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",...H},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",...ae},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},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",...ui},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ui},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",...H}};ci.exports=ga});import{Scanner as cs}from"@tailwindcss/oxide";import{globby as ps}from"globby";import Kn from"node:fs/promises";import ms from"node:path";import ds from"postcss";import{Scanner as ki}from"@tailwindcss/oxide";import Ta from"node:fs/promises";import bi from"node:path";import{fileURLToPath as Va}from"node:url";import Te from"enhanced-resolve";import{createJiti as aa}from"jiti";import Bt from"node:fs";import Op from"node:fs/promises";import ii from"node:path";import{pathToFileURL as ni}from"node:url";import{__unstable__loadDesignSystem as Mp,compile as Up,compileAst as Lp,Features as Fp,Polyfills as zp}from"tailwindcss";import Tt from"node:fs/promises";import Re from"node:path";var Xn=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],eo=[".js",".cjs",".mjs"],to=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],ro=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function io(e,t){for(let r of t){let n=`${e}${r}`;if((await Tt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Tt.access(n).then(()=>!0,()=>!1))return n}return null}async function cr(e,t,r,n){let i=eo.includes(n)?to:ro,o=await io(Re.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Re.dirname(o),n=Re.extname(o);let l=await Tt.readFile(o,"utf-8"),a=[];for(let s of Xn)for(let u of l.matchAll(s))u[1].startsWith(".")&&a.push(cr(e,u[1],r,n));await Promise.all(a)}async function pr(e){let t=new Set;return await cr(t,e,Re.dirname(e),Re.extname(e)),Array.from(t)}import*as oa from"node:path";function Vt(e){return{kind:"word",value:e}}function no(e,t){return{kind:"function",value:e,nodes:t}}function oo(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,l=0,a=t(i,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(n,1),l=0):s.length===1?(e[n]=s[0],l=1):(e.splice(n,1,...s),l=s.length):e[n]=s)}})??0;if(o){a===0?n--:n+=l-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 mr=92,ao=41,dr=58,gr=44,lo=34,hr=61,yr=62,vr=60,wr=10,so=40,uo=39,kr=47,br=32,xr=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 sr:{i+=e[s]+e[s+1],s++;break}case ur:case fr:case cr:case pr:case mr:case dr:case gr:case hr:case yr:{if(i.length>0){let c=At(i);n?n.nodes.push(c):t.push(c),i=""}let l=s,u=s+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==ur&&o!==fr&&o!==cr&&o!==pr&&o!==mr&&o!==dr&&o!==gr&&o!==hr&&o!==yr));u++);s=u-1;let f=eo(e.slice(l,u));n?n.nodes.push(f):t.push(f);break}case no:case ro:{let l=s;for(let u=s+1;u<e.length;u++)if(o=e.charCodeAt(u),o===sr)u+=1;else if(o===a){s=u;break}i+=e.slice(l,s+1);break}case io:{let l=Xn(i,[]);i="",n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case to:{let l=r.pop();if(i.length>0){let u=At(i);l.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(At(i)),t}var vr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ke=["anchor-size"],wr=new RegExp(`(${Ke.join("|")})\\(`,"g");function kr(e){if(!vr.some(i=>e.includes(i)))return e;let t=!1;Ke.some(i=>e.includes(i))&&(wr.lastIndex=0,e=e.replace(wr,(i,o)=>(t=!0,`$${Ke.indexOf(o)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let o=e[i];if(o==="("){r+=o;let s=i;for(let l=i-1;l>=0;l--){let u=e.charCodeAt(l);if(u>=48&&u<=57)s=l;else if(u>=97&&u<=122)s=l;else break}let a=e.slice(s,i);if(vr.includes(a)){n.unshift(!0);continue}else if(n[0]&&a===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(o===")")r+=o,n.shift();else if(o===","&&n[0]){r+=", ";continue}else{if(o===" "&&n[0]&&r[r.length-1]===" ")continue;if((o==="+"||o==="*"||o==="/"||o==="-")&&n[0]){let s=r.trimEnd(),a=s[s.length-1];if(a==="+"||a==="*"||a==="/"||a==="-"){r+=o;continue}else if(a==="("||a===","){r+=o;continue}else e[i-1]===" "?r+=`${o} `:r+=` ${o} `}else if(n[0]&&e.startsWith("to-zero",i)){let s=i;i+=7,r+=e.slice(s,i+1)}else r+=o}}return t?r.replace(/\$(\d+)\$/g,(i,o)=>Ke[o]??i):r}function Ne(e){if(e.indexOf("(")===-1)return we(e);let t=k(e);return St(t),e=b(t),e=kr(e),e}function we(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 St(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=we(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=we(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=we(t.nodes[r].value,!0);continue}St([t.nodes[r]])}break}t.value=we(t.value),St(t.nodes);break}case"separator":case"word":{t.value=we(t.value);break}default:oo(t)}}function oo(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 ke(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 We=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 l=e.charCodeAt(a);if(r===0&&l===s){n.push(e.slice(i,a)),i=a+1;continue}switch(l){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===l)break}break;case 40:We[r]=41,r++;break;case 91:We[r]=93,r++;break;case 123:We[r]=125,r++;break;case 93:case 125:case 41:r>0&&l===We[r-1]&&r--;break}}return n.push(e.slice(i)),n}var ao=58,br=45,xr=97,Cr=122;function*I(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,l]=w(n,"/");if(l)return;let u=a===null?null:lo(a);if(a!==null&&u===null)return;if(s[0]==="["){if(s[s.length-1]!=="]")return;let c=s.charCodeAt(1);if(c!==br&&!(c>=xr&&c<=Cr))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=Ne(s.slice(p+1));if(!ke(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,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]!=="-"||!ke(m))return;f=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else f=so(s,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let m={kind:"functional",root:c,modifier:u,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=Ne(p.slice(d+1,-1));if(!ke(h))continue;let v="";for(let $=0;$<h.length;$++){let D=h.charCodeAt($);if(D===ao){v=h.slice(0,$),h=h.slice($+1);break}if(!(D===br||D>=xr&&D<=Cr))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 lo(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ne(e.slice(1,-1));return!ke(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]!=="-"||!ke(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ne(e)})):{kind:"named",value:e}}function*so(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]==="")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Tt(e){if(e===null)return"";let t=co(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Nt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var uo=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 l=o[s+1];if(l?.kind!=="separator"||l.value!==" ")return;r.add(a),r.add(l)}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([]))}),Vt(t),b(t)});function Nt(e){return uo.get(e)}var As=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 Vt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Pe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Pe(t.value);for(let r=0;r<t.nodes.length;r++)Vt([t.nodes[r]]);break}t.value=Pe(t.value),Vt(t.nodes);break}case"separator":t.value=Pe(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Pe(t.value));break}default:po(t)}}var fo=new y(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function co(e){return fo.get(e)}function po(e){throw new Error(`Unexpected value: ${e}`)}function Pe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Re(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 J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,_s=new RegExp(`^${J.source}$`);var Os=new RegExp(`^${J.source}%$`);var Ds=new RegExp(`^${J.source}s*/s*${J.source}$`);var mo=["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"],Is=new RegExp(`^${J.source}(${mo.join("|")})$`);var go=["deg","rad","grad","turn"],js=new RegExp(`^${J.source}(${go.join("|")})$`);var Us=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function N(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function G(e){return Ar(e,.25)}function Pt(e){return Ar(e,.25)}function Ar(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function be(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 yo={"--alpha":vo,"--spacing":wo,"--theme":ko,theme:bo};function vo(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 be(i,o)}function wo(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 ko(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 Co(a,s),b(a)}return o}function bo(e,t,r,...n){r=xo(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 tu=new RegExp(Object.keys(yo).map(e=>`${e}\\(`).join("|"));function xo(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 Co(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 _t(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 l=o,u=o+1,f=o,c=o+1;for(s=e.charCodeAt(u);s>=48&&s<=57;)s=e.charCodeAt(++u);for(a=t.charCodeAt(c);a>=48&&a<=57;)a=t.charCodeAt(++c);let p=e.slice(l,u),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 re(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 Be(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 Ee(e,t,{onInvalidCandidate:r}={}){let n=new Map,i=[],o=new Map;for(let a of e){if(t.invalidCandidates.has(a)){r?.(a);continue}let l=t.parseCandidate(a);if(l.length===0){r?.(a);continue}o.set(a,l)}let s=t.getVariantOrder();for(let[a,l]of o){let u=!1;for(let f of l){let c=t.compileAstNodes(f);if(c.length!==0){u=!0;for(let{node:p,propertySort:m}of c){let d=0n;for(let g of f.variants)d|=1n<<BigInt(s.get(g));n.set(p,{properties:m,variants:d,candidate:a}),i.push(p)}}}u||r?.(a)}return i.sort((a,l)=>{let u=n.get(a),f=n.get(l);if(u.variants-f.variants!==0n)return Number(u.variants-f.variants);let c=0;for(;c<u.properties.order.length&&c<f.properties.order.length&&u.properties.order[c]===f.properties.order[c];)c+=1;return(u.properties.order[c]??1/0)-(f.properties.order[c]??1/0)||f.properties.count-u.properties.count||_t(u.candidate,f.candidate)}),{astNodes:i,nodeSorting:n}}function Oe(e,t){let r=0,n=F("&",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 Vr(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 Vr(c,t))for(let g of m)g!==c&&i.has(g)&&o.get(g).add(d)}}});let a=new Set,l=[],u=new Set;function f(c,p=[]){if(!a.has(c)){if(u.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 l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case mr:{i+=e[l]+e[l+1],l++;break}case dr:case gr:case hr:case yr:case vr:case wr:case kr:case br:case xr:{if(i.length>0){let c=Vt(i);n?n.nodes.push(c):t.push(c),i=""}let s=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==dr&&o!==gr&&o!==hr&&o!==yr&&o!==vr&&o!==wr&&o!==kr&&o!==br&&o!==xr));u++);l=u-1;let f=oo(e.slice(s,u));n?n.nodes.push(f):t.push(f);break}case uo:case lo:{let s=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===mr)u+=1;else if(o===a){l=u;break}i+=e.slice(s,l+1);break}case so:{let s=no(i,[]);i="",n?n.nodes.push(s):t.push(s),r.push(s),n=s;break}case ao:{let s=r.pop();if(i.length>0){let u=Vt(i);s.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Vt(i)),t}var Cr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],He=["anchor-size"],Ar=new RegExp(`(${He.join("|")})\\(`,"g");function Sr(e){if(!Cr.some(i=>e.includes(i)))return e;let t=!1;He.some(i=>e.includes(i))&&(Ar.lastIndex=0,e=e.replace(Ar,(i,o)=>(t=!0,`$${He.indexOf(o)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let o=e[i];if(o==="("){r+=o;let l=i;for(let s=i-1;s>=0;s--){let u=e.charCodeAt(s);if(u>=48&&u<=57)l=s;else if(u>=97&&u<=122)l=s;else break}let a=e.slice(l,i);if(Cr.includes(a)){n.unshift(!0);continue}else if(n[0]&&a===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(o===")")r+=o,n.shift();else if(o===","&&n[0]){r+=", ";continue}else{if(o===" "&&n[0]&&r[r.length-1]===" ")continue;if((o==="+"||o==="*"||o==="/"||o==="-")&&n[0]){let l=r.trimEnd(),a=l[l.length-1];if(a==="+"||a==="*"||a==="/"||a==="-"){r+=o;continue}else if(a==="("||a===","){r+=o;continue}else e[i-1]===" "?r+=`${o} `:r+=` ${o} `}else if(n[0]&&e.startsWith("to-zero",i)){let l=i;i+=7,r+=e.slice(l,i+1)}else r+=o}}return t?r.replace(/\$(\d+)\$/g,(i,o)=>He[o]??i):r}function Ee(e){if(e.indexOf("(")===-1)return xe(e);let t=k(e);return Nt(t),e=b(t),e=Sr(e),e}function xe(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 Nt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=xe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=xe(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=xe(t.nodes[r].value,!0);continue}Nt([t.nodes[r]])}break}t.value=xe(t.value),Nt(t.nodes);break}case"separator":case"word":{t.value=xe(t.value);break}default:fo(t)}}function fo(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 Pt=new Uint8Array(256);function Ce(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:Pt[t]=41,t++;break;case 91:Pt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Pt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var Je=new Uint8Array(256);function w(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){n.push(e.slice(i,a)),i=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===s)break}break;case 40:Je[r]=41,r++;break;case 91:Je[r]=93,r++;break;case 123:Je[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===Je[r-1]&&r--;break}}return n.push(e.slice(i)),n}var co=58,$r=45,Tr=97,Vr=122;function*I(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[l,a=null,s]=w(n,"/");if(s)return;let u=a===null?null:po(a);if(a!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let c=l.charCodeAt(1);if(c!==$r&&!(c>=Tr&&c<=Vr))return;l=l.slice(1,-1);let p=l.indexOf(":");if(p===-1||p===0||p===l.length-1)return;let m=l.slice(0,p),d=Ee(l.slice(p+1));if(!Ce(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let f;if(l[l.length-1]==="]"){let c=l.indexOf("-[");if(c===-1)return;let p=l.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=l.slice(c+1);f=[[p,m]]}else if(l[l.length-1]===")"){let c=l.indexOf("-(");if(c===-1)return;let p=l.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=l.slice(c+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Ce(m))return;f=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else f=mo(l,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let m={kind:"functional",root:c,modifier:u,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=Ee(p.slice(d+1,-1));if(!Ce(h))continue;let v="";for(let A=0;A<h.length;A++){let T=h.charCodeAt(A);if(T===co){v=h.slice(0,A),h=h.slice(A+1);break}if(!(T===$r||T>=Tr&&T<=Vr))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 po(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ee(e.slice(1,-1));return!Ce(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]!=="-"||!Ce(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ee(e)})):{kind:"named",value:e}}function*mo(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]==="")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Et(e){if(e===null)return"";let t=yo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${_t(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var go=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 l=o.indexOf(n)??-1;if(l===-1)return;let a=o[l-1];if(a?.kind!=="separator"||a.value!==" ")return;let s=o[l+1];if(s?.kind!=="separator"||s.value!==" ")return;r.add(a),r.add(s)}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([]))}),Rt(t),b(t)});function _t(e){return go.get(e)}var Ps=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 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++)Rt([t.nodes[r]]);break}t.value=_e(t.value),Rt(t.nodes);break}case"separator":t.value=_e(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=_e(t.value));break}default:vo(t)}}var ho=new y(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function yo(e){return ho.get(e)}function vo(e){throw new Error(`Unexpected value: ${e}`)}function _e(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Oe(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),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),a=(o===l?0:o<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(a)?e<t?-1:1:a}var Y=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Us=new RegExp(`^${Y.source}$`);var Ls=new RegExp(`^${Y.source}%$`);var Fs=new RegExp(`^${Y.source}s*/s*${Y.source}$`);var wo=["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"],zs=new RegExp(`^${Y.source}(${wo.join("|")})$`);var ko=["deg","rad","grad","turn"],Ks=new RegExp(`^${Y.source}(${ko.join("|")})$`);var Ws=new RegExp(`^${Y.source} +${Y.source} +${Y.source}$`);function P(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Q(e){return Nr(e,.25)}function Ot(e){return Nr(e,.25)}function Nr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ae(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 xo={"--alpha":Co,"--spacing":Ao,"--theme":So,theme:$o};function Co(e,t,r,...n){let[i,o]=w(r,"/").map(l=>l.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 Ae(i,o)}function Ao(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 So(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 l=n.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=k(o);return Vo(a,l),b(a)}return o}function $o(e,t,r,...n){r=To(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 lu=new RegExp(Object.keys(xo).map(e=>`${e}\\(`).join("|"));function To(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 Vo(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 jt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let l=e.charCodeAt(o),a=t.charCodeAt(o);if(l>=48&&l<=57&&a>=48&&a<=57){let s=o,u=o+1,f=o,c=o+1;for(l=e.charCodeAt(u);l>=48&&l<=57;)l=e.charCodeAt(++u);for(a=t.charCodeAt(c);a>=48&&a<=57;)a=t.charCodeAt(++c);let p=e.slice(s,u),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(l!==a)return l-a}return e.length-t.length}function ie(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",l=t.charCodeAt(0);if(r===1&&l===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&&l===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 Ge(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 De(e,t,{onInvalidCandidate:r}={}){let n=new Map,i=[],o=new Map;for(let a of e){if(t.invalidCandidates.has(a)){r?.(a);continue}let s=t.parseCandidate(a);if(s.length===0){r?.(a);continue}o.set(a,s)}let l=t.getVariantOrder();for(let[a,s]of o){let u=!1;for(let f of s){let c=t.compileAstNodes(f);if(c.length!==0){u=!0;for(let{node:p,propertySort:m}of c){let d=0n;for(let g of f.variants)d|=1n<<BigInt(l.get(g));n.set(p,{properties:m,variants:d,candidate:a}),i.push(p)}}}u||r?.(a)}return i.sort((a,s)=>{let u=n.get(a),f=n.get(s);if(u.variants-f.variants!==0n)return Number(u.variants-f.variants);let c=0;for(;c<u.properties.order.length&&c<f.properties.order.length&&u.properties.order[c]===f.properties.order[c];)c+=1;return(u.properties.order[c]??1/0)-(f.properties.order[c]??1/0)||f.properties.count-u.properties.count||jt(u.candidate,f.candidate)}),{astNodes:i,nodeSorting:n}}function je(e,t){let r=0,n=F("&",e),i=new Set,o=new y(()=>new Set),l=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(/-\*$/,"");l.get(d).add(c),C(c.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){i.add(c);for(let h of Er(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 Er(c,t))for(let g of m)g!==c&&i.has(g)&&o.get(g).add(d)}}});let a=new Set,s=[],u=new Set;function f(c,p=[]){if(!a.has(c)){if(u.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:
5
5
 
6
- ${L([c])}
6
+ ${z([c])}
7
7
  Relies on:
8
8
 
9
- ${L([m])}`)}u.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),u.delete(c),l.push(c)}}for(let c of i)f(c);for(let c of l)"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);{let g=Ee(d,t,{onInvalidCandidate:v=>{throw new Error(`Cannot apply unknown utility class: ${v}`)}}).astNodes,h=[];for(let v of g)if(v.kind==="rule")for(let $ of v.nodes)h.push($);else h.push(v);m(h)}});return r}function*Vr(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 To=32;var No=40;function Tr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===To||n===No){let i=e.slice(0,r).trim(),o=e.slice(r).trim();return A(i,o,t)}}return A(e.trim(),"",t)}function Nr(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 Rr(e){let t=[];return Er(e,[],(r,n)=>{if(Ro(r))return t.push([n,r]),1;if(Eo(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 Po=/^[a-zA-Z0-9-_%/\.]+$/;function Q(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(!Po.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 Ro(e){return typeof e=="number"||typeof e=="string"}function Eo(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 Er(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")&&Er(i,o,r)===2)return 2}}}function ie(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 Ce(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function De(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:!Ce(e[o])||!Ce(i[o])?e[o]=i[o]:e[o]=De({},[e[o],i[o]],r,n),n.pop()}return e}function It(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 l=(()=>{let u=ie(i),[f,c]=_o(e.theme,u),p=r(_r(t()??{},u)??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=De({},[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&&_r(m,d.split("-"))!==void 0||(m[Be(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 l=="string"&&(l=be(l,a)),l??o}}function _o(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=Q(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 l={},u={};for(let[f,c]of n)Or(l,[f??"DEFAULT"],c);for(let[f,c]of s)Or(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[l?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in l&&Object.keys(l).length===1?[l.DEFAULT,u.DEFAULT??0]:(l.__CSS_VALUES__=u,[l,u])}function _r(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 Or(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 Oo(e){return{kind:"combinator",value:e}}function Do(e,t){return{kind:"function",value:e,nodes:t}}function Ie(e){return{kind:"selector",value:e}}function Io(e){return{kind:"separator",value:e}}function jo(e){return{kind:"value",value:e}}function He(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(l){o||(o=!0,Array.isArray(l)?l.length===0?(e.splice(n,1),s=0):l.length===1?(e[n]=l[0],s=1):(e.splice(n,1,...l),s=l.length):(e[n]=l,s=1))}})??0;if(o){a===0?n--:n+=s-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&He(i.nodes,t,i)===2)return 2}}function Je(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+"("+Je(r.nodes)+")"}return t}var Dr=92,Uo=93,Ir=41,Mo=58,jr=44,Fo=34,Lo=46,Ur=62,Mr=10,zo=35,Fr=91,Lr=40,zr=43,Ko=39,Kr=32,Wr=9,Br=126;function jt(e){e=e.replaceAll(`\r
9
+ ${z([m])}`)}u.add(c);for(let m of o.get(c))for(let d of l.get(m))p.push(c),f(d,p),p.pop();a.add(c),u.delete(c),s.push(c)}}for(let c of i)f(c);for(let c of s)"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=De(v,t,{onInvalidCandidate:U=>{throw new Error(`Cannot apply unknown utility class: ${U}`)}}),T=p.src,J=A.astNodes.map(U=>{let be=A.nodeSorting.get(U)?.candidate,ur=be?g[be]:void 0;if(U=structuredClone(U),!T||!be||ur===void 0)return C([U],$t=>{$t.src=T}),U;let qe=[T[0],T[1],T[2]];return qe[1]+=7+ur,qe[2]=qe[1]+be.length,C([U],$t=>{$t.src=qe}),U}),de=[];for(let U of J)if(U.kind==="rule")for(let be of U.nodes)de.push(be);else de.push(U);m(de)}});return r}function*Er(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 _o=32;var Oo=40;function _r(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===_o||o===Oo){r=e.slice(0,i),n=e.slice(i);break}}return $(r.trim(),n.trim(),t)}function Or(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let l=e[o];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.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 l?r=b(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=b(l.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 jr(e,[],(r,n)=>{if(Io(r))return t.push([n,r]),1;if(jo(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 Do=/^[a-zA-Z0-9-_%/\.]+$/;function X(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(!Do.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 Io(e){return typeof e=="number"||typeof e=="string"}function jo(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 jr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],l=r(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&jr(i,o,r)===2)return 2}}}function ne(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 Me(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let l=r(e[o],i[o],n);l!==void 0?e[o]=l:!$e(e[o])||!$e(i[o])?e[o]=i[o]:e[o]=Me({},[e[o],i[o]],r,n),n.pop()}return e}function Lt(e,t,r){return function(i,o){let l=i.lastIndexOf("/"),a=null;l!==-1&&(a=i.slice(l+1).trim(),i=i.slice(0,l).trim());let s=(()=>{let u=ne(i),[f,c]=Mo(e.theme,u),p=r(Mr(t()??{},u)??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=Me({},[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&&Mr(m,d.split("-"))!==void 0||(m[Ge(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 s=="string"&&(s=Ae(s,a)),s??o}}function Mo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=X(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let l=new Map;for(let[f,c]of o){if(!f||!f.includes("--")){n.set(f,c),l.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]),l.set(f,[a,d])}let s={},u={};for(let[f,c]of n)Ur(s,[f??"DEFAULT"],c);for(let[f,c]of l)Ur(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[s?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in s&&Object.keys(s).length===1?[s.DEFAULT,u.DEFAULT??0]:(s.__CSS_VALUES__=u,[s,u])}function Mr(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 Ur(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 Uo(e){return{kind:"combinator",value:e}}function Lo(e,t){return{kind:"function",value:e,nodes:t}}function Ue(e){return{kind:"selector",value:e}}function Fo(e){return{kind:"separator",value:e}}function zo(e){return{kind:"value",value:e}}function Qe(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,l=0,a=t(i,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(n,1),l=0):s.length===1?(e[n]=s[0],l=1):(e.splice(n,1,...s),l=s.length):(e[n]=s,l=1))}})??0;if(o){a===0?n--:n+=l-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&Qe(i.nodes,t,i)===2)return 2}}function Ze(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+"("+Ze(r.nodes)+")"}return t}var Lr=92,Ko=93,Fr=41,Wo=58,zr=44,Bo=34,qo=46,Kr=62,Wr=10,Ho=35,Br=91,qr=40,Hr=43,Jo=39,Jr=32,Gr=9,Yr=126;function Ft(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 jr:case Ur:case Mr:case Kr:case zr:case Wr:case Br:{if(i.length>0){let p=Ie(i);n?n.nodes.push(p):t.push(p),i=""}let l=s,u=s+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==jr&&o!==Ur&&o!==Mr&&o!==Kr&&o!==zr&&o!==Wr&&o!==Br));u++);s=u-1;let f=e.slice(l,u),c=f.trim()===","?Io(f):Oo(f);n?n.nodes.push(c):t.push(c);break}case Lr:{let l=Do(i,[]);if(i="",l.value!==":not"&&l.value!==":where"&&l.value!==":has"&&l.value!==":is"){let u=s+1,f=0;for(let p=s+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Lr){f++;continue}if(o===Ir){if(f===0){s=p;break}f--}}let c=s;l.nodes.push(jo(e.slice(u,c))),i="",s=c,n?n.nodes.push(l):t.push(l);break}n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case Ir:{let l=r.pop();if(i.length>0){let u=Ie(i);l.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}case Lo:case Mo:case zo:{if(i.length>0){let l=Ie(i);n?n.nodes.push(l):t.push(l)}i=String.fromCharCode(a);break}case Fr:{if(i.length>0){let f=Ie(i);n?n.nodes.push(f):t.push(f)}i="";let l=s,u=0;for(let f=s+1;f<e.length;f++){if(o=e.charCodeAt(f),o===Fr){u++;continue}if(o===Uo){if(u===0){s=f;break}u--}}i+=e.slice(l,s+1);break}case Ko:case Fo:{let l=s;for(let u=s+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Dr)u+=1;else if(o===a){s=u;break}i+=e.slice(l,s+1);break}case Dr:{let l=e.charCodeAt(s+1);i+=String.fromCharCode(a)+String.fromCharCode(l),s+=1;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Ie(i)),t}function Ge(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(F(n,[A("@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(F(n,Ge(o)));else i!==null&&t.push(F(n,Ge(i)));return t}function Hr(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(A("@keyframes",r,Ge(n)));return t}var Ye={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 me(e){return{__BARE_VALUE__:e}}var B=me(e=>{if(N(e.value))return e.value}),_=me(e=>{if(N(e.value))return`${e.value}%`}),ne=me(e=>{if(N(e.value))return`${e.value}px`}),Jr=me(e=>{if(N(e.value))return`${e.value}ms`}),Qe=me(e=>{if(N(e.value))return`${e.value}deg`}),qo=me(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!N(t)||!N(r)))return e.fraction}),Gr=me(e=>{if(N(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ho={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",...qo},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),..._}),backdropContrast:({theme:e})=>({...e("contrast"),..._}),backdropGrayscale:({theme:e})=>({...e("grayscale"),..._}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Qe}),backdropInvert:({theme:e})=>({...e("invert"),..._}),backdropOpacity:({theme:e})=>({...e("opacity"),..._}),backdropSaturate:({theme:e})=>({...e("saturate"),..._}),backdropSepia:({theme:e})=>({...e("sepia"),..._}),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",...ne},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",..._},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ye}),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",...B},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",..._},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"),...ne}),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",...B},flexShrink:{0:"0",DEFAULT:"1",...B},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%",..._},grayscale:{0:"0",DEFAULT:"100%",..._},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",...B},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",...B},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",...B},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",...B},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Gr},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Gr},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Qe},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%",..._},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",...B},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",..._},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",...B},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},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",...ne},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Qe},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",..._},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",..._},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%",..._},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Qe},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",...B},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",...ne},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},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",...Jr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Jr},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",...B}};var Jo={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function de(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Jo)};for(let i of t)Ut(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=Yo(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Go(e,t){if(Array.isArray(e)&&Ce(e[0]))return e.concat(t);if(Array.isArray(t)&&Ce(t[0])&&Ce(e))return[e,...t];if(Array.isArray(t))return t}function Ut(e,{config:t,base:r,path:n,reference:i}){let o=[];for(let l of t.plugins??[])"__isOptionsFunction"in l?o.push({...l(),reference:i}):"handler"in l?o.push({...l,reference:i}):o.push({handler:l,reference:i});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??[])Ut(e,{path:n,base:r,config:l,reference:i});for(let l of o)e.plugins.push(l),l.config&&Ut(e,{path:n,base:r,config:l.config,reference:!!l.reference});let s=t.content??[],a=Array.isArray(s)?s:s.files;for(let l of a)e.content.files.push(typeof l=="object"?l:{base:r,pattern:l});e.configs.push(t)}function Yo(e){let t=new Set,r=It(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Ye});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 l in s)l!=="extend"&&t.add(l);Object.assign(e.theme,s);for(let l in a)e.extend[l]??=[],e.extend[l].push(a[l])}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 De({},a,Go)}}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 Yr({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,l)=>Re(a[1],l[1],"asc")),s.length>0){let[a]=s[0];i.push(A("@media",`(width >= --theme(--breakpoint-${a}))`,[V("max-width","none")]))}for(let[a,l]of Object.entries(r)){if(typeof l=="object")if("min"in l)l=l.min;else continue;o.set(a,A("@media",`(width >= ${l})`,[V("max-width",l)]))}}if(typeof t=="object"&&t!==null){let s=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,l])=>[a,n.theme.resolveValue(a,["--breakpoint"]),l]).filter(Boolean);s.sort((a,l)=>Re(a[1],l[1],"asc"));for(let[a,,l]of s)if(o&&o.has(a))o.get(a).nodes.push(V("padding-inline",l));else{if(o)continue;i.push(A("@media",`(width >= theme(--breakpoint-${a}))`,[V("padding-inline",l)]))}}if(o)for(let[,s]of o)i.push(s);return i}function Mt({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 Qr(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 Qo=64;function Y(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function A(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function F(e,t=[]){return e.charCodeAt(0)===Qo?Tr(e,t):Y(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function qe(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,l=0,u=t(o,{parent:s,context:n,path:r,replaceWith(f){a||(a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),l=0):f.length===1?(e[i]=f[0],l=1):(e.splice(i,1,...f),l=f.length):(e[i]=f,l=1))}})??0;if(r.pop(),a){u===0?i--:i+=l-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in o){r.push(o);let f=C(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function L(e){function t(n,i=0){let o="",s=" ".repeat(i);if(n.kind==="declaration")o+=`${s}${n.property}: ${n.value}${n.important?" !important":""};
12
- `;else if(n.kind==="rule"){o+=`${s}${n.selector} {
13
- `;for(let a of n.nodes)o+=t(a,i+1);o+=`${s}}
14
- `}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${s}${n.name} ${n.params};
15
- `;o+=`${s}${n.name}${n.params?` ${n.params} `:" "}{
16
- `;for(let a of n.nodes)o+=t(a,i+1);o+=`${s}}
17
- `}else if(n.kind==="comment")o+=`${s}/*${n.value}*/
18
- `;else if(n.kind==="context"||n.kind==="at-root")return"";return o}let r="";for(let n of e){let i=t(n);i!==""&&(r+=i)}return r}function Zo(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 Ft(e){let t=Zo(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function Ze(e,t,r,n){if(e[0]!=="."){let a=await ri(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let l=await ti(Xr(a).href);return{base:Zr(a),module:l.default??l}}let i=await ri(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,s]=await Promise.all([ti(Xr(i).href+"?id="+Date.now()),lr(i)]);for(let a of s)r(a);return{base:Zr(i),module:o.default??o}}var ei=null;async function ti(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 ei??=ea(import.meta.url,{moduleCache:!1,fsCache:!1}),await ei.import(e)}}var zt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],_p=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:zt});var ta=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:zt}),ra=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(Lt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:zt});async function ri(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 ii(ta,e,t).catch(()=>ii(ra,e,t))}function ii(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,s)=>{if(o)return i(o);n(s)}))}var yi=Hn(li());import tt from"tree-sitter";import rt from"tree-sitter-typescript";var Kt=new tt;Kt.setLanguage(rt.typescript);var Wt=String.raw,fa=new tt.Query(rt.typescript,Wt`
11
+ `);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case zr:case Kr:case Wr:case Jr:case Hr:case Gr:case Yr:{if(i.length>0){let p=Ue(i);n?n.nodes.push(p):t.push(p),i=""}let s=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==zr&&o!==Kr&&o!==Wr&&o!==Jr&&o!==Hr&&o!==Gr&&o!==Yr));u++);l=u-1;let f=e.slice(s,u),c=f.trim()===","?Fo(f):Uo(f);n?n.nodes.push(c):t.push(c);break}case qr:{let s=Lo(i,[]);if(i="",s.value!==":not"&&s.value!==":where"&&s.value!==":has"&&s.value!==":is"){let u=l+1,f=0;for(let p=l+1;p<e.length;p++){if(o=e.charCodeAt(p),o===qr){f++;continue}if(o===Fr){if(f===0){l=p;break}f--}}let c=l;s.nodes.push(zo(e.slice(u,c))),i="",l=c,n?n.nodes.push(s):t.push(s);break}n?n.nodes.push(s):t.push(s),r.push(s),n=s;break}case Fr:{let s=r.pop();if(i.length>0){let u=Ue(i);s.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}case qo:case Wo:case Ho:{if(i.length>0){let s=Ue(i);n?n.nodes.push(s):t.push(s)}i=String.fromCharCode(a);break}case Br:{if(i.length>0){let f=Ue(i);n?n.nodes.push(f):t.push(f)}i="";let s=l,u=0;for(let f=l+1;f<e.length;f++){if(o=e.charCodeAt(f),o===Br){u++;continue}if(o===Ko){if(u===0){l=f;break}u--}}i+=e.slice(s,l+1);break}case Jo:case Bo:{let s=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Lr)u+=1;else if(o===a){l=u;break}i+=e.slice(s,l+1);break}case Lr:{let s=e.charCodeAt(l+1);i+=String.fromCharCode(a)+String.fromCharCode(s),l+=1;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(Ue(i)),t}function Xe(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(F(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(F(n,Xe(o)));else i!==null&&t.push(F(n,Xe(i)));return t}function Zr(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push($("@keyframes",r,Xe(n)));return t}var et={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function ge(e){return{__BARE_VALUE__:e}}var q=ge(e=>{if(P(e.value))return e.value}),O=ge(e=>{if(P(e.value))return`${e.value}%`}),oe=ge(e=>{if(P(e.value))return`${e.value}px`}),Xr=ge(e=>{if(P(e.value))return`${e.value}ms`}),tt=ge(e=>{if(P(e.value))return`${e.value}deg`}),Qo=ge(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!P(t)||!P(r)))return e.fraction}),ei=ge(e=>{if(P(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Zo={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",...Qo},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...O}),backdropContrast:({theme:e})=>({...e("contrast"),...O}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...O}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...tt}),backdropInvert:({theme:e})=>({...e("invert"),...O}),backdropOpacity:({theme:e})=>({...e("opacity"),...O}),backdropSaturate:({theme:e})=>({...e("saturate"),...O}),backdropSepia:({theme:e})=>({...e("sepia"),...O}),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",...oe},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",...O},caretColor:({theme:e})=>e("colors"),colors:()=>({...et}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...q},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...O},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"),...oe}),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%",...O},grayscale:{0:"0",DEFAULT:"100%",...O},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))",...ei},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))",...ei},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",...tt},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%",...O},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",...O},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",...oe},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},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",...oe},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...tt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...O},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",...O},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%",...O},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...tt},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",...oe},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...oe},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",...Xr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Xr},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}};var Xo={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function he(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Xo)};for(let i of t)zt(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=ta(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function ea(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 zt(e,{config:t,base:r,path:n,reference:i}){let o=[];for(let s of t.plugins??[])"__isOptionsFunction"in s?o.push({...s(),reference:i}):"handler"in s?o.push({...s,reference:i}):o.push({handler:s,reference:i});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 s of t.presets??[])zt(e,{path:n,base:r,config:s,reference:i});for(let s of o)e.plugins.push(s),s.config&&zt(e,{path:n,base:r,config:s.config,reference:!!s.reference});let l=t.content??[],a=Array.isArray(l)?l:l.files;for(let s of a)e.content.files.push(typeof s=="object"?s:{base:r,pattern:s});e.configs.push(t)}function ta(e){let t=new Set,r=Lt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:et});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let l=o.theme??{},a=l.extend??{};for(let s in l)s!=="extend"&&t.add(s);Object.assign(e.theme,l);for(let s in a)e.extend[s]??=[],e.extend[s].push(a[s])}delete e.theme.extend;for(let o in e.extend){let l=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let a=l.map(i);return Me({},a,ea)}}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 l=e.theme.screens[o];l&&typeof l=="object"&&("raw"in l||"max"in l||"min"in l&&(e.theme.screens[o]=l.min))}return t}function ti({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 l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((a,s)=>Oe(a[1],s[1],"asc")),l.length>0){let[a]=l[0];i.push($("@media",`(width >= --theme(--breakpoint-${a}))`,[V("max-width","none")]))}for(let[a,s]of Object.entries(r)){if(typeof s=="object")if("min"in s)s=s.min;else continue;o.set(a,$("@media",`(width >= ${s})`,[V("max-width",s)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,s])=>[a,n.theme.resolveValue(a,["--breakpoint"]),s]).filter(Boolean);l.sort((a,s)=>Oe(a[1],s[1],"asc"));for(let[a,,s]of l)if(o&&o.has(a))o.get(a).nodes.push(V("padding-inline",s));else{if(o)continue;i.push($("@media",`(width >= theme(--breakpoint-${a}))`,[V("padding-inline",s)]))}}if(o)for(let[,l]of o)i.push(l);return i}function Kt({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 l of o)l===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):l.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 ri(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 ia=64;function Z(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function $(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function F(e,t=[]){return e.charCodeAt(0)===ia?_r(e,t):Z(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Ye(e){return{kind:"comment",value:e}}function C(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],l=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,s=0,u=t(o,{parent:l,context:n,path:r,replaceWith(f){a||(a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),s=0):f.length===1?(e[i]=f[0],s=1):(e.splice(i,1,...f),s=f.length):(e[i]=f,s=1))}})??0;if(r.pop(),a){u===0?i--:i+=s-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in o){r.push(o);let f=C(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function z(e,t){let r=0,n={file:null,code:""};function i(l,a=0){let s="",u=" ".repeat(a);if(l.kind==="declaration"){if(s+=`${u}${l.property}: ${l.value}${l.important?" !important":""};
12
+ `,t){r+=u.length;let f=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let c=r;r+=2,l.dst=[n,f,c]}}else if(l.kind==="rule"){if(s+=`${u}${l.selector} {
13
+ `,t){r+=u.length;let f=r;r+=l.selector.length,r+=1;let c=r;l.dst=[n,f,c],r+=2}for(let f of l.nodes)s+=i(f,a+1);s+=`${u}}
14
+ `,t&&(r+=u.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let f=`${u}${l.name} ${l.params};
15
+ `;if(t){r+=u.length;let c=r;r+=l.name.length,r+=1,r+=l.params.length;let p=r;r+=2,l.dst=[n,c,p]}return f}if(s+=`${u}${l.name}${l.params?` ${l.params} `:" "}{
16
+ `,t){r+=u.length;let f=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let c=r;l.dst=[n,f,c],r+=2}for(let f of l.nodes)s+=i(f,a+1);s+=`${u}}
17
+ `,t&&(r+=u.length,r+=2)}else if(l.kind==="comment"){if(s+=`${u}/*${l.value}*/
18
+ `,t){r+=u.length;let f=r;r+=2+l.value.length+2;let c=r;l.dst=[n,f,c],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return s}let o="";for(let l of e)o+=i(l,0);return n.code=o,o}function na(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 Wt(e){let t=na(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function rt(e,t,r,n){if(e[0]!=="."){let a=await li(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let s=await ai(ni(a).href);return{path:a,base:ii.dirname(a),module:s.default??s}}let i=await li(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([ai(ni(i).href+"?id="+Date.now()),pr(i)]);for(let a of l)r(a);return{path:i,base:ii.dirname(i),module:o.default??o}}var oi=null;async function ai(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 oi??=aa(import.meta.url,{moduleCache:!1,fsCache:!1}),await oi.import(e)}}var qt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Bp=Te.ResolverFactory.createResolver({fileSystem:new Te.CachedInputFileSystem(Bt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:qt});var la=Te.ResolverFactory.createResolver({fileSystem:new Te.CachedInputFileSystem(Bt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:qt}),sa=Te.ResolverFactory.createResolver({fileSystem:new Te.CachedInputFileSystem(Bt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:qt});async function li(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 si(la,e,t).catch(()=>si(sa,e,t))}function si(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,l)=>{if(o)return i(o);n(l)}))}var xi=Zn(pi());import ot from"tree-sitter";import at from"tree-sitter-typescript";var Ht=new ot;Ht.setLanguage(at.typescript);var Jt=String.raw,ha=new ot.Query(at.typescript,Jt`
19
19
  ; export default {}
20
20
  (export_statement
21
21
  value: [
@@ -66,7 +66,7 @@ ${L([m])}`)}u.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
- `),ca=new tt.Query(rt.typescript,Wt`
69
+ `),ya=new ot.Query(at.typescript,Jt`
70
70
  (call_expression
71
71
  function: [
72
72
  (call_expression
@@ -119,7 +119,7 @@ ${L([m])}`)}u.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 Bt(e){try{let r=Kt.parse(e).rootNode,n=ma(e),i=fa.matches(r),o=[];for(let s of i)for(let a of s.captures)if(a.name==="imports"){for(let l of a.node.children)if(!(l.type==="["||l.type==="]"||l.type===","))switch(l.type){case"identifier":let u=n[l.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([l.children[1].text,null]);break;case"call_expression":let f=ca.matches(l);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]=si(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let $=[],D=h;e:for(let te=h+1;te<g.length;te++){let xt=g[te];switch(xt.name){case"property":{if(xt.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":$.push(si(xt)),D=te}}h=D,m[d]=$,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 tt.Query(rt.typescript,Wt`
122
+ `);function Gt(e){try{let r=Ht.parse(e).rootNode,n=wa(e),i=ha.matches(r),o=[];for(let l of i)for(let a of l.captures)if(a.name==="imports"){for(let s of a.node.children)if(!(s.type==="["||s.type==="]"||s.type===","))switch(s.type){case"identifier":let u=n[s.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([s.children[1].text,null]);break;case"call_expression":let f=ya.matches(s);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]=mi(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let A=[],T=h;e:for(let J=h+1;J<g.length;J++){let de=g[J];switch(de.name){case"property":{if(de.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":A.push(mi(de)),T=J}}h=T,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 va=new ot.Query(at.typescript,Jt`
123
123
  ; ESM import
124
124
  (import_statement
125
125
  (import_clause
@@ -158,23 +158,23 @@ ${L([m])}`)}u.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 ma(e){let r=Kt.parse(e).rootNode,n=pa.matches(r),i={};for(let o of n){let s=[],a="";for(let l=0;l<o.captures.length;l++){let u=o.captures[l];switch(u.name){case"default":s.push({name:u.node.text,export:null});break;case"imported-name":s.push({name:u.node.text,export:u.node.text});break;case"imported-from":a=u.node.text;break;case"imported-namespace":s.push({name:u.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=u.node.text;break}}for(let{name:l,export:u}of s)i[l]={module:a,export:u}}return i}function si(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 wa from"node:fs";import ci from"node:path";import{stripVTControlCharacters as pi}from"node:util";import U from"picocolors";import Se from"enhanced-resolve";import qt from"node:fs";import{createRequire as da}from"node:module";var ga=da(import.meta.url).resolve;function ui(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return ga(e)}var ha=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),ya=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function fi(e,t){try{return ha.resolveSync({},t,e)}catch{return ya.resolveSync({},t,e)}}var va=Se.ResolverFactory.createResolver({fileSystem:new Se.CachedInputFileSystem(qt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Ht(e,t){return va.resolveSync({},t,e)}var it={indent:2};function nt(){return`${U.italic(U.bold(U.blue("\u2248")))} tailwindcss ${U.blue(`v${ka()}`)}`}function x(e){return`${U.dim(U.blue("`"))}${U.blue(e)}${U.dim(U.blue("`"))}`}function P(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=ci.relative(t,e);return n.startsWith("..")||(n=`.${ci.sep}${n}`),r&&n.length>e.length?e:n}function je(e,t){if(e.includes(`
161
+ `);function wa(e){let r=Ht.parse(e).rootNode,n=va.matches(r),i={};for(let o of n){let l=[],a="";for(let s=0;s<o.captures.length;s++){let u=o.captures[s];switch(u.name){case"default":l.push({name:u.node.text,export:null});break;case"imported-name":l.push({name:u.node.text,export:u.node.text});break;case"imported-from":a=u.node.text;break;case"imported-namespace":l.push({name:u.node.text,export:"*"});break;case"imported-alias":if(l.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let f=l[l.length-1],c=f.name;f.export=c,f.name=u.node.text;break}}for(let{name:s,export:u}of l)i[s]={module:a,export:u}}return i}function mi(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 Sa from"node:fs";import hi from"node:path";import{stripVTControlCharacters as yi}from"node:util";import M from"picocolors";import Ve from"enhanced-resolve";import Yt from"node:fs";import{createRequire as ka}from"node:module";var ba=ka(import.meta.url).resolve;function di(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return ba(e)}var xa=Ve.ResolverFactory.createResolver({fileSystem:new Ve.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Ca=Ve.ResolverFactory.createResolver({fileSystem:new Ve.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function gi(e,t){try{return xa.resolveSync({},t,e)}catch{return Ca.resolveSync({},t,e)}}var Aa=Ve.ResolverFactory.createResolver({fileSystem:new Ve.CachedInputFileSystem(Yt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Qt(e,t){return Aa.resolveSync({},t,e)}var lt={indent:2};function st(){return`${M.italic(M.bold(M.blue("\u2248")))} tailwindcss ${M.blue(`v${$a()}`)}`}function x(e){return`${M.dim(M.blue("`"))}${M.blue(e)}${M.dim(M.blue("`"))}`}function R(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=hi.relative(t,e);return n.startsWith("..")||(n=`.${hi.sep}${n}`),r&&n.length>e.length?e:n}function Le(e,t){if(e.includes(`
162
162
  `))return e.split(`
163
- `).flatMap(s=>je(s,t));let r=e.split(" "),n=[],i="",o=0;for(let s of r){let a=pi(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 Ue(e,t=0){return`${" ".repeat(t+it.indent)}${e}`}function ot(e,{art:t=U.gray("\u2502"),prefix:r="",print:n=le}){let i=r.length,o=" ",s=o.length,a=pi(t).length,u=process.stderr.columns-i-s*2-a;je(e,u).map((f,c)=>n(`${t}${o}${c===0?r:" ".repeat(i)}${f}${o}`)),n()}function j(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.green("\u2502"),prefix:t,print:r})}function z(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.blue("\u2502"),prefix:t,print:r})}function R(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.red("\u2502"),prefix:t,print:r})}function at(e,{prefix:t="",print:r=le}={}){ot(e,{art:U.yellow("\u2502"),prefix:t,print:r})}function le(e=""){process.stderr.write(`${e}
164
- `)}function K(e=""){process.stdout.write(`${e}
165
- `)}function ka(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(wa.readFileSync(ui("tailwindcss/package.json"),"utf-8"));return e}var Ca=xa(import.meta.url),Aa=hi.dirname(Ca);async function vi(e,t,r){let[n,i]=await Promise.all([Ze(t,Aa,()=>{}).then(u=>u.module),ba.readFile(t,"utf-8")]);if(!Na(n,i))return z(`The configuration file at ${x(P(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($a(n)),"content"in n&&(o=await Ta(n,t,r)),"theme"in n){let u=await Sa(e,n,r);u&&a.push(u)}"corePlugins"in n&&z("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let l=Bt(i);if(l!==null)for(let[u,f]of l)s.push({base:r,path:u,options:f});return{sources:o,plugins:s,css:a.join(`
166
- `)}}async function Sa(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1},{resolvedConfig:i,replacedThemeKeys:o}=de(e,[n]),s=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));Da(e,i,o);let a="",l=`
163
+ `).flatMap(l=>Le(l,t));let r=e.split(" "),n=[],i="",o=0;for(let l of r){let a=yi(l).length;o+a+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+l,o+=a+(o?1:0)}return o&&n.push(i),n}function Fe(e,t=0){return`${" ".repeat(t+lt.indent)}${e}`}function ut(e,{art:t=M.gray("\u2502"),prefix:r="",print:n=se}){let i=r.length,o=" ",l=o.length,a=yi(t).length,u=process.stderr.columns-i-l*2-a;Le(e,u).map((f,c)=>n(`${t}${o}${c===0?r:" ".repeat(i)}${f}${o}`)),n()}function j(e,{prefix:t="",print:r=se}={}){ut(e,{art:M.green("\u2502"),prefix:t,print:r})}function K(e,{prefix:t="",print:r=se}={}){ut(e,{art:M.blue("\u2502"),prefix:t,print:r})}function E(e,{prefix:t="",print:r=se}={}){ut(e,{art:M.red("\u2502"),prefix:t,print:r})}function ft(e,{prefix:t="",print:r=se}={}){ut(e,{art:M.yellow("\u2502"),prefix:t,print:r})}function se(e=""){process.stderr.write(`${e}
164
+ `)}function W(e=""){process.stdout.write(`${e}
165
+ `)}function $a(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Sa.readFileSync(di("tailwindcss/package.json"),"utf-8"));return e}var Na=Va(import.meta.url),Pa=bi.dirname(Na);async function Ci(e,t,r){let[n,i]=await Promise.all([rt(t,Pa,()=>{}).then(u=>u.module),Ta.readFile(t,"utf-8")]);if(!Da(n,i))return K(`The configuration file at ${x(R(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=[],l=[],a=[];if("darkMode"in n&&a.push(Ea(n)),"content"in n&&(o=await Oa(n,t,r)),"theme"in n){let u=await Ra(e,n,r);u&&a.push(u)}"corePlugins"in n&&K("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let s=Gt(i);if(s!==null)for(let[u,f]of s)l.push({base:r,path:u,options:f});return{sources:o,plugins:l,css:a.join(`
166
+ `)}}async function Ra(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1},{resolvedConfig:i,replacedThemeKeys:o}=he(e,[n]),l=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));Fa(e,i,o);let a="",s=`
167
167
  @tw-bucket theme {
168
- `;l+=`
168
+ `;s+=`
169
169
  @theme {
170
- `;let u=!1;for(let[f,c]of Rr(i.theme)){if(typeof c!="string"&&typeof c!="number")continue;if(typeof c=="string"&&(c=c.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof c=="number"||typeof c=="string")){let d=typeof c=="string"?parseFloat(c):c;if(d>=0&&d<=1&&(c=d*100+"%"),typeof c=="string"&&f[1]===c.replace(/%$/,"")&&Pt(f[1]))continue}if(f[0]==="keyframes")continue;u=!0;let p=Va(f);if(p!==a&&(l+=`
171
- `,a=p),s.has(f[0])&&s.get(f[0])===!1){s.set(f[0],!0);let d=Q([f[0]]);d!==null&&(l+=` ${re(`--${d}`)}-*: initial;
172
- `)}let m=Q(f);m!==null&&(l+=` ${re(`--${m}`)}: ${c};
173
- `)}if("keyframes"in i.theme&&(u=!0,l+=`
174
- `+Ea(i.theme.keyframes)),!u)return null;if(l+=`}
175
- `,"container"in i.theme){let f=Yr(i.theme.container,e);f.length>0&&(l+=`
176
- `+L([A("@utility","container",f)]))}return l+=`}
177
- `,l}function $a(e){let t="";if(Mt({config:()=>e.darkMode,addVariant:(o,s)=>t=s}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
170
+ `;let u=!1;for(let[f,c]of Ir(i.theme)){if(typeof c!="string"&&typeof c!="number")continue;if(typeof c=="string"&&(c=c.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof c=="number"||typeof c=="string")){let d=typeof c=="string"?parseFloat(c):c;if(d>=0&&d<=1&&(c=d*100+"%"),typeof c=="string"&&f[1]===c.replace(/%$/,"")&&Ot(f[1]))continue}if(f[0]==="keyframes")continue;u=!0;let p=_a(f);if(p!==a&&(s+=`
171
+ `,a=p),l.has(f[0])&&l.get(f[0])===!1){l.set(f[0],!0);let d=X([f[0]]);d!==null&&(s+=` ${ie(`--${d}`)}-*: initial;
172
+ `)}let m=X(f);m!==null&&(s+=` ${ie(`--${m}`)}: ${c};
173
+ `)}if("keyframes"in i.theme&&(u=!0,s+=`
174
+ `+Ma(i.theme.keyframes)),!u)return null;if(s+=`}
175
+ `,"container"in i.theme){let f=ti(i.theme.container,e);f.length>0&&(s+=`
176
+ `+z([$("@utility","container",f)]))}return s+=`}
177
+ `,s}function Ea(e){let t="";if(Kt({config:()=>e.darkMode,addVariant:(o,l)=>t=l}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
178
178
  @tw-bucket custom-variant {
179
179
  @custom-variant dark (${t[0]});
180
180
  }
@@ -184,45 +184,45 @@ ${L([m])}`)}u.add(c);for(let m of o.get(c))for(let d of s.get(m))p.push(c),f(d,p
184
184
  @tw-bucket custom-variant {
185
185
  @custom-variant dark {${i}};
186
186
  }
187
- `:""}function Va(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 Ta(e,t,r){let n=_a(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:hi.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:l}of s){if(typeof l!="string")throw new Error("Unsupported content value: "+l);let u=Oa({base:a,pattern:l[0]==="!"?l.slice(1):l,negated:l[0]==="!"}),f=!0;for(let c of u)if(!n.includes(c)){f=!1;break}f||i.push({base:a,pattern:l})}return i}function Na(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))||Bt(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!mi(i.extend))return!1;let{extend:a,...l}=i;if(!mi(l))return!1}return!0}var Pa=[...Object.keys(yi.default),"containers"],Ra=["supports","data","aria"];function mi(e){for(let t of Object.keys(e))if(!Pa.includes(t)||Ra.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 Ea(e){let t=Hr({theme:{keyframes:e}});return L(t).trim()+`
188
- `}function _a(e){let t=new gi({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Oa(e){let t=new gi({sources:[e]});return t.scan(),t.files}function Da(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=di(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[s,a]of Object.entries(t.theme.spacing??{})){let[l,u]=di(a);l!==null&&G(s)&&u===o&&parseFloat(l)===Number(s)*parseFloat(i)&&(delete t.theme.spacing[s],e.theme.clearNamespace(re(`--spacing-${s.replaceAll(".","_")}`),0))}}function di(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import X from"node:fs/promises";import Gt from"node:path";import{exec as Ia}from"node:child_process";import{readFileSync as ja}from"node:fs";import $e from"node:fs/promises";import{dirname as Ua,resolve as he}from"node:path";import{promisify as Ma}from"node:util";var wi=Ma(Ia),ki={default:"-D",bun:"-d"},Jt=new y(e=>{try{let t=he(e,"package.json");return ja(t,"utf-8")}catch{return""}});function Ve(e){return{async add(t,r="dependencies"){let n=await xi.get(e),i=t.slice();r==="devDependencies"&&i.push(ki[n]||ki.default);let o=`${n} add ${i.join(" ")}`;try{return await wi(o,{cwd:e})}catch(s){throw R(`An error occurred while running \`${o}\`
187
+ `:""}function _a(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 Oa(e,t,r){let n=Ua(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,l=Array.isArray(e.content)?e.content.map(a=>({base:r,pattern:a})):(e.content?.files??[]).map(a=>typeof a=="string"&&o?{base:bi.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:s}of l){if(typeof s!="string")throw new Error("Unsupported content value: "+s);let u=La({base:a,pattern:s[0]==="!"?s.slice(1):s,negated:s[0]==="!"}),f=!0;for(let c of u)if(!n.includes(c)){f=!1;break}f||i.push({base:a,pattern:s})}return i}function Da(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 l=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(a=>!l.includes(a))||Gt(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!vi(i.extend))return!1;let{extend:a,...s}=i;if(!vi(s))return!1}return!0}var Ia=[...Object.keys(xi.default),"containers"],ja=["supports","data","aria"];function vi(e){for(let t of Object.keys(e))if(!Ia.includes(t)||ja.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 Ma(e){let t=Zr({theme:{keyframes:e}});return z(t).trim()+`
188
+ `}function Ua(e){let t=new ki({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function La(e){let t=new ki({sources:[e]});return t.scan(),t.files}function Fa(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=wi(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[l,a]of Object.entries(t.theme.spacing??{})){let[s,u]=wi(a);s!==null&&Q(l)&&u===o&&parseFloat(s)===Number(l)*parseFloat(i)&&(delete t.theme.spacing[l],e.theme.clearNamespace(ie(`--spacing-${l.replaceAll(".","_")}`),0))}}function wi(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import te from"node:fs/promises";import Xt from"node:path";import{exec as za}from"node:child_process";import{readFileSync as Ka}from"node:fs";import Ne from"node:fs/promises";import{dirname as Wa,resolve as ve}from"node:path";import{promisify as Ba}from"node:util";var Ai=Ba(za),Si={default:"-D",bun:"-d"},Zt=new y(e=>{try{let t=ve(e,"package.json");return Ka(t,"utf-8")}catch{return""}});function Pe(e){return{async add(t,r="dependencies"){let n=await Ti.get(e),i=t.slice();r==="devDependencies"&&i.push(Si[n]||Si.default);let o=`${n} add ${i.join(" ")}`;try{return await Ai(o,{cwd:e})}catch(l){throw E(`An error occurred while running \`${o}\`
189
189
 
190
- ${s.stdout}
191
- ${s.stderr}`,{prefix:"\u21B3 "}),s}finally{Jt.delete(e)}},has(t){return Jt.get(e).includes(`"${t}":`)},async remove(t){let n=`${await xi.get(e)} remove ${t.join(" ")}`;try{return await wi(n,{cwd:e})}catch(i){throw R(`An error occurred while running \`${n}\`
190
+ ${l.stdout}
191
+ ${l.stderr}`,{prefix:"\u21B3 "}),l}finally{Zt.delete(e)}},has(t){return Zt.get(e).includes(`"${t}":`)},async remove(t){let n=`${await Ti.get(e)} remove ${t.join(" ")}`;try{return await Ai(n,{cwd:e})}catch(i){throw E(`An error occurred while running \`${n}\`
192
192
 
193
193
  ${i.stdout}
194
- ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{Jt.delete(e)}}}}var bi=!1,xi=new y(async e=>{do{let t=he(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(he(e,"bun.lockb")),"bun"}catch{}try{return await $e.access(he(e,"bun.lock")),"bun"}catch{}try{return await $e.access(he(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await $e.access(he(e,"yarn.lock")),"yarn"}catch{}try{return await $e.access(he(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Ua(e),r===e)return bi||(bi=!0,at("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Ai(e){let t=!1,r=!1,n=!1,i=!1,o=!1,s=Gt.resolve(e,"package.json"),a;try{a=JSON.parse(await X.readFile(s,"utf-8"))}catch{}let l=await za(e);if(l){let u=await Fa(l);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let u=await Ci(a.postcss);t=!0,u&&(await X.writeFile(s,JSON.stringify({...a,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await Wa(e),f=null;if(u){try{f=JSON.parse(await X.readFile(u,"utf-8"))}catch{}if(f){let c=await Ci(f);t=!0,c&&(await X.writeFile(u,JSON.stringify(c.json,null,2)),r=!0,n=c.didAddPostcssClient,i=c.didRemoveAutoprefixer,o=c.didRemovePostCSSImport)}}}if(!t){z("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await Ve(e).add(["@tailwindcss/postcss@latest"],u),j(`Installed package: ${x("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Ve(e).remove(["autoprefixer"]),j(`Removed package: ${x("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Ve(e).remove(["postcss-import"]),j(`Removed package: ${x("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&l&&j(`Migrated PostCSS configuration: ${x(P(l,e))}`,{prefix:"\u21B3 "})}async function Fa(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(z("Migrating PostCSS configuration\u2026"),!await Ba(e))return at("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let s=!1,a=!1,l=!1,f=(await X.readFile(e,"utf-8")).split(`
195
- `),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):l=!0}else if(i(m)){let d=f[p+1];t(d)||c.push(m)}else c.push(m)}return await X.writeFile(e,c.join(`
196
- `)),{didAddPostcssClient:s,didRemoveAutoprefixer:a,didRemovePostCSSImport:l}}async function Ci(e){function t(f,c){return f==="tailwindcss"&&lt(c)}function r(f,c){return f==="postcss-import"&&lt(c)}function n(f,c){return f==="autoprefixer"&&lt(c)}function i(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||lt(c))}let o=!1,s=!1,a=!1,l=Object.entries(e.plugins||{}),u=[];for(let f=0;f<l.length;f++){let[c,p]=l[f];if(t(c,p))o=!0,u.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<l.length;d++){let[g,h]=l[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?u.push([c,p]):a=!0}else if(i(c,p)){let[m,d]=l[f+1];t(m,d)||u.push([c,p])}else u.push([c,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}var La=[".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 za(e){for(let t of La){let r=Gt.resolve(e,t);try{return await X.access(r),r}catch{}}return null}var Ka=[".postcssrc",".postcssrc.json"];async function Wa(e){for(let t of Ka){let r=Gt.resolve(e,t);try{return await X.access(r),r}catch{}}return null}async function Ba(e){let t=await X.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function lt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Ga}from"globby";import Ya from"node:path";import Qa from"postcss";import{__unstable__loadDesignSystem as Ha,compileAst as Ja}from"@tailwindcss/node";import*as $i from"node:fs";import*as Vi from"node:fs/promises";import*as se from"node:path";import*as Ti from"node:util";import*as st from"postcss";import Dm from"postcss";var qa=33;function Si(e){function t(n,i){if(n.type==="decl")i.push(V(n.prop,n.value,n.important));else if(n.type==="rule"){let o=F(n.selector);n.each(s=>t(s,o.nodes)),i.push(o)}else if(n.type==="atrule"){let o=A(`@${n.name}`,n.params);n.each(s=>t(s,o.nodes)),i.push(o)}else if(n.type==="comment"){if(n.text.charCodeAt(0)!==qa)return;i.push(qe(n.text))}}let r=[];return e.each(n=>t(n,r)),r}var H=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=se.resolve(process.cwd(),t);let r=await Vi.readFile(t,"utf-8"),n=st.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=se.resolve(process.cwd(),t);let r=$i.readFileSync(t,"utf-8"),n=st.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=st.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=se.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 Me(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Me(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Me(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 Me(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:Ja(Si(this.root),{base:se.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Ha(this.root.toString(),{base:se.dirname(this.file)})}[Ti.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*Me(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Me(n.item,t,i),yield{item:n.item,path:i}}}async function Ni(e){let t=await Ga(),r=[],n=new y(l=>{if(t(l))return null;try{let u=H.loadSync(l);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Qa([{postcssPlugin:"mark-import-nodes",AtRule:{import(l){let u=l.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let f=l.source?.input.file?Ya.dirname(l.source.input.file):process.cwd(),c=!1;try{if(u[0]!==".")try{c=Ht(`./${u}`,f)}catch{}c||(c=Ht(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;R(`Failed to resolve import: ${x(u)} in ${x(P(l.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=n.get(c);if(!p)return;l.raws.tailwind_destination_sheet_id=p.id;let m=l.source?.input.file?n.get(l.source.input.file):void 0,d=[];for(let g of w(l.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 l of e)l.file&&(n.set(l.file,l),r.push(()=>i.process(l.root,{from:l.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function s(l){let u=[];for(let f of l){if(!f.item.file)continue;let c=f.item.file.replace(o,""),p=f.meta.layers.join(", ");p.length>0?u.push(`${c} (layers: ${p})`):u.push(c)}return u.join(" <- ")}let a=[];for(let l of e){if(!l.file)continue;let{convertiblePaths:u,nonConvertiblePaths:f}=l.analyzeImportPaths();if(!(u.length>0&&f.length>0))continue;l.canMigrate=!1;let p=l.file.replace(o,"");for(let m of u)a.push(`- ${p} <- ${s(m)}`);for(let m of f)a.push(`- ${p} <- ${s(m)}`)}if(a.length===0){let l=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,l.add(u))});if(l.size<=1)return;{let u=new y(()=>new Set);for(let c of l)u.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of u)for(let[m,d]of u){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 $ of h){if(v!==$)continue;let D=v;u.delete(c),u.delete(m);for(let te of p)u.get(D).add(te);for(let te of d)u.get(D).add(te);f=!0;continue e}}}for(let[c,p]of u){c.isTailwindRoot=!0;for(let m of p)c!==m&&(m.isTailwindRoot=!1)}return}}{let l=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
197
- `;throw l+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
198
- `,new Error(l+a.join(`
199
- `))}}import Pi from"postcss";import{format as Ri}from"prettier";function T(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=T(n,t),r}),r}function Yt(e,t){e?.each?.(r=>{Yt(r,t),t(r)})}var Ei={parser:"css",semi:!0,singleQuote:!0};function _i(){async function e(t){let r=[];T(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 Ri(o,Ei));continue}i.replaceWith(Pi.parse(`${i.raws.before??""}${(await Ri(o,Ei)).trim()}`))}t.removeAll(),t.append(Pi.parse(n.map(i=>i.trim()).filter(Boolean).join(`
194
+ ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{Zt.delete(e)}}}}var $i=!1,Ti=new y(async e=>{do{let t=ve(e,"package.json");try{let n=await Ne.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 Ne.access(ve(e,"bun.lockb")),"bun"}catch{}try{return await Ne.access(ve(e,"bun.lock")),"bun"}catch{}try{return await Ne.access(ve(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await Ne.access(ve(e,"yarn.lock")),"yarn"}catch{}try{return await Ne.access(ve(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Wa(e),r===e)return $i||($i=!0,ft("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Ni(e){let t=!1,r=!1,n=!1,i=!1,o=!1,l=Xt.resolve(e,"package.json"),a;try{a=JSON.parse(await te.readFile(l,"utf-8"))}catch{}let s=await Ja(e);if(s){let u=await qa(s);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let u=await Vi(a.postcss);t=!0,u&&(await te.writeFile(l,JSON.stringify({...a,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await Ya(e),f=null;if(u){try{f=JSON.parse(await te.readFile(u,"utf-8"))}catch{}if(f){let c=await Vi(f);t=!0,c&&(await te.writeFile(u,JSON.stringify(c.json,null,2)),r=!0,n=c.didAddPostcssClient,i=c.didRemoveAutoprefixer,o=c.didRemovePostCSSImport)}}}if(!t){K("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await Pe(e).add(["@tailwindcss/postcss@latest"],u),j(`Installed package: ${x("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Pe(e).remove(["autoprefixer"]),j(`Removed package: ${x("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Pe(e).remove(["postcss-import"]),j(`Removed package: ${x("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&s&&j(`Migrated PostCSS configuration: ${x(R(s,e))}`,{prefix:"\u21B3 "})}async function qa(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(K("Migrating PostCSS configuration\u2026"),!await Qa(e))return ft("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let l=!1,a=!1,s=!1,f=(await te.readFile(e,"utf-8")).split(`
195
+ `),c=[];for(let p=0;p<f.length;p++){let m=f[p];if(t(m))l=!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):s=!0}else if(i(m)){let d=f[p+1];t(d)||c.push(m)}else c.push(m)}return await te.writeFile(e,c.join(`
196
+ `)),{didAddPostcssClient:l,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}async function Vi(e){function t(f,c){return f==="tailwindcss"&&ct(c)}function r(f,c){return f==="postcss-import"&&ct(c)}function n(f,c){return f==="autoprefixer"&&ct(c)}function i(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||ct(c))}let o=!1,l=!1,a=!1,s=Object.entries(e.plugins||{}),u=[];for(let f=0;f<s.length;f++){let[c,p]=s[f];if(t(c,p))o=!0,u.push(["@tailwindcss/postcss",p]);else if(n(c,p))l=!0;else if(r(c,p)){let m=!1;for(let d=f+1;d<s.length;d++){let[g,h]=s[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?u.push([c,p]):a=!0}else if(i(c,p)){let[m,d]=s[f+1];t(m,d)||u.push([c,p])}else u.push([c,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:l,didRemovePostCSSImport:a}}var Ha=[".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 Ja(e){for(let t of Ha){let r=Xt.resolve(e,t);try{return await te.access(r),r}catch{}}return null}var Ga=[".postcssrc",".postcssrc.json"];async function Ya(e){for(let t of Ga){let r=Xt.resolve(e,t);try{return await te.access(r),r}catch{}}return null}async function Qa(e){let t=await te.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function ct(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as tl}from"globby";import rl from"node:path";import il from"postcss";import{__unstable__loadDesignSystem as Xa,compileAst as el}from"@tailwindcss/node";import*as Ri from"node:fs";import*as Ei from"node:fs/promises";import*as ue from"node:path";import*as _i from"node:util";import*as pt from"postcss";import Hm,{Input as Jm}from"postcss";var Za=33;function Pi(e){let t=new y(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let l=o.source;if(!l)return;let a=l.input;if(a&&l.start!==void 0&&l.end!==void 0)return[t.get(a),l.start.offset,l.end.offset]}function n(o,l){if(o.type==="decl"){let a=V(o.prop,o.value,o.important);a.src=r(o),l.push(a)}else if(o.type==="rule"){let a=F(o.selector);a.src=r(o),o.each(s=>n(s,a.nodes)),l.push(a)}else if(o.type==="atrule"){let a=$(`@${o.name}`,o.params);a.src=r(o),o.each(s=>n(s,a.nodes)),l.push(a)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==Za)return;let a=Ye(o.text);a.src=r(o),l.push(a)}}let i=[];return e.each(o=>n(o,i)),i}var G=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=ue.resolve(process.cwd(),t);let r=await Ei.readFile(t,"utf-8"),n=pt.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=ue.resolve(process.cwd(),t);let r=Ri.readFileSync(t,"utf-8"),n=pt.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=pt.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=ue.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 ze(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of ze(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of ze(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 ze(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 l of o.layers)i||=l==="utilities"||l==="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:el(Pi(this.root),{base:ue.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Xa(this.root.toString(),{base:ue.dirname(this.file)})}[_i.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*ze(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*ze(n.item,t,i),yield{item:n.item,path:i}}}async function Oi(e){let t=await tl(),r=[],n=new y(s=>{if(t(s))return null;try{let u=G.loadSync(s);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=il([{postcssPlugin:"mark-import-nodes",AtRule:{import(s){let u=s.params.match(/['"](.*?)['"]/)?.[1];if(!u)return;let f=s.source?.input.file?rl.dirname(s.source.input.file):process.cwd(),c=!1;try{if(u[0]!==".")try{c=Qt(`./${u}`,f)}catch{}c||(c=Qt(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;E(`Failed to resolve import: ${x(u)} in ${x(R(s.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=n.get(c);if(!p)return;s.raws.tailwind_destination_sheet_id=p.id;let m=s.source?.input.file?n.get(s.source.input.file):void 0,d=[];for(let g of w(s.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 s of e)s.file&&(n.set(s.file,s),r.push(()=>i.process(s.root,{from:s.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function l(s){let u=[];for(let f of s){if(!f.item.file)continue;let c=f.item.file.replace(o,""),p=f.meta.layers.join(", ");p.length>0?u.push(`${c} (layers: ${p})`):u.push(c)}return u.join(" <- ")}let a=[];for(let s of e){if(!s.file)continue;let{convertiblePaths:u,nonConvertiblePaths:f}=s.analyzeImportPaths();if(!(u.length>0&&f.length>0))continue;s.canMigrate=!1;let p=s.file.replace(o,"");for(let m of u)a.push(`- ${p} <- ${l(m)}`);for(let m of f)a.push(`- ${p} <- ${l(m)}`)}if(a.length===0){let s=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,s.add(u))});if(s.size<=1)return;{let u=new y(()=>new Set);for(let c of s)u.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of u)for(let[m,d]of u){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 T=v;u.delete(c),u.delete(m);for(let J of p)u.get(T).add(J);for(let J of d)u.get(T).add(J);f=!0;continue e}}}for(let[c,p]of u){c.isTailwindRoot=!0;for(let m of p)c!==m&&(m.isTailwindRoot=!1)}return}}{let s=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
197
+ `;throw s+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
198
+ `,new Error(s+a.join(`
199
+ `))}}import Di from"postcss";import{format as Ii}from"prettier";function N(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=N(n,t),r}),r}function er(e,t){e?.each?.(r=>{er(r,t),t(r)})}var ji={parser:"css",semi:!0,singleQuote:!0};function Mi(){async function e(t){let r=[];N(t,(i,o,l)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=l,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,ji));continue}i.replaceWith(Di.parse(`${i.raws.before??""}${(await Ii(o,ji)).trim()}`))}t.removeAll(),t.append(Di.parse(n.map(i=>i.trim()).filter(Boolean).join(`
200
200
 
201
- `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as cl}from"@tailwindcss/node";import fe from"node:path";import pl from"postcss";import{__unstable__loadDesignSystem as Ui,compile as nl}from"@tailwindcss/node";import ol from"node:fs/promises";import ue,{dirname as Mi}from"node:path";import{fileURLToPath as al}from"node:url";import Xa from"semver";import{readFileSync as Za}from"node:fs";import id from"node:fs/promises";function Oi(e,t){try{let r=fi(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(Za(r,"utf8"));return n}catch{return null}}function E(e){return Xa.satisfies(tl(),`>=${e}.0.0 <${e+1}.0.0`)}var el=new y(e=>{let t=Oi("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function tl(e=process.cwd()){return el.get(e)}var Di=new WeakSet;function Ii(e,t,r){if(!e.theme.prefix||!t||!E(3))return r;Di.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Di.add(e));let n=rl(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=[...I(s,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function rl(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,l=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(l=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),l&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:s})}var il=/([a-z]+)/;function ji(e){let t=il.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 ll=al(import.meta.url),Fe=Mi(ll),Fi=String.raw;async function Li(e,t){try{e===null?e=await Qt(t.base):ue.isAbsolute(e)||(e=ue.resolve(t.base,e));let r=ue.relative(Fe,e);!r.startsWith(".")&&!ue.isAbsolute(r)&&(r="./"+r);let n=await sl(e),i=n.prefix?ji(n.prefix):null,o=Fi`
201
+ `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as yl}from"@tailwindcss/node";import ce from"node:path";import vl from"postcss";import{__unstable__loadDesignSystem as Ki,compile as fl}from"@tailwindcss/node";import cl from"node:fs/promises";import fe,{dirname as Wi}from"node:path";import{fileURLToPath as pl}from"node:url";import ol from"semver";import{readFileSync as nl}from"node:fs";import vd from"node:fs/promises";function Ui(e,t){try{let r=gi(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(nl(r,"utf8"));return n}catch{return null}}function _(e){return ol.satisfies(ll(),`>=${e}.0.0 <${e+1}.0.0`)}var al=new y(e=>{let t=Ui("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ll(e=process.cwd()){return al.get(e)}var Li=new WeakSet;function Fi(e,t,r){if(!e.theme.prefix||!t||!_(3))return r;Li.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Li.add(e));let n=sl(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let l=r.slice(0,n.start)+n.base+r.slice(n.end),a=[...I(l,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function sl(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,l=o+i.length,a=!1,s=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(s=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),s&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:l})}var ul=/([a-z]+)/;function zi(e){let t=ul.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 ml=pl(import.meta.url),Ke=Wi(ml),Bi=String.raw;async function qi(e,t){try{e===null?e=await tr(t.base):fe.isAbsolute(e)||(e=fe.resolve(t.base,e));let r=fe.relative(Ke,e);!r.startsWith(".")&&!fe.isAbsolute(r)&&(r="./"+r);let n=await dl(e),i=n.prefix?zi(n.prefix):null,o=Bi`
202
202
  @import 'tailwindcss' ${i?`prefix(${i})`:""};
203
203
  @config '${r}';
204
- `,[s,a]=await Promise.all([nl(o,{base:Fe,onDependency:()=>{}}),Ui(o,{base:Fe})]);return{designSystem:a,sources:s.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){R("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function sl(e){let[t,r]=await Promise.all([Ui(Fi`
204
+ `,[l,a]=await Promise.all([fl(o,{base:Ke,onDependency:()=>{}}),Ki(o,{base:Ke})]);return{designSystem:a,sources:l.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 dl(e){let[t,r]=await Promise.all([Ki(Bi`
205
205
  @import 'tailwindcss';
206
- `,{base:Fe}),Ze(e,Fe,()=>{}).then(n=>n.module)]);return de(t,[{base:Mi(e),config:r,reference:!1}]).resolvedConfig}var ul=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Qt(e,t=e){for(let r of fl(e,t))for(let n of ul){let i=ue.resolve(r,n);try{return await ol.access(i),i}catch{}}throw new Error(`No configuration file found for ${x(P(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${x("--config")} option.`)}function*fl(e,t=e){let r=ue.resolve(e),n=ue.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=ue.dirname(i);while(i!==n);yield n}async function zi(e,{configPath:t,base:r}){let n=e.filter(u=>u.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
207
- 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(u=>{let f=!1;return u.root.walkAtRules("config",c=>{let p=fe.resolve(fe.dirname(u.file),c.params.slice(1,-1));return u.linkedConfigPath=p,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,s=new y(()=>new Set);for(let u of i){if(!u.file)continue;let f=t;t===null?f=await Qt(fe.dirname(u.file),r):fe.isAbsolute(f)||(f=fe.resolve(r,f)),o.set(u,f),s.get(f).add(u)}let a=new Set;for(let u of s.values())if(u.size>1)for(let f of u)a.add(f);if(a.size>1){for(let u of a)R(`Could not determine configuration file for: ${x(P(u.file,r))}
208
- 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 l=P;for(let[u,f]of o)try{if(!u||!u.file)return;j(`Linked ${x(l(f,r))} to ${x(l(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let c=fe.relative(fe.dirname(u.file),f);!c.startsWith(".")&&!fe.isAbsolute(c)&&(c="./"+c),c=cl(c);{let p=u.root,m=pl.atRule({name:"config",params:`'${c}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?u.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(c){R("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}import Xl from"postcss";import pn from"node:fs/promises";import mn,{extname as Ul}from"node:path";function Ki(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 ml}from"@tailwindcss/oxide";async function Wi(e,t="html"){let n=new ml({}).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}var Le=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 ee=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Y(".x",[A("@apply",t)])];return dl(e,()=>Oe(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:l})=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let u=a.nodes[0].value;e.theme.prefix&&u.startsWith(`--${e.theme.prefix}-`)&&(u=u.slice(`--${e.theme.prefix}-`.length));let f=e.resolveThemeValue(u);if(!s.has(u)&&(s.add(u),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&&l(k(f))}}),i.value=b(o)}if(i.value.includes("calc")){let o=!1,s=k(i.value);S(s,(a,{replaceWith:l})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let u=Le.get(a.nodes[0].value);if(u===null)return;let[f,c]=u,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,l(k(`${f*p}${c}`)))}),o&&(i.value=b(s))}i.value=Nt(i.value)}}),L(r)}catch{return Symbol()}})),ze=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Y(".x",[A("@apply",`${t}:flex`)])];return Oe(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=jt(i.selector),s=!1;He(o,(a,{replaceWith:l})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),s=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(s=!0,l(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,l(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=Je(o))}}),L(r)}catch{return Symbol()}}));function dl(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 gl=new y(e=>{let t=ee.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(G(s))continue;let a=`${n}/${s}`,l=t.get(a);typeof l=="string"&&r.get(l).push(a)}}}return r}),Zt=new y(()=>new Map),hl=new y(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Le.get(t);if(!r)return null;let[n,i]=r;return new y(o=>{let s=Le.get(o);if(!s)return null;let[a,l]=s;return l!==i?null:a/n})});function Xt(e,t,r){let n=gl.get(e),i=ee.get(e);for(let s of e.parseCandidate(r)){if(s.kind!=="arbitrary"&&!(s.kind==="functional"&&s.value?.kind==="arbitrary"))continue;let a=e.printCandidate(s);if(a!==r)return Xt(e,t,a);let l=structuredClone(s),u=structuredClone(l);u.important=!1,u.variants=[];let f=e.printCandidate(u);if(Zt.get(e).has(f)){let p=structuredClone(Zt.get(e).get(f));return p.variants=l.variants,p.important=l.important,e.printCandidate(p)}let c=i.get(f);if(typeof c=="string")for(let p of o(c,u)){let m=e.printCandidate(p);if(i.get(m)===c&&yl(e,l,p))return p=structuredClone(p),Zt.get(e).set(f,p),p.variants=l.variants,p.important=l.important,Object.assign(l,p),e.printCandidate(l)}}return r;function*o(s,a){let l=n.get(s);if(!(l.length>1)){if(l.length===0&&a.modifier){let u={...a,modifier:null},f=i.get(e.printCandidate(u));if(typeof f=="string")for(let c of o(f,u))yield Object.assign({},c,{modifier:a.modifier})}if(l.length===1)for(let u of ve(e,l[0]))yield u;else if(l.length===0){let u=a.kind==="arbitrary"?a.value:a.value?.value??null;if(u===null)return;let f=hl.get(e)?.get(u);for(let c of e.utilities.keys("functional")){for(let p of ve(e,`${c}-${u}`))yield p;if(a.modifier)for(let p of ve(e,`${c}-${u}${a.modifier}`))yield p;if(f!==null){for(let p of ve(e,`${c}-${f}`))yield p;if(a.modifier)for(let p of ve(e,`${c}-${f}${Tt(a.modifier)}`))yield p}for(let p of ve(e,`${c}-[${u}]`))yield p;if(a.modifier)for(let p of ve(e,`${c}-[${u}]${Tt(a.modifier)}`))yield p}}}}}function ve(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function yl(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(`
209
- `),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*ce(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 Bi(e,t,r){let n=ee.get(e);for(let i of I(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 l of qi(o))if(n.get(e.printCandidate({...o,value:l}))===a){s=!0,o.value=l;break}}}for(let[a]of ce(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[l,u]=w(a.value.value,"=");if(l[l.length-1]==="~"||l[l.length-1]==="|"||l[l.length-1]==="^"||l[l.length-1]==="$"||l[l.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*qi(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("%")&&G(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,s]=t.split("/");N(o)&&N(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*qi(e,o,r)}function W(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}var vl=new y(e=>{let t=ze.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 Hi(e,t,r){let n=ze.get(e),i=vl.get(e);for(let o of e.parseCandidate(r)){if(o.variants.length<=0)return r;let s=structuredClone(o);for(let[a]of ce(s)){if(a.kind==="compound")continue;let l=e.printVariant(a),u=n.get(l);if(typeof u!="string")continue;let f=i.get(u);if(f.length!==1)continue;let c=f[0],p=e.parseVariant(c);p!==null&&W(a,p)}return e.printCandidate(s)}return r}function Ji(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!ft(e,i,i.modifier.value)){let{value:s,didChange:a}=ut(i.modifier.value);i.modifier.value=s,o||=a}for(let s of i.variants)Gi(e,s)&&(o=!0);if(i.kind==="arbitrary"&&!ft(e,i,i.value)){let{value:s,didChange:a}=ut(i.value);i.value=s,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!ft(e,i,i.value.value)){let{value:s,didChange:a}=ut(i.value.value);i.value.value=s,o||=a}if(o)return e.printCandidate(i)}return r}function ut(e){let t=!1;return e.startsWith("--")&&!e.includes("(")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Gi(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!ft(e,wl(t),t.value.value)){let{value:n,didChange:i}=ut(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Gi(e,t.variant)&&(r=!0),r}function wl(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var kl=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 ft(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return C(n,o=>{if(o.kind==="declaration"&&kl.has(o.property)&&o.value==r)return i=!0,2}),i}var bl=["t","tr","r","br","b","bl","l","tl"];function Yi(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(!bl.includes(i))continue;return e.printCandidate({...n,root:`bg-linear-to-${i}`})}return r}function Qi(e,t,r){let n=ee.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 Zi(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Xi=['"',"'","`"],xl=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Cl=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],Al=/placeholder=\{?['"]$/;function ct(e){let t="";for(let o=e.start-1;o>=0;o--){let s=e.contents.at(o);if(s===`
210
- `)break;t=s+t}let r="";for(let o=e.end;o<e.contents.length;o++){let s=e.contents.at(o);if(s===`
211
- `)break;r+=s}let n=Xi.some(o=>t.includes(o)),i=Xi.some(o=>r.includes(o));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let o of xl)if(r.trim().startsWith(o)||t.trim().endsWith(o))return!1;for(let o of Cl)if(o.test(t))return!1;return!Al.test(t)}function en(e,t,r,n){e:for(let i of I(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!ct(n))continue e;return e.printCandidate(i)}return r}function tn(e,t,r){for(let n of I(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 Sl}from"@tailwindcss/node";import $l from"node:path";import Vl from"node:url";var Tl=Vl.fileURLToPath(import.meta.url),Nl=$l.dirname(Tl),Pl=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"]]),rn=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"]]),Rl=new y(e=>Sl('@import "tailwindcss";',{base:e}));async function nn(e,t,r,n){if(!E(3))return r;let i=await Rl.get(Nl);function*o(s){for(let a of e.parseCandidate(s)){let l=structuredClone(a);l.variants=[],l.important=!1;let u=e.printCandidate(l),f=Pl.get(u);if(!f)continue;let[c]=e.parseCandidate(f);if(!c)continue;let p=structuredClone(c);p.variants=a.variants,p.important=a.important,yield[a,p,rn.get(u),rn.get(f)]}}for(let[s,a,l,u]of o(r)){let f=s.variants.length>0||s.kind==="arbitrary"?!1:s.kind==="static"?!s.root.includes("-"):s.kind==="functional"?s.value===null||!s.root.includes("-"):!1;if(!(n&&f&&!ct(n))){if(l&&u){let c=e.resolveThemeValue(l,!0),p=i.resolveThemeValue(l,!0),m=e.resolveThemeValue(u,!0),d=i.resolveThemeValue(u);if(m===void 0&&d!==void 0||c!==p||m!==d)continue}return e.printCandidate(a)}}return r}function on(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 El from"postcss-selector-parser";function an(e,t,r){let n=ze.get(e);for(let i of I(r,e)){let o=structuredClone(i),s=!1;for(let[a,l]of ce(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,W(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(s=!0,W(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 u=El().astSync(a.selector);if(u.nodes.length!==1)continue;if(l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="universal"){s=!0,W(a,e.parseVariant("*"));continue}if(l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="universal"){s=!0,W(a,e.parseVariant("**"));continue}if(l===null&&u.nodes[0].nodes.length===3&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="nesting"){u.nodes[0].nodes.pop(),u.nodes[0].nodes.pop(),s=!0,W(a,e.parseVariant(`in-[${u.toString()}]`));continue}if(l===null&&u.nodes[0].nodes[0].type==="tag"&&(u.nodes[0].nodes[0].value.startsWith("@media")||u.nodes[0].nodes[0].value.startsWith("@supports"))){let m=n.get(e.printVariant(a)),d=k(u.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,W(a,h);continue}}}let f=null;l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("*")),l===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("**"));let c=u.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[$,D]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===$&&m.nodes.length===1)return m.nodes[0].nodes.length===1&&m.nodes[0].nodes[0].type==="tag"&&N(m.nodes[0].nodes[0].value)?`${D}-${m.nodes[0].nodes[0].value}`:`${D}-[${m.nodes[0].toString()}]`;if(d){let $=n.get(e.printVariant(a)),D=n.get(`not-[${v}]`);if($===D)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,W(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),W(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),W(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 ln(e,t,r){let n=ee.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,l=!1;if(s===n.get(e.printCandidate({...o,modifier:null}))&&(l=!0,o.modifier=null),!l){let u={kind:"named",value:a.value.endsWith("%")?a.value.slice(0,-1):a.value,fraction:null};s===n.get(e.printCandidate({...o,modifier:u}))&&(l=!0,o.modifier=u)}return l?e.printCandidate(o):r}}return r}var pt={"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 un(e,t,r){if(E(3)&&(pt["outline-none"]="outline-hidden"),!sn.has(e)){for(let n in pt)e.utilities.static(n,()=>[]);sn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(pt,n.root))return e.printCandidate({...n,root:pt[n.root]});return r}function fn(e,t,r){let n=er(e);for(let i of I(r,e)){let o=structuredClone(i),s=!1;if(o.kind==="arbitrary"){let[a,l]=n(o.value,o.modifier===null?1:0);a!==o.value&&(s=!0,o.value=a,l!==null&&(o.modifier=l))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a,l]=n(o.value.value,o.modifier===null?1:0);a!==o.value.value&&(s=!0,o.value.value=a,l!==null&&(o.modifier=l))}for(let[a]of ce(o))if(a.kind==="arbitrary"){let[l]=n(a.selector,2);l!==a.selector&&(s=!0,a.selector=l)}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[l]=n(a.value.value,2);l!==a.value.value&&(s=!0,a.value.value=l)}return s?e.printCandidate(o):r}return r}function er(e,{prettyPrint:t=!1}={}){function r(s,a=0){let l=k(s);if(a&2)return[mt(l,o),null];let u=0,f=0;if(S(l,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(f+=1,2):1))}),u===0)return[s,null];if(f===0)return[mt(l,i),null];if(f>1)return[mt(l,o),null];let c=null;return[mt(l,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(l.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 $=Number(v)*100;c={kind:Number.isInteger($)?"named":"arbitrary",value:$.toString()}}else c={kind:"arbitrary",value:v};m=h}return i(m,d)||o(m,d)}),c]}function n(s){let a=`--${Q(ie(s))}`;return e.theme.get([a])?a:null}function i(s,a){let l=n(s);if(l)return a?`var(${l}, ${a})`:`var(${l})`;let u=ie(s);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return G(f)?`--spacing(${f})`:null}return null}function o(s,a){let l=w(s,"/").map(c=>c.trim());s=l.shift();let u=n(s);if(!u)return null;let f=l.length>0?t?` / ${l.join(" / ")}`:`/${l.join("/")}`:"";return a?`--theme(${u}${f}, ${a})`:`--theme(${u}${f})`}return r}function mt(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=_l(s);let l=r.nodes.slice(a+1),u=l.length>0?t(s,b(l)):t(s);if(u===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())&&(u=`(${u})`);break}}i(k(u))}}),b(e)}function _l(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 cn(e,t,r){if(!E(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)Ol(e,f)?i.push(f):Il(e,f)?s.push(f):o.push(f);let l=o.some(f=>Dl(e,f)),u=[...s,...l?o.reverse():o,...i];if(!jl(a,u))return e.printCandidate({...n,variants:u})}return r}function Ol(e,t){return t.kind==="static"&&t.root==="dark"?!0:tr(e,t).every(n=>n.kind==="at-rule")}function Dl(e,t){return tr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Il(e,t){return tr(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 tr(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 jl(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Ml=[Zi,Ii,en,Yi,un,nn,on,fn,cn,Ji,tn,Xt,an,Hi,Qi,Bi,ln];async function rr(e,t,r,n){let i=r;for(let o of Ml)r=await o(e,t,r,n);if(r===i)for(let o of I(r,e))return e.printCandidate(o);return r}async function dn(e,t,r,n){let i=await Wi(r,n),o=[];for(let{rawCandidate:s,start:a,end:l}of i){let u=await rr(e,t,s,{contents:r,start:a,end:l});u!==s&&o.push({start:a,end:l,replacement:u})}return Ki(r,o)}async function gn(e,t,r){let n=mn.isAbsolute(r)?r:mn.resolve(process.cwd(),r),i=await pn.readFile(n,"utf-8");await pn.writeFile(n,await dn(e,t,i,Ul(r)))}function hn({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 l=w(a,":"),u=l.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...l,u].join(":")});return async()=>{e&&(s=await Promise.all(s.map(async a=>await rr(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 dt from"postcss-selector-parser";function vn(e){function t(r){if(!E(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();T(r,s=>{if(s.type!=="rule")return;let a=w(s.selector,",");if(a.length>1){let l=[];for(let u of a){let f=s.clone({selector:u});l.push(f)}s.replaceWith(l)}return 1});let i=new Set;T(r,s=>{if(s.type==="rule")return dt(a=>{a.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(s.selector,{updateSelector:!1}),1}),T(n,s=>{s.type==="rule"&&dt(a=>{a.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return s.remove(),2})})}).processSync(s,{updateSelector:!0})});let o=[n];for(let s of i){let a=r.clone();o.push(a),T(a,l=>{if(l.type==="atrule"&&(!l.nodes||l.nodes?.length===0)&&l.remove(),l.type!=="rule")return;let u=!1;if(dt(f=>{f.each(c=>{T(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===s){u=!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(dt.nesting())}})})}).processSync(l,{updateSelector:!0}),!u){let f=[l],c=l.parent?.index(l)??null;if(c!==null)for(let p=c-1;p>=0&&l.parent?.nodes.at(p)?.type!=="rule";p--)l.parent?.nodes.at(p)?.type==="comment"&&f.push(l.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??""}
206
+ `,{base:Ke}),rt(e,Ke,()=>{}).then(n=>n.module)]);return he(t,[{base:Wi(e),config:r,reference:!1}]).resolvedConfig}var gl=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function tr(e,t=e){for(let r of hl(e,t))for(let n of gl){let i=fe.resolve(r,n);try{return await cl.access(i),i}catch{}}throw new Error(`No configuration file found for ${x(R(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${x("--config")} option.`)}function*hl(e,t=e){let r=fe.resolve(e),n=fe.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=fe.dirname(i);while(i!==n);yield n}async function Hi(e,{configPath:t,base:r}){let n=e.filter(u=>u.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
207
+ 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(u=>{let f=!1;return u.root.walkAtRules("config",c=>{let p=ce.resolve(ce.dirname(u.file),c.params.slice(1,-1));return u.linkedConfigPath=p,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,l=new y(()=>new Set);for(let u of i){if(!u.file)continue;let f=t;t===null?f=await tr(ce.dirname(u.file),r):ce.isAbsolute(f)||(f=ce.resolve(r,f)),o.set(u,f),l.get(f).add(u)}let a=new Set;for(let u of l.values())if(u.size>1)for(let f of u)a.add(f);if(a.size>1){for(let u of a)E(`Could not determine configuration file for: ${x(R(u.file,r))}
208
+ 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 s=R;for(let[u,f]of o)try{if(!u||!u.file)return;j(`Linked ${x(s(f,r))} to ${x(s(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let c=ce.relative(ce.dirname(u.file),f);!c.startsWith(".")&&!ce.isAbsolute(c)&&(c="./"+c),c=yl(c);{let p=u.root,m=vl.atRule({name:"config",params:`'${c}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?u.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(c){E("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}import os from"postcss";import yn from"node:fs/promises";import vn,{extname as Wl}from"node:path";function Ji(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 wl}from"@tailwindcss/oxide";async function Gi(e,t="html"){let n=new wl({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:l}of n)i.push({rawCandidate:o,start:l,end:l+o.length});return i}var We=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 re=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Z(".x",[$("@apply",t)])];return kl(e,()=>je(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),l=new Set;S(o,(a,{replaceWith:s})=>{if(a.kind!=="function"||a.value!=="var"||a.nodes.length!==1&&a.nodes.length<3)return;let u=a.nodes[0].value;e.theme.prefix&&u.startsWith(`--${e.theme.prefix}-`)&&(u=u.slice(`--${e.theme.prefix}-`.length));let f=e.resolveThemeValue(u);if(!l.has(u)&&(l.add(u),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&&s(k(f))}}),i.value=b(o)}if(i.value.includes("calc")){let o=!1,l=k(i.value);S(l,(a,{replaceWith:s})=>{if(a.kind!=="function"||a.value!=="calc"||a.nodes.length!==5||a.nodes[2].kind!=="word"&&a.nodes[2].value!=="*")return;let u=We.get(a.nodes[0].value);if(u===null)return;let[f,c]=u,p=Number(a.nodes[4].value);Number.isNaN(p)||(o=!0,s(k(`${f*p}${c}`)))}),o&&(i.value=b(l))}i.value=_t(i.value)}}),z(r)}catch{return Symbol()}})),Be=new y(e=>new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[Z(".x",[$("@apply",`${t}:flex`)])];return je(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=Ft(i.selector),l=!1;Qe(o,(a,{replaceWith:s})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),l=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(l=!0,s(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]===":"&&(l=!0,s(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(l=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),l&&(i.selector=Ze(o))}}),z(r)}catch{return Symbol()}}));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 bl=new y(e=>{let t=re.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 l of i.modifiers){if(Q(l))continue;let a=`${n}/${l}`,s=t.get(a);typeof s=="string"&&r.get(s).push(a)}}}return r}),rr=new y(()=>new Map),xl=new y(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=We.get(t);if(!r)return null;let[n,i]=r;return new y(o=>{let l=We.get(o);if(!l)return null;let[a,s]=l;return s!==i?null:a/n})});function ir(e,t,r){let n=bl.get(e),i=re.get(e);for(let l of e.parseCandidate(r)){if(l.kind!=="arbitrary"&&!(l.kind==="functional"&&l.value?.kind==="arbitrary"))continue;let a=e.printCandidate(l);if(a!==r)return ir(e,t,a);let s=structuredClone(l),u=structuredClone(s);u.important=!1,u.variants=[];let f=e.printCandidate(u);if(rr.get(e).has(f)){let p=structuredClone(rr.get(e).get(f));return p.variants=s.variants,p.important=s.important,e.printCandidate(p)}let c=i.get(f);if(typeof c=="string")for(let p of o(c,u)){let m=e.printCandidate(p);if(i.get(m)===c&&Cl(e,s,p))return p=structuredClone(p),rr.get(e).set(f,p),p.variants=s.variants,p.important=s.important,Object.assign(s,p),e.printCandidate(s)}}return r;function*o(l,a){let s=n.get(l);if(!(s.length>1)){if(s.length===0&&a.modifier){let u={...a,modifier:null},f=i.get(e.printCandidate(u));if(typeof f=="string")for(let c of o(f,u))yield Object.assign({},c,{modifier:a.modifier})}if(s.length===1)for(let u of ke(e,s[0]))yield u;else if(s.length===0){let u=a.kind==="arbitrary"?a.value:a.value?.value??null;if(u===null)return;let f=xl.get(e)?.get(u);for(let c of e.utilities.keys("functional")){for(let p of ke(e,`${c}-${u}`))yield p;if(a.modifier)for(let p of ke(e,`${c}-${u}${a.modifier}`))yield p;if(f!==null){for(let p of ke(e,`${c}-${f}`))yield p;if(a.modifier)for(let p of ke(e,`${c}-${f}${Et(a.modifier)}`))yield p}for(let p of ke(e,`${c}-[${u}]`))yield p;if(a.modifier)for(let p of ke(e,`${c}-[${u}]${Et(a.modifier)}`))yield p}}}}}function ke(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Cl(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(`
209
+ `),o=!0;return S(k(n),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,2}}),o}function*pe(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 Yi(e,t,r){let n=re.get(e);for(let i of I(r,e)){let o=structuredClone(i),l=!1;if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let a=n.get(r);if(a!==null){for(let s of Qi(o))if(n.get(e.printCandidate({...o,value:s}))===a){l=!0,o.value=s;break}}}for(let[a]of pe(o))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))l=!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[s,u]=w(a.value.value,"=");if(s[s.length-1]==="~"||s[s.length-1]==="|"||s[s.length-1]==="^"||s[s.length-1]==="$"||s[s.length-1]==="*")continue;l=!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)&&(l=!0,a.value={kind:"named",value:a.value.value});return l?e.printCandidate(o):r}return r}function*Qi(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("%")&&Q(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");P(o)&&P(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}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,l)=>o.length-l.length);for(let o of i)yield*Qi(e,o,r)}function B(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}var Al=new y(e=>{let t=Be.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 Zi(e,t,r){let n=Be.get(e),i=Al.get(e);for(let o of e.parseCandidate(r)){if(o.variants.length<=0)return r;let l=structuredClone(o);for(let[a]of pe(l)){if(a.kind==="compound")continue;let s=e.printVariant(a),u=n.get(s);if(typeof u!="string")continue;let f=i.get(u);if(f.length!==1)continue;let c=f[0],p=e.parseVariant(c);p!==null&&B(a,p)}return e.printCandidate(l)}return r}function Xi(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!dt(e,i,i.modifier.value)){let{value:l,didChange:a}=mt(i.modifier.value);i.modifier.value=l,o||=a}for(let l of i.variants)en(e,l)&&(o=!0);if(i.kind==="arbitrary"&&!dt(e,i,i.value)){let{value:l,didChange:a}=mt(i.value);i.value=l,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!dt(e,i,i.value.value)){let{value:l,didChange:a}=mt(i.value.value);i.value.value=l,o||=a}if(o)return e.printCandidate(i)}return r}function mt(e){let t=!1;return e.startsWith("--")&&!e.includes("(")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function en(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!dt(e,Sl(t),t.value.value)){let{value:n,didChange:i}=mt(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&en(e,t.variant)&&(r=!0),r}function Sl(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var $l=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 dt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return C(n,o=>{if(o.kind==="declaration"&&$l.has(o.property)&&o.value==r)return i=!0,2}),i}var Tl=["t","tr","r","br","b","bl","l","tl"];function tn(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(!Tl.includes(i))continue;return e.printCandidate({...n,root:`bg-linear-to-${i}`})}return r}function rn(e,t,r){let n=re.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 nn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var on=['"',"'","`"],Vl=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Nl=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],Pl=/placeholder=\{?['"]$/;function gt(e){let t="";for(let o=e.start-1;o>=0;o--){let l=e.contents.at(o);if(l===`
210
+ `)break;t=l+t}let r="";for(let o=e.end;o<e.contents.length;o++){let l=e.contents.at(o);if(l===`
211
+ `)break;r+=l}let n=on.some(o=>t.includes(o)),i=on.some(o=>r.includes(o));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let o of Vl)if(r.trim().startsWith(o)||t.trim().endsWith(o))return!1;for(let o of Nl)if(o.test(t))return!1;return!Pl.test(t)}function an(e,t,r,n){e:for(let i of I(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!gt(n))continue e;return e.printCandidate(i)}return r}function ln(e,t,r){for(let n of I(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 Rl}from"@tailwindcss/node";import El from"node:path";import _l from"node:url";var Ol=_l.fileURLToPath(import.meta.url),Dl=El.dirname(Ol),Il=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"]]),sn=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"]]),jl=new y(e=>Rl('@import "tailwindcss";',{base:e}));async function un(e,t,r,n){if(!_(3))return r;let i=await jl.get(Dl);function*o(l){for(let a of e.parseCandidate(l)){let s=structuredClone(a);s.variants=[],s.important=!1;let u=e.printCandidate(s),f=Il.get(u);if(!f)continue;let[c]=e.parseCandidate(f);if(!c)continue;let p=structuredClone(c);p.variants=a.variants,p.important=a.important,yield[a,p,sn.get(u),sn.get(f)]}}for(let[l,a,s,u]of o(r)){let f=l.variants.length>0||l.kind==="arbitrary"?!1:l.kind==="static"?!l.root.includes("-"):l.kind==="functional"?l.value===null||!l.root.includes("-"):!1;if(!(n&&f&&!gt(n))){if(s&&u){let c=e.resolveThemeValue(s,!0),p=i.resolveThemeValue(s,!0),m=e.resolveThemeValue(u,!0),d=i.resolveThemeValue(u);if(m===void 0&&d!==void 0||c!==p||m!==d)continue}return e.printCandidate(a)}}return r}function fn(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 Ml from"postcss-selector-parser";function cn(e,t,r){let n=Be.get(e);for(let i of I(r,e)){let o=structuredClone(i),l=!1;for(let[a,s]of pe(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?(l=!0,B(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(l=!0,B(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 u=Ml().astSync(a.selector);if(u.nodes.length!==1)continue;if(s===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="universal"){l=!0,B(a,e.parseVariant("*"));continue}if(s===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="universal"){l=!0,B(a,e.parseVariant("**"));continue}if(s===null&&u.nodes[0].nodes.length===3&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="nesting"){u.nodes[0].nodes.pop(),u.nodes[0].nodes.pop(),l=!0,B(a,e.parseVariant(`in-[${u.toString()}]`));continue}if(s===null&&u.nodes[0].nodes[0].type==="tag"&&(u.nodes[0].nodes[0].value.startsWith("@media")||u.nodes[0].nodes[0].value.startsWith("@supports"))){let m=n.get(e.printVariant(a)),d=k(u.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){l=!0,B(a,h);continue}}}let f=null;s===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===">"&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("*")),s===null&&u.nodes[0].length===3&&u.nodes[0].nodes[0].type==="nesting"&&u.nodes[0].nodes[0].value==="&"&&u.nodes[0].nodes[1].type==="combinator"&&u.nodes[0].nodes[1].value===" "&&u.nodes[0].nodes[2].type==="attribute"&&(u.nodes[0].nodes=[u.nodes[0].nodes[2]],f=e.parseVariant("**"));let c=u.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,T]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"&&P(m.nodes[0].nodes[0].value)?`${T}-${m.nodes[0].nodes[0].value}`:`${T}-[${m.nodes[0].toString()}]`;if(d){let A=n.get(e.printVariant(a)),T=n.get(`not-[${v}]`);if(A===T)return`[&${v}]`}return null})(m.value);if(g===null)continue;d&&(g=`not-${g}`);let h=e.parseVariant(g);if(h===null)continue;l=!0,B(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-")?(l=!0,m=m.slice(5),B(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${g}${d}`}})):m.startsWith("aria-")&&(l=!0,m=m.slice(5),B(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 l?e.printCandidate(o):r}return r}function pn(e,t,r){let n=re.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 l=n.get(r),a=o.modifier,s=!1;if(l===n.get(e.printCandidate({...o,modifier:null}))&&(s=!0,o.modifier=null),!s){let u={kind:"named",value:a.value.endsWith("%")?a.value.slice(0,-1):a.value,fraction:null};l===n.get(e.printCandidate({...o,modifier:u}))&&(s=!0,o.modifier=u)}return s?e.printCandidate(o):r}}return r}var ht={"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"},mn=new WeakSet;function dn(e,t,r){if(_(3)&&(ht["outline-none"]="outline-hidden"),!mn.has(e)){for(let n in ht)e.utilities.static(n,()=>[]);mn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(ht,n.root))return e.printCandidate({...n,root:ht[n.root]});return r}function gn(e,t,r){let n=nr(e);for(let i of I(r,e)){let o=structuredClone(i),l=!1;if(o.kind==="arbitrary"){let[a,s]=n(o.value,o.modifier===null?1:0);a!==o.value&&(l=!0,o.value=a,s!==null&&(o.modifier=s))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a,s]=n(o.value.value,o.modifier===null?1:0);a!==o.value.value&&(l=!0,o.value.value=a,s!==null&&(o.modifier=s))}for(let[a]of pe(o))if(a.kind==="arbitrary"){let[s]=n(a.selector,2);s!==a.selector&&(l=!0,a.selector=s)}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[s]=n(a.value.value,2);s!==a.value.value&&(l=!0,a.value.value=s)}return l?e.printCandidate(o):r}return r}function nr(e,{prettyPrint:t=!1}={}){function r(l,a=0){let s=k(l);if(a&2)return[yt(s,o),null];let u=0,f=0;if(S(s,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(f+=1,2):1))}),u===0)return[l,null];if(f===0)return[yt(s,i),null];if(f>1)return[yt(s,o),null];let c=null;return[yt(s,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(s.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(l){let a=`--${X(ne(l))}`;return e.theme.get([a])?a:null}function i(l,a){let s=n(l);if(s)return a?`var(${s}, ${a})`:`var(${s})`;let u=ne(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return Q(f)?`--spacing(${f})`:null}return null}function o(l,a){let s=w(l,"/").map(c=>c.trim());l=s.shift();let u=n(l);if(!u)return null;let f=s.length>0?t?` / ${s.join(" / ")}`:`/${s.join("/")}`:"";return a?`--theme(${u}${f}, ${a})`:`--theme(${u}${f})`}return r}function yt(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 l=o.value,a=1;for(let f=a;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)l+=b([r.nodes[f]]),a=f+1;l=Ul(l);let s=r.nodes.slice(a+1),u=s.length>0?t(l,b(s)):t(l);if(u===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())&&(u=`(${u})`);break}}i(k(u))}}),b(e)}function Ul(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 hn(e,t,r){if(!_(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],l=[],a=n.variants;for(let f of n.variants)Ll(e,f)?i.push(f):zl(e,f)?l.push(f):o.push(f);let s=o.some(f=>Fl(e,f)),u=[...l,...s?o.reverse():o,...i];if(!Kl(a,u))return e.printCandidate({...n,variants:u})}return r}function Ll(e,t){return t.kind==="static"&&t.root==="dark"?!0:or(e,t).every(n=>n.kind==="at-rule")}function Fl(e,t){return or(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function zl(e,t){return or(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 or(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 Kl(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Bl=[nn,Fi,an,tn,dn,un,fn,gn,hn,Xi,ln,ir,cn,Zi,rn,Yi,pn];async function ar(e,t,r,n){let i=r;for(let o of Bl)r=await o(e,t,r,n);if(r===i)for(let o of I(r,e))return e.printCandidate(o);return r}async function wn(e,t,r,n){let i=await Gi(r,n),o=[];for(let{rawCandidate:l,start:a,end:s}of i){let u=await ar(e,t,l,{contents:r,start:a,end:s});u!==l&&o.push({start:a,end:s,replacement:u})}return Ji(r,o)}async function kn(e,t,r){let n=vn.isAbsolute(r)?r:vn.resolve(process.cwd(),r),i=await yn.readFile(n,"utf-8");await yn.writeFile(n,await wn(e,t,i,Wl(r)))}function bn({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 l=i.map(a=>{if(a.trim()==="")return a;let s=w(a,":"),u=s.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...s,u].join(":")});return async()=>{e&&(l=await Promise.all(l.map(async a=>await ar(e,t,a))),n.params=l.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 vt from"postcss-selector-parser";function Cn(e){function t(r){if(!_(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();N(r,l=>{if(l.type!=="rule")return;let a=w(l.selector,",");if(a.length>1){let s=[];for(let u of a){let f=l.clone({selector:u});s.push(f)}l.replaceWith(s)}return 1});let i=new Set;N(r,l=>{if(l.type==="rule")return vt(a=>{a.each(s=>{N(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),N(n,l=>{l.type==="rule"&&vt(a=>{a.each(s=>{N(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return l.remove(),2})})}).processSync(l,{updateSelector:!0})});let o=[n];for(let l of i){let a=r.clone();o.push(a),N(a,s=>{if(s.type==="atrule"&&(!s.nodes||s.nodes?.length===0)&&s.remove(),s.type!=="rule")return;let u=!1;if(vt(f=>{f.each(c=>{N(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===l){u=!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(vt.nesting())}})})}).processSync(s,{updateSelector:!0}),!u){let f=[s],c=s.parent?.index(s)??null;if(c!==null)for(let p=c-1;p>=0&&s.parent?.nodes.at(p)?.type!=="rule";p--)s.parent?.nodes.at(p)?.type==="comment"&&f.push(s.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),a.name="utility",a.params=l,a.raws.before=`${a.raws.before??""}
212
212
 
213
- `}for(let s=o.length-1;s>=0;s--){let a=o[s];Yt(a,l=>{if(a===n&&l.type==="comment"){let u=!1;for(let f of o)if(f!==n&&(T(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===l.source?.start?.offset)return l.remove(),u=!0,2}),u))return 1}if((l.type==="rule"||l.type==="atrule")&&l.nodes?.length===0)l.remove();else if(l.type==="rule"&&l.selector==="&"){let u=l.parent,f=!1;for(;u;){if(u.type==="rule"){f=!0;break}u=u.parent}f||l.replaceWith(l.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;T(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let l=s.get(a.params);l?(l.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 gt from"node:path";import Fl,{AtRule as Ll}from"postcss";var wn=new WeakMap;function xn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=wn.get(e);if(i&&i.includes(t))return;i?i.push(t):wn.set(e,[t]);let o=e.root;if(!e.file)return;let s=new Ll;if(r!==null){o.walkAtRules("config",l=>{l.remove()});let a=`
213
+ `}for(let l=o.length-1;l>=0;l--){let a=o[l];er(a,s=>{if(a===n&&s.type==="comment"){let u=!1;for(let f of o)if(f!==n&&(N(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===s.source?.start?.offset)return s.remove(),u=!0,2}),u))return 1}if((s.type==="rule"||s.type==="atrule")&&s.nodes?.length===0)s.remove();else if(s.type==="rule"&&s.selector==="&"){let u=s.parent,f=!1;for(;u;){if(u.type==="rule"){f=!0;break}u=u.parent}f||s.replaceWith(s.nodes)}}),a.nodes?.length===0&&o.splice(l,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 l=n({name:"layer",params:"utilities"});l.append(r.nodes),r.append(l)}r.walkAtRules("layer",t);{let l=new Map;N(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let s=l.get(a.params);s?(s.append(a.nodes),a.remove()):l.set(a.params,a)}})}o&&r.each(l=>{l.type==="atrule"&&l.name==="layer"&&l.params==="utilities"&&l.replaceWith(l.nodes??[])})}}}import wt from"node:path";import ql,{AtRule as Hl}from"postcss";var An=new WeakMap;function Tn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=An.get(e);if(i&&i.includes(t))return;i?i.push(t):An.set(e,[t]);let o=e.root;if(!e.file)return;let l=new Hl;if(r!==null){o.walkAtRules("config",s=>{s.remove()});let a=`
214
214
 
215
215
  `;a+=`
216
- @tw-bucket source {`;for(let l of r.sources){let u=gt.resolve(l.base,l.pattern);a+=`@source '${kn(e,u)}';
216
+ @tw-bucket source {`;for(let s of r.sources){let u=wt.resolve(s.base,s.pattern);a+=`@source '${Sn(e,u)}';
217
217
  `}a+=`}
218
218
  `,a+=`
219
219
  @tw-bucket plugin {
220
- `;for(let l of r.plugins){let u=l.path[0]==="."?kn(e,gt.resolve(l.base,l.path)):l.path;if(l.options===null)a+=`@plugin '${u}';
220
+ `;for(let s of r.plugins){let u=s.path[0]==="."?Sn(e,wt.resolve(s.base,s.path)):s.path;if(s.options===null)a+=`@plugin '${u}';
221
221
  `;else{a+=`@plugin '${u}' {
222
- `;for(let[f,c]of Object.entries(l.options)){let p="";typeof c=="string"?p=bn(c):Array.isArray(c)?p=c.map(m=>typeof m=="string"?bn(m):""+m).join(", "):p=""+c,a+=` ${f}: ${p};
222
+ `;for(let[f,c]of Object.entries(s.options)){let p="";typeof c=="string"?p=$n(c):Array.isArray(c)?p=c.map(m=>typeof m=="string"?$n(m):""+m).join(", "):p=""+c,a+=` ${f}: ${p};
223
223
  `}a+=`}
224
224
  `}}a+=`}
225
- `,s.append(Fl.parse(a+r.css))}o.append(s.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function kn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=gt.relative(gt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Ft(n)}function bn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import zl from"node:fs/promises";import{dirname as Kl,resolve as Wl}from"node:path";import"postcss";function Cn(){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=Nr(k(o));if(!a)return;let l=a.uri[0]===".",u=a.uri.endsWith(".css");if(l&&u)return;let f=Wl(Kl(r),a.uri);u||(f+=".css"),n.push(zl.stat(f).then(()=>{let c=u?"":".css",p=l?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 An({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=de(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},s=new y(a=>{let l=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof l=="string"?`(width >= theme(--breakpoint-${a}))`:l?Qr(l):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let l=a.params.match(/screen\(([^)]+)\)/);if(!l)return;let u=s.get(l[1]);u&&(a.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Bl}from"postcss";function Sn(){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 l=s||o||"";if(l===""||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(${l})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let u=a[0],f=new Bl({name:"layer",params:l,nodes:a.map(c=>c===u?c:c.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import ql from"dedent";import Hl from"postcss";var Jl="currentcolor",Gl=ql,Yl=Gl`
225
+ `,l.append(ql.parse(a+r.css))}o.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Sn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=wt.relative(wt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Wt(n)}function $n(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Jl from"node:fs/promises";import{dirname as Gl,resolve as Yl}from"node:path";import"postcss";function Vn(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...l]=w(i.params," "),a=Or(k(o));if(!a)return;let s=a.uri[0]===".",u=a.uri.endsWith(".css");if(s&&u)return;let f=Yl(Gl(r),a.uri);u||(f+=".css"),n.push(Jl.stat(f).then(()=>{let c=u?"":".css",p=s?a.uri:`./${a.uri}`;i.params=[`'${p}${c}'`,...l].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Nn({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=he(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},l=new y(a=>{let s=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof s=="string"?`(width >= theme(--breakpoint-${a}))`:s?ri(s):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let s=a.params.match(/screen\(([^)]+)\)/);if(!s)return;let u=l.get(s[1]);u&&(a.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Ql}from"postcss";function Pn(){function e(t){let r="",n=[],i=[],o=null;t.each(l=>{if(l.type==="atrule"){if(l.name==="config"||l.name==="source"||l.name==="theme"||l.name==="utility"||l.name==="custom-variant"||l.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="tailwind"&&l.params==="base"||l.name==="import"&&l.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(l.name==="tailwind"&&l.params==="components"||l.name==="import"&&l.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(l.name==="tailwind"&&l.params==="utilities"||l.name==="import"&&l.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(l.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[l]]);return}}r===""&&(l.type==="comment"||l.type==="atrule"&&!l.nodes||l.type==="atrule"&&l.name==="charset")||n.push(l)});for(let[l,a]of i){let s=l||o||"";if(s===""||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(${s})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let u=a[0],f=new Ql({name:"layer",params:s,nodes:a.map(c=>c===u?c:c.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Zl from"dedent";import Xl from"postcss";var es="currentcolor",ts=Zl,rs=ts`
226
226
  /*
227
227
  The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
228
228
  so we've added these compatibility styles to make sure everything still
@@ -240,10 +240,10 @@ Update your stylesheet to use ${x("@config")} to specify the correct configurati
240
240
  border-color: theme(borderColor.DEFAULT);
241
241
  }
242
242
  }
243
- `;function $n({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let s=`--${Q(ie(o))}`;return!!e.theme.get([s])}function i(o){if(!E(3))return;let s=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return s=!0,!1}),!s)return;let a="";r!==Jl&&(a+=Yl,a+=`
243
+ `;function Rn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let l=`--${X(ne(o))}`;return!!e.theme.get([l])}function i(o){if(!_(3))return;let l=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return l=!0,!1}),!l)return;let a="";r!==es&&(a+=rs,a+=`
244
244
 
245
245
  `),a=`
246
246
  @tw-bucket compatibility {
247
247
  ${a}
248
248
  }
249
- `;let l=Hl.parse(a);l.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Ql(k(u.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),o.append(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Ql(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 u=s;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=b([r.nodes[u]]),s=u+1;o=Zl(o);let a=r.nodes.slice(s+1),l=a.length>0?t(o,b(a)):t(o);if(l===null)return;n(k(l))}}),b(e)}function Zl(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 ht}from"postcss";var ir=["theme","base","components","utilities"];function Vn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,s=[],a=null,l=null,u=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||yt(s).before(new ht({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(l||yt(s).before(new ht({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||yt(s).before(new ht({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||yt(s).before(new ht({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>ir.indexOf(m)-ir.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=ir.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 yt(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 Tn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=er(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 Nn(){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 Pn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await es(e,t)}async function es(e,t,r){return typeof e=="string"&&(e=await H.fromString(e),e.file=r??null),Xl().use(Cn()).use(hn(t)).use(An(t)).use(Nn()).use(vn(e)).use(Sn()).use(Vn(t)).use(xn(e,t)).use($n(t)).use(Tn(t)).process(e.root,{from:e.file??void 0})}import ts from"postcss";var Rn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function _n(){async function e(t){{let a=function(l,...u){s=l,o.get(l).nodes?.push(...i.splice(0),...u)};var n=a;let i=[],o=new y(l=>{let u=ts.atRule({name:"tw-bucket",params:l,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",l=>{o.set(l.params,l)});let s="user";T(t,l=>{if(l.type==="atrule"&&l.name==="tw-bucket")return 1;if(l.type==="comment"){if(i.length>0){i.push(l);return}let u=En(l.prev(),l)??1/0,f=En(l,l.next())??1/0;u<f?o.get(s).nodes?.push(l):i.push(l)}else l.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(l.name)?a(l.name,l):l.type==="atrule"&&l.name==="layer"&&!l.nodes||l.type==="atrule"&&l.name==="import"||l.type==="atrule"&&l.name==="charset"||l.type==="atrule"&&l.name==="tailwind"?a("import",l):(l.type==="rule"||l.type,a("user",l));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=Rn.indexOf(o.params),l=Rn.indexOf(s.params);return a-l});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function En(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 rs from"postcss";async function On(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 l=!1,u=a.layers().size>0;T(a.root,f=>{if(f.type==="atrule"&&f.name==="utility")l=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;u=!0}return l&&u?2:1}),l&&u&&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 l=rs.root();T(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return l.append(p),1});let u=a.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=a.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await H.fromRoot(l,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(a,c),t.set(c.id,c)}for(let[a,l]of i){for(let u of a.parents){let f=i.get(u.item);f&&l.parents.add({item:f,meta:u.meta})}for(let u of a.children){let f=i.get(u.item);f&&l.children.add({item:f,meta:u.meta})}}for(let a of e){let l=i.get(a),u=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),$=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}});l?u.add($):f.after($)}l&&u.size>0&&l.root.prepend(Array.from(u))}let o=new y(()=>new Set);for(let a of t.values())for(let l of a.importRules){let u=l.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&o.get(f).add(l)}let s=[];for(let a of e.slice()){for(let l of a.descendants())s.push(l);s.push(a)}for(let a of s){let l=i.get(a);if(l&&a.isEmpty){a.root=l.root;for(let u of o.get(l))u.params=u.raws.tailwind_original_params;for(let u of o.get(a))u.remove();i.delete(a)}}e.push(...i.values())}import pe from"picocolors";function Dn({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(K(nt()),e&&(K(),K(`${pe.dim("Invalid command:")} ${e}`)),t&&t.length>0){K(),K(pe.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=>pe.dim(f));let u=je(a,n-it.indent-s.length-1);u.length>1&&i!==0&&K(),K(Ue(`${s}${u.shift()}`));for(let f of u)K(Ue(f,s.length))}}if(r){let i=0;for(let{alias:l}of Object.values(r))l&&(i=Math.max(i,l.length));let o=[],s=0;for(let[l,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(i)}`,u?l:" ".repeat(i+2)+l].filter(Boolean).join(", ");o.push(f),s=Math.max(s,f.length)}K(),K(pe.dim("Options:"));let a=8;for(let{description:l,default:u=null}of Object.values(r)){let f=o.shift(),c=a+(s-f.length),p=2,m=n-f.length-c-p-it.indent,d=je(u!==null?`${l} ${pe.dim(`[default:\u202F${x(`${u}`)}]`)}`:l,m);K(Ue(`${pe.blue(f)} ${pe.dim(pe.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let g of d)K(Ue(`${" ".repeat(f.length+c+p)}${g}`))}}}import is from"mri";function jn(e,t=process.argv.slice(2)){let r=is(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 l=s.slice(1);r[l]!==void 0&&(n[i]=In(r[l],o))}{let l=i.slice(2);r[l]!==void 0&&(n[i]=In(r[l],o))}}return n}function In(e,t){switch(t){case"string":return kt(e);case"boolean":return vt(e);case"number":return wt(e);case"boolean | string":return vt(e)??kt(e);case"number | string":return wt(e)??kt(e);case"boolean | number":return vt(e)??wt(e);case"boolean | number | string":return vt(e)??wt(e)??kt(e);default:throw new Error(`Unhandled type: ${t}`)}}function vt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function wt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function kt(e){return`${e}`}import{execSync as ns}from"node:child_process";function nr(){try{return ns("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var Mn={"--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"}},bt=jn(Mn);bt["--help"]&&(Dn({usage:["npx @tailwindcss/upgrade"],options:Mn}),process.exit(0));async function us(){let e=process.cwd();le(nt()),le();let t=[];bt["--force"]||nr()&&(R("Git directory is not clean. Please stash or commit your changes before migrating."),z(`You may use the ${x("--force")} flag to silence this warning and perform the migration.`),process.exit(1));{let r=bt._.map(u=>ls.resolve(e,u));r.length===0&&(z("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await as(["**/*.css"],{absolute:!0,gitignore:!0})),r=r.filter(u=>u.endsWith(".css"));let n=await Promise.allSettled(r.map(u=>H.load(u)));for(let u of n)u.status==="rejected"&&R(`${u.reason?.message??u.reason}`,{prefix:"\u21B3 "});let i=n.filter(u=>u.status==="fulfilled").map(u=>u.value),o=new Map(i.map(u=>[u,u.root.toString()]));try{await Ni(i)}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}if(E(3))try{await zi(i,{configPath:bt["--config"],base:e})}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}i.some(u=>u.isTailwindRoot&&u.linkedConfigPath)&&z("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let u of i){if(!u.isTailwindRoot||!E(3)&&!u.linkedConfigPath)continue;let f=await Li(u.linkedConfigPath,{base:e});s.set(u,f);let c=await vi(f.designSystem,f.configFilePath,e);a.set(u,c),c!==null&&t.push(()=>Un.rm(f.configFilePath)),c!==null&&j(`Migrated configuration file: ${x(P(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&z("Migrating stylesheets\u2026"),await Promise.all(i.map(async u=>{try{let f=s.get(u),c=a.get(u)??null;if(!f){for(let p of u.ancestors())if(p.isTailwindRoot){f??=s.get(p),c??=a.get(p)??null;break}}await Pn(u,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await u.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:c})}catch(f){R(`${f?.message??f} in ${x(P(u.file,e))}`,{prefix:"\u21B3 "})}})),E(3)){try{await On(i)}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}for(let u of i)for(let f of u.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 u of i)o.get(u)!==u.root.toString()&&await ss([_n(),_i()]).process(u.root,{from:u.file});for(let u of i)u.file&&(await Un.writeFile(u.file,u.root.toString()),u.isTailwindRoot&&j(`Migrated stylesheet: ${x(P(u.file,e))}`,{prefix:"\u21B3 "}));z("Updating dependencies\u2026");{let u=Ve(e),f=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(c=>c==="tailwindcss"||u.has(c));try{await u.add(f.map(c=>`${c}@latest`));for(let c of f)j(`Updated package: ${x(c)}`,{prefix:"\u21B3 "})}catch{}}let l=i.filter(u=>u.isTailwindRoot&&u.file);l.length>0&&z("Migrating templates\u2026");{let u=new Set;for(let f of l){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 os({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||u.has(v)||(u.add(v),h.push(v));await Promise.allSettled(h.map(v=>gn(p,d?.userConfig??null,v))),d?.configFilePath?j(`Migrated templates for configuration file: ${x(P(d.configFilePath,e))}`,{prefix:"\u21B3 "}):j(`Migrated templates for: ${x(P(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}E(3)&&await Ai(e),await Promise.allSettled(t.map(r=>r())),nr()?j("Verify the changes and commit them to your repository."):j("No changes were made to your repository.")}us().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
249
+ `;let s=Xl.parse(a);s.walkDecls(u=>{u.value.includes("theme(")&&(u.value=is(k(u.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),o.append(s)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function is(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,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=b([r.nodes[u]]),l=u+1;o=ns(o);let a=r.nodes.slice(l+1),s=a.length>0?t(o,b(a)):t(o);if(s===null)return;n(k(s))}}),b(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}import{AtRule as kt}from"postcss";var lr=["theme","base","components","utilities"];function En(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,l=[],a=null,s=null,u=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"),l.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))c.push("utilities"),l.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||bt(l).before(new kt({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(s||bt(l).before(new kt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||bt(l).before(new kt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||bt(l).before(new kt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>lr.indexOf(m)-lr.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=lr.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 bt(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 _n({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=nr(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 On(){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 Dn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await as(e,t)}async function as(e,t,r){return typeof e=="string"&&(e=await G.fromString(e),e.file=r??null),os().use(Vn()).use(bn(t)).use(Nn(t)).use(On()).use(Cn(e)).use(Pn()).use(En(t)).use(Tn(e,t)).use(Rn(t)).use(_n(t)).process(e.root,{from:e.file??void 0})}import ls from"postcss";var In=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Mn(){async function e(t){{let a=function(s,...u){l=s,o.get(s).nodes?.push(...i.splice(0),...u)};var n=a;let i=[],o=new y(s=>{let u=ls.atRule({name:"tw-bucket",params:s,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",s=>{o.set(s.params,s)});let l="user";N(t,s=>{if(s.type==="atrule"&&s.name==="tw-bucket")return 1;if(s.type==="comment"){if(i.length>0){i.push(s);return}let u=jn(s.prev(),s)??1/0,f=jn(s,s.next())??1/0;u<f?o.get(l).nodes?.push(s):i.push(s)}else s.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(s.name)?a(s.name,s):s.type==="atrule"&&s.name==="layer"&&!s.nodes||s.type==="atrule"&&s.name==="import"||s.type==="atrule"&&s.name==="charset"||s.type==="atrule"&&s.name==="tailwind"?a("import",s):(s.type==="rule"||s.type,a("user",s));return 1}),i.length>0&&a(l)}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,l)=>{let a=In.indexOf(o.params),s=In.indexOf(l.params);return a-s});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 ss from"postcss";async function Un(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 s=!1,u=a.layers().size>0;N(a.root,f=>{if(f.type==="atrule"&&f.name==="utility")s=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;u=!0}return s&&u?2:1}),s&&u&&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 s=ss.root();N(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return s.append(p),1});let u=a.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=a.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await G.fromRoot(s,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(a,c),t.set(c.id,c)}for(let[a,s]of i){for(let u of a.parents){let f=i.get(u.item);f&&s.parents.add({item:f,meta:u.meta})}for(let u of a.children){let f=i.get(u.item);f&&s.children.add({item:f,meta:u.meta})}}for(let a of e){let s=i.get(a),u=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}});s?u.add(A):f.after(A)}s&&u.size>0&&s.root.prepend(Array.from(u))}let o=new y(()=>new Set);for(let a of t.values())for(let s of a.importRules){let u=s.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&o.get(f).add(s)}let l=[];for(let a of e.slice()){for(let s of a.descendants())l.push(s);l.push(a)}for(let a of l){let s=i.get(a);if(s&&a.isEmpty){a.root=s.root;for(let u of o.get(s))u.params=u.raws.tailwind_original_params;for(let u of o.get(a))u.remove();i.delete(a)}}e.push(...i.values())}import me from"picocolors";function Ln({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(W(st()),e&&(W(),W(`${me.dim("Invalid command:")} ${e}`)),t&&t.length>0){W(),W(me.dim("Usage:"));for(let[i,o]of t.entries()){let l=o.slice(0,o.indexOf("[")),a=o.slice(o.indexOf("["));a=a.replace(/\[.*?\]/g,f=>me.dim(f));let u=Le(a,n-lt.indent-l.length-1);u.length>1&&i!==0&&W(),W(Fe(`${l}${u.shift()}`));for(let f of u)W(Fe(f,l.length))}}if(r){let i=0;for(let{alias:s}of Object.values(r))s&&(i=Math.max(i,s.length));let o=[],l=0;for(let[s,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(i)}`,u?s:" ".repeat(i+2)+s].filter(Boolean).join(", ");o.push(f),l=Math.max(l,f.length)}W(),W(me.dim("Options:"));let a=8;for(let{description:s,default:u=null}of Object.values(r)){let f=o.shift(),c=a+(l-f.length),p=2,m=n-f.length-c-p-lt.indent,d=Le(u!==null?`${s} ${me.dim(`[default:\u202F${x(`${u}`)}]`)}`:s,m);W(Fe(`${me.blue(f)} ${me.dim(me.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let g of d)W(Fe(`${" ".repeat(f.length+c+p)}${g}`))}}}import us from"mri";function zn(e,t=process.argv.slice(2)){let r=us(t),n={_:r._};for(let[i,{type:o,alias:l,default:a=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=a,l){let s=l.slice(1);r[s]!==void 0&&(n[i]=Fn(r[s],o))}{let s=i.slice(2);r[s]!==void 0&&(n[i]=Fn(r[s],o))}}return n}function Fn(e,t){switch(t){case"string":return At(e);case"boolean":return xt(e);case"number":return Ct(e);case"boolean | string":return xt(e)??At(e);case"number | string":return Ct(e)??At(e);case"boolean | number":return xt(e)??Ct(e);case"boolean | number | string":return xt(e)??Ct(e)??At(e);default:throw new Error(`Unhandled type: ${t}`)}}function xt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Ct(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function At(e){return`${e}`}import{execSync as fs}from"node:child_process";function sr(){try{return fs("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var Wn={"--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"}},St=zn(Wn);St["--help"]&&(Ln({usage:["npx @tailwindcss/upgrade"],options:Wn}),process.exit(0));async function gs(){let e=process.cwd();se(st()),se();let t=[];St["--force"]||sr()&&(E("Git directory is not clean. Please stash or commit your changes before migrating."),K(`You may use the ${x("--force")} flag to silence this warning and perform the migration.`),process.exit(1));{let r=St._.map(u=>ms.resolve(e,u));r.length===0&&(K("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await ps(["**/*.css"],{absolute:!0,gitignore:!0})),r=r.filter(u=>u.endsWith(".css"));let n=await Promise.allSettled(r.map(u=>G.load(u)));for(let u of n)u.status==="rejected"&&E(`${u.reason?.message??u.reason}`,{prefix:"\u21B3 "});let i=n.filter(u=>u.status==="fulfilled").map(u=>u.value),o=new Map(i.map(u=>[u,u.root.toString()]));try{await Oi(i)}catch(u){E(`${u?.message??u}`,{prefix:"\u21B3 "})}if(_(3))try{await Hi(i,{configPath:St["--config"],base:e})}catch(u){E(`${u?.message??u}`,{prefix:"\u21B3 "})}i.some(u=>u.isTailwindRoot&&u.linkedConfigPath)&&K("Migrating JavaScript configuration files\u2026");let l=new Map,a=new Map;for(let u of i){if(!u.isTailwindRoot||!_(3)&&!u.linkedConfigPath)continue;let f=await qi(u.linkedConfigPath,{base:e});l.set(u,f);let c=await Ci(f.designSystem,f.configFilePath,e);a.set(u,c),c!==null&&t.push(()=>Kn.rm(f.configFilePath)),c!==null&&j(`Migrated configuration file: ${x(R(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&K("Migrating stylesheets\u2026"),await Promise.all(i.map(async u=>{try{let f=l.get(u),c=a.get(u)??null;if(!f){for(let p of u.ancestors())if(p.isTailwindRoot){f??=l.get(p),c??=a.get(p)??null;break}}await Dn(u,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await u.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:c})}catch(f){E(`${f?.message??f} in ${x(R(u.file,e))}`,{prefix:"\u21B3 "})}})),_(3)){try{await Un(i)}catch(u){E(`${u?.message??u}`,{prefix:"\u21B3 "})}for(let u of i)for(let f of u.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 u of i)o.get(u)!==u.root.toString()&&await ds([Mn(),Mi()]).process(u.root,{from:u.file});for(let u of i)u.file&&(await Kn.writeFile(u.file,u.root.toString()),u.isTailwindRoot&&j(`Migrated stylesheet: ${x(R(u.file,e))}`,{prefix:"\u21B3 "}));K("Updating dependencies\u2026");{let u=Pe(e),f=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(c=>c==="tailwindcss"||u.has(c));try{await u.add(f.map(c=>`${c}@latest`));for(let c of f)j(`Updated package: ${x(c)}`,{prefix:"\u21B3 "})}catch{}}let s=i.filter(u=>u.isTailwindRoot&&u.file);s.length>0&&K("Migrating templates\u2026");{let u=new Set;for(let f of s){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=l.get(f),g=new cs({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||u.has(v)||(u.add(v),h.push(v));await Promise.allSettled(h.map(v=>kn(p,d?.userConfig??null,v))),d?.configFilePath?j(`Migrated templates for configuration file: ${x(R(d.configFilePath,e))}`,{prefix:"\u21B3 "}):j(`Migrated templates for: ${x(R(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}_(3)&&await Ni(e),await Promise.allSettled(t.map(r=>r())),sr()?j("Verify the changes and commit them to your repository."):j("No changes were made to your repository.")}gs().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/upgrade",
3
- "version": "0.0.0-insiders.17ca56d",
3
+ "version": "0.0.0-insiders.19e2b29",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "braces": "^3.0.3",
26
- "dedent": "1.5.3",
26
+ "dedent": "1.6.0",
27
27
  "enhanced-resolve": "^5.18.1",
28
28
  "globby": "^14.1.0",
29
29
  "jiti": "^2.0.0-beta.3",
@@ -36,9 +36,9 @@
36
36
  "semver": "^7.7.1",
37
37
  "tree-sitter": "^0.22.4",
38
38
  "tree-sitter-typescript": "^0.23.2",
39
- "@tailwindcss/node": "0.0.0-insiders.17ca56d",
40
- "@tailwindcss/oxide": "0.0.0-insiders.17ca56d",
41
- "tailwindcss": "0.0.0-insiders.17ca56d"
39
+ "@tailwindcss/node": "0.0.0-insiders.19e2b29",
40
+ "tailwindcss": "0.0.0-insiders.19e2b29",
41
+ "@tailwindcss/oxide": "0.0.0-insiders.19e2b29"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/braces": "^3.0.5",