@unocss/runtime 66.3.1-beta.1 → 66.3.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
- "use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Ht="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Ht]:-100,[Yf]:-10,[Xe]:0};var qt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(qt)}var Yt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Xt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Zt=ye;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function Jt(e){return e!=null}function Bo(){}var Qt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},er=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function tr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return tr(n)&&tr(o)&&Object.keys(o).forEach(s=>{tr(n[s])&&tr(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return M(e[0])}function No(e){return M(e[0])}var rr={};function tu(e=["-",":"]){let t=e.join("|");return rr[t]||(rr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),rr[t].lastIndex=0,rr[t]}function ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let V=h+k.index,y=a.get(V)?.items;y?a.delete(V):y=[{offset:V,length:k[0].length,className:k[0]}];for(let v of y)v.className=v.className==="~"?u:v.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(v)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Yo(...t)),exclude:ne(Yo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(b,T)=>b.name===T.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(b=>b.layers));function c(b){return ne(i.flatMap(T=>S(T[b]||[])))}let l=c("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Yt),u&&!l.includes(u)&&l.unshift(u),l.sort((b,T)=>(b.order||0)-(T.order||0));let d=c("rules"),g={},m=d.length,h=d.filter(b=>Do(b)?(S(b[2]?.prefix||"").forEach(w=>{g[w+b[0]]=b}),!1):!0).reverse(),x={templates:ne(i.flatMap(b=>S(b.autocomplete?.templates))),extractors:i.flatMap(b=>S(b.autocomplete?.extractors)).sort((b,T)=>(b.order||0)-(T.order||0)),shorthands:su(i.map(b=>b.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let V=c("content"),y=ou(V),v={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(b=>b.theme)),rules:d,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((b,T)=>(b.order||0)-(T.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(b,T)=>b.name===T.name)},E=c("extendTheme");for(let b of E)v.theme=b(v.theme,v)||v.theme;for(let b of i)b?.configResolved?.(v);return v}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.3.1-beta.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Xt(s)&&Xt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Jt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(w):C).forEach(C=>{let A=C.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
1
+ "use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Ht="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Ht]:-100,[Yf]:-10,[Xe]:0};var qt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(qt)}var Yt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Xt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Zt=ye;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function Jt(e){return e!=null}function Bo(){}var Qt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},er=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function tr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return tr(n)&&tr(o)&&Object.keys(o).forEach(s=>{tr(n[s])&&tr(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return M(e[0])}function No(e){return M(e[0])}var rr={};function tu(e=["-",":"]){let t=e.join("|");return rr[t]||(rr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),rr[t].lastIndex=0,rr[t]}function ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let V=h+k.index,y=a.get(V)?.items;y?a.delete(V):y=[{offset:V,length:k[0].length,className:k[0]}];for(let v of y)v.className=v.className==="~"?u:v.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(v)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Yo(...t)),exclude:ne(Yo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(b,T)=>b.name===T.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(b=>b.layers));function c(b){return ne(i.flatMap(T=>S(T[b]||[])))}let l=c("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Yt),u&&!l.includes(u)&&l.unshift(u),l.sort((b,T)=>(b.order||0)-(T.order||0));let d=c("rules"),g={},m=d.length,h=d.filter(b=>Do(b)?(S(b[2]?.prefix||"").forEach(w=>{g[w+b[0]]=b}),!1):!0).reverse(),x={templates:ne(i.flatMap(b=>S(b.autocomplete?.templates))),extractors:i.flatMap(b=>S(b.autocomplete?.extractors)).sort((b,T)=>(b.order||0)-(T.order||0)),shorthands:su(i.map(b=>b.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let V=c("content"),y=ou(V),v={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(b=>b.theme)),rules:d,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((b,T)=>(b.order||0)-(T.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(b,T)=>b.name===T.name)},E=c("extendTheme");for(let b of E)v.theme=b(v.theme,v)||v.theme;for(let b of i)b?.configResolved?.(v);return v}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.3.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Xt(s)&&Xt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Jt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(w):C).forEach(C=>{let A=C.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
2
2
  `,d=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async w=>{if(g.has(w))return;let C=await this.parseToken(w);if(C!=null){g instanceof Map?g.set(w,{data:C,count:Xt(l)?l.getCount(w):-1}):g.add(w);for(let A of C){let J=A[3]||"",Q=A[4]?.layer;m.has(J)||m.set(J,[]),m.get(J).push(A),Q&&d.add(Q)}}});await Promise.all(x),await(async()=>{if(!i)return;let w={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:A=Ht})=>{d.add(A),C.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(C).map(async A=>{let Q=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||Ht)===A).map(async ce=>await ce.getCSS(w)))).filter(Boolean).join(u);return[A,Q]})))})();let k=this.config.sortLayers(Array.from(d).sort((w,C)=>(this.config.layers[w]??0)-(this.config.layers[C]??0)||w.localeCompare(C))),V={},y=this.config.outputToCssLayers,v=w=>{let C=w;return typeof y=="object"&&(C=y.cssLayerName?.(w)),C===null?null:C??w},E=(w=Xe)=>{if(V[w])return V[w];let C=Array.from(m).sort((Q,ce)=>(this.parentOrders.get(Q[0])??0)-(this.parentOrders.get(ce[0])??0)||Q[0]?.localeCompare(ce[0]||"")||0).map(([Q,ce])=>{let R=ce.length,O=ce.filter(I=>(I[4]?.layer||Xe)===w).sort((I,le)=>I[0]-le[0]||(I[4]?.sort||0)-(le[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(le[5]?.currentSelector??"")||I[1]?.localeCompare(le[1]||"")||I[2]?.localeCompare(le[2]||"")||0).map(([,I,le,,Gt,,vn])=>[[[(I&&fu(I,o))??"",Gt?.sort??0]],le,!!(vn??Gt?.noMerge)]);if(!O.length)return;let B=O.reverse().map(([I,le,Gt],vn)=>{if(!Gt&&this.config.mergeSelectors)for(let Ce=vn+1;Ce<R;Ce++){let de=O[Ce];if(de&&!de[2]&&(I&&de[0]||I==null&&de[0]==null)&&de[1]===le)return I&&de[0]&&de[0].push(...I),null}let $n=I?ne(I.sort((Ce,de)=>Ce[1]-de[1]||Ce[0]?.localeCompare(de[0]||"")||0).map(Ce=>Ce[0]).filter(Boolean)):[];return $n.length?`${$n.join(`,${u}`)}{${le}}`:le}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!Q)return D;let Z=Q.split(" $$ ");return`${Z.join("{")}{${u}${D}${u}${"}".repeat(Z.length)}`}).filter(Boolean).join(u);i&&(C=[h[w],C].filter(Boolean).join(u));let A;y&&C&&(A=v(w),A!==null&&(C=`@layer ${A}{${u}${C}${u}}`));let J=a?"":`/* layer: ${w}${A&&A!==w?`, alias: ${A}`:""} */${u}`;return V[w]=C?J+C:""},b=(w=k,C)=>{let A=w.filter(J=>!C?.includes(J));return[y&&A.length>0?`@layer ${A.map(v).filter(Jt).join(", ")};`:void 0,...A.map(J=>E(J)||"")].filter(Boolean).join(u)};return{get css(){return b()},layers:k,matched:g,getLayers:b,getLayer:E,setLayer:async(w,C)=>{let A=await C(E(w));return V[w]=A,A}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(M(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=d.map(m=>{let h=m.matcher??l,x=[m,...a],k=new Set(c);return k.add(u),[i[0],h,x,k]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,u)=>(l.order||0)-(u.order||0)).reduceRight((l,u)=>d=>{let g=u.body?.(d.entries)||d.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(d.selector,g);return(u.handle??pu)({...d,entries:g,selector:h||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:u.layer||d.layer,sort:u.sort||d.sort},l)},l=>l)({prefix:"",selector:uu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=et(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,d);for(let m of this.config.rulesDynamic){let[h,x,k]=m;if(k?.internal&&!n)continue;let V=l;if(k?.prefix){let b=S(k.prefix);if(o){let T=S(o);if(!b.some(w=>T.includes(w)))continue}else{let T=b.find(w=>l.startsWith(w));if(T==null)continue;V=l.slice(T.length)}}let y=V.match(h);if(!y)continue;let v=await x(y,d);if(!v)continue;if(typeof v!="string")if(Symbol.asyncIterator in v){let b=[];for await(let T of v)T&&b.push(T);v=b}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(Jt));let E=this.resolveCSSResult(c,v,m,d);if(E)return E}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Io(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=o.generator.config.rules.indexOf(n),a=n[2];return i.map(c=>{if(M(c))return[s,c,a];let l=o.variantHandlers,u=a;for(let d of c)d[0]===ve.variants?typeof d[1]=="function"?l=d[1](l)||l:l=[...S(d[1]),...l]:d[0]===ve.parent?l=[{parent:d[1]},...l]:d[0]===ve.selector?l=[{selector:d[1]},...l]:d[0]===ve.layer?l=[{layer:d[1]},...l]:d[0]===ve.sort?u={...u,sort:d[1]}:d[0]===ve.noMerge&&(u={...u,noMerge:d[1]});return[s,t,c,u,l]})}};stringifyUtil(t,r){if(!t)return;if(kn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:u,sort:d,...g}=t[3]??{},m={...g,layer:s??u,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Bo,i,s,a,c;for(let l of this.config.shortcuts){let u=t;if(l[2]?.prefix){let g=S(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;u=t.slice(g.length)}if(No(l)){if(l[0]===u){i=i||l[2],s=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(S(s).filter(M).map(l=>Ko(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!M(l)).map(l=>({handles:[],value:l}))),!s){let l=M(t)?await this.matchVariants(t):[t];for(let u of l){let[d,g,m]=u;if(d!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(M).map(x=>d.replace(g,x)),c=h[0].filter(x=>!M(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(S(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new er,s=(await Promise.all(ne(n).map(async u=>{let d=M(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(u.value),void 0,u.handles]];return!d&&this.config.warn&&Ho(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[a,,c]=t,l=[];for(let u of s){if(kn(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:d,entries:g,parent:m,sort:h,noMerge:x,layer:k}=this.applyVariants(u,[...u[4],...c],a);i.getFallback(k??o.layer,new Qt).getFallback(d,m,[[],u[0]])[0].push([g,!!(x??u[3]?.noMerge),h??0])}return l.concat(i.flatMap((u,d)=>u.map(([g,m],h,x)=>{let k=(y,v,E)=>{let b=Math.max(...E.map(w=>w[1])),T=E.map(w=>w[0]);return(y?[T.flat(1)]:T).map(w=>{let C=Le(w);if(C)return[m,h,C,x,{...o,noMerge:v,sort:b,layer:d},r,void 0]})};return[[g.filter(([,y])=>y).map(([y,,v])=>[y,v]),!0],[g.filter(([,y])=>!y).map(([y,,v])=>[y,v]),!1]].map(([y,v])=>[...k(!1,v,y.filter(([E])=>E.some(b=>b[0]===ve.shortcutsNoMerge))),...k(!0,v,y.filter(([E])=>E.every(b=>b[0]!==ve.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ei(e,t){return await Rn.create(e,t)}var ti=/\s\$\$\s+/g;function lu(e){return ti.test(e)}function fu(e,t){return lu(e)?e.replace(ti,t?` ${t} `:" "):t?`${t} ${e}`:e}var Qo=/^\[(.+?)(~?=)"(.*)"\]$/;function uu(e){return Qo.test(e)?e.replace(Qo,(t,r,n,o)=>`[${Zt(r)}${n}"${Zt(o)}"]`):`.${Zt(e)}`}function pu(e,t){return t(e)}var En=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ri(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Wo(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=a[2],[,u="",d=l]=l.match(En)||[];if(d==="~"||n&&d==="true"||!d)return`${u}${c}`;if(o==null){let g=s?.config?.separators?.join("|");g?o=new RegExp(`^(.*\\](?:${g}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,g,m]=l.match(o)||[];if(m)return`${g}${u}${c}-${m}`}if(u&&d.match(/^[\d.]+$/)){let g=u.split(/([^:]*:)/g).filter(Boolean),m=g.pop()+d,h=g.join("");return[{matcher:`${u}${c}-${d}`},{matcher:`${h}${c}-${m}`}]}return`${u}${c}-${d}`}}}var du=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,mu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ni=/[\s'"`;>]+/;function oi(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(du),o,i=0;for(let y of n){let[,v,E]=y,b=y.index+v.length;if(r>b&&r<=b+E.length){i=b,o=E;break}}if(!o)return null;let s=o.matchAll(mu),a=0,c,l;for(let y of s){let[v,E,b]=y,T=i+y.index;if(r>T&&r<=T+v.length){a=T,c=E,l=b?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let u=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let d=u?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(y){let v=u?e.prefix.length:0;return{start:a+v,end:a+c.length,replacement:y}}};let g=a+c.length+2,m=ni.exec(l),h=0,x;for(;m;){let[y]=m;if(r>g+h&&r<=g+h+m.index){x=l.slice(h,h+m.index);break}h+=m.index+y.length,m=ni.exec(l.slice(h))}x===void 0&&(x=l.slice(h));let[,k="",V]=x.match(En)||[];return{extracted:`${k}${d}-${V}`,transformSuggestions(y){return y.filter(v=>v.startsWith(`${k}${d}-`)).map(v=>k+v.slice(k.length+d.length+1))},resolveReplacement(y){return{start:h+g,end:h+g+x.length,replacement:k+y.slice(k.length+d.length+1)}}}}}}var gu=["v-bind:",":"],ii=/[\s'"`;]+/g,Tn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,hu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,jn=["placeholder","fill","opacity","stroke-opacity"];function si(e){let t=e?.ignoreAttributes??jn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Tn)).flatMap(i=>Array.from((i[1]||"").matchAll(hu))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of gu)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(Je(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(ii).filter(Je):Tn.test(a)?(Tn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(ii).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var bu=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??jn;let t=[ri(e)],r=[si(e)],n=[oi(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},ai=bu;function xu(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ci(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${xu(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function li(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var yu=/\/\/#\s*sourceMappingURL=.*\n?/g;function fi(e){return e.includes("sourceMappingURL=")?e.replace(yu,""):e}var vu=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,$u=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,wu=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ku(e){let t=[];for(let o of e.matchAll($u))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(vu))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ci(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(qt).forEach(o=>{o.includes(n)&&(o=li(o,r)),Je(o)&&!wu.test(o)&&t.push(o)}),t}function ui(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ku(fi(e))}}}function pi(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ee(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=fe(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var zn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var di=["%alpha","<alpha-value>"],Su=new RegExp(di.map(e=>Re(e)).join("|"),"g");function q(e=""){let t=Cu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(zn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&di.includes(t)?1:t}function z(e,t){if(typeof e=="string")return e.replace(Su,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,zn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Cu(e){if(!e)return;let t=Ru(e);if(t!=null||(t=Eu(e),t!=null)||(t=Tu(e),t!=null)||(t=zu(e),t!=null)||(t=Au(e),t!=null))return t}function Ru(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Eu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Tu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var ju=new RegExp(`^(${zn.join("|")})\\((.+)\\)$`,"i");function zu(e){let t=e.match(ju);if(!t)return;let[,r,n]=t,o=mi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Au(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function mi(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xi=new Uint8Array(64),Ou=new Uint8Array(128);for(let e=0;e<gi.length;e++){let t=gi.charCodeAt(e);xi[e]=t,Ou[t]=e}function tt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(xi[o])}while(n>0);return t}var hi=1024*16,bi=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},An=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(hi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===hi&&(this.out+=bi.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+bi.decode(t.subarray(0,n)):r}};function yi(e){let t=new An,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(44),c=tt(t,u[0],c),u.length!==1&&(r=tt(t,u[1],r),n=tt(t,u[2],n),o=tt(t,u[3],o),u.length!==4&&(i=tt(t,u[4],i)))}}return t.flush()}var nr=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},or=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Pu(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Vu=Pu(),On=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yi(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Vu(this.toString())}};function Mu(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Fu(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var _u=Object.prototype.toString;function Lu(e){return _u.call(e)==="[object Object]"}function vi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Wu=/\w/,Pn=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var G="default",W="preflights",ke="shortcuts",_e="imports",fe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(pe)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function De(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=De;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function ge(){}var Q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function N(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function he(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>N(e)):[n]:[N(n)]}function Fe(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function te(n){return n==null?"":Fe(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function ee(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=ae(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function ye(n){return P(n[0])}function Se(n){return P(n[0])}var ne={};function Ie(n=["-",":"]){let e=n.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function Ke(n,e=["-",":"],t=5){let r=Ie(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(i,l,c,d,y)=>{if(!e.includes(c))return i;s=!0,u.add(l+c);let R=y+l.length+c.length+1,v={length:i.length,items:[]};f.set(y,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let S of x)S.className=S.className==="~"?l:S.className.replace(/^(!?)(.*)/,`$1${l}${c}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let a;if(typeof n=="string"){a="";let i=0;for(let[l,c]of f)a+=n.slice(i,l),a+=c.items.map(d=>d.className).join(" "),i=l+c.length;a+=n.slice(i)}else{a=n;for(let[i,l]of f)a.overwrite(i,i+l.length,l.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return a.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var be=new Set;function Ce(n){be.has(n)||(console.warn("[unocss]",n),be.add(n))}function Ee(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Te="_uno_resolved";async function Ge(n){let e=typeof n=="function"?await n():await n;if(Te in e)return e;e={...e},Object.defineProperty(e,Te,{value:!0,enumerable:!1});let t=e.shortcuts?Ee(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=U(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function ve(n){let e=await Ge(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(ve))).flat();return[e,...t]}function He(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[],u=[];for(let a of n){if(a.pipeline===!1){r=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&t.push(a.pipeline.exclude);a.filesystem&&s.push(a.filesystem),a.inline&&o.push(a.inline),a.plain&&u.push(a.plain)}let f={pipeline:r?!1:{include:_(Re(...e)),exclude:_(Re(...t))}};return s.length&&(f.filesystem=_(s.flat())),o.length&&(f.inline=_(o.flat())),u.length&&(f.plain=_(u.flat())),f}async function le(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,T)=>p.name===T.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},fe,...o.map(p=>p.layers));function a(p){return _(o.flatMap(T=>U(T[p]||[])))}let i=a("extractors"),l=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Y),l&&!i.includes(l)&&i.unshift(l),i.sort((p,T)=>(p.order||0)-(T.order||0));let c=a("rules"),d={},y=c.length,R=c.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:_(o.flatMap(p=>U(p.autocomplete?.templates))),extractors:o.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,T)=>(p.order||0)-(T.order||0)),shorthands:Ne(o.map(p=>p.autocomplete?.shorthands||{}))},E=a("separators");E.length||(E=[":","-"]);let $=a("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:a("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:c,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:v,variants:a("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(a("shortcuts")).reverse(),extractors:i,safelist:a("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(a("transformers"),(p,T)=>p.name===T.name)},V=a("extendTheme");for(let p of V)S.theme=p(S.theme,S)||S.theme;for(let p of o)p?.configResolved?.(S);return S}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>ae(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.3.1-beta.1";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,i)=>i(a)??a,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async a=>{let i=this.makeContext(e,[t||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let l=await this.expandShortcut(i.currentSelector,i);return l?await this.stringifyShortcuts(i.variantMatch,i,l[0],l[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(a=>u(a)))).flat().filter(a=>!!a);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:a=!1}=t,i=P(e)?await this.applyExtractors(e,r,a?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let b=g.trim();b&&!i.has(b)&&i.add(b)})}let l=f?"":`
1
+ "use strict";(()=>{var G="default",W="preflights",ke="shortcuts",_e="imports",fe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(pe)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function De(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=De;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function ge(){}var Q=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,r])=>Array.from(r.entries()).map(([s,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function N(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function he(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>N(e)):[n]:[N(n)]}function Fe(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function te(n){return n==null?"":Fe(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function ee(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=ae(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function B(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:B(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?B(r):r;return t}return n}function ye(n){return P(n[0])}function Se(n){return P(n[0])}var ne={};function Ie(n=["-",":"]){let e=n.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function Ke(n,e=["-",":"],t=5){let r=Ie(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(i,l,c,d,y)=>{if(!e.includes(c))return i;s=!0,u.add(l+c);let R=y+l.length+c.length+1,v={length:i.length,items:[]};f.set(y,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let S of x)S.className=S.className==="~"?l:S.className.replace(/^(!?)(.*)/,`$1${l}${c}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let a;if(typeof n=="string"){a="";let i=0;for(let[l,c]of f)a+=n.slice(i,l),a+=c.items.map(d=>d.className).join(" "),i=l+c.length;a+=n.slice(i)}else{a=n;for(let[i,l]of f)a.overwrite(i,i+l.length,l.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return a.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ke(n,e,t);return typeof n=="string"?r.expanded:n}var be=new Set;function Ce(n){be.has(n)||(console.warn("[unocss]",n),be.add(n))}function Ee(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Te="_uno_resolved";async function Ge(n){let e=typeof n=="function"?await n():await n;if(Te in e)return e;e={...e},Object.defineProperty(e,Te,{value:!0,enumerable:!1});let t=e.shortcuts?Ee(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=U(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function ve(n){let e=await Ge(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(ve))).flat();return[e,...t]}function He(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[],u=[];for(let a of n){if(a.pipeline===!1){r=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&t.push(a.pipeline.exclude);a.filesystem&&s.push(a.filesystem),a.inline&&o.push(a.inline),a.plain&&u.push(a.plain)}let f={pipeline:r?!1:{include:_(Re(...e)),exclude:_(Re(...t))}};return s.length&&(f.filesystem=_(s.flat())),o.length&&(f.inline=_(o.flat())),u.length&&(f.plain=_(u.flat())),f}async function le(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,T)=>p.name===T.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},fe,...o.map(p=>p.layers));function a(p){return _(o.flatMap(T=>U(T[p]||[])))}let i=a("extractors"),l=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=Y),l&&!i.includes(l)&&i.unshift(l),i.sort((p,T)=>(p.order||0)-(T.order||0));let c=a("rules"),d={},y=c.length,R=c.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:_(o.flatMap(p=>U(p.autocomplete?.templates))),extractors:o.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,T)=>(p.order||0)-(T.order||0)),shorthands:Ne(o.map(p=>p.autocomplete?.shorthands||{}))},E=a("separators");E.length||(E=[":","-"]);let $=a("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:a("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:c,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:v,variants:a("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(a("shortcuts")).reverse(),extractors:i,safelist:a("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(a("transformers"),(p,T)=>p.name===T.name)},V=a("extendTheme");for(let p of V)S.theme=p(S.theme,S)||S.theme;for(let p of o)p?.configResolved?.(S);return S}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>ae(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.3.1";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,i)=>i(a)??a,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async a=>{let i=this.makeContext(e,[t||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let l=await this.expandShortcut(i.currentSelector,i);return l?await this.stringifyShortcuts(i.variantMatch,i,l[0],l[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(a=>u(a)))).flat().filter(a=>!!a);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:a=!1}=t,i=P(e)?await this.applyExtractors(e,r,a?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let b=g.trim();b&&!i.has(b)&&i.add(b)})}let l=f?"":`
2
2
  `,c=new Set([G]),d=a?new Map:new Set,y=new Map,R={},v=Array.from(i).map(async m=>{if(d.has(m))return;let g=await this.parseToken(m);if(g!=null){d instanceof Map?d.set(m,{data:g,count:q(i)?i.getCount(m):-1}):d.add(m);for(let b of g){let j=b[3]||"",k=b[4]?.layer;y.has(j)||y.set(j,[]),y.get(j).push(b),k&&c.add(k)}}});await Promise.all(v),await(async()=>{if(!o)return;let m={generator:this,theme:this.config.theme},g=new Set([]);this.config.preflights.forEach(({layer:b=W})=>{c.add(b),g.add(b)}),R=Object.fromEntries(await Promise.all(Array.from(g).map(async b=>{let k=(await Promise.all(this.config.preflights.filter(L=>(L.layer||W)===b).map(async L=>await L.getCSS(m)))).filter(Boolean).join(l);return[b,k]})))})();let E=this.config.sortLayers(Array.from(c).sort((m,g)=>(this.config.layers[m]??0)-(this.config.layers[g]??0)||m.localeCompare(g))),$={},x=this.config.outputToCssLayers,S=m=>{let g=m;return typeof x=="object"&&(g=x.cssLayerName?.(m)),g===null?null:g??m},V=(m=G)=>{if($[m])return $[m];let g=Array.from(y).sort((k,L)=>(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(L[0])??0)||k[0]?.localeCompare(L[0]||"")||0).map(([k,L])=>{let h=L.length,C=L.filter(A=>(A[4]?.layer||G)===m).sort((A,D)=>A[0]-D[0]||(A[4]?.sort||0)-(D[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||A[1]?.localeCompare(D[1]||"")||A[2]?.localeCompare(D[2]||"")||0).map(([,A,D,,z,,re])=>[[[(A&&qe(A,s))??"",z?.sort??0]],D,!!(re??z?.noMerge)]);if(!C.length)return;let w=C.reverse().map(([A,D,z],re)=>{if(!z&&this.config.mergeSelectors)for(let K=re+1;K<h;K++){let F=C[K];if(F&&!F[2]&&(A&&F[0]||A==null&&F[0]==null)&&F[1]===D)return A&&F[0]&&F[0].push(...A),null}let se=A?_(A.sort((K,F)=>K[1]-F[1]||K[0]?.localeCompare(F[0]||"")||0).map(K=>K[0]).filter(Boolean)):[];return se.length?`${se.join(`,${l}`)}{${D}}`:D}).filter(Boolean),M=Array.from(new Set(w)).reverse().join(l);if(!k)return M;let O=k.split(" $$ ");return`${O.join("{")}{${l}${M}${l}${"}".repeat(O.length)}`}).filter(Boolean).join(l);o&&(g=[R[m],g].filter(Boolean).join(l));let b;x&&g&&(b=S(m),b!==null&&(g=`@layer ${b}{${l}${g}${l}}`));let j=f?"":`/* layer: ${m}${b&&b!==m?`, alias: ${b}`:""} */${l}`;return $[m]=g?j+g:""},p=(m=E,g)=>{let b=m.filter(j=>!g?.includes(j));return[x&&b.length>0?`@layer ${b.map(S).filter(J).join(", ")};`:void 0,...b.map(j=>V(j)||"")].filter(Boolean).join(l)};return{get css(){return p()},layers:E,matched:d,getLayers:p,getLayer:V,setLayer:async(m,g)=>{let b=await g(V(m));return $[m]=b,b}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async o=>{let u=!0,[,,f,a]=o;for(;u;){u=!1;let i=o[1];for(let l of this.config.variants){if(!l.multiPass&&a.has(l))continue;let c=await l.match(i,r);if(c){if(P(c)){if(c===i)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(l.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=c.map(y=>{let R=y.matcher??i,v=[y,...f],E=new Set(a);return E.add(l),[o[0],R,v,E]});return(await Promise.all(d.map(y=>s(y)))).flat()}}o[1]=c.matcher??i,f.unshift(c),a.add(l),u=!0;break}}if(!u)break;if(f.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let o=t.slice().sort((i,l)=>(i.order||0)-(l.order||0)).reduceRight((i,l)=>c=>{let d=l.body?.(c.entries)||c.entries,y=Array.isArray(l.parent)?l.parent:[l.parent,void 0],R=l.selector?.(c.selector,d);return(l.handle??Je)({...c,entries:d,selector:R||c.selector,parent:y[0]||c.parent,parentOrder:y[1]||c.parentOrder,layer:l.layer||c.layer,sort:l.sort||c.sort},i)},i=>i)({prefix:"",selector:Ze(r),pseudo:"",entries:e[2]}),{parent:u,parentOrder:f}=o;u!=null&&f!=null&&this.parentOrders.set(u,f);let a={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:u,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let i of this.config.postprocess)i(a);return a}constructCustomCSS(e,t,r){let s=N(t);if(P(s))return s;let{selector:o,entries:u,parent:f}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),a=`${o}{${te(u)}}`;return f?`${f}{${a}}`:a}async parseUtil(e,t,r=!1,s){let o=P(e)?await this.matchVariants(e):[e],u=async([a,i,l])=>{this.config.details&&(t.rules=t.rules??[]);let c={...t,variantHandlers:l},d=this.config.rulesStaticMap[i];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(a,d[1],d,c);for(let y of this.config.rulesDynamic){let[R,v,E]=y;if(E?.internal&&!r)continue;let $=i;if(E?.prefix){let p=U(E.prefix);if(s){let T=U(s);if(!p.some(m=>T.includes(m)))continue}else{let T=p.find(m=>i.startsWith(m));if(T==null)continue;$=i.slice(T.length)}}let x=$.match(R);if(!x)continue;let S=await v(x,c);if(!S)continue;if(typeof S!="string")if(Symbol.asyncIterator in S){let p=[];for await(let T of S)T&&p.push(T);S=p}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(J));let V=this.resolveCSSResult(a,S,y,c);if(V)return V}},f=(await Promise.all(o.map(a=>u(a)))).flat().filter(a=>!!a);if(f.length)return f}resolveCSSResult=(e,t,r,s)=>{let o=he(t).filter(u=>u.length);if(o.length){this.config.details&&s.rules.push(r),s.generator.activatedRules.add(r);let u=s.generator.config.rules.indexOf(r),f=r[2];return o.map(a=>{if(P(a))return[u,a,f];let i=s.variantHandlers,l=f;for(let c of a)c[0]===I.variants?typeof c[1]=="function"?i=c[1](i)||i:i=[...U(c[1]),...i]:c[0]===I.parent?i=[{parent:c[1]},...i]:c[0]===I.selector?i=[{selector:c[1]},...i]:c[0]===I.layer?i=[{layer:c[1]},...i]:c[0]===I.sort?l={...l,sort:c[1]}:c[0]===I.noMerge&&(l={...l,noMerge:c[1]});return[u,e,a,l,i]})}};stringifyUtil(e,t){if(!e)return;if(oe(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0];let{selector:r,entries:s,parent:o,layer:u,sort:f,noMerge:a}=this.applyVariants(e),i=te(s);if(!i)return;let{layer:l,sort:c,...d}=e[3]??{},y={...d,layer:u??l,sort:f??c};return[e[0],r,i,o,y,this.config.details?t:void 0,a]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?i=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(i)}:ge,o,u,f,a;for(let i of this.config.shortcuts){let l=e;if(i[2]?.prefix){let d=U(i[2].prefix).find(y=>e.startsWith(y));if(d==null)continue;l=e.slice(d.length)}if(Se(i)){if(i[0]===l){o=o||i[2],u=i[1],s(i);break}}else{let c=l.match(i[0]);if(c&&(u=i[1](c,t)),u){o=o||i[2],s(i);break}}}if(u&&(f=_(U(u).filter(P).map(i=>xe(i.trim()).split(/\s+/g)).flat()),a=U(u).filter(i=>!P(i)).map(i=>({handles:[],value:i}))),!u){let i=P(e)?await this.matchVariants(e):[e];for(let l of i){let[c,d,y]=l;if(c!==d){let R=await this.expandShortcut(d,t,r-1);R&&(f=R[0].filter(P).map(v=>c.replace(d,v)),a=R[0].filter(v=>!P(v)).map(v=>({handles:[...v.handles,...y],value:v.value})))}}}if(!(!f?.length&&!a?.length))return[[await Promise.all(U(f).map(async i=>(await this.expandShortcut(i,t,r-1))?.[0]||[i])),a].flat(2).filter(i=>!!i),o]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let o=new X,u=(await Promise.all(_(r).map(async l=>{let c=P(l)?await this.parseUtil(l,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(l.value),void 0,l.handles]];return!c&&this.config.warn&&Ce(`unmatched utility "${l}" in shortcut "${e[1]}"`),c||[]}))).flat(1).filter(Boolean).sort((l,c)=>l[0]-c[0]),[f,,a]=e,i=[];for(let l of u){if(oe(l)){i.push([l[0],void 0,l[1],void 0,l[2],t,void 0]);continue}let{selector:c,entries:d,parent:y,sort:R,noMerge:v,layer:E}=this.applyVariants(l,[...l[4],...a],f);o.getFallback(E??s.layer,new Q).getFallback(c,y,[[],l[0]])[0].push([d,!!(v??l[3]?.noMerge),R??0])}return i.concat(o.flatMap((l,c)=>l.map(([d,y],R,v)=>{let E=(x,S,V)=>{let p=Math.max(...V.map(m=>m[1])),T=V.map(m=>m[0]);return(x?[T.flat(1)]:T).map(m=>{let g=te(m);if(g)return[y,R,g,v,{...s,noMerge:S,sort:p,layer:c},t,void 0]})};return[[d.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[d.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...E(!1,S,x.filter(([V])=>V.some(p=>p[0]===I.shortcutsNoMerge))),...E(!0,S,x.filter(([V])=>V.every(p=>p[0]!==I.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(t=>Array.isArray(t)?t[0]:t).some(t=>typeof t=="function"?t(e):P(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(e):P(s)?s===e:s.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function Me(n,e){return await ce.create(n,e)}var Pe=/\s\$\$\s+/g;function Ye(n){return Pe.test(n)}function qe(n,e){return Ye(n)?n.replace(Pe,e?` ${e} `:" "):e?`${e} ${n}`:n}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Ze(n){return Ae.test(n)?n.replace(Ae,(e,t,r,s)=>`[${Z(t)}${r}"${Z(s)}"]`):`.${Z(n)}`}function Je(n,e){return e(n)}function Qe(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Ue(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ve(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var $e=["Webkit","Moz","ms"];function Oe(n){let e={};function t(r){let s=e[r];if(s)return s;let o=Qe(r);if(o!=="filter"&&o in n)return e[r]=Ve(o);o=Ue(o);for(let u=0;u<$e.length;u++){let f=`${$e[u]}${o}`;if(f in n)return e[r]=Ve(Ue(f))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function je(n){return n.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function ue(n={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,t=window.document,r=()=>t.documentElement,s=e.__unocss||{},o=Object.assign({},n,s.runtime),u=o.defaults||{},f=o.cloakAttribute??"un-cloak";o.autoPrefix&&(u.postprocess=U(u.postprocess)).unshift(Oe(t.createElement("div").style)),o.configResolved?.(s,u);let a=await Me(s,u),i=h=>o.inject?o.inject(h):r().prepend(h),l=()=>o.rootElement?o.rootElement():t.body,c=new Map,d=!0,y=new Set,R,v,E=[],$=()=>new Promise(h=>{E.push(h),v!=null&&clearTimeout(v),v=setTimeout(()=>V().then(()=>{let C=E;E=[],C.forEach(w=>w())}),0)});function x(h,C=!1){if(h.nodeType!==1)return;let w=h;w.hasAttribute(f)&&w.removeAttribute(f),C&&w.querySelectorAll(`[${f}]`).forEach(M=>{M.removeAttribute(f)})}function S(h,C){let w=c.get(h);if(!w)if(w=t.createElement("style"),w.setAttribute("data-unocss-runtime-layer",h),c.set(h,w),C==null)i(w);else{let M=S(C),O=M.parentNode;O?O.insertBefore(w,M.nextSibling):i(w)}return w}async function V(){let h=[...y],C=await a.generate(h);return C.layers.reduce((M,O)=>(S(O,M).innerHTML=C.getLayer(O)??"",O),void 0),h.filter(M=>!C.matched.has(M)).forEach(M=>y.delete(M)),{...C,getStyleElement:M=>c.get(M),getStyleElements:()=>c}}async function p(h){let C=y.size;await a.applyExtractors(h,void 0,y),C!==y.size&&await $()}async function T(h=l()){let C=h&&h.outerHTML;C&&(await p(`${C} ${je(C)}`),x(r()),x(h,!0))}let m=new MutationObserver(h=>{d||h.forEach(async C=>{if(C.target.nodeType!==1)return;let w=C.target;for(let M of c)if(w===M[1])return;if(C.type==="childList")C.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let O=M;R&&!R(O)||(await p(O.outerHTML),x(O))});else{if(R&&!R(w))return;if(C.attributeName!==f){let M=Array.from(w.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),O=`<${w.tagName.toLowerCase()} ${M}>`;await p(O)}x(w)}})}),g=!1;function b(){if(g)return;let h=o.observer?.target?o.observer.target():l();h&&(m.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),g=!0)}function j(){o.bypassDefined&&Xe(a.blocked),T(),b()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}let L=e.__unocss_runtime=e.__unocss_runtime={version:a.version,uno:a,async extract(h){P(h)||(h.forEach(C=>y.add(C)),h=""),await p(h)},extractAll:T,inspect(h){R=h},toggleObserver(h){h===void 0?d=!d:d=!!h,!g&&!d&&k()},update:V,presets:e.__unocss_runtime?.presets??{}};o.ready?.(L)!==!1&&(d=!1,k())}function Xe(n=new Set){for(let e=0;e<document.styleSheets.length;e++){let t=document.styleSheets[e],r;try{if(r=t.cssRules||t.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),n.add(s))})}catch{continue}}return n}ue();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var nu=Object.defineProperty;var ou=(e,t)=>{for(var r in t)nu(e,r,{get:t[r],enumerable:!0})};var Xe="default",qt="preflights",iu="shortcuts",su="imports",No={[su]:-200,[qt]:-100,[iu]:-10,[Xe]:0};var Yt=/[\\:]?[\s'"`;{}]+/g;function au(e){return e.split(Yt)}var Xt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return au(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function Cn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Zt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Jt=ye;function Io(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var lu=/^\[(.+?)~?="(.*)"\]$/;var cu=/[\w\u00A0-\uFFFF%-?]/;function Do(e){return e.match(lu)}function Je(e=""){return cu.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function Rn(e){return e.length===3}function Qt(e){return e!=null}function Go(){}var er=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},tr=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ho(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function fu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":fu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function rr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function tt(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return rr(n)&&rr(o)&&Object.keys(o).forEach(s=>{rr(n[s])&&rr(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=tt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function qo(e){return M(e[0])}function Yo(e){return M(e[0])}var nr={};function uu(e=["-",":"]){let t=e.join("|");return nr[t]||(nr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),nr[t].lastIndex=0,nr[t]}function pu(e,t=["-",":"],r=5){let n=uu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,d,m,g)=>{if(!t.includes(d))return c;o=!0,s.add(f+d);let h=g+f.length+d.length+1,b={length:c.length,items:[]};a.set(g,b);for(let w of[...m.matchAll(/\S+/g)]){let z=h+w.index,y=a.get(z)?.items;y?a.delete(z):y=[{offset:z,length:w[0].length,className:w[0]}];for(let v of y)v.className=v.className==="~"?f:v.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(v)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,d]of a)l+=e.slice(c,f),l+=d.items.map(m=>m.className).join(" "),c=f+d.length;l+=e.slice(c)}else{l=e;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Xo(e,t=["-",":"],r=5){let n=pu(e,t,r);return typeof e=="string"?n.expanded:e}var Zo=new Set;function Jo(e){Zo.has(e)||(console.warn("[unocss]",e),Zo.add(e))}function ti(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Qo="_uno_resolved";async function du(e){let t=typeof e=="function"?await e():await e;if(Qo in t)return t;t={...t},Object.defineProperty(t,Qo,{value:!0,enumerable:!1});let r=t.shortcuts?ti(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ri(e){let t=await du(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(ri))).flat();return[t,...r]}function mu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(ei(...t)),exclude:ne(ei(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function En(e={},t={}){let r=Object.assign({},t,e),n=Cn((await Promise.all((r.presets||[]).flatMap(S).flatMap(ri))).flat(),(x,T)=>x.name===T.name),o=[...n.filter(x=>x.enforce==="pre"),...n.filter(x=>!x.enforce),...n.filter(x=>x.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},No,...i.map(x=>x.layers));function l(x){return ne(i.flatMap(T=>S(T[x]||[])))}let c=l("extractors"),f=s.find(x=>x.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Xt),f&&!c.includes(f)&&c.unshift(f),c.sort((x,T)=>(x.order||0)-(T.order||0));let d=l("rules"),m={},g=d.length,h=d.filter(x=>qo(x)?(S(x[2]?.prefix||"").forEach(k=>{m[k+x[0]]=x}),!1):!0).reverse(),b={templates:ne(i.flatMap(x=>S(x.autocomplete?.templates))),extractors:i.flatMap(x=>S(x.autocomplete?.extractors)).sort((x,T)=>(x.order||0)-(T.order||0)),shorthands:hu(i.map(x=>x.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let z=l("content"),y=mu(z),v={mergeSelectors:!0,warn:!0,sortLayers:x=>x,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:gu(i.map(x=>x.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:b,variants:l("variants").map(Ko).sort((x,T)=>(x.order||0)-(T.order||0)),shortcuts:ti(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:y,transformers:Cn(l("transformers"),(x,T)=>x.name===T.name)},E=l("extendTheme");for(let x of E)v.theme=x(v.theme,v)||v.theme;for(let x of i)x?.configResolved?.(v);return v}function gu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>tt(t,r),{})}function hu(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function ei(...e){return e.flatMap(bu)}function bu(e){return Array.isArray(e)?e:e?[e]:[]}var ni="66.3.1-beta.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Tn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ni;events=Io();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await En(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await En(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Zt(s)&&Zt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((l,c)=>c(l)??l,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(m=>this.stringifyUtil(m,c)).filter(Qt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=M(t)?await this.applyExtractors(t,n,l?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(k):C).forEach(C=>{let O=C.trim();O&&!c.has(O)&&c.add(O)})}let f=a?"":`
1
+ "use strict";(()=>{var nu=Object.defineProperty;var ou=(e,t)=>{for(var r in t)nu(e,r,{get:t[r],enumerable:!0})};var Xe="default",qt="preflights",iu="shortcuts",su="imports",No={[su]:-200,[qt]:-100,[iu]:-10,[Xe]:0};var Yt=/[\\:]?[\s'"`;{}]+/g;function au(e){return e.split(Yt)}var Xt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return au(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function Cn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Zt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Jt=ye;function Io(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var lu=/^\[(.+?)~?="(.*)"\]$/;var cu=/[\w\u00A0-\uFFFF%-?]/;function Do(e){return e.match(lu)}function Je(e=""){return cu.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function Rn(e){return e.length===3}function Qt(e){return e!=null}function Go(){}var er=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},tr=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ho(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function fu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":fu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function rr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function tt(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return rr(n)&&rr(o)&&Object.keys(o).forEach(s=>{rr(n[s])&&rr(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=tt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function qo(e){return M(e[0])}function Yo(e){return M(e[0])}var nr={};function uu(e=["-",":"]){let t=e.join("|");return nr[t]||(nr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),nr[t].lastIndex=0,nr[t]}function pu(e,t=["-",":"],r=5){let n=uu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,d,m,g)=>{if(!t.includes(d))return c;o=!0,s.add(f+d);let h=g+f.length+d.length+1,b={length:c.length,items:[]};a.set(g,b);for(let w of[...m.matchAll(/\S+/g)]){let z=h+w.index,y=a.get(z)?.items;y?a.delete(z):y=[{offset:z,length:w[0].length,className:w[0]}];for(let v of y)v.className=v.className==="~"?f:v.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(v)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,d]of a)l+=e.slice(c,f),l+=d.items.map(m=>m.className).join(" "),c=f+d.length;l+=e.slice(c)}else{l=e;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Xo(e,t=["-",":"],r=5){let n=pu(e,t,r);return typeof e=="string"?n.expanded:e}var Zo=new Set;function Jo(e){Zo.has(e)||(console.warn("[unocss]",e),Zo.add(e))}function ti(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Qo="_uno_resolved";async function du(e){let t=typeof e=="function"?await e():await e;if(Qo in t)return t;t={...t},Object.defineProperty(t,Qo,{value:!0,enumerable:!1});let r=t.shortcuts?ti(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ri(e){let t=await du(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(ri))).flat();return[t,...r]}function mu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(ei(...t)),exclude:ne(ei(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function En(e={},t={}){let r=Object.assign({},t,e),n=Cn((await Promise.all((r.presets||[]).flatMap(S).flatMap(ri))).flat(),(x,T)=>x.name===T.name),o=[...n.filter(x=>x.enforce==="pre"),...n.filter(x=>!x.enforce),...n.filter(x=>x.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},No,...i.map(x=>x.layers));function l(x){return ne(i.flatMap(T=>S(T[x]||[])))}let c=l("extractors"),f=s.find(x=>x.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Xt),f&&!c.includes(f)&&c.unshift(f),c.sort((x,T)=>(x.order||0)-(T.order||0));let d=l("rules"),m={},g=d.length,h=d.filter(x=>qo(x)?(S(x[2]?.prefix||"").forEach(k=>{m[k+x[0]]=x}),!1):!0).reverse(),b={templates:ne(i.flatMap(x=>S(x.autocomplete?.templates))),extractors:i.flatMap(x=>S(x.autocomplete?.extractors)).sort((x,T)=>(x.order||0)-(T.order||0)),shorthands:hu(i.map(x=>x.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let z=l("content"),y=mu(z),v={mergeSelectors:!0,warn:!0,sortLayers:x=>x,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:gu(i.map(x=>x.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:b,variants:l("variants").map(Ko).sort((x,T)=>(x.order||0)-(T.order||0)),shortcuts:ti(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:y,transformers:Cn(l("transformers"),(x,T)=>x.name===T.name)},E=l("extendTheme");for(let x of E)v.theme=x(v.theme,v)||v.theme;for(let x of i)x?.configResolved?.(v);return v}function gu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>tt(t,r),{})}function hu(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function ei(...e){return e.flatMap(bu)}function bu(e){return Array.isArray(e)?e:e?[e]:[]}var ni="66.3.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Tn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ni;events=Io();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await En(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await En(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Zt(s)&&Zt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((l,c)=>c(l)??l,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(m=>this.stringifyUtil(m,c)).filter(Qt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=M(t)?await this.applyExtractors(t,n,l?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(k):C).forEach(C=>{let O=C.trim();O&&!c.has(O)&&c.add(O)})}let f=a?"":`
2
2
  `,d=new Set([Xe]),m=l?new Map:new Set,g=new Map,h={},b=Array.from(c).map(async k=>{if(m.has(k))return;let C=await this.parseToken(k);if(C!=null){m instanceof Map?m.set(k,{data:C,count:Zt(c)?c.getCount(k):-1}):m.add(k);for(let O of C){let J=O[3]||"",Q=O[4]?.layer;g.has(J)||g.set(J,[]),g.get(J).push(O),Q&&d.add(Q)}}});await Promise.all(b),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:O=qt})=>{d.add(O),C.add(O)}),h=Object.fromEntries(await Promise.all(Array.from(C).map(async O=>{let Q=(await Promise.all(this.config.preflights.filter(le=>(le.layer||qt)===O).map(async le=>await le.getCSS(k)))).filter(Boolean).join(f);return[O,Q]})))})();let w=this.config.sortLayers(Array.from(d).sort((k,C)=>(this.config.layers[k]??0)-(this.config.layers[C]??0)||k.localeCompare(C))),z={},y=this.config.outputToCssLayers,v=k=>{let C=k;return typeof y=="object"&&(C=y.cssLayerName?.(k)),C===null?null:C??k},E=(k=Xe)=>{if(z[k])return z[k];let C=Array.from(g).sort((Q,le)=>(this.parentOrders.get(Q[0])??0)-(this.parentOrders.get(le[0])??0)||Q[0]?.localeCompare(le[0]||"")||0).map(([Q,le])=>{let R=le.length,P=le.filter(N=>(N[4]?.layer||Xe)===k).sort((N,ce)=>N[0]-ce[0]||(N[4]?.sort||0)-(ce[4]?.sort||0)||N[5]?.currentSelector?.localeCompare(ce[5]?.currentSelector??"")||N[1]?.localeCompare(ce[1]||"")||N[2]?.localeCompare(ce[2]||"")||0).map(([,N,ce,,Ht,,kn])=>[[[(N&&vu(N,o))??"",Ht?.sort??0]],ce,!!(kn??Ht?.noMerge)]);if(!P.length)return;let B=P.reverse().map(([N,ce,Ht],kn)=>{if(!Ht&&this.config.mergeSelectors)for(let Ce=kn+1;Ce<R;Ce++){let de=P[Ce];if(de&&!de[2]&&(N&&de[0]||N==null&&de[0]==null)&&de[1]===ce)return N&&de[0]&&de[0].push(...N),null}let Sn=N?ne(N.sort((Ce,de)=>Ce[1]-de[1]||Ce[0]?.localeCompare(de[0]||"")||0).map(Ce=>Ce[0]).filter(Boolean)):[];return Sn.length?`${Sn.join(`,${f}`)}{${ce}}`:ce}).filter(Boolean),I=Array.from(new Set(B)).reverse().join(f);if(!Q)return I;let Z=Q.split(" $$ ");return`${Z.join("{")}{${f}${I}${f}${"}".repeat(Z.length)}`}).filter(Boolean).join(f);i&&(C=[h[k],C].filter(Boolean).join(f));let O;y&&C&&(O=v(k),O!==null&&(C=`@layer ${O}{${f}${C}${f}}`));let J=a?"":`/* layer: ${k}${O&&O!==k?`, alias: ${O}`:""} */${f}`;return z[k]=C?J+C:""},x=(k=w,C)=>{let O=k.filter(J=>!C?.includes(J));return[y&&O.length>0?`@layer ${O.map(v).filter(Qt).join(", ")};`:void 0,...O.map(J=>E(J)||"")].filter(Boolean).join(f)};return{get css(){return x()},layers:w,matched:m,getLayers:x,getLayer:E,setLayer:async(k,C)=>{let O=await C(E(k));return z[k]=O,O}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let d=await f.match(c,n);if(d){if(M(d)){if(d===c)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let m=d.map(g=>{let h=g.matcher??c,b=[g,...a],w=new Set(l);return w.add(f),[i[0],h,b,w]});return(await Promise.all(m.map(g=>o(g)))).flat()}}i[1]=d.matcher??c,a.unshift(d),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>d=>{let m=f.body?.(d.entries)||d.entries,g=Array.isArray(f.parent)?f.parent:[f.parent,void 0],h=f.selector?.(d.selector,m);return(f.handle??$u)({...d,entries:m,selector:h||d.selector,parent:g[0]||d.parent,parentOrder:g[1]||d.parentOrder,layer:f.layer||d.layer,sort:f.sort||d.sort},c)},c=>c)({prefix:"",selector:jn(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(t,r,n){let o=et(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${We(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:f},m=this.config.rulesStaticMap[c];if(m&&m[1]&&(n||!m[2]?.internal))return this.resolveCSSResult(l,m[1],m,d);for(let g of this.config.rulesDynamic){let[h,b,w]=g;if(w?.internal&&!n)continue;let z=c;if(w?.prefix){let x=S(w.prefix);if(o){let T=S(o);if(!x.some(k=>T.includes(k)))continue}else{let T=x.find(k=>c.startsWith(k));if(T==null)continue;z=c.slice(T.length)}}let y=z.match(h);if(!y)continue;let v=await b(y,d);if(!v)continue;if(typeof v!="string")if(Symbol.asyncIterator in v){let x=[];for await(let T of v)T&&x.push(T);v=x}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(Qt));let E=this.resolveCSSResult(l,v,g,d);if(E)return E}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Ho(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=o.generator.config.rules.indexOf(n),a=n[2];return i.map(l=>{if(M(l))return[s,l,a];let c=o.variantHandlers,f=a;for(let d of l)d[0]===ve.variants?typeof d[1]=="function"?c=d[1](c)||c:c=[...S(d[1]),...c]:d[0]===ve.parent?c=[{parent:d[1]},...c]:d[0]===ve.selector?c=[{selector:d[1]},...c]:d[0]===ve.layer?c=[{layer:d[1]},...c]:d[0]===ve.sort?f={...f,sort:d[1]}:d[0]===ve.noMerge&&(f={...f,noMerge:d[1]});return[s,t,l,f,c]})}};stringifyUtil(t,r){if(!t)return;if(Rn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(t),c=We(o);if(!c)return;let{layer:f,sort:d,...m}=t[3]??{},g={...m,layer:s??f,sort:a??d};return[t[0],n,c,i,g,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:Go,i,s,a,l;for(let c of this.config.shortcuts){let f=t;if(c[2]?.prefix){let m=S(c[2].prefix).find(g=>t.startsWith(g));if(m==null)continue;f=t.slice(m.length)}if(Yo(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let d=f.match(c[0]);if(d&&(s=c[1](d,r)),s){i=i||c[2],o(c);break}}}if(s&&(a=ne(S(s).filter(M).map(c=>Xo(c.trim()).split(/\s+/g)).flat()),l=S(s).filter(c=>!M(c)).map(c=>({handles:[],value:c}))),!s){let c=M(t)?await this.matchVariants(t):[t];for(let f of c){let[d,m,g]=f;if(d!==m){let h=await this.expandShortcut(m,r,n-1);h&&(a=h[0].filter(M).map(b=>d.replace(m,b)),l=h[0].filter(b=>!M(b)).map(b=>({handles:[...b.handles,...g],value:b.value})))}}}if(!(!a?.length&&!l?.length))return[[await Promise.all(S(a).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),l].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new tr,s=(await Promise.all(ne(n).map(async f=>{let d=M(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(f.value),void 0,f.handles]];return!d&&this.config.warn&&Jo(`unmatched utility "${f}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[a,,l]=t,c=[];for(let f of s){if(Rn(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:d,entries:m,parent:g,sort:h,noMerge:b,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new er).getFallback(d,g,[[],f[0]])[0].push([m,!!(b??f[3]?.noMerge),h??0])}return c.concat(i.flatMap((f,d)=>f.map(([m,g],h,b)=>{let w=(y,v,E)=>{let x=Math.max(...E.map(k=>k[1])),T=E.map(k=>k[0]);return(y?[T.flat(1)]:T).map(k=>{let C=We(k);if(C)return[g,h,C,b,{...o,noMerge:v,sort:x,layer:d},r,void 0]})};return[[m.filter(([,y])=>y).map(([y,,v])=>[y,v]),!0],[m.filter(([,y])=>!y).map(([y,,v])=>[y,v]),!1]].map(([y,v])=>[...w(!1,v,y.filter(([E])=>E.some(x=>x[0]===ve.shortcutsNoMerge))),...w(!0,v,y.filter(([E])=>E.every(x=>x[0]!==ve.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ii(e,t){return await Tn.create(e,t)}var si=/\s\$\$\s+/g;function yu(e){return si.test(e)}function vu(e,t){return yu(e)?e.replace(si,t?` ${t} `:" "):t?`${t} ${e}`:e}var oi=/^\[(.+?)(~?=)"(.*)"\]$/;function jn(e){return oi.test(e)?e.replace(oi,(t,r,n,o)=>`[${Jt(r)}${n}"${Jt(o)}"]`):`.${Jt(e)}`}function $u(e,t){return t(e)}var zn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ai(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Do(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let c=a[2],[,f="",d=c]=c.match(zn)||[];if(d==="~"||n&&d==="true"||!d)return`${f}${l}`;if(o==null){let m=s?.config?.separators?.join("|");m?o=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,m,g]=c.match(o)||[];if(g)return`${m}${f}${l}-${g}`}if(f&&d.match(/^[\d.]+$/)){let m=f.split(/([^:]*:)/g).filter(Boolean),g=m.pop()+d,h=m.join("");return[{matcher:`${f}${l}-${d}`},{matcher:`${h}${l}-${g}`}]}return`${f}${l}-${d}`}}}var wu=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,ku=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,li=/[\s'"`;>]+/;function ci(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(wu),o,i=0;for(let y of n){let[,v,E]=y,x=y.index+v.length;if(r>x&&r<=x+E.length){i=x,o=E;break}}if(!o)return null;let s=o.matchAll(ku),a=0,l,c;for(let y of s){let[v,E,x]=y,T=i+y.index;if(r>T&&r<=T+v.length){a=T,l=E,c=x?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let d=f?l.slice(e.prefix.length):l;if(c===void 0)return{extracted:d,resolveReplacement(y){let v=f?e.prefix.length:0;return{start:a+v,end:a+l.length,replacement:y}}};let m=a+l.length+2,g=li.exec(c),h=0,b;for(;g;){let[y]=g;if(r>m+h&&r<=m+h+g.index){b=c.slice(h,h+g.index);break}h+=g.index+y.length,g=li.exec(c.slice(h))}b===void 0&&(b=c.slice(h));let[,w="",z]=b.match(zn)||[];return{extracted:`${w}${d}-${z}`,transformSuggestions(y){return y.filter(v=>v.startsWith(`${w}${d}-`)).map(v=>w+v.slice(w.length+d.length+1))},resolveReplacement(y){return{start:h+m,end:h+m+b.length,replacement:w+y.slice(w.length+d.length+1)}}}}}}var Su=["v-bind:",":"],fi=/[\s'"`;]+/g,An=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Cu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,On=["placeholder","fill","opacity","stroke-opacity"];function ui(e){let t=e?.ignoreAttributes??On,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(An)).flatMap(i=>Array.from((i[1]||"").matchAll(Cu))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of Su)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Je(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(fi).filter(Je):An.test(a)?(An.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(fi).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Ru=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??On;let t=[ai(e)],r=[ui(e)],n=[ci(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},pi=Ru;var or="__TAGIFY__",Eu=/<([\w:-]+)/g;function di(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Eu)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${or}${o}`)}}}function mi(e){let{extraProperties:t}=e,r=`${or}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;let o=n.slice(r.length),i={matcher:o,selector:s=>s.slice(or.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var Tu=(e={})=>{let{defaultExtractor:t=!0}=e,r=[mi(e)],n=[di(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},gi=Tu;function ee(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=fe(e,n,o,t);if(!a)return;let[l,c]=a;i.push(l),e=c}if(i.length>0)return i}var Pn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var ir=["%alpha","<alpha-value>"],ju=new RegExp(ir.map(e=>Re(e)).join("|"),"g");function q(e=""){let t=zu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Pn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&ir.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(ju,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Pn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zu(e){if(!e)return;let t=Au(e);if(t!=null||(t=Ou(e),t!=null)||(t=Pu(e),t!=null)||(t=Mu(e),t!=null)||(t=Fu(e),t!=null))return t}function Au(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Ou(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Pu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Vu=new RegExp(`^(${Pn.join("|")})\\((.+)\\)$`,"i");function Mu(e){let t=e.match(Vu);if(!t)return;let[,r,n]=t,o=hi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Fu(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=hi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function hi(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vi=new Uint8Array(64),_u=new Uint8Array(128);for(let e=0;e<bi.length;e++){let t=bi.charCodeAt(e);vi[e]=t,_u[t]=e}function rt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(vi[o])}while(n>0);return t}var xi=1024*16,yi=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Vn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(xi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===xi&&(this.out+=yi.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+yi.decode(t.subarray(0,n)):r}};function $i(e){let t=new Vn,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&t.write(44),l=rt(t,f[0],l),f.length!==1&&(r=rt(t,f[1],r),n=rt(t,f[2],n),o=rt(t,f[3],o),f.length!==4&&(i=rt(t,f[4],i)))}}return t.flush()}var sr=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},ar=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Wu(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Lu=Wu(),Mn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=$i(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Lu(this.toString())}};function Uu(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Bu(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Nu=Object.prototype.toString;function Iu(e){return Nu.call(e)==="[object Object]"}function wi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var Du=/\w/,Fn=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/mini.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Uo=Object.defineProperty;var Fo=(t,e)=>{for(var r in e)Uo(t,r,{get:e[r],enumerable:!0})};var xe="default",_e="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[_e]:-100,[_o]:-10,[xe]:0};var Ie=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(Ie)}var We={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function R(t=[]){return Array.isArray(t)?t:[t]}function N(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function M(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Be(t){return t instanceof ye}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var De=ae;function er(){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)}}}var Bo=/^\[(.+?)~?="(.*)"\]$/;var Do=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Bo)}function we(t=""){return Do.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function Ne(t){return t!=null}function nr(){}var Ke=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ge=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function $e(t){return M(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ir(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function No(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function ue(t){return t==null?"":No(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function He(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return He(n)&&He(i)&&Object.keys(i).forEach(s=>{He(n[s])&&He(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=ht(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function Se(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Se(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}return t}function or(t){return M(t[0])}function sr(t){return M(t[0])}var qe={};function Ko(t=["-",":"]){let e=t.join("|");return qe[e]||(qe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),qe[e].lastIndex=0,qe[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,l=new Map;do i=!1,o=o.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let g=h+f.length+p.length+1,y={length:c.length,items:[]};l.set(h,y);for(let S of[...d.matchAll(/\S+/g)]){let j=g+S.index,b=l.get(j)?.items;b?l.delete(j):b=[{offset:j,length:S[0].length,className:S[0]}];for(let x of b)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(x)}return"$".repeat(c.length)}),r-=1;while(i&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:l,get expanded(){return a.toString()}}}function ar(t,e=["-",":"],r=5){let n=Go(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return R(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ho(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=R(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ho(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(R).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&i.push(a.filesystem),a.inline&&o.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:N(fr(...e)),exclude:N(fr(...r))}};return i.length&&(l.filesystem=N(i.flat())),o.length&&(l.inline=N(o.flat())),s.length&&(l.plain=N(s.flat())),l}async function mt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(R).flatMap(dr))).flat(),(m,k)=>m.name===k.name),i=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],o=[...i,r],s=[...o].reverse(),l=Object.assign({},Qt,...o.map(m=>m.layers));function a(m){return N(o.flatMap(k=>R(k[m]||[])))}let c=a("extractors"),f=s.find(m=>m.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=We),f&&!c.includes(f)&&c.unshift(f),c.sort((m,k)=>(m.order||0)-(k.order||0));let p=a("rules"),d={},h=p.length,g=p.filter(m=>or(m)?(R(m[2]?.prefix||"").forEach(w=>{d[w+m[0]]=m}),!1):!0).reverse(),y={templates:N(o.flatMap(m=>R(m.autocomplete?.templates))),extractors:o.flatMap(m=>R(m.autocomplete?.extractors)).sort((m,k)=>(m.order||0)-(k.order||0)),shorthands:Xo(o.map(m=>m.autocomplete?.shorthands||{}))},S=a("separators");S.length||(S=[":","-"]);let j=a("content"),b=qo(j),x={mergeSelectors:!0,warn:!0,sortLayers:m=>m,...r,blocklist:a("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:Yo(o.map(m=>m.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(rr).sort((m,k)=>(m.order||0)-(k.order||0)),shortcuts:pr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:S,details:r.details??r.envMode==="dev",content:b,transformers:pt(a("transformers"),(m,k)=>m.name===k.name)},C=a("extendTheme");for(let m of C)x.theme=m(x.theme,x)||x.theme;for(let m of o)m?.configResolved?.(x);return x}function Yo(t){return t.map(e=>e?Se(e):{}).reduce((e,r)=>ht(e,r),{})}function Xo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function fr(...t){return t.flatMap(Zo)}function Zo(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.3.1-beta.1";var ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},gt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=er();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await mt(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await mt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Be(s)&&Be(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ee,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let i=this.config.preprocess.reduce((a,c)=>c(a)??a,e);if(this.isBlocked(i)){this.blocked.add(e),this.cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(Ne)},l=(await Promise.all(o.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=M(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(w):$).forEach($=>{let T=$.trim();T&&!c.has(T)&&c.add(T)})}let f=l?"":`
1
+ "use strict";(()=>{var Uo=Object.defineProperty;var Fo=(t,e)=>{for(var r in e)Uo(t,r,{get:e[r],enumerable:!0})};var xe="default",_e="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[_e]:-100,[_o]:-10,[xe]:0};var Ie=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(Ie)}var We={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function R(t=[]){return Array.isArray(t)?t:[t]}function N(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function M(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Be(t){return t instanceof ye}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var De=ae;function er(){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)}}}var Bo=/^\[(.+?)~?="(.*)"\]$/;var Do=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Bo)}function we(t=""){return Do.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function Ne(t){return t!=null}function nr(){}var Ke=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ge=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function $e(t){return M(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ir(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function No(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function ue(t){return t==null?"":No(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function He(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return He(n)&&He(i)&&Object.keys(i).forEach(s=>{He(n[s])&&He(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=ht(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function Se(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Se(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}return t}function or(t){return M(t[0])}function sr(t){return M(t[0])}var qe={};function Ko(t=["-",":"]){let e=t.join("|");return qe[e]||(qe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),qe[e].lastIndex=0,qe[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,l=new Map;do i=!1,o=o.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let g=h+f.length+p.length+1,y={length:c.length,items:[]};l.set(h,y);for(let S of[...d.matchAll(/\S+/g)]){let j=g+S.index,b=l.get(j)?.items;b?l.delete(j):b=[{offset:j,length:S[0].length,className:S[0]}];for(let x of b)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(x)}return"$".repeat(c.length)}),r-=1;while(i&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:l,get expanded(){return a.toString()}}}function ar(t,e=["-",":"],r=5){let n=Go(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return R(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ho(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=R(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ho(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(R).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&i.push(a.filesystem),a.inline&&o.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:N(fr(...e)),exclude:N(fr(...r))}};return i.length&&(l.filesystem=N(i.flat())),o.length&&(l.inline=N(o.flat())),s.length&&(l.plain=N(s.flat())),l}async function mt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(R).flatMap(dr))).flat(),(m,k)=>m.name===k.name),i=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],o=[...i,r],s=[...o].reverse(),l=Object.assign({},Qt,...o.map(m=>m.layers));function a(m){return N(o.flatMap(k=>R(k[m]||[])))}let c=a("extractors"),f=s.find(m=>m.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=We),f&&!c.includes(f)&&c.unshift(f),c.sort((m,k)=>(m.order||0)-(k.order||0));let p=a("rules"),d={},h=p.length,g=p.filter(m=>or(m)?(R(m[2]?.prefix||"").forEach(w=>{d[w+m[0]]=m}),!1):!0).reverse(),y={templates:N(o.flatMap(m=>R(m.autocomplete?.templates))),extractors:o.flatMap(m=>R(m.autocomplete?.extractors)).sort((m,k)=>(m.order||0)-(k.order||0)),shorthands:Xo(o.map(m=>m.autocomplete?.shorthands||{}))},S=a("separators");S.length||(S=[":","-"]);let j=a("content"),b=qo(j),x={mergeSelectors:!0,warn:!0,sortLayers:m=>m,...r,blocklist:a("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:Yo(o.map(m=>m.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(rr).sort((m,k)=>(m.order||0)-(k.order||0)),shortcuts:pr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:S,details:r.details??r.envMode==="dev",content:b,transformers:pt(a("transformers"),(m,k)=>m.name===k.name)},C=a("extendTheme");for(let m of C)x.theme=m(x.theme,x)||x.theme;for(let m of o)m?.configResolved?.(x);return x}function Yo(t){return t.map(e=>e?Se(e):{}).reduce((e,r)=>ht(e,r),{})}function Xo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function fr(...t){return t.flatMap(Zo)}function Zo(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.3.1";var ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},gt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=er();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await mt(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await mt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Be(s)&&Be(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ee,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let i=this.config.preprocess.reduce((a,c)=>c(a)??a,e);if(this.isBlocked(i)){this.blocked.add(e),this.cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(Ne)},l=(await Promise.all(o.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=M(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(w):$).forEach($=>{let T=$.trim();T&&!c.has(T)&&c.add(T)})}let f=l?"":`
2
2
  `,p=new Set([xe]),d=a?new Map:new Set,h=new Map,g={},y=Array.from(c).map(async w=>{if(d.has(w))return;let $=await this.parseToken(w);if($!=null){d instanceof Map?d.set(w,{data:$,count:Be(c)?c.getCount(w):-1}):d.add(w);for(let T of $){let _=T[3]||"",I=T[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(T),I&&p.add(I)}}});await Promise.all(y),await(async()=>{if(!o)return;let w={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:T=_e})=>{p.add(T),$.add(T)}),g=Object.fromEntries(await Promise.all(Array.from($).map(async T=>{let I=(await Promise.all(this.config.preflights.filter(H=>(H.layer||_e)===T).map(async H=>await H.getCSS(w)))).filter(Boolean).join(f);return[T,I]})))})();let S=this.config.sortLayers(Array.from(p).sort((w,$)=>(this.config.layers[w]??0)-(this.config.layers[$]??0)||w.localeCompare($))),j={},b=this.config.outputToCssLayers,x=w=>{let $=w;return typeof b=="object"&&($=b.cssLayerName?.(w)),$===null?null:$??w},C=(w=xe)=>{if(j[w])return j[w];let $=Array.from(h).sort((I,H)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(H[0])??0)||I[0]?.localeCompare(H[0]||"")||0).map(([I,H])=>{let v=H.length,E=H.filter(V=>(V[4]?.layer||xe)===w).sort((V,q)=>V[0]-q[0]||(V[4]?.sort||0)-(q[4]?.sort||0)||V[5]?.currentSelector?.localeCompare(q[5]?.currentSelector??"")||V[1]?.localeCompare(q[1]||"")||V[2]?.localeCompare(q[2]||"")||0).map(([,V,q,,Fe,,ut])=>[[[(V&&es(V,i))??"",Fe?.sort??0]],q,!!(ut??Fe?.noMerge)]);if(!E.length)return;let P=E.reverse().map(([V,q,Fe],ut)=>{if(!Fe&&this.config.mergeSelectors)for(let re=ut+1;re<v;re++){let X=E[re];if(X&&!X[2]&&(V&&X[0]||V==null&&X[0]==null)&&X[1]===q)return V&&X[0]&&X[0].push(...V),null}let ft=V?N(V.sort((re,X)=>re[1]-X[1]||re[0]?.localeCompare(X[0]||"")||0).map(re=>re[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${f}`)}{${q}}`:q}).filter(Boolean),z=Array.from(new Set(P)).reverse().join(f);if(!I)return z;let F=I.split(" $$ ");return`${F.join("{")}{${f}${z}${f}${"}".repeat(F.length)}`}).filter(Boolean).join(f);o&&($=[g[w],$].filter(Boolean).join(f));let T;b&&$&&(T=x(w),T!==null&&($=`@layer ${T}{${f}${$}${f}}`));let _=l?"":`/* layer: ${w}${T&&T!==w?`, alias: ${T}`:""} */${f}`;return j[w]=$?_+$:""},m=(w=S,$)=>{let T=w.filter(_=>!$?.includes(_));return[b&&T.length>0?`@layer ${T.map(x).filter(Ne).join(", ")};`:void 0,...T.map(_=>C(_)||"")].filter(Boolean).join(f)};return{get css(){return m()},layers:S,matched:d,getLayers:m,getLayer:C,setLayer:async(w,$)=>{let T=await $(C(w));return j[w]=T,T}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},i=async o=>{let s=!0,[,,l,a]=o;for(;s;){s=!1;let c=o[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let p=await f.match(c,n);if(p){if(M(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let g=h.matcher??c,y=[h,...l],S=new Set(a);return S.add(f),[o[0],g,y,S]});return(await Promise.all(d.map(h=>i(h)))).flat()}}o[1]=p.matcher??c,l.unshift(p),a.add(f),s=!0;break}}if(!s)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await i([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(p.selector,d);return(f.handle??rs)({...p,entries:d,selector:g||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:ts(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:l}=o;s!=null&&l!=null&&this.parentOrders.set(s,l);let a={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(e,r,n){let i=$e(r);if(M(i))return i;let{selector:o,entries:s,parent:l}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),a=`${o}{${ue(s)}}`;return l?`${l}{${a}}`:a}async parseUtil(e,r,n=!1,i){let o=M(e)?await this.matchVariants(e):[e],s=async([a,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:f},d=this.config.rulesStaticMap[c];if(d&&d[1]&&(n||!d[2]?.internal))return this.resolveCSSResult(a,d[1],d,p);for(let h of this.config.rulesDynamic){let[g,y,S]=h;if(S?.internal&&!n)continue;let j=c;if(S?.prefix){let m=R(S.prefix);if(i){let k=R(i);if(!m.some(w=>k.includes(w)))continue}else{let k=m.find(w=>c.startsWith(w));if(k==null)continue;j=c.slice(k.length)}}let b=j.match(g);if(!b)continue;let x=await y(b,p);if(!x)continue;if(typeof x!="string")if(Symbol.asyncIterator in x){let m=[];for await(let k of x)k&&m.push(k);x=m}else Symbol.iterator in x&&!Array.isArray(x)&&(x=Array.from(x).filter(Ne));let C=this.resolveCSSResult(a,x,h,p);if(C)return C}},l=(await Promise.all(o.map(a=>s(a)))).flat().filter(a=>!!a);if(l.length)return l}resolveCSSResult=(e,r,n,i)=>{let o=ir(r).filter(s=>s.length);if(o.length){this.config.details&&i.rules.push(n),i.generator.activatedRules.add(n);let s=i.generator.config.rules.indexOf(n),l=n[2];return o.map(a=>{if(M(a))return[s,a,l];let c=i.variantHandlers,f=l;for(let p of a)p[0]===ee.variants?typeof p[1]=="function"?c=p[1](c)||c:c=[...R(p[1]),...c]:p[0]===ee.parent?c=[{parent:p[1]},...c]:p[0]===ee.selector?c=[{selector:p[1]},...c]:p[0]===ee.layer?c=[{layer:p[1]},...c]:p[0]===ee.sort?f={...f,sort:p[1]}:p[0]===ee.noMerge&&(f={...f,noMerge:p[1]});return[s,e,a,f,c]})}};stringifyUtil(e,r){if(!e)return;if(dt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:l,noMerge:a}=this.applyVariants(e),c=ue(i);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:l??p};return[e[0],n,c,o,h,this.config.details?r:void 0,a]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:nr,o,s,l,a;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let d=R(c[2].prefix).find(h=>e.startsWith(h));if(d==null)continue;f=e.slice(d.length)}if(sr(c)){if(c[0]===f){o=o||c[2],s=c[1],i(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){o=o||c[2],i(c);break}}}if(s&&(l=N(R(s).filter(M).map(c=>ar(c.trim()).split(/\s+/g)).flat()),a=R(s).filter(c=>!M(c)).map(c=>({handles:[],value:c}))),!s){let c=M(e)?await this.matchVariants(e):[e];for(let f of c){let[p,d,h]=f;if(p!==d){let g=await this.expandShortcut(d,r,n-1);g&&(l=g[0].filter(M).map(y=>p.replace(d,y)),a=g[0].filter(y=>!M(y)).map(y=>({handles:[...y.handles,...h],value:y.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(R(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Ge,s=(await Promise.all(N(n).map(async f=>{let p=M(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f.value),void 0,f.handles]];return!p&&this.config.warn&&cr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[l,,a]=e,c=[];for(let f of s){if(dt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:g,noMerge:y,layer:S}=this.applyVariants(f,[...f[4],...a],l);o.getFallback(S??i.layer,new Ke).getFallback(p,h,[[],f[0]])[0].push([d,!!(y??f[3]?.noMerge),g??0])}return c.concat(o.flatMap((f,p)=>f.map(([d,h],g,y)=>{let S=(b,x,C)=>{let m=Math.max(...C.map(w=>w[1])),k=C.map(w=>w[0]);return(b?[k.flat(1)]:k).map(w=>{let $=ue(w);if($)return[h,g,$,y,{...i,noMerge:x,sort:m,layer:p},r,void 0]})};return[[d.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[d.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...S(!1,x,b.filter(([C])=>C.some(m=>m[0]===ee.shortcutsNoMerge))),...S(!0,x,b.filter(([C])=>C.every(m=>m[0]!==ee.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):M(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let i=Array.isArray(n)?n[0]:n;return typeof i=="function"?i(e):M(i)?i===e:i.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function gr(t,e){return await gt.create(t,e)}var br=/\s\$\$\s+/g;function Qo(t){return br.test(t)}function es(t,e){return Qo(t)?t.replace(br,e?` ${e} `:" "):e?`${e} ${t}`:t}var mr=/^\[(.+?)(~?=)"(.*)"\]$/;function ts(t){return mr.test(t)?t.replace(mr,(e,r,n,i)=>`[${De(r)}${n}"${De(i)}"]`):`.${De(t)}`}function rs(t,e){return e(t)}var bt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function xr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let l=tr(o);if(!l)return;let a=l[1];if(a.startsWith(e))a=a.slice(e.length);else if(r)return;let c=l[2],[,f="",p=c]=c.match(bt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${a}`;if(i==null){let d=s?.config?.separators?.join("|");d?i=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,d,h]=c.match(i)||[];if(h)return`${d}${f}${a}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,g=d.join("");return[{matcher:`${f}${a}-${p}`},{matcher:`${g}${a}-${h}`}]}return`${f}${a}-${p}`}}}var ns=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,is=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,yr=/[\s'"`;>]+/;function wr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(ns),i,o=0;for(let b of n){let[,x,C]=b,m=b.index+x.length;if(r>m&&r<=m+C.length){o=m,i=C;break}}if(!i)return null;let s=i.matchAll(is),l=0,a,c;for(let b of s){let[x,C,m]=b,k=o+b.index;if(r>k&&r<=k+x.length){l=k,a=C,c=m?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!t?.prefix&&a.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?a.slice(t.prefix.length):a;if(c===void 0)return{extracted:p,resolveReplacement(b){let x=f?t.prefix.length:0;return{start:l+x,end:l+a.length,replacement:b}}};let d=l+a.length+2,h=yr.exec(c),g=0,y;for(;h;){let[b]=h;if(r>d+g&&r<=d+g+h.index){y=c.slice(g,g+h.index);break}g+=h.index+b.length,h=yr.exec(c.slice(g))}y===void 0&&(y=c.slice(g));let[,S="",j]=y.match(bt)||[];return{extracted:`${S}${p}-${j}`,transformSuggestions(b){return b.filter(x=>x.startsWith(`${S}${p}-`)).map(x=>S+x.slice(S.length+p.length+1))},resolveReplacement(b){return{start:g+d,end:g+d+y.length,replacement:S+b.slice(S.length+p.length+1)}}}}}}var os=["v-bind:",":"],Sr=/[\s'"`;]+/g,xt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ss=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,yt=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??yt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:i}){return Array.from(i.matchAll(xt)).flatMap(o=>Array.from((o[1]||"").matchAll(ss))).flatMap(([,o,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(o))return[];for(let a of os)if(o.startsWith(a)){o=o.slice(a.length);break}if(!l){if(we(o)&&r!==!1){let a=[`[${o}=""]`];return n&&a.push(`[${o}="true"]`),a}return[]}return["class","className"].includes(o)?l.split(Sr).filter(we):xt.test(l)?(xt.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:l.split(Sr).filter(a=>!!a&&a!==":").map(a=>`[${o}~="${a}"]`)})}}}var as=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??yt;let e=[xr(t)],r=[$r(t)],n=[wr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},vr=as;function ls(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Cr(t,e,r,n){for(let i of Array.from(t.matchAll(r)))if(i!=null){let o=i[0],s=`${n}${ls(o)}`;e.set(s,o),t=t.replace(o,s)}return t}function kr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var cs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Rr(t){return t.includes("sourceMappingURL=")?t.replace(cs,""):t}var us=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,fs=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ps=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ds(t){let e=[];for(let i of t.matchAll(fs))i.index!==0&&!/^[\s'"`]/.test(t[i.index-1]??"")||e.push(i[0]);for(let i of t.matchAll(us))e.push(i[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=Cr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Ie).forEach(i=>{i.includes(n)&&(i=kr(i,r)),we(i)&&!ps.test(i)&&e.push(i)}),e}function Tr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return ds(Rr(t))}}}function Er(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let i=new Set(Array.from(r.activatedRules).map(o=>o[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([o])=>i.has(o))}if(n.length>0){let i=ue(n);return t.variablePrefix!=="un-"&&(i=i.replace(/--un-/g,`--${t.variablePrefix}`)),R(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${i}}`).join("")}}}}]}function ie(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:o||(o=!0,s=l),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(M(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let l of n){let a=l.length;if(a&&l===t.slice(s,s+a)&&o===0)return s===0||s===i-a?void 0:[t.slice(0,s),t.slice(s+a)]}}return[t,""]}function pe(t,e,r,n="(",i=")"){r=r??10;let o=[],s=0;for(;t!=="";){if(++s>r)return;let l=fe(t,n,i,e);if(!l)return;let[a,c]=l;o.push(a),t=c}if(o.length>0)return o}var wt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var jr=["%alpha","<alpha-value>"],hs=new RegExp(jr.map(t=>ne(t)).join("|"),"g");function oe(t=""){let e=ms(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(wt.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function ve(t){let e=t.alpha??1;return typeof e=="string"&&jr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(hs,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,wt.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ms(t){if(!t)return;let e=gs(t);if(e!=null||(e=bs(t),e!=null)||(e=xs(t),e!=null)||(e=ws(t),e!=null)||(e=Ss(t),e!=null))return e}function gs(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 r=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:e.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function bs(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=pe(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var ys=new RegExp(`^(${wt.join("|")})\\((.+)\\)$`,"i");function ws(t){let e=t.match(ys);if(!e)return;let[,r,n]=e,i=Ar(`${r} ${n}`);if(i){let{alpha:o,components:[s,...l]}=i;return{type:s,components:l,alpha:o}}}function Ss(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Ar(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function Ar(t){let e=pe(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 o=e.splice(r-2);e.push(o.join(" ")),--r}let n=pe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zr=new Uint8Array(64),$s=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);zr[t]=e,$s[e]=t}function Ce(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),t.write(zr[i])}while(n>0);return e}var Pr=1024*16,Vr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},St=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Pr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Pr&&(this.out+=Vr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Vr.decode(e.subarray(0,n)):r}};function Mr(t){let e=new St,r=0,n=0,i=0,o=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(44),a=Ce(e,f[0],a),f.length!==1&&(r=Ce(e,f[1],r),n=Ce(e,f[2],n),i=Ce(e,f[3],i),f.length!==4&&(o=Ce(e,f[4],o)))}}return e.flush()}var Ye=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Xe=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function vs(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Cs=vs(),$t=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Mr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Cs(this.toString())}};function ks(t){let e=t.split(`
3
3
  `),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,o)},1/0);return new Array(i+1).join(" ")}function Rs(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var Ts=Object.prototype.toString;function Es(t){return Ts.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let l=o-1,a=i-r[l];return{line:l,column:a}}}var js=/\w/,vt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.length-1,s=r.indexOf(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "66.3.1-beta.1",
4
+ "version": "66.3.1",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "66.3.1-beta.1",
39
- "@unocss/preset-uno": "66.3.1-beta.1",
40
- "@unocss/preset-attributify": "66.3.1-beta.1"
38
+ "@unocss/core": "66.3.1",
39
+ "@unocss/preset-attributify": "66.3.1",
40
+ "@unocss/preset-uno": "66.3.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Gt="preflights",Wf="shortcuts",Uf="imports",Po={[Uf]:-200,[Gt]:-100,[Wf]:-10,[Xe]:0};var Ht=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Ht)}var qt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function $n(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Yt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Xt=ye;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Df=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return Df.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Zt(e){return e!=null}function _o(){}var Jt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Qt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function Qe(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Lo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function If(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":If(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function er(e){return e&&typeof e=="object"&&!Array.isArray(e)}function kn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return er(n)&&er(o)&&Object.keys(o).forEach(s=>{er(n[s])&&er(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=kn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Wo(e){return M(e[0])}function Uo(e){return M(e[0])}var tr={};function Nf(e=["-",":"]){let t=e.join("|");return tr[t]||(tr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),tr[t].lastIndex=0,tr[t]}function Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let R of[...g.matchAll(/\S+/g)]){let V=h+R.index,v=a.get(V)?.items;v?a.delete(V):v=[{offset:V,length:R[0].length,className:R[0]}];for(let y of v)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(y)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Bo(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function Io(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Go(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(No in t)return t;t={...t},Object.defineProperty(t,No,{value:!0,enumerable:!1});let r=t.shortcuts?Go(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Ho(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Ko(...t)),exclude:ne(Ko(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(k).flatMap(Ho))).flat(),(b,z)=>b.name===z.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Po,...i.map(b=>b.layers));function c(b){return ne(i.flatMap(z=>k(z[b]||[])))}let l=c("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=qt),u&&!l.includes(u)&&l.unshift(u),l.sort((b,z)=>(b.order||0)-(z.order||0));let d=c("rules"),g={},m=d.length,h=d.filter(b=>Wo(b)?(k(b[2]?.prefix||"").forEach(w=>{g[w+b[0]]=b}),!1):!0).reverse(),x={templates:ne(i.flatMap(b=>k(b.autocomplete?.templates))),extractors:i.flatMap(b=>k(b.autocomplete?.extractors)).sort((b,z)=>(b.order||0)-(z.order||0)),shorthands:Yf(i.map(b=>b.autocomplete?.shorthands||{}))},R=c("separators");R.length||(R=[":","-"]);let V=c("content"),v=Hf(V),y={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(b=>b.theme)),rules:d,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((b,z)=>(b.order||0)-(z.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:R,details:r.details??r.envMode==="dev",content:v,transformers:$n(c("transformers"),(b,z)=>b.name===z.name)},j=c("extendTheme");for(let b of j)y.theme=b(y.theme,y)||y.theme;for(let b of i)b?.configResolved?.(y);return y}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>kn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Ko(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.3.1-beta.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Yt(s)&&Yt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Zt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(w):S).forEach(S=>{let A=S.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
1
+ "use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Gt="preflights",Wf="shortcuts",Uf="imports",Po={[Uf]:-200,[Gt]:-100,[Wf]:-10,[Xe]:0};var Ht=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Ht)}var qt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function $n(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Yt(e){return e instanceof Ze}function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Xt=ye;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Df=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return Df.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Zt(e){return e!=null}function _o(){}var Jt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Qt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function Qe(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Lo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function If(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":If(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function er(e){return e&&typeof e=="object"&&!Array.isArray(e)}function kn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return er(n)&&er(o)&&Object.keys(o).forEach(s=>{er(n[s])&&er(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=kn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Wo(e){return M(e[0])}function Uo(e){return M(e[0])}var tr={};function Nf(e=["-",":"]){let t=e.join("|");return tr[t]||(tr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),tr[t].lastIndex=0,tr[t]}function Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let R of[...g.matchAll(/\S+/g)]){let V=h+R.index,v=a.get(V)?.items;v?a.delete(V):v=[{offset:V,length:R[0].length,className:R[0]}];for(let y of v)y.className=y.className==="~"?u:y.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(y)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Bo(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function Io(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Go(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(No in t)return t;t={...t},Object.defineProperty(t,No,{value:!0,enumerable:!1});let r=t.shortcuts?Go(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Ho(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Ko(...t)),exclude:ne(Ko(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(k).flatMap(Ho))).flat(),(b,z)=>b.name===z.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Po,...i.map(b=>b.layers));function c(b){return ne(i.flatMap(z=>k(z[b]||[])))}let l=c("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=qt),u&&!l.includes(u)&&l.unshift(u),l.sort((b,z)=>(b.order||0)-(z.order||0));let d=c("rules"),g={},m=d.length,h=d.filter(b=>Wo(b)?(k(b[2]?.prefix||"").forEach(w=>{g[w+b[0]]=b}),!1):!0).reverse(),x={templates:ne(i.flatMap(b=>k(b.autocomplete?.templates))),extractors:i.flatMap(b=>k(b.autocomplete?.extractors)).sort((b,z)=>(b.order||0)-(z.order||0)),shorthands:Yf(i.map(b=>b.autocomplete?.shorthands||{}))},R=c("separators");R.length||(R=[":","-"]);let V=c("content"),v=Hf(V),y={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(b=>b.theme)),rules:d,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((b,z)=>(b.order||0)-(z.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:R,details:r.details??r.envMode==="dev",content:v,transformers:$n(c("transformers"),(b,z)=>b.name===z.name)},j=c("extendTheme");for(let b of j)y.theme=b(y.theme,y)||y.theme;for(let b of i)b?.configResolved?.(y);return y}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>kn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Ko(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.3.1";var ve={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Yt(s)&&Yt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ve,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Zt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(w):S).forEach(S=>{let A=S.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
2
2
  `,d=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async w=>{if(g.has(w))return;let S=await this.parseToken(w);if(S!=null){g instanceof Map?g.set(w,{data:S,count:Yt(l)?l.getCount(w):-1}):g.add(w);for(let A of S){let J=A[3]||"",Q=A[4]?.layer;m.has(J)||m.set(J,[]),m.get(J).push(A),Q&&d.add(Q)}}});await Promise.all(x),await(async()=>{if(!i)return;let w={generator:this,theme:this.config.theme},S=new Set([]);this.config.preflights.forEach(({layer:A=Gt})=>{d.add(A),S.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(S).map(async A=>{let Q=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||Gt)===A).map(async ce=>await ce.getCSS(w)))).filter(Boolean).join(u);return[A,Q]})))})();let R=this.config.sortLayers(Array.from(d).sort((w,S)=>(this.config.layers[w]??0)-(this.config.layers[S]??0)||w.localeCompare(S))),V={},v=this.config.outputToCssLayers,y=w=>{let S=w;return typeof v=="object"&&(S=v.cssLayerName?.(w)),S===null?null:S??w},j=(w=Xe)=>{if(V[w])return V[w];let S=Array.from(m).sort((Q,ce)=>(this.parentOrders.get(Q[0])??0)-(this.parentOrders.get(ce[0])??0)||Q[0]?.localeCompare(ce[0]||"")||0).map(([Q,ce])=>{let C=ce.length,O=ce.filter(D=>(D[4]?.layer||Xe)===w).sort((D,le)=>D[0]-le[0]||(D[4]?.sort||0)-(le[4]?.sort||0)||D[5]?.currentSelector?.localeCompare(le[5]?.currentSelector??"")||D[1]?.localeCompare(le[1]||"")||D[2]?.localeCompare(le[2]||"")||0).map(([,D,le,,Kt,,yn])=>[[[(D&&Qf(D,o))??"",Kt?.sort??0]],le,!!(yn??Kt?.noMerge)]);if(!O.length)return;let B=O.reverse().map(([D,le,Kt],yn)=>{if(!Kt&&this.config.mergeSelectors)for(let Ce=yn+1;Ce<C;Ce++){let de=O[Ce];if(de&&!de[2]&&(D&&de[0]||D==null&&de[0]==null)&&de[1]===le)return D&&de[0]&&de[0].push(...D),null}let vn=D?ne(D.sort((Ce,de)=>Ce[1]-de[1]||Ce[0]?.localeCompare(de[0]||"")||0).map(Ce=>Ce[0]).filter(Boolean)):[];return vn.length?`${vn.join(`,${u}`)}{${le}}`:le}).filter(Boolean),I=Array.from(new Set(B)).reverse().join(u);if(!Q)return I;let Z=Q.split(" $$ ");return`${Z.join("{")}{${u}${I}${u}${"}".repeat(Z.length)}`}).filter(Boolean).join(u);i&&(S=[h[w],S].filter(Boolean).join(u));let A;v&&S&&(A=y(w),A!==null&&(S=`@layer ${A}{${u}${S}${u}}`));let J=a?"":`/* layer: ${w}${A&&A!==w?`, alias: ${A}`:""} */${u}`;return V[w]=S?J+S:""},b=(w=R,S)=>{let A=w.filter(J=>!S?.includes(J));return[v&&A.length>0?`@layer ${A.map(y).filter(Zt).join(", ")};`:void 0,...A.map(J=>j(J)||"")].filter(Boolean).join(u)};return{get css(){return b()},layers:R,matched:g,getLayers:b,getLayer:j,setLayer:async(w,S)=>{let A=await S(j(w));return V[w]=A,A}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(M(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=d.map(m=>{let h=m.matcher??l,x=[m,...a],R=new Set(c);return R.add(u),[i[0],h,x,R]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,u)=>(l.order||0)-(u.order||0)).reduceRight((l,u)=>d=>{let g=u.body?.(d.entries)||d.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(d.selector,g);return(u.handle??tu)({...d,entries:g,selector:h||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:u.layer||d.layer,sort:u.sort||d.sort},l)},l=>l)({prefix:"",selector:eu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=Qe(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,d);for(let m of this.config.rulesDynamic){let[h,x,R]=m;if(R?.internal&&!n)continue;let V=l;if(R?.prefix){let b=k(R.prefix);if(o){let z=k(o);if(!b.some(w=>z.includes(w)))continue}else{let z=b.find(w=>l.startsWith(w));if(z==null)continue;V=l.slice(z.length)}}let v=V.match(h);if(!v)continue;let y=await x(v,d);if(!y)continue;if(typeof y!="string")if(Symbol.asyncIterator in y){let b=[];for await(let z of y)z&&b.push(z);y=b}else Symbol.iterator in y&&!Array.isArray(y)&&(y=Array.from(y).filter(Zt));let j=this.resolveCSSResult(c,y,m,d);if(j)return j}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Lo(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=o.generator.config.rules.indexOf(n),a=n[2];return i.map(c=>{if(M(c))return[s,c,a];let l=o.variantHandlers,u=a;for(let d of c)d[0]===ve.variants?typeof d[1]=="function"?l=d[1](l)||l:l=[...k(d[1]),...l]:d[0]===ve.parent?l=[{parent:d[1]},...l]:d[0]===ve.selector?l=[{selector:d[1]},...l]:d[0]===ve.layer?l=[{layer:d[1]},...l]:d[0]===ve.sort?u={...u,sort:d[1]}:d[0]===ve.noMerge&&(u={...u,noMerge:d[1]});return[s,t,c,u,l]})}};stringifyUtil(t,r){if(!t)return;if(wn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:u,sort:d,...g}=t[3]??{},m={...g,layer:s??u,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:_o,i,s,a,c;for(let l of this.config.shortcuts){let u=t;if(l[2]?.prefix){let g=k(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;u=t.slice(g.length)}if(Uo(l)){if(l[0]===u){i=i||l[2],s=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(k(s).filter(M).map(l=>Bo(l.trim()).split(/\s+/g)).flat()),c=k(s).filter(l=>!M(l)).map(l=>({handles:[],value:l}))),!s){let l=M(t)?await this.matchVariants(t):[t];for(let u of l){let[d,g,m]=u;if(d!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(M).map(x=>d.replace(g,x)),c=h[0].filter(x=>!M(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(k(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Qt,s=(await Promise.all(ne(n).map(async u=>{let d=M(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Qe(u.value),void 0,u.handles]];return!d&&this.config.warn&&Io(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[a,,c]=t,l=[];for(let u of s){if(wn(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:d,entries:g,parent:m,sort:h,noMerge:x,layer:R}=this.applyVariants(u,[...u[4],...c],a);i.getFallback(R??o.layer,new Jt).getFallback(d,m,[[],u[0]])[0].push([g,!!(x??u[3]?.noMerge),h??0])}return l.concat(i.flatMap((u,d)=>u.map(([g,m],h,x)=>{let R=(v,y,j)=>{let b=Math.max(...j.map(w=>w[1])),z=j.map(w=>w[0]);return(v?[z.flat(1)]:z).map(w=>{let S=Le(w);if(S)return[m,h,S,x,{...o,noMerge:y,sort:b,layer:d},r,void 0]})};return[[g.filter(([,v])=>v).map(([v,,y])=>[v,y]),!0],[g.filter(([,v])=>!v).map(([v,,y])=>[v,y]),!1]].map(([v,y])=>[...R(!1,y,v.filter(([j])=>j.some(b=>b[0]===ve.shortcutsNoMerge))),...R(!0,y,v.filter(([j])=>j.every(b=>b[0]!==ve.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Xo(e,t){return await Cn.create(e,t)}var Zo=/\s\$\$\s+/g;function Jf(e){return Zo.test(e)}function Qf(e,t){return Jf(e)?e.replace(Zo,t?` ${t} `:" "):t?`${t} ${e}`:e}var Yo=/^\[(.+?)(~?=)"(.*)"\]$/;function eu(e){return Yo.test(e)?e.replace(Yo,(t,r,n,o)=>`[${Xt(r)}${n}"${Xt(o)}"]`):`.${Xt(e)}`}function tu(e,t){return t(e)}function ru(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Jo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ru(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function Qo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var nu=/\/\/#\s*sourceMappingURL=.*\n?/g;function ei(e){return e.includes("sourceMappingURL=")?e.replace(nu,""):e}var ou=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,iu=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,su=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function au(e){let t=[];for(let o of e.matchAll(iu))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(ou))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Jo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Ht).forEach(o=>{o.includes(n)&&(o=Qo(o,r)),Mo(o)&&!su.test(o)&&t.push(o)}),t}function ti(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return au(ei(e))}}}function ri(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),k(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ee(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=fe(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var Rn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var ni=["%alpha","<alpha-value>"],cu=new RegExp(ni.map(e=>Re(e)).join("|"),"g");function q(e=""){let t=lu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Rn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&ni.includes(t)?1:t}function T(e,t){if(typeof e=="string")return e.replace(cu,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Rn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function lu(e){if(!e)return;let t=fu(e);if(t!=null||(t=uu(e),t!=null)||(t=pu(e),t!=null)||(t=mu(e),t!=null)||(t=gu(e),t!=null))return t}function fu(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function uu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function pu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var du=new RegExp(`^(${Rn.join("|")})\\((.+)\\)$`,"i");function mu(e){let t=e.match(du);if(!t)return;let[,r,n]=t,o=oi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function gu(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=oi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function oi(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci=new Uint8Array(64),hu=new Uint8Array(128);for(let e=0;e<ii.length;e++){let t=ii.charCodeAt(e);ci[e]=t,hu[t]=e}function et(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(ci[o])}while(n>0);return t}var si=1024*16,ai=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},En=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(si)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===si&&(this.out+=ai.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+ai.decode(t.subarray(0,n)):r}};function li(e){let t=new En,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(44),c=et(t,u[0],c),u.length!==1&&(r=et(t,u[1],r),n=et(t,u[2],n),o=et(t,u[3],o),u.length!==4&&(i=et(t,u[4],i)))}}return t.flush()}var rr=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},nr=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function bu(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var xu=bu(),Tn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=li(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+xu(this.toString())}};function yu(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function vu(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var $u=Object.prototype.toString;function wu(e){return $u.call(e)==="[object Object]"}function fi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var ku=/\w/,jn=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`