@unocss/runtime 0.34.0 → 0.34.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 me=Object.defineProperty,Vn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var fe=(t,e,r)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))de.call(e,r)&&fe(t,r,e[r]);if(xt)for(var r of xt(e))ge.call(e,r)&&fe(t,r,e[r]);return t},z=(t,e)=>Vn(t,An(e));var be=(t,e)=>{var r={};for(var o in t)de.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xt)for(var o of xt(t))e.indexOf(o)<0&&ge.call(t,o)&&(r[o]=t[o]);return r};var On=(t,e)=>{for(var r in e)me(t,r,{get:e[r],enumerable:!0})};var At=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(t=""){let e=Mn(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)&&!(At.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function P(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e: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 Mn(t){if(!t)return;let e=_n(t);if(e!=null||(e=Pn(t),e!=null)||(e=Un(t),e!=null)||(e=Nn(t),e!=null)||(e=Ln(t),e!=null))return e}function _n(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 Pn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Un(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=et(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 Fn=new RegExp(`^(${At.join("|")})\\((.+)\\)$`,"i");function Nn(t){let e=t.match(Fn);if(!e)return;let[,r,o]=e,n=he(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Ln(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=he(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function he(t){let e=et(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=et(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 Dn(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 et(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Dn(t,e);if(!a)return;let[i,c]=a;o.push(i),t=c}if(o.length>0)return o}var A={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"]},Ot=z(w({},A),{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"]}),Mt={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"]},_t={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},xe=["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"],V=Object.assign({},...xe.map(t=>({[t.replace(/ /,"-")]:t})),...xe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function rt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pt(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 yt=Pt;function nt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ye(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>nt(e)):[t]:[nt(t)]}function Wn(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 $t(t){return t==null?"":Wn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ut(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=w({},r);return vt(r)&&vt(o)&&Object.keys(o).forEach(a=>{vt(r[a])&&vt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ut(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ot(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ot(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}return t}function ve(t){return typeof t[0]=="string"}function $e(t){return typeof t[0]=="string"}function _(t=[]){return Array.isArray(t)?t:[t]}function at(t){return Array.from(new Set(t))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Hn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function ke(t){return t.match(Bn)}function it(t=""){return Hn.test(t)}function we(t){return typeof t=="function"?{match:t}:t}function Ft(t){return t.length===3}function Se(t){return t!=null}function Nt(){}var kt=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 Ce=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Re(t){Ce.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ce,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var ze=new Set;function Te(t){ze.has(t)||(console.warn("[unocss]",t),ze.add(t))}function Ee(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 c=t[i](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var In=t=>t.split(/[\s'"`;>=]+/g).filter(it),st={name:"split",order:0,extract({code:t}){return new Set(In(t))}};function je(){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 Kn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Gn={shortcuts:-1,default:0};function Lt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Gn,...o.map(u=>u.layers),t.layers);function i(u){return at([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(st),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{ve(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ot([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Ut(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:at(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return z(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(we),shortcuts:Kn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Ve="0.34.0";var Dt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Lt(e,r),this.events.emit("config",this.config)}version=Ve;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=je();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Lt(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(c=>o.add(c))}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 c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(g=>this.stringifyUtil(g,i)).filter(Se);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
1
+ (()=>{var me=Object.defineProperty,Vn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var fe=(t,e,r)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))de.call(e,r)&&fe(t,r,e[r]);if(xt)for(var r of xt(e))ge.call(e,r)&&fe(t,r,e[r]);return t},z=(t,e)=>Vn(t,An(e));var be=(t,e)=>{var r={};for(var o in t)de.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xt)for(var o of xt(t))e.indexOf(o)<0&&ge.call(t,o)&&(r[o]=t[o]);return r};var On=(t,e)=>{for(var r in e)me(t,r,{get:e[r],enumerable:!0})};var At=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(t=""){let e=Mn(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)&&!(At.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function P(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e: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 Mn(t){if(!t)return;let e=_n(t);if(e!=null||(e=Pn(t),e!=null)||(e=Un(t),e!=null)||(e=Nn(t),e!=null)||(e=Ln(t),e!=null))return e}function _n(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 Pn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Un(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=et(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 Fn=new RegExp(`^(${At.join("|")})\\((.+)\\)$`,"i");function Nn(t){let e=t.match(Fn);if(!e)return;let[,r,o]=e,n=he(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Ln(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=he(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function he(t){let e=et(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=et(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 Dn(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 et(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Dn(t,e);if(!a)return;let[i,c]=a;o.push(i),t=c}if(o.length>0)return o}var A={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"]},Ot=z(w({},A),{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"]}),Mt={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"]},_t={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},xe=["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"],V=Object.assign({},...xe.map(t=>({[t.replace(/ /,"-")]:t})),...xe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function rt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pt(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 yt=Pt;function nt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ye(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>nt(e)):[t]:[nt(t)]}function Wn(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 $t(t){return t==null?"":Wn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ut(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=w({},r);return vt(r)&&vt(o)&&Object.keys(o).forEach(a=>{vt(r[a])&&vt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ut(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ot(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ot(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}return t}function ve(t){return typeof t[0]=="string"}function $e(t){return typeof t[0]=="string"}function _(t=[]){return Array.isArray(t)?t:[t]}function at(t){return Array.from(new Set(t))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Hn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function ke(t){return t.match(Bn)}function it(t=""){return Hn.test(t)}function we(t){return typeof t=="function"?{match:t}:t}function Ft(t){return t.length===3}function Se(t){return t!=null}function Nt(){}var kt=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 Ce=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Re(t){Ce.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ce,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var ze=new Set;function Te(t){ze.has(t)||(console.warn("[unocss]",t),ze.add(t))}function Ee(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 c=t[i](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var In=t=>t.split(/[\s'"`;>=]+/g).filter(it),st={name:"split",order:0,extract({code:t}){return new Set(In(t))}};function je(){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 Kn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Gn={shortcuts:-1,default:0};function Lt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Gn,...o.map(u=>u.layers),t.layers);function i(u){return at([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(st),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{ve(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ot([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Ut(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:at(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return z(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(we),shortcuts:Kn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Ve="0.34.1";var Dt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Lt(e,r),this.events.emit("config",this.config)}version=Ve;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=je();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Lt(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(c=>o.add(c))}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 c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(g=>this.stringifyUtil(g,i)).filter(Se);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
2
2
  `,p=new Set(["default"]),g=new Set,f=new Map;await Promise.all(Array.from(c).map(async b=>{var y;if(g.has(b))return;let x=await this.parseToken(b);if(x!=null){g.add(b);for(let S of x){let T=S[3]||"";f.has(T)||f.set(T,[]),f.get(T).push(S),(y=S[4])!=null&&y.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let d={},u=this.config.sortLayers(Array.from(p).sort((b,x)=>{var y,S;return((y=this.config.layers[b])!=null?y:0)-((S=this.config.layers[x])!=null?S:0)||b.localeCompare(x)})),h={};if(n){let b={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async x=>{let S=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===x).map(async T=>await T.getCSS(b)))).filter(Boolean).join(l);return[x,S]})))}let $=b=>{if(d[b])return d[b];let x=Array.from(f).sort((y,S)=>{var T,O,L;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((O=this.parentOrders.get(S[0]))!=null?O:0)||((L=y[0])==null?void 0:L.localeCompare(S[0]||""))||0}).map(([y,S])=>{let T=S.length,O=S.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===b}).sort((m,k)=>{var M,H,F;return m[0]-k[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((F=m[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?Yn(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(!O.length)return;let L=O.reverse().map(([m,k,M],H)=>{if(!M&&m&&this.config.mergeSelectors)for(let F=H+1;F<T;F++){let W=O[F];if(W&&!W[2]&&W[0]&&W[1]===k)return W[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${L}${l}}`:L}).filter(Boolean).join(l);return n&&(x=[h[b],x].filter(Boolean).join(l)),d[b]=!i&&x?`/* layer: ${b} */${l}${x}`:x},E=(b=u,x)=>b.filter(y=>!(x!=null&&x.includes(y))).map(y=>$(y)||"").filter(Boolean).join(l);return{get css(){return E()},layers:u,getLayers:E,getLayer:$,matched:g}}matchVariants(e,r){let o=new Set,n=[],a=r||e,i=!1,c={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,c);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.unshift(p),o.add(l),i=!0;break}}if(!i)break;if(n.length>500)throw new Error(`Too many variants applied to "${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 g;return((g=p.body)==null?void 0:g.call(p,l))||l},e[2]),i=n.reduce((l,p)=>{var g;return((g=p.selector)==null?void 0:g.call(p,l,a))||l},Jn(o)),c={selector:Zn(i),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(e,r,o){r=nt(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),c=`${n}{${$t(a)}}`;return i?`${i}{${c}}`:c}async parseUtil(e,r,o=!1){var f,d;let[n,a,i]=typeof e=="string"?this.matchVariants(e):e,c=this.config.details?u=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(u)}:Nt,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((f=l[2])!=null&&f.internal)))return c(l[3]),[[l[0],n,nt(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:g}=this.config;for(let u=g-1;u>=0;u--){let h=p[u];if(!h||((d=h[2])==null?void 0:d.internal)&&!o)continue;let[$,E,b]=h,x=a.match($);if(!x)continue;let y=await E(x,r);if(!y)continue;if(c(h),typeof y=="string")return[[u,y,b]];let S=ye(y).filter(T=>T.length);if(S.length)return S.map(T=>[u,n,T,b,i])}}stringifyUtil(e,r){var u;if(!e)return;if(Ft(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:c}=this.applyVariants(e),l=$t(n);if(!l)return;let h=(u=e[3])!=null?u:{},{layer:p,sort:g}=h,f=be(h,["layer","sort"]),d=z(w({},f),{layer:i!=null?i:p,sort:c!=null?c:g});return[e[0],o,l,a,d,this.config.details?r:void 0]}expandShortcut(e,r,o=3){if(o===0)return;let n=this.config.details?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:Nt,a,i;for(let c of this.config.shortcuts)if($e(c)){if(c[0]===e){a=a||c[2],i=c[1],n(c);break}}else{let l=e.match(c[0]);if(l&&(i=c[1](l,r)),i){a=a||c[2],n(c);break}}if(typeof i=="string"&&(i=Re(i).split(/\s+/g)),!!i)return[i.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var g;let a=new kt,i=(await Promise.all(at(o).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||Te(`unmatched utility "${f}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[c,,l]=e,p=[];for(let f of i){if(Ft(f)){p.push([f[0],void 0,f[1],void 0,f[2],r]);continue}let{selector:d,entries:u,parent:h,sort:$}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(d,h,[[],f[0]])[0].push([u,!!((g=f[3])!=null&&g.noMerge),$!=null?$:0])}return p.concat(a.map(([f,d],u,h)=>{let $=(b,x,y)=>{let S=Math.max(...y.map(O=>O[1])),T=y.map(O=>O[0]);return(b?[T.flat(1)]:T).map(O=>{let L=$t(O);if(L)return[d,u,L,h,z(w({},n),{noMerge:x,sort:S}),r]})};return[[f.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[f.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...$(!1,x,b.filter(([y])=>y.some(S=>S[0]===j))),...$(!0,x,b.filter(([y])=>y.every(S=>S[0]!==j)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Oe(t,e){return new Dt(t,e)}var Me=/ \$\$ /,Xn=t=>t.match(Me);function Yn(t,e){return Xn(t)?t.replace(Me,e?` ${e} `:" "):e?`${e} ${t}`:t}function Zn(t){let e=t.match(/::[\w-]+/g);return e&&(e.forEach(r=>t=t.replace(r,"")),t+=e.join("")),t}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Jn(t){return Ae.test(t)?t.replace(Ae,(e,r,o,n)=>`[${yt(r)}${o}"${yt(n)}"]`):`.${yt(t)}`}var Ht={};On(Ht,{auto:()=>ra,bracket:()=>ca,bracketOfColor:()=>la,bracketOfLength:()=>pa,cssvar:()=>ua,degree:()=>ma,fraction:()=>sa,global:()=>da,number:()=>aa,numberWithUnit:()=>ea,percent:()=>ia,properties:()=>ga,px:()=>na,rem:()=>oa,time:()=>fa});var Qn=["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"],Wt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ta=/^(-?[0-9.]+)$/i,_e=/^(px)$/i;function N(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ea(t){let e=t.match(Wt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function ra(t){if(t==="auto"||t==="a")return"auto"}function oa(t){if(t.match(_e))return`1${t}`;let e=t.match(Wt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function na(t){if(t.match(_e))return`1${t}`;let e=t.match(Wt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function aa(t){if(!ta.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return N(e)}function ia(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${N(e/100)}`}function sa(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}function Bt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/i);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 ca(t){return Bt(t)}function la(t){return Bt(t,"color")}function pa(t){return Bt(t,"length")}function ua(t){if(t.match(/^\$\S/))return`var(--${Pt(t.slice(1))})`}function fa(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?`${N(n)}${o}`:`${N(n)}ms`}function ma(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?`${N(n)}${o}`:`${N(n)}deg`}function da(t){if(["inherit","initial","revert","unset"].includes(t))return t}function ga(t){if(t.split(",").every(e=>Qn.includes(e)))return t}var s=Ee(Ht);var D=(t,e)=>{let r=new RegExp(`^${rt(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},U=(t,e)=>{let r=new RegExp(`^${rt(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 wt="$$mini-no-negative",R=t=>([e,r,o],{theme:n})=>{var i,c;let a=(c=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?c:s.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return A[r].map(l=>[`${t}${l}`,a])},It=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(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 c,l=s.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=s.cssvar(o)),c=c||l;let g="DEFAULT";if(!c){let f,[d]=a.slice(-1);d.match(/^\d+$/)?(g=d,f=It(e,a.slice(0,-1))):(f=It(e,a),!f&&a.length<=2&&([,g=g]=a,f=It(e,[i]))),typeof f=="string"?c=f:g&&f&&(c=f[g])}return{opacity:n,name:i,no:g,color:c,cssColor:q(c),alpha:s.bracket.cssvar.percent(n!=null?n:"")}},C=(t,e)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:i,cssColor:c}=n;if(c)return a!=null?{[t]:P(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:P(c,`var(--un-${e}-opacity)`)};if(i)return{[t]:i.replace("%alpha",`${a!=null?a:1}`)}},Y=(t,e)=>{let r=[];t=_(t);for(let o=0;o<t.length;o++){let n=et(t[o]," ",6);if(!n||n.length<3)return t;let a=q(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${P(a)})`)}return r},St=(t,e)=>{var r;return t!=null&&!!((r=X(t,e))!=null&&r.color)},Z=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.breakpoints),r||(r=t.breakpoints),r},Pe=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var Ue=[[/^(?: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}
3
3
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,i,c,l,p,g,f,d,u;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(c=(i=e.animation)==null?void 0:i.durations)==null?void 0:c[t])!=null?l:"1s",$=(f=(g=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:g[t])!=null?f:"linear",E=(u=(d=e.animation)==null?void 0:d.properties)==null?void 0:u[t];return`@keyframes ${t}${o}
4
4
  ${r(Object.assign({animation:`${t} ${h} ${$} infinite`},E))}`}return{animation:s.bracket.cssvar(t)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=s.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar(t)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=s.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|unset)","animate-(paused|running|inherit|initial|revert|unset)"]}],["animate-none",{animation:"none"}]];var Kt=t=>([,e],{theme:r})=>{var l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(!a)return;let c=a;switch(i&&(n!=null?c=P(i,n):c=P(i,`var(--un-${t}-opacity, ${(l=i.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Fe=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${s.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&s.bracketOfLength(t)!=null)return{"background-size":s.bracketOfLength(t).split(" ").map(e=>s.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":s.bracket(t)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":s.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Kt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Kt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Kt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":s.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":s.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":s.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in V)return{"--un-gradient-shape":`to ${V[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(V).filter(t=>t.length<=2&&Array.from(t).every(e=>"rltb".includes(e))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in V?`to ${V[t]}`:s.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(V).join("|")})`,`shape-(${Object.keys(V).join("|")})`]}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":V[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Ct={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Ne=[[/^list-(.+)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":Ct[t]}:{"list-style-type":Ct[t]},{autocomplete:[`list-(${Object.keys(Ct).join("|")})`,`list-(${Object.keys(Ct).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Le=[[/^accent-(.+)$/,C("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":s.bracket.percent(t)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],De=[[/^caret-(.+)$/,C("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":s.bracket.percent(t)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],We=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Be=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],He=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ie=[[/^columns-(.+)$/,([,t])=>({columns:s.bracket.global.number.auto.numberWithUnit(t)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ba=/@media \(min-width: (.+)\)/,Ke=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=_(n.parent||[])[0];if(typeof a=="string"){let i=(o=a.match(ba))==null?void 0:o[1];i&&(r=i)}}return{"max-width":r}},{internal:!0}]],Ge=[[/^(?:(\w+)[:-])?container$/,([,t],e)=>{var n;let r=Object.keys((n=Z(e))!=null?n:{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(a=>`${a}:__container`);return t||o.unshift("__container"),o}]];var qe={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"},Xe=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":qe[t]}),{autocomplete:`(vertical|align|v)-(${Object.keys(qe).join("|")})`}]],Ye=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(t=>[`text-${t}`,{"text-align":t}]);var Ze=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:s.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:s.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Je=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ha=t=>{var e;return(e=s.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Qe=[[/^will-change-(.+)/,([,t])=>({"will-change":ha(t)})]];var ft=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],tr=[[/^(?:border|b)()(?:-(.+))?$/,ct,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ct],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ct],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ct],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ct],[/^(?:border|b)-()(?:width|size)-(.+)$/,J,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-()(?:color-)?(.+)$/,lt,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,lt],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,pt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,pt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ut,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ut],[/^(?:border|b)-(?:style-)?()(.+)$/,Q,{autocomplete:["(border|b)-style",`(border|b)-(${ft.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ft.join("|")})`,`(border|b)-<directions>-style-(${ft.join("|")})`,`(border|b)-style-(${ft.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Q]],xa=t=>([,e],r)=>{var c,l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${t}-color`]:P(i,n)}:t===""?{"--un-border-opacity":(c=i.alpha)!=null?c:1,[`border${t}-color`]:P(i,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:P(i,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ct(t,e){let r=J(t,e),o=Q(["",t[1],"solid"]);if(r&&o)return[...r,...o]}function J([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:s.bracket.cssvar.px(e||"1");if(t in A&&o!=null)return A[t].map(i=>[`border${i}-width`,o])}function lt([,t="",e],{theme:r}){if(t in A&&St(e,r))return Object.assign({},...A[t].map(o=>xa(o)(["",e],r)))}function pt([,t="",e]){let r=s.bracket.percent(e);if(t in A&&r!=null)return A[t].map(o=>[`--un-border${o}-opacity`,r])}function ut([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||s.bracket.cssvar.fraction.rem(e||"1");if(t in Mt&&o!=null)return Mt[t].map(a=>[`border${a}-radius`,o])}function Q([,t="",e]){if(ft.includes(e)&&t in A)return A[t].map(r=>[`border${r}-style`,e])}var er=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:s.bracket.percent.cssvar(t)})]],rr=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":s.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],or=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":s.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Rt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},nr=t=>{var e;return(e=s.properties(t))!=null?e:Rt[t]},ar=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?nr(t):[Rt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:s.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Rt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":s.global(t)||nr(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(Rt)].join("|")})`]}],["transition-none",{transition:"none"}]];var ir=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:s.bracket(t)!=null?s.bracket(t).split(" ").map(e=>{var r;return(r=s.cssvar.fraction(e))!=null?r:e}).join(" "):s.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,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:s.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 sr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},cr=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||s.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=_((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":s.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=_((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:s.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":sr[t]||s.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(sr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||s.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])||s.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])||s.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],lr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=s.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],pr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||s.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],ur=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||s.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":s.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],fr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":s.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":s.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var mr={"":"",x:"column-",y:"row-"},dr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:s.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${mr[t]}gap`]:o,[`${mr[t]}gap`]:o}},gr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,dr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,dr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var B=t=>t.replace("col","column"),Gt=t=>t[0]==="r"?"Row":"Column",ya=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Gt(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 s.bracket.cssvar.auto.rem(r)},br=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${B(t)}`]:(n=(o=r[`grid${Gt(t)}`])==null?void 0:o[e])!=null?n:s.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${B(t)}`]:"1/-1"};let r=s.bracket.number(e);if(r!=null)return{[`grid-${B(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${B(t)}-start`]:(r=s.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${B(t)}-end`]:(r=s.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${B(t)}`]:ya(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":s.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":B(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${B(t)}`]:(n=(o=r[`gridTemplate${Gt(t)}`])==null?void 0:o[e])!=null?n:s.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var zt=["auto","hidden","clip","visible","scroll"],hr=[[/^(?:overflow|of)-(.+)$/,([,t])=>zt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${zt.join("|")})`,`(overflow|of)-(x|y)-(${zt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>zt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var xr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],yr=[["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"}]],vr=[[/^order-(.+)$/,([,t])=>({order:s.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],$r=[["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"}]],kr=[["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 qt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:s.bracket.cssvar.auto.fraction.rem(t)}function Tt([,t,e],r){let o=qt(e,r);if(o!=null&&t in Ot)return Ot[t].map(n=>[n.slice(1),o])}var wr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:qt(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])-(.+)$/,Tt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Tt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Tt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Tt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:qt(e,r)})]],Sr=[["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"}]],Cr=[[/^z([\d.]+)$/,([,t])=>({"z-index":s.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":s.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],Rr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",zr=[["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:s.bracket.cssvar(t)||t})]],Tr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Er=[[/^cursor-(.+)$/,([,t])=>({cursor:s.bracket.cssvar(t)||t})]],jr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Vr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Ar=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Or=[[/^(?: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)"}]],Mr=[[/^content-(.+)$/,([,t])=>{let e=s.bracket.cssvar(t);return{content:e==null?`"${t}"`:e}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],_r=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ur=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Fr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Nr=[["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 Lr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:s.px(t||"1");if(r)return[{[j]:"","--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-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,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:s.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,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:s.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":s.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":s.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Dr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[j]:"","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(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)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":s.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var va={h:"height",w:"width",inline:"inline-size",block:"block-size"};function mt(t,e){return`${t||""}${va[e]}`}function Wr(t,e,r,o){var i;let n=mt(t,e).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(i=r[n])==null?void 0:i[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return s.bracket.cssvar.auto.fraction.rem(o)}var Br=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[mt(t,e)]:Wr(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})=>({[mt(t,e)]:Wr(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{[mt(t,e)]:(n=Pe(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{[mt(t,e)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function $a(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return s.bracket.cssvar.auto.number(t)}var Hr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":$a(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Ir=[[/^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>"}]],Kr=[[/^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 ka={"--un-transform":["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(" ")},Yr={"--un-transform":["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(" ")},tt=z(w({"--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},Yr),{[j]:"",[wt]:""}),Zr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=V[t])!=null?e:s.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=s.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=s.bracket.cssvar(t))!=null?r:t.length>=3?V[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Gr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Gr],[/^(?:transform-)?rotate-()(.+)$/,Xr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Xr],[/^(?:transform-)?skew-([xy])-(.+)$/,wa],[/^(?:transform-)?scale-()(.+)$/,qr],[/^(?:transform-)?scale-([xyz])-(.+)$/,qr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[tt,{transform:"var(--un-transform)"}]],["transform-gpu",ka],["transform-cpu",Yr],["transform-none",{transform:"none"}]];function Gr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:s.bracket.cssvar.fraction.rem(e);if(o!=null)return[tt,[..._t[t].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]]}function qr([,t,e]){let r=s.bracket.cssvar.fraction.percent(e);if(r!=null)return[tt,[..._t[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Xr([,t="",e]){let r=s.bracket.cssvar.degree(e);if(r!=null)return t?[tt,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[tt,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function wa([,t,e]){let r=s.bracket.cssvar.degree(e);if(r!=null)return[tt,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var Sa={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"},Jr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=Sa[t];if(r)return{[r]:s.cssvar(e)}}]],Qr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:s.bracket(`[${e}]`)})]];var to=[[/^(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}}
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="",o=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&&o===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(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),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,o])=>t(o,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,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$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={shortcuts:-1,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")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[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:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.34.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 o of this.config.extractors){let a=await o.extract(s);a==null||a.forEach(l=>n.add(l))}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 i;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 o=this.matchVariants(t,s);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);let l=this.expandShortcut(a.currentSelector,a);if(l){let c=await this.stringifyShortcuts(a.variantMatch,a,l[0],l[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(i=await this.parseUtil(a.variantMatch,a))==null?void 0:i.map(x=>this.stringifyUtil(x,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:o=!0,minify:a=!1}={}){let l=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(p=>l.add(p));let i=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="",o=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&&o===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(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),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,o])=>t(o,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,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$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={shortcuts:-1,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")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[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:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.34.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 o of this.config.extractors){let a=await o.extract(s);a==null||a.forEach(l=>n.add(l))}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 i;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 o=this.matchVariants(t,s);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);let l=this.expandShortcut(a.currentSelector,a);if(l){let c=await this.stringifyShortcuts(a.variantMatch,a,l[0],l[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(i=await this.parseUtil(a.variantMatch,a))==null?void 0:i.map(x=>this.stringifyUtil(x,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:o=!0,minify:a=!1}={}){let l=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(p=>l.add(p));let i=a?"":`
2
2
  `,c=new Set(["default"]),x=new Set,g=new Map;await Promise.all(Array.from(l).map(async p=>{var m;if(x.has(p))return;let h=await this.parseToken(p);if(h!=null){x.add(p);for(let S of h){let b=S[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(S),(m=S[4])!=null&&m.layer&&c.add(S[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)=>{var m,S;return((m=this.config.layers[p])!=null?m:0)-((S=this.config.layers[h])!=null?S: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 S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===h).map(async b=>await b.getCSS(p)))).filter(Boolean).join(i);return[h,S]})))}let R=p=>{if(C[p])return C[p];let h=Array.from(g).sort((m,S)=>{var b,E,U;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((E=this.parentOrders.get(S[0]))!=null?E:0)||((U=m[0])==null?void 0:U.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,E=S.filter(u=>{var y;return(((y=u[4])==null?void 0:y.layer)||"default")===p}).sort((u,y)=>{var v,$,w;return u[0]-y[0]||(((v=u[4])==null?void 0:v.sort)||0)-((($=y[4])==null?void 0:$.sort)||0)||((w=u[1])==null?void 0:w.localeCompare(y[1]||""))||0}).map(u=>{var y;return[u[1]?Mt(u[1],n):u[1],u[2],!!((y=u[4])!=null&&y.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!E.length)return;let U=E.reverse().map(([u,y,v],$)=>{if(!v&&u&&this.config.mergeSelectors)for(let w=$+1;w<b;w++){let A=E[w];if(A&&!A[2]&&A[0]&&A[1]===y)return A[0].push(...u),null}return u?`${[...new Set(u)].join(`,${i}`)}{${y}}`:y}).filter(Boolean).reverse().join(i);return m?`${m}{${i}${U}${i}}`:U}).filter(Boolean).join(i);return s&&(h=[d[p],h].filter(Boolean).join(i)),C[p]=!a&&h?`/* layer: ${p} */${i}${h}`:h},M=(p=f,h)=>p.filter(m=>!(h!=null&&h.includes(m))).map(m=>R(m)||"").filter(Boolean).join(i);return{get css(){return M()},layers:f,getLayers:M,getLayer:R,matched:x}}matchVariants(t,e){let n=new Set,s=[],o=e||t,a=!1,l={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let i of this.config.variants){if(!i.multiPass&&n.has(i))continue;let c=i.match(o,l);if(!!c){typeof c=="string"&&(c={matcher:c}),o=c.matcher,Array.isArray(c.parent)&&this.parentOrders.set(c.parent[0],c.parent[1]),s.unshift(c),n.add(i),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,o,s,n]}applyVariants(t,e=t[4],n=t[1]){let s=[...e].sort((i,c)=>(i.order||0)-(c.order||0)),o=s.reduce((i,c)=>{var x;return((x=c.body)==null?void 0:x.call(c,i))||i},t[2]),a=s.reduce((i,c)=>{var x;return((x=c.selector)==null?void 0:x.call(c,i,o))||i},_t(n)),l={selector:Tt(a),entries:o,parent:s.reduce((i,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||i,void 0),layer:s.reduce((i,c)=>c.layer||i,void 0),sort:s.reduce((i,c)=>c.sort||i,void 0)};for(let i of this.config.postprocess)i(l);return l}constructCustomCSS(t,e,n){e=P(e);let{selector:s,entries:o,parent:a}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),l=`${s}{${L(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,e,n=!1){var g,C;let[s,o,a]=typeof t=="string"?this.matchVariants(t):t,l=this.config.details?f=>{var d;e.rules=(d=e.rules)!=null?d:[],e.rules.push(f)}:H,i=this.config.rulesStaticMap[o];if(i&&i[1]&&(n||!((g=i[2])!=null&&g.internal)))return l(i[3]),[[i[0],s,P(i[1]),i[2],a]];e.variantHandlers=a;let{rulesDynamic:c,rulesSize:x}=this.config;for(let f=x-1;f>=0;f--){let d=c[f];if(!d||((C=d[2])==null?void 0:C.internal)&&!n)continue;let[R,M,p]=d,h=o.match(R);if(!h)continue;let m=await M(h,e);if(!m)continue;if(l(d),typeof m=="string")return[[f,m,p]];let S=Y(m).filter(b=>b.length);if(S.length)return S.map(b=>[f,s,b,p,a])}}stringifyUtil(t,e){var f;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:o,layer:a,sort:l}=this.applyVariants(t),i=L(s);if(!i)return;let d=(f=t[3])!=null?f:{},{layer:c,sort:x}=d,g=X(d,["layer","sort"]),C=O(T({},g),{layer:a!=null?a:c,sort:l!=null?l:x});return[t[0],n,i,o,C,this.config.details?e:void 0]}expandShortcut(t,e,n=3){if(n===0)return;let s=this.config.details?l=>{var i;e.shortcuts=(i=e.shortcuts)!=null?i:[],e.shortcuts.push(l)}:H,o,a;for(let l of this.config.shortcuts)if(et(l)){if(l[0]===t){o=o||l[2],a=l[1],s(l);break}}else{let i=t.match(l[0]);if(i&&(a=l[1](i,e)),a){o=o||l[2],s(l);break}}if(typeof a=="string"&&(a=ot(a).split(/\s+/g)),!!a)return[a.flatMap(l=>{var i;return((i=this.expandShortcut(l,e,n-1))==null?void 0:i[0])||[l]}).filter(l=>l!==""),o]}async stringifyShortcuts(t,e,n,s={layer:this.config.shortcutsLayer}){var x;let o=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]),[l,,i]=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:R}=this.applyVariants(g,[...g[4],...i],l);o.getFallback(C,d,[[],g[0]])[0].push([f,!!((x=g[3])!=null&&x.noMerge),R!=null?R:0])}return c.concat(o.map(([g,C],f,d)=>{let R=(p,h,m)=>{let S=Math.max(...m.map(E=>E[1])),b=m.map(E=>E[0]);return(p?[b.flat(1)]:b).map(E=>{let U=L(E);if(U)return[C,f,U,d,O(T({},s),{noMerge:h,sort:S}),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])=>[...R(!1,h,p.filter(([m])=>m.some(S=>S[0]===G))),...R(!0,h,p.filter(([m])=>m.every(S=>S[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 o=Ot(n);if(o!=="filter"&&o in r)return t[n]=gt(o);o=ht(o);for(let a=0;a<mt.length;a++){let l=`${mt[a]}${o}`;if(l in r)return t[n]=gt(ht(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function W(r={}){var E,U;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 u=n.postprocess;u||(u=[]),Array.isArray(u)||(u=[u]),u.unshift(yt(document.createElement("div").style)),n.postprocess=u}(E=e==null?void 0:e.configResolved)==null||E.call(e,t,n);let s,o=!0,a,l=pt(t,n),i=new Set,c,x=[],g=()=>new Promise(u=>{x.push(u),c!=null&&clearTimeout(c),c=setTimeout(()=>f().then(()=>{let y=x;x=[],y.forEach(v=>v())}),0)});function C(u=document.body){if(u.nodeType!==1)return;let y=u;y.hasAttribute("un-cloak")&&y.removeAttribute("un-cloak"),y.querySelectorAll("[un-cloak]").forEach(v=>{v.removeAttribute("un-cloak")})}async function f(){let u=await l.generate(i);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=u.css,i=u.matched}async function d(u){let y=i.size;await l.applyExtractors(u,void 0,i),y!==i.size&&await g()}async function R(){let u=document.body&&document.body.outerHTML;u&&(await d(u),C())}let M=new MutationObserver(u=>{o||u.forEach(async y=>{if(y.target.nodeType!==1)return;let v=y.target;if(v!==s)if(y.type==="childList")y.addedNodes.forEach(async $=>{if($.nodeType!==1)return;let w=$;a&&!a(w)||(await d(w.outerHTML),C(w))});else{if(a&&!a(v))return;if(y.attributeName!=="un-cloak"){let $=Array.from(v.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),w=`<${v.tagName.toLowerCase()} ${$}>`;await d(w)}v.hasAttribute("un-cloak")&&v.removeAttribute("un-cloak")}})}),p=!1;function h(){if(p)return;let u=document.documentElement||document.body;!u||(M.observe(u,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function m(){R(),h()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",m):m()}let b=window.__unocss_runtime=window.__unocss_runtime={version:l.version,uno:l,async extract(u){typeof u!="string"&&(u.forEach(y=>i.add(y)),u=""),await d(u)},extractAll:R,inspect(u){a=u},toggleObserver(u){u===void 0?o=!o:o=!!u,!p&&!o&&S()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,b))!==!1&&(o=!1,S())}W();})();