@unocss/runtime 66.4.0 → 66.4.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.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -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",Dt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Dt]:-100,[Yf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Ht=J;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 qt(e){return e!=null}function Bo(){}var Yt=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)))}},Xt=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 F(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 Zt(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 Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(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 F(e[0])}function No(e){return F(e[0])}var Jt={};function tu(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[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,p,g,m)=>{if(!t.includes(p))return l;o=!0,s.add(u+p);let h=m+u.length+p.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,p]of a)c+=e.slice(l,u),c+=p.items.map(g=>g.className).join(" "),l=u+p.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(p=>p.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=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>S(j[v]||[])))}let l=c("extractors"),u=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),g={},m=p.length,h=p.filter(v=>Do(v)?(S(v[2]?.prefix||"").forEach(k=>{g[k+v[0]]=v}),!1):!0).reverse(),x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}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.4.0";var $e={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(Gt(s)&&Gt(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:$e,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(qt)},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=F(t)?await this.applyExtractors(t,n,c?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(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}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",Dt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Dt]:-100,[Yf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Ht=J;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 qt(e){return e!=null}function Bo(){}var Yt=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)))}},Xt=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 F(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 Zt(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 Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(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 F(e[0])}function No(e){return F(e[0])}var Jt={};function tu(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[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,p,g,m)=>{if(!t.includes(p))return l;o=!0,s.add(u+p);let h=m+u.length+p.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,p]of a)c+=e.slice(l,u),c+=p.items.map(g=>g.className).join(" "),l=u+p.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(p=>p.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=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>S(j[v]||[])))}let l=c("extractors"),u=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),g={},m=p.length,h=p.filter(v=>Do(v)?(S(v[2]?.prefix||"").forEach(k=>{g[k+v[0]]=v}),!1):!0).reverse(),x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:wn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}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.4.1";var $e={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(Gt(s)&&Gt(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:$e,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(qt)},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=F(t)?await this.applyExtractors(t,n,c?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(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}let u=a?"":`
|
|
2
2
|
`,p=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async k=>{if(g.has(k))return;let R=await this.parseToken(k);if(R!=null){g instanceof Map?g.set(k,{data:R,count:Gt(l)?l.getCount(k):-1}):g.add(k);for(let P of R){let ee=P[3]||"",te=P[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(P),te&&p.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:P=Dt})=>{p.add(P),R.add(P)}),h=Object.fromEntries(await Promise.all(Array.from(R).map(async P=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Dt)===P).map(async le=>await le.getCSS(k)))).filter(Boolean).join(u);return[P,te]})))})();let $=this.config.sortLayers(Array.from(p).sort((k,R)=>(this.config.layers[k]??0)-(this.config.layers[R]??0)||k.localeCompare(R))),C={},y=this.config.outputToCssLayers,b=k=>{let R=k;return typeof y=="object"&&(R=y.cssLayerName?.(k)),R===null?null:R??k},T=(k=Xe)=>{if(C[k])return C[k];let R=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===k).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,It,,vn])=>[[[(I&&fu(I,o))??"",It?.sort??0]],fe,!!(vn??It?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,It],vn)=>{if(!It&&this.config.mergeSelectors)for(let Re=vn+1;Re<E;Re++){let he=V[Re];if(he&&!he[2]&&(I&&he[0]||I==null&&he[0]==null)&&he[1]===fe)return I&&he[0]&&he[0].push(...I),null}let $n=I?ue(I.sort((Re,he)=>Re[1]-he[1]||Re[0]?.localeCompare(he[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return $n.length?`${$n.join(`,${u}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${u}${D}${u}${"}".repeat(Q.length)}`}).filter(Boolean).join(u);i&&(R=[h[k],R].filter(Boolean).join(u));let P;y&&R&&(P=b(k),P!==null&&(R=`@layer ${P}{${u}${R}${u}}`));let ee=a?"":`/* layer: ${k}${P&&P!==k?`, alias: ${P}`:""} */${u}`;return C[k]=R?ee+R:""},v=(k=$,R)=>{let P=k.filter(ee=>!R?.includes(ee));return[y&&P.length>0?`@layer ${P.map(b).filter(qt).join(", ")};`:void 0,...P.map(ee=>T(ee)||"")].filter(Boolean).join(u)};return{get css(){return v()},layers:$,matched:g,getLayers:v,getLayer:T,setLayer:async(k,R)=>{let P=await R(T(k));return C[k]=P,P}}}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 p=await u.match(l,n);if(p){if(F(p)){if(p===l)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=p.map(m=>{let h=m.matcher??l,x=[m,...a],$=new Set(c);return $.add(u),[i[0],h,x,$]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=p.matcher??l,a.unshift(p),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)=>p=>{let g=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(p.selector,g);return(u.handle??pu)({...p,entries:g,selector:h||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.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(F(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=F(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,p);for(let m of this.config.rulesDynamic){let[h,x,$]=m;if($?.internal&&!n)continue;let C=l;if($?.prefix){let v=S($.prefix);if(o){let j=S(o);if(!v.some(k=>j.includes(k)))continue}else{let j=v.find(k=>l.startsWith(k));if(j==null)continue;C=l.slice(j.length)}}let y=C.match(h);if(!y)continue;let b=await x(y,p);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let v=[];for await(let j of b)j&&v.push(j);b=v}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(qt));let T=this.resolveCSSResult(c,b,m,p);if(T)return T}},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(F(c))return[s,c,a];let l=o.variantHandlers,u=a;for(let p of c)p[0]===$e.variants?typeof p[1]=="function"?l=p[1](l)||l:l=[...S(p[1]),...l]:p[0]===$e.parent?l=[{parent:p[1]},...l]:p[0]===$e.selector?l=[{selector:p[1]},...l]:p[0]===$e.layer?l=[{layer:p[1]},...l]:p[0]===$e.sort?u={...u,sort:p[1]}:p[0]===$e.noMerge&&(u={...u,noMerge:p[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:p,...g}=t[3]??{},m={...g,layer:s??u,sort:a??p};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 p=u.match(l[0]);if(p&&(s=l[1](p,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ue(S(s).filter(F).map(l=>Ko(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let u of l){let[p,g,m]=u;if(p!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(F).map(x=>p.replace(g,x)),c=h[0].filter(x=>!F(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 Xt,s=(await Promise.all(ue(n).map(async u=>{let p=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(u.value),void 0,u.handles]];return!p&&this.config.warn&&Ho(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[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:p,entries:g,parent:m,sort:h,noMerge:x,layer:$}=this.applyVariants(u,[...u[4],...c],a);i.getFallback($??o.layer,new Yt).getFallback(p,m,[[],u[0]])[0].push([g,!!(x??u[3]?.noMerge),h??0])}return l.concat(i.flatMap((u,p)=>u.map(([g,m],h,x)=>{let $=(y,b,T)=>{let v=Math.max(...T.map(k=>k[1])),j=T.map(k=>k[0]);return(y?[j.flat(1)]:j).map(k=>{let R=Le(k);if(R)return[m,h,R,x,{...o,noMerge:b,sort:v,layer:p},r,void 0]})};return[[g.filter(([,y])=>y).map(([y,,b])=>[y,b]),!0],[g.filter(([,y])=>!y).map(([y,,b])=>[y,b]),!1]].map(([y,b])=>[...$(!1,b,y.filter(([T])=>T.some(v=>v[0]===$e.shortcutsNoMerge))),...$(!0,b,y.filter(([T])=>T.every(v=>v[0]!==$e.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):F(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):F(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)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(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="",p=l]=l.match(En)||[];if(p==="~"||n&&p==="true"||!p)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&&p.match(/^[\d.]+$/)){let g=u.split(/([^:]*:)/g).filter(Boolean),m=g.pop()+p,h=g.join("");return[{matcher:`${u}${c}-${p}`},{matcher:`${h}${c}-${m}`}]}return`${u}${c}-${p}`}}}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[,b,T]=y,v=y.index+b.length;if(r>v&&r<=v+T.length){i=v,o=T;break}}if(!o)return null;let s=o.matchAll(mu),a=0,c,l;for(let y of s){let[b,T,v]=y,j=i+y.index;if(r>j&&r<=j+b.length){a=j,c=T,l=v?.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 p=u?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:p,resolveReplacement(y){let b=u?e.prefix.length:0;return{start:a+b,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[,$="",C]=x.match(En)||[];return{extracted:`${$}${p}-${C}`,transformSuggestions(y){return y.filter(b=>b.startsWith(`${$}${p}-`)).map(b=>$+b.slice($.length+p.length+1))},resolveReplacement(y){return{start:h+g,end:h+g+x.length,replacement:$+y.slice($.length+p.length+1)}}}}}}var hu=["v-bind:",":"],ii=/[\s'"`;]+/g,Tn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,gu=/(\?|(?!\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(gu))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of hu)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(Nt).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 re(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 pe(e,t,r,n){if(e===""||(F(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=pe(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=>K(e)).join("|"),"g");function Y(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 ie(e){let t=e.alpha??1;return typeof t=="string"&&di.includes(t)?1:t}function A(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 hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xi=new Uint8Array(64),Ou=new Uint8Array(128);for(let e=0;e<hi.length;e++){let t=hi.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 gi=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(gi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===gi&&(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 Qt=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))}},er=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 D(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,a,l,d,y)=>{if(!e.includes(l))return i;s=!0,u.add(a+l);let R=y+a.length+l.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==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${l}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let c;if(typeof n=="string"){c="";let i=0;for(let[a,l]of f)c+=n.slice(i,a),c+=l.items.map(d=>d.className).join(" "),i=a+l.length;c+=n.slice(i)}else{c=n;for(let[i,a]of f)c.overwrite(i,i+a.length,a.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return c.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=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Re(...e)),exclude:D(Re(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}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 c(p){return D(o.flatMap(T=>U(T[p]||[])))}let i=c("extractors"),a=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!i.includes(a)&&i.unshift(a),i.sort((p,T)=>(p.order||0)-(T.order||0));let l=c("rules"),d={},y=l.length,R=l.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:D(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=c("separators");E.length||(E=[":","-"]);let $=c("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:c("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:l,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(c("transformers"),(p,T)=>p.name===T.name)},V=c("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.4.0";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((c,i)=>i(c)??c,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(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async c=>{let i=this.makeContext(e,[t||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let a=await this.expandShortcut(i.currentSelector,i);return a?await this.stringifyShortcuts(i.variantMatch,i,a[0],a[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);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:c=!1}=t,i=P(e)?await this.applyExtractors(e,r,c?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 a=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 D(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,a,l,d,y)=>{if(!e.includes(l))return i;s=!0,u.add(a+l);let R=y+a.length+l.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==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${l}$2`),v.items.push(S)}return"$".repeat(i.length)}),t-=1;while(s&&t);let c;if(typeof n=="string"){c="";let i=0;for(let[a,l]of f)c+=n.slice(i,a),c+=l.items.map(d=>d.className).join(" "),i=a+l.length;c+=n.slice(i)}else{c=n;for(let[i,a]of f)c.overwrite(i,i+a.length,a.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return c.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=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Re(...e)),exclude:D(Re(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}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 c(p){return D(o.flatMap(T=>U(T[p]||[])))}let i=c("extractors"),a=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!i.includes(a)&&i.unshift(a),i.sort((p,T)=>(p.order||0)-(T.order||0));let l=c("rules"),d={},y=l.length,R=l.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{d[m+p[0]]=p}),!1):!0).reverse(),v={templates:D(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=c("separators");E.length||(E=[":","-"]);let $=c("content"),x=He($),S={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:c("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:l,rulesSize:y,rulesDynamic:R,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(me).sort((p,T)=>(p.order||0)-(T.order||0)),shortcuts:Ee(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(c("transformers"),(p,T)=>p.name===T.name)},V=c("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.4.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((c,i)=>i(c)??c,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(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async c=>{let i=this.makeContext(e,[t||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let a=await this.expandShortcut(i.currentSelector,i);return a?await this.stringifyShortcuts(i.variantMatch,i,a[0],a[1]):(await this.parseUtil(i.variantMatch,i))?.map(d=>this.stringifyUtil(d,i)).filter(J)},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);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:c=!1}=t,i=P(e)?await this.applyExtractors(e,r,c?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 a=f?"":`
|
|
2
2
|
`,l=new Set([G]),d=c?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 O=b[3]||"",k=b[4]?.layer;y.has(O)||y.set(O,[]),y.get(O).push(b),k&&l.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})=>{l.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(_=>(_.layer||W)===b).map(async _=>await _.getCSS(m)))).filter(Boolean).join(a);return[b,k]})))})();let E=this.config.sortLayers(Array.from(l).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,_)=>(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(_[0])??0)||k[0]?.localeCompare(_[0]||"")||0).map(([k,_])=>{let h=_.length,C=_.filter(A=>(A[4]?.layer||G)===m).sort((A,L)=>A[0]-L[0]||(A[4]?.sort||0)-(L[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(L[5]?.currentSelector??"")||A[1]?.localeCompare(L[1]||"")||A[2]?.localeCompare(L[2]||"")||0).map(([,A,L,,z,,re])=>[[[(A&&qe(A,s))??"",z?.sort??0]],L,!!(re??z?.noMerge)]);if(!C.length)return;let w=C.reverse().map(([A,L,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]===L)return A&&F[0]&&F[0].push(...A),null}let se=A?D(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(`,${a}`)}{${L}}`:L}).filter(Boolean),M=Array.from(new Set(w)).reverse().join(a);if(!k)return M;let j=k.split(" $$ ");return`${j.join("{")}{${a}${M}${a}${"}".repeat(j.length)}`}).filter(Boolean).join(a);o&&(g=[R[m],g].filter(Boolean).join(a));let b;x&&g&&(b=S(m),b!==null&&(g=`@layer ${b}{${a}${g}${a}}`));let O=f?"":`/* layer: ${m}${b&&b!==m?`, alias: ${b}`:""} */${a}`;return $[m]=g?O+g:""},p=(m=E,g)=>{let b=m.filter(O=>!g?.includes(O));return[x&&b.length>0?`@layer ${b.map(S).filter(J).join(", ")};`:void 0,...b.map(O=>V(O)||"")].filter(Boolean).join(a)};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,c]=o;for(;u;){u=!1;let i=o[1];for(let a of this.config.variants){if(!a.multiPass&&c.has(a))continue;let l=await a.match(i,r);if(l){if(P(l)){if(l===i)continue;l={matcher:l}}if(Array.isArray(l)){if(!l.length)continue;if(l.length===1)l=l[0];else{if(a.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=l.map(y=>{let R=y.matcher??i,v=[y,...f],E=new Set(c);return E.add(a),[o[0],R,v,E]});return(await Promise.all(d.map(y=>s(y)))).flat()}}o[1]=l.matcher??i,f.unshift(l),c.add(a),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,a)=>(i.order||0)-(a.order||0)).reduceRight((i,a)=>l=>{let d=a.body?.(l.entries)||l.entries,y=Array.isArray(a.parent)?a.parent:[a.parent,void 0],R=a.selector?.(l.selector,d);return(a.handle??Je)({...l,entries:d,selector:R||l.selector,parent:y[0]||l.parent,parentOrder:y[1]||l.parentOrder,layer:a.layer||l.layer,sort:a.sort||l.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 c={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(c);return c}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]),c=`${o}{${te(u)}}`;return f?`${f}{${c}}`:c}async parseUtil(e,t,r=!1,s){let o=P(e)?await this.matchVariants(e):[e],u=async([c,i,a])=>{this.config.details&&(t.rules=t.rules??[]);let l={...t,variantHandlers:a},d=this.config.rulesStaticMap[i];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(c,d[1],d,l);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,l);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(c,S,y,l);if(V)return V}},f=(await Promise.all(o.map(c=>u(c)))).flat().filter(c=>!!c);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(c=>{if(P(c))return[u,c,f];let i=s.variantHandlers,a=f;for(let l of c)l[0]===I.variants?typeof l[1]=="function"?i=l[1](i)||i:i=[...U(l[1]),...i]:l[0]===I.parent?i=[{parent:l[1]},...i]:l[0]===I.selector?i=[{selector:l[1]},...i]:l[0]===I.layer?i=[{layer:l[1]},...i]:l[0]===I.sort?a={...a,sort:l[1]}:l[0]===I.noMerge&&(a={...a,noMerge:l[1]});return[u,e,c,a,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:c}=this.applyVariants(e),i=te(s);if(!i)return;let{layer:a,sort:l,...d}=e[3]??{},y={...d,layer:u??a,sort:f??l};return[e[0],r,i,o,y,this.config.details?t:void 0,c]}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,c;for(let i of this.config.shortcuts){let a=e;if(i[2]?.prefix){let d=U(i[2].prefix).find(y=>e.startsWith(y));if(d==null)continue;a=e.slice(d.length)}if(Se(i)){if(i[0]===a){o=o||i[2],u=i[1],s(i);break}}else{let l=a.match(i[0]);if(l&&(u=i[1](l,t)),u){o=o||i[2],s(i);break}}}if(u&&(f=D(U(u).filter(P).map(i=>xe(i.trim()).split(/\s+/g)).flat()),c=U(u).filter(i=>!P(i)).map(i=>({handles:[],value:i}))),!u){let i=P(e)?await this.matchVariants(e):[e];for(let a of i){let[l,d,y]=a;if(l!==d){let R=await this.expandShortcut(d,t,r-1);R&&(f=R[0].filter(P).map(v=>l.replace(d,v)),c=R[0].filter(v=>!P(v)).map(v=>({handles:[...v.handles,...y],value:v.value})))}}}if(!(!f?.length&&!c?.length))return[[await Promise.all(U(f).map(async i=>(await this.expandShortcut(i,t,r-1))?.[0]||[i])),c].flat(2).filter(i=>!!i),o]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let o=new X,u=(await Promise.all(D(r).map(async a=>{let l=P(a)?await this.parseUtil(a,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(a.value),void 0,a.handles]];return!l&&this.config.warn&&Ce(`unmatched utility "${a}" in shortcut "${e[1]}"`),l||[]}))).flat(1).filter(Boolean).sort((a,l)=>a[0]-l[0]),[f,,c]=e,i=[];for(let a of u){if(oe(a)){i.push([a[0],void 0,a[1],void 0,a[2],t,void 0]);continue}let{selector:l,entries:d,parent:y,sort:R,noMerge:v,layer:E}=this.applyVariants(a,[...a[4],...c],f);o.getFallback(E??s.layer,new Q).getFallback(l,y,[[],a[0]])[0].push([d,!!(v??a[3]?.noMerge),R??0])}return i.concat(o.flatMap((a,l)=>a.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:l},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 je(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 Oe(n){return n.replace(/&/g,"&").replace(/>/g,">").replace(/</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(je(t.createElement("div").style)),o.configResolved?.(s,u);let c=await Me(s,u),i=h=>o.inject?o.inject(h):r().prepend(h),a=()=>o.rootElement?o.rootElement():t.body,l=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=l.get(h);if(!w)if(w=t.createElement("style"),w.setAttribute("data-unocss-runtime-layer",h),l.set(h,w),C==null)i(w);else{let M=S(C),j=M.parentNode;j?j.insertBefore(w,M.nextSibling):i(w)}return w}async function V(){let h=[...y],C=await c.generate(h);return C.layers.reduce((M,j)=>(S(j,M).innerHTML=C.getLayer(j)??"",j),void 0),h.filter(M=>!C.matched.has(M)).forEach(M=>y.delete(M)),{...C,getStyleElement:M=>l.get(M),getStyleElements:()=>l}}async function p(h){let C=y.size;await c.applyExtractors(h,void 0,y),C!==y.size&&await $()}async function T(h=a()){let C=h&&h.outerHTML;C&&(await p(`${C} ${Oe(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 l)if(w===M[1])return;if(C.type==="childList")C.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let j=M;R&&!R(j)||(await p(j.outerHTML),x(j))});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(" "),j=`<${w.tagName.toLowerCase()} ${M}>`;await p(j)}x(w)}})}),g=!1;function b(){if(g)return;let h=o.observer?.target?o.observer.target():a();h&&(m.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),g=!0)}function O(){o.bypassDefined&&Xe(c.blocked),T(),b()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",O):O()}let _=e.__unocss_runtime=e.__unocss_runtime={version:c.version,uno:c,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?.(_)!==!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",Nt="preflights",iu="shortcuts",su="imports",Io={[su]:-200,[Nt]:-100,[iu]:-10,[Xe]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function au(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return au(e)}};function C(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Ht(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 qt=J;function Do(){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 cu=/^\[(.+?)~?="(.*)"\]$/;var lu=/[\w\u00A0-\uFFFF%-?]/;function No(e){return e.match(cu)}function Je(e=""){return lu.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function Rn(e){return e.length===3}function Yt(e){return e!=null}function Go(){}var Xt=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)))}},Zt=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 F(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 Le(e){return e==null?"":fu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Jt(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 Jt(n)&&Jt(o)&&Object.keys(o).forEach(s=>{Jt(n[s])&&Jt(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 F(e[0])}function Yo(e){return F(e[0])}var Qt={};function uu(e=["-",":"]){let t=e.join("|");return Qt[t]||(Qt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Qt[t].lastIndex=0,Qt[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,(l,f,p,m,h)=>{if(!t.includes(p))return l;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:l.length,items:[]};a.set(h,b);for(let $ of[...m.matchAll(/\S+/g)]){let S=g+$.index,y=a.get(S)?.items;y?a.delete(S):y=[{offset:S,length:$[0].length,className:$[0]}];for(let x of y)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(x)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,p]of a)c+=e.slice(l,f),c+=p.items.map(m=>m.className).join(" "),l=f+p.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.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 C(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=C(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(C).flatMap(ri))).flat();return[t,...r]}function mu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(ei(...t)),exclude:ue(ei(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function En(e={},t={}){let r=Object.assign({},t,e),n=Cn((await Promise.all((r.presets||[]).flatMap(C).flatMap(ri))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Io,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>C(j[v]||[])))}let l=c("extractors"),f=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),m={},h=p.length,g=p.filter(v=>qo(v)?(C(v[2]?.prefix||"").forEach(k=>{m[k+v[0]]=v}),!1):!0).reverse(),b={templates:ue(i.flatMap(v=>C(v.autocomplete?.templates))),extractors:i.flatMap(v=>C(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:gu(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let S=c("content"),y=mu(S),x={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:hu(i.map(v=>v.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:b,variants:c("variants").map(Ko).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:ti(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:Cn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)x.theme=v(x.theme,x)||x.theme;for(let v of i)v?.configResolved?.(x);return x}function hu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>tt(t,r),{})}function gu(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.4.0";var $e={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=Do();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(Ht(s)&&Ht(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:$e,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 f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(m=>this.stringifyUtil(m,l)).filter(Yt)},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=F(t)?await this.applyExtractors(t,n,c?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(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}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",Nt="preflights",iu="shortcuts",su="imports",Io={[su]:-200,[Nt]:-100,[iu]:-10,[Xe]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function au(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return au(e)}};function C(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Ht(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 qt=J;function Do(){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 cu=/^\[(.+?)~?="(.*)"\]$/;var lu=/[\w\u00A0-\uFFFF%-?]/;function No(e){return e.match(cu)}function Je(e=""){return lu.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function Rn(e){return e.length===3}function Yt(e){return e!=null}function Go(){}var Xt=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)))}},Zt=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 F(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 Le(e){return e==null?"":fu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Jt(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 Jt(n)&&Jt(o)&&Object.keys(o).forEach(s=>{Jt(n[s])&&Jt(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 F(e[0])}function Yo(e){return F(e[0])}var Qt={};function uu(e=["-",":"]){let t=e.join("|");return Qt[t]||(Qt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Qt[t].lastIndex=0,Qt[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,(l,f,p,m,h)=>{if(!t.includes(p))return l;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:l.length,items:[]};a.set(h,b);for(let $ of[...m.matchAll(/\S+/g)]){let S=g+$.index,y=a.get(S)?.items;y?a.delete(S):y=[{offset:S,length:$[0].length,className:$[0]}];for(let x of y)x.className=x.className==="~"?f:x.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(x)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,p]of a)c+=e.slice(l,f),c+=p.items.map(m=>m.className).join(" "),l=f+p.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.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 C(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=C(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(C).flatMap(ri))).flat();return[t,...r]}function mu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(ei(...t)),exclude:ue(ei(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function En(e={},t={}){let r=Object.assign({},t,e),n=Cn((await Promise.all((r.presets||[]).flatMap(C).flatMap(ri))).flat(),(v,j)=>v.name===j.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Io,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(j=>C(j[v]||[])))}let l=c("extractors"),f=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((v,j)=>(v.order||0)-(j.order||0));let p=c("rules"),m={},h=p.length,g=p.filter(v=>qo(v)?(C(v[2]?.prefix||"").forEach(k=>{m[k+v[0]]=v}),!1):!0).reverse(),b={templates:ue(i.flatMap(v=>C(v.autocomplete?.templates))),extractors:i.flatMap(v=>C(v.autocomplete?.extractors)).sort((v,j)=>(v.order||0)-(j.order||0)),shorthands:gu(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let S=c("content"),y=mu(S),x={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:hu(i.map(v=>v.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:b,variants:c("variants").map(Ko).sort((v,j)=>(v.order||0)-(j.order||0)),shortcuts:ti(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:Cn(c("transformers"),(v,j)=>v.name===j.name)},T=c("extendTheme");for(let v of T)x.theme=v(x.theme,x)||x.theme;for(let v of i)v?.configResolved?.(x);return x}function hu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>tt(t,r),{})}function gu(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.4.1";var $e={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=Do();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(Ht(s)&&Ht(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:$e,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 f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(m=>this.stringifyUtil(m,l)).filter(Yt)},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=F(t)?await this.applyExtractors(t,n,c?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(R=>typeof R=="function"?R(k):R).forEach(R=>{let P=R.trim();P&&!l.has(P)&&l.add(P)})}let f=a?"":`
|
|
2
2
|
`,p=new Set([Xe]),m=c?new Map:new Set,h=new Map,g={},b=Array.from(l).map(async k=>{if(m.has(k))return;let R=await this.parseToken(k);if(R!=null){m instanceof Map?m.set(k,{data:R,count:Ht(l)?l.getCount(k):-1}):m.add(k);for(let P of R){let ee=P[3]||"",te=P[4]?.layer;h.has(ee)||h.set(ee,[]),h.get(ee).push(P),te&&p.add(te)}}});await Promise.all(b),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:P=Nt})=>{p.add(P),R.add(P)}),g=Object.fromEntries(await Promise.all(Array.from(R).map(async P=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Nt)===P).map(async le=>await le.getCSS(k)))).filter(Boolean).join(f);return[P,te]})))})();let $=this.config.sortLayers(Array.from(p).sort((k,R)=>(this.config.layers[k]??0)-(this.config.layers[R]??0)||k.localeCompare(R))),S={},y=this.config.outputToCssLayers,x=k=>{let R=k;return typeof y=="object"&&(R=y.cssLayerName?.(k)),R===null?null:R??k},T=(k=Xe)=>{if(S[k])return S[k];let R=Array.from(h).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===k).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,Dt,,kn])=>[[[(I&&vu(I,o))??"",Dt?.sort??0]],fe,!!(kn??Dt?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,Dt],kn)=>{if(!Dt&&this.config.mergeSelectors)for(let Re=kn+1;Re<E;Re++){let he=V[Re];if(he&&!he[2]&&(I&&he[0]||I==null&&he[0]==null)&&he[1]===fe)return I&&he[0]&&he[0].push(...I),null}let Sn=I?ue(I.sort((Re,he)=>Re[1]-he[1]||Re[0]?.localeCompare(he[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return Sn.length?`${Sn.join(`,${f}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(f);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${f}${D}${f}${"}".repeat(Q.length)}`}).filter(Boolean).join(f);i&&(R=[g[k],R].filter(Boolean).join(f));let P;y&&R&&(P=x(k),P!==null&&(R=`@layer ${P}{${f}${R}${f}}`));let ee=a?"":`/* layer: ${k}${P&&P!==k?`, alias: ${P}`:""} */${f}`;return S[k]=R?ee+R:""},v=(k=$,R)=>{let P=k.filter(ee=>!R?.includes(ee));return[y&&P.length>0?`@layer ${P.map(x).filter(Yt).join(", ")};`:void 0,...P.map(ee=>T(ee)||"")].filter(Boolean).join(f)};return{get css(){return v()},layers:$,matched:m,getLayers:v,getLayer:T,setLayer:async(k,R)=>{let P=await R(T(k));return S[k]=P,P}}}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 f of this.config.variants){if(!f.multiPass&&c.has(f))continue;let p=await f.match(l,n);if(p){if(F(p)){if(p===l)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 m=p.map(h=>{let g=h.matcher??l,b=[h,...a],$=new Set(c);return $.add(f),[i[0],g,b,$]});return(await Promise.all(m.map(h=>o(h)))).flat()}}i[1]=p.matcher??l,a.unshift(p),c.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((l,f)=>(l.order||0)-(f.order||0)).reduceRight((l,f)=>p=>{let m=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(p.selector,m);return(f.handle??$u)({...p,entries:m,selector:g||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},l)},l=>l)({prefix:"",selector:jn(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(F(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=F(t)?await this.matchVariants(t):[t],s=async([c,l,f])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:f},m=this.config.rulesStaticMap[l];if(m&&m[1]&&(n||!m[2]?.internal))return this.resolveCSSResult(c,m[1],m,p);for(let h of this.config.rulesDynamic){let[g,b,$]=h;if($?.internal&&!n)continue;let S=l;if($?.prefix){let v=C($.prefix);if(o){let j=C(o);if(!v.some(k=>j.includes(k)))continue}else{let j=v.find(k=>l.startsWith(k));if(j==null)continue;S=l.slice(j.length)}}let y=S.match(g);if(!y)continue;let x=await b(y,p);if(!x)continue;if(typeof x!="string")if(Symbol.asyncIterator in x){let v=[];for await(let j of x)j&&v.push(j);x=v}else Symbol.iterator in x&&!Array.isArray(x)&&(x=Array.from(x).filter(Yt));let T=this.resolveCSSResult(c,x,h,p);if(T)return T}},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=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(c=>{if(F(c))return[s,c,a];let l=o.variantHandlers,f=a;for(let p of c)p[0]===$e.variants?typeof p[1]=="function"?l=p[1](l)||l:l=[...C(p[1]),...l]:p[0]===$e.parent?l=[{parent:p[1]},...l]:p[0]===$e.selector?l=[{selector:p[1]},...l]:p[0]===$e.layer?l=[{layer:p[1]},...l]:p[0]===$e.sort?f={...f,sort:p[1]}:p[0]===$e.noMerge&&(f={...f,noMerge:p[1]});return[s,t,c,f,l]})}};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:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:f,sort:p,...m}=t[3]??{},h={...m,layer:s??f,sort:a??p};return[t[0],n,l,i,h,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)}:Go,i,s,a,c;for(let l of this.config.shortcuts){let f=t;if(l[2]?.prefix){let m=C(l[2].prefix).find(h=>t.startsWith(h));if(m==null)continue;f=t.slice(m.length)}if(Yo(l)){if(l[0]===f){i=i||l[2],s=l[1],o(l);break}}else{let p=f.match(l[0]);if(p&&(s=l[1](p,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ue(C(s).filter(F).map(l=>Xo(l.trim()).split(/\s+/g)).flat()),c=C(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let f of l){let[p,m,h]=f;if(p!==m){let g=await this.expandShortcut(m,r,n-1);g&&(a=g[0].filter(F).map(b=>p.replace(m,b)),c=g[0].filter(b=>!F(b)).map(b=>({handles:[...b.handles,...h],value:b.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(C(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 Zt,s=(await Promise.all(ue(n).map(async f=>{let p=F(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(f.value),void 0,f.handles]];return!p&&this.config.warn&&Jo(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,c]=t,l=[];for(let f of s){if(Rn(f)){l.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:m,parent:h,sort:g,noMerge:b,layer:$}=this.applyVariants(f,[...f[4],...c],a);i.getFallback($??o.layer,new Xt).getFallback(p,h,[[],f[0]])[0].push([m,!!(b??f[3]?.noMerge),g??0])}return l.concat(i.flatMap((f,p)=>f.map(([m,h],g,b)=>{let $=(y,x,T)=>{let v=Math.max(...T.map(k=>k[1])),j=T.map(k=>k[0]);return(y?[j.flat(1)]:j).map(k=>{let R=Le(k);if(R)return[h,g,R,b,{...o,noMerge:x,sort:v,layer:p},r,void 0]})};return[[m.filter(([,y])=>y).map(([y,,x])=>[y,x]),!0],[m.filter(([,y])=>!y).map(([y,,x])=>[y,x]),!1]].map(([y,x])=>[...$(!1,x,y.filter(([T])=>T.some(v=>v[0]===$e.shortcutsNoMerge))),...$(!0,x,y.filter(([T])=>T.every(v=>v[0]!==$e.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):F(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):F(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)=>`[${qt(r)}${n}"${qt(o)}"]`):`.${qt(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=No(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],[,f="",p=l]=l.match(zn)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${c}`;if(o==null){let m=s?.config?.separators?.join("|");m?o=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,m,h]=l.match(o)||[];if(h)return`${m}${f}${c}-${h}`}if(f&&p.match(/^[\d.]+$/)){let m=f.split(/([^:]*:)/g).filter(Boolean),h=m.pop()+p,g=m.join("");return[{matcher:`${f}${c}-${p}`},{matcher:`${g}${c}-${h}`}]}return`${f}${c}-${p}`}}}var wu=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,ku=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ci=/[\s'"`;>]+/;function li(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(wu),o,i=0;for(let y of n){let[,x,T]=y,v=y.index+x.length;if(r>v&&r<=v+T.length){i=v,o=T;break}}if(!o)return null;let s=o.matchAll(ku),a=0,c,l;for(let y of s){let[x,T,v]=y,j=i+y.index;if(r>j&&r<=j+x.length){a=j,c=T,l=v?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let f=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:p,resolveReplacement(y){let x=f?e.prefix.length:0;return{start:a+x,end:a+c.length,replacement:y}}};let m=a+c.length+2,h=ci.exec(l),g=0,b;for(;h;){let[y]=h;if(r>m+g&&r<=m+g+h.index){b=l.slice(g,g+h.index);break}g+=h.index+y.length,h=ci.exec(l.slice(g))}b===void 0&&(b=l.slice(g));let[,$="",S]=b.match(zn)||[];return{extracted:`${$}${p}-${S}`,transformSuggestions(y){return y.filter(x=>x.startsWith(`${$}${p}-`)).map(x=>$+x.slice($.length+p.length+1))},resolveReplacement(y){return{start:g+m,end:g+m+b.length,replacement:$+y.slice($.length+p.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 c of Su)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(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(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}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=[li(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 er="__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.lastIndex=0,i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${er}${o}`)}}}function mi(e){let{extraProperties:t}=e,r=`${er}${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(er.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}},hi=Tu;function re(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 pe(e,t,r,n){if(e===""||(F(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=pe(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var Pn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var tr=["%alpha","<alpha-value>"],ju=new RegExp(tr.map(e=>K(e)).join("|"),"g");function Y(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 ie(e){let t=e.alpha??1;return typeof t=="string"&&tr.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=gi(`${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=gi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function gi(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 c=0;for(let l=0;l<a.length;l++){let f=a[l];l>0&&t.write(44),c=rt(t,f[0],c),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 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 Lu(){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 Wu=Lu(),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,"+Wu(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 Iu=Object.prototype.toString;function Du(e){return Iu.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 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 Nu=/\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",Ue="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[Ue]:-100,[_o]:-10,[xe]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(Fe)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function Y(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 z(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 Ie(t){return t instanceof ye}function _(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X(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 We=X;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 Be(t){return t!=null}function nr(){}var De=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)))}},Ne=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 Se(t){return z(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=>Se(e)):[t]:[Se(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 Ke(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 Ke(n)&&Ke(i)&&Object.keys(i).forEach(s=>{Ke(n[s])&&Ke(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 $e(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"?$e(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:$e(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?$e(n):n;return r}return t}function or(t){return z(t[0])}function sr(t){return z(t[0])}var Ge={};function Ko(t=["-",":"]){let e=t.join("|");return Ge[e]||(Ge[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ge[e].lastIndex=0,Ge[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,d,m)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let h=m+f.length+p.length+1,y={length:c.length,items:[]};a.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let k=h+w.index,x=a.get(k)?.items;x?a.delete(k):x=[{offset:k,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(b)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(d=>d.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.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 T(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=T(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(T).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[];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)}let s={pipeline:n?!1:{include:Y(fr(...e)),exclude:Y(fr(...r))}};return i.length&&(s.filesystem=Y(i.flat())),o.length&&(s.inline=Y(o.flat())),s}async function mt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(dr))).flat(),(g,R)=>g.name===R.name),i=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Qt,...o.map(g=>g.layers));function l(g){return Y(o.flatMap(R=>T(R[g]||[])))}let c=l("extractors"),f=s.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((g,R)=>(g.order||0)-(R.order||0));let p=l("rules"),d={},m=p.length,h=p.filter(g=>or(g)?(T(g[2]?.prefix||"").forEach($=>{d[$+g[0]]=g}),!1):!0).reverse(),y={templates:Y(o.flatMap(g=>T(g.autocomplete?.templates))),extractors:o.flatMap(g=>T(g.autocomplete?.extractors)).sort((g,R)=>(g.order||0)-(R.order||0)),shorthands:Xo(o.map(g=>g.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let k=l("content"),x=qo(k),b={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:Yo(o.map(g=>g.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:y,variants:l("variants").map(rr).sort((g,R)=>(g.order||0)-(R.order||0)),shortcuts:pr(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:x,transformers:pt(l("transformers"),(g,R)=>g.name===R.name)},C=l("extendTheme");for(let g of C)b.theme=g(b.theme,b)||b.theme;for(let g of o)g?.configResolved?.(b);return b}function Yo(t){return t.map(e=>e?$e(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.4.0";var re={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(Ie(s)&&Ie(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(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,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((l,c)=>c(l)??l,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(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[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(d=>this.stringifyUtil(d,c)).filter(Be)},a=(await Promise.all(o.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(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let $={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S($):S).forEach(S=>{let E=S.trim();E&&!c.has(E)&&c.add(E)})}let f=a?"":`
|
|
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",Ue="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[Ue]:-100,[_o]:-10,[xe]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(Fe)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function Y(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 z(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 Ie(t){return t instanceof ye}function _(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X(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 We=X;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 Be(t){return t!=null}function nr(){}var De=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)))}},Ne=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 Se(t){return z(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=>Se(e)):[t]:[Se(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 Ke(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 Ke(n)&&Ke(i)&&Object.keys(i).forEach(s=>{Ke(n[s])&&Ke(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 $e(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"?$e(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:$e(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?$e(n):n;return r}return t}function or(t){return z(t[0])}function sr(t){return z(t[0])}var Ge={};function Ko(t=["-",":"]){let e=t.join("|");return Ge[e]||(Ge[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ge[e].lastIndex=0,Ge[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,d,m)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let h=m+f.length+p.length+1,y={length:c.length,items:[]};a.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let k=h+w.index,x=a.get(k)?.items;x?a.delete(k):x=[{offset:k,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(b)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(d=>d.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.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 T(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=T(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(T).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[];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)}let s={pipeline:n?!1:{include:Y(fr(...e)),exclude:Y(fr(...r))}};return i.length&&(s.filesystem=Y(i.flat())),o.length&&(s.inline=Y(o.flat())),s}async function mt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(dr))).flat(),(g,R)=>g.name===R.name),i=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Qt,...o.map(g=>g.layers));function l(g){return Y(o.flatMap(R=>T(R[g]||[])))}let c=l("extractors"),f=s.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((g,R)=>(g.order||0)-(R.order||0));let p=l("rules"),d={},m=p.length,h=p.filter(g=>or(g)?(T(g[2]?.prefix||"").forEach($=>{d[$+g[0]]=g}),!1):!0).reverse(),y={templates:Y(o.flatMap(g=>T(g.autocomplete?.templates))),extractors:o.flatMap(g=>T(g.autocomplete?.extractors)).sort((g,R)=>(g.order||0)-(R.order||0)),shorthands:Xo(o.map(g=>g.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let k=l("content"),x=qo(k),b={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:Yo(o.map(g=>g.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:y,variants:l("variants").map(rr).sort((g,R)=>(g.order||0)-(R.order||0)),shortcuts:pr(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:x,transformers:pt(l("transformers"),(g,R)=>g.name===R.name)},C=l("extendTheme");for(let g of C)b.theme=g(b.theme,b)||b.theme;for(let g of o)g?.configResolved?.(b);return b}function Yo(t){return t.map(e=>e?$e(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.4.1";var re={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(Ie(s)&&Ie(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(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:re,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((l,c)=>c(l)??l,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(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[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(d=>this.stringifyUtil(d,c)).filter(Be)},a=(await Promise.all(o.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(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let $={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S($):S).forEach(S=>{let E=S.trim();E&&!c.has(E)&&c.add(E)})}let f=a?"":`
|
|
2
2
|
`,p=new Set([xe]),d=l?new Map:new Set,m=new Map,h={},y=Array.from(c).map(async $=>{if(d.has($))return;let S=await this.parseToken($);if(S!=null){d instanceof Map?d.set($,{data:S,count:Ie(c)?c.getCount($):-1}):d.add($);for(let E of S){let I=E[3]||"",W=E[4]?.layer;m.has(I)||m.set(I,[]),m.get(I).push(E),W&&p.add(W)}}});await Promise.all(y),await(async()=>{if(!o)return;let $={generator:this,theme:this.config.theme},S=new Set([]);this.config.preflights.forEach(({layer:E=Ue})=>{p.add(E),S.add(E)}),h=Object.fromEntries(await Promise.all(Array.from(S).map(async E=>{let W=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Ue)===E).map(async H=>await H.getCSS($)))).filter(Boolean).join(f);return[E,W]})))})();let w=this.config.sortLayers(Array.from(p).sort(($,S)=>(this.config.layers[$]??0)-(this.config.layers[S]??0)||$.localeCompare(S))),k={},x=this.config.outputToCssLayers,b=$=>{let S=$;return typeof x=="object"&&(S=x.cssLayerName?.($)),S===null?null:S??$},C=($=xe)=>{if(k[$])return k[$];let S=Array.from(m).sort((W,H)=>(this.parentOrders.get(W[0])??0)-(this.parentOrders.get(H[0])??0)||W[0]?.localeCompare(H[0]||"")||0).map(([W,H])=>{let v=H.length,j=H.filter(V=>(V[4]?.layer||xe)===$).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,,Le,,ut])=>[[[(V&&es(V,i))??"",Le?.sort??0]],q,!!(ut??Le?.noMerge)]);if(!j.length)return;let O=j.reverse().map(([V,q,Le],ut)=>{if(!Le&&this.config.mergeSelectors)for(let ie=ut+1;ie<v;ie++){let J=j[ie];if(J&&!J[2]&&(V&&J[0]||V==null&&J[0]==null)&&J[1]===q)return V&&J[0]&&J[0].push(...V),null}let ft=V?Y(V.sort((ie,J)=>ie[1]-J[1]||ie[0]?.localeCompare(J[0]||"")||0).map(ie=>ie[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${f}`)}{${q}}`:q}).filter(Boolean),M=Array.from(new Set(O)).reverse().join(f);if(!W)return M;let F=W.split(" $$ ");return`${F.join("{")}{${f}${M}${f}${"}".repeat(F.length)}`}).filter(Boolean).join(f);o&&(S=[h[$],S].filter(Boolean).join(f));let E;x&&S&&(E=b($),E!==null&&(S=`@layer ${E}{${f}${S}${f}}`));let I=a?"":`/* layer: ${$}${E&&E!==$?`, alias: ${E}`:""} */${f}`;return k[$]=S?I+S:""},g=($=w,S)=>{let E=$.filter(I=>!S?.includes(I));return[x&&E.length>0?`@layer ${E.map(b).filter(Be).join(", ")};`:void 0,...E.map(I=>C(I)||"")].filter(Boolean).join(f)};return{get css(){return g()},layers:w,matched:d,getLayers:g,getLayer:C,setLayer:async($,S)=>{let E=await S(C($));return k[$]=E,E}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},i=async o=>{let s=!0,[,,a,l]=o;for(;s;){s=!1;let c=o[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(z(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(m=>{let h=m.matcher??c,y=[m,...a],w=new Set(l);return w.add(f),[o[0],h,y,w]});return(await Promise.all(d.map(m=>i(m)))).flat()}}o[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.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,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0],h=f.selector?.(p.selector,d);return(f.handle??rs)({...p,entries:d,selector:h||p.selector,parent:m[0]||p.parent,parentOrder:m[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:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={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(l);return l}constructCustomCSS(e,r,n){let i=Se(r);if(z(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${ue(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let o=z(e)?await this.matchVariants(e):[e],s=async([l,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(l,d[1],d,p);for(let m of this.config.rulesDynamic){let[h,y,w]=m;if(w?.internal&&!n)continue;let k=c;if(w?.prefix){let g=T(w.prefix);if(i){let R=T(i);if(!g.some($=>R.includes($)))continue}else{let R=g.find($=>c.startsWith($));if(R==null)continue;k=c.slice(R.length)}}let x=k.match(h);if(!x)continue;let b=await y(x,p);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let g=[];for await(let R of b)R&&g.push(R);b=g}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(Be));let C=this.resolveCSSResult(l,b,m,p);if(C)return C}},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}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),a=n[2];return o.map(l=>{if(z(l))return[s,l,a];let c=i.variantHandlers,f=a;for(let p of l)p[0]===re.variants?typeof p[1]=="function"?c=p[1](c)||c:c=[...T(p[1]),...c]:p[0]===re.parent?c=[{parent:p[1]},...c]:p[0]===re.selector?c=[{selector:p[1]},...c]:p[0]===re.layer?c=[{layer:p[1]},...c]:p[0]===re.sort?f={...f,sort:p[1]}:p[0]===re.noMerge&&(f={...f,noMerge:p[1]});return[s,e,l,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:a,noMerge:l}=this.applyVariants(e),c=ue(i);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},m={...d,layer:s??f,sort:a??p};return[e[0],n,c,o,m,this.config.details?r:void 0,l]}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,a,l;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let d=T(c[2].prefix).find(m=>e.startsWith(m));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&&(a=Y(T(s).filter(z).map(c=>ar(c.trim()).split(/\s+/g)).flat()),l=T(s).filter(c=>!z(c)).map(c=>({handles:[],value:c}))),!s){let c=z(e)?await this.matchVariants(e):[e];for(let f of c){let[p,d,m]=f;if(p!==d){let h=await this.expandShortcut(d,r,n-1);h&&(a=h[0].filter(z).map(y=>p.replace(d,y)),l=h[0].filter(y=>!z(y)).map(y=>({handles:[...y.handles,...m],value:y.value})))}}}if(!(!a?.length&&!l?.length))return[[await Promise.all(T(a).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),l].flat(2).filter(c=>!!c),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Ne,s=(await Promise.all(Y(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Se(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]),[a,,l]=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:m,sort:h,noMerge:y,layer:w}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(w??i.layer,new De).getFallback(p,m,[[],f[0]])[0].push([d,!!(y??f[3]?.noMerge),h??0])}return c.concat(o.flatMap((f,p)=>f.map(([d,m],h,y)=>{let w=(x,b,C)=>{let g=Math.max(...C.map($=>$[1])),R=C.map($=>$[0]);return(x?[R.flat(1)]:R).map($=>{let S=ue($);if(S)return[m,h,S,y,{...i,noMerge:b,sort:g,layer:p},r,void 0]})};return[[d.filter(([,x])=>x).map(([x,,b])=>[x,b]),!0],[d.filter(([,x])=>!x).map(([x,,b])=>[x,b]),!1]].map(([x,b])=>[...w(!1,b,x.filter(([C])=>C.some(g=>g[0]===re.shortcutsNoMerge))),...w(!0,b,x.filter(([C])=>C.every(g=>g[0]!==re.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):z(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):z(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)=>`[${We(r)}${n}"${We(i)}"]`):`.${We(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 a=tr(o);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(bt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(i==null){let d=s?.config?.separators?.join("|");d?i=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,d,m]=c.match(i)||[];if(m)return`${d}${f}${l}-${m}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,h=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${h}${l}-${m}`}]}return`${f}${l}-${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 x of n){let[,b,C]=x,g=x.index+b.length;if(r>g&&r<=g+C.length){o=g,i=C;break}}if(!i)return null;let s=i.matchAll(is),a=0,l,c;for(let x of s){let[b,C,g]=x,R=o+x.index;if(r>R&&r<=R+b.length){a=R,l=C,c=g?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let b=f?t.prefix.length:0;return{start:a+b,end:a+l.length,replacement:x}}};let d=a+l.length+2,m=yr.exec(c),h=0,y;for(;m;){let[x]=m;if(r>d+h&&r<=d+h+m.index){y=c.slice(h,h+m.index);break}h+=m.index+x.length,m=yr.exec(c.slice(h))}y===void 0&&(y=c.slice(h));let[,w="",k]=y.match(bt)||[];return{extracted:`${w}${p}-${k}`,transformSuggestions(x){return x.filter(b=>b.startsWith(`${w}${p}-`)).map(b=>w+b.slice(w.length+p.length+1))},resolveReplacement(x){return{start:h+d,end:h+d+y.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var os=["v-bind:",":"],$r=/[\s'"`;]+/g,xt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ss=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,yt=["placeholder","fill","opacity","stroke-opacity"];function Sr(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 a=s.filter(Boolean).join("");if(e.includes(o))return[];for(let l of os)if(o.startsWith(l)){o=o.slice(l.length);break}if(!a){if(we(o)&&r!==!1){let l=[`[${o}=""]`];return n&&l.push(`[${o}="true"]`),l}return[]}return["class","className"].includes(o)?a.split($r).filter(we):xt.test(a)?(xt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:a.split($r).filter(l=>!!l&&l!==":").map(l=>`[${o}~="${l}"]`)})}}}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=[Sr(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(Fe).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}`)),T(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${i}}`).join("")}}}}]}function oe(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(z(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 a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function pe(t,e,r,n="(",i=")"){r=r??10;let o=[],s=0;for(;t!=="";){if(++s>r)return;let a=fe(t,n,i,e);if(!a)return;let[l,c]=a;o.push(l),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=>_(t)).join("|"),"g");function se(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 B(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=$s(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,...a]}=i;return{type:s,components:a,alpha:o}}}function $s(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 Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr=new Uint8Array(64),Ss=new Uint8Array(128);for(let t=0;t<Pr.length;t++){let e=Pr.charCodeAt(t);Mr[t]=e,Ss[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(Mr[i])}while(n>0);return e}var Or=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}},$t=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Or)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Or&&(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 zr(t){let e=new $t,r=0,n=0,i=0,o=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&e.write(44),l=Ce(e,f[0],l),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 He=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))}},qe=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(),St=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=zr(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 a=/^ +/.exec(s)[0].length;return Math.min(a,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 a=o-1,l=i-r[a];return{line:a,column:l}}}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.4.
|
|
4
|
+
"version": "66.4.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/preset-attributify": "66.4.
|
|
39
|
-
"@unocss/
|
|
40
|
-
"@unocss/
|
|
38
|
+
"@unocss/preset-attributify": "66.4.1",
|
|
39
|
+
"@unocss/core": "66.4.1",
|
|
40
|
+
"@unocss/preset-uno": "66.4.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",It="preflights",Wf="shortcuts",Uf="imports",Oo={[Uf]:-200,[It]:-100,[Wf]:-10,[Xe]:0};var Dt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Dt)}var Nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Kt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Gt=J;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 If=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return If.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Ht(e){return e!=null}function _o(){}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)))}},Yt=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 F(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 Df(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?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Xt(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 Xt(n)&&Xt(o)&&Object.keys(o).forEach(s=>{Xt(n[s])&&Xt(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 F(e[0])}function Uo(e){return F(e[0])}var Zt={};function Nf(e=["-",":"]){let t=e.join("|");return Zt[t]||(Zt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Zt[t].lastIndex=0,Zt[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,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let g=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...h.matchAll(/\S+/g)]){let C=g+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}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(h=>h.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 Io=new Set;function Do(e){Io.has(e)||(console.warn("[unocss]",e),Io.add(e))}function Go(e){return S(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=S(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(S).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Ko(...t)),exclude:ue(Ko(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(S).flatMap(Ho))).flat(),(y,P)=>y.name===P.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Oo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(P=>S(P[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Nt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,P)=>(y.order||0)-(P.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Wo(y)?(S(y[2]?.prefix||"").forEach(w=>{h[w+y[0]]=y}),!1):!0).reverse(),x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,P)=>(y.order||0)-(P.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((y,P)=>(y.order||0)-(P.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:$n(c("transformers"),(y,P)=>y.name===P.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}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.4.0";var $e={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(Kt(s)&&Kt(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:$e,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(h=>this.stringifyUtil(h,l)).filter(Ht)},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=F(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(R=>typeof R=="function"?R(w):R).forEach(R=>{let O=R.trim();O&&!l.has(O)&&l.add(O)})}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",It="preflights",Wf="shortcuts",Uf="imports",Oo={[Uf]:-200,[It]:-100,[Wf]:-10,[Xe]:0};var Dt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Dt)}var Nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(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 F(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 Kt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Gt=J;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 If=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return If.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Ht(e){return e!=null}function _o(){}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)))}},Yt=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 F(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 Df(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?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Xt(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 Xt(n)&&Xt(o)&&Object.keys(o).forEach(s=>{Xt(n[s])&&Xt(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 F(e[0])}function Uo(e){return F(e[0])}var Zt={};function Nf(e=["-",":"]){let t=e.join("|");return Zt[t]||(Zt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Zt[t].lastIndex=0,Zt[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,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let g=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...h.matchAll(/\S+/g)]){let C=g+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}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(h=>h.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 Io=new Set;function Do(e){Io.has(e)||(console.warn("[unocss]",e),Io.add(e))}function Go(e){return S(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=S(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(S).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Ko(...t)),exclude:ue(Ko(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(S).flatMap(Ho))).flat(),(y,P)=>y.name===P.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Oo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(P=>S(P[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Nt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,P)=>(y.order||0)-(P.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Wo(y)?(S(y[2]?.prefix||"").forEach(w=>{h[w+y[0]]=y}),!1):!0).reverse(),x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,P)=>(y.order||0)-(P.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((y,P)=>(y.order||0)-(P.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:$n(c("transformers"),(y,P)=>y.name===P.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}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.4.1";var $e={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(Kt(s)&&Kt(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:$e,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(h=>this.stringifyUtil(h,l)).filter(Ht)},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=F(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(R=>typeof R=="function"?R(w):R).forEach(R=>{let O=R.trim();O&&!l.has(O)&&l.add(O)})}let u=a?"":`
|
|
2
2
|
`,d=new Set([Xe]),h=c?new Map:new Set,m=new Map,g={},x=Array.from(l).map(async w=>{if(h.has(w))return;let R=await this.parseToken(w);if(R!=null){h instanceof Map?h.set(w,{data:R,count:Kt(l)?l.getCount(w):-1}):h.add(w);for(let O of R){let ee=O[3]||"",te=O[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(O),te&&d.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let w={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:O=It})=>{d.add(O),R.add(O)}),g=Object.fromEntries(await Promise.all(Array.from(R).map(async O=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||It)===O).map(async le=>await le.getCSS(w)))).filter(Boolean).join(u);return[O,te]})))})();let k=this.config.sortLayers(Array.from(d).sort((w,R)=>(this.config.layers[w]??0)-(this.config.layers[R]??0)||w.localeCompare(R))),C={},v=this.config.outputToCssLayers,b=w=>{let R=w;return typeof v=="object"&&(R=v.cssLayerName?.(w)),R===null?null:R??w},z=(w=Xe)=>{if(C[w])return C[w];let R=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===w).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,Bt,,yn])=>[[[(I&&Qf(I,o))??"",Bt?.sort??0]],fe,!!(yn??Bt?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,Bt],yn)=>{if(!Bt&&this.config.mergeSelectors)for(let Re=yn+1;Re<E;Re++){let ge=V[Re];if(ge&&!ge[2]&&(I&&ge[0]||I==null&&ge[0]==null)&&ge[1]===fe)return I&&ge[0]&&ge[0].push(...I),null}let vn=I?ue(I.sort((Re,ge)=>Re[1]-ge[1]||Re[0]?.localeCompare(ge[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return vn.length?`${vn.join(`,${u}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${u}${D}${u}${"}".repeat(Q.length)}`}).filter(Boolean).join(u);i&&(R=[g[w],R].filter(Boolean).join(u));let O;v&&R&&(O=b(w),O!==null&&(R=`@layer ${O}{${u}${R}${u}}`));let ee=a?"":`/* layer: ${w}${O&&O!==w?`, alias: ${O}`:""} */${u}`;return C[w]=R?ee+R:""},y=(w=k,R)=>{let O=w.filter(ee=>!R?.includes(ee));return[v&&O.length>0?`@layer ${O.map(b).filter(Ht).join(", ")};`:void 0,...O.map(ee=>z(ee)||"")].filter(Boolean).join(u)};return{get css(){return y()},layers:k,matched:h,getLayers:y,getLayer:z,setLayer:async(w,R)=>{let O=await R(z(w));return C[w]=O,O}}}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(F(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 h=d.map(m=>{let g=m.matcher??l,x=[m,...a],k=new Set(c);return k.add(u),[i[0],g,x,k]});return(await Promise.all(h.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 h=u.body?.(d.entries)||d.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],g=u.selector?.(d.selector,h);return(u.handle??tu)({...d,entries:h,selector:g||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(F(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=F(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},h=this.config.rulesStaticMap[l];if(h&&h[1]&&(n||!h[2]?.internal))return this.resolveCSSResult(c,h[1],h,d);for(let m of this.config.rulesDynamic){let[g,x,k]=m;if(k?.internal&&!n)continue;let C=l;if(k?.prefix){let y=S(k.prefix);if(o){let P=S(o);if(!y.some(w=>P.includes(w)))continue}else{let P=y.find(w=>l.startsWith(w));if(P==null)continue;C=l.slice(P.length)}}let v=C.match(g);if(!v)continue;let b=await x(v,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let y=[];for await(let P of b)P&&y.push(P);b=y}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(Ht));let z=this.resolveCSSResult(c,b,m,d);if(z)return z}},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(F(c))return[s,c,a];let l=o.variantHandlers,u=a;for(let d of c)d[0]===$e.variants?typeof d[1]=="function"?l=d[1](l)||l:l=[...S(d[1]),...l]:d[0]===$e.parent?l=[{parent:d[1]},...l]:d[0]===$e.selector?l=[{selector:d[1]},...l]:d[0]===$e.layer?l=[{layer:d[1]},...l]:d[0]===$e.sort?u={...u,sort:d[1]}:d[0]===$e.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,...h}=t[3]??{},m={...h,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 h=S(l[2].prefix).find(m=>t.startsWith(m));if(h==null)continue;u=t.slice(h.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=ue(S(s).filter(F).map(l=>Bo(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let u of l){let[d,h,m]=u;if(d!==h){let g=await this.expandShortcut(h,r,n-1);g&&(a=g[0].filter(F).map(x=>d.replace(h,x)),c=g[0].filter(x=>!F(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 Yt,s=(await Promise.all(ue(n).map(async u=>{let d=F(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&&Do(`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:h,parent:m,sort:g,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([h,!!(x??u[3]?.noMerge),g??0])}return l.concat(i.flatMap((u,d)=>u.map(([h,m],g,x)=>{let k=(v,b,z)=>{let y=Math.max(...z.map(w=>w[1])),P=z.map(w=>w[0]);return(v?[P.flat(1)]:P).map(w=>{let R=Le(w);if(R)return[m,g,R,x,{...o,noMerge:b,sort:y,layer:d},r,void 0]})};return[[h.filter(([,v])=>v).map(([v,,b])=>[v,b]),!0],[h.filter(([,v])=>!v).map(([v,,b])=>[v,b]),!1]].map(([v,b])=>[...k(!1,b,v.filter(([z])=>z.some(y=>y[0]===$e.shortcutsNoMerge))),...k(!0,b,v.filter(([z])=>z.every(y=>y[0]!==$e.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):F(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):F(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)=>`[${Gt(r)}${n}"${Gt(o)}"]`):`.${Gt(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(Dt).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}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function re(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 pe(e,t,r,n){if(e===""||(F(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=pe(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=>K(e)).join("|"),"g");function Y(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 ie(e){let t=e.alpha??1;return typeof t=="string"&&ni.includes(t)?1:t}function j(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 Jt=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))}},Qt=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(`
|