@tailwindcss/browser 0.0.0-insiders.dbd26b9 → 0.0.0-insiders.dd1ca3c

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Jt="0.0.0-insiders.dbd26b9";function Ge(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,a=r.length;for(;a>0;){let c=(a|0)>>1,u=s+c;r[u]<=n?(s=u+1,a=a-c-1):a=c}s-=1;let m=n-r[s];return{line:s+1,column:m}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let a=r[n],m=r[n+1]??a;return Math.min(Math.max(a+s,0),m)}return{find:i,findOffset:t}}var _e=92,Ye=47,Ze=42,Qt=34,Xt=39,Li=58,Je=59,ae=10,Qe=13,Ue=32,De=9,er=123,At=125,$t=40,tr=41,ji=91,Ii=93,rr=45,Ct=64,Fi=33,se=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=Ge(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Se(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],a=null,m=null,c="",u="",h=0,d;for(let f=0;f<e.length;f++){let v=e.charCodeAt(f);if(!(v===Qe&&(d=e.charCodeAt(f+1),d===ae)))if(v===_e)c===""&&(h=f),c+=e.slice(f,f+2),f+=1;else if(v===Ye&&e.charCodeAt(f+1)===Ze){let k=f;for(let x=f+2;x<e.length;x++)if(d=e.charCodeAt(x),d===_e)x+=1;else if(d===Ze&&e.charCodeAt(x+1)===Ye){f=x+1;break}let w=e.slice(k,f+1);if(w.charCodeAt(2)===Fi){let x=Xe(w.slice(2,-2));n.push(x),i&&(x.src=[i,k,f+1],x.dst=[i,k,f+1])}}else if(v===Xt||v===Qt){let k=ir(e,f,v,i);c+=e.slice(f,k+1),f=k}else{if((v===Ue||v===ae||v===De)&&(d=e.charCodeAt(f+1))&&(d===Ue||d===ae||d===De||d===Qe&&(d=e.charCodeAt(f+2))&&d==ae))continue;if(v===ae){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==Ue&&d!==ae&&d!==De&&(c+=" ")}else if(v===rr&&e.charCodeAt(f+1)===rr&&c.length===0){let k="",w=f,x=-1;for(let C=f+2;C<e.length;C++)if(d=e.charCodeAt(C),d===_e)C+=1;else if(d===Xt||d===Qt)C=ir(e,C,d,i);else if(d===Ye&&e.charCodeAt(C+1)===Ze){for(let y=C+2;y<e.length;y++)if(d=e.charCodeAt(y),d===_e)y+=1;else if(d===Ze&&e.charCodeAt(y+1)===Ye){C=y+1;break}}else if(x===-1&&d===Li)x=c.length+C-w;else if(d===Je&&k.length===0){c+=e.slice(w,C),f=C;break}else if(d===$t)k+=")";else if(d===ji)k+="]";else if(d===er)k+="}";else if((d===At||e.length-1===C)&&k.length===0){f=C-1,c+=e.slice(w,C);break}else(d===tr||d===Ii||d===At)&&k.length>0&&e[C]===k[k.length-1]&&(k=k.slice(0,-1));let V=Tt(c,x);if(!V)throw new se("Invalid custom property, expected a value",i?[i,w,f]:null);i&&(V.src=[i,w,f],V.dst=[i,w,f]),a?a.nodes.push(V):t.push(V),c=""}else if(v===Je&&c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else if(v===Je&&u[u.length-1]!==")"){let k=Tt(c);if(!k){if(c.length===0)continue;throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null)}i&&(k.src=[i,h,f],k.dst=[i,h,f]),a?a.nodes.push(k):t.push(k),c=""}else if(v===er&&u[u.length-1]!==")")u+="}",m=Y(c.trim()),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a&&a.nodes.push(m),s.push(a),a=m,c="",m=null;else if(v===At&&u[u.length-1]!==")"){if(u==="")throw new se("Missing opening {",i?[i,f,f]:null);if(u=u.slice(0,-1),c.length>0)if(c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else{let w=c.indexOf(":");if(a){let x=Tt(c,w);if(!x)throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null);i&&(x.src=[i,h,f],x.dst=[i,h,f]),a.nodes.push(x)}}let k=s.pop()??null;k===null&&a&&t.push(a),a=k,c="",m=null}else if(v===$t)u+=")",c+="(";else if(v===tr){if(u[u.length-1]!==")")throw new se("Missing opening (",i?[i,f,f]:null);u=u.slice(0,-1),c+=")"}else{if(c.length===0&&(v===Ue||v===ae||v===De))continue;c===""&&(h=f),c+=String.fromCharCode(v)}}}if(c.charCodeAt(0)===Ct){let f=ze(c);i&&(f.src=[i,h,e.length],f.dst=[i,h,e.length]),t.push(f)}if(u.length>0&&a){if(a.kind==="rule")throw new se(`Missing closing } at ${a.selector}`,a.src?[a.src[0],a.src[1],a.src[1]]:null);if(a.kind==="at-rule")throw new se(`Missing closing } at ${a.name} ${a.params}`,a.src?[a.src[0],a.src[1],a.src[1]]:null)}return n.length>0?n.concat(t):t}function ze(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Ue||s===De||s===$t){i=e.slice(0,n),t=e.slice(n);break}}return M(i.trim(),t.trim(),r)}function Tt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return o(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function ir(e,r,i,t=null){let n;for(let s=r+1;s<e.length;s++)if(n=e.charCodeAt(s),n===_e)s+=1;else{if(n===i)return s;if(n===Je&&(e.charCodeAt(s+1)===ae||e.charCodeAt(s+1)===Qe&&e.charCodeAt(s+2)===ae))throw new se(`Unterminated string: ${e.slice(r,s+1)+String.fromCharCode(i)}`,t?[t,r,s+1]:null);if(n===ae||n===Qe&&e.charCodeAt(s+1)===ae)throw new se(`Unterminated string: ${e.slice(r,s)+String.fromCharCode(i)}`,t?[t,r,s+1]:null)}return r}function ge(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(t);continue}s+="\\"+r.charAt(t)}return s}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var nr=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function or(e,r){return(nr.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var et=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let s=this.values.get(r);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(or(s,t)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ye(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let t=nr.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!or(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${ge(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=ye(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let m of t){let c=`${n}${m}`,u=this.values.get(c);u&&(u.options&1?s[m]=u.value:s[m]=this.#t(c))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),s.value):n.startsWith(t)&&i.set(n.slice(t.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var H=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function Ke(e){return{kind:"word",value:e}}function Mi(e,r){return{kind:"function",value:e,nodes:r}}function Wi(e){return{kind:"separator",value:e}}function J(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+J(i.nodes)+")"}return r}var lr=92,Bi=41,ar=58,sr=44,qi=34,ur=61,cr=62,fr=60,pr=10,Hi=40,Gi=39,Yi=47,dr=32,mr=9;function G(e){e=e.replaceAll(`\r
1
+ "use strict";(()=>{var Jt="0.0.0-insiders.dd1ca3c";function Ge(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,a=r.length;for(;a>0;){let c=(a|0)>>1,u=s+c;r[u]<=n?(s=u+1,a=a-c-1):a=c}s-=1;let m=n-r[s];return{line:s+1,column:m}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let a=r[n],m=r[n+1]??a;return Math.min(Math.max(a+s,0),m)}return{find:i,findOffset:t}}var _e=92,Ye=47,Ze=42,Qt=34,Xt=39,Li=58,Je=59,ae=10,Qe=13,Ue=32,De=9,er=123,At=125,$t=40,tr=41,ji=91,Ii=93,rr=45,Ct=64,Fi=33,se=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=Ge(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Se(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],a=null,m=null,c="",u="",h=0,d;for(let f=0;f<e.length;f++){let v=e.charCodeAt(f);if(!(v===Qe&&(d=e.charCodeAt(f+1),d===ae)))if(v===_e)c===""&&(h=f),c+=e.slice(f,f+2),f+=1;else if(v===Ye&&e.charCodeAt(f+1)===Ze){let k=f;for(let x=f+2;x<e.length;x++)if(d=e.charCodeAt(x),d===_e)x+=1;else if(d===Ze&&e.charCodeAt(x+1)===Ye){f=x+1;break}let w=e.slice(k,f+1);if(w.charCodeAt(2)===Fi){let x=Xe(w.slice(2,-2));n.push(x),i&&(x.src=[i,k,f+1],x.dst=[i,k,f+1])}}else if(v===Xt||v===Qt){let k=ir(e,f,v,i);c+=e.slice(f,k+1),f=k}else{if((v===Ue||v===ae||v===De)&&(d=e.charCodeAt(f+1))&&(d===Ue||d===ae||d===De||d===Qe&&(d=e.charCodeAt(f+2))&&d==ae))continue;if(v===ae){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==Ue&&d!==ae&&d!==De&&(c+=" ")}else if(v===rr&&e.charCodeAt(f+1)===rr&&c.length===0){let k="",w=f,x=-1;for(let C=f+2;C<e.length;C++)if(d=e.charCodeAt(C),d===_e)C+=1;else if(d===Xt||d===Qt)C=ir(e,C,d,i);else if(d===Ye&&e.charCodeAt(C+1)===Ze){for(let y=C+2;y<e.length;y++)if(d=e.charCodeAt(y),d===_e)y+=1;else if(d===Ze&&e.charCodeAt(y+1)===Ye){C=y+1;break}}else if(x===-1&&d===Li)x=c.length+C-w;else if(d===Je&&k.length===0){c+=e.slice(w,C),f=C;break}else if(d===$t)k+=")";else if(d===ji)k+="]";else if(d===er)k+="}";else if((d===At||e.length-1===C)&&k.length===0){f=C-1,c+=e.slice(w,C);break}else(d===tr||d===Ii||d===At)&&k.length>0&&e[C]===k[k.length-1]&&(k=k.slice(0,-1));let V=Tt(c,x);if(!V)throw new se("Invalid custom property, expected a value",i?[i,w,f]:null);i&&(V.src=[i,w,f],V.dst=[i,w,f]),a?a.nodes.push(V):t.push(V),c=""}else if(v===Je&&c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else if(v===Je&&u[u.length-1]!==")"){let k=Tt(c);if(!k){if(c.length===0)continue;throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null)}i&&(k.src=[i,h,f],k.dst=[i,h,f]),a?a.nodes.push(k):t.push(k),c=""}else if(v===er&&u[u.length-1]!==")")u+="}",m=Y(c.trim()),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a&&a.nodes.push(m),s.push(a),a=m,c="",m=null;else if(v===At&&u[u.length-1]!==")"){if(u==="")throw new se("Missing opening {",i?[i,f,f]:null);if(u=u.slice(0,-1),c.length>0)if(c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else{let w=c.indexOf(":");if(a){let x=Tt(c,w);if(!x)throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null);i&&(x.src=[i,h,f],x.dst=[i,h,f]),a.nodes.push(x)}}let k=s.pop()??null;k===null&&a&&t.push(a),a=k,c="",m=null}else if(v===$t)u+=")",c+="(";else if(v===tr){if(u[u.length-1]!==")")throw new se("Missing opening (",i?[i,f,f]:null);u=u.slice(0,-1),c+=")"}else{if(c.length===0&&(v===Ue||v===ae||v===De))continue;c===""&&(h=f),c+=String.fromCharCode(v)}}}if(c.charCodeAt(0)===Ct){let f=ze(c);i&&(f.src=[i,h,e.length],f.dst=[i,h,e.length]),t.push(f)}if(u.length>0&&a){if(a.kind==="rule")throw new se(`Missing closing } at ${a.selector}`,a.src?[a.src[0],a.src[1],a.src[1]]:null);if(a.kind==="at-rule")throw new se(`Missing closing } at ${a.name} ${a.params}`,a.src?[a.src[0],a.src[1],a.src[1]]:null)}return n.length>0?n.concat(t):t}function ze(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Ue||s===De||s===$t){i=e.slice(0,n),t=e.slice(n);break}}return M(i.trim(),t.trim(),r)}function Tt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return o(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function ir(e,r,i,t=null){let n;for(let s=r+1;s<e.length;s++)if(n=e.charCodeAt(s),n===_e)s+=1;else{if(n===i)return s;if(n===Je&&(e.charCodeAt(s+1)===ae||e.charCodeAt(s+1)===Qe&&e.charCodeAt(s+2)===ae))throw new se(`Unterminated string: ${e.slice(r,s+1)+String.fromCharCode(i)}`,t?[t,r,s+1]:null);if(n===ae||n===Qe&&e.charCodeAt(s+1)===ae)throw new se(`Unterminated string: ${e.slice(r,s)+String.fromCharCode(i)}`,t?[t,r,s+1]:null)}return r}function ge(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(t);continue}s+="\\"+r.charAt(t)}return s}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var nr=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function or(e,r){return(nr.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var et=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let s=this.values.get(r);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(or(s,t)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ye(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let t=nr.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!or(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${ge(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=ye(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let m of t){let c=`${n}${m}`,u=this.values.get(c);u&&(u.options&1?s[m]=u.value:s[m]=this.#t(c))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),s.value):n.startsWith(t)&&i.set(n.slice(t.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var H=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function Ke(e){return{kind:"word",value:e}}function Mi(e,r){return{kind:"function",value:e,nodes:r}}function Wi(e){return{kind:"separator",value:e}}function J(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+J(i.nodes)+")"}return r}var lr=92,Bi=41,ar=58,sr=44,qi=34,ur=61,cr=62,fr=60,pr=10,Hi=40,Gi=39,Yi=47,dr=32,mr=9;function G(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],i=[],t=null,n="",s;for(let a=0;a<e.length;a++){let m=e.charCodeAt(a);switch(m){case lr:{n+=e[a]+e[a+1],a++;break}case Yi:{if(n.length>0){let u=Ke(n);t?t.nodes.push(u):r.push(u),n=""}let c=Ke(e[a]);t?t.nodes.push(c):r.push(c);break}case ar:case sr:case ur:case cr:case fr:case pr:case dr:case mr:{if(n.length>0){let d=Ke(n);t?t.nodes.push(d):r.push(d),n=""}let c=a,u=a+1;for(;u<e.length&&(s=e.charCodeAt(u),!(s!==ar&&s!==sr&&s!==ur&&s!==cr&&s!==fr&&s!==pr&&s!==dr&&s!==mr));u++);a=u-1;let h=Wi(e.slice(c,u));t?t.nodes.push(h):r.push(h);break}case Gi:case qi:{let c=a;for(let u=a+1;u<e.length;u++)if(s=e.charCodeAt(u),s===lr)u+=1;else if(s===m){a=u;break}n+=e.slice(c,a+1);break}case Hi:{let c=Mi(n,[]);n="",t?t.nodes.push(c):r.push(c),i.push(c),t=c;break}case Bi:{let c=i.pop();if(n.length>0){let u=Ke(n);c?.nodes.push(u),n=""}i.length>0?t=i[i.length-1]:t=null;break}default:n+=String.fromCharCode(m)}}return n.length>0&&r.push(Ke(n)),r}var St=(a=>(a[a.Continue=0]="Continue",a[a.Skip=1]="Skip",a[a.Stop=2]="Stop",a[a.Replace=3]="Replace",a[a.ReplaceSkip=4]="ReplaceSkip",a[a.ReplaceStop=5]="ReplaceStop",a))(St||{}),O={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function D(e,r){typeof r=="function"?hr(e,r):hr(e,r.enter,r.exit)}function hr(e,r=()=>O.Continue,i=()=>O.Continue){let t=[[e,0,null]],n={parent:null,depth:0,path(){let s=[];for(let a=1;a<t.length;a++){let m=t[a][2];m&&s.push(m)}return s}};for(;t.length>0;){let s=t.length-1,a=t[s],m=a[0],c=a[1],u=a[2];if(c>=m.length){t.pop();continue}if(n.parent=u,n.depth=s,c>=0){let v=m[c],k=r(v,n)??O.Continue;switch(k.kind){case 0:{v.nodes&&v.nodes.length>0&&t.push([v.nodes,0,v]),a[1]=~c;continue}case 2:return;case 1:{a[1]=~c;continue}case 3:{m.splice(c,1,...k.nodes);continue}case 5:{m.splice(c,1,...k.nodes);return}case 4:{m.splice(c,1,...k.nodes),a[1]+=k.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${St[k.kind]??`Unknown(${k.kind})`}\` in enter.`)}}let h=~c,d=m[h],f=i(d,n)??O.Continue;switch(f.kind){case 0:a[1]=h+1;continue;case 2:return;case 3:{m.splice(h,1,...f.nodes),a[1]=h+f.nodes.length;continue}case 5:{m.splice(h,1,...f.nodes);return}case 4:{m.splice(h,1,...f.nodes),a[1]=h+f.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${St[f.kind]??`Unknown(${f.kind})`}\` in exit.`)}}}function tt(e){let r=[];return D(G(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return D(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),O.Skip}),r}var Zi=64;function q(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function M(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Y(e,r=[]){return e.charCodeAt(0)===Zi?ze(e,r):q(e,r)}function o(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function Xe(e){return{kind:"comment",value:e}}function fe(e,r){return{kind:"context",context:e,nodes:r}}function F(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function Le(e){return{depth:e.depth,get context(){let r={};for(let i of e.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function Ae(e,r,i=3){let t=[],n=new Set,s=new H(()=>new Set),a=new H(()=>new Set),m=new Set,c=new Set,u=[],h=[],d=new H(()=>new Set);function f(k,w,x={},V=0){if(k.kind==="declaration"){if(k.property==="--tw-sort"||k.value===void 0||k.value===null)return;if(x.theme&&k.property[0]==="-"&&k.property[1]==="-"){if(k.value==="initial"){k.value=void 0;return}x.keyframes||s.get(w).add(k)}if(k.value.includes("var("))if(x.theme&&k.property[0]==="-"&&k.property[1]==="-")for(let C of tt(k.value))d.get(C).add(k.property);else r.trackUsedVariables(k.value);if(k.property==="animation")for(let C of gr(k.value))c.add(C);i&2&&k.value.includes("color-mix(")&&!x.supportsColorMix&&!x.keyframes&&a.get(w).add(k),w.push(k)}else if(k.kind==="rule"){let C=[];for(let R of k.nodes)f(R,C,x,V+1);let y={},K=new Set;for(let R of C){if(R.kind!=="declaration")continue;let P=`${R.property}:${R.value}:${R.important}`;y[P]??=[],y[P].push(R)}for(let R in y)for(let P=0;P<y[R].length-1;++P)K.add(y[R][P]);if(K.size>0&&(C=C.filter(R=>!K.has(R))),C.length===0)return;k.selector==="&"?w.push(...C):w.push({...k,nodes:C})}else if(k.kind==="at-rule"&&k.name==="@property"&&V===0){if(n.has(k.params))return;if(i&1){let y=k.params,K=null,R=!1;for(let L of k.nodes)L.kind==="declaration"&&(L.property==="initial-value"?K=L.value:L.property==="inherits"&&(R=L.value==="true"));let P=o(y,K??"initial");P.src=k.src,R?u.push(P):h.push(P)}n.add(k.params);let C={...k,nodes:[]};for(let y of k.nodes)f(y,C.nodes,x,V+1);w.push(C)}else if(k.kind==="at-rule"){k.name==="@keyframes"?x={...x,keyframes:!0}:k.name==="@supports"&&k.params.includes("color-mix(")&&(x={...x,supportsColorMix:!0});let C={...k,nodes:[]};for(let y of k.nodes)f(y,C.nodes,x,V+1);k.name==="@keyframes"&&x.theme&&m.add(C),(C.nodes.length>0||C.name==="@layer"||C.name==="@charset"||C.name==="@custom-media"||C.name==="@namespace"||C.name==="@import")&&w.push(C)}else if(k.kind==="at-root")for(let C of k.nodes){let y=[];f(C,y,x,0);for(let K of y)t.push(K)}else if(k.kind==="context"){if(k.context.reference)return;for(let C of k.nodes)f(C,w,{...x,...k.context},V)}else k.kind==="comment"&&w.push(k)}let v=[];for(let k of e)f(k,v,{},0);e:for(let[k,w]of s)for(let x of w){if(kr(x.property,r.theme,d)){if(x.property.startsWith(r.theme.prefixKey("--animate-")))for(let y of gr(x.value))c.add(y);continue}let C=k.indexOf(x);if(k.splice(C,1),k.length===0){let y=Ji(v,K=>K.kind==="rule"&&K.nodes===k);if(!y||y.length===0)continue e;y.unshift({kind:"at-root",nodes:v});do{let K=y.pop();if(!K)break;let R=y[y.length-1];if(!R||R.kind!=="at-root"&&R.kind!=="at-rule")break;let P=R.nodes.indexOf(K);if(P===-1)break;R.nodes.splice(P,1)}while(!0);continue e}}for(let k of m)if(!c.has(k.params)){let w=t.indexOf(k);t.splice(w,1)}if(v=v.concat(t),i&2)for(let[k,w]of a)for(let x of w){let V=k.indexOf(x);if(V===-1||x.value==null)continue;let C=G(x.value),y=!1;if(D(C,P=>{if(P.kind!=="function"||P.value!=="color-mix")return;let L=!1,U=!1;if(D(P.nodes,j=>{if(j.kind=="word"&&j.value.toLowerCase()==="currentcolor"){U=!0,y=!0;return}let W=j,B=null,ne=new Set;do{if(W.kind!=="function"||W.value!=="var")return;let le=W.nodes[0];if(!le||le.kind!=="word")return;let l=le.value;if(ne.has(l)){L=!0;return}if(ne.add(l),y=!0,B=r.theme.resolveValue(null,[le.value]),!B){L=!0;return}if(B.toLowerCase()==="currentcolor"){U=!0;return}B.startsWith("var(")?W=G(B)[0]:W=null}while(W);return O.Replace({kind:"word",value:B})}),L||U){let j=P.nodes.findIndex(B=>B.kind==="separator"&&B.value.trim().includes(","));if(j===-1)return;let W=P.nodes.length>j?P.nodes[j+1]:null;return W?O.Replace(W):void 0}else if(y){let j=P.nodes[2];j.kind==="word"&&(j.value==="oklab"||j.value==="oklch"||j.value==="lab"||j.value==="lch")&&(j.value="srgb")}}),!y)continue;let K={...x,value:J(C)},R=Y("@supports (color: color-mix(in lab, red, red))",[x]);R.src=x.src,k.splice(V,1,K,R)}if(i&1){let k=[];if(u.length>0){let w=Y(":root, :host",u);w.src=u[0].src,k.push(w)}if(h.length>0){let w=Y("*, ::before, ::after, ::backdrop",h);w.src=h[0].src,k.push(w)}if(k.length>0){let w=v.findIndex(C=>!(C.kind==="comment"||C.kind==="at-rule"&&(C.name==="@charset"||C.name==="@import"))),x=M("@layer","properties",[]);x.src=k[0].src,v.splice(w<0?v.length:w,0,x);let V=Y("@layer properties",[M("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",k)]);V.src=k[0].src,V.nodes[0].src=k[0].src,v.push(V)}}return v}function oe(e,r){let i=0,t={file:null,code:""};function n(a,m=0){let c="",u=" ".repeat(m);if(a.kind==="declaration"){if(c+=`${u}${a.property}: ${a.value}${a.important?" !important":""};
4
4
  `,r){i+=u.length;let h=i;i+=a.property.length,i+=2,i+=a.value?.length??0,a.important&&(i+=11);let d=i;i+=2,a.dst=[t,h,d]}}else if(a.kind==="rule"){if(c+=`${u}${a.selector} {
@@ -28,7 +28,7 @@ Using an object as a plugin option is currently only supported in JavaScript con
28
28
  ${JSON.stringify(w,null,2)}
29
29
 
30
30
  This feature is not currently supported.`);let x=!1;w.pattern[0]=="!"&&(x=!0,w.pattern=w.pattern.slice(1)),t.push({...w,negated:x})}return a}function Ni({ast:e}){let r=new H(n=>Ge(n.code)),i=new H(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};D(e,n=>{if(!n.src||!n.dst)return;let s=i.get(n.src[0]);if(!s.content)return;let a=r.get(n.src[0]),m=r.get(n.dst[0]),c=s.content.slice(n.src[1],n.src[2]),u=0;for(let f of c.split(`
31
- `)){if(f.trim()!==""){let v=a.find(n.src[1]+u),k=m.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:s,...v},generatedPosition:k})}u+=f.length,u+=1}let h=a.find(n.src[2]),d=m.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:s,...h},generatedPosition:d})});for(let n of r.keys())t.sources.push(i.get(n));return t.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),t}var Si=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function vt(e){let r=e.indexOf("{");if(r===-1)return[e];let i=[],t=e.slice(0,r),n=e.slice(r),s=0,a=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let f=n[d];if(f==="{")s++;else if(f==="}"&&(s--,s===0)){a=d;break}}if(a===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let m=n.slice(1,a),c=n.slice(a+1),u;yn(m)?u=xn(m):u=z(m,","),u=u.flatMap(d=>vt(d));let h=vt(c);for(let d of h)for(let f of u)i.push(t+f+d);return i}function yn(e){return Si.test(e)}function xn(e){let r=e.match(Si);if(!r)return[e];let[,i,t,n]=r,s=n?parseInt(n,10):void 0,a=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(t)){let m=parseInt(i,10),c=parseInt(t,10);if(s===void 0&&(s=m<=c?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let u=m<c;u&&s<0&&(s=-s),!u&&s>0&&(s=-s);for(let h=m;u?h<=c:h>=c;h+=s)a.push(h.toString())}return a}function Ei(e,r){let i=new Set,t=new Set,n=[];function s(a,m=[]){if(e.has(a)&&!i.has(a)){t.has(a)&&r.onCircularDependency?.(m,a),t.add(a);for(let c of e.get(a)??[])m.push(a),s(c,m),m.pop();i.add(a),t.delete(a),n.push(a)}}for(let a of e.keys())s(a);return n}var An=/^[a-z]+$/;function Cn(){throw new Error("No `loadModule` function provided to `compile`")}function Tn(){throw new Error("No `loadStylesheet` function provided to `compile`")}function $n(e){let r=0,i=null;for(let t of z(e," "))t==="reference"?r|=2:t==="inline"?r|=1:t==="default"?r|=4:t==="static"?r|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(i=t.slice(7,-1));return[r,i]}async function Nn(e,{base:r="",from:i,loadModule:t=Cn,loadStylesheet:n=Tn}={}){let s=0;e=[fe({base:r},e)],s|=await Wt(e,r,n,0,i!==void 0);let a=null,m=new et,c=new Map,u=new Map,h=[],d=null,f=null,v=[],k=[],w=[],x=[],V=null;D(e,(y,K)=>{if(y.kind!=="at-rule")return;let R=Le(K);if(y.name==="@tailwind"&&(y.params==="utilities"||y.params.startsWith("utilities"))){if(f!==null)return O.Replace([]);if(R.context.reference)return O.Replace([]);let P=z(y.params," ");for(let L of P)if(L.startsWith("source(")){let U=L.slice(7,-1);if(U==="none"){V=U;continue}if(U[0]==='"'&&U[U.length-1]!=='"'||U[0]==="'"&&U[U.length-1]!=="'"||U[0]!=="'"&&U[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");V={base:R.context.sourceBase??R.context.base,pattern:U.slice(1,-1)}}f=y,s|=16}if(y.name==="@utility"){if(R.parent!==null)throw new Error("`@utility` cannot be nested.");if(y.nodes.length===0)throw new Error(`\`@utility ${y.params}\` is empty. Utilities should include at least one property.`);let P=Dr(y);if(P===null){if(!y.params.endsWith("-*")){if(y.params.endsWith("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(y.params.includes("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}h.push(P)}if(y.name==="@source"){if(y.nodes.length>0)throw new Error("`@source` cannot have a body.");if(R.parent!==null)throw new Error("`@source` cannot be nested.");let P=!1,L=!1,U=y.params;if(U[0]==="n"&&U.startsWith("not ")&&(P=!0,U=U.slice(4)),U[0]==="i"&&U.startsWith("inline(")&&(L=!0,U=U.slice(7,-1).trim()),U[0]==='"'&&U[U.length-1]!=='"'||U[0]==="'"&&U[U.length-1]!=="'"||U[0]!=="'"&&U[0]!=='"')throw new Error("`@source` paths must be quoted.");let j=U.slice(1,-1);if(L){let W=P?x:w,B=z(j," ");for(let ne of B)for(let le of vt(ne))W.push(le)}else k.push({base:R.context.base,pattern:j,negated:P});return O.ReplaceSkip([])}if(y.name==="@variant"&&(R.parent===null?y.nodes.length===0?y.name="@custom-variant":(D(y.nodes,P=>{if(P.kind==="at-rule"&&P.name==="@slot")return y.name="@custom-variant",O.Stop}),y.name==="@variant"&&v.push(y)):v.push(y)),y.name==="@custom-variant"){if(R.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[P,L]=z(y.params," ");if(!ct.test(P))throw new Error(`\`@custom-variant ${P}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(y.nodes.length>0&&L)throw new Error(`\`@custom-variant ${P}\` cannot have both a selector and a body.`);if(y.nodes.length===0){if(!L)throw new Error(`\`@custom-variant ${P}\` has no selector or body.`);let U=z(L.slice(1,-1),",");if(U.length===0||U.some(B=>B.trim()===""))throw new Error(`\`@custom-variant ${P} (${U.join(",")})\` selector is invalid.`);let j=[],W=[];for(let B of U)B=B.trim(),B[0]==="@"?j.push(B):W.push(B);c.set(P,B=>{B.variants.static(P,ne=>{let le=[];W.length>0&&le.push(q(W.join(", "),ne.nodes));for(let l of j)le.push(Y(l,ne.nodes));ne.nodes=le},{compounds:$e([...W,...j])})}),u.set(P,new Set)}else{let U=new Set;D(y.nodes,j=>{j.kind==="at-rule"&&j.name==="@variant"&&U.add(j.params)}),c.set(P,j=>{j.variants.fromAst(P,y.nodes,j)}),u.set(P,U)}return O.ReplaceSkip([])}if(y.name==="@media"){let P=z(y.params," "),L=[];for(let U of P)if(U.startsWith("source(")){let j=U.slice(7,-1);D(y.nodes,W=>{if(W.kind==="at-rule"&&W.name==="@tailwind"&&W.params==="utilities")return W.params+=` source(${j})`,O.ReplaceStop([fe({sourceBase:R.context.base},[W])])})}else if(U.startsWith("theme(")){let j=U.slice(6,-1),W=j.includes("reference");D(y.nodes,B=>{if(B.kind!=="context"){if(B.kind!=="at-rule"){if(W)throw new Error('Files imported with `@import "\u2026" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "\u2026";` instead.');return O.Continue}if(B.name==="@theme")return B.params+=" "+j,O.Skip}})}else if(U.startsWith("prefix(")){let j=U.slice(7,-1);D(y.nodes,W=>{if(W.kind==="at-rule"&&W.name==="@theme")return W.params+=` prefix(${j})`,O.Skip})}else U==="important"?a=!0:U==="reference"?y.nodes=[fe({reference:!0},y.nodes)]:L.push(U);if(L.length>0)y.params=L.join(" ");else if(P.length>0)return O.Replace(y.nodes);return O.Continue}if(y.name==="@theme"){let[P,L]=$n(y.params);if(s|=64,R.context.reference&&(P|=2),L){if(!An.test(L))throw new Error(`The prefix "${L}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);m.prefix=L}return D(y.nodes,U=>{if(U.kind==="at-rule"&&U.name==="@keyframes")return m.addKeyframes(U),O.Skip;if(U.kind==="comment")return;if(U.kind==="declaration"&&U.property.startsWith("--")){m.add(ye(U.property),U.value??"",P,U.src);return}let j=oe([M(y.name,y.params,[U])]).split(`
31
+ `)){if(f.trim()!==""){let v=a.find(n.src[1]+u),k=m.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:s,...v},generatedPosition:k})}u+=f.length,u+=1}let h=a.find(n.src[2]),d=m.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:s,...h},generatedPosition:d})});for(let n of r.keys())t.sources.push(i.get(n));return t.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),t}var Si=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function vt(e){let r=e.indexOf("{");if(r===-1)return[e];let i=[],t=e.slice(0,r),n=e.slice(r),s=0,a=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let f=n[d];if(f==="{")s++;else if(f==="}"&&(s--,s===0)){a=d;break}}if(a===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let m=n.slice(1,a),c=n.slice(a+1),u;yn(m)?u=xn(m):u=z(m,","),u=u.flatMap(d=>vt(d));let h=vt(c);for(let d of h)for(let f of u)i.push(t+f+d);return i}function yn(e){return Si.test(e)}function xn(e){let r=e.match(Si);if(!r)return[e];let[,i,t,n]=r,s=n?parseInt(n,10):void 0,a=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(t)){let m=parseInt(i,10),c=parseInt(t,10);if(s===void 0&&(s=m<=c?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let u=m<c;u&&s<0&&(s=-s),!u&&s>0&&(s=-s);for(let h=m;u?h<=c:h>=c;h+=s)a.push(h.toString())}return a}function Ei(e,r){let i=new Set,t=new Set,n=[];function s(a,m=[]){if(e.has(a)&&!i.has(a)){t.has(a)&&r.onCircularDependency?.(m,a),t.add(a);for(let c of e.get(a)??[])m.push(a),s(c,m),m.pop();i.add(a),t.delete(a),n.push(a)}}for(let a of e.keys())s(a);return n}var An=/^[a-z]+$/;function Cn(){throw new Error("No `loadModule` function provided to `compile`")}function Tn(){throw new Error("No `loadStylesheet` function provided to `compile`")}function $n(e){let r=0,i=null;for(let t of z(e," "))t==="reference"?r|=2:t==="inline"?r|=1:t==="default"?r|=4:t==="static"?r|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(i=t.slice(7,-1));return[r,i]}async function Nn(e,{base:r="",from:i,loadModule:t=Cn,loadStylesheet:n=Tn}={}){let s=0;e=[fe({base:r},e)],s|=await Wt(e,r,n,0,i!==void 0);let a=null,m=new et,c=new Map,u=new Map,h=[],d=null,f=null,v=[],k=[],w=[],x=[],V=null;D(e,(y,K)=>{if(y.kind!=="at-rule")return;let R=Le(K);if(y.name==="@tailwind"&&(y.params==="utilities"||y.params.startsWith("utilities"))){if(f!==null)return O.Replace([]);if(R.context.reference)return O.Replace([]);let P=z(y.params," ");for(let L of P)if(L.startsWith("source(")){let U=L.slice(7,-1);if(U==="none"){V=U;continue}if(U[0]==='"'&&U[U.length-1]!=='"'||U[0]==="'"&&U[U.length-1]!=="'"||U[0]!=="'"&&U[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");V={base:R.context.sourceBase??R.context.base,pattern:U.slice(1,-1)}}f=y,s|=16}if(y.name==="@utility"){if(R.parent!==null)throw new Error("`@utility` cannot be nested.");if(y.nodes.length===0)throw new Error(`\`@utility ${y.params}\` is empty. Utilities should include at least one property.`);let P=Dr(y);if(P===null){if(!y.params.endsWith("-*")){if(y.params.endsWith("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(y.params.includes("*"))throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${y.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}h.push(P)}if(y.name==="@source"){if(y.nodes.length>0)throw new Error("`@source` cannot have a body.");if(R.parent!==null)throw new Error("`@source` cannot be nested.");let P=!1,L=!1,U=y.params;if(U[0]==="n"&&U.startsWith("not ")&&(P=!0,U=U.slice(4)),U[0]==="i"&&U.startsWith("inline(")&&(L=!0,U=U.slice(7,-1)),U[0]==='"'&&U[U.length-1]!=='"'||U[0]==="'"&&U[U.length-1]!=="'"||U[0]!=="'"&&U[0]!=='"')throw new Error("`@source` paths must be quoted.");let j=U.slice(1,-1);if(L){let W=P?x:w,B=z(j," ");for(let ne of B)for(let le of vt(ne))W.push(le)}else k.push({base:R.context.base,pattern:j,negated:P});return O.ReplaceSkip([])}if(y.name==="@variant"&&(R.parent===null?y.nodes.length===0?y.name="@custom-variant":(D(y.nodes,P=>{if(P.kind==="at-rule"&&P.name==="@slot")return y.name="@custom-variant",O.Stop}),y.name==="@variant"&&v.push(y)):v.push(y)),y.name==="@custom-variant"){if(R.parent!==null)throw new Error("`@custom-variant` cannot be nested.");let[P,L]=z(y.params," ");if(!ct.test(P))throw new Error(`\`@custom-variant ${P}\` defines an invalid variant name. Variants should only contain alphanumeric, dashes, or underscore characters and start with a lowercase letter or number.`);if(y.nodes.length>0&&L)throw new Error(`\`@custom-variant ${P}\` cannot have both a selector and a body.`);if(y.nodes.length===0){if(!L)throw new Error(`\`@custom-variant ${P}\` has no selector or body.`);let U=z(L.slice(1,-1),",");if(U.length===0||U.some(B=>B.trim()===""))throw new Error(`\`@custom-variant ${P} (${U.join(",")})\` selector is invalid.`);let j=[],W=[];for(let B of U)B=B.trim(),B[0]==="@"?j.push(B):W.push(B);c.set(P,B=>{B.variants.static(P,ne=>{let le=[];W.length>0&&le.push(q(W.join(", "),ne.nodes));for(let l of j)le.push(Y(l,ne.nodes));ne.nodes=le},{compounds:$e([...W,...j])})}),u.set(P,new Set)}else{let U=new Set;D(y.nodes,j=>{j.kind==="at-rule"&&j.name==="@variant"&&U.add(j.params)}),c.set(P,j=>{j.variants.fromAst(P,y.nodes,j)}),u.set(P,U)}return O.ReplaceSkip([])}if(y.name==="@media"){let P=z(y.params," "),L=[];for(let U of P)if(U.startsWith("source(")){let j=U.slice(7,-1);D(y.nodes,W=>{if(W.kind==="at-rule"&&W.name==="@tailwind"&&W.params==="utilities")return W.params+=` source(${j})`,O.ReplaceStop([fe({sourceBase:R.context.base},[W])])})}else if(U.startsWith("theme(")){let j=U.slice(6,-1),W=j.includes("reference");D(y.nodes,B=>{if(B.kind!=="context"){if(B.kind!=="at-rule"){if(W)throw new Error('Files imported with `@import "\u2026" theme(reference)` must only contain `@theme` blocks.\nUse `@reference "\u2026";` instead.');return O.Continue}if(B.name==="@theme")return B.params+=" "+j,O.Skip}})}else if(U.startsWith("prefix(")){let j=U.slice(7,-1);D(y.nodes,W=>{if(W.kind==="at-rule"&&W.name==="@theme")return W.params+=` prefix(${j})`,O.Skip})}else U==="important"?a=!0:U==="reference"?y.nodes=[fe({reference:!0},y.nodes)]:L.push(U);if(L.length>0)y.params=L.join(" ");else if(P.length>0)return O.Replace(y.nodes);return O.Continue}if(y.name==="@theme"){let[P,L]=$n(y.params);if(s|=64,R.context.reference&&(P|=2),L){if(!An.test(L))throw new Error(`The prefix "${L}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);m.prefix=L}return D(y.nodes,U=>{if(U.kind==="at-rule"&&U.name==="@keyframes")return m.addKeyframes(U),O.Skip;if(U.kind==="comment")return;if(U.kind==="declaration"&&U.property.startsWith("--")){m.add(ye(U.property),U.value??"",P,U.src);return}let j=oe([M(y.name,y.params,[U])]).split(`
32
32
  `).map((W,B,ne)=>`${B===0||B>=ne.length-2?" ":">"} ${W}`).join(`
33
33
  `);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
34
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/browser",
3
- "version": "0.0.0-insiders.dbd26b9",
3
+ "version": "0.0.0-insiders.dd1ca3c",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.global.js",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "h3": "^1.15.4",
28
28
  "listhen": "^1.9.0",
29
- "tailwindcss": "0.0.0-insiders.dbd26b9"
29
+ "tailwindcss": "0.0.0-insiders.dd1ca3c"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",