@tailwindcss/upgrade 0.0.0-insiders.01d1e98

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Tailwind Labs, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ <p align="center">
2
+ <a href="https://tailwindcss.com" target="_blank">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-dark.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg">
6
+ <img alt="Tailwind CSS" src="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
7
+ </picture>
8
+ </a>
9
+ </p>
10
+
11
+ <p align="center">
12
+ A utility-first CSS framework for rapidly building custom user interfaces.
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=next" alt="Build Status"></a>
17
+ <a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
18
+ <a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
19
+ <a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
20
+ </p>
21
+
22
+ ---
23
+
24
+ ## Documentation
25
+
26
+ For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
27
+
28
+ ## Community
29
+
30
+ For help, discussion about best practices, or feature ideas:
31
+
32
+ [Discuss Tailwind CSS on GitHub](https://github.com/tailwindcss/tailwindcss/discussions)
33
+
34
+ ## Contributing
35
+
36
+ If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindcss/tailwindcss/blob/next/.github/CONTRIBUTING.md) **before submitting a pull request**.
package/dist/index.mjs ADDED
@@ -0,0 +1,256 @@
1
+ #!/usr/bin/env node
2
+ var ao=Object.create;var br=Object.defineProperty;var so=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,co=Object.prototype.hasOwnProperty;var po=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uo(t))!co.call(e,i)&&i!==r&&br(e,i,{get:()=>t[i],enumerable:!(n=so(t,i))||n.enumerable});return e};var go=(e,t,r)=>(r=e!=null?ao(fo(e)):{},mo(t||!e||!e.__esModule?br(r,"default",{value:e,enumerable:!0}):r,e));var Ti=po((Sd,Vi)=>{"use strict";var ht=new Uint8Array(256);function ia(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){n.push(e.slice(i,a)),i=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===s)break}break;case 40:ht[r]=41,r++;break;case 91:ht[r]=93,r++;break;case 123:ht[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===ht[r-1]&&r--;break}}return n.push(e.slice(i)),n}var se=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,wd=new RegExp(`^${se.source}$`),kd=new RegExp(`^${se.source}%$`),bd=new RegExp(`^${se.source}s*/s*${se.source}$`),na=["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"],xd=new RegExp(`^${se.source}(${na.join("|")})$`),oa=["deg","rad","grad","turn"],Cd=new RegExp(`^${se.source}(${oa.join("|")})$`),Ad=new RegExp(`^${se.source} +${se.source} +${se.source}$`);function ye(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var la={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Te(e){return{__BARE_VALUE__:e}}var Z=Te(e=>{if(ye(e.value))return e.value}),I=Te(e=>{if(ye(e.value))return`${e.value}%`}),ve=Te(e=>{if(ye(e.value))return`${e.value}px`}),Si=Te(e=>{if(ye(e.value))return`${e.value}ms`}),vt=Te(e=>{if(ye(e.value))return`${e.value}deg`}),aa=Te(e=>{if(e.fraction===null)return;let[t,r]=ia(e.fraction,"/");if(!(!ye(t)||!ye(r)))return e.fraction}),$i=Te(e=>{if(ye(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),sa={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",...aa},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...I}),backdropContrast:({theme:e})=>({...e("contrast"),...I}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...I}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...vt}),backdropInvert:({theme:e})=>({...e("invert"),...I}),backdropOpacity:({theme:e})=>({...e("opacity"),...I}),backdropSaturate:({theme:e})=>({...e("saturate"),...I}),backdropSepia:({theme:e})=>({...e("sepia"),...I}),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",...ve},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",...I},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",...Z},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...I},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"),...ve}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...Z},flexShrink:{0:"0",DEFAULT:"1",...Z},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...I},grayscale:{0:"0",DEFAULT:"100%",...I},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Z},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Z},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Z},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Z},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...$i},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))",...$i},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%",...I},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...Z},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...I},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...Z},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...ve},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...I},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",...I},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%",...I},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",...Z},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...Si},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Si},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...Z}};Vi.exports=sa});import{Scanner as iu}from"@tailwindcss/oxide";import{globby as nu}from"globby";import oo from"fs/promises";import ou from"path";import H from"picocolors";import lu from"postcss";import{Scanner as Ii}from"@tailwindcss/oxide";import ka from"fs/promises";import Ui from"path";import{fileURLToPath as ba}from"url";import je from"enhanced-resolve";import{createJiti as ea}from"jiti";import nr from"fs";import ld from"fs/promises";import wi from"path";import{pathToFileURL as ki}from"url";import{__unstable__loadDesignSystem as fd,compile as cd,compileAst as pd,Features as md,Polyfills as dd}from"tailwindcss";import Mt from"fs/promises";import Ke from"path";var ho=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],vo=[".js",".cjs",".mjs"],yo=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],wo=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function ko(e,t){for(let r of t){let n=`${e}${r}`;if((await Mt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Mt.access(n).then(()=>!0,()=>!1))return n}return null}async function xr(e,t,r,n){let i=vo.includes(n)?yo:wo,o=await ko(Ke.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Ke.dirname(o),n=Ke.extname(o);let l=await Mt.readFile(o,"utf-8"),a=[];for(let s of ho)for(let u of l.matchAll(s))u[1].startsWith(".")&&a.push(xr(e,u[1],r,n));await Promise.all(a)}async function Cr(e){let t=new Set;return await xr(t,e,Ke.dirname(e),Ke.extname(e)),Array.from(t)}import*as Xl from"path";function z(e){return{kind:"word",value:e}}function bo(e,t){return{kind:"function",value:e,nodes:t}}function xo(e){return{kind:"separator",value:e}}function S(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,l=0,a=t(i,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(n,1),l=0):s.length===1?(e[n]=s[0],l=1):(e.splice(n,1,...s),l=s.length):e[n]=s)}})??0;if(o){a===0?n--:n+=l-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&S(i.nodes,t,i)===2)return 2}}function jt(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n];if(i.kind==="function"&&jt(i.nodes,t,i)===2)return 2;let o=!1,l=0,a=t(i,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(n,1),l=0):s.length===1?(e[n]=s[0],l=1):(e.splice(n,1,...s),l=s.length):e[n]=s)}})??0;if(o){a===0?n--:n+=l-1;continue}if(a===2)return 2}}function b(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+b(r.nodes)+")"}return t}var Ar=92,Co=41,Sr=58,$r=44,Ao=34,Vr=61,Tr=62,Nr=60,Er=10,So=40,$o=39,Vo=47,Pr=32,Rr=9;function k(e){e=e.replaceAll(`\r
3
+ `,`
4
+ `);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case Ar:{i+=e[l]+e[l+1],l++;break}case Vo:{if(i.length>0){let u=z(i);n?n.nodes.push(u):t.push(u),i=""}let s=z(e[l]);n?n.nodes.push(s):t.push(s);break}case Sr:case $r:case Vr:case Tr:case Nr:case Er:case Pr:case Rr:{if(i.length>0){let c=z(i);n?n.nodes.push(c):t.push(c),i=""}let s=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Sr&&o!==$r&&o!==Vr&&o!==Tr&&o!==Nr&&o!==Er&&o!==Pr&&o!==Rr));u++);l=u-1;let f=xo(e.slice(s,u));n?n.nodes.push(f):t.push(f);break}case $o:case Ao:{let s=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Ar)u+=1;else if(o===a){l=u;break}i+=e.slice(s,l+1);break}case So:{let s=bo(i,[]);i="",n?n.nodes.push(s):t.push(s),r.push(s),n=s;break}case Co:{let s=r.pop();if(i.length>0){let u=z(i);s?.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(a)}}return i.length>0&&t.push(z(i)),t}var Ft=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function _r(e){return e.indexOf("(")!==-1&&Ft.some(t=>e.includes(`${t}(`))}function Or(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 a=o;for(let u=o-1;u>=0;u--){let f=e.charCodeAt(u);if(f>=48&&f<=57)a=u;else if(f>=97&&f<=122)a=u;else break}let s=e.slice(a,o);if(Ft.includes(s)){r.unshift(!0);continue}else if(r[0]&&s===""){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 a=t.trimEnd(),s=a.charCodeAt(a.length-1),u=a.charCodeAt(a.length-2),f=e.charCodeAt(o+1);if((s===101||s===69)&&u>=48&&u<=57){t+=e[o];continue}else if(s===43||s===42||s===47||s===45){t+=e[o];continue}else if(s===40||s===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:s>=48&&s<=57||f>=48&&f<=57||s===41||f===40||f===43||f===42||f===47||f===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function We(e){if(e.indexOf("(")===-1)return _e(e);let t=k(e);return zt(t),e=b(t),e=Or(e),e}function _e(e,t=!1){let r="";for(let n=0;n<e.length;n++){let i=e[n];i==="\\"&&e[n+1]==="_"?(r+="_",n+=1):i==="_"&&!t?r+=" ":r+=i}return r}function zt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=_e(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=_e(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=_e(t.nodes[r].value,!0);continue}zt([t.nodes[r]])}break}t.value=_e(t.value),zt(t.nodes);break}case"separator":case"word":{t.value=_e(t.value);break}default:To(t)}}function To(e){throw new Error(`Unexpected value: ${e}`)}var v=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 Kt=new Uint8Array(256);function Oe(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:Kt[t]=41,t++;break;case 91:Kt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===Kt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var it=new Uint8Array(256);function w(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let a=0;a<o;a++){let s=e.charCodeAt(a);if(r===0&&s===l){n.push(e.slice(i,a)),i=a+1;continue}switch(s){case 92:a+=1;break;case 39:case 34:for(;++a<o;){let u=e.charCodeAt(a);if(u===92){a+=1;continue}if(u===s)break}break;case 40:it[r]=41,r++;break;case 91:it[r]=93,r++;break;case 123:it[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===it[r-1]&&r--;break}}return n.push(e.slice(i)),n}var No=58,Dr=45,Ir=97,Ur=122;function M(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(De),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(De),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(De),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function De(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:De(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ne(e,t){let r=w(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let c=r.length-1;c>=0;--c){let p=t.parseVariant(r[c]);if(p===null)return;i.push(p)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[l,a=null,s]=w(n,"/");if(s)return;let u=a===null?null:Eo(a);if(a!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let c=l.charCodeAt(1);if(c!==Dr&&!(c>=Ir&&c<=Ur))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=We(l.slice(p+1));if(!Oe(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let f;if(l[l.length-1]==="]"){let c=l.indexOf("-[");if(c===-1)return;let p=l.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=l.slice(c+1);f=[[p,m]]}else if(l[l.length-1]===")"){let c=l.indexOf("-(");if(c===-1)return;let p=l.slice(0,c);if(!t.utilities.has(p,"functional"))return;let m=l.slice(c+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Oe(m))return;f=[[p,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else f=Po(l,c=>t.utilities.has(c,"functional"));for(let[c,p]of f){let m={kind:"functional",root:c,modifier:u,value:null,variants:i,important:o,raw:e};if(p===null){yield m;continue}{let d=p.indexOf("[");if(d!==-1){if(p[p.length-1]!=="]")return;let h=We(p.slice(d+1,-1));if(!Oe(h))continue;let y="";for(let C=0;C<h.length;C++){let N=h.charCodeAt(C);if(N===No){y=h.slice(0,C),h=h.slice(C+1);break}if(!(N===Dr||N>=Ir&&N<=Ur))break}if(h.length===0||h.trim().length===0)continue;m.value={kind:"arbitrary",dataType:y||null,value:h}}else{let h=a===null||m.modifier?.kind==="arbitrary"?null:`${p}/${a}`;m.value={kind:"named",value:p,fraction:h}}}yield m}}function Eo(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=We(e.slice(1,-1));return!Oe(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]!=="-"||!Oe(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:We(e)})):{kind:"named",value:e}}function*Po(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 Bt(e){if(e===null)return"";let t=Oo(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${qt(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var Ro=new v(e=>{let t=k(e),r=new Set;return S(t,(n,{parent:i})=>{let o=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let l=o.indexOf(n)??-1;if(l===-1)return;let a=o[l-1];if(a?.kind!=="separator"||a.value!==" ")return;let s=o[l+1];if(s?.kind!=="separator"||s.value!==" ")return;r.add(a),r.add(s)}else n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(o[0]===n||o[o.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&S(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),Wt(t),b(t)});function qt(e){return Ro.get(e)}var xu=new v(e=>{let t=k(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?b(t[2].nodes):e});function Wt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Be(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Be(t.value);for(let r=0;r<t.nodes.length;r++)Wt([t.nodes[r]]);break}t.value=Be(t.value),Wt(t.nodes);break}case"separator":t.value=Be(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Be(t.value));break}default:Do(t)}}var _o=new v(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Oo(e){return _o.get(e)}function Do(e){throw new Error(`Unexpected value: ${e}`)}function Be(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Io=process.env.FEATURES_ENV!=="stable";function qe(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),a=(o===l?0:o<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(a)?e<t?-1:1:a}var oe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Pu=new RegExp(`^${oe.source}$`);var Ru=new RegExp(`^${oe.source}%$`);var _u=new RegExp(`^${oe.source}s*/s*${oe.source}$`);var Uo=["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"],Lo=new RegExp(`^${oe.source}(${Uo.join("|")})$`);function Lr(e){return Lo.test(e)||_r(e)}var Mo=["deg","rad","grad","turn"],Ou=new RegExp(`^${oe.source}(${Mo.join("|")})$`);var Du=new RegExp(`^${oe.source} +${oe.source} +${oe.source}$`);function O(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ee(e){return Mr(e,.25)}function Ht(e){return Mr(e,.25)}function Mr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ie(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 Fo={"--alpha":zo,"--spacing":Ko,"--theme":Wo,theme:Bo};function zo(e,t,r,...n){let[i,o]=w(r,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return Ie(i,o)}function Ko(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 Wo(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(n.length===0)return o;let l=n.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let a=k(o);return Ho(a,l),b(a)}return o}function Bo(e,t,r,...n){r=qo(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return i}var Xu=new RegExp(Object.keys(Fo).map(e=>`${e}\\(`).join("|"));function qo(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 Ho(e,t){S(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function Jt(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let l=e.charCodeAt(o),a=t.charCodeAt(o);if(l>=48&&l<=57&&a>=48&&a<=57){let s=o,u=o+1,f=o,c=o+1;for(l=e.charCodeAt(u);l>=48&&l<=57;)l=e.charCodeAt(++u);for(a=t.charCodeAt(c);a>=48&&a<=57;)a=t.charCodeAt(++c);let p=e.slice(s,u),m=t.slice(f,c),d=Number(p)-Number(m);if(d)return d;if(p<m)return-1;if(p>m)return 1;continue}if(l!==a)return l-a}return e.length-t.length}function Fr(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;Ue(e.charCodeAt(t));)t++;{for(r=t;t<n;t++){let f=e.charCodeAt(t);if(f===92){t++;continue}if(!(f>=65&&f<=90)&&!(f>=97&&f<=122)&&!(f>=48&&f<=57)&&!(f===45||f===95))break}if(r===t)return null}let i=e.slice(r,t);for(;Ue(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(;Ue(e.charCodeAt(t));)t++;if(t===n)return null;let a="",s=null;if(l=e.charCodeAt(t),l===39||l===34){s=e[t],t++,r=t;for(let f=t;f<n;f++){let c=e.charCodeAt(f);c===l?t=f+1:c===92&&f++}a=e.slice(r,t-1)}else{for(r=t;t<n&&!Ue(e.charCodeAt(t));)t++;a=e.slice(r,t)}for(;Ue(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:o,quote:s,value:a,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(;Ue(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:o,quote:s,value:a,sensitivity:u}}function Ue(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}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 ot(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function zr(e){let t=[];return Kr(e,[],(r,n)=>{if(Yo(r))return t.push([n,r]),1;if(Qo(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 Jo=/^[a-zA-Z0-9-_%/\.]+$/;function J(e){if(e[0]==="container")return null;e=e.slice(),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(!Jo.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 Yo(e){return typeof e=="number"||typeof e=="string"}function Qo(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 Kr(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")&&Kr(i,o,r)===2)return 2}}}function Zo(e){return{kind:"combinator",value:e}}function Xo(e,t){return{kind:"function",value:e,nodes:t}}function de(e){return{kind:"selector",value:e}}function el(e){return{kind:"separator",value:e}}function tl(e){return{kind:"value",value:e}}function lt(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],o=!1,l=0,a=t(i,{parent:r,replaceWith(s){o||(o=!0,Array.isArray(s)?s.length===0?(e.splice(n,1),l=0):s.length===1?(e[n]=s[0],l=1):(e.splice(n,1,...s),l=s.length):(e[n]=s,l=1))}})??0;if(o){a===0?n--:n+=l-1;continue}if(a===2)return 2;if(a!==1&&i.kind==="function"&&lt(i.nodes,t,i)===2)return 2}}function ge(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+"("+ge(r.nodes)+")"}return t}var Wr=92,rl=93,Br=41,il=58,qr=44,nl=34,ol=46,Hr=62,Gr=10,ll=35,Jr=91,Yr=40,Qr=43,al=39,Zr=32,Xr=9,ei=126,sl=38,ul=42;function Ge(e){e=e.replaceAll(`\r
5
+ `,`
6
+ `);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let a=e.charCodeAt(l);switch(a){case qr:case Hr:case Gr:case Zr:case Qr:case Xr:case ei:{if(i.length>0){let p=de(i);n?n.nodes.push(p):t.push(p),i=""}let s=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==qr&&o!==Hr&&o!==Gr&&o!==Zr&&o!==Qr&&o!==Xr&&o!==ei));u++);l=u-1;let f=e.slice(s,u),c=f.trim()===","?el(f):Zo(f);n?n.nodes.push(c):t.push(c);break}case Yr:{let s=Xo(i,[]);if(i="",s.value!==":not"&&s.value!==":where"&&s.value!==":has"&&s.value!==":is"){let u=l+1,f=0;for(let p=l+1;p<e.length;p++){if(o=e.charCodeAt(p),o===Yr){f++;continue}if(o===Br){if(f===0){l=p;break}f--}}let c=l;s.nodes.push(tl(e.slice(u,c))),i="",l=c,n?n.nodes.push(s):t.push(s);break}n?n.nodes.push(s):t.push(s),r.push(s),n=s;break}case Br:{let s=r.pop();if(i.length>0){let u=de(i);s.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}case ol:case il:case ll:{if(i.length>0){let s=de(i);n?n.nodes.push(s):t.push(s)}i=e[l];break}case Jr:{if(i.length>0){let f=de(i);n?n.nodes.push(f):t.push(f)}i="";let s=l,u=0;for(let f=l+1;f<e.length;f++){if(o=e.charCodeAt(f),o===Jr){u++;continue}if(o===rl){if(u===0){l=f;break}u--}}i+=e.slice(s,l+1);break}case al:case nl:{let s=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Wr)u+=1;else if(o===a){l=u;break}i+=e.slice(s,l+1);break}case sl:case ul:{if(i.length>0){let s=de(i);n?n.nodes.push(s):t.push(s),i=""}n?n.nodes.push(de(e[l])):t.push(de(e[l]));break}case Wr:{i+=e[l]+e[l+1],l+=1;break}default:i+=e[l]}}return i.length>0&&t.push(de(i)),t}var fl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,Se=new v(e=>{let t=fl.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 ti(e){let t=!1,r=k(e);return jt(r,(n,{replaceWith:i})=>{if(n.kind==="word"&&n.value!=="0"&&(n.value[0]==="-"&&n.value[1]==="0"||n.value[0]==="+"&&n.value[1]==="0"||n.value[0]==="0")){let o=Se.get(n.value);if(o===null||o[0]!==0)return;if(o[1]===null||Lr(n.value)){t=!0,i(z("0"));return}else if(n.value!==`0${o[1]}`){t=!0,i(z(`0${o[1]}`));return}}else if(n.kind==="function"&&(n.value==="calc"||n.value==="")){if(n.nodes.length!==5)return;let o=Se.get(n.nodes[0].value),l=n.nodes[2].value,a=Se.get(n.nodes[4].value);if(l==="*"&&(o?.[0]===0&&o?.[1]===null||a?.[0]===0&&a?.[1]===null)){t=!0,i(z("0"));return}if(o===null||a===null)return;switch(l){case"*":{(o[1]===a[1]||o[1]===null&&a[1]!==null||o[1]!==null&&a[1]===null)&&(t=!0,i(z(`${o[0]*a[0]}${o[1]??""}`)));break}case"+":{o[1]===a[1]&&(t=!0,i(z(`${o[0]+a[0]}${o[1]??""}`)));break}case"-":{o[1]===a[1]&&(t=!0,i(z(`${o[0]-a[0]}${o[1]??""}`)));break}case"/":{a[0]!==0&&(o[1]===null&&a[1]===null||o[1]!==null&&a[1]===null)&&(t=!0,i(z(`${o[0]/a[0]}${o[1]??""}`)));break}}}}),t?b(r):e}var ri=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,re=new v(e=>new v(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[le(".x",[$("@apply",t)])];return cl(e,()=>{for(let i of e.parseCandidate(t))e.compileAstNodes(i,1);Je(r,e)}),A(r,(i,{replaceWith:o})=>{i.kind==="declaration"?i.value===void 0||i.property==="--tw-sort"?o([]):i.value.includes("%")&&(ri.lastIndex=0,i.value=i.value.replaceAll(ri,l=>`${Number(l.slice(0,-1))}%`)):i.kind==="context"||i.kind==="at-root"?o(i.nodes):i.kind==="comment"?o([]):i.kind==="at-rule"&&i.name==="@property"&&o([])}),A(r,i=>{if(i.kind==="declaration"&&i.value!==void 0){if(i.value.includes("var(")){let o=!1,l=k(i.value),a=new Set;S(l,(s,{replaceWith:u})=>{if(s.kind!=="function"||s.value!=="var"||s.nodes.length!==1&&s.nodes.length<3)return;let f=s.nodes[0].value;e.theme.prefix&&f.startsWith(`--${e.theme.prefix}-`)&&(f=f.slice(`--${e.theme.prefix}-`.length));let c=e.resolveThemeValue(f);if(!a.has(f)&&(a.add(f),c!==void 0&&(s.nodes.length===1&&(o=!0,s.nodes.push(...k(`,${c}`))),s.nodes.length>=3))){let p=b(s.nodes),m=`${s.nodes[0].value},${c}`;p===m&&(o=!0,u(k(c)))}}),o&&(i.value=b(l))}i.value=ti(i.value),i.value=qt(i.value)}}),W(r)}catch{return Symbol()}})),Qt=new v(e=>{let t=re.get(e),r=new v(()=>[]);for(let[n,i]of e.getClassList()){let o=t.get(n);if(typeof o=="string"){if(n[0]==="-"&&n.endsWith("-0")){let l=t.get(n.slice(1));if(typeof l=="string"&&o===l)continue}r.get(o).push(n);for(let l of i.modifiers){if(ee(l))continue;let a=`${n}/${l}`,s=t.get(a);typeof s=="string"&&r.get(s).push(a)}}}return r}),at=new v(e=>new v(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[le(".x",[$("@apply",`${t}:flex`)])];return Je(r,e),A(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=Ge(i.selector),l=!1;lt(o,(a,{replaceWith:s})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),l=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(l=!0,s(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(l=!0,s(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(l=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),l&&(i.selector=ge(o))}}),W(r)}catch{return Symbol()}})),ii=new v(e=>{let t=at.get(e),r=new v(()=>[]);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 cl(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 q(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Y(e){let t=[];for(let r of w(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}var Df=new v(e=>{let t=e.theme.prefix?`${e.theme.prefix}:`:"",r=dl.get(e),n=hl.get(e);return new v((i,o)=>{for(let l of e.parseCandidate(i)){let a=l.variants.slice().reverse().flatMap(f=>r.get(f)),s=l.important;if(s||a.length>0){let c=o.get(e.printCandidate({...l,variants:[],important:!1}));return e.theme.prefix!==null&&a.length>0&&(c=c.slice(t.length)),a.length>0&&(c=`${a.map(p=>e.printVariant(p)).join(":")}:${c}`),s&&(c+="!"),e.theme.prefix!==null&&a.length>0&&(c=`${t}${c}`),c}let u=n.get(i);if(u!==i)return u}return i})}),ml=[kl,Rl,_l,Nl],dl=new v(e=>new v(t=>{let r=[t];for(let n of ml)for(let i of r.splice(0)){let o=n(e,De(i));if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r})),gl=[yl,wl,Al,$l,Tl,El,Pl,Ol],hl=new v(e=>new v(t=>{for(let r of e.parseCandidate(t)){let n=M(r);for(let o of gl)n=o(e,n);let i=e.printCandidate(n);if(t!==i)return i}return t})),vl=["t","tr","r","br","b","bl","l","tl"];function yl(e,t){if(t.kind==="static"&&t.root.startsWith("bg-gradient-to-")){let r=t.root.slice(15);return vl.includes(r)&&(t.root=`bg-linear-to-${r}`),t}return t}function wl(e,t){let r=oi.get(e);if(t.kind==="arbitrary"){let[n,i]=r(t.value,t.modifier===null?1:0);n!==t.value&&(t.value=n,i!==null&&(t.modifier=i))}else if(t.kind==="functional"&&t.value?.kind==="arbitrary"){let[n,i]=r(t.value.value,t.modifier===null?1:0);n!==t.value.value&&(t.value.value=n,i!==null&&(t.modifier=i))}return t}function kl(e,t){let r=oi.get(e),n=ft(t);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 t}var oi=new v(e=>{return t(e);function t(r){function n(a,s=0){let u=k(a);if(s&2)return[st(u,l),null];let f=0,c=0;if(S(u,d=>{d.kind==="function"&&d.value==="theme"&&(f+=1,S(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="word"&&g.value==="/"?(c+=1,2):1))}),f===0)return[a,null];if(c===0)return[st(u,o),null];if(c>1)return[st(u,l),null];let p=null;return[st(u,(d,g)=>{let h=w(d,"/").map(y=>y.trim());if(h.length>2)return null;if(u.length===1&&h.length===2&&s&1){let[y,C]=h;if(/^\d+%$/.test(C))p={kind:"named",value:C.slice(0,-1)};else if(/^0?\.\d+$/.test(C)){let N=Number(C)*100;p={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else p={kind:"arbitrary",value:C};d=y}return o(d,g)||l(d,g)}),p]}function i(a,s=!0){let u=`--${J(Y(a))}`;return r.theme.get([u])?s&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function o(a,s){let u=i(a);if(u)return s?`var(${u}, ${s})`:`var(${u})`;let f=Y(a);if(f[0]==="spacing"&&r.theme.get(["--spacing"])){let c=f[1];return ee(c)?`--spacing(${c})`:null}return null}function l(a,s){let u=w(a,"/").map(p=>p.trim());a=u.shift();let f=i(a,!1);if(!f)return null;let c=u.length>0?`/${u.join("/")}`:"";return s?`--theme(${f}${c}, ${s})`:`--theme(${f}${c})`}return n}});function st(e,t){return S(e,(r,{parent:n,replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let l=o.value,a=1;for(let f=a;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)l+=b([r.nodes[f]]),a=f+1;l=bl(l);let s=r.nodes.slice(a+1),u=s.length>0?t(l,b(s)):t(l);if(u===null)return;if(n){let f=n.nodes.indexOf(r)-1;for(;f!==-1;){let c=n.nodes[f];if(c.kind==="separator"&&c.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(u=`(${u})`);break}}i(k(u))}}),b(e)}function bl(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*ft(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function ae(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function xl(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 Cl=new v(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Se.get(t);if(!r)return null;let[n,i]=r;return new v(o=>{let l=Se.get(o);if(!l)return null;let[a,s]=l;return s!==i?null:a/n})});function Al(e,t){if(t.kind!=="arbitrary"&&!(t.kind==="functional"&&t.value?.kind==="arbitrary"))return t;let r=Qt.get(e),n=re.get(e),i=e.printCandidate(t),o=n.get(i);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(n.get(s)===o&&Sl(e,t,a))return a}return t;function*l(a,s){let u=r.get(a);if(!(u.length>1)){if(u.length===0&&s.modifier){let f={...s,modifier:null},c=n.get(e.printCandidate(f));if(typeof c=="string")for(let p of l(c,f))yield Object.assign({},p,{modifier:s.modifier})}if(u.length===1)for(let f of ae(e,u[0]))yield f;else if(u.length===0){let f=s.kind==="arbitrary"?s.value:s.value?.value??null;if(f===null)return;let c=Cl.get(e)?.get(f)??null,p="";c!==null&&c<0&&(p="-",c=Math.abs(c));for(let m of Array.from(e.utilities.keys("functional")).sort((d,g)=>+(d[0]==="-")-+(g[0]==="-"))){p&&(m=`${p}${m}`);for(let d of ae(e,`${m}-${f}`))yield d;if(s.modifier)for(let d of ae(e,`${m}-${f}${s.modifier}`))yield d;if(c!==null){for(let d of ae(e,`${m}-${c}`))yield d;if(s.modifier)for(let d of ae(e,`${m}-${c}${Bt(s.modifier)}`))yield d}for(let d of ae(e,`${m}-[${f}]`))yield d;if(s.modifier)for(let d of ae(e,`${m}-[${f}]${Bt(s.modifier)}`))yield d}}}}}function Sl(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 S(k(n),l=>{if(l.kind==="function"&&l.value==="var"){let a=l.nodes[0].value;if(!new RegExp(`var\\(${a}[,)]\\s*`,"g").test(i)||i.includes(`${a}:`))return o=!1,2}}),o}function $l(e,t){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let r=Qt.get(e),n=re.get(e),i=e.printCandidate(t),o=n.get(i);if(typeof o!="string")return t;for(let a of l(o,t)){let s=e.printCandidate(a);if(n.get(s)===o)return a}return t;function*l(a,s){let u=r.get(a);if(!(u.length>1)){if(u.length===0&&s.modifier){let f={...s,modifier:null},c=n.get(e.printCandidate(f));if(typeof c=="string")for(let p of l(c,f))yield Object.assign({},p,{modifier:s.modifier})}if(u.length===1)for(let f of ae(e,u[0]))yield f}}}var Vl=new Map([["order-none","order-0"]]);function Tl(e,t){let r=re.get(e),n=xl(e,t),i=Vl.get(n)??null;if(i===null)return t;let o=r.get(n);if(typeof o!="string")return t;let l=r.get(i);if(typeof l!="string"||o!==l)return t;let[a]=ae(e,i);return a}function Nl(e,t){let r=at.get(e),n=ii.get(e),i=ft(t);for(let[o]of i){if(o.kind==="compound")continue;let l=e.printVariant(o),a=r.get(l);if(typeof a!="string")continue;let s=n.get(a);if(s.length!==1)continue;let u=s[0],f=e.parseVariant(u);f!==null&&q(o,f)}return t}function El(e,t){let r=re.get(e);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let n=e.printCandidate({...t,value:{...t.value,dataType:null}});r.get(e.printCandidate(t))===r.get(n)&&(t.value.dataType=null)}return t}function Pl(e,t){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let r=re.get(e),n=r.get(e.printCandidate(t));if(n===null)return t;for(let i of li(t))if(r.get(e.printCandidate({...t,value:i}))===n)return t.value=i,t;return t}function Rl(e,t){let r=ft(t);for(let[n]of r)if(n.kind==="functional"&&n.root==="data"&&n.value?.kind==="arbitrary"&&!n.value.value.includes("="))n.value={kind:"named",value:n.value.value};else if(n.kind==="functional"&&n.root==="aria"&&n.value?.kind==="arbitrary"&&(n.value.value.endsWith("=true")||n.value.value.endsWith('="true"')||n.value.value.endsWith("='true'"))){let[i,o]=w(n.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;n.value={kind:"named",value:n.value.value.slice(0,n.value.value.indexOf("="))}}else n.kind==="functional"&&n.root==="supports"&&n.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(n.value.value)&&(n.value={kind:"named",value:n.value.value});return t}function*li(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&ee(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");O(o)&&O(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*li(e,o,r)}function ni(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 _l(e,t){let r=[t],n=at.get(e),i=ft(t);for(let[o,l]of i)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=Ge(o.selector.trim());if(!ni(a))continue;if(l===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==="*"){q(o,e.parseVariant("*"));continue}if(l===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==="*"){q(o,e.parseVariant("**"));continue}if(l===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),q(o,e.parseVariant(`in-[${ge(a)}]`));continue}if(l===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let c=n.get(e.printVariant(o)),p=k(ge(a)),m=!1;if(S(p,(d,{replaceWith:g})=>{d.kind==="word"&&d.value==="not"&&(m=!0,g([]))}),p=k(b(p)),S(p,d=>{d.kind==="separator"&&d.value!==" "&&d.value.trim()===""&&(d.value=" ")}),m){let d=e.parseVariant(`not-[${b(p)}]`);if(d===null)continue;let g=n.get(e.printVariant(d));if(c===g){q(o,d);continue}}}let s=null;l===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=[a[2]],s=e.parseVariant("*")),l===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=[a[2]],s=e.parseVariant("**"));let u=a.filter(c=>!(c.kind==="selector"&&c.value.trim()==="&"));if(u.length!==1)continue;let f=u[0];if(f.kind==="function"&&f.value===":is"){if(!ni(f.nodes)||f.nodes.length!==1||!ut(f.nodes[0]))continue;f=f.nodes[0]}if(f.kind==="function"&&f.value[0]===":"||f.kind==="selector"&&f.value[0]===":"){let c=f,p=!1;if(c.kind==="function"&&c.value===":not"){if(p=!0,c.nodes.length!==1||c.nodes[0].kind!=="selector"&&c.nodes[0].kind!=="function"||c.nodes[0].value[0]!==":")continue;c=c.nodes[0]}let m=(g=>{if(g===":nth-child"&&c.kind==="function"&&c.nodes.length===1&&c.nodes[0].kind==="value"&&c.nodes[0].value==="odd")return p?(p=!1,"even"):"odd";if(g===":nth-child"&&c.kind==="function"&&c.nodes.length===1&&c.nodes[0].kind==="value"&&c.nodes[0].value==="even")return p?(p=!1,"odd"):"even";for(let[h,y]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===h&&c.kind==="function"&&c.nodes.length===1)return c.nodes.length===1&&c.nodes[0].kind==="value"&&O(c.nodes[0].value)?`${y}-${c.nodes[0].value}`:`${y}-[${ge(c.nodes)}]`;if(p){let h=n.get(e.printVariant(o)),y=n.get(`not-[${g}]`);if(h===y)return`[&${g}]`}return null})(c.value);if(m===null)continue;p&&(m=`not-${m}`);let d=e.parseVariant(m);if(d===null)continue;q(o,d)}else if(ut(f)){let c=Fr(f.value);if(c===null)continue;if(c.attribute.startsWith("data-")){let p=c.attribute.slice(5);q(o,{kind:"functional",root:"data",modifier:null,value:c.value===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${c.operator}${c.quote??""}${c.value}${c.quote??""}${c.sensitivity?` ${c.sensitivity}`:""}`}})}else if(c.attribute.startsWith("aria-")){let p=c.attribute.slice(5);q(o,{kind:"functional",root:"aria",modifier:null,value:c.value===null?{kind:"arbitrary",value:p}:c.operator==="="&&c.value==="true"&&c.sensitivity===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${c.attribute}${c.operator}${c.quote??""}${c.value}${c.quote??""}${c.sensitivity?` ${c.sensitivity}`:""}`}})}}if(s)return[s,o]}return r}function Ol(e,t){if(t.kind!=="functional"&&t.kind!=="arbitrary"||t.modifier===null)return t;let r=re.get(e),n=r.get(e.printCandidate(t)),i=t.modifier;if(n===r.get(e.printCandidate({...t,modifier:null})))return t.modifier=null,t;{let o={kind:"named",value:i.value.endsWith("%")?i.value.includes(".")?`${Number(i.value.slice(0,-1))}`:i.value.slice(0,-1):i.value,fraction:null};if(n===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}{let o={kind:"named",value:`${parseFloat(i.value)*100}`,fraction:null};if(n===r.get(e.printCandidate({...t,modifier:o})))return t.modifier=o,t}return t}function Ye(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 f=t.parseCandidate(u);if(f.length===0){r?.(u);continue}l.set(u,f)}let a=0;(n??!0)&&(a|=1);let s=t.getVariantOrder();for(let[u,f]of l){let c=!1;for(let p of f){let m=t.compileAstNodes(p,a);if(m.length!==0){c=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let y of p.variants)h|=1n<<BigInt(s.get(y));i.set(d,{properties:g,variants:h,candidate:u}),o.push(d)}}}c||r?.(u)}return o.sort((u,f)=>{let c=i.get(u),p=i.get(f);if(c.variants-p.variants!==0n)return Number(c.variants-p.variants);let m=0;for(;m<c.properties.order.length&&m<p.properties.order.length&&c.properties.order[m]===p.properties.order[m];)m+=1;return(c.properties.order[m]??1/0)-(p.properties.order[m]??1/0)||p.properties.count-c.properties.count||Jt(c.candidate,p.candidate)}),{astNodes:o,nodeSorting:i}}function Je(e,t){let r=0,n=K("&",e),i=new Set,o=new v(()=>new Set),l=new v(()=>new Set);A([n],(c,{parent:p,path:m})=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return A(c.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(c.name==="@utility"){let d=c.params.replace(/-\*$/,"");l.get(d).add(c),A(c.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){i.add(c);for(let h of si(g,t))o.get(c).add(h)}});return}if(c.name==="@apply"){if(p===null)return;r|=1,i.add(p);for(let d of si(c,t))for(let g of m)g!==c&&i.has(g)&&o.get(g).add(d)}}});let a=new Set,s=[],u=new Set;function f(c,p=[]){if(!a.has(c)){if(u.has(c)){let m=p[(p.indexOf(c)+1)%p.length];throw c.kind==="at-rule"&&c.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&A(c.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let y of t.parseCandidate(h))switch(y.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===y.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
8
+
9
+ ${W([c])}
10
+ Relies on:
11
+
12
+ ${W([m])}`)}u.add(c);for(let m of o.get(c))for(let d of l.get(m))p.push(c),f(d,p),p.pop();a.add(c),u.delete(c),s.push(c)}}for(let c of i)f(c);for(let c of s)"nodes"in c&&A(c.nodes,(p,{replaceWith:m})=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let d=p.params.split(/(\s+)/g),g={},h=0;for(let[y,C]of d.entries())y%2===0&&(g[C]=h),h+=C.length;{let y=Object.keys(g),C=Ye(y,t,{respectImportant:!1,onInvalidCandidate:T=>{if(t.theme.prefix&&!T.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${T}\`. Did you mean \`${t.theme.prefix}:${T}\`?`);if(t.invalidCandidates.has(T))throw new Error(`Cannot apply utility class \`${T}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let G=w(T,":");if(G.length>1){let rt=G.pop();if(t.candidatesToCss([rt])[0]){let Pe=t.candidatesToCss(G.map(Re=>`${Re}:[--tw-variant-check:1]`)),pe=G.filter((Re,Lt)=>Pe[Lt]===null);if(pe.length>0){if(pe.length===1)throw new Error(`Cannot apply utility class \`${T}\` because the ${pe.map(Re=>`\`${Re}\``)} variant does not exist.`);{let Re=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${T}\` because the ${Re.format(pe.map(Lt=>`\`${Lt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${T}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${T}\``)}}),N=p.src,X=C.astNodes.map(T=>{let G=C.nodeSorting.get(T)?.candidate,rt=G?g[G]:void 0;if(T=te(T),!N||!G||rt===void 0)return A([T],pe=>{pe.src=N}),T;let Pe=[N[0],N[1],N[2]];return Pe[1]+=7+rt,Pe[2]=Pe[1]+G.length,A([T],pe=>{pe.src=Pe}),T}),Ae=[];for(let T of X)if(T.kind==="rule")for(let G of T.nodes)Ae.push(G);else Ae.push(T);m(Ae)}});return r}function*si(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 jl=32;var Fl=40;function ui(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===jl||o===Fl){r=e.slice(0,i),n=e.slice(i);break}}return $(r.trim(),n.trim(),t)}function fi(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let l=e[o];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?r=b(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=b(l.nodes);continue}n=b(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function 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 er(e,t,r){return function(i,o){let l=i.lastIndexOf("/"),a=null;l!==-1&&(a=i.slice(l+1).trim(),i=i.slice(0,l).trim());let s=(()=>{let u=Y(i),[f,c]=zl(e.theme,u),p=r(pi(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof f!="object")return typeof c!="object"&&c&4?p??f:f;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let m=Qe({},[p],(d,g)=>g);if(f===null&&Object.hasOwn(p,"__CSS_VALUES__")){let d={};for(let g in p.__CSS_VALUES__)d[g]=p[g],delete m[g];f=d}for(let d in f)d!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[d]&4&&pi(m,d.split("-"))!==void 0||(m[ot(d)]=f[d]));return m}if(Array.isArray(f)&&Array.isArray(c)&&Array.isArray(p)){let m=f[0],d=f[1];c[0]&4&&(m=p[0]??m);for(let g of Object.keys(d))c[1][g]&4&&(d[g]=p[1][g]??d[g]);return[m,d]}return f??p})();return a&&typeof s=="string"&&(s=Ie(s,a)),s??o}}function zl(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=J(t),n=new Map,i=new v(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let l=new Map;for(let[f,c]of o){if(!f||!f.includes("--")){n.set(f,c),l.set(f,e.getOptions(f?`--${r}-${f}`:`--${r}`));continue}let p=f.indexOf("--"),m=f.slice(0,p),d=f.slice(p+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),i.get(m===""?null:m).set(d,[c,e.getOptions(`--${r}${f}`)])}let a=e.getOptions(`--${r}`);for(let[f,c]of i){let p=n.get(f);if(typeof p!="string")continue;let m={},d={};for(let[g,[h,y]]of c)m[g]=h,d[g]=y;n.set(f,[p,m]),l.set(f,[a,d])}let s={},u={};for(let[f,c]of n)mi(s,[f??"DEFAULT"],c);for(let[f,c]of l)mi(u,[f??"DEFAULT"],c);return t[t.length-1]==="DEFAULT"?[s?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in s&&Object.keys(s).length===1?[s.DEFAULT,u.DEFAULT??0]:(s.__CSS_VALUES__=u,[s,u])}function pi(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 mi(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 pt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(K(n,[$("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(V(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(V(n,o)):t.push(K(n,pt(o)));else t.push(K(n,pt(i)));return t}function di(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push($("@keyframes",r,pt(n)));return t}var mt={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function $e(e){return{__BARE_VALUE__:e}}var Q=$e(e=>{if(O(e.value))return e.value}),D=$e(e=>{if(O(e.value))return`${e.value}%`}),he=$e(e=>{if(O(e.value))return`${e.value}px`}),gi=$e(e=>{if(O(e.value))return`${e.value}ms`}),dt=$e(e=>{if(O(e.value))return`${e.value}deg`}),Bl=$e(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!O(t)||!O(r)))return e.fraction}),hi=$e(e=>{if(O(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ql={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",...Bl},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...D}),backdropContrast:({theme:e})=>({...e("contrast"),...D}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...D}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...dt}),backdropInvert:({theme:e})=>({...e("invert"),...D}),backdropOpacity:({theme:e})=>({...e("opacity"),...D}),backdropSaturate:({theme:e})=>({...e("saturate"),...D}),backdropSepia:({theme:e})=>({...e("sepia"),...D}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...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",...D},caretColor:({theme:e})=>e("colors"),colors:()=>({...mt}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...Q},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...D},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...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",...Q},flexShrink:{0:"0",DEFAULT:"1",...Q},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...D},grayscale:{0:"0",DEFAULT:"100%",...D},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Q},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Q},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Q},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...Q},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...hi},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))",...hi},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",...dt},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...D},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...Q},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...D},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...Q},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",...dt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...D},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...D},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...D},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...dt},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...Q},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...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",...gi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...gi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...Q}};var Hl={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Ve(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Hl)};for(let i of t)tr(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=Jl(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Gl(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 tr(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??[])tr(e,{path:n,base:r,config:u,reference:i,src:o});for(let u of l)e.plugins.push(u),u.config&&tr(e,{path:n,base:r,config:u.config,reference:!!u.reference,src:u.src??o});let a=t.content??[],s=Array.isArray(a)?a:a.files;for(let u of s)e.content.files.push(typeof u=="object"?u:{base:r,pattern:u});e.configs.push(t)}function Jl(e){let t=new Set,r=er(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:mt});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let l=o.theme??{},a=l.extend??{};for(let s in l)s!=="extend"&&t.add(s);Object.assign(e.theme,l);for(let s in a)e.extend[s]??=[],e.extend[s].push(a[s])}delete e.theme.extend;for(let o in e.extend){let l=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let a=l.map(i);return Qe({},a,Gl)}}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 vi({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(V("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(V("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((a,s)=>qe(a[1],s[1],"asc")),l.length>0){let[a]=l[0];i.push($("@media",`(width >= --theme(--breakpoint-${a}))`,[V("max-width","none")]))}for(let[a,s]of Object.entries(r)){if(typeof s=="object")if("min"in s)s=s.min;else continue;o.set(a,$("@media",`(width >= ${s})`,[V("max-width",s)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([a])=>a!=="DEFAULT").map(([a,s])=>[a,n.theme.resolveValue(a,["--breakpoint"]),s]).filter(Boolean);l.sort((a,s)=>qe(a[1],s[1],"asc"));for(let[a,,s]of l)if(o&&o.has(a))o.get(a).nodes.push(V("padding-inline",s));else{if(o)continue;i.push($("@media",`(width >= theme(--breakpoint-${a}))`,[V("padding-inline",s)]))}}if(o)for(let[,l]of o)i.push(l);return i}function rr({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 yi(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 Ql=64;function le(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function $(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function K(e,t=[]){return e.charCodeAt(0)===Ql?ui(e,t):le(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ct(e){return{kind:"comment",value:e}}function te(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(te),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 A(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let o=e[i],l=r[r.length-1]??null;if(o.kind==="context"){if(A(o.nodes,t,r,{...n,...o.context})===2)return 2;continue}r.push(o);let a=!1,s=0,u=t(o,{parent:l,context:n,path:r,replaceWith(f){a||(a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),s=0):f.length===1?(e[i]=f[0],s=1):(e.splice(i,1,...f),s=f.length):(e[i]=f,s=1))}})??0;if(r.pop(),a){u===0?i--:i+=s-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in o){r.push(o);let f=A(o.nodes,t,r,n);if(r.pop(),f===2)return 2}}}function W(e,t){let r=0,n={file:null,code:""};function i(l,a=0){let s="",u=" ".repeat(a);if(l.kind==="declaration"){if(s+=`${u}${l.property}: ${l.value}${l.important?" !important":""};
13
+ `,t){r+=u.length;let f=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let c=r;r+=2,l.dst=[n,f,c]}}else if(l.kind==="rule"){if(s+=`${u}${l.selector} {
14
+ `,t){r+=u.length;let f=r;r+=l.selector.length,r+=1;let c=r;l.dst=[n,f,c],r+=2}for(let f of l.nodes)s+=i(f,a+1);s+=`${u}}
15
+ `,t&&(r+=u.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let f=`${u}${l.name} ${l.params};
16
+ `;if(t){r+=u.length;let c=r;r+=l.name.length,r+=1,r+=l.params.length;let p=r;r+=2,l.dst=[n,c,p]}return f}if(s+=`${u}${l.name}${l.params?` ${l.params} `:" "}{
17
+ `,t){r+=u.length;let f=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let c=r;l.dst=[n,f,c],r+=2}for(let f of l.nodes)s+=i(f,a+1);s+=`${u}}
18
+ `,t&&(r+=u.length,r+=2)}else if(l.kind==="comment"){if(s+=`${u}/*${l.value}*/
19
+ `,t){r+=u.length;let f=r;r+=2+l.value.length+2;let c=r;l.dst=[n,f,c],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return s}let o="";for(let l of e)o+=i(l,0);return n.code=o,o}function Zl(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 ir(e){let t=Zl(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function gt(e,t,r,n){if(e[0]!=="."){let a=await Ci(e,t,n);if(!a)throw new Error(`Could not resolve '${e}' from '${t}'`);let s=await xi(ki(a).href);return{path:a,base:wi.dirname(a),module:s.default??s}}let i=await Ci(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([xi(ki(i).href+"?id="+Date.now()),Cr(i)]);for(let a of l)r(a);return{path:i,base:wi.dirname(i),module:o.default??o}}var bi=null;async function xi(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 bi??=ea(import.meta.url,{moduleCache:!1,fsCache:!1}),await bi.import(e)}}var or=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],vd=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:or});var ta=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:or}),ra=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:or});async function Ci(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 Ai(ta,e,t).catch(()=>Ai(ra,e,t))}function Ai(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,l)=>{if(o)return i(o);n(l)}))}var Li=go(Ti());import yt from"tree-sitter";import wt from"tree-sitter-typescript";var lr=new yt;lr.setLanguage(wt.typescript);var ar=String.raw,ua=new yt.Query(wt.typescript,ar`
20
+ ; export default {}
21
+ (export_statement
22
+ value: [
23
+ (satisfies_expression (object
24
+ (pair
25
+ key: (property_identifier) @_name (#eq? @_name "plugins")
26
+ value: (array) @imports
27
+ )
28
+ ))
29
+ value: (as_expression (object
30
+ (pair
31
+ key: (property_identifier) @_name (#eq? @_name "plugins")
32
+ value: (array) @imports
33
+ )
34
+ ))
35
+ value: (object
36
+ (pair
37
+ key: (property_identifier) @_name (#eq? @_name "plugins")
38
+ value: (array) @imports
39
+ )
40
+ )
41
+ ]
42
+ )
43
+
44
+ ; module.exports = {}
45
+ (expression_statement
46
+ (assignment_expression
47
+ left: (member_expression) @left (#eq? @left "module.exports")
48
+ right: [
49
+ (satisfies_expression (object
50
+ (pair
51
+ key: (property_identifier) @_name (#eq? @_name "plugins")
52
+ value: (array) @imports
53
+ )
54
+ ))
55
+ (as_expression (object
56
+ (pair
57
+ key: (property_identifier) @_name (#eq? @_name "plugins")
58
+ value: (array) @imports
59
+ )
60
+ ))
61
+ (object
62
+ (pair
63
+ key: (property_identifier) @_name (#eq? @_name "plugins")
64
+ value: (array) @imports
65
+ )
66
+ )
67
+ ]
68
+ )
69
+ )
70
+ `),fa=new yt.Query(wt.typescript,ar`
71
+ (call_expression
72
+ function: [
73
+ (call_expression
74
+ function: (identifier) @_name (#eq? @_name "require")
75
+ arguments: (arguments
76
+ (string (string_fragment) @module_string)
77
+ )
78
+ )
79
+ (identifier) @module_identifier
80
+ ]
81
+ arguments: [
82
+ (arguments
83
+ (object
84
+ (pair
85
+ key: [
86
+ (property_identifier) @property
87
+ (string (string_fragment) @property)
88
+ ]
89
+
90
+ value: [
91
+ (string (string_fragment) @str_value)
92
+ (template_string
93
+ . (string_fragment) @str_value
94
+ ; If the template string has more than exactly one string
95
+ ; fragment at the top, the migration should bail.
96
+ _ @error
97
+ )
98
+ (number) @num_value
99
+ (true) @true_value
100
+ (false) @false_value
101
+ (null) @null_value
102
+ (array [
103
+ (string (string_fragment) @str_value)
104
+ (template_string (string_fragment) @str_value)
105
+ (number) @num_value
106
+ (true) @true_value
107
+ (false) @false_value
108
+ (null) @null_value
109
+ ]) @array_value
110
+ ]
111
+ )
112
+ )
113
+ )
114
+ (arguments) @_empty_args (#eq? @_empty_args "()")
115
+ ]
116
+ )
117
+ (call_expression
118
+ function: (identifier) @_name (#eq? @_name "require")
119
+ arguments: (arguments
120
+ (string (string_fragment) @module_string)
121
+ )
122
+ )
123
+ `);function sr(e){try{let r=lr.parse(e).rootNode,n=pa(e),i=ua.matches(r),o=[];for(let l of i)for(let a of l.captures)if(a.name==="imports"){for(let s of a.node.children)if(!(s.type==="["||s.type==="]"||s.type===","))switch(s.type){case"identifier":let u=n[s.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([s.children[1].text,null]);break;case"call_expression":let f=fa.matches(s);if(f.length===0)return null;let c=null,p=null,m=null,d=null,g=f.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let y=g[h];switch(y.name){case"module_identifier":{p=y.node.text;break}case"module_string":{c=y.node.text;break}case"property":{if(d!==null)return null;d=y.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]=Ni(y),d=null;break}case"array_value":{if(d===null)return null;m??={};let C=[],N=h;e:for(let X=h+1;X<g.length;X++){let Ae=g[X];switch(Ae.name){case"property":{if(Ae.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":C.push(Ni(Ae)),N=X}}h=N,m[d]=C,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(p!==null){let h=n[p];if(!h||h.export!==null&&h.export!=="*")return null;c=h.module}if(c===null)return null;o.push([c,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var ca=new yt.Query(wt.typescript,ar`
124
+ ; ESM import
125
+ (import_statement
126
+ (import_clause
127
+ (identifier)? @default
128
+ (named_imports
129
+ (import_specifier
130
+ name: (identifier) @imported-name
131
+ alias: (identifier)? @imported-alias
132
+ )
133
+ )?
134
+ (namespace_import (identifier) @imported-namespace)?
135
+ )
136
+ (string
137
+ (string_fragment) @imported-from)
138
+ )
139
+
140
+ ; CJS require
141
+ (variable_declarator
142
+ name: (identifier)? @default
143
+ name: (object_pattern
144
+ (shorthand_property_identifier_pattern)? @imported-name
145
+ (pair_pattern
146
+ key: (property_identifier) @imported-name
147
+ value: (identifier) @imported-alias
148
+ )?
149
+ (rest_pattern
150
+ (identifier) @imported-namespace
151
+ )?
152
+ )?
153
+ value: (call_expression
154
+ function: (identifier) @_fn (#eq? @_fn "require")
155
+ arguments: (arguments
156
+ (string
157
+ (string_fragment) @imported-from
158
+ )
159
+ )
160
+ )
161
+ )
162
+ `);function pa(e){let r=lr.parse(e).rootNode,n=ca.matches(r),i={};for(let o of n){let l=[],a="";for(let s=0;s<o.captures.length;s++){let u=o.captures[s];switch(u.name){case"default":l.push({name:u.node.text,export:null});break;case"imported-name":l.push({name:u.node.text,export:u.node.text});break;case"imported-from":a=u.node.text;break;case"imported-namespace":l.push({name:u.node.text,export:"*"});break;case"imported-alias":if(l.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let f=l[l.length-1],c=f.name;f.export=c,f.name=u.node.text;break}}for(let{name:s,export:u}of l)i[s]={module:a,export:u}}return i}function Ni(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 ya from"fs";import Ri from"path";import{stripVTControlCharacters as _i}from"util";import j from"picocolors";import Fe from"enhanced-resolve";import ur from"fs";import{createRequire as ma}from"module";var da=ma(import.meta.url).resolve;function Ei(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return da(e)}var ga=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),ha=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Pi(e,t){try{return ga.resolveSync({},t,e)}catch{return ha.resolveSync({},t,e)}}var va=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function fr(e,t){return va.resolveSync({},t,e)}var kt={indent:2};function bt(){return`${j.italic(j.bold(j.blue("\u2248")))} tailwindcss ${j.blue(`v${wa()}`)}`}function x(e){return`${j.dim(j.blue("`"))}${j.blue(e)}${j.dim(j.blue("`"))}`}function _(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Ri.relative(t,e);return n.startsWith("..")||(n=`.${Ri.sep}${n}`),r&&n.length>e.length?e:n}function Ze(e,t){if(e.includes(`
163
+ `))return e.split(`
164
+ `).flatMap(l=>l?Ze(l,t):[""]);let r=e.split(" "),n=[],i="",o=0;for(let l of r){let a=_i(l).length;o+a+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+l,o+=a+(o?1:0)}return o&&n.push(i),n}function Xe(e,t=0){return`${" ".repeat(t+kt.indent)}${e}`}function xt(e,{art:t=j.gray("\u2502"),prefix:r="",print:n=we}){let i=r.length,o=" ",l=o.length,a=_i(t).length,u=process.stderr.columns-i-l*2-a;Ze(e,u).map((f,c)=>n(`${t}${o}${c===0?r:" ".repeat(i)}${f}${o}`)),n()}function L(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.green("\u2502"),prefix:t,print:r})}function F(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.blue("\u2502"),prefix:t,print:r})}function P(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.red("\u2502"),prefix:t,print:r})}function Ct(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.yellow("\u2502"),prefix:t,print:r})}function we(e=""){process.stderr.write(`${e}
165
+ `)}function B(e=""){process.stdout.write(`${e}
166
+ `)}function wa(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(ya.readFileSync(Ei("tailwindcss/package.json"),"utf-8"));return e}var xa=ba(import.meta.url),Ca=Ui.dirname(xa);async function Mi(e,t,r){let[n,i]=await Promise.all([gt(t,Ca,()=>{}).then(u=>u.module),ka.readFile(t,"utf-8")]);if(!Ta(n,i))return F(`The configuration file at ${x(_(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let o=[],l=[],a=[];if("darkMode"in n&&a.push(Sa(n)),"content"in n&&(o=await Va(n,t,r)),"theme"in n){let u=await Aa(e,n,r);u&&a.push(u)}"corePlugins"in n&&F("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let s=sr(i);if(s!==null)for(let[u,f]of s)l.push({base:r,path:u,options:f});return{sources:o,plugins:l,css:a.join(`
167
+ `)}}async function Aa(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=Ve(e,[n]),l=new Map(Array.from(o.entries()).map(([p])=>[p,!1]));_a(e,i,o);let a="",s="",u=[],f="",c=new Map;{if("keyframes"in i.theme&&(f+=Ea(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let p=vi(i.theme.container,e);p.length>0&&(a+=`
168
+ @tw-bucket theme {
169
+ `,a+=W([$("@utility","container",p)]),a+=`}
170
+ `),delete i.theme.container}if("aria"in i.theme){for(let[p,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${p}=(['"]?)true\\1$`).test(`${m}`)||c.set(`aria-${p}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[p,m]of Object.entries(i.theme.data??{}))p!==m&&c.set(`data-${p}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[p,m]of Object.entries(i.theme.supports??{})){let d=k(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===p&&d[2].kind==="function"&&d[2].value==="var")&&c.set(`supports-${p}`,`{@supports(${m}){@slot;}}`)}delete i.theme.supports}}for(let[p,m]of zr(i.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),p[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&p[1]===m.replace(/%$/,"")&&Ht(p[1]))continue}let d=$a(p);if(d!==s&&(u.push(""),s=d),l.has(p[0])&&l.get(p[0])===!1){l.set(p[0],!0);let h=J([p[0]]);h!==null&&u.push(` ${me(`--${h}`)}-*: initial;`)}let g=J(p);g!==null&&u.push(` ${me(`--${g}`)}: ${m};`)}if(f&&u.push("",f),u.length>0&&(a+=`
171
+ @tw-bucket theme {
172
+ `,a+=`
173
+ @theme {
174
+ `,a+=u.join(`
175
+ `)+`
176
+ `,a+=`}
177
+ `,a+=`}
178
+ `),c.size>0){a+=`
179
+ @tw-bucket custom-variant {
180
+ `;let p="";for(let[m,d]of c){let g=m.split("-")[0];p!==g&&(a+=`
181
+ `),p=g,d.startsWith("{")?a+=`@custom-variant ${m} ${d}
182
+ `:a+=`@custom-variant ${m} (${d});
183
+ `}a+=`}
184
+ `}return a}function Sa(e){let t="";if(rr({config:()=>e.darkMode,addVariant:(o,l)=>t=l}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
185
+ @tw-bucket custom-variant {
186
+ @custom-variant dark (${t[0]});
187
+ }
188
+ `;let i="";for(let o of t)o.includes("{")?i+=o.replace("}","{ @slot }}")+`
189
+ `:i+=o+`{ @slot }
190
+ `;return i!==""?`
191
+ @tw-bucket custom-variant {
192
+ @custom-variant dark {${i}};
193
+ }
194
+ `:""}function $a(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function Va(e,t,r){let n=Pa(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,l=Array.isArray(e.content)?e.content.map(a=>({base:r,pattern:a})):(e.content?.files??[]).map(a=>typeof a=="string"&&o?{base:Ui.dirname(t),pattern:a}:{base:r,pattern:a});for(let{base:a,pattern:s}of l){if(typeof s!="string")throw new Error("Unsupported content value: "+s);let u=Ra({base:a,pattern:s[0]==="!"?s.slice(1):s,negated:s[0]==="!"}),f=!0;for(let c of u)if(!n.includes(c)){f=!1;break}f||i.push({base:a,pattern:s})}return i}function Ta(e,t){function r(a){return typeof a=="function"?!1:Array.isArray(a)?a.every(r):typeof a=="object"&&a!==null?Object.values(a).every(r):["string","number","boolean","undefined"].includes(typeof a)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let l=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(a=>!l.includes(a))||sr(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!Oi(i.extend))return!1;let{extend:a,...s}=i;if(!Oi(s))return!1}return!0}var Na=[...Object.keys(Li.default),"containers"];function Oi(e){for(let t of Object.keys(e))if(!Na.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function Ea(e){let t=di({theme:{keyframes:e}});return W(t).trim()+`
195
+ `}function Pa(e){let t=new Ii({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Ra(e){let t=new Ii({sources:[e]});return t.scan(),t.files}function _a(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=Di(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[l,a]of Object.entries(t.theme.spacing??{})){let[s,u]=Di(a);s!==null&&ee(l)&&u===o&&parseFloat(s)===Number(l)*parseFloat(i)&&(delete t.theme.spacing[l],e.theme.clearNamespace(me(`--spacing-${l.replaceAll(".","_")}`),0))}}function Di(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import ue from"fs/promises";import mr from"path";import{exec as Oa}from"child_process";import{readFileSync as Da}from"fs";import ze from"fs/promises";import{dirname as Ia,resolve as Ne}from"path";import{promisify as Ua}from"util";var ji=Ua(Oa),Fi={default:"-D",bun:"-d"},cr=new v(e=>{try{let t=Ne(e,"package.json");return Da(t,"utf-8")}catch{return""}});function Ee(e){return{async manager(){return await pr.get(e)},async add(t,r="dependencies"){let n=await pr.get(e),i=t.slice();r==="devDependencies"&&i.push(Fi[n]||Fi.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await ji(o,{cwd:e})}catch(l){throw P(`An error occurred while running \`${o}\`
196
+
197
+ ${l.stdout}
198
+ ${l.stderr}`,{prefix:"\u21B3 "}),l}finally{cr.delete(e)}},has(t){return cr.get(e).includes(`"${t}":`)},async remove(t){let n=`${await pr.get(e)} remove ${t.join(" ")}`;try{return await ji(n,{cwd:e})}catch(i){throw P(`An error occurred while running \`${n}\`
199
+
200
+ ${i.stdout}
201
+ ${i.stderr}`,{prefix:"\u21B3 "}),i}finally{cr.delete(e)}}}}var zi=!1,pr=new v(async e=>{do{let t=Ne(e,"package.json");try{let n=await ze.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 ze.access(Ne(e,"bun.lockb")),"bun"}catch{}try{return await ze.access(Ne(e,"bun.lock")),"bun"}catch{}try{return await ze.access(Ne(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await ze.access(Ne(e,"yarn.lock")),"yarn"}catch{}try{return await ze.access(Ne(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Ia(e),r===e)return zi||(zi=!0,Ct("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Wi(e){let t=!1,r=!1,n=!1,i=!1,o=!1,l=mr.resolve(e,"package.json"),a;try{a=JSON.parse(await ue.readFile(l,"utf-8"))}catch{}let s=await ja(e);if(s){let u=await La(s);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&a&&"postcss"in a){let u=await Ki(a.postcss);t=!0,u&&(await ue.writeFile(l,JSON.stringify({...a,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await za(e),f=null;if(u){try{f=JSON.parse(await ue.readFile(u,"utf-8"))}catch{}if(f){let c=await Ki(f);t=!0,c&&(await ue.writeFile(u,JSON.stringify(c.json,null,2)),r=!0,n=c.didAddPostcssClient,i=c.didRemoveAutoprefixer,o=c.didRemovePostCSSImport)}}}if(!t){F("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(a?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(a?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await Ee(e).add(["@tailwindcss/postcss@latest"],u),L(`Installed package: ${x("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await Ee(e).remove(["autoprefixer"]),L(`Removed package: ${x("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await Ee(e).remove(["postcss-import"]),L(`Removed package: ${x("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&s&&L(`Migrated PostCSS configuration: ${x(_(s,e))}`,{prefix:"\u21B3 "})}async function La(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function n(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function i(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(F("Migrating PostCSS configuration\u2026"),!await Ka(e))return Ct("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let l=!1,a=!1,s=!1,f=(await ue.readFile(e,"utf-8")).split(`
202
+ `),c=[];for(let p=0;p<f.length;p++){let m=f[p];if(t(m))l=!0,c.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))a=!0;else if(r(m)){let d=!1;for(let g=p+1;g<f.length;g++){let h=f[g];if(t(h))break;if(!i(h)){d=!0;break}}d?c.push(m):s=!0}else if(i(m)){let d=f[p+1];t(d)||c.push(m)}else c.push(m)}return await ue.writeFile(e,c.join(`
203
+ `)),{didAddPostcssClient:l,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}async function Ki(e){function t(f,c){return f==="tailwindcss"&&At(c)}function r(f,c){return f==="postcss-import"&&At(c)}function n(f,c){return f==="autoprefixer"&&At(c)}function i(f,c){return f==="tailwindcss/nesting"&&(c==="postcss-nesting"||At(c))}let o=!1,l=!1,a=!1,s=Object.entries(e.plugins||{}),u=[];for(let f=0;f<s.length;f++){let[c,p]=s[f];if(t(c,p))o=!0,u.push(["@tailwindcss/postcss",p]);else if(n(c,p))l=!0;else if(r(c,p)){let m=!1;for(let d=f+1;d<s.length;d++){let[g,h]=s[d];if(t(g,h))break;if(!i(g,h)){m=!0;break}}m?u.push([c,p]):a=!0}else if(i(c,p)){let[m,d]=s[f+1];t(m,d)||u.push([c,p])}else u.push([c,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:l,didRemovePostCSSImport:a}}var Ma=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function ja(e){for(let t of Ma){let r=mr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}var Fa=[".postcssrc",".postcssrc.json"];async function za(e){for(let t of Fa){let r=mr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}async function Ka(e){let t=await ue.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function At(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Ha}from"globby";import Ga from"path";import Ja from"postcss";import{__unstable__loadDesignSystem as Ba,compileAst as qa}from"@tailwindcss/node";import*as qi from"fs";import*as Hi from"fs/promises";import*as ke from"path";import*as Gi from"util";import*as St from"postcss";var Wa=33;function Bi(e){let t=new v(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let l=o.source;if(!l)return;let a=l.input;if(a&&l.start!==void 0&&l.end!==void 0)return[t.get(a),l.start.offset,l.end.offset]}function n(o,l){if(o.type==="decl"){let a=V(o.prop,o.value,o.important);a.src=r(o),l.push(a)}else if(o.type==="rule"){let a=K(o.selector);a.src=r(o),o.each(s=>n(s,a.nodes)),l.push(a)}else if(o.type==="atrule"){let a=$(`@${o.name}`,o.params);a.src=r(o),o.each(s=>n(s,a.nodes)),l.push(a)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==Wa)return;let a=ct(o.text);a.src=r(o),l.push(a)}}let i=[];return e.each(o=>n(o,i)),i}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=ke.resolve(process.cwd(),t);let r=await Hi.readFile(t,"utf-8"),n=St.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=ke.resolve(process.cwd(),t);let r=qi.readFileSync(t,"utf-8"),n=St.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=St.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=ke.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 et(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of et(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of et(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 et(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:qa(Bi(this.root),{base:ke.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Ba(this.root.toString(),{base:ke.dirname(this.file)})}[Gi.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*et(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*et(n.item,t,i),yield{item:n.item,path:i}}}async function Ji(e){let t=await Ha(),r=[],n=new v(s=>{try{if(t(s))return null}catch{return null}try{let u=ie.loadSync(s);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Ja([{postcssPlugin:"mark-import-nodes",AtRule:{import(s){let u=s.params.match(/['"](.*?)['"]/)?.[1];if(!u)return;let f=s.source?.input.file?Ga.dirname(s.source.input.file):process.cwd(),c=!1;try{if(u[0]!==".")try{c=fr(`./${u}`,f)}catch{}c||(c=fr(u,f))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;P(`Failed to resolve import: ${x(u)} in ${x(_(s.source?.input.file,f))}. Skipping.`,{prefix:"\u21B3 "});return}if(!c)return;let p=n.get(c);if(!p)return;s.raws.tailwind_destination_sheet_id=p.id;let m=s.source?.input.file?n.get(s.source.input.file):void 0,d=[];for(let g of w(s.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};p.parents.add({item:m,meta:g}),m.children.add({item:p,meta:g})}}}}]);for(let s of e)s.file&&(n.set(s.file,s),r.push(()=>i.process(s.root,{from:s.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function l(s){let u=[];for(let f of s){if(!f.item.file)continue;let c=f.item.file.replace(o,""),p=f.meta.layers.join(", ");p.length>0?u.push(`${c} (layers: ${p})`):u.push(c)}return u.join(" <- ")}let a=[];for(let s of e){if(!s.file)continue;let{convertiblePaths:u,nonConvertiblePaths:f}=s.analyzeImportPaths();if(!(u.length>0&&f.length>0))continue;s.canMigrate=!1;let p=s.file.replace(o,"");for(let m of u)a.push(`- ${p} <- ${l(m)}`);for(let m of f)a.push(`- ${p} <- ${l(m)}`)}if(a.length===0){let s=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(f=>{(f.name==="tailwind"||f.name==="import"&&f.params.match(/^["']tailwindcss["']/)||f.name==="import"&&f.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,s.add(u))});if(s.size<=1)return;{let u=new v(()=>new Set);for(let c of s)u.get(c).add(c);let f=!0;e:for(;f;){f=!1;for(let[c,p]of u)for(let[m,d]of u){if(c===m)continue;let g=[c].concat(Array.from(c.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let y of g)for(let C of h){if(y!==C)continue;let N=y;u.delete(c),u.delete(m);for(let X of p)u.get(N).add(X);for(let X of d)u.get(N).add(X);f=!0;continue e}}}for(let[c,p]of u){c.isTailwindRoot=!0;for(let m of p)c!==m&&(m.isTailwindRoot=!1)}return}}{let s=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
204
+ `;throw s+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
205
+ `,new Error(s+a.join(`
206
+ `))}}import Yi from"postcss";import{format as Qi}from"prettier";function R(e,t){let r;return e.each?.((n,i)=>{let o=t(n,i,e)??0;if(o===2)return r=!1,r;if(o!==1)return r=R(n,t),r}),r}function dr(e,t){e?.each?.(r=>{dr(r,t),t(r)})}var Zi={parser:"css",semi:!0,singleQuote:!0};function Xi(){async function e(t){let r=[];R(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 Qi(o,Zi));continue}i.replaceWith(Yi.parse(`${i.raws.before??""}${(await Qi(o,Zi)).trim()}`))}t.removeAll(),t.append(Yi.parse(n.map(i=>i.trim()).filter(Boolean).join(`
207
+
208
+ `)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as us}from"@tailwindcss/node";import xe from"path";import fs from"postcss";import{__unstable__loadDesignSystem as an,compile as rs}from"@tailwindcss/node";import is from"fs/promises";import be,{dirname as sn}from"path";import{fileURLToPath as ns}from"url";import{execSync as Qa}from"child_process";import tn from"semver";import{readFileSync as Ya}from"fs";import jg from"fs/promises";function en(e,t){try{let r=Pi(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(Ya(r,"utf8"));return n}catch{return null}}function E(e){return tn.satisfies(fe(),`>=${e}.0.0 <${e+1}.0.0`)}function rn(e){return tn.gte(fe(),`${e+1}.0.0`)}var Za=new v(e=>{let t=en("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function fe(e=process.cwd()){return Za.get(e)}var Xa=new v(e=>{try{return Qa("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),fe(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??fe(e)}catch{return fe(e)}}});function gr(e=process.cwd()){return Xa.get(e)}var nn=new WeakSet;function on(e,t,r){if(!e.theme.prefix||!t||!E(3))return r;nn.has(e)||(e.utilities.functional("group",l=>[V("--phantom-class","group"),V("--phantom-modifier",l.modifier?.value)]),e.utilities.functional("peer",l=>[V("--phantom-class","peer"),V("--phantom-modifier",l.modifier?.value)]),nn.add(e));let n=es(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let l=r.slice(0,n.start)+n.base+r.slice(n.end),a=[...ne(l,e)];a.length>0&&(o=a[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function es(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=w(r,":").pop(),o=r.length-i.length,l=o+i.length,a=!1,s=!1;return i[i.length-1]==="!"?(a=!0,i=i.slice(0,-1)):i[0]==="!"&&(a=!0,i=i.slice(1)),i[0]==="-"&&(s=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),s&&(i="-"+i),a&&(i+="!"),{base:i,start:o,end:l})}var ts=/([a-z]+)/;function ln(e){let t=ts.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 os=ns(import.meta.url),tt=sn(os),un=String.raw;async function fn(e,t){try{e===null?e=await hr(t.base):be.isAbsolute(e)||(e=be.resolve(t.base,e));let r=be.relative(tt,e);!r.startsWith(".")&&!be.isAbsolute(r)&&(r="./"+r);let n=await ls(e),i=n.prefix?ln(n.prefix):null,o=un`
209
+ @import 'tailwindcss' ${i?`prefix(${i})`:""};
210
+ @config '${r}';
211
+ `,[l,a]=await Promise.all([rs(o,{base:tt,onDependency:()=>{}}),an(o,{base:tt})]);return{designSystem:a,sources:l.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){P("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function ls(e){let[t,r]=await Promise.all([an(un`
212
+ @import 'tailwindcss';
213
+ `,{base:tt}),gt(e,tt,()=>{}).then(n=>n.module)]);return Ve(t,[{base:sn(e),config:r,reference:!1}]).resolvedConfig}var as=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function hr(e,t=e){for(let r of ss(e,t))for(let n of as){let i=be.resolve(r,n);try{return await is.access(i),i}catch{}}throw new Error(`No configuration file found for ${x(_(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${x("--config")} option.`)}function*ss(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 cn(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 ${x("@tailwind")}.`);let i=n.filter(u=>{let f=!1;return u.root.walkAtRules("config",c=>{let p=xe.resolve(xe.dirname(u.file),c.params.slice(1,-1));return u.linkedConfigPath=p,f=!0,!1}),!f});if(i.length===0)return;let o=new Map,l=new v(()=>new Set);for(let u of i){if(!u.file)continue;let f=t;t===null?f=await hr(xe.dirname(u.file),r):xe.isAbsolute(f)||(f=xe.resolve(r,f)),o.set(u,f),l.get(f).add(u)}let a=new Set;for(let u of l.values())if(u.size>1)for(let f of u)a.add(f);if(a.size>1){for(let u of a)P(`Could not determine configuration file for: ${x(_(u.file,r))}
215
+ Update your stylesheet to use ${x("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let s=_;for(let[u,f]of o)try{if(!u||!u.file)return;L(`Linked ${x(s(f,r))} to ${x(s(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=f;let c=xe.relative(xe.dirname(u.file),f);!c.startsWith(".")&&!xe.isAbsolute(c)&&(c="./"+c),c=us(c);{let p=u.root,m=fs.atRule({name:"config",params:`'${c}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(p=d)}),p.type==="root"?u.root.prepend(m):p.type==="atrule"&&p.after(m)}}catch(c){P("Could not load the configuration file: "+c.message,{prefix:"\u21B3 "}),process.exit(1)}}import Qs from"postcss";import Rn from"fs/promises";import _n,{extname as Os}from"path";function pn(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 cs}from"@tailwindcss/oxide";async function mn(e,t="html"){let n=new cs({}).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 dn(e){let t=M(e);return t.important=!1,t.variants=[],t}var ps=["&&","||","?","===","==","!=","!==",">",">=","<","<="],ms=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],ds=/placeholder=\{?['"`]$/,gs=/\b\$?emit\(['"`]$/;function hn(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let s=hs.get(t.contents);for(let u=0;u<s.length;u+=2){let f=s[u],c=s[u+1];if(t.start>=f&&t.end<=c)return!1}}let[n]=ne(e,r);if(!n&&rn(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 s=t.start-1;s>=0;s--){let u=t.contents.at(s);if(u===`
216
+ `)break;i=u+i}let o="";for(let s=t.end;s<t.contents.length;s++){let u=t.contents.at(s);if(u===`
217
+ `)break;o+=u}let l=gn(i),a=gn(o);if(!l||!a||o[0]==="."||o.trim().startsWith("("))return!1;for(let s of ps)if(o.trim().startsWith(s)||i.trim().endsWith(s))return!1;for(let s of ms)if(s.test(i))return!1;return!(ds.test(i)||gs.test(i))}var hs=new v(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)}}),vs=92,ys=34,ws=39,ks=96;function gn(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case vs:r++;break;case ws:case ys:case ks:t===n?t=null:t===null&&(t=n);break}}return t!==null}function vn(e,t,r){for(let n of e.parseCandidate(r)){let i=M(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Vt(e,i,i.modifier.value)){let{value:l,didChange:a}=$t(i.modifier.value);i.modifier.value=l,o||=a}for(let l of i.variants)yn(e,l)&&(o=!0);if(i.kind==="arbitrary"&&!Vt(e,i,i.value)){let{value:l,didChange:a}=$t(i.value);i.value=l,o||=a}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Vt(e,i,i.value.value)){let{value:l,didChange:a}=$t(i.value.value);i.value.value=l,o||=a}if(o)return e.printCandidate(i)}return r}function $t(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||k(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function yn(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Vt(e,bs(t),t.value.value)){let{value:n,didChange:i}=$t(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&yn(e,t.variant)&&(r=!0),r}function bs(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var xs=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function Vt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return A(n,o=>{if(o.kind==="declaration"&&xs.has(o.property)&&o.value==r)return i=!0,2}),i}function kn(e,t,r){if(!E(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=M(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=wn(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=wn(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function wn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function bn(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function xn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function Cn(e,t,r){for(let n of ne(r,e)){let i=M(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=w(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as Cs}from"@tailwindcss/node";import As from"path";import Ss from"url";var $s=Ss.fileURLToPath(import.meta.url),Vs=As.dirname($s),Ts=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"],["outline","outline-solid"]]),An=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"]]),Ns=new v(e=>Cs('@import "tailwindcss";',{base:e}));async function Sn(e,t,r){if(!E(3))return r;let n=await Ns.get(Vs);function*i(o){for(let l of e.parseCandidate(o)){let a=dn(l),s=e.printCandidate(a),u=Ts.get(s);if(!u)continue;let[f]=e.parseCandidate(u);if(!f)continue;let c=M(f);c.variants=l.variants,c.important=l.important,yield[c,An.get(s),An.get(u)]}}for(let[o,l,a]of i(r)){if(l&&a){let s=e.resolveThemeValue(l,!0),u=n.resolveThemeValue(l,!0),f=e.resolveThemeValue(a,!0),c=n.resolveThemeValue(a);if(f===void 0&&c!==void 0||s!==u||f!==c)continue}return e.printCandidate(o)}return r}function $n(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*Vn(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 Tn(e,t,r){for(let n of ne(r,e)){let i=M(n),o=!1;for(let[l]of Vn(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,q(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(o=!0,q(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 Tt={"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"},Nn=new WeakSet;function En(e,t,r){if(E(3)&&(Tt["outline-none"]="outline-hidden"),!Nn.has(e)){for(let n in Tt)e.utilities.static(n,()=>[]);Nn.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(Tt,n.root))return e.printCandidate({...n,root:Tt[n.root]});return r}function Pn(e,t,r){if(!E(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],l=[],a=n.variants;for(let f of n.variants)Es(e,f)?i.push(f):Rs(e,f)?l.push(f):o.push(f);let s=o.some(f=>Ps(e,f)),u=[...l,...s?o.reverse():o,...i];if(!_s(a,u))return e.printCandidate({...n,variants:u})}return r}function Es(e,t){return t.kind==="static"&&t.root==="dark"?!0:vr(e,t).every(n=>n.kind==="at-rule")}function Ps(e,t){return vr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Rs(e,t){return vr(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 vr(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 A(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function _s(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Ds=[xn,on,bn,En,kn,Sn,$n,Pn,vn,Cn,Tn],Is=new v(e=>new v(t=>new v(async r=>{let n=r;for(let o of Ds)r=await o(e,t,r);return r=e.canonicalizeCandidates([r]).pop(),typeof re.get(e).get(r)!="string"?n:r})));async function yr(e,t,r,n){return n&&!hn(r,n,e)?r:Is.get(e).get(t).get(r)}async function On(e,t,r,n){let i=await mn(r,n),o=[];for(let{rawCandidate:l,start:a,end:s}of i){let u=await yr(e,t,l,{contents:r,start:a,end:s});u!==l&&o.push({start:a,end:s,replacement:u})}return pn(r,o)}async function Dn(e,t,r){let n=_n.isAbsolute(r)?r:_n.resolve(process.cwd(),r),i=await Rn.readFile(n,"utf-8");await Rn.writeFile(n,await On(e,t,i,Os(r)))}function In({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let l=i.map(a=>{if(a.trim()==="")return a;let s=w(a,":"),u=s.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...s,u].join(":")});return async()=>{e&&(l=await Promise.all(l.map(async a=>await yr(e,t,a))),n.params=l.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import Nt from"postcss-selector-parser";function Ln(e){function t(r){if(!E(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();R(r,l=>{if(l.type!=="rule")return;let a=w(l.selector,",");if(a.length>1){let s=[];for(let u of a){let f=l.clone({selector:u});s.push(f)}l.replaceWith(s)}return 1});let i=new Set;R(r,l=>{if(l.type==="rule")return Nt(a=>{a.each(s=>{R(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),R(n,l=>{l.type==="rule"&&Nt(a=>{a.each(s=>{R(s,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return l.remove(),2})})}).processSync(l,{updateSelector:!0})});let o=[n];for(let l of i){let a=r.clone();o.push(a),R(a,s=>{if(s.type==="atrule"&&(!s.nodes||s.nodes?.length===0)&&s.remove(),s.type!=="rule")return;let u=!1;if(Nt(f=>{f.each(c=>{R(c,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===l){u=!0;let m=c.atPosition(p.source.start.line,p.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),y=d.at(g);d.at(g+1).replaceWith(y),d.at(g).replaceWith(h),g--}m.replaceWith(Nt.nesting())}})})}).processSync(s,{updateSelector:!0}),!u){let f=[s],c=s.parent?.index(s)??null;if(c!==null)for(let p=c-1;p>=0&&s.parent?.nodes.at(p)?.type!=="rule";p--)s.parent?.nodes.at(p)?.type==="comment"&&f.push(s.parent?.nodes.at(p));for(let p of f)p.remove()}return 1}),a.name="utility",a.params=l,a.raws.before=`${a.raws.before??""}
218
+
219
+ `}for(let l=o.length-1;l>=0;l--){let a=o[l];dr(a,s=>{if(a===n&&s.type==="comment"){let u=!1;for(let f of o)if(f!==n&&(R(f,c=>{if(c.type==="comment"&&c.source?.start?.offset===s.source?.start?.offset)return s.remove(),u=!0,2}),u))return 1}if((s.type==="rule"||s.type==="atrule")&&s.nodes?.length===0)s.remove();else if(s.type==="rule"&&s.selector==="&"){let u=s.parent,f=!1;for(;u;){if(u.type==="rule"){f=!0;break}u=u.parent}f||s.replaceWith(s.nodes)}}),a.nodes?.length===0&&o.splice(l,1)}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let l=n({name:"layer",params:"utilities"});l.append(r.nodes),r.append(l)}r.walkAtRules("layer",t);{let l=new Map;R(r,a=>{if(a.type==="atrule"&&a.name==="utility"){let s=l.get(a.params);s?(s.append(a.nodes),a.remove()):l.set(a.params,a)}})}o&&r.each(l=>{l.type==="atrule"&&l.name==="layer"&&l.params==="utilities"&&l.replaceWith(l.nodes??[])})}}}import Et from"path";import Us,{AtRule as Ls}from"postcss";var Mn=new WeakMap;function zn(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=Mn.get(e);if(i&&i.includes(t))return;i?i.push(t):Mn.set(e,[t]);let o=e.root;if(!e.file)return;let l=new Ls;if(r!==null){o.walkAtRules("config",s=>{s.remove()});let a=`
220
+
221
+ `;a+=`
222
+ @tw-bucket source {`;for(let s of r.sources){let u=Et.resolve(s.base,s.pattern);a+=`@source '${jn(e,u)}';
223
+ `}a+=`}
224
+ `,a+=`
225
+ @tw-bucket plugin {
226
+ `;for(let s of r.plugins){let u=s.path[0]==="."?jn(e,Et.resolve(s.base,s.path)):s.path;if(s.options===null)a+=`@plugin '${u}';
227
+ `;else{a+=`@plugin '${u}' {
228
+ `;for(let[f,c]of Object.entries(s.options)){let p="";typeof c=="string"?p=Fn(c):Array.isArray(c)?p=c.map(m=>typeof m=="string"?Fn(m):""+m).join(", "):p=""+c,a+=` ${f}: ${p};
229
+ `}a+=`}
230
+ `}}a+=`}
231
+ `,l.append(Us.parse(a+r.css))}o.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function jn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Et.relative(Et.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),ir(n)}function Fn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Ms from"fs/promises";import{dirname as js,resolve as Fs}from"path";import"postcss";function Kn(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...l]=w(i.params," "),a=fi(k(o));if(!a)return;let s=a.uri[0]===".",u=a.uri.endsWith(".css");if(s&&u)return;let f=Fs(js(r),a.uri);u||(f+=".css"),n.push(Ms.stat(f).then(()=>{let c=u?"":".css",p=s?a.uri:`./${a.uri}`;i.params=[`'${p}${c}'`,...l].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Wn({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Ve(e,[{base:"",config:t,reference:!1,src:void 0}]),o=i?.theme?.screens||{},l=new v(a=>{let s=e?.resolveThemeValue(`--breakpoint-${a}`,!0)??o?.[a];return typeof s=="string"?`(width >= theme(--breakpoint-${a}))`:s?yi(s):null});n.walkAtRules("screen",a=>{a.name="media",a.params=`screen(${a.params})`}),n.walkAtRules(a=>{if(a.name!=="media")return;let s=a.params.match(/screen\(([^)]+)\)/);if(!s)return;let u=l.get(s[1]);u&&(a.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as zs}from"postcss";function Bn(){function e(t){let r="",n=[],i=[],o=null;t.each(l=>{if(l.type==="atrule"){if(l.name==="config"||l.name==="source"||l.name==="theme"||l.name==="utility"||l.name==="custom-variant"||l.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="tailwind"&&l.params==="base"||l.name==="import"&&l.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(l.name==="tailwind"&&l.params==="components"||l.name==="import"&&l.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(l.name==="tailwind"&&l.params==="utilities"||l.name==="import"&&l.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(l.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[l]]);return}}r===""&&(l.type==="comment"||l.type==="atrule"&&!l.nodes||l.type==="atrule"&&l.name==="charset")||n.push(l)});for(let[l,a]of i){let s=l||o||"";if(s===""||a.every(c=>c.type==="comment"))continue;if(a.every(c=>c.type==="atrule"&&c.name==="import")){for(let c of a)if(!(c.type!=="atrule"||c.name!=="import")&&!c.params.includes("layer(")){let p=w(c.params," ");p.splice(1,0,`layer(${s})`),c.params=p.join(" "),c.raws.tailwind_injected_layer=!0}continue}let u=a[0],f=new zs({name:"layer",params:s,nodes:a.map(c=>c===u?c:c.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(f)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Ks from"dedent";import Ws from"postcss";var Bs="currentcolor",qs=Ks,Hs=qs`
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 qn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let l=`--${J(Y(o))}`;return!!e.theme.get([l])}function i(o){if(!E(3))return;let l=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return l=!0,!1}),!l)return;let a="";r!==Bs&&(a+=Hs,a+=`
250
+
251
+ `),a=`
252
+ @tw-bucket compatibility {
253
+ ${a}
254
+ }
255
+ `;let s=Ws.parse(a);s.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Gs(k(u.value),f=>n(f)?r:f==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",f=>{f.remove()}),u.nodes?.length===0&&u.remove()}),o.append(s)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Gs(e,t){return S(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=b([r.nodes[u]]),l=u+1;o=Js(o);let a=r.nodes.slice(l+1),s=a.length>0?t(o,b(a)):t(o);if(s===null)return;n(k(s))}}),b(e)}function Js(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 Pt}from"postcss";var wr=["theme","base","components","utilities"];function Hn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,l=[],a=null,s=null,u=null,f=null,c=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))c.push("base"),l.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))c.push("utilities"),l.push(p),o=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let m of p.nodes)m.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),i!==null&&o!==null?(a||Rt(l).before(new Pt({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(s||Rt(l).before(new Pt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(f||Rt(l).before(new Pt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Rt(l).before(new Pt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=c.toSorted((m,d)=>wr.indexOf(m)-wr.indexOf(d));if(c.some((m,d)=>m!==p[d])){let m=wr.toSorted((d,g)=>c.indexOf(d)-c.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Rt(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 Gn(e,{prettyPrint:t=!1}={}){function r(l,a=0){let s=k(l);if(a&2)return[_t(s,o),null];let u=0,f=0;if(S(s,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="word"&&d.value==="/"?(f+=1,2):1))}),u===0)return[l,null];if(f===0)return[_t(s,i),null];if(f>1)return[_t(s,o),null];let c=null;return[_t(s,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(s.length===1&&g.length===2&&a&1){let[h,y]=g;if(/^\d+%$/.test(y))c={kind:"named",value:y.slice(0,-1)};else if(/^0?\.\d+$/.test(y)){let C=Number(y)*100;c={kind:Number.isInteger(C)?"named":"arbitrary",value:C.toString()}}else c={kind:"arbitrary",value:y};m=h}return i(m,d)||o(m,d)}),c]}function n(l){let a=`--${J(Y(l))}`;return e.theme.get([a])?e.theme.prefix?`--${e.theme.prefix}-${a.slice(2)}`:a:null}function i(l,a){let s=n(l);if(s)return a?`var(${s}, ${a})`:`var(${s})`;let u=Y(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let f=u[1];return ee(f)?`--spacing(${f})`:null}return null}function o(l,a){let s=w(l,"/").map(c=>c.trim());l=s.shift();let u=n(l);if(!u)return null;let f=s.length>0?t?` / ${s.join(" / ")}`:`/${s.join("/")}`:"";return a?`--theme(${u}${f}, ${a})`:`--theme(${u}${f})`}return r}function _t(e,t){return S(e,(r,{parent:n,replaceWith:i})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let o=r.nodes[0];if(o.kind!=="word")return;let l=o.value,a=1;for(let f=a;f<r.nodes.length&&!r.nodes[f].value.includes(",");f++)l+=b([r.nodes[f]]),a=f+1;l=Ys(l);let s=r.nodes.slice(a+1),u=s.length>0?t(l,b(s)):t(l);if(u===null)return;if(n){let f=n.nodes.indexOf(r)-1;for(;f!==-1;){let c=n.nodes[f];if(c.kind==="separator"&&c.value.trim()===""){f-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(u=`(${u})`);break}}i(k(u))}}),b(e)}function Ys(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 Jn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Gn(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 Yn(){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 Qn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await Zs(e,t)}async function Zs(e,t,r){return typeof e=="string"&&(e=await ie.fromString(e),e.file=r??null),Qs().use(Kn()).use(In(t)).use(Wn(t)).use(Yn()).use(Ln(e)).use(Bn()).use(Hn(t)).use(zn(e,t)).use(qn(t)).use(Jn(t)).process(e.root,{from:e.file??void 0})}import Xs from"postcss";var Zn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function eo(){async function e(t){{let a=function(s,...u){l=s,o.get(s).nodes?.push(...i.splice(0),...u)};var n=a;let i=[],o=new v(s=>{let u=Xs.atRule({name:"tw-bucket",params:s,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",s=>{o.set(s.params,s)});let l="user";R(t,s=>{if(s.type==="atrule"&&s.name==="tw-bucket")return 1;if(s.type==="comment"){if(i.length>0){i.push(s);return}let u=Xn(s.prev(),s)??1/0,f=Xn(s,s.next())??1/0;u<f?o.get(l).nodes?.push(s):i.push(s)}else s.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(s.name)?a(s.name,s):s.type==="atrule"&&s.name==="layer"&&!s.nodes||s.type==="atrule"&&s.name==="import"||s.type==="atrule"&&s.name==="charset"||s.type==="atrule"&&s.name==="tailwind"?a("import",s):(s.type==="rule"||s.type,a("user",s));return 1}),i.length>0&&a(l)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,l)=>{let a=Zn.indexOf(o.params),s=Zn.indexOf(l.params);return a-s});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Xn(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 eu from"postcss";async function to(e){let t=new Map,r=new Map;for(let a of e)t.set(a.id,a),a.file&&r.set(a.file,a);let n=new Set;for(let a of e){if(a.isTailwindRoot)continue;let s=!1,u=a.layers().size>0;R(a.root,f=>{if(f.type==="atrule"&&f.name==="utility")s=!0;else{if(f.type==="atrule"&&f.name==="import"&&f.params.includes("layer(")||f.type==="atrule"&&f.name==="layer"||f.type==="comment")return 1;u=!0}return s&&u?2:1}),s&&u&&n.add(a)}let i=new Map;for(let a of e){if(!a.file||a.parents.size===0||!n.has(a)&&!Array.from(a.descendants()).some(p=>n.has(p)))continue;let s=eu.root();R(a.root,p=>{if(p.type==="atrule"&&p.name==="utility")return s.append(p),1});let u=a.file.replace(/\.css$/,".utilities.css"),f=0;for(;r.has(u);)f+=1,u=a.file.replace(/\.css$/,`.utilities.${f}.css`);let c=await ie.fromRoot(s,u);c.extension=f>0?`.utilities.${f}.css`:".utilities.css",i.set(a,c),t.set(c.id,c)}for(let[a,s]of i){for(let u of a.parents){let f=i.get(u.item);f&&s.parents.add({item:f,meta:u.meta})}for(let u of a.children){let f=i.get(u.item);f&&s.children.add({item:f,meta:u.meta})}}for(let a of e){let s=i.get(a),u=new Set;for(let f of a.importRules){let c=f.raws.tailwind_destination_sheet_id;if(!c)continue;let p=t.get(c);if(!p)continue;let m=i.get(p);if(!m)continue;let d=f.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],y=h.replace(/\.css$/,m.extension),C=f.clone({params:`${g}${y}${g}`,raws:{tailwind_injected_layer:f.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});s?u.add(C):f.after(C)}s&&u.size>0&&s.root.prepend(Array.from(u))}let o=new v(()=>new Set);for(let a of t.values())for(let s of a.importRules){let u=s.raws.tailwind_destination_sheet_id;if(!u)continue;let f=t.get(u);f&&o.get(f).add(s)}let l=[];for(let a of e.slice()){for(let s of a.descendants())l.push(s);l.push(a)}for(let a of l){let s=i.get(a);if(s&&a.isEmpty){a.root=s.root;for(let u of o.get(s))u.params=u.raws.tailwind_original_params;for(let u of o.get(a))u.remove();i.delete(a)}}e.push(...i.values())}import Ce from"picocolors";function ro({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(B(bt()),e&&(B(),B(`${Ce.dim("Invalid command:")} ${e}`)),t&&t.length>0){B(),B(Ce.dim("Usage:"));for(let[i,o]of t.entries()){let l=o.slice(0,o.indexOf("[")),a=o.slice(o.indexOf("["));a=a.replace(/\[.*?\]/g,f=>Ce.dim(f));let u=Ze(a,n-kt.indent-l.length-1);u.length>1&&i!==0&&B(),B(Xe(`${l}${u.shift()}`));for(let f of u)B(Xe(f,l.length))}}if(r){let i=0;for(let{alias:s}of Object.values(r))s&&(i=Math.max(i,s.length));let o=[],l=0;for(let[s,{alias:u}]of Object.entries(r)){let f=[u&&`${u.padStart(i)}`,u?s:" ".repeat(i+2)+s].filter(Boolean).join(", ");o.push(f),l=Math.max(l,f.length)}B(),B(Ce.dim("Options:"));let a=8;for(let{description:s,default:u=null}of Object.values(r)){let f=o.shift(),c=a+(l-f.length),p=2,m=n-f.length-c-p-kt.indent,d=Ze(u!==null?`${s} ${Ce.dim(`[default:\u202F${x(`${u}`)}]`)}`:s,m);B(Xe(`${Ce.blue(f)} ${Ce.dim(Ce.gray("\xB7")).repeat(c)} ${d.shift()}`));for(let g of d)B(Xe(`${" ".repeat(f.length+c+p)}${g}`))}}}import tu from"mri";function no(e,t=process.argv.slice(2)){let r=tu(t),n={_:r._};for(let[i,{type:o,alias:l,default:a=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=a,l){let s=l.slice(1);r[s]!==void 0&&(n[i]=io(r[s],o))}{let s=i.slice(2);r[s]!==void 0&&(n[i]=io(r[s],o))}}return n}function io(e,t){switch(t){case"string":return It(e);case"boolean":return Ot(e);case"number":return Dt(e);case"boolean | string":return Ot(e)??It(e);case"number | string":return Dt(e)??It(e);case"boolean | number":return Ot(e)??Dt(e);case"boolean | number | string":return Ot(e)??Dt(e)??It(e);default:throw new Error(`Unhandled type: ${t}`)}}function Ot(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Dt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function It(e){return`${e}`}import{execSync as ru}from"child_process";function kr(){try{return ru("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var lo={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},Ut=no(lo);Ut["--help"]&&(ro({usage:["npx @tailwindcss/upgrade"],options:lo}),process.exit(0));async function au(){let e=process.cwd();we(bt()),we();let t=[];if(Ut["--force"]||kr()&&(P("Git directory is not clean. Please stash or commit your changes before migrating."),F(`You may use the ${x("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),F(`Upgrading from Tailwind CSS ${x(`v${fe(e)}`)}`,{prefix:"\u21B3 "}),fe(e)!==gr(e)){let r=await Ee(e).manager();P(["Version mismatch","",H.dim("```diff"),`${H.red("-")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(gr(e))}${H.dim('"')}`}`} (expected version in ${x("package.json")})`,`${H.green("+")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(fe(e))}${H.dim('"')}`}`} (installed version in ${x("node_modules")})`,H.dim("```"),"",`Make sure to run ${x(`${r} install`)} and try again.`].join(`
256
+ `),{prefix:"\u21B3 "}),process.exit(1)}{let r=Ut._.map(u=>ou.resolve(e,u));r.length===0&&(F("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await nu(["**/*.css"],{absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),r=r.filter(u=>u.endsWith(".css"));let n=await Promise.allSettled(r.map(u=>ie.load(u)));for(let u of n)u.status==="rejected"&&P(`${u.reason?.message??u.reason}`,{prefix:"\u21B3 "});let i=n.filter(u=>u.status==="fulfilled").map(u=>u.value),o=new Map(i.map(u=>[u,u.root.toString()]));try{await Ji(i)}catch(u){P(`${u?.message??u}`,{prefix:"\u21B3 "})}if(E(3))try{await cn(i,{configPath:Ut["--config"],base:e})}catch(u){P(`${u?.message??u}`,{prefix:"\u21B3 "})}i.some(u=>u.isTailwindRoot&&u.linkedConfigPath)&&F("Migrating JavaScript configuration files\u2026");let l=new Map,a=new Map;for(let u of i){if(!u.isTailwindRoot||!E(3)&&!u.linkedConfigPath)continue;let f=await fn(u.linkedConfigPath,{base:e});l.set(u,f);let c=await Mi(f.designSystem,f.configFilePath,e);a.set(u,c),c!==null&&t.push(()=>oo.rm(f.configFilePath)),c!==null&&L(`Migrated configuration file: ${x(_(f.configFilePath,e))}`,{prefix:"\u21B3 "})}if(i.length>0&&F("Migrating stylesheets\u2026"),await Promise.all(i.map(async u=>{try{let f=l.get(u),c=a.get(u)??null;if(!f){for(let p of u.ancestors())if(p.isTailwindRoot){f??=l.get(p),c??=a.get(p)??null;break}}await Qn(u,{newPrefix:f?.newPrefix??null,designSystem:f?.designSystem??await u.designSystem(),userConfig:f?.userConfig??null,configFilePath:f?.configFilePath??null,jsConfigMigration:c})}catch(f){P(`${f?.message??f} in ${x(_(u.file,e))}`,{prefix:"\u21B3 "})}})),E(3)){try{await to(i)}catch(u){P(`${u?.message??u}`,{prefix:"\u21B3 "})}for(let u of i)for(let f of u.importRules){if(!f.raws.tailwind_injected_layer)continue;let c=i.find(p=>p.id===f.raws.tailwind_destination_sheet_id);c&&c.containsRule(p=>p.type==="atrule"&&p.name==="utility")&&(f.params=f.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let u of i)o.get(u)!==u.root.toString()&&await lu([eo(),Xi()]).process(u.root,{from:u.file});for(let u of i)u.file&&(await oo.writeFile(u.file,u.root.toString()),u.isTailwindRoot&&L(`Migrated stylesheet: ${x(_(u.file,e))}`,{prefix:"\u21B3 "}));F("Updating dependencies\u2026");{let u=Ee(e),f=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(c=>c==="tailwindcss"||u.has(c));try{await u.add(f.map(c=>`${c}@latest`));for(let c of f)L(`Updated package: ${x(c)}`,{prefix:"\u21B3 "})}catch{}}let s=i.filter(u=>u.isTailwindRoot&&u.file);s.length>0&&F("Migrating templates\u2026");{let u=new Set;for(let f of s){let c=await f.compiler();if(!c)continue;let p=await f.designSystem();if(!p)continue;let m=(c.root==="none"?[]:c.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...c.root,negated:!1}]).concat(c.sources),d=l.get(f),g=new iu({sources:m}),h=[];for(let y of g.files)y.endsWith(".css")||u.has(y)||(u.add(y),h.push(y));await Promise.allSettled(h.map(y=>Dn(p,d?.userConfig??null,y))),d?.configFilePath?L(`Migrated templates for configuration file: ${x(_(d.configFilePath,e))}`,{prefix:"\u21B3 "}):L(`Migrated templates for: ${x(_(f.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}E(3)&&await Wi(e),await Promise.allSettled(t.map(r=>r())),kr()?L("Verify the changes and commit them to your repository."):L("No changes were made to your repository.")}au().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@tailwindcss/upgrade",
3
+ "version": "0.0.0-insiders.01d1e98",
4
+ "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/tailwindlabs/tailwindcss.git",
9
+ "directory": "packages/@tailwindcss-cli"
10
+ },
11
+ "bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
12
+ "homepage": "https://tailwindcss.com",
13
+ "bin": "./dist/index.mjs",
14
+ "exports": {
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "publishConfig": {
21
+ "provenance": true,
22
+ "access": "public"
23
+ },
24
+ "dependencies": {
25
+ "braces": "^3.0.3",
26
+ "dedent": "1.7.0",
27
+ "enhanced-resolve": "^5.18.3",
28
+ "globby": "^15.0.0",
29
+ "jiti": "^2.0.0-beta.3",
30
+ "mri": "^1.2.0",
31
+ "picocolors": "^1.1.1",
32
+ "postcss": "^8.4.41",
33
+ "postcss-import": "^16.1.1",
34
+ "postcss-selector-parser": "^7.1.0",
35
+ "prettier": "3.6.2",
36
+ "semver": "^7.7.2",
37
+ "tree-sitter": "^0.22.4",
38
+ "tree-sitter-typescript": "^0.23.2",
39
+ "@tailwindcss/node": "0.0.0-insiders.01d1e98",
40
+ "tailwindcss": "0.0.0-insiders.01d1e98",
41
+ "@tailwindcss/oxide": "0.0.0-insiders.01d1e98"
42
+ },
43
+ "devDependencies": {
44
+ "@types/braces": "^3.0.5",
45
+ "@types/node": "^20.19.0",
46
+ "@types/postcss-import": "^14.0.3",
47
+ "@types/semver": "^7.7.1"
48
+ },
49
+ "scripts": {
50
+ "lint": "tsc --noEmit",
51
+ "build": "tsup-node",
52
+ "dev": "pnpm run build -- --watch"
53
+ }
54
+ }