@unocss/runtime 0.38.0 → 0.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (()=>{var Ae=Object.defineProperty,va=Object.defineProperties;var $a=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var je=(t,e,r)=>e in t?Ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))Ve.call(e,r)&&je(t,r,e[r]);if(zt)for(var r of zt(e))Oe.call(e,r)&&je(t,r,e[r]);return t},z=(t,e)=>va(t,$a(e));var Pe=(t,e)=>{var r={};for(var o in t)Ve.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&zt)for(var o of zt(t))e.indexOf(o)<0&&Oe.call(t,o)&&(r[o]=t[o]);return r};var ka=(t,e)=>{for(var r in e)Ae(t,r,{get:e[r],enumerable:!0})};function it(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.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&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var Tt=st;function lt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Me(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>lt(e)):[t]:[lt(t)]}function wa(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function Q(t){return t==null?"":wa(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Et(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ht(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=h({},r);return Et(r)&&Et(o)&&Object.keys(o).forEach(a=>{Et(r[a])&&Et(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ht(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ct(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ct(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ct(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ct(o):o;return r}return t}function Fe(t){return typeof t[0]=="string"}function Ue(t){return typeof t[0]=="string"}function O(t=[]){return Array.isArray(t)?t:[t]}function pt(t){return Array.from(new Set(t))}var Sa=/^\[(.+?)~?="(.*)"\]$/;var Ca=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,qt="$$shortcut-no-merge";function _e(t){return t.match(Sa)}function ut(t=""){return Ca.test(t)}function We(t){return typeof t=="function"?{match:t}:t}function Xt(t){return t.length===3}function Be(t){return t!=null}function Yt(){}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var Ne=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Le(t){Ne.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ne,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var De=new Set;function Ie(t){De.has(t)||(console.warn("[unocss]",t),De.add(t))}function At(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=t[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Ra=t=>t.split(/[\s'"`;>=]+/g).filter(ut),ft={name:"split",order:0,extract({code:t}){return new Set(Ra(t))}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}function za(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ta={preflights:-100,shortcuts:-10,default:0};function Gt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(O),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Ta,...o.map(f=>f.layers),t.layers);function i(f){return pt([...n.flatMap(y=>O(y[f]||[])),...O(r[f]||[])])}let s=i("extractors");s.length||s.push(ft),s.sort((f,y)=>(f.order||0)-(y.order||0));let l=i("rules"),p={},d=l.length;l.forEach((f,y)=>{Fe(f)&&(p[f[0]]=[y,f[1],f[2],f],delete l[y])});let u=ct([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,y)=>Ht(f,y),{}));i("extendTheme").forEach(f=>f(u));let x={templates:pt(n.map(f=>{var y;return O((y=f.autocomplete)==null?void 0:y.templates)}).flat()),extractors:n.map(f=>{var y;return O((y=f.autocomplete)==null?void 0:y.extractors)}).flat().sort((f,y)=>(f.order||0)-(y.order||0))};return z(h({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:x,variants:i("variants").map(We),shortcuts:za(i("shortcuts")),extractors:s,safelist:i("safelist")})}var He="0.38.0";var Zt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Gt(e,r),this.events.emit("config",this.config)}version=He;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ke();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(s=>o.add(s))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let i=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[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(Be);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>s.add(g));let l=i?"":`
1
+ (()=>{var Ae=Object.defineProperty,va=Object.defineProperties;var $a=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var je=(t,e,r)=>e in t?Ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))Ve.call(e,r)&&je(t,r,e[r]);if(zt)for(var r of zt(e))Oe.call(e,r)&&je(t,r,e[r]);return t},z=(t,e)=>va(t,$a(e));var Pe=(t,e)=>{var r={};for(var o in t)Ve.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&zt)for(var o of zt(t))e.indexOf(o)<0&&Oe.call(t,o)&&(r[o]=t[o]);return r};var ka=(t,e)=>{for(var r in e)Ae(t,r,{get:e[r],enumerable:!0})};function it(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.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&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var Tt=st;function lt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Me(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>lt(e)):[t]:[lt(t)]}function wa(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function Q(t){return t==null?"":wa(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Et(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ht(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=h({},r);return Et(r)&&Et(o)&&Object.keys(o).forEach(a=>{Et(r[a])&&Et(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ht(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ct(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ct(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ct(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ct(o):o;return r}return t}function Fe(t){return typeof t[0]=="string"}function Ue(t){return typeof t[0]=="string"}function O(t=[]){return Array.isArray(t)?t:[t]}function pt(t){return Array.from(new Set(t))}var Sa=/^\[(.+?)~?="(.*)"\]$/;var Ca=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,qt="$$shortcut-no-merge";function _e(t){return t.match(Sa)}function ut(t=""){return Ca.test(t)}function We(t){return typeof t=="function"?{match:t}:t}function Xt(t){return t.length===3}function Be(t){return t!=null}function Yt(){}var jt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var Ne=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Le(t){Ne.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ne,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var De=new Set;function Ie(t){De.has(t)||(console.warn("[unocss]",t),De.add(t))}function At(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=t[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var Ra=t=>t.split(/[\s'"`;>=]+/g).filter(ut),ft={name:"split",order:0,extract({code:t}){return new Set(Ra(t))}};function Ke(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}function za(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ta={preflights:-100,shortcuts:-10,default:0};function Gt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(O),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Ta,...o.map(f=>f.layers),t.layers);function i(f){return pt([...n.flatMap(y=>O(y[f]||[])),...O(r[f]||[])])}let s=i("extractors");s.length||s.push(ft),s.sort((f,y)=>(f.order||0)-(y.order||0));let l=i("rules"),p={},d=l.length;l.forEach((f,y)=>{Fe(f)&&(p[f[0]]=[y,f[1],f[2],f],delete l[y])});let u=ct([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,y)=>Ht(f,y),{}));i("extendTheme").forEach(f=>f(u));let x={templates:pt(n.map(f=>{var y;return O((y=f.autocomplete)==null?void 0:y.templates)}).flat()),extractors:n.map(f=>{var y;return O((y=f.autocomplete)==null?void 0:y.extractors)}).flat().sort((f,y)=>(f.order||0)-(y.order||0))};return z(h({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:x,variants:i("variants").map(We),shortcuts:za(i("shortcuts")),extractors:s,safelist:i("safelist")})}var He="0.38.1";var Zt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Gt(e,r),this.events.emit("config",this.config)}version=He;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ke();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(s=>o.add(s))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let i=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[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(Be);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>s.add(g));let l=i?"":`
2
2
  `,p=new Set(["default"]),d=new Set,u=new Map;await Promise.all(Array.from(s).map(async g=>{var $;if(d.has(g))return;let b=await this.parseToken(g);if(b!=null){d.add(g);for(let C of b){let T=C[3]||"";u.has(T)||u.set(T,[]),u.get(T).push(C),($=C[4])!=null&&$.layer&&p.add(C[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,b)=>(this.config.layers[g]??0)-(this.config.layers[b]??0)||g.localeCompare(b))),y={};if(n){let g={generator:this,theme:this.config.theme};y=Object.fromEntries(await Promise.all(f.map(async b=>{let C=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===b).map(async T=>await T.getCSS(g)))).filter(Boolean).join(l);return[b,C]})))}let w=g=>{if(x[g])return x[g];let b=Array.from(u).sort(($,C)=>{var T;return(this.parentOrders.get($[0])??0)-(this.parentOrders.get(C[0])??0)||((T=$[0])==null?void 0:T.localeCompare(C[0]||""))||0}).map(([$,C])=>{let T=C.length,U=C.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===g}).sort((m,k)=>{var M,K,_;return m[0]-k[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((K=k[4])==null?void 0:K.sort)||0)||((_=m[1])==null?void 0:_.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?Aa(m[1],o):m[1],m[2],!!((k=m[4])!=null&&k.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!U.length)return;let X=U.reverse().map(([m,k,M],K)=>{if(!M&&m&&this.config.mergeSelectors)for(let _=K+1;_<T;_++){let D=U[_];if(D&&!D[2]&&D[0]&&D[1]===k)return D[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return $?`${$}{${l}${X}${l}}`:X}).filter(Boolean).join(l);return n&&(b=[y[g],b].filter(Boolean).join(l)),x[g]=!i&&b?`/* layer: ${g} */${l}${b}`:b},E=(g=f,b)=>g.filter($=>!(b!=null&&b.includes($))).map($=>w($)||"").filter(Boolean).join(l);return{get css(){return E()},layers:f,getLayers:E,getLayer:w,matched:d}}matchVariants(e,r){let o=new Set,n=[],a=r||e,i=!1,s={rawSelector:e,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,s);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 "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[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},e[2]),i=n.reduce((l,p)=>{var d;return((d=p.selector)==null?void 0:d.call(p,l,a))||l},Oa(o)),s={selector:Va(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(s);return s}constructCustomCSS(e,r,o){r=lt(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),s=`${n}{${Q(a)}}`;return i?`${i}{${s}}`:s}async parseUtil(e,r,o=!1){var u,x;let[n,a,i]=typeof e=="string"?this.matchVariants(e):e,s=this.config.details?f=>{r.rules=r.rules??[],r.rules.push(f)}:Yt,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return s(l[3]),[[l[0],n,lt(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:d}=this.config;for(let f=d-1;f>=0;f--){let y=p[f];if(!y||((x=y[2])==null?void 0:x.internal)&&!o)continue;let[w,E,g]=y,b=a.match(w);if(!b)continue;let $=await E(b,r);if(!$)continue;if(s(y),typeof $=="string")return[[f,$,g]];let C=Me($).filter(T=>T.length);if(C.length)return C.map(T=>[f,n,T,g,i])}}stringifyUtil(e,r){if(!e)return;if(Xt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:s}=this.applyVariants(e),l=Q(n);if(!l)return;let f=e[3]??{},{layer:p,sort:d}=f,u=Pe(f,["layer","sort"]),x=z(h({},u),{layer:i??p,sort:s??d});return[e[0],o,l,a,x,this.config.details?r:void 0]}expandShortcut(e,r,o=3){if(o===0)return;let n=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:Yt,a,i;for(let s of this.config.shortcuts)if(Ue(s)){if(s[0]===e){a=a||s[2],i=s[1],n(s);break}}else{let l=e.match(s[0]);if(l&&(i=s[1](l,r)),i){a=a||s[2],n(s);break}}if(typeof i=="string"&&(i=Le(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var l;return((l=this.expandShortcut(s,r,o-1))==null?void 0:l[0])||[s]}).filter(s=>s!==""),a]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var d;let a=new jt,i=(await Promise.all(pt(o).map(async u=>{let x=await this.parseUtil(u,r,!0);return x||Ie(`unmatched utility "${u}" in shortcut "${e[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((u,x)=>u[0]-x[0]),[s,,l]=e,p=[];for(let u of i){if(Xt(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:x,entries:f,parent:y,sort:w}=this.applyVariants(u,[...u[4],...l],s);a.getFallback(x,y,[[],u[0]])[0].push([f,!!((d=u[3])!=null&&d.noMerge),w??0])}return p.concat(a.map(([u,x],f,y)=>{let w=(g,b,$)=>{let C=Math.max(...$.map(U=>U[1])),T=$.map(U=>U[0]);return(g?[T.flat(1)]:T).map(U=>{let X=Q(U);if(X)return[x,f,X,y,z(h({},n),{noMerge:b,sort:C}),r]})};return[[u.filter(([,g])=>g).map(([g,,b])=>[g,b]),!0],[u.filter(([,g])=>!g).map(([g,,b])=>[g,b]),!1]].map(([g,b])=>[...w(!1,b,g.filter(([$])=>$.some(C=>C[0]===qt))),...w(!0,b,g.filter(([$])=>$.every(C=>C[0]!==qt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Xe(t,e){return new Zt(t,e)}var Ye=/ \$\$ /,ja=t=>t.match(Ye);function Aa(t,e){return ja(t)?t.replace(Ye,e?` ${e} `:" "):e?`${e} ${t}`:t}function Va(t){let e=t.match(/::[\w-]+/g);return e&&(e.forEach(r=>t=t.replace(r,"")),t+=e.join("")),t}var qe=/^\[(.+?)(~?=)"(.*)"\]$/;function Oa(t){return qe.test(t)?t.replace(qe,(e,r,o,n)=>`[${Tt(r)}${o}"${Tt(n)}"]`):`.${Tt(t)}`}var Jt=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase)return`*,::before,::after{${Q(Object.entries(t.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"]},Qt=z(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"]}),te={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"]},ee={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ge=["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({},...Ge.map(t=>({[t.replace(/ /,"-")]:t})),...Ge.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),W=["inherit","initial","revert","revert-layer","unset"];var Ze={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"},Je=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":Ze[t]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Ze).join("|")})`}]],Qe=["center","left","right","justify","start","end",...W].map(t=>[`text-${t}`,{"text-align":t}]);var re=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function tt(t=""){let e=Pa(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(re.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function G(t){let e=t.alpha??1;return e==="%alpha"?1:e}function A(t,e){if(typeof t=="string")return t.replace("%alpha",`${e??1}`);let{components:r}=t,{alpha:o,type:n}=t;return o=e??o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,re.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Pa(t){if(!t)return;let e=Ma(t);if(e!=null||(e=Fa(t),e!=null)||(e=Ua(t),e!=null)||(e=Wa(t),e!=null)||(e=Ba(t),e!=null))return e}function Ma(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Fa(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Ua(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=mt(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(`^(${re.join("|")})\\((.+)\\)$`,"i");function Wa(t){let e=t.match(_a);if(!e)return;let[,r,o]=e,n=tr(`${r} ${o}`);if(n){let{alpha:a,components:[i,...s]}=n;return{type:i,components:s,alpha:a}}}function Ba(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=tr(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function tr(t){let e=mt(t);if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let a=e.splice(r-2);e.push(a.join(" ")),--r}let o=mt(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Na(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function mt(t,e,r){if(e=e??" ",e.length!==1)return;r=r??10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Na(t,e);if(!a)return;let[i,s]=a;o.push(i),t=s}if(o.length>0)return o}var ne={};ka(ne,{auto:()=>Ka,bracket:()=>Ja,bracketOfColor:()=>Qa,bracketOfLength:()=>ti,bracketOfPosition:()=>ei,cssvar:()=>ri,degree:()=>ni,fraction:()=>Ga,global:()=>ai,number:()=>Xa,numberWithUnit:()=>Ia,percent:()=>Ya,position:()=>si,properties:()=>ii,px:()=>qa,rem:()=>Ha,time:()=>oi});var La=["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"],oe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Da=/^(-?[0-9.]+)$/i,er=/^(px)$/i;function B(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Ia(t){let e=t.match(oe);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${B(n)}${o}`}function Ka(t){if(t==="auto"||t==="a")return"auto"}function Ha(t){if(t.match(er))return`1${t}`;let e=t.match(oe);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n/4)}rem`}function qa(t){if(t.match(er))return`1${t}`;let e=t.match(oe);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}px`}function Xa(t){if(!Da.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return B(e)}function Ya(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${B(e/100)}`}function Ga(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${B(o*100)}%`}var Za=/^\[(color|length|position):/i;function Vt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(Za);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.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 Ja(t){return Vt(t)}function Qa(t){return Vt(t,"color")}function ti(t){return Vt(t,"length")}function ei(t){return Vt(t,"position")}function ri(t){if(t.match(/^\$\S/))return`var(--${st(t.slice(1))})`}function oi(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}ms`}function ni(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}deg`}function ai(t){if(W.includes(t))return t}function ii(t){if(t.split(",").every(e=>La.includes(e)))return t}function si(t){if(["top","left","right","bottom","center"].includes(t))return t}var c=At(ne);var L=(t,e)=>{let r=new RegExp(`^${it(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},F=(t,e)=>{let r=new RegExp(`^${it(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var rr="$$mini-no-negative",R=t=>([e,r,o],{theme:n})=>{var i;let a=((i=n.spacing)==null?void 0:i[o||"DEFAULT"])??c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(s=>[`${t}${s}`,a])},ae=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},et=(t,e)=>{let r=t.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 s,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?s=p:p.startsWith("hex-")?s=`#${p.slice(4)}`:o.startsWith("$")&&(s=c.cssvar(o)),s=s||l;let d="DEFAULT";if(!s){let u,[x]=a.slice(-1);x.match(/^\d+$/)?(d=x,u=ae(e,a.slice(0,-1))):(u=ae(e,a),!u&&a.length<=2&&([,d=d]=a,u=ae(e,[i]))),typeof u=="string"?s=u:d&&u&&(s=u[d])}return{opacity:n,name:i,no:d,color:s,cssColor:tt(s),alpha:c.bracket.cssvar.percent(n??"")}},S=(t,e)=>([,r],{theme:o})=>{let n=et(r,o);if(!n)return;let{alpha:a,color:i,cssColor:s}=n;if(s)return a!=null?{[t]:A(s,a)}:{[`--un-${e}-opacity`]:G(s),[t]:A(s,`var(--un-${e}-opacity)`)};if(i)return{[t]:A(i,a)}},rt=(t,e)=>{let r=[];t=O(t);for(let o=0;o<t.length;o++){let n=mt(t[o]," ",6);if(!n||n.length<3)return t;let a=tt(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${A(a)})`)}return r},Ot=(t,e)=>{var r;return t!=null&&!!((r=et(t,e))!=null&&r.color)},ot=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.breakpoints),r||(r=t.breakpoints),r},or=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var nr=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r;return{"outline-width":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r;return{"outline-offset":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...W].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],ar=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ci=t=>c.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t],ir=[[/^will-change-(.+)/,([,t])=>({"will-change":ci(t)})]];var xt=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...W],sr=[[/^(?:border|b)()(?:-(.+))?$/,dt,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,dt],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,dt],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,dt],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,dt],[/^(?:border|b)-()(?:width|size)-(.+)$/,nt,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,nt],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,nt],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,nt],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,nt],[/^(?:border|b)-()(?:color-)?(.+)$/,gt,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,gt],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,gt],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,gt],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,gt],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,bt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,bt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,bt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,bt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,bt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ht,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ht],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ht],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ht],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ht],[/^(?:border|b)-(?:style-)?()(.+)$/,at,{autocomplete:["(border|b)-style",`(border|b)-(${xt.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${xt.join("|")})`,`(border|b)-<directions>-style-(${xt.join("|")})`,`(border|b)-style-(${xt.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,at],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,at],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,at],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,at]],li=t=>([,e],r)=>{let o=et(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${t}-color`]:A(i,n)}:t===""?{"--un-border-opacity":G(i),"border-color":A(i,"var(--un-border-opacity)")}:{"--un-border-opacity":G(i),[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:A(i,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:A(a,n)}};function dt(t,e){let r=nt(t,e),o=at(["",t[1],"solid"]);if(r&&o)return[...r,...o]}function nt([,t="",e],{theme:r}){var n;let o=((n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])??c.bracket.cssvar.px(e||"1");if(t in P&&o!=null)return P[t].map(a=>[`border${a}-width`,o])}function gt([,t="",e],{theme:r}){if(t in P&&Ot(e,r))return Object.assign({},...P[t].map(o=>li(o)(["",e],r)))}function bt([,t="",e]){let r=c.bracket.percent(e);if(t in P&&r!=null)return P[t].map(o=>[`--un-border${o}-opacity`,r])}function ht([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in te&&o!=null)return te[t].map(a=>[`border${a}-radius`,o])}function at([,t="",e]){if(xt.includes(e)&&t in P)return P[t].map(r=>[`border${r}-style`,e])}var cr=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],lr=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],pr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Pt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},ur=t=>c.properties(t)??Pt[t],fr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n;let o=t!=null?ur(t):[Pt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let a=((n=r.duration)==null?void 0:n[e||"DEFAULT"])??c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(Pt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r;return{"transition-duration":((r=e.duration)==null?void 0:r[t||"DEFAULT"])??c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r;return{"transition-delay":((r=e.duration)==null?void 0:r[t||"DEFAULT"])??c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"transition-timing-function":((r=e.easing)==null?void 0:r[t||"DEFAULT"])??c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||ur(t)}),{autocomplete:[`transition-property-(${[...W,...Object.keys(Pt)].join("|")})`]}],["transition-none",{transition:"none"}]];var mr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>c.cssvar.fraction(e)??e).join(" "):c.cssvar.fraction(t)})],["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-(.+)$/,([,t],{theme:e})=>{var r;return{"flex-basis":((r=e.spacing)==null?void 0:r[t])??c.bracket.cssvar.auto.fraction.rem(t)}}],["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 dr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gr=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=O((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n;let r=O((n=e.fontSize)==null?void 0:n[t]),o=(r==null?void 0:r[0])??c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":dr[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(dr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,t])=>({"font-synthesis":t}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],br=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],hr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],xr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],yr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":rt(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var vr={"":"",x:"column-",y:"row-"},$r=([,t="",e],{theme:r})=>{var n;let o=((n=r.spacing)==null?void 0:n[e])??c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${vr[t]}gap`]:o,[`${vr[t]}gap`]:o}},kr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,$r,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,$r,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var I=t=>t.replace("col","column"),ie=t=>t[0]==="r"?"Row":"Column",pi=(t,e,r)=>{var n;let o=(n=e[`gridAuto${ie(t)}`])==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 c.bracket.cssvar.auto.rem(r)},wr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o;return{[`grid-${I(t)}`]:((o=r[`grid${ie(t)}`])==null?void 0:o[e])??c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${I(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${I(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${I(t)}-start`]:c.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${I(t)}-end`]:c.bracket.cssvar(e)??e})],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${I(t)}`]:pi(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":I(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o;return{[`grid-template-${I(t)}`]:((o=r[`gridTemplate${ie(t)}`])==null?void 0:o[e])??c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${I(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Mt=["auto","hidden","clip","visible","scroll"],Sr=[[/^(?:overflow|of)-(.+)$/,([,t])=>Mt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${Mt.join("|")})`,`(overflow|of)-(x|y)-(${Mt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>Mt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var Cr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Rr=[["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"}]],zr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Tr=[["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"}]],Er=[["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 se(t,{theme:e}){var r;return((r=e.spacing)==null?void 0:r[t])??c.bracket.cssvar.auto.fraction.rem(t)}function Ft([,t,e],r){let o=se(e,r);if(o!=null&&t in Qt)return Qt[t].map(n=>[n.slice(1),o])}var jr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:se(t,e)}),{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])-(.+)$/,Ft],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ft],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ft],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ft],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:se(e,r)})]],Ar=[["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"}]],Vr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],Or=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",Pr=[["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-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],Mr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Fr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],Ur=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],_r=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Wr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Br=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Nr=[[/^content-(.+)$/,([,t])=>{let e=c.bracket.cssvar(t);return{content:e??`"${t}"`}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Lr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Dr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ir=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Kr=[["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"}]],Hr=[["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 qr={"--un-ring-inset":v,"--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"},Xr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=((o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])??c.px(t||"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-)(.+)$/,([,t],{theme:e})=>{var r;return{"--un-ring-width":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r;return{"--un-ring-offset-width":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Yr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},Gr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return{"--un-shadow":rt(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)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ui={h:"height",w:"width",inline:"inline-size",block:"block-size"};function yt(t,e){return`${t||""}${ui[e]}`}function Zr(t,e,r,o){var i;let n=yt(t,e).replace(/-(\w)/g,(s,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 c.bracket.cssvar.auto.fraction.rem(o)}var Jr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[yt(t,e)]:Zr(t,e,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)-(.+)$/,([,t,e,r],{theme:o})=>({[yt(t,e)]:Zr(t,e,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-(.+)$/,([,t,e,r],o)=>{var n;return{[yt(t,e)]:(n=or(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],o)=>{var n;return{[yt(t,e)]:(n=ot(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function fi(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Qr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":fi(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var to=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,R("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,R("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],eo=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?xy()()$/,R("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,R("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,R("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,R("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,R("margin")]];var Z=["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(" "),mi=["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(" "),ao={"--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},io=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":j[t]??c.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(j).join("|")})`,`origin-(${Object.keys(j).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=c.bracket.cssvar(t)??(t.length>=3?j[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,ro],[/^(?:transform-)?translate-([xyz])-(.+)$/,ro],[/^(?:transform-)?rotate-()(.+)$/,no],[/^(?:transform-)?rotate-([xyz])-(.+)$/,no],[/^(?:transform-)?skew-([xy])-(.+)$/,di],[/^(?:transform-)?scale-()(.+)$/,oo],[/^(?:transform-)?scale-([xyz])-(.+)$/,oo],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:mi}],["transform-none",{transform:"none"}]];function ro([,t,e],{theme:r}){var n;let o=((n=r.spacing)==null?void 0:n[e])??c.bracket.cssvar.fraction.rem(e);if(o!=null)return[...ee[t].map(a=>[`--un-translate${a}`,o]),["transform",Z]]}function oo([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[...ee[t].map(o=>[`--un-scale${o}`,r]),["transform",Z]]}function no([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function di([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return{[`--un-skew-${t}`]:r,transform:Z}}var gi={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"},so=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=gi[t];if(r)return{[r]:c.cssvar(e)}}]],co=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var lo=[[/^(where|\?)$/,(t,{constructCSS:e,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
  ${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var po=["solid","double","dotted","dashed","wavy",...W],uo=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,t],{theme:e})=>{var r;return{"text-decoration-thickness":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px(t)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(t,e)=>{let r=S("text-decoration-color","line")(t,e);if(r)return h({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":c.bracket.percent(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>{var r;return{"text-underline-offset":((r=e.lineWidth)==null?void 0:r[t])??c.auto.bracket.cssvar.px(t)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...po.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...po.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var fo=[[/^fill-(.+)$/,S("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":c.bracket.percent(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r;return{"stroke-width":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.fraction.px.number(t)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":c.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>{var r;return{"stroke-dashoffset":((r=e.lineWidth)==null?void 0:r[t])??c.bracket.cssvar.px.numberWithUnit(t)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,S("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":c.bracket.percent(t)}),{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 ce={},mo=t=>{var n;let e=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",r=t.slice(e.length),o=parseFloat(e)-.1;return Number.isNaN(o)?t:`${o}${r}`},go={name:"breakpoints",match(t,e){let r=Object.entries(ot(e)??{}).map(([o,n],a)=>[o,n,a]);for(let[o,n,a]of r){ce[o]||(ce[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let i=t.match(ce[o]);if(!i)continue;let[,s]=i,l=t.slice(s.length);if(l==="container")continue;let p=s.startsWith("lt-"),d=s.startsWith("at-"),u=1e3;return p?(u-=a+1,{matcher:l,parent:[`@media (max-width: ${mo(n)})`,u]}):(u+=a+1,d&&a<r.length-1?{matcher:l,parent:[`@media (min-width: ${n}) and (max-width: ${mo(r[a+1][1])})`,u]}:{matcher:l,parent:[`@media (min-width: ${n})`,u]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var H=(t,e,r)=>{let o=t?new RegExp(`^${e}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${e}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${e}`,match:n=>{let a=n.match(o);if(a)return{matcher:n.slice(a[0].length),selector:i=>r.replace("&&-s",i).replace("&&-c",a[1]??"*")}}}},bo=[H(!1,"all","&&-s &&-c"),H(!1,"children","&&-s>&&-c"),H(!1,"next","&&-s+&&-c"),H(!1,"sibling","&&-s+&&-c"),H(!1,"siblings","&&-s~&&-c"),H(!0,"group","&&-c &&-s"),H(!0,"parent","&&-c>&&-s"),H(!0,"previous","&&-c+&&-s"),H(!0,"peer","&&-c~&&-s")];var ho=F("print","@media print"),xo={name:"media",match(t,{theme:e}){var o;let r=t.match(/^media-([_\d\w]+)[:-]/);if(r){let n=((o=e.media)==null?void 0:o[r[1]])??`(--${r[1]})`;return{matcher:t.slice(r[0].length),parent:`@media ${n}`}}}};var yo=(t={})=>(t==null?void 0:t.dark)==="class"?[L("dark",e=>`.dark $$ ${e}`),L("light",e=>`.light $$ ${e}`)]:[F("dark","@media (prefers-color-scheme: dark)"),F("light","@media (prefers-color-scheme: light)")];var vo=[L("rtl",t=>`[dir="rtl"] $$ ${t}`),L("ltr",t=>`[dir="ltr"] $$ ${t}`)];var ko={name:"selector",match(t){let e=t.match(/^selector-\[(.+?)\][:-]/);if(e)return{matcher:t.slice(e[0].length),selector:()=>e[1]}}},wo={name:"layer",match(t){let e=t.match(/^layer-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),parent:`@layer ${e[1]}`}}},So={name:"uno-layer",match(t){let e=t.match(/^uno-layer-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),layer:e[1]}}},Co={name:"scope",match(t){let e=t.match(/^scope-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),selector:r=>`.${e[1]} $$ ${r}`}}},Ro={name:"important",match(t){let e=t.match(/^(important[:-]|!)/);if(e)return{matcher:t.slice(e[0].length),body:r=>(r.forEach(o=>{o[1]&&(o[1]+=" !important")}),r)}},autocomplete:"(important)"},$o=/[0-9.]+(?:[a-z]+|%)?/,zo={name:"negative",match(t){if(!!t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(o=>o[0]===rr))return;let r=!1;if(e.forEach(o=>{var a;let n=(a=o[1])==null?void 0:a.toString();!n||n==="0"||$o.test(n)&&(o[1]=n.replace($o,i=>`-${i}`),r=!0)}),r)return e}}}};var $t=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(t=>Array.isArray(t)?t:[t,`:${t}`])),kt=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),bi=["not","is","where","has"],le=Object.entries($t).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).join("|"),pe=Object.entries(kt).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).join("|"),vt=bi.join("|"),To=t=>{if(t==="active")return 1},Ut=(t,e,r)=>{let o=new RegExp(`^${it(e)}:`),n=new RegExp(`^${t}-((?:(${vt})-)?(${le}))[:-]`),a=new RegExp(`^${t}-((?:(${vt})-)?(${pe}))[:]`);return{name:`pseudo:${t}`,match(i){let s=i.match(n)||i.match(a);if(s){let l=$t[s[3]]||kt[s[3]]||`:${s[3]}`;return s[2]&&(l=`:${s[2]}(${l})`),{matcher:i.slice(s[0].length),selector:p=>o.test(p)?p.replace(o,`${e}${l}:`):`${e}${l}${r}${p}`,sort:To(s[3])}}}}},Eo=Object.entries($t).map(([t])=>t).join("|"),hi=Object.entries(kt).map(([t])=>t).join("|"),xi=new RegExp(`^(${Eo})[:-]`),yi=new RegExp(`^(${hi})[:]`),jo={name:"pseudo",match:t=>{let e=t.match(xi)||t.match(yi);if(e){let r=$t[e[1]]||kt[e[1]]||`:${e[1]}`;return{matcher:t.slice(e[0].length),selector:o=>`${o}${r}`,sort:To(e[1])}}},multiPass:!0,autocomplete:`(${Eo}):`},vi=new RegExp(`^(${vt})-(${le})[:-]`),$i=new RegExp(`^(${vt})-(${pe})[:]`),Ao={match:t=>{let e=t.match(vi)||t.match($i);if(e){let r=e[1],o=$t[e[2]]||kt[e[2]]||`:${e[2]}`;return{matcher:t.slice(e[0].length),selector:n=>`${n}:${r}(${o})`}}},multiPass:!0,autocomplete:`(${vt})-(${le}|${pe}):`},Vo=(t={})=>{let e=!!(t!=null&&t.attributifyPseudo);return[z(h({},Ut("group",e?'[group=""]':".group"," ")),{multiPass:!0}),z(h({},Ut("peer",e?'[peer=""]':".peer","~")),{multiPass:!0}),z(h({},Ut("parent",e?'[parent=""]':".parent",">")),{multiPass:!0}),z(h({},Ut("previous",e?'[previous=""]':".previous","+")),{multiPass:!0})]},ki=/(part-\[(.+)]:)(.+)/,Oo={match:t=>{let e=t.match(ki);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:o=>`${o}::${r}`}}},multiPass:!0};var Po=t=>[wo,ko,So,zo,Ro,ho,xo,go,...bo,jo,Ao,...Vo(t),Oo,...yo(t),...vo,Co];var Mo=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
4
4
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,i,s,l,p,d,u,x,f;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let y=((s=(i=e.animation)==null?void 0:i.durations)==null?void 0:s[t])??"1s",w=((p=(l=e.animation)==null?void 0:l.timingFns)==null?void 0:p[t])??"linear",E=(u=(d=e.animation)==null?void 0:d.properties)==null?void 0:u[t],g=((f=(x=e.animation)==null?void 0:x.counts)==null?void 0:f[t])??1;return`@keyframes ${t}${o}
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",i=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(i=>{D(e[i])&&D(n[i])||Array.isArray(e[i])&&Array.isArray(n[i])?s[i]=F(e[i],n[i]):Object.assign(s,{[i]:n[i]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,i])=>t(i,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,i,a)=>a.split(/\s/g).map(u=>u==="~"?s:u.replace(/^(!?)(.*)/,`$1${s}${i}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={preflights:-100,shortcuts:-10,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let u=a("extractors");u.length||u.push(I),u.sort((f,d)=>(f.order||0)-(d.order||0));let o=a("rules"),c={},S=o.length;o.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete o[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:g,rulesSize:S,rulesDynamic:o,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:u,safelist:a("safelist")})}var ut="0.38.0";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=N(t,e),this.events.emit("config",this.config)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=lt();setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=N(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,e,n=new Set){let s={get original(){return t},code:t,id:e};for(let i of this.config.extractors){let a=await i.extract(s);a==null||a.forEach(u=>n.add(u))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:e};return n}async parseToken(t,e){var o;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=t;for(let c of this.config.preprocess)s=c(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,s);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let u=this.expandShortcut(a.currentSelector,a);if(u){let c=await this.stringifyShortcuts(a.variantMatch,a,u[0],u[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(o=await this.parseUtil(a.variantMatch,a))==null?void 0:o.map(S=>this.stringifyUtil(S,a)).filter(st);if(c!=null&&c.length)return this._cache.set(n,c),c}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,preflights:s=!0,safelist:i=!0,minify:a=!1}={}){let u=typeof t=="string"?await this.applyExtractors(t,e):t;i&&this.config.safelist.forEach(p=>u.add(p));let o=a?"":`
1
+ (()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",i=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(i=>{D(e[i])&&D(n[i])||Array.isArray(e[i])&&Array.isArray(n[i])?s[i]=F(e[i],n[i]):Object.assign(s,{[i]:n[i]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,i])=>t(i,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,i,a)=>a.split(/\s/g).map(u=>u==="~"?s:u.replace(/^(!?)(.*)/,`$1${s}${i}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={preflights:-100,shortcuts:-10,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let u=a("extractors");u.length||u.push(I),u.sort((f,d)=>(f.order||0)-(d.order||0));let o=a("rules"),c={},S=o.length;o.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete o[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:i,theme:g,rulesSize:S,rulesDynamic:o,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:u,safelist:a("safelist")})}var ut="0.38.1";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=N(t,e),this.events.emit("config",this.config)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=lt();setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=N(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,e,n=new Set){let s={get original(){return t},code:t,id:e};for(let i of this.config.extractors){let a=await i.extract(s);a==null||a.forEach(u=>n.add(u))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:e};return n}async parseToken(t,e){var o;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=t;for(let c of this.config.preprocess)s=c(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,s);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let u=this.expandShortcut(a.currentSelector,a);if(u){let c=await this.stringifyShortcuts(a.variantMatch,a,u[0],u[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(o=await this.parseUtil(a.variantMatch,a))==null?void 0:o.map(S=>this.stringifyUtil(S,a)).filter(st);if(c!=null&&c.length)return this._cache.set(n,c),c}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,preflights:s=!0,safelist:i=!0,minify:a=!1}={}){let u=typeof t=="string"?await this.applyExtractors(t,e):t;i&&this.config.safelist.forEach(p=>u.add(p));let o=a?"":`
2
2
  `,c=new Set(["default"]),S=new Set,g=new Map;await Promise.all(Array.from(u).map(async p=>{var y;if(S.has(p))return;let h=await this.parseToken(p);if(h!=null){S.add(p);for(let x of h){let b=x[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(x),(y=x[4])!=null&&y.layer&&c.add(x[4].layer)}}})),s&&this.config.preflights.forEach(p=>{p.layer&&c.add(p.layer)});let C={},f=this.config.sortLayers(Array.from(c).sort((p,h)=>(this.config.layers[p]??0)-(this.config.layers[h]??0)||p.localeCompare(h))),d={};if(s){let p={generator:this,theme:this.config.theme};d=Object.fromEntries(await Promise.all(f.map(async h=>{let x=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===h).map(async b=>await b.getCSS(p)))).filter(Boolean).join(o);return[h,x]})))}let v=p=>{if(C[p])return C[p];let h=Array.from(g).sort((y,x)=>{var b;return(this.parentOrders.get(y[0])??0)-(this.parentOrders.get(x[0])??0)||((b=y[0])==null?void 0:b.localeCompare(x[0]||""))||0}).map(([y,x])=>{let b=x.length,R=x.filter(l=>{var m;return(((m=l[4])==null?void 0:m.layer)||"default")===p}).sort((l,m)=>{var E,A,w;return l[0]-m[0]||(((E=l[4])==null?void 0:E.sort)||0)-(((A=m[4])==null?void 0:A.sort)||0)||((w=l[1])==null?void 0:w.localeCompare(m[1]||""))||0}).map(l=>{var m;return[l[1]?Mt(l[1],n):l[1],l[2],!!((m=l[4])!=null&&m.noMerge)]}).map(l=>[l[0]==null?l[0]:[l[0]],l[1],l[2]]);if(!R.length)return;let M=R.reverse().map(([l,m,E],A)=>{if(!E&&l&&this.config.mergeSelectors)for(let w=A+1;w<b;w++){let U=R[w];if(U&&!U[2]&&U[0]&&U[1]===m)return U[0].push(...l),null}return l?`${[...new Set(l)].join(`,${o}`)}{${m}}`:m}).filter(Boolean).reverse().join(o);return y?`${y}{${o}${M}${o}}`:M}).filter(Boolean).join(o);return s&&(h=[d[p],h].filter(Boolean).join(o)),C[p]=!a&&h?`/* layer: ${p} */${o}${h}`:h},$=(p=f,h)=>p.filter(y=>!(h!=null&&h.includes(y))).map(y=>v(y)||"").filter(Boolean).join(o);return{get css(){return $()},layers:f,getLayers:$,getLayer:v,matched:S}}matchVariants(t,e){let n=new Set,s=[],i=e||t,a=!1,u={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let o of this.config.variants){if(!o.multiPass&&n.has(o))continue;let c=o.match(i,u);if(!!c){typeof c=="string"&&(c={matcher:c}),i=c.matcher,Array.isArray(c.parent)&&this.parentOrders.set(c.parent[0],c.parent[1]),s.unshift(c),n.add(o),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,s,n]}applyVariants(t,e=t[4],n=t[1]){let s=[...e].sort((o,c)=>(o.order||0)-(c.order||0)),i=s.reduce((o,c)=>{var S;return((S=c.body)==null?void 0:S.call(c,o))||o},t[2]),a=s.reduce((o,c)=>{var S;return((S=c.selector)==null?void 0:S.call(c,o,i))||o},_t(n)),u={selector:Tt(a),entries:i,parent:s.reduce((o,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||o,void 0),layer:s.reduce((o,c)=>c.layer||o,void 0),sort:s.reduce((o,c)=>c.sort||o,void 0)};for(let o of this.config.postprocess)o(u);return u}constructCustomCSS(t,e,n){e=P(e);let{selector:s,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),u=`${s}{${L(i)}}`;return a?`${a}{${u}}`:u}async parseUtil(t,e,n=!1){var g,C;let[s,i,a]=typeof t=="string"?this.matchVariants(t):t,u=this.config.details?f=>{e.rules=e.rules??[],e.rules.push(f)}:H,o=this.config.rulesStaticMap[i];if(o&&o[1]&&(n||!((g=o[2])!=null&&g.internal)))return u(o[3]),[[o[0],s,P(o[1]),o[2],a]];e.variantHandlers=a;let{rulesDynamic:c,rulesSize:S}=this.config;for(let f=S-1;f>=0;f--){let d=c[f];if(!d||((C=d[2])==null?void 0:C.internal)&&!n)continue;let[v,$,p]=d,h=i.match(v);if(!h)continue;let y=await $(h,e);if(!y)continue;if(u(d),typeof y=="string")return[[f,y,p]];let x=Y(y).filter(b=>b.length);if(x.length)return x.map(b=>[f,s,b,p,a])}}stringifyUtil(t,e){if(!t)return;if(B(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?e:void 0];let{selector:n,entries:s,parent:i,layer:a,sort:u}=this.applyVariants(t),o=L(s);if(!o)return;let f=t[3]??{},{layer:c,sort:S}=f,g=X(f,["layer","sort"]),C=O(T({},g),{layer:a??c,sort:u??S});return[t[0],n,o,i,C,this.config.details?e:void 0]}expandShortcut(t,e,n=3){if(n===0)return;let s=this.config.details?u=>{e.shortcuts=e.shortcuts??[],e.shortcuts.push(u)}:H,i,a;for(let u of this.config.shortcuts)if(et(u)){if(u[0]===t){i=i||u[2],a=u[1],s(u);break}}else{let o=t.match(u[0]);if(o&&(a=u[1](o,e)),a){i=i||u[2],s(u);break}}if(typeof a=="string"&&(a=ot(a).split(/\s+/g)),!!a)return[a.flatMap(u=>{var o;return((o=this.expandShortcut(u,e,n-1))==null?void 0:o[0])||[u]}).filter(u=>u!==""),i]}async stringifyShortcuts(t,e,n,s={layer:this.config.shortcutsLayer}){var S;let i=new z,a=(await Promise.all(j(n).map(async g=>{let C=await this.parseUtil(g,e,!0);return C||ct(`unmatched utility "${g}" in shortcut "${t[1]}"`),C||[]}))).flat(1).filter(Boolean).sort((g,C)=>g[0]-C[0]),[u,,o]=t,c=[];for(let g of a){if(B(g)){c.push([g[0],void 0,g[1],void 0,g[2],e]);continue}let{selector:C,entries:f,parent:d,sort:v}=this.applyVariants(g,[...g[4],...o],u);i.getFallback(C,d,[[],g[0]])[0].push([f,!!((S=g[3])!=null&&S.noMerge),v??0])}return c.concat(i.map(([g,C],f,d)=>{let v=(p,h,y)=>{let x=Math.max(...y.map(R=>R[1])),b=y.map(R=>R[0]);return(p?[b.flat(1)]:b).map(R=>{let M=L(R);if(M)return[C,f,M,d,O(T({},s),{noMerge:h,sort:x}),e]})};return[[g.filter(([,p])=>p).map(([p,,h])=>[p,h]),!0],[g.filter(([,p])=>!p).map(([p,,h])=>[p,h]),!1]].map(([p,h])=>[...v(!1,h,p.filter(([y])=>y.some(x=>x[0]===G))),...v(!0,h,p.filter(([y])=>y.every(x=>x[0]!==G)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function pt(r,t){return new q(r,t)}var dt=/ \$\$ /,$t=r=>r.match(dt);function Mt(r,t){return $t(r)?r.replace(dt,t?` ${t} `:" "):t?`${t} ${r}`:r}function Tt(r){let t=r.match(/::[\w-]+/g);return t&&(t.forEach(e=>r=r.replace(e,"")),r+=t.join("")),r}var ft=/^\[(.+?)(~?=)"(.*)"\]$/;function _t(r){return ft.test(r)?r.replace(ft,(t,e,n,s)=>`[${K(e)}${n}"${K(s)}"]`):`.${K(r)}`}var Ot=r=>r.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),ht=r=>r.charAt(0).toUpperCase()+r.slice(1),gt=r=>r.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),mt=["Webkit","Moz","ms"];function yt(r){let t={};function e(n){let s=t[n];if(s)return s;let i=Ot(n);if(i!=="filter"&&i in r)return t[n]=gt(i);i=ht(i);for(let a=0;a<mt.length;a++){let u=`${mt[a]}${i}`;if(u in r)return t[n]=gt(ht(u))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function W(r={}){var R,M;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,n=Object.assign(r.defaults||{},e);if(e!=null&&e.autoPrefix){let l=n.postprocess;l||(l=[]),Array.isArray(l)||(l=[l]),l.unshift(yt(document.createElement("div").style)),n.postprocess=l}(R=e==null?void 0:e.configResolved)==null||R.call(e,t,n);let s,i=!0,a,u=pt(t,n),o=new Set,c,S=[],g=()=>new Promise(l=>{S.push(l),c!=null&&clearTimeout(c),c=setTimeout(()=>f().then(()=>{let m=S;S=[],m.forEach(E=>E())}),0)});function C(l=document.body){if(l.nodeType!==1)return;let m=l;m.hasAttribute("un-cloak")&&m.removeAttribute("un-cloak"),m.querySelectorAll("[un-cloak]").forEach(E=>{E.removeAttribute("un-cloak")})}async function f(){let l=await u.generate(o);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=l.css,o=l.matched}async function d(l){let m=o.size;await u.applyExtractors(l,void 0,o),m!==o.size&&await g()}async function v(){let l=document.body&&document.body.outerHTML;l&&(await d(l),C())}let $=new MutationObserver(l=>{i||l.forEach(async m=>{if(m.target.nodeType!==1)return;let E=m.target;if(E!==s)if(m.type==="childList")m.addedNodes.forEach(async A=>{if(A.nodeType!==1)return;let w=A;a&&!a(w)||(await d(w.outerHTML),C(w))});else{if(a&&!a(E))return;if(m.attributeName!=="un-cloak"){let A=Array.from(E.attributes).map(U=>U.value?`${U.name}="${U.value}"`:U.name).join(" "),w=`<${E.tagName.toLowerCase()} ${A}>`;await d(w)}E.hasAttribute("un-cloak")&&E.removeAttribute("un-cloak")}})}),p=!1;function h(){if(p)return;let l=document.documentElement||document.body;!l||($.observe(l,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function y(){v(),h()}function x(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",y):y()}let b=window.__unocss_runtime=window.__unocss_runtime={version:u.version,uno:u,async extract(l){typeof l!="string"&&(l.forEach(m=>o.add(m)),l=""),await d(l)},extractAll:v,inspect(l){a=l},toggleObserver(l){l===void 0?i=!i:i=!!l,!p&&!i&&x()}};((M=e==null?void 0:e.ready)==null?void 0:M.call(e,b))!==!1&&(i=!1,x())}W();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var Pt=Object.defineProperty,Ea=Object.defineProperties;var ja=Object.getOwnPropertyDescriptors;var Te=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Ot=(e,t,r)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Mt.call(t,r)&&Ot(e,r,t[r]);if(Te)for(var r of Te(t))Ft.call(t,r)&&Ot(e,r,t[r]);return e},z=(e,t)=>Ea(e,ja(t));var Ut=(e,t)=>{var r={};for(var o in e)Mt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Te)for(var o of Te(e))t.indexOf(o)<0&&Ft.call(e,o)&&(r[o]=e[o]);return r};var Aa=(e,t)=>{for(var r in t)Pt(e,r,{get:t[r],enumerable:!0})};function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(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 Ee=ce;function pe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function _t(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>pe(t)):[e]:[pe(e)]}function Va(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 ee(e){return e==null?"":Va(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function je(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ue(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=x({},r);return je(r)&&je(o)&&Object.keys(o).forEach(a=>{je(r[a])&&je(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ue(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function le(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?le(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:le(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?le(o):o;return r}return e}function Wt(e){return typeof e[0]=="string"}function Nt(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function fe(e){return Array.from(new Set(e))}var Oa=/^\[(.+?)~?="(.*)"\]$/;var Pa=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Xe="$$shortcut-no-merge";function Bt(e){return e.match(Oa)}function me(e=""){return Pa.test(e)}function Lt(e){return typeof e=="function"?{match:e}:e}function Ye(e){return e.length===3}function Dt(e){return e!=null}function Ge(){}var Ae=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 It=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Kt(e){It.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(It,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ht=new Set;function qt(e){Ht.has(e)||(console.warn("[unocss]",e),Ht.add(e))}function Ve(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 s=e[i](o);if(s!=null)return s}};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 Ma=e=>e.split(/[\s'"`;>=]+/g).filter(me),G={name:"split",order:0,extract({code:e}){return new Set(Ma(e))}};function Xt(){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 Fa(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ua={preflights:-100,shortcuts:-10,default:0};function Ze(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Ua,...o.map(m=>m.layers),e.layers);function i(m){return fe([...n.flatMap(y=>O(y[m]||[])),...O(r[m]||[])])}let s=i("extractors");s.length||s.push(G),s.sort((m,y)=>(m.order||0)-(y.order||0));let l=i("rules"),p={},f=l.length;l.forEach((m,y)=>{Wt(m)&&(p[m[0]]=[y,m[1],m[2],m],delete l[y])});let u=le([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,y)=>ue(m,y),{}));i("extendTheme").forEach(m=>m(u));let b={templates:fe(n.map(m=>{var y;return O((y=m.autocomplete)==null?void 0:y.templates)}).flat()),extractors:n.map(m=>{var y;return O((y=m.autocomplete)==null?void 0:y.extractors)}).flat().sort((m,y)=>(m.order||0)-(y.order||0))};return z(x({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:b,variants:i("variants").map(Lt),shortcuts:Fa(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Yt="0.38.0";var Je=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ze(t,r),this.events.emit("config",this.config)}version=Yt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Xt();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,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(s=>o.add(s))}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 s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[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(f=>this.stringifyUtil(f,i)).filter(Dt);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 s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(g=>s.add(g));let l=i?"":`
1
+ (()=>{var Pt=Object.defineProperty,Ea=Object.defineProperties;var ja=Object.getOwnPropertyDescriptors;var Te=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Ot=(e,t,r)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Mt.call(t,r)&&Ot(e,r,t[r]);if(Te)for(var r of Te(t))Ft.call(t,r)&&Ot(e,r,t[r]);return e},z=(e,t)=>Ea(e,ja(t));var Ut=(e,t)=>{var r={};for(var o in e)Mt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Te)for(var o of Te(e))t.indexOf(o)<0&&Ft.call(e,o)&&(r[o]=e[o]);return r};var Aa=(e,t)=>{for(var r in t)Pt(e,r,{get:t[r],enumerable:!0})};function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(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 Ee=ce;function pe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function _t(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>pe(t)):[e]:[pe(e)]}function Va(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 ee(e){return e==null?"":Va(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function je(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ue(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=x({},r);return je(r)&&je(o)&&Object.keys(o).forEach(a=>{je(r[a])&&je(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ue(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function le(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?le(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:le(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?le(o):o;return r}return e}function Wt(e){return typeof e[0]=="string"}function Nt(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function fe(e){return Array.from(new Set(e))}var Oa=/^\[(.+?)~?="(.*)"\]$/;var Pa=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Xe="$$shortcut-no-merge";function Bt(e){return e.match(Oa)}function me(e=""){return Pa.test(e)}function Lt(e){return typeof e=="function"?{match:e}:e}function Ye(e){return e.length===3}function Dt(e){return e!=null}function Ge(){}var Ae=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 It=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Kt(e){It.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(It,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ht=new Set;function qt(e){Ht.has(e)||(console.warn("[unocss]",e),Ht.add(e))}function Ve(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 s=e[i](o);if(s!=null)return s}};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 Ma=e=>e.split(/[\s'"`;>=]+/g).filter(me),G={name:"split",order:0,extract({code:e}){return new Set(Ma(e))}};function Xt(){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 Fa(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ua={preflights:-100,shortcuts:-10,default:0};function Ze(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Ua,...o.map(m=>m.layers),e.layers);function i(m){return fe([...n.flatMap(y=>O(y[m]||[])),...O(r[m]||[])])}let s=i("extractors");s.length||s.push(G),s.sort((m,y)=>(m.order||0)-(y.order||0));let l=i("rules"),p={},f=l.length;l.forEach((m,y)=>{Wt(m)&&(p[m[0]]=[y,m[1],m[2],m],delete l[y])});let u=le([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,y)=>ue(m,y),{}));i("extendTheme").forEach(m=>m(u));let b={templates:fe(n.map(m=>{var y;return O((y=m.autocomplete)==null?void 0:y.templates)}).flat()),extractors:n.map(m=>{var y;return O((y=m.autocomplete)==null?void 0:y.extractors)}).flat().sort((m,y)=>(m.order||0)-(y.order||0))};return z(x({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:b,variants:i("variants").map(Lt),shortcuts:Fa(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Yt="0.38.1";var Je=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ze(t,r),this.events.emit("config",this.config)}version=Yt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Xt();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,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(s=>o.add(s))}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 s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[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(f=>this.stringifyUtil(f,i)).filter(Dt);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 s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(g=>s.add(g));let l=i?"":`
2
2
  `,p=new Set(["default"]),f=new Set,u=new Map;await Promise.all(Array.from(s).map(async g=>{var $;if(f.has(g))return;let h=await this.parseToken(g);if(h!=null){f.add(g);for(let C of h){let T=C[3]||"";u.has(T)||u.set(T,[]),u.get(T).push(C),($=C[4])!=null&&$.layer&&p.add(C[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let b={},m=this.config.sortLayers(Array.from(p).sort((g,h)=>(this.config.layers[g]??0)-(this.config.layers[h]??0)||g.localeCompare(h))),y={};if(n){let g={generator:this,theme:this.config.theme};y=Object.fromEntries(await Promise.all(m.map(async h=>{let C=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===h).map(async T=>await T.getCSS(g)))).filter(Boolean).join(l);return[h,C]})))}let w=g=>{if(b[g])return b[g];let h=Array.from(u).sort(($,C)=>{var T;return(this.parentOrders.get($[0])??0)-(this.parentOrders.get(C[0])??0)||((T=$[0])==null?void 0:T.localeCompare(C[0]||""))||0}).map(([$,C])=>{let T=C.length,U=C.filter(d=>{var k;return(((k=d[4])==null?void 0:k.layer)||"default")===g}).sort((d,k)=>{var M,K,_;return d[0]-k[0]||(((M=d[4])==null?void 0:M.sort)||0)-(((K=k[4])==null?void 0:K.sort)||0)||((_=d[1])==null?void 0:_.localeCompare(k[1]||""))||0}).map(d=>{var k;return[d[1]?Na(d[1],o):d[1],d[2],!!((k=d[4])!=null&&k.noMerge)]}).map(d=>[d[0]==null?d[0]:[d[0]],d[1],d[2]]);if(!U.length)return;let X=U.reverse().map(([d,k,M],K)=>{if(!M&&d&&this.config.mergeSelectors)for(let _=K+1;_<T;_++){let D=U[_];if(D&&!D[2]&&D[0]&&D[1]===k)return D[0].push(...d),null}return d?`${[...new Set(d)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return $?`${$}{${l}${X}${l}}`:X}).filter(Boolean).join(l);return n&&(h=[y[g],h].filter(Boolean).join(l)),b[g]=!i&&h?`/* layer: ${g} */${l}${h}`:h},E=(g=m,h)=>g.filter($=>!(h!=null&&h.includes($))).map($=>w($)||"").filter(Boolean).join(l);return{get css(){return E()},layers:m,getLayers:E,getLayer:w,matched:f}}matchVariants(t,r){let o=new Set,n=[],a=r||t,i=!1,s={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,s);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 f;return((f=p.body)==null?void 0:f.call(p,l))||l},t[2]),i=n.reduce((l,p)=>{var f;return((f=p.selector)==null?void 0:f.call(p,l,a))||l},Qe(o)),s={selector:Ba(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(s);return s}constructCustomCSS(t,r,o){r=pe(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),s=`${n}{${ee(a)}}`;return i?`${i}{${s}}`:s}async parseUtil(t,r,o=!1){var u,b;let[n,a,i]=typeof t=="string"?this.matchVariants(t):t,s=this.config.details?m=>{r.rules=r.rules??[],r.rules.push(m)}:Ge,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return s(l[3]),[[l[0],n,pe(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:f}=this.config;for(let m=f-1;m>=0;m--){let y=p[m];if(!y||((b=y[2])==null?void 0:b.internal)&&!o)continue;let[w,E,g]=y,h=a.match(w);if(!h)continue;let $=await E(h,r);if(!$)continue;if(s(y),typeof $=="string")return[[m,$,g]];let C=_t($).filter(T=>T.length);if(C.length)return C.map(T=>[m,n,T,g,i])}}stringifyUtil(t,r){if(!t)return;if(Ye(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:s}=this.applyVariants(t),l=ee(n);if(!l)return;let m=t[3]??{},{layer:p,sort:f}=m,u=Ut(m,["layer","sort"]),b=z(x({},u),{layer:i??p,sort:s??f});return[t[0],o,l,a,b,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:Ge,a,i;for(let s of this.config.shortcuts)if(Nt(s)){if(s[0]===t){a=a||s[2],i=s[1],n(s);break}}else{let l=t.match(s[0]);if(l&&(i=s[1](l,r)),i){a=a||s[2],n(s);break}}if(typeof i=="string"&&(i=Kt(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var l;return((l=this.expandShortcut(s,r,o-1))==null?void 0:l[0])||[s]}).filter(s=>s!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var f;let a=new Ae,i=(await Promise.all(fe(o).map(async u=>{let b=await this.parseUtil(u,r,!0);return b||qt(`unmatched utility "${u}" in shortcut "${t[1]}"`),b||[]}))).flat(1).filter(Boolean).sort((u,b)=>u[0]-b[0]),[s,,l]=t,p=[];for(let u of i){if(Ye(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:b,entries:m,parent:y,sort:w}=this.applyVariants(u,[...u[4],...l],s);a.getFallback(b,y,[[],u[0]])[0].push([m,!!((f=u[3])!=null&&f.noMerge),w??0])}return p.concat(a.map(([u,b],m,y)=>{let w=(g,h,$)=>{let C=Math.max(...$.map(U=>U[1])),T=$.map(U=>U[0]);return(g?[T.flat(1)]:T).map(U=>{let X=ee(U);if(X)return[b,m,X,y,z(x({},n),{noMerge:h,sort:C}),r]})};return[[u.filter(([,g])=>g).map(([g,,h])=>[g,h]),!0],[u.filter(([,g])=>!g).map(([g,,h])=>[g,h]),!1]].map(([g,h])=>[...w(!1,h,g.filter(([$])=>$.some(C=>C[0]===Xe))),...w(!0,h,g.filter(([$])=>$.every(C=>C[0]!==Xe)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Zt(e,t){return new Je(e,t)}var Jt=/ \$\$ /,Wa=e=>e.match(Jt);function Na(e,t){return Wa(e)?e.replace(Jt,t?` ${t} `:" "):t?`${t} ${e}`:e}function Ba(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Gt=/^\[(.+?)(~?=)"(.*)"\]$/;function Qe(e){return Gt.test(e)?e.replace(Gt,(t,r,o,n)=>`[${Ee(r)}${o}"${Ee(n)}"]`):`.${Ee(e)}`}var et=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Qt=(e={})=>{let t=e.prefix??"un-",r=e.prefixedOnly??!1,o=e.trueToNonValued??!1;return{name:"attributify",match(n){let a=Bt(n);if(!a)return;let i=a[1];if(i.startsWith(t))i=i.slice(t.length);else if(r)return;let s=a[2],[,l="",p=s]=s.match(et)||[];return p==="~"||o&&p==="true"||!p?`${l}${i}`:`${l}${i}-${p}`}}};var La=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Da=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,er=/[\s'"`;>]+/,tr={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(La),o,n=0;for(let w of r){let[,E,g]=w,h=w.index+E.length;if(t>h&&t<=h+g.length){n=h,o=g;break}}if(!o)return null;let a=o.matchAll(Da),i=0,s,l;for(let w of a){let[E,g,h]=w,$=n+w.index;if(t>$&&t<=$+E.length){i=$,s=g,l=h==null?void 0:h.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(w){return{start:i,end:i+s.length,replacement:w}}};let p=i+s.length+2,f=er.exec(l),u=0,b;for(;f;){let[w]=f;if(t>p+u&&t<=p+u+f.index){b=l.slice(u,u+f.index);break}u+=f.index+w.length,f=er.exec(l.slice(u))}b===void 0&&(b=l.slice(u));let[,m="",y]=b.match(et)||[];return{extracted:`${m}${s}-${y}`,transformSuggestions(w){return w.filter(E=>E.startsWith(`${m}${s}-`)).map(E=>m+E.slice(m.length+s.length+1))},resolveReplacement(w){return{start:u+p,end:u+p+b.length,replacement:m+w.slice(m.length+s.length+1)}}}}};var Ia=["v-bind:",":"],rr=/[\s'"`;]+/g,Ka=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,Ha=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,or=e=>{let t=(e==null?void 0:e.ignoreAttributes)??[],r=(e==null?void 0:e.nonValuedAttribute)??!0,o=(e==null?void 0:e.trueToNonValued)??!1;return{name:"attributify",extract({code:n}){let a=Array.from(n.matchAll(Ka)).flatMap(i=>Array.from((i[1]||"").matchAll(Ha))).flatMap(([,i,s,l])=>{if(t.includes(i))return[];for(let p of Ia)if(i.startsWith(p)){i=i.slice(p.length);break}if(!l){if(me(i)&&r!==!1){let p=[`[${i}=""]`];return o&&p.push(`[${i}="true"]`),p}return[]}return["class","className"].includes(i)?l.split(rr).filter(me):l.split(rr).filter(Boolean).map(p=>`[${i}~="${p}"]`)});return new Set(a)}}};var qa=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??[];let t=[Qt(e)],r=[or(e)],o=[tr];return e.strict||r.unshift(G),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:o}}},nr=qa;var tt=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase)return`*,::before,::after{${ee(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"]},rt=z(x({},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"]}),ot={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"]},nt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ar=["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({},...ar.map(e=>({[e.replace(/ /,"-")]:e})),...ar.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),W=["inherit","initial","revert","revert-layer","unset"];var ir={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"},sr=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":ir[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(ir).join("|")})`}]],cr=["center","left","right","justify","start","end",...W].map(e=>[`text-${e}`,{"text-align":e}]);var at=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function te(e=""){let t=Xa(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)&&!(at.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function Z(e){let t=e.alpha??1;return t==="%alpha"?1:t}function A(e,t){if(typeof e=="string")return e.replace("%alpha",`${t??1}`);let{components:r}=e,{alpha:o,type:n}=e;return o=t??o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,at.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Xa(e){if(!e)return;let t=Ya(e);if(t!=null||(t=Ga(e),t!=null)||(t=Za(e),t!=null)||(t=Qa(e),t!=null)||(t=ei(e),t!=null))return t}function Ya(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 Ga(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Za(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=de(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 Ja=new RegExp(`^(${at.join("|")})\\((.+)\\)$`,"i");function Qa(e){let t=e.match(Ja);if(!t)return;let[,r,o]=t,n=lr(`${r} ${o}`);if(n){let{alpha:a,components:[i,...s]}=n;return{type:i,components:s,alpha:a}}}function ei(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=lr(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function lr(e){let t=de(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=de(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 ti(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 de(e,t,r){if(t=t??" ",t.length!==1)return;r=r??10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=ti(e,t);if(!a)return;let[i,s]=a;o.push(i),e=s}if(o.length>0)return o}var st={};Aa(st,{auto:()=>ai,bracket:()=>fi,bracketOfColor:()=>mi,bracketOfLength:()=>di,bracketOfPosition:()=>gi,cssvar:()=>bi,degree:()=>xi,fraction:()=>pi,global:()=>yi,number:()=>ci,numberWithUnit:()=>ni,percent:()=>li,position:()=>$i,properties:()=>vi,px:()=>si,rem:()=>ii,time:()=>hi});var ri=["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"],it=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,oi=/^(-?[0-9.]+)$/i,pr=/^(px)$/i;function N(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ni(e){let t=e.match(it);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function ai(e){if(e==="auto"||e==="a")return"auto"}function ii(e){if(e.match(pr))return`1${e}`;let t=e.match(it);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function si(e){if(e.match(pr))return`1${e}`;let t=e.match(it);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function ci(e){if(!oi.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return N(t)}function li(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${N(t/100)}`}function pi(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}var ui=/^\[(color|length|position):/i;function Oe(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(ui);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 fi(e){return Oe(e)}function mi(e){return Oe(e,"color")}function di(e){return Oe(e,"length")}function gi(e){return Oe(e,"position")}function bi(e){if(e.match(/^\$\S/))return`var(--${ce(e.slice(1))})`}function hi(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?`${N(n)}${o}`:`${N(n)}ms`}function xi(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?`${N(n)}${o}`:`${N(n)}deg`}function yi(e){if(W.includes(e))return e}function vi(e){if(e.split(",").every(t=>ri.includes(t)))return e}function $i(e){if(["top","left","right","bottom","center"].includes(e))return e}var c=Ve(st);var L=(e,t)=>{let r=new RegExp(`^${se(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},F=(e,t)=>{let r=new RegExp(`^${se(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 ur="$$mini-no-negative",R=e=>([t,r,o],{theme:n})=>{var i;let a=((i=n.spacing)==null?void 0:i[o||"DEFAULT"])??c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(s=>[`${e}${s}`,a])},ct=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},re=(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 s,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?s=p:p.startsWith("hex-")?s=`#${p.slice(4)}`:o.startsWith("$")&&(s=c.cssvar(o)),s=s||l;let f="DEFAULT";if(!s){let u,[b]=a.slice(-1);b.match(/^\d+$/)?(f=b,u=ct(t,a.slice(0,-1))):(u=ct(t,a),!u&&a.length<=2&&([,f=f]=a,u=ct(t,[i]))),typeof u=="string"?s=u:f&&u&&(s=u[f])}return{opacity:n,name:i,no:f,color:s,cssColor:te(s),alpha:c.bracket.cssvar.percent(n??"")}},S=(e,t)=>([,r],{theme:o})=>{let n=re(r,o);if(!n)return;let{alpha:a,color:i,cssColor:s}=n;if(s)return a!=null?{[e]:A(s,a)}:{[`--un-${t}-opacity`]:Z(s),[e]:A(s,`var(--un-${t}-opacity)`)};if(i)return{[e]:A(i,a)}},oe=(e,t)=>{let r=[];e=O(e);for(let o=0;o<e.length;o++){let n=de(e[o]," ",6);if(!n||n.length<3)return e;let a=te(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${A(a)})`)}return r},Pe=(e,t)=>{var r;return e!=null&&!!((r=re(e,t))!=null&&r.color)},ne=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},fr=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var mr=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"outline-width":((r=t.lineWidth)==null?void 0:r[e])??c.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;return{"outline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...W].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],dr=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ki=e=>c.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e],gr=[[/^will-change-(.+)/,([,e])=>({"will-change":ki(e)})]];var ye=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...W],br=[[/^(?:border|b)()(?:-(.+))?$/,ge,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ge],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ge],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ge],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ge],[/^(?:border|b)-()(?:width|size)-(.+)$/,ae,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,ae],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,ae],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,ae],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,ae],[/^(?:border|b)-()(?:color-)?(.+)$/,be,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,be],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,be],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,be],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,be],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,he,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,he],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,he],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,he],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,he],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,xe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,xe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,xe],[/^(?:border|b)-(?:style-)?()(.+)$/,ie,{autocomplete:["(border|b)-style",`(border|b)-(${ye.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ye.join("|")})`,`(border|b)-<directions>-style-(${ye.join("|")})`,`(border|b)-style-(${ye.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ie],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ie],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ie],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ie]],wi=e=>([,t],r)=>{let o=re(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${e}-color`]:A(i,n)}:e===""?{"--un-border-opacity":Z(i),"border-color":A(i,"var(--un-border-opacity)")}:{"--un-border-opacity":Z(i),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:A(i,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:A(a,n)}};function ge(e,t){let r=ae(e,t),o=ie(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function ae([,e="",t],{theme:r}){var n;let o=((n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])??c.bracket.cssvar.px(t||"1");if(e in P&&o!=null)return P[e].map(a=>[`border${a}-width`,o])}function be([,e="",t],{theme:r}){if(e in P&&Pe(t,r))return Object.assign({},...P[e].map(o=>wi(o)(["",t],r)))}function he([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[e].map(o=>[`--un-border${o}-opacity`,r])}function xe([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in ot&&o!=null)return ot[e].map(a=>[`border${a}-radius`,o])}function ie([,e="",t]){if(ye.includes(t)&&e in P)return P[e].map(r=>[`border${r}-style`,t])}var hr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],xr=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],yr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Me={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},vr=e=>c.properties(e)??Me[e],$r=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n;let o=e!=null?vr(e):[Me.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let a=((n=r.duration)==null?void 0:n[t||"DEFAULT"])??c.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(Me).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"transition-timing-function":((r=t.easing)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||vr(e)}),{autocomplete:[`transition-property-(${[...W,...Object.keys(Me)].join("|")})`]}],["transition-none",{transition:"none"}]];var kr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" "):c.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;return{"flex-basis":((r=t.spacing)==null?void 0:r[e])??c.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 wr={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])||c.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=O((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":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n;let r=O((n=t.fontSize)==null?void 0:n[e]),o=(r==null?void 0:r[0])??c.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":wr[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(wr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.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])||c.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])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Cr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Rr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],zr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.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":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Tr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":oe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.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":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Er={"":"",x:"column-",y:"row-"},jr=([,e="",t],{theme:r})=>{var n;let o=((n=r.spacing)==null?void 0:n[t])??c.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${Er[e]}gap`]:o,[`${Er[e]}gap`]:o}},Ar=[[/^(?:flex-|grid-)?gap-?()(.+)$/,jr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,jr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var I=e=>e.replace("col","column"),lt=e=>e[0]==="r"?"Row":"Column",Si=(e,t,r)=>{var n;let o=(n=t[`gridAuto${lt(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 c.bracket.cssvar.auto.rem(r)},Vr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o;return{[`grid-${I(e)}`]:((o=r[`grid${lt(e)}`])==null?void 0:o[t])??c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${I(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${I(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${I(e)}-start`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${I(e)}-end`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${I(e)}`]:Si(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":I(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o;return{[`grid-template-${I(e)}`]:((o=r[`gridTemplate${lt(e)}`])==null?void 0:o[t])??c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Fe=["auto","hidden","clip","visible","scroll"],Or=[[/^(?:overflow|of)-(.+)$/,([,e])=>Fe.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Fe.join("|")})`,`(overflow|of)-(x|y)-(${Fe.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Fe.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Pr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Mr=[["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"}]],Fr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ur=[["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 pt(e,{theme:t}){var r;return((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.auto.fraction.rem(e)}function Ue([,e,t],r){let o=pt(t,r);if(o!=null&&e in rt)return rt[e].map(n=>[n.slice(1),o])}var Wr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:pt(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])-(.+)$/,Ue],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ue],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ue],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ue],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:pt(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"}]],Br=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Lr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",Dr=[["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:c.bracket.cssvar(e)||e})]],Ir=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Kr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Hr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],qr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Xr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Yr=[[/^(?: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)"}]],Gr=[[/^content-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e);return{content:t??`"${e}"`}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Zr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Jr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Qr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],eo=[["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"}]],to=[["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 ro={"--un-ring-inset":v,"--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"},oo=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=((o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])??c.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;return{"--un-ring-width":((r=t.lineWidth)==null?void 0:r[e])??c.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;return{"--un-ring-offset-width":((r=t.lineWidth)==null?void 0:r[e])??c.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":c.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":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var no={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},ao=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return{"--un-shadow":oe(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":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Ci={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ve(e,t){return`${e||""}${Ci[t]}`}function io(e,t,r,o){var i;let n=ve(e,t).replace(/-(\w)/g,(s,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 c.bracket.cssvar.auto.fraction.rem(o)}var so=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[ve(e,t)]:io(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})=>({[ve(e,t)]:io(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{[ve(e,t)]:(n=fr(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{[ve(e,t)]:(n=ne(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ri(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var co=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ri(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var lo=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,R("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,R("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],po=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?xy()()$/,R("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,R("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,R("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,R("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,R("margin")]];var J=["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(" "),zi=["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(" "),go={"--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},bo=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":j[e]??c.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(j).join("|")})`,`origin-(${Object.keys(j).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e)??(e.length>=3?j[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,uo],[/^(?:transform-)?translate-([xyz])-(.+)$/,uo],[/^(?:transform-)?rotate-()(.+)$/,mo],[/^(?:transform-)?rotate-([xyz])-(.+)$/,mo],[/^(?:transform-)?skew-([xy])-(.+)$/,Ti],[/^(?:transform-)?scale-()(.+)$/,fo],[/^(?:transform-)?scale-([xyz])-(.+)$/,fo],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:J}],["transform-cpu",{transform:J}],["transform-gpu",{transform:zi}],["transform-none",{transform:"none"}]];function uo([,e,t],{theme:r}){var n;let o=((n=r.spacing)==null?void 0:n[t])??c.bracket.cssvar.fraction.rem(t);if(o!=null)return[...nt[e].map(a=>[`--un-translate${a}`,o]),["transform",J]]}function fo([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[...nt[e].map(o=>[`--un-scale${o}`,r]),["transform",J]]}function mo([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:J}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:J}}function Ti([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:J}}var Ei={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"},ho=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ei[e];if(r)return{[r]:c.cssvar(t)}}]],xo=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var yo=[[/^(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 vo=["solid","double","dotted","dashed","wavy",...W],$o=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"text-decoration-thickness":((r=t.lineWidth)==null?void 0:r[e])??c.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 x({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"text-underline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...vo.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...vo.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var ko=[[/^fill-(.+)$/,S("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-dashoffset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,S("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.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 ut={},wo=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}`},So={name:"breakpoints",match(e,t){let r=Object.entries(ne(t)??{}).map(([o,n],a)=>[o,n,a]);for(let[o,n,a]of r){ut[o]||(ut[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let i=e.match(ut[o]);if(!i)continue;let[,s]=i,l=e.slice(s.length);if(l==="container")continue;let p=s.startsWith("lt-"),f=s.startsWith("at-"),u=1e3;return p?(u-=a+1,{matcher:l,parent:[`@media (max-width: ${wo(n)})`,u]}):(u+=a+1,f&&a<r.length-1?{matcher:l,parent:[`@media (min-width: ${n}) and (max-width: ${wo(r[a+1][1])})`,u]}:{matcher:l,parent:[`@media (min-width: ${n})`,u]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var H=(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=>r.replace("&&-s",i).replace("&&-c",a[1]??"*")}}}},Co=[H(!1,"all","&&-s &&-c"),H(!1,"children","&&-s>&&-c"),H(!1,"next","&&-s+&&-c"),H(!1,"sibling","&&-s+&&-c"),H(!1,"siblings","&&-s~&&-c"),H(!0,"group","&&-c &&-s"),H(!0,"parent","&&-c>&&-s"),H(!0,"previous","&&-c+&&-s"),H(!0,"peer","&&-c~&&-s")];var Ro=F("print","@media print"),zo={name:"media",match(e,{theme:t}){var o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let n=((o=t.media)==null?void 0:o[r[1]])??`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${n}`}}}};var To=(e={})=>(e==null?void 0:e.dark)==="class"?[L("dark",t=>`.dark $$ ${t}`),L("light",t=>`.light $$ ${t}`)]:[F("dark","@media (prefers-color-scheme: dark)"),F("light","@media (prefers-color-scheme: light)")];var Eo=[L("rtl",e=>`[dir="rtl"] $$ ${e}`),L("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Ao={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},Vo={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),parent:`@layer ${t[1]}`}}},Oo={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]}}},Po={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}`}}},Mo={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)"},jo=/[0-9.]+(?:[a-z]+|%)?/,Fo={name:"negative",match(e){if(!!e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(o=>o[0]===ur))return;let r=!1;if(t.forEach(o=>{var a;let n=(a=o[1])==null?void 0:a.toString();!n||n==="0"||jo.test(n)&&(o[1]=n.replace(jo,i=>`-${i}`),r=!0)}),r)return t}}}};var ke=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}`])),we=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),ji=["not","is","where","has"],ft=Object.entries(ke).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),mt=Object.entries(we).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),$e=ji.join("|"),Uo=e=>{if(e==="active")return 1},_e=(e,t,r)=>{let o=new RegExp(`^${se(t)}:`),n=new RegExp(`^${e}-((?:(${$e})-)?(${ft}))[:-]`),a=new RegExp(`^${e}-((?:(${$e})-)?(${mt}))[:]`);return{name:`pseudo:${e}`,match(i){let s=i.match(n)||i.match(a);if(s){let l=ke[s[3]]||we[s[3]]||`:${s[3]}`;return s[2]&&(l=`:${s[2]}(${l})`),{matcher:i.slice(s[0].length),selector:p=>o.test(p)?p.replace(o,`${t}${l}:`):`${t}${l}${r}${p}`,sort:Uo(s[3])}}}}},_o=Object.entries(ke).map(([e])=>e).join("|"),Ai=Object.entries(we).map(([e])=>e).join("|"),Vi=new RegExp(`^(${_o})[:-]`),Oi=new RegExp(`^(${Ai})[:]`),Wo={name:"pseudo",match:e=>{let t=e.match(Vi)||e.match(Oi);if(t){let r=ke[t[1]]||we[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}${r}`,sort:Uo(t[1])}}},multiPass:!0,autocomplete:`(${_o}):`},Pi=new RegExp(`^(${$e})-(${ft})[:-]`),Mi=new RegExp(`^(${$e})-(${mt})[:]`),No={match:e=>{let t=e.match(Pi)||e.match(Mi);if(t){let r=t[1],o=ke[t[2]]||we[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}:${r}(${o})`}}},multiPass:!0,autocomplete:`(${$e})-(${ft}|${mt}):`},Bo=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[z(x({},_e("group",t?'[group=""]':".group"," ")),{multiPass:!0}),z(x({},_e("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),z(x({},_e("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),z(x({},_e("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},Fi=/(part-\[(.+)]:)(.+)/,Lo={match:e=>{let t=e.match(Fi);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:o=>`${o}::${r}`}}},multiPass:!0};var Do=e=>[Vo,Ao,Oo,Fo,Mo,Ro,zo,So,...Co,Wo,No,...Bo(e),Lo,...To(e),...Eo,Po];var Io=[[/^(?: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,s,l,p,f,u,b,m;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let y=((s=(i=t.animation)==null?void 0:i.durations)==null?void 0:s[e])??"1s",w=((p=(l=t.animation)==null?void 0:l.timingFns)==null?void 0:p[e])??"linear",E=(u=(f=t.animation)==null?void 0:f.properties)==null?void 0:u[e],g=((m=(b=t.animation)==null?void 0:b.counts)==null?void 0:m[e])??1;return`@keyframes ${e}${o}
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var rt=Object.defineProperty,Wn=Object.defineProperties;var Dn=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var tt=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&tt(e,r,t[r]);if(de)for(var r of de(t))ot.call(t,r)&&tt(e,r,t[r]);return e},R=(e,t)=>Wn(e,Dn(t));var it=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&de)for(var n of de(e))t.indexOf(n)<0&&ot.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>{for(var r in t)rt(e,r,{get:t[r],enumerable:!0})};function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(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 he=Te;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function st(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Nn(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 N(e){return e==null?"":Nn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ge(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ae(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=v({},r);return ge(r)&&ge(n)&&Object.keys(n).forEach(i=>{ge(r[i])&&ge(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ae(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function at(e){return typeof e[0]=="string"}function ct(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Kn=/^\[(.+?)~?="(.*)"\]$/;var In=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,je="$$shortcut-no-merge";function lt(e){return e.match(Kn)}function Y(e=""){return In.test(e)}function ut(e){return typeof e=="function"?{match:e}:e}function ze(e){return e.length===3}function ft(e){return e!=null}function Ve(){}var xe=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 pt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function mt(e){pt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(pt,(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 dt=new Set;function ht(e){dt.has(e)||(console.warn("[unocss]",e),dt.add(e))}function gt(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 Hn=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function xt(){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 qn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Gn={preflights:-100,shortcuts:-10,default:0};function Pe(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(Gn,...n.map(f=>f.layers),e.layers);function s(f){return X([...o.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let a=s("extractors");a.length||a.push(J),a.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),u={},h=l.length;l.forEach((f,x)=>{at(f)&&(u[f[0]]=[x,f[1],f[2],f],delete l[x])});let m=G([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ae(f,x),{}));s("extendTheme").forEach(f=>f(m));let y={templates:X(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(v({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:y,variants:s("variants").map(ut),shortcuts:qn(s("shortcuts")),extractors:a,safelist:s("safelist")})}var bt="0.38.0";var Oe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Pe(t,r),this.events.emit("config",this.config)}version=bt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=xt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Pe(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 l;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 u of this.config.preprocess)o=u(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 u=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(h=>this.stringifyUtil(h,s)).filter(ft);if(u!=null&&u.length)return this._cache.set(n,u),u}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(d=>a.add(d));let l=s?"":`
1
+ (()=>{var rt=Object.defineProperty,Wn=Object.defineProperties;var Dn=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var tt=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&tt(e,r,t[r]);if(de)for(var r of de(t))ot.call(t,r)&&tt(e,r,t[r]);return e},R=(e,t)=>Wn(e,Dn(t));var it=(e,t)=>{var r={};for(var n in e)nt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&de)for(var n of de(e))t.indexOf(n)<0&&ot.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>{for(var r in t)rt(e,r,{get:t[r],enumerable:!0})};function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(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 he=Te;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function st(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Nn(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 N(e){return e==null?"":Nn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ge(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ae(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=v({},r);return ge(r)&&ge(n)&&Object.keys(n).forEach(i=>{ge(r[i])&&ge(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ae(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function at(e){return typeof e[0]=="string"}function ct(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var Kn=/^\[(.+?)~?="(.*)"\]$/;var In=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,je="$$shortcut-no-merge";function lt(e){return e.match(Kn)}function Y(e=""){return In.test(e)}function ut(e){return typeof e=="function"?{match:e}:e}function ze(e){return e.length===3}function ft(e){return e!=null}function Ve(){}var xe=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 pt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function mt(e){pt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(pt,(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 dt=new Set;function ht(e){dt.has(e)||(console.warn("[unocss]",e),dt.add(e))}function gt(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 Hn=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function xt(){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 qn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Gn={preflights:-100,shortcuts:-10,default:0};function Pe(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(Gn,...n.map(f=>f.layers),e.layers);function s(f){return X([...o.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let a=s("extractors");a.length||a.push(J),a.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),u={},h=l.length;l.forEach((f,x)=>{at(f)&&(u[f[0]]=[x,f[1],f[2],f],delete l[x])});let m=G([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ae(f,x),{}));s("extendTheme").forEach(f=>f(m));let y={templates:X(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(v({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:y,variants:s("variants").map(ut),shortcuts:qn(s("shortcuts")),extractors:a,safelist:s("safelist")})}var bt="0.38.1";var Oe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Pe(t,r),this.events.emit("config",this.config)}version=bt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=xt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Pe(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 l;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 u of this.config.preprocess)o=u(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 u=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(h=>this.stringifyUtil(h,s)).filter(ft);if(u!=null&&u.length)return this._cache.set(n,u),u}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(d=>a.add(d));let l=s?"":`
2
2
  `,u=new Set(["default"]),h=new Set,m=new Map;await Promise.all(Array.from(a).map(async d=>{var b;if(h.has(d))return;let g=await this.parseToken(d);if(g!=null){h.add(d);for(let S of g){let k=S[3]||"";m.has(k)||m.set(k,[]),m.get(k).push(S),(b=S[4])!=null&&b.layer&&u.add(S[4].layer)}}})),o&&this.config.preflights.forEach(d=>{d.layer&&u.add(d.layer)});let y={},f=this.config.sortLayers(Array.from(u).sort((d,g)=>(this.config.layers[d]??0)-(this.config.layers[g]??0)||d.localeCompare(g))),x={};if(o){let d={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async g=>{let S=(await Promise.all(this.config.preflights.filter(k=>(k.layer||"default")===g).map(async k=>await k.getCSS(d)))).filter(Boolean).join(l);return[g,S]})))}let w=d=>{if(y[d])return y[d];let g=Array.from(m).sort((b,S)=>{var k;return(this.parentOrders.get(b[0])??0)-(this.parentOrders.get(S[0])??0)||((k=b[0])==null?void 0:k.localeCompare(S[0]||""))||0}).map(([b,S])=>{let k=S.length,j=S.filter(p=>{var $;return((($=p[4])==null?void 0:$.layer)||"default")===d}).sort((p,$)=>{var T,L,z;return p[0]-$[0]||(((T=p[4])==null?void 0:T.sort)||0)-(((L=$[4])==null?void 0:L.sort)||0)||((z=p[1])==null?void 0:z.localeCompare($[1]||""))||0}).map(p=>{var $;return[p[1]?Yn(p[1],n):p[1],p[2],!!(($=p[4])!=null&&$.noMerge)]}).map(p=>[p[0]==null?p[0]:[p[0]],p[1],p[2]]);if(!j.length)return;let D=j.reverse().map(([p,$,T],L)=>{if(!T&&p&&this.config.mergeSelectors)for(let z=L+1;z<k;z++){let U=j[z];if(U&&!U[2]&&U[0]&&U[1]===$)return U[0].push(...p),null}return p?`${[...new Set(p)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${D}${l}}`:D}).filter(Boolean).join(l);return o&&(g=[x[d],g].filter(Boolean).join(l)),y[d]=!s&&g?`/* layer: ${d} */${l}${g}`:g},E=(d=f,g)=>d.filter(b=>!(g!=null&&g.includes(b))).map(b=>w(b)||"").filter(Boolean).join(l);return{get css(){return E()},layers:f,getLayers:E,getLayer:w,matched:h}}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 l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=l.match(i,a);if(!!u){typeof u=="string"&&(u={matcher:u}),i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),o.unshift(u),n.add(l),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((l,u)=>(l.order||0)-(u.order||0)),i=o.reduce((l,u)=>{var h;return((h=u.body)==null?void 0:h.call(u,l))||l},t[2]),s=o.reduce((l,u)=>{var h;return((h=u.selector)==null?void 0:h.call(u,l,i))||l},Qn(n)),a={selector:Jn(s),entries:i,parent:o.reduce((l,u)=>Array.isArray(u.parent)?u.parent[0]:u.parent||l,void 0),layer:o.reduce((l,u)=>u.layer||l,void 0),sort:o.reduce((l,u)=>u.sort||l,void 0)};for(let l of this.config.postprocess)l(a);return a}constructCustomCSS(t,r,n){r=Z(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${N(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var m,y;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.details?f=>{r.rules=r.rules??[],r.rules.push(f)}:Ve,l=this.config.rulesStaticMap[i];if(l&&l[1]&&(n||!((m=l[2])!=null&&m.internal)))return a(l[3]),[[l[0],o,Z(l[1]),l[2],s]];r.variantHandlers=s;let{rulesDynamic:u,rulesSize:h}=this.config;for(let f=h-1;f>=0;f--){let x=u[f];if(!x||((y=x[2])==null?void 0:y.internal)&&!n)continue;let[w,E,d]=x,g=i.match(w);if(!g)continue;let b=await E(g,r);if(!b)continue;if(a(x),typeof b=="string")return[[f,b,d]];let S=st(b).filter(k=>k.length);if(S.length)return S.map(k=>[f,o,k,d,s])}}stringifyUtil(t,r){if(!t)return;if(ze(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),l=N(o);if(!l)return;let f=t[3]??{},{layer:u,sort:h}=f,m=it(f,["layer","sort"]),y=R(v({},m),{layer:s??u,sort:a??h});return[t[0],n,l,i,y,this.config.details?r:void 0]}expandShortcut(t,r,n=3){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Ve,i,s;for(let a of this.config.shortcuts)if(ct(a)){if(a[0]===t){i=i||a[2],s=a[1],o(a);break}}else{let l=t.match(a[0]);if(l&&(s=a[1](l,r)),s){i=i||a[2],o(a);break}}if(typeof s=="string"&&(s=mt(s).split(/\s+/g)),!!s)return[s.flatMap(a=>{var l;return((l=this.expandShortcut(a,r,n-1))==null?void 0:l[0])||[a]}).filter(a=>a!==""),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var h;let i=new xe,s=(await Promise.all(X(n).map(async m=>{let y=await this.parseUtil(m,r,!0);return y||ht(`unmatched utility "${m}" in shortcut "${t[1]}"`),y||[]}))).flat(1).filter(Boolean).sort((m,y)=>m[0]-y[0]),[a,,l]=t,u=[];for(let m of s){if(ze(m)){u.push([m[0],void 0,m[1],void 0,m[2],r]);continue}let{selector:y,entries:f,parent:x,sort:w}=this.applyVariants(m,[...m[4],...l],a);i.getFallback(y,x,[[],m[0]])[0].push([f,!!((h=m[3])!=null&&h.noMerge),w??0])}return u.concat(i.map(([m,y],f,x)=>{let w=(d,g,b)=>{let S=Math.max(...b.map(j=>j[1])),k=b.map(j=>j[0]);return(d?[k.flat(1)]:k).map(j=>{let D=N(j);if(D)return[y,f,D,x,R(v({},o),{noMerge:g,sort:S}),r]})};return[[m.filter(([,d])=>d).map(([d,,g])=>[d,g]),!0],[m.filter(([,d])=>!d).map(([d,,g])=>[d,g]),!1]].map(([d,g])=>[...w(!1,g,d.filter(([b])=>b.some(S=>S[0]===je))),...w(!0,g,d.filter(([b])=>b.every(S=>S[0]!==je)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function $t(e,t){return new Oe(e,t)}var vt=/ \$\$ /,Xn=e=>e.match(vt);function Yn(e,t){return Xn(e)?e.replace(vt,t?` ${t} `:" "):t?`${t} ${e}`:e}function Jn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var yt=/^\[(.+?)(~?=)"(.*)"\]$/;function Qn(e){return yt.test(e)?e.replace(yt,(t,r,n,o)=>`[${he(r)}${n}"${he(o)}"]`):`.${he(e)}`}var wt=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase)return`*,::before,::after{${N(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"]},Me=R(v({},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"]}),Ue={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"]},Fe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},St=["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"],Q=Object.assign({},...St.map(e=>({[e.replace(/ /,"-")]:e})),...St.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),O=["inherit","initial","revert","revert-layer","unset"];var kt={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"},Ct=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":kt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(kt).join("|")})`}]],Rt=["center","left","right","justify","start","end",...O].map(e=>[`text-${e}`,{"text-align":e}]);var _e=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Le(e=""){let t=eo(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)&&!(_e.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function te(e){let t=e.alpha??1;return t==="%alpha"?1:t}function F(e,t){if(typeof e=="string")return e.replace("%alpha",`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,_e.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function eo(e){if(!e)return;let t=to(e);if(t!=null||(t=ro(e),t!=null)||(t=no(e),t!=null)||(t=io(e),t!=null)||(t=so(e),t!=null))return t}function to(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 ro(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function no(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=ee(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 oo=new RegExp(`^(${_e.join("|")})\\((.+)\\)$`,"i");function io(e){let t=e.match(oo);if(!t)return;let[,r,n]=t,o=Et(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function so(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Et(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Et(e){let t=ee(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=ee(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 ao(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 ee(e,t,r){if(t=t??" ",t.length!==1)return;r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=ao(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var De={};Bn(De,{auto:()=>fo,bracket:()=>yo,bracketOfColor:()=>$o,bracketOfLength:()=>vo,bracketOfPosition:()=>wo,cssvar:()=>So,degree:()=>Co,fraction:()=>xo,global:()=>Ro,number:()=>ho,numberWithUnit:()=>uo,percent:()=>go,position:()=>To,properties:()=>Eo,px:()=>mo,rem:()=>po,time:()=>ko});var co=["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"],We=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,lo=/^(-?[0-9.]+)$/i,Tt=/^(px)$/i;function M(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function uo(e){let t=e.match(We);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${M(o)}${n}`}function fo(e){if(e==="auto"||e==="a")return"auto"}function po(e){if(e.match(Tt))return`1${e}`;let t=e.match(We);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o/4)}rem`}function mo(e){if(e.match(Tt))return`1${e}`;let t=e.match(We);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${M(o)}${n}`:`${M(o)}px`}function ho(e){if(!lo.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return M(t)}function go(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${M(t/100)}`}function xo(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 bo=/^\[(color|length|position):/i;function be(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(bo);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 yo(e){return be(e)}function $o(e){return be(e,"color")}function vo(e){return be(e,"length")}function wo(e){return be(e,"position")}function So(e){if(e.match(/^\$\S/))return`var(--${Te(e.slice(1))})`}function ko(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 Co(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 Ro(e){if(O.includes(e))return e}function Eo(e){if(e.split(",").every(t=>co.includes(t)))return e}function To(e){if(["top","left","right","bottom","center"].includes(e))return e}var c=gt(De);var K=(e,t)=>{let r=new RegExp(`^${q(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},re=(e,t)=>{let r=new RegExp(`^${q(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 At="$$mini-no-negative",A=e=>([t,r,n],{theme:o})=>{var s;let i=((s=o.spacing)==null?void 0:s[n||"DEFAULT"])??c.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return P[r].map(a=>[`${e}${a}`,i])},Be=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},ye=(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,l=c.bracketOfColor(n),u=l||n;u.startsWith("#")?a=u:u.startsWith("hex-")?a=`#${u.slice(4)}`:n.startsWith("$")&&(a=c.cssvar(n)),a=a||l;let h="DEFAULT";if(!a){let m,[y]=i.slice(-1);y.match(/^\d+$/)?(h=y,m=Be(t,i.slice(0,-1))):(m=Be(t,i),!m&&i.length<=2&&([,h=h]=i,m=Be(t,[s]))),typeof m=="string"?a=m:h&&m&&(a=m[h])}return{opacity:o,name:s,no:h,color:a,cssColor:Le(a),alpha:c.bracket.cssvar.percent(o??"")}},C=(e,t)=>([,r],{theme:n})=>{let o=ye(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:F(a,i)}:{[`--un-${t}-opacity`]:te(a),[e]:F(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:F(s,i)}},$e=(e,t)=>{let r=[];e=V(e);for(let n=0;n<e.length;n++){let o=ee(e[n]," ",6);if(!o||o.length<3)return e;let i=Le(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${F(i)})`)}return r},jt=(e,t)=>{var r;return e!=null&&!!((r=ye(e,t))!=null&&r.color)},ve=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},zt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Vt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"outline-width":((r=t.lineWidth)==null?void 0:r[e])??c.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;return{"outline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.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"}]],Pt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Ao=e=>c.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e],Ot=[[/^will-change-(.+)/,([,e])=>({"will-change":Ao(e)})]];var ae=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...O],Mt=[[/^(?:border|b)()(?:-(.+))?$/,ne,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ne],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ne],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ne],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ne],[/^(?:border|b)-()(?:width|size)-(.+)$/,I,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-()(?:color-)?(.+)$/,oe,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,oe],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,oe],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,oe],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,oe],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ie,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ie],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ie],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ie],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ie],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,se,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,se],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,se],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,se],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,se],[/^(?:border|b)-(?:style-)?()(.+)$/,H,{autocomplete:["(border|b)-style",`(border|b)-(${ae.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ae.join("|")})`,`(border|b)-<directions>-style-(${ae.join("|")})`,`(border|b)-style-(${ae.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,H]],jo=e=>([,t],r)=>{let n=ye(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:F(s,o)}:e===""?{"--un-border-opacity":te(s),"border-color":F(s,"var(--un-border-opacity)")}:{"--un-border-opacity":te(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:F(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:F(i,o)}};function ne(e,t){let r=I(e,t),n=H(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function I([,e="",t],{theme:r}){var o;let n=((o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])??c.bracket.cssvar.px(t||"1");if(e in P&&n!=null)return P[e].map(i=>[`border${i}-width`,n])}function oe([,e="",t],{theme:r}){if(e in P&&jt(t,r))return Object.assign({},...P[e].map(n=>jo(n)(["",t],r)))}function ie([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[e].map(n=>[`--un-border${n}-opacity`,r])}function se([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in Ue&&n!=null)return Ue[e].map(i=>[`border${i}-radius`,n])}function H([,e="",t]){if(ae.includes(t)&&e in P)return P[e].map(r=>[`border${r}-style`,t])}var Ut=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Ft=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],_t=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var we={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Lt=e=>c.properties(e)??we[e],Wt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o;let n=e!=null?Lt(e):[we.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let i=((o=r.duration)==null?void 0:o[t||"DEFAULT"])??c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(we).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"transition-timing-function":((r=t.easing)==null?void 0:r[e||"DEFAULT"])??c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Lt(e)}),{autocomplete:[`transition-property-(${[...O,...Object.keys(we)].join("|")})`]}],["transition-none",{transition:"none"}]];var Dt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" "):c.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;return{"flex-basis":((r=t.spacing)==null?void 0:r[e])??c.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 Bt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Nt=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.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":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o;let r=V((o=t.fontSize)==null?void 0:o[e]),n=(r==null?void 0:r[0])??c.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Bt[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Bt).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.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])||c.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])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Kt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],It=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Ht=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.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":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],qt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":$e(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.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":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Gt={"":"",x:"column-",y:"row-"},Zt=([,e="",t],{theme:r})=>{var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Gt[e]}gap`]:n,[`${Gt[e]}gap`]:n}},Xt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Zt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Zt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var _=e=>e.replace("col","column"),Ne=e=>e[0]==="r"?"Row":"Column",zo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Ne(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 c.bracket.cssvar.auto.rem(r)},Yt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n;return{[`grid-${_(e)}`]:((n=r[`grid${Ne(e)}`])==null?void 0:n[t])??c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${_(e)}`]:"1/-1"};let r=c.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])=>({[`grid-${_(e)}-start`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${_(e)}-end`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${_(e)}`]:zo(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.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;return{[`grid-template-${_(e)}`]:((n=r[`gridTemplate${Ne(e)}`])==null?void 0:n[t])??c.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 Se=["auto","hidden","clip","visible","scroll"],Jt=[[/^(?:overflow|of)-(.+)$/,([,e])=>Se.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Se.join("|")})`,`(overflow|of)-(x|y)-(${Se.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Se.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Qt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],er=[["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"}]],tr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],rr=[["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"}]],nr=[["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 Ke(e,{theme:t}){var r;return((r=t.spacing)==null?void 0:r[e])??c.bracket.cssvar.auto.fraction.rem(e)}function ke([,e,t],r){let n=Ke(t,r);if(n!=null&&e in Me)return Me[e].map(o=>[o.slice(1),n])}var or=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ke(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])-(.+)$/,ke],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ke],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ke],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ke],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ke(t,r)})]],ir=[["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":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],ar=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Ce="var(--un-empty,/*!*/ /*!*/)",cr=[["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:c.bracket.cssvar(e)||e})]],lr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],ur=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],fr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],pr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],mr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],dr=[[/^(?: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)"}]],hr=[[/^content-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e);return{content:t??`"${e}"`}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],gr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],xr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],br=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],yr=[["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 vr={"--un-ring-inset":Ce,"--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"},wr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=((n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])??c.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;return{"--un-ring-width":((r=t.lineWidth)==null?void 0:r[e])??c.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;return{"--un-ring-offset-width":((r=t.lineWidth)==null?void 0:r[e])??c.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":c.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":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Sr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":Ce,"--un-shadow":"0 0 #0000"},kr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return{"--un-shadow":$e(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":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Vo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ce(e,t){return`${e||""}${Vo[t]}`}function Cr(e,t,r,n){var s;let o=ce(e,t).replace(/-(\w)/g,(a,l)=>l.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 c.bracket.cssvar.auto.fraction.rem(n)}var Rr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ce(e,t)]:Cr(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})=>({[ce(e,t)]:Cr(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{[ce(e,t)]:(o=zt(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{[ce(e,t)]:(o=ve(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Po(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var Er=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Po(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Tr=[[/^pa?()-?(-?.+)$/,A("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,A("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,A("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Ar=[[/^ma?()-?(-?.+)$/,A("margin")],[/^m-?xy()()$/,A("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,A("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,A("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,A("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,A("margin")]];var B=["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(" "),Oo=["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(" "),Pr={"--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},Or=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":Q[e]??c.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(Q).join("|")})`,`origin-(${Object.keys(Q).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e)??(e.length>=3?Q[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,jr],[/^(?:transform-)?translate-([xyz])-(.+)$/,jr],[/^(?:transform-)?rotate-()(.+)$/,Vr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Vr],[/^(?:transform-)?skew-([xy])-(.+)$/,Mo],[/^(?:transform-)?scale-()(.+)$/,zr],[/^(?:transform-)?scale-([xyz])-(.+)$/,zr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:B}],["transform-cpu",{transform:B}],["transform-gpu",{transform:Oo}],["transform-none",{transform:"none"}]];function jr([,e,t],{theme:r}){var o;let n=((o=r.spacing)==null?void 0:o[t])??c.bracket.cssvar.fraction.rem(t);if(n!=null)return[...Fe[e].map(i=>[`--un-translate${i}`,n]),["transform",B]]}function zr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[...Fe[e].map(n=>[`--un-scale${n}`,r]),["transform",B]]}function Vr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:B}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:B}}function Mo([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:B}}var Uo={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"},Mr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Uo[e];if(r)return{[r]:c.cssvar(t)}}]],Ur=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Fr=[[/^(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 _r=["solid","double","dotted","dashed","wavy",...O],Lr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"text-decoration-thickness":((r=t.lineWidth)==null?void 0:r[e])??c.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 v({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"text-underline-offset":((r=t.lineWidth)==null?void 0:r[e])??c.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],..._r.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),..._r.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Wr=[[/^fill-(.+)$/,C("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-width":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-dashoffset":((r=t.lineWidth)==null?void 0:r[e])??c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,C("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.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 Dr=[Mr,Ur,Tr,Ar,cr,Ut,_t,Wr,Mt,hr,Nt,Kt,It,xr,Lr,Ht,qt,br,Rt,Ft,yr,$r,kr,wr,Dt,Yt,Xt,Qt,Rr,Er,ur,lr,fr,pr,Ct,mr,dr,gr,Jt,Vt,Pt,tr,er,rr,nr,or,ir,sr,ar,Wt,Or,Ot,Fr].flat(1);var Ie={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(Ie).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 Br={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(",")},Nr={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"]},Kr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Ir={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Hr={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)"]},qr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},He={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Gr=He;var qe={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Zr=v({},qe),Xr={DEFAULT:"1px",none:"0px"},Yr={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"},Jr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Qr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},en={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)"},tn={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)"},rn={DEFAULT:"1px",none:"0px"};var nn={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},on={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 Re={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Ge=R(v({auto:"auto"},Re),{screen:"100vw"}),le=R(v({none:"none"},Re),{screen:"100vw"}),Ze=R(v({auto:"auto"},Re),{screen:"100vh"}),ue=R(v({none:"none"},Re),{screen:"100vh"});var sn=v(v(v({},Pr),Sr),vr);var an={width:Ge,height:Ze,maxWidth:le,maxHeight:ue,minWidth:le,minHeight:ue,inlineSize:Ge,blockSize:Ze,maxInlineSize:le,maxBlockSize:ue,minInlineSize:le,minBlockSize:ue,colors:Ie,fontFamily:Br,fontSize:Nr,breakpoints:qe,verticalBreakpoints:Zr,borderRadius:Qr,lineHeight:qr,letterSpacing:He,wordSpacing:Gr,boxShadow:en,textIndent:Kr,textShadow:Hr,textStrokeWidth:Ir,blur:nn,dropShadow:on,easing:tn,lineWidth:Xr,spacing:Yr,duration:Jr,ringWidth:rn,preflightBase:sn};var Xe={},cn=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}`},ln={name:"breakpoints",match(e,t){let r=Object.entries(ve(t)??{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){Xe[n]||(Xe[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=e.match(Xe[n]);if(!s)continue;let[,a]=s,l=e.slice(a.length);if(l==="container")continue;let u=a.startsWith("lt-"),h=a.startsWith("at-"),m=1e3;return u?(m-=i+1,{matcher:l,parent:[`@media (max-width: ${cn(o)})`,m]}):(m+=i+1,h&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${cn(r[i+1][1])})`,m]}:{matcher:l,parent:[`@media (min-width: ${o})`,m]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var W=(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=>r.replace("&&-s",s).replace("&&-c",i[1]??"*")}}}},un=[W(!1,"all","&&-s &&-c"),W(!1,"children","&&-s>&&-c"),W(!1,"next","&&-s+&&-c"),W(!1,"sibling","&&-s+&&-c"),W(!1,"siblings","&&-s~&&-c"),W(!0,"group","&&-c &&-s"),W(!0,"parent","&&-c>&&-s"),W(!0,"previous","&&-c+&&-s"),W(!0,"peer","&&-c~&&-s")];var fn=re("print","@media print"),pn={name:"media",match(e,{theme:t}){var n;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let o=((n=t.media)==null?void 0:n[r[1]])??`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${o}`}}}};var mn=(e={})=>(e==null?void 0:e.dark)==="class"?[K("dark",t=>`.dark $$ ${t}`),K("light",t=>`.light $$ ${t}`)]:[re("dark","@media (prefers-color-scheme: dark)"),re("light","@media (prefers-color-scheme: light)")];var dn=[K("rtl",e=>`[dir="rtl"] $$ ${e}`),K("ltr",e=>`[dir="ltr"] $$ ${e}`)];var gn={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},xn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),parent:`@layer ${t[1]}`}}},bn={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]}}},yn={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}`}}},$n={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)"},hn=/[0-9.]+(?:[a-z]+|%)?/,vn={name:"negative",match(e){if(!!e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===At))return;let r=!1;if(t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||hn.test(o)&&(n[1]=o.replace(hn,s=>`-${s}`),r=!0)}),r)return t}}}};var pe=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}`])),me=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Fo=["not","is","where","has"],Ye=Object.entries(pe).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),Je=Object.entries(me).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),fe=Fo.join("|"),wn=e=>{if(e==="active")return 1},Ee=(e,t,r)=>{let n=new RegExp(`^${q(t)}:`),o=new RegExp(`^${e}-((?:(${fe})-)?(${Ye}))[:-]`),i=new RegExp(`^${e}-((?:(${fe})-)?(${Je}))[:]`);return{name:`pseudo:${e}`,match(s){let a=s.match(o)||s.match(i);if(a){let l=pe[a[3]]||me[a[3]]||`:${a[3]}`;return a[2]&&(l=`:${a[2]}(${l})`),{matcher:s.slice(a[0].length),selector:u=>n.test(u)?u.replace(n,`${t}${l}:`):`${t}${l}${r}${u}`,sort:wn(a[3])}}}}},Sn=Object.entries(pe).map(([e])=>e).join("|"),_o=Object.entries(me).map(([e])=>e).join("|"),Lo=new RegExp(`^(${Sn})[:-]`),Wo=new RegExp(`^(${_o})[:]`),kn={name:"pseudo",match:e=>{let t=e.match(Lo)||e.match(Wo);if(t){let r=pe[t[1]]||me[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:wn(t[1])}}},multiPass:!0,autocomplete:`(${Sn}):`},Do=new RegExp(`^(${fe})-(${Ye})[:-]`),Bo=new RegExp(`^(${fe})-(${Je})[:]`),Cn={match:e=>{let t=e.match(Do)||e.match(Bo);if(t){let r=t[1],n=pe[t[2]]||me[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${fe})-(${Ye}|${Je}):`},Rn=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[R(v({},Ee("group",t?'[group=""]':".group"," ")),{multiPass:!0}),R(v({},Ee("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),R(v({},Ee("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),R(v({},Ee("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},No=/(part-\[(.+)]:)(.+)/,En={match:e=>{let t=e.match(No);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var Tn=e=>[xn,gn,bn,vn,$n,fn,pn,ln,...un,kn,Cn,...Rn(e),En,...mn(e),...dn,yn];var Ko=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,{name:"@unocss/preset-mini",theme:an,rules:Dr,variants:Tn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Io(e.variablePrefix):void 0,preflights:wt}),An=Ko;function Io(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 Qe=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,jn=(e={})=>{let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;return{name:"attributify",match(o){let i=lt(o);if(!i)return;let s=i[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let a=i[2],[,l="",u=a]=a.match(Qe)||[];return u==="~"||n&&u==="true"||!u?`${l}${s}`:`${l}${s}-${u}`}}};var Ho=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,qo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,zn=/[\s'"`;>]+/,Vn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Ho),n,o=0;for(let w of r){let[,E,d]=w,g=w.index+E.length;if(t>g&&t<=g+d.length){o=g,n=d;break}}if(!n)return null;let i=n.matchAll(qo),s=0,a,l;for(let w of i){let[E,d,g]=w,b=o+w.index;if(t>b&&t<=b+E.length){s=b,a=d,l=g==null?void 0:g.slice(1);break}}if(!a||a==="class"||a==="className")return null;if(l===void 0)return{extracted:a,resolveReplacement(w){return{start:s,end:s+a.length,replacement:w}}};let u=s+a.length+2,h=zn.exec(l),m=0,y;for(;h;){let[w]=h;if(t>u+m&&t<=u+m+h.index){y=l.slice(m,m+h.index);break}m+=h.index+w.length,h=zn.exec(l.slice(m))}y===void 0&&(y=l.slice(m));let[,f="",x]=y.match(Qe)||[];return{extracted:`${f}${a}-${x}`,transformSuggestions(w){return w.filter(E=>E.startsWith(`${f}${a}-`)).map(E=>f+E.slice(f.length+a.length+1))},resolveReplacement(w){return{start:m+u,end:m+u+y.length,replacement:f+w.slice(f.length+a.length+1)}}}}};var Go=["v-bind:",":"],Pn=/[\s'"`;]+/g,Zo=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,Xo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,On=e=>{let t=(e==null?void 0:e.ignoreAttributes)??[],r=(e==null?void 0:e.nonValuedAttribute)??!0,n=(e==null?void 0:e.trueToNonValued)??!1;return{name:"attributify",extract({code:o}){let i=Array.from(o.matchAll(Zo)).flatMap(s=>Array.from((s[1]||"").matchAll(Xo))).flatMap(([,s,a,l])=>{if(t.includes(s))return[];for(let u of Go)if(s.startsWith(u)){s=s.slice(u.length);break}if(!l){if(Y(s)&&r!==!1){let u=[`[${s}=""]`];return n&&u.push(`[${s}="true"]`),u}return[]}return["class","className"].includes(s)?l.split(Pn).filter(Y):l.split(Pn).filter(Boolean).map(u=>`[${s}~="${u}"]`)});return new Set(i)}}};var Yo=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??[];let t=[jn(e)],r=[On(e)],n=[Vn];return e.strict||r.unshift(J),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Mn=Yo;var Jo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),Un=e=>e.charAt(0).toUpperCase()+e.slice(1),Fn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),_n=["Webkit","Moz","ms"];function Ln(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Jo(n);if(i!=="filter"&&i in e)return t[n]=Fn(i);i=Un(i);for(let s=0;s<_n.length;s++){let a=`${_n[s]}${i}`;if(a in e)return t[n]=Fn(Un(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function et(e={}){var j,D;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 p=n.postprocess;p||(p=[]),Array.isArray(p)||(p=[p]),p.unshift(Ln(document.createElement("div").style)),n.postprocess=p}(j=r==null?void 0:r.configResolved)==null||j.call(r,t,n);let o,i=!0,s,a=$t(t,n),l=new Set,u,h=[],m=()=>new Promise(p=>{h.push(p),u!=null&&clearTimeout(u),u=setTimeout(()=>f().then(()=>{let $=h;h=[],$.forEach(T=>T())}),0)});function y(p=document.body){if(p.nodeType!==1)return;let $=p;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(T=>{T.removeAttribute("un-cloak")})}async function f(){let p=await a.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=p.css,l=p.matched}async function x(p){let $=l.size;await a.applyExtractors(p,void 0,l),$!==l.size&&await m()}async function w(){let p=document.body&&document.body.outerHTML;p&&(await x(p),y())}let E=new MutationObserver(p=>{i||p.forEach(async $=>{if($.target.nodeType!==1)return;let T=$.target;if(T!==o)if($.type==="childList")$.addedNodes.forEach(async L=>{if(L.nodeType!==1)return;let z=L;s&&!s(z)||(await x(z.outerHTML),y(z))});else{if(s&&!s(T))return;if($.attributeName!=="un-cloak"){let L=Array.from(T.attributes).map(U=>U.value?`${U.name}="${U.value}"`:U.name).join(" "),z=`<${T.tagName.toLowerCase()} ${L}>`;await x(z)}T.hasAttribute("un-cloak")&&T.removeAttribute("un-cloak")}})}),d=!1;function g(){if(d)return;let p=document.documentElement||document.body;!p||(E.observe(p,{childList:!0,subtree:!0,attributes:!0}),d=!0)}function b(){w(),g()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",b):b()}let k=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(p){typeof p!="string"&&(p.forEach($=>l.add($)),p=""),await x(p)},extractAll:w,inspect(p){s=p},toggleObserver(p){p===void 0?i=!i:i=!!p,!d&&!i&&S()}};((D=r==null?void 0:r.ready)==null?void 0:D.call(r,k))!==!1&&(i=!1,S())}et({defaults:{presets:[An(),Mn()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
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.38.0",
38
- "@unocss/preset-attributify": "0.38.0",
39
- "@unocss/preset-uno": "0.38.0"
37
+ "@unocss/core": "0.38.1",
38
+ "@unocss/preset-attributify": "0.38.1",
39
+ "@unocss/preset-uno": "0.38.1"
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 jt=Object.defineProperty,fa=Object.defineProperties;var ma=Object.getOwnPropertyDescriptors;var Ce=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var Tt=(e,t,r)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&Tt(e,r,t[r]);if(Ce)for(var r of Ce(t))Vt.call(t,r)&&Tt(e,r,t[r]);return e},R=(e,t)=>fa(e,ma(t));var Ot=(e,t)=>{var r={};for(var o in e)Et.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ce)for(var o of Ce(e))t.indexOf(o)<0&&Vt.call(e,o)&&(r[o]=e[o]);return r};var da=(e,t)=>{for(var r in t)jt(e,r,{get:t[r],enumerable:!0})};function ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 Re=se;function le(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Pt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>le(t)):[e]:[le(e)]}function ga(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 Q(e){return e==null?"":ga(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ze(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ie(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=b({},r);return ze(r)&&ze(o)&&Object.keys(o).forEach(a=>{ze(r[a])&&ze(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ie(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ce(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ce(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ce(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ce(o):o;return r}return e}function At(e){return typeof e[0]=="string"}function Mt(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function pe(e){return Array.from(new Set(e))}var ba=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Ke="$$shortcut-no-merge";function Ut(e=""){return ba.test(e)}function Ft(e){return typeof e=="function"?{match:e}:e}function He(e){return e.length===3}function _t(e){return e!=null}function qe(){}var Te=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 Wt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Bt(e){Wt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Wt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Lt=new Set;function Nt(e){Lt.has(e)||(console.warn("[unocss]",e),Lt.add(e))}function je(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[s](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 ha=e=>e.split(/[\s'"`;>=]+/g).filter(Ut),Xe={name:"split",order:0,extract({code:e}){return new Set(ha(e))}};function Dt(){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 xa(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ya={preflights:-100,shortcuts:-10,default:0};function Ye(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(V),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(ya,...o.map(m=>m.layers),e.layers);function s(m){return pe([...n.flatMap(h=>V(h[m]||[])),...V(r[m]||[])])}let c=s("extractors");c.length||c.push(Xe),c.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},g=l.length;l.forEach((m,h)=>{At(m)&&(p[m[0]]=[h,m[1],m[2],m],delete l[h])});let u=ce([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>Ie(m,h),{}));s("extendTheme").forEach(m=>m(u));let v={templates:pe(n.map(m=>{var h;return V((h=m.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(m=>{var h;return V((h=m.autocomplete)==null?void 0:h.extractors)}).flat().sort((m,h)=>(m.order||0)-(h.order||0))};return R(b({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:v,variants:s("variants").map(Ft),shortcuts:xa(s("shortcuts")),extractors:c,safelist:s("safelist")})}var It="0.38.0";var Ge=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ye(t,r),this.events.emit("config",this.config)}version=It;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Dt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ye(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 s=await a.extract(n);s==null||s.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 s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(g=>this.stringifyUtil(g,s)).filter(_t);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:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
1
+ (()=>{var jt=Object.defineProperty,fa=Object.defineProperties;var ma=Object.getOwnPropertyDescriptors;var Ce=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var Tt=(e,t,r)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&Tt(e,r,t[r]);if(Ce)for(var r of Ce(t))Vt.call(t,r)&&Tt(e,r,t[r]);return e},R=(e,t)=>fa(e,ma(t));var Ot=(e,t)=>{var r={};for(var o in e)Et.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ce)for(var o of Ce(e))t.indexOf(o)<0&&Vt.call(e,o)&&(r[o]=e[o]);return r};var da=(e,t)=>{for(var r in t)jt(e,r,{get:t[r],enumerable:!0})};function ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(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 Re=se;function le(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Pt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>le(t)):[e]:[le(e)]}function ga(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 Q(e){return e==null?"":ga(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ze(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ie(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=b({},r);return ze(r)&&ze(o)&&Object.keys(o).forEach(a=>{ze(r[a])&&ze(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ie(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ce(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ce(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ce(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ce(o):o;return r}return e}function At(e){return typeof e[0]=="string"}function Mt(e){return typeof e[0]=="string"}function V(e=[]){return Array.isArray(e)?e:[e]}function pe(e){return Array.from(new Set(e))}var ba=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Ke="$$shortcut-no-merge";function Ut(e=""){return ba.test(e)}function Ft(e){return typeof e=="function"?{match:e}:e}function He(e){return e.length===3}function _t(e){return e!=null}function qe(){}var Te=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 Wt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Bt(e){Wt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(Wt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Lt=new Set;function Nt(e){Lt.has(e)||(console.warn("[unocss]",e),Lt.add(e))}function je(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[s](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 ha=e=>e.split(/[\s'"`;>=]+/g).filter(Ut),Xe={name:"split",order:0,extract({code:e}){return new Set(ha(e))}};function Dt(){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 xa(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ya={preflights:-100,shortcuts:-10,default:0};function Ye(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(V),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(ya,...o.map(m=>m.layers),e.layers);function s(m){return pe([...n.flatMap(h=>V(h[m]||[])),...V(r[m]||[])])}let c=s("extractors");c.length||c.push(Xe),c.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},g=l.length;l.forEach((m,h)=>{At(m)&&(p[m[0]]=[h,m[1],m[2],m],delete l[h])});let u=ce([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>Ie(m,h),{}));s("extendTheme").forEach(m=>m(u));let v={templates:pe(n.map(m=>{var h;return V((h=m.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(m=>{var h;return V((h=m.autocomplete)==null?void 0:h.extractors)}).flat().sort((m,h)=>(m.order||0)-(h.order||0))};return R(b({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:v,variants:s("variants").map(Ft),shortcuts:xa(s("shortcuts")),extractors:c,safelist:s("safelist")})}var It="0.38.1";var Ge=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ye(t,r),this.events.emit("config",this.config)}version=It;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Dt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ye(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 s=await a.extract(n);s==null||s.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 s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(g=>this.stringifyUtil(g,s)).filter(_t);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:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
2
2
  `,p=new Set(["default"]),g=new Set,u=new Map;await Promise.all(Array.from(c).map(async d=>{var k;if(g.has(d))return;let y=await this.parseToken(d);if(y!=null){g.add(d);for(let S of y){let z=S[3]||"";u.has(z)||u.set(z,[]),u.get(z).push(S),(k=S[4])!=null&&k.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(d=>{d.layer&&p.add(d.layer)});let v={},m=this.config.sortLayers(Array.from(p).sort((d,y)=>(this.config.layers[d]??0)-(this.config.layers[y]??0)||d.localeCompare(y))),h={};if(n){let d={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(m.map(async y=>{let S=(await Promise.all(this.config.preflights.filter(z=>(z.layer||"default")===y).map(async z=>await z.getCSS(d)))).filter(Boolean).join(l);return[y,S]})))}let M=d=>{if(v[d])return v[d];let y=Array.from(u).sort((k,S)=>{var z;return(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(S[0])??0)||((z=k[0])==null?void 0:z.localeCompare(S[0]||""))||0}).map(([k,S])=>{let z=S.length,U=S.filter(f=>{var $;return((($=f[4])==null?void 0:$.layer)||"default")===d}).sort((f,$)=>{var P,K,F;return f[0]-$[0]||(((P=f[4])==null?void 0:P.sort)||0)-(((K=$[4])==null?void 0:K.sort)||0)||((F=f[1])==null?void 0:F.localeCompare($[1]||""))||0}).map(f=>{var $;return[f[1]?ka(f[1],o):f[1],f[2],!!(($=f[4])!=null&&$.noMerge)]}).map(f=>[f[0]==null?f[0]:[f[0]],f[1],f[2]]);if(!U.length)return;let X=U.reverse().map(([f,$,P],K)=>{if(!P&&f&&this.config.mergeSelectors)for(let F=K+1;F<z;F++){let D=U[F];if(D&&!D[2]&&D[0]&&D[1]===$)return D[0].push(...f),null}return f?`${[...new Set(f)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return k?`${k}{${l}${X}${l}}`:X}).filter(Boolean).join(l);return n&&(y=[h[d],y].filter(Boolean).join(l)),v[d]=!s&&y?`/* layer: ${d} */${l}${y}`:y},N=(d=m,y)=>d.filter(k=>!(y!=null&&y.includes(k))).map(k=>M(k)||"").filter(Boolean).join(l);return{get css(){return N()},layers:m,getLayers:N,getLayer:M,matched:g}}matchVariants(t,r){let o=new Set,n=[],a=r||t,s=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!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),s=!0;break}}if(!s)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 g;return((g=p.body)==null?void 0:g.call(p,l))||l},t[2]),s=n.reduce((l,p)=>{var g;return((g=p.selector)==null?void 0:g.call(p,l,a))||l},Sa(o)),c={selector:wa(s),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=le(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${Q(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,o=!1){var u,v;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,c=this.config.details?m=>{r.rules=r.rules??[],r.rules.push(m)}:qe,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return c(l[3]),[[l[0],n,le(l[1]),l[2],s]];r.variantHandlers=s;let{rulesDynamic:p,rulesSize:g}=this.config;for(let m=g-1;m>=0;m--){let h=p[m];if(!h||((v=h[2])==null?void 0:v.internal)&&!o)continue;let[M,N,d]=h,y=a.match(M);if(!y)continue;let k=await N(y,r);if(!k)continue;if(c(h),typeof k=="string")return[[m,k,d]];let S=Pt(k).filter(z=>z.length);if(S.length)return S.map(z=>[m,n,z,d,s])}}stringifyUtil(t,r){if(!t)return;if(He(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:s,sort:c}=this.applyVariants(t),l=Q(n);if(!l)return;let m=t[3]??{},{layer:p,sort:g}=m,u=Ot(m,["layer","sort"]),v=R(b({},u),{layer:s??p,sort:c??g});return[t[0],o,l,a,v,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:qe,a,s;for(let c of this.config.shortcuts)if(Mt(c)){if(c[0]===t){a=a||c[2],s=c[1],n(c);break}}else{let l=t.match(c[0]);if(l&&(s=c[1](l,r)),s){a=a||c[2],n(c);break}}if(typeof s=="string"&&(s=Bt(s).split(/\s+/g)),!!s)return[s.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 g;let a=new Te,s=(await Promise.all(pe(o).map(async u=>{let v=await this.parseUtil(u,r,!0);return v||Nt(`unmatched utility "${u}" in shortcut "${t[1]}"`),v||[]}))).flat(1).filter(Boolean).sort((u,v)=>u[0]-v[0]),[c,,l]=t,p=[];for(let u of s){if(He(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:v,entries:m,parent:h,sort:M}=this.applyVariants(u,[...u[4],...l],c);a.getFallback(v,h,[[],u[0]])[0].push([m,!!((g=u[3])!=null&&g.noMerge),M??0])}return p.concat(a.map(([u,v],m,h)=>{let M=(d,y,k)=>{let S=Math.max(...k.map(U=>U[1])),z=k.map(U=>U[0]);return(d?[z.flat(1)]:z).map(U=>{let X=Q(U);if(X)return[v,m,X,h,R(b({},n),{noMerge:y,sort:S}),r]})};return[[u.filter(([,d])=>d).map(([d,,y])=>[d,y]),!0],[u.filter(([,d])=>!d).map(([d,,y])=>[d,y]),!1]].map(([d,y])=>[...M(!1,y,d.filter(([k])=>k.some(S=>S[0]===Ke))),...M(!0,y,d.filter(([k])=>k.every(S=>S[0]!==Ke)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Ht(e,t){return new Ge(e,t)}var qt=/ \$\$ /,$a=e=>e.match(qt);function ka(e,t){return $a(e)?e.replace(qt,t?` ${t} `:" "):t?`${t} ${e}`:e}function wa(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Kt=/^\[(.+?)(~?=)"(.*)"\]$/;function Sa(e){return Kt.test(e)?e.replace(Kt,(t,r,o,n)=>`[${Re(r)}${o}"${Re(n)}"]`):`.${Re(e)}`}var Ze=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase)return`*,::before,::after{${Q(Object.entries(e.theme.preflightBase))}}`}}];var O={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"]},Je=R(b({},O),{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"]},et={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Xt=["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"],T=Object.assign({},...Xt.map(e=>({[e.replace(/ /,"-")]:e})),...Xt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),_=["inherit","initial","revert","revert-layer","unset"];var Yt={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"},Gt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Yt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Yt).join("|")})`}]],Zt=["center","left","right","justify","start","end",..._].map(e=>[`text-${e}`,{"text-align":e}]);var tt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function ee(e=""){let t=Ca(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)&&!(tt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function G(e){let t=e.alpha??1;return t==="%alpha"?1:t}function j(e,t){if(typeof e=="string")return e.replace("%alpha",`${t??1}`);let{components:r}=e,{alpha:o,type:n}=e;return o=t??o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,tt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Ca(e){if(!e)return;let t=Ra(e);if(t!=null||(t=za(e),t!=null)||(t=Ta(e),t!=null)||(t=Ea(e),t!=null)||(t=Va(e),t!=null))return t}function Ra(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 za(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ta(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ue(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 ja=new RegExp(`^(${tt.join("|")})\\((.+)\\)$`,"i");function Ea(e){let t=e.match(ja);if(!t)return;let[,r,o]=t,n=Jt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Va(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Jt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Jt(e){let t=ue(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=ue(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 Oa(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 ue(e,t,r){if(t=t??" ",t.length!==1)return;r=r??10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=Oa(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var ot={};da(ot,{auto:()=>Ua,bracket:()=>Da,bracketOfColor:()=>Ia,bracketOfLength:()=>Ka,bracketOfPosition:()=>Ha,cssvar:()=>qa,degree:()=>Ya,fraction:()=>La,global:()=>Ga,number:()=>Wa,numberWithUnit:()=>Ma,percent:()=>Ba,position:()=>Ja,properties:()=>Za,px:()=>_a,rem:()=>Fa,time:()=>Xa});var Pa=["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"],rt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Aa=/^(-?[0-9.]+)$/i,Qt=/^(px)$/i;function W(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Ma(e){let t=e.match(rt);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${W(n)}${o}`}function Ua(e){if(e==="auto"||e==="a")return"auto"}function Fa(e){if(e.match(Qt))return`1${e}`;let t=e.match(rt);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n/4)}rem`}function _a(e){if(e.match(Qt))return`1${e}`;let t=e.match(rt);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}px`}function Wa(e){if(!Aa.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return W(t)}function Ba(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${W(t/100)}`}function La(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 Na=/^\[(color|length|position):/i;function Ee(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(Na);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 Da(e){return Ee(e)}function Ia(e){return Ee(e,"color")}function Ka(e){return Ee(e,"length")}function Ha(e){return Ee(e,"position")}function qa(e){if(e.match(/^\$\S/))return`var(--${se(e.slice(1))})`}function Xa(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 Ya(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 Ga(e){if(_.includes(e))return e}function Za(e){if(e.split(",").every(t=>Pa.includes(t)))return e}function Ja(e){if(["top","left","right","bottom","center"].includes(e))return e}var i=je(ot);var L=(e,t)=>{let r=new RegExp(`^${ie(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},A=(e,t)=>{let r=new RegExp(`^${ie(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 er="$$mini-no-negative",C=e=>([t,r,o],{theme:n})=>{var s;let a=((s=n.spacing)==null?void 0:s[o||"DEFAULT"])??i.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return O[r].map(c=>[`${e}${c}`,a])},nt=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},te=(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),[s]=a;if(!s)return;let c,l=i.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=i.cssvar(o)),c=c||l;let g="DEFAULT";if(!c){let u,[v]=a.slice(-1);v.match(/^\d+$/)?(g=v,u=nt(t,a.slice(0,-1))):(u=nt(t,a),!u&&a.length<=2&&([,g=g]=a,u=nt(t,[s]))),typeof u=="string"?c=u:g&&u&&(c=u[g])}return{opacity:n,name:s,no:g,color:c,cssColor:ee(c),alpha:i.bracket.cssvar.percent(n??"")}},w=(e,t)=>([,r],{theme:o})=>{let n=te(r,o);if(!n)return;let{alpha:a,color:s,cssColor:c}=n;if(c)return a!=null?{[e]:j(c,a)}:{[`--un-${t}-opacity`]:G(c),[e]:j(c,`var(--un-${t}-opacity)`)};if(s)return{[e]:j(s,a)}},re=(e,t)=>{let r=[];e=V(e);for(let o=0;o<e.length;o++){let n=ue(e[o]," ",6);if(!n||n.length<3)return e;let a=ee(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${j(a)})`)}return r},Ve=(e,t)=>{var r;return e!=null&&!!((r=te(e,t))!=null&&r.color)},oe=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},tr=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var rr=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"outline-width":((r=t.lineWidth)==null?void 0:r[e])??i.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,w("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"outline-offset":((r=t.lineWidth)==null?void 0:r[e])??i.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"}]],or=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],Qa=e=>i.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e],nr=[[/^will-change-(.+)/,([,e])=>({"will-change":Qa(e)})]];var be=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",..._],ar=[[/^(?:border|b)()(?:-(.+))?$/,fe,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,fe],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,fe],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,fe],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,fe],[/^(?:border|b)-()(?:width|size)-(.+)$/,ne,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,ne],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,ne],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,ne],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,ne],[/^(?:border|b)-()(?:color-)?(.+)$/,me,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,me],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,me],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,me],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,me],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,de,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,de],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,de],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,de],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,de],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ge,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ge],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ge],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ge],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ge],[/^(?:border|b)-(?:style-)?()(.+)$/,ae,{autocomplete:["(border|b)-style",`(border|b)-(${be.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${be.join("|")})`,`(border|b)-<directions>-style-(${be.join("|")})`,`(border|b)-style-(${be.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ae],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ae],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ae],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ae]],ei=e=>([,t],r)=>{let o=te(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${e}-color`]:j(s,n)}:e===""?{"--un-border-opacity":G(s),"border-color":j(s,"var(--un-border-opacity)")}:{"--un-border-opacity":G(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:j(s,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:j(a,n)}};function fe(e,t){let r=ne(e,t),o=ae(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function ne([,e="",t],{theme:r}){var n;let o=((n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])??i.bracket.cssvar.px(t||"1");if(e in O&&o!=null)return O[e].map(a=>[`border${a}-width`,o])}function me([,e="",t],{theme:r}){if(e in O&&Ve(t,r))return Object.assign({},...O[e].map(o=>ei(o)(["",t],r)))}function de([,e="",t]){let r=i.bracket.percent(t);if(e in O&&r!=null)return O[e].map(o=>[`--un-border${o}-opacity`,r])}function ge([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||i.bracket.cssvar.fraction.rem(t||"1");if(e in Qe&&o!=null)return Qe[e].map(a=>[`border${a}-radius`,o])}function ae([,e="",t]){if(be.includes(t)&&e in O)return O[e].map(r=>[`border${r}-style`,t])}var ir=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:i.bracket.percent.cssvar(e)})]],sr=[[/^(?:text|color|c)-(.+)$/,w("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":i.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],cr=[[/^bg-(.+)$/,w("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":i.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Oe={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},lr=e=>i.properties(e)??Oe[e],pr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n;let o=e!=null?lr(e):[Oe.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let a=((n=r.duration)==null?void 0:n[t||"DEFAULT"])??i.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(Oe).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-duration":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??i.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r;return{"transition-delay":((r=t.duration)==null?void 0:r[e||"DEFAULT"])??i.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"transition-timing-function":((r=t.easing)==null?void 0:r[e||"DEFAULT"])??i.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":i.global(e)||lr(e)}),{autocomplete:[`transition-property-(${[..._,...Object.keys(Oe)].join("|")})`]}],["transition-none",{transition:"none"}]];var ur=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:i.bracket(e)!=null?i.bracket(e).split(" ").map(t=>i.cssvar.fraction(t)??t).join(" "):i.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;return{"flex-basis":((r=t.spacing)==null?void 0:r[e])??i.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 fr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},mr=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||i.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":i.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n;let r=V((n=t.fontSize)==null?void 0:n[e]),o=(r==null?void 0:r[0])??i.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":fr[e]||i.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(fr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||i.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])||i.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])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],dr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=i.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],gr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],br=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":i.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],hr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":re(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var xr={"":"",x:"column-",y:"row-"},yr=([,e="",t],{theme:r})=>{var n;let o=((n=r.spacing)==null?void 0:n[t])??i.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${xr[e]}gap`]:o,[`${xr[e]}gap`]:o}},vr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,yr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,yr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var I=e=>e.replace("col","column"),at=e=>e[0]==="r"?"Row":"Column",ti=(e,t,r)=>{var n;let o=(n=t[`gridAuto${at(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 i.bracket.cssvar.auto.rem(r)},$r=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o;return{[`grid-${I(e)}`]:((o=r[`grid${at(e)}`])==null?void 0:o[t])??i.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${I(e)}`]:"1/-1"};let r=i.bracket.number(t);if(r!=null)return{[`grid-${I(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${I(e)}-start`]:i.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${I(e)}-end`]:i.bracket.cssvar(t)??t})],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${I(e)}`]:ti(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":i.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":I(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o;return{[`grid-template-${I(e)}`]:((o=r[`gridTemplate${at(e)}`])==null?void 0:o[t])??i.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${I(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Pe=["auto","hidden","clip","visible","scroll"],kr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Pe.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Pe.join("|")})`,`(overflow|of)-(x|y)-(${Pe.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Pe.includes(t)?{[`overflow-${e}`]:t}:void 0]];var wr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Sr=[["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"}]],Cr=[[/^order-(.+)$/,([,e])=>({order:i.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Rr=[["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"}]],zr=[["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 it(e,{theme:t}){var r;return((r=t.spacing)==null?void 0:r[e])??i.bracket.cssvar.auto.fraction.rem(e)}function Ae([,e,t],r){let o=it(t,r);if(o!=null&&e in Je)return Je[e].map(n=>[n.slice(1),o])}var Tr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:it(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])-(.+)$/,Ae],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ae],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ae],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ae],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:it(t,r)})]],jr=[["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"}]],Er=[[/^z([\d.]+)$/,([,e])=>({"z-index":i.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":i.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Vr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",Or=[["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:i.bracket.cssvar(e)||e})]],Pr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Ar=[[/^cursor-(.+)$/,([,e])=>({cursor:i.bracket.cssvar(e)||e})]],Mr=[["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"}]],_r=[[/^(?: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)"}]],Wr=[[/^content-(.+)$/,([,e])=>{let t=i.bracket.cssvar(e);return{content:t??`"${e}"`}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Br=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Lr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Nr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Dr=[["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"}]],Ir=[["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 Kr={"--un-ring-inset":x,"--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"},Hr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=((o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])??i.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;return{"--un-ring-width":((r=t.lineWidth)==null?void 0:r[e])??i.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;return{"--un-ring-offset-width":((r=t.lineWidth)==null?void 0:r[e])??i.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,w("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":i.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,w("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":i.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var qr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},Xr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return{"--un-shadow":re(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-(.+)$/,w("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ri={h:"height",w:"width",inline:"inline-size",block:"block-size"};function he(e,t){return`${e||""}${ri[t]}`}function Yr(e,t,r,o){var s;let n=he(e,t).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return i.bracket.cssvar.auto.fraction.rem(o)}var Gr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[he(e,t)]:Yr(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})=>({[he(e,t)]:Yr(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{[he(e,t)]:(n=tr(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{[he(e,t)]:(n=oe(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function oi(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(e)}var Zr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":oi(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Jr=[[/^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 Z=["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(" "),ni=["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(" "),oo={"--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},no=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":T[e]??i.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(T).join("|")})`,`origin-(${Object.keys(T).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=i.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=i.bracket.cssvar(e)??(e.length>=3?T[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,eo],[/^(?:transform-)?translate-([xyz])-(.+)$/,eo],[/^(?:transform-)?rotate-()(.+)$/,ro],[/^(?:transform-)?rotate-([xyz])-(.+)$/,ro],[/^(?:transform-)?skew-([xy])-(.+)$/,ai],[/^(?:transform-)?scale-()(.+)$/,to],[/^(?:transform-)?scale-([xyz])-(.+)$/,to],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:Z}],["transform-cpu",{transform:Z}],["transform-gpu",{transform:ni}],["transform-none",{transform:"none"}]];function eo([,e,t],{theme:r}){var n;let o=((n=r.spacing)==null?void 0:n[t])??i.bracket.cssvar.fraction.rem(t);if(o!=null)return[...et[e].map(a=>[`--un-translate${a}`,o]),["transform",Z]]}function to([,e,t]){let r=i.bracket.cssvar.fraction.percent(t);if(r!=null)return[...et[e].map(o=>[`--un-scale${o}`,r]),["transform",Z]]}function ro([,e="",t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:Z}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:Z}}function ai([,e,t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return{[`--un-skew-${e}`]:r,transform:Z}}var ii={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"},ao=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=ii[e];if(r)return{[r]:i.cssvar(t)}}]],io=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:i.bracket(`[${t}]`)})]];var so=[[/^(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 co=["solid","double","dotted","dashed","wavy",..._],lo=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"text-decoration-thickness":((r=t.lineWidth)==null?void 0:r[e])??i.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=w("text-decoration-color","line")(e,t);if(r)return b({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":i.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"text-underline-offset":((r=t.lineWidth)==null?void 0:r[e])??i.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...co.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...co.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var po=[[/^fill-(.+)$/,w("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":i.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-width":((r=t.lineWidth)==null?void 0:r[e])??i.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":i.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r;return{"stroke-dashoffset":((r=t.lineWidth)==null?void 0:r[e])??i.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,w("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":i.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 st={},uo=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}`},fo={name:"breakpoints",match(e,t){let r=Object.entries(oe(t)??{}).map(([o,n],a)=>[o,n,a]);for(let[o,n,a]of r){st[o]||(st[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let s=e.match(st[o]);if(!s)continue;let[,c]=s,l=e.slice(c.length);if(l==="container")continue;let p=c.startsWith("lt-"),g=c.startsWith("at-"),u=1e3;return p?(u-=a+1,{matcher:l,parent:[`@media (max-width: ${uo(n)})`,u]}):(u+=a+1,g&&a<r.length-1?{matcher:l,parent:[`@media (min-width: ${n}) and (max-width: ${uo(r[a+1][1])})`,u]}:{matcher:l,parent:[`@media (min-width: ${n})`,u]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var H=(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:s=>r.replace("&&-s",s).replace("&&-c",a[1]??"*")}}}},mo=[H(!1,"all","&&-s &&-c"),H(!1,"children","&&-s>&&-c"),H(!1,"next","&&-s+&&-c"),H(!1,"sibling","&&-s+&&-c"),H(!1,"siblings","&&-s~&&-c"),H(!0,"group","&&-c &&-s"),H(!0,"parent","&&-c>&&-s"),H(!0,"previous","&&-c+&&-s"),H(!0,"peer","&&-c~&&-s")];var go=A("print","@media print"),bo={name:"media",match(e,{theme:t}){var o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let n=((o=t.media)==null?void 0:o[r[1]])??`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${n}`}}}};var ho=(e={})=>(e==null?void 0:e.dark)==="class"?[L("dark",t=>`.dark $$ ${t}`),L("light",t=>`.light $$ ${t}`)]:[A("dark","@media (prefers-color-scheme: dark)"),A("light","@media (prefers-color-scheme: light)")];var xo=[L("rtl",e=>`[dir="rtl"] $$ ${e}`),L("ltr",e=>`[dir="ltr"] $$ ${e}`)];var vo={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},$o={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),parent:`@layer ${t[1]}`}}},ko={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]}}},wo={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}`}}},So={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)"},yo=/[0-9.]+(?:[a-z]+|%)?/,Co={name:"negative",match(e){if(!!e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(o=>o[0]===er))return;let r=!1;if(t.forEach(o=>{var a;let n=(a=o[1])==null?void 0:a.toString();!n||n==="0"||yo.test(n)&&(o[1]=n.replace(yo,s=>`-${s}`),r=!0)}),r)return t}}}};var ye=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}`])),ve=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),si=["not","is","where","has"],ct=Object.entries(ye).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),lt=Object.entries(ve).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),xe=si.join("|"),Ro=e=>{if(e==="active")return 1},Me=(e,t,r)=>{let o=new RegExp(`^${ie(t)}:`),n=new RegExp(`^${e}-((?:(${xe})-)?(${ct}))[:-]`),a=new RegExp(`^${e}-((?:(${xe})-)?(${lt}))[:]`);return{name:`pseudo:${e}`,match(s){let c=s.match(n)||s.match(a);if(c){let l=ye[c[3]]||ve[c[3]]||`:${c[3]}`;return c[2]&&(l=`:${c[2]}(${l})`),{matcher:s.slice(c[0].length),selector:p=>o.test(p)?p.replace(o,`${t}${l}:`):`${t}${l}${r}${p}`,sort:Ro(c[3])}}}}},zo=Object.entries(ye).map(([e])=>e).join("|"),ci=Object.entries(ve).map(([e])=>e).join("|"),li=new RegExp(`^(${zo})[:-]`),pi=new RegExp(`^(${ci})[:]`),To={name:"pseudo",match:e=>{let t=e.match(li)||e.match(pi);if(t){let r=ye[t[1]]||ve[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}${r}`,sort:Ro(t[1])}}},multiPass:!0,autocomplete:`(${zo}):`},ui=new RegExp(`^(${xe})-(${ct})[:-]`),fi=new RegExp(`^(${xe})-(${lt})[:]`),jo={match:e=>{let t=e.match(ui)||e.match(fi);if(t){let r=t[1],o=ye[t[2]]||ve[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}:${r}(${o})`}}},multiPass:!0,autocomplete:`(${xe})-(${ct}|${lt}):`},Eo=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[R(b({},Me("group",t?'[group=""]':".group"," ")),{multiPass:!0}),R(b({},Me("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),R(b({},Me("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),R(b({},Me("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},mi=/(part-\[(.+)]:)(.+)/,Vo={match:e=>{let t=e.match(mi);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:o=>`${o}::${r}`}}},multiPass:!0};var Oo=e=>[$o,vo,ko,Co,So,go,bo,fo,...mo,To,jo,...Eo(e),Vo,...ho(e),...xo,wo];var Po=[[/^(?: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,s,c,l,p,g,u,v,m;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let h=((c=(s=t.animation)==null?void 0:s.durations)==null?void 0:c[e])??"1s",M=((p=(l=t.animation)==null?void 0:l.timingFns)==null?void 0:p[e])??"linear",N=(u=(g=t.animation)==null?void 0:g.properties)==null?void 0:u[e],d=((m=(v=t.animation)==null?void 0:v.counts)==null?void 0:m[e])??1;return`@keyframes ${e}${o}