@tailwindcss/upgrade 0.0.0-insiders.c32b608 → 0.0.0-insiders.c385fd3
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/README.md +6 -10
- package/dist/index.mjs +99 -84
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -1,70 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var pn=Object.create;var Wt=Object.defineProperty;var mn=Object.getOwnPropertyDescriptor;var dn=Object.getOwnPropertyNames;var gn=Object.getPrototypeOf,hn=Object.prototype.hasOwnProperty;var yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dn(t))!hn.call(e,i)&&i!==r&&Wt(e,i,{get:()=>t[i],enumerable:!(n=mn(t,i))||n.enumerable});return e};var wn=(e,t,r)=>(r=e!=null?pn(gn(e)):{},vn(t||!e||!e.__esModule?Wt(r,"default",{value:e,enumerable:!0}):r,e));var zi=yn((y0,Mi)=>{"use strict";var Ia=["anchor-size"],c0=new RegExp(`(${Ia.join("|")})\\(`,"g"),rt=new Uint8Array(256);function Ua(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:rt[r]=41,r++;break;case 91:rt[r]=93,r++;break;case 123:rt[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===rt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,f0=new RegExp(`^${J.source}$`),p0=new RegExp(`^${J.source}%$`),m0=new RegExp(`^${J.source}s*/s*${J.source}$`),ja=["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"],d0=new RegExp(`^${J.source}(${ja.join("|")})$`),Fa=["deg","rad","grad","turn"],g0=new RegExp(`^${J.source}(${Fa.join("|")})$`),h0=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function le(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var La={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function pe(e){return{__BARE_VALUE__:e}}var K=pe(e=>{if(le(e.value))return e.value}),_=pe(e=>{if(le(e.value))return`${e.value}%`}),ae=pe(e=>{if(le(e.value))return`${e.value}px`}),Li=pe(e=>{if(le(e.value))return`${e.value}ms`}),it=pe(e=>{if(le(e.value))return`${e.value}deg`}),Ka=pe(e=>{if(e.fraction===null)return;let[t,r]=Ua(e.fraction,"/");if(!(!le(t)||!le(r)))return e.fraction}),Ki=pe(e=>{if(le(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ma={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",...Ka},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),..._}),backdropContrast:({theme:e})=>({...e("contrast"),..._}),backdropGrayscale:({theme:e})=>({...e("grayscale"),..._}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...it}),backdropInvert:({theme:e})=>({...e("invert"),..._}),backdropOpacity:({theme:e})=>({...e("opacity"),..._}),backdropSaturate:({theme:e})=>({...e("saturate"),..._}),backdropSepia:({theme:e})=>({...e("sepia"),..._}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ae},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",..._},caretColor:({theme:e})=>e("colors"),colors:()=>({...La}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...K},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",..._},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ae}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...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%",..._},grayscale:{0:"0",DEFAULT:"100%",..._},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...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))",...Ki},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))",...Ki},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",...it},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",..._},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...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",..._},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",...ae},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...it},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",..._},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",..._},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",..._},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...it},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",...ae},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ae},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Li},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Li},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}};Mi.exports=Ma});import{globby as un}from"globby";import cn from"node:fs/promises";import Sl from"node:path";import $l from"postcss";import Bt from"postcss";import{format as qt}from"prettier";function $(e,t){let r;return e.each?.((n,i)=>{let a=t(n,i,e)??0;if(a===2)return r=!1,r;if(a!==1)return r=$(n,t),r}),r}function pt(e,t){e?.each?.(r=>{pt(r,t),t(r)})}var Ht={parser:"css",semi:!0,singleQuote:!0};function Jt(){async function e(t){let r=[];$(t,(i,a,l)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=l,r.unshift(i))});let n=[];for(let i of r){let a=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(a);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await qt(a,Ht));continue}i.replaceWith(Bt.parse(`${i.raws.before??""}${(await qt(a,Ht)).trim()}`))}t.removeAll(),t.append(Bt.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
3
|
-
|
|
4
|
-
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import kn from"postcss";var b=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 Gt=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Zt(){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 b(o=>{let u=kn.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,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=Yt(o.prev(),o)??1/0,c=Yt(o,o.next())??1/0;u<c?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=Gt.indexOf(a.params),o=Gt.indexOf(l.params);return s-o});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Yt(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 Z from"picocolors";import $n from"node:fs";import tr from"node:path";import{stripVTControlCharacters as rr}from"node:util";import D from"picocolors";import me from"enhanced-resolve";import mt from"node:fs";import{createRequire as bn}from"node:module";var xn=bn(import.meta.url).resolve;function Xt(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return xn(e)}var Cn=me.ResolverFactory.createResolver({fileSystem:new me.CachedInputFileSystem(mt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),An=me.ResolverFactory.createResolver({fileSystem:new me.CachedInputFileSystem(mt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function er(e,t){try{return Cn.resolveSync({},t,e)}catch{return An.resolveSync({},t,e)}}var Sn=me.ResolverFactory.createResolver({fileSystem:new me.CachedInputFileSystem(mt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function dt(e,t){return Sn.resolveSync({},t,e)}var Oe={indent:2};function De(){return`${D.italic(D.bold(D.blue("\u2248")))} tailwindcss ${D.blue(`v${Tn()}`)}`}function v(e){return`${D.dim(D.blue("`"))}${D.blue(e)}${D.dim(D.blue("`"))}`}function O(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=tr.relative(t,e);return n.startsWith("..")||(n=`.${tr.sep}${n}`),r&&n.length>e.length?e:n}function xe(e,t){if(e.includes(`
|
|
5
|
-
`))return e.split(`
|
|
6
|
-
`).flatMap(l=>xe(l,t));let r=e.split(" "),n=[],i="",a=0;for(let l of r){let s=rr(l).length;a+s+1>t&&(n.push(i),i="",a=0),i+=(a?" ":"")+l,a+=s+(a?1:0)}return a&&n.push(i),n}function Ce(e,t=0){return`${" ".repeat(t+Oe.indent)}${e}`}function Ie(e,{art:t=D.gray("\u2502"),prefix:r="",print:n=Q}){let i=r.length,a=" ",l=a.length,s=rr(t).length,u=process.stderr.columns-i-l*2-s;xe(e,u).map((c,f)=>n(`${t}${a}${f===0?r:" ".repeat(i)}${c}${a}`)),n()}function V(e,{prefix:t="",print:r=Q}={}){Ie(e,{art:D.green("\u2502"),prefix:t,print:r})}function U(e,{prefix:t="",print:r=Q}={}){Ie(e,{art:D.blue("\u2502"),prefix:t,print:r})}function T(e,{prefix:t="",print:r=Q}={}){Ie(e,{art:D.red("\u2502"),prefix:t,print:r})}function Ue(e,{prefix:t="",print:r=Q}={}){Ie(e,{art:D.yellow("\u2502"),prefix:t,print:r})}function Q(e=""){process.stderr.write(`${e}
|
|
7
|
-
`)}function j(e=""){process.stdout.write(`${e}
|
|
8
|
-
`)}function Tn(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse($n.readFileSync(Xt("tailwindcss/package.json"),"utf-8"));return e}function ir({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(j(De()),e&&(j(),j(`${Z.dim("Invalid command:")} ${e}`)),t&&t.length>0){j(),j(Z.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,c=>Z.dim(c));let u=xe(s,n-Oe.indent-l.length-1);u.length>1&&i!==0&&j(),j(Ce(`${l}${u.shift()}`));for(let c of u)j(Ce(c,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 c=[u&&`${u.padStart(i)}`,u?o:" ".repeat(i+2)+o].filter(Boolean).join(", ");a.push(c),l=Math.max(l,c.length)}j(),j(Z.dim("Options:"));let s=8;for(let{description:o,default:u=null}of Object.values(r)){let c=a.shift(),f=s+(l-c.length),p=2,m=n-c.length-f-p-Oe.indent,d=xe(u!==null?`${o} ${Z.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,m);j(Ce(`${Z.blue(c)} ${Z.dim(Z.gray("\xB7")).repeat(f)} ${d.shift()}`));for(let h of d)j(Ce(`${" ".repeat(c.length+f+p)}${h}`))}}}import{normalizePath as _a}from"@tailwindcss/node";import{isGitIgnored as Oa}from"globby";import H from"node:path";import tt from"postcss";var je=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: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&&o===je[r-1]&&r--;break}}return n.push(e.slice(i)),n}import Hr from"node:fs/promises";import Jr,{extname as xo}from"node:path";import{Scanner as On}from"@tailwindcss/oxide";function gt(e){return{kind:"word",value:e}}function Nn(e,t){return{kind:"function",value:e,nodes:t}}function Vn(e){return{kind:"separator",value:e}}function I(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"&&I(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 nr=92,En=41,or=58,ar=44,Rn=34,lr=61,sr=62,ur=60,cr=10,Pn=40,_n=39,fr=47,pr=32,mr=9;function A(e){e=e.replaceAll(`\r
|
|
2
|
+
var $o=Object.create;var Tr=Object.defineProperty;var To=Object.getOwnPropertyDescriptor;var Eo=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,No=Object.prototype.hasOwnProperty;var Vo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Po=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Eo(t))!No.call(e,i)&&i!==r&&Tr(e,i,{get:()=>t[i],enumerable:!(n=To(t,i))||n.enumerable});return e};var _o=(e,t,r)=>(r=e!=null?$o(Ro(e)):{},Po(t||!e||!e.__esModule?Tr(r,"default",{value:e,enumerable:!0}):r,e));var Yi=Vo((Vg,qi)=>{"use strict";var yt=new Uint8Array(256);function Fa(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){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===a)break}break;case 40:yt[r]=41,r++;break;case 91:yt[r]=93,r++;break;case 123:yt[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===yt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var ue=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Ag=new RegExp(`^${ue.source}$`),$g=new RegExp(`^${ue.source}%$`),Tg=new RegExp(`^${ue.source}\\s*/\\s*${ue.source}$`),Ka=["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"],Eg=new RegExp(`^${ue.source}(${Ka.join("|")})$`),Wa=["deg","rad","grad","turn"],Rg=new RegExp(`^${ue.source}(${Wa.join("|")})$`),Ng=new RegExp(`^${ue.source} +${ue.source} +${ue.source}$`);function ye(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Ba={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Re(e){return{__BARE_VALUE__:e}}var ie=Re(e=>{if(ye(e.value))return e.value}),M=Re(e=>{if(ye(e.value))return`${e.value}%`}),he=Re(e=>{if(ye(e.value))return`${e.value}px`}),Wi=Re(e=>{if(ye(e.value))return`${e.value}ms`}),vt=Re(e=>{if(ye(e.value))return`${e.value}deg`}),qa=Re(e=>{if(e.fraction===null)return;let[t,r]=Fa(e.fraction,"/");if(!(!ye(t)||!ye(r)))return e.fraction}),Bi=Re(e=>{if(ye(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ya={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",...qa},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...M}),backdropContrast:({theme:e})=>({...e("contrast"),...M}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...M}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...vt}),backdropInvert:({theme:e})=>({...e("invert"),...M}),backdropOpacity:({theme:e})=>({...e("opacity"),...M}),backdropSaturate:({theme:e})=>({...e("saturate"),...M}),backdropSepia:({theme:e})=>({...e("sepia"),...M}),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",...he},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",...M},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ba}),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",...ie},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...M},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"),...he}),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",...ie},flexShrink:{0:"0",DEFAULT:"1",...ie},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%",...M},grayscale:{0:"0",DEFAULT:"100%",...M},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",...ie},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",...ie},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",...ie},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",...ie},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))",...Bi},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))",...Bi},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",...vt},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%",...M},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",...ie},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",...M},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",...ie},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...he},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...vt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...M},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",...M},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%",...M},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...vt},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",...ie},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",...he},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...Wi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Wi},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",...ie}};qi.exports=Ya});import{Scanner as Wu}from"@tailwindcss/oxide";import{globby as Bu,isGitIgnored as qu}from"globby";import So from"fs/promises";import $r from"path";import Z from"picocolors";import Yu from"postcss";import{Scanner as tn}from"@tailwindcss/oxide";import os from"fs/promises";import rn from"path";import{fileURLToPath as ls}from"url";import ze from"enhanced-resolve";import{createJiti as Ma}from"jiti";import sr from"fs";import pg from"fs/promises";import Li from"path";import{pathToFileURL as Mi}from"url";import{__unstable__loadDesignSystem as hg,compile as yg,compileAst as vg,Features as kg,Polyfills as wg}from"tailwindcss";import jt from"fs/promises";import We from"path";var Oo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Do=[".js",".cjs",".mjs"],Io=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Uo=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Lo(e,t){for(let r of t){let n=`${e}${r}`;if((await jt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await jt.access(n).then(()=>!0,()=>!1))return n}return null}async function Er(e,t,r,n){let i=Do.includes(n)?Io:Uo,o=await Lo(We.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=We.dirname(o),n=We.extname(o);let l=await jt.readFile(o,"utf-8"),s=[];for(let a of Oo)for(let u of l.matchAll(a))u[1].startsWith(".")&&s.push(Er(e,u[1],r,n));await Promise.all(s)}async function Rr(e){let t=new Set;return await Er(t,e,We.dirname(e),We.extname(e)),Array.from(t)}import*as La from"path";function H(e){return{kind:"word",value:e}}function Mo(e,t){return{kind:"function",value:e,nodes:t}}function zo(e){return{kind:"separator",value:e}}function $(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+$(r.nodes)+")"}return t}var Nr=92,jo=41,Vr=58,Pr=44,Fo=34,_r=61,Or=62,Dr=60,Ir=10,Ko=40,Wo=39,Bo=47,Ur=32,Lr=9;function x(e){e=e.replaceAll(`\r
|
|
3
|
+
`,`
|
|
4
|
+
`);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case Nr:{i+=e[l]+e[l+1],l++;break}case Bo:{if(i.length>0){let u=H(i);n?n.nodes.push(u):t.push(u),i=""}let a=H(e[l]);n?n.nodes.push(a):t.push(a);break}case Vr:case Pr:case _r:case Or:case Dr:case Ir:case Ur:case Lr:{if(i.length>0){let p=H(i);n?n.nodes.push(p):t.push(p),i=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Vr&&o!==Pr&&o!==_r&&o!==Or&&o!==Dr&&o!==Ir&&o!==Ur&&o!==Lr));u++);l=u-1;let c=zo(e.slice(a,u));n?n.nodes.push(c):t.push(c);break}case Wo:case Fo:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Nr)u+=1;else if(o===s){l=u;break}i+=e.slice(a,l+1);break}case Ko:{let a=Mo(i,[]);i="",n?n.nodes.push(a):t.push(a),r.push(a),n=a;break}case jo:{let a=r.pop();if(i.length>0){let u=H(i);a?.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(H(i)),t}var Ft=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function Mr(e){return e.indexOf("(")!==-1&&Ft.some(t=>e.includes(`${t}(`))}function zr(e){if(!Ft.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let l=e.charCodeAt(o);if(l>=48&&l<=57||n!==null&&(l===37||l>=97&&l<=122||l>=65&&l<=90)?n=o:(i=n,n=null),l===40){t+=e[o];let s=o;for(let u=o-1;u>=0;u--){let c=e.charCodeAt(u);if(c>=48&&c<=57)s=u;else if(c>=97&&c<=122)s=u;else break}let a=e.slice(s,o);if(Ft.includes(a)){r.unshift(!0);continue}else if(r[0]&&a===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(l===41)t+=e[o],r.shift();else if(l===44&&r[0]){t+=", ";continue}else{if(l===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((l===43||l===42||l===47||l===45)&&r[0]){let s=t.trimEnd(),a=s.charCodeAt(s.length-1),u=s.charCodeAt(s.length-2),c=e.charCodeAt(o+1);if((a===101||a===69)&&u>=48&&u<=57){t+=e[o];continue}else if(a===43||a===42||a===47||a===45){t+=e[o];continue}else if(a===40||a===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:a>=48&&a<=57||c>=48&&c<=57||a===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function Be(e){if(e.indexOf("(")===-1)return Oe(e);let t=x(e);return Kt(t),e=$(t),e=zr(e),e}function Oe(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 Kt(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++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=Oe(t.nodes[r].value,!0);continue}Kt([t.nodes[r]])}break}t.value=Oe(t.value),Kt(t.nodes);break}case"separator":case"word":{t.value=Oe(t.value);break}default:qo(t)}}function qo(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var Wt=new Uint8Array(256);function De(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:Wt[t]=41,t++;break;case 91:Wt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Wt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var nt=new Uint8Array(256);function b(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){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===a)break}break;case 40:nt[r]=41,r++;break;case 91:nt[r]=93,r++;break;case 123:nt[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===nt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var Bt=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(Bt||{}),v={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function k(e,t){typeof t=="function"?jr(e,t):jr(e,t.enter,t.exit)}function jr(e,t=()=>v.Continue,r=()=>v.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let o=[],l=n;for(;l;){let s=l.value[2];s&&o.push(s),l=l.prev}return o.reverse(),o}};for(;n!==null;){let o=n.value,l=o[0],s=o[1],a=o[2];if(s>=l.length){n=n.prev,i.depth-=1;continue}if(i.parent=a,s>=0){let f=l[s],m=t(f,i)??v.Continue;switch(m.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),o[1]=~s;continue}case 2:return;case 1:{o[1]=~s;continue}case 3:{l.splice(s,1,...m.nodes);continue}case 5:{l.splice(s,1,...m.nodes);return}case 4:{l.splice(s,1,...m.nodes),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Bt[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let u=~s,c=l[u],p=r(c,i)??v.Continue;switch(p.kind){case 0:o[1]=u+1;continue;case 2:return;case 3:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}case 5:{l.splice(u,1,...p.nodes);return}case 4:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Bt[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}var Yo=58,Fr=45,Kr=97,Wr=122,Br=/^[a-zA-Z0-9_.%-]+$/;function F(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Ie),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Ie),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Ie),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Ie(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Ie(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*le(e,t){let r=b(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 f=t.parseVariant(r[p]);if(f===null)return;i.push(f)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[l,s=null,a]=b(n,"/");if(a)return;let u=s===null?null:Go(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let p=l.charCodeAt(1);if(p!==Fr&&!(p>=Kr&&p<=Wr))return;l=l.slice(1,-1);let f=l.indexOf(":");if(f===-1||f===0||f===l.length-1)return;let m=l.slice(0,f),d=Be(l.slice(f+1));if(!De(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let c;if(l[l.length-1]==="]"){let p=l.indexOf("-[");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+1);c=[[f,m]]}else if(l[l.length-1]===")"){let p=l.indexOf("-(");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+2,-1),d=b(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!De(m))return;c=[[f,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=Ho(l,p=>t.utilities.has(p,"functional"));for(let[p,f]of c){let m={kind:"functional",root:p,modifier:u,value:null,variants:i,important:o,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let h=Be(f.slice(d+1,-1));if(!De(h))continue;let w=null;for(let S=0;S<h.length;S++){let N=h.charCodeAt(S);if(N===Yo){w=h.slice(0,S),h=h.slice(S+1);break}if(!(N===Fr||N>=Kr&&N<=Wr))break}if(h.length===0||h.trim().length===0||w==="")continue;m.value={kind:"arbitrary",dataType:w||null,value:h}}else{let h=s===null||m.modifier?.kind==="arbitrary"?null:`${f}/${s}`;if(!Br.test(f))continue;m.value={kind:"named",value:f,fraction:h}}}yield m}}function Go(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Be(e.slice(1,-1));return!De(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!De(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Be(e)})):Br.test(e)?{kind:"named",value:e}:null}function*Ho(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Yt(e){if(e===null)return"";let t=Qo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${Gt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var Jo=new y(e=>{let t=x(e),r=new Set;return k(t,(n,i)=>{let o=i.parent===null?t:i.parent.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let l=o.indexOf(n)??-1;if(l===-1)return;let s=o[l-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=o[l+1];if(a?.kind!=="separator"||a.value!==" ")return;r.add(s),r.add(a)}else 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&&k(t,n=>{if(r.has(n))return r.delete(n),v.ReplaceSkip([])}),qt(t),$(t)});function Gt(e){return Jo.get(e)}var fc=new y(e=>{let t=x(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"?$(t[2].nodes):e});function qt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=qe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=qe(t.value);for(let r=0;r<t.nodes.length;r++)qt([t.nodes[r]]);break}t.value=qe(t.value),qt(t.nodes);break}case"separator":t.value=qe(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=qe(t.value));break}default:Xo(t)}}var Zo=new y(e=>{let t=x(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Qo(e){return Zo.get(e)}function Xo(e){throw new Error(`Unexpected value: ${e}`)}function qe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var el=process.env.FEATURES_ENV!=="stable";function Ye(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(o===l?0:o<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}function me(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",l=t.charCodeAt(0);if(r===1&&l===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&l===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function Ge(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>{if(t.length<=2)return t[1];let r=Number.parseInt(t.slice(1).trim(),16);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}var ae=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,bc=new RegExp(`^${ae.source}$`);var xc=new RegExp(`^${ae.source}%$`);var Cc=new RegExp(`^${ae.source}\\s*/\\s*${ae.source}$`);var tl=["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"],rl=new RegExp(`^${ae.source}(${tl.join("|")})$`);function qr(e){return rl.test(e)||Mr(e)}var il=["deg","rad","grad","turn"],Sc=new RegExp(`^${ae.source}(${il.join("|")})$`);var Ac=new RegExp(`^${ae.source} +${ae.source} +${ae.source}$`);function U(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Q(e){return Yr(e,.25)}function Ht(e){return Yr(e,.25)}function Yr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ue(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 ol={"--alpha":ll,"--spacing":al,"--theme":sl,theme:ul};function ll(e,t,r,...n){let[i,o]=b(r,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return Ue(i,o)}function al(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 sl(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(n.length===0)return o;let l=n.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=x(o);return fl(s,l),$(s)}return o}function ul(e,t,r,...n){r=cl(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 qc=new RegExp(Object.keys(ol).map(e=>`${e}\\(`).join("|"));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}function fl(e,t){k(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function Jt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let l=e.charCodeAt(o),s=t.charCodeAt(o);if(l>=48&&l<=57&&s>=48&&s<=57){let a=o,u=o+1,c=o,p=o+1;for(l=e.charCodeAt(u);l>=48&&l<=57;)l=e.charCodeAt(++u);for(s=t.charCodeAt(p);s>=48&&s<=57;)s=t.charCodeAt(++p);let f=e.slice(a,u),m=t.slice(c,p),d=Number(f)-Number(m);if(d)return d;if(f<m)return-1;if(f>m)return 1;continue}if(l!==s)return l-s}return e.length-t.length}function Hr(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;Le(e.charCodeAt(t));)t++;{for(r=t;t<n;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95))break}if(r===t)return null}let i=e.slice(r,t);for(;Le(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(t);if(l===61)o="=",t++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;Le(e.charCodeAt(t));)t++;if(t===n)return null;let s="",a=null;if(l=e.charCodeAt(t),l===39||l===34){a=e[t],t++,r=t;for(let c=t;c<n;c++){let p=e.charCodeAt(c);p===l?t=c+1:p===92&&c++}s=e.slice(r,t-1)}else{for(r=t;t<n&&!Le(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;Le(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:o,quote:a,value:s,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;Le(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:o,quote:a,value:s,sensitivity:u}}function Le(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function Jr(e){let t=[];return Zr(e,[],(r,n)=>{if(hl(r))return t.push([n,r]),1;if(yl(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 ml={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},dl={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},gl=/^[a-zA-Z0-9-_%/.]+$/;function X(e){let t=ml[e[0]];if(t&&e[1]==="DEFAULT")return`default-${t}`;if(e[0]==="container")return null;for(let n of e)if(!gl.test(n))return null;let r=dl[e[0]];return r&&(e=e.slice(),e[0]=r),e.map((n,i,o)=>n==="1"&&i!==o.length-1?"":n).map((n,i)=>(n=n.replaceAll(".","_"),(i===0||n.startsWith("-")||n==="lineHeight")&&(n=n.replace(/([a-z])([A-Z])/g,(l,s,a)=>`${s}-${a.toLowerCase()}`)),n)).filter((n,i)=>n!=="DEFAULT"||i!==e.length-1).join("-")}function hl(e){return typeof e=="number"||typeof e=="string"}function yl(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Zr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],l=r(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Zr(i,o,r)===2)return 2}}}var vl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,Se=new y(e=>{let t=vl.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=Number(r);if(Number.isNaN(n))return null;let i=t.groups?.unit;return i===void 0?[n,null]:[n,i]});function lt(e,t=null){let r=!1,n=x(e);return k(n,{exit(i){if(i.kind==="word"&&i.value!=="0"){let o=kl(i.value,t);return o===null||o===i.value?void 0:(r=!0,v.ReplaceSkip(H(o)))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5)return;let o=Se.get(i.nodes[0].value),l=i.nodes[2].value,s=Se.get(i.nodes[4].value);if(l==="*"&&(o?.[0]===0&&o?.[1]===null||s?.[0]===0&&s?.[1]===null))return r=!0,v.ReplaceSkip(H("0"));if(o===null||s===null)return;switch(l){case"*":{if(o[1]===s[1]||o[1]===null&&s[1]!==null||o[1]!==null&&s[1]===null)return r=!0,v.ReplaceSkip(H(`${o[0]*s[0]}${o[1]??""}`));break}case"+":{if(o[1]===s[1])return r=!0,v.ReplaceSkip(H(`${o[0]+s[0]}${o[1]??""}`));break}case"-":{if(o[1]===s[1])return r=!0,v.ReplaceSkip(H(`${o[0]-s[0]}${o[1]??""}`));break}case"/":{if(s[0]!==0&&(o[1]===null&&s[1]===null||o[1]!==null&&s[1]===null))return r=!0,v.ReplaceSkip(H(`${o[0]/s[0]}${o[1]??""}`));break}}}}}),r?$(n):e}function kl(e,t=null){let r=Se.get(e);if(r===null)return null;let[n,i]=r;if(i===null)return`${n}`;if(n===0&&qr(e))return"0";switch(i.toLowerCase()){case"in":return`${n*96}px`;case"cm":return`${n*96/2.54}px`;case"mm":return`${n*96/2.54/10}px`;case"q":return`${n*96/2.54/10/4}px`;case"pc":return`${n*96/6}px`;case"pt":return`${n*96/72}px`;case"rem":return t!==null?`${n*t}px`:null;case"grad":return`${n*.9}deg`;case"rad":return`${n*180/Math.PI}deg`;case"turn":return`${n*360}deg`;case"ms":return`${n/1e3}s`;case"khz":return`${n*1e3}hz`;default:return`${n}${i}`}}function Ae(e,t="top",r="right",n="bottom",i="left"){return ti(`${e}-${t}`,`${e}-${r}`,`${e}-${n}`,`${e}-${i}`)}function ti(e="top",t="right",r="bottom",n="left"){return{1:[[e,0],[t,0],[r,0],[n,0]],2:[[e,0],[t,1],[r,0],[n,1]],3:[[e,0],[t,1],[r,2],[n,1]],4:[[e,0],[t,1],[r,2],[n,3]]}}function q(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var Qr={inset:ti(),margin:Ae("margin"),padding:Ae("padding"),"scroll-margin":Ae("scroll-margin"),"scroll-padding":Ae("scroll-padding"),"border-width":Ae("border","top-width","right-width","bottom-width","left-width"),"border-style":Ae("border","top-style","right-style","bottom-style","left-style"),"border-color":Ae("border","top-color","right-color","bottom-color","left-color"),gap:q("row-gap","column-gap"),overflow:q("overflow-x","overflow-y"),"overscroll-behavior":q("overscroll-behavior-x","overscroll-behavior-y")},Xr={"inset-block":q("top","bottom"),"inset-inline":q("left","right"),"margin-block":q("margin-top","margin-bottom"),"margin-inline":q("margin-left","margin-right"),"padding-block":q("padding-top","padding-bottom"),"padding-inline":q("padding-left","padding-right"),"scroll-margin-block":q("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":q("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":q("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":q("scroll-padding-left","scroll-padding-right")},ei={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function ri(e,t){if(t&2){if(e.property in Xr){let r=b(e.value," ");return Xr[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}if(e.property in ei)return ei[e.property]?.map(r=>E(r,e.value,e.important))}if(e.property in Qr){let r=b(e.value," ");return Qr[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}return null}function wl(e){return{kind:"combinator",value:e}}function bl(e,t){return{kind:"function",value:e,nodes:t}}function de(e){return{kind:"selector",value:e}}function xl(e){return{kind:"separator",value:e}}function Cl(e){return{kind:"value",value:e}}function $e(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+$e(r.nodes)+")"}return t}var ii=92,Sl=93,ni=41,Al=58,oi=44,$l=34,Tl=46,li=62,ai=10,El=35,si=91,ui=40,ci=43,Rl=39,fi=32,pi=9,mi=126,Nl=38,Vl=42;function at(e){e=e.replaceAll(`\r
|
|
9
5
|
`,`
|
|
10
|
-
`);let t=[],r=[],n=null,i="",a;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case nr:{i+=e[l]+e[l+1],l++;break}case or:case ar:case lr:case sr:case ur:case cr:case fr:case pr:case mr:{if(i.length>0){let f=gt(i);n?n.nodes.push(f):t.push(f),i=""}let o=l,u=l+1;for(;u<e.length&&(a=e.charCodeAt(u),!(a!==or&&a!==ar&&a!==lr&&a!==sr&&a!==ur&&a!==cr&&a!==fr&&a!==pr&&a!==mr));u++);l=u-1;let c=Vn(e.slice(o,u));n?n.nodes.push(c):t.push(c);break}case _n:case Rn:{let o=l;for(let u=l+1;u<e.length;u++)if(a=e.charCodeAt(u),a===nr)u+=1;else if(a===s){l=u;break}i+=e.slice(o,l+1);break}case Pn:{let o=Nn(i,[]);i="",n?n.nodes.push(o):t.push(o),r.push(o),n=o;break}case En:{let o=r.pop();if(i.length>0){let u=gt(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(gt(i)),t}async function dr(e,t="html"){let n=new On({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:a,position:l}of n)i.push({rawCandidate:a,start:l,end:l+a.length});return i}function k(e,t){let r=[];for(let i of t.variants)r.unshift(gr(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=yt(t.value.value),a=i?t.value.value.slice(4,-1):t.value.value,[l,s]=i?["(",")"]:["[","]"];t.value.dataType?n+=`-${l}${t.value.dataType}:${ue(a)}${s}`:n+=`-${l}${ue(a)}${s}`}}else t.value.kind==="named"&&(n+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(n+=`[${t.property}:${ue(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let i=yt(t.modifier.value),a=i?t.modifier.value.slice(4,-1):t.modifier.value,[l,s]=i?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?n+=`/${l}${ue(a)}${s}`:t.modifier.kind==="named"&&(n+=`/${t.modifier.value}`)}return t.important&&(n+="!"),r.push(n),r.join(":")}function gr(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${ue(Dn(e.selector))}]`;let t="";if(e.kind==="functional"&&(t+=e.root,e.value))if(e.value.kind==="arbitrary"){let r=yt(e.value.value),n=r?e.value.value.slice(4,-1):e.value.value,[i,a]=r?["(",")"]:["[","]"];t+=`-${i}${ue(n)}${a}`}else e.value.kind==="named"&&(t+=`-${e.value.value}`);return e.kind==="compound"&&(t+=e.root,t+="-",t+=gr(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${ue(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function ue(e){let t=A(e),r=new Set;return I(t,(n,{parent:i})=>{let a=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let l=a.indexOf(n)??-1;if(l===-1)return;let s=a[l-1];if(s?.kind!=="separator"||s.value!==" ")return;let o=a[l+1];if(o?.kind!=="separator"||o.value!==" ")return;r.add(s),r.add(o)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(a[0]===n||a[a.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&I(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),ht(t),x(t)}function Dn(e){let t=A(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 ht(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ae(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ae(t.value);for(let r=0;r<t.nodes.length;r++)ht([t.nodes[r]]);break}t.value=Ae(t.value),ht(t.nodes);break}case"separator":t.value=Ae(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=Ae(t.value));break}default:In(t)}}function yt(e){let t=A(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function In(e){throw new Error(`Unexpected value: ${e}`)}function Ae(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var hr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Fe=["anchor-size"],yr=new RegExp(`(${Fe.join("|")})\\(`,"g");function vr(e){if(!hr.some(i=>e.includes(i)))return e;let t=!1;Fe.some(i=>e.includes(i))&&(yr.lastIndex=0,e=e.replace(yr,(i,a)=>(t=!0,`$${Fe.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(hr.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)=>Fe[a]??i):r}function Se(e){if(e.indexOf("(")===-1)return de(e);let t=A(e);return vt(t),e=x(t),e=vr(e),e}function de(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 vt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=de(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=de(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=de(t.nodes[r].value,!0);continue}vt([t.nodes[r]])}break}t.value=de(t.value),vt(t.nodes);break}case"separator":case"word":{t.value=de(t.value);break}default:Un(t)}}function Un(e){throw new Error(`Unexpected value: ${e}`)}var wt=new Uint8Array(256);function $e(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:wt[t]=41,t++;break;case 91:wt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===wt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var jn=58,wr=45,kr=97,br=122;function*F(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 f=r.length-1;f>=0;--f){let p=t.parseVariant(r[f]);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:Fn(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let f=l.charCodeAt(1);if(f!==wr&&!(f>=kr&&f<=br))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=Se(l.slice(p+1));if(!$e(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:a,raw:e};return}let c;if(l[l.length-1]==="]"){let f=l.indexOf("-[");if(f===-1)return;let p=l.slice(0,f);if(!t.utilities.has(p,"functional"))return;let m=l.slice(f+1);c=[[p,m]]}else if(l[l.length-1]===")"){let f=l.indexOf("-(");if(f===-1)return;let p=l.slice(0,f);if(!t.utilities.has(p,"functional"))return;let m=l.slice(f+2,-1),d=y(m,":"),h=null;if(d.length===2&&(h=d[0],m=d[1]),m[0]!=="-"&&m[1]!=="-")return;c=[[p,h===null?`[var(${m})]`:`[${h}:var(${m})]`]]}else c=Ln(l,f=>t.utilities.has(f,"functional"));for(let[f,p]of c){let m={kind:"functional",root:f,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=Se(p.slice(d+1,-1));if(!$e(g))continue;let w="";for(let C=0;C<g.length;C++){let M=g.charCodeAt(C);if(M===jn){w=g.slice(0,C),g=g.slice(C+1);break}if(!(M===wr||M>=kr&&M<=br))break}if(g.length===0||g.trim().length===0)continue;m.value={kind:"arbitrary",dataType:w||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 Fn(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Se(e.slice(1,-1));return!$e(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Se(e.slice(1,-1));return!$e(t)||t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*Ln(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)}var W=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,vs=new RegExp(`^${W.source}$`);var ws=new RegExp(`^${W.source}%$`);var ks=new RegExp(`^${W.source}s*/s*${W.source}$`);var Kn=["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"],bs=new RegExp(`^${W.source}(${Kn.join("|")})$`);var Mn=["deg","rad","grad","turn"],xs=new RegExp(`^${W.source}(${Mn.join("|")})$`);var Cs=new RegExp(`^${W.source} +${W.source} +${W.source}$`);function N(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Te(e){return xr(e,.25)}function kt(e){return xr(e,.25)}function xr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Cr(e,t,r){for(let n of F(r,e)){let i=structuredClone(n),a=!1;if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.value==="subgrid"&&(i.root==="grid-cols"||i.root=="grid-rows")&&(a=!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("%")&&N(i.value.value.slice(0,-1))){let l=parseInt(i.value.value);(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch"&&l>=50&&l<=200)&&(a=!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")a=!0,i.value={kind:"named",value:"none",fraction:null};else continue;let l=y(i.value.value,"/");if(l.every(s=>N(s))){a=!0;let s=i.value,o=i.modifier;l.length===1?i.value={kind:"named",value:i.value.value,fraction:null}:(i.value={kind:"named",value:l[0],fraction:i.value.value},i.modifier={kind:"named",value:l[1]}),e.compileAstNodes(i).length===0&&(i.value=s,i.modifier=o,a=!1)}}for(let l of zn(i))if(l.kind==="functional"&&l.root==="data"&&l.value?.kind==="arbitrary"&&!l.value.value.includes("="))a=!0,l.value={kind:"named",value:l.value.value};else if(l.kind==="functional"&&l.root==="aria"&&l.value?.kind==="arbitrary"&&(l.value.value.endsWith("=true")||l.value.value.endsWith('="true"')||l.value.value.endsWith("='true'"))){let[s,o]=y(l.value.value,"=");if(s[s.length-1]==="~"||s[s.length-1]==="|"||s[s.length-1]==="^"||s[s.length-1]==="$"||s[s.length-1]==="*")continue;a=!0,l.value={kind:"named",value:l.value.value.slice(0,l.value.value.indexOf("="))}}else l.kind==="functional"&&l.root==="supports"&&l.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(l.value.value)&&(a=!0,l.value={kind:"named",value:l.value.value});return a?k(e,i):r}return r}function*zn(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}var Wn=32;var Bn=40;function Ar(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Wn||n===Bn){let i=e.slice(0,r).trim(),a=e.slice(r).trim();return S(i,a,t)}}return S(e.trim(),"",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,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 Le(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 Jn=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 B(e,t=[]){return e.charCodeAt(0)===Jn?Ar(e,t):ge(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function R(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(R(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(c){s||(s=!0,Array.isArray(c)?c.length===0?(e.splice(i,1),o=0):c.length===1?(e[i]=c[0],o=1):(e.splice(i,1,...c),o=c.length):(e[i]=c,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 c=R(a.nodes,t,r,n);if(r.pop(),c===2)return 2}}}function ee(e){function t(n,i=0){let a="",l=" ".repeat(i);if(n.kind==="declaration")a+=`${l}${n.property}: ${n.value}${n.important?" !important":""};
|
|
11
|
-
`;else if(n.kind==="rule"){a+=`${l}${n.selector} {
|
|
12
|
-
`;for(let s of n.nodes)a+=t(s,i+1);a+=`${l}}
|
|
13
|
-
`}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${l}${n.name} ${n.params};
|
|
14
|
-
`;a+=`${l}${n.name}${n.params?` ${n.params} `:" "}{
|
|
15
|
-
`;for(let s of n.nodes)a+=t(s,i+1);a+=`${l}}
|
|
16
|
-
`}else if(n.kind==="comment")a+=`${l}/*${n.value}*/
|
|
17
|
-
`;else if(n.kind==="context"||n.kind==="at-root")return"";return a}let r="";for(let n of e){let i=t(n);i!==""&&(r+=i)}return r}function $r(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),a=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!ze(e,i,i.modifier.value)){let{value:l,didChange:s}=Me(i.modifier.value);i.modifier.value=l,a||=s}for(let l of i.variants)Tr(e,l)&&(a=!0);if(i.kind==="arbitrary"&&!ze(e,i,i.value)){let{value:l,didChange:s}=Me(i.value);i.value=l,a||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!ze(e,i,i.value.value)){let{value:l,didChange:s}=Me(i.value.value);i.value.value=l,a||=s}if(a)return k(e,i)}return r}function Me(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 Tr(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!ze(e,Gn(t),t.value.value)){let{value:n,didChange:i}=Me(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Tr(e,t.variant)&&(r=!0),r}function Gn(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Yn=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 ze(e,t,r){let n=e.compileAstNodes(t).map(a=>a.node),i=!1;return R(n,a=>{if(a.kind==="declaration"&&Yn.has(a.property)&&a.value==r)return i=!0,2}),i}var Qn=["t","tr","r","br","b","bl","l","tl"];function Nr(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(!Qn.includes(i))continue;return k(e,{...n,root:`bg-linear-to-${i}`})}return r}function Vr(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Er=['"',"'","`"],Zn=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Xn=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],eo=/placeholder=\{?['"]$/;function We(e){let t="";for(let a=e.start-1;a>=0;a--){let l=e.contents.at(a);if(l===`
|
|
18
|
-
`)break;t=l+t}let r="";for(let a=e.end;a<e.contents.length;a++){let l=e.contents.at(a);if(l===`
|
|
19
|
-
`)break;r+=l}let n=Er.some(a=>t.includes(a)),i=Er.some(a=>r.includes(a));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let a of Zn)if(r.trim().startsWith(a)||t.trim().endsWith(a))return!1;for(let a of Xn)if(a.test(t))return!1;return!eo.test(t)}function Rr(e,t,r,n){e:for(let i of F(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!We(n))continue e;return k(e,i)}return r}function Pr(e,t,r){for(let n of F(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?k(e,i):r}return r}import{__unstable__loadDesignSystem as to}from"@tailwindcss/node";import ro from"node:path";import io from"node:url";var no=io.fileURLToPath(import.meta.url),oo=ro.dirname(no),ao=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"]]),_r=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"]]),lo=new b(e=>to('@import "tailwindcss";',{base:e}));async function Or(e,t,r,n){let i=await lo.get(oo);function*a(l){for(let s of e.parseCandidate(l)){let o=structuredClone(s);o.variants=[],o.important=!1;let u=k(e,o),c=ao.get(u);if(!c)continue;let[f]=e.parseCandidate(c);if(!f)continue;let p=structuredClone(f);p.variants=s.variants,p.important=s.important,yield[s,p,_r.get(u),_r.get(c)]}}for(let[l,s,o,u]of a(r)){let c=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&&c&&!We(n))){if(o&&u){let f=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||f!==p||m!==d)continue}return k(e,s)}}return r}function Dr(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return k(e,{...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import so from"postcss-selector-parser";function te(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Ir(e,t,r){for(let n of F(r,e)){let i=structuredClone(n),a=!1;for(let[l,s]of uo(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,te(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(a=!0,te(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=so().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,te(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,te(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,te(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 c=o.nodes[0].filter(p=>p.type!=="nesting");if(c.length!==1)continue;let f=c[0];if(f.type==="pseudo"&&f.value===":is"){if(f.nodes.length!==1||f.nodes[0].nodes.length!==1)continue;f=f.nodes[0].nodes[0]}if(f.type==="pseudo"){let p=f,m=!1;if(f.value===":not"){if(m=!0,f.nodes.length!==1||f.nodes[0].type!=="selector"||f.nodes[0].nodes.length!==1||f.nodes[0].nodes[0].type!=="pseudo")continue;p=f.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[w,C]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===w&&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)?`${C}-${p.nodes[0].nodes[0].value}`:`${C}-[${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,te(l,h)}else if(f.type==="attribute"){let p=f.attribute,m=f.value?f.quoted?`${f.quoteMark}${f.value}${f.quoteMark}`:f.value:null;f.insensitive&&m&&(m+=" i");let d=f.operator??"=";p.startsWith("data-")?(a=!0,p=p.slice(5),te(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),te(l,{kind:"functional",root:"aria",modifier:null,value:m===null?{kind:"arbitrary",value:p}:d==="="&&f.value==="true"&&!f.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?k(e,i):r}return r}function*uo(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 Ur=new WeakSet;function jr(e,t,r){if(!e.theme.prefix)return r;Ur.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Ur.add(e));let n=co(e,t,r);if(!n)return r;let i=e.theme.prefix,a=null;try{e.theme.prefix=null;let l=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...F(l,e)];s.length>0&&(a=s[0])}finally{e.theme.prefix=i}return a?k(e,a):r}function co(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(),a=r.length-i.length,l=a+i.length,s=!1,o=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!0,i=i.slice(1)),i[0]==="-"&&(o=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),o&&(i="-"+i),s&&(i+="!"),{base:i,start:a,end:l})}var fo=/([a-z]+)/;function Fr(e){let t=fo.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 xt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","outline-none":"outline-hidden"},Lr=new WeakSet;function Kr(e,t,r){if(!Lr.has(e)){for(let n in xt)e.utilities.static(n,()=>[]);Lr.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(xt,n.root))return k(e,{...n,root:xt[n.root]});return r}function Mr(e){let t=[];return zr(e,[],(r,n)=>{if(mo(r))return t.push([n,r]),1;if(go(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 po=/^[a-zA-Z0-9-_%/\.]+$/;function q(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!po.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function mo(e){return typeof e=="number"||typeof e=="string"}function go(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function zr(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let a=[...t,n],l=r(i,a)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&zr(i,a,r)===2)return 2}}}function re(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 Wr(e,t,r){let n=Ct(e);for(let i of F(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 yo(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?k(e,a):r}return r}function Ct(e,{prettyPrint:t=!1}={}){function r(l,s=0){let o=A(l);if(s&2)return[Be(o,a),null];let u=0,c=0;if(I(o,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,I(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="separator"&&d.value.trim()==="/"?(c+=1,2):1))}),u===0)return[l,null];if(c===0)return[Be(o,i),null];if(c>1)return[Be(o,a),null];let f=null;return[Be(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,w]=h;if(/^\d+%$/.test(w))f={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let C=Number(w)*100;f={kind:Number.isInteger(C)?"named":"arbitrary",value:C.toString()}}else f={kind:"arbitrary",value:w};m=g}return i(m,d)||a(m,d)}),f]}function n(l){let s=`--${q(re(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=re(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Te(c)?`--spacing(${c})`:null}return null}function a(l,s){let o=y(l,"/").map(f=>f.trim());l=o.shift();let u=n(l);if(!u)return null;let c=o.length>0?t?` / ${o.join(" / ")}`:`/${o.join("/")}`:"";return s?`--theme(${u}${c}, ${s})`:`--theme(${u}${c})`}return r}function Be(e,t){return I(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 c=s;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)l+=x([r.nodes[c]]),s=c+1;l=ho(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 c=n.nodes.indexOf(r)-1;for(;c!==-1;){let f=n.nodes[c];if(f.kind==="separator"&&f.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(f.value.trim())&&(u=`(${u})`);break}}i(A(u))}}),x(e)}function ho(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*yo(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function Br(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 c of n.variants)vo(e,c)?i.push(c):ko(e,c)?l.push(c):a.push(c);let o=a.some(c=>wo(e,c)),u=[...l,...o?a.reverse():a,...i];if(!bo(s,u))return k(e,{...n,variants:u})}return r}function vo(e,t){return t.kind==="static"&&t.root==="dark"?!0:At(e,t).every(n=>n.kind==="at-rule")}function wo(e,t){return At(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function ko(e,t){return At(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 At(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 R(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function bo(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}function qr(e,t){if(!t[0])return e;t.sort((i,a)=>i.end-a.end||i.start-a.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let a=t[i];r+=e.slice(n.end,a.start),r+=a.replacement,n=a}return r+=e.slice(n.end),r}var Co=[Vr,jr,Rr,Nr,Kr,Or,Dr,Wr,Br,$r,Pr,Cr,Ir];async function St(e,t,r,n){for(let i of Co)r=await i(e,t,r,n);return r}async function Gr(e,t,r,n){let i=await dr(r,n),a=[];for(let{rawCandidate:l,start:s,end:o}of i){let u=await St(e,t,l,{contents:r,start:s,end:o});u!==l&&a.push({start:s,end:o,replacement:u})}return qr(r,a)}async function Yr(e,t,r){let n=Jr.isAbsolute(r)?r:Jr.resolve(process.cwd(),r),i=await Hr.readFile(n,"utf-8");await Hr.writeFile(n,await Gr(e,t,i,xo(r)))}function Qr({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 St(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 He from"postcss-selector-parser";import*as Zr from"node:fs";import*as Xr from"node:fs/promises";import*as Ve from"node:path";import*as ei from"node:util";import*as qe from"postcss";var ie=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=Ve.resolve(process.cwd(),t);let r=await Xr.readFile(t,"utf-8"),n=qe.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Ve.resolve(process.cwd(),t);let r=Zr.readFileSync(t,"utf-8"),n=qe.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=qe.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=Ve.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 Ne(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Ne(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Ne(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let a of i.layers)t.add(a);return t}*pathsToRoot(){for(let{item:t,path:r}of Ne(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:a}of n)for(let l of a.layers)i||=l==="utilities"||l==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}[ei.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*Ne(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Ne(n.item,t,i),yield{item:n.item,path:i}}}function ti(e){function t(r){if(r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();$(r,l=>{if(l.type!=="rule")return;let s=y(l.selector,",");if(s.length>1){let o=[];for(let u of s){let c=l.clone({selector:u});o.push(c)}l.replaceWith(o)}return 1});let i=new Set;$(r,l=>{if(l.type==="rule")return He(s=>{s.each(o=>{$(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),$(n,l=>{l.type==="rule"&&He(s=>{s.each(o=>{$(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),$(s,o=>{if(o.type==="atrule"&&(!o.nodes||o.nodes?.length===0)&&o.remove(),o.type!=="rule")return;let u=!1;if(He(c=>{c.each(f=>{$(f,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===l){u=!0;let m=f.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),w=d.at(h);d.at(h+1).replaceWith(w),d.at(h).replaceWith(g),h--}m.replaceWith(He.nesting())}})})}).processSync(o,{updateSelector:!0}),!u){let c=[o],f=o.parent?.index(o)??null;if(f!==null)for(let p=f-1;p>=0&&o.parent?.nodes.at(p)?.type!=="rule";p--)o.parent?.nodes.at(p)?.type==="comment"&&c.push(o.parent?.nodes.at(p));for(let p of c)p.remove()}return 1}),s.name="utility",s.params=l,s.raws.before=`${s.raws.before??""}
|
|
6
|
+
`);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case oi:case li:case ai:case fi:case ci:case pi:case mi:{if(i.length>0){let f=de(i);n?n.nodes.push(f):t.push(f),i=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==oi&&o!==li&&o!==ai&&o!==fi&&o!==ci&&o!==pi&&o!==mi));u++);l=u-1;let c=e.slice(a,u),p=c.trim()===","?xl(c):wl(c);n?n.nodes.push(p):t.push(p);break}case ui:{let a=bl(i,[]);if(i="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let u=l+1,c=0;for(let f=l+1;f<e.length;f++){if(o=e.charCodeAt(f),o===ui){c++;continue}if(o===ni){if(c===0){l=f;break}c--}}let p=l;a.nodes.push(Cl(e.slice(u,p))),i="",l=p,n?n.nodes.push(a):t.push(a);break}n?n.nodes.push(a):t.push(a),r.push(a),n=a;break}case ni:{let a=r.pop();if(i.length>0){let u=de(i);a.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}case Tl:case Al:case El:{if(i.length>0){let a=de(i);n?n.nodes.push(a):t.push(a)}i=e[l];break}case si:{if(i.length>0){let c=de(i);n?n.nodes.push(c):t.push(c)}i="";let a=l,u=0;for(let c=l+1;c<e.length;c++){if(o=e.charCodeAt(c),o===si){u++;continue}if(o===Sl){if(u===0){l=c;break}u--}}i+=e.slice(a,l+1);break}case Rl:case $l:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===ii)u+=1;else if(o===s){l=u;break}i+=e.slice(a,l+1);break}case Nl:case Vl:{if(i.length>0){let a=de(i);n?n.nodes.push(a):t.push(a),i=""}n?n.nodes.push(de(e[l])):t.push(de(e[l]));break}case ii:{i+=e[l]+e[l+1],l+=1;break}default:i+=e[l]}}return i.length>0&&t.push(de(i)),t}function K(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function ee(e){let t=[];for(let r of b(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 Xt(e,t){let r=e;return r.storage[yi]??=Pl(),r.storage[_l]??=Ol(r),r.storage[Dl]??=Il(),r.storage[ki]??=Ll(),r.storage[wi]??=zl(),r.storage[er]??=ql(r),r.storage[Zt]??=Hl(r,t),r.storage[ne]??=ua(r),r.storage[Ci]??=fa(),r.storage[Qt]??=pa(r),r.storage[tr]??=ma(r),r.storage[ft]??=da(r),r.storage[Si]??=ga(r),r}var yi=Symbol();function Pl(){return new y(e=>new y(t=>({rem:e,features:t})))}function vi(e,t){let r=0;return t?.collapse&&(r|=1),t?.logicalToPhysical&&(r|=2),Xt(e,t).storage[yi].get(t?.rem??null).get(r)}var _l=Symbol();function Ol(e){return new y(t=>new y(r=>({features:r,designSystem:e,signatureOptions:t})))}var Dl=Symbol();function Il(){return new y(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",n=t.storage[ki].get(e),i=t.storage[wi].get(e);return new y((o,l)=>{for(let s of t.parseCandidate(o)){let a=s.variants.slice().reverse().flatMap(p=>n.get(p)),u=s.important;if(u||a.length>0){let f=l.get(t.printCandidate({...s,variants:[],important:!1}));return t.theme.prefix!==null&&a.length>0&&(f=f.slice(r.length)),a.length>0&&(f=`${a.map(m=>t.printVariant(m)).join(":")}:${f}`),u&&(f+="!"),t.theme.prefix!==null&&a.length>0&&(f=`${r}${f}`),f}let c=i.get(o);if(c!==o)return c}return o})})}var Ul=[Wl,la,aa,ia],ki=Symbol();function Ll(){return new y(e=>new y(t=>{let r=[t];for(let n of Ul)for(let i of r.splice(0)){let o=n(Ie(i),e);if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r}))}var Ml=[Fl,Kl,Bl,Jl,Ql,ra,na,oa,sa],wi=Symbol();function zl(){return new y(e=>{let t=e.designSystem;return new y(r=>{for(let n of t.parseCandidate(r)){let i=F(n);for(let l of Ml)i=l(i,e);let o=t.printCandidate(i);if(r!==o)return o}return r})})}var jl=["t","tr","r","br","b","bl","l","tl"];function Fl(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return jl.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function Kl(e,t){let r=t.designSystem.storage[er];if(e.kind==="arbitrary"){let[n,i]=r(e.value,e.modifier===null?1:0);n!==e.value&&(e.value=n,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[n,i]=r(e.value.value,e.modifier===null?1:0);n!==e.value.value&&(e.value.value=n,i!==null&&(e.modifier=i))}return e}function Wl(e,t){let r=t.designSystem.storage[er],n=ct(e);for(let[i]of n)if(i.kind==="arbitrary"){let[o]=r(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=r(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function Bl(e,t){return e.kind==="arbitrary"?e.value=gi(e.value,t.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=gi(e.value.value,t.designSystem)),e}function gi(e,t){let r=t.theme.prefix?`--${t.theme.prefix}-spacing`:"--spacing",n=x(e);return k(n,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==r))return v.Replace(x(`--spacing(${$([i.nodes[4]])})`))}),$(n)}var er=Symbol();function ql(e){return t(e);function t(r){function n(s,a=0){let u=x(s);if(a&2)return[st(u,l),null];let c=0,p=0;if(k(u,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,k(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?v.Stop:g.kind==="word"&&g.value==="/"?(p+=1,v.Stop):v.Skip))}),c===0)return[s,null];if(p===0)return[st(u,o),null];if(p>1)return[st(u,l),null];let f=null;return[st(u,(d,g)=>{let h=b(d,"/").map(w=>w.trim());if(h.length>2)return null;if(u.length===1&&h.length===2&&a&1){let[w,S]=h;if(/^\d+%$/.test(S))f={kind:"named",value:S.slice(0,-1)};else if(/^0?\.\d+$/.test(S)){let N=Number(S)*100;f={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else f={kind:"arbitrary",value:S};d=w}return o(d,g)||l(d,g)}),f]}function i(s,a=!0){let u=`--${X(ee(s))}`;return r.theme.get([u])?a&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function o(s,a){let u=i(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let c=ee(s);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let p=c[1];return Q(p)?`--spacing(${p})`:null}return null}function l(s,a){let u=b(s,"/").map(f=>f.trim());s=u.shift();let c=i(s,!1);if(!c)return null;let p=u.length>0?`/${u.join("/")}`:"";return a?`--theme(${c}${p}, ${a})`:`--theme(${c}${p})`}return n}}function st(e,t){return k(e,(r,n)=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=$([r.nodes[u]]),l=u+1;o=Yl(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,$(s)):t(o);if(a===null)return;if(n.parent){let u=n.parent.nodes.indexOf(r)-1;for(;u!==-1;){let c=n.parent.nodes[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return v.Replace(x(a))}}),$(e)}function Yl(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*ct(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function te(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Gl(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var Zt=Symbol();function Hl(e,t){let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;r=lt(r,t?.rem??null);let n=Se.get(r);if(!n)return null;let[i,o]=n;return new y(l=>{if(i===0)return null;let s=Se.get(lt(l,t?.rem??null));if(!s)return null;let[a,u]=s;return u!==o?null:a/i})}function Jl(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,n=r.storage[tr].get(t.signatureOptions),i=r.storage[ne].get(t.signatureOptions),o=r.printCandidate(e),l=i.get(o);if(typeof l!="string")return e;for(let a of s(l,e)){let u=r.printCandidate(a);if(i.get(u)===l&&Zl(r,e,a))return a}return e;function*s(a,u){let c=n.get(a);if(c.length>1){let p;for(let f of c)if(f[0]!=="-"){if(p)return;p=f}if(p)for(let f of te(r,p))yield f;return}if(c.length===0&&u.modifier){let p={...u,modifier:null},f=i.get(r.printCandidate(p));if(typeof f=="string")for(let m of s(f,p))yield Object.assign({},m,{modifier:u.modifier})}if(c.length===1)for(let p of te(r,c[0]))yield p;else if(c.length===0){let p=u.kind==="arbitrary"?u.value:u.value?.value??null;if(p===null)return;if(t.signatureOptions.rem!==null&&u.kind==="functional"&&u.value?.kind==="arbitrary"){let d=r.storage[Zt]?.get(p)??null;d!==null&&Q(d)&&(yield Object.assign({},u,{value:{kind:"named",value:d,fraction:null}}))}let f=r.storage[Zt]?.get(p)??null,m="";f!==null&&f<0&&(m="-",f=Math.abs(f));for(let d of Array.from(r.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){m&&(d=`${m}${d}`);for(let g of te(r,`${d}-${p}`))yield g;if(u.modifier)for(let g of te(r,`${d}-${p}${u.modifier}`))yield g;if(f!==null){for(let g of te(r,`${d}-${f}`))yield g;if(u.modifier)for(let g of te(r,`${d}-${f}${Yt(u.modifier)}`))yield g}for(let g of te(r,`${d}-[${p}]`))yield g;if(u.modifier)for(let g of te(r,`${d}-[${p}]${Yt(u.modifier)}`))yield g}}}}function Zl(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
7
|
+
`),o=!0;return k(x(n),l=>{if(l.kind==="function"&&l.value==="var"){let s=l.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(i)||i.includes(`${s}:`))return o=!1,v.Stop}}),o}function Ql(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,n=r.storage[tr].get(t.signatureOptions),i=r.storage[ne].get(t.signatureOptions),o=r.printCandidate(e),l=i.get(o);if(typeof l!="string")return e;for(let a of s(l,e)){let u=r.printCandidate(a);if(i.get(u)===l)return a}return e;function*s(a,u){let c=n.get(a);if(c.length>1){let p;for(let f of c)if(f[0]!=="-"){if(p)return;p=f}if(p)for(let f of te(r,p))yield f;return}if(c.length===0&&u.modifier){let p={...u,modifier:null},f=i.get(r.printCandidate(p));if(typeof f=="string")for(let m of s(f,p))yield Object.assign({},m,{modifier:u.modifier})}if(c.length===1)for(let p of te(r,c[0]))yield p}}var Xl=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),ea=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*ta(e){let t=Xl.get(e);t&&(yield t);for(let[r,n]of ea){let i=e.replace(r,n);i!==e&&(yield i)}}function ra(e,t){let r=t.designSystem,n=r.storage[ne].get(t.signatureOptions),i=Gl(r,e),o=n.get(i);if(typeof o!="string")return e;for(let l of ta(i)){let s=n.get(l);if(typeof s!="string"||o!==s)continue;let[a]=te(r,l);return a}return e}function ia(e,t){let r=t.designSystem,n=r.storage[ft],i=r.storage[Si],o=ct(e);for(let[l]of o){if(l.kind==="compound")continue;let s=r.printVariant(l),a=n.get(s);if(typeof a!="string")continue;let u=i.get(a);if(u.length!==1)continue;let c=u[0],p=r.parseVariant(c);p!==null&&K(l,p)}return e}function na(e,t){let r=t.designSystem,n=r.storage[ne].get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});n.get(r.printCandidate(e))===n.get(i)&&(e.value.dataType=null)}return e}function oa(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,n=r.storage[ne].get(t.signatureOptions),i=n.get(r.printCandidate(e));if(i===null)return e;for(let o of bi(e))if(n.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function la(e){let t=ct(e);for(let[r]of t)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[n,i]=b(r.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*bi(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&Q(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");U(o)&&U(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,l)=>o.length-l.length);for(let o of i)yield*bi(e,o,r)}function hi(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function ut(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function aa(e,t){let r=[e],n=t.designSystem,i=n.storage[ft],o=ct(e);for(let[l,s]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let a=at(l.selector.trim());if(!hi(a))continue;if(s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&a[2].value==="*"){K(l,n.parseVariant("*"));continue}if(s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="*"){K(l,n.parseVariant("**"));continue}if(s===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),K(l,n.parseVariant(`in-[${$e(a)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let f=i.get(n.printVariant(l)),m=x($e(a)),d=!1;if(k(m,g=>{if(g.kind==="word"&&g.value==="not")return d=!0,v.Replace([])}),m=x($(m)),k(m,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),d){let g=n.parseVariant(`not-[${$(m)}]`);if(g===null)continue;let h=i.get(n.printVariant(g));if(f===h){K(l,g);continue}}}let u=null;s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&(ut(a[2])||a[2].value[0]===":")&&(a=[a[2]],u=n.parseVariant("*")),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&(ut(a[2])||a[2].value[0]===":")&&(a=[a[2]],u=n.parseVariant("**"));let c=a.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!hi(p.nodes)||p.nodes.length!==1||!ut(p.nodes[0]))continue;p=p.nodes[0]}if(p.kind==="function"&&p.value[0]===":"||p.kind==="selector"&&p.value[0]===":"){let f=p,m=!1;if(f.kind==="function"&&f.value===":not"){if(m=!0,f.nodes.length!==1||f.nodes[0].kind!=="selector"&&f.nodes[0].kind!=="function"||f.nodes[0].value[0]!==":")continue;f=f.nodes[0]}let d=(h=>{if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return m?(m=!1,"even"):"odd";if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="even")return m?(m=!1,"odd"):"even";for(let[w,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(h===w&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&U(f.nodes[0].value)?`${S}-${f.nodes[0].value}`:`${S}-[${$e(f.nodes)}]`;if(m){let w=i.get(n.printVariant(l)),S=i.get(`not-[${h}]`);if(w===S)return`[&${h}]`}return null})(f.value);if(d===null){if(u)return K(l,{kind:"arbitrary",selector:p.value,relative:!1}),[u,l];continue}m&&(d=`not-${d}`);let g=n.parseVariant(d);if(g===null)continue;K(l,g)}else if(ut(p)){let f=Hr(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);K(l,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let m=f.attribute.slice(5);K(l,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:m}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else K(l,{kind:"arbitrary",selector:p.value,relative:!1})}if(u)return[u,l]}return r}function sa(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,n=r.storage[ne].get(t.signatureOptions),i=n.get(r.printCandidate(e)),o=e.modifier;if(i===n.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var ne=Symbol();function ua(e){return new y(t=>new y(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let n=[se(".x",[R("@apply",r)])];return ha(e,()=>{for(let o of e.parseCandidate(r))e.compileAstNodes(o,1);Je(n,e)}),xi(e,n,t),Y(n)}catch{return Symbol()}}))}function xi(e,t,r){let{rem:n}=r;return k(t,{enter(i,o){if(i.kind==="declaration"){if(i.value===void 0||i.property==="--tw-sort")return v.Replace([]);if(i.property.startsWith("--tw-")&&(o.parent?.nodes??[]).some(l=>l.kind==="declaration"&&i.value===l.value&&i.important===l.important&&!l.property.startsWith("--tw-")))return v.Replace([]);if(r.features&1){let l=ri(i,r.features);if(l)return v.Replace(l)}i.value.includes("var(")&&(i.value=ca(i.value,e)),i.value=lt(i.value,n),i.value=Gt(i.value)}else{if(i.kind==="context"||i.kind==="at-root")return v.Replace(i.nodes);if(i.kind==="comment")return v.Replace([]);if(i.kind==="at-rule"&&i.name==="@property")return v.Replace([])}},exit(i){if(i.kind==="rule"||i.kind==="at-rule"){if(i.nodes.length>1){let o=new Set;for(let l=i.nodes.length-1;l>=0;l--){let s=i.nodes[l];s.kind==="declaration"&&s.value!==void 0&&(o.has(s.property)&&i.nodes.splice(l,1),o.add(s.property))}}i.nodes.sort((o,l)=>o.kind!=="declaration"||l.kind!=="declaration"?0:o.property.localeCompare(l.property))}}}),t}function ca(e,t){let r=!1,n=x(e),i=new Set;return k(n,o=>{if(o.kind!=="function"||o.value!=="var"||o.nodes.length!==1&&o.nodes.length<3)return;let l=o.nodes[0].value;t.theme.prefix&&l.startsWith(`--${t.theme.prefix}-`)&&(l=l.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(l);if(!i.has(l)&&(i.add(l),s!==void 0&&(o.nodes.length===1&&(r=!0,o.nodes.push(...x(`,${s}`))),o.nodes.length>=3))){let a=$(o.nodes),u=`${o.nodes[0].value},${s}`;if(a===u)return r=!0,v.Replace(x(s))}}),r?$(n):e}var Ci=Symbol();function fa(){return new y(e=>new y(t=>new y(r=>new Set)))}var Qt=Symbol();function pa(e){return new y(t=>new y(r=>{let n=new y(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);return i.length===0||k(xi(e,e.compileAstNodes(i[0]).map(o=>J(o.node)),t),o=>{o.kind==="declaration"&&(n.get(o.property).add(o.value),e.storage[Ci].get(t).get(o.property).get(o.value).add(r))}),n}))}var tr=Symbol();function ma(e){return new y(t=>{let r=e.storage[ne].get(t),n=new y(()=>[]);for(let[i,o]of e.getClassList()){let l=r.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let s=r.get(i.slice(1));if(typeof s=="string"&&l===s)continue}n.get(l).push(i),e.storage[Qt].get(t).get(i);for(let s of o.modifiers){if(Q(s))continue;let a=`${i}/${s}`,u=r.get(a);typeof u=="string"&&(n.get(u).push(a),e.storage[Qt].get(t).get(a))}}}return n})}var ft=Symbol();function da(e){return new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[se(".x",[R("@apply",`${t}:flex`)])];return Je(r,e),k(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=at(i.selector),l=!1;k(o,s=>{if(s.kind==="separator"&&s.value!==" ")s.value=s.value.trim(),l=!0;else if(s.kind==="function"&&s.value===":is"){if(s.nodes.length===1)return l=!0,v.Replace(s.nodes);if(s.nodes.length===2&&s.nodes[0].kind==="selector"&&s.nodes[0].value==="*"&&s.nodes[1].kind==="selector"&&s.nodes[1].value[0]===":")return l=!0,v.Replace(s.nodes[1])}else s.kind==="function"&&s.value[0]===":"&&s.nodes[0]?.kind==="selector"&&s.nodes[0]?.value[0]===":"&&(l=!0,s.nodes.unshift({kind:"selector",value:"*"}))}),l&&(i.selector=$e(o))}}),Y(r)}catch{return Symbol()}})}var Si=Symbol();function ga(e){let t=e.storage[ft],r=new y(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r}function ha(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}function Ze(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],l=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let c=t.parseCandidate(u);if(c.length===0){r?.(u);continue}l.set(u,c)}let s=0;(n??!0)&&(s|=1);let a=t.getVariantOrder();for(let[u,c]of l){let p=!1;for(let f of c){let m=t.compileAstNodes(f,s);if(m.length!==0){p=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let w of f.variants)h|=1n<<BigInt(a.get(w));i.set(d,{properties:g,variants:h,candidate:u}),o.push(d)}}}p||r?.(u)}return o.sort((u,c)=>{let p=i.get(u),f=i.get(c);if(p.variants-f.variants!==0n)return Number(p.variants-f.variants);let m=0;for(;m<p.properties.order.length&&m<f.properties.order.length&&p.properties.order[m]===f.properties.order[m];)m+=1;return(p.properties.order[m]??1/0)-(f.properties.order[m]??1/0)||f.properties.count-p.properties.count||Jt(p.candidate,f.candidate)}),{astNodes:o,nodeSorting:i}}function Je(e,t){let r=0,n=B("&",e),i=new Set,o=new y(()=>new Set),l=new y(()=>new Set);k([n],(p,f)=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return k(p.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),v.Skip;if(p.name==="@utility"){let m=p.params.replace(/-\*$/,"");l.get(m).add(p),k(p.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(p);for(let g of $i(d,t))o.get(p).add(g)}});return}if(p.name==="@apply"){if(f.parent===null)return;r|=1,i.add(f.parent);for(let m of $i(p,t))for(let d of f.path())i.has(d)&&o.get(d).add(m)}}});let s=new Set,a=[],u=new Set;function c(p,f=[]){if(!s.has(p)){if(u.has(p)){let m=f[(f.indexOf(p)+1)%f.length];throw p.kind==="at-rule"&&p.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&k(p.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let w of t.parseCandidate(h))switch(w.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===w.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
20
8
|
|
|
21
|
-
|
|
9
|
+
${Y([p])}
|
|
10
|
+
Relies on:
|
|
22
11
|
|
|
23
|
-
`;s+=`
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
`,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`}s+=`}
|
|
32
|
-
`}}s+=`}
|
|
33
|
-
`,l.append(So.parse(s+r.css))}a.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function ii(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Je.relative(Je.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),$t(n)}function ni(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import aa from"node:fs/promises";import{dirname as la,resolve as sa}from"node:path";import"postcss";var To=process.env.FEATURES_ENV!=="stable",No=process.env.FEATURES_ENV!=="stable",Vo=process.env.FEATURES_ENV!=="stable",Eo=process.env.FEATURES_ENV!=="stable",Ro=process.env.FEATURES_ENV!=="stable",Po=process.env.FEATURES_ENV!=="stable",_o=process.env.FEATURES_ENV!=="stable",Oo=process.env.FEATURES_ENV!=="stable",Do=process.env.FEATURES_ENV!=="stable",Io=process.env.FEATURES_ENV!=="stable",Uo=process.env.FEATURES_ENV!=="stable",jo=process.env.FEATURES_ENV!=="stable";function Ee(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}function ye(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 Lo={"--alpha":Ko,"--spacing":Mo,"--theme":zo,theme:Wo};function Ko(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 ye(i,a)}function Mo(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 zo(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=A(a);return qo(s,l),x(s)}return a}function Wo(e,t,r,...n){r=Bo(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 Lc=new RegExp(Object.keys(Lo).map(e=>`${e}\\(`).join("|"));function Bo(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 qo(e,t){I(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 ve(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Re(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:!ve(e[a])||!ve(i[a])?e[a]=i[a]:e[a]=Re({},[e[a],i[a]],r,n),n.pop()}return e}function Vt(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=re(i),[c,f]=Yo(e.theme,u),p=r(si(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof c!="object")return typeof f!="object"&&f&4?p??c:c;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let m=Re({},[p],(d,h)=>h);if(c===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let h in p.__CSS_VALUES__)d[h]=p[h],delete m[h];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&si(m,d.split("-"))!==void 0||(m[Le(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(f)&&Array.isArray(p)){let m=c[0],d=c[1];f[0]&4&&(m=p[0]??m);for(let h of Object.keys(d))f[1][h]&4&&(d[h]=p[1][h]??d[h]);return[m,d]}return c??p})();return s&&typeof o=="string"&&(o=ye(o,s)),o??a}}function Yo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=q(t),n=new Map,i=new b(()=>new Map),a=e.namespace(`--${r}`);if(a.size===0)return[null,0];let l=new Map;for(let[c,f]of a){if(!c||!c.includes("--")){n.set(c,f),l.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let p=c.indexOf("--"),m=c.slice(0,p),d=c.slice(p+2);d=d.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),i.get(m===""?null:m).set(d,[f,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,f]of i){let p=n.get(c);if(typeof p!="string")continue;let m={},d={};for(let[h,[g,w]]of f)m[h]=g,d[h]=w;n.set(c,[p,m]),l.set(c,[s,d])}let o={},u={};for(let[c,f]of n)ui(o,[c??"DEFAULT"],f);for(let[c,f]of l)ui(u,[c??"DEFAULT"],f);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 si(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 ui(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 Ge(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(B(n,[S("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(E(n,String(i)))}else if(Array.isArray(i))for(let a of i)typeof a=="string"?t.push(E(n,a)):t.push(B(n,Ge(a)));else i!==null&&t.push(B(n,Ge(i)));return t}function ci(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(S("@keyframes",r,Ge(n)));return t}var Ye={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function ce(e){return{__BARE_VALUE__:e}}var L=ce(e=>{if(N(e.value))return e.value}),P=ce(e=>{if(N(e.value))return`${e.value}%`}),ne=ce(e=>{if(N(e.value))return`${e.value}px`}),fi=ce(e=>{if(N(e.value))return`${e.value}ms`}),Qe=ce(e=>{if(N(e.value))return`${e.value}deg`}),ta=ce(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!N(t)||!N(r)))return e.fraction}),pi=ce(e=>{if(N(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ra={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",...ta},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...P}),backdropContrast:({theme:e})=>({...e("contrast"),...P}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...P}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Qe}),backdropInvert:({theme:e})=>({...e("invert"),...P}),backdropOpacity:({theme:e})=>({...e("opacity"),...P}),backdropSaturate:({theme:e})=>({...e("saturate"),...P}),backdropSepia:({theme:e})=>({...e("sepia"),...P}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ne},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...P},caretColor:({theme:e})=>e("colors"),colors:()=>({...Ye}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...L},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...P},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ne}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...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%",...P},grayscale:{0:"0",DEFAULT:"100%",...P},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))",...pi},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))",...pi},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%",...P},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",...P},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",...ne},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Qe},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...P},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",...P},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%",...P},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",...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",...ne},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...L}};var ia={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(ia)};for(let i of t)Rt(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=oa(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function na(e,t){if(Array.isArray(e)&&ve(e[0]))return e.concat(t);if(Array.isArray(t)&&ve(t[0])&&ve(e))return[e,...t];if(Array.isArray(t))return t}function Rt(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??[])Rt(e,{path:n,base:r,config:o,reference:i});for(let o of a)e.plugins.push(o),o.config&&Rt(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 oa(e){let t=new Set,r=Vt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Ye});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 Re({},s,na)}}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 mi({center:e,padding:t,screens:r},n){let i=[],a=null;if(e&&i.push(E("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(E("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)=>Ee(s[1],o[1],"asc")),l.length>0){let[s]=l[0];i.push(S("@media",`(width >= --theme(--breakpoint-${s}))`,[E("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})`,[E("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)=>Ee(s[1],o[1],"asc"));for(let[s,,o]of l)if(a&&a.has(s))a.get(s).nodes.push(E("padding-inline",o));else{if(a)continue;i.push(S("@media",`(width >= theme(--breakpoint-${s}))`,[E("padding-inline",o)]))}}if(a)for(let[,l]of a)i.push(l);return i}function Pt({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 di(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(", ")}function hi(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 yi(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[a,...l]=y(i.params," "),s=hi(A(a)),o=s.uri[0]===".",u=s.uri.endsWith(".css");if(o&&u)return;let c=sa(la(r),s.uri);u||(c+=".css"),n.push(aa.stat(c).then(()=>{let f=u?"":".css",p=o?s.uri:`./${s.uri}`;i.params=[`'${p}${f}'`,...l].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function vi({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=fe(e,[{base:"",config:t}]),a=i?.theme?.screens||{},l=new b(s=>{let o=e?.resolveThemeValue(`--breakpoint-${s}`,!0)??a?.[s];return typeof o=="string"?`(width >= theme(--breakpoint-${s}))`:o?di(o):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let o=s.params.match(/screen\(([^)]+)\)/);if(!o)return;let u=l.get(o[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as ua}from"postcss";function wi(){function e(t){let r="",n=[],i=[],a=null;t.each(l=>{if(l.type==="atrule"){if(l.name==="config"||l.name==="source"||l.name==="theme"||l.name==="utility"||l.name==="custom-variant"||l.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="tailwind"&&l.params==="base"||l.name==="import"&&l.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="base",r="base";return}if(l.name==="tailwind"&&l.params==="components"||l.name==="import"&&l.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="components",r="components";return}if(l.name==="tailwind"&&l.params==="utilities"||l.name==="import"&&l.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),a??="utilities",r="utilities";return}if(l.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[l]]);return}}r===""&&(l.type==="comment"||l.type==="atrule"&&!l.nodes||l.type==="atrule"&&l.name==="charset")||n.push(l)});for(let[l,s]of i){let o=l||a||"";if(o===""||s.every(f=>f.type==="comment"))continue;if(s.every(f=>f.type==="atrule"&&f.name==="import")){for(let f of s)if(!(f.type!=="atrule"||f.name!=="import")&&!f.params.includes("layer(")){let p=y(f.params," ");p.splice(1,0,`layer(${o})`),f.params=p.join(" "),f.raws.tailwind_injected_layer=!0}continue}let u=s[0],c=new ua({name:"layer",params:o,nodes:s.map(f=>f===u?f:f.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import ca from"dedent";import fa from"postcss";var pa="currentColor",ma=ca,da=ma`
|
|
34
|
-
/*
|
|
35
|
-
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
|
|
36
|
-
so we've added these compatibility styles to make sure everything still
|
|
37
|
-
looks the same as it did with Tailwind CSS v3.
|
|
38
|
-
|
|
39
|
-
If we ever want to remove these styles, we need to add an explicit border
|
|
40
|
-
color utility to any element that depends on these defaults.
|
|
41
|
-
*/
|
|
42
|
-
@layer base {
|
|
43
|
-
*,
|
|
44
|
-
::after,
|
|
45
|
-
::before,
|
|
46
|
-
::backdrop,
|
|
47
|
-
::file-selector-button {
|
|
48
|
-
border-color: theme(borderColor.DEFAULT);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`;function ki({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(a){let l=`--${q(re(a))}`;return!!e.theme.get([l])}function i(a){let l=!1;if(a.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return l=!0,!1}),!l)return;let s="";r!==pa&&(s+=da,s+=`
|
|
52
|
-
|
|
53
|
-
`),s=`
|
|
54
|
-
@tw-bucket compatibility {
|
|
55
|
-
${s}
|
|
56
|
-
}
|
|
57
|
-
`;let o=fa.parse(s);o.walkDecls(u=>{u.value.includes("theme(")&&(u.value=ga(A(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentColor)":null))}),a.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),a.append(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function ga(e,t){return I(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=ha(a);let s=r.nodes.slice(l+1),o=s.length>0?t(a,x(s)):t(a);if(o===null)return;n(A(o))}}),x(e)}function ha(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 Ze}from"postcss";var _t=["theme","base","components","utilities"];function bi(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,a=null,l=[],s=null,o=null,u=null,c=null,f=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))f.push("base"),l.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))f.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||Xe(l).before(new Ze({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),a?.remove()):a!==null?(o||Xe(l).before(new Ze({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),a?.remove()):i!==null&&(c||Xe(l).before(new Ze({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Xe(l).before(new Ze({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=f.toSorted((m,d)=>_t.indexOf(m)-_t.indexOf(d));if(f.some((m,d)=>m!==p[d])){let m=_t.toSorted((d,h)=>f.indexOf(d)-f.indexOf(h));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Xe(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 xi({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Ct(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 Ci(){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}}import{__unstable__loadDesignSystem as Pi,compile as $a}from"@tailwindcss/node";import Ta from"node:fs/promises";import oe,{dirname as _i}from"node:path";import{fileURLToPath as Na}from"node:url";import we from"enhanced-resolve";import{createJiti as Ca}from"jiti";import Dt from"node:fs";import kd from"node:fs/promises";import xd,{dirname as $i}from"node:path";import{pathToFileURL as Ti}from"node:url";import{__unstable__loadDesignSystem as Sd,compile as $d,compileAst as Td,Features as Nd}from"tailwindcss";import Ot from"node:fs/promises";import Pe from"node:path";var ya=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],va=[".js",".cjs",".mjs"],wa=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],ka=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function ba(e,t){for(let r of t){let n=`${e}${r}`;if((await Ot.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Ot.access(n).then(()=>!0,()=>!1))return n}return null}async function Ai(e,t,r,n){let i=va.includes(n)?wa:ka,a=await ba(Pe.resolve(r,t),i);if(a===null||e.has(a))return;e.add(a),r=Pe.dirname(a),n=Pe.extname(a);let l=await Ot.readFile(a,"utf-8"),s=[];for(let o of ya)for(let u of l.matchAll(o))u[1].startsWith(".")&&s.push(Ai(e,u[1],r,n));await Promise.all(s)}async function Si(e){let t=new Set;return await Ai(t,e,Pe.dirname(e),Pe.extname(e)),Array.from(t)}import*as xa from"node:path";async function et(e,t,r,n){if(e[0]!=="."){let s=await Ei(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await Vi(Ti(s).href);return{base:$i(s),module:o.default??o}}let i=await Ei(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[a,l]=await Promise.all([Vi(Ti(i).href+"?id="+Date.now()),Si(i)]);for(let s of l)r(s);return{base:$i(i),module:a.default??a}}var Ni=null;async function Vi(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 Ni??=Ca(import.meta.url,{moduleCache:!1,fsCache:!1}),await Ni.import(e)}}var It=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Rd=we.ResolverFactory.createResolver({fileSystem:new we.CachedInputFileSystem(Dt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:It});var Aa=we.ResolverFactory.createResolver({fileSystem:new we.CachedInputFileSystem(Dt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:It}),Sa=we.ResolverFactory.createResolver({fileSystem:new we.CachedInputFileSystem(Dt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:It});async function Ei(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 Ri(Aa,e,t).catch(()=>Ri(Sa,e,t))}function Ri(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(a,l)=>{if(a)return i(a);n(l)}))}var Va=Na(import.meta.url),_e=_i(Va),Oi=String.raw;async function Di(e,t){try{e===null?e=await Ut(t.base):oe.isAbsolute(e)||(e=oe.resolve(t.base,e));let r=oe.relative(_e,e);!r.startsWith(".")&&!oe.isAbsolute(r)&&(r="./"+r);let n=await Ea(e),i=n.prefix?Fr(n.prefix):null,a=Oi`
|
|
58
|
-
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
59
|
-
@config '${r}';
|
|
60
|
-
`,[l,s]=await Promise.all([$a(a,{base:_e,onDependency:()=>{}}),Pi(a,{base:_e})]);return{designSystem:s,sources:l.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){T("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Ea(e){let[t,r]=await Promise.all([Pi(Oi`
|
|
61
|
-
@import 'tailwindcss';
|
|
62
|
-
`,{base:_e}),et(e,_e,()=>{}).then(n=>n.module)]);return fe(t,[{base:_i(e),config:r,reference:!1}]).resolvedConfig}var Ra=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Ut(e,t=e){for(let r of Pa(e,t))for(let n of Ra){let i=oe.resolve(r,n);try{return await Ta.access(i),i}catch{}}throw new Error(`No configuration file found for ${v(O(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${v("--config")} option.`)}function*Pa(e,t=e){let r=oe.resolve(e),n=oe.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=oe.dirname(i);while(i!==n);yield n}async function Da(e,t,r){return typeof e=="string"&&(e=await ie.fromString(e),e.file=r??null),tt().use(yi()).use(Qr(t)).use(vi(t)).use(Ci()).use(ti(e)).use(wi()).use(bi(t)).use(oi(e,t)).use(ki(t)).use(xi(t)).process(e.root,{from:e.file??void 0})}async function Ii(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Da(e,t)}async function Ui(e){let t=await Oa(),r=[],n=new b(o=>{if(t(o))return null;try{let u=ie.loadSync(o);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=tt([{postcssPlugin:"mark-import-nodes",AtRule:{import(o){let u=o.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let c=o.source?.input.file?H.dirname(o.source.input.file):process.cwd(),f=!1;try{if(u[0]!==".")try{f=dt(`./${u}`,c)}catch{}f||(f=dt(u,c))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;T(`Failed to resolve import: ${v(u)} in ${v(O(o.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!f)return;let p=n.get(f);if(!p)return;o.raws.tailwind_destination_sheet_id=p.id;let m=o.source?.input.file?n.get(o.source.input.file):void 0,d=[];for(let h of y(o.params," "))h.startsWith("layer(")&&h.endsWith(")")&&d.push(h.slice(6,-1).trim());if(m){let h={layers:d};p.parents.add({item:m,meta:h}),m.children.add({item:p,meta:h})}}}}]);for(let o of e)o.file&&(n.set(o.file,o),r.push(()=>i.process(o.root,{from:o.file??void 0})));for(;r.length>0;)await r.shift()();let a=process.cwd();function l(o){let u=[];for(let c of o){if(!c.item.file)continue;let f=c.item.file.replace(a,""),p=c.meta.layers.join(", ");p.length>0?u.push(`${f} (layers: ${p})`):u.push(f)}return u.join(" <- ")}let s=[];for(let o of e){if(!o.file)continue;let{convertiblePaths:u,nonConvertiblePaths:c}=o.analyzeImportPaths();if(!(u.length>0&&c.length>0))continue;o.canMigrate=!1;let p=o.file.replace(a,"");for(let m of u)s.push(`- ${p} <- ${l(m)}`);for(let m of c)s.push(`- ${p} <- ${l(m)}`)}if(s.length===0){let o=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,o.add(u))});if(o.size<=1)return;{let u=new b(()=>new Set);for(let f of o)u.get(f).add(f);let c=!0;e:for(;c;){c=!1;for(let[f,p]of u)for(let[m,d]of u){if(f===m)continue;let h=[f].concat(Array.from(f.ancestors()).reverse()),g=[m].concat(Array.from(m.ancestors()).reverse());for(let w of h)for(let C of g){if(w!==C)continue;let M=w;u.delete(f),u.delete(m);for(let Y of p)u.get(M).add(Y);for(let Y of d)u.get(M).add(Y);c=!0;continue e}}}for(let[f,p]of u){f.isTailwindRoot=!0;for(let m of p)f!==m&&(m.isTailwindRoot=!1)}return}}{let o=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
|
|
63
|
-
`;throw o+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
64
|
-
`,new Error(o+s.join(`
|
|
65
|
-
`))}}async function ji(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.
|
|
66
|
-
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${v("@tailwind")}.`);let i=n.filter(u=>{let c=!1;return u.root.walkAtRules("config",f=>{let p=H.resolve(H.dirname(u.file),f.params.slice(1,-1));return u.linkedConfigPath=p,c=!0,!1}),!c});if(i.length===0)return;let a=new Map,l=new b(()=>new Set);for(let u of i){if(!u.file)continue;let c=t;t===null?c=await Ut(H.dirname(u.file),r):H.isAbsolute(c)||(c=H.resolve(r,c)),a.set(u,c),l.get(c).add(u)}let s=new Set;for(let u of l.values())if(u.size>1)for(let c of u)s.add(c);if(s.size>1){for(let u of s)T(`Could not determine configuration file for: ${v(O(u.file,r))}
|
|
67
|
-
Update your stylesheet to use ${v("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let o=O;for(let[u,c]of a)try{if(!u||!u.file)return;V(`Linked ${v(o(c,r))} to ${v(o(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let f=H.relative(H.dirname(u.file),c);!f.startsWith(".")&&!H.isAbsolute(f)&&(f="./"+f),f=_a(f);{let p=u.root,m=tt.atRule({name:"config",params:`'${f}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?u.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(f){T("Could not load the configuration file: "+f.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Fi(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;$(s.root,c=>{if(c.type==="atrule"&&c.name==="utility")o=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.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=tt.root();$(s.root,p=>{if(p.type==="atrule"&&p.name==="utility")return o.append(p),1});let u=s.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(u);)c+=1,u=s.file.replace(/\.css$/,`.utilities.${c}.css`);let f=await ie.fromRoot(o,u);f.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(s,f),t.set(f.id,f)}for(let[s,o]of i){for(let u of s.parents){let c=i.get(u.item);c&&o.parents.add({item:c,meta:u.meta})}for(let u of s.children){let c=i.get(u.item);c&&o.children.add({item:c,meta:u.meta})}}for(let s of e){let o=i.get(s),u=new Set;for(let c of s.importRules){let f=c.raws.tailwind_destination_sheet_id;if(!f)continue;let p=t.get(f);if(!p)continue;let m=i.get(p);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let h=d[1],g=d[2],w=g.replace(/\.css$/,m.extension),C=c.clone({params:`${h}${w}${h}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:m.id}});o?u.add(C):c.after(C)}o&&u.size>0&&o.root.prepend(Array.from(u))}let a=new b(()=>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 c=t.get(u);c&&a.get(c).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{Scanner as Hi}from"@tailwindcss/oxide";import Ha from"node:fs/promises";import Ji from"node:path";import{fileURLToPath as Ja}from"node:url";var Gi=wn(zi());import nt from"tree-sitter";import ot from"tree-sitter-typescript";var jt=new nt;jt.setLanguage(ot.typescript);var Ft=String.raw,za=new nt.Query(ot.typescript,Ft`
|
|
12
|
+
${Y([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f),f.pop();s.add(p),u.delete(p),a.push(p)}}for(let p of i)c(p);for(let p of a)"nodes"in p&&k(p.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),d={},g=0;for(let[h,w]of m.entries())h%2===0&&(d[w]=g),g+=w.length;{let h=Object.keys(d),w=Ze(h,t,{respectImportant:!1,onInvalidCandidate:A=>{if(t.theme.prefix&&!A.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${A}\`. Did you mean \`${t.theme.prefix}:${A}\`?`);if(t.invalidCandidates.has(A))throw new Error(`Cannot apply utility class \`${A}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let I=b(A,":");if(I.length>1){let it=I.pop();if(t.candidatesToCss([it])[0]){let Pe=t.candidatesToCss(I.map(_e=>`${_e}:[--tw-variant-check:1]`)),pe=I.filter((_e,zt)=>Pe[zt]===null);if(pe.length>0){if(pe.length===1)throw new Error(`Cannot apply utility class \`${A}\` because the ${pe.map(_e=>`\`${_e}\``)} variant does not exist.`);{let _e=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${A}\` because the ${_e.format(pe.map(zt=>`\`${zt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${A}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${A}\``)}}),S=f.src,N=w.astNodes.map(A=>{let I=w.nodeSorting.get(A)?.candidate,it=I?d[I]:void 0;if(A=J(A),!S||!I||it===void 0)return k([A],pe=>{pe.src=S}),A;let Pe=[S[0],S[1],S[2]];return Pe[1]+=7+it,Pe[2]=Pe[1]+I.length,k([A],pe=>{pe.src=Pe}),A}),T=[];for(let A of N)if(A.kind==="rule")for(let I of A.nodes)T.push(I);else T.push(A);return v.Replace(T)}});return r}function*$i(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var Sa=32,Aa=9;var $a=40;function Ei(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Sa||o===Aa||o===$a){r=e.slice(0,i),n=e.slice(i);break}}return R(r.trim(),n.trim(),t)}function Ri(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let l=e[o];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?r=$(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=$(l.nodes);continue}n=$(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Me(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Qe(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let l=r(e[o],i[o],n);l!==void 0?e[o]=l:!Me(e[o])||!Me(i[o])?e[o]=i[o]:e[o]=Qe({},[e[o],i[o]],r,n),n.pop()}return e}function nr(e,t,r){return function(i,o){let l=i.lastIndexOf("/"),s=null;l!==-1&&(s=i.slice(l+1).trim(),i=i.slice(0,l).trim());let a=(()=>{let u=ee(i),[c,p]=Ta(e.theme,u),f=r(Vi(t()??{},u)??null);if(typeof f=="string"&&(f=f.replace("<alpha-value>","1")),typeof c!="object")return typeof p!="object"&&p&4?f??c:c;if(f!==null&&typeof f=="object"&&!Array.isArray(f)){let m=Qe({},[f],(d,g)=>g);if(c===null&&Object.hasOwn(f,"__CSS_VALUES__")){let d={};for(let g in f.__CSS_VALUES__)d[g]=f[g],delete m[g];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(f?.__CSS_VALUES__?.[d]&4&&Vi(m,d.split("-"))!==void 0||(m[Ge(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(p)&&Array.isArray(f)){let m=c[0],d=c[1];p[0]&4&&(m=f[0]??m);for(let g of Object.keys(d))p[1][g]&4&&(d[g]=f[1][g]??d[g]);return[m,d]}return c??f})();return s&&typeof a=="string"&&(a=Ue(a,s)),a??o}}function Ta(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=X(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let l=new Map;for(let[c,p]of o){if(!c||!c.includes("--")){n.set(c,p),l.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let f=c.indexOf("--"),m=c.slice(0,f),d=c.slice(f+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,p]of i){let f=n.get(c);if(typeof f!="string")continue;let m={},d={};for(let[g,[h,w]]of p)m[g]=h,d[g]=w;n.set(c,[f,m]),l.set(c,[s,d])}let a={},u={};for(let[c,p]of n)Pi(a,[c??"DEFAULT"],p);for(let[c,p]of l)Pi(u,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[a?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in a&&Object.keys(a).length===1?[a.DEFAULT,u.DEFAULT??0]:(a.__CSS_VALUES__=u,[a,u])}function Vi(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e==null||typeof e!="object"||!Object.hasOwn(e,n)){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function Pi(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 mt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(B(n,[R("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(E(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(E(n,o)):t.push(B(n,mt(o)));else t.push(B(n,mt(i)));return t}function _i(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(R("@keyframes",r,mt(n)));return t}var dt={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Te(e){return{__BARE_VALUE__:e}}var re=Te(e=>{if(U(e.value))return e.value}),L=Te(e=>{if(U(e.value))return`${e.value}%`}),ge=Te(e=>{if(U(e.value))return`${e.value}px`}),Oi=Te(e=>{if(U(e.value))return`${e.value}ms`}),gt=Te(e=>{if(U(e.value))return`${e.value}deg`}),Na=Te(e=>{if(e.fraction===null)return;let[t,r]=b(e.fraction,"/");if(!(!U(t)||!U(r)))return e.fraction}),Di=Te(e=>{if(U(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Va={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...Na},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...L}),backdropContrast:({theme:e})=>({...e("contrast"),...L}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...L}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...gt}),backdropInvert:({theme:e})=>({...e("invert"),...L}),backdropOpacity:({theme:e})=>({...e("opacity"),...L}),backdropSaturate:({theme:e})=>({...e("saturate"),...L}),backdropSepia:({theme:e})=>({...e("sepia"),...L}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...ge},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...L},caretColor:({theme:e})=>e("colors"),colors:()=>({...dt}),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",...re},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...L},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...ge}),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",...re},flexShrink:{0:"0",DEFAULT:"1",...re},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...L},grayscale:{0:"0",DEFAULT:"100%",...L},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...re},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",...re},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",...re},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",...re},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))",...Di},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))",...Di},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",...gt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...L},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...re},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...L},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...re},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},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",...ge},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...gt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...L},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...L},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...L},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...gt},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",...re},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",...ge},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ge},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",...Oi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Oi},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",...re}};var Pa={blocklist:[],future:{},experimental:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Ee(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Pa)};for(let i of t)or(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=Oa(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function _a(e,t){if(Array.isArray(e)&&Me(e[0]))return e.concat(t);if(Array.isArray(t)&&Me(t[0])&&Me(e))return[e,...t];if(Array.isArray(t))return t}function or(e,{config:t,base:r,path:n,reference:i,src:o}){let l=[];for(let u of t.plugins??[])"__isOptionsFunction"in u?l.push({...u(),reference:i,src:o}):"handler"in u?l.push({...u,reference:i,src:o}):l.push({handler:u,reference:i,src:o});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let u of t.presets??[])or(e,{path:n,base:r,config:u,reference:i,src:o});for(let u of l)e.plugins.push(u),u.config&&or(e,{path:n,base:r,config:u.config,reference:!!u.reference,src:u.src??o});let s=t.content??[],a=Array.isArray(s)?s:s.files;for(let u of a)e.content.files.push(typeof u=="object"?u:{base:r,pattern:u});e.configs.push(t)}function Oa(e){let t=new Set,r=nr(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:dt});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let l=o.theme??{},s=l.extend??{};for(let a in l)a!=="extend"&&t.add(a);Object.assign(e.theme,l);for(let a in s)e.extend[a]??=[],e.extend[a].push(s[a])}delete e.theme.extend;for(let o in e.extend){let l=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let s=l.map(i);return Qe({},s,_a)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let l=e.theme.screens[o];l&&typeof l=="object"&&("raw"in l||"max"in l||"min"in l&&(e.theme.screens[o]=l.min))}return t}function Ii({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(E("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(E("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((s,a)=>Ye(s[1],a[1],"asc")),l.length>0){let[s]=l[0];i.push(R("@media",`(width >= --theme(--breakpoint-${s}))`,[E("max-width","none")]))}for(let[s,a]of Object.entries(r)){if(typeof a=="object")if("min"in a)a=a.min;else continue;o.set(s,R("@media",`(width >= ${a})`,[E("max-width",a)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,a])=>[s,n.theme.resolveValue(s,["--breakpoint"]),a]).filter(Boolean);l.sort((s,a)=>Ye(s[1],a[1],"asc"));for(let[s,,a]of l)if(o&&o.has(s))o.get(s).nodes.push(E("padding-inline",a));else{if(o)continue;i.push(R("@media",`(width >= theme(--breakpoint-${s}))`,[E("padding-inline",a)]))}}if(o)for(let[,l]of o)i.push(l);return i}function lr({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let l of o)l===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):l.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function Ui(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}var Ia=64;function se(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function R(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function B(e,t=[]){return e.charCodeAt(0)===Ia?Ei(e,t):se(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function pt(e){return{kind:"comment",value:e}}function J(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(J),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(J),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(J),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(J),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function Y(e,t){let r=0,n={file:null,code:""};function i(l,s=0){let a="",u=" ".repeat(s);if(l.kind==="declaration"){if(a+=`${u}${l.property}: ${l.value}${l.important?" !important":""};
|
|
13
|
+
`,t){r+=u.length;let c=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let p=r;r+=2,l.dst=[n,c,p]}}else if(l.kind==="rule"){if(a+=`${u}${l.selector} {
|
|
14
|
+
`,t){r+=u.length;let c=r;r+=l.selector.length,r+=1;let p=r;l.dst=[n,c,p],r+=2}for(let c of l.nodes)a+=i(c,s+1);a+=`${u}}
|
|
15
|
+
`,t&&(r+=u.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let c=`${u}${l.name} ${l.params};
|
|
16
|
+
`;if(t){r+=u.length;let p=r;r+=l.name.length,r+=1,r+=l.params.length;let f=r;r+=2,l.dst=[n,p,f]}return c}if(a+=`${u}${l.name}${l.params?` ${l.params} `:" "}{
|
|
17
|
+
`,t){r+=u.length;let c=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let p=r;l.dst=[n,c,p],r+=2}for(let c of l.nodes)a+=i(c,s+1);a+=`${u}}
|
|
18
|
+
`,t&&(r+=u.length,r+=2)}else if(l.kind==="comment"){if(a+=`${u}/*${l.value}*/
|
|
19
|
+
`,t){r+=u.length;let c=r;r+=2+l.value.length+2;let p=r;l.dst=[n,c,p],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return a}let o="";for(let l of e)o+=i(l,0);return n.code=o,o}function Ua(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 ar(e){let t=Ua(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function ht(e,t,r,n){if(e[0]!=="."){let s=await Fi(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await ji(Mi(s).href);return{path:s,base:Li.dirname(s),module:a.default??a}}let i=await Fi(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([ji(Mi(i).href+"?id="+Date.now()),Rr(i)]);for(let s of l)r(s);return{path:i,base:Li.dirname(i),module:o.default??o}}var zi=null;async function ji(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 zi??=Ma(import.meta.url,{moduleCache:!1,fsCache:!1}),await zi.import(e)}}var ur=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Cg=ze.ResolverFactory.createResolver({fileSystem:new ze.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:ur});var za=ze.ResolverFactory.createResolver({fileSystem:new ze.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:ur}),ja=ze.ResolverFactory.createResolver({fileSystem:new ze.CachedInputFileSystem(sr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:ur});async function Fi(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 Ki(za,e,t).catch(()=>Ki(ja,e,t))}function Ki(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,l)=>{if(o)return i(o);n(l)}))}var nn=_o(Yi());import kt from"tree-sitter";import wt from"tree-sitter-typescript";var cr=new kt;cr.setLanguage(wt.typescript);var fr=String.raw,Ga=new kt.Query(wt.typescript,fr`
|
|
68
20
|
; export default {}
|
|
69
21
|
(export_statement
|
|
70
22
|
value: [
|
|
@@ -115,7 +67,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
115
67
|
]
|
|
116
68
|
)
|
|
117
69
|
)
|
|
118
|
-
`),
|
|
70
|
+
`),Ha=new kt.Query(wt.typescript,fr`
|
|
119
71
|
(call_expression
|
|
120
72
|
function: [
|
|
121
73
|
(call_expression
|
|
@@ -168,7 +120,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
168
120
|
(string (string_fragment) @module_string)
|
|
169
121
|
)
|
|
170
122
|
)
|
|
171
|
-
`);function
|
|
123
|
+
`);function pr(e){try{let r=cr.parse(e).rootNode,n=Za(e),i=Ga.matches(r),o=[];for(let l of i)for(let s of l.captures)if(s.name==="imports"){for(let a of s.node.children)if(!(a.type==="["||a.type==="]"||a.type===","))switch(a.type){case"identifier":let u=n[a.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([a.children[1].text,null]);break;case"call_expression":let c=Ha.matches(a);if(c.length===0)return null;let p=null,f=null,m=null,d=null,g=c.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let w=g[h];switch(w.name){case"module_identifier":{f=w.node.text;break}case"module_string":{p=w.node.text;break}case"property":{if(d!==null)return null;d=w.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(d===null)return null;m??={},m[d]=Gi(w),d=null;break}case"array_value":{if(d===null)return null;m??={};let S=[],N=h;e:for(let T=h+1;T<g.length;T++){let A=g[T];switch(A.name){case"property":{if(A.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":S.push(Gi(A)),N=T}}h=N,m[d]=S,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(f!==null){let h=n[f];if(!h||h.export!==null&&h.export!=="*")return null;p=h.module}if(p===null)return null;o.push([p,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var Ja=new kt.Query(wt.typescript,fr`
|
|
172
124
|
; ESM import
|
|
173
125
|
(import_statement
|
|
174
126
|
(import_clause
|
|
@@ -207,35 +159,98 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
207
159
|
)
|
|
208
160
|
)
|
|
209
161
|
)
|
|
210
|
-
`);function
|
|
211
|
-
`)
|
|
162
|
+
`);function Za(e){let r=cr.parse(e).rootNode,n=Ja.matches(r),i={};for(let o of n){let l=[],s="";for(let a=0;a<o.captures.length;a++){let u=o.captures[a];switch(u.name){case"default":l.push({name:u.node.text,export:null});break;case"imported-name":l.push({name:u.node.text,export:u.node.text});break;case"imported-from":s=u.node.text;break;case"imported-namespace":l.push({name:u.node.text,export:"*"});break;case"imported-alias":if(l.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let c=l[l.length-1],p=c.name;c.export=p,c.name=u.node.text;break}}for(let{name:a,export:u}of l)i[a]={module:s,export:u}}return i}function Gi(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 is from"fs";import Zi from"path";import{stripVTControlCharacters as Qi}from"util";import W from"picocolors";import je from"enhanced-resolve";import mr from"fs";import{createRequire as Qa}from"module";var Xa=Qa(import.meta.url).resolve;function Hi(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Xa(e)}var es=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(mr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),ts=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(mr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Ji(e,t){try{return es.resolveSync({},t,e)}catch{return ts.resolveSync({},t,e)}}var rs=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(mr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function dr(e,t){return rs.resolveSync({},t,e)}var bt={indent:2};function xt(){return`${W.italic(W.bold(W.blue("\u2248")))} tailwindcss ${W.blue(`v${ns()}`)}`}function C(e){return`${W.dim(W.blue("`"))}${W.blue(e)}${W.dim(W.blue("`"))}`}function V(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Zi.relative(t,e);return n.startsWith("..")||(n=`.${Zi.sep}${n}`),r&&n.length>e.length?e:n}function Xe(e,t){if(e.includes(`
|
|
163
|
+
`))return e.split(`
|
|
164
|
+
`).flatMap(l=>l?Xe(l,t):[""]);let r=e.split(" "),n=[],i="",o=0;for(let l of r){let s=Qi(l).length;o+s+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+l,o+=s+(o?1:0)}return o&&n.push(i),n}function et(e,t=0){return`${" ".repeat(t+bt.indent)}${e}`}function Ct(e,{art:t=W.gray("\u2502"),prefix:r="",print:n=ve}){let i=r.length,o=" ",l=o.length,s=Qi(t).length,u=process.stderr.columns-i-l*2-s;Xe(e,u).map((c,p)=>n(`${t}${o}${p===0?r:" ".repeat(i)}${c}${o}`)),n()}function z(e,{prefix:t="",print:r=ve}={}){Ct(e,{art:W.green("\u2502"),prefix:t,print:r})}function _(e,{prefix:t="",print:r=ve}={}){Ct(e,{art:W.blue("\u2502"),prefix:t,print:r})}function O(e,{prefix:t="",print:r=ve}={}){Ct(e,{art:W.red("\u2502"),prefix:t,print:r})}function St(e,{prefix:t="",print:r=ve}={}){Ct(e,{art:W.yellow("\u2502"),prefix:t,print:r})}function ve(e=""){process.stderr.write(`${e}
|
|
165
|
+
`)}function G(e=""){process.stdout.write(`${e}
|
|
166
|
+
`)}function ns(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(is.readFileSync(Hi("tailwindcss/package.json"),"utf-8"));return e}var as=ls(import.meta.url),ss=rn.dirname(as);async function on(e,t,r){let[n,i]=await Promise.all([ht(t,ss,()=>{}).then(u=>u.module),os.readFile(t,"utf-8")]);if(!ms(n,i))return _(`The configuration file at ${C(V(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let o=[],l=[],s=[];if("darkMode"in n&&s.push(cs(n)),"content"in n&&(o=await ps(n,t,r)),"theme"in n){let u=await us(e,n,r);u&&s.push(u)}"corePlugins"in n&&_("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let a=pr(i);if(a!==null)for(let[u,c]of a)l.push({base:r,path:u,options:c});return{sources:o,plugins:l,css:s.join(`
|
|
167
|
+
`)}}async function us(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=Ee(e,[n]),l=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));vs(e,i,o);let s="",a="",u=[],c="",p=new Map;{if("keyframes"in i.theme&&(c+=gs(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let f=Ii(i.theme.container,e);f.length>0&&(s+=`
|
|
212
168
|
@tw-bucket theme {
|
|
213
|
-
|
|
169
|
+
`,s+=Y([R("@utility","container",f)]),s+=`}
|
|
170
|
+
`),delete i.theme.container}if("aria"in i.theme){for(let[f,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[f,m]of Object.entries(i.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[f,m]of Object.entries(i.theme.supports??{})){let d=x(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===f&&d[2].kind==="function"&&d[2].value==="var")&&p.set(`supports-${f}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[f,m]of Jr(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&f[1]===m.replace(/%$/,"")&&Ht(f[1]))continue}let d=fs(f);d!==a&&(u.push(""),a=d);let g=X(f);if(g!==null){if(!g.startsWith("default-")&&l.has(f[0])&&l.get(f[0])===!1){l.set(f[0],!0);let h=X([f[0]]);h!==null&&u.push(` ${me(`--${h}`)}-*: initial;`)}u.push(` ${me(`--${g}`)}: ${m};`)}}if(c&&u.push("",c),u.length>0&&(s+=`
|
|
171
|
+
@tw-bucket theme {
|
|
172
|
+
`,s+=`
|
|
214
173
|
@theme {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
174
|
+
`,s+=u.join(`
|
|
175
|
+
`)+`
|
|
176
|
+
`,s+=`}
|
|
177
|
+
`,s+=`}
|
|
178
|
+
`),p.size>0){s+=`
|
|
179
|
+
@tw-bucket custom-variant {
|
|
180
|
+
`;let f="";for(let[m,d]of p){let g=m.split("-")[0];f!==g&&(s+=`
|
|
181
|
+
`),f=g,d.startsWith("{")?s+=`@custom-variant ${m} ${d}
|
|
182
|
+
`:s+=`@custom-variant ${m} (${d});
|
|
183
|
+
`}s+=`}
|
|
184
|
+
`}return s}function cs(e){let t="";if(lr({config:()=>e.darkMode,addVariant:(o,l)=>t=l}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
|
|
223
185
|
@tw-bucket custom-variant {
|
|
224
186
|
@custom-variant dark (${t[0]});
|
|
225
187
|
}
|
|
226
|
-
`;let i="";for(let
|
|
227
|
-
`:i+=
|
|
188
|
+
`;let i="";for(let o of t)o.includes("{")?i+=o.replace("}","{ @slot }}")+`
|
|
189
|
+
`:i+=o+`{ @slot }
|
|
228
190
|
`;return i!==""?`
|
|
229
191
|
@tw-bucket custom-variant {
|
|
230
192
|
@custom-variant dark {${i}};
|
|
231
193
|
}
|
|
232
|
-
`:""}function
|
|
233
|
-
`}function
|
|
194
|
+
`:""}function fs(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 ps(e,t,r){let n=hs(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,l=Array.isArray(e.content)?e.content.map(s=>({base:r,pattern:s})):(e.content?.files??[]).map(s=>typeof s=="string"&&o?{base:rn.dirname(t),pattern:s}:{base:r,pattern:s});for(let{base:s,pattern:a}of l){if(typeof a!="string")throw new Error("Unsupported content value: "+a);let u=ys({base:s,pattern:a[0]==="!"?a.slice(1):a,negated:a[0]==="!"}),c=!0;for(let p of u)if(!n.includes(p)){c=!1;break}c||i.push({base:s,pattern:a})}return i}function ms(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 l=["darkMode","content","theme","plugins","presets","prefix","corePlugins","future","experimental"];if(Object.keys(e).some(s=>!l.includes(s))||pr(t)===null||e.presets&&e.presets.length>0)return!1;if(e.future&&e.future!=="all"){let s=["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"];if(Object.keys(e.future).some(a=>!s.includes(a)))return!1}if(e.experimental&&e.experimental!=="all"){let s=["generalizedModifiers"];if(Object.keys(e.experimental).some(a=>!s.includes(a)))return!1}if(i&&typeof i=="object"){if(i.extend&&!Xi(i.extend))return!1;let{extend:s,...a}=i;if(!Xi(a))return!1}return!0}var ds=[...Object.keys(nn.default),"containers"];function Xi(e){for(let t of Object.keys(e))if(!ds.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 gs(e){let t=_i({theme:{keyframes:e}});return Y(t).trim()+`
|
|
195
|
+
`}function hs(e){let t=new tn({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function ys(e){let t=new tn({sources:[e]});return t.scan(),t.files}function vs(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=en(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[l,s]of Object.entries(t.theme.spacing??{})){let[a,u]=en(s);a!==null&&Q(l)&&u===o&&parseFloat(a)===Number(l)*parseFloat(i)&&(delete t.theme.spacing[l],e.theme.clearNamespace(me(`--spacing-${l.replaceAll(".","_")}`),0))}}function en(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import Ke from"fs/promises";import vr from"path";import{exec as ks}from"child_process";import{readFileSync as ws}from"fs";import Fe from"fs/promises";import{dirname as bs,resolve as Ne}from"path";import{promisify as xs}from"util";var ln=xs(ks),an={default:"-D",bun:"-d"},gr=new y(e=>{try{let t=Ne(e,"package.json");return ws(t,"utf-8")}catch{return""}});function Ve(e){return{async manager(){return await hr.get(e)},async add(t,r="dependencies"){let n=await hr.get(e),i=t.slice();r==="devDependencies"&&i.push(an[n]||an.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await ln(o,{cwd:e})}catch(l){throw O(`An error occurred while running \`${o}\`
|
|
234
196
|
|
|
235
197
|
${l.stdout}
|
|
236
|
-
${l.stderr}`,{prefix:"\u21B3 "}),l}},async remove(t){let n=`${await
|
|
198
|
+
${l.stderr}`,{prefix:"\u21B3 "}),l}finally{gr.delete(e)}},has(t){return gr.get(e).includes(`"${t}":`)},async remove(t){let n=`${await hr.get(e)} remove ${t.join(" ")}`;try{return await ln(n,{cwd:e})}catch(i){throw O(`An error occurred while running \`${n}\`
|
|
237
199
|
|
|
238
200
|
${i.stdout}
|
|
239
|
-
${i.stderr}`,{prefix:"\u21B3 "}),i}}}}var
|
|
240
|
-
`),
|
|
241
|
-
`)),{didAddPostcssClient:l,didRemoveAutoprefixer:s,didRemovePostCSSImport:
|
|
201
|
+
${i.stderr}`,{prefix:"\u21B3 "}),i}finally{gr.delete(e)}}}}var sn=!1,hr=new y(async e=>{do{let t=Ne(e,"package.json");try{let n=await Fe.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 Fe.access(Ne(e,"bun.lockb")),"bun"}catch{}try{return await Fe.access(Ne(e,"bun.lock")),"bun"}catch{}try{return await Fe.access(Ne(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await Fe.access(Ne(e,"yarn.lock")),"yarn"}catch{}try{return await Fe.access(Ne(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=bs(e),r===e)return sn||(sn=!0,St("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});import{randomUUID as Cs}from"crypto";import At from"fs/promises";import yr from"path";async function ke(e,t){let r=await At.realpath(e).catch(()=>e),n=yr.join(yr.dirname(r),`.${yr.basename(r)}.tailwind-upgrade.${process.pid}.${Cs()}.tmp`);try{await At.writeFile(n,t,"utf8"),await At.rename(n,r)}catch(i){throw await At.unlink(n).catch(()=>{}),i}}async function cn(e){let t=!1,r=!1,n=!1,i=!1,o=!1,l=vr.resolve(e,"package.json"),s;try{s=JSON.parse(await Ke.readFile(l,"utf-8"))}catch{}let a=await $s(e);if(a){let u=await Ss(a);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&s&&"postcss"in s){let u=await un(s.postcss);t=!0,u&&(await ke(l,JSON.stringify({...s,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await Es(e),c=null;if(u){try{c=JSON.parse(await Ke.readFile(u,"utf-8"))}catch{}if(c){let p=await un(c);t=!0,p&&(await ke(u,JSON.stringify(p.json,null,2)),r=!0,n=p.didAddPostcssClient,i=p.didRemoveAutoprefixer,o=p.didRemovePostCSSImport)}}}if(!t){_("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 Ve(e).add(["@tailwindcss/postcss@latest"],u),z(`Installed package: ${C("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Ve(e).remove(["autoprefixer"]),z(`Removed package: ${C("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Ve(e).remove(["postcss-import"]),z(`Removed package: ${C("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&a&&z(`Migrated PostCSS configuration: ${C(V(a,e))}`,{prefix:"\u21B3 "})}async function Ss(e){function t(f){return/['"]?tailwindcss['"]?: ?\{\}/.test(f)}function r(f){return/['"]?postcss-import['"]?: ?\{\}/.test(f)}function n(f){return/['"]?autoprefixer['"]?: ?\{\}/.test(f)}function i(f){return/['"]tailwindcss\/nesting['"]: ?(\{\}|['"]postcss-nesting['"])/.test(f)}if(_("Migrating PostCSS configuration\u2026"),!await Rs(e))return St("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let l=!1,s=!1,a=!1,c=(await Ke.readFile(e,"utf-8")).split(`
|
|
202
|
+
`),p=[];for(let f=0;f<c.length;f++){let m=c[f];if(t(m))l=!0,p.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))s=!0;else if(r(m)){let d=!1;for(let g=f+1;g<c.length;g++){let h=c[g];if(t(h))break;if(!i(h)){d=!0;break}}d?p.push(m):a=!0}else if(i(m)){let d=c[f+1];t(d)||p.push(m)}else p.push(m)}return await ke(e,p.join(`
|
|
203
|
+
`)),{didAddPostcssClient:l,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}async function un(e){function t(c,p){return c==="tailwindcss"&&$t(p)}function r(c,p){return c==="postcss-import"&&$t(p)}function n(c,p){return c==="autoprefixer"&&$t(p)}function i(c,p){return c==="tailwindcss/nesting"&&(p==="postcss-nesting"||$t(p))}let o=!1,l=!1,s=!1,a=Object.entries(e.plugins||{}),u=[];for(let c=0;c<a.length;c++){let[p,f]=a[c];if(t(p,f))o=!0,u.push(["@tailwindcss/postcss",f]);else if(n(p,f))l=!0;else if(r(p,f)){let m=!1;for(let d=c+1;d<a.length;d++){let[g,h]=a[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?u.push([p,f]):s=!0}else if(i(p,f)){let[m,d]=a[c+1];t(m,d)||u.push([p,f])}else u.push([p,f])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:l,didRemovePostCSSImport:s}}var As=[".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 $s(e){for(let t of As){let r=vr.resolve(e,t);try{return await Ke.access(r),r}catch{}}return null}var Ts=[".postcssrc",".postcssrc.json"];async function Es(e){for(let t of Ts){let r=vr.resolve(e,t);try{return await Ke.access(r),r}catch{}}return null}async function Rs(e){let t=await Ke.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function $t(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as _s}from"globby";import Os from"path";import Ds from"postcss";import{__unstable__loadDesignSystem as Vs,compileAst as Ps}from"@tailwindcss/node";import*as pn from"fs";import*as mn from"fs/promises";import*as we from"path";import*as dn from"util";import*as Tt from"postcss";var Ns=33;function fn(e){let t=new y(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let l=o.source;if(!l)return;let s=l.input;if(s&&l.start!==void 0&&l.end!==void 0)return[t.get(s),l.start.offset,l.end.offset]}function n(o,l){if(o.type==="decl"){let s=E(o.prop,o.value,o.important);s.src=r(o),l.push(s)}else if(o.type==="rule"){let s=B(o.selector);s.src=r(o),o.each(a=>n(a,s.nodes)),l.push(s)}else if(o.type==="atrule"){let s=R(`@${o.name}`,o.params);s.src=r(o),o.each(a=>n(a,s.nodes)),l.push(s)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==Ns)return;let s=pt(o.text);s.src=r(o),l.push(s)}}let i=[];return e.each(o=>n(o,i)),i}var oe=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=we.resolve(process.cwd(),t);let r=await mn.readFile(t,"utf-8"),n=Tt.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=we.resolve(process.cwd(),t);let r=pn.readFileSync(t,"utf-8"),n=Tt.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=Tt.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=we.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 tt(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of tt(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of tt(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 tt(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:o}of n)for(let l of o.layers)i||=l==="utilities"||l==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}async compiler(){return!this.isTailwindRoot||!this.file?null:Ps(fn(this.root),{base:we.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Vs(this.root.toString(),{base:we.dirname(this.file)})}[dn.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*tt(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*tt(n.item,t,i),yield{item:n.item,path:i}}}async function gn(e){let t=await _s(),r=[],n=new y(a=>{try{if(t(a))return null}catch{return null}try{let u=oe.loadSync(a);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Ds([{postcssPlugin:"mark-import-nodes",AtRule:{import(a){let u=a.params.match(/['"](.*?)['"]/)?.[1];if(!u)return;let c=a.source?.input.file?Os.dirname(a.source.input.file):process.cwd(),p=!1;try{if(u[0]!==".")try{p=dr(`./${u}`,c)}catch{}p||(p=dr(u,c))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;O(`Failed to resolve import: ${C(u)} in ${C(V(a.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!p)return;let f=n.get(p);if(!f)return;a.raws.tailwind_destination_sheet_id=f.id;let m=a.source?.input.file?n.get(a.source.input.file):void 0,d=[];for(let g of b(a.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};f.parents.add({item:m,meta:g}),m.children.add({item:f,meta:g})}}}}]);for(let a of e)a.file&&(n.set(a.file,a),r.push(()=>i.process(a.root,{from:a.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function l(a){let u=[];for(let c of a){if(!c.item.file)continue;let p=c.item.file.replace(o,""),f=c.meta.layers.join(", ");f.length>0?u.push(`${p} (layers: ${f})`):u.push(p)}return u.join(" <- ")}let s=[];for(let a of e){if(!a.file)continue;let{convertiblePaths:u,nonConvertiblePaths:c}=a.analyzeImportPaths();if(!(u.length>0&&c.length>0))continue;a.canMigrate=!1;let f=a.file.replace(o,"");for(let m of u)s.push(`- ${f} <- ${l(m)}`);for(let m of c)s.push(`- ${f} <- ${l(m)}`)}if(s.length===0){let a=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,a.add(u))});if(a.size<=1)return;{let u=new y(()=>new Set);for(let p of a)u.get(p).add(p);let c=!0;e:for(;c;){c=!1;for(let[p,f]of u)for(let[m,d]of u){if(p===m)continue;let g=[p].concat(Array.from(p.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let w of g)for(let S of h){if(w!==S)continue;let N=w;u.delete(p),u.delete(m);for(let T of f)u.get(N).add(T);for(let T of d)u.get(N).add(T);c=!0;continue e}}}for(let[p,f]of u){p.isTailwindRoot=!0;for(let m of f)p!==m&&(m.isTailwindRoot=!1)}return}}{let a=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
|
|
204
|
+
`;throw a+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
205
|
+
`,new Error(a+s.join(`
|
|
206
|
+
`))}}import hn from"postcss";import{format as yn}from"prettier";function D(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=D(n,t),r}),r}function kr(e,t){e?.each?.(r=>{kr(r,t),t(r)})}var vn={parser:"css",semi:!0,singleQuote:!0};function kn(){async function e(t){let r=[];D(t,(i,o,l)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=l,r.unshift(i))});let n=[];for(let i of r){let o=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(o);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await yn(o,vn));continue}i.replaceWith(hn.parse(`${i.raws.before??""}${(await yn(o,vn)).trim()}`))}t.removeAll(),t.append(hn.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
207
|
+
|
|
208
|
+
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as Hs}from"@tailwindcss/node";import xe from"path";import Js from"postcss";import{__unstable__loadDesignSystem as $n,compile as Fs}from"@tailwindcss/node";import Ks from"fs/promises";import be,{dirname as Tn}from"path";import{fileURLToPath as Ws}from"url";import{execSync as Us}from"child_process";import bn from"semver";import{readFileSync as Is}from"fs";import Z0 from"fs/promises";function wn(e,t){try{let r=Ji(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(Is(r,"utf8"));return n}catch{return null}}function P(e){return bn.satisfies(ce(),`>=${e}.0.0 <${e+1}.0.0`)}function xn(e){return bn.gte(ce(),`${e+1}.0.0`)}var Ls=new y(e=>{let t=wn("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ce(e=process.cwd()){return Ls.get(e)}var Ms=new y(e=>{try{return Us("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),ce(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??ce(e)}catch{return ce(e)}}});function wr(e=process.cwd()){return Ms.get(e)}var Cn=new WeakSet;function Sn(e,t,r){if(!e.theme.prefix||!t||!P(3))return r;Cn.has(e)||(e.utilities.functional("group",l=>[E("--phantom-class","group"),E("--phantom-modifier",l.modifier?.value)]),e.utilities.functional("peer",l=>[E("--phantom-class","peer"),E("--phantom-modifier",l.modifier?.value)]),Cn.add(e));let n=zs(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let l=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...le(l,e)];s.length>0&&(o=s[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function zs(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=b(r,":").pop(),o=r.length-i.length,l=o+i.length,s=!1,a=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!0,i=i.slice(1)),i[0]==="-"&&(a=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),a&&(i="-"+i),s&&(i+="!"),{base:i,start:o,end:l})}var js=/([a-z]+)/;function An(e){let t=js.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 Bs=Ws(import.meta.url),rt=Tn(Bs),En=String.raw;async function Rn(e,t){try{e===null?e=await br(t.base):be.isAbsolute(e)||(e=be.resolve(t.base,e));let r=be.relative(rt,e);!r.startsWith(".")&&!be.isAbsolute(r)&&(r="./"+r);let n=await qs(e),i=n.prefix?An(n.prefix):null,o=En`
|
|
209
|
+
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
210
|
+
@config '${r}';
|
|
211
|
+
`,[l,s]=await Promise.all([Fs(o,{base:rt,onDependency:()=>{}}),$n(o,{base:rt})]);return{designSystem:s,sources:l.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){O("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function qs(e){let[t,r]=await Promise.all([$n(En`
|
|
212
|
+
@import 'tailwindcss';
|
|
213
|
+
`,{base:rt}),ht(e,rt,()=>{}).then(n=>n.module)]);return Ee(t,[{base:Tn(e),config:r,reference:!1}]).resolvedConfig}var Ys=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function br(e,t=e){for(let r of Gs(e,t))for(let n of Ys){let i=be.resolve(r,n);try{return await Ks.access(i),i}catch{}}throw new Error(`No configuration file found for ${C(V(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${C("--config")} option.`)}function*Gs(e,t=e){let r=be.resolve(e),n=be.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=be.dirname(i);while(i!==n);yield n}async function Nn(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.
|
|
214
|
+
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${C("@tailwind")}.`);let i=n.filter(u=>{let c=!1;return u.root.walkAtRules("config",p=>{let f=xe.resolve(xe.dirname(u.file),p.params.slice(1,-1));return u.linkedConfigPath=f,c=!0,!1}),!c});if(i.length===0)return;let o=new Map,l=new y(()=>new Set);for(let u of i){if(!u.file)continue;let c=t;t===null?c=await br(xe.dirname(u.file),r):xe.isAbsolute(c)||(c=xe.resolve(r,c)),o.set(u,c),l.get(c).add(u)}let s=new Set;for(let u of l.values())if(u.size>1)for(let c of u)s.add(c);if(s.size>1){for(let u of s)O(`Could not determine configuration file for: ${C(V(u.file,r))}
|
|
215
|
+
Update your stylesheet to use ${C("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let a=V;for(let[u,c]of o)try{if(!u||!u.file)return;z(`Linked ${C(a(c,r))} to ${C(a(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let p=xe.relative(xe.dirname(u.file),c);!p.startsWith(".")&&!xe.isAbsolute(p)&&(p="./"+p),p=Hs(p);{let f=u.root,m=Js.atRule({name:"config",params:`'${p}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(f=d)}),f.type==="root"?u.root.prepend(m):f.type==="atrule"&&f.after(m)}}catch(p){O("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import Lu from"postcss";import wu from"fs/promises";import Zn,{extname as bu}from"path";function Vn(e,t){if(!t[0])return e;t.sort((i,o)=>i.end-o.end||i.start-o.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let o=t[i];r+=e.slice(n.end,o.start),r+=o.replacement,n=o}return r+=e.slice(n.end),r}import{Scanner as Zs}from"@tailwindcss/oxide";async function Pn(e,t="html"){let n=new Zs({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:l}of n)i.push({rawCandidate:o,start:l,end:l+o.length});return i}function _n(e){let t=F(e);return t.important=!1,t.variants=[],t}var Qs=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Xs=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],eu=/placeholder=\{?['"`]$/,tu=/\b\$?emit\(['"`]$/;function Dn(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let a=ru.get(t.contents);for(let u=0;u<a.length;u+=2){let c=a[u],p=a[u+1];if(t.start>=c&&t.end<=p)return!1}}let[n]=le(e,r);if(!n&&xn(3))return!1;if(n&&(n.variants.length>0||n.kind==="arbitrary"||n.kind==="static"&&n.root.includes("-")||n.kind==="functional"&&n.value!==null||n.kind==="functional"&&n.root.includes("-")||n.kind==="functional"&&n.modifier))return!0;let i="";for(let a=t.start-1;a>=0;a--){let u=t.contents.at(a);if(u===`
|
|
216
|
+
`)break;i=u+i}let o="";for(let a=t.end;a<t.contents.length;a++){let u=t.contents.at(a);if(u===`
|
|
217
|
+
`)break;o+=u}let l=On(i),s=On(o);if(!l||!s||o[0]==="."||o.trim().startsWith("("))return!1;for(let a of Qs)if(o.trim().startsWith(a)||i.trim().endsWith(a))return!1;for(let a of Xs)if(a.test(i))return!1;return!(eu.test(i)||tu.test(i))}var ru=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),iu=92,nu=34,ou=39,lu=96;function On(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case iu:r++;break;case ou:case nu:case lu:t===n?t=null:t===null&&(t=n);break}}return t!==null}function In(e,t,r){for(let n of e.parseCandidate(r)){let i=F(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Rt(e,i,i.modifier.value)){let{value:l,didChange:s}=Et(i.modifier.value);i.modifier.value=l,o||=s}for(let l of i.variants)Un(e,l)&&(o=!0);if(i.kind==="arbitrary"&&!Rt(e,i,i.value)){let{value:l,didChange:s}=Et(i.value);i.value=l,o||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Rt(e,i,i.value.value)){let{value:l,didChange:s}=Et(i.value.value);i.value.value=l,o||=s}if(o)return e.printCandidate(i)}return r}function Et(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||x(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Un(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Rt(e,au(t),t.value.value)){let{value:n,didChange:i}=Et(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Un(e,t.variant)&&(r=!0),r}function au(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var su=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 k(n,o=>{if(o.kind==="declaration"&&su.has(o.property)&&o.value==r)return i=!0,v.Stop}),i}function Mn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=F(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=Ln(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=Ln(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function Ln(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function zn(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function jn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function Fn(e,t,r){for(let n of le(r,e)){let i=F(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=b(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as uu}from"@tailwindcss/node";import cu from"path";import fu from"url";var pu=fu.fileURLToPath(import.meta.url),mu=cu.dirname(pu),du=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"],["outline","outline-solid"]]),Kn=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--default-ring-width"],["ring-3","--ring-width-3"]]),gu=new y(e=>uu('@import "tailwindcss";',{base:e}));async function Wn(e,t,r){if(!P(3))return r;let n=await gu.get(mu);function*i(o){for(let l of e.parseCandidate(o)){let s=_n(l),a=e.printCandidate(s),u=du.get(a);if(!u)continue;let[c]=e.parseCandidate(u);if(!c)continue;let p=F(c);p.variants=l.variants,p.important=l.important,yield[p,Kn.get(a),Kn.get(u)]}}for(let[o,l,s]of i(r)){if(l&&s){let a=e.resolveThemeValue(l,!0),u=n.resolveThemeValue(l,!0),c=e.resolveThemeValue(s,!0),p=n.resolveThemeValue(s);if(c===void 0&&p!==void 0||a!==u||c!==p)continue}return e.printCandidate(o)}return r}function Bn(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}function*qn(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}function Yn(e,t,r){for(let n of le(r,e)){let i=F(n),o=!1;for(let[l]of qn(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?(o=!0,K(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(o=!0,K(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${l.modifier.value}]`:`in-[.group\\/${l.modifier.value}]`)));continue}return o?e.printCandidate(i):r}return r}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"},Gn=new WeakSet;function Hn(e,t,r){if(P(3)&&(Nt["outline-none"]="outline-hidden"),!Gn.has(e)){for(let n in Nt)e.utilities.static(n,()=>[]);Gn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(Nt,n.root))return e.printCandidate({...n,root:Nt[n.root]});return r}function Jn(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],l=[],s=n.variants;for(let c of n.variants)hu(e,c)?i.push(c):vu(e,c)?l.push(c):o.push(c);let a=o.some(c=>yu(e,c)),u=[...l,...a?o.reverse():o,...i];if(!ku(s,u))return e.printCandidate({...n,variants:u})}return r}function hu(e,t){return t.kind==="static"&&t.root==="dark"?!0:xr(e,t).every(n=>n.kind==="at-rule")}function yu(e,t){return xr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function vu(e,t){return xr(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 xr(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 k(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function ku(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var xu=[jn,Sn,zn,Hn,Mn,Wn,Bn,Jn,In,Fn,Yn],Cu=new y(e=>{let t=Xt(e),r=vi(t);return new y(n=>new y(async i=>{let o=i;for(let s of xu)i=await s(t,n,i);return i=t.canonicalizeCandidates([i]).pop(),typeof t.storage[ne].get(r).get(i)!="string"?o:i}))});async function Cr(e,t,r,n){return n&&!Dn(r,n,e)?r:Cu.get(e).get(t).get(r)}async function Qn(e,t,r,n){let i=await Pn(r,n),o=[];for(let{rawCandidate:l,start:s,end:a}of i){let u=await Cr(e,t,l,{contents:r,start:s,end:a});u!==l&&o.push({start:s,end:a,replacement:u})}return Vn(r,o)}async function Xn(e,t,r){let n=Zn.isAbsolute(r)?r:Zn.resolve(process.cwd(),r),i=await wu.readFile(n,"utf-8"),o=await Qn(e,t,i,bu(r));return o===i||o.trim()===""?!1:(await ke(n,o),!0)}function eo({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let l=i.map(s=>{if(s.trim()==="")return s;let a=b(s,":"),u=a.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...a,u].join(":")});return async()=>{e&&(l=await Promise.all(l.map(async s=>await Cr(e,t,s))),n.params=l.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import Vt from"postcss-selector-parser";function ro(e){function t(r){if(!P(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();D(r,l=>{if(l.type!=="rule")return;let s=b(l.selector,",");if(s.length>1){let a=[];for(let u of s){let c=l.clone({selector:u});a.push(c)}l.replaceWith(a)}return 1});let i=new Set;D(r,l=>{if(l.type==="rule")return Vt(s=>{s.each(a=>{D(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),D(n,l=>{l.type==="rule"&&Vt(s=>{s.each(a=>{D(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return l.remove(),2})})}).processSync(l,{updateSelector:!0})});let o=[n];for(let l of i){let s=r.clone();o.push(s),D(s,a=>{if(a.type==="atrule"&&(!a.nodes||a.nodes?.length===0)&&a.remove(),a.type!=="rule")return;let u=!1;if(Vt(c=>{c.each(p=>{D(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===l){u=!0;let m=p.atPosition(f.source.start.line,f.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),w=d.at(g);d.at(g+1).replaceWith(w),d.at(g).replaceWith(h),g--}m.replaceWith(Vt.nesting())}})})}).processSync(a,{updateSelector:!0}),!u){let c=[a],p=a.parent?.index(a)??null;if(p!==null)for(let f=p-1;f>=0&&a.parent?.nodes.at(f)?.type!=="rule";f--)a.parent?.nodes.at(f)?.type==="comment"&&c.push(a.parent?.nodes.at(f));for(let f of c)f.remove()}return 1}),s.name="utility",s.params=l,s.raws.before=`${s.raws.before??""}
|
|
218
|
+
|
|
219
|
+
`}for(let l=o.length-1;l>=0;l--){let s=o[l];kr(s,a=>{if(s===n&&a.type==="comment"){let u=!1;for(let c of o)if(c!==n&&(D(c,p=>{if(p.type==="comment"&&p.source?.start?.offset===a.source?.start?.offset)return a.remove(),u=!0,2}),u))return 1}if((a.type==="rule"||a.type==="atrule")&&a.nodes?.length===0)a.remove();else if(a.type==="rule"&&a.selector==="&"){let u=a.parent,c=!1;for(;u;){if(u.type==="rule"){c=!0;break}u=u.parent}c||a.replaceWith(a.nodes)}}),s.nodes?.length===0&&o.splice(l,1)}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let l=n({name:"layer",params:"utilities"});l.append(r.nodes),r.append(l)}r.walkAtRules("layer",t);{let l=new Map;D(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let a=l.get(s.params);a?(a.append(s.nodes),s.remove()):l.set(s.params,s)}})}o&&r.each(l=>{l.type==="atrule"&&l.name==="layer"&&l.params==="utilities"&&l.replaceWith(l.nodes??[])})}}}import Pt from"path";import Su,{AtRule as Au}from"postcss";var io=new WeakMap;function lo(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=io.get(e);if(i&&i.includes(t))return;i?i.push(t):io.set(e,[t]);let o=e.root;if(!e.file)return;let l=new Au;if(r!==null){o.walkAtRules("config",a=>{a.remove()});let s=`
|
|
220
|
+
|
|
221
|
+
`;s+=`
|
|
222
|
+
@tw-bucket source {`;for(let a of r.sources){let u=Pt.resolve(a.base,a.pattern);s+=`@source '${no(e,u)}';
|
|
223
|
+
`}s+=`}
|
|
224
|
+
`,s+=`
|
|
225
|
+
@tw-bucket plugin {
|
|
226
|
+
`;for(let a of r.plugins){let u=a.path[0]==="."?no(e,Pt.resolve(a.base,a.path)):a.path;if(a.options===null)s+=`@plugin '${u}';
|
|
227
|
+
`;else{s+=`@plugin '${u}' {
|
|
228
|
+
`;for(let[c,p]of Object.entries(a.options)){let f="";typeof p=="string"?f=oo(p):Array.isArray(p)?f=p.map(m=>typeof m=="string"?oo(m):""+m).join(", "):f=""+p,s+=` ${c}: ${f};
|
|
229
|
+
`}s+=`}
|
|
230
|
+
`}}s+=`}
|
|
231
|
+
`,l.append(Su.parse(s+r.css))}o.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function no(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Pt.relative(Pt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),ar(n)}function oo(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import $u from"fs/promises";import{dirname as Tu,resolve as Eu}from"path";import"postcss";function ao(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...l]=b(i.params," "),s=Ri(x(o));if(!s)return;let a=s.uri[0]===".",u=s.uri.endsWith(".css");if(a&&u)return;let c=Eu(Tu(r),s.uri);u||(c+=".css"),n.push($u.stat(c).then(()=>{let p=u?"":".css",f=a?s.uri:`./${s.uri}`;i.params=[`'${f}${p}'`,...l].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function so({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Ee(e,[{base:"",config:t,reference:!1,src:void 0}]),o=i?.theme?.screens||{},l=new y(s=>{let a=e?.resolveThemeValue(`--breakpoint-${s}`,!0)??o?.[s];return typeof a=="string"?`(width >= theme(--breakpoint-${s}))`:a?Ui(a):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let a=s.params.match(/screen\(([^)]+)\)/);if(!a)return;let u=l.get(a[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Ru}from"postcss";function uo(){function e(t){let r="",n=[],i=[],o=null;t.each(l=>{if(l.type==="atrule"){if(l.name==="config"||l.name==="source"||l.name==="theme"||l.name==="utility"||l.name==="custom-variant"||l.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="tailwind"&&l.params==="base"||l.name==="import"&&l.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(l.name==="tailwind"&&l.params==="components"||l.name==="import"&&l.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(l.name==="tailwind"&&l.params==="utilities"||l.name==="import"&&l.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(l.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[l]]);return}}r===""&&(l.type==="comment"||l.type==="atrule"&&!l.nodes||l.type==="atrule"&&l.name==="charset")||n.push(l)});for(let[l,s]of i){let a=l||o||"";if(a===""||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 f=b(p.params," ");f.splice(1,0,`layer(${a})`),p.params=f.join(" "),p.raws.tailwind_injected_layer=!0}continue}let u=s[0],c=new Ru({name:"layer",params:a,nodes:s.map(p=>p===u?p:p.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Nu from"dedent";import Vu from"postcss";var Pu="currentcolor",_u=Nu,Ou=_u`
|
|
232
|
+
/*
|
|
233
|
+
The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
|
|
234
|
+
so we've added these compatibility styles to make sure everything still
|
|
235
|
+
looks the same as it did with Tailwind CSS v3.
|
|
236
|
+
|
|
237
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
238
|
+
color utility to any element that depends on these defaults.
|
|
239
|
+
*/
|
|
240
|
+
@layer base {
|
|
241
|
+
*,
|
|
242
|
+
::after,
|
|
243
|
+
::before,
|
|
244
|
+
::backdrop,
|
|
245
|
+
::file-selector-button {
|
|
246
|
+
border-color: theme(borderColor.DEFAULT);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
`;function co({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let l=`--${X(ee(o))}`;return!!e.theme.get([l])}function i(o){if(!P(3))return;let l=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return l=!0,!1}),!l)return;let s="";r!==Pu&&(s+=Ou,s+=`
|
|
250
|
+
|
|
251
|
+
`),s=`
|
|
252
|
+
@tw-bucket compatibility {
|
|
253
|
+
${s}
|
|
254
|
+
}
|
|
255
|
+
`;let a=Vu.parse(s);a.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Du(x(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),o.append(a)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Du(e,t){return k(e,r=>{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 n=r.nodes[0];if(n.kind!=="word")return;let i=n.value,o=1;for(let a=o;a<r.nodes.length&&!r.nodes[a].value.includes(",");a++)i+=$([r.nodes[a]]),o=a+1;i=Iu(i);let l=r.nodes.slice(o+1),s=l.length>0?t(i,$(l)):t(i);return s===null?void 0:v.Replace(x(s))}}),$(e)}function Iu(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as _t}from"postcss";var Sr=["theme","base","components","utilities"];function fo(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,l=[],s=null,a=null,u=null,c=null,p=[];n.walkAtRules(f=>{if(f.name==="import"&&f.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(f.params=f.params.replace("tailwindcss/tailwind.css","tailwindcss")),f.name==="import"&&f.params.match(/^["']tailwindcss["']/))f.params+=t;else if(f.name==="tailwind"&&f.params==="base"||f.name==="import"&&f.params.match(/^["']tailwindcss\/base["']$/))p.push("base"),l.push(f),i=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),l.push(f),o=f;else if(f.name==="tailwind"&&f.params==="components"||f.name==="tailwind"&&f.params==="screens"||f.name==="tailwind"&&f.params==="variants"||f.name==="import"&&f.params.match(/^["']tailwindcss\/components["']$/))f.remove();else if(f.name==="responsive")if(f.nodes){for(let m of f.nodes)m.raws.tailwind_pretty=!0;f.replaceWith(f.nodes)}else f.remove()}),i!==null&&o!==null?(s||Ot(l).before(new _t({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(a||Ot(l).before(new _t({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(c||Ot(l).before(new _t({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Ot(l).before(new _t({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let f=p.toSorted((m,d)=>Sr.indexOf(m)-Sr.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=Sr.toSorted((d,g)=>p.indexOf(d)-p.indexOf(g));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 po(e,{prettyPrint:t=!1}={}){function r(l,s=0){let a=x(l);if(s&2)return[Dt(a,o),null];let u=0,c=0;if(k(a,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,k(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?v.Stop:d.kind==="word"&&d.value==="/"?(c+=1,v.Stop):v.Skip))}),u===0)return[l,null];if(c===0)return[Dt(a,i),null];if(c>1)return[Dt(a,o),null];let p=null;return[Dt(a,(m,d)=>{let g=b(m,"/").map(h=>h.trim());if(g.length>2)return null;if(a.length===1&&g.length===2&&s&1){let[h,w]=g;if(/^\d+%$/.test(w))p={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let S=Number(w)*100;p={kind:Number.isInteger(S)?"named":"arbitrary",value:S.toString()}}else p={kind:"arbitrary",value:w};m=h}return i(m,d)||o(m,d)}),p]}function n(l){let s=`--${X(ee(l))}`;return e.theme.get([s])?e.theme.prefix?`--${e.theme.prefix}-${s.slice(2)}`:s:null}function i(l,s){let a=n(l);if(a)return s?`var(${a}, ${s})`:`var(${a})`;let u=ee(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Q(c)?`--spacing(${c})`:null}return null}function o(l,s){let a=b(l,"/").map(p=>p.trim());l=a.shift();let u=n(l);if(!u)return null;let c=a.length>0?t?` / ${a.join(" / ")}`:`/${a.join("/")}`:"";return s?`--theme(${u}${c}, ${s})`:`--theme(${u}${c})`}return r}function Dt(e,t){return k(e,(r,n)=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=$([r.nodes[u]]),l=u+1;o=Uu(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,$(s)):t(o);if(a===null)return;if(n.parent){let u=n.parent.nodes.indexOf(r)-1;for(;u!==-1;){let c=n.parent.nodes[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return v.Replace(x(a))}}),$(e)}function Uu(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 mo({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=po(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 go(){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 ho(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Mu(e,t)}async function Mu(e,t,r){return typeof e=="string"&&(e=await oe.fromString(e),e.file=r??null),Lu().use(ao()).use(eo(t)).use(so(t)).use(go()).use(ro(e)).use(uo()).use(fo(t)).use(lo(e,t)).use(co(t)).use(mo(t)).process(e.root,{from:e.file??void 0})}import zu from"postcss";var yo=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function ko(){async function e(t){{let s=function(a,...u){l=a,o.get(a).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],o=new y(a=>{let u=zu.atRule({name:"tw-bucket",params:a,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",a=>{o.set(a.params,a)});let l="user";D(t,a=>{if(a.type==="atrule"&&a.name==="tw-bucket")return 1;if(a.type==="comment"){if(i.length>0){i.push(a);return}let u=vo(a.prev(),a)??1/0,c=vo(a,a.next())??1/0;u<c?o.get(l).nodes?.push(a):i.push(a)}else a.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(a.name)?s(a.name,a):a.type==="atrule"&&a.name==="layer"&&!a.nodes||a.type==="atrule"&&a.name==="import"||a.type==="atrule"&&a.name==="charset"||a.type==="atrule"&&a.name==="tailwind"?s("import",a):(a.type==="rule"||a.type,s("user",a));return 1}),i.length>0&&s(l)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,l)=>{let s=yo.indexOf(o.params),a=yo.indexOf(l.params);return s-a});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function vo(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 ju from"postcss";async function wo(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 a=!1,u=s.layers().size>0;D(s.root,c=>{if(c.type==="atrule"&&c.name==="utility")a=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;u=!0}return a&&u?2:1}),a&&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(f=>n.has(f)))continue;let a=ju.root();D(s.root,f=>{if(f.type==="atrule"&&f.name==="utility")return a.append(f),1});let u=s.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(u);)c+=1,u=s.file.replace(/\.css$/,`.utilities.${c}.css`);let p=await oe.fromRoot(a,u);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(s,p),t.set(p.id,p)}for(let[s,a]of i){for(let u of s.parents){let c=i.get(u.item);c&&a.parents.add({item:c,meta:u.meta})}for(let u of s.children){let c=i.get(u.item);c&&a.children.add({item:c,meta:u.meta})}}for(let s of e){let a=i.get(s),u=new Set;for(let c of s.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=i.get(f);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],w=h.replace(/\.css$/,m.extension),S=c.clone({params:`${g}${w}${g}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});a?u.add(S):c.after(S)}a&&u.size>0&&a.root.prepend(Array.from(u))}let o=new y(()=>new Set);for(let s of t.values())for(let a of s.importRules){let u=a.raws.tailwind_destination_sheet_id;if(!u)continue;let c=t.get(u);c&&o.get(c).add(a)}let l=[];for(let s of e.slice()){for(let a of s.descendants())l.push(a);l.push(s)}for(let s of l){let a=i.get(s);if(a&&s.isEmpty){s.root=a.root;for(let u of o.get(a))u.params=u.raws.tailwind_original_params;for(let u of o.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import Ce from"picocolors";function bo({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(G(xt()),e&&(G(),G(`${Ce.dim("Invalid command:")} ${e}`)),t&&t.length>0){G(),G(Ce.dim("Usage:"));for(let[i,o]of t.entries()){let l=o.slice(0,o.indexOf("[")),s=o.slice(o.indexOf("["));s=s.replace(/\[.*?\]/g,c=>Ce.dim(c));let u=Xe(s,n-bt.indent-l.length-1);u.length>1&&i!==0&&G(),G(et(`${l}${u.shift()}`));for(let c of u)G(et(c,l.length))}}if(r){let i=0;for(let{alias:a}of Object.values(r))a&&(i=Math.max(i,a.length));let o=[],l=0;for(let[a,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?a:" ".repeat(i+2)+a].filter(Boolean).join(", ");o.push(c),l=Math.max(l,c.length)}G(),G(Ce.dim("Options:"));let s=8;for(let{description:a,default:u=null}of Object.values(r)){let c=o.shift(),p=s+(l-c.length),f=2,m=n-c.length-p-f-bt.indent,d=Xe(u!==null?`${a} ${Ce.dim(`[default:\u202F${C(`${u}`)}]`)}`:a,m);G(et(`${Ce.blue(c)} ${Ce.dim(Ce.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let g of d)G(et(`${" ".repeat(c.length+p+f)}${g}`))}}}import Fu from"mri";function Co(e,t=process.argv.slice(2)){let r=Fu(t),n={_:r._};for(let[i,{type:o,alias:l,default:s=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,l){let a=l.slice(1);r[a]!==void 0&&(n[i]=xo(r[a],o))}{let a=i.slice(2);r[a]!==void 0&&(n[i]=xo(r[a],o))}}return n}function xo(e,t){switch(t){case"string":return Lt(e);case"boolean":return It(e);case"number":return Ut(e);case"boolean | string":return It(e)??Lt(e);case"number | string":return Ut(e)??Lt(e);case"boolean | number":return It(e)??Ut(e);case"boolean | number | string":return It(e)??Ut(e)??Lt(e);default:throw new Error(`Unhandled type: ${t}`)}}function It(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Ut(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function Lt(e){return`${e}`}import{execSync as Ku}from"child_process";function Ar(e){try{return Ku("git status --porcelain",{encoding:"utf-8",cwd:e}).trim()!==""}catch(t){return!t?.toString?.().includes("not a git repository")}}var Ao={"--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=Co(Ao);Mt["--help"]&&(bo({usage:["npx @tailwindcss/upgrade"],options:Ao}),process.exit(0));async function Gu(){let e=process.cwd(),t=await qu({cwd:e});ve(xt()),ve();let r=[];if(Mt["--force"]||Ar()&&(O("Git directory is not clean. Please stash or commit your changes before migrating."),_(`You may use the ${C("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),_(`Upgrading from Tailwind CSS ${C(`v${ce(e)}`)}`,{prefix:"\u21B3 "}),ce(e)!==wr(e)){let n=await Ve(e).manager();O(["Version mismatch","",Z.dim("```diff"),`${Z.red("-")} ${`${Z.dim('"tailwindcss":')} ${`${Z.dim('"')}${Z.blue(wr(e))}${Z.dim('"')}`}`} (expected version in ${C("package.json")})`,`${Z.green("+")} ${`${Z.dim('"tailwindcss":')} ${`${Z.dim('"')}${Z.blue(ce(e))}${Z.dim('"')}`}`} (installed version in ${C("node_modules")})`,Z.dim("```"),"",`Make sure to run ${C(`${n} install`)} and try again.`].join(`
|
|
256
|
+
`),{prefix:"\u21B3 "}),process.exit(1)}{let n=Mt._.map(c=>$r.resolve(e,c));n.length===0&&(_("Searching for CSS files in the current directory and its subdirectories\u2026"),n=await Bu(["**/*.css"],{cwd:e,absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),n=n.filter(c=>c.endsWith(".css"));let i=await Promise.allSettled(n.map(c=>oe.load(c)));for(let c of i)c.status==="rejected"&&O(`${c.reason?.message??c.reason}`,{prefix:"\u21B3 "});let o=i.filter(c=>c.status==="fulfilled").map(c=>c.value),l=new Map(o.map(c=>[c,c.root.toString()]));try{await gn(o)}catch(c){O(`${c?.message??c}`,{prefix:"\u21B3 "})}if(P(3))try{await Nn(o,{configPath:Mt["--config"],base:e})}catch(c){O(`${c?.message??c}`,{prefix:"\u21B3 "})}o.some(c=>c.isTailwindRoot&&c.linkedConfigPath)&&_("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let c of o){if(!c.isTailwindRoot||!P(3)&&!c.linkedConfigPath)continue;let p=await Rn(c.linkedConfigPath,{base:e});s.set(c,p);let f=await on(p.designSystem,p.configFilePath,e);a.set(c,f),f!==null&&r.push(()=>So.rm(p.configFilePath)),f!==null&&z(`Migrated configuration file: ${C(V(p.configFilePath,e))}`,{prefix:"\u21B3 "})}if(o.length>0&&_("Migrating stylesheets\u2026"),await Promise.all(o.map(async c=>{try{let p=s.get(c),f=a.get(c)??null;if(!p){for(let m of c.ancestors())if(m.isTailwindRoot){p??=s.get(m),f??=a.get(m)??null;break}}await ho(c,{newPrefix:p?.newPrefix??null,designSystem:p?.designSystem??await c.designSystem(),userConfig:p?.userConfig??null,configFilePath:p?.configFilePath??null,jsConfigMigration:f})}catch(p){O(`${p?.message??p} in ${C(V(c.file,e))}`,{prefix:"\u21B3 "})}})),P(3)){try{await wo(o)}catch(c){O(`${c?.message??c}`,{prefix:"\u21B3 "})}for(let c of o)for(let p of c.importRules){if(!p.raws.tailwind_injected_layer)continue;let f=o.find(m=>m.id===p.raws.tailwind_destination_sheet_id);f&&f.containsRule(m=>m.type==="atrule"&&m.name==="utility")&&(p.params=p.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let c of o)l.get(c)!==c.root.toString()&&await Yu([ko(),kn()]).process(c.root,{from:c.file});for(let c of o)c.file&&(await ke(c.file,c.root.toString()),c.isTailwindRoot&&z(`Migrated stylesheet: ${C(V(c.file,e))}`,{prefix:"\u21B3 "}));_("Updating dependencies\u2026");{let c=Ve(e),p=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(f=>f==="tailwindcss"||c.has(f));try{await c.add(p.map(f=>`${f}@latest`));for(let f of p)z(`Updated package: ${C(f)}`,{prefix:"\u21B3 "})}catch{}}let u=o.filter(c=>c.isTailwindRoot&&c.file);u.length>0&&_("Migrating templates\u2026");{let c=new Set;for(let p of u){let f=await p.compiler();if(!f)continue;let m=await p.designSystem();if(!m)continue;let d=s.get(p),g=(f.root==="none"?[]:f.root===null?P(3)?d?.sources?d.sources.map(T=>({...T,negated:!1})):[]:[{base:e,pattern:"**/*",negated:!1}]:[{...f.root,negated:!1}]).concat(f.sources),h=new Wu({sources:g}),w=[],S=new Set;for(let T of h.files)if(T=await So.realpath(T).catch(()=>T),!T.endsWith(".css")){try{if(t(T)){let A=T,I=$r.dirname(T);do{try{t(I)&&(A=I)}catch{break}I=$r.dirname(I)}while(I);if(S.has(A))continue;S.add(A),A===T?_(`Git ignored, skipping: ${C(V(A,e))}`,{prefix:"\u21B3 "}):_(`Git ignored folder, skipping: ${C(V(A,e))}`,{prefix:"\u21B3 "});continue}}catch{_(`Outside repository, skipping: ${C(V(T,e))}`,{prefix:"\u21B3 "});continue}c.has(T)||(c.add(T),w.push(T))}let N=0;await Promise.allSettled(w.map(async T=>{await Xn(m,d?.userConfig??null,T)&&(N++,_(`Migrated ${C(V(T,e))}`,{prefix:"\u21B3 "}))})),d?.configFilePath?z(`Migrated templates for configuration file: ${C(V(d.configFilePath,e))} (${N} file${N===1?"":"s"} changed)`,{prefix:"\u21B3 "}):z(`Migrated templates for: ${C(V(p.file??"<unknown>",e))} (${N} file${N===1?"":"s"} changed)`,{prefix:"\u21B3 "})}}}P(3)&&await cn(e),await Promise.allSettled(r.map(n=>n())),Ar()?z("Verify the changes and commit them to your repository."):z("No changes were made to your repository.")}Gu().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
|