@unocss/runtime 0.37.1 → 0.37.2

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.
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var et=Object.defineProperty,_n=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var Qe=(e,t,r)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))tt.call(t,r)&&Qe(e,r,t[r]);if(pe)for(var r of pe(t))rt.call(t,r)&&Qe(e,r,t[r]);return e},R=(e,t)=>_n(e,Wn(t));var nt=(e,t)=>{var r={};for(var n in e)tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pe)for(var n of pe(e))t.indexOf(n)<0&&rt.call(e,n)&&(r[n]=e[n]);return r};var Ln=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})};function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Re(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var me=Re;function G(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ot(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>G(t)):[e]:[G(e)]}function Dn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function B(e){return e==null?"":Dn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function de(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ee(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return de(r)&&de(n)&&Object.keys(n).forEach(i=>{de(r[i])&&de(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ee(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function it(e){return typeof e[0]=="string"}function st(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Nn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Te="$$shortcut-no-merge";function at(e){return e.match(Bn)}function X(e=""){return Nn.test(e)}function ct(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function lt(e){return e!=null}function je(){}var he=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ut=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ft(e){ut.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(ut,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var pt=new Set;function mt(e){pt.has(e)||(console.warn("[unocss]",e),pt.add(e))}function dt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Kn=e=>e.split(/[\s'"`;>=]+/g).filter(X),Y={name:"split",order:0,extract({code:e}){return new Set(Kn(e))}};function ht(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function In(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Hn={preflights:-100,shortcuts:-1,default:0};function ze(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(V),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Hn,...n.map(f=>f.layers),e.layers);function s(f){return Z([...o.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let a=s("extractors");a.length||a.push(Y),a.sort((f,x)=>(f.order||0)-(x.order||0));let c=s("rules"),l={},g=c.length;c.forEach((f,x)=>{it(f)&&(l[f[0]]=[x,f[1],f[2],f],delete c[x])});let p=q([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ee(f,x),{}));s("extendTheme").forEach(f=>f(p));let d={templates:Z(o.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return R(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(ct),shortcuts:In(s("shortcuts")),extractors:a,safelist:s("safelist")})}var gt="0.37.1";var Ve=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=ze(t,r),this.events.emit("config",this.config)}version=gt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ht();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ze(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var c;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let l=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(l!=null&&l.length)return this._cache.set(n,l),l}else{let l=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(lt);if(l!=null&&l.length)return this._cache.set(n,l),l}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
1
+ (()=>{var et=Object.defineProperty,_n=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var Qe=(e,t,r)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))tt.call(t,r)&&Qe(e,r,t[r]);if(pe)for(var r of pe(t))rt.call(t,r)&&Qe(e,r,t[r]);return e},R=(e,t)=>_n(e,Wn(t));var nt=(e,t)=>{var r={};for(var n in e)tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pe)for(var n of pe(e))t.indexOf(n)<0&&rt.call(e,n)&&(r[n]=e[n]);return r};var Ln=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})};function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Re(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var me=Re;function G(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ot(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>G(t)):[e]:[G(e)]}function Dn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function B(e){return e==null?"":Dn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function de(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ee(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return de(r)&&de(n)&&Object.keys(n).forEach(i=>{de(r[i])&&de(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ee(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function it(e){return typeof e[0]=="string"}function st(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function Z(e){return Array.from(new Set(e))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Nn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Te="$$shortcut-no-merge";function at(e){return e.match(Bn)}function X(e=""){return Nn.test(e)}function ct(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function lt(e){return e!=null}function je(){}var he=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}};var ut=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ft(e){ut.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(ut,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var pt=new Set;function mt(e){pt.has(e)||(console.warn("[unocss]",e),pt.add(e))}function dt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](n);if(a!=null)return a}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Kn=e=>e.split(/[\s'"`;>=]+/g).filter(X),Y={name:"split",order:0,extract({code:e}){return new Set(Kn(e))}};function ht(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function In(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Hn={preflights:-100,shortcuts:-1,default:0};function ze(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(V),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Hn,...n.map(f=>f.layers),e.layers);function s(f){return Z([...o.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let a=s("extractors");a.length||a.push(Y),a.sort((f,x)=>(f.order||0)-(x.order||0));let c=s("rules"),l={},g=c.length;c.forEach((f,x)=>{it(f)&&(l[f[0]]=[x,f[1],f[2],f],delete c[x])});let p=q([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ee(f,x),{}));s("extendTheme").forEach(f=>f(p));let d={templates:Z(o.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return V((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return R(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(ct),shortcuts:In(s("shortcuts")),extractors:a,safelist:s("safelist")})}var gt="0.37.2";var Ve=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=ze(t,r),this.events.emit("config",this.config)}version=gt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ht();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ze(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var c;if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let l=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(l!=null&&l.length)return this._cache.set(n,l),l}else{let l=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(lt);if(l!=null&&l.length)return this._cache.set(n,l),l}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
2
2
  `,l=new Set(["default"]),g=new Set,p=new Map;await Promise.all(Array.from(a).map(async h=>{var y;if(g.has(h))return;let b=await this.parseToken(h);if(b!=null){g.add(h);for(let w of b){let k=w[3]||"";p.has(k)||p.set(k,[]),p.get(k).push(w),(y=w[4])!=null&&y.layer&&l.add(w[4].layer)}}})),o&&this.config.preflights.forEach(h=>{h.layer&&l.add(h.layer)});let d={},f=this.config.sortLayers(Array.from(l).sort((h,b)=>{var y,w;return((y=this.config.layers[h])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||h.localeCompare(b)})),x={};if(o){let h={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(k=>(k.layer||"default")===b).map(async k=>await k.getCSS(h)))).filter(Boolean).join(c);return[b,w]})))}let v=h=>{if(d[h])return d[h];let b=Array.from(p).sort((y,w)=>{var k,T,U;return((k=this.parentOrders.get(y[0]))!=null?k:0)-((T=this.parentOrders.get(w[0]))!=null?T:0)||((U=y[0])==null?void 0:U.localeCompare(w[0]||""))||0}).map(([y,w])=>{let k=w.length,T=w.filter(m=>{var $;return((($=m[4])==null?void 0:$.layer)||"default")===h}).sort((m,$)=>{var A,W,z;return m[0]-$[0]||(((A=m[4])==null?void 0:A.sort)||0)-(((W=$[4])==null?void 0:W.sort)||0)||((z=m[1])==null?void 0:z.localeCompare($[1]||""))||0}).map(m=>{var $;return[m[1]?Zn(m[1],n):m[1],m[2],!!(($=m[4])!=null&&$.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!T.length)return;let U=T.reverse().map(([m,$,A],W)=>{if(!A&&m&&this.config.mergeSelectors)for(let z=W+1;z<k;z++){let F=T[z];if(F&&!F[2]&&F[0]&&F[1]===$)return F[0].push(...m),null}return m?`${[...new Set(m)].join(`,${c}`)}{${$}}`:$}).filter(Boolean).reverse().join(c);return y?`${y}{${c}${U}${c}}`:U}).filter(Boolean).join(c);return o&&(b=[x[h],b].filter(Boolean).join(c)),d[h]=!s&&b?`/* layer: ${h} */${c}${b}`:b},E=(h=f,b)=>h.filter(y=>!(b!=null&&b.includes(y))).map(y=>v(y)||"").filter(Boolean).join(c);return{get css(){return E()},layers:f,getLayers:E,getLayer:v,matched:g}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let l=c.match(i,a);if(!!l){typeof l=="string"&&(l={matcher:l}),i=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),o.unshift(l),n.add(c),s=!0;break}}if(!s)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((c,l)=>(c.order||0)-(l.order||0)),i=o.reduce((c,l)=>{var g;return((g=l.body)==null?void 0:g.call(l,c))||c},t[2]),s=o.reduce((c,l)=>{var g;return((g=l.selector)==null?void 0:g.call(l,c,i))||c},Yn(n)),a={selector:Xn(s),entries:i,parent:o.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:o.reduce((c,l)=>l.layer||c,void 0),sort:o.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(t,r,n){r=G(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${B(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,d;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.details?f=>{var x;r.rules=(x=r.rules)!=null?x:[],r.rules.push(f)}:je,c=this.config.rulesStaticMap[i];if(c&&c[1]&&(n||!((p=c[2])!=null&&p.internal)))return a(c[3]),[[c[0],o,G(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:g}=this.config;for(let f=g-1;f>=0;f--){let x=l[f];if(!x||((d=x[2])==null?void 0:d.internal)&&!n)continue;let[v,E,h]=x,b=i.match(v);if(!b)continue;let y=await E(b,r);if(!y)continue;if(a(x),typeof y=="string")return[[f,y,h]];let w=ot(y).filter(k=>k.length);if(w.length)return w.map(k=>[f,o,k,h,s])}}stringifyUtil(t,r){var f;if(!t)return;if(Ae(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a}=this.applyVariants(t),c=B(o);if(!c)return;let x=(f=t[3])!=null?f:{},{layer:l,sort:g}=x,p=nt(x,["layer","sort"]),d=R(S({},p),{layer:s!=null?s:l,sort:a!=null?a:g});return[t[0],n,c,i,d,this.config.details?r:void 0]}expandShortcut(t,r,n=3){if(n===0)return;let o=this.config.details?a=>{var c;r.shortcuts=(c=r.shortcuts)!=null?c:[],r.shortcuts.push(a)}:je,i,s;for(let a of this.config.shortcuts)if(st(a)){if(a[0]===t){i=i||a[2],s=a[1],o(a);break}}else{let c=t.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}if(typeof s=="string"&&(s=ft(s).split(/\s+/g)),!!s)return[s.flatMap(a=>{var c;return((c=this.expandShortcut(a,r,n-1))==null?void 0:c[0])||[a]}).filter(a=>a!==""),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var g;let i=new he,s=(await Promise.all(Z(n).map(async p=>{let d=await this.parseUtil(p,r,!0);return d||mt(`unmatched utility "${p}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((p,d)=>p[0]-d[0]),[a,,c]=t,l=[];for(let p of s){if(Ae(p)){l.push([p[0],void 0,p[1],void 0,p[2],r]);continue}let{selector:d,entries:f,parent:x,sort:v}=this.applyVariants(p,[...p[4],...c],a);i.getFallback(d,x,[[],p[0]])[0].push([f,!!((g=p[3])!=null&&g.noMerge),v!=null?v:0])}return l.concat(i.map(([p,d],f,x)=>{let v=(h,b,y)=>{let w=Math.max(...y.map(T=>T[1])),k=y.map(T=>T[0]);return(h?[k.flat(1)]:k).map(T=>{let U=B(T);if(U)return[d,f,U,x,R(S({},o),{noMerge:b,sort:w}),r]})};return[[p.filter(([,h])=>h).map(([h,,b])=>[h,b]),!0],[p.filter(([,h])=>!h).map(([h,,b])=>[h,b]),!1]].map(([h,b])=>[...v(!1,b,h.filter(([y])=>y.some(w=>w[0]===Te))),...v(!0,b,h.filter(([y])=>y.every(w=>w[0]!==Te)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function bt(e,t){return new Ve(e,t)}var yt=/ \$\$ /,Gn=e=>e.match(yt);function Zn(e,t){return Gn(e)?e.replace(yt,t?` ${t} `:" "):t?`${t} ${e}`:e}function Xn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var xt=/^\[(.+?)(~?=)"(.*)"\]$/;function Yn(e){return xt.test(e)?e.replace(xt,(t,r,n,o)=>`[${me(r)}${n}"${me(o)}"]`):`.${me(e)}`}var $t=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase)return`*,::before,::after{${B(Object.entries(e.theme.preflightBase))}}`}}];var P={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Pe=R(S({},P),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Oe={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Me={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},vt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],J=Object.assign({},...vt.map(e=>({[e.replace(/ /,"-")]:e})),...vt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),O=["inherit","initial","revert","revert-layer","unset"];var wt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},St=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":wt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(wt).join("|")})`}]],kt=["center","left","right","justify","start","end",...O].map(e=>[`text-${e}`,{"text-align":e}]);var Ue=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Fe(e=""){let t=Jn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(Ue.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function D(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,Ue.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Jn(e){if(!e)return;let t=Qn(e);if(t!=null||(t=eo(e),t!=null)||(t=to(e),t!=null)||(t=no(e),t!=null)||(t=oo(e),t!=null))return t}function Qn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function eo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function to(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Q(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var ro=new RegExp(`^(${Ue.join("|")})\\((.+)\\)$`,"i");function no(e){let t=e.match(ro);if(!t)return;let[,r,n]=t,o=Ct(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function oo(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ct(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ct(e){let t=Q(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Q(t[r-1],"/",3);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function io(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function Q(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=io(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var We={};Ln(We,{auto:()=>lo,bracket:()=>xo,bracketOfColor:()=>bo,bracketOfLength:()=>yo,bracketOfPosition:()=>$o,cssvar:()=>vo,degree:()=>So,fraction:()=>ho,global:()=>ko,number:()=>po,numberWithUnit:()=>co,percent:()=>mo,position:()=>Ro,properties:()=>Co,px:()=>fo,rem:()=>uo,time:()=>wo});var so=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],_e=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ao=/^(-?[0-9.]+)$/i,Rt=/^(px)$/i;function M(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function co(e){let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${M(o)}${n}`}function lo(e){if(e==="auto"||e==="a")return"auto"}function uo(e){if(e.match(Rt))return`1${e}`;let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o/4)}rem`}function fo(e){if(e.match(Rt))return`1${e}`;let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o)}px`}function po(e){if(!ao.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return M(t)}function mo(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${M(t/100)}`}function ho(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${M(n*100)}%`}var go=/^\[(color|length|position):/i;function ge(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(go);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function xo(e){return ge(e)}function bo(e){return ge(e,"color")}function yo(e){return ge(e,"length")}function $o(e){return ge(e,"position")}function vo(e){if(e.match(/^\$\S/))return`var(--${Re(e.slice(1))})`}function wo(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o)}ms`}function So(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o)}deg`}function ko(e){if(O.includes(e))return e}function Co(e){if(e.split(",").every(t=>so.includes(t)))return e}function Ro(e){if(["top","left","right","bottom","center"].includes(e))return e}var u=dt(We);var N=(e,t)=>{let r=new RegExp(`^${H(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},ee=(e,t)=>{let r=new RegExp(`^${H(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var Et="$$mini-no-negative",j=e=>([t,r,n],{theme:o})=>{var s,a;let i=(a=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?a:u.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return P[r].map(c=>[`${e}${c}`,i])},Le=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},xe=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=i;if(!s)return;let a,c=u.bracketOfColor(n),l=c||n;l.startsWith("#")?a=l:l.startsWith("hex-")?a=`#${l.slice(4)}`:n.startsWith("$")&&(a=u.cssvar(n)),a=a||c;let g="DEFAULT";if(!a){let p,[d]=i.slice(-1);d.match(/^\d+$/)?(g=d,p=Le(t,i.slice(0,-1))):(p=Le(t,i),!p&&i.length<=2&&([,g=g]=i,p=Le(t,[s]))),typeof p=="string"?a=p:g&&p&&(a=p[g])}return{opacity:o,name:s,no:g,color:a,cssColor:Fe(a),alpha:u.bracket.cssvar.percent(o!=null?o:"")}},C=(e,t)=>([,r],{theme:n})=>{var c;let o=xe(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:D(a,i)}:{[`--un-${t}-opacity`]:(c=a.alpha)!=null?c:1,[e]:D(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${i!=null?i:1}`)}},be=(e,t)=>{let r=[];e=V(e);for(let n=0;n<e.length;n++){let o=Q(e[n]," ",6);if(!o||o.length<3)return e;let i=Fe(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},Tt=(e,t)=>{var r;return e!=null&&!!((r=xe(e,t))!=null&&r.color)},ye=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},At=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var jt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...O].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],zt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Eo=e=>{var t;return(t=u.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Vt=[[/^will-change-(.+)/,([,e])=>({"will-change":Eo(e)})]];var ie=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...O],Pt=[[/^(?:border|b)()(?:-(.+))?$/,te,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,te],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,te],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,te],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,te],[/^(?:border|b)-()(?:width|size)-(.+)$/,K,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,K],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,K],[/^(?:border|b)-()(?:color-)?(.+)$/,re,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,re],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,re],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,re],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,re],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ne,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ne],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,oe],[/^(?:border|b)-(?:style-)?()(.+)$/,I,{autocomplete:["(border|b)-style",`(border|b)-(${ie.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ie.join("|")})`,`(border|b)-<directions>-style-(${ie.join("|")})`,`(border|b)-style-(${ie.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,I],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,I],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,I],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,I]],To=e=>([,t],r)=>{var a,c;let n=xe(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:D(s,o)}:e===""?{"--un-border-opacity":(a=s.alpha)!=null?a:1,[`border${e}-color`]:D(s,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:D(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function te(e,t){let r=K(e,t),n=I(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function K([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:u.bracket.cssvar.px(t||"1");if(e in P&&n!=null)return P[e].map(s=>[`border${s}-width`,n])}function re([,e="",t],{theme:r}){if(e in P&&Tt(t,r))return Object.assign({},...P[e].map(n=>To(n)(["",t],r)))}function ne([,e="",t]){let r=u.bracket.percent(t);if(e in P&&r!=null)return P[e].map(n=>[`--un-border${n}-opacity`,r])}function oe([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||u.bracket.cssvar.fraction.rem(t||"1");if(e in Oe&&n!=null)return Oe[e].map(i=>[`border${i}-radius`,n])}function I([,e="",t]){if(ie.includes(t)&&e in P)return P[e].map(r=>[`border${r}-style`,t])}var Ot=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:u.bracket.percent.cssvar(e)})]],Mt=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":u.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ut=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":u.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var $e={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ft=e=>{var t;return(t=u.properties(e))!=null?t:$e[e]},_t=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?Ft(e):[$e.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:u.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys($e).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:u.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-delay":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:u.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,n;return{"transition-timing-function":(n=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?n:u.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":u.global(e)||Ft(e)}),{autocomplete:[`transition-property-(${[...O,...Object.keys($e)].join("|")})`]}],["transition-none",{transition:"none"}]];var Wt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:u.bracket(e)!=null?u.bracket(e).split(" ").map(t=>{var r;return(r=u.cssvar.fraction(t))!=null?r:t}).join(" "):u.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>{var r,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n:u.bracket.cssvar.auto.fraction.rem(e)}}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var Lt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Dt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||u.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=V((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":u.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=V((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:u.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Lt[e]||u.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Lt).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||u.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||u.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||u.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Bt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=u.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Nt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||u.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Kt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||u.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":u.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],It=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":be(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":u.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Ht={"":"",x:"column-",y:"row-"},qt=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:u.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Ht[e]}gap`]:n,[`${Ht[e]}gap`]:n}},Gt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,qt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,qt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var _=e=>e.replace("col","column"),De=e=>e[0]==="r"?"Row":"Column",Ao=(e,t,r)=>{var o;let n=(o=t[`gridAuto${De(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return u.bracket.cssvar.auto.rem(r)},Zt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${_(e)}`]:(o=(n=r[`grid${De(e)}`])==null?void 0:n[t])!=null?o:u.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${_(e)}`]:"1/-1"};let r=u.bracket.number(t);if(r!=null)return{[`grid-${_(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${_(e)}-start`]:(r=u.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${_(e)}-end`]:(r=u.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${_(e)}`]:Ao(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":u.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":_(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${_(e)}`]:(o=(n=r[`gridTemplate${De(e)}`])==null?void 0:n[t])!=null?o:u.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${_(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${_(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ve=["auto","hidden","clip","visible","scroll"],Xt=[[/^(?:overflow|of)-(.+)$/,([,e])=>ve.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ve.join("|")})`,`(overflow|of)-(x|y)-(${ve.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ve.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Yt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Jt=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],Qt=[[/^order-(.+)$/,([,e])=>({order:u.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],er=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],tr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function Be(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:u.bracket.cssvar.auto.fraction.rem(e)}function we([,e,t],r){let n=Be(t,r);if(n!=null&&e in Pe)return Pe[e].map(o=>[o.slice(1),n])}var rr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Be(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,we],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,we],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,we],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,we],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Be(t,r)})]],nr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],or=[[/^z([\d.]+)$/,([,e])=>({"z-index":u.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":u.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],ir=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Se="var(--un-empty,/*!*/ /*!*/)",sr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:u.bracket.cssvar(e)||e})]],ar=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],cr=[[/^cursor-(.+)$/,([,e])=>({cursor:u.bracket.cssvar(e)||e})]],lr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],ur=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],fr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],pr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],mr=[[/^content-(.+)$/,([,e])=>{let t=u.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],dr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],hr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],gr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],xr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],br=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var yr={"--un-ring-inset":Se,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 #0000"},$r=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:u.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":u.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":u.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var vr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":Se,"--un-shadow":"0 0 #0000"},wr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow":be(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,C("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":u.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var jo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function se(e,t){return`${e||""}${jo[t]}`}function Sr(e,t,r,n){var s;let o=se(e,t).replace(/-(\w)/g,(a,c)=>c.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.auto.fraction.rem(n)}var kr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:Sr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:Sr(e,t,n,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[se(e,t)]:(o=At(n))==null?void 0:o[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[se(e,t)]:(o=ye(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function zo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.auto.number(e)}var Cr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":zo(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Rr=[[/^pa?()-?(-?.+)$/,j("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,j("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,j("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Er=[[/^ma?()-?(-?.+)$/,j("margin")],[/^m-?xy()()$/,j("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,j("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,j("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,j("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,j("margin")]];var Vo=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Po=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),zr={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0,"--un-transform":Vo},Vr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=J[e])!=null?t:u.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(J).join("|")})`,`origin-(${Object.keys(J).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=u.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=u.bracket.cssvar(e))!=null?r:e.length>=3?J[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Tr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Tr],[/^(?:transform-)?rotate-()(.+)$/,jr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,jr],[/^(?:transform-)?skew-([xy])-(.+)$/,Oo],[/^(?:transform-)?scale-()(.+)$/,Ar],[/^(?:transform-)?scale-([xyz])-(.+)$/,Ar],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:"var(--un-transform)"}],["transform-cpu",{transform:"var(--un-transform)"}],["transform-gpu",{transform:Po}],["transform-none",{transform:"none"}]];function Tr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:u.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Me[e].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]}function Ar([,e,t]){let r=u.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Me[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]}function jr([,e="",t]){let r=u.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}}function Oo([,e,t]){let r=u.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}}var Mo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Pr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Mo[e];if(r)return{[r]:u.cssvar(t)}}]],Or=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:u.bracket(`[${t}]`)})]];var Mr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
3
3
  ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Ur=["solid","double","dotted","dashed","wavy",...O],Fr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-decoration-thickness":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=C("text-decoration-color","line")(e,t);if(r)return S({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":u.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-underline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Ur.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Ur.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var _r=[[/^fill-(.+)$/,C("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":u.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":u.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-dashoffset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:u.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,C("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":u.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Wr=[Pr,Or,Rr,Er,sr,Ot,Ut,_r,Pt,mr,Dt,Bt,Nt,hr,Fr,Kt,It,gr,kt,Mt,xr,br,wr,$r,Wt,Zt,Gt,Yt,kr,Cr,cr,ar,lr,ur,St,fr,pr,dr,Xt,jt,zt,Qt,Jt,er,tr,rr,nr,or,ir,_t,Vr,Vt,Mr].flat(1);var Ne={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(Ne).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Lr={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},Dr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},Br={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Nr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Kr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},Ir={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ke={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Hr=Ke;var Ie={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},qr=S({},Ie),Gr={DEFAULT:"1px",none:"0px"},Zr={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Xr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Yr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Jr={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 #0000",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},Qr={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},en={DEFAULT:"1px",none:"0px"};var tn={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rn={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"};var ke={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},He=R(S({auto:"auto"},ke),{screen:"100vw"}),ae=R(S({none:"none"},ke),{screen:"100vw"}),qe=R(S({auto:"auto"},ke),{screen:"100vh"}),ce=R(S({none:"none"},ke),{screen:"100vh"});var nn=S(S(S({},zr),vr),yr);var on={width:He,height:qe,maxWidth:ae,maxHeight:ce,minWidth:ae,minHeight:ce,inlineSize:He,blockSize:qe,maxInlineSize:ae,maxBlockSize:ce,minInlineSize:ae,minBlockSize:ce,colors:Ne,fontFamily:Lr,fontSize:Dr,breakpoints:Ie,verticalBreakpoints:qr,borderRadius:Yr,lineHeight:Ir,letterSpacing:Ke,wordSpacing:Hr,boxShadow:Jr,textIndent:Br,textShadow:Kr,textStrokeWidth:Nr,blur:tn,dropShadow:rn,easing:Qr,lineWidth:Gr,spacing:Zr,duration:Xr,ringWidth:en,preflightBase:nn};var Ge={},sn=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},an={name:"breakpoints",match(e,t){var n;let r=Object.entries((n=ye(t))!=null?n:{}).map(([o,i],s)=>[o,i,s]);for(let[o,i,s]of r){Ge[o]||(Ge[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let a=e.match(Ge[o]);if(!a)continue;let[,c]=a,l=e.slice(c.length);if(l==="container")continue;let g=c.startsWith("lt-"),p=c.startsWith("at-"),d=1e3;return g?(d-=s+1,{matcher:l,parent:[`@media (max-width: ${sn(i)})`,d]}):(d+=s+1,p&&s<r.length-1?{matcher:l,parent:[`@media (min-width: ${i}) and (max-width: ${sn(r[s+1][1])})`,d]}:{matcher:l,parent:[`@media (min-width: ${i})`,d]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var L=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:s=>{var a;return r.replace("&&-s",s).replace("&&-c",(a=i[1])!=null?a:"*")}}}}},cn=[L(!1,"all","&&-s &&-c"),L(!1,"children","&&-s>&&-c"),L(!1,"next","&&-s+&&-c"),L(!1,"sibling","&&-s+&&-c"),L(!1,"siblings","&&-s~&&-c"),L(!0,"group","&&-c &&-s"),L(!0,"parent","&&-c>&&-s"),L(!0,"previous","&&-c+&&-s"),L(!0,"peer","&&-c~&&-s")];var ln=ee("print","@media print"),un={name:"media",match(e,{theme:t}){var n,o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let i=(o=(n=t.media)==null?void 0:n[r[1]])!=null?o:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${i}`}}}};var fn=(e={})=>(e==null?void 0:e.dark)==="class"?[N("dark",t=>`.dark $$ ${t}`),N("light",t=>`.light $$ ${t}`)]:[ee("dark","@media (prefers-color-scheme: dark)"),ee("light","@media (prefers-color-scheme: light)")];var pn=[N("rtl",e=>`[dir="rtl"] $$ ${e}`),N("ltr",e=>`[dir="ltr"] $$ ${e}`)];var dn={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},hn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),parent:`@layer ${t[1]}`}}},gn={name:"uno-layer",match(e){let t=e.match(/^uno-layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},xn={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},bn={name:"important",match(e){let t=e.match(/^(important[:-]|!)/);if(t)return{matcher:e.slice(t[0].length),body:r=>(r.forEach(n=>{n[1]&&(n[1]+=" !important")}),r)}},autocomplete:"(important)"},mn=/[0-9.]+(?:[a-z]+|%)?/,yn={name:"negative",match(e){if(!(!e.startsWith("-")||!e.match(/\d|-px|-full/)))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===Et))return;let r=!1;if(t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||mn.test(o)&&(n[1]=o.replace(mn,s=>`-${s}`),r=!0)}),r)return t}}}};var ue=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),fe=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Uo=["not","is","where","has"],Ze=Object.entries(ue).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),Xe=Object.entries(fe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),le=Uo.join("|"),$n=e=>{if(e==="active")return 1},Ce=(e,t,r)=>{let n=new RegExp(`^${H(t)}:`),o=new RegExp(`^${e}-((?:(${le})-)?(${Ze}))[:-]`),i=new RegExp(`^${e}-((?:(${le})-)?(${Xe}))[:]`);return{name:`pseudo:${e}`,match(s){let a=s.match(o)||s.match(i);if(a){let c=ue[a[3]]||fe[a[3]]||`:${a[3]}`;return a[2]&&(c=`:${a[2]}(${c})`),{matcher:s.slice(a[0].length),selector:l=>n.test(l)?l.replace(n,`${t}${c}:`):`${t}${c}${r}${l}`,sort:$n(a[3])}}}}},vn=Object.entries(ue).map(([e])=>e).join("|"),Fo=Object.entries(fe).map(([e])=>e).join("|"),_o=new RegExp(`^(${vn})[:-]`),Wo=new RegExp(`^(${Fo})[:]`),wn={name:"pseudo",match:e=>{let t=e.match(_o)||e.match(Wo);if(t){let r=ue[t[1]]||fe[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:$n(t[1])}}},multiPass:!0,autocomplete:`(${vn}):`},Lo=new RegExp(`^(${le})-(${Ze})[:-]`),Do=new RegExp(`^(${le})-(${Xe})[:]`),Sn={match:e=>{let t=e.match(Lo)||e.match(Do);if(t){let r=t[1],n=ue[t[2]]||fe[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${le})-(${Ze}|${Xe}):`},kn=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[R(S({},Ce("group",t?'[group=""]':".group"," ")),{multiPass:!0}),R(S({},Ce("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),R(S({},Ce("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),R(S({},Ce("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},Bo=/(part-\[(.+)]:)(.+)/,Cn={match:e=>{let t=e.match(Bo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var Rn=e=>[hn,dn,gn,yn,bn,ln,un,an,...cn,wn,Sn,...kn(e),Cn,...fn(e),...pn,xn];var No=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:on,rules:Wr,variants:Rn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Ko(e.variablePrefix):void 0,preflights:$t}},En=No;function Ko(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Ye=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Tn=(e={})=>{var o,i,s;let t=(o=e.prefix)!=null?o:"un-",r=(i=e.prefixedOnly)!=null?i:!1,n=(s=e.trueToNonValued)!=null?s:!1;return{name:"attributify",match(a){let c=at(a);if(!c)return;let l=c[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let g=c[2],[,p="",d=g]=g.match(Ye)||[];return d==="~"||n&&d==="true"||!d?`${p}${l}`:`${p}${l}-${d}`}}};var Io=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Ho=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,An=/[\s'"`;>]+/,jn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Io),n,o=0;for(let v of r){let[,E,h]=v,b=v.index+E.length;if(t>b&&t<=b+h.length){o=b,n=h;break}}if(!n)return null;let i=n.matchAll(Ho),s=0,a,c;for(let v of i){let[E,h,b]=v,y=o+v.index;if(t>y&&t<=y+E.length){s=y,a=h,c=b==null?void 0:b.slice(1);break}}if(!a||a==="class"||a==="className")return null;if(c===void 0)return{extracted:a,resolveReplacement(v){return{start:s,end:s+a.length,replacement:v}}};let l=s+a.length+2,g=An.exec(c),p=0,d;for(;g;){let[v]=g;if(t>l+p&&t<=l+p+g.index){d=c.slice(p,p+g.index);break}p+=g.index+v.length,g=An.exec(c.slice(p))}d===void 0&&(d=c.slice(p));let[,f="",x]=d.match(Ye)||[];return{extracted:`${f}${a}-${x}`,transformSuggestions(v){return v.filter(E=>E.startsWith(`${f}${a}-`)).map(E=>f+E.slice(f.length+a.length+1))},resolveReplacement(v){return{start:p+l,end:p+l+d.length,replacement:f+v.slice(f.length+a.length+1)}}}}};var qo=["v-bind:",":"],zn=/[\s'"`;]+/g,Go=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,Zo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Vn=e=>{var o,i,s;let t=(o=e==null?void 0:e.ignoreAttributes)!=null?o:[],r=(i=e==null?void 0:e.nonValuedAttribute)!=null?i:!0,n=(s=e==null?void 0:e.trueToNonValued)!=null?s:!1;return{name:"attributify",extract({code:a}){let c=Array.from(a.matchAll(Go)).flatMap(l=>Array.from((l[1]||"").matchAll(Zo))).flatMap(([,l,g,p])=>{if(t.includes(l))return[];for(let d of qo)if(l.startsWith(d)){l=l.slice(d.length);break}if(!p){if(X(l)&&r!==!1){let d=[`[${l}=""]`];return n&&d.push(`[${l}="true"]`),d}return[]}return["class","className"].includes(l)?p.split(zn).filter(X):p.split(zn).filter(Boolean).map(d=>`[${l}~="${d}"]`)});return new Set(c)}}};var Xo=(e={})=>{var o,i,s,a,c;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(s=e.prefixedOnly)!=null?s:!1,e.nonValuedAttribute=(a=e.nonValuedAttribute)!=null?a:!0,e.ignoreAttributes=(c=e.ignoreAttributes)!=null?c:[];let t=[Tn(e)],r=[Vn(e)],n=[jn];return e.strict||r.unshift(Y),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Pn=Xo;var Yo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),On=e=>e.charAt(0).toUpperCase()+e.slice(1),Mn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Un=["Webkit","Moz","ms"];function Fn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Yo(n);if(i!=="filter"&&i in e)return t[n]=Mn(i);i=On(i);for(let s=0;s<Un.length;s++){let a=`${Un[s]}${i}`;if(a in e)return t[n]=Mn(On(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Je(e={}){var T,U;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let m=n.postprocess;m||(m=[]),Array.isArray(m)||(m=[m]),m.unshift(Fn(document.createElement("div").style)),n.postprocess=m}(T=r==null?void 0:r.configResolved)==null||T.call(r,t,n);let o,i=!0,s,a=bt(t,n),c=new Set,l,g=[],p=()=>new Promise(m=>{g.push(m),l!=null&&clearTimeout(l),l=setTimeout(()=>f().then(()=>{let $=g;g=[],$.forEach(A=>A())}),0)});function d(m=document.body){if(m.nodeType!==1)return;let $=m;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(A=>{A.removeAttribute("un-cloak")})}async function f(){let m=await a.generate(c);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=m.css,c=m.matched}async function x(m){let $=c.size;await a.applyExtractors(m,void 0,c),$!==c.size&&await p()}async function v(){let m=document.body&&document.body.outerHTML;m&&(await x(m),d())}let E=new MutationObserver(m=>{i||m.forEach(async $=>{if($.target.nodeType!==1)return;let A=$.target;if(A!==o)if($.type==="childList")$.addedNodes.forEach(async W=>{if(W.nodeType!==1)return;let z=W;s&&!s(z)||(await x(z.outerHTML),d(z))});else{if(s&&!s(A))return;if($.attributeName!=="un-cloak"){let W=Array.from(A.attributes).map(F=>F.value?`${F.name}="${F.value}"`:F.name).join(" "),z=`<${A.tagName.toLowerCase()} ${W}>`;await x(z)}A.hasAttribute("un-cloak")&&A.removeAttribute("un-cloak")}})}),h=!1;function b(){if(h)return;let m=document.documentElement||document.body;!m||(E.observe(m,{childList:!0,subtree:!0,attributes:!0}),h=!0)}function y(){v(),b()}function w(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",y):y()}let k=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(m){typeof m!="string"&&(m.forEach($=>c.add($)),m=""),await x(m)},extractAll:v,inspect(m){s=m},toggleObserver(m){m===void 0?i=!i:i=!!m,!h&&!i&&w()}};((U=r==null?void 0:r.ready)==null?void 0:U.call(r,k))!==!1&&(i=!1,w())}Je({defaults:{presets:[En(),Pn()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.37.1",
38
- "@unocss/preset-attributify": "0.37.1",
39
- "@unocss/preset-uno": "0.37.1"
37
+ "@unocss/core": "0.37.2",
38
+ "@unocss/preset-attributify": "0.37.2",
39
+ "@unocss/preset-uno": "0.37.2"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var wt=Object.defineProperty,na=Object.defineProperties;var aa=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var kt=(e,t,r)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))St.call(t,r)&&kt(e,r,t[r]);if(ke)for(var r of ke(t))Ct.call(t,r)&&kt(e,r,t[r]);return e},R=(e,t)=>na(e,aa(t));var Rt=(e,t)=>{var r={};for(var o in e)St.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&Ct.call(e,o)&&(r[o]=e[o]);return r};var ia=(e,t)=>{for(var r in t)wt(e,r,{get:t[r],enumerable:!0})};function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var we=ne;function ie(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function zt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ie(t)):[e]:[ie(e)]}function sa(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function G(e){return e==null?"":sa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=h({},r);return Se(r)&&Se(o)&&Object.keys(o).forEach(a=>{Se(r[a])&&Se(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=_e(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ae(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ae(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ae(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ae(o):o;return r}return e}function jt(e){return typeof e[0]=="string"}function Tt(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function se(e){return Array.from(new Set(e))}var ca=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,We="$$shortcut-no-merge";function Et(e=""){return ca.test(e)}function Vt(e){return typeof e=="function"?{match:e}:e}function Be(e){return e.length===3}function Pt(e){return e!=null}function Ne(){}var Ce=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var At=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Ot(e){At.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(At,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Mt=new Set;function Ut(e){Mt.has(e)||(console.warn("[unocss]",e),Mt.add(e))}function Re(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let c=e[i](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var la=e=>e.split(/[\s'"`;>=]+/g).filter(Et),Le={name:"split",order:0,extract({code:e}){return new Set(la(e))}};function Ft(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function pa(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ua={preflights:-100,shortcuts:-1,default:0};function De(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(ua,...o.map(f=>f.layers),e.layers);function i(f){return se([...n.flatMap(b=>V(b[f]||[])),...V(r[f]||[])])}let c=i("extractors");c.length||c.push(Le),c.sort((f,b)=>(f.order||0)-(b.order||0));let l=i("rules"),p={},d=l.length;l.forEach((f,b)=>{jt(f)&&(p[f[0]]=[b,f[1],f[2],f],delete l[b])});let m=ae([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,b)=>_e(f,b),{}));i("extendTheme").forEach(f=>f(m));let x={templates:se(n.map(f=>{var b;return V((b=f.autocomplete)==null?void 0:b.templates)}).flat()),extractors:n.map(f=>{var b;return V((b=f.autocomplete)==null?void 0:b.extractors)}).flat().sort((f,b)=>(f.order||0)-(b.order||0))};return R(h({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:x,variants:i("variants").map(Vt),shortcuts:pa(i("shortcuts")),extractors:c,safelist:i("safelist")})}var _t="0.37.1";var Ie=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=De(t,r),this.events.emit("config",this.config)}version=_t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ft();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=De(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(d=>this.stringifyUtil(d,i)).filter(Pt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(g=>c.add(g));let l=i?"":`
1
+ (()=>{var wt=Object.defineProperty,na=Object.defineProperties;var aa=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var kt=(e,t,r)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))St.call(t,r)&&kt(e,r,t[r]);if(ke)for(var r of ke(t))Ct.call(t,r)&&kt(e,r,t[r]);return e},R=(e,t)=>na(e,aa(t));var Rt=(e,t)=>{var r={};for(var o in e)St.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&Ct.call(e,o)&&(r[o]=e[o]);return r};var ia=(e,t)=>{for(var r in t)wt(e,r,{get:t[r],enumerable:!0})};function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var we=ne;function ie(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function zt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ie(t)):[e]:[ie(e)]}function sa(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function G(e){return e==null?"":sa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Se(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=h({},r);return Se(r)&&Se(o)&&Object.keys(o).forEach(a=>{Se(r[a])&&Se(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=_e(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ae(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ae(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ae(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ae(o):o;return r}return e}function jt(e){return typeof e[0]=="string"}function Tt(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function se(e){return Array.from(new Set(e))}var ca=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,We="$$shortcut-no-merge";function Et(e=""){return ca.test(e)}function Vt(e){return typeof e=="function"?{match:e}:e}function Be(e){return e.length===3}function Pt(e){return e!=null}function Ne(){}var Ce=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var At=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Ot(e){At.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(At,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Mt=new Set;function Ut(e){Mt.has(e)||(console.warn("[unocss]",e),Mt.add(e))}function Re(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let c=e[i](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var la=e=>e.split(/[\s'"`;>=]+/g).filter(Et),Le={name:"split",order:0,extract({code:e}){return new Set(la(e))}};function Ft(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}function pa(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ua={preflights:-100,shortcuts:-1,default:0};function De(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(ua,...o.map(f=>f.layers),e.layers);function i(f){return se([...n.flatMap(b=>V(b[f]||[])),...V(r[f]||[])])}let c=i("extractors");c.length||c.push(Le),c.sort((f,b)=>(f.order||0)-(b.order||0));let l=i("rules"),p={},d=l.length;l.forEach((f,b)=>{jt(f)&&(p[f[0]]=[b,f[1],f[2],f],delete l[b])});let m=ae([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,b)=>_e(f,b),{}));i("extendTheme").forEach(f=>f(m));let x={templates:se(n.map(f=>{var b;return V((b=f.autocomplete)==null?void 0:b.templates)}).flat()),extractors:n.map(f=>{var b;return V((b=f.autocomplete)==null?void 0:b.extractors)}).flat().sort((f,b)=>(f.order||0)-(b.order||0))};return R(h({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:x,variants:i("variants").map(Vt),shortcuts:pa(i("shortcuts")),extractors:c,safelist:i("safelist")})}var _t="0.37.2";var Ie=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=De(t,r),this.events.emit("config",this.config)}version=_t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ft();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=De(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(d=>this.stringifyUtil(d,i)).filter(Pt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(g=>c.add(g));let l=i?"":`
2
2
  `,p=new Set(["default"]),d=new Set,m=new Map;await Promise.all(Array.from(c).map(async g=>{var $;if(d.has(g))return;let v=await this.parseToken(g);if(v!=null){d.add(g);for(let w of v){let z=w[3]||"";m.has(z)||m.set(z,[]),m.get(z).push(w),($=w[4])!=null&&$.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let x={},f=this.config.sortLayers(Array.from(p).sort((g,v)=>{var $,w;return(($=this.config.layers[g])!=null?$:0)-((w=this.config.layers[v])!=null?w:0)||g.localeCompare(v)})),b={};if(n){let g={generator:this,theme:this.config.theme};b=Object.fromEntries(await Promise.all(f.map(async v=>{let w=(await Promise.all(this.config.preflights.filter(z=>(z.layer||"default")===v).map(async z=>await z.getCSS(g)))).filter(Boolean).join(l);return[v,w]})))}let E=g=>{if(x[g])return x[g];let v=Array.from(m).sort(($,w)=>{var z,A,N;return((z=this.parentOrders.get($[0]))!=null?z:0)-((A=this.parentOrders.get(w[0]))!=null?A:0)||((N=$[0])==null?void 0:N.localeCompare(w[0]||""))||0}).map(([$,w])=>{let z=w.length,A=w.filter(u=>{var k;return(((k=u[4])==null?void 0:k.layer)||"default")===g}).sort((u,k)=>{var O,H,F;return u[0]-k[0]||(((O=u[4])==null?void 0:O.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((F=u[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(u=>{var k;return[u[1]?da(u[1],o):u[1],u[2],!!((k=u[4])!=null&&k.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!A.length)return;let N=A.reverse().map(([u,k,O],H)=>{if(!O&&u&&this.config.mergeSelectors)for(let F=H+1;F<z;F++){let I=A[F];if(I&&!I[2]&&I[0]&&I[1]===k)return I[0].push(...u),null}return u?`${[...new Set(u)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return $?`${$}{${l}${N}${l}}`:N}).filter(Boolean).join(l);return n&&(v=[b[g],v].filter(Boolean).join(l)),x[g]=!i&&v?`/* layer: ${g} */${l}${v}`:v},D=(g=f,v)=>g.filter($=>!(v!=null&&v.includes($))).map($=>E($)||"").filter(Boolean).join(l);return{get css(){return D()},layers:f,getLayers:D,getLayer:E,matched:d}}matchVariants(t,r){let o=new Set,n=[],a=r||t,i=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){i=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,c);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.unshift(p),o.add(l),i=!0;break}}if(!i)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var d;return((d=p.body)==null?void 0:d.call(p,l))||l},t[2]),i=n.reduce((l,p)=>{var d;return((d=p.selector)==null?void 0:d.call(p,l,a))||l},ba(o)),c={selector:ga(i),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,o){r=ie(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${G(a)}}`;return i?`${i}{${c}}`:c}async parseUtil(t,r,o=!1){var m,x;let[n,a,i]=typeof t=="string"?this.matchVariants(t):t,c=this.config.details?f=>{var b;r.rules=(b=r.rules)!=null?b:[],r.rules.push(f)}:Ne,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((m=l[2])!=null&&m.internal)))return c(l[3]),[[l[0],n,ie(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:d}=this.config;for(let f=d-1;f>=0;f--){let b=p[f];if(!b||((x=b[2])==null?void 0:x.internal)&&!o)continue;let[E,D,g]=b,v=a.match(E);if(!v)continue;let $=await D(v,r);if(!$)continue;if(c(b),typeof $=="string")return[[f,$,g]];let w=zt($).filter(z=>z.length);if(w.length)return w.map(z=>[f,n,z,g,i])}}stringifyUtil(t,r){var f;if(!t)return;if(Be(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:c}=this.applyVariants(t),l=G(n);if(!l)return;let b=(f=t[3])!=null?f:{},{layer:p,sort:d}=b,m=Rt(b,["layer","sort"]),x=R(h({},m),{layer:i!=null?i:p,sort:c!=null?c:d});return[t[0],o,l,a,x,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:Ne,a,i;for(let c of this.config.shortcuts)if(Tt(c)){if(c[0]===t){a=a||c[2],i=c[1],n(c);break}}else{let l=t.match(c[0]);if(l&&(i=c[1](l,r)),i){a=a||c[2],n(c);break}}if(typeof i=="string"&&(i=Ot(i).split(/\s+/g)),!!i)return[i.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var d;let a=new Ce,i=(await Promise.all(se(o).map(async m=>{let x=await this.parseUtil(m,r,!0);return x||Ut(`unmatched utility "${m}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((m,x)=>m[0]-x[0]),[c,,l]=t,p=[];for(let m of i){if(Be(m)){p.push([m[0],void 0,m[1],void 0,m[2],r]);continue}let{selector:x,entries:f,parent:b,sort:E}=this.applyVariants(m,[...m[4],...l],c);a.getFallback(x,b,[[],m[0]])[0].push([f,!!((d=m[3])!=null&&d.noMerge),E!=null?E:0])}return p.concat(a.map(([m,x],f,b)=>{let E=(g,v,$)=>{let w=Math.max(...$.map(A=>A[1])),z=$.map(A=>A[0]);return(g?[z.flat(1)]:z).map(A=>{let N=G(A);if(N)return[x,f,N,b,R(h({},n),{noMerge:v,sort:w}),r]})};return[[m.filter(([,g])=>g).map(([g,,v])=>[g,v]),!0],[m.filter(([,g])=>!g).map(([g,,v])=>[g,v]),!1]].map(([g,v])=>[...E(!1,v,g.filter(([$])=>$.some(w=>w[0]===We))),...E(!0,v,g.filter(([$])=>$.every(w=>w[0]!==We)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Bt(e,t){return new Ie(e,t)}var Nt=/ \$\$ /,ma=e=>e.match(Nt);function da(e,t){return ma(e)?e.replace(Nt,t?` ${t} `:" "):t?`${t} ${e}`:e}function ga(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Wt=/^\[(.+?)(~?=)"(.*)"\]$/;function ba(e){return Wt.test(e)?e.replace(Wt,(t,r,o,n)=>`[${we(r)}${o}"${we(n)}"]`):`.${we(e)}`}var Ke=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase)return`*,::before,::after{${G(Object.entries(e.theme.preflightBase))}}`}}];var P={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},He=R(h({},P),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),qe={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Xe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Lt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],j=Object.assign({},...Lt.map(e=>({[e.replace(/ /,"-")]:e})),...Lt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),_=["inherit","initial","revert","revert-layer","unset"];var Dt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},It=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Dt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Dt).join("|")})`}]],Kt=["center","left","right","justify","start","end",..._].map(e=>[`text-${e}`,{"text-align":e}]);var Ye=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Z(e=""){let t=ha(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ye.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ye.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function ha(e){if(!e)return;let t=xa(e);if(t!=null||(t=ya(e),t!=null)||(t=va(e),t!=null)||(t=ka(e),t!=null)||(t=wa(e),t!=null))return t}function xa(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function ya(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function va(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ce(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var $a=new RegExp(`^(${Ye.join("|")})\\((.+)\\)$`,"i");function ka(e){let t=e.match($a);if(!t)return;let[,r,o]=t,n=Ht(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function wa(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ht(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Ht(e){let t=ce(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let a=t.splice(r-2);t.push(a.join(" ")),--r}let o=ce(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function Sa(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function ce(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=Sa(e,t);if(!a)return;let[i,c]=a;o.push(i),e=c}if(o.length>0)return o}var Ze={};ia(Ze,{auto:()=>ja,bracket:()=>Ma,bracketOfColor:()=>Ua,bracketOfLength:()=>Fa,bracketOfPosition:()=>_a,cssvar:()=>Wa,degree:()=>Na,fraction:()=>Aa,global:()=>La,number:()=>Va,numberWithUnit:()=>za,percent:()=>Pa,position:()=>Ia,properties:()=>Da,px:()=>Ea,rem:()=>Ta,time:()=>Ba});var Ca=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],Ge=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Ra=/^(-?[0-9.]+)$/i,qt=/^(px)$/i;function W(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function za(e){let t=e.match(Ge);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${W(n)}${o}`}function ja(e){if(e==="auto"||e==="a")return"auto"}function Ta(e){if(e.match(qt))return`1${e}`;let t=e.match(Ge);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n/4)}rem`}function Ea(e){if(e.match(qt))return`1${e}`;let t=e.match(Ge);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}px`}function Va(e){if(!Ra.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return W(t)}function Pa(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${W(t/100)}`}function Aa(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${W(o*100)}%`}var Oa=/^\[(color|length|position):/i;function ze(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(Oa);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Ma(e){return ze(e)}function Ua(e){return ze(e,"color")}function Fa(e){return ze(e,"length")}function _a(e){return ze(e,"position")}function Wa(e){if(e.match(/^\$\S/))return`var(--${ne(e.slice(1))})`}function Ba(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}ms`}function Na(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}deg`}function La(e){if(_.includes(e))return e}function Da(e){if(e.split(",").every(t=>Ca.includes(t)))return e}function Ia(e){if(["top","left","right","bottom","center"].includes(e))return e}var s=Re(Ze);var L=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},M=(e,t)=>{let r=new RegExp(`^${oe(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var Xt="$$mini-no-negative",C=e=>([t,r,o],{theme:n})=>{var i,c;let a=(c=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?c:s.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(l=>[`${e}${l}`,a])},Je=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},J=(e,t)=>{let r=e.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=a;if(!i)return;let c,l=s.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=s.cssvar(o)),c=c||l;let d="DEFAULT";if(!c){let m,[x]=a.slice(-1);x.match(/^\d+$/)?(d=x,m=Je(t,a.slice(0,-1))):(m=Je(t,a),!m&&a.length<=2&&([,d=d]=a,m=Je(t,[i]))),typeof m=="string"?c=m:d&&m&&(c=m[d])}return{opacity:n,name:i,no:d,color:c,cssColor:Z(c),alpha:s.bracket.cssvar.percent(n!=null?n:"")}},S=(e,t)=>([,r],{theme:o})=>{var l;let n=J(r,o);if(!n)return;let{alpha:a,color:i,cssColor:c}=n;if(c)return a!=null?{[e]:U(c,a)}:{[`--un-${t}-opacity`]:(l=c.alpha)!=null?l:1,[e]:U(c,`var(--un-${t}-opacity)`)};if(i)return{[e]:i.replace("%alpha",`${a!=null?a:1}`)}},Q=(e,t)=>{let r=[];e=V(e);for(let o=0;o<e.length;o++){let n=ce(e[o]," ",6);if(!n||n.length<3)return e;let a=Z(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${U(a)})`)}return r},je=(e,t)=>{var r;return e!=null&&!!((r=J(e,t))!=null&&r.color)},ee=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Yt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Gt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",..._].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Zt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Ka=e=>{var t;return(t=s.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Jt=[[/^will-change-(.+)/,([,e])=>({"will-change":Ka(e)})]];var me=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",..._],Qt=[[/^(?:border|b)()(?:-(.+))?$/,le,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,le],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,le],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,le],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-()(?:width|size)-(.+)$/,te,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,te],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,te],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,te],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,te],[/^(?:border|b)-()(?:color-)?(.+)$/,pe,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ue,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ue],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,fe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,fe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,fe],[/^(?:border|b)-(?:style-)?()(.+)$/,re,{autocomplete:["(border|b)-style",`(border|b)-(${me.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${me.join("|")})`,`(border|b)-<directions>-style-(${me.join("|")})`,`(border|b)-style-(${me.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,re],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,re],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,re],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,re]],Ha=e=>([,t],r)=>{var c,l;let o=J(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${e}-color`]:U(i,n)}:e===""?{"--un-border-opacity":(c=i.alpha)!=null?c:1,[`border${e}-color`]:U(i,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:U(i,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function le(e,t){let r=te(e,t),o=re(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function te([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:s.bracket.cssvar.px(t||"1");if(e in P&&o!=null)return P[e].map(i=>[`border${i}-width`,o])}function pe([,e="",t],{theme:r}){if(e in P&&je(t,r))return Object.assign({},...P[e].map(o=>Ha(o)(["",t],r)))}function ue([,e="",t]){let r=s.bracket.percent(t);if(e in P&&r!=null)return P[e].map(o=>[`--un-border${o}-opacity`,r])}function fe([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||s.bracket.cssvar.fraction.rem(t||"1");if(e in qe&&o!=null)return qe[e].map(a=>[`border${a}-radius`,o])}function re([,e="",t]){if(me.includes(t)&&e in P)return P[e].map(r=>[`border${r}-style`,t])}var er=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:s.bracket.percent.cssvar(e)})]],tr=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":s.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],rr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":s.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Te={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},or=e=>{var t;return(t=s.properties(e))!=null?t:Te[e]},nr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?or(e):[Te.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:s.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Te).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:s.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":s.global(e)||or(e)}),{autocomplete:[`transition-property-(${[..._,...Object.keys(Te)].join("|")})`]}],["transition-none",{transition:"none"}]];var ar=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:s.bracket(e)!=null?s.bracket(e).split(" ").map(t=>{var r;return(r=s.cssvar.fraction(t))!=null?r:t}).join(" "):s.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>{var r,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o:s.bracket.cssvar.auto.fraction.rem(e)}}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var ir={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},sr=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||s.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=V((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":s.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=V((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:s.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":ir[e]||s.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(ir).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||s.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||s.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||s.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],cr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=s.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],lr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||s.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],pr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||s.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":s.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],ur=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":s.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":s.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var fr={"":"",x:"column-",y:"row-"},mr=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:s.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${fr[e]}gap`]:o,[`${fr[e]}gap`]:o}},dr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,mr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,mr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var K=e=>e.replace("col","column"),Qe=e=>e[0]==="r"?"Row":"Column",qa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Qe(e)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return s.bracket.cssvar.auto.rem(r)},gr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${K(e)}`]:(n=(o=r[`grid${Qe(e)}`])==null?void 0:o[t])!=null?n:s.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${K(e)}`]:"1/-1"};let r=s.bracket.number(t);if(r!=null)return{[`grid-${K(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${K(e)}-start`]:(r=s.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${K(e)}-end`]:(r=s.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${K(e)}`]:qa(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":s.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":K(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${K(e)}`]:(n=(o=r[`gridTemplate${Qe(e)}`])==null?void 0:o[t])!=null?n:s.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${K(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${K(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Ee=["auto","hidden","clip","visible","scroll"],br=[[/^(?:overflow|of)-(.+)$/,([,e])=>Ee.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Ee.join("|")})`,`(overflow|of)-(x|y)-(${Ee.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Ee.includes(t)?{[`overflow-${e}`]:t}:void 0]];var hr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],xr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],yr=[[/^order-(.+)$/,([,e])=>({order:s.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],vr=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],$r=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function et(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:s.bracket.cssvar.auto.fraction.rem(e)}function Ve([,e,t],r){let o=et(t,r);if(o!=null&&e in He)return He[e].map(n=>[n.slice(1),o])}var kr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:et(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:et(t,r)})]],wr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Sr=[[/^z([\d.]+)$/,([,e])=>({"z-index":s.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":s.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Cr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var y="var(--un-empty,/*!*/ /*!*/)",Rr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:s.bracket.cssvar(e)||e})]],zr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],jr=[[/^cursor-(.+)$/,([,e])=>({cursor:s.bracket.cssvar(e)||e})]],Tr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Er=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Vr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Pr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Ar=[[/^content-(.+)$/,([,e])=>{let t=s.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Or=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Mr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ur=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Fr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],_r=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Wr={"--un-ring-inset":y,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 #0000"},Br=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:s.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":s.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":s.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Nr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":y,"--un-shadow":"0 0 #0000"},Lr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return{"--un-shadow":Q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,S("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":s.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Xa={h:"height",w:"width",inline:"inline-size",block:"block-size"};function de(e,t){return`${e||""}${Xa[t]}`}function Dr(e,t,r,o){var i;let n=de(e,t).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(i=r[n])==null?void 0:i[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return s.bracket.cssvar.auto.fraction.rem(o)}var Ir=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Dr(e,t,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Dr(e,t,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=Yt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=ee(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ya(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return s.bracket.cssvar.auto.number(e)}var Kr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ya(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Hr=[[/^pa?()-?(-?.+)$/,C("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,C("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,C("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],qr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?xy()()$/,C("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,C("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,C("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,C("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,C("margin")]];var Ga=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Za=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Zr={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0,"--un-transform":Ga},Jr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=j[e])!=null?t:s.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(j).join("|")})`,`origin-(${Object.keys(j).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=s.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=s.bracket.cssvar(e))!=null?r:e.length>=3?j[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Xr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Xr],[/^(?:transform-)?rotate-()(.+)$/,Gr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Gr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ja],[/^(?:transform-)?scale-()(.+)$/,Yr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Yr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:"var(--un-transform)"}],["transform-cpu",{transform:"var(--un-transform)"}],["transform-gpu",{transform:Za}],["transform-none",{transform:"none"}]];function Xr([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:s.bracket.cssvar.fraction.rem(t);if(o!=null)return[...Xe[e].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]}function Yr([,e,t]){let r=s.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Xe[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]}function Gr([,e="",t]){let r=s.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}}function Ja([,e,t]){let r=s.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}}var Qa={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Qr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Qa[e];if(r)return{[r]:s.cssvar(t)}}]],eo=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:s.bracket(`[${t}]`)})]];var to=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
3
3
  ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var ro=["solid","double","dotted","dashed","wavy",..._],oo=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"text-decoration-thickness":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=S("text-decoration-color","line")(e,t);if(r)return h({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":s.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"text-underline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...ro.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...ro.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var no=[[/^fill-(.+)$/,S("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":s.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"stroke-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":s.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"stroke-dashoffset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:s.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,S("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":s.bracket.percent(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var tt={},ao=e=>{var n;let t=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",r=e.slice(t.length),o=parseFloat(t)-.1;return Number.isNaN(o)?e:`${o}${r}`},io={name:"breakpoints",match(e,t){var o;let r=Object.entries((o=ee(t))!=null?o:{}).map(([n,a],i)=>[n,a,i]);for(let[n,a,i]of r){tt[n]||(tt[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let c=e.match(tt[n]);if(!c)continue;let[,l]=c,p=e.slice(l.length);if(p==="container")continue;let d=l.startsWith("lt-"),m=l.startsWith("at-"),x=1e3;return d?(x-=i+1,{matcher:p,parent:[`@media (max-width: ${ao(a)})`,x]}):(x+=i+1,m&&i<r.length-1?{matcher:p,parent:[`@media (min-width: ${a}) and (max-width: ${ao(r[i+1][1])})`,x]}:{matcher:p,parent:[`@media (min-width: ${a})`,x]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var q=(e,t,r)=>{let o=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:n=>{let a=n.match(o);if(a)return{matcher:n.slice(a[0].length),selector:i=>{var c;return r.replace("&&-s",i).replace("&&-c",(c=a[1])!=null?c:"*")}}}}},so=[q(!1,"all","&&-s &&-c"),q(!1,"children","&&-s>&&-c"),q(!1,"next","&&-s+&&-c"),q(!1,"sibling","&&-s+&&-c"),q(!1,"siblings","&&-s~&&-c"),q(!0,"group","&&-c &&-s"),q(!0,"parent","&&-c>&&-s"),q(!0,"previous","&&-c+&&-s"),q(!0,"peer","&&-c~&&-s")];var co=M("print","@media print"),lo={name:"media",match(e,{theme:t}){var o,n;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let a=(n=(o=t.media)==null?void 0:o[r[1]])!=null?n:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${a}`}}}};var po=(e={})=>(e==null?void 0:e.dark)==="class"?[L("dark",t=>`.dark $$ ${t}`),L("light",t=>`.light $$ ${t}`)]:[M("dark","@media (prefers-color-scheme: dark)"),M("light","@media (prefers-color-scheme: light)")];var uo=[L("rtl",e=>`[dir="rtl"] $$ ${e}`),L("ltr",e=>`[dir="ltr"] $$ ${e}`)];var mo={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},go={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),parent:`@layer ${t[1]}`}}},bo={name:"uno-layer",match(e){let t=e.match(/^uno-layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},ho={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},xo={name:"important",match(e){let t=e.match(/^(important[:-]|!)/);if(t)return{matcher:e.slice(t[0].length),body:r=>(r.forEach(o=>{o[1]&&(o[1]+=" !important")}),r)}},autocomplete:"(important)"},fo=/[0-9.]+(?:[a-z]+|%)?/,yo={name:"negative",match(e){if(!(!e.startsWith("-")||!e.match(/\d|-px|-full/)))return{matcher:e.slice(1),body:t=>{if(t.find(o=>o[0]===Xt))return;let r=!1;if(t.forEach(o=>{var a;let n=(a=o[1])==null?void 0:a.toString();!n||n==="0"||fo.test(n)&&(o[1]=n.replace(fo,i=>`-${i}`),r=!0)}),r)return t}}}};var be=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),he=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),ei=["not","is","where","has"],rt=Object.entries(be).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),ot=Object.entries(he).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),ge=ei.join("|"),vo=e=>{if(e==="active")return 1},Pe=(e,t,r)=>{let o=new RegExp(`^${oe(t)}:`),n=new RegExp(`^${e}-((?:(${ge})-)?(${rt}))[:-]`),a=new RegExp(`^${e}-((?:(${ge})-)?(${ot}))[:]`);return{name:`pseudo:${e}`,match(i){let c=i.match(n)||i.match(a);if(c){let l=be[c[3]]||he[c[3]]||`:${c[3]}`;return c[2]&&(l=`:${c[2]}(${l})`),{matcher:i.slice(c[0].length),selector:p=>o.test(p)?p.replace(o,`${t}${l}:`):`${t}${l}${r}${p}`,sort:vo(c[3])}}}}},$o=Object.entries(be).map(([e])=>e).join("|"),ti=Object.entries(he).map(([e])=>e).join("|"),ri=new RegExp(`^(${$o})[:-]`),oi=new RegExp(`^(${ti})[:]`),ko={name:"pseudo",match:e=>{let t=e.match(ri)||e.match(oi);if(t){let r=be[t[1]]||he[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}${r}`,sort:vo(t[1])}}},multiPass:!0,autocomplete:`(${$o}):`},ni=new RegExp(`^(${ge})-(${rt})[:-]`),ai=new RegExp(`^(${ge})-(${ot})[:]`),wo={match:e=>{let t=e.match(ni)||e.match(ai);if(t){let r=t[1],o=be[t[2]]||he[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}:${r}(${o})`}}},multiPass:!0,autocomplete:`(${ge})-(${rt}|${ot}):`},So=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[R(h({},Pe("group",t?'[group=""]':".group"," ")),{multiPass:!0}),R(h({},Pe("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),R(h({},Pe("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),R(h({},Pe("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},ii=/(part-\[(.+)]:)(.+)/,Co={match:e=>{let t=e.match(ii);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:o=>`${o}::${r}`}}},multiPass:!0};var Ro=e=>[go,mo,bo,yo,xo,co,lo,io,...so,ko,wo,...So(e),Co,...po(e),...uo,ho];var zo=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
4
4
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,i,c,l,p,d,m,x,f;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let b=(l=(c=(i=t.animation)==null?void 0:i.durations)==null?void 0:c[e])!=null?l:"1s",E=(m=(d=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:d[e])!=null?m:"linear",D=(f=(x=t.animation)==null?void 0:x.properties)==null?void 0:f[e];return`@keyframes ${e}${o}