@tailwindcss/language-server 0.14.10 → 0.14.11

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.
@@ -1787,7 +1787,7 @@ ${s}}`;for(let c=r.length-1;c>=0;c--)i+=`${o.repeat(c)}
1787
1787
  `||l===";"||l==="("||l===")")break;if(n.startsWith("@import",r))return!1}return!0}),i.map(o=>{let r="",l=o.groups.path,s=sUe(l);s!==null&&(l=l.slice(0,s).trimEnd()),l=l.replace(/['"]+$/,"").replace(/^['"]+/,u=>(r=u,""));let p=l.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/);p&&(l=p[1]),l=l.replace(/['"]*\s*$/,"");let c=o.index+o.groups.prefix.length+o.groups.helper.length+o.groups.innerPrefix.length,a="config";return(o.groups.helper==="theme"||o.groups.helper==="--theme")&&(a="theme"),{helper:a,path:l,ranges:{full:Js({start:Kn(n,c),end:Kn(n,c+o.groups.path.length)},e),path:Js({start:Kn(n,c+r.length),end:Kn(n,c+r.length+l.length)},e)}}})}function Kn(t,e){let{line:n,col:i}=(0,Tne.default)(t+`
1788
1788
  `).fromIndex(e)??{line:1,col:1};return{line:n-1,character:i-1}}async function Cne(t,e,n){let i=[],o=e.offsetAt(n),r={start:e.positionAt(0),end:e.positionAt(o+15e3)};if(jm(e)){let s=pa(t,e),p=await Promise.all(s.map(async({type:c,range:a,lang:u})=>c==="css"?await LS(t,e,a,"css",!0,u):c==="html"?await LS(t,e,a,"html"):c==="js"||c==="jsx"?await LS(t,e,a,"jsx"):[]));i=mh(dp(p)).flatMap(c=>qd(c,t.blocklist))}else uo(t,e,n)?i=await Fm(t,e,r,"css"):y_(t,e,n)?i=await Fm(t,e,r,"html"):h_(t,e,n)?i=await Fm(t,e,r,"jsx"):i=await Fm(t,e,r);if(i.length===0)return null;let l=i.find(({range:s})=>tc(n,s));return l||null}var gO=br(ES()),kne=br($ne());var aUe=["text/html","text/x-template","text/x-handlebars-template"],oUe=["text/babel"],hu={text:{match:/[^]/,lineBreaks:!0}},CS={main:{cssBlockStart:{match:/<style(?=[>\s])/,push:"cssBlock"},jsBlockStart:{match:"<script",push:"jsBlock"},...hu},cssBlock:{styleStart:{match:">",next:"style"},cssBlockEnd:{match:"/>",pop:1},attrStartDouble:{match:'"',push:"attrDouble"},attrStartSingle:{match:"'",push:"attrSingle"},interp:{match:"{",push:"interp"},...hu},jsBlock:{scriptStart:{match:">",next:"script"},jsBlockEnd:{match:"/>",pop:1},langAttrStartDouble:{match:'lang="',push:"langAttrDouble"},langAttrStartSingle:{match:"lang='",push:"langAttrSingle"},typeAttrStartDouble:{match:'type="',push:"typeAttrDouble"},typeAttrStartSingle:{match:"type='",push:"typeAttrSingle"},attrStartDouble:{match:'"',push:"attrDouble"},attrStartSingle:{match:"'",push:"attrSingle"},interp:{match:"{",push:"interp"},...hu},interp:{interp:{match:"{",push:"interp"},end:{match:"}",pop:1},...hu},langAttrDouble:{langAttrEnd:{match:'"',pop:1},lang:{match:/[^"]+/,lineBreaks:!0}},langAttrSingle:{langAttrEnd:{match:"'",pop:1},lang:{match:/[^']+/,lineBreaks:!0}},typeAttrDouble:{langAttrEnd:{match:'"',pop:1},type:{match:/[^"]+/,lineBreaks:!0}},typeAttrSingle:{langAttrEnd:{match:"'",pop:1},type:{match:/[^']+/,lineBreaks:!0}},attrDouble:{attrEnd:{match:'"',pop:1},...hu},attrSingle:{attrEnd:{match:"'",pop:1},...hu},style:{cssBlockEnd:{match:/<\/style\s*>/,pop:1},...hu},script:{jsBlockEnd:{match:/<\/script\s*>/,pop:1},...hu}},lUe={...CS,main:{htmlBlockStart:{match:"<template",push:"htmlBlock"},...CS.main},cssBlock:{langAttrStartDouble:{match:'lang="',push:"langAttrDouble"},langAttrStartSingle:{match:"lang='",push:"langAttrSingle"},...CS.cssBlock},htmlBlock:{htmlStart:{match:">",next:"html"},htmlBlockEnd:{match:"/>",pop:1},attrStartDouble:{match:'"',push:"attrDouble"},attrStartSingle:{match:"'",push:"attrSingle"},interp:{match:"{",push:"interp"},...hu},html:{htmlBlockEnd:{match:"</template>",pop:1},nestedBlockStart:{match:"<template",push:"nestedBlock"},...hu},nestedBlock:{nestedStart:{match:">",next:"nested"},nestedBlockEnd:{match:"/>",pop:1},...hu},nested:{nestedBlockEnd:{match:"</template>",pop:1},nestedBlockStart:{match:"<template",push:"nestedBlock"},...hu}},uUe=gO.default.states(CS),cUe=gO.default.states(lUe),DS=new kne.default({max:25,maxAge:1e3});function pa(t,e,n=e.getText()){let i=`${e.languageId}:${n}`,o=DS.get(i);if(o!==void 0)return o;let r=Kd(t,e),l=jm(e)?"none":Um(t,e)||wS(e)?"html":r?"jsx":null;if(l===null)return DS.set(i,null),null;n=Ts(n,r?"js":"html");let s=l==="none"?cUe:uUe;s.reset(n);let p=l,c=[{type:l,range:{start:{line:0,character:0},end:void 0}}],a=0;try{for(let u of s){if(!u.type.startsWith("nested"))if(u.type.endsWith("BlockStart")){let d=Kn(n,a);c[c.length-1].range.end||(c[c.length-1].range.end=d),p=u.type.replace(/BlockStart$/,""),c.push({type:p,range:{start:d,end:void 0}})}else if(u.type.endsWith("BlockEnd")){let d=Kn(n,a);c[c.length-1].range.end=d,c.push({type:l,range:{start:d,end:void 0}})}else u.type==="lang"?(c[c.length-1].type=u.text,u.text==="tsx"?(c[c.length-1].type="jsx",c[c.length-1].lang="tsx"):u.text==="ts"&&(c[c.length-1].type="js",c[c.length-1].lang="ts")):u.type==="type"&&aUe.includes(u.text)?c[c.length-1].type="html":u.type==="type"&&oUe.includes(u.text)&&(c[c.length-1].type="jsx");a+=u.text.length}}catch{return DS.set(i,null),null}c[c.length-1].range.end||(c[c.length-1].range.end=Kn(n,a)),DS.set(i,c);for(let u of c)u.type!=="css"&&bO(t,u.type)&&(u.lang=u.type,u.type="css");return c}function Um(t,e){let n=Object.keys(t.editor.userLanguages).filter(i=>mS.includes(t.editor.userLanguages[i]));return[...mS,...n].indexOf(e.languageId)!==-1}function jm(t){return t.languageId==="vue"}function wS(t){return t.languageId==="svelte"}function y_(t,e,n){let i=e.getText({start:{line:0,character:0},end:n}),o=pa(t,e,i);return o?o[o.length-1].type==="html":!1}function pUe(t){let e=Object.keys(t.editor.userLanguages).filter(n=>yS.includes(t.editor.userLanguages[n]));return[...yS,...e]}function bO(t,e){return pUe(t).indexOf(e)!==-1}function yl(t,e){return bO(t,e.languageId)}function uo(t,e,n){if(yl(t,e))return!0;if(Um(t,e)||jm(e)||wS(e)||Kd(t,e)){let i=e.getText({start:{line:0,character:0},end:n}),o=pa(t,e,i);return o?o[o.length-1].type==="css":!1}return!1}var Nne=br(Mo());function gf(t,e){let n=Array.isArray(e)?e:Fc(t,e);if(!n)return null;let i=(0,Nne.default)(t.classNames.classNames,[...n,"__info"]);return Array.isArray(i)?i.map(o=>({source:o.__source,pseudo:o.__pseudo,scope:o.__scope,context:o.__context})):{source:i.__source,pseudo:i.__pseudo,scope:i.__scope,context:i.__context}}var _O=br(Mo());function $S(t,e){return t.featureFlags.future.includes(e)?t.config.future==="all"||(0,_O.default)(t.config,["future",e],!1):t.featureFlags.experimental.includes(e)?t.config.experimental==="all"||(0,_O.default)(t.config,["experimental",e],!1):!1}function Gd(t,e){if(t.jit)return{isApplyable:!0};let n=gf(t,e);if(!n)return null;if(Tn(t.version,"2.0.0-alpha.1")||$S(t,"applyComplexClasses"))return{isApplyable:!0};let i=Array.isArray(e)?e.join(t.separator):e,o;return Array.isArray(n)?o=`'@apply' cannot be used with '${i}' because it is included in multiple rulesets.`:n.source!=="utilities"?o=`'@apply' cannot be used with '${i}' because it is not a utility.`:n.context&&n.context.length>0?n.context.length===1?o=`'@apply' cannot be used with '${i}' because it is nested inside of an at-rule ('${n.context[0]}').`:o=`'@apply' cannot be used with '${i}' because it is nested inside of at-rules (${n.context.map(r=>`'${r}'`).join(", ")}).`:n.pseudo&&n.pseudo.length>0&&(n.pseudo.length===1?o=`'@apply' cannot be used with '${i}' because its definition includes a pseudo-selector ('${n.pseudo[0]}')`:o=`'@apply' cannot be used with '${i}' because its definition includes pseudo-selectors (${n.pseudo.map(r=>`'${r}'`).join(", ")}).`),o?{isApplyable:!1,reason:o}:{isApplyable:!0}}function Mne(t){return t.code==="cssConflict"}function One(t){return t.code==="invalidApply"}function Rne(t){return t.code==="invalidScreen"}function Fne(t){return t.code==="invalidVariant"}function Bne(t){return t.code==="invalidConfigPath"}function jne(t){return t.code==="invalidTailwindDirective"}function Une(t){return t.code==="recommendedVariantOrder"}var dUe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HUe=/\\(\\)?/g;function kS(t){let e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(dUe,(n,i,o,r)=>{e.push(o?r.replace(HUe,"$1"):i||n)}),e}var NS=br(Vne());function jc(t,e){return e.concat([]).sort((n,i)=>(0,NS.default)(t,n)-(0,NS.default)(t,i))[0]}function Xne(t,e){return(0,NS.default)(t,e)}function MS(t){let e=Array.from(t.theme.entries(),([i])=>i),n=t.theme.prefix?.length??0;return n>0?e.map(i=>`--${i.slice(n+3)}`):e}function Kne(t){return["--breakpoint","--color","--animate","--blur","--radius","--shadow","--inset-shadow","--drop-shadow","--container","--font","--font-size","--tracking","--leading","--ease"]}var OS=br(Mo());function Uc(t){return typeof t=="string"?t:t.reduce((e,n,i)=>i===0?n:n.includes(".")?`${e}[${n}]`:`${e}.${n}`,"")}function Wm(t,e,n=[]){let i=Array.isArray(e)?e:kS(e);if(t.v4)return hUe(t,Uc(i));let o=[...n,...i],r=(0,OS.default)(t.config,o),l=[],s=t.modules?.transformThemeValue?.module??(a=>u=>u);o[0]==="theme"&&o[1]&&(r=s(o[1])(r));function p(){return WI("123456789".substr(0,i.length-1)).map(d=>d.split("").map(H=>parseInt(H,10))).map(d=>{let H=[],h=0;return d.forEach(y=>{H.push(i.slice(h,y).join(".")),h=y}),H.push(i.slice(h).join(".")),H}).slice(1).find(d=>Wm(t,d,n).isValid)}if(typeof r>"u"){let a=`'${Uc(e)}' does not exist in your theme config.`,u=[...n,...i.slice(0,i.length-1)],d=(0,OS.default)(t.config,u);if(Ka(d)){let H=jc(i[i.length-1],Object.keys(d).filter(h=>Wm(t,[...u,h]).isValid));H&&(l.push(Uc([...i.slice(0,i.length-1),H])),a+=` Did you mean '${l[0]}'?`)}else{let H=p();if(H)return{isValid:!1,reason:`${a} Did you mean '${Uc(H)}'?`,suggestions:[Uc(H)]}}return{isValid:!1,reason:a,suggestions:l}}if(!(typeof r=="string"||typeof r=="number"||r instanceof String||r instanceof Number||Array.isArray(r)||typeof r=="function")){let a=`'${Uc(e)}' was found but does not resolve to a valid theme value.`;if(Ka(r)){let u=Object.keys(r).filter(d=>Wm(t,[...i,d],n).isValid);u.length&&(l.push(...u.map(d=>Uc([...i,d]))),a+=` Did you mean something like '${l[0]}'?`)}return{isValid:!1,reason:a,suggestions:l}}let c=!0;for(let a=i.length-1;a>=0;a--){let u=i[a],d=(0,OS.default)(t.config,[...n,...i.slice(0,a)]);if(/^[0-9]+$/.test(u)){if(!Ka(d)&&!Array.isArray(d)){c=!1;break}}else if(!Ka(d)){c=!1;break}}if(!c){let a=`'${Uc(e)}' does not exist in your theme config.`,u=p();return u?{isValid:!1,reason:`${a} Did you mean '${Uc(u)}'?`,suggestions:[Uc(u)]}:{isValid:!1,reason:a,suggestions:[]}}return{isValid:!0,value:r}}function qne(t,e,n){let i=n.tailwindCSS.lint.invalidConfigPath;if(i==="ignore")return[];let o=[];return xS(t,e).forEach(r=>{let l=r.helper==="theme"?["theme"]:[],s=Wm(t,r.path,l);s.isValid!==!0&&o.push({code:"invalidConfigPath",range:r.ranges.path,severity:i==="error"?1:2,message:s.reason,suggestions:s.suggestions})}),o}function fUe(t,e){let n=t.theme.prefix??null,i=n?`${n}:[--custom:theme(${e})]`:`[--custom:theme(${e})]`,[o]=t.compile([i]),r=null;return o.walkDecls(l=>{r=l.value}),r}function hUe(t,e){let n=t.designSystem.theme.prefix??null,i=fUe(t.designSystem,e);if(i!=null)return{isValid:!0,value:i};let o=e.startsWith("--")?`'${e}' does not exist in your theme.`:`'${e}' does not exist in your theme config.`,r=mUe(t,e);return r.length>0&&(o+=` Did you mean '${r[0]}'?`),{isValid:!1,reason:o,suggestions:r}}function mUe(t,e){if(!t.v4)return[];if(!e.startsWith("--"))return[];let n=e.slice(2).split("-");n[0]=`--${n[0]}`;let i=MS(t.designSystem),o=null;for(;n.length>1;){n.pop();let l=n.join("-"),s=i.filter(p=>p.startsWith(l));if(s.length!==0){o=jc(e,s);break}}return o??=jc(e,i),Xne(e,o)<=5?[o]:[]}var Die=br(Xm());var US=new Uint8Array(256);function Zd(t,e){let n=0,i=[],o=0,r=t.length,l=e.charCodeAt(0);for(let s=0;s<r;s++){let p=t.charCodeAt(s);if(n===0&&p===l){i.push(t.slice(o,s)),o=s+1;continue}switch(p){case 92:s+=1;break;case 39:case 34:for(;++s<r;){let c=t.charCodeAt(s);if(c===92){s+=1;continue}if(c===p)break}break;case 40:US[n]=41,n++;break;case 91:US[n]=93,n++;break;case 123:US[n]=125,n++;break;case 93:case 125:case 41:n>0&&p===US[n-1]&&n--;break}}return i.push(t.slice(o)),i}async function Cie(t,e,n){return await QUe(t,e,n)||await n6e(t,e,n)||await YUe(t,e,n)||await e6e(t,e,n)}async function YUe(t,e,n){if(!uo(t,e,n))return null;let i=await t.editor.getConfiguration(e.uri),o=TS(e,{start:{line:n.line,character:0},end:{line:n.line+1,character:0}});for(let r of o){if(!tc(n,r.ranges.path))continue;let l=Wm(t,r.path,r.helper==="theme"?["theme"]:[]),s=l.isValid?hS(l.value):null;return s===null?null:(i.tailwindCSS.showPixelEquivalents&&(s=Cp(s,i.tailwindCSS.rootFontSize)),{contents:{kind:"markdown",value:["```plaintext",s,"```"].join(`
