Files
locobook/node_modules/tailwindcss/dist/chunk-3IR7ZFJX.mjs
T

39 lines
238 KiB
JavaScript
Raw Normal View History

import{a as lr,b as L,c as H,d as ar,e as I,f as Nt,g as ee,h as nt,i as sr}from"./chunk-TDNFF6A4.mjs";import{a as or}from"./chunk-X4GG3EDV.mjs";var ur="4.2.4";function lt(t){let r=[0];for(let n=0;n<t.length;n++)t.charCodeAt(n)===10&&r.push(n+1);function i(n){let o=0,l=r.length;for(;l>0;){let u=(l|0)>>1,f=o+u;r[f]<=n?(o=f+1,l=l-u-1):l=u}o-=1;let c=n-r[o];return{line:o+1,column:c}}function e({line:n,column:o}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let l=r[n],c=r[n+1]??l;return Math.min(Math.max(l+o,0),c)}return{find:i,findOffset:e}}var Be=92,at=47,ot=42,fr=34,cr=39,en=58,st=59,fe=10,ut=13,Ye=32,Ge=9,pr=123,Et=125,Pt=40,dr=41,tn=91,rn=93,mr=45,Rt=64,nn=33,ce=class t extends Error{loc;constructor(r,i){if(i){let e=i[0],n=lt(e.code).find(i[1]);r=`${e.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,t)}};function Te(t,r){let i=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],n=[],o=[],l=null,c=null,u="",f="",m=0,d;for(let p=0;p<t.length;p++){let v=t.charCodeAt(p);if(!(v===ut&&(d=t.charCodeAt(p+1),d===fe)))if(v===Be)u===""&&(m=p),u+=t.slice(p,p+2),p+=1;else if(v===at&&t.charCodeAt(p+1)===ot){let h=p;for(let b=p+2;b<t.length;b++)if(d=t.charCodeAt(b),d===Be)b+=1;else if(d===ot&&t.charCodeAt(b+1)===at){p=b+1;break}let y=t.slice(h,p+1);if(y.charCodeAt(2)===nn){let b=ft(y.slice(2,-2));n.push(b),i&&(b.src=[i,h,p+1],b.dst=[i,h,p+1])}}else if(v===cr||v===fr){let h=gr(t,p,v,i);u+=t.slice(p,h+1),p=h}else{if((v===Ye||v===fe||v===Ge)&&(d=t.charCodeAt(p+1))&&(d===Ye||d===fe||d===Ge||d===ut&&(d=t.charCodeAt(p+2))&&d==fe))continue;if(v===fe){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==Ye&&d!==fe&&d!==Ge&&(u+=" ")}else if(v===mr&&t.charCodeAt(p+1)===mr&&u.length===0){let h="",y=p,b=-1;for(let A=p+2;A<t.length;A++)if(d=t.charCodeAt(A),d===Be)A+=1;else if(d===cr||d===fr)A=gr(t,A,d,i);else if(d===at&&t.charCodeAt(A+1)===ot){for(let k=A+2;k<t.length;k++)if(d=t.charCodeAt(k),d===Be)k+=1;else if(d===ot&&t.charCodeAt(k+1)===at){A=k+1;break}}else if(b===-1&&d===en)b=u.length+A-y;else if(d===st&&h.length===0){u+=t.slice(y,A),p=A;break}else if(d===Pt)h+=")";else if(d===tn)h+="]";else if(d===pr)h+="}";else if((d===Et||t.length-1===A)&&h.length===0){p=A-1,u+=t.slice(y,A);break}else(d===dr||d===rn||d===Et)&&h.length>0&&t[A]===h[h.length-1]&&(h=h.slice(0,-1));let T=Ot(u,b);if(!T)throw new ce("Invalid custom property, expected a value",i?[i,y,p]:null);i&&(T.src=[i,y,p],T.dst=[i,y,p]),l?l.nodes.push(T):e.push(T),u=""}else if(v===st&&u.charCodeAt(0)===Rt)c=qe(u),i&&(c.src=[i,m,p],c.dst=[i,m,p]),l?l.nodes.push(c):e.push(c),u="",c=null;else if(v===st&&f[f.length-1]!==")"){let h=Ot(u);if(!h){if(u.length===0)continue;throw new ce(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null)}i&&(h.src=[i,m,p],h.dst=[i,m,p]),l?l.nodes.push(h):e.push(h),u=""}else if(v===pr&&f[f.length-1]!==")")f+="}",c=J(u.trim()),i&&(c.src=[i,m,p],c.dst=[i,m,p]),l&&l.nodes.push(c),o.push(l),l=c,u="",c=null;else if(v===Et&&f[f.length-1]!==")"){if(f==="")throw new ce("Missing opening {",i?[i,p,p]:null);if(f=f.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Rt)c=qe(u),i&&(c.src=[i,m,p],c.dst=[i,m,p]),l?l.nodes.push(c):e.push(c),u="",c=null;else{let y=u.indexOf(":");if(l){let b=Ot(u,y);if(!b)throw new ce(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null);i&&(b.src=[i,m,p],b.dst=[i,m,p]),l.nodes.push(b)}}let h=o.pop()??null;h===null&&l&&e.push(l),l=h,u="",c=null}else if(v===Pt)f+=")",u+="(";else if(v===dr){if(f[f.length-1]!==")")throw new ce("Missing opening (",i?[i,p,p]:null);f=f.slice(0,-1),u+=")"}else{if(u.length===0&&(v===Ye||v===fe||v===Ge))continue;u===""&&(m=p),u+=String.fromCharCode(v)}}}if(u.charCodeAt(0)===Rt){let p=qe(u);i&&(p.src=[i,m,t.length],p.dst=[i,m,t.length]),e.push(p)}if(f.length>0&&l){if(l.kind==="rule")throw new ce(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new ce(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return n.length>0?n.concat(e)
`,`
`);let r=[],i=[],e=null,n="",o;for(let l=0;l<t.length;l++){let c=t.charCodeAt(l);switch(c){case wr:{n+=t[l]+t[l+1],l++;break}case cn:{if(n.length>0){let f=ne(n);e?e.nodes.push(f):r.push(f),n=""}let u=ne(t[l]);e?e.nodes.push(u):r.push(u);break}case yr:case kr:case br:case xr:case Ar:case Cr:case $r:case Sr:{if(n.length>0){let d=ne(n);e?e.nodes.push(d):r.push(d),n=""}let u=l,f=l+1;for(;f<t.length&&(o=t.charCodeAt(f),!(o!==yr&&o!==kr&&o!==br&&o!==xr&&o!==Ar&&o!==Cr&&o!==$r&&o!==Sr));f++);l=f-1;let m=an(t.slice(u,f));e?e.nodes.push(m):r.push(m);break}case fn:case sn:{let u=l;for(let f=l+1;f<t.length;f++)if(o=t.charCodeAt(f),o===wr)f+=1;else if(o===c){l=f;break}n+=t.slice(u,l+1);break}case un:{let u=ln(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case on:{let u=i.pop();if(n.length>0){let f=ne(n);u?.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(c)}}return n.length>0&&r.push(ne(n)),r}var _t=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(_t||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:t=>({kind:3,nodes:Array.isArray(t)?t:[t]}),ReplaceSkip:t=>({kind:4,nodes:Array.isArray(t)?t:[t]}),ReplaceStop:t=>({kind:5,nodes:Array.isArray(t)?t:[t]})};function _(t,r){typeof r=="function"?Vr(t,r):Vr(t,r.enter,r.exit)}function Vr(t,r=()=>R.Continue,i=()=>R.Continue){let e={value:[t,0,null],prev:null},n={parent:null,depth:0,path(){let o=[],l=e;for(;l;){let c=l.value[2];c&&o.push(c),l=l.prev}return o.reverse(),o}};for(;e!==null;){let o=e.value,l=o[0],c=o[1],u=o[2];if(c>=l.length){e=e.prev,n.depth-=1;continue}if(n.parent=u,c>=0){let p=l[c],v=r(p,n)??R.Continue;switch(v.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,e={value:[p.nodes,0,p],prev:e}),o[1]=~c;continue}case 2:return;case 1:{o[1]=~c;continue}case 3:{l.splice(c,1,...v.nodes);continue}case 5:{l.splice(c,1,...v.nodes);return}case 4:{l.splice(c,1,...v.nodes),o[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${_t[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let f=~c,m=l[f],d=i(m,n)??R.Continue;switch(d.kind){case 0:o[1]=f+1;continue;case 2:return;case 3:{l.splice(f,1,...d.nodes),o[1]=f+d.nodes.length;continue}case 5:{l.splice(f,1,...d.nodes);return}case 4:{l.splice(f,1,...d.nodes),o[1]=f+d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${_t[d.kind]??`Unknown(${d.kind})`}\` in exit.`)}}}function pt(t){let r=[];return _(F(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return _(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),R.Skip}),r}var pn=64;function q(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function W(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function J(t,r=[]){return t.charCodeAt(0)===pn?qe(t,r):q(t,r)}function a(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function ft(t){return{kind:"comment",value:t}}function ge(t,r){return{kind:"context",context:t,nodes:r}}function B(t){return{kind:"at-root",nodes:t}}function te(t){switch(t.kind){case"rule":return{kind:t.kind,selector:t.selector,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"at-rule":return{kind:t.kind,name:t.name,params:t.params,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"at-root":return{kind:t.kind,nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"context":return{kind:t.kind,context:{...t.context},nodes:t.nodes.map(te),src:t.src,dst:t.dst};case"declaration":return{kind:t.kind,property:t.property,value:t.value,important:t.important,src:t.src,dst:t.dst};case"comment":return{kind:t.kind,value:t.value,src:t.src,dst:t.dst};default:throw new Error(`Unknown node kind: ${t.kind}`)}}function He(t){return{depth:t.depth,get context(){let r={};for(let i of t.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return t.path().filter(r=>r.kind!=="context")
`,r){i+=f.length;let m=i;i+=l.property.length,i+=2,i+=l.value?.length??0,l.important&&(i+=11);let d=i;i+=2,l.dst=[e,m,d]}}else if(l.kind==="rule"){if(u+=`${f}${l.selector} {
`,r){i+=f.length;let m=i;i+=l.selector.length,i+=1;let d=i;l.dst=[e,m,d],i+=2}for(let m of l.nodes)u+=n(m,c+1);u+=`${f}}
`,r&&(i+=f.length,i+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let m=`${f}${l.name} ${l.params};
`;if(r){i+=f.length;let d=i;i+=l.name.length,i+=1,i+=l.params.length;let p=i;i+=2,l.dst=[e,d,p]}return m}if(u+=`${f}${l.name}${l.params?` ${l.params} `:" "}{
`,r){i+=f.length;let m=i;i+=l.name.length,l.params&&(i+=1,i+=l.params.length),i+=1;let d=i;l.dst=[e,m,d],i+=2}for(let m of l.nodes)u+=n(m,c+1);u+=`${f}}
`,r&&(i+=f.length,i+=2)}else if(l.kind==="comment"){if(u+=`${f}/*${l.value}*/
`,r){i+=f.length;let m=i;i+=2+l.value.length+2;let d=i;l.dst=[e,m,d],i+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return u}let o="";for(let l of t)o+=n(l,0);return e.code=o,o}function dn(t,r){let i=[];return _(t,(e,n)=>{if(r(e))return i=n.path(),i.push(e),R.Stop}),i}function Nr(t,r,i,e=new Set){if(e.has(t)||(e.add(t),r.getOptions(t)&24))return!0;{let o=i.get(t)??[];for(let l of o)if(Nr(l,r,i,e))return!0}return!1}function Tr(t){return t.split(/[\s,]+/)}function Ae(t){if(t.indexOf("(")===-1)return _e(t);let r=F(t);return Kt(r),t=Y(r),t=lr(t),t}function _e(t,r=!1){let i="";for(let e=0;e<t.length;e++){let n=t[e];n==="\\"&&t[e+1]==="_"?(i+="_",e+=1):n==="_"&&!r?i+=" ":i+=n}return i}function Kt(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=_e(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=_e(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=_e(r.nodes[i].value,!0);continue}Kt([r.nodes[i]])}break}r.value=_e(r.value),Kt(r.nodes);break}case"separator":case"word":{r.value=_e(r.value);break}default:mn(r)}}function mn(t){throw new Error(`Unexpected value: ${t}`)}var Ut=new Uint8Array(256);function ke(t){let r=0,i=t.length;for(let e=0;e<i;e++){let n=t.charCodeAt(e);switch(n){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let o=t.charCodeAt(e);if(o===92){e+=1;continue}if(o===n)break}break;case 40:Ut[r]=41,r++;break;case 91:Ut[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Ut[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var gn=58,Er=45,Rr=97,Or=122,jt=/^[a-zA-Z0-9_.%-]+$/;function Ke(t){switch(t.kind){case"arbitrary":return{kind:t.kind,property:t.property,value:t.value,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(De),important:t.important,raw:t.raw};case"static":return{kind:t.kind,root:t.root,variants:t.variants.map(De),important:t.important,raw:t.raw};case"functional":return{kind:t.kind,root:t.root,value:t.value?t.value.kind==="arbitrary"?{kind:t.value.kind,dataType:t.value.dataType,value:t.value.value}:{kind:t.value.kind,value:t.value.value,fraction:t.value.fraction}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(De),important:t.important,raw:t.raw};default:throw new Error("Unknown candidate kind")}}function De(t){switch(t.kind){case"arbitrary":return{kind:t.kind,selector:t.selector,relative:t.relative};case"static":return{kind:t.kind,root:t.root};case"functional":return{kind:t.kind,root:t.root,value:t.value?{kind:t.value.kind,value:t.value.value}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};case"compound":return{kind:t.kind,root:t.root,variant:De(t.variant),modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Pr(t,r){let i=L(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let p=r.parseVariant(i[d]);if(p===null)return;n.push(p)}let o=!1;e[e.length-1]==="!"?(o=!0,e=e.slice(0,-1)):e[0]==="!"&&(o=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:n,important:o,raw:t});let[l,c=null,u]=L(e,"/");if(u)return;let f=c===null?null:zt(c);if(c!==null&&f===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let d=l.charCodeAt(1);if(d!==Er&&!(d>=Rr&&d<=Or))return;l=l.slice(1,-1);let p=l.indexOf(":");if(p===-1||p===0||p===l.length-1)return;let v=l.slice(0,p),h=Ae(l.slice(p+1));if(!ke(h))return;yield{kind:"arbitrary",property:v,value:h,modifier:f,variants:n,important:o,raw:t};return}let m;if(l[l.length-1]==="]"){let d=l.indexOf("-[");if(d===-1)return;let p=l.slice(0,d);if(!r.utilities.has(p,"functional"))return;let v=l.slice(d+1);m=[[p,v]]}else if(l[l.length-1]===")"){let d=l.indexOf("-(");if(d===-1)return;let p=l.slice(0,d);if(!r.utilities.has(p,"functional"))retur
Only valid data types are: ${Wt.map(y=>`"${y}"`).join(", ")}.
`);let f=u.value,m=structuredClone(l),d="\xB6";_(m.nodes,y=>{if(y.kind==="word"&&y.value===f)return R.ReplaceSkip({kind:"word",value:d})});let p="^".repeat(Y([u]).length),v=Y([m]).indexOf(d),h=["```css",Y([l])," ".repeat(v)+p,"```"].join(`
`);console.warn(h)}}),n.value=Y(o)}),i.utilities.functional(r.slice(0,-2),n=>{let o=te(t),l=n.value,c=n.modifier;if(l===null)return;let u=!1,f=!1,m=!1,d=!1,p=new Map,v=!1;if(_([o],(h,y)=>{let b=y.parent;if(b?.kind!=="rule"&&b?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let T=!1,A=F(h.value);if(_(A,k=>{if(k.kind==="function"){if(k.value==="--value"){u=!0;let D=Ur(l,k,i);return D?(f=!0,D.ratio?v=!0:p.set(h,b),R.ReplaceSkip(D.nodes)):(u||=!1,T=!0,R.Stop)}else if(k.value==="--modifier"){if(c===null)return T=!0,R.Stop;m=!0;let D=Ur(c,k,i);return D?(d=!0,R.ReplaceSkip(D.nodes)):(m||=!1,T=!0,R.Stop)}}}),T)return R.ReplaceSkip([]);h.value=Y(A)}),u&&!f||m&&!d||v&&d||c&&!v&&!d)return null;if(v)for(let[h,y]of p){let b=y.nodes.indexOf(h);b!==-1&&y.nodes.splice(b,1)}return o.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],o=[];for(let[l,{literals:c,usedSpacingNumber:u,usedSpacingInteger:f,themeKeys:m}]of[[n,e["--value"]],[o,e["--modifier"]]]){for(let d of c)l.push(d);if(u)l.push(...vt);else if(f)for(let d of vt)I(d)&&l.push(d);for(let d of i.theme.keysInNamespaces(m))l.push(d.replace(Lr,(p,v,h)=>`${v}.${h}`))}return[{values:n,modifiers:o}]})}:On(r)?i=>{i.utilities.static(r,()=>t.nodes.map(te))}:null}function Ur(t,r,i){for(let e of r.nodes){if(t.kind==="named"&&e.kind==="word"&&(e.value[0]==="'"||e.value[0]==='"')&&e.value[e.value.length-1]===e.value[0]&&e.value.slice(1,-1)===t.value)return{nodes:F(t.value)};if(t.kind==="named"&&e.kind==="word"&&e.value[0]==="-"&&e.value[1]==="-"){let n=e.value;if(n.endsWith("-*")){n=n.slice(0,-2);let o=i.theme.resolve(t.value,[n]);if(o)return{nodes:F(o)}}else{let o=n.split("-*");if(o.length<=1)continue;let l=[o.shift()],c=i.theme.resolveWith(t.value,l,o);if(c){let[,u={}]=c;{let f=u[o.pop()];if(f)return{nodes:F(f)}}}}}else if(t.kind==="named"&&e.kind==="word"){if(!Wt.includes(e.value))continue;let n=e.value==="ratio"&&"fraction"in t?t.fraction:t.value;if(!n)continue;let o=H(n,[e.value]);if(o===null)continue;if(o==="ratio"){let[l,c]=L(n,"/").map(Number);if(!I(l)||!I(c))continue}else{if(o==="number"&&!ee(n))continue;if(o==="percentage"&&!I(n.slice(0,-1)))continue}if(o==="ratio"){let[l,c]=L(n,"/");return{nodes:F(`${l.trim()} / ${c.trim()}`),ratio:!0}}return{nodes:F(n),ratio:!1}}else if(t.kind==="arbitrary"&&e.kind==="word"&&e.value[0]==="["&&e.value[e.value.length-1]==="]"){let n=e.value.slice(1,-1);if(n==="*")return{nodes:F(t.value)};if("dataType"in t&&t.dataType&&t.dataType!==n)continue;if("dataType"in t&&t.dataType)return{nodes:F(t.value)};if(H(t.value,[n])!==null)return{nodes:F(t.value)}}}}function be(t,r,i,e,n=""){let o=!1,l=Xe(r,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(o=!0),e(zr(u,i))));function c(u){return n?L(u,",").map(f=>n.trim()+" "+f.trim()).join(", "):u}return o?[a(t,c(Xe(r,e))),J("@supports (color: lab(from red l a b))",[a(t,c(l))])]:[a(t,c(l))]}function mt(t,r,i,e,n=""){let o=!1,l=L(r,",").map(c=>Xe(c,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(o=!0),e(zr(u,i))))).map(c=>`drop-shadow(${c})`).join(" ");return o?[a(t,n+L(r,",").map(c=>`drop-shadow(${Xe(c,e)})`).join(" ")),J("@supports (color: lab(from red l a b))",[a(t,n+l)])]:[a(t,n+l)]}var Fr=/^-?[a-z][a-zA-Z0-9_-]*/,An=37,Cn=47,$n=46,Sn=97,Vn=122,Tn=65,Nn=90,gt=48,ht=57,En=95,Rn=45;function On(t){let r=Fr.exec(t);if(r===null)return!1;let i=r[0],e=t.slice(i.length);if(e.length===0&&i.endsWith("-"))return!1;if(e.length===0)return!0;let n=!1;for(let o=0;o<e.length;o++){let l=e.charCodeAt(o);switch(l){case An:{if(o!==e.length-1)return!1;let u=(e[o-1]||i[i.length-1]||"").charCodeAt(0);if(u<gt||u>ht)return!1;break}case Cn:{if(o===e.length-1||n)return!1;n=!0;break}case $n:{let u=(e[o-1]||i[i.length-1]||"").charCodeAt(0);if(u<gt||u>ht)return!1;let m=(e[o+1]||"").charCodeAt(0);if(m<gt||m>ht)return!1;break}case En:case Rn:continue;default:{if(l>=Sn&&l<=Vn||l>=Tn&&l<=Nn||l>=gt&&l<=ht)continue;return!1}}}return!0}function Pn(t){if(!t.endsWith("-*"))return!1;t=t.slice(0,-2);let r=Fr.exec(t);if(r===null)return!1;let i=
`,`
`);let r=[],i=[],e=null,n="",o;for(let l=0;l<t.length;l++){let c=t.charCodeAt(l);switch(c){case ii:case ni:case li:case ui:case si:case fi:case ci:{if(n.length>0){let p=$e(n);e?e.nodes.push(p):r.push(p),n=""}let u=l,f=l+1;for(;f<t.length&&(o=t.charCodeAt(f),!(o!==ii&&o!==ni&&o!==li&&o!==ui&&o!==si&&o!==fi&&o!==ci));f++);l=f-1;let m=t.slice(u,f),d=m.trim()===","?Qn(m):Hn(m);e?e.nodes.push(d):r.push(d);break}case oi:{let u=Jn(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let f=l+1,m=0;for(let p=l+1;p<t.length;p++){if(o=t.charCodeAt(p),o===oi){m++;continue}if(o===ri){if(m===0){l=p;break}m--}}let d=l;u.nodes.push(Xn(t.slice(f,d))),n="",l=d,e?e.nodes.push(u):r.push(u);break}e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case ri:{let u=i.pop();if(n.length>0){let f=$e(n);u.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}case il:case tl:case nl:{if(n.length>0){let u=$e(n);e?e.nodes.push(u):r.push(u)}n=t[l];break}case ai:{if(n.length>0){let m=$e(n);e?e.nodes.push(m):r.push(m)}n="";let u=l,f=0;for(let m=l+1;m<t.length;m++){if(o=t.charCodeAt(m),o===ai){f++;continue}if(o===el){if(f===0){l=m;break}f--}}n+=t.slice(u,l+1);break}case ll:case rl:{let u=l;for(let f=l+1;f<t.length;f++)if(o=t.charCodeAt(f),o===ti)f+=1;else if(o===c){l=f;break}n+=t.slice(u,l+1);break}case al:case ol:{if(n.length>0){let u=$e(n);e?e.nodes.push(u):r.push(u),n=""}e?e.nodes.push($e(t[l])):r.push($e(t[l]));break}case ti:{n+=t[l]+t[l+1],l+=1;break}default:n+=t[l]}}return n.length>0&&r.push($e(n)),r}function pe(t,r){for(let i in t)delete t[i];return Object.assign(t,r)}function Pe(t){let r=[];for(let i of L(t,".")){if(!i.includes("[")){r.push(i);continue}let e=0;for(;;){let n=i.indexOf("[",e),o=i.indexOf("]",n);if(n===-1||o===-1)break;n>e&&r.push(i.slice(e,n)),r.push(i.slice(n+1,o)),e=o+1}e<=i.length-1&&r.push(i.slice(e))}return r}function Gt(t,r){let i=t;return i.storage[hi]??=sl(),i.storage[vi]??=cl(i),i.storage[wi]??=ml(),i.storage[yi]??=hl(),i.storage[ki]??=wl(),i.storage[Zt]??=Cl(i),i.storage[bt]??=Sl(i,r),i.storage[ve]??=jl(i),i.storage[Ht]??=Fl(),i.storage[xt]??=Wl(i),i.storage[Jt]??=Bl(i),i.storage[Ct]??=Yl(i),i.storage[Ci]??=Gl(i),i.storage[tt]??=ul(i),i}var hi=Symbol();function sl(){return new z(t=>new z(r=>({rem:t,features:r})))}var tt=Symbol();function ul(t){return new z(r=>{let i=t.storage[ve].get(r);return function(n,o){let l=typeof n=="string"?n:t.printCandidate(n),c=i.get(l);if(typeof c!="string")return!1;let u=typeof o=="string"?o:t.printCandidate(o),f=i.get(u);return typeof f!="string"?!1:c===f}})}function fl(t,r){let i=0;return r?.collapse&&(i|=1),r?.logicalToPhysical&&(i|=2),Gt(t,r).storage[hi].get(r?.rem??null).get(i)}var vi=Symbol();function cl(t){return new z(r=>new z(i=>({features:i,designSystem:t,signatureOptions:r})))}function pl(t,r,i){let e=0;return i?.collapse&&(e|=1),Gt(t).storage[vi].get(r).get(e)}function qt(t,r,i){let e=fl(t,i),n=pl(t,e,i),o=Gt(t),l=new Set,c=o.storage[wi].get(n);for(let u of r)l.add(c.get(u));return l.size<=1||!(n.features&1)?Array.from(l):dl(n,Array.from(l))}function dl(t,r){let i=t.designSystem,e=new z(c=>new z(u=>new Set)),n=t.designSystem.theme.prefix?`${t.designSystem.theme.prefix}:`:"";for(let c of r){let u=L(c,":"),f=u.pop(),m=f.endsWith("!");m&&(f=f.slice(0,-1));let d=u.length>0?`${u.join(":")}:`:"",p=m?"!":"";e.get(d).get(p).add(`${n}${f}`)}let o=new Set;for(let[c,u]of e.entries())for(let[f,m]of u.entries())for(let d of l(Array.from(m)))n&&d.startsWith(n)&&(d=d.slice(n.length)),o.add(`${c}${d}${f}`);return Array.from(o);function l(c){let u=t.signatureOptions,f=i.storage[xt].get(u),m=i.storage[Ht].get(u),d=c.map(A=>f.get(A));if(d.some(A=>A.has("line-height"))){let A=i.theme.keysInNamespaces(["--text"]);if(A.length>0){let k=new Set,D=new Set;for(let E of d)if(E.has("line-height"))for(let U of E.get("line-height")){if(D.has(U))continue;D.add(U);let P=i.storage[bt]?.get(U)??null;if(P!==null)if(ee(P)){k.add(P);for(let j of A)f.get(`text-${j}/${P}`)}else{k.add(U);for(let j of A)f.get(`text-${j}/[${U}]`)}}let N=new Set;for(let E of d)if(E.has("font-size")){for(l
`),o=!0;return _(F(e),l=>{if(l.kind==="function"&&l.value==="var"){let c=l.nodes[0].value;if(!new RegExp(`var\\(${c}[,)]\\s*`,"g").test(n)||n.includes(`${c}:`))return o=!1,R.Stop}}),o}function Nl(t,r){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let i=r.designSystem,e=i.storage[Jt].get(r.signatureOptions),n=i.storage[ve].get(r.signatureOptions),o=i.storage[tt].get(r.signatureOptions),l=i.printCandidate(t),c=n.get(l);if(typeof c!="string")return t;for(let f of u(c,t))if(o(t,f))return f;return t;function*u(f,m){let d=e.get(f);if(d.length>1){let p;for(let v of d)if(v[0]!=="-"){if(p)return;p=v}if(p)for(let v of oe(i,p))yield v;return}if(d.length===0&&m.modifier){let p={...m,modifier:null},v=n.get(i.printCandidate(p));if(typeof v=="string")for(let h of u(v,p))yield Object.assign({},h,{modifier:m.modifier})}if(d.length===1)for(let p of oe(i,d[0]))yield p}}var El=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),Rl=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Ol(t){let r=El.get(t);r&&(yield r);for(let[i,e]of Rl){let n=t.replace(i,e);n!==t&&(yield n)}}function Pl(t,r){let i=r.designSystem,e=i.storage[tt].get(r.signatureOptions),n=bi(i,t);for(let o of Ol(n)){if(!e(t,o))continue;let[l]=oe(i,o);return l}return t}function Il(t,r){let i=r.designSystem,e=i.storage[Ct],n=i.storage[Ci],o=At(t);for(let[l]of o){if(l.kind==="compound")continue;let c=i.printVariant(l),u=e.get(c);if(typeof u!="string")continue;let f=n.get(u);if(f.length!==1)continue;let m=f[0],d=i.parseVariant(m);d!==null&&pe(l,d)}return t}function _l(t,r){let i=r.designSystem,e=i.storage[ve].get(r.signatureOptions);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let n=i.printCandidate({...t,value:{...t.value,dataType:null}});e.get(i.printCandidate(t))===e.get(n)&&(t.value.dataType=null)}return t}function Dl(t,r){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let i=r.designSystem,e=i.storage[ve].get(r.signatureOptions),n=e.get(i.printCandidate(t));if(n===null)return t;for(let o of xi(t))if(e.get(i.printCandidate({...t,value:o}))===n)return t.value=o,t;return t}function Kl(t){let r=At(t);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[e,n]=L(i.value.value,"=");if(e[e.length-1]==="~"||e[e.length-1]==="|"||e[e.length-1]==="^"||e[e.length-1]==="$"||e[e.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return t}function*xi(t,r=t.value?.value??"",i=new Set){if(i.has(r))return;if(i.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ee(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[o,l]=r.split("/");I(o)&&I(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let e=new Set;for(let o of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))e.add(o[0].trim());let n=Array.from(e).sort((o,l)=>o.length-l.length);for(let o of n)yield*xi(t,o,i)}function mi(t){return!t.some(r=>r.kind==="separator"&&r.value.trim()===",")}function kt(t){let r=t.value.trim();return t.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function Ul(t,r){let i=[t],e=r.designSystem,n=e.storage[Ct],o=At(t);for(let[l,c]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let u=Oe(l.selector.trim());if(!mi(u))continue;if(c===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].k
${ie([d])}
Relies on:
${ie([v])}`)}f.add(d);for(let v of o.get(d))for(let h of l.get(v))p.push(d),m(h,p),p.pop();c.add(d),f.delete(d),u.push(d)}}for(let d of n)m(d);for(let d of u)"nodes"in d&&_(d.nodes,p=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let v=p.params.split(/(\s+)/g),h={},y=0;for(let[b,T]of v.entries())b%2===0&&(h[T]=y),y+=T.length;{let b=Object.keys(h),T=Ve(b,r,{respectImportant:!1,onInvalidCandidate:N=>{if(r.theme.prefix&&!N.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);if(r.invalidCandidates.has(N))throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let E=L(N,":");if(E.length>1){let U=E.pop();if(r.candidatesToCss([U])[0]){let P=r.candidatesToCss(E.map(G=>`${G}:[--tw-variant-check:1]`)),j=E.filter((G,Z)=>P[Z]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${N}\` because the ${j.map(G=>`\`${G}\``)} variant does not exist.`);{let G=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${N}\` because the ${G.format(j.map(Z=>`\`${Z}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${N}\`. 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 \`${N}\``)}}),A=p.src,k=T.astNodes.map(N=>{let E=T.nodeSorting.get(N)?.candidate,U=E?h[E]:void 0;if(N=te(N),!A||!E||U===void 0)return _([N],j=>{j.src=A}),N;let P=[A[0],A[1],A[2]];return P[1]+=7+U,P[2]=P[1]+E.length,_([N],j=>{j.src=P}),N}),D=[];for(let N of k)if(N.kind==="rule")for(let E of N.nodes)D.push(E);else D.push(N);return R.Replace(D)}});return i}function*Ii(t,r){for(let i of t.params.split(/\s+/g))for(let e of r.parseCandidate(i))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function tr(t,r,i,e=0,n=!1){let o=0,l=[];return _(t,c=>{if(c.kind==="at-rule"&&(c.name==="@import"||c.name==="@reference")){let u=ta(F(c.params));if(u===null)return;c.name==="@reference"&&(u.media="reference"),o|=2;let{uri:f,layer:m,media:d,supports:p}=u;if(f.startsWith("data:")||f.startsWith("http://")||f.startsWith("https://"))return;let v=ge({},[]);return l.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${r}\`)`);let h=await i(f,r),y=Te(h.content,{from:n?h.path:void 0});await tr(y,h.base,i,e+1,n),v.nodes=ra(c,[ge({base:h.base},y)],m,d,p)})()),R.ReplaceSkip(v)}}),l.length>0&&await Promise.all(l),o}function ta(t){let r,i=null,e=null,n=null;for(let o=0;o<t.length;o++){let l=t[o];if(l.kind!=="separator"){if(l.kind==="word"&&!r){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;r=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!r)return null;if((l.kind==="word"||l.kind==="function")&&l.value.toLowerCase()==="layer"){if(i)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in l?i=Y(l.nodes):i="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(n)return null;n=Y(l.nodes);continue}e=Y(t.slice(o));break}}return r?{uri:r,layer:i,media:e,supports:n}:null}function ra(t,r,i,e,n){let o=r;if(i!==null){let l=W("@layer",i,o);l.src=t.src,o=[l]}if(e!==null){let l=W("@media",e,o);l.src=t.src,o=[l]}if(n!==null){let l=W("@supports",n[0]==="("?n:`(${n})`,o);l.src=t.src,o=[l]}return o}function We(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let r=Object.getPrototypeOf(t);return r===null||Object.getPrototypeOf(r)===null}function it(t,r,i,e=[]){for(let n of r)if(n!=null)for(let o of Reflect.ownKeys(n)){e.push(o);let l=i(t[o],n[o],e);l!==void 0?t[o]=l:!We(t[o])||!We(n[o])?t[o]=n[o]:t[o]=it({},[t[o],n[o]],i,e),e.pop()}return t}function St(t,r,i){return function(n
${ie([b])}
\`@plugin\` options must be a flat list of declarations.`);if(b.value===void 0)continue;let T=b.value,A=L(T,",").map(k=>{if(k=k.trim(),k==="null")return null;if(k==="true")return!0;if(k==="false")return!1;if(Number.isNaN(Number(k))){if(k[0]==='"'&&k[k.length-1]==='"'||k[0]==="'"&&k[k.length-1]==="'")return k.slice(1,-1);if(k[0]==="{"&&k[k.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${ie([b]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(k);return k});y[b.property]=A.length===1?A[0]:A}return l.push([{id:h,base:v.context.base,reference:!!v.context.reference,src:d.src},Object.keys(y).length>0?y:null]),o|=4,R.Replace([])}if(d.name==="@config"){if(d.nodes.length>0)throw new Error("`@config` cannot have a body.");if(v.parent!==null)throw new Error("`@config` cannot be nested.");return c.push({id:d.params.slice(1,-1),base:v.context.base,reference:!!v.context.reference,src:d.src}),o|=4,R.Replace([])}}),Wi(t);let u=t.resolveThemeValue;if(t.resolveThemeValue=function(p,v){return p.startsWith("--")?u(p,v):(o|=Gi({designSystem:t,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),t.resolveThemeValue(p,v))},!l.length&&!c.length)return 0;let[f,m]=await Promise.all([Promise.all(c.map(async({id:d,base:p,reference:v,src:h})=>{let y=await e(d,p,"config");return{path:d,base:y.base,config:y.module,reference:v,src:h}})),Promise.all(l.map(async([{id:d,base:p,reference:v,src:h},y])=>{let b=await e(d,p,"plugin");return{path:d,base:b.base,plugin:b.module,options:y,reference:v,src:h}}))]);return o|=Gi({designSystem:t,base:r,ast:i,sources:n,configs:f,pluginDetails:m}),o}function Gi({designSystem:t,base:r,ast:i,sources:e,configs:n,pluginDetails:o}){let l=0,u=[...o.map(y=>{if(!y.options)return{config:{plugins:[y.plugin]},base:y.base,reference:y.reference,src:y.src};if("__isOptionsFunction"in y.plugin)return{config:{plugins:[y.plugin(y.options)]},base:y.base,reference:y.reference,src:y.src};throw new Error(`The plugin "${y.path}" does not accept options`)}),...n],{resolvedConfig:f}=nr(t,[{config:ji(t.theme),base:r,reference:!0,src:void 0},...u,{config:{plugins:[Fi]},base:r,reference:!0,src:void 0}]),{resolvedConfig:m,replacedThemeKeys:d}=nr(t,u),p={designSystem:t,ast:i,resolvedConfig:f,featuresRef:{set current(y){l|=y}}},v=rr({...p,referenceMode:!1,src:void 0}),h=t.resolveThemeValue;t.resolveThemeValue=function(b,T){if(b[0]==="-"&&b[1]==="-")return h(b,T);let A=v.theme(b,void 0);if(Array.isArray(A)&&A.length===2)return A[0];if(Array.isArray(A))return A.join(", ");if(typeof A=="object"&&A!==null&&"DEFAULT"in A)return A.DEFAULT;if(typeof A=="string")return A};for(let{handler:y,reference:b,src:T}of f.plugins){let A=rr({...p,referenceMode:b??!1,src:T});y(A)}if(qr(t,m,d),Li(t,m),Yi(m,t),Bi(m,t),Mi(m,t),!t.theme.prefix&&f.prefix){if(f.prefix.endsWith("-")&&(f.prefix=f.prefix.slice(0,-1),console.warn(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!fa.test(f.prefix))throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=f.prefix}if(!t.important&&f.important===!0&&(t.important=!0),typeof f.important=="string"){let y=f.important;_(i,(b,T)=>{if(b.kind!=="at-rule"||b.name!=="@tailwind"||b.params!=="utilities")return;let A=He(T);return A.parent?.kind==="rule"&&A.parent.selector===y?R.Stop:R.ReplaceStop(q(y,[b]))})}for(let y of f.blocklist)t.invalidCandidates.add(y);for(let y of f.content.files){if("raw"in y)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(y,null,2)}
This feature is not currently supported.`);let b=!1;y.pattern[0]=="!"&&(b=!0,y.pattern=y.pattern.slice(1)),e.push({...y,negated:b})}return l}function Zi({ast:t}){let r=new z(n=>lt(n.code)),i=new z(n=>({url:n.file,content:n.code,ignore:!1})),e={file:null,sources:[],mappings:[]};_(t,n=>{if(!n.src||!n.dst)return;let o=i.get(n.src[0]);if(!o.content)return;let l=r.get(n.src[0]),c=r.get(n.dst[0]),u=o.content.slice(n.src[1],n.src[2]),f=0;for(let p of u.split(`
`)){if(p.trim()!==""){let v=l.find(n.src[1]+f),h=c.find(n.dst[1]);e.mappings.push({name:null,originalPosition:{source:o,...v},generatedPosition:h})}f+=p.length,f+=1}let m=l.find(n.src[2]),d=c.find(n.dst[2]);e.mappings.push({name:null,originalPosition:{source:o,...m},generatedPosition:d})});for(let n of r.keys())e.sources.push(i.get(n));return e.mappings.sort((n,o)=>n.generatedPosition.line-o.generatedPosition.line||n.generatedPosition.column-o.generatedPosition.column||(n.originalPosition?.line??0)-(o.originalPosition?.line??0)||(n.originalPosition?.column??0)-(o.originalPosition?.column??0)),e}var Hi=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Vt(t){let r=t.indexOf("{");if(r===-1)return[t];let i=[],e=t.slice(0,r),n=t.slice(r),o=0,l=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let p=n[d];if(p==="{")o++;else if(p==="}"&&(o--,o===0)){l=d;break}}if(l===-1)throw new Error(`The pattern \`${t}\` is not balanced.`);let c=n.slice(1,l),u=n.slice(l+1),f;ca(c)?f=pa(c):f=L(c,","),f=f.flatMap(d=>Vt(d));let m=Vt(u);for(let d of m)for(let p of f)i.push(e+p+d);return i}function ca(t){return Hi.test(t)}function pa(t){let r=t.match(Hi);if(!r)return[t];let[,i,e,n]=r,o=n?parseInt(n,10):void 0,l=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(e)){let c=parseInt(i,10),u=parseInt(e,10);if(o===void 0&&(o=c<=u?1:-1),o===0)throw new Error("Step cannot be zero in sequence expansion.");let f=c<u;f&&o<0&&(o=-o),!f&&o>0&&(o=-o);for(let m=c;f?m<=u:m>=u;m+=o)l.push(m.toString())}return l}function Ji(t,r){let i=new Set,e=new Set,n=[];function o(l,c=[]){if(t.has(l)&&!i.has(l)){e.has(l)&&r.onCircularDependency?.(c,l),e.add(l);for(let u of t.get(l)??[])c.push(l),o(u,c),c.pop();i.add(l),e.delete(l),n.push(l)}}for(let l of t.keys())o(l);return n}var da=/^[a-z]+$/,Dt=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(Dt||{});function ma(){throw new Error("No `loadModule` function provided to `compile`")}function ga(){throw new Error("No `loadStylesheet` function provided to `compile`")}function ha(t){let r=0,i=null;for(let e of L(t," "))e==="reference"?r|=2:e==="inline"?r|=1:e==="default"?r|=4:e==="static"?r|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(i=e.slice(7,-1));return[r,i]}var ze=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(ze||{});async function Qi(t,{base:r="",from:i,loadModule:e=ma,loadStylesheet:n=ga}={}){let o=0;t=[ge({base:r},t)],o|=await tr(t,r,n,0,i!==void 0);let l=null,c=new ct,u=new Map,f=new Map,m=[],d=null,p=null,v=[],h=[],y=[],b=[],T=null;_(t,(k,D)=>{if(k.kind!=="at-rule")return;let N=He(D);if(k.name==="@tailwind"&&(k.params==="utilities"||k.params.startsWith("utilities"))){if(p!==null)return R.Replace([]);if(N.context.reference)return R.Replace([]);let E=L(k.params," ");for(let U of E)if(U.startsWith("source(")){let P=U.slice(7,-1);if(P==="none"){T=P;continue}if(P[0]==='"'&&P[P.length-1]!=='"'||P[0]==="'"&&P[P.length-1]!=="'"||P[0]!=="'"&&P[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");T={base:N.context.sourceBase??N.context.base,pattern:P.slice(1,-1)}}p=k,o|=16}if(k.name==="@utility"){if(N.parent!==null)throw new Error("`@utility` cannot be nested.");if(k.nodes.length===0)throw new Error(`\`@utility ${k.params}\` is empty. Utilities should include at least one property.`);let E=Mr(k);if(E===null){if(!k.params.endsWith("-*")){if(k.params.endsWith("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(k.params.includes("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}m.push(E)}if(k.name==="@source"){if(k.nodes.length>0)throw new Error("`@source` cannot have a body.")
`).map((G,Z,se)=>`${Z===0||Z>=se.length-2?" ":">"} ${G}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${j}`)}),d?R.ReplaceSkip([]):(d=q(":root, :host",[]),d.src=k.src,R.ReplaceSkip(d))}});let A=Ei(c,p?.src);if(l&&(A.important=l),b.length>0)for(let k of b)A.invalidCandidates.add(k);o|=await qi({designSystem:A,base:r,ast:t,loadModule:e,sources:h});for(let k of u.keys())A.variants.static(k,()=>{});for(let k of Ji(f,{onCircularDependency(D,N){let E=ie(D.map((U,P)=>W("@custom-variant",U,[W("@variant",D[P+1]??N,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${N} {`,`@custom-variant ${N} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
${E}`)}}))u.get(k)?.(A);for(let k of m)k(A);if(d){let k=[];for(let[N,E]of A.theme.entries()){if(E.options&2)continue;let U=a(xe(N),E.value);U.src=E.src,k.push(U)}let D=A.theme.getKeyframes();for(let N of D)t.push(ge({theme:!0},[B([N])]));d.nodes=[ge({theme:!0},k)]}if(o|=rt(t,A),o|=Ue(t,A),o|=Se(t,A),p){let k=p;k.kind="context",k.context={}}return _(t,k=>{if(k.kind==="at-rule")return k.name==="@utility"?R.Replace([]):R.Skip}),{designSystem:A,ast:t,sources:h,root:T,utilitiesNode:p,features:o,inlineCandidates:y}}async function va(t,r={}){let{designSystem:i,ast:e,sources:n,root:o,utilitiesNode:l,features:c,inlineCandidates:u}=await Qi(t,r);e.unshift(ft(`! tailwindcss v${ur} | MIT License | https://tailwindcss.com `));function f(h){i.invalidCandidates.add(h)}let m=new Set,d=null,p=0,v=!1;for(let h of u)i.invalidCandidates.has(h)||(m.add(h),v=!0);return{sources:n,root:o,features:c,build(h){if(c===0)return t;if(!l)return d??=Ne(e,i,r.polyfills),d;let y=v,b=!1;v=!1;let T=m.size;for(let k of h)if(!i.invalidCandidates.has(k))if(k[0]==="-"&&k[1]==="-"){let D=i.theme.markUsedVariable(k);y||=D,b||=D}else m.add(k),y||=m.size!==T;if(!y)return d??=Ne(e,i,r.polyfills),d;let A=Ve(m,i,{onInvalidCandidate:f}).astNodes;return r.from&&_(A,k=>{k.src??=l.src}),!b&&p===A.length?(d??=Ne(e,i,r.polyfills),d):(p=A.length,l.nodes=A,d=Ne(e,i,r.polyfills),d)}}}async function Rf(t,r={}){let i=Te(t,{from:r.from}),e=await va(i,r),n=i,o=t;return{...e,build(l){let c=e.build(l);return c===n||(o=ie(c,!!r.from),n=c),o},buildSourceMap(){return Zi({ast:n})}}}async function Of(t,r={}){return(await Qi(Te(t,{from:r.from}),r)).designSystem}function wa(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}export{Dt as a,ze as b,va as c,Rf as d,Of as e,wa as f};