@tailwindcss/browser 4.1.10 → 4.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Gt="4.1.10";var Pe=92,We=47,qe=42,Yt=34,Zt=39,Uo=58,Ge=59,ne=10,Ye=13,Oe=32,He=9,Jt=123,bt=125,At=40,Qt=41,Do=91,zo=93,Xt=45,yt=64,Ko=33;function Ne(t,r){let o=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],i=[],s=[],a=null,f=null,u="",c="",p=0,m;for(let g=0;g<t.length;g++){let v=t.charCodeAt(g);if(!(v===Ye&&(m=t.charCodeAt(g+1),m===ne)))if(v===Pe)u===""&&(p=g),u+=t.slice(g,g+2),g+=1;else if(v===We&&t.charCodeAt(g+1)===qe){let k=g;for(let y=g+2;y<t.length;y++)if(m=t.charCodeAt(y),m===Pe)y+=1;else if(m===qe&&t.charCodeAt(y+1)===We){g=y+1;break}let x=t.slice(k,g+1);if(x.charCodeAt(2)===Ko){let y=Ze(x.slice(2,-2));i.push(y),o&&(y.src=[o,k,g+1],y.dst=[o,k,g+1])}}else if(v===Zt||v===Yt){let k=er(t,g,v);u+=t.slice(g,k+1),g=k}else{if((v===Oe||v===ne||v===He)&&(m=t.charCodeAt(g+1))&&(m===Oe||m===ne||m===He||m===Ye&&(m=t.charCodeAt(g+2))&&m==ne))continue;if(v===ne){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==Oe&&m!==ne&&m!==He&&(u+=" ")}else if(v===Xt&&t.charCodeAt(g+1)===Xt&&u.length===0){let k="",x=g,y=-1;for(let b=g+2;b<t.length;b++)if(m=t.charCodeAt(b),m===Pe)b+=1;else if(m===Zt||m===Yt)b=er(t,b,m);else if(m===We&&t.charCodeAt(b+1)===qe){for(let V=b+2;V<t.length;V++)if(m=t.charCodeAt(V),m===Pe)V+=1;else if(m===qe&&t.charCodeAt(V+1)===We){b=V+1;break}}else if(y===-1&&m===Uo)y=u.length+b-x;else if(m===Ge&&k.length===0){u+=t.slice(x,b),g=b;break}else if(m===At)k+=")";else if(m===Do)k+="]";else if(m===Jt)k+="}";else if((m===bt||t.length-1===b)&&k.length===0){g=b-1,u+=t.slice(x,b);break}else(m===Qt||m===zo||m===bt)&&k.length>0&&t[b]===k[k.length-1]&&(k=k.slice(0,-1));let $=xt(u,y);if(!$)throw new Error("Invalid custom property, expected a value");o&&($.src=[o,x,g],$.dst=[o,x,g]),a?a.nodes.push($):e.push($),u=""}else if(v===Ge&&u.charCodeAt(0)===yt)f=_e(u),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else if(v===Ge&&c[c.length-1]!==")"){let k=xt(u);if(!k)throw u.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${u.trim()}\``);o&&(k.src=[o,p,g],k.dst=[o,p,g]),a?a.nodes.push(k):e.push(k),u=""}else if(v===Jt&&c[c.length-1]!==")")c+="}",f=G(u.trim()),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a&&a.nodes.push(f),s.push(a),a=f,u="",f=null;else if(v===bt&&c[c.length-1]!==")"){if(c==="")throw new Error("Missing opening {");if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===yt)f=_e(u),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else{let x=u.indexOf(":");if(a){let y=xt(u,x);if(!y)throw new Error(`Invalid declaration: \`${u.trim()}\``);o&&(y.src=[o,p,g],y.dst=[o,p,g]),a.nodes.push(y)}}let k=s.pop()??null;k===null&&a&&e.push(a),a=k,u="",f=null}else if(v===At)c+=")",u+="(";else if(v===Qt){if(c[c.length-1]!==")")throw new Error("Missing opening (");c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(v===Oe||v===ne||v===He))continue;u===""&&(p=g),u+=String.fromCharCode(v)}}}if(u.charCodeAt(0)===yt){let g=_e(u);o&&(g.src=[o,p,t.length],g.dst=[o,p,t.length]),e.push(g)}if(c.length>0&&a){if(a.kind==="rule")throw new Error(`Missing closing } at ${a.selector}`);if(a.kind==="at-rule")throw new Error(`Missing closing } at ${a.name} ${a.params}`)}return i.length>0?i.concat(e):e}function _e(t,r=[]){let o=t,e="";for(let i=5;i<t.length;i++){let s=t.charCodeAt(i);if(s===Oe||s===At){o=t.slice(0,i),e=t.slice(i);break}}return F(o.trim(),e.trim(),r)}function xt(t,r=t.indexOf(":")){if(r===-1)return null;let o=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,o===-1?t.length:o).trim(),o!==-1)}function er(t,r,o){let e;for(let i=r+1;i<t.length;i++)if(e=t.charCodeAt(i),e===Pe)i+=1;else{if(e===o)return i;if(e===Ge&&(t.charCodeAt(i+1)===ne||t.charCodeAt(i+1)===Ye&&t.charCodeAt(i+2)===ne))throw new Error(`Unterminated string: ${t.slice(r,i+1)+String.fromCharCode(o)}`);if(e===ne||e===Ye&&t.charCodeAt(i+1)===ne)throw new Error(`Unterminated string: ${t.slice(r,i)+String.fromCharCode(o)}`)}return r}function me(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),o=r.length,e=-1,i,s="",a=r.charCodeAt(0);if(o===1&&a===45)return"\\"+r;for(;++e<o;){if(i=r.charCodeAt(e),i===0){s+="\uFFFD";continue}if(i>=1&&i<=31||i===127||e===0&&i>=48&&i<=57||e===1&&i>=48&&i<=57&&a===45){s+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function ve(t){return t.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 rr=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"]]]);function tr(t,r){return(rr.get(r)??[]).some(o=>t===o||t.startsWith(`${o}-`))}var Je=class{constructor(r=new Map,o=new Set([])){this.values=r;this.keyframes=o}prefix=null;get size(){return this.values.size}add(r,o,e=0,i){if(r.endsWith("-*")){if(o!=="initial")throw new Error(`Invalid theme value \`${o}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let s=this.values.get(r);if(s&&!(s.options&4))return}o==="initial"?this.values.delete(r):this.values.set(r,{value:o,options:e,src:i})}keysInNamespaces(r){let o=[];for(let e of r){let i=`${e}-`;for(let s of this.values.keys())s.startsWith(i)&&s.indexOf("--",2)===-1&&(tr(s,e)||o.push(s.slice(i.length)))}return o}get(r){for(let o of r){let e=this.values.get(o);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ve(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,o){let e=rr.get(r)??[];e:for(let i of this.values.keys())if(i.startsWith(r)){if(o!==0&&(this.getOptions(i)&o)!==o)continue;for(let s of e)if(i.startsWith(s))continue e;this.values.delete(i)}}#e(r,o){for(let e of o){let i=r!==null?`${e}-${r}`:e;if(!this.values.has(i))if(r!==null&&r.includes(".")){if(i=`${e}-${r.replaceAll(".","_")}`,!this.values.has(i))continue}else continue;if(!tr(i,e))return i}return null}#t(r){let o=this.values.get(r);if(!o)return null;let e=null;return o.options&2&&(e=o.value),`var(${me(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let o=ve(this.#r(r)),e=this.values.get(o);if(!e)return!1;let i=e.options&16;return e.options|=16,!i}resolve(r,o,e=0){let i=this.#e(r,o);if(!i)return null;let s=this.values.get(i);return(e|s.options)&1?s.value:this.#t(i)}resolveValue(r,o){let e=this.#e(r,o);return e?this.values.get(e).value:null}resolveWith(r,o,e=[]){let i=this.#e(r,o);if(!i)return null;let s={};for(let f of e){let u=`${i}${f}`,c=this.values.get(u);c&&(c.options&1?s[f]=c.value:s[f]=this.#t(u))}let a=this.values.get(i);return a.options&1?[a.value,s]:[this.#t(i),s]}namespace(r){let o=new Map,e=`${r}-`;for(let[i,s]of this.values)i===r?o.set(null,s.value):i.startsWith(`${e}-`)?o.set(i.slice(r.length),s.value):i.startsWith(e)&&o.set(i.slice(e.length),s.value);return o}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var W=class extends Map{constructor(o){super();this.factory=o}get(o){let e=super.get(o);return e===void 0&&(e=this.factory(o,this),this.set(o,e)),e}};function Nt(t){return{kind:"word",value:t}}function Lo(t,r){return{kind:"function",value:t,nodes:r}}function jo(t){return{kind:"separator",value:t}}function ee(t,r,o=null){for(let e=0;e<t.length;e++){let i=t[e],s=!1,a=0,f=r(i,{parent:o,replaceWith(u){s||(s=!0,Array.isArray(u)?u.length===0?(t.splice(e,1),a=0):u.length===1?(t[e]=u[0],a=1):(t.splice(e,1,...u),a=u.length):t[e]=u)}})??0;if(s){f===0?e--:e+=a-1;continue}if(f===2)return 2;if(f!==1&&i.kind==="function"&&ee(i.nodes,r,i)===2)return 2}}function Z(t){let r="";for(let o of t)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+Z(o.nodes)+")"}return r}var or=92,Io=41,ir=58,nr=44,Fo=34,lr=61,ar=62,sr=60,ur=10,Mo=40,Bo=39,cr=47,fr=32,dr=9;function q(t){t=t.replaceAll(`\r
1
+ "use strict";(()=>{var Gt="4.1.11";var Pe=92,We=47,qe=42,Yt=34,Zt=39,Uo=58,Ge=59,ne=10,Ye=13,Oe=32,He=9,Jt=123,bt=125,At=40,Qt=41,Do=91,zo=93,Xt=45,yt=64,Ko=33;function Ne(t,r){let o=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],i=[],s=[],a=null,f=null,u="",c="",p=0,m;for(let g=0;g<t.length;g++){let v=t.charCodeAt(g);if(!(v===Ye&&(m=t.charCodeAt(g+1),m===ne)))if(v===Pe)u===""&&(p=g),u+=t.slice(g,g+2),g+=1;else if(v===We&&t.charCodeAt(g+1)===qe){let k=g;for(let y=g+2;y<t.length;y++)if(m=t.charCodeAt(y),m===Pe)y+=1;else if(m===qe&&t.charCodeAt(y+1)===We){g=y+1;break}let x=t.slice(k,g+1);if(x.charCodeAt(2)===Ko){let y=Ze(x.slice(2,-2));i.push(y),o&&(y.src=[o,k,g+1],y.dst=[o,k,g+1])}}else if(v===Zt||v===Yt){let k=er(t,g,v);u+=t.slice(g,k+1),g=k}else{if((v===Oe||v===ne||v===He)&&(m=t.charCodeAt(g+1))&&(m===Oe||m===ne||m===He||m===Ye&&(m=t.charCodeAt(g+2))&&m==ne))continue;if(v===ne){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==Oe&&m!==ne&&m!==He&&(u+=" ")}else if(v===Xt&&t.charCodeAt(g+1)===Xt&&u.length===0){let k="",x=g,y=-1;for(let b=g+2;b<t.length;b++)if(m=t.charCodeAt(b),m===Pe)b+=1;else if(m===Zt||m===Yt)b=er(t,b,m);else if(m===We&&t.charCodeAt(b+1)===qe){for(let V=b+2;V<t.length;V++)if(m=t.charCodeAt(V),m===Pe)V+=1;else if(m===qe&&t.charCodeAt(V+1)===We){b=V+1;break}}else if(y===-1&&m===Uo)y=u.length+b-x;else if(m===Ge&&k.length===0){u+=t.slice(x,b),g=b;break}else if(m===At)k+=")";else if(m===Do)k+="]";else if(m===Jt)k+="}";else if((m===bt||t.length-1===b)&&k.length===0){g=b-1,u+=t.slice(x,b);break}else(m===Qt||m===zo||m===bt)&&k.length>0&&t[b]===k[k.length-1]&&(k=k.slice(0,-1));let $=xt(u,y);if(!$)throw new Error("Invalid custom property, expected a value");o&&($.src=[o,x,g],$.dst=[o,x,g]),a?a.nodes.push($):e.push($),u=""}else if(v===Ge&&u.charCodeAt(0)===yt)f=_e(u),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else if(v===Ge&&c[c.length-1]!==")"){let k=xt(u);if(!k)throw u.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${u.trim()}\``);o&&(k.src=[o,p,g],k.dst=[o,p,g]),a?a.nodes.push(k):e.push(k),u=""}else if(v===Jt&&c[c.length-1]!==")")c+="}",f=G(u.trim()),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a&&a.nodes.push(f),s.push(a),a=f,u="",f=null;else if(v===bt&&c[c.length-1]!==")"){if(c==="")throw new Error("Missing opening {");if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===yt)f=_e(u),o&&(f.src=[o,p,g],f.dst=[o,p,g]),a?a.nodes.push(f):e.push(f),u="",f=null;else{let x=u.indexOf(":");if(a){let y=xt(u,x);if(!y)throw new Error(`Invalid declaration: \`${u.trim()}\``);o&&(y.src=[o,p,g],y.dst=[o,p,g]),a.nodes.push(y)}}let k=s.pop()??null;k===null&&a&&e.push(a),a=k,u="",f=null}else if(v===At)c+=")",u+="(";else if(v===Qt){if(c[c.length-1]!==")")throw new Error("Missing opening (");c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(v===Oe||v===ne||v===He))continue;u===""&&(p=g),u+=String.fromCharCode(v)}}}if(u.charCodeAt(0)===yt){let g=_e(u);o&&(g.src=[o,p,t.length],g.dst=[o,p,t.length]),e.push(g)}if(c.length>0&&a){if(a.kind==="rule")throw new Error(`Missing closing } at ${a.selector}`);if(a.kind==="at-rule")throw new Error(`Missing closing } at ${a.name} ${a.params}`)}return i.length>0?i.concat(e):e}function _e(t,r=[]){let o=t,e="";for(let i=5;i<t.length;i++){let s=t.charCodeAt(i);if(s===Oe||s===At){o=t.slice(0,i),e=t.slice(i);break}}return F(o.trim(),e.trim(),r)}function xt(t,r=t.indexOf(":")){if(r===-1)return null;let o=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,o===-1?t.length:o).trim(),o!==-1)}function er(t,r,o){let e;for(let i=r+1;i<t.length;i++)if(e=t.charCodeAt(i),e===Pe)i+=1;else{if(e===o)return i;if(e===Ge&&(t.charCodeAt(i+1)===ne||t.charCodeAt(i+1)===Ye&&t.charCodeAt(i+2)===ne))throw new Error(`Unterminated string: ${t.slice(r,i+1)+String.fromCharCode(o)}`);if(e===ne||e===Ye&&t.charCodeAt(i+1)===ne)throw new Error(`Unterminated string: ${t.slice(r,i)+String.fromCharCode(o)}`)}return r}function me(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),o=r.length,e=-1,i,s="",a=r.charCodeAt(0);if(o===1&&a===45)return"\\"+r;for(;++e<o;){if(i=r.charCodeAt(e),i===0){s+="\uFFFD";continue}if(i>=1&&i<=31||i===127||e===0&&i>=48&&i<=57||e===1&&i>=48&&i<=57&&a===45){s+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function ve(t){return t.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 rr=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"]]]);function tr(t,r){return(rr.get(r)??[]).some(o=>t===o||t.startsWith(`${o}-`))}var Je=class{constructor(r=new Map,o=new Set([])){this.values=r;this.keyframes=o}prefix=null;get size(){return this.values.size}add(r,o,e=0,i){if(r.endsWith("-*")){if(o!=="initial")throw new Error(`Invalid theme value \`${o}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let s=this.values.get(r);if(s&&!(s.options&4))return}o==="initial"?this.values.delete(r):this.values.set(r,{value:o,options:e,src:i})}keysInNamespaces(r){let o=[];for(let e of r){let i=`${e}-`;for(let s of this.values.keys())s.startsWith(i)&&s.indexOf("--",2)===-1&&(tr(s,e)||o.push(s.slice(i.length)))}return o}get(r){for(let o of r){let e=this.values.get(o);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ve(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,o){let e=rr.get(r)??[];e:for(let i of this.values.keys())if(i.startsWith(r)){if(o!==0&&(this.getOptions(i)&o)!==o)continue;for(let s of e)if(i.startsWith(s))continue e;this.values.delete(i)}}#e(r,o){for(let e of o){let i=r!==null?`${e}-${r}`:e;if(!this.values.has(i))if(r!==null&&r.includes(".")){if(i=`${e}-${r.replaceAll(".","_")}`,!this.values.has(i))continue}else continue;if(!tr(i,e))return i}return null}#t(r){let o=this.values.get(r);if(!o)return null;let e=null;return o.options&2&&(e=o.value),`var(${me(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let o=ve(this.#r(r)),e=this.values.get(o);if(!e)return!1;let i=e.options&16;return e.options|=16,!i}resolve(r,o,e=0){let i=this.#e(r,o);if(!i)return null;let s=this.values.get(i);return(e|s.options)&1?s.value:this.#t(i)}resolveValue(r,o){let e=this.#e(r,o);return e?this.values.get(e).value:null}resolveWith(r,o,e=[]){let i=this.#e(r,o);if(!i)return null;let s={};for(let f of e){let u=`${i}${f}`,c=this.values.get(u);c&&(c.options&1?s[f]=c.value:s[f]=this.#t(u))}let a=this.values.get(i);return a.options&1?[a.value,s]:[this.#t(i),s]}namespace(r){let o=new Map,e=`${r}-`;for(let[i,s]of this.values)i===r?o.set(null,s.value):i.startsWith(`${e}-`)?o.set(i.slice(r.length),s.value):i.startsWith(e)&&o.set(i.slice(e.length),s.value);return o}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var W=class extends Map{constructor(o){super();this.factory=o}get(o){let e=super.get(o);return e===void 0&&(e=this.factory(o,this),this.set(o,e)),e}};function Nt(t){return{kind:"word",value:t}}function Lo(t,r){return{kind:"function",value:t,nodes:r}}function jo(t){return{kind:"separator",value:t}}function ee(t,r,o=null){for(let e=0;e<t.length;e++){let i=t[e],s=!1,a=0,f=r(i,{parent:o,replaceWith(u){s||(s=!0,Array.isArray(u)?u.length===0?(t.splice(e,1),a=0):u.length===1?(t[e]=u[0],a=1):(t.splice(e,1,...u),a=u.length):t[e]=u)}})??0;if(s){f===0?e--:e+=a-1;continue}if(f===2)return 2;if(f!==1&&i.kind==="function"&&ee(i.nodes,r,i)===2)return 2}}function Z(t){let r="";for(let o of t)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+Z(o.nodes)+")"}return r}var or=92,Io=41,ir=58,nr=44,Fo=34,lr=61,ar=62,sr=60,ur=10,Mo=40,Bo=39,cr=47,fr=32,dr=9;function q(t){t=t.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],o=[],e=null,i="",s;for(let a=0;a<t.length;a++){let f=t.charCodeAt(a);switch(f){case or:{i+=t[a]+t[a+1],a++;break}case ir:case nr:case lr:case ar:case sr:case ur:case cr:case fr:case dr:{if(i.length>0){let m=Nt(i);e?e.nodes.push(m):r.push(m),i=""}let u=a,c=a+1;for(;c<t.length&&(s=t.charCodeAt(c),!(s!==ir&&s!==nr&&s!==lr&&s!==ar&&s!==sr&&s!==ur&&s!==cr&&s!==fr&&s!==dr));c++);a=c-1;let p=jo(t.slice(u,c));e?e.nodes.push(p):r.push(p);break}case Bo:case Fo:{let u=a;for(let c=a+1;c<t.length;c++)if(s=t.charCodeAt(c),s===or)c+=1;else if(s===f){a=c;break}i+=t.slice(u,a+1);break}case Mo:{let u=Lo(i,[]);i="",e?e.nodes.push(u):r.push(u),o.push(u),e=u;break}case Io:{let u=o.pop();if(i.length>0){let c=Nt(i);u?.nodes.push(c),i=""}o.length>0?e=o[o.length-1]:e=null;break}default:i+=String.fromCharCode(f)}}return i.length>0&&r.push(Nt(i)),r}function Qe(t){let r=[];return ee(q(t),o=>{if(!(o.kind!=="function"||o.value!=="var"))return ee(o.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),1}),r}var qo=64;function M(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function F(t,r="",o=[]){return{kind:"at-rule",name:t,params:r,nodes:o}}function G(t,r=[]){return t.charCodeAt(0)===qo?_e(t,r):M(t,r)}function l(t,r,o=!1){return{kind:"declaration",property:t,value:r,important:o}}function Ze(t){return{kind:"comment",value:t}}function ue(t,r){return{kind:"context",context:t,nodes:r}}function I(t){return{kind:"at-root",nodes:t}}function j(t,r,o=[],e={}){for(let i=0;i<t.length;i++){let s=t[i],a=o[o.length-1]??null;if(s.kind==="context"){if(j(s.nodes,r,o,{...e,...s.context})===2)return 2;continue}o.push(s);let f=!1,u=0,c=r(s,{parent:a,context:e,path:o,replaceWith(p){f||(f=!0,Array.isArray(p)?p.length===0?(t.splice(i,1),u=0):p.length===1?(t[i]=p[0],u=1):(t.splice(i,1,...p),u=p.length):(t[i]=p,u=1))}})??0;if(o.pop(),f){c===0?i--:i+=u-1;continue}if(c===2)return 2;if(c!==1&&"nodes"in s){o.push(s);let p=j(s.nodes,r,o,e);if(o.pop(),p===2)return 2}}}function Xe(t,r,o=[],e={}){for(let i=0;i<t.length;i++){let s=t[i],a=o[o.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")o.push(s),Xe(s.nodes,r,o,e),o.pop();else if(s.kind==="context"){Xe(s.nodes,r,o,{...e,...s.context});continue}o.push(s),r(s,{parent:a,context:e,path:o,replaceWith(f){Array.isArray(f)?f.length===0?t.splice(i,1):f.length===1?t[i]=f[0]:t.splice(i,1,...f):t[i]=f,i+=f.length-1}}),o.pop()}}function be(t,r,o=3){let e=[],i=new Set,s=new W(()=>new Set),a=new W(()=>new Set),f=new Set,u=new Set,c=[],p=[],m=new W(()=>new Set);function g(k,x,y={},$=0){if(k.kind==="declaration"){if(k.property==="--tw-sort"||k.value===void 0||k.value===null)return;if(y.theme&&k.property[0]==="-"&&k.property[1]==="-"){if(k.value==="initial"){k.value=void 0;return}y.keyframes||s.get(x).add(k)}if(k.value.includes("var("))if(y.theme&&k.property[0]==="-"&&k.property[1]==="-")for(let b of Qe(k.value))m.get(b).add(k.property);else r.trackUsedVariables(k.value);if(k.property==="animation")for(let b of pr(k.value))u.add(b);o&2&&k.value.includes("color-mix(")&&a.get(x).add(k),x.push(k)}else if(k.kind==="rule")if(k.selector==="&")for(let b of k.nodes){let V=[];g(b,V,y,$+1),V.length>0&&x.push(...V)}else{let b={...k,nodes:[]};for(let V of k.nodes)g(V,b.nodes,y,$+1);b.nodes.length>0&&x.push(b)}else if(k.kind==="at-rule"&&k.name==="@property"&&$===0){if(i.has(k.params))return;if(o&1){let V=k.params,R=null,K=!1;for(let D of k.nodes)D.kind==="declaration"&&(D.property==="initial-value"?R=D.value:D.property==="inherits"&&(K=D.value==="true"));let P=l(V,R??"initial");P.src=k.src,K?c.push(P):p.push(P)}i.add(k.params);let b={...k,nodes:[]};for(let V of k.nodes)g(V,b.nodes,y,$+1);x.push(b)}else if(k.kind==="at-rule"){k.name==="@keyframes"&&(y={...y,keyframes:!0});let b={...k,nodes:[]};for(let V of k.nodes)g(V,b.nodes,y,$+1);k.name==="@keyframes"&&y.theme&&f.add(b),(b.nodes.length>0||b.name==="@layer"||b.name==="@charset"||b.name==="@custom-media"||b.name==="@namespace"||b.name==="@import")&&x.push(b)}else if(k.kind==="at-root")for(let b of k.nodes){let V=[];g(b,V,y,0);for(let R of V)e.push(R)}else if(k.kind==="context"){if(k.context.reference)return;for(let b of k.nodes)g(b,x,{...y,...k.context},$)}else k.kind==="comment"&&x.push(k)}let v=[];for(let k of t)g(k,v,{},0);e:for(let[k,x]of s)for(let y of x){if(mr(y.property,r.theme,m)){if(y.property.startsWith(r.theme.prefixKey("--animate-")))for(let V of pr(y.value))u.add(V);continue}let b=k.indexOf(y);if(k.splice(b,1),k.length===0){let V=Ho(v,R=>R.kind==="rule"&&R.nodes===k);if(!V||V.length===0)continue e;V.unshift({kind:"at-root",nodes:v});do{let R=V.pop();if(!R)break;let K=V[V.length-1];if(!K||K.kind!=="at-root"&&K.kind!=="at-rule")break;let P=K.nodes.indexOf(R);if(P===-1)break;K.nodes.splice(P,1)}while(!0);continue e}}for(let k of f)if(!u.has(k.params)){let x=e.indexOf(k);e.splice(x,1)}if(v=v.concat(e),o&2)for(let[k,x]of a)for(let y of x){let $=k.indexOf(y);if($===-1||y.value==null)continue;let b=q(y.value),V=!1;if(ee(b,(P,{replaceWith:D})=>{if(P.kind!=="function"||P.value!=="color-mix")return;let _=!1,H=!1;if(ee(P.nodes,(L,{replaceWith:B})=>{if(L.kind=="word"&&L.value.toLowerCase()==="currentcolor"){H=!0,V=!0;return}let J=L,ie=null,n=new Set;do{if(J.kind!=="function"||J.value!=="var")return;let d=J.nodes[0];if(!d||d.kind!=="word")return;let h=d.value;if(n.has(h)){_=!0;return}if(n.add(h),V=!0,ie=r.theme.resolveValue(null,[d.value]),!ie){_=!0;return}if(ie.toLowerCase()==="currentcolor"){H=!0;return}ie.startsWith("var(")?J=q(ie)[0]:J=null}while(J);B({kind:"word",value:ie})}),_||H){let L=P.nodes.findIndex(J=>J.kind==="separator"&&J.value.trim().includes(","));if(L===-1)return;let B=P.nodes.length>L?P.nodes[L+1]:null;if(!B)return;D(B)}else if(V){let L=P.nodes[2];L.kind==="word"&&(L.value==="oklab"||L.value==="oklch"||L.value==="lab"||L.value==="lch")&&(L.value="srgb")}}),!V)continue;let R={...y,value:Z(b)},K=G("@supports (color: color-mix(in lab, red, red))",[y]);K.src=y.src,k.splice($,1,R,K)}if(o&1){let k=[];if(c.length>0){let x=G(":root, :host",c);x.src=c[0].src,k.push(x)}if(p.length>0){let x=G("*, ::before, ::after, ::backdrop",p);x.src=p[0].src,k.push(x)}if(k.length>0){let x=v.findIndex(b=>!(b.kind==="comment"||b.kind==="at-rule"&&(b.name==="@charset"||b.name==="@import"))),y=F("@layer","properties",[]);y.src=k[0].src,v.splice(x<0?v.length:x,0,y);let $=G("@layer properties",[F("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",k)]);$.src=k[0].src,$.nodes[0].src=k[0].src,v.push($)}}return v}function le(t,r){let o=0,e={file:null,code:""};function i(a,f=0){let u="",c=" ".repeat(f);if(a.kind==="declaration"){if(u+=`${c}${a.property}: ${a.value}${a.important?" !important":""};
4
4
  `,r){o+=c.length;let p=o;o+=a.property.length,o+=2,o+=a.value?.length??0,a.important&&(o+=11);let m=o;o+=2,a.dst=[e,p,m]}}else if(a.kind==="rule"){if(u+=`${c}${a.selector} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/browser",
3
- "version": "4.1.10",
3
+ "version": "4.1.11",
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.3",
28
28
  "listhen": "^1.9.0",
29
- "tailwindcss": "4.1.10"
29
+ "tailwindcss": "4.1.11"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",