1789
1789
  `)},range:r.ranges.path})}return null}async function QUe(t,e,n){let i=await Cne(t,e,n);if(i===null)return null;if(t.v4){let s=t.designSystem.compile([i.className])[0];return s.nodes.length===0?null:{contents:{language:"css",value:await Tm(t,s,e.uri)},range:i.range}}if(t.jit){let{root:s,rules:p}=ml(t,[i.className]);return p.length===0?null:{contents:{language:"css",value:await Tm(t,s,e.uri)},range:i.range}}let o=Fc(t,i.className);if(!o)return null;if(uo(t,e,n)){let s=Gd(t,o);if(s===null||s.isApplyable===!1)return null}let r=await t.editor.getConfiguration(e.uri),l=f_(i.className,(0,xie.default)(t.classNames.classNames,[...o,"__info"]),r);return l?{contents:{language:"css",value:l},range:i.range}:null}function b_(t){return{kind:"markdown",value:t.join(`
1790
- `)}}async function e6e(t,e,n){if(!uo(t,e,n))return null;let i={start:{line:n.line,character:0},end:{line:n.line+1,character:0}},o=Ts(e,"css",i),l=[/@source(?:\s+not)?\s*(?<glob>'[^']+'|"[^"]+")/dg,/@source(?:\s+not)?\s*inline\((?<glob>'[^']+'|"[^"]+")/dg].flatMap(s=>Ia(s,o));for(let s of l){let p=s.groups.glob.slice(1,-1);if(!p.includes("{")||!p.includes("}"))continue;let c=Js({start:Kn(o,s.indices.groups.glob[0]),end:Kn(o,s.indices.groups.glob[1])},i);if(!tc(n,c))continue;let a=new Set(Die.default.expand(p));if(!(a.size<2))return{range:c,contents:b_(["**Expansion**","```plaintext",...Array.from(a,u=>`- ${u}`),"```"])}}return null}var t6e=/@(?<directive>theme)\s+(?<parts>[^{]+)\s*\{/dg,r6e=/@(?<directive>import)\s*[^;]+?theme\((?<parts>[^)]+)\)/dg;async function n6e(t,e,n){if(!t.v4)return null;let i={start:{line:n.line,character:0},end:{line:n.line+1,character:0}},o=Ts(e,"css",i),r=[...Ia(r6e,o),...Ia(t6e,o)];for(let l of r){let s=l.groups.directive,p=l.groups.parts,c=[],a=l.indices.groups.parts[0];for(let H of Zd(p," ")){let h=H.length;H=H.trim(),H!==""&&c.push({name:H,range:Js({start:Kn(o,a),end:Kn(o,a+H.length)},i)}),a+=h+1}let u=c.find(H=>tc(n,H.range));if(!u)return null;let d=i6e(s,u.name);return d?{range:u.range,contents:d}:null}return null}function i6e(t,e){return{reference:b_([t==="import"?"Don't emit CSS variables for imported theme values.":"Don't emit CSS variables for these theme values."]),inline:b_([t==="import"?"Inline imported theme values into generated utilities instead of using `var(\u2026)`.":"Inline these theme values into generated utilities instead of using `var(\u2026)`."]),static:b_([t==="import"?"Always emit imported theme values into the CSS file instead of only when used.":"Always emit these theme values into the CSS file instead of only when used."]),default:b_([t==="import"?"Allow imported theme values to be overridden by JS configs and plugins.":"Allow these theme values to be overridden by JS configs and plugins."])}[e]}var kie=br(Xm());var s6e=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"];function wie(t){let e=t==0?0:Math.floor(Math.log(t)/Math.log(1e3));return new Intl.NumberFormat("en",{notation:"compact",style:"unit",unit:s6e[e],unitDisplay:"narrow"}).format(t/1e3**e)}function $ie(t){let e=0;e+=1+t.length+3,e+=2;for(let[n,i]of Zd(t,":").entries())e+=(n+1)*2+2+i.length+3,e+=(n+1)*2+2;return e*1.95}async function Nie(t,e){return t.enabled?(await Promise.all([o6e(t,e)])).flat():[]}var a6e=/@source(?:\s+not)?\s*inline\((?<glob>'[^']+'|"[^"]+")/dg;async function o6e(t,e){if(!t.features.includes("source-inline"))return[];let n=e.getText(),i=new Intl.NumberFormat("en",{maximumFractionDigits:2}),o=[];for(let r of Ia(a6e,n)){let l=r.groups.glob.slice(1,-1),s=new Set(kie.default.expand(l));if(s.size<2)continue;let p=Js({start:Kn(n,r.indices.groups.glob[0]),end:Kn(n,r.indices.groups.glob[1])}),c=0;for(let a of s)c+=$ie(a);o.push({range:p,command:{title:`Generates ${i.format(s.size)} classes`,command:""}}),c>=1e6&&(o.push({range:p,command:{title:`At least ${wie(c)} of CSS`,command:""}}),o.push({range:p,command:{title:"This may slow down your bundler/browser",command:""}}))}return o}var Ta=br(Aw()),Rl=br(Mo());function l6e(t){return Ka(t)&&t.raw!==void 0}function Mie(t){if(!t)return;if(typeof t=="string")return`@media (min-width: ${t})`;if(l6e(t))return`@media ${t.raw}`;let e=(Array.isArray(t)?t:[t]).map(n=>[typeof n.min=="string"?`(min-width: ${n.min})`:null,typeof n.max=="string"?`(max-width: ${n.max})`:null].filter(Boolean).join(" and ")).join(", ");return e?`@media ${e}`:void 0}function WS(t){let e=0;for(let n=t.length-1;n>=0;n--){let i=t.charCodeAt(n);e+=+(i===123)-+(i===125)}return e}function Oie(t){let e=0;for(let n=t.length-1;n>=0;n--){let i=t.charCodeAt(n);e+=+(i===40)-+(i===41)}return e}var Km=br(Fie());function Bie(t,e){let n="<",i=">",o="\\",r="?",l={line:0,character:0},s=t.getText({start:{line:l.line,character:l.character},end:{line:e.start.line,character:e.start.character}});if(s.length>500&&(s=s.substr(s.length-500)),!s.trim())return!0;let p=!0,c=!1,a=s.length-1;if(s[a]===n)return!1;for(;a>=0;){let u=s[a];if(a--,!c&&/\s/.test(u)){c=!0;continue}if(u===r&&s[a]===n){a--;continue}if(/\s/.test(u)&&s[a]===n){a--;continue}if(!(u!==n&&u!==i)){if(a>=0&&s[a]===o){a--;continue}if(u===i){if(a>=0&&s[a]==="=")continue;break}if(u===n){p=!c;break}}}return p}function co(t,e){let n=typeof e=="number"?e.toString().length:8;return("0".repeat(n)+t).slice(-n)}function La(t,e){let n=0,i="https://tailwindcss-v0.netlify.app/docs/";Tn(t,"0.99.0")&&(n=1,i="https://v1.tailwindcss.com/docs/"),Tn(t,"1.99.0")&&(n=2,i="https://v2.tailwindcss.com/docs/"),Tn(t,"2.99.0")&&(n=3,i="https://v3.tailwindcss.com/docs/"),Tn(t,"3.99.0")&&(n=4,i="https://tailwindcss.com/docs/");let o=Array.isArray(e)?e[n]||e[e.length-1]:e;return`${i}${o}`}function __(t,e){let n=t.variants.flatMap(s=>s.values.length?s.values.map(p=>p==="DEFAULT"?s.name:`${s.name}${s.hasDash?"-":""}${p}`):[s.name]),i=Zd(e,t.separator);if(i.length<2)return{variants:[],offset:0};i=i.filter(Boolean);function o(s){if(n.includes(s))return!0;let p=`${s}${t.separator}[color:red]`;if(t.v4){if(!t.designSystem)return!1;let c=t.designSystem.candidatesToCss([p]);return c.length!==1?!1:c[0]!==null}return t.jit&&(s.includes("[")&&s.endsWith("]")||s.includes("/"))?ml(t,[p]).rules.length>0:!1}let r=0,l=new Set;for(let s of i){if(!o(s))break;l.add(s),r+=s.length+t.separator.length}return{variants:Array.from(l),offset:r}}var u6e=["js","cjs","mjs","(?<!d.)ts","(?<!d.)mts","(?<!d.)cts"],c6e=["html","pug","gjs","gts","astro","cjs","(?<!d.)cts","jade","js","jsx","mjs","(?<!d.)mts","svelte","(?<!d.)ts","tsx","vue","md","mdx","aspx","razor","handlebars","hbs","mustache","php","twig","erb","haml","liquid","rb","rhtml","slim","eex","heex","njk","nunjucks","py","tpl","rs"],jie=new RegExp(`\\.(${u6e.join("|")})$`),Uie=new RegExp(`\\.(${c6e.join("|")})$`);var p6e=/@(?<directive>config|plugin|source)(?<not>\s+not)?\s*(?<partial>'[^']*|"[^"]*)$/,d6e=/@(?<directive>config)\s*(?<partial>'[^']*|"[^"]*)$/,H6e=/@(?<directive>(?:import|reference))\s*(?<path>'[^']*'|"[^"]*")\s*(layer\([^)]+\)\s*)?source\((?<partial>'[^']*|"[^"]*)$/,f6e=/@(?<directive>tailwind)\s+utilities\s+source\((?<partial>'[^']*|"[^"]*)?$/;async function Wie(t,e){if(t.v4){let l=e.match(p6e)??e.match(H6e)??e.match(f6e);if(!l)return null;let s=l.groups.not!==void 0&&l.groups.not.length>0,p=l.groups.directive,c=l.groups.partial?.slice(1)??"",a="script";if(p==="source")a="source";else if(p==="import"||p==="tailwind"){if(s)return null;a="directory"}return{directive:p,partial:c,suggest:a}}let n=e.match(d6e);if(!n||n.groups.not!==void 0&&n.groups.not.length>0)return null;let o=n.groups.directive,r=n.groups.partial.slice(1);return{directive:o,partial:r,suggest:"script"}}var h6e=t=>Array.isArray(t.__info)?t.__info.some(e=>e.__source==="utilities"):t.__info.__source==="utilities";function VS(t,e,n,i,o,r){let l=e.split(/[\s+]/),s=l[l.length-1],p=t.separator,c=s.split(p),a,u=[],d=!1,H={...n,start:{...n.start,character:n.end.character-s.length}};if(t.v4){let L=function(I){return{kind:9,data:{...t.completionItemData??{},_type:"variant"},command:I.insertTextFormat===2?void 0:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(A++),...I}},h=t.designSystem.theme.prefix??"",{variants:y,offset:b}=__(t,s);if(r&&(r.triggerKind===1||r.triggerKind===2&&r.triggerCharacter==="/")&&s.includes("/")){let I,v=s.split("/").slice(0,-1).join("/"),S=v.slice(b);if(I=t.classList.find(x=>Array.isArray(x)&&x[0]===S)?.[1]?.modifiers??[],I.length>0)return Ga({isIncomplete:!1,items:I.map((x,T)=>{let D=`${v}/${x}`,N=Ta.CompletionItemKind.Constant,R,F=fu(t,D);return F!==null&&(N=Ta.CompletionItemKind.Color,typeof F!="string"&&(F.alpha??1)!==0&&(R=ec(F))),{label:D,...R?{documentation:R}:{},kind:N,sortText:co(T)}})},{range:H,data:t.completionItemData},t.editor.capabilities.itemDefaults)}H.start.character+=b;let _=s.substr(b).endsWith("!");_&&(H.end.character-=1);let m=[],g=new Set,A=0;for(let I of t.variants)if(!y.includes(I.name)&&!g.has(I.name)){if(g.add(I.name),I.isArbitrary)m.push(L({label:`${I.name}${I.hasDash?"-":""}[]${p}`,insertTextFormat:2,textEditText:`${I.name}${I.hasDash?"-":""}[\${1}]${p}\${0}`}));else{let v=[...y,I.name],S=[];try{S=I.selectors()}catch(x){console.log("Error while trying to get selectors for variant"),console.log({variant:I,err:x})}if(S.length===0)continue;m.push(L({label:`${I.name}${p}`,detail:S.map(x=>_2(x)).join(", "),textEditText:v[v.length-1]+p}))}for(let v of I.values??[]){if(y.includes(`${I.name}-${v}`)||g.has(`${I.name}-${v}`))continue;g.add(`${I.name}-${v}`);let S=[];try{S=I.selectors({value:v})}catch(x){console.log("Error while trying to get selectors for variant"),console.log({variant:I,err:x})}S.length!==0&&m.push(L({label:v==="DEFAULT"?`${I.name}${p}`:`${I.name}${I.hasDash?"-":""}${v}${p}`,detail:S.join(", ")}))}}if(h.length>0){if(y.length===0)return m=m.slice(0,1),Ga({isIncomplete:!1,items:m},{data:{...t.completionItemData??{},..._?{important:_}:{},variants:y},range:H},t.editor.capabilities.itemDefaults);if(y[0]!==h)return null}return Ga({isIncomplete:!1,items:m.concat(t.classList.reduce((I,[v,{color:S}],x)=>{if(t.blocklist?.includes([...y,v].join(t.separator)))return I;let T=S?Ta.CompletionItemKind.Color:Ta.CompletionItemKind.Constant,D;return S&&typeof S!="string"&&(D=ec(S)),I.push({label:v,kind:T,...D?{documentation:D}:{},sortText:co(x,t.classList.length)}),I},[]))},{data:{...t.completionItemData??{},..._?{important:_}:{},variants:y},range:H},t.editor.capabilities.itemDefaults)}if(t.jit){let{variants:h,offset:y}=__(t,s);if(r&&(r.triggerKind===1||r.triggerKind===2&&r.triggerCharacter==="/")&&s.includes("/")){let g,A=s.split("/").slice(0,-1).join("/");if(t.classListContainsMetadata){let L=A.slice(y);g=t.classList.find(I=>Array.isArray(I)&&I[0]===L)?.[1]?.modifiers}else{let L=A+"/[0]",{rules:I}=ml(t,[L]);if(I.length>0){let v=(0,Rl.default)(t.config,"theme.opacity",{});Ka(v)||(v={}),g=Object.keys(v)}}if(g)return Ga({isIncomplete:!1,items:g.map((L,I)=>{let v=`${A}/${L}`,S=Ta.CompletionItemKind.Constant,x,T=fu(t,v);return T!==null&&(S=Ta.CompletionItemKind.Color,typeof T!="string"&&(T.alpha??1)!==0&&(x=ec(T))),{label:v,...x?{documentation:x}:{},kind:S,sortText:co(I)}})},{range:H,data:t.completionItemData},t.editor.capabilities.itemDefaults)}H.start.character+=y;let b=s.substr(y).startsWith("!");b&&(H.start.character+=1);let _=[],m=new Set;if(!b){let A=function(L){return{kind:9,data:{...t.completionItemData??{},_type:"variant"},command:L.insertTextFormat===2?void 0:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(g++),...L}},g=0;for(let L of t.variants)if(!h.includes(L.name)&&!m.has(L.name)){if(m.add(L.name),L.isArbitrary)_.push(A({label:`${L.name}${L.hasDash?"-":""}[]${p}`,insertTextFormat:2,textEditText:`${L.name}${L.hasDash?"-":""}[\${1}]${p}\${0}`}));else{let I=!Tn(t.version,"2.99.0"),v=[...h,L.name];if(I){let S=t.variants.map(({name:x})=>x);v=v.sort((x,T)=>S.indexOf(T)-S.indexOf(x))}_.push(A({label:`${L.name}${p}`,detail:L.selectors().map(S=>_2(S)).join(", "),textEditText:v[v.length-1]+p,additionalTextEdits:I&&v.length>1?[{newText:v.slice(0,v.length-1).join(p)+p,range:{start:{...n.start,character:n.end.character-s.length},end:{...H.start,character:H.start.character}}}]:[]}))}for(let I of L.values??[])h.includes(`${L.name}-${I}`)||m.has(`${L.name}-${I}`)||(m.add(`${L.name}-${I}`),_.push(A({label:I==="DEFAULT"?`${L.name}${p}`:`${L.name}${L.hasDash?"-":""}${I}${p}`,detail:L.selectors({value:I}).join(", ")})))}}return t.classList?Ga({isIncomplete:!1,items:_.concat(t.classList.reduce((g,[A,{color:L}],I)=>{if(t.blocklist?.includes([...h,A].join(t.separator)))return g;let v=L?Ta.CompletionItemKind.Color:Ta.CompletionItemKind.Constant,S;return L&&typeof L!="string"&&(S=ec(L)),g.push({label:A,kind:v,...S?{documentation:S}:{},sortText:co(I,t.classList.length)}),g},[]))},{data:{...t.completionItemData??{},...b?{important:b}:{},variants:h},range:H},t.editor.capabilities.itemDefaults):Ga({isIncomplete:!1,items:_.concat(Object.keys(t.classNames.classNames).filter(g=>{let A=t.classNames.classNames[g];return h.length===0?A.__info:A.__info&&h6e(A)}).map((g,A,L)=>{let I=Ta.CompletionItemKind.Constant,v,S=fu(t,g);return S!==null&&(I=Ta.CompletionItemKind.Color,typeof S!="string"&&(S.alpha??1)!==0&&(v=ec(S))),{label:g,kind:I,...v?{documentation:v}:{},sortText:co(A,L.length)}})).filter(g=>!(g===null||o&&!o(g)))},{range:H,data:{...t.completionItemData??{},variants:h,...b?{important:b}:{}}},t.editor.capabilities.itemDefaults)}for(let h=c.length-1;h>0;h--){let y=c.slice(0,h).filter(Boolean);if(a=(0,Rl.default)(t.classNames.classNames,y),typeof a<"u"&&typeof(0,Rl.default)(a,["__info","__rule"])>"u"){d=!0,u=y,H={...H,start:{...H.start,character:H.start.character+y.join(p).length+p.length}};break}}return Ga({isIncomplete:!1,items:Object.keys(d?a:t.classNames.classNames).filter(h=>h!=="__info").filter(h=>O6e(t,[...u,h])).map((h,y,b)=>({label:h+p,kind:9,command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(y,b.length),data:{...t.completionItemData??{},className:h,variants:u}})).concat(Object.keys(d?a:t.classNames.classNames).filter(h=>(0,Rl.default)(t.classNames.classNames,[...u,h,"__info"])).map((h,y,b)=>{let _=Ta.CompletionItemKind.Constant,m,g=fu(t,h);return g!==null&&(_=Ta.CompletionItemKind.Color,typeof g!="string"&&(g.alpha??1)!==0&&(m=ec(g))),{label:h,kind:_,...m?{documentation:m}:{},sortText:co(y,b.length)}})).filter(h=>!(h===null||o&&!o(h)))},{range:H,data:{...t.completionItemData??{},variants:u}},t.editor.capabilities.itemDefaults)}async function m6e(t,e,n,i){let o={start:e.positionAt(Math.max(0,e.offsetAt(n)-15e3)),end:n},r;Kd(t,e)?r=Ts(e,"js",o):Um(t,e)?r=Ts(e,"html",o):r=e.getText(o);let l=(await t.editor.getConfiguration(e.uri)).tailwindCSS,s=hO(r,l.classAttributes),p=pa(t,e);for(let u of p??[]){if(!(u.type==="js"||u.type==="jsx")||!l.classFunctions?.length||!tc(n,u.range))continue;let H=e.getText(u.range),h=e.offsetAt(u.range.start),y=mO(H,l.classFunctions);y.forEach(b=>{b.index&&(b.index+=h)}),s.push(...y)}if(s.length===0)return null;let c=s[s.length-1],a=c[0][0]===":"||c[1].startsWith("[")&&c[1].endsWith("]")?vS():AS();a.reset(r.substr(c.index+c[0].length-1));try{let u=Array.from(a),d=u[u.length-1];if(d.type.startsWith("start")||d.type==="classlist"||d.type.startsWith("arb")){let H="";for(let h=u.length-1;h>=0&&(u[h].type==="classlist"||u[h].type.startsWith("arb"));h--)H=u[h].value+H;return VS(t,H,{start:{line:n.line,character:n.character-H.length},end:n},l.rootFontSize,void 0,i)}}catch{}return null}async function y6e(t,e,n,i){let o=await t.editor.getConfiguration(e.uri),r=o.tailwindCSS.experimental.classRegex;if(r.length===0)return null;let l=e.offsetAt(n),s=e.getText({start:e.positionAt(0),end:e.positionAt(l+15e3)});for(let p of SS({text:s,cursor:l,filters:r}))return VS(t,p.classList,{start:{line:n.line,character:n.character-p.classList.length},end:n},o.tailwindCSS.rootFontSize,void 0,i);return null}function g6e(t,e,n,i){if(!t.v4||!uo(t,e,n))return null;let o=Ts(e,"css",{start:{line:0,character:0},end:n});if(!o.endsWith("-"))return null;let r=o.lastIndexOf("@theme");if(r===-1||WS(o.slice(r))!==1)return null;let l=[{kind:"variable",name:"--default-transition-duration"},{kind:"variable",name:"--default-transition-timing-function"},{kind:"variable",name:"--default-font-family"},{kind:"variable",name:"--default-font-feature-settings"},{kind:"variable",name:"--default-font-variation-settings"},{kind:"variable",name:"--default-mono-font-family"},{kind:"variable",name:"--default-mono-font-feature-settings"},{kind:"variable",name:"--default-mono-font-variation-settings"},{kind:"namespace",name:"--breakpoint"},{kind:"namespace",name:"--color"},{kind:"namespace",name:"--animate"},{kind:"namespace",name:"--blur"},{kind:"namespace",name:"--radius"},{kind:"namespace",name:"--shadow"},{kind:"namespace",name:"--inset-shadow"},{kind:"namespace",name:"--drop-shadow"},{kind:"namespace",name:"--spacing"},{kind:"namespace",name:"--width"},{kind:"namespace",name:"--font-family"},{kind:"namespace",name:"--font-size"},{kind:"namespace",name:"--letter-spacing"},{kind:"namespace",name:"--line-height"},{kind:"namespace",name:"--transition-timing-function"}];Tn(t.version,"4.0.0-beta.1")&&(l=[{kind:"variable",name:"--default-transition-duration"},{kind:"variable",name:"--default-transition-timing-function"},{kind:"variable",name:"--default-font-family"},{kind:"variable",name:"--default-font-feature-settings"},{kind:"variable",name:"--default-font-variation-settings"},{kind:"variable",name:"--default-mono-font-family"},{kind:"variable",name:"--default-mono-font-feature-settings"},{kind:"variable",name:"--default-mono-font-variation-settings"},{kind:"namespace",name:"--breakpoint"},{kind:"namespace",name:"--color"},{kind:"namespace",name:"--animate"},{kind:"namespace",name:"--blur"},{kind:"namespace",name:"--radius"},{kind:"namespace",name:"--shadow"},{kind:"namespace",name:"--inset-shadow"},{kind:"namespace",name:"--drop-shadow"},{kind:"variable",name:"--spacing"},{kind:"namespace",name:"--container"},{kind:"namespace",name:"--font"},{kind:"namespace",name:"--text"},{kind:"namespace",name:"--tracking"},{kind:"namespace",name:"--leading"},{kind:"namespace",name:"--ease"}]);let s=[];for(let p of l)s.push({label:p.kind==="namespace"?`${p.name}-`:p.name,kind:Ta.CompletionItemKind.Variable});return Ga({isIncomplete:!1,items:s},{data:{...t.completionItemData??{}}},t.editor.capabilities.itemDefaults)}async function b6e(t,e,n,i){let o=(await t.editor.getConfiguration(e.uri)).tailwindCSS,r=e.getText({start:{line:Math.max(n.line-30,0),character:0},end:n}),l=Pne(/@apply\s+(?<classList>[^;}]*)$/gi,r);if(l===null)return null;let s=l.groups.classList;return VS(t,s,{start:{line:n.line,character:n.character-s.length},end:n},o.rootFontSize,p=>{if(p.kind===9)return Tn(t.version,"2.0.0-alpha.1")||$S(t,"applyComplexClasses");let c=p.data?.variants??[],a=p.data?.className??p.label,u=Gd(t,[...c,a]);return u!==null&&u.isApplyable===!0},i)}var _6e=/^(\d+\.?|\d*\.\d+)$/;function Vie(t){return _6e.test(t)}async function E6e(t,e,n,i){return uo(t,e,n)?b6e(t,e,n,i):y_(t,e,n)||Ene(t,e,n)||h_(t,e,n)?m6e(t,e,n,i):null}function A6e(t,e,n){if(!uo(t,e,n))return null;let i=e.getText({start:{line:n.line,character:0},end:{line:n.line,character:n.character+1}}),o=i.substr(0,i.length-1).match(/[\s:;/*(){}](?<helper>config|theme|--theme|var)\(\s*['"]?(?<path>[^)'"]*)$/d);if(o===null)return null;let r,l=o.groups.path.replace(/^['"]+/g,""),s=l.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]*))$/);if(s&&(l=s[1],r=s[2]),r!==void 0)return null;let p={start:{line:n.line,character:n.character},end:n};if(t.v4&&(o.groups.helper==="--theme"||o.groups.helper==="theme"||o.groups.helper==="var")){let _=j6e(t);return p.start.character=o.indices.groups.helper[1]+1,Ga({isIncomplete:!1,items:_},{range:p,data:{...t.completionItemData??{},_type:"helper"}},t.editor.capabilities.itemDefaults)}if(o.groups.helper==="var")return null;let c=o.groups.helper==="config"?t.config:(0,Rl.default)(t.config,"theme",{}),a=l.split(/([\[\].]+)/),u=a.filter((_,m)=>m%2===0),d=a.filter((_,m)=>m%2!==0);function H(_){return _.reduce((m,g)=>m+g.length,0)}let h,y=u[u.length-1].length,b=d.length?d[d.length-1]:null;if(u.length===1)h=c;else for(let _=u.length-1;_>0;_--){let m=(0,Rl.default)(c,u.slice(0,_));if(Ka(m)){h=m,y=H(a.slice(_*2)),b=d[_-1];break}}return h?(p.start.character=n.character-y,Ga({isIncomplete:!1,items:Object.keys(h).sort((_,m)=>{let g=Vie(_),A=Vie(m);return g&&!A?-1:!g&&A?1:g&&A?parseFloat(_)-parseFloat(m):0}).map((_,m,g)=>{let A=yf(h[_]),L=_.indexOf(".")!==-1&&b&&b.endsWith("."),I=i.charAt(i.length-1)!=="]"&&(L||b&&b.endsWith("[")),v=hS(h[_]);return{label:_,sortText:co(m,g.length),commitCharacters:[!_.includes(".")&&".",!_.includes("[")&&"["].filter(Boolean),kind:A?16:Ka(h[_])?9:10,detail:v==="0"||v==="transparent"?`${v} `:v,...A&&typeof A!="string"&&(A.alpha??1)!==0?{documentation:ec(A)}:{},...I?{textEditText:`${_}]`}:{},additionalTextEdits:L?[{newText:"[",range:{start:{...p.start,character:p.start.character-1},end:p.start}}]:[]}})},{range:p,data:{...t.completionItemData??{},_type:"helper"}},t.editor.capabilities.itemDefaults)):null}function Xie(t,e,n){if(!uo(t,e,n)||!Kie("utility",e,n))return null;let i=e.getText({start:{line:0,character:0},end:n}),o=i.lastIndexOf("@utility");if(o===-1)return null;let r=i.indexOf("{",o);if(r===-1)return null;let l=i.slice(o+8,r).trim();return l.length===0?null:l.endsWith("-*")?(l=l.slice(0,-2),l.length===0?null:{root:l,kind:"functional"}):{root:l,kind:"static"}}function v6e(t,e,n){if(!Xie(t,e,n))return null;let o=e.getText({start:{line:n.line,character:0},end:n});return/^[^:]+:[^;]*$/.test(o)?Ga({isIncomplete:!1,items:[{label:"--value()",textEditText:"--value($1)",sortText:"-00000",insertTextFormat:Ta.InsertTextFormat.Snippet,kind:Ta.CompletionItemKind.Function,documentation:{kind:"markdown",value:"Reference a value based on the name of the utility. e.g. the `md` in `text-md`"},command:{command:"editor.action.triggerSuggest",title:""}},{label:"--modifier()",textEditText:"--modifier($1)",sortText:"-00001",insertTextFormat:Ta.InsertTextFormat.Snippet,kind:Ta.CompletionItemKind.Function,documentation:{kind:"markdown",value:"Reference a value based on the utility's modifier. e.g. the `6` in `text-md/6`"}}]},{data:{...t.completionItemData??{}},range:{start:n,end:n}},t.editor.capabilities.itemDefaults):null}async function I6e(t,e,n){let i=Xie(t,e,n);if(!i)return null;let o=e.getText({start:{line:n.line,character:0},end:n}),r=null,l=0,s=o.lastIndexOf("--value("),p=o.lastIndexOf("--modifier("),c=Math.max(s,p);if(c===-1||(c===s?r="--value":c===p&&(r="--modifier"),l=c+r.length+1,Oie(o.slice(c))===0))return null;let a=Array.from(await B6e(t,r)),u=Zd(o.slice(l),",").map(H=>H.trim());if(u.at(-1)!=="")return null;a=a.filter(H=>!u.includes(H.name));let d=a.map((H,h)=>({label:H.name,insertText:H.name,kind:Ta.CompletionItemKind.Constant,sortText:co(h,a.length),documentation:{kind:"markdown",value:H.description.replace(/\{utility\}-/g,`${i.root}-`)}}));return Ga({isIncomplete:!0,items:d},{data:{...t.completionItemData??{}},range:{start:n,end:n}},t.editor.capabilities.itemDefaults)}function S6e(t,e,n){if(!uo(t,e,n))return null;let o=e.getText({start:{line:n.line,character:0},end:n}).match(/^\s*@tailwind\s+(?<partial>[^\s]*)$/i);if(o===null)return null;let r=[Tn(t.version,"1.0.0-beta.1")?{label:"base",documentation:{kind:"markdown",value:`This injects Tailwind\u2019s base styles and any base styles registered by plugins.
1790
+ `)}}async function e6e(t,e,n){if(!uo(t,e,n))return null;let i={start:{line:n.line,character:0},end:{line:n.line+1,character:0}},o=Ts(e,"css",i),l=[/@source(?:\s+not)?\s*(?<glob>'[^']+'|"[^"]+")/dg,/@source(?:\s+not)?\s*inline\((?<glob>'[^']+'|"[^"]+")/dg].flatMap(s=>Ia(s,o));for(let s of l){let p=s.groups.glob.slice(1,-1);if(!p.includes("{")||!p.includes("}"))continue;let c=Js({start:Kn(o,s.indices.groups.glob[0]),end:Kn(o,s.indices.groups.glob[1])},i);if(!tc(n,c))continue;let a=new Set(Die.default.expand(p));if(!(a.size<2))return{range:c,contents:b_(["**Expansion**","```plaintext",...Array.from(a,u=>`- ${u}`),"```"])}}return null}var t6e=/@(?<directive>theme)\s+(?<parts>[^{]+)\s*\{/dg,r6e=/@(?<directive>import)\s*[^;]+?theme\((?<parts>[^)]+)\)/dg;async function n6e(t,e,n){if(!t.v4)return null;let i={start:{line:n.line,character:0},end:{line:n.line+1,character:0}},o=Ts(e,"css",i),r=[...Ia(r6e,o),...Ia(t6e,o)];for(let l of r){let s=l.groups.directive,p=l.groups.parts,c=[],a=l.indices.groups.parts[0];for(let H of Zd(p," ")){let h=H.length;H=H.trim(),H!==""&&c.push({name:H,range:Js({start:Kn(o,a),end:Kn(o,a+H.length)},i)}),a+=h+1}let u=c.find(H=>tc(n,H.range));if(!u)return null;let d=i6e(s,u.name);return d?{range:u.range,contents:d}:null}return null}function i6e(t,e){return{reference:b_([t==="import"?"Don't emit CSS variables for imported theme values.":"Don't emit CSS variables for these theme values."]),inline:b_([t==="import"?"Inline imported theme values into generated utilities instead of using `var(\u2026)`.":"Inline these theme values into generated utilities instead of using `var(\u2026)`."]),static:b_([t==="import"?"Always emit imported theme values into the CSS file instead of only when used.":"Always emit these theme values into the CSS file instead of only when used."]),default:b_([t==="import"?"Allow imported theme values to be overridden by JS configs and plugins.":"Allow these theme values to be overridden by JS configs and plugins."])}[e]}var kie=br(Xm());var s6e=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"];function wie(t){let e=t==0?0:Math.floor(Math.log(t)/Math.log(1e3));return new Intl.NumberFormat("en",{notation:"compact",style:"unit",unit:s6e[e],unitDisplay:"narrow"}).format(t/1e3**e)}function $ie(t){let e=0;e+=1+t.length+3,e+=2;for(let[n,i]of Zd(t,":").entries())e+=(n+1)*2+2+i.length+3,e+=(n+1)*2+2;return e*1.95}async function Nie(t,e){return t.enabled?(await Promise.all([o6e(t,e)])).flat():[]}var a6e=/@source(?:\s+not)?\s*inline\((?<glob>'[^']+'|"[^"]+")/dg;async function o6e(t,e){if(!t.features.includes("source-inline"))return[];let n=e.getText(),i=new Intl.NumberFormat("en",{maximumFractionDigits:2}),o=[];for(let r of Ia(a6e,n)){let l=r.groups.glob.slice(1,-1),s=new Set(kie.default.expand(l));if(s.size<2)continue;let p=Js({start:Kn(n,r.indices.groups.glob[0]),end:Kn(n,r.indices.groups.glob[1])}),c=0;for(let a of s)c+=$ie(a);o.push({range:p,command:{title:`Generates ${i.format(s.size)} classes`,command:""}}),c>=1e6&&(o.push({range:p,command:{title:`At least ${wie(c)} of CSS`,command:""}}),o.push({range:p,command:{title:"This may slow down your bundler/browser",command:""}}))}return o}var Ta=br(Aw()),Rl=br(Mo());function l6e(t){return Ka(t)&&t.raw!==void 0}function Mie(t){if(!t)return;if(typeof t=="string")return`@media (min-width: ${t})`;if(l6e(t))return`@media ${t.raw}`;let e=(Array.isArray(t)?t:[t]).map(n=>[typeof n.min=="string"?`(min-width: ${n.min})`:null,typeof n.max=="string"?`(max-width: ${n.max})`:null].filter(Boolean).join(" and ")).join(", ");return e?`@media ${e}`:void 0}function WS(t){let e=0;for(let n=t.length-1;n>=0;n--){let i=t.charCodeAt(n);e+=+(i===123)-+(i===125)}return e}function Oie(t){let e=0;for(let n=t.length-1;n>=0;n--){let i=t.charCodeAt(n);e+=+(i===40)-+(i===41)}return e}var Km=br(Fie());function Bie(t,e){let n="<",i=">",o="\\",r="?",l={line:0,character:0},s=t.getText({start:{line:l.line,character:l.character},end:{line:e.start.line,character:e.start.character}});if(s.length>500&&(s=s.substr(s.length-500)),!s.trim())return!0;let p=!0,c=!1,a=s.length-1;if(s[a]===n)return!1;for(;a>=0;){let u=s[a];if(a--,!c&&/\s/.test(u)){c=!0;continue}if(u===r&&s[a]===n){a--;continue}if(/\s/.test(u)&&s[a]===n){a--;continue}if(!(u!==n&&u!==i)){if(a>=0&&s[a]===o){a--;continue}if(u===i){if(a>=0&&s[a]==="=")continue;break}if(u===n){p=!c;break}}}return p}function co(t,e){let n=typeof e=="number"?e.toString().length:8;return("0".repeat(n)+t).slice(-n)}function La(t,e){let n=0,i="https://tailwindcss-v0.netlify.app/docs/";Tn(t,"0.99.0")&&(n=1,i="https://v1.tailwindcss.com/docs/"),Tn(t,"1.99.0")&&(n=2,i="https://v2.tailwindcss.com/docs/"),Tn(t,"2.99.0")&&(n=3,i="https://v3.tailwindcss.com/docs/"),Tn(t,"3.99.0")&&(n=4,i="https://tailwindcss.com/docs/");let o=Array.isArray(e)?e[n]||e[e.length-1]:e;return`${i}${o}`}function __(t,e){let n=t.variants.flatMap(s=>s.values.length?s.values.map(p=>p==="DEFAULT"?s.name:`${s.name}${s.hasDash?"-":""}${p}`):[s.name]),i=Zd(e,t.separator);if(i.length<2)return{variants:[],offset:0};i=i.filter(Boolean);function o(s){if(n.includes(s))return!0;let p=`${s}${t.separator}[color:red]`;if(t.v4){if(!t.designSystem)return!1;let c=t.designSystem.candidatesToCss([p]);return c.length!==1?!1:c[0]!==null}return t.jit&&(s.includes("[")&&s.endsWith("]")||s.includes("/"))?ml(t,[p]).rules.length>0:!1}let r=0,l=new Set;for(let s of i){if(!o(s))break;l.add(s),r+=s.length+t.separator.length}return{variants:Array.from(l),offset:r}}var u6e=["js","cjs","mjs","(?<!d.)ts","(?<!d.)mts","(?<!d.)cts"],c6e=["html","pug","gjs","gts","astro","cjs","(?<!d.)cts","jade","js","jsx","mjs","(?<!d.)mts","svelte","(?<!d.)ts","tsx","vue","md","mdx","aspx","razor","handlebars","hbs","mustache","php","twig","erb","haml","liquid","rb","rhtml","slim","eex","heex","njk","nunjucks","py","tpl","rs"],jie=new RegExp(`\\.(${u6e.join("|")})$`),Uie=new RegExp(`\\.(${c6e.join("|")})$`);var p6e=/@(?<directive>config|plugin|source)(?<not>\s+not)?\s*(?<partial>'[^']*|"[^"]*)$/,d6e=/@(?<directive>config)\s*(?<partial>'[^']*|"[^"]*)$/,H6e=/@(?<directive>(?:import|reference))\s*(?<path>'[^']*'|"[^"]*")\s*(layer\([^)]+\)\s*)?source\((?<partial>'[^']*|"[^"]*)$/,f6e=/@(?<directive>tailwind)\s+utilities\s+source\((?<partial>'[^']*|"[^"]*)?$/;async function Wie(t,e){if(t.v4){let l=e.match(p6e)??e.match(H6e)??e.match(f6e);if(!l)return null;let s=l.groups.not!==void 0&&l.groups.not.length>0,p=l.groups.directive,c=l.groups.partial?.slice(1)??"",a="script";if(p==="source")a="source";else if(p==="import"||p==="tailwind"){if(s)return null;a="directory"}return{directive:p,partial:c,suggest:a}}let n=e.match(d6e);if(!n||n.groups.not!==void 0&&n.groups.not.length>0)return null;let o=n.groups.directive,r=n.groups.partial.slice(1);return{directive:o,partial:r,suggest:"script"}}var h6e=t=>Array.isArray(t.__info)?t.__info.some(e=>e.__source==="utilities"):t.__info.__source==="utilities";function VS(t,e,n,i,o,r){let l=e.split(/[\s+]/),s=l[l.length-1],p=t.separator,c=s.split(p),a,u=[],d=!1,H={...n,start:{...n.start,character:n.end.character-s.length}};if(t.v4){let L=function(I){return{kind:9,data:{...t.completionItemData??{},_type:"variant"},command:I.insertTextFormat===2?void 0:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(A++),...I}},h=t.designSystem.theme.prefix??"",{variants:y,offset:b}=__(t,s);if(r&&(r.triggerKind===1||r.triggerKind===2&&r.triggerCharacter==="/")&&s.includes("/")){let I,v=s.split("/").slice(0,-1).join("/"),S=v.slice(b);if(I=t.classList.find(x=>Array.isArray(x)&&x[0]===S)?.[1]?.modifiers??[],I.length>0)return Ga({isIncomplete:!1,items:I.map((x,T)=>{let D=`${v}/${x}`,N=Ta.CompletionItemKind.Constant,R,F=fu(t,D);return F!==null&&(N=Ta.CompletionItemKind.Color,typeof F!="string"&&(F.alpha??1)!==0&&(R=ec(F))),{label:D,...R?{documentation:R}:{},kind:N,sortText:co(T)}})},{range:H,data:t.completionItemData},t.editor.capabilities.itemDefaults)}H.start.character+=b;let _=s.substr(b).endsWith("!");_&&(H.end.character-=1);let m=[],g=new Set,A=0;for(let I of t.variants)if(!y.includes(I.name)&&!g.has(I.name)){if(g.add(I.name),I.isArbitrary)m.push(L({label:`${I.name}${I.hasDash?"-":""}[]${p}`,insertTextFormat:2,textEditText:`${I.name}${I.hasDash?"-":""}[\${1}]${p}\${0}`}));else{let v=[...y,I.name],S=[];try{S=I.selectors()}catch(x){console.log("Error while trying to get selectors for variant"),console.log({variant:I,err:x})}if(S.length===0)continue;m.push(L({label:`${I.name}${p}`,detail:S.map(x=>_2(x)).join(", "),textEditText:v[v.length-1]+p}))}for(let v of I.values??[]){if(y.includes(`${I.name}-${v}`)||g.has(`${I.name}-${v}`))continue;g.add(`${I.name}-${v}`);let S=[];try{S=I.selectors({value:v})}catch(x){console.log("Error while trying to get selectors for variant"),console.log({variant:I,err:x})}S.length!==0&&m.push(L({label:v==="DEFAULT"?`${I.name}${p}`:`${I.name}${I.hasDash?"-":""}${v}${p}`,detail:S.join(", ")}))}}if(h.length>0){if(y.length===0)return m=m.slice(0,1),Ga({isIncomplete:!1,items:m},{data:{...t.completionItemData??{},..._?{important:_}:{},variants:y},range:H},t.editor.capabilities.itemDefaults);if(y[0]!==h)return null}return Ga({isIncomplete:!1,items:m.concat(t.classList.reduce((I,[v,{color:S}],x)=>{if(t.blocklist?.includes([...y,v].join(t.separator)))return I;let T=S?Ta.CompletionItemKind.Color:Ta.CompletionItemKind.Constant,D;return S&&typeof S!="string"&&(D=ec(S)),I.push({label:v,kind:T,...D?{documentation:D}:{},sortText:co(x,t.classList.length)}),I},[]))},{data:{...t.completionItemData??{},..._?{important:_}:{},variants:y},range:H},t.editor.capabilities.itemDefaults)}if(t.jit){let{variants:h,offset:y}=__(t,s);if(r&&(r.triggerKind===1||r.triggerKind===2&&r.triggerCharacter==="/")&&s.includes("/")){let g,A=s.split("/").slice(0,-1).join("/");if(t.classListContainsMetadata){let L=A.slice(y);g=t.classList.find(I=>Array.isArray(I)&&I[0]===L)?.[1]?.modifiers}else{let L=A+"/[0]",{rules:I}=ml(t,[L]);if(I.length>0){let v=(0,Rl.default)(t.config,"theme.opacity",{});Ka(v)||(v={}),g=Object.keys(v)}}if(g)return Ga({isIncomplete:!1,items:g.map((L,I)=>{let v=`${A}/${L}`,S=Ta.CompletionItemKind.Constant,x,T=fu(t,v);return T!==null&&(S=Ta.CompletionItemKind.Color,typeof T!="string"&&(T.alpha??1)!==0&&(x=ec(T))),{label:v,...x?{documentation:x}:{},kind:S,sortText:co(I)}})},{range:H,data:t.completionItemData},t.editor.capabilities.itemDefaults)}H.start.character+=y;let b=s.substr(y).startsWith("!");b&&(H.start.character+=1);let _=[],m=new Set;if(!b){let A=function(L){return{kind:9,data:{...t.completionItemData??{},_type:"variant"},command:L.insertTextFormat===2?void 0:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(g++),...L}},g=0;for(let L of t.variants)if(!h.includes(L.name)&&!m.has(L.name)){if(m.add(L.name),L.isArbitrary)_.push(A({label:`${L.name}${L.hasDash?"-":""}[]${p}`,insertTextFormat:2,textEditText:`${L.name}${L.hasDash?"-":""}[\${1}]${p}\${0}`}));else{let I=!Tn(t.version,"2.99.0"),v=[...h,L.name];if(I){let S=t.variants.map(({name:x})=>x);v=v.sort((x,T)=>S.indexOf(T)-S.indexOf(x))}_.push(A({label:`${L.name}${p}`,detail:L.selectors().map(S=>_2(S)).join(", "),textEditText:v[v.length-1]+p,additionalTextEdits:I&&v.length>1?[{newText:v.slice(0,v.length-1).join(p)+p,range:{start:{...n.start,character:n.end.character-s.length},end:{...H.start,character:H.start.character}}}]:[]}))}for(let I of L.values??[])h.includes(`${L.name}-${I}`)||m.has(`${L.name}-${I}`)||(m.add(`${L.name}-${I}`),_.push(A({label:I==="DEFAULT"?`${L.name}${p}`:`${L.name}${L.hasDash?"-":""}${I}${p}`,detail:L.selectors({value:I}).join(", ")})))}}return t.classList?Ga({isIncomplete:!1,items:_.concat(t.classList.reduce((g,[A,{color:L}],I)=>{if(t.blocklist?.includes([...h,A].join(t.separator)))return g;let v=L?Ta.CompletionItemKind.Color:Ta.CompletionItemKind.Constant,S;return L&&typeof L!="string"&&(S=ec(L)),g.push({label:A,kind:v,...S?{documentation:S}:{},sortText:co(I,t.classList.length)}),g},[]))},{data:{...t.completionItemData??{},...b?{important:b}:{},variants:h},range:H},t.editor.capabilities.itemDefaults):Ga({isIncomplete:!1,items:_.concat(Object.keys(t.classNames.classNames).filter(g=>{let A=t.classNames.classNames[g];return h.length===0?A.__info:A.__info&&h6e(A)}).map((g,A,L)=>{let I=Ta.CompletionItemKind.Constant,v,S=fu(t,g);return S!==null&&(I=Ta.CompletionItemKind.Color,typeof S!="string"&&(S.alpha??1)!==0&&(v=ec(S))),{label:g,kind:I,...v?{documentation:v}:{},sortText:co(A,L.length)}})).filter(g=>!(g===null||o&&!o(g)))},{range:H,data:{...t.completionItemData??{},variants:h,...b?{important:b}:{}}},t.editor.capabilities.itemDefaults)}for(let h=c.length-1;h>0;h--){let y=c.slice(0,h).filter(Boolean);if(a=(0,Rl.default)(t.classNames.classNames,y),typeof a<"u"&&typeof(0,Rl.default)(a,["__info","__rule"])>"u"){d=!0,u=y,H={...H,start:{...H.start,character:H.start.character+y.join(p).length+p.length}};break}}return Ga({isIncomplete:!1,items:Object.keys(d?a:t.classNames.classNames).filter(h=>h!=="__info").filter(h=>O6e(t,[...u,h])).map((h,y,b)=>({label:h+p,kind:9,command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+co(y,b.length),data:{...t.completionItemData??{},className:h,variants:u}})).concat(Object.keys(d?a:t.classNames.classNames).filter(h=>(0,Rl.default)(t.classNames.classNames,[...u,h,"__info"])).map((h,y,b)=>{let _=Ta.CompletionItemKind.Constant,m,g=fu(t,h);return g!==null&&(_=Ta.CompletionItemKind.Color,typeof g!="string"&&(g.alpha??1)!==0&&(m=ec(g))),{label:h,kind:_,...m?{documentation:m}:{},sortText:co(y,b.length)}})).filter(h=>!(h===null||o&&!o(h)))},{range:H,data:{...t.completionItemData??{},variants:u}},t.editor.capabilities.itemDefaults)}async function m6e(t,e,n,i){let o=e.offsetAt(n),r={start:e.positionAt(Math.max(0,o-15e3)),end:n},l;Kd(t,e)?l=Ts(e,"js",r):Um(t,e)?l=Ts(e,"html",r):l=e.getText(r);let s=(await t.editor.getConfiguration(e.uri)).tailwindCSS,p=hO(l,s.classAttributes),c=pa(t,e);for(let d of c??[]){if(!(d.type==="js"||d.type==="jsx")||!s.classFunctions?.length||!tc(n,d.range))continue;let h=e.getText(d.range),y=e.offsetAt(d.range.start),b=mO(h,s.classFunctions);for(let _ of b)_.index&&(_.index+=y),!(_.index>o)&&p.push(_)}if(p.sort((d,H)=>d.index-H.index),p.length===0)return null;let a=p[p.length-1],u=a[0][0]===":"||a[1].startsWith("[")&&a[1].endsWith("]")?vS():AS();u.reset(l.substr(a.index+a[0].length-1));try{let d=Array.from(u),H=d[d.length-1];if(H.type.startsWith("start")||H.type==="classlist"||H.type.startsWith("arb")){let h="";for(let y=d.length-1;y>=0&&(d[y].type==="classlist"||d[y].type.startsWith("arb"));y--)h=d[y].value+h;return VS(t,h,{start:{line:n.line,character:n.character-h.length},end:n},s.rootFontSize,void 0,i)}}catch{}return null}async function y6e(t,e,n,i){let o=await t.editor.getConfiguration(e.uri),r=o.tailwindCSS.experimental.classRegex;if(r.length===0)return null;let l=e.offsetAt(n),s=e.getText({start:e.positionAt(0),end:e.positionAt(l+15e3)});for(let p of SS({text:s,cursor:l,filters:r}))return VS(t,p.classList,{start:{line:n.line,character:n.character-p.classList.length},end:n},o.tailwindCSS.rootFontSize,void 0,i);return null}function g6e(t,e,n,i){if(!t.v4||!uo(t,e,n))return null;let o=Ts(e,"css",{start:{line:0,character:0},end:n});if(!o.endsWith("-"))return null;let r=o.lastIndexOf("@theme");if(r===-1||WS(o.slice(r))!==1)return null;let l=[{kind:"variable",name:"--default-transition-duration"},{kind:"variable",name:"--default-transition-timing-function"},{kind:"variable",name:"--default-font-family"},{kind:"variable",name:"--default-font-feature-settings"},{kind:"variable",name:"--default-font-variation-settings"},{kind:"variable",name:"--default-mono-font-family"},{kind:"variable",name:"--default-mono-font-feature-settings"},{kind:"variable",name:"--default-mono-font-variation-settings"},{kind:"namespace",name:"--breakpoint"},{kind:"namespace",name:"--color"},{kind:"namespace",name:"--animate"},{kind:"namespace",name:"--blur"},{kind:"namespace",name:"--radius"},{kind:"namespace",name:"--shadow"},{kind:"namespace",name:"--inset-shadow"},{kind:"namespace",name:"--drop-shadow"},{kind:"namespace",name:"--spacing"},{kind:"namespace",name:"--width"},{kind:"namespace",name:"--font-family"},{kind:"namespace",name:"--font-size"},{kind:"namespace",name:"--letter-spacing"},{kind:"namespace",name:"--line-height"},{kind:"namespace",name:"--transition-timing-function"}];Tn(t.version,"4.0.0-beta.1")&&(l=[{kind:"variable",name:"--default-transition-duration"},{kind:"variable",name:"--default-transition-timing-function"},{kind:"variable",name:"--default-font-family"},{kind:"variable",name:"--default-font-feature-settings"},{kind:"variable",name:"--default-font-variation-settings"},{kind:"variable",name:"--default-mono-font-family"},{kind:"variable",name:"--default-mono-font-feature-settings"},{kind:"variable",name:"--default-mono-font-variation-settings"},{kind:"namespace",name:"--breakpoint"},{kind:"namespace",name:"--color"},{kind:"namespace",name:"--animate"},{kind:"namespace",name:"--blur"},{kind:"namespace",name:"--radius"},{kind:"namespace",name:"--shadow"},{kind:"namespace",name:"--inset-shadow"},{kind:"namespace",name:"--drop-shadow"},{kind:"variable",name:"--spacing"},{kind:"namespace",name:"--container"},{kind:"namespace",name:"--font"},{kind:"namespace",name:"--text"},{kind:"namespace",name:"--tracking"},{kind:"namespace",name:"--leading"},{kind:"namespace",name:"--ease"}]);let s=[];for(let p of l)s.push({label:p.kind==="namespace"?`${p.name}-`:p.name,kind:Ta.CompletionItemKind.Variable});return Ga({isIncomplete:!1,items:s},{data:{...t.completionItemData??{}}},t.editor.capabilities.itemDefaults)}async function b6e(t,e,n,i){let o=(await t.editor.getConfiguration(e.uri)).tailwindCSS,r=e.getText({start:{line:Math.max(n.line-30,0),character:0},end:n}),l=Pne(/@apply\s+(?<classList>[^;}]*)$/gi,r);if(l===null)return null;let s=l.groups.classList;return VS(t,s,{start:{line:n.line,character:n.character-s.length},end:n},o.rootFontSize,p=>{if(p.kind===9)return Tn(t.version,"2.0.0-alpha.1")||$S(t,"applyComplexClasses");let c=p.data?.variants??[],a=p.data?.className??p.label,u=Gd(t,[...c,a]);return u!==null&&u.isApplyable===!0},i)}var _6e=/^(\d+\.?|\d*\.\d+)$/;function Vie(t){return _6e.test(t)}async function E6e(t,e,n,i){return uo(t,e,n)?b6e(t,e,n,i):y_(t,e,n)||Ene(t,e,n)||h_(t,e,n)?m6e(t,e,n,i):null}function A6e(t,e,n){if(!uo(t,e,n))return null;let i=e.getText({start:{line:n.line,character:0},end:{line:n.line,character:n.character+1}}),o=i.substr(0,i.length-1).match(/[\s:;/*(){}](?<helper>config|theme|--theme|var)\(\s*['"]?(?<path>[^)'"]*)$/d);if(o===null)return null;let r,l=o.groups.path.replace(/^['"]+/g,""),s=l.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]*))$/);if(s&&(l=s[1],r=s[2]),r!==void 0)return null;let p={start:{line:n.line,character:n.character},end:n};if(t.v4&&(o.groups.helper==="--theme"||o.groups.helper==="theme"||o.groups.helper==="var")){let _=j6e(t);return p.start.character=o.indices.groups.helper[1]+1,Ga({isIncomplete:!1,items:_},{range:p,data:{...t.completionItemData??{},_type:"helper"}},t.editor.capabilities.itemDefaults)}if(o.groups.helper==="var")return null;let c=o.groups.helper==="config"?t.config:(0,Rl.default)(t.config,"theme",{}),a=l.split(/([\[\].]+)/),u=a.filter((_,m)=>m%2===0),d=a.filter((_,m)=>m%2!==0);function H(_){return _.reduce((m,g)=>m+g.length,0)}let h,y=u[u.length-1].length,b=d.length?d[d.length-1]:null;if(u.length===1)h=c;else for(let _=u.length-1;_>0;_--){let m=(0,Rl.default)(c,u.slice(0,_));if(Ka(m)){h=m,y=H(a.slice(_*2)),b=d[_-1];break}}return h?(p.start.character=n.character-y,Ga({isIncomplete:!1,items:Object.keys(h).sort((_,m)=>{let g=Vie(_),A=Vie(m);return g&&!A?-1:!g&&A?1:g&&A?parseFloat(_)-parseFloat(m):0}).map((_,m,g)=>{let A=yf(h[_]),L=_.indexOf(".")!==-1&&b&&b.endsWith("."),I=i.charAt(i.length-1)!=="]"&&(L||b&&b.endsWith("[")),v=hS(h[_]);return{label:_,sortText:co(m,g.length),commitCharacters:[!_.includes(".")&&".",!_.includes("[")&&"["].filter(Boolean),kind:A?16:Ka(h[_])?9:10,detail:v==="0"||v==="transparent"?`${v} `:v,...A&&typeof A!="string"&&(A.alpha??1)!==0?{documentation:ec(A)}:{},...I?{textEditText:`${_}]`}:{},additionalTextEdits:L?[{newText:"[",range:{start:{...p.start,character:p.start.character-1},end:p.start}}]:[]}})},{range:p,data:{...t.completionItemData??{},_type:"helper"}},t.editor.capabilities.itemDefaults)):null}function Xie(t,e,n){if(!uo(t,e,n)||!Kie("utility",e,n))return null;let i=e.getText({start:{line:0,character:0},end:n}),o=i.lastIndexOf("@utility");if(o===-1)return null;let r=i.indexOf("{",o);if(r===-1)return null;let l=i.slice(o+8,r).trim();return l.length===0?null:l.endsWith("-*")?(l=l.slice(0,-2),l.length===0?null:{root:l,kind:"functional"}):{root:l,kind:"static"}}function v6e(t,e,n){if(!Xie(t,e,n))return null;let o=e.getText({start:{line:n.line,character:0},end:n});return/^[^:]+:[^;]*$/.test(o)?Ga({isIncomplete:!1,items:[{label:"--value()",textEditText:"--value($1)",sortText:"-00000",insertTextFormat:Ta.InsertTextFormat.Snippet,kind:Ta.CompletionItemKind.Function,documentation:{kind:"markdown",value:"Reference a value based on the name of the utility. e.g. the `md` in `text-md`"},command:{command:"editor.action.triggerSuggest",title:""}},{label:"--modifier()",textEditText:"--modifier($1)",sortText:"-00001",insertTextFormat:Ta.InsertTextFormat.Snippet,kind:Ta.CompletionItemKind.Function,documentation:{kind:"markdown",value:"Reference a value based on the utility's modifier. e.g. the `6` in `text-md/6`"}}]},{data:{...t.completionItemData??{}},range:{start:n,end:n}},t.editor.capabilities.itemDefaults):null}async function I6e(t,e,n){let i=Xie(t,e,n);if(!i)return null;let o=e.getText({start:{line:n.line,character:0},end:n}),r=null,l=0,s=o.lastIndexOf("--value("),p=o.lastIndexOf("--modifier("),c=Math.max(s,p);if(c===-1||(c===s?r="--value":c===p&&(r="--modifier"),l=c+r.length+1,Oie(o.slice(c))===0))return null;let a=Array.from(await B6e(t,r)),u=Zd(o.slice(l),",").map(H=>H.trim());if(u.at(-1)!=="")return null;a=a.filter(H=>!u.includes(H.name));let d=a.map((H,h)=>({label:H.name,insertText:H.name,kind:Ta.CompletionItemKind.Constant,sortText:co(h,a.length),documentation:{kind:"markdown",value:H.description.replace(/\{utility\}-/g,`${i.root}-`)}}));return Ga({isIncomplete:!0,items:d},{data:{...t.completionItemData??{}},range:{start:n,end:n}},t.editor.capabilities.itemDefaults)}function S6e(t,e,n){if(!uo(t,e,n))return null;let o=e.getText({start:{line:n.line,character:0},end:n}).match(/^\s*@tailwind\s+(?<partial>[^\s]*)$/i);if(o===null)return null;let r=[Tn(t.version,"1.0.0-beta.1")?{label:"base",documentation:{kind:"markdown",value:`This injects Tailwind\u2019s base styles and any base styles registered by plugins.
1791
1791
 
1792
1792
  [Tailwind CSS Documentation](${La(t.version,"functions-and-directives/#tailwind")})`}}:{label:"preflight",documentation:{kind:"markdown",value:`This injects Tailwind\u2019s base styles, which is a combination of Normalize.css and some additional base styles.
1793
1793
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/language-server",
3
- "version": "0.14.10",
3
+ "version": "0.14.11",
4
4
  "description": "Tailwind CSS Language Server",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -85,7 +85,7 @@
85
85
  "vscode-languageserver-protocol": "^3.17.5",
86
86
  "vscode-languageserver-textdocument": "1.0.11",
87
87
  "vscode-uri": "3.0.2",
88
- "@tailwindcss/language-service": "0.14.10"
88
+ "@tailwindcss/language-service": "0.14.11"
89
89
  },
90
90
  "engines": {
91
91
  "node": ">=18.0.0"