@tailwindcss/upgrade 4.1.3 → 4.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +51 -51
- package/package.json +7 -5
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var cn=Object.create;var Kt=Object.defineProperty;var pn=Object.getOwnPropertyDescriptor;var mn=Object.getOwnPropertyNames;var dn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var hn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mn(t))!gn.call(e,i)&&i!==r&&Kt(e,i,{get:()=>t[i],enumerable:!(n=pn(t,i))||n.enumerable});return e};var vn=(e,t,r)=>(r=e!=null?cn(dn(e)):{},yn(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var _r=hn((Zc,Rr)=>{"use strict";var vo=["anchor-size"],Bc=new RegExp(`(${vo.join("|")})\\(`,"g"),Me=new Uint8Array(256);function wo(e,t){let r=0,n=[],i=0,a=e.length,l=t.charCodeAt(0);for(let s=0;s<a;s++){let o=e.charCodeAt(s);if(r===0&&o===l){n.push(e.slice(i,s)),i=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<a;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:Me[r]=41,r++;break;case 91:Me[r]=93,r++;break;case 123:Me[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===Me[r-1]&&r--;break}}return n.push(e.slice(i)),n}var J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,qc=new RegExp(`^${J.source}$`),Hc=new RegExp(`^${J.source}%$`),Jc=new RegExp(`^${J.source}s*/s*${J.source}$`),ko=["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"],Gc=new RegExp(`^${J.source}(${ko.join("|")})$`),bo=["deg","rad","grad","turn"],Yc=new RegExp(`^${J.source}(${bo.join("|")})$`),Qc=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function re(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var xo={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 ce(e){return{__BARE_VALUE__:e}}var z=ce(e=>{if(re(e.value))return e.value}),R=ce(e=>{if(re(e.value))return`${e.value}%`}),te=ce(e=>{if(re(e.value))return`${e.value}px`}),Pr=ce(e=>{if(re(e.value))return`${e.value}ms`}),Ke=ce(e=>{if(re(e.value))return`${e.value}deg`}),Co=ce(e=>{if(e.fraction===null)return;let[t,r]=wo(e.fraction,"/");if(!(!re(t)||!re(r)))return e.fraction}),Er=ce(e=>{if(re(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ao={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",...Co},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...R}),backdropContrast:({theme:e})=>({...e("contrast"),...R}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...R}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ke}),backdropInvert:({theme:e})=>({...e("invert"),...R}),backdropOpacity:({theme:e})=>({...e("opacity"),...R}),backdropSaturate:({theme:e})=>({...e("saturate"),...R}),backdropSepia:({theme:e})=>({...e("sepia"),...R}),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",...te},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",...R},caretColor:({theme:e})=>e("colors"),colors:()=>({...xo}),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",...z},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...R},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"),...te}),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",...z},flexShrink:{0:"0",DEFAULT:"1",...z},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%",...R},grayscale:{0:"0",DEFAULT:"100%",...R},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",...z},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",...z},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",...z},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",...z},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))",...Er},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))",...Er},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",...Ke},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%",...R},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",...z},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",...R},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",...z},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},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",...te},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ke},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...R},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",...R},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%",...R},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ke},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",...z},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",...te},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},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",...Pr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Pr},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",...z}};Rr.exports=Ao});import{globby as sn}from"globby";import un from"node:fs/promises";import vl from"node:path";import wl from"postcss";import{Scanner as zr}from"@tailwindcss/oxide";import Io from"node:fs/promises";import Mr from"node:path";import{fileURLToPath as Uo}from"node:url";import ve from"enhanced-resolve";import{createJiti as go}from"jiti";import At from"node:fs";import Ec from"node:fs/promises";import _c,{dirname as Ar}from"node:path";import{pathToFileURL as Sr}from"node:url";import{__unstable__loadDesignSystem as Ic,compile as Uc,compileAst as jc,Features as Fc,Polyfills as Lc}from"tailwindcss";import ct from"node:fs/promises";import xe from"node:path";var wn=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],kn=[".js",".cjs",".mjs"],bn=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],xn=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Cn(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 Wt(e,t,r,n){let i=kn.includes(n)?bn:xn,a=await Cn(xe.resolve(r,t),i);if(a===null||e.has(a))return;e.add(a),r=xe.dirname(a),n=xe.extname(a);let l=await ct.readFile(a,"utf-8"),s=[];for(let o of wn)for(let u of l.matchAll(o))u[1].startsWith(".")&&s.push(Wt(e,u[1],r,n));await Promise.all(s)}async function Bt(e){let t=new Set;return await Wt(t,e,xe.dirname(e),xe.extname(e)),Array.from(t)}import*as mo from"node:path";function pt(e){return{kind:"word",value:e}}function An(e,t){return{kind:"function",value:e,nodes:t}}function Sn(e){return{kind:"separator",value:e}}function D(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],a=!1,l=0,s=t(i,{parent:r,replaceWith(o){a||(a=!0,Array.isArray(o)?o.length===0?(e.splice(n,1),l=0):o.length===1?(e[n]=o[0],l=1):(e.splice(n,1,...o),l=o.length):e[n]=o)}})??0;if(a){s===0?n--:n+=l-1;continue}if(s===2)return 2;if(s!==1&&i.kind==="function"&&D(i.nodes,t,i)===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var qt=92,$n=41,Ht=58,Jt=44,Tn=34,Gt=61,Yt=62,Qt=60,Zt=10,Nn=40,Vn=39,Xt=47,er=32,tr=9;function C(e){e=e.replaceAll(`\r
|
|
2
|
+
var cn=Object.create;var Bt=Object.defineProperty;var pn=Object.getOwnPropertyDescriptor;var mn=Object.getOwnPropertyNames;var dn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var hn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mn(t))!gn.call(e,i)&&i!==r&&Bt(e,i,{get:()=>t[i],enumerable:!(n=pn(t,i))||n.enumerable});return e};var vn=(e,t,r)=>(r=e!=null?cn(dn(e)):{},yn(t||!e||!e.__esModule?Bt(r,"default",{value:e,enumerable:!0}):r,e));var Dr=hn((ep,Or)=>{"use strict";var yo=["anchor-size"],Hc=new RegExp(`(${yo.join("|")})\\(`,"g"),Be=new Uint8Array(256);function vo(e,t){let r=0,n=[],i=0,o=e.length,a=t.charCodeAt(0);for(let s=0;s<o;s++){let l=e.charCodeAt(s);if(r===0&&l===a){n.push(e.slice(i,s)),i=s+1;continue}switch(l){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===l)break}break;case 40:Be[r]=41,r++;break;case 91:Be[r]=93,r++;break;case 123:Be[r]=125,r++;break;case 93:case 125:case 41:r>0&&l===Be[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Y=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Jc=new RegExp(`^${Y.source}$`),Gc=new RegExp(`^${Y.source}%$`),Yc=new RegExp(`^${Y.source}s*/s*${Y.source}$`),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"],Qc=new RegExp(`^${Y.source}(${wo.join("|")})$`),ko=["deg","rad","grad","turn"],Zc=new RegExp(`^${Y.source}(${ko.join("|")})$`),Xc=new RegExp(`^${Y.source} +${Y.source} +${Y.source}$`);function ne(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var bo={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 pe(e){return{__BARE_VALUE__:e}}var W=pe(e=>{if(ne(e.value))return e.value}),D=pe(e=>{if(ne(e.value))return`${e.value}%`}),ie=pe(e=>{if(ne(e.value))return`${e.value}px`}),Er=pe(e=>{if(ne(e.value))return`${e.value}ms`}),qe=pe(e=>{if(ne(e.value))return`${e.value}deg`}),xo=pe(e=>{if(e.fraction===null)return;let[t,r]=vo(e.fraction,"/");if(!(!ne(t)||!ne(r)))return e.fraction}),_r=pe(e=>{if(ne(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Co={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",...xo},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"),...qe}),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",...ie},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:()=>({...bo}),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",...W},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"),...ie}),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",...W},flexShrink:{0:"0",DEFAULT:"1",...W},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",...W},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",...W},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",...W},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",...W},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))",..._r},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))",..._r},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%",...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",...W},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",...W},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},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",...ie},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},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",...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",...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",...W},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",...ie},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ie},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",...Er},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Er},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",...W}};Or.exports=Co});import{Scanner as vl}from"@tailwindcss/oxide";import{globby as wl}from"globby";import un from"node:fs/promises";import kl from"node:path";import bl from"postcss";import{Scanner as Kr}from"@tailwindcss/oxide";import Do from"node:fs/promises";import Wr from"node:path";import{fileURLToPath as Io}from"node:url";import Ce from"enhanced-resolve";import{createJiti as mo}from"jiti";import Nt from"node:fs";import _c from"node:fs/promises";import Dc,{dirname as $r}from"node:path";import{pathToFileURL as Tr}from"node:url";import{__unstable__loadDesignSystem as Uc,compile as Fc,compileAst as Mc,Features as Lc,Polyfills as zc}from"tailwindcss";import gt from"node:fs/promises";import Se from"node:path";var wn=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],kn=[".js",".cjs",".mjs"],bn=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],xn=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Cn(e,t){for(let r of t){let n=`${e}${r}`;if((await gt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await gt.access(n).then(()=>!0,()=>!1))return n}return null}async function qt(e,t,r,n){let i=kn.includes(n)?bn:xn,o=await Cn(Se.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Se.dirname(o),n=Se.extname(o);let a=await gt.readFile(o,"utf-8"),s=[];for(let l of wn)for(let u of a.matchAll(l))u[1].startsWith(".")&&s.push(qt(e,u[1],r,n));await Promise.all(s)}async function Ht(e){let t=new Set;return await qt(t,e,Se.dirname(e),Se.extname(e)),Array.from(t)}import*as po from"node:path";function ht(e){return{kind:"word",value:e}}function An(e,t){return{kind:"function",value:e,nodes:t}}function Sn(e){return{kind:"separator",value:e}}function N(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,a=0,s=t(i,{parent:r,replaceWith(l){o||(o=!0,Array.isArray(l)?l.length===0?(e.splice(n,1),a=0):l.length===1?(e[n]=l[0],a=1):(e.splice(n,1,...l),a=l.length):e[n]=l)}})??0;if(o){s===0?n--:n+=a-1;continue}if(s===2)return 2;if(s!==1&&i.kind==="function"&&N(i.nodes,t,i)===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var Jt=92,$n=41,Gt=58,Yt=44,Tn=34,Qt=61,Zt=62,Xt=60,er=10,Nn=40,Vn=39,tr=47,rr=32,ir=9;function C(e){e=e.replaceAll(`\r
|
|
3
3
|
`,`
|
|
4
|
-
`);let t=[],r=[],n=null,i="",a;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case qt:{i+=e[l]+e[l+1],l++;break}case Ht:case Jt:case Gt:case Yt:case Qt:case Zt:case Xt:case er:case tr:{if(i.length>0){let c=pt(i);n?n.nodes.push(c):t.push(c),i=""}let o=l,u=l+1;for(;u<e.length&&(a=e.charCodeAt(u),!(a!==Ht&&a!==Jt&&a!==Gt&&a!==Yt&&a!==Qt&&a!==Zt&&a!==Xt&&a!==er&&a!==tr));u++);l=u-1;let f=Sn(e.slice(o,u));n?n.nodes.push(f):t.push(f);break}case Vn:case Tn:{let o=l;for(let u=l+1;u<e.length;u++)if(a=e.charCodeAt(u),a===qt)u+=1;else if(a===s){l=u;break}i+=e.slice(o,l+1);break}case Nn:{let o=An(i,[]);i="",n?n.nodes.push(o):t.push(o),r.push(o),n=o;break}case $n:{let o=r.pop();if(i.length>0){let u=pt(i);o.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(pt(i)),t}var rr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Oe=["anchor-size"],ir=new RegExp(`(${Oe.join("|")})\\(`,"g");function nr(e){if(!rr.some(i=>e.includes(i)))return e;let t=!1;Oe.some(i=>e.includes(i))&&(ir.lastIndex=0,e=e.replace(ir,(i,a)=>(t=!0,`$${Oe.indexOf(a)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let a=e[i];if(a==="("){r+=a;let l=i;for(let o=i-1;o>=0;o--){let u=e.charCodeAt(o);if(u>=48&&u<=57)l=o;else if(u>=97&&u<=122)l=o;else break}let s=e.slice(l,i);if(rr.includes(s)){n.unshift(!0);continue}else if(n[0]&&s===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(a===")")r+=a,n.shift();else if(a===","&&n[0]){r+=", ";continue}else{if(a===" "&&n[0]&&r[r.length-1]===" ")continue;if((a==="+"||a==="*"||a==="/"||a==="-")&&n[0]){let l=r.trimEnd(),s=l[l.length-1];if(s==="+"||s==="*"||s==="/"||s==="-"){r+=a;continue}else if(s==="("||s===","){r+=a;continue}else e[i-1]===" "?r+=`${a} `:r+=` ${a} `}else if(n[0]&&e.startsWith("to-zero",i)){let l=i;i+=7,r+=e.slice(l,i+1)}else r+=a}}return t?r.replace(/\$(\d+)\$/g,(i,a)=>Oe[a]??i):r}function Ce(e){if(e.indexOf("(")===-1)return me(e);let t=C(e);return mt(t),e=x(t),e=nr(e),e}function me(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 mt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=me(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=me(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=me(t.nodes[r].value,!0);continue}mt([t.nodes[r]])}break}t.value=me(t.value),mt(t.nodes);break}case"separator":case"word":{t.value=me(t.value);break}default:Pn(t)}}function Pn(e){throw new Error(`Unexpected value: ${e}`)}var dt=new Uint8Array(256);function Ae(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 a=e.charCodeAt(n);if(a===92){n+=1;continue}if(a===i)break}break;case 40:dt[t]=41,t++;break;case 91:dt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===dt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var De=new Uint8Array(256);function y(e,t){let r=0,n=[],i=0,a=e.length,l=t.charCodeAt(0);for(let s=0;s<a;s++){let o=e.charCodeAt(s);if(r===0&&o===l){n.push(e.slice(i,s)),i=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<a;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:De[r]=41,r++;break;case 91:De[r]=93,r++;break;case 123:De[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===De[r-1]&&r--;break}}return n.push(e.slice(i)),n}var En=58,or=45,ar=97,lr=122;function*U(e,t){let r=y(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 a=!1;n[n.length-1]==="!"?(a=!0,n=n.slice(0,-1)):n[0]==="!"&&(a=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:a,raw:e});let[l,s=null,o]=y(n,"/");if(o)return;let u=s===null?null:Rn(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let c=l.charCodeAt(1);if(c!==or&&!(c>=ar&&c<=lr))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=Ce(l.slice(p+1));if(!Ae(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:a,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=y(m,":"),h=null;if(d.length===2&&(h=d[0],m=d[1]),m[0]!=="-"&&m[1]!=="-")return;f=[[p,h===null?`[var(${m})]`:`[${h}:var(${m})]`]]}else f=_n(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:a,raw:e};if(p===null){yield m;continue}{let d=p.indexOf("[");if(d!==-1){if(p[p.length-1]!=="]")return;let g=Ce(p.slice(d+1,-1));if(!Ae(g))continue;let k="";for(let A=0;A<g.length;A++){let M=g.charCodeAt(A);if(M===En){k=g.slice(0,A),g=g.slice(A+1);break}if(!(M===or||M>=ar&&M<=lr))break}if(g.length===0||g.trim().length===0)continue;m.value={kind:"arbitrary",dataType:k||null,value:g}}else{let g=s===null||m.modifier?.kind==="arbitrary"?null:`${p}/${s}`;m.value={kind:"named",value:p,fraction:g}}}yield m}}function Rn(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ce(e.slice(1,-1));return!Ae(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Ce(e.slice(1,-1));return!Ae(t)||t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*_n(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");if(r===-1){e[0]==="@"&&t("@")&&(yield["@",e.slice(1)]);return}do{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)}while(r>0)}function Se(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),a=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(a===l?0:a<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var w=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 q=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Ml=new RegExp(`^${q.source}$`);var Kl=new RegExp(`^${q.source}%$`);var Wl=new RegExp(`^${q.source}s*/s*${q.source}$`);var On=["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"],Bl=new RegExp(`^${q.source}(${On.join("|")})$`);var Dn=["deg","rad","grad","turn"],ql=new RegExp(`^${q.source}(${Dn.join("|")})$`);var Hl=new RegExp(`^${q.source} +${q.source} +${q.source}$`);function N(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function $e(e){return sr(e,.25)}function gt(e){return sr(e,.25)}function sr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function de(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),`color-mix(in oklab, ${e} ${t}, transparent)`}var Un={"--alpha":jn,"--spacing":Fn,"--theme":Ln,theme:zn};function jn(e,t,r,...n){let[i,a]=y(r,"/").map(l=>l.trim());if(!i||!a)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${a||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${a||"50%"})\``);return de(i,a)}function Fn(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 Ln(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 a=e.resolveThemeValue(r,i);if(!a){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 a;let l=n.join(", ");if(l==="initial")return a;if(a==="initial")return l;if(a.startsWith("var(")||a.startsWith("theme(")||a.startsWith("--theme(")){let s=C(a);return Kn(s,l),x(s)}return a}function zn(e,t,r,...n){r=Mn(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 fs=new RegExp(Object.keys(Un).map(e=>`${e}\\(`).join("|"));function Mn(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}function Kn(e,t){D(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 Q(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,a="",l=t.charCodeAt(0);if(r===1&&l===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){a+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&l===45){a+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(n);continue}a+="\\"+t.charAt(n)}return a}function Ie(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])}var Gn=32;var Yn=40;function pr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Gn||n===Yn){let i=e.slice(0,r).trim(),a=e.slice(r).trim();return S(i,a,t)}}return S(e.trim(),"",t)}function mr(e){let t,r=null,n=null,i=null;for(let a=0;a<e.length;a++){let l=e[a];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=x(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=x(l.nodes);continue}n=x(e.slice(a));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function gr(e){let t=[];return hr(e,[],(r,n)=>{if(Xn(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 t.push([n,r.join(", ")]),1}),t}var Zn=/^[a-zA-Z0-9-_%/\.]+$/;function H(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(!Zn.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 Xn(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 hr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let a=[...t,n],l=r(i,a)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&hr(i,a,r)===2)return 2}}}function X(e){let t=[];for(let r of y(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),a=r.indexOf("]",i);if(i===-1||a===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,a)),n=a+1}n<=r.length-1&&t.push(r.slice(n))}return t}function ye(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Te(e,t,r,n=[]){for(let i of t)if(i!=null)for(let a of Reflect.ownKeys(i)){n.push(a);let l=r(e[a],i[a],n);l!==void 0?e[a]=l:!ye(e[a])||!ye(i[a])?e[a]=i[a]:e[a]=Te({},[e[a],i[a]],r,n),n.pop()}return e}function kt(e,t,r){return function(i,a){let l=i.lastIndexOf("/"),s=null;l!==-1&&(s=i.slice(l+1).trim(),i=i.slice(0,l).trim());let o=(()=>{let u=X(i),[f,c]=to(e.theme,u),p=r(yr(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=Te({},[p],(d,h)=>h);if(f===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let h in p.__CSS_VALUES__)d[h]=p[h],delete m[h];f=d}for(let d in f)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&yr(m,d.split("-"))!==void 0||(m[Ie(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 h of Object.keys(d))c[1][h]&4&&(d[h]=p[1][h]??d[h]);return[m,d]}return f??p})();return s&&typeof o=="string"&&(o=de(o,s)),o??a}}function to(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=H(t),n=new Map,i=new w(()=>new Map),a=e.namespace(`--${r}`);if(a.size===0)return[null,0];let l=new Map;for(let[f,c]of a){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,(h,g)=>g.toUpperCase()),i.get(m===""?null:m).set(d,[c,e.getOptions(`--${r}${f}`)])}let s=e.getOptions(`--${r}`);for(let[f,c]of i){let p=n.get(f);if(typeof p!="string")continue;let m={},d={};for(let[h,[g,k]]of c)m[h]=g,d[h]=k;n.set(f,[p,m]),l.set(f,[s,d])}let o={},u={};for(let[f,c]of n)vr(o,[f??"DEFAULT"],c);for(let[f,c]of l)vr(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[o?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in o&&Object.keys(o).length===1?[o.DEFAULT,u.DEFAULT??0]:(o.__CSS_VALUES__=u,[o,u])}function yr(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 vr(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 je(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(W(n,[S("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(V(n,String(i)))}else if(Array.isArray(i))for(let a of i)typeof a=="string"?t.push(V(n,a)):t.push(W(n,je(a)));else i!==null&&t.push(W(n,je(i)));return t}function wr(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(S("@keyframes",r,je(n)));return t}var Fe={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 ue(e){return{__BARE_VALUE__:e}}var L=ue(e=>{if(N(e.value))return e.value}),E=ue(e=>{if(N(e.value))return`${e.value}%`}),ee=ue(e=>{if(N(e.value))return`${e.value}px`}),kr=ue(e=>{if(N(e.value))return`${e.value}ms`}),Le=ue(e=>{if(N(e.value))return`${e.value}deg`}),ao=ue(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!N(t)||!N(r)))return e.fraction}),br=ue(e=>{if(N(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),lo={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",...ao},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...E}),backdropContrast:({theme:e})=>({...e("contrast"),...E}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...E}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Le}),backdropInvert:({theme:e})=>({...e("invert"),...E}),backdropOpacity:({theme:e})=>({...e("opacity"),...E}),backdropSaturate:({theme:e})=>({...e("saturate"),...E}),backdropSepia:({theme:e})=>({...e("sepia"),...E}),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",...ee},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",...E},caretColor:({theme:e})=>e("colors"),colors:()=>({...Fe}),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",...L},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...E},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"),...ee}),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",...L},flexShrink:{0:"0",DEFAULT:"1",...L},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%",...E},grayscale:{0:"0",DEFAULT:"100%",...E},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",...L},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",...L},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",...L},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",...L},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))",...br},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))",...br},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",...Le},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%",...E},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",...L},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",...E},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",...L},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ee},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ee},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",...ee},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ee},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Le},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...E},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",...E},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%",...E},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Le},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",...L},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",...ee},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ee},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",...kr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...kr},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",...L}};var so={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function fe(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(so)};for(let i of t)bt(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=fo(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function uo(e,t){if(Array.isArray(e)&&ye(e[0]))return e.concat(t);if(Array.isArray(t)&&ye(t[0])&&ye(e))return[e,...t];if(Array.isArray(t))return t}function bt(e,{config:t,base:r,path:n,reference:i}){let a=[];for(let o of t.plugins??[])"__isOptionsFunction"in o?a.push({...o(),reference:i}):"handler"in o?a.push({...o,reference:i}):a.push({handler:o,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 o of t.presets??[])bt(e,{path:n,base:r,config:o,reference:i});for(let o of a)e.plugins.push(o),o.config&&bt(e,{path:n,base:r,config:o.config,reference:!!o.reference});let l=t.content??[],s=Array.isArray(l)?l:l.files;for(let o of s)e.content.files.push(typeof o=="object"?o:{base:r,pattern:o});e.configs.push(t)}function fo(e){let t=new Set,r=kt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Fe});function i(a){return typeof a=="function"?a(n)??null:a??null}for(let a of e.configs){let l=a.theme??{},s=l.extend??{};for(let o in l)o!=="extend"&&t.add(o);Object.assign(e.theme,l);for(let o in s)e.extend[o]??=[],e.extend[o].push(s[o])}delete e.theme.extend;for(let a in e.extend){let l=[e.theme[a],...e.extend[a]];e.theme[a]=()=>{let s=l.map(i);return Te({},s,uo)}}for(let a in e.theme)e.theme[a]=i(e.theme[a]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let a of Object.keys(e.theme.screens)){let l=e.theme.screens[a];l&&typeof l=="object"&&("raw"in l||"max"in l||"min"in l&&(e.theme.screens[a]=l.min))}return t}function xr({center:e,padding:t,screens:r},n){let i=[],a=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){a=new Map;let l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((s,o)=>Se(s[1],o[1],"asc")),l.length>0){let[s]=l[0];i.push(S("@media",`(width >= --theme(--breakpoint-${s}))`,[V("max-width","none")]))}for(let[s,o]of Object.entries(r)){if(typeof o=="object")if("min"in o)o=o.min;else continue;a.set(s,S("@media",`(width >= ${o})`,[V("max-width",o)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,o])=>[s,n.theme.resolveValue(s,["--breakpoint"]),o]).filter(Boolean);l.sort((s,o)=>Se(s[1],o[1],"asc"));for(let[s,,o]of l)if(a&&a.has(s))a.get(s).nodes.push(V("padding-inline",o));else{if(a)continue;i.push(S("@media",`(width >= theme(--breakpoint-${s}))`,[V("padding-inline",o)]))}}if(a)for(let[,l]of a)i.push(l);return i}function xt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let a;if(Array.isArray(i)||typeof i=="function"?a=i:typeof i=="string"&&(a=[i]),Array.isArray(a))for(let l of a)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=a}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 Cr(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 co=64;function ge(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function S(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function W(e,t=[]){return e.charCodeAt(0)===co?pr(e,t):ge(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function P(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let a=e[i],l=r[r.length-1]??null;if(a.kind==="context"){if(P(a.nodes,t,r,{...n,...a.context})===2)return 2;continue}r.push(a);let s=!1,o=0,u=t(a,{parent:l,context:n,path:r,replaceWith(f){s||(s=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),o=0):f.length===1?(e[i]=f[0],o=1):(e.splice(i,1,...f),o=f.length):(e[i]=f,o=1))}})??0;if(r.pop(),s){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in a){r.push(a);let f=P(a.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function Z(e){function t(n,i=0){let a="",l=" ".repeat(i);if(n.kind==="declaration")a+=`${l}${n.property}: ${n.value}${n.important?" !important":""};
|
|
5
|
-
`;else if(n.kind==="rule"){
|
|
6
|
-
`;for(let s of n.nodes)
|
|
7
|
-
`}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${
|
|
8
|
-
`;
|
|
9
|
-
`;for(let s of n.nodes)
|
|
10
|
-
`}else if(n.kind==="comment")
|
|
11
|
-
`;else if(n.kind==="context"||n.kind==="at-root")return"";return
|
|
4
|
+
`);let t=[],r=[],n=null,i="",o;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);switch(s){case Jt:{i+=e[a]+e[a+1],a++;break}case Gt:case Yt:case Qt:case Zt:case Xt:case er:case tr:case rr:case ir:{if(i.length>0){let p=ht(i);n?n.nodes.push(p):t.push(p),i=""}let l=a,u=a+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Gt&&o!==Yt&&o!==Qt&&o!==Zt&&o!==Xt&&o!==er&&o!==tr&&o!==rr&&o!==ir));u++);a=u-1;let f=Sn(e.slice(l,u));n?n.nodes.push(f):t.push(f);break}case Vn:case Tn:{let l=a;for(let u=a+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Jt)u+=1;else if(o===s){a=u;break}i+=e.slice(l,a+1);break}case Nn:{let l=An(i,[]);i="",n?n.nodes.push(l):t.push(l),r.push(l),n=l;break}case $n:{let l=r.pop();if(i.length>0){let u=ht(i);l.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(ht(i)),t}var nr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ie=["anchor-size"],or=new RegExp(`(${Ie.join("|")})\\(`,"g");function ar(e){if(!nr.some(i=>e.includes(i)))return e;let t=!1;Ie.some(i=>e.includes(i))&&(or.lastIndex=0,e=e.replace(or,(i,o)=>(t=!0,`$${Ie.indexOf(o)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let o=e[i];if(o==="("){r+=o;let a=i;for(let l=i-1;l>=0;l--){let u=e.charCodeAt(l);if(u>=48&&u<=57)a=l;else if(u>=97&&u<=122)a=l;else break}let s=e.slice(a,i);if(nr.includes(s)){n.unshift(!0);continue}else if(n[0]&&s===""){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 a=r.trimEnd(),s=a[a.length-1];if(s==="+"||s==="*"||s==="/"||s==="-"){r+=o;continue}else if(s==="("||s===","){r+=o;continue}else e[i-1]===" "?r+=`${o} `:r+=` ${o} `}else if(n[0]&&e.startsWith("to-zero",i)){let a=i;i+=7,r+=e.slice(a,i+1)}else r+=o}}return t?r.replace(/\$(\d+)\$/g,(i,o)=>Ie[o]??i):r}function $e(e){if(e.indexOf("(")===-1)return ve(e);let t=C(e);return yt(t),e=x(t),e=ar(e),e}function ve(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 yt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=ve(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=ve(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=ve(t.nodes[r].value,!0);continue}yt([t.nodes[r]])}break}t.value=ve(t.value),yt(t.nodes);break}case"separator":case"word":{t.value=ve(t.value);break}default:Pn(t)}}function Pn(e){throw new Error(`Unexpected value: ${e}`)}var vt=new Uint8Array(256);function Te(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:vt[t]=41,t++;break;case 91:vt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===vt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var je=new Uint8Array(256);function y(e,t){let r=0,n=[],i=0,o=e.length,a=t.charCodeAt(0);for(let s=0;s<o;s++){let l=e.charCodeAt(s);if(r===0&&l===a){n.push(e.slice(i,s)),i=s+1;continue}switch(l){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===l)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&&l===je[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Rn=58,lr=45,sr=97,ur=122;function*I(e,t){let r=y(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 p=r.length-1;p>=0;--p){let c=t.parseVariant(r[p]);if(c===null)return;i.push(c)}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[a,s=null,l]=y(n,"/");if(l)return;let u=s===null?null:En(s);if(s!==null&&u===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let p=a.charCodeAt(1);if(p!==lr&&!(p>=sr&&p<=ur))return;a=a.slice(1,-1);let c=a.indexOf(":");if(c===-1||c===0||c===a.length-1)return;let d=a.slice(0,c),m=$e(a.slice(c+1));if(!Te(m))return;yield{kind:"arbitrary",property:d,value:m,modifier:u,variants:i,important:o,raw:e};return}let f;if(a[a.length-1]==="]"){let p=a.indexOf("-[");if(p===-1)return;let c=a.slice(0,p);if(!t.utilities.has(c,"functional"))return;let d=a.slice(p+1);f=[[c,d]]}else if(a[a.length-1]===")"){let p=a.indexOf("-(");if(p===-1)return;let c=a.slice(0,p);if(!t.utilities.has(c,"functional"))return;let d=a.slice(p+2,-1),m=y(d,":"),h=null;if(m.length===2&&(h=m[0],d=m[1]),d[0]!=="-"&&d[1]!=="-")return;f=[[c,h===null?`[var(${d})]`:`[${h}:var(${d})]`]]}else f=_n(a,p=>t.utilities.has(p,"functional"));for(let[p,c]of f){let d={kind:"functional",root:p,modifier:u,value:null,variants:i,important:o,raw:e};if(c===null){yield d;continue}{let m=c.indexOf("[");if(m!==-1){if(c[c.length-1]!=="]")return;let g=$e(c.slice(m+1,-1));if(!Te(g))continue;let v="";for(let S=0;S<g.length;S++){let B=g.charCodeAt(S);if(B===Rn){v=g.slice(0,S),g=g.slice(S+1);break}if(!(B===lr||B>=sr&&B<=ur))break}if(g.length===0||g.trim().length===0)continue;d.value={kind:"arbitrary",dataType:v||null,value:g}}else{let g=s===null||d.modifier?.kind==="arbitrary"?null:`${c}/${s}`;d.value={kind:"named",value:c,fraction:g}}}yield d}}function En(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=$e(e.slice(1,-1));return!Te(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=$e(e.slice(1,-1));return!Te(t)||t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*_n(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 Ne(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),a=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(o===a?0:o<a?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var k=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 J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Wl=new RegExp(`^${J.source}$`);var Bl=new RegExp(`^${J.source}%$`);var ql=new RegExp(`^${J.source}s*/s*${J.source}$`);var On=["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"],Hl=new RegExp(`^${J.source}(${On.join("|")})$`);var Dn=["deg","rad","grad","turn"],Jl=new RegExp(`^${J.source}(${Dn.join("|")})$`);var Gl=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function V(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Ve(e){return fr(e,.25)}function wt(e){return fr(e,.25)}function fr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function we(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 jn={"--alpha":Un,"--spacing":Fn,"--theme":Mn,theme:Ln};function Un(e,t,r,...n){let[i,o]=y(r,"/").map(a=>a.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 we(i,o)}function Fn(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 Mn(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 a=n.join(", ");if(a==="initial")return o;if(o==="initial")return a;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=C(o);return Kn(s,a),x(s)}return o}function Ln(e,t,r,...n){r=zn(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 ps=new RegExp(Object.keys(jn).map(e=>`${e}\\(`).join("|"));function zn(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 Kn(e,t){N(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 X(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",a=t.charCodeAt(0);if(r===1&&a===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&&a===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 Ue(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])}var Gn=32;var Yn=40;function dr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Gn||n===Yn){let i=e.slice(0,r).trim(),o=e.slice(r).trim();return A(i,o,t)}}return A(e.trim(),"",t)}function gr(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let a=e[o];if(a.kind!=="separator"){if(a.kind==="word"&&!t){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;t=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!t)return null;if((a.kind==="word"||a.kind==="function")&&a.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 a?r=x(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=x(a.nodes);continue}n=x(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function yr(e){let t=[];return vr(e,[],(r,n)=>{if(Zn(r))return t.push([n,r]),1;if(Xn(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 Qn=/^[a-zA-Z0-9-_%/\.]+$/;function G(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(!Qn.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 Zn(e){return typeof e=="number"||typeof e=="string"}function Xn(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 vr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],a=r(i,o)??0;if(a!==1){if(a===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&vr(i,o,r)===2)return 2}}}function te(e){let t=[];for(let r of y(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 xe(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Pe(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let a=r(e[o],i[o],n);a!==void 0?e[o]=a:!xe(e[o])||!xe(i[o])?e[o]=i[o]:e[o]=Pe({},[e[o],i[o]],r,n),n.pop()}return e}function At(e,t,r){return function(i,o){let a=i.lastIndexOf("/"),s=null;a!==-1&&(s=i.slice(a+1).trim(),i=i.slice(0,a).trim());let l=(()=>{let u=te(i),[f,p]=eo(e.theme,u),c=r(wr(t()??{},u)??null);if(typeof c=="string"&&(c=c.replace("<alpha-value>","1")),typeof f!="object")return typeof p!="object"&&p&4?c??f:f;if(c!==null&&typeof c=="object"&&!Array.isArray(c)){let d=Pe({},[c],(m,h)=>h);if(f===null&&Object.hasOwn(c,"__CSS_VALUES__")){let m={};for(let h in c.__CSS_VALUES__)m[h]=c[h],delete d[h];f=m}for(let m in f)m!=="__CSS_VALUES__"&&(c?.__CSS_VALUES__?.[m]&4&&wr(d,m.split("-"))!==void 0||(d[Ue(m)]=f[m]));return d}if(Array.isArray(f)&&Array.isArray(p)&&Array.isArray(c)){let d=f[0],m=f[1];p[0]&4&&(d=c[0]??d);for(let h of Object.keys(m))p[1][h]&4&&(m[h]=c[1][h]??m[h]);return[d,m]}return f??c})();return s&&typeof l=="string"&&(l=we(l,s)),l??o}}function eo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=G(t),n=new Map,i=new k(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let a=new Map;for(let[f,p]of o){if(!f||!f.includes("--")){n.set(f,p),a.set(f,e.getOptions(f?`--${r}-${f}`:`--${r}`));continue}let c=f.indexOf("--"),d=f.slice(0,c),m=f.slice(c+2);m=m.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),i.get(d===""?null:d).set(m,[p,e.getOptions(`--${r}${f}`)])}let s=e.getOptions(`--${r}`);for(let[f,p]of i){let c=n.get(f);if(typeof c!="string")continue;let d={},m={};for(let[h,[g,v]]of p)d[h]=g,m[h]=v;n.set(f,[c,d]),a.set(f,[s,m])}let l={},u={};for(let[f,p]of n)kr(l,[f??"DEFAULT"],p);for(let[f,p]of a)kr(u,[f??"DEFAULT"],p);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 wr(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 kr(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 Le(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(L(n,[A("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push($(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push($(n,o)):t.push(L(n,Le(o)));else i!==null&&t.push(L(n,Le(i)));return t}function br(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(A("@keyframes",r,Le(n)));return t}var ze={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 fe(e){return{__BARE_VALUE__:e}}var K=fe(e=>{if(V(e.value))return e.value}),O=fe(e=>{if(V(e.value))return`${e.value}%`}),re=fe(e=>{if(V(e.value))return`${e.value}px`}),xr=fe(e=>{if(V(e.value))return`${e.value}ms`}),Ke=fe(e=>{if(V(e.value))return`${e.value}deg`}),oo=fe(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!V(t)||!V(r)))return e.fraction}),Cr=fe(e=>{if(V(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ao={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",...oo},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"),...Ke}),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",...re},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:()=>({...ze}),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",...K},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"),...re}),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",...K},flexShrink:{0:"0",DEFAULT:"1",...K},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",...K},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",...K},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",...K},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",...K},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))",...Cr},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))",...Cr},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",...Ke},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",...K},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",...K},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...re},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...re},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",...re},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...re},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ke},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",...Ke},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",...K},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",...re},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...re},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",...K}};var lo={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function ce(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(lo)};for(let i of t)St(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=uo(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function so(e,t){if(Array.isArray(e)&&xe(e[0]))return e.concat(t);if(Array.isArray(t)&&xe(t[0])&&xe(e))return[e,...t];if(Array.isArray(t))return t}function St(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??[])St(e,{path:n,base:r,config:l,reference:i});for(let l of o)e.plugins.push(l),l.config&&St(e,{path:n,base:r,config:l.config,reference:!!l.reference});let a=t.content??[],s=Array.isArray(a)?a:a.files;for(let l of s)e.content.files.push(typeof l=="object"?l:{base:r,pattern:l});e.configs.push(t)}function uo(e){let t=new Set,r=At(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:ze});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let a=o.theme??{},s=a.extend??{};for(let l in a)l!=="extend"&&t.add(l);Object.assign(e.theme,a);for(let l in s)e.extend[l]??=[],e.extend[l].push(s[l])}delete e.theme.extend;for(let o in e.extend){let a=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let s=a.map(i);return Pe({},s,so)}}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 a=e.theme.screens[o];a&&typeof a=="object"&&("raw"in a||"max"in a||"min"in a&&(e.theme.screens[o]=a.min))}return t}function Ar({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push($("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push($("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let a=Array.from(n.theme.namespace("--breakpoint").entries());if(a.sort((s,l)=>Ne(s[1],l[1],"asc")),a.length>0){let[s]=a[0];i.push(A("@media",`(width >= --theme(--breakpoint-${s}))`,[$("max-width","none")]))}for(let[s,l]of Object.entries(r)){if(typeof l=="object")if("min"in l)l=l.min;else continue;o.set(s,A("@media",`(width >= ${l})`,[$("max-width",l)]))}}if(typeof t=="object"&&t!==null){let a=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,l])=>[s,n.theme.resolveValue(s,["--breakpoint"]),l]).filter(Boolean);a.sort((s,l)=>Ne(s[1],l[1],"asc"));for(let[s,,l]of a)if(o&&o.has(s))o.get(s).nodes.push($("padding-inline",l));else{if(o)continue;i.push(A("@media",`(width >= theme(--breakpoint-${s}))`,[$("padding-inline",l)]))}}if(o)for(let[,a]of o)i.push(a);return i}function $t({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 a of o)a===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):a.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 Sr(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 fo=64;function ke(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 L(e,t=[]){return e.charCodeAt(0)===fo?dr(e,t):ke(e,t)}function $(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function Me(e){return{kind:"comment",value:e}}function _(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],a=r[r.length-1]??null;if(o.kind==="context"){if(_(o.nodes,t,r,{...n,...o.context})===2)return 2;continue}r.push(o);let s=!1,l=0,u=t(o,{parent:a,context:n,path:r,replaceWith(f){s||(s=!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(),s){u===0?i--:i+=l-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in o){r.push(o);let f=_(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function ee(e){function t(n,i=0){let o="",a=" ".repeat(i);if(n.kind==="declaration")o+=`${a}${n.property}: ${n.value}${n.important?" !important":""};
|
|
5
|
+
`;else if(n.kind==="rule"){o+=`${a}${n.selector} {
|
|
6
|
+
`;for(let s of n.nodes)o+=t(s,i+1);o+=`${a}}
|
|
7
|
+
`}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${a}${n.name} ${n.params};
|
|
8
|
+
`;o+=`${a}${n.name}${n.params?` ${n.params} `:" "}{
|
|
9
|
+
`;for(let s of n.nodes)o+=t(s,i+1);o+=`${a}}
|
|
10
|
+
`}else if(n.kind==="comment")o+=`${a}/*${n.value}*/
|
|
11
|
+
`;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 co(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 Tt(e){let t=co(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function We(e,t,r,n){if(e[0]!=="."){let s=await Pr(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let l=await Vr(Tr(s).href);return{base:$r(s),module:l.default??l}}let i=await Pr(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,a]=await Promise.all([Vr(Tr(i).href+"?id="+Date.now()),Ht(i)]);for(let s of a)r(s);return{base:$r(i),module:o.default??o}}var Nr=null;async function Vr(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 Nr??=mo(import.meta.url,{moduleCache:!1,fsCache:!1}),await Nr.import(e)}}var Vt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Bc=Ce.ResolverFactory.createResolver({fileSystem:new Ce.CachedInputFileSystem(Nt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Vt});var go=Ce.ResolverFactory.createResolver({fileSystem:new Ce.CachedInputFileSystem(Nt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Vt}),ho=Ce.ResolverFactory.createResolver({fileSystem:new Ce.CachedInputFileSystem(Nt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Vt});async function Pr(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 Rr(go,e,t).catch(()=>Rr(ho,e,t))}function Rr(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,a)=>{if(o)return i(o);n(a)}))}var Br=vn(Dr());import He from"tree-sitter";import Je from"tree-sitter-typescript";var Pt=new He;Pt.setLanguage(Je.typescript);var Rt=String.raw,Ao=new He.Query(Je.typescript,Rt`
|
|
12
12
|
; export default {}
|
|
13
13
|
(export_statement
|
|
14
14
|
value: [
|
|
@@ -59,7 +59,7 @@ var cn=Object.create;var Kt=Object.defineProperty;var pn=Object.getOwnPropertyDe
|
|
|
59
59
|
]
|
|
60
60
|
)
|
|
61
61
|
)
|
|
62
|
-
`)
|
|
62
|
+
`),So=new He.Query(Je.typescript,Rt`
|
|
63
63
|
(call_expression
|
|
64
64
|
function: [
|
|
65
65
|
(call_expression
|
|
@@ -112,7 +112,7 @@ var cn=Object.create;var Kt=Object.defineProperty;var pn=Object.getOwnPropertyDe
|
|
|
112
112
|
(string (string_fragment) @module_string)
|
|
113
113
|
)
|
|
114
114
|
)
|
|
115
|
-
`);function
|
|
115
|
+
`);function Et(e){try{let r=Pt.parse(e).rootNode,n=To(e),i=Ao.matches(r),o=[];for(let a of i)for(let s of a.captures)if(s.name==="imports"){for(let l of s.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=So.matches(l);if(f.length===0)return null;let p=null,c=null,d=null,m=null,h=f.flatMap(g=>g.captures);for(let g=0;g<h.length;g++){let v=h[g];switch(v.name){case"module_identifier":{c=v.node.text;break}case"module_string":{p=v.node.text;break}case"property":{if(m!==null)return null;m=v.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(m===null)return null;d??={},d[m]=Ir(v),m=null;break}case"array_value":{if(m===null)return null;d??={};let S=[],B=g;e:for(let Z=g+1;Z<h.length;Z++){let dt=h[Z];switch(dt.name){case"property":{if(dt.node.text!==m)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":S.push(Ir(dt)),B=Z}}g=B,d[m]=S,m=null;break}case"_name":case"_empty_args":break;default:return null}}if(m!==null)return null;if(c!==null){let g=n[c];if(!g||g.export!==null&&g.export!=="*")return null;p=g.module}if(p===null)return null;o.push([p,d]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var $o=new He.Query(Je.typescript,Rt`
|
|
116
116
|
; ESM import
|
|
117
117
|
(import_statement
|
|
118
118
|
(import_clause
|
|
@@ -151,70 +151,70 @@ var cn=Object.create;var Kt=Object.defineProperty;var pn=Object.getOwnPropertyDe
|
|
|
151
151
|
)
|
|
152
152
|
)
|
|
153
153
|
)
|
|
154
|
-
`);function
|
|
154
|
+
`);function To(e){let r=Pt.parse(e).rootNode,n=$o.matches(r),i={};for(let o of n){let a=[],s="";for(let l=0;l<o.captures.length;l++){let u=o.captures[l];switch(u.name){case"default":a.push({name:u.node.text,export:null});break;case"imported-name":a.push({name:u.node.text,export:u.node.text});break;case"imported-from":s=u.node.text;break;case"imported-namespace":a.push({name:u.node.text,export:"*"});break;case"imported-alias":if(a.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let f=a[a.length-1],p=f.name;f.export=p,f.name=u.node.text;break}}for(let{name:l,export:u}of a)i[l]={module:s,export:u}}return i}function Ir(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 _o from"node:fs";import Fr from"node:path";import{stripVTControlCharacters as Mr}from"node:util";import U from"picocolors";import Ae from"enhanced-resolve";import _t from"node:fs";import{createRequire as No}from"node:module";var Vo=No(import.meta.url).resolve;function jr(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Vo(e)}var Po=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Ro=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Ur(e,t){try{return Po.resolveSync({},t,e)}catch{return Ro.resolveSync({},t,e)}}var Eo=Ae.ResolverFactory.createResolver({fileSystem:new Ae.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Ot(e,t){return Eo.resolveSync({},t,e)}var Ge={indent:2};function Ye(){return`${U.italic(U.bold(U.blue("\u2248")))} tailwindcss ${U.blue(`v${Oo()}`)}`}function w(e){return`${U.dim(U.blue("`"))}${U.blue(e)}${U.dim(U.blue("`"))}`}function P(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Fr.relative(t,e);return n.startsWith("..")||(n=`.${Fr.sep}${n}`),r&&n.length>e.length?e:n}function Re(e,t){if(e.includes(`
|
|
155
155
|
`))return e.split(`
|
|
156
|
-
`).flatMap(
|
|
157
|
-
`)}function
|
|
158
|
-
`)}function
|
|
159
|
-
`)}}async function
|
|
156
|
+
`).flatMap(a=>Re(a,t));let r=e.split(" "),n=[],i="",o=0;for(let a of r){let s=Mr(a).length;o+s+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+a,o+=s+(o?1:0)}return o&&n.push(i),n}function Ee(e,t=0){return`${" ".repeat(t+Ge.indent)}${e}`}function Qe(e,{art:t=U.gray("\u2502"),prefix:r="",print:n=oe}){let i=r.length,o=" ",a=o.length,s=Mr(t).length,u=process.stderr.columns-i-a*2-s;Re(e,u).map((f,p)=>n(`${t}${o}${p===0?r:" ".repeat(i)}${f}${o}`)),n()}function j(e,{prefix:t="",print:r=oe}={}){Qe(e,{art:U.green("\u2502"),prefix:t,print:r})}function F(e,{prefix:t="",print:r=oe}={}){Qe(e,{art:U.blue("\u2502"),prefix:t,print:r})}function R(e,{prefix:t="",print:r=oe}={}){Qe(e,{art:U.red("\u2502"),prefix:t,print:r})}function Ze(e,{prefix:t="",print:r=oe}={}){Qe(e,{art:U.yellow("\u2502"),prefix:t,print:r})}function oe(e=""){process.stderr.write(`${e}
|
|
157
|
+
`)}function M(e=""){process.stdout.write(`${e}
|
|
158
|
+
`)}function Oo(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(_o.readFileSync(jr("tailwindcss/package.json"),"utf-8"));return e}var jo=Io(import.meta.url),Uo=Wr.dirname(jo);async function qr(e,t,r){let[n,i]=await Promise.all([We(t,Uo,()=>{}).then(u=>u.module),Do.readFile(t,"utf-8")]);if(!Ko(n,i))return F(`The configuration file at ${w(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=[],a=[],s=[];if("darkMode"in n&&s.push(Mo(n)),"content"in n&&(o=await zo(n,t,r)),"theme"in n){let u=await Fo(e,n,r);u&&s.push(u)}"corePlugins"in n&&F("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let l=Et(i);if(l!==null)for(let[u,f]of l)a.push({base:r,path:u,options:f});return{sources:o,plugins:a,css:s.join(`
|
|
159
|
+
`)}}async function Fo(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1},{resolvedConfig:i,replacedThemeKeys:o}=ce(e,[n]),a=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));Go(e,i,o);let s="",l=`
|
|
160
160
|
@tw-bucket theme {
|
|
161
|
-
`;
|
|
161
|
+
`;l+=`
|
|
162
162
|
@theme {
|
|
163
|
-
`;let u=!1;for(let[f,
|
|
164
|
-
`,s=
|
|
165
|
-
`)}let
|
|
166
|
-
`)}if("keyframes"in i.theme&&(u=!0,
|
|
167
|
-
`+
|
|
168
|
-
`,"container"in i.theme){let f=
|
|
169
|
-
`+
|
|
170
|
-
`,
|
|
163
|
+
`;let u=!1;for(let[f,p]of yr(i.theme)){if(typeof p!="string"&&typeof p!="number")continue;if(typeof p=="string"&&(p=p.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof p=="number"||typeof p=="string")){let m=typeof p=="string"?parseFloat(p):p;if(m>=0&&m<=1&&(p=m*100+"%"),typeof p=="string"&&f[1]===p.replace(/%$/,"")&&wt(f[1]))continue}if(f[0]==="keyframes")continue;u=!0;let c=Lo(f);if(c!==s&&(l+=`
|
|
164
|
+
`,s=c),a.has(f[0])&&a.get(f[0])===!1){a.set(f[0],!0);let m=G([f[0]]);m!==null&&(l+=` ${X(`--${m}`)}-*: initial;
|
|
165
|
+
`)}let d=G(f);d!==null&&(l+=` ${X(`--${d}`)}: ${p};
|
|
166
|
+
`)}if("keyframes"in i.theme&&(u=!0,l+=`
|
|
167
|
+
`+qo(i.theme.keyframes)),!u)return null;if(l+=`}
|
|
168
|
+
`,"container"in i.theme){let f=Ar(i.theme.container,e);f.length>0&&(l+=`
|
|
169
|
+
`+ee([A("@utility","container",f)]))}return l+=`}
|
|
170
|
+
`,l}function Mo(e){let t="";if($t({config:()=>e.darkMode,addVariant:(o,a)=>t=a}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
|
|
171
171
|
@tw-bucket custom-variant {
|
|
172
172
|
@custom-variant dark (${t[0]});
|
|
173
173
|
}
|
|
174
|
-
`;let i="";for(let
|
|
175
|
-
`:i+=
|
|
174
|
+
`;let i="";for(let o of t)o.includes("{")?i+=o.replace("}","{ @slot }}")+`
|
|
175
|
+
`:i+=o+`{ @slot }
|
|
176
176
|
`;return i!==""?`
|
|
177
177
|
@tw-bucket custom-variant {
|
|
178
178
|
@custom-variant dark {${i}};
|
|
179
179
|
}
|
|
180
|
-
`:""}function
|
|
181
|
-
`}function
|
|
180
|
+
`:""}function Lo(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 zo(e,t,r){let n=Ho(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,a=Array.isArray(e.content)?e.content.map(s=>({base:r,pattern:s})):(e.content?.files??[]).map(s=>typeof s=="string"&&o?{base:Wr.dirname(t),pattern:s}:{base:r,pattern:s});for(let{base:s,pattern:l}of a){if(typeof l!="string")throw new Error("Unsupported content value: "+l);let u=Jo({base:s,pattern:l[0]==="!"?l.slice(1):l,negated:l[0]==="!"}),f=!0;for(let p of u)if(!n.includes(p)){f=!1;break}f||i.push({base:s,pattern:l})}return i}function Ko(e,t){function r(s){return typeof s=="function"?!1:Array.isArray(s)?s.every(r):typeof s=="object"&&s!==null?Object.values(s).every(r):["string","number","boolean","undefined"].includes(typeof s)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let a=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(s=>!a.includes(s))||Et(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!Lr(i.extend))return!1;let{extend:s,...l}=i;if(!Lr(l))return!1}return!0}var Wo=[...Object.keys(Br.default),"containers"],Bo=["supports","data","aria"];function Lr(e){for(let t of Object.keys(e))if(!Wo.includes(t)||Bo.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 qo(e){let t=br({theme:{keyframes:e}});return ee(t).trim()+`
|
|
181
|
+
`}function Ho(e){let t=new Kr({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Jo(e){let t=new Kr({sources:[e]});return t.scan(),t.files}function Go(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=zr(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[a,s]of Object.entries(t.theme.spacing??{})){let[l,u]=zr(s);l!==null&&Ve(a)&&u===o&&parseFloat(l)===Number(a)*parseFloat(i)&&(delete t.theme.spacing[a],e.theme.clearNamespace(X(`--spacing-${a.replaceAll(".","_")}`),0))}}function zr(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import Q from"node:fs/promises";import Dt from"node:path";import{exec as Yo}from"node:child_process";import me from"node:fs/promises";import{dirname as Qo,resolve as de}from"node:path";import{promisify as Zo}from"node:util";var Hr=Zo(Yo),Jr={default:"-D",bun:"-d"};function ge(e){return{async add(t,r="dependencies"){let n=await Yr.get(e),i=t.slice();r==="devDependencies"&&i.push(Jr[n]||Jr.default);let o=`${n} add ${i.join(" ")}`;try{return await Hr(o,{cwd:e})}catch(a){throw R(`An error occurred while running \`${o}\`
|
|
182
182
|
|
|
183
|
-
${
|
|
184
|
-
${
|
|
183
|
+
${a.stdout}
|
|
184
|
+
${a.stderr}`,{prefix:"\u21B3 "}),a}},async has(t){try{let r=de(e,"package.json");return(await me.readFile(r,"utf-8")).includes(`"${t}":`)}catch{}return!1},async remove(t){let n=`${await Yr.get(e)} remove ${t.join(" ")}`;try{return await Hr(n,{cwd:e})}catch(i){throw R(`An error occurred while running \`${n}\`
|
|
185
185
|
|
|
186
186
|
${i.stdout}
|
|
187
|
-
${i.stderr}`,{prefix:"\u21B3 "}),i}}}}var
|
|
188
|
-
`),
|
|
189
|
-
`)),{didAddPostcssClient:
|
|
190
|
-
`;throw
|
|
191
|
-
`,new Error(
|
|
192
|
-
`))}}import
|
|
187
|
+
${i.stderr}`,{prefix:"\u21B3 "}),i}}}}var Gr=!1,Yr=new k(async e=>{do{let t=de(e,"package.json");try{let n=await me.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 me.access(de(e,"bun.lockb")),"bun"}catch{}try{return await me.access(de(e,"bun.lock")),"bun"}catch{}try{return await me.access(de(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await me.access(de(e,"yarn.lock")),"yarn"}catch{}try{return await me.access(de(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Qo(e),r===e)return Gr||(Gr=!0,Ze("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Zr(e){let t=!1,r=!1,n=!1,i=!1,o=!1,a=Dt.resolve(e,"package.json"),s;try{s=JSON.parse(await Q.readFile(a,"utf-8"))}catch{}let l=await ta(e);if(l){let u=await Xo(l);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&s&&"postcss"in s){let u=await Qr(s.postcss);t=!0,u&&(await Q.writeFile(a,JSON.stringify({...s,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await ia(e),f=null;if(u){try{f=JSON.parse(await Q.readFile(u,"utf-8"))}catch{}if(f){let p=await Qr(f);t=!0,p&&(await Q.writeFile(u,JSON.stringify(p.json,null,2)),r=!0,n=p.didAddPostcssClient,i=p.didRemoveAutoprefixer,o=p.didRemovePostCSSImport)}}}if(!t){F("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(s?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(s?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await ge(e).add(["@tailwindcss/postcss@latest"],u),j(`Installed package: ${w("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await ge(e).remove(["autoprefixer"]),j(`Removed package: ${w("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await ge(e).remove(["postcss-import"]),j(`Removed package: ${w("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&l&&j(`Migrated PostCSS configuration: ${w(P(l,e))}`,{prefix:"\u21B3 "})}async function Xo(e){function t(c){return/['"]?tailwindcss['"]?\: ?\{\}/.test(c)}function r(c){return/['"]?postcss-import['"]?\: ?\{\}/.test(c)}function n(c){return/['"]?autoprefixer['"]?\: ?\{\}/.test(c)}function i(c){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(c)}if(F("Migrating PostCSS configuration\u2026"),!await na(e))return Ze("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let a=!1,s=!1,l=!1,f=(await Q.readFile(e,"utf-8")).split(`
|
|
188
|
+
`),p=[];for(let c=0;c<f.length;c++){let d=f[c];if(t(d))a=!0,p.push(d.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(d))s=!0;else if(r(d)){let m=!1;for(let h=c+1;h<f.length;h++){let g=f[h];if(t(g))break;if(!i(g)){m=!0;break}}m?p.push(d):l=!0}else if(i(d)){let m=f[c+1];t(m)||p.push(d)}else p.push(d)}return await Q.writeFile(e,p.join(`
|
|
189
|
+
`)),{didAddPostcssClient:a,didRemoveAutoprefixer:s,didRemovePostCSSImport:l}}async function Qr(e){function t(f,p){return f==="tailwindcss"&&Xe(p)}function r(f,p){return f==="postcss-import"&&Xe(p)}function n(f,p){return f==="autoprefixer"&&Xe(p)}function i(f,p){return f==="tailwindcss/nesting"&&(p==="postcss-nesting"||Xe(p))}let o=!1,a=!1,s=!1,l=Object.entries(e.plugins||{}),u=[];for(let f=0;f<l.length;f++){let[p,c]=l[f];if(t(p,c))o=!0,u.push(["@tailwindcss/postcss",c]);else if(n(p,c))a=!0;else if(r(p,c)){let d=!1;for(let m=f+1;m<l.length;m++){let[h,g]=l[m];if(t(h,g))break;if(!i(h,g)){d=!0;break}}d?u.push([p,c]):s=!0}else if(i(p,c)){let[d,m]=l[f+1];t(d,m)||u.push([p,c])}else u.push([p,c])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}var ea=[".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 ta(e){for(let t of ea){let r=Dt.resolve(e,t);try{return await Q.access(r),r}catch{}}return null}var ra=[".postcssrc",".postcssrc.json"];async function ia(e){for(let t of ra){let r=Dt.resolve(e,t);try{return await Q.access(r),r}catch{}}return null}async function na(e){let t=await Q.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function Xe(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as sa}from"globby";import ua from"node:path";import fa from"postcss";import{__unstable__loadDesignSystem as aa,compileAst as la}from"@tailwindcss/node";import*as ei from"node:fs";import*as ti from"node:fs/promises";import*as ae from"node:path";import*as ri from"node:util";import*as et from"postcss";import qp from"postcss";var oa=33;function Xr(e){function t(n,i){if(n.type==="decl")i.push($(n.prop,n.value,n.important));else if(n.type==="rule"){let o=L(n.selector);n.each(a=>t(a,o.nodes)),i.push(o)}else if(n.type==="atrule"){let o=A(`@${n.name}`,n.params);n.each(a=>t(a,o.nodes)),i.push(o)}else if(n.type==="comment"){if(n.text.charCodeAt(0)!==oa)return;i.push(Me(n.text))}}let r=[];return e.each(n=>t(n,r)),r}var q=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=ae.resolve(process.cwd(),t);let r=await ti.readFile(t,"utf-8"),n=et.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=ae.resolve(process.cwd(),t);let r=ei.readFileSync(t,"utf-8"),n=et.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=et.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=ae.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 _e(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of _e(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of _e(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 _e(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 a of o.layers)i||=a==="utilities"||a==="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:la(Xr(this.root),{base:ae.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:aa(this.root.toString(),{base:ae.dirname(this.file)})}[ri.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*_e(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*_e(n.item,t,i),yield{item:n.item,path:i}}}async function ii(e){let t=await sa(),r=[],n=new k(l=>{if(t(l))return null;try{let u=q.loadSync(l);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=fa([{postcssPlugin:"mark-import-nodes",AtRule:{import(l){let u=l.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let f=l.source?.input.file?ua.dirname(l.source.input.file):process.cwd(),p=!1;try{if(u[0]!==".")try{p=Ot(`./${u}`,f)}catch{}p||(p=Ot(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;R(`Failed to resolve import: ${w(u)} in ${w(P(l.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!p)return;let c=n.get(p);if(!c)return;l.raws.tailwind_destination_sheet_id=c.id;let d=l.source?.input.file?n.get(l.source.input.file):void 0,m=[];for(let h of y(l.params," "))h.startsWith("layer(")&&h.endsWith(")")&&m.push(h.slice(6,-1).trim());if(d){let h={layers:m};c.parents.add({item:d,meta:h}),d.children.add({item:c,meta:h})}}}}]);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 a(l){let u=[];for(let f of l){if(!f.item.file)continue;let p=f.item.file.replace(o,""),c=f.meta.layers.join(", ");c.length>0?u.push(`${p} (layers: ${c})`):u.push(p)}return u.join(" <- ")}let s=[];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 c=l.file.replace(o,"");for(let d of u)s.push(`- ${c} <- ${a(d)}`);for(let d of f)s.push(`- ${c} <- ${a(d)}`)}if(s.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 k(()=>new Set);for(let p of l)u.get(p).add(p);let f=!0;e:for(;f;){f=!1;for(let[p,c]of u)for(let[d,m]of u){if(p===d)continue;let h=[p].concat(Array.from(p.ancestors()).reverse()),g=[d].concat(Array.from(d.ancestors()).reverse());for(let v of h)for(let S of g){if(v!==S)continue;let B=v;u.delete(p),u.delete(d);for(let Z of c)u.get(B).add(Z);for(let Z of m)u.get(B).add(Z);f=!0;continue e}}}for(let[p,c]of u){p.isTailwindRoot=!0;for(let d of c)p!==d&&(d.isTailwindRoot=!1)}return}}{let l=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
|
|
190
|
+
`;throw l+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
191
|
+
`,new Error(l+s.join(`
|
|
192
|
+
`))}}import ni from"postcss";import{format as oi}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 It(e,t){e?.each?.(r=>{It(r,t),t(r)})}var ai={parser:"css",semi:!0,singleQuote:!0};function li(){async function e(t){let r=[];T(t,(i,o,a)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=a,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 oi(o,ai));continue}i.replaceWith(ni.parse(`${i.raws.before??""}${(await oi(o,ai)).trim()}`))}t.removeAll(),t.append(ni.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
193
193
|
|
|
194
|
-
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as
|
|
194
|
+
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as Ta}from"@tailwindcss/node";import se from"node:path";import Na from"postcss";import{__unstable__loadDesignSystem as di,compile as ka}from"@tailwindcss/node";import ba from"node:fs/promises";import le,{dirname as gi}from"node:path";import{fileURLToPath as xa}from"node:url";import pa from"semver";import{readFileSync as ca}from"node:fs";import dm from"node:fs/promises";function si(e,t){try{let r=Ur(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(ca(r,"utf8"));return n}catch{return null}}function E(e){return pa.satisfies(da(),`>=${e}.0.0 <${e+1}.0.0`)}var ma=new k(e=>{let t=si("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function da(e=process.cwd()){return ma.get(e)}import{Scanner as ga}from"@tailwindcss/oxide";async function ui(e,t="html"){let n=new ga({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:a}of n)i.push({rawCandidate:o,start:a,end:a+o.length});return i}function b(e,t){let r=[];for(let i of t.variants)r.unshift(fi(i));e.theme.prefix&&r.unshift(e.theme.prefix);let n="";if(t.kind==="static"&&(n+=t.root),t.kind==="functional"&&(n+=t.root,t.value))if(t.value.kind==="arbitrary"){if(t.value!==null){let i=Ut(t.value.value),o=i?t.value.value.slice(4,-1):t.value.value,[a,s]=i?["(",")"]:["[","]"];t.value.dataType?n+=`-${a}${t.value.dataType}:${ye(o)}${s}`:n+=`-${a}${ye(o)}${s}`}}else t.value.kind==="named"&&(n+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(n+=`[${t.property}:${ye(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let i=Ut(t.modifier.value),o=i?t.modifier.value.slice(4,-1):t.modifier.value,[a,s]=i?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?n+=`/${a}${ye(o)}${s}`:t.modifier.kind==="named"&&(n+=`/${t.modifier.value}`)}return t.important&&(n+="!"),r.push(n),r.join(":")}function fi(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${ye(ha(e.selector))}]`;let t="";if(e.kind==="functional"){t+=e.root;let r=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let n=Ut(e.value.value),i=n?e.value.value.slice(4,-1):e.value.value,[o,a]=n?["(",")"]:["[","]"];t+=`${r?"-":""}${o}${ye(i)}${a}`}else e.value.kind==="named"&&(t+=`${r?"-":""}${e.value.value}`)}return e.kind==="compound"&&(t+=e.root,t+="-",t+=fi(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${ye(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function ye(e){let t=C(e),r=new Set;return N(t,(n,{parent:i})=>{let o=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let a=o.indexOf(n)??-1;if(a===-1)return;let s=o[a-1];if(s?.kind!=="separator"||s.value!==" ")return;let l=o[a+1];if(l?.kind!=="separator"||l.value!==" ")return;r.add(s),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&&N(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),jt(t),x(t)}function ha(e){let t=C(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?x(t[2].nodes):e}function jt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Oe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Oe(t.value);for(let r=0;r<t.nodes.length;r++)jt([t.nodes[r]]);break}t.value=Oe(t.value),jt(t.nodes);break}case"separator":t.value=Oe(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=Oe(t.value));break}default:ya(t)}}function Ut(e){let t=C(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function ya(e){throw new Error(`Unexpected value: ${e}`)}function Oe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var ci=new WeakSet;function pi(e,t,r){if(!e.theme.prefix||!t||!E(3))return r;ci.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),ci.add(e));let n=va(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let a=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...I(a,e)];s.length>0&&(o=s[0])}finally{e.theme.prefix=i}return o?b(e,o):r}function va(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=y(r,":").pop(),o=r.length-i.length,a=o+i.length,s=!1,l=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!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),s&&(i+="!"),{base:i,start:o,end:a})}var wa=/([a-z]+)/;function mi(e){let t=wa.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 Ca=xa(import.meta.url),De=gi(Ca),hi=String.raw;async function yi(e,t){try{e===null?e=await Ft(t.base):le.isAbsolute(e)||(e=le.resolve(t.base,e));let r=le.relative(De,e);!r.startsWith(".")&&!le.isAbsolute(r)&&(r="./"+r);let n=await Aa(e),i=n.prefix?mi(n.prefix):null,o=hi`
|
|
195
195
|
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
196
196
|
@config '${r}';
|
|
197
|
-
`,[
|
|
197
|
+
`,[a,s]=await Promise.all([ka(o,{base:De,onDependency:()=>{}}),di(o,{base:De})]);return{designSystem:s,sources:a.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 Aa(e){let[t,r]=await Promise.all([di(hi`
|
|
198
198
|
@import 'tailwindcss';
|
|
199
|
-
`,{base:
|
|
200
|
-
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${
|
|
201
|
-
Update your stylesheet to use ${
|
|
202
|
-
`)break;t=
|
|
203
|
-
`)break;r+=l}let n=xi.some(a=>t.includes(a)),i=xi.some(a=>r.includes(a));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let a of Va)if(r.trim().startsWith(a)||t.trim().endsWith(a))return!1;for(let a of Pa)if(a.test(t))return!1;return!Ea.test(t)}function Ci(e,t,r,n){e:for(let i of U(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!et(n))continue e;return b(e,i)}return r}function Ai(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),a=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(a=!0,i.value.value=y(i.value.value,",").join(" ")),a?b(e,i):r}return r}import{__unstable__loadDesignSystem as Ra}from"@tailwindcss/node";import _a from"node:path";import Oa from"node:url";var Da=Oa.fileURLToPath(import.meta.url),Ia=_a.dirname(Da),Ua=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"]]),Si=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"]]),ja=new w(e=>Ra('@import "tailwindcss";',{base:e}));async function $i(e,t,r,n){let i=await ja.get(Ia);function*a(l){for(let s of e.parseCandidate(l)){let o=structuredClone(s);o.variants=[],o.important=!1;let u=b(e,o),f=Ua.get(u);if(!f)continue;let[c]=e.parseCandidate(f);if(!c)continue;let p=structuredClone(c);p.variants=s.variants,p.important=s.important,yield[s,p,Si.get(u),Si.get(f)]}}for(let[l,s,o,u]of a(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&&!et(n))){if(o&&u){let c=e.resolveThemeValue(o,!0),p=i.resolveThemeValue(o,!0),m=e.resolveThemeValue(u,!0),d=i.resolveThemeValue(u);if(m===void 0&&d!==void 0||c!==p||m!==d)continue}return b(e,s)}}return r}function Ti(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return b(e,{...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import Fa from"postcss-selector-parser";function le(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Ni(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),a=!1;for(let[l,s]of La(i)){if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="compound"&&l.root==="group"&&l.variant.kind==="arbitrary"&&l.variant.selector==="&"){l.modifier===null?(a=!0,le(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(a=!0,le(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${l.modifier.value}]`:`in-[.group\\/${l.modifier.value}]`)));continue}if(l.kind==="arbitrary"){if(l.relative)continue;let o=Fa().astSync(l.selector);if(o.nodes.length!==1)continue;if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="universal"){a=!0,le(l,e.parseVariant("*"));continue}if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="universal"){a=!0,le(l,e.parseVariant("**"));continue}if(s===null&&o.nodes[0].nodes.length===3&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="nesting"){o.nodes[0].nodes.pop(),o.nodes[0].nodes.pop(),a=!0,le(l,e.parseVariant(`in-[${o.toString()}]`));continue}let u=null;s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("*")),s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("**"));let f=o.nodes[0].filter(p=>p.type!=="nesting");if(f.length!==1)continue;let c=f[0];if(c.type==="pseudo"&&c.value===":is"){if(c.nodes.length!==1||c.nodes[0].nodes.length!==1)continue;c=c.nodes[0].nodes[0]}if(c.type==="pseudo"){let p=c,m=!1;if(c.value===":not"){if(m=!0,c.nodes.length!==1||c.nodes[0].type!=="selector"||c.nodes[0].nodes.length!==1||c.nodes[0].nodes[0].type!=="pseudo")continue;p=c.nodes[0].nodes[0]}let d=(g=>{if(g===":first-letter")return"first-letter";if(g===":first-line")return"first-line";if(g===":file-selector-button")return"file";if(g===":placeholder")return"placeholder";if(g===":backdrop")return"backdrop";if(g===":first-child")return"first";if(g===":last-child")return"last";if(g===":only-child")return"only";if(g===":first-of-type")return"first-of-type";if(g===":last-of-type")return"last-of-type";if(g===":only-of-type")return"only-of-type";if(g===":visited")return"visited";if(g===":target")return"target";if(g===":default")return"default";if(g===":checked")return"checked";if(g===":indeterminate")return"indeterminate";if(g===":placeholder-shown")return"placeholder-shown";if(g===":autofill")return"autofill";if(g===":optional")return"optional";if(g===":required")return"required";if(g===":valid")return"valid";if(g===":invalid")return"invalid";if(g===":in-range")return"in-range";if(g===":out-of-range")return"out-of-range";if(g===":read-only")return"read-only";if(g===":empty")return"empty";if(g===":focus-within")return"focus-within";if(g===":focus")return"focus";if(g===":focus-visible")return"focus-visible";if(g===":active")return"active";if(g===":enabled")return"enabled";if(g===":disabled")return"disabled";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="odd")return m?(m=!1,"even"):"odd";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="even")return m?(m=!1,"odd"):"even";for(let[k,A]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===k&&p.nodes.length===1)return p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&N(p.nodes[0].nodes[0].value)?`${A}-${p.nodes[0].nodes[0].value}`:`${A}-[${p.nodes[0].toString()}]`;return null})(p.value);if(d===null)continue;m&&(d=`not-${d}`);let h=e.parseVariant(d);if(h===null)continue;a=!0,le(l,h)}else if(c.type==="attribute"){let p=c.attribute,m=c.value?c.quoted?`${c.quoteMark}${c.value}${c.quoteMark}`:c.value:null;c.insensitive&&m&&(m+=" i");let d=c.operator??"=";p.startsWith("data-")?(a=!0,p=p.slice(5),le(l,{kind:"functional",root:"data",modifier:null,value:m===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${d}${m}`}})):p.startsWith("aria-")&&(a=!0,p=p.slice(5),le(l,{kind:"functional",root:"aria",modifier:null,value:m===null?{kind:"arbitrary",value:p}:d==="="&&c.value==="true"&&!c.insensitive?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${d}${m}`}}))}if(u){let p=i.variants.indexOf(l);if(p===-1)continue;i.variants.splice(p,1,l,u)}}}return a?b(e,i):r}return r}function*La(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)}var It={"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","outline-none":"outline-hidden"},Vi=new WeakSet;function Pi(e,t,r){if(!Vi.has(e)){for(let n in It)e.utilities.static(n,()=>[]);Vi.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(It,n.root))return b(e,{...n,root:It[n.root]});return r}function Ei(e,t,r){let n=Ut(e);for(let i of U(r,e)){let a=structuredClone(i),l=!1;if(a.kind==="arbitrary"){let[s,o]=n(a.value,a.modifier===null?1:0);s!==a.value&&(l=!0,a.value=s,o!==null&&(a.modifier=o))}else if(a.kind==="functional"&&a.value?.kind==="arbitrary"){let[s,o]=n(a.value.value,a.modifier===null?1:0);s!==a.value.value&&(l=!0,a.value.value=s,o!==null&&(a.modifier=o))}for(let s of Ma(a))if(s.kind==="arbitrary"){let[o]=n(s.selector,2);o!==s.selector&&(l=!0,s.selector=o)}else if(s.kind==="functional"&&s.value?.kind==="arbitrary"){let[o]=n(s.value.value,2);o!==s.value.value&&(l=!0,s.value.value=o)}return l?b(e,a):r}return r}function Ut(e,{prettyPrint:t=!1}={}){function r(l,s=0){let o=C(l);if(s&2)return[tt(o,a),null];let u=0,f=0;if(D(o,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,D(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[tt(o,i),null];if(f>1)return[tt(o,a),null];let c=null;return[tt(o,(m,d)=>{let h=y(m,"/").map(g=>g.trim());if(h.length>2)return null;if(o.length===1&&h.length===2&&s&1){let[g,k]=h;if(/^\d+%$/.test(k))c={kind:"named",value:k.slice(0,-1)};else if(/^0?\.\d+$/.test(k)){let A=Number(k)*100;c={kind:Number.isInteger(A)?"named":"arbitrary",value:A.toString()}}else c={kind:"arbitrary",value:k};m=g}return i(m,d)||a(m,d)}),c]}function n(l){let s=`--${H(X(l))}`;return e.theme.get([s])?s:null}function i(l,s){let o=n(l);if(o)return s?`var(${o}, ${s})`:`var(${o})`;let u=X(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return $e(f)?`--spacing(${f})`:null}return null}function a(l,s){let o=y(l,"/").map(c=>c.trim());l=o.shift();let u=n(l);if(!u)return null;let f=o.length>0?t?` / ${o.join(" / ")}`:`/${o.join("/")}`:"";return s?`--theme(${u}${f}, ${s})`:`--theme(${u}${f})`}return r}function tt(e,t){return D(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 a=r.nodes[0];if(a.kind!=="word")return;let l=a.value,s=1;for(let f=s;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)l+=x([r.nodes[f]]),s=f+1;l=za(l);let o=r.nodes.slice(s+1),u=o.length>0?t(l,x(o)):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(C(u))}}),x(e)}function za(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}function*Ma(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function Ri(e,t,r){for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],a=[],l=[],s=n.variants;for(let f of n.variants)Ka(e,f)?i.push(f):Ba(e,f)?l.push(f):a.push(f);let o=a.some(f=>Wa(e,f)),u=[...l,...o?a.reverse():a,...i];if(!qa(s,u))return b(e,{...n,variants:u})}return r}function Ka(e,t){return t.kind==="static"&&t.root==="dark"?!0:jt(e,t).every(n=>n.kind==="at-rule")}function Wa(e,t){return jt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Ba(e,t){return jt(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 jt(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 P(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function qa(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Ja=[bi,ui,Ci,ki,Pi,$i,Ti,Ei,Ri,vi,Ai,yi,Ni];async function Ft(e,t,r,n){for(let i of Ja)r=await i(e,t,r,n);return r}async function Di(e,t,r,n){let i=await ai(r,n),a=[];for(let{rawCandidate:l,start:s,end:o}of i){let u=await Ft(e,t,l,{contents:r,start:s,end:o});u!==l&&a.push({start:s,end:o,replacement:u})}return hi(r,a)}async function Ii(e,t,r){let n=Oi.isAbsolute(r)?r:Oi.resolve(process.cwd(),r),i=await _i.readFile(n,"utf-8");await _i.writeFile(n,await Di(e,t,i,Ha(r)))}function Ui({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),a=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";a&&i.pop();let l=i.map(s=>{if(s.trim()==="")return s;let o=y(s,":"),u=o.pop();return a&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...o,u].join(":")});return async()=>{l=await Promise.all(l.map(async s=>await Ft(e,t,s))),n.params=l.join("").trim()}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",a=>{i.push(r(a))}),await Promise.allSettled(i.map(a=>a()))}}}import"postcss";import rt from"postcss-selector-parser";function Fi(e){function t(r){if(r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();T(r,l=>{if(l.type!=="rule")return;let s=y(l.selector,",");if(s.length>1){let o=[];for(let u of s){let f=l.clone({selector:u});o.push(f)}l.replaceWith(o)}return 1});let i=new Set;T(r,l=>{if(l.type==="rule")return rt(s=>{s.each(o=>{T(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),T(n,l=>{l.type==="rule"&&rt(s=>{s.each(o=>{T(o,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 a=[n];for(let l of i){let s=r.clone();a.push(s),T(s,o=>{if(o.type==="atrule"&&(!o.nodes||o.nodes?.length===0)&&o.remove(),o.type!=="rule")return;let u=!1;if(rt(f=>{f.each(c=>{T(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,h=(m.parent?.index(m)??0)-1;for(;h>=0&&d.at(h)?.type!=="combinator";){let g=d.at(h+1),k=d.at(h);d.at(h+1).replaceWith(k),d.at(h).replaceWith(g),h--}m.replaceWith(rt.nesting())}})})}).processSync(o,{updateSelector:!0}),!u){let f=[o],c=o.parent?.index(o)??null;if(c!==null)for(let p=c-1;p>=0&&o.parent?.nodes.at(p)?.type!=="rule";p--)o.parent?.nodes.at(p)?.type==="comment"&&f.push(o.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),s.name="utility",s.params=l,s.raws.before=`${s.raws.before??""}
|
|
199
|
+
`,{base:De}),We(e,De,()=>{}).then(n=>n.module)]);return ce(t,[{base:gi(e),config:r,reference:!1}]).resolvedConfig}var Sa=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Ft(e,t=e){for(let r of $a(e,t))for(let n of Sa){let i=le.resolve(r,n);try{return await ba.access(i),i}catch{}}throw new Error(`No configuration file found for ${w(P(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${w("--config")} option.`)}function*$a(e,t=e){let r=le.resolve(e),n=le.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=le.dirname(i);while(i!==n);yield n}async function vi(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.
|
|
200
|
+
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${w("@tailwind")}.`);let i=n.filter(u=>{let f=!1;return u.root.walkAtRules("config",p=>{let c=se.resolve(se.dirname(u.file),p.params.slice(1,-1));return u.linkedConfigPath=c,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,a=new k(()=>new Set);for(let u of i){if(!u.file)continue;let f=t;t===null?f=await Ft(se.dirname(u.file),r):se.isAbsolute(f)||(f=se.resolve(r,f)),o.set(u,f),a.get(f).add(u)}let s=new Set;for(let u of a.values())if(u.size>1)for(let f of u)s.add(f);if(s.size>1){for(let u of s)R(`Could not determine configuration file for: ${w(P(u.file,r))}
|
|
201
|
+
Update your stylesheet to use ${w("@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 ${w(l(f,r))} to ${w(l(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let p=se.relative(se.dirname(u.file),f);!p.startsWith(".")&&!se.isAbsolute(p)&&(p="./"+p),p=Ta(p);{let c=u.root,d=Na.atRule({name:"config",params:`'${p}'`});u.root.walkAtRules(m=>{(m.name==="tailwind"||m.name==="import")&&(c=m)}),c.type==="root"?u.root.prepend(d):c.type==="atrule"&&c.after(d)}}catch(p){R("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import pl from"postcss";import Ii from"node:fs/promises";import ji,{extname as Qa}from"node:path";function wi(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}function ki(e,t,r){for(let n of I(r,e)){let i=structuredClone(n),o=!1;if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.value==="subgrid"&&(i.root==="grid-cols"||i.root=="grid-rows")&&(o=!0,i.value={kind:"named",value:"subgrid",fraction:null}),i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null&&(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch")){if(i.value.value.endsWith("%")&&V(i.value.value.slice(0,-1))){let a=parseInt(i.value.value);(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch"&&a>=50&&a<=200)&&(o=!0,i.value={kind:"named",value:i.value.value,fraction:null})}}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null){if(i.root==="leading")if(i.value.value==="1")o=!0,i.value={kind:"named",value:"none",fraction:null};else continue;let a=y(i.value.value,"/");if(a.every(s=>V(s))){o=!0;let s=i.value,l=i.modifier;a.length===1?i.value={kind:"named",value:i.value.value,fraction:null}:(i.value={kind:"named",value:a[0],fraction:i.value.value},i.modifier={kind:"named",value:a[1]}),e.compileAstNodes(i).length===0&&(i.value=s,i.modifier=l,o=!1)}}for(let a of Va(i))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))o=!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,l]=y(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;o=!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)&&(o=!0,a.value={kind:"named",value:a.value.value});return o?b(e,i):r}return r}function*Va(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function bi(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!rt(e,i,i.modifier.value)){let{value:a,didChange:s}=tt(i.modifier.value);i.modifier.value=a,o||=s}for(let a of i.variants)xi(e,a)&&(o=!0);if(i.kind==="arbitrary"&&!rt(e,i,i.value)){let{value:a,didChange:s}=tt(i.value);i.value=a,o||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!rt(e,i,i.value.value)){let{value:a,didChange:s}=tt(i.value.value);i.value.value=a,o||=s}if(o)return b(e,i)}return r}function tt(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 xi(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!rt(e,Pa(t),t.value.value)){let{value:n,didChange:i}=tt(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&xi(e,t.variant)&&(r=!0),r}function Pa(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Ra=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 rt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return _(n,o=>{if(o.kind==="declaration"&&Ra.has(o.property)&&o.value==r)return i=!0,2}),i}var Ea=["t","tr","r","br","b","bl","l","tl"];function Ci(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(!Ea.includes(i))continue;return b(e,{...n,root:`bg-linear-to-${i}`})}return r}function Ai(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Si=['"',"'","`"],_a=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Oa=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],Da=/placeholder=\{?['"]$/;function it(e){let t="";for(let o=e.start-1;o>=0;o--){let a=e.contents.at(o);if(a===`
|
|
202
|
+
`)break;t=a+t}let r="";for(let o=e.end;o<e.contents.length;o++){let a=e.contents.at(o);if(a===`
|
|
203
|
+
`)break;r+=a}let n=Si.some(o=>t.includes(o)),i=Si.some(o=>r.includes(o));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let o of _a)if(r.trim().startsWith(o)||t.trim().endsWith(o))return!1;for(let o of Oa)if(o.test(t))return!1;return!Da.test(t)}function $i(e,t,r,n){e:for(let i of I(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!it(n))continue e;return b(e,i)}return r}function Ti(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=y(i.value.value,",").join(" ")),o?b(e,i):r}return r}import{__unstable__loadDesignSystem as Ia}from"@tailwindcss/node";import ja from"node:path";import Ua from"node:url";var Fa=Ua.fileURLToPath(import.meta.url),Ma=ja.dirname(Fa),La=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"]]),Ni=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"]]),za=new k(e=>Ia('@import "tailwindcss";',{base:e}));async function Vi(e,t,r,n){if(!E(3))return r;let i=await za.get(Ma);function*o(a){for(let s of e.parseCandidate(a)){let l=structuredClone(s);l.variants=[],l.important=!1;let u=b(e,l),f=La.get(u);if(!f)continue;let[p]=e.parseCandidate(f);if(!p)continue;let c=structuredClone(p);c.variants=s.variants,c.important=s.important,yield[s,c,Ni.get(u),Ni.get(f)]}}for(let[a,s,l,u]of o(r)){let f=a.variants.length>0||a.kind==="arbitrary"?!1:a.kind==="static"?!a.root.includes("-"):a.kind==="functional"?a.value===null||!a.root.includes("-"):!1;if(!(n&&f&&!it(n))){if(l&&u){let p=e.resolveThemeValue(l,!0),c=i.resolveThemeValue(l,!0),d=e.resolveThemeValue(u,!0),m=i.resolveThemeValue(u);if(d===void 0&&m!==void 0||p!==c||d!==m)continue}return b(e,s)}}return r}function Pi(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return b(e,{...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import Ka from"postcss-selector-parser";function H(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Ri(e,t,r){for(let n of I(r,e)){let i=structuredClone(n),o=!1;for(let[a,s]of Wa(i)){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?(o=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(o=!0,H(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let l=Ka().astSync(a.selector);if(l.nodes.length!==1)continue;if(s===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="universal"){o=!0,H(a,e.parseVariant("*"));continue}if(s===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="universal"){o=!0,H(a,e.parseVariant("**"));continue}if(s===null&&l.nodes[0].nodes.length===3&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="nesting"){l.nodes[0].nodes.pop(),l.nodes[0].nodes.pop(),o=!0,H(a,e.parseVariant(`in-[${l.toString()}]`));continue}if(s===null&&l.nodes[0].nodes[0].type==="tag"&&l.nodes[0].nodes[0].value.startsWith("@media")){let c=C(l.nodes[0].toString().trim().replace("@media",""));N(c,(m,{replaceWith:h})=>{m.kind==="separator"&&!m.value.trim()?h([]):m.value=m.value.trim()});let d=!1;if(c[0]?.kind==="word"&&c[0].value==="not"&&(d=!0,c.shift()),c.length===1&&c[0].kind==="word"){let m=c[0].value,h=null;m==="print"&&(h="print"),h&&(o=!0,H(a,e.parseVariant(`${d?"not-":""}${h}`)))}if(c.length===1&&c[0].kind==="function"&&c[0].nodes.length===3&&c[0].nodes[0].kind==="word"&&c[0].nodes[1].kind==="separator"&&c[0].nodes[1].value===":"&&c[0].nodes[2].kind==="word"){let m=c[0].nodes[0].value,h=c[0].nodes[2].value,g=null;m==="prefers-reduced-motion"&&h==="no-preference"&&(g="motion-safe"),m==="prefers-reduced-motion"&&h==="reduce"&&(g="motion-reduce"),m==="prefers-contrast"&&h==="more"&&(g="contrast-more"),m==="prefers-contrast"&&h==="less"&&(g="contrast-less"),m==="orientation"&&h==="portrait"&&(g="portrait"),m==="orientation"&&h==="landscape"&&(g="landscape"),m==="forced-colors"&&h==="active"&&(g="forced-colors"),m==="inverted-colors"&&h==="inverted"&&(g="inverted-colors"),m==="pointer"&&h==="none"&&(g="pointer-none"),m==="pointer"&&h==="coarse"&&(g="pointer-coarse"),m==="pointer"&&h==="fine"&&(g="pointer-fine"),m==="any-pointer"&&h==="none"&&(g="any-pointer-none"),m==="any-pointer"&&h==="coarse"&&(g="any-pointer-coarse"),m==="any-pointer"&&h==="fine"&&(g="any-pointer-fine"),m==="scripting"&&h==="none"&&(g="noscript"),g&&(o=!0,H(a,e.parseVariant(`${d?"not-":""}${g}`)))}continue}let u=null;s===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===">"&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],u=e.parseVariant("*")),s===null&&l.nodes[0].length===3&&l.nodes[0].nodes[0].type==="nesting"&&l.nodes[0].nodes[0].value==="&"&&l.nodes[0].nodes[1].type==="combinator"&&l.nodes[0].nodes[1].value===" "&&l.nodes[0].nodes[2].type==="attribute"&&(l.nodes[0].nodes=[l.nodes[0].nodes[2]],u=e.parseVariant("**"));let f=l.nodes[0].filter(c=>c.type!=="nesting");if(f.length!==1)continue;let p=f[0];if(p.type==="pseudo"&&p.value===":is"){if(p.nodes.length!==1||p.nodes[0].nodes.length!==1)continue;p=p.nodes[0].nodes[0]}if(p.type==="pseudo"){let c=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;c=p.nodes[0].nodes[0]}let m=(g=>{if(g===":first-letter")return"first-letter";if(g===":first-line")return"first-line";if(g===":file-selector-button")return"file";if(g===":placeholder")return"placeholder";if(g===":backdrop")return"backdrop";if(g===":first-child")return"first";if(g===":last-child")return"last";if(g===":only-child")return"only";if(g===":first-of-type")return"first-of-type";if(g===":last-of-type")return"last-of-type";if(g===":only-of-type")return"only-of-type";if(g===":visited")return"visited";if(g===":target")return"target";if(g===":default")return"default";if(g===":checked")return"checked";if(g===":indeterminate")return"indeterminate";if(g===":placeholder-shown")return"placeholder-shown";if(g===":autofill")return"autofill";if(g===":optional")return"optional";if(g===":required")return"required";if(g===":valid")return"valid";if(g===":invalid")return"invalid";if(g===":user-valid")return"user-valid";if(g===":user-invalid")return"user-invalid";if(g===":in-range")return"in-range";if(g===":out-of-range")return"out-of-range";if(g===":read-only")return"read-only";if(g===":empty")return"empty";if(g===":focus-within")return"focus-within";if(g===":focus")return"focus";if(g===":focus-visible")return"focus-visible";if(g===":active")return"active";if(g===":enabled")return"enabled";if(g===":disabled")return"disabled";if(g===":nth-child"&&c.nodes.length===1&&c.nodes[0].nodes.length===1&&c.nodes[0].nodes[0].type==="tag"&&c.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(g===":nth-child"&&c.nodes.length===1&&c.nodes[0].nodes.length===1&&c.nodes[0].nodes[0].type==="tag"&&c.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[v,S]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===v&&c.nodes.length===1)return c.nodes[0].nodes.length===1&&c.nodes[0].nodes[0].type==="tag"&&V(c.nodes[0].nodes[0].value)?`${S}-${c.nodes[0].nodes[0].value}`:`${S}-[${c.nodes[0].toString()}]`;return null})(c.value);if(m===null)continue;d&&(m=`not-${m}`);let h=e.parseVariant(m);if(h===null)continue;o=!0,H(a,h)}else if(p.type==="attribute"){let c=p.attribute,d=p.value?p.quoted?`${p.quoteMark}${p.value}${p.quoteMark}`:p.value:null;p.insensitive&&d&&(d+=" i");let m=p.operator??"=";c.startsWith("data-")?(o=!0,c=c.slice(5),H(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:c}:{kind:"arbitrary",value:`${c}${m}${d}`}})):c.startsWith("aria-")&&(o=!0,c=c.slice(5),H(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:c}:m==="="&&p.value==="true"&&!p.insensitive?{kind:"named",value:c}:{kind:"arbitrary",value:`${c}${m}${d}`}}))}if(u){let c=i.variants.indexOf(a);if(c===-1)continue;i.variants.splice(c,1,a,u)}}}return o?b(e,i):r}return r}function*Wa(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)}var nt={"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"},Ei=new WeakSet;function _i(e,t,r){if(E(3)&&(nt["outline-none"]="outline-hidden"),!Ei.has(e)){for(let n in nt)e.utilities.static(n,()=>[]);Ei.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(nt,n.root))return b(e,{...n,root:nt[n.root]});return r}function Oi(e,t,r){let n=Mt(e);for(let i of I(r,e)){let o=structuredClone(i),a=!1;if(o.kind==="arbitrary"){let[s,l]=n(o.value,o.modifier===null?1:0);s!==o.value&&(a=!0,o.value=s,l!==null&&(o.modifier=l))}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[s,l]=n(o.value.value,o.modifier===null?1:0);s!==o.value.value&&(a=!0,o.value.value=s,l!==null&&(o.modifier=l))}for(let s of qa(o))if(s.kind==="arbitrary"){let[l]=n(s.selector,2);l!==s.selector&&(a=!0,s.selector=l)}else if(s.kind==="functional"&&s.value?.kind==="arbitrary"){let[l]=n(s.value.value,2);l!==s.value.value&&(a=!0,s.value.value=l)}return a?b(e,o):r}return r}function Mt(e,{prettyPrint:t=!1}={}){function r(a,s=0){let l=C(a);if(s&2)return[ot(l,o),null];let u=0,f=0;if(N(l,d=>{d.kind==="function"&&d.value==="theme"&&(u+=1,N(d.nodes,m=>m.kind==="separator"&&m.value.includes(",")?2:m.kind==="separator"&&m.value.trim()==="/"?(f+=1,2):1))}),u===0)return[a,null];if(f===0)return[ot(l,i),null];if(f>1)return[ot(l,o),null];let p=null;return[ot(l,(d,m)=>{let h=y(d,"/").map(g=>g.trim());if(h.length>2)return null;if(l.length===1&&h.length===2&&s&1){let[g,v]=h;if(/^\d+%$/.test(v))p={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let S=Number(v)*100;p={kind:Number.isInteger(S)?"named":"arbitrary",value:S.toString()}}else p={kind:"arbitrary",value:v};d=g}return i(d,m)||o(d,m)}),p]}function n(a){let s=`--${G(te(a))}`;return e.theme.get([s])?s:null}function i(a,s){let l=n(a);if(l)return s?`var(${l}, ${s})`:`var(${l})`;let u=te(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return Ve(f)?`--spacing(${f})`:null}return null}function o(a,s){let l=y(a,"/").map(p=>p.trim());a=l.shift();let u=n(a);if(!u)return null;let f=l.length>0?t?` / ${l.join(" / ")}`:`/${l.join("/")}`:"";return s?`--theme(${u}${f}, ${s})`:`--theme(${u}${f})`}return r}function ot(e,t){return N(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 a=o.value,s=1;for(let f=s;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)a+=x([r.nodes[f]]),s=f+1;a=Ba(a);let l=r.nodes.slice(s+1),u=l.length>0?t(a,x(l)):t(a);if(u===null)return;if(n){let f=n.nodes.indexOf(r)-1;for(;f!==-1;){let p=n.nodes[f];if(p.kind==="separator"&&p.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(u=`(${u})`);break}}i(C(u))}}),x(e)}function Ba(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*qa(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function Di(e,t,r){if(!E(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],a=[],s=n.variants;for(let f of n.variants)Ha(e,f)?i.push(f):Ga(e,f)?a.push(f):o.push(f);let l=o.some(f=>Ja(e,f)),u=[...a,...l?o.reverse():o,...i];if(!Ya(s,u))return b(e,{...n,variants:u})}return r}function Ha(e,t){return t.kind==="static"&&t.root==="dark"?!0:Lt(e,t).every(n=>n.kind==="at-rule")}function Ja(e,t){return Lt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Ga(e,t){return Lt(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 Lt(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 _(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function Ya(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Za=[Ai,pi,$i,Ci,_i,Vi,Pi,Oi,Di,bi,Ti,ki,Ri];async function zt(e,t,r,n){let i=r;for(let o of Za)r=await o(e,t,r,n);if(r===i)for(let o of I(r,e))return b(e,o);return r}async function Ui(e,t,r,n){let i=await ui(r,n),o=[];for(let{rawCandidate:a,start:s,end:l}of i){let u=await zt(e,t,a,{contents:r,start:s,end:l});u!==a&&o.push({start:s,end:l,replacement:u})}return wi(r,o)}async function Fi(e,t,r){let n=ji.isAbsolute(r)?r:ji.resolve(process.cwd(),r),i=await Ii.readFile(n,"utf-8");await Ii.writeFile(n,await Ui(e,t,i,Qa(r)))}function Mi({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 a=i.map(s=>{if(s.trim()==="")return s;let l=y(s,":"),u=l.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...l,u].join(":")});return async()=>{e&&(a=await Promise.all(a.map(async s=>await zt(e,t,s))),n.params=a.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import at from"postcss-selector-parser";function zi(e){function t(r){if(!E(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();T(r,a=>{if(a.type!=="rule")return;let s=y(a.selector,",");if(s.length>1){let l=[];for(let u of s){let f=a.clone({selector:u});l.push(f)}a.replaceWith(l)}return 1});let i=new Set;T(r,a=>{if(a.type==="rule")return at(s=>{s.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(a.selector,{updateSelector:!1}),1}),T(n,a=>{a.type==="rule"&&at(s=>{s.each(l=>{T(l,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return a.remove(),2})})}).processSync(a,{updateSelector:!0})});let o=[n];for(let a of i){let s=r.clone();o.push(s),T(s,l=>{if(l.type==="atrule"&&(!l.nodes||l.nodes?.length===0)&&l.remove(),l.type!=="rule")return;let u=!1;if(at(f=>{f.each(p=>{T(p,c=>{if(c.type==="pseudo"&&c.value===":not")return 1;if(c.type==="class"&&c.value===a){u=!0;let d=p.atPosition(c.source.start.line,c.source.start.column),m=d.parent,h=(d.parent?.index(d)??0)-1;for(;h>=0&&m.at(h)?.type!=="combinator";){let g=m.at(h+1),v=m.at(h);m.at(h+1).replaceWith(v),m.at(h).replaceWith(g),h--}d.replaceWith(at.nesting())}})})}).processSync(l,{updateSelector:!0}),!u){let f=[l],p=l.parent?.index(l)??null;if(p!==null)for(let c=p-1;c>=0&&l.parent?.nodes.at(c)?.type!=="rule";c--)l.parent?.nodes.at(c)?.type==="comment"&&f.push(l.parent?.nodes.at(c));for(let c of f)c.remove()}return 1}),s.name="utility",s.params=a,s.raws.before=`${s.raws.before??""}
|
|
204
204
|
|
|
205
|
-
`}for(let
|
|
205
|
+
`}for(let a=o.length-1;a>=0;a--){let s=o[a];It(s,l=>{if(s===n&&l.type==="comment"){let u=!1;for(let f of o)if(f!==n&&(T(f,p=>{if(p.type==="comment"&&p.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)}}),s.nodes?.length===0&&o.splice(a,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 a=n({name:"layer",params:"utilities"});a.append(r.nodes),r.append(a)}r.walkAtRules("layer",t);{let a=new Map;T(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let l=a.get(s.params);l?(l.append(s.nodes),s.remove()):a.set(s.params,s)}})}o&&r.each(a=>{a.type==="atrule"&&a.name==="layer"&&a.params==="utilities"&&a.replaceWith(a.nodes??[])})}}}import lt from"node:path";import Xa,{AtRule as el}from"postcss";var Ki=new WeakMap;function qi(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=Ki.get(e);if(i&&i.includes(t))return;i?i.push(t):Ki.set(e,[t]);let o=e.root;if(!e.file)return;let a=new el;if(r!==null){o.walkAtRules("config",l=>{l.remove()});let s=`
|
|
206
206
|
|
|
207
207
|
`;s+=`
|
|
208
|
-
@tw-bucket source {`;for(let
|
|
208
|
+
@tw-bucket source {`;for(let l of r.sources){let u=lt.resolve(l.base,l.pattern);s+=`@source '${Wi(e,u)}';
|
|
209
209
|
`}s+=`}
|
|
210
210
|
`,s+=`
|
|
211
211
|
@tw-bucket plugin {
|
|
212
|
-
`;for(let
|
|
212
|
+
`;for(let l of r.plugins){let u=l.path[0]==="."?Wi(e,lt.resolve(l.base,l.path)):l.path;if(l.options===null)s+=`@plugin '${u}';
|
|
213
213
|
`;else{s+=`@plugin '${u}' {
|
|
214
|
-
`;for(let[f,
|
|
214
|
+
`;for(let[f,p]of Object.entries(l.options)){let c="";typeof p=="string"?c=Bi(p):Array.isArray(p)?c=p.map(d=>typeof d=="string"?Bi(d):""+d).join(", "):c=""+p,s+=` ${f}: ${c};
|
|
215
215
|
`}s+=`}
|
|
216
216
|
`}}s+=`}
|
|
217
|
-
`,
|
|
217
|
+
`,a.append(Xa.parse(s+r.css))}o.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Wi(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=lt.relative(lt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Tt(n)}function Bi(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import tl from"node:fs/promises";import{dirname as rl,resolve as il}from"node:path";import"postcss";function Hi(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...a]=y(i.params," "),s=gr(C(o));if(!s)return;let l=s.uri[0]===".",u=s.uri.endsWith(".css");if(l&&u)return;let f=il(rl(r),s.uri);u||(f+=".css"),n.push(tl.stat(f).then(()=>{let p=u?"":".css",c=l?s.uri:`./${s.uri}`;i.params=[`'${c}${p}'`,...a].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Ji({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=ce(e,[{base:"",config:t,reference:!1}]),o=i?.theme?.screens||{},a=new k(s=>{let l=e?.resolveThemeValue(`--breakpoint-${s}`,!0)??o?.[s];return typeof l=="string"?`(width >= theme(--breakpoint-${s}))`:l?Sr(l):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let l=s.params.match(/screen\(([^)]+)\)/);if(!l)return;let u=a.get(l[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as nl}from"postcss";function Gi(){function e(t){let r="",n=[],i=[],o=null;t.each(a=>{if(a.type==="atrule"){if(a.name==="config"||a.name==="source"||a.name==="theme"||a.name==="utility"||a.name==="custom-variant"||a.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="tailwind"&&a.params==="base"||a.name==="import"&&a.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(a.name==="tailwind"&&a.params==="components"||a.name==="import"&&a.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(a.name==="tailwind"&&a.params==="utilities"||a.name==="import"&&a.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(a.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[a]]);return}}r===""&&(a.type==="comment"||a.type==="atrule"&&!a.nodes||a.type==="atrule"&&a.name==="charset")||n.push(a)});for(let[a,s]of i){let l=a||o||"";if(l===""||s.every(p=>p.type==="comment"))continue;if(s.every(p=>p.type==="atrule"&&p.name==="import")){for(let p of s)if(!(p.type!=="atrule"||p.name!=="import")&&!p.params.includes("layer(")){let c=y(p.params," ");c.splice(1,0,`layer(${l})`),p.params=c.join(" "),p.raws.tailwind_injected_layer=!0}continue}let u=s[0],f=new nl({name:"layer",params:l,nodes:s.map(p=>p===u?p:p.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import ol from"dedent";import al from"postcss";var ll="currentcolor",sl=ol,ul=sl`
|
|
218
218
|
/*
|
|
219
219
|
The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
|
|
220
220
|
so we've added these compatibility styles to make sure everything still
|
|
@@ -232,10 +232,10 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
232
232
|
border-color: theme(borderColor.DEFAULT);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
`;function
|
|
235
|
+
`;function Yi({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let a=`--${G(te(o))}`;return!!e.theme.get([a])}function i(o){if(!E(3))return;let a=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return a=!0,!1}),!a)return;let s="";r!==ll&&(s+=ul,s+=`
|
|
236
236
|
|
|
237
237
|
`),s=`
|
|
238
238
|
@tw-bucket compatibility {
|
|
239
239
|
${s}
|
|
240
240
|
}
|
|
241
|
-
`;let o=rl.parse(s);o.walkDecls(u=>{u.value.includes("theme(")&&(u.value=al(C(u.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),a.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),a.append(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function al(e,t){return D(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 a=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)a+=x([r.nodes[u]]),l=u+1;a=ll(a);let s=r.nodes.slice(l+1),o=s.length>0?t(a,x(s)):t(a);if(o===null)return;n(C(o))}}),x(e)}function ll(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],a=e[n+1];i==="\\"&&(a===r||a==="\\")?(t+=a,n++):t+=i}return t}import{AtRule as nt}from"postcss";var Lt=["theme","base","components","utilities"];function Ji(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,a=null,l=[],s=null,o=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),a=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&&a!==null?(s||ot(l).before(new nt({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),a?.remove()):a!==null?(o||ot(l).before(new nt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),a?.remove()):i!==null&&(f||ot(l).before(new nt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||ot(l).before(new nt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>Lt.indexOf(m)-Lt.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=Lt.toSorted((d,h)=>c.indexOf(d)-c.indexOf(h));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function ot(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 Gi({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Ut(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 Yi(){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 Qi(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await ul(e,t)}async function ul(e,t,r){return typeof e=="string"&&(e=await B.fromString(e),e.file=r??null),sl().use(Wi()).use(Ui(t)).use(Bi(t)).use(Yi()).use(Fi(e)).use(qi()).use(Ji(t)).use(Ki(e,t)).use(Hi(t)).use(Gi(t)).process(e.root,{from:e.file??void 0})}import fl from"postcss";var Zi=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function en(){async function e(t){{let s=function(o,...u){l=o,a.get(o).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],a=new w(o=>{let u=fl.atRule({name:"tw-bucket",params:o,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",o=>{a.set(o.params,o)});let l="user";T(t,o=>{if(o.type==="atrule"&&o.name==="tw-bucket")return 1;if(o.type==="comment"){if(i.length>0){i.push(o);return}let u=Xi(o.prev(),o)??1/0,f=Xi(o,o.next())??1/0;u<f?a.get(l).nodes?.push(o):i.push(o)}else o.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(o.name)?s(o.name,o):o.type==="atrule"&&o.name==="layer"&&!o.nodes||o.type==="atrule"&&o.name==="import"||o.type==="atrule"&&o.name==="charset"||o.type==="atrule"&&o.name==="tailwind"?s("import",o):(o.type==="rule"||o.type,s("user",o));return 1}),i.length>0&&s(l)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let a=r.get(i.params);if(!a){r.set(i.params,i);return}i.nodes&&a.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((a,l)=>{let s=Zi.indexOf(a.params),o=Zi.indexOf(l.params);return s-o});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Xi(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 cl from"postcss";async function tn(e){let t=new Map,r=new Map;for(let s of e)t.set(s.id,s),s.file&&r.set(s.file,s);let n=new Set;for(let s of e){if(s.isTailwindRoot)continue;let o=!1,u=s.layers().size>0;T(s.root,f=>{if(f.type==="atrule"&&f.name==="utility")o=!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 o&&u?2:1}),o&&u&&n.add(s)}let i=new Map;for(let s of e){if(!s.file||s.parents.size===0||!n.has(s)&&!Array.from(s.descendants()).some(p=>n.has(p)))continue;let o=cl.root();T(s.root,p=>{if(p.type==="atrule"&&p.name==="utility")return o.append(p),1});let u=s.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=s.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await B.fromRoot(o,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(s,c),t.set(c.id,c)}for(let[s,o]of i){for(let u of s.parents){let f=i.get(u.item);f&&o.parents.add({item:f,meta:u.meta})}for(let u of s.children){let f=i.get(u.item);f&&o.children.add({item:f,meta:u.meta})}}for(let s of e){let o=i.get(s),u=new Set;for(let f of s.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 h=d[1],g=d[2],k=g.replace(/\.css$/,m.extension),A=f.clone({params:`${h}${k}${h}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:m.id}});o?u.add(A):f.after(A)}o&&u.size>0&&o.root.prepend(Array.from(u))}let a=new w(()=>new Set);for(let s of t.values())for(let o of s.importRules){let u=o.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&a.get(f).add(o)}let l=[];for(let s of e.slice()){for(let o of s.descendants())l.push(o);l.push(s)}for(let s of l){let o=i.get(s);if(o&&s.isEmpty){s.root=o.root;for(let u of a.get(o))u.params=u.raws.tailwind_original_params;for(let u of a.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import se from"picocolors";function rn({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(F(He()),e&&(F(),F(`${se.dim("Invalid command:")} ${e}`)),t&&t.length>0){F(),F(se.dim("Usage:"));for(let[i,a]of t.entries()){let l=a.slice(0,a.indexOf("[")),s=a.slice(a.indexOf("["));s=s.replace(/\[.*?\]/g,f=>se.dim(f));let u=Ne(s,n-qe.indent-l.length-1);u.length>1&&i!==0&&F(),F(Ve(`${l}${u.shift()}`));for(let f of u)F(Ve(f,l.length))}}if(r){let i=0;for(let{alias:o}of Object.values(r))o&&(i=Math.max(i,o.length));let a=[],l=0;for(let[o,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(i)}`,u?o:" ".repeat(i+2)+o].filter(Boolean).join(", ");a.push(f),l=Math.max(l,f.length)}F(),F(se.dim("Options:"));let s=8;for(let{description:o,default:u=null}of Object.values(r)){let f=a.shift(),c=s+(l-f.length),p=2,m=n-f.length-c-p-qe.indent,d=Ne(u!==null?`${o} ${se.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,m);F(Ve(`${se.blue(f)} ${se.dim(se.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let h of d)F(Ve(`${" ".repeat(f.length+c+p)}${h}`))}}}import pl from"mri";function on(e,t=process.argv.slice(2)){let r=pl(t),n={_:r._};for(let[i,{type:a,alias:l,default:s=a==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,l){let o=l.slice(1);r[o]!==void 0&&(n[i]=nn(r[o],a))}{let o=i.slice(2);r[o]!==void 0&&(n[i]=nn(r[o],a))}}return n}function nn(e,t){switch(t){case"string":return st(e);case"boolean":return at(e);case"number":return lt(e);case"boolean | string":return at(e)??st(e);case"number | string":return lt(e)??st(e);case"boolean | number":return at(e)??lt(e);case"boolean | number | string":return at(e)??lt(e)??st(e);default:throw new Error(`Unhandled type: ${t}`)}}function at(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function lt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function st(e){return`${e}`}import{execSync as ml}from"node:child_process";function zt(){try{return ml("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}import{normalizePath as dl}from"@tailwindcss/node";import gl from"braces";import Mt from"node:path";function an(e){return gl(e.pattern,{expand:!0}).map(t=>{let r={...e},[n,i]=hl(t),a=dl(e.base);n!==null?r.base=Mt.posix.join(a,n):r.base=a,i===null?r.pattern="**/*":r.pattern=i;let l=Mt.basename(r.base);return l.includes(".")&&(r.pattern=l,r.base=Mt.dirname(r.base)),r})}function hl(e){if(!e.includes("*"))return[e,null];let t=null;for(let i=0;i<e.length;i++){let a=e[i];if(a==="/"&&(t=i),a==="*"||a==="!")break}if(t===null)return[null,e];let r=e.slice(0,t).trim(),n=e.slice(t+1).trim();return[r||null,n||null]}import yl from"node:fs/promises";async function ln(e,t){try{let r=Ir(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(await yl.readFile(r,"utf8"));return n}catch{return null}}var fn={"--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"}},ut=on(fn);ut["--help"]&&(rn({usage:["npx @tailwindcss/upgrade"],options:fn}),process.exit(0));async function kl(){let e=process.cwd();ie(He()),ie();let t=[];ut["--force"]||zt()&&($("Git directory is not clean. Please stash or commit your changes before migrating."),j(`You may use the ${v("--force")} flag to silence this warning and perform the migration.`),process.exit(1));let r=await ln("tailwindcss",e);r&&Number(r.split(".")[0])!==3&&($(`Tailwind CSS v${r} found. The migration tool can only be run on v3 projects.`),process.exit(1));{let n=ut._.map(o=>vl.resolve(e,o));n.length===0&&(j("Searching for CSS files in the current directory and its subdirectories\u2026"),n=await sn(["**/*.css"],{absolute:!0,gitignore:!0})),n=n.filter(o=>o.endsWith(".css"));let i=await Promise.allSettled(n.map(o=>B.load(o)));for(let o of i)o.status==="rejected"&&$(`${o.reason?.message??o.reason}`,{prefix:"\u21B3 "});let a=i.filter(o=>o.status==="fulfilled").map(o=>o.value);try{await ti(a)}catch(o){$(`${o?.message??o}`,{prefix:"\u21B3 "})}try{await gi(a,{configPath:ut["--config"],base:e})}catch(o){$(`${o?.message??o}`,{prefix:"\u21B3 "})}a.some(o=>o.isTailwindRoot)&&j("Migrating JavaScript configuration files\u2026");let l=new Map,s=new Map;for(let o of a){if(!o.isTailwindRoot)continue;let u=await di(o.linkedConfigPath,{base:e});l.set(o,u);let f=await Wr(u.designSystem,u.configFilePath,e);s.set(o,f),f!==null&&t.push(()=>un.rm(u.configFilePath)),f!==null&&O(`Migrated configuration file: ${v(_(u.configFilePath,e))}`,{prefix:"\u21B3 "})}l.size>0&&j("Migrating templates\u2026");for(let o of l.values()){let u=new Set;for(let c of o.sources.flatMap(p=>an(p))){let p=await sn([c.pattern],{absolute:!0,gitignore:!0,cwd:c.base});for(let m of p)u.add(m)}let f=Array.from(u);f.sort(),await Promise.allSettled(f.map(c=>Ii(o.designSystem,o.userConfig,c))),O(`Migrated templates for configuration file: ${v(_(o.configFilePath,e))}`,{prefix:"\u21B3 "})}a.length>0&&j("Migrating stylesheets\u2026"),await Promise.all(a.map(async o=>{try{let u=l.get(o),f=s.get(o);if(!u){for(let c of o.ancestors())if(c.isTailwindRoot){u??=l.get(c),f??=s.get(c);break}}await Qi(o,{...u,jsConfigMigration:f})}catch(u){$(`${u?.message??u} in ${v(_(o.file,e))}`,{prefix:"\u21B3 "})}}));try{await tn(a)}catch(o){$(`${o?.message??o}`,{prefix:"\u21B3 "})}for(let o of a)for(let u of o.importRules){if(!u.raws.tailwind_injected_layer)continue;let f=a.find(c=>c.id===u.raws.tailwind_destination_sheet_id);f&&f.containsRule(c=>c.type==="atrule"&&c.name==="utility")&&(u.params=u.params.replace(/ layer\([^)]+\)/,"").trim())}for(let o of a)await wl([en(),oi()]).process(o.root,{from:o.file});for(let o of a)o.file&&(await un.writeFile(o.file,o.root.toString()),o.isTailwindRoot&&O(`Migrated stylesheet: ${v(_(o.file,e))}`,{prefix:"\u21B3 "}))}await Yr(e),j("Updating dependencies\u2026"),await Qr(e);try{await ne(e).add(["tailwindcss@latest"]),O(`Updated package: ${v("tailwindcss")}`,{prefix:"\u21B3 "})}catch{}await Promise.allSettled(t.map(n=>n())),zt()?O("Verify the changes and commit them to your repository."):O("No changes were made to your repository.")}kl().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
|
|
241
|
+
`;let l=al.parse(s);l.walkDecls(u=>{u.value.includes("theme(")&&(u.value=fl(C(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 fl(e,t){return N(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,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=x([r.nodes[u]]),a=u+1;o=cl(o);let s=r.nodes.slice(a+1),l=s.length>0?t(o,x(s)):t(o);if(l===null)return;n(C(l))}}),x(e)}function cl(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 st}from"postcss";var Kt=["theme","base","components","utilities"];function Qi(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,a=[],s=null,l=null,u=null,f=null,p=[];n.walkAtRules(c=>{if(c.name==="import"&&c.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(c.params=c.params.replace("tailwindcss/tailwind.css","tailwindcss")),c.name==="import"&&c.params.match(/^["']tailwindcss["']/))c.params+=t;else if(c.name==="tailwind"&&c.params==="base"||c.name==="import"&&c.params.match(/^["']tailwindcss\/base["']$/))p.push("base"),a.push(c),i=c;else if(c.name==="tailwind"&&c.params==="utilities"||c.name==="import"&&c.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),a.push(c),o=c;else if(c.name==="tailwind"&&c.params==="components"||c.name==="tailwind"&&c.params==="screens"||c.name==="tailwind"&&c.params==="variants"||c.name==="import"&&c.params.match(/^["']tailwindcss\/components["']$/))c.remove();else if(c.name==="responsive")if(c.nodes){for(let d of c.nodes)d.raws.tailwind_pretty=!0;c.replaceWith(c.nodes)}else c.remove()}),i!==null&&o!==null?(s||ut(a).before(new st({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(l||ut(a).before(new st({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||ut(a).before(new st({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||ut(a).before(new st({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let c=p.toSorted((d,m)=>Kt.indexOf(d)-Kt.indexOf(m));if(p.some((d,m)=>d!==c[m])){let d=Kt.toSorted((m,h)=>p.indexOf(m)-p.indexOf(h));n.prepend({name:"layer",params:d.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function ut(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 Zi({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Mt(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 Xi(){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 en(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await ml(e,t)}async function ml(e,t,r){return typeof e=="string"&&(e=await q.fromString(e),e.file=r??null),pl().use(Hi()).use(Mi(t)).use(Ji(t)).use(Xi()).use(zi(e)).use(Gi()).use(Qi(t)).use(qi(e,t)).use(Yi(t)).use(Zi(t)).process(e.root,{from:e.file??void 0})}import dl from"postcss";var tn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function nn(){async function e(t){{let s=function(l,...u){a=l,o.get(l).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],o=new k(l=>{let u=dl.atRule({name:"tw-bucket",params:l,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",l=>{o.set(l.params,l)});let a="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=rn(l.prev(),l)??1/0,f=rn(l,l.next())??1/0;u<f?o.get(a).nodes?.push(l):i.push(l)}else l.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(l.name)?s(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"?s("import",l):(l.type==="rule"||l.type,s("user",l));return 1}),i.length>0&&s(a)}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,a)=>{let s=tn.indexOf(o.params),l=tn.indexOf(a.params);return s-l});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function rn(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 gl from"postcss";async function on(e){let t=new Map,r=new Map;for(let s of e)t.set(s.id,s),s.file&&r.set(s.file,s);let n=new Set;for(let s of e){if(s.isTailwindRoot)continue;let l=!1,u=s.layers().size>0;T(s.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(s)}let i=new Map;for(let s of e){if(!s.file||s.parents.size===0||!n.has(s)&&!Array.from(s.descendants()).some(c=>n.has(c)))continue;let l=gl.root();T(s.root,c=>{if(c.type==="atrule"&&c.name==="utility")return l.append(c),1});let u=s.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=s.file.replace(/\.css$/,`.utilities.${f}.css`);let p=await q.fromRoot(l,u);p.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(s,p),t.set(p.id,p)}for(let[s,l]of i){for(let u of s.parents){let f=i.get(u.item);f&&l.parents.add({item:f,meta:u.meta})}for(let u of s.children){let f=i.get(u.item);f&&l.children.add({item:f,meta:u.meta})}}for(let s of e){let l=i.get(s),u=new Set;for(let f of s.importRules){let p=f.raws.tailwind_destination_sheet_id;if(!p)continue;let c=t.get(p);if(!c)continue;let d=i.get(c);if(!d)continue;let m=f.params.match(/(['"])(.*)\1/);if(!m)return;let h=m[1],g=m[2],v=g.replace(/\.css$/,d.extension),S=f.clone({params:`${h}${v}${h}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:d.id}});l?u.add(S):f.after(S)}l&&u.size>0&&l.root.prepend(Array.from(u))}let o=new k(()=>new Set);for(let s of t.values())for(let l of s.importRules){let u=l.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&o.get(f).add(l)}let a=[];for(let s of e.slice()){for(let l of s.descendants())a.push(l);a.push(s)}for(let s of a){let l=i.get(s);if(l&&s.isEmpty){s.root=l.root;for(let u of o.get(l))u.params=u.raws.tailwind_original_params;for(let u of o.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import ue from"picocolors";function an({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(M(Ye()),e&&(M(),M(`${ue.dim("Invalid command:")} ${e}`)),t&&t.length>0){M(),M(ue.dim("Usage:"));for(let[i,o]of t.entries()){let a=o.slice(0,o.indexOf("[")),s=o.slice(o.indexOf("["));s=s.replace(/\[.*?\]/g,f=>ue.dim(f));let u=Re(s,n-Ge.indent-a.length-1);u.length>1&&i!==0&&M(),M(Ee(`${a}${u.shift()}`));for(let f of u)M(Ee(f,a.length))}}if(r){let i=0;for(let{alias:l}of Object.values(r))l&&(i=Math.max(i,l.length));let o=[],a=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),a=Math.max(a,f.length)}M(),M(ue.dim("Options:"));let s=8;for(let{description:l,default:u=null}of Object.values(r)){let f=o.shift(),p=s+(a-f.length),c=2,d=n-f.length-p-c-Ge.indent,m=Re(u!==null?`${l} ${ue.dim(`[default:\u202F${w(`${u}`)}]`)}`:l,d);M(Ee(`${ue.blue(f)} ${ue.dim(ue.gray("\xB7")).repeat(p)} ${m.shift()}`));for(let h of m)M(Ee(`${" ".repeat(f.length+p+c)}${h}`))}}}import hl from"mri";function sn(e,t=process.argv.slice(2)){let r=hl(t),n={_:r._};for(let[i,{type:o,alias:a,default:s=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,a){let l=a.slice(1);r[l]!==void 0&&(n[i]=ln(r[l],o))}{let l=i.slice(2);r[l]!==void 0&&(n[i]=ln(r[l],o))}}return n}function ln(e,t){switch(t){case"string":return pt(e);case"boolean":return ft(e);case"number":return ct(e);case"boolean | string":return ft(e)??pt(e);case"number | string":return ct(e)??pt(e);case"boolean | number":return ft(e)??ct(e);case"boolean | number | string":return ft(e)??ct(e)??pt(e);default:throw new Error(`Unhandled type: ${t}`)}}function ft(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 pt(e){return`${e}`}import{execSync as yl}from"node:child_process";function Wt(){try{return yl("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var fn={"--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"}},mt=sn(fn);mt["--help"]&&(an({usage:["npx @tailwindcss/upgrade"],options:fn}),process.exit(0));async function xl(){let e=process.cwd();oe(Ye()),oe();let t=[];mt["--force"]||Wt()&&(R("Git directory is not clean. Please stash or commit your changes before migrating."),F(`You may use the ${w("--force")} flag to silence this warning and perform the migration.`),process.exit(1));{let r=mt._.map(u=>kl.resolve(e,u));r.length===0&&(F("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await wl(["**/*.css"],{absolute:!0,gitignore:!0})),r=r.filter(u=>u.endsWith(".css"));let n=await Promise.allSettled(r.map(u=>q.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 ii(i)}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}if(E(3))try{await vi(i,{configPath:mt["--config"],base:e})}catch(u){R(`${u?.message??u}`,{prefix:"\u21B3 "})}i.some(u=>u.isTailwindRoot&&u.linkedConfigPath)&&F("Migrating JavaScript configuration files\u2026");let a=new Map,s=new Map;for(let u of i){if(!u.isTailwindRoot||!E(3)&&!u.linkedConfigPath)continue;let f=await yi(u.linkedConfigPath,{base:e});a.set(u,f);let p=await qr(f.designSystem,f.configFilePath,e);s.set(u,p),p!==null&&t.push(()=>un.rm(f.configFilePath)),p!==null&&j(`Migrated configuration file: ${w(P(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&F("Migrating stylesheets\u2026"),await Promise.all(i.map(async u=>{try{let f=a.get(u),p=s.get(u)??null;if(!f){for(let c of u.ancestors())if(c.isTailwindRoot){f??=a.get(c),p??=s.get(c)??null;break}}await en(u,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await u.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:p})}catch(f){R(`${f?.message??f} in ${w(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 p=i.find(c=>c.id===f.raws.tailwind_destination_sheet_id);p&&p.containsRule(c=>c.type==="atrule"&&c.name==="utility")&&(f.params=f.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let u of i)o.get(u)!==u.root.toString()&&await bl([nn(),li()]).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: ${w(P(u.file,e))}`,{prefix:"\u21B3 "}));F("Updating dependencies\u2026");for(let u of["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"])try{(u==="tailwindcss"||await ge(e).has(u))&&(await ge(e).add([`${u}@latest`]),j(`Updated package: ${w(u)}`,{prefix:"\u21B3 "}))}catch{}let l=i.filter(u=>u.isTailwindRoot&&u.file);l.length>0&&F("Migrating templates\u2026");{let u=new Set;for(let f of l){let p=await f.compiler();if(!p)continue;let c=await f.designSystem();if(!c)continue;let d=(p.root==="none"?[]:p.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...p.root,negated:!1}]).concat(p.sources),m=a.get(f),h=new vl({sources:d}),g=[];for(let v of h.files)u.has(v)||(u.add(v),g.push(v));await Promise.allSettled(g.map(v=>Fi(c,m?.userConfig??null,v))),m?.configFilePath?j(`Migrated templates for configuration file: ${w(P(m.configFilePath,e))}`,{prefix:"\u21B3 "}):j(`Migrated templates for: ${w(P(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}E(3)&&await Zr(e),await Promise.allSettled(t.map(r=>r())),Wt()?j("Verify the changes and commit them to your repository."):j("No changes were made to your repository.")}xl().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": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,16 +33,18 @@
|
|
|
33
33
|
"postcss-import": "^16.1.0",
|
|
34
34
|
"postcss-selector-parser": "^7.1.0",
|
|
35
35
|
"prettier": "3.5.0",
|
|
36
|
+
"semver": "^7.7.1",
|
|
36
37
|
"tree-sitter": "^0.22.4",
|
|
37
38
|
"tree-sitter-typescript": "^0.23.2",
|
|
38
|
-
"@tailwindcss/node": "4.1.
|
|
39
|
-
"
|
|
40
|
-
"tailwindcss": "4.1.
|
|
39
|
+
"@tailwindcss/node": "4.1.5",
|
|
40
|
+
"tailwindcss": "4.1.5",
|
|
41
|
+
"@tailwindcss/oxide": "4.1.5"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@types/braces": "^3.0.5",
|
|
44
45
|
"@types/node": "^20.14.8",
|
|
45
|
-
"@types/postcss-import": "^14.0.3"
|
|
46
|
+
"@types/postcss-import": "^14.0.3",
|
|
47
|
+
"@types/semver": "^7.7.0"
|
|
46
48
|
},
|
|
47
49
|
"scripts": {
|
|
48
50
|
"lint": "tsc --noEmit",
|