@tailwindcss/language-server 0.0.0-insiders.437bf3a → 0.0.0-insiders.4a3c9f7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1224,7 +1224,7 @@ video {
1224
1224
  [hidden] {
1225
1225
  display: none;
1226
1226
  }
1227
- `;var Kn=Kt(Wh()),Kl=Kt(Xh()),ih=Kt(Jp()),No=Kt(require("path")),Gl=Kt(Zh());var eS=Kt(cj());var ed="{tailwind,tailwind.config,tailwind.*.config,tailwind.config.*}.{js,cjs,ts,mjs}",td="{package-lock.json,yarn.lock,pnpm-lock.yaml}",pu="*.{css,scss,sass,less,pcss}";var TP=Kt(require("node:module")),PP=Kt(require("node:path")),pj=Kt(Xh()),dj=Kt(Jp()),$P=require("node:url");function fj(e){let t={log:console.log,warn:console.warn,error:console.error};for(let r in t)console[r]=()=>{};try{return e()}finally{for(let r in t)console[r]=t[r]}}function Ag(...e){for(let t=0;t<e.length;t++){let r=e[t];if(t===e.length-1)return r();try{return r()}catch{}}}function DP(...e){for(let t=0;t<e.length;t++){let r=e[t];try{return r()}catch{}}}function zh(){Object.keys(require.cache).forEach(e=>{e.endsWith(".node")||delete require.cache[e]}),Object.keys(TP.default._pathCache).forEach(e=>{delete TP.default._pathCache[e]})}function rd(e,t){try{return e()}catch{return t}}function xH(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tye(e,t){let r=PP.default.relative(e,t);return!!r&&!r.startsWith("..")&&!PP.default.isAbsolute(r)}var Pye=/^([a-zA-Z]):/;function Us(e){return e.replace(Pye,(t,r)=>r.toUpperCase()+":")}function nd(e,t){for(let r of t)if(e===r||Tye(e,r))return!0;return!1}function Zi(e){let t=(0,dj.default)(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}function id(e){try{return(0,$P.pathToFileURL)(e)}catch(t){if(process.platform!=="win32")throw t;return e=pj.URI.file(e).fsPath,(0,$P.pathToFileURL)(e)}}var _j=Kt(Wh());var bg=class e{constructor(t,r,n,s){this._uri=t,this._languageId=r,this._version=n,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let s=mj(n.range),i=this.offsetAt(s.start),o=this.offsetAt(s.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(o,this._content.length);let a=Math.max(s.start.line,0),u=Math.max(s.end.line,0),c=this._lineOffsets,H=hj(n.text,!1,i);if(u-a===H.length)for(let d=0,f=H.length;d<f;d++)c[d+a+1]=H[d];else H.length<1e4?c.splice(a+1,u-a,...H):this._lineOffsets=c=c.slice(0,a+1).concat(H,c.slice(u+1));let l=n.text.length-(o-i);if(l!==0)for(let d=a+1+H.length,f=c.length;d<f;d++)c[d]=c[d]+l}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=hj(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,s=r.length;if(s===0)return{line:0,character:t};for(;n<s;){let o=Math.floor((n+s)/2);r[o]>t?s=o:n=o+1}let i=n-1;return{line:i,character:t-r[i]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],s=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,s),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Sg;(function(e){function t(s,i,o,a){return new bg(s,i,o,a)}e.create=t;function r(s,i,o){if(s instanceof bg)return s.update(i,o),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(s,i){let o=s.getText(),a=xP(i.map($ye),(H,l)=>{let d=H.range.start.line-l.range.start.line;return d===0?H.range.start.character-l.range.start.character:d}),u=0,c=[];for(let H of a){let l=s.offsetAt(H.range.start);if(l<u)throw new Error("Overlapping edit");l>u&&c.push(o.substring(u,l)),H.newText.length&&c.push(H.newText),u=s.offsetAt(H.range.end)}return c.push(o.substr(u)),c.join("")}e.applyEdits=n})(Sg||(Sg={}));function xP(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),s=e.slice(r);xP(n,t),xP(s,t);let i=0,o=0,a=0;for(;i<n.length&&o<s.length;)t(n[i],s[o])<=0?e[a++]=n[i++]:e[a++]=s[o++];for(;i<n.length;)e[a++]=n[i++];for(;o<s.length;)e[a++]=s[o++];return e}function hj(e,t,r=0){let n=t?[r]:[];for(let s=0;s<e.length;s++){let i=e.charCodeAt(s);(i===13||i===10)&&(i===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,n.push(r+s+1))}return n}function mj(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function $ye(e){let t=mj(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var vg=class{constructor(t){this.documents=new _j.TextDocuments(Sg),this.documents.listen(t)}getDocument(t){return this.documents.get(t)}getAllDocuments(){return this.documents.all()}get onDidChangeContent(){return this.documents.onDidChangeContent}get onDidClose(){return this.documents.onDidClose}get onDidOpen(){return this.documents.onDidOpen}};var $b=Kt(Wh()),D9=Kt(Xh());function Dye(e,t=!0){if(e instanceof Error){let r=e;return`${r.message}${t?`
1227
+ `;var Kn=Kt(Wh()),Kl=Kt(Xh()),ih=Kt(Jp()),No=Kt(require("path")),Gl=Kt(Zh());var eS=Kt(cj());var ed="{tailwind,tailwind.config,tailwind.*.config,tailwind.config.*}.{js,cjs,ts,mjs,mts,cts}",td="{package-lock.json,yarn.lock,pnpm-lock.yaml}",pu="*.{css,scss,sass,less,pcss}";var TP=Kt(require("node:module")),PP=Kt(require("node:path")),pj=Kt(Xh()),dj=Kt(Jp()),$P=require("node:url");function fj(e){let t={log:console.log,warn:console.warn,error:console.error};for(let r in t)console[r]=()=>{};try{return e()}finally{for(let r in t)console[r]=t[r]}}function Ag(...e){for(let t=0;t<e.length;t++){let r=e[t];if(t===e.length-1)return r();try{return r()}catch{}}}function DP(...e){for(let t=0;t<e.length;t++){let r=e[t];try{return r()}catch{}}}function zh(){Object.keys(require.cache).forEach(e=>{e.endsWith(".node")||delete require.cache[e]}),Object.keys(TP.default._pathCache).forEach(e=>{delete TP.default._pathCache[e]})}function rd(e,t){try{return e()}catch{return t}}function xH(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tye(e,t){let r=PP.default.relative(e,t);return!!r&&!r.startsWith("..")&&!PP.default.isAbsolute(r)}var Pye=/^([a-zA-Z]):/;function Us(e){return e.replace(Pye,(t,r)=>r.toUpperCase()+":")}function nd(e,t){for(let r of t)if(e===r||Tye(e,r))return!0;return!1}function Zi(e){let t=(0,dj.default)(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}function id(e){try{return(0,$P.pathToFileURL)(e)}catch(t){if(process.platform!=="win32")throw t;return e=pj.URI.file(e).fsPath,(0,$P.pathToFileURL)(e)}}var _j=Kt(Wh());var bg=class e{constructor(t,r,n,s){this._uri=t,this._languageId=r,this._version=n,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let s=mj(n.range),i=this.offsetAt(s.start),o=this.offsetAt(s.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(o,this._content.length);let a=Math.max(s.start.line,0),u=Math.max(s.end.line,0),c=this._lineOffsets,H=hj(n.text,!1,i);if(u-a===H.length)for(let d=0,f=H.length;d<f;d++)c[d+a+1]=H[d];else H.length<1e4?c.splice(a+1,u-a,...H):this._lineOffsets=c=c.slice(0,a+1).concat(H,c.slice(u+1));let l=n.text.length-(o-i);if(l!==0)for(let d=a+1+H.length,f=c.length;d<f;d++)c[d]=c[d]+l}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=hj(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,s=r.length;if(s===0)return{line:0,character:t};for(;n<s;){let o=Math.floor((n+s)/2);r[o]>t?s=o:n=o+1}let i=n-1;return{line:i,character:t-r[i]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],s=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,s),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Sg;(function(e){function t(s,i,o,a){return new bg(s,i,o,a)}e.create=t;function r(s,i,o){if(s instanceof bg)return s.update(i,o),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(s,i){let o=s.getText(),a=xP(i.map($ye),(H,l)=>{let d=H.range.start.line-l.range.start.line;return d===0?H.range.start.character-l.range.start.character:d}),u=0,c=[];for(let H of a){let l=s.offsetAt(H.range.start);if(l<u)throw new Error("Overlapping edit");l>u&&c.push(o.substring(u,l)),H.newText.length&&c.push(H.newText),u=s.offsetAt(H.range.end)}return c.push(o.substr(u)),c.join("")}e.applyEdits=n})(Sg||(Sg={}));function xP(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),s=e.slice(r);xP(n,t),xP(s,t);let i=0,o=0,a=0;for(;i<n.length&&o<s.length;)t(n[i],s[o])<=0?e[a++]=n[i++]:e[a++]=s[o++];for(;i<n.length;)e[a++]=n[i++];for(;o<s.length;)e[a++]=s[o++];return e}function hj(e,t,r=0){let n=t?[r]:[];for(let s=0;s<e.length;s++){let i=e.charCodeAt(s);(i===13||i===10)&&(i===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,n.push(r+s+1))}return n}function mj(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function $ye(e){let t=mj(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var vg=class{constructor(t){this.documents=new _j.TextDocuments(Sg),this.documents.listen(t)}getDocument(t){return this.documents.get(t)}getAllDocuments(){return this.documents.all()}get onDidChangeContent(){return this.documents.onDidChangeContent}get onDidClose(){return this.documents.onDidClose}get onDidOpen(){return this.documents.onDidOpen}};var $b=Kt(Wh()),D9=Kt(Xh());function Dye(e,t=!0){if(e instanceof Error){let r=e;return`${r.message}${t?`
1228
1228
  ${r.stack}`:""}`}else return typeof e=="string"?e:e.toString()}function xye(e,t,r=!0){return t?`${e}: ${Dye(t,r)}`:e}function CP(e,t,r="Tailwind CSS"){console.error(xye(r,t))}function Tg(e){this.name="SilentError",this.message=e,this.stack=new Error().stack}Tg.prototype=new Error;var jn=Kt(require("path")),gp=Kt(require("fs")),ac=Kt(RP()),hue=Kt(Zh());var Ll=Kt(require("module"));var tL={"@tailwindcss/aspect-ratio":{module:jj(),version:Wj().version},"@tailwindcss/container-queries":{module:Xj(),version:qj().version},"@tailwindcss/forms":{module:HW(),version:lW().version},"@tailwindcss/line-clamp":{module:r$(),version:cW().version},"@tailwindcss/typography":{module:oV(),version:HV().version}};var UD={...tL,"tailwindcss/colors":kg(),"tailwindcss/defaultConfig":cV(),"tailwindcss/defaultTheme":ZP(),"tailwindcss/resolveConfig":BD(),"tailwindcss/plugin":Cc()},Ed=class{constructor(t,r=n=>n){this.cache={};this.deps=[];this._unhooked=!1;this._origRequire=Ll.default.prototype.require;if(typeof Ll.default._resolveFilename!="function")throw new Error(`Error: Expected Module._resolveFilename to be a function (was: ${typeof Ll.default._resolveFilename}) - aborting!`);let n=this,s={};this._require=Ll.default.prototype.require=function(i){if(n._unhooked)return n._origRequire.apply(this,arguments);let o;if(UD.hasOwnProperty(i))try{o=Ll.default._resolveFilename(i,this)}catch{return UD[i].module||UD[i]}else o=Ll.default._resolveFilename(i,this);if(n.cache.hasOwnProperty(o))return n.cache[o];let a=s[o];a||(s[o]=!0);let u=n._origRequire.apply(this,arguments);return o!==t||a?u:(delete s[o],n.cache.hasOwnProperty(o)||(n.cache[o]=u,n.cache[o]=r(u)),n.cache[o])}}unhook(){this._unhooked=!0,this._require===Ll.default.prototype.require&&(Ll.default.prototype.require=this._origRequire)}};var EX=Kt(hX()),yX=Kt(_X());function Dr(e,t){return e.startsWith("0.0.0-insiders")?!0:(0,EX.default)(e,t)}function Fc(e,t){return e.startsWith("0.0.0-insiders")?!1:(0,yX.default)(e,t)}var EH=Kt(js());function Fa(e,t,r){t.split&&(t=t.split("."));for(var n=0,s=t.length,i=e,o,a;n<s&&(a=t[n++],!(a==="__proto__"||a==="constructor"||a==="prototype"));)i=i[a]=n===s?r:typeof(o=i[a])==typeof t?o:t[n]*0!==0||~(""+t[n]).indexOf(".")?{}:[]}var mue=Kt(NX()),_ue=Kt(OX());var Px=Kt(AL());var Vq=Kt(js());function Cxe(e){return e.type==="atrule"}function wxe(e){if(e.length===0)return null;let t=Px.default.selector({value:""});for(let r=0;r<e.length;r++)t.append(e[r]);return String(t).trim()}function kxe(e){let t=[],{nodes:r}=(0,Px.default)().astSync(e);for(let n=0;n<r.length;n++){let s=r[n];if(s.type!=="selector")continue;let i=[];for(let o=0;o<s.nodes.length;o++){let a=s.nodes[o],u=[];if(a.type==="class"){let c=s.nodes[o+1];for(;c&&c.type==="pseudo";)u.push(c),o++,c=s.nodes[o+1];t.push({className:a.value.trim(),scope:wxe(i),__rule:o===s.nodes.length-1,__pseudo:u.map(String)})}i.push(a,...u)}}return t}async function Mxe(e){let t={},r={},n;return e.walk(s=>{if(s.type==="comment"){let H=s.text.trim().match(/^__tw_intellisense_layer_([a-z]+)__$/);if(H===null)return;n=H[1],s.remove();return}if(s.type!=="rule")return;let i=s,o=kxe(i.selector),a={};i.walkDecls(H=>{a[H.prop]?a[H.prop]=[...Array.isArray(a[H.prop])?a[H.prop]:[a[H.prop]],H.value]:a[H.prop]=H.value});let u=i,c=[];for(;u.parent.type!=="root";)u=u.parent,Cxe(u)&&c.push(`@${u.name} ${u.params}`);for(let H=0;H<o.length;H++){let l=c.concat([]),d=o[H].className.split(/__TWSEP__.*?__TWSEP__/),f=d.slice(0,d.length-1),h=[],m=(0,Vq.default)(t,[...d,"__info"]);typeof m<"u"&&(Array.isArray(m)?h.push(m.length):(Fa(t,[...d,"__info"],[m]),h.push(1))),o[H].__rule&&(Fa(t,[...d,"__info",...h,"__rule"],!0),Oxe(t,[...d,"__info",...h],a)),Fa(t,[...d,"__info",...h,"__source"],n),Fa(t,[...d,"__info",...h,"__pseudo"],o[H].__pseudo),Fa(t,[...d,"__info",...h,"__scope"],o[H].scope),Fa(t,[...d,"__info",...h,"__context"],l.concat([]).reverse()),l.push(...o[H].__pseudo.map(A=>`&${A}`));for(let A=0;A<f.length;A++)typeof r[f[A]]>"u"?r[f[A]]=l:r[f[A]]=Nxe(r[f[A]],l)}}),{classNames:t,context:r}}function Nxe(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function Oxe(e,t,r){let n=Object.keys(r);for(let s=0;s<n.length;s++)Fa(e,[...t,n[s]],r[n[s]])}var Xq=Mxe;function qq(e,t,r){typeof r.value=="object"&&(r.value=gu(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||t==="__proto__"?Object.defineProperty(e,t,r):e[t]=r.value}function gu(e){if(typeof e!="object")return e;var t=0,r,n,s,i=Object.prototype.toString.call(e);if(i==="[object Object]"?s=Object.create(e.__proto__||null):i==="[object Array]"?s=Array(e.length):i==="[object Set]"?(s=new Set,e.forEach(function(o){s.add(gu(o))})):i==="[object Map]"?(s=new Map,e.forEach(function(o,a){s.set(gu(a),gu(o))})):i==="[object Date]"?s=new Date(+e):i==="[object RegExp]"?s=new RegExp(e.source,e.flags):i==="[object DataView]"?s=new e.constructor(gu(e.buffer)):i==="[object ArrayBuffer]"?s=e.slice(0):i.slice(-6)==="Array]"&&(s=new e.constructor(e)),s){for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)qq(s,n[t],Object.getOwnPropertyDescriptor(e,n[t]));for(t=0,n=Object.getOwnPropertyNames(e);t<n.length;t++)Object.hasOwnProperty.call(s,r=n[t])&&s[r]===e[r]||qq(s,r,Object.getOwnPropertyDescriptor(e,r))}return s||e}function is(e){return Object.prototype.toString.call(e)==="[object Object]"}function mo(e){let t={};for(let r in e)r.substr(0,2)!=="__"&&(is(e[r])?t[r]=mo(e[r]):t[r]=e[r]);return t}var sJ=Kt(js()),aJ=Kt(Gq());var oJ=Kt(tK());var h_=Kt(PL());var ga=class extends Error{sourceStart;sourceEnd;parserState;constructor(t,r,n,s){super(t),this.name="ParseError",this.sourceStart=r,this.sourceEnd=n,this.parserState=s}},jx=class{cursor;source="";codePointSource=[];length=0;representationStart=0;representationEnd=-1;constructor(t){this.cursor=0,this.source=t,this.length=t.length,this.codePointSource=new Array(this.length);for(let r=0;r<this.length;r++)this.codePointSource[r]=this.source.charCodeAt(r)}advanceCodePoint(t=1){this.cursor+=t,this.representationEnd=this.cursor-1}readCodePoint(t=1){let r=this.codePointSource[this.cursor];return r!==void 0&&(this.cursor+=t,this.representationEnd=this.cursor-1,r)}unreadCodePoint(t=1){this.cursor-=t,this.representationEnd=this.cursor-1}},Pt,n_,$L;function _K(e){switch(e){case Pt.OpenParen:return Pt.CloseParen;case Pt.CloseParen:return Pt.OpenParen;case Pt.OpenCurly:return Pt.CloseCurly;case Pt.CloseCurly:return Pt.OpenCurly;case Pt.OpenSquare:return Pt.CloseSquare;case Pt.CloseSquare:return Pt.OpenSquare;default:return null}}function EK(e){switch(e[0]){case Pt.OpenParen:return[Pt.CloseParen,")",-1,-1,void 0];case Pt.CloseParen:return[Pt.OpenParen,"(",-1,-1,void 0];case Pt.OpenCurly:return[Pt.CloseCurly,"}",-1,-1,void 0];case Pt.CloseCurly:return[Pt.OpenCurly,"{",-1,-1,void 0];case Pt.OpenSquare:return[Pt.CloseSquare,"]",-1,-1,void 0];case Pt.CloseSquare:return[Pt.OpenSquare,"[",-1,-1,void 0];default:return null}}(function(e){e.Comment="comment",e.AtKeyword="at-keyword-token",e.BadString="bad-string-token",e.BadURL="bad-url-token",e.CDC="CDC-token",e.CDO="CDO-token",e.Colon="colon-token",e.Comma="comma-token",e.Delim="delim-token",e.Dimension="dimension-token",e.EOF="EOF-token",e.Function="function-token",e.Hash="hash-token",e.Ident="ident-token",e.Number="number-token",e.Percentage="percentage-token",e.Semicolon="semicolon-token",e.String="string-token",e.URL="url-token",e.Whitespace="whitespace-token",e.OpenParen="(-token",e.CloseParen=")-token",e.OpenSquare="[-token",e.CloseSquare="]-token",e.OpenCurly="{-token",e.CloseCurly="}-token"})(Pt||(Pt={})),function(e){e.Integer="integer",e.Number="number"}(n_||(n_={})),function(e){e.Unrestricted="unrestricted",e.ID="id"}($L||($L={}));var Zxe=Object.values(Pt);function Vx(e){return!!Array.isArray(e)&&!(e.length<4)&&!!Zxe.includes(e[0])&&typeof e[1]=="string"&&typeof e[2]=="number"&&typeof e[3]=="number"}function sn(...e){let t="";for(let r=0;r<e.length;r++)t+=e[r][1];return t}var Xx=39,yK=42,zxe=8,Jxe=13,Yxe=9,Qxe=58,eCe=44,tCe=64,rCe=127,nCe=33,iCe=12,DL=46,sCe=62,eH=45,aCe=31,oCe=69,HCe=101,lCe=123,qx=40,uCe=91,gK=60,cCe=10,pCe=11,dCe=95,fCe=1114111,hCe=0,mCe=35,_Ce=37,xL=43,Kx=34,Rx=65533,s_=92,ECe=125,CL=41,yCe=93,gCe=59,LCe=14,LK=47,ICe=32;function ACe(e,t){return t.codePointSource[t.cursor]===gK&&t.codePointSource[t.cursor+1]===nCe&&t.codePointSource[t.cursor+2]===eH&&t.codePointSource[t.cursor+3]===eH}function Ba(e){return e>=48&&e<=57}function bCe(e){return e>=65&&e<=90}function SCe(e){return e>=97&&e<=122}function hK(e){return Ba(e)||e>=97&&e<=102||e>=65&&e<=70}function vCe(e){return SCe(e)||bCe(e)}function TCe(e){return e>=128}function wL(e){return vCe(e)||TCe(e)||e===dCe}function IK(e){return wL(e)||Ba(e)||e===eH}function kL(e){return e===10||e===13||e===12}function i_(e){return e===32||e===10||e===9||e===13||e===12}function bd(e,t){return t.codePointSource[t.cursor]===s_&&!kL(t.codePointSource[t.cursor+1])}function ML(e,t){return t.codePointSource[t.cursor]===eH?t.codePointSource[t.cursor+1]===eH||!!wL(t.codePointSource[t.cursor+1])||t.codePointSource[t.cursor+1]===s_&&!kL(t.codePointSource[t.cursor+2]):!!wL(t.codePointSource[t.cursor])||bd(0,t)}function mK(e,t){return t.codePointSource[t.cursor]===xL||t.codePointSource[t.cursor]===eH?!!Ba(t.codePointSource[t.cursor+1])||t.codePointSource[t.cursor+1]===DL&&Ba(t.codePointSource[t.cursor+2]):t.codePointSource[t.cursor]===DL?Ba(t.codePointSource[t.cursor+1]):Ba(t.codePointSource[t.cursor])}function PCe(e,t){return t.codePointSource[t.cursor]===LK&&t.codePointSource[t.cursor+1]===yK}function $Ce(e,t){return t.codePointSource[t.cursor]===eH&&t.codePointSource[t.cursor+1]===eH&&t.codePointSource[t.cursor+2]===sCe}function DCe(e,t){for(t.advanceCodePoint(2);;){let r=t.readCodePoint();if(r===!1){e.onParseError(new ga("Unexpected EOF while consuming a comment.",t.representationStart,t.representationEnd,["4.3.2. Consume comments","Unexpected EOF"]));break}if(r===yK&&t.codePointSource[t.cursor]!==void 0&&t.codePointSource[t.cursor]===LK){t.advanceCodePoint();break}}return[Pt.Comment,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]}function NL(e,t){let r=t.readCodePoint();if(r===!1)return e.onParseError(new ga("Unexpected EOF while consuming an escaped code point.",t.representationStart,t.representationEnd,["4.3.7. Consume an escaped code point","Unexpected EOF"])),Rx;if(hK(r)){let s=[r];for(;t.codePointSource[t.cursor]!==void 0&&hK(t.codePointSource[t.cursor])&&s.length<6;)s.push(t.codePointSource[t.cursor]),t.advanceCodePoint();i_(t.codePointSource[t.cursor])&&t.advanceCodePoint();let i=parseInt(String.fromCharCode(...s),16);return i===0||(n=i)>=55296&&n<=57343||i>fCe?Rx:i}var n;return r}function OL(e,t){let r=[];for(;;)if(IK(t.codePointSource[t.cursor]))r.push(t.codePointSource[t.cursor]),t.advanceCodePoint();else{if(!bd(0,t))return r;t.advanceCodePoint(),r.push(NL(e,t))}}function xCe(e,t){if(t.advanceCodePoint(),t.codePointSource[t.cursor]!==void 0&&(IK(t.codePointSource[t.cursor])||bd(0,t))){let r=$L.Unrestricted;ML(0,t)&&(r=$L.ID);let n=OL(e,t);return[Pt.Hash,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCharCode(...n),type:r}]}return[Pt.Delim,"#",t.representationStart,t.representationEnd,{value:"#"}]}function CCe(e,t){let r=n_.Integer;for(t.codePointSource[t.cursor]!==xL&&t.codePointSource[t.cursor]!==eH||t.advanceCodePoint();Ba(t.codePointSource[t.cursor]);)t.advanceCodePoint();if(t.codePointSource[t.cursor]===DL&&Ba(t.codePointSource[t.cursor+1]))for(t.advanceCodePoint(2),r=n_.Number;Ba(t.codePointSource[t.cursor]);)t.advanceCodePoint();if(t.codePointSource[t.cursor]===HCe||t.codePointSource[t.cursor]===oCe){if(Ba(t.codePointSource[t.cursor+1]))t.advanceCodePoint(2);else{if(t.codePointSource[t.cursor+1]!==eH&&t.codePointSource[t.cursor+1]!==xL||!Ba(t.codePointSource[t.cursor+2]))return r;t.advanceCodePoint(3)}for(r=n_.Number;Ba(t.codePointSource[t.cursor]);)t.advanceCodePoint()}return r}function Fx(e,t){let r=CCe(0,t),n=parseFloat(t.source.slice(t.representationStart,t.representationEnd+1));if(ML(0,t)){let s=OL(e,t);return[Pt.Dimension,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n,type:r,unit:String.fromCharCode(...s)}]}return t.codePointSource[t.cursor]===_Ce?(t.advanceCodePoint(),[Pt.Percentage,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}]):[Pt.Number,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n,type:r}]}function Wx(e,t){for(;i_(t.codePointSource[t.cursor]);)t.advanceCodePoint();return[Pt.Whitespace,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]}function wCe(e,t){let r="",n=t.readCodePoint();for(;;){let s=t.readCodePoint();if(s===!1)return e.onParseError(new ga("Unexpected EOF while consuming a string token.",t.representationStart,t.representationEnd,["4.3.5. Consume a string token","Unexpected EOF"])),[Pt.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(kL(s))return e.onParseError(new ga("Unexpected newline while consuming a string token.",t.representationStart,t.representationEnd,["4.3.5. Consume a string token","Unexpected newline"])),t.unreadCodePoint(),[Pt.BadString,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];if(s===n)return[Pt.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(s!==s_)r+=String.fromCharCode(s);else{if(t.codePointSource[t.cursor]===void 0)continue;if(kL(t.codePointSource[t.cursor])){t.advanceCodePoint();continue}r+=String.fromCharCode(NL(e,t))}}}var kCe=117,MCe=85,NCe=114,OCe=82,RCe=108,FCe=76;function BCe(e,t){return t.length===3&&(t[0]===kCe||t[0]===MCe)&&(t[1]===NCe||t[1]===OCe)&&(t[2]===RCe||t[2]===FCe)}function Bx(e,t){for(;;){if(t.codePointSource[t.cursor]===void 0)return;if(t.codePointSource[t.cursor]===CL)return void t.advanceCodePoint();bd(0,t)?(t.advanceCodePoint(),NL(e,t)):t.advanceCodePoint()}}function UCe(e,t){Wx(0,t);let r="";for(;;){if(t.codePointSource[t.cursor]===void 0)return e.onParseError(new ga("Unexpected EOF while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Unexpected EOF"])),[Pt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(t.codePointSource[t.cursor]===CL)return t.advanceCodePoint(),[Pt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(i_(t.codePointSource[t.cursor]))return Wx(0,t),t.codePointSource[t.cursor]===void 0?(e.onParseError(new ga("Unexpected EOF while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Consume as much whitespace as possible","Unexpected EOF"])),[Pt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}]):t.codePointSource[t.cursor]===CL?(t.advanceCodePoint(),[Pt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}]):(Bx(e,t),[Pt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]);if(t.codePointSource[t.cursor]===Kx||t.codePointSource[t.cursor]===Xx||t.codePointSource[t.cursor]===qx||(n=t.codePointSource[t.cursor])===pCe||n===rCe||hCe<=n&&n<=zxe||LCe<=n&&n<=aCe)return Bx(e,t),e.onParseError(new ga("Unexpected character while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token",`Unexpected U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+0028 LEFT PARENTHESIS (() or non-printable code point`])),[Pt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];if(t.codePointSource[t.cursor]===s_){if(bd(0,t)){t.advanceCodePoint(),r+=String.fromCharCode(NL(e,t));continue}return Bx(e,t),e.onParseError(new ga("Invalid escape sequence while consuming a url token.",t.representationStart,t.representationEnd,["4.3.6. Consume a url token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"])),[Pt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]}r+=String.fromCharCode(t.codePointSource[t.cursor]),t.advanceCodePoint()}var n}function Ux(e,t){let r=OL(e,t);if(t.codePointSource[t.cursor]!==qx)return[Pt.Ident,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCharCode(...r)}];if(BCe(0,r)){t.advanceCodePoint();let n=0;for(;;){let s=i_(t.codePointSource[t.cursor]),i=i_(t.codePointSource[t.cursor+1]);if(s&&i){n+=1,t.advanceCodePoint(1);continue}let o=s?t.codePointSource[t.cursor+1]:t.codePointSource[t.cursor];if(o===Kx||o===Xx)return n>0&&t.unreadCodePoint(n),[Pt.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCharCode(...r)}];break}return UCe(e,t)}return t.advanceCodePoint(),[Pt.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCharCode(...r)}]}function AK(e,t){let r=e.css.valueOf(),n=new jx(r),s={onParseError:t?.onParseError??(()=>{})};return{nextToken:function(){if(n.representationStart=n.cursor,n.representationEnd=-1,PCe(0,n))return DCe(s,n);let o=n.codePointSource[n.cursor];if(o===void 0)return[Pt.EOF,"",-1,-1,void 0];if(wL(o))return Ux(s,n);if(Ba(o))return Fx(s,n);switch(o){case eCe:return n.advanceCodePoint(),[Pt.Comma,",",n.representationStart,n.representationEnd,void 0];case Qxe:return n.advanceCodePoint(),[Pt.Colon,":",n.representationStart,n.representationEnd,void 0];case gCe:return n.advanceCodePoint(),[Pt.Semicolon,";",n.representationStart,n.representationEnd,void 0];case qx:return n.advanceCodePoint(),[Pt.OpenParen,"(",n.representationStart,n.representationEnd,void 0];case CL:return n.advanceCodePoint(),[Pt.CloseParen,")",n.representationStart,n.representationEnd,void 0];case uCe:return n.advanceCodePoint(),[Pt.OpenSquare,"[",n.representationStart,n.representationEnd,void 0];case yCe:return n.advanceCodePoint(),[Pt.CloseSquare,"]",n.representationStart,n.representationEnd,void 0];case lCe:return n.advanceCodePoint(),[Pt.OpenCurly,"{",n.representationStart,n.representationEnd,void 0];case ECe:return n.advanceCodePoint(),[Pt.CloseCurly,"}",n.representationStart,n.representationEnd,void 0];case Xx:case Kx:return wCe(s,n);case mCe:return xCe(s,n);case xL:case DL:return mK(0,n)?Fx(s,n):(n.advanceCodePoint(),[Pt.Delim,n.source[n.representationStart],n.representationStart,n.representationEnd,{value:n.source[n.representationStart]}]);case cCe:case Jxe:case iCe:case Yxe:case ICe:return Wx(0,n);case eH:return mK(0,n)?Fx(s,n):$Ce(0,n)?(n.advanceCodePoint(3),[Pt.CDC,"-->",n.representationStart,n.representationEnd,void 0]):ML(0,n)?Ux(s,n):(n.advanceCodePoint(),[Pt.Delim,"-",n.representationStart,n.representationEnd,{value:"-"}]);case gK:return ACe(0,n)?(n.advanceCodePoint(4),[Pt.CDO,"<!--",n.representationStart,n.representationEnd,void 0]):(n.advanceCodePoint(),[Pt.Delim,"<",n.representationStart,n.representationEnd,{value:"<"}]);case tCe:if(n.advanceCodePoint(),ML(0,n)){let a=OL(s,n);return[Pt.AtKeyword,n.source.slice(n.representationStart,n.representationEnd+1),n.representationStart,n.representationEnd,{value:String.fromCharCode(...a)}]}return[Pt.Delim,"@",n.representationStart,n.representationEnd,{value:"@"}];case s_:return bd(0,n)?Ux(s,n):(n.advanceCodePoint(),s.onParseError(new ga('Invalid escape sequence after "\\"',n.representationStart,n.representationEnd,["4.3.1. Consume a token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"])),[Pt.Delim,"\\",n.representationStart,n.representationEnd,{value:"\\"}])}return n.advanceCodePoint(),[Pt.Delim,n.source[n.representationStart],n.representationStart,n.representationEnd,{value:n.source[n.representationStart]}]},endOfFile:function(){return n.codePointSource[n.cursor]===void 0}}}var un;function Gx(e,t){let r=t[0];if(r[0]===Pt.OpenParen||r[0]===Pt.OpenCurly||r[0]===Pt.OpenSquare){let n=WCe(e,t);return{advance:n.advance,node:n.node}}if(r[0]===Pt.Function){let n=jCe(e,t);return{advance:n.advance,node:n.node}}if(r[0]===Pt.Whitespace){let n=bK(e,t);return{advance:n.advance,node:n.node}}if(r[0]===Pt.Comment){let n=VCe(e,t);return{advance:n.advance,node:n.node}}return{advance:1,node:new H_(r)}}(function(e){e.Function="function",e.SimpleBlock="simple-block",e.Whitespace="whitespace",e.Comment="comment",e.Token="token"})(un||(un={}));var RL=class e{type=un.Function;name;endToken;value;constructor(t,r,n){this.name=t,this.endToken=r,this.value=n}getName(){return this.name[4].value}normalize(){this.endToken[0]===Pt.EOF&&(this.endToken=[Pt.CloseParen,")",-1,-1,void 0])}tokens(){return this.endToken[0]===Pt.EOF?[this.name,...this.value.flatMap(t=>t.tokens())]:[this.name,...this.value.flatMap(t=>t.tokens()),this.endToken]}toString(){let t=this.value.map(r=>Vx(r)?sn(r):r.toString()).join("");return sn(this.name)+t+sn(this.endToken)}indexOf(t){return this.value.indexOf(t)}at(t){if(typeof t=="number")return t<0&&(t=this.value.length+t),this.value[t]}walk(t){let r=!1;if(this.value.forEach((n,s)=>{r||(t({node:n,parent:this},s)!==!1?"walk"in n&&n.walk(t)===!1&&(r=!0):r=!0)}),r)return!1}toJSON(){return{type:this.type,name:this.getName(),tokens:this.tokens(),value:this.value.map(t=>t.toJSON())}}isFunctionNode(){return e.isFunctionNode(this)}static isFunctionNode(t){return!!t&&t instanceof e&&t.type===un.Function}};function jCe(e,t){let r=[],n=1;for(;;){let s=t[n];if(!s||s[0]===Pt.EOF)return e.onParseError(new ga("Unexpected EOF while consuming a function.",t[0][2],t[t.length-1][3],["5.4.9. Consume a function","Unexpected EOF"])),{advance:t.length,node:new RL(t[0],s,r)};if(s[0]===Pt.CloseParen)return{advance:n+1,node:new RL(t[0],s,r)};if(s[0]===Pt.Comment||s[0]===Pt.Whitespace){let o=SK(e,t.slice(n));n+=o.advance,r.push(...o.nodes);continue}let i=Gx(e,t.slice(n));n+=i.advance,r.push(i.node)}}var a_=class e{type=un.SimpleBlock;startToken;endToken;value;constructor(t,r,n){this.startToken=t,this.endToken=r,this.value=n}normalize(){if(this.endToken[0]===Pt.EOF){let t=EK(this.startToken);t&&(this.endToken=t)}}tokens(){return this.endToken[0]===Pt.EOF?[this.startToken,...this.value.flatMap(t=>t.tokens())]:[this.startToken,...this.value.flatMap(t=>t.tokens()),this.endToken]}toString(){let t=this.value.map(r=>Vx(r)?sn(r):r.toString()).join("");return sn(this.startToken)+t+sn(this.endToken)}indexOf(t){return this.value.indexOf(t)}at(t){if(typeof t=="number")return t<0&&(t=this.value.length+t),this.value[t]}walk(t){let r=!1;if(this.value.forEach((n,s)=>{r||(t({node:n,parent:this},s)!==!1?"walk"in n&&n.walk(t)===!1&&(r=!0):r=!0)}),r)return!1}toJSON(){return{type:this.type,startToken:this.startToken,tokens:this.tokens(),value:this.value.map(t=>t.toJSON())}}isSimpleBlockNode(){return e.isSimpleBlockNode(this)}static isSimpleBlockNode(t){return!!t&&t instanceof e&&t.type===un.SimpleBlock}};function WCe(e,t){let r=_K(t[0][0]);if(!r)throw new Error("Failed to parse, a mirror variant must exist for all block open tokens.");let n=[],s=1;for(;;){let i=t[s];if(!i||i[0]===Pt.EOF)return e.onParseError(new ga("Unexpected EOF while consuming a simple block.",t[0][2],t[t.length-1][3],["5.4.8. Consume a simple block","Unexpected EOF"])),{advance:t.length,node:new a_(t[0],i,n)};if(i[0]===r)return{advance:s+1,node:new a_(t[0],i,n)};if(i[0]===Pt.Comment||i[0]===Pt.Whitespace){let a=SK(e,t.slice(s));s+=a.advance,n.push(...a.nodes);continue}let o=Gx(e,t.slice(s));s+=o.advance,n.push(o.node)}}var FL=class e{type=un.Whitespace;value;constructor(t){this.value=t}tokens(){return this.value}toString(){return sn(...this.value)}toJSON(){return{type:this.type,tokens:this.tokens()}}isWhitespaceNode(){return e.isWhitespaceNode(this)}static isWhitespaceNode(t){return!!t&&t instanceof e&&t.type===un.Whitespace}};function bK(e,t){let r=0;for(;;){if(t[r][0]!==Pt.Whitespace)return{advance:r,node:new FL(t.slice(0,r))};r++}}var o_=class e{type=un.Comment;value;constructor(t){this.value=t}tokens(){return[this.value]}toString(){return sn(this.value)}toJSON(){return{type:this.type,tokens:this.tokens()}}isCommentNode(){return e.isCommentNode(this)}static isCommentNode(t){return!!t&&t instanceof e&&t.type===un.Comment}};function VCe(e,t){return{advance:1,node:new o_(t[0])}}function SK(e,t){let r=[],n=0;for(;;)if(t[n][0]!==Pt.Whitespace){if(t[n][0]!==Pt.Comment)return{advance:n,nodes:r};r.push(new o_(t[n])),n++}else{let s=bK(0,t.slice(n));n+=s.advance,r.push(s.node)}}var H_=class e{type=un.Token;value;constructor(t){this.value=t}tokens(){return[this.value]}toString(){return sn(this.value)}toJSON(){return{type:this.type,tokens:this.tokens()}}isTokenNode(){return e.isTokenNode(this)}static isTokenNode(t){return!!t&&t instanceof e&&t.type===un.Token}};function vK(e,t){let r={onParseError:t?.onParseError??(()=>{})},n=[...e];if(e.length===0)return[];n[n.length-1][0]!==Pt.EOF&&n.push([Pt.EOF,"",n[n.length-1][2],n[n.length-1][3],void 0]);let s=[],i=[],o=0;for(;;){if(!n[o]||n[o][0]===Pt.EOF)return i.length&&s.push(i),s;if(n[o][0]===Pt.Comma){s.push(i),i=[],o++;continue}let a=Gx(r,e.slice(o));i.push(a.node),o+=a.advance}}function jc(e){return a_.isSimpleBlockNode(e)}function TK(e){return FL.isWhitespaceNode(e)}function PK(e){return o_.isCommentNode(e)}function BL(e){return H_.isTokenNode(e)}var Zr;(function(e){e.CustomMedia="custom-media",e.GeneralEnclosed="general-enclosed",e.MediaAnd="media-and",e.MediaCondition="media-condition",e.MediaConditionListWithAnd="media-condition-list-and",e.MediaConditionListWithOr="media-condition-list-or",e.MediaFeature="media-feature",e.MediaFeatureBoolean="mf-boolean",e.MediaFeatureName="mf-name",e.MediaFeaturePlain="mf-plain",e.MediaFeatureRangeNameValue="mf-range-name-value",e.MediaFeatureRangeValueName="mf-range-value-name",e.MediaFeatureRangeValueNameValue="mf-range-value-name-value",e.MediaFeatureValue="mf-value",e.MediaInParens="media-in-parens",e.MediaNot="media-not",e.MediaOr="media-or",e.MediaQueryWithType="media-query-with-type",e.MediaQueryWithoutType="media-query-without-type",e.MediaQueryInvalid="media-query-invalid"})(Zr||(Zr={}));var XCe=/[A-Z]/g;function iH(e){return e.replace(XCe,t=>String.fromCharCode(t.charCodeAt(0)+32))}var tH=class e{type=Zr.MediaCondition;media;constructor(t){this.media=t}tokens(){return this.media.tokens()}toString(){return this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,media:this.media.toJSON()}}isMediaCondition(){return e.isMediaCondition(this)}static isMediaCondition(t){return!!t&&t instanceof e&&t.type===Zr.MediaCondition}},vl=class e{type=Zr.MediaInParens;media;before;after;constructor(t,r=[],n=[]){this.media=t,this.before=r,this.after=n}tokens(){return[...this.before,...this.media.tokens(),...this.after]}toString(){return sn(...this.before)+this.media.toString()+sn(...this.after)}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&("walk"in this.media?this.media.walk(t):void 0)}toJSON(){return{type:this.type,media:this.media.toJSON(),before:this.before,after:this.after}}isMediaInParens(){return e.isMediaInParens(this)}static isMediaInParens(t){return!!t&&t instanceof e&&t.type===Zr.MediaInParens}},p_=class e{type=Zr.MediaQueryWithType;modifier;mediaType;and=void 0;media=void 0;constructor(t,r,n,s){this.modifier=t,this.mediaType=r,n&&s&&(this.and=n,this.media=s)}getModifier(){if(!this.modifier.length)return"";for(let t=0;t<this.modifier.length;t++){let r=this.modifier[t];if(r[0]===Pt.Ident)return r[4].value}return""}negateQuery(){let t=new e([...this.modifier],[...this.mediaType],this.and,this.media);if(t.modifier.length===0)return t.modifier=[[Pt.Ident,"not",-1,-1,{value:"not"}],[Pt.Whitespace," ",-1,-1,void 0]],t;for(let r=0;r<t.modifier.length;r++){let n=t.modifier[r];if(n[0]===Pt.Ident&&iH(n[4].value)==="not"){t.modifier.splice(r,1);break}if(n[0]===Pt.Ident&&iH(n[4].value)==="only"){n[1]="not",n[4].value="not";break}}return t}getMediaType(){if(!this.mediaType.length)return"";for(let t=0;t<this.mediaType.length;t++){let r=this.mediaType[t];if(r[0]===Pt.Ident)return r[4].value}return""}tokens(){return this.and&&this.media?[...this.modifier,...this.mediaType,...this.and,...this.media.tokens()]:[...this.modifier,...this.mediaType]}toString(){return this.and&&this.media?sn(...this.modifier)+sn(...this.mediaType)+sn(...this.and)+this.media.toString():sn(...this.modifier)+sn(...this.mediaType)}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){if(this.media)return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,string:this.toString(),modifier:this.modifier,mediaType:this.mediaType,and:this.and,media:this.media}}isMediaQueryWithType(){return e.isMediaQueryWithType(this)}static isMediaQueryWithType(t){return!!t&&t instanceof e&&t.type===Zr.MediaQueryWithType}},Zx=class e{type=Zr.MediaQueryWithoutType;media;constructor(t){this.media=t}negateQuery(){let t=this.media;return t.media.type===Zr.MediaNot?new e(new tH(t.media.media)):(t.media.type===Zr.MediaConditionListWithOr&&(t=new tH(new vl(t,[[Pt.Whitespace," ",0,0,void 0],[Pt.OpenParen,"(",0,0,void 0]],[[Pt.CloseParen,")",0,0,void 0]]))),new p_([[Pt.Ident,"not",0,0,{value:"not"}],[Pt.Whitespace," ",0,0,void 0]],[[Pt.Ident,"all",0,0,{value:"all"}],[Pt.Whitespace," ",0,0,void 0]],[[Pt.Ident,"and",0,0,{value:"and"}]],t))}tokens(){return this.media.tokens()}toString(){return this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,string:this.toString(),media:this.media}}isMediaQueryWithoutType(){return e.isMediaQueryWithoutType(this)}static isMediaQueryWithoutType(t){return!!t&&t instanceof e&&t.type===Zr.MediaQueryWithoutType}},zx=class e{type=Zr.MediaQueryInvalid;media;constructor(t){this.media=t}negateQuery(){return new e(this.media)}tokens(){return this.media.flatMap(t=>t.tokens())}toString(){return this.media.map(t=>t.toString()).join("")}walk(t){let r=!1;if(this.media.forEach((n,s)=>{r||(t({node:n,parent:this},s)!==!1?"walk"in n&&n.walk(t)===!1&&(r=!0):r=!0)}),r)return!1}toJSON(){return{type:this.type,string:this.toString(),media:this.media}}isMediaQueryInvalid(){return e.isMediaQueryInvalid(this)}static isMediaQueryInvalid(t){return!!t&&t instanceof e&&t.type===Zr.MediaQueryInvalid}},UL=class e{type=Zr.GeneralEnclosed;value;constructor(t){this.value=t}tokens(){return this.value.tokens()}toString(){return this.value.toString()}indexOf(t){return t===this.value?"value":-1}at(t){if(t==="value")return this.value}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,tokens:this.tokens()}}isGeneralEnclosed(){return e.isGeneralEnclosed(this)}static isGeneralEnclosed(t){return!!t&&t instanceof e&&t.type===Zr.GeneralEnclosed}},Jx=class e{type=Zr.MediaAnd;modifier;media;constructor(t,r){this.modifier=t,this.media=r}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return sn(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){return t==="media"?this.media:null}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaAnd(){return e.isMediaAnd(this)}static isMediaAnd(t){return!!t&&t instanceof e&&t.type===Zr.MediaAnd}},Yx=class e{type=Zr.MediaConditionListWithAnd;leading;list;before;after;constructor(t,r,n=[],s=[]){this.leading=t,this.list=r,this.before=n,this.after=s}tokens(){return[...this.before,...this.leading.tokens(),...this.list.flatMap(t=>t.tokens()),...this.after]}toString(){return sn(...this.before)+this.leading.toString()+this.list.map(t=>t.toString()).join("")+sn(...this.after)}indexOf(t){return t===this.leading?"leading":t.type==="media-and"?this.list.indexOf(t):-1}at(t){return t==="leading"?this.leading:typeof t=="number"?(t<0&&(t=this.list.length+t),this.list[t]):void 0}walk(t){if(t({node:this.leading,parent:this},"leading")===!1||"walk"in this.leading&&this.leading.walk(t)===!1)return!1;let r=!1;return this.list.forEach((n,s)=>{r||(t({node:n,parent:this},s)!==!1?"walk"in n&&n.walk(t)===!1&&(r=!0):r=!0)}),!r&&void 0}toJSON(){return{type:this.type,leading:this.leading.toJSON(),list:this.list.map(t=>t.toJSON()),before:this.before,after:this.after}}isMediaConditionListWithAnd(){return e.isMediaConditionListWithAnd(this)}static isMediaConditionListWithAnd(t){return!!t&&t instanceof e&&t.type===Zr.MediaConditionListWithAnd}},Qx=class e{type=Zr.MediaConditionListWithOr;leading;list;before;after;constructor(t,r,n=[],s=[]){this.leading=t,this.list=r,this.before=n,this.after=s}tokens(){return[...this.before,...this.leading.tokens(),...this.list.flatMap(t=>t.tokens()),...this.after]}toString(){return sn(...this.before)+this.leading.toString()+this.list.map(t=>t.toString()).join("")+sn(...this.after)}indexOf(t){return t===this.leading?"leading":t.type==="media-or"?this.list.indexOf(t):-1}at(t){return t==="leading"?this.leading:typeof t=="number"?(t<0&&(t=this.list.length+t),this.list[t]):void 0}walk(t){if(t({node:this.leading,parent:this},"leading")===!1||"walk"in this.leading&&this.leading.walk(t)===!1)return!1;let r=!1;return this.list.forEach((n,s)=>{r||(t({node:n,parent:this},s)!==!1?"walk"in n&&n.walk(t)===!1&&(r=!0):r=!0)}),!r&&void 0}toJSON(){return{type:this.type,leading:this.leading.toJSON(),list:this.list.map(t=>t.toJSON()),before:this.before,after:this.after}}isMediaConditionListWithOr(){return e.isMediaConditionListWithOr(this)}static isMediaConditionListWithOr(t){return!!t&&t instanceof e&&t.type===Zr.MediaConditionListWithOr}};function wK(e){return!!(e.type===un.Token&&e.value[0]===Pt.Number||e.type===un.Function&&qCe.has(iH(e.name[4].value)))}var qCe=new Set(["abs","acos","asin","atan","atan2","calc","clamp","cos","exp","hypot","log","max","min","mod","pow","rem","round","sign","sin","sqrt","tan"]);function KCe(e){return e.type===un.Token&&e.value[0]===Pt.Dimension}function d_(e){return e.type===un.Token&&e.value[0]===Pt.Ident}function GCe(e){return e.type===un.Function&&iH(e.name[4].value)==="env"}var eC=class e{type=Zr.MediaFeatureName;name;before;after;constructor(t,r=[],n=[]){this.name=t,this.before=r,this.after=n}getName(){return this.name.value[4].value}getNameToken(){return this.name.value}tokens(){return[...this.before,...this.name.tokens(),...this.after]}toString(){return sn(...this.before)+this.name.toString()+sn(...this.after)}indexOf(t){return t===this.name?"name":-1}at(t){if(t==="name")return this.name}toJSON(){return{type:this.type,name:this.getName(),tokens:this.tokens()}}isMediaFeatureName(){return e.isMediaFeatureName(this)}static isMediaFeatureName(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureName}};function u_(e){let t=-1;for(let r=0;r<e.length;r++){let n=e[r];if(n.type!==un.Whitespace&&n.type!==un.Comment){if(!d_(n)||t!==-1)return!1;t=r}}return t!==-1&&new eC(e[t],e.slice(0,t).flatMap(r=>r.tokens()),e.slice(t+1).flatMap(r=>r.tokens()))}var tC=class e{type=Zr.MediaFeatureBoolean;name;constructor(t){this.name=t}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return this.name.tokens()}toString(){return this.name.toString()}indexOf(t){return t===this.name?"name":-1}at(t){if(t==="name")return this.name}toJSON(){return{type:this.type,name:this.name.toJSON(),tokens:this.tokens()}}isMediaFeatureBoolean(){return e.isMediaFeatureBoolean(this)}static isMediaFeatureBoolean(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureBoolean}};function ZCe(e){let t=u_(e);return t===!1?t:new tC(t)}var rC=class e{type=Zr.MediaFeatureValue;value;before;after;constructor(t,r=[],n=[]){Array.isArray(t)&&t.length===1?this.value=t[0]:this.value=t,this.before=r,this.after=n}tokens(){return Array.isArray(this.value)?[...this.before,...this.value.flatMap(t=>t.tokens()),...this.after]:[...this.before,...this.value.tokens(),...this.after]}toString(){return Array.isArray(this.value)?sn(...this.before)+this.value.map(t=>t.toString()).join("")+sn(...this.after):sn(...this.before)+this.value.toString()+sn(...this.after)}indexOf(t){return t===this.value?"value":-1}at(t){if(t==="value")return this.value}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return Array.isArray(this.value)?{type:this.type,value:this.value.map(t=>t.toJSON()),tokens:this.tokens()}:{type:this.type,value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureValue(){return e.isMediaFeatureValue(this)}static isMediaFeatureValue(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureValue}};function l_(e){let t=-1,r=-1;for(let n=0;n<e.length;n++){let s=e[n];if(s.type!==un.Whitespace&&s.type!==un.Comment){if(t!==-1)return!1;if(wK(s)){let i=zCe(e.slice(n));if(i!==-1){t=i[0]+n,r=i[1]+n,n+=i[1]-i[0];continue}t=n,r=n}else if(GCe(s))t=n,r=n;else if(KCe(s))t=n,r=n;else{if(!d_(s))return!1;t=n,r=n}}}return t!==-1&&new rC(e.slice(t,r+1),e.slice(0,t).flatMap(n=>n.tokens()),e.slice(r+1).flatMap(n=>n.tokens()))}function zCe(e){let t=-1,r=-1,n=JCe(e);if(n===-1)return-1;t=n[0],r=n[1];for(let s=r+1;s<e.length;s++){let i=e[s];if(i.type!=="whitespace"&&i.type!=="comment")return-1}return[t,r]}function JCe(e){let t=-1,r=-1;for(let n=0;n<e.length;n++){let s=e[n];if(s.type!=="whitespace"&&s.type!=="comment"){if(s.type==="token"){let i=s.value;if(i[0]===Pt.Delim&&i[4].value==="/"){if(t===-1||r!==-1)return-1;r=n;continue}}if(!wK(s))return-1;if(r!==-1)return[t,n];if(t!==-1)return-1;t=n}}return-1}var nC=class e{type=Zr.MediaFeaturePlain;name;colon;value;constructor(t,r,n){this.name=t,this.colon=r,this.value=n}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.name.tokens(),this.colon,...this.value.tokens()]}toString(){return this.name.toString()+sn(this.colon)+this.value.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&this.value.walk(t)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeaturePlain(){return e.isMediaFeaturePlain(this)}static isMediaFeaturePlain(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeaturePlain}};function YCe(e){let t=[],r=[],n=null;for(let o=0;o<e.length;o++){let a=e[o];if(a.type===un.Token){let u=a.value;if(u[0]===Pt.Colon){t=e.slice(0,o),r=e.slice(o+1),n=u;break}}}if(!t.length||!r.length||!n)return!1;let s=u_(t);if(s===!1)return!1;let i=l_(r);return i!==!1&&new nC(s,n,i)}var rH,nH,Iu;function QCe(e){let t=-1;for(let r=0;r<e.length;r++){let n=e[r];if(n.type===un.Token){let s=n.value;if(s[0]===Pt.Delim){if(s[4].value===Iu.EQ){if(t!==-1)return[t,r];t=r;continue}if(s[4].value===rH.LT){t=r;continue}if(s[4].value===nH.GT){t=r;continue}}}break}return t!==-1&&[t,t]}function vd(e){if(e.length===0||e.length>2||e[0][0]!==Pt.Delim)return!1;if(e.length===1)switch(e[0][4].value){case Iu.EQ:return Iu.EQ;case rH.LT:return rH.LT;case nH.GT:return nH.GT;default:return!1}if(e[1][0]!==Pt.Delim||e[1][4].value!==Iu.EQ)return!1;switch(e[0][4].value){case rH.LT:return rH.LT_OR_EQ;case nH.GT:return nH.GT_OR_EQ;default:return!1}}(function(e){e.LT="<",e.LT_OR_EQ="<="})(rH||(rH={})),function(e){e.GT=">",e.GT_OR_EQ=">="}(nH||(nH={})),function(e){e.EQ="="}(Iu||(Iu={}));var iC=class e{type=Zr.MediaFeatureRangeNameValue;name;operator;value;constructor(t,r,n){this.name=t,this.operator=r,this.value=n}operatorKind(){return vd(this.operator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.name.tokens(),...this.operator,...this.value.tokens()]}toString(){return this.name.toString()+sn(...this.operator)+this.value.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeNameValue(){return e.isMediaFeatureRangeNameValue(this)}static isMediaFeatureRangeNameValue(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureRangeNameValue}},sC=class e{type=Zr.MediaFeatureRangeValueName;name;operator;value;constructor(t,r,n){this.name=t,this.operator=r,this.value=n}operatorKind(){return vd(this.operator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.value.tokens(),...this.operator,...this.name.tokens()]}toString(){return this.value.toString()+sn(...this.operator)+this.name.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeValueName(){return e.isMediaFeatureRangeValueName(this)}static isMediaFeatureRangeValueName(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureRangeValueName}},aC=class e{type=Zr.MediaFeatureRangeValueNameValue;name;valueOne;valueOneOperator;valueTwo;valueTwoOperator;constructor(t,r,n,s,i){this.name=t,this.valueOne=r,this.valueOneOperator=n,this.valueTwo=s,this.valueTwoOperator=i}valueOneOperatorKind(){return vd(this.valueOneOperator)}valueTwoOperatorKind(){return vd(this.valueTwoOperator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.valueOne.tokens(),...this.valueOneOperator,...this.name.tokens(),...this.valueTwoOperator,...this.valueTwo.tokens()]}toString(){return this.valueOne.toString()+sn(...this.valueOneOperator)+this.name.toString()+sn(...this.valueTwoOperator)+this.valueTwo.toString()}indexOf(t){return t===this.name?"name":t===this.valueOne?"valueOne":t===this.valueTwo?"valueTwo":-1}at(t){return t==="name"?this.name:t==="valueOne"?this.valueOne:t==="valueTwo"?this.valueTwo:void 0}walk(t){return t({node:this.valueOne,parent:this},"valueOne")!==!1&&(!("walk"in this.valueOne)||this.valueOne.walk(t)!==!1)&&t({node:this.valueTwo,parent:this},"valueTwo")!==!1&&(!("walk"in this.valueTwo)||this.valueTwo.walk(t)!==!1)&&void 0}toJSON(){return{type:this.type,name:this.name.toJSON(),valueOne:this.valueOne.toJSON(),valueTwo:this.valueTwo.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeValueNameValue(){return e.isMediaFeatureRangeValueNameValue(this)}static isMediaFeatureRangeValueNameValue(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeatureRangeValueNameValue}};function ewe(e){let t=!1,r=!1;for(let l=0;l<e.length;l++){let d=e[l];if(d.type===un.Token&&d.value[0]===Pt.Delim){let f=QCe(e.slice(l));if(f!==!1){if(t!==!1){r=[f[0]+l,f[1]+l];break}t=[f[0]+l,f[1]+l],l+=f[1]}}}if(t===!1)return!1;let n=[e[t[0]].value];if(t[0]!==t[1]&&n.push(e[t[1]].value),r===!1){let l=e.slice(0,t[0]),d=e.slice(t[1]+1),f=u_(l),h=u_(d);if(!f&&!h)return!1;if(f&&!h||f&&$K.has(iH(f.getName()))){let m=l_(d);return!!m&&new iC(f,n,m)}if(!f&&h||h&&$K.has(iH(h.getName()))){let m=l_(l);return!!m&&new sC(h,n,m)}return!1}let s=[e[r[0]].value];r[0]!==r[1]&&s.push(e[r[1]].value);let i=e.slice(0,t[0]),o=e.slice(t[1]+1,r[0]),a=e.slice(r[1]+1),u=l_(i),c=u_(o),H=l_(a);if(!u||!c||!H)return!1;{let l=vd(n);if(l===!1||l===Iu.EQ)return!1;let d=vd(s);if(d===!1||d===Iu.EQ||!(l!==rH.LT&&l!==rH.LT_OR_EQ||d!==nH.GT&&d!==nH.GT_OR_EQ)||!(l!==nH.GT&&l!==nH.GT_OR_EQ||d!==rH.LT&&d!==rH.LT_OR_EQ))return!1}return new aC(c,u,n,H,s)}var $K=new Set(["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","dynamic-range","environment-blending","forced-colors","grid","height","horizontal-viewport-segments","hover","inverted-colors","monochrome","nav-controls","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-data","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","vertical-viewport-segments","video-color-gamut","video-dynamic-range","width"]),c_=class e{type=Zr.MediaFeature;feature;before;after;constructor(t,r=[],n=[]){this.feature=t,this.before=r,this.after=n}getName(){return this.feature.getName()}getNameToken(){return this.feature.getNameToken()}tokens(){return[...this.before,...this.feature.tokens(),...this.after]}toString(){return sn(...this.before)+this.feature.toString()+sn(...this.after)}indexOf(t){return t===this.feature?"feature":-1}at(t){if(t==="feature")return this.feature}walk(t){return t({node:this.feature,parent:this},"feature")!==!1&&("walk"in this.feature?this.feature.walk(t):void 0)}toJSON(){return{type:this.type,feature:this.feature.toJSON(),before:this.before,after:this.after}}isMediaFeature(){return e.isMediaFeature(this)}static isMediaFeature(t){return!!t&&t instanceof e&&t.type===Zr.MediaFeature}};function kK(e,t=[],r=[]){if(e.startToken[0]!==Pt.OpenParen)return!1;let n=ZCe(e.value);if(n!==!1)return new c_(n,t,r);let s=YCe(e.value);if(s!==!1)return new c_(s,t,r);let i=ewe(e.value);return i!==!1&&new c_(i,t,r)}var oC=class e{type=Zr.MediaNot;modifier;media;constructor(t,r){this.modifier=t,this.media=r}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return sn(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaNot(){return e.isMediaNot(this)}static isMediaNot(t){return!!t&&t instanceof e&&t.type===Zr.MediaNot}},HC=class e{type=Zr.MediaOr;modifier;media;constructor(t,r){this.modifier=t,this.media=r}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return sn(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaOr(){return e.isMediaOr(this)}static isMediaOr(t){return!!t&&t instanceof e&&t.type===Zr.MediaOr}},Sd,DK;function xK(e){if(e[0]!==Pt.Ident)return!1;switch(iH(e[4].value)){case Sd.Not:return Sd.Not;case Sd.Only:return Sd.Only;default:return!1}}function twe(e){{let t=lC(e);if(t!==!1)return new Zx(t)}{let t=-1,r=-1,n=-1;for(let a=0;a<e.length;a++){let u=e[a];if(!TK(u)&&!PK(u)){if(BL(u)){let c=u.value;if(t===-1&&c[0]===Pt.Ident&&xK(c)){t=a;continue}if(r===-1&&c[0]===Pt.Ident&&!xK(c)){r=a;continue}if(n===-1&&c[0]===Pt.Ident&&iH(c[4].value)==="and"){if(n=a,CK(e.slice(a+1))===!1)return!1;break}return!1}return!1}}let s=[],i=[];t!==-1?(s=e.slice(0,t+1).flatMap(a=>a.tokens()),r!==-1&&(i=e.slice(t+1,r+1).flatMap(a=>a.tokens()))):r!==-1&&(i=e.slice(0,r+1).flatMap(a=>a.tokens()));let o=CK(e.slice(Math.max(t,r,n)+1));return o===!1?new p_(s,[...i,...e.slice(r+1).flatMap(a=>a.tokens())]):new p_(s,i,e.slice(r+1,n+1).flatMap(a=>a.tokens()),o)}}function rwe(e){let t=!1,r=[],n=-1,s=-1;for(let i=0;i<e.length;i++){if(t){let a=nwe(e.slice(i));if(a!==!1){i+=a.advance,r.push(a.node),s=i;continue}}let o=e[i];if(o.type!==un.Whitespace&&o.type!==un.Comment){if(t||t!==!1||!jc(o)||(o.normalize(),t=f_(o),t===!1))return!1;n=i}}return!(!t||!r.length)&&new Qx(t,r,e.slice(0,n).flatMap(i=>i.tokens()),e.slice(s+1).flatMap(i=>i.tokens()))}function MK(e){let t=!1,r=[],n=-1,s=-1;for(let i=0;i<e.length;i++){if(t){let a=iwe(e.slice(i));if(a!==!1){i+=a.advance,r.push(a.node),s=i;continue}}let o=e[i];if(o.type!==un.Whitespace&&o.type!==un.Comment){if(t||t!==!1||!jc(o)||(o.normalize(),t=f_(o),t===!1))return!1;n=i}}return!(!t||!r.length)&&new Yx(t,r,e.slice(0,n).flatMap(i=>i.tokens()),e.slice(s+1).flatMap(i=>i.tokens()))}function lC(e){let t=OK(e);if(t!==!1)return new tH(t);let r=MK(e);if(r!==!1)return new tH(r);let n=rwe(e);if(n!==!1)return new tH(n);let s=NK(e);return s!==!1&&new tH(s)}function CK(e){let t=OK(e);if(t!==!1)return new tH(t);let r=MK(e);if(r!==!1)return new tH(r);let n=NK(e);return n!==!1&&new tH(n)}function NK(e){let t=-1;for(let a=0;a<e.length;a++){let u=e[a];if(u.type!==un.Whitespace&&u.type!==un.Comment){if(!jc(u)||t!==-1)return!1;t=a}}if(t===-1)return!1;let r=e[t];if(r.startToken[0]!==Pt.OpenParen)return!1;r.normalize();let n=[...e.slice(0,t).flatMap(a=>a.tokens()),r.startToken],s=[r.endToken,...e.slice(t+1).flatMap(a=>a.tokens())],i=kK(r,n,s);if(i!==!1)return new vl(i);let o=lC(r.value);return o!==!1?new vl(o,n,s):new vl(new UL(r),e.slice(0,t).flatMap(a=>a.tokens()),e.slice(t+1).flatMap(a=>a.tokens()))}function f_(e){if(e.startToken[0]!==Pt.OpenParen)return!1;let t=kK(e,[e.startToken],[e.endToken]);if(t!==!1)return new vl(t);let r=lC(e.value);return r!==!1?new vl(r,[e.startToken],[e.endToken]):new vl(new UL(e))}function OK(e){let t=!1,r=null;for(let n=0;n<e.length;n++){let s=e[n];if(s.type!==un.Whitespace&&s.type!==un.Comment){if(d_(s)){if(iH(s.value[4].value)==="not"){if(t)return!1;t=!0;continue}return!1}if(!t||!jc(s))return!1;{s.normalize();let i=f_(s);if(i===!1)return!1;r=new oC(e.slice(0,n).flatMap(o=>o.tokens()),i)}}}return r||!1}function nwe(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];if(n.type!==un.Whitespace&&n.type!==un.Comment){if(d_(n)){if(iH(n.value[4].value)==="or"){if(t)return!1;t=!0;continue}return!1}if(t&&jc(n)){n.normalize();let s=f_(n);return s!==!1&&{advance:r,node:new HC(e.slice(0,r).flatMap(i=>i.tokens()),s)}}return!1}}return!1}function iwe(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];if(n.type!==un.Whitespace&&n.type!==un.Comment){if(d_(n)){if(iH(n.value[4].value)==="and"){if(t)return!1;t=!0;continue}return!1}if(t&&jc(n)){n.normalize();let s=f_(n);return s!==!1&&{advance:r,node:new Jx(e.slice(0,r).flatMap(i=>i.tokens()),s)}}return!1}}return!1}function swe(e,t){let r=vK(e,{onParseError:t?.onParseError});return r.map((n,s)=>{let i=twe(n);return i==0&&t?.preserveInvalidMediaQueries===!0?new zx(r[s]):i}).filter(n=>!!n)}function RK(e,t){let r=AK({css:e},{onParseError:t?.onParseError}),n=[];for(;!r.endOfFile();)n.push(r.nextToken());return n.push(r.nextToken()),swe(n,t)}(function(e){e.Not="not",e.Only="only"})(Sd||(Sd={}));(function(e){e.All="all",e.Print="print",e.Screen="screen",e.Tty="tty",e.Tv="tv",e.Projection="projection",e.Handheld="handheld",e.Braille="braille",e.Embossed="embossed",e.Aural="aural",e.Speech="speech"})(DK||(DK={}));function jL(e,t){let r=0;for(let n of t){let s=n.index+r,i=` /* ${n.value} */`;e=e.slice(0,s)+i+e.slice(s),r+=i.length}return e}function Td(e,t){return e.includes("rem")&&(0,h_.default)(e).walk(r=>{if(r.type!=="word")return!0;let n=h_.default.unit(r.value);if(!n||n.unit!=="rem")return!1;let s=` /* ${parseFloat(n.number)*t}px */`;return e=e.slice(0,r.sourceEndIndex)+s+e.slice(r.sourceEndIndex),!1}),e}function FK(e,t){let r=[];try{RK(e).forEach(n=>{n.walk(({node:s})=>{BL(s)&&s.type==="token"&&s.value[0]==="dimension-token"&&(s.value[4].type==="integer"||s.value[4].type==="number")&&(s.value[4].unit==="rem"||s.value[4].unit==="em")&&r.push({index:e.length-(e.length-s.value[3]-1),value:`${s.value[4].value*t}px`})})})}catch{}return r}function uC(e,t){return e.replace(/(?<=^\s*@media\s*).*?$/,r=>{let n=FK(r,t);return jL(r,n)})}function cC({comments:e,rootFontSize:t}){return{postcssPlugin:"plugin",AtRule:{media(r){r.params.includes("em")&&e.push(...FK(r.params,t).map(({index:n,value:s})=>({index:n+r.source.start.offset+`@media${r.raws.afterName}`.length,value:s})))}},Declaration(r){r.value.includes("rem")&&(0,h_.default)(r.value).walk(n=>{if(n.type!=="word")return!0;let s=h_.default.unit(n.value);return!s||s.unit!=="rem"||e.push({index:r.source.start.offset+`${r.prop}${r.raws.between}`.length+n.sourceEndIndex,value:`${parseFloat(s.number)*t}px`}),!1})}}}cC.postcss=!0;var iJ=Kt(PL());var awe=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},WL=awe;var owe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},BK=owe;var Hwe=e=>WL(BK[e.toLowerCase()],6),UK=Hwe;var lwe=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,uwe=e=>{let t;return(t=e.match(lwe))?WL(parseInt(t[1],16),t[1].length):void 0},jK=uwe;var ia="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Nlt=`(?:${ia}|none)`,Wc=`${ia}%`,Olt=`(?:${ia}%|none)`,m_=`(?:${ia}%|${ia})`,cwe=`(?:${ia}%|${ia}|none)`,WK=`(?:${ia}(deg|grad|rad|turn)|${ia})`,Rlt=`(?:${ia}(deg|grad|rad|turn)|${ia}|none)`,Au="\\s*,\\s*";var Flt=new RegExp("^"+cwe+"$");var pwe=new RegExp(`^rgba?\\(\\s*${ia}${Au}${ia}${Au}${ia}\\s*(?:,\\s*${m_}\\s*)?\\)$`),dwe=new RegExp(`^rgba?\\(\\s*${Wc}${Au}${Wc}${Au}${Wc}\\s*(?:,\\s*${m_}\\s*)?\\)$`),fwe=e=>{let t={mode:"rgb"},r;if(r=e.match(pwe))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(dwe))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},VK=fwe;var hwe=(e,t)=>e===void 0?void 0:typeof e!="object"?Vc(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,VL=hwe;var mwe=(e="rgb")=>t=>(t=VL(t,e))!==void 0?t.mode===e?t:sH[t.mode][e]?sH[t.mode][e](t):e==="rgb"?sH[t.mode].rgb(t):sH.rgb[e](sH[t.mode].rgb(t)):void 0,_o=mwe;var sH={},XK={},__=[],pC={},_we=e=>e,wn=e=>(sH[e.mode]={...sH[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{sH[t]||(sH[t]={}),sH[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=_we)}),XK[e.mode]=e,(e.parse||[]).forEach(t=>{Ewe(t,e.mode)}),_o(e.mode)),XL=e=>XK[e],Ewe=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");pC[e]=t}else typeof e=="function"&&__.indexOf(e)<0&&__.push(e)};var dC=/[^\x00-\x7F]|[a-zA-Z_]/,ywe=/[^\x00-\x7F]|[-\w]/,Nt={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Mr=0;function qL(e){let t=e[Mr],r=e[Mr+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[Mr+2]):t==="."?/\d/.test(r):/\d/.test(t)}function fC(e){if(Mr>=e.length)return!1;let t=e[Mr];if(dC.test(t))return!0;if(t==="-"){if(e.length-Mr<2)return!1;let r=e[Mr+1];return!!(r==="-"||dC.test(r))}return!1}var gwe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function E_(e){let t="";if((e[Mr]==="-"||e[Mr]==="+")&&(t+=e[Mr++]),t+=KL(e),e[Mr]==="."&&/\d/.test(e[Mr+1])&&(t+=e[Mr++]+KL(e)),(e[Mr]==="e"||e[Mr]==="E")&&((e[Mr+1]==="-"||e[Mr+1]==="+")&&/\d/.test(e[Mr+2])?t+=e[Mr++]+e[Mr++]+KL(e):/\d/.test(e[Mr+1])&&(t+=e[Mr++]+KL(e))),fC(e)){let r=GL(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:Nt.Hue,value:t*gwe[r]}:void 0}return e[Mr]==="%"?(Mr++,{type:Nt.Percentage,value:+t}):{type:Nt.Number,value:+t}}function KL(e){let t="";for(;/\d/.test(e[Mr]);)t+=e[Mr++];return t}function GL(e){let t="";for(;Mr<e.length&&ywe.test(e[Mr]);)t+=e[Mr++];return t}function Lwe(e){let t=GL(e);return e[Mr]==="("?(Mr++,{type:Nt.Function,value:t}):t==="none"?{type:Nt.None,value:void 0}:{type:Nt.Ident,value:t}}function Iwe(e=""){let t=e.trim(),r=[],n;for(Mr=0;Mr<t.length;){if(n=t[Mr++],n===`
1229
1229
  `||n===" "||n===" "){for(;Mr<t.length&&(t[Mr]===`
1230
1230
  `||t[Mr]===" "||t[Mr]===" ");)Mr++;continue}if(n===",")return;if(n===")"){r.push({type:Nt.ParenClose});continue}if(n==="+"){if(Mr--,qL(t)){r.push(E_(t));continue}return}if(n==="-"){if(Mr--,qL(t)){r.push(E_(t));continue}if(fC(t)){r.push({type:Nt.Ident,value:GL(t)});continue}return}if(n==="."){if(Mr--,qL(t)){r.push(E_(t));continue}return}if(n==="/"){for(;Mr<t.length&&(t[Mr]===`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tailwindcss/language-server",
3
3
  "description": "Tailwind CSS Language Server",
4
4
  "license": "MIT",
5
- "version": "0.0.0-insiders.437bf3a",
5
+ "version": "0.0.0-insiders.4a3c9f7",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/tailwindlabs/tailwindcss-intellisense.git",