@unocss/runtime 66.1.0-beta.11 → 66.1.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Zu=Object.defineProperty;var Ju=(e,t)=>{for(var r in t)Zu(e,r,{get:t[r],enumerable:!0})};var Je="default",Nt="preflights",Qu="shortcuts",ef="imports",Lo={[ef]:-200,[Nt]:-100,[Qu]:-10,[Je]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function tf(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return tf(e)}};function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function yn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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=Q;function Wo(){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 rf=/^\[(.+?)~?="(.*)"\]$/;var nf=/[\w\u00A0-\uFFFF%-?]/;function Uo(e){return e.match(rf)}function et(e=""){return nf.test(e)}function Bo(e){return typeof e=="function"?{match:e}:e}function $n(e){return e.length===3}function Yt(e){return e!=null}function Do(){}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 rt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function vn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>rt(t)):[e]:[rt(e)]}function of(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":of(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 wn(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]=wn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function tt(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"?tt(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:tt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?tt(n):n;return r}return e}function Io(e){return V(e[0])}function No(e){return V(e[0])}var Qt={};function sf(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 af(e,t=["-",":"],r=5){let n=sf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let g=m+f.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let R=g+$.index,v=a.get(R)?.items;v?a.delete(R):v=[{offset:R,length:$[0].length,className:$[0]}];for(let w of v)w.className=w.className==="~"?f:w.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(w)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(h=>h.className).join(" "),l=f+d.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=af(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 E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function cf(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=E(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 cf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(E).flatMap(Zo))).flat();return[t,...r]}function lf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Yo(...t)),exclude:ne(Yo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function kn(e={},t={}){let r=Object.assign({},t,e),n=yn((await Promise.all((r.presets||[]).flatMap(E).flatMap(Zo))).flat(),(y,x)=>y.name===x.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({},Lo,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>E(x[y]||[])))}let l=c("extractors"),f=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Io(y)?(E(y[2]?.prefix||"").forEach(k=>{h[k+y[0]]=y}),!1):!0).reverse(),b=uf(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let R={templates:ne(i.flatMap(y=>E(y.autocomplete?.templates))),extractors:i.flatMap(y=>E(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:ff(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let w=c("content"),U=lf(w),j={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:R,variants:c("variants").map(Bo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:U,transformers:yn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(j);return j}function uf(e){return e.map(t=>t?tt(t):{}).reduce((t,r)=>wn(t,r),{})}function ff(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(pf)}function pf(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.1.0-beta.11";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"},Sn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Wo();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 kn(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 kn(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=t;for(let c of this.config.preprocess)o=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(h=>this.stringifyUtil(h,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=V(t)?await this.applyExtractors(t,n,c?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(x):k).forEach(k=>{let C=k.trim();C&&!l.has(C)&&l.add(C)})}let f=a?"":`
1
+ "use strict";(()=>{var Zu=Object.defineProperty;var Ju=(e,t)=>{for(var r in t)Zu(e,r,{get:t[r],enumerable:!0})};var Je="default",Nt="preflights",Qu="shortcuts",ef="imports",Lo={[ef]:-200,[Nt]:-100,[Qu]:-10,[Je]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function tf(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return tf(e)}};function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function yn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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=Q;function Wo(){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 rf=/^\[(.+?)~?="(.*)"\]$/;var nf=/[\w\u00A0-\uFFFF%-?]/;function Uo(e){return e.match(rf)}function et(e=""){return nf.test(e)}function Bo(e){return typeof e=="function"?{match:e}:e}function $n(e){return e.length===3}function Yt(e){return e!=null}function Do(){}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 rt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function vn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>rt(t)):[e]:[rt(e)]}function of(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":of(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 wn(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]=wn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function tt(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"?tt(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:tt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?tt(n):n;return r}return e}function Io(e){return V(e[0])}function No(e){return V(e[0])}var Qt={};function sf(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 af(e,t=["-",":"],r=5){let n=sf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let g=m+f.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let R=g+$.index,v=a.get(R)?.items;v?a.delete(R):v=[{offset:R,length:$[0].length,className:$[0]}];for(let w of v)w.className=w.className==="~"?f:w.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(w)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(h=>h.className).join(" "),l=f+d.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Ko(e,t=["-",":"],r=5){let n=af(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 E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function cf(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=E(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 cf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(E).flatMap(Zo))).flat();return[t,...r]}function lf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Yo(...t)),exclude:ne(Yo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function kn(e={},t={}){let r=Object.assign({},t,e),n=yn((await Promise.all((r.presets||[]).flatMap(E).flatMap(Zo))).flat(),(y,x)=>y.name===x.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({},Lo,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>E(x[y]||[])))}let l=c("extractors"),f=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Io(y)?(E(y[2]?.prefix||"").forEach(k=>{h[k+y[0]]=y}),!1):!0).reverse(),b=uf(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let R={templates:ne(i.flatMap(y=>E(y.autocomplete?.templates))),extractors:i.flatMap(y=>E(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:ff(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let w=c("content"),U=lf(w),j={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:R,variants:c("variants").map(Bo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:U,transformers:yn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(j);return j}function uf(e){return e.map(t=>t?tt(t):{}).reduce((t,r)=>wn(t,r),{})}function ff(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(pf)}function pf(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.1.0-beta.12";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"},Sn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Wo();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 kn(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 kn(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=t;for(let c of this.config.preprocess)o=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(h=>this.stringifyUtil(h,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=V(t)?await this.applyExtractors(t,n,c?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(x):k).forEach(k=>{let C=k.trim();C&&!l.has(C)&&l.add(C)})}let f=a?"":`
2
2
  `,d=new Set([Je]),h=c?new Map:new Set,m=new Map,g={},b=Array.from(l).map(async x=>{if(h.has(x))return;let k=await this.parseToken(x);if(k!=null){h instanceof Map?h.set(x,{data:k,count:Ht(l)?l.getCount(x):-1}):h.add(x);for(let C of k){let Z=C[3]||"",J=C[4]?.layer;m.has(Z)||m.set(Z,[]),m.get(Z).push(C),J&&d.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let x={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:C=Nt})=>{d.add(C),k.add(C)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async C=>{let J=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||Nt)===C).map(async ce=>await ce.getCSS(x)))).filter(Boolean).join(f);return[C,J]})))})();let $=this.config.sortLayers(Array.from(d).sort((x,k)=>(this.config.layers[x]??0)-(this.config.layers[k]??0)||x.localeCompare(k))),R={},v=this.config.outputToCssLayers,w=x=>{let k=x;return typeof v=="object"&&(k=v.cssLayerName?.(x)),k===null?null:k??x},U=(x=Je)=>{if(R[x])return R[x];let k=Array.from(m).sort((J,ce)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(ce[0])??0)||J[0]?.localeCompare(ce[0]||"")||0).map(([J,ce])=>{let T=ce.length,O=ce.filter(D=>(D[4]?.layer||Je)===x).sort((D,le)=>D[0]-le[0]||(D[4]?.sort||0)-(le[4]?.sort||0)||D[5]?.currentSelector?.localeCompare(le[5]?.currentSelector??"")||D[1]?.localeCompare(le[1]||"")||D[2]?.localeCompare(le[2]||"")||0).map(([,D,le,,It,,bn])=>[[[(D&&hf(D,o))??"",It?.sort??0]],le,!!(bn??It?.noMerge)]);if(!O.length)return;let B=O.reverse().map(([D,le,It],bn)=>{if(!It&&this.config.mergeSelectors)for(let Re=bn+1;Re<T;Re++){let me=O[Re];if(me&&!me[2]&&(D&&me[0]||D==null&&me[0]==null)&&me[1]===le)return D&&me[0]&&me[0].push(...D),null}let xn=D?ne(D.sort((Re,me)=>Re[1]-me[1]||Re[0]?.localeCompare(me[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return xn.length?`${xn.join(`,${f}`)}{${le}}`:le}).filter(Boolean),I=Array.from(new Set(B)).reverse().join(f);if(!J)return I;let X=J.split(" $$ ");return`${X.join("{")}{${f}${I}${f}${"}".repeat(X.length)}`}).filter(Boolean).join(f);i&&(k=[g[x],k].filter(Boolean).join(f));let C;v&&k&&(C=w(x),C!==null&&(k=`@layer ${C}{${f}${k}${f}}`));let Z=a?"":`/* layer: ${x}${C&&C!==x?`, alias: ${C}`:""} */${f}`;return R[x]=k?Z+k:""},j=(x=$,k)=>{let C=x.filter(Z=>!k?.includes(Z));return[v&&C.length>0?`@layer ${C.map(w).filter(Yt).join(", ")};`:void 0,...C.map(Z=>U(Z)||"")].filter(Boolean).join(f)};return{get css(){return j()},layers:$,matched:h,getLayers:j,getLayer:U,setLayer:async(x,k)=>{let C=await k(U(x));return R[x]=C,C}}}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 d=await f.match(l,n);if(d){if(V(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(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=d.map(m=>{let g=m.matcher??l,b=[m,...a],$=new Set(c);return $.add(f),[i[0],g,b,$]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),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)=>d=>{let h=f.body?.(d.entries)||d.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(d.selector,h);return(f.handle??bf)({...d,entries:h,selector:g||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:f.layer||d.layer,sort:f.sort||d.sort},l)},l=>l)({prefix:"",selector:gf(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=rt(r);if(V(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${We(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=V(t)?await this.matchVariants(t):[t],s=async([c,l,f])=>{this.config.details&&(r.rules=r.rules??[]);let d=this.config.rulesStaticMap[l];if(d&&d[1]&&(n||!d[2]?.internal)){this.config.details&&r.rules.push(d);let m=this.config.rules.indexOf(d),g=vn(d[1]).filter($=>$.length),b=d[2];if(g.length)return r.generator.activatedRules.add(d),g.map($=>V($)?[m,$,b]:[m,c,$,b,f])}r.variantHandlers=f;let{rulesDynamic:h}=this.config;for(let m of h){let[g,b,$]=m;if($?.internal&&!n)continue;let R=l;if($?.prefix){let j=E($.prefix);if(o){let y=E(o);if(!j.some(x=>y.includes(x)))continue}else{let y=j.find(x=>l.startsWith(x));if(y==null)continue;R=l.slice(y.length)}}let v=R.match(g);if(!v)continue;let w=await b(v,r);if(!w)continue;if(this.config.details&&r.rules.push(m),typeof w!="string")if(Symbol.asyncIterator in w){let j=[];for await(let y of w)y&&j.push(y);w=j}else Symbol.iterator in w&&!Array.isArray(w)&&(w=Array.from(w).filter(Yt));let U=vn(w).filter(j=>j.length);if(U.length){r.generator.activatedRules.add(m);let j=this.config.rules.indexOf(m);return U.map(y=>{if(V(y))return[j,y,$];let x=f,k=$;for(let C of y)C[0]===$e.variants?typeof C[1]=="function"?x=C[1](x)||x:x=[...E(C[1]),...x]:C[0]===$e.parent?x=[{parent:C[1]},...x]:C[0]===$e.selector?x=[{selector:C[1]},...x]:C[0]===$e.layer?x=[{layer:C[1]},...x]:C[0]===$e.sort?k={...k,sort:C[1]}:C[0]===$e.noMerge&&(k={...k,noMerge:C[1]});return[j,c,y,k,x]})}}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if($n(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=We(o);if(!l)return;let{layer:f,sort:d,...h}=t[3]??{},m={...h,layer:s??f,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)}:Do,i,s,a,c;for(let l of this.config.shortcuts){let f=t;if(l[2]?.prefix){let h=E(l[2].prefix).find(m=>t.startsWith(m));if(h==null)continue;f=t.slice(h.length)}if(No(l)){if(l[0]===f){i=i||l[2],s=l[1],o(l);break}}else{let d=f.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(E(s).filter(V).map(l=>Ko(l.trim()).split(/\s+/g)).flat()),c=E(s).filter(l=>!V(l)).map(l=>({handles:[],value:l}))),!s){let l=V(t)?await this.matchVariants(t):[t];for(let f of l){let[d,h,m]=f;if(d!==h){let g=await this.expandShortcut(h,r,n-1);g&&(a=g[0].filter(V).map(b=>d.replace(h,b)),c=g[0].filter(b=>!V(b)).map(b=>({handles:[...b.handles,...m],value:b.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(E(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(ne(n).map(async f=>{let d=V(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",rt(f.value),void 0,f.handles]];return!d&&this.config.warn&&Ho(`unmatched utility "${f}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[a,,c]=t,l=[];for(let f of s){if($n(f)){l.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:d,entries:h,parent:m,sort:g,noMerge:b,layer:$}=this.applyVariants(f,[...f[4],...c],a);i.getFallback($??o.layer,new Xt).getFallback(d,m,[[],f[0]])[0].push([h,!!(b??f[3]?.noMerge),g??0])}return l.concat(i.flatMap((f,d)=>f.map(([h,m],g,b)=>{let $=(v,w,U)=>{let j=Math.max(...U.map(x=>x[1])),y=U.map(x=>x[0]);return(v?[y.flat(1)]:y).map(x=>{let k=We(x);if(k)return[m,g,k,b,{...o,noMerge:w,sort:j,layer:d},r,void 0]})};return[[h.filter(([,v])=>v).map(([v,,w])=>[v,w]),!0],[h.filter(([,v])=>!v).map(([v,,w])=>[v,w]),!1]].map(([v,w])=>[...$(!1,w,v.filter(([U])=>U.some(j=>j[0]===$e.shortcutsNoMerge))),...$(!0,w,v.filter(([U])=>U.every(j=>j[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):V(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):V(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ei(e,t){return await Sn.create(e,t)}var ti=/\s\$\$\s+/g;function mf(e){return ti.test(e)}function hf(e,t){return mf(e)?e.replace(ti,t?` ${t} `:" "):t?`${t} ${e}`:e}var Qo=/^\[(.+?)(~?=)"(.*)"\]$/;function gf(e){return Qo.test(e)?e.replace(Qo,(t,r,n,o)=>`[${qt(r)}${n}"${qt(o)}"]`):`.${qt(e)}`}function bf(e,t){return t(e)}var Cn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;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=Uo(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="",d=l]=l.match(Cn)||[];if(d==="~"||n&&d==="true"||!d)return`${f}${c}`;if(o==null){let h=s?.config?.separators?.join("|");h?o=new RegExp(`^(.*\\](?:${h}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,h,m]=l.match(o)||[];if(m)return`${h}${f}${c}-${m}`}if(f&&d.match(/^[\d.]+$/)){let h=f.split(/([^:]*:)/g).filter(Boolean),m=h.pop()+d,g=h.join("");return[{matcher:`${f}${c}-${d}`},{matcher:`${g}${c}-${m}`}]}return`${f}${c}-${d}`}}}var xf=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,yf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ni=/[\s'"`;>]+/;function oi(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(xf),o,i=0;for(let v of n){let[,w,U]=v,j=v.index+w.length;if(r>j&&r<=j+U.length){i=j,o=U;break}}if(!o)return null;let s=o.matchAll(yf),a=0,c,l;for(let v of s){let[w,U,j]=v,y=i+v.index;if(r>y&&r<=y+w.length){a=y,c=U,l=j?.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 d=f?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(v){let w=f?e.prefix.length:0;return{start:a+w,end:a+c.length,replacement:v}}};let h=a+c.length+2,m=ni.exec(l),g=0,b;for(;m;){let[v]=m;if(r>h+g&&r<=h+g+m.index){b=l.slice(g,g+m.index);break}g+=m.index+v.length,m=ni.exec(l.slice(g))}b===void 0&&(b=l.slice(g));let[,$="",R]=b.match(Cn)||[];return{extracted:`${$}${d}-${R}`,transformSuggestions(v){return v.filter(w=>w.startsWith(`${$}${d}-`)).map(w=>$+w.slice($.length+d.length+1))},resolveReplacement(v){return{start:g+h,end:g+h+b.length,replacement:$+v.slice($.length+d.length+1)}}}}}}var $f=["v-bind:",":"],ii=/[\s'"`;]+/g,Rn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,vf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,En=["placeholder","fill","opacity","stroke-opacity"];function si(e){let t=e?.ignoreAttributes??En,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Rn)).flatMap(i=>Array.from((i[1]||"").matchAll(vf))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of $f)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(et(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(ii).filter(et):Rn.test(a)?(Rn.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 wf=(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??En;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=wf;function kf(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}${kf(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 Sf=/\/\/#\s*sourceMappingURL=.*\n?/g;function ui(e){return e.includes("sourceMappingURL=")?e.replace(Sf,""):e}var Cf=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Rf=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Ef=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Tf(e){let t=[];for(let o of e.matchAll(Rf))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(Cf))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ci(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Kt).forEach(o=>{o.includes(n)&&(o=li(o,r)),et(o)&&!Ef.test(o)&&t.push(o)}),t}function fi(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Tf(ui(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=We(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),E(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(V(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){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=fe(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Tn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],di=["%alpha","<alpha-value>"],jf=new RegExp(di.map(e=>ue(e)).join("|"),"g");function q(e=""){let t=zf(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Tn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&di.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(jf,`${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}`,Tn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zf(e){if(!e)return;let t=Af(e);if(t!=null||(t=Of(e),t!=null)||(t=Pf(e),t!=null)||(t=Mf(e),t!=null)||(t=Ff(e),t!=null))return t}function Af(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Of(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Pf(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 Vf=new RegExp(`^(${Tn.join("|")})\\((.+)\\)$`,"i");function Mf(e){let t=e.match(Vf);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 Ff(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}}function er(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xi=new Uint8Array(64),_f=new Uint8Array(128);for(let e=0;e<hi.length;e++){let t=hi.charCodeAt(e);xi[e]=t,_f[t]=e}function nt(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}},jn=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 jn,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=nt(t,f[0],c),f.length!==1&&(r=nt(t,f[1],r),n=nt(t,f[2],n),o=nt(t,f[3],o),f.length!==4&&(i=nt(t,f[4],i)))}}return t.flush()}var tr=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))}},rr=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 Lf(){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 Wf=Lf(),zn=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,"+Wf(this.toString())}};function Uf(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 Bf(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 Df=Object.prototype.toString;function If(e){return Df.call(e)==="[object Object]"}function $i(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 Nf=/\w/,An=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",pe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var de=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-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="",i=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&&i===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 me(){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 ge(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function he(){}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,i])=>e(i,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 ae(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 le(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(f=>{ee(r[f])&&ee(s[f])||Array.isArray(r[f])&&Array.isArray(s[f])?i[f]=le(r[f],s[f],t):Object.assign(i,{[f]:s[f]})}),i}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 xe(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,i=n.toString(),f=new Set,d=new Map;do s=!1,i=i.replace(r,(o,a,c,h,y)=>{if(!e.includes(c))return o;s=!0,f.add(a+c);let R=y+a.length+c.length+1,T={length:o.length,items:[]};d.set(y,T);for(let b of[...h.matchAll(/\S+/g)]){let $=R+b.index,S=d.get($)?.items;S?d.delete($):S=[{offset:$,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?a:C.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),T.items.push(C)}return"$".repeat(o.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let o=0;for(let[a,c]of d)l+=n.slice(o,a),l+=c.items.map(h=>h.className).join(" "),o=a+c.length;l+=n.slice(o)}else{l=n;for(let[o,a]of d)l.overwrite(o,o+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:d,get expanded(){return l.toString()}}}function Se(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 i=s[2];i.prefix==null&&e.prefix&&(i.prefix=U(e.prefix)),i.layer==null&&e.layer&&(i.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=[],i=[],f=[];for(let l of n){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&t.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&f.push(l.plain)}let d={pipeline:r?!1:{include:_(Re(...e)),exclude:_(Re(...t))}};return s.length&&(d.filesystem=_(s.flat())),i.length&&(d.inline=_(i.flat())),f.length&&(d.plain=_(f.flat())),d}async function ce(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,u)=>p.name===u.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],i=[...s,t],f=[...i].reverse(),d=Object.assign({},pe,...i.map(p=>p.layers));function l(p){return _(i.flatMap(u=>U(u[p]||[])))}let o=l("extractors"),a=f.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!o.includes(a)&&o.unshift(a),o.sort((p,u)=>(p.order||0)-(u.order||0));let c=l("rules"),h={},y=c.length,R=c.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{h[m+p[0]]=p}),!1):!0).reverse(),T=Be(i.map(p=>p.theme)),b=l("extendTheme");for(let p of b)T=p(T)||T;let $={templates:_(i.flatMap(p=>U(p.autocomplete?.templates))),extractors:i.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,u)=>(p.order||0)-(u.order||0)),shorthands:Ne(i.map(p=>p.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let C=l("content"),V=He(C),v={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:d,theme:T,rules:c,rulesSize:y,rulesDynamic:R,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:$,variants:l("variants").map(ge).sort((p,u)=>(p.order||0)-(u.order||0)),shortcuts:Ee(l("shortcuts")).reverse(),extractors:o,safelist:l("safelist"),separators:S,details:t.details??t.envMode==="dev",content:V,transformers:ie(l("transformers"),(p,u)=>p.name===u.name)};for(let p of i)p?.configResolved?.(v);return v}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>le(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.1.0-beta.11";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"},ue=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=me();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 ce(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 ce(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 i of this.config.extractors){let f=await i.extract?.(s);if(f)if(q(f)&&q(r))for(let d of f)r.setCount(d,r.getCount(d)+f.getCount(d));else for(let d of f)r.add(d)}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=e;for(let l of this.config.preprocess)s=l(e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let f=async l=>{let o=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(o.variants=[...l[3]]);let a=await this.expandShortcut(o.currentSelector,o);return a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(h=>this.stringifyUtil(h,o)).filter(J)},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d?.length)return this.cache.set(r,d),d;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:f=!0,minify:d=!1,extendedInfo:l=!1}=t,o=P(e)?await this.applyExtractors(e,r,l?new H:new Set):Array.isArray(e)?new Set(e):e;if(f){let u={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(u):m).forEach(m=>{let g=m.trim();g&&!o.has(g)&&o.add(g)})}let a=d?"":`
1
+ "use strict";(()=>{var G="default",W="preflights",ke="shortcuts",_e="imports",pe={[_e]:-200,[W]:-100,[ke]:-10,[G]:0};var de=/[\\:]?[\s'"`;{}]+/g;function Le(n){return n.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return Le(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-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="",i=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&&i===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 me(){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 ge(n){return typeof n=="function"?{match:n}:n}function oe(n){return n.length===3}function J(n){return n!=null}function he(){}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,i])=>e(i,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 ae(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 le(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(f=>{ee(r[f])&&ee(s[f])||Array.isArray(r[f])&&Array.isArray(s[f])?i[f]=le(r[f],s[f],t):Object.assign(i,{[f]:s[f]})}),i}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 xe(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,i=n.toString(),f=new Set,d=new Map;do s=!1,i=i.replace(r,(o,a,c,h,y)=>{if(!e.includes(c))return o;s=!0,f.add(a+c);let R=y+a.length+c.length+1,T={length:o.length,items:[]};d.set(y,T);for(let b of[...h.matchAll(/\S+/g)]){let $=R+b.index,S=d.get($)?.items;S?d.delete($):S=[{offset:$,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?a:C.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),T.items.push(C)}return"$".repeat(o.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let o=0;for(let[a,c]of d)l+=n.slice(o,a),l+=c.items.map(h=>h.className).join(" "),o=a+c.length;l+=n.slice(o)}else{l=n;for(let[o,a]of d)l.overwrite(o,o+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:d,get expanded(){return l.toString()}}}function Se(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 i=s[2];i.prefix==null&&e.prefix&&(i.prefix=U(e.prefix)),i.layer==null&&e.layer&&(i.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=[],i=[],f=[];for(let l of n){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&t.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&f.push(l.plain)}let d={pipeline:r?!1:{include:_(Re(...e)),exclude:_(Re(...t))}};return s.length&&(d.filesystem=_(s.flat())),i.length&&(d.inline=_(i.flat())),f.length&&(d.plain=_(f.flat())),d}async function ce(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(U).flatMap(ve))).flat(),(p,u)=>p.name===u.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],i=[...s,t],f=[...i].reverse(),d=Object.assign({},pe,...i.map(p=>p.layers));function l(p){return _(i.flatMap(u=>U(u[p]||[])))}let o=l("extractors"),a=f.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=Y),a&&!o.includes(a)&&o.unshift(a),o.sort((p,u)=>(p.order||0)-(u.order||0));let c=l("rules"),h={},y=c.length,R=c.filter(p=>ye(p)?(U(p[2]?.prefix||"").forEach(m=>{h[m+p[0]]=p}),!1):!0).reverse(),T=Be(i.map(p=>p.theme)),b=l("extendTheme");for(let p of b)T=p(T)||T;let $={templates:_(i.flatMap(p=>U(p.autocomplete?.templates))),extractors:i.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,u)=>(p.order||0)-(u.order||0)),shorthands:Ne(i.map(p=>p.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let C=l("content"),V=He(C),v={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:d,theme:T,rules:c,rulesSize:y,rulesDynamic:R,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:$,variants:l("variants").map(ge).sort((p,u)=>(p.order||0)-(u.order||0)),shortcuts:Ee(l("shortcuts")).reverse(),extractors:o,safelist:l("safelist"),separators:S,details:t.details??t.envMode==="dev",content:V,transformers:ie(l("transformers"),(p,u)=>p.name===u.name)};for(let p of i)p?.configResolved?.(v);return v}function Be(n){return n.map(e=>e?B(e):{}).reduce((e,t)=>le(e,t),{})}function Ne(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Re(...n){return n.flatMap(ze)}function ze(n){return Array.isArray(n)?n:n?[n]:[]}var we="66.1.0-beta.12";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"},ue=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=we;events=me();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 ce(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 ce(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 i of this.config.extractors){let f=await i.extract?.(s);if(f)if(q(f)&&q(r))for(let d of f)r.setCount(d,r.getCount(d)+f.getCount(d));else for(let d of f)r.add(d)}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=e;for(let l of this.config.preprocess)s=l(e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let f=async l=>{let o=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(o.variants=[...l[3]]);let a=await this.expandShortcut(o.currentSelector,o);return a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(h=>this.stringifyUtil(h,o)).filter(J)},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d?.length)return this.cache.set(r,d),d;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:f=!0,minify:d=!1,extendedInfo:l=!1}=t,o=P(e)?await this.applyExtractors(e,r,l?new H:new Set):Array.isArray(e)?new Set(e):e;if(f){let u={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(u):m).forEach(m=>{let g=m.trim();g&&!o.has(g)&&o.add(g)})}let a=d?"":`
2
2
  `,c=new Set([G]),h=l?new Map:new Set,y=new Map,R={},T=Array.from(o).map(async u=>{if(h.has(u))return;let m=await this.parseToken(u);if(m!=null){h instanceof Map?h.set(u,{data:m,count:q(o)?o.getCount(u):-1}):h.add(u);for(let g of m){let j=g[3]||"",k=g[4]?.layer;y.has(j)||y.set(j,[]),y.get(j).push(g),k&&c.add(k)}}});await Promise.all(T),await(async()=>{if(!i)return;let u={generator:this,theme:this.config.theme},m=new Set([]);this.config.preflights.forEach(({layer:g=W})=>{c.add(g),m.add(g)}),R=Object.fromEntries(await Promise.all(Array.from(m).map(async g=>{let k=(await Promise.all(this.config.preflights.filter(L=>(L.layer||W)===g).map(async L=>await L.getCSS(u)))).filter(Boolean).join(a);return[g,k]})))})();let b=this.config.sortLayers(Array.from(c).sort((u,m)=>(this.config.layers[u]??0)-(this.config.layers[m]??0)||u.localeCompare(m))),$={},S=this.config.outputToCssLayers,C=u=>{let m=u;return typeof S=="object"&&(m=S.cssLayerName?.(u)),m===null?null:m??u},V=(u=G)=>{if($[u])return $[u];let m=Array.from(y).sort((k,L)=>(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(L[0])??0)||k[0]?.localeCompare(L[0]||"")||0).map(([k,L])=>{let x=L.length,E=L.filter(A=>(A[4]?.layer||G)===u).sort((A,D)=>A[0]-D[0]||(A[4]?.sort||0)-(D[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(D[5]?.currentSelector??"")||A[1]?.localeCompare(D[1]||"")||A[2]?.localeCompare(D[2]||"")||0).map(([,A,D,,z,,re])=>[[[(A&&qe(A,s))??"",z?.sort??0]],D,!!(re??z?.noMerge)]);if(!E.length)return;let w=E.reverse().map(([A,D,z],re)=>{if(!z&&this.config.mergeSelectors)for(let K=re+1;K<x;K++){let F=E[K];if(F&&!F[2]&&(A&&F[0]||A==null&&F[0]==null)&&F[1]===D)return A&&F[0]&&F[0].push(...A),null}let se=A?_(A.sort((K,F)=>K[1]-F[1]||K[0]?.localeCompare(F[0]||"")||0).map(K=>K[0]).filter(Boolean)):[];return se.length?`${se.join(`,${a}`)}{${D}}`:D}).filter(Boolean),M=Array.from(new Set(w)).reverse().join(a);if(!k)return M;let O=k.split(" $$ ");return`${O.join("{")}{${a}${M}${a}${"}".repeat(O.length)}`}).filter(Boolean).join(a);i&&(m=[R[u],m].filter(Boolean).join(a));let g;S&&m&&(g=C(u),g!==null&&(m=`@layer ${g}{${a}${m}${a}}`));let j=d?"":`/* layer: ${u}${g&&g!==u?`, alias: ${g}`:""} */${a}`;return $[u]=m?j+m:""},v=(u=b,m)=>{let g=u.filter(j=>!m?.includes(j));return[S&&g.length>0?`@layer ${g.map(C).filter(J).join(", ")};`:void 0,...g.map(j=>V(j)||"")].filter(Boolean).join(a)};return{get css(){return v()},layers:b,matched:h,getLayers:v,getLayer:V,setLayer:async(u,m)=>{let g=await m(V(u));return $[u]=g,g}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async i=>{let f=!0,[,,d,l]=i;for(;f;){f=!1;let o=i[1];for(let a of this.config.variants){if(!a.multiPass&&l.has(a))continue;let c=await a.match(o,r);if(c){if(P(c)){if(c===o)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(a.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=c.map(y=>{let R=y.matcher??o,T=[y,...d],b=new Set(l);return b.add(a),[i[0],R,T,b]});return(await Promise.all(h.map(y=>s(y)))).flat()}}i[1]=c.matcher??o,d.unshift(c),l.add(a),f=!0;break}}if(!f)break;if(d.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let i=t.slice().sort((o,a)=>(o.order||0)-(a.order||0)).reduceRight((o,a)=>c=>{let h=a.body?.(c.entries)||c.entries,y=Array.isArray(a.parent)?a.parent:[a.parent,void 0],R=a.selector?.(c.selector,h);return(a.handle??Je)({...c,entries:h,selector:R||c.selector,parent:y[0]||c.parent,parentOrder:y[1]||c.parentOrder,layer:a.layer||c.layer,sort:a.sort||c.sort},o)},o=>o)({prefix:"",selector:Ze(r),pseudo:"",entries:e[2]}),{parent:f,parentOrder:d}=i;f!=null&&d!=null&&this.parentOrders.set(f,d);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:f,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let o of this.config.postprocess)o(l);return l}constructCustomCSS(e,t,r){let s=N(t);if(P(s))return s;let{selector:i,entries:f,parent:d}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),l=`${i}{${te(f)}}`;return d?`${d}{${l}}`:l}async parseUtil(e,t,r=!1,s){let i=P(e)?await this.matchVariants(e):[e],f=async([l,o,a])=>{this.config.details&&(t.rules=t.rules??[]);let c=this.config.rulesStaticMap[o];if(c&&c[1]&&(r||!c[2]?.internal)){this.config.details&&t.rules.push(c);let y=this.config.rules.indexOf(c),R=ae(c[1]).filter(b=>b.length),T=c[2];if(R.length)return t.generator.activatedRules.add(c),R.map(b=>P(b)?[y,b,T]:[y,l,b,T,a])}t.variantHandlers=a;let{rulesDynamic:h}=this.config;for(let y of h){let[R,T,b]=y;if(b?.internal&&!r)continue;let $=o;if(b?.prefix){let v=U(b.prefix);if(s){let p=U(s);if(!v.some(u=>p.includes(u)))continue}else{let p=v.find(u=>o.startsWith(u));if(p==null)continue;$=o.slice(p.length)}}let S=$.match(R);if(!S)continue;let C=await T(S,t);if(!C)continue;if(this.config.details&&t.rules.push(y),typeof C!="string")if(Symbol.asyncIterator in C){let v=[];for await(let p of C)p&&v.push(p);C=v}else Symbol.iterator in C&&!Array.isArray(C)&&(C=Array.from(C).filter(J));let V=ae(C).filter(v=>v.length);if(V.length){t.generator.activatedRules.add(y);let v=this.config.rules.indexOf(y);return V.map(p=>{if(P(p))return[v,p,b];let u=a,m=b;for(let g of p)g[0]===I.variants?typeof g[1]=="function"?u=g[1](u)||u:u=[...U(g[1]),...u]:g[0]===I.parent?u=[{parent:g[1]},...u]:g[0]===I.selector?u=[{selector:g[1]},...u]:g[0]===I.layer?u=[{layer:g[1]},...u]:g[0]===I.sort?m={...m,sort:g[1]}:g[0]===I.noMerge&&(m={...m,noMerge:g[1]});return[v,l,p,m,u]})}}},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d.length)return d}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:i,layer:f,sort:d,noMerge:l}=this.applyVariants(e),o=te(s);if(!o)return;let{layer:a,sort:c,...h}=e[3]??{},y={...h,layer:f??a,sort:d??c};return[e[0],r,o,i,y,this.config.details?t:void 0,l]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?o=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(o)}:he,i,f,d,l;for(let o of this.config.shortcuts){let a=e;if(o[2]?.prefix){let h=U(o[2].prefix).find(y=>e.startsWith(y));if(h==null)continue;a=e.slice(h.length)}if(xe(o)){if(o[0]===a){i=i||o[2],f=o[1],s(o);break}}else{let c=a.match(o[0]);if(c&&(f=o[1](c,t)),f){i=i||o[2],s(o);break}}}if(f&&(d=_(U(f).filter(P).map(o=>Se(o.trim()).split(/\s+/g)).flat()),l=U(f).filter(o=>!P(o)).map(o=>({handles:[],value:o}))),!f){let o=P(e)?await this.matchVariants(e):[e];for(let a of o){let[c,h,y]=a;if(c!==h){let R=await this.expandShortcut(h,t,r-1);R&&(d=R[0].filter(P).map(T=>c.replace(h,T)),l=R[0].filter(T=>!P(T)).map(T=>({handles:[...T.handles,...y],value:T.value})))}}}if(!(!d?.length&&!l?.length))return[[await Promise.all(U(d).map(async o=>(await this.expandShortcut(o,t,r-1))?.[0]||[o])),l].flat(2).filter(o=>!!o),i]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let i=new X,f=(await Promise.all(_(r).map(async a=>{let c=P(a)?await this.parseUtil(a,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(a.value),void 0,a.handles]];return!c&&this.config.warn&&Ce(`unmatched utility "${a}" in shortcut "${e[1]}"`),c||[]}))).flat(1).filter(Boolean).sort((a,c)=>a[0]-c[0]),[d,,l]=e,o=[];for(let a of f){if(oe(a)){o.push([a[0],void 0,a[1],void 0,a[2],t,void 0]);continue}let{selector:c,entries:h,parent:y,sort:R,noMerge:T,layer:b}=this.applyVariants(a,[...a[4],...l],d);i.getFallback(b??s.layer,new Q).getFallback(c,y,[[],a[0]])[0].push([h,!!(T??a[3]?.noMerge),R??0])}return o.concat(i.flatMap((a,c)=>a.map(([h,y],R,T)=>{let b=(S,C,V)=>{let v=Math.max(...V.map(u=>u[1])),p=V.map(u=>u[0]);return(S?[p.flat(1)]:p).map(u=>{let m=te(u);if(m)return[y,R,m,T,{...s,noMerge:C,sort:v,layer:c},t,void 0]})};return[[h.filter(([,S])=>S).map(([S,,C])=>[S,C]),!0],[h.filter(([,S])=>!S).map(([S,,C])=>[S,C]),!1]].map(([S,C])=>[...b(!1,C,S.filter(([V])=>V.some(v=>v[0]===I.shortcutsNoMerge))),...b(!0,C,S.filter(([V])=>V.every(v=>v[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 ue.create(n,e)}var Pe=/\s\$\$\s+/g;function Ye(n){return Pe.test(n)}function qe(n,e){return Ye(n)?n.replace(Pe,e?` ${e} `:" "):e?`${e} ${n}`:n}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Ze(n){return Ae.test(n)?n.replace(Ae,(e,t,r,s)=>`[${Z(t)}${r}"${Z(s)}"]`):`.${Z(n)}`}function Je(n,e){return e(n)}function Qe(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Ue(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ve(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var $e=["Webkit","Moz","ms"];function Oe(n){let e={};function t(r){let s=e[r];if(s)return s;let i=Qe(r);if(i!=="filter"&&i in n)return e[r]=Ve(i);i=Ue(i);for(let f=0;f<$e.length;f++){let d=`${$e[f]}${i}`;if(d in n)return e[r]=Ve(Ue(d))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function je(n){return n.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function fe(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||{},i=Object.assign({},n,s.runtime),f=i.defaults||{},d=i.cloakAttribute??"un-cloak";i.autoPrefix&&(f.postprocess=U(f.postprocess)).unshift(Oe(t.createElement("div").style)),i.configResolved?.(s,f);let l=await Me(s,f),o=x=>i.inject?i.inject(x):r().prepend(x),a=()=>i.rootElement?i.rootElement():t.body,c=new Map,h=!0,y=new Set,R,T,b=[],$=()=>new Promise(x=>{b.push(x),T!=null&&clearTimeout(T),T=setTimeout(()=>V().then(()=>{let E=b;b=[],E.forEach(w=>w())}),0)});function S(x,E=!1){if(x.nodeType!==1)return;let w=x;w.hasAttribute(d)&&w.removeAttribute(d),E&&w.querySelectorAll(`[${d}]`).forEach(M=>{M.removeAttribute(d)})}function C(x,E){let w=c.get(x);if(!w)if(w=t.createElement("style"),w.setAttribute("data-unocss-runtime-layer",x),c.set(x,w),E==null)o(w);else{let M=C(E),O=M.parentNode;O?O.insertBefore(w,M.nextSibling):o(w)}return w}async function V(){let x=[...y],E=await l.generate(x);return E.layers.reduce((M,O)=>(C(O,M).innerHTML=E.getLayer(O)??"",O),void 0),x.filter(M=>!E.matched.has(M)).forEach(M=>y.delete(M)),{...E,getStyleElement:M=>c.get(M),getStyleElements:()=>c}}async function v(x){let E=y.size;await l.applyExtractors(x,void 0,y),E!==y.size&&await $()}async function p(x=a()){let E=x&&x.outerHTML;E&&(await v(`${E} ${je(E)}`),S(r()),S(x,!0))}let u=new MutationObserver(x=>{h||x.forEach(async E=>{if(E.target.nodeType!==1)return;let w=E.target;for(let M of c)if(w===M[1])return;if(E.type==="childList")E.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let O=M;R&&!R(O)||(await v(O.outerHTML),S(O))});else{if(R&&!R(w))return;if(E.attributeName!==d){let M=Array.from(w.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),O=`<${w.tagName.toLowerCase()} ${M}>`;await v(O)}S(w)}})}),m=!1;function g(){if(m)return;let x=i.observer?.target?i.observer.target():a();x&&(u.observe(x,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),m=!0)}function j(){i.bypassDefined&&Xe(l.blocked),p(),g()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}let L=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(x){P(x)||(x.forEach(E=>y.add(E)),x=""),await v(x)},extractAll:p,inspect(x){R=x},toggleObserver(x){x===void 0?h=!h:h=!!x,!m&&!h&&k()},update:V,presets:e.__unocss_runtime?.presets??{}};i.ready?.(L)!==!1&&(h=!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}fe();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var lf=Object.defineProperty;var cf=(e,t)=>{for(var r in t)lf(e,r,{get:t[r],enumerable:!0})};var Je="default",Kt="preflights",uf="shortcuts",ff="imports",Do={[ff]:-200,[Kt]:-100,[uf]:-10,[Je]:0};var Gt=/[\\:]?[\s'"`;{}]+/g;function pf(e){return e.split(Gt)}var Ht={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return pf(e)}};function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 qt(e){return e instanceof Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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 Yt=Q;function Io(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var df=/^\[(.+?)~?="(.*)"\]$/;var mf=/[\w\u00A0-\uFFFF%-?]/;function Ko(e){return e.match(df)}function et(e=""){return mf.test(e)}function Go(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function Xt(e){return e!=null}function Ho(){}var Zt=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)))}},Jt=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 rt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Sn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>rt(t)):[e]:[rt(e)]}function hf(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?"":hf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Qt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nt(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 Qt(n)&&Qt(o)&&Object.keys(o).forEach(s=>{Qt(n[s])&&Qt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=nt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function tt(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"?tt(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:tt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?tt(n):n;return r}return e}function qo(e){return V(e[0])}function Yo(e){return V(e[0])}var er={};function gf(e=["-",":"]){let t=e.join("|");return er[t]||(er[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),er[t].lastIndex=0,er[t]}function bf(e,t=["-",":"],r=5){let n=gf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,m,h)=>{if(!t.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:c.length,items:[]};a.set(h,b);for(let y of[...m.matchAll(/\S+/g)]){let w=g+y.index,v=a.get(w)?.items;v?a.delete(w):v=[{offset:w,length:y[0].length,className:y[0]}];for(let k of v)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(k)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,p]of a)l+=e.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=e.slice(c)}else{l=e;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:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Xo(e,t=["-",":"],r=5){let n=bf(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 E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Qo="_uno_resolved";async function xf(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=E(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 xf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(E).flatMap(ri))).flat();return[t,...r]}function yf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(ei(...t)),exclude:ne(ei(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(E).flatMap(ri))).flat(),($,x)=>$.name===x.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Do,...i.map($=>$.layers));function l($){return ne(i.flatMap(x=>E(x[$]||[])))}let c=l("extractors"),f=s.find($=>$.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ht),f&&!c.includes(f)&&c.unshift(f),c.sort(($,x)=>($.order||0)-(x.order||0));let p=l("rules"),m={},h=p.length,g=p.filter($=>qo($)?(E($[2]?.prefix||"").forEach(S=>{m[S+$[0]]=$}),!1):!0).reverse(),b=$f(i.map($=>$.theme)),y=l("extendTheme");for(let $ of y)b=$(b)||b;let w={templates:ne(i.flatMap($=>E($.autocomplete?.templates))),extractors:i.flatMap($=>E($.autocomplete?.extractors)).sort(($,x)=>($.order||0)-(x.order||0)),shorthands:vf(i.map($=>$.autocomplete?.shorthands||{}))},v=l("separators");v.length||(v=[":","-"]);let k=l("content"),U=yf(k),j={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:w,variants:l("variants").map(Go).sort(($,x)=>($.order||0)-(x.order||0)),shortcuts:ti(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:v,details:r.details??r.envMode==="dev",content:U,transformers:wn(l("transformers"),($,x)=>$.name===x.name)};for(let $ of i)$?.configResolved?.(j);return j}function $f(e){return e.map(t=>t?tt(t):{}).reduce((t,r)=>nt(t,r),{})}function vf(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(wf)}function wf(e){return Array.isArray(e)?e:e?[e]:[]}var ni="66.1.0-beta.11";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=ni;events=Io();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await 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(qt(s)&&qt(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=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(m=>this.stringifyUtil(m,c)).filter(Xt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=V(t)?await this.applyExtractors(t,n,l?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(x):S).forEach(S=>{let R=S.trim();R&&!c.has(R)&&c.add(R)})}let f=a?"":`
1
+ "use strict";(()=>{var lf=Object.defineProperty;var cf=(e,t)=>{for(var r in t)lf(e,r,{get:t[r],enumerable:!0})};var Je="default",Kt="preflights",uf="shortcuts",ff="imports",Do={[ff]:-200,[Kt]:-100,[uf]:-10,[Je]:0};var Gt=/[\\:]?[\s'"`;{}]+/g;function pf(e){return e.split(Gt)}var Ht={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return pf(e)}};function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 qt(e){return e instanceof Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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 Yt=Q;function Io(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var df=/^\[(.+?)~?="(.*)"\]$/;var mf=/[\w\u00A0-\uFFFF%-?]/;function Ko(e){return e.match(df)}function et(e=""){return mf.test(e)}function Go(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function Xt(e){return e!=null}function Ho(){}var Zt=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)))}},Jt=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 rt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Sn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>rt(t)):[e]:[rt(e)]}function hf(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?"":hf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Qt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nt(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 Qt(n)&&Qt(o)&&Object.keys(o).forEach(s=>{Qt(n[s])&&Qt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=nt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function tt(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"?tt(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:tt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?tt(n):n;return r}return e}function qo(e){return V(e[0])}function Yo(e){return V(e[0])}var er={};function gf(e=["-",":"]){let t=e.join("|");return er[t]||(er[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),er[t].lastIndex=0,er[t]}function bf(e,t=["-",":"],r=5){let n=gf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,m,h)=>{if(!t.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:c.length,items:[]};a.set(h,b);for(let y of[...m.matchAll(/\S+/g)]){let w=g+y.index,v=a.get(w)?.items;v?a.delete(w):v=[{offset:w,length:y[0].length,className:y[0]}];for(let k of v)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(k)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,p]of a)l+=e.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=e.slice(c)}else{l=e;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:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Xo(e,t=["-",":"],r=5){let n=bf(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 E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Qo="_uno_resolved";async function xf(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=E(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 xf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(E).flatMap(ri))).flat();return[t,...r]}function yf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(ei(...t)),exclude:ne(ei(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(E).flatMap(ri))).flat(),($,x)=>$.name===x.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Do,...i.map($=>$.layers));function l($){return ne(i.flatMap(x=>E(x[$]||[])))}let c=l("extractors"),f=s.find($=>$.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ht),f&&!c.includes(f)&&c.unshift(f),c.sort(($,x)=>($.order||0)-(x.order||0));let p=l("rules"),m={},h=p.length,g=p.filter($=>qo($)?(E($[2]?.prefix||"").forEach(S=>{m[S+$[0]]=$}),!1):!0).reverse(),b=$f(i.map($=>$.theme)),y=l("extendTheme");for(let $ of y)b=$(b)||b;let w={templates:ne(i.flatMap($=>E($.autocomplete?.templates))),extractors:i.flatMap($=>E($.autocomplete?.extractors)).sort(($,x)=>($.order||0)-(x.order||0)),shorthands:vf(i.map($=>$.autocomplete?.shorthands||{}))},v=l("separators");v.length||(v=[":","-"]);let k=l("content"),U=yf(k),j={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:w,variants:l("variants").map(Go).sort(($,x)=>($.order||0)-(x.order||0)),shortcuts:ti(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:v,details:r.details??r.envMode==="dev",content:U,transformers:wn(l("transformers"),($,x)=>$.name===x.name)};for(let $ of i)$?.configResolved?.(j);return j}function $f(e){return e.map(t=>t?tt(t):{}).reduce((t,r)=>nt(t,r),{})}function vf(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(wf)}function wf(e){return Array.isArray(e)?e:e?[e]:[]}var ni="66.1.0-beta.12";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=ni;events=Io();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await 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(qt(s)&&qt(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=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(m=>this.stringifyUtil(m,c)).filter(Xt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=V(t)?await this.applyExtractors(t,n,l?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(x):S).forEach(S=>{let R=S.trim();R&&!c.has(R)&&c.add(R)})}let f=a?"":`
2
2
  `,p=new Set([Je]),m=l?new Map:new Set,h=new Map,g={},b=Array.from(c).map(async x=>{if(m.has(x))return;let S=await this.parseToken(x);if(S!=null){m instanceof Map?m.set(x,{data:S,count:qt(c)?c.getCount(x):-1}):m.add(x);for(let R of S){let Z=R[3]||"",J=R[4]?.layer;h.has(Z)||h.set(Z,[]),h.get(Z).push(R),J&&p.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let x={generator:this,theme:this.config.theme},S=new Set([]);this.config.preflights.forEach(({layer:R=Kt})=>{p.add(R),S.add(R)}),g=Object.fromEntries(await Promise.all(Array.from(S).map(async R=>{let J=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Kt)===R).map(async le=>await le.getCSS(x)))).filter(Boolean).join(f);return[R,J]})))})();let y=this.config.sortLayers(Array.from(p).sort((x,S)=>(this.config.layers[x]??0)-(this.config.layers[S]??0)||x.localeCompare(S))),w={},v=this.config.outputToCssLayers,k=x=>{let S=x;return typeof v=="object"&&(S=v.cssLayerName?.(x)),S===null?null:S??x},U=(x=Je)=>{if(w[x])return w[x];let S=Array.from(h).sort((J,le)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(le[0])??0)||J[0]?.localeCompare(le[0]||"")||0).map(([J,le])=>{let T=le.length,O=le.filter(N=>(N[4]?.layer||Je)===x).sort((N,ce)=>N[0]-ce[0]||(N[4]?.sort||0)-(ce[4]?.sort||0)||N[5]?.currentSelector?.localeCompare(ce[5]?.currentSelector??"")||N[1]?.localeCompare(ce[1]||"")||N[2]?.localeCompare(ce[2]||"")||0).map(([,N,ce,,It,,$n])=>[[[(N&&Cf(N,o))??"",It?.sort??0]],ce,!!($n??It?.noMerge)]);if(!O.length)return;let B=O.reverse().map(([N,ce,It],$n)=>{if(!It&&this.config.mergeSelectors)for(let Re=$n+1;Re<T;Re++){let me=O[Re];if(me&&!me[2]&&(N&&me[0]||N==null&&me[0]==null)&&me[1]===ce)return N&&me[0]&&me[0].push(...N),null}let vn=N?ne(N.sort((Re,me)=>Re[1]-me[1]||Re[0]?.localeCompare(me[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return vn.length?`${vn.join(`,${f}`)}{${ce}}`:ce}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(f);if(!J)return D;let X=J.split(" $$ ");return`${X.join("{")}{${f}${D}${f}${"}".repeat(X.length)}`}).filter(Boolean).join(f);i&&(S=[g[x],S].filter(Boolean).join(f));let R;v&&S&&(R=k(x),R!==null&&(S=`@layer ${R}{${f}${S}${f}}`));let Z=a?"":`/* layer: ${x}${R&&R!==x?`, alias: ${R}`:""} */${f}`;return w[x]=S?Z+S:""},j=(x=y,S)=>{let R=x.filter(Z=>!S?.includes(Z));return[v&&R.length>0?`@layer ${R.map(k).filter(Xt).join(", ")};`:void 0,...R.map(Z=>U(Z)||"")].filter(Boolean).join(f)};return{get css(){return j()},layers:y,matched:m,getLayers:j,getLayer:U,setLayer:async(x,S)=>{let R=await S(U(x));return w[x]=R,R}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(V(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 m=p.map(h=>{let g=h.matcher??c,b=[h,...a],y=new Set(l);return y.add(f),[i[0],g,b,y]});return(await Promise.all(m.map(h=>o(h)))).flat()}}i[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 "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>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??Rf)({...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},c)},c=>c)({prefix:"",selector:En(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(t,r,n){let o=rt(r);if(V(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${Le(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=V(t)?await this.matchVariants(t):[t],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),g=Sn(p[1]).filter(y=>y.length),b=p[2];if(g.length)return r.generator.activatedRules.add(p),g.map(y=>V(y)?[h,y,b]:[h,l,y,b,f])}r.variantHandlers=f;let{rulesDynamic:m}=this.config;for(let h of m){let[g,b,y]=h;if(y?.internal&&!n)continue;let w=c;if(y?.prefix){let j=E(y.prefix);if(o){let $=E(o);if(!j.some(x=>$.includes(x)))continue}else{let $=j.find(x=>c.startsWith(x));if($==null)continue;w=c.slice($.length)}}let v=w.match(g);if(!v)continue;let k=await b(v,r);if(!k)continue;if(this.config.details&&r.rules.push(h),typeof k!="string")if(Symbol.asyncIterator in k){let j=[];for await(let $ of k)$&&j.push($);k=j}else Symbol.iterator in k&&!Array.isArray(k)&&(k=Array.from(k).filter(Xt));let U=Sn(k).filter(j=>j.length);if(U.length){r.generator.activatedRules.add(h);let j=this.config.rules.indexOf(h);return U.map($=>{if(V($))return[j,$,y];let x=f,S=y;for(let R of $)R[0]===$e.variants?typeof R[1]=="function"?x=R[1](x)||x:x=[...E(R[1]),...x]:R[0]===$e.parent?x=[{parent:R[1]},...x]:R[0]===$e.selector?x=[{selector:R[1]},...x]:R[0]===$e.layer?x=[{layer:R[1]},...x]:R[0]===$e.sort?S={...S,sort:R[1]}:R[0]===$e.noMerge&&(S={...S,noMerge:R[1]});return[j,l,$,S,x]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}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:l}=this.applyVariants(t),c=Le(o);if(!c)return;let{layer:f,sort:p,...m}=t[3]??{},h={...m,layer:s??f,sort:a??p};return[t[0],n,c,i,h,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:Ho,i,s,a,l;for(let c of this.config.shortcuts){let f=t;if(c[2]?.prefix){let m=E(c[2].prefix).find(h=>t.startsWith(h));if(m==null)continue;f=t.slice(m.length)}if(Yo(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){i=i||c[2],o(c);break}}}if(s&&(a=ne(E(s).filter(V).map(c=>Xo(c.trim()).split(/\s+/g)).flat()),l=E(s).filter(c=>!V(c)).map(c=>({handles:[],value:c}))),!s){let c=V(t)?await this.matchVariants(t):[t];for(let f of c){let[p,m,h]=f;if(p!==m){let g=await this.expandShortcut(m,r,n-1);g&&(a=g[0].filter(V).map(b=>p.replace(m,b)),l=g[0].filter(b=>!V(b)).map(b=>({handles:[...b.handles,...h],value:b.value})))}}}if(!(!a?.length&&!l?.length))return[[await Promise.all(E(a).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),l].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Jt,s=(await Promise.all(ne(n).map(async f=>{let p=V(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",rt(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,,l]=t,c=[];for(let f of s){if(kn(f)){c.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:y}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(y??o.layer,new Zt).getFallback(p,h,[[],f[0]])[0].push([m,!!(b??f[3]?.noMerge),g??0])}return c.concat(i.flatMap((f,p)=>f.map(([m,h],g,b)=>{let y=(v,k,U)=>{let j=Math.max(...U.map(x=>x[1])),$=U.map(x=>x[0]);return(v?[$.flat(1)]:$).map(x=>{let S=Le(x);if(S)return[h,g,S,b,{...o,noMerge:k,sort:j,layer:p},r,void 0]})};return[[m.filter(([,v])=>v).map(([v,,k])=>[v,k]),!0],[m.filter(([,v])=>!v).map(([v,,k])=>[v,k]),!1]].map(([v,k])=>[...y(!1,k,v.filter(([U])=>U.some(j=>j[0]===$e.shortcutsNoMerge))),...y(!0,k,v.filter(([U])=>U.every(j=>j[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):V(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):V(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ii(e,t){return await Rn.create(e,t)}var si=/\s\$\$\s+/g;function Sf(e){return si.test(e)}function Cf(e,t){return Sf(e)?e.replace(si,t?` ${t} `:" "):t?`${t} ${e}`:e}var oi=/^\[(.+?)(~?=)"(.*)"\]$/;function En(e){return oi.test(e)?e.replace(oi,(t,r,n,o)=>`[${Yt(r)}${n}"${Yt(o)}"]`):`.${Yt(e)}`}function Rf(e,t){return t(e)}var Tn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;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=Ko(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(Tn)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let m=s?.config?.separators?.join("|");m?o=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,m,h]=c.match(o)||[];if(h)return`${m}${f}${l}-${h}`}if(f&&p.match(/^[\d.]+$/)){let m=f.split(/([^:]*:)/g).filter(Boolean),h=m.pop()+p,g=m.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${h}`}]}return`${f}${l}-${p}`}}}var Ef=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Tf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,li=/[\s'"`;>]+/;function ci(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(Ef),o,i=0;for(let v of n){let[,k,U]=v,j=v.index+k.length;if(r>j&&r<=j+U.length){i=j,o=U;break}}if(!o)return null;let s=o.matchAll(Tf),a=0,l,c;for(let v of s){let[k,U,j]=v,$=i+v.index;if(r>$&&r<=$+k.length){a=$,l=U,c=j?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(v){let k=f?e.prefix.length:0;return{start:a+k,end:a+l.length,replacement:v}}};let m=a+l.length+2,h=li.exec(c),g=0,b;for(;h;){let[v]=h;if(r>m+g&&r<=m+g+h.index){b=c.slice(g,g+h.index);break}g+=h.index+v.length,h=li.exec(c.slice(g))}b===void 0&&(b=c.slice(g));let[,y="",w]=b.match(Tn)||[];return{extracted:`${y}${p}-${w}`,transformSuggestions(v){return v.filter(k=>k.startsWith(`${y}${p}-`)).map(k=>y+k.slice(y.length+p.length+1))},resolveReplacement(v){return{start:g+m,end:g+m+b.length,replacement:y+v.slice(y.length+p.length+1)}}}}}}var jf=["v-bind:",":"],ui=/[\s'"`;]+/g,jn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,zf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,zn=["placeholder","fill","opacity","stroke-opacity"];function fi(e){let t=e?.ignoreAttributes??zn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(jn)).flatMap(i=>Array.from((i[1]||"").matchAll(zf))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of jf)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(et(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(ui).filter(et):jn.test(a)?(jn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(ui).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Af=(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??zn;let t=[ai(e)],r=[fi(e)],n=[ci(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},pi=Af;var tr="__TAGIFY__",Of=/<([\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(Of)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${tr}${o}`)}}}function mi(e){let{extraProperties:t}=e,r=`${tr}${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(tr.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var Pf=(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=Pf;function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(V(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function Ee(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=fe(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var An=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rr=["%alpha","<alpha-value>"],Vf=new RegExp(rr.map(e=>ue(e)).join("|"),"g");function q(e=""){let t=Mf(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(An.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&rr.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(Vf,`${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}`,An.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Mf(e){if(!e)return;let t=Ff(e);if(t!=null||(t=_f(e),t!=null)||(t=Wf(e),t!=null)||(t=Uf(e),t!=null)||(t=Bf(e),t!=null))return t}function Ff(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function _f(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Wf(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 Lf=new RegExp(`^(${An.join("|")})\\((.+)\\)$`,"i");function Uf(e){let t=e.match(Lf);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 Bf(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}}function nr(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$i=new Uint8Array(64),Nf=new Uint8Array(128);for(let e=0;e<bi.length;e++){let t=bi.charCodeAt(e);$i[e]=t,Nf[t]=e}function ot(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($i[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}},On=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 vi(e){let t=new On,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&t.write(44),l=ot(t,f[0],l),f.length!==1&&(r=ot(t,f[1],r),n=ot(t,f[2],n),o=ot(t,f[3],o),f.length!==4&&(i=ot(t,f[4],i)))}}return t.flush()}var or=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))}},ir=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 Df(){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 If=Df(),Pn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=vi(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,"+If(this.toString())}};function Kf(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 Gf(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 Hf=Object.prototype.toString;function qf(e){return Hf.call(e)==="[object Object]"}function wi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var Yf=/\w/,Vn=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 Oi=Object.defineProperty;var Pi=(t,e)=>{for(var r in e)Oi(t,r,{get:e[r],enumerable:!0})};var xe="default",Fe="preflights",Vi="shortcuts",zi="imports",Qt={[zi]:-200,[Fe]:-100,[Vi]:-10,[xe]:0};var Ue=/[\\:]?[\s'"`;{}]+/g;function Mi(t){return t.split(Ue)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Mi(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-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 re(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.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&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var We=se;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 Li=/^\[(.+?)~?="(.*)"\]$/;var Fi=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Li)}function we(t=""){return Fi.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function De(t){return t!=null}function nr(){}var Ne=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.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(([o,i])=>e(i,r,o)))}},Be=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,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function Se(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ht(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>Se(e)):[t]:[Se(t)]}function Ui(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function ce(t){return t==null?"":Ui(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 mt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ke(n)&&Ke(o)&&Object.keys(o).forEach(s=>{Ke(n[s])&&Ke(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=mt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}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 ir(t){return z(t[0])}var Ge={};function _i(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 Ii(t,e=["-",":"],r=5){let n=_i(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,x={length:c.length,items:[]};l.set(h,x);for(let w of[...d.matchAll(/\S+/g)]){let R=g+w.index,y=l.get(R)?.items;y?l.delete(R):y=[{offset:R,length:w[0].length,className:w[0]}];for(let S of y)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return a.toString()}}}function sr(t,e=["-",":"],r=5){let n=Ii(t,e,r);return typeof t=="string"?n.expanded:t}var ar=new Set;function lr(t){ar.has(t)||(console.warn("[unocss]",t),ar.add(t))}function fr(t){return T(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var cr="_uno_resolved";async function Wi(t){let e=typeof t=="function"?await t():await t;if(cr in e)return e;e={...e},Object.defineProperty(e,cr,{value:!0,enumerable:!1});let r=e.shortcuts?fr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=T(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function pr(t){let e=await Wi(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(T).flatMap(pr))).flat();return[e,...r]}function Di(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:B(ur(...e)),exclude:B(ur(...r))}};return o.length&&(l.filesystem=B(o.flat())),i.length&&(l.inline=B(i.flat())),s.length&&(l.plain=B(s.flat())),l}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(pr))).flat(),(b,m)=>b.name===m.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),l=Object.assign({},Qt,...i.map(b=>b.layers));function a(b){return B(i.flatMap(m=>T(m[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((b,m)=>(b.order||0)-(m.order||0));let p=a("rules"),d={},h=p.length,g=p.filter(b=>or(b)?(T(b[2]?.prefix||"").forEach($=>{d[$+b[0]]=b}),!1):!0).reverse(),x=Ni(i.map(b=>b.theme)),w=a("extendTheme");for(let b of w)x=b(x)||x;let R={templates:B(i.flatMap(b=>T(b.autocomplete?.templates))),extractors:i.flatMap(b=>T(b.autocomplete?.extractors)).sort((b,m)=>(b.order||0)-(m.order||0)),shorthands:Bi(i.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let S=a("content"),O=Di(S),k={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:R,variants:a("variants").map(rr).sort((b,m)=>(b.order||0)-(m.order||0)),shortcuts:fr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:O,transformers:pt(a("transformers"),(b,m)=>b.name===m.name)};for(let b of i)b?.configResolved?.(k);return k}function Ni(t){return t.map(e=>e?$e(e):{}).reduce((e,r)=>mt(e,r),{})}function Bi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function ur(...t){return t.flatMap(Ki)}function Ki(t){return Array.isArray(t)?t:t?[t]:[]}var dr="66.1.0-beta.11";var Q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=dr;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 gt(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 gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Ie(s)&&Ie(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Q,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=e;for(let a of this.config.preprocess)o=a(e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(De)},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(m):$).forEach($=>{let v=$.trim();v&&!c.has(v)&&c.add(v)})}let f=l?"":`
1
+ "use strict";(()=>{var Oi=Object.defineProperty;var Pi=(t,e)=>{for(var r in e)Oi(t,r,{get:e[r],enumerable:!0})};var xe="default",Fe="preflights",Vi="shortcuts",zi="imports",Qt={[zi]:-200,[Fe]:-100,[Vi]:-10,[xe]:0};var Ue=/[\\:]?[\s'"`;{}]+/g;function Mi(t){return t.split(Ue)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Mi(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-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 re(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.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&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var We=se;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 Li=/^\[(.+?)~?="(.*)"\]$/;var Fi=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Li)}function we(t=""){return Fi.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function De(t){return t!=null}function nr(){}var Ne=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.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(([o,i])=>e(i,r,o)))}},Be=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,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function Se(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ht(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>Se(e)):[t]:[Se(t)]}function Ui(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function ce(t){return t==null?"":Ui(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 mt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ke(n)&&Ke(o)&&Object.keys(o).forEach(s=>{Ke(n[s])&&Ke(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=mt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}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 ir(t){return z(t[0])}var Ge={};function _i(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 Ii(t,e=["-",":"],r=5){let n=_i(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,x={length:c.length,items:[]};l.set(h,x);for(let w of[...d.matchAll(/\S+/g)]){let R=g+w.index,y=l.get(R)?.items;y?l.delete(R):y=[{offset:R,length:w[0].length,className:w[0]}];for(let S of y)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return a.toString()}}}function sr(t,e=["-",":"],r=5){let n=Ii(t,e,r);return typeof t=="string"?n.expanded:t}var ar=new Set;function lr(t){ar.has(t)||(console.warn("[unocss]",t),ar.add(t))}function fr(t){return T(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var cr="_uno_resolved";async function Wi(t){let e=typeof t=="function"?await t():await t;if(cr in e)return e;e={...e},Object.defineProperty(e,cr,{value:!0,enumerable:!1});let r=e.shortcuts?fr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=T(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function pr(t){let e=await Wi(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(T).flatMap(pr))).flat();return[e,...r]}function Di(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:B(ur(...e)),exclude:B(ur(...r))}};return o.length&&(l.filesystem=B(o.flat())),i.length&&(l.inline=B(i.flat())),s.length&&(l.plain=B(s.flat())),l}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(pr))).flat(),(b,m)=>b.name===m.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),l=Object.assign({},Qt,...i.map(b=>b.layers));function a(b){return B(i.flatMap(m=>T(m[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((b,m)=>(b.order||0)-(m.order||0));let p=a("rules"),d={},h=p.length,g=p.filter(b=>or(b)?(T(b[2]?.prefix||"").forEach($=>{d[$+b[0]]=b}),!1):!0).reverse(),x=Ni(i.map(b=>b.theme)),w=a("extendTheme");for(let b of w)x=b(x)||x;let R={templates:B(i.flatMap(b=>T(b.autocomplete?.templates))),extractors:i.flatMap(b=>T(b.autocomplete?.extractors)).sort((b,m)=>(b.order||0)-(m.order||0)),shorthands:Bi(i.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let S=a("content"),O=Di(S),k={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:R,variants:a("variants").map(rr).sort((b,m)=>(b.order||0)-(m.order||0)),shortcuts:fr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:O,transformers:pt(a("transformers"),(b,m)=>b.name===m.name)};for(let b of i)b?.configResolved?.(k);return k}function Ni(t){return t.map(e=>e?$e(e):{}).reduce((e,r)=>mt(e,r),{})}function Bi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function ur(...t){return t.flatMap(Ki)}function Ki(t){return Array.isArray(t)?t:t?[t]:[]}var dr="66.1.0-beta.12";var Q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=dr;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 gt(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 gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Ie(s)&&Ie(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Q,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=e;for(let a of this.config.preprocess)o=a(e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(De)},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(m):$).forEach($=>{let v=$.trim();v&&!c.has(v)&&c.add(v)})}let f=l?"":`
2
2
  `,p=new Set([xe]),d=a?new Map:new Set,h=new Map,g={},x=Array.from(c).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:Ie(c)?c.getCount(m):-1}):d.add(m);for(let v of $){let _=v[3]||"",I=v[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(v),I&&p.add(I)}}});await Promise.all(x),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:v=Fe})=>{p.add(v),$.add(v)}),g=Object.fromEntries(await Promise.all(Array.from($).map(async v=>{let I=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Fe)===v).map(async H=>await H.getCSS(m)))).filter(Boolean).join(f);return[v,I]})))})();let w=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),R={},y=this.config.outputToCssLayers,S=m=>{let $=m;return typeof y=="object"&&($=y.cssLayerName?.(m)),$===null?null:$??m},O=(m=xe)=>{if(R[m])return R[m];let $=Array.from(h).sort((I,H)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(H[0])??0)||I[0]?.localeCompare(H[0]||"")||0).map(([I,H])=>{let C=H.length,E=H.filter(V=>(V[4]?.layer||xe)===m).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&&qi(V,o))??"",Le?.sort??0]],q,!!(ut??Le?.noMerge)]);if(!E.length)return;let P=E.reverse().map(([V,q,Le],ut)=>{if(!Le&&this.config.mergeSelectors)for(let te=ut+1;te<C;te++){let X=E[te];if(X&&!X[2]&&(V&&X[0]||V==null&&X[0]==null)&&X[1]===q)return V&&X[0]&&X[0].push(...V),null}let ft=V?B(V.sort((te,X)=>te[1]-X[1]||te[0]?.localeCompare(X[0]||"")||0).map(te=>te[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${f}`)}{${q}}`:q}).filter(Boolean),M=Array.from(new Set(P)).reverse().join(f);if(!I)return M;let U=I.split(" $$ ");return`${U.join("{")}{${f}${M}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&($=[g[m],$].filter(Boolean).join(f));let v;y&&$&&(v=S(m),v!==null&&($=`@layer ${v}{${f}${$}${f}}`));let _=l?"":`/* layer: ${m}${v&&v!==m?`, alias: ${v}`:""} */${f}`;return R[m]=$?_+$:""},k=(m=w,$)=>{let v=m.filter(_=>!$?.includes(_));return[y&&v.length>0?`@layer ${v.map(S).filter(De).join(", ")};`:void 0,...v.map(_=>O(_)||"")].filter(Boolean).join(f)};return{get css(){return k()},layers:w,matched:d,getLayers:k,getLayer:O,setLayer:async(m,$)=>{let v=await $(O(m));return R[m]=v,v}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,l,a]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let p=await f.match(c,n);if(p){if(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(h=>{let g=h.matcher??c,x=[h,...l],w=new Set(a);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,l.unshift(p),a.add(f),s=!0;break}}if(!s)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(p.selector,d);return(f.handle??Xi)({...p,entries:d,selector:g||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Yi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:l}=i;s!=null&&l!=null&&this.parentOrders.set(s,l);let a={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(e,r,n){let o=Se(r);if(z(o))return o;let{selector:i,entries:s,parent:l}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),a=`${i}{${ce(s)}}`;return l?`${l}{${a}}`:a}async parseUtil(e,r,n=!1,o){let i=z(e)?await this.matchVariants(e):[e],s=async([a,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),g=ht(p[1]).filter(w=>w.length),x=p[2];if(g.length)return r.generator.activatedRules.add(p),g.map(w=>z(w)?[h,w,x]:[h,a,w,x,f])}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[g,x,w]=h;if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let k=T(w.prefix);if(o){let b=T(o);if(!k.some(m=>b.includes(m)))continue}else{let b=k.find(m=>c.startsWith(m));if(b==null)continue;R=c.slice(b.length)}}let y=R.match(g);if(!y)continue;let S=await x(y,r);if(!S)continue;if(this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let k=[];for await(let b of S)b&&k.push(b);S=k}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(De));let O=ht(S).filter(k=>k.length);if(O.length){r.generator.activatedRules.add(h);let k=this.config.rules.indexOf(h);return O.map(b=>{if(z(b))return[k,b,w];let m=f,$=w;for(let v of b)v[0]===Q.variants?typeof v[1]=="function"?m=v[1](m)||m:m=[...T(v[1]),...m]:v[0]===Q.parent?m=[{parent:v[1]},...m]:v[0]===Q.selector?m=[{selector:v[1]},...m]:v[0]===Q.layer?m=[{layer:v[1]},...m]:v[0]===Q.sort?$={...$,sort:v[1]}:v[0]===Q.noMerge&&($={...$,noMerge:v[1]});return[k,a,b,$,m]})}}},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l.length)return l}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:o,parent:i,layer:s,sort:l,noMerge:a}=this.applyVariants(e),c=ce(o);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:l??p};return[e[0],n,c,i,h,this.config.details?r:void 0,a]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:nr,i,s,l,a;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let d=T(c[2].prefix).find(h=>e.startsWith(h));if(d==null)continue;f=e.slice(d.length)}if(ir(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){i=i||c[2],o(c);break}}}if(s&&(l=B(T(s).filter(z).map(c=>sr(c.trim()).split(/\s+/g)).flat()),a=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,h]=f;if(p!==d){let g=await this.expandShortcut(d,r,n-1);g&&(l=g[0].filter(z).map(x=>p.replace(d,x)),a=g[0].filter(x=>!z(x)).map(x=>({handles:[...x.handles,...h],value:x.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(T(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Be,s=(await Promise.all(B(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Se(f.value),void 0,f.handles]];return!p&&this.config.warn&&lr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[l,,a]=e,c=[];for(let f of s){if(dt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...a],l);i.getFallback(w??o.layer,new Ne).getFallback(p,h,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return c.concat(i.flatMap((f,p)=>f.map(([d,h],g,x)=>{let w=(y,S,O)=>{let k=Math.max(...O.map(m=>m[1])),b=O.map(m=>m[0]);return(y?[b.flat(1)]:b).map(m=>{let $=ce(m);if($)return[h,g,$,x,{...o,noMerge:S,sort:k,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,S])=>[y,S]),!0],[d.filter(([,y])=>!y).map(([y,,S])=>[y,S]),!1]].map(([y,S])=>[...w(!1,S,y.filter(([O])=>O.some(k=>k[0]===Q.shortcutsNoMerge))),...w(!0,S,y.filter(([O])=>O.every(k=>k[0]!==Q.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 o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):z(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function mr(t,e){return await bt.create(t,e)}var gr=/\s\$\$\s+/g;function Hi(t){return gr.test(t)}function qi(t,e){return Hi(t)?t.replace(gr,e?` ${e} `:" "):e?`${e} ${t}`:t}var hr=/^\[(.+?)(~?=)"(.*)"\]$/;function Yi(t){return hr.test(t)?t.replace(hr,(e,r,n,o)=>`[${We(r)}${n}"${We(o)}"]`):`.${We(t)}`}function Xi(t,e){return e(t)}var xt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function br(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let l=tr(i);if(!l)return;let a=l[1];if(a.startsWith(e))a=a.slice(e.length);else if(r)return;let c=l[2],[,f="",p=c]=c.match(xt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${a}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,h]=c.match(o)||[];if(h)return`${d}${f}${a}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,g=d.join("");return[{matcher:`${f}${a}-${p}`},{matcher:`${g}${a}-${h}`}]}return`${f}${a}-${p}`}}}var Zi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ji=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,xr=/[\s'"`;>]+/;function yr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Zi),o,i=0;for(let y of n){let[,S,O]=y,k=y.index+S.length;if(r>k&&r<=k+O.length){i=k,o=O;break}}if(!o)return null;let s=o.matchAll(Ji),l=0,a,c;for(let y of s){let[S,O,k]=y,b=i+y.index;if(r>b&&r<=b+S.length){l=b,a=O,c=k?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!t?.prefix&&a.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?a.slice(t.prefix.length):a;if(c===void 0)return{extracted:p,resolveReplacement(y){let S=f?t.prefix.length:0;return{start:l+S,end:l+a.length,replacement:y}}};let d=l+a.length+2,h=xr.exec(c),g=0,x;for(;h;){let[y]=h;if(r>d+g&&r<=d+g+h.index){x=c.slice(g,g+h.index);break}g+=h.index+y.length,h=xr.exec(c.slice(g))}x===void 0&&(x=c.slice(g));let[,w="",R]=x.match(xt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(y){return y.filter(S=>S.startsWith(`${w}${p}-`)).map(S=>w+S.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Qi=["v-bind:",":"],wr=/[\s'"`;]+/g,yt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,es=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,wt=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??wt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(yt)).flatMap(i=>Array.from((i[1]||"").matchAll(es))).flatMap(([,i,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(i))return[];for(let a of Qi)if(i.startsWith(a)){i=i.slice(a.length);break}if(!l){if(we(i)&&r!==!1){let a=[`[${i}=""]`];return n&&a.push(`[${i}="true"]`),a}return[]}return["class","className"].includes(i)?l.split(wr).filter(we):yt.test(l)?(yt.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:l.split(wr).filter(a=>!!a&&a!==":").map(a=>`[${i}~="${a}"]`)})}}}var ts=(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??wt;let e=[br(t)],r=[$r(t)],n=[yr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Sr=ts;function rs(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 vr(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${rs(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function Cr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var ns=/\/\/#\s*sourceMappingURL=.*\n?/g;function kr(t){return t.includes("sourceMappingURL=")?t.replace(ns,""):t}var os=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,is=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ss=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function as(t){let e=[];for(let o of t.matchAll(is))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(os))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=vr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Ue).forEach(o=>{o.includes(n)&&(o=Cr(o,r)),we(o)&&!ss.test(o)&&e.push(o)}),e}function Rr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return as(kr(t))}}}function Tr(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 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=ce(n);return t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),T(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ue(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let a=l.length;if(a&&l===t.slice(s,s+a)&&i===0)return s===0||s===o-a?void 0:[t.slice(0,s),t.slice(s+a)]}}return[t,""]}function pe(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=fe(t,"(",")",e);if(!i)return;let[s,l]=i;n.push(s),t=l}if(n.length>0)return n}var $t=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Er=["%alpha","<alpha-value>"],ls=new RegExp(Er.map(t=>re(t)).join("|"),"g");function ne(t=""){let e=cs(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!($t.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 ve(t){let e=t.alpha??1;return typeof e=="string"&&Er.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(ls,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,$t.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function cs(t){if(!t)return;let e=us(t);if(e!=null||(e=fs(t),e!=null)||(e=ps(t),e!=null)||(e=hs(t),e!=null)||(e=ms(t),e!=null))return e}function us(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);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 n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function fs(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function ps(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=pe(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 ds=new RegExp(`^(${$t.join("|")})\\((.+)\\)$`,"i");function hs(t){let e=t.match(ds);if(!e)return;let[,r,n]=e,o=jr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function ms(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=jr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function jr(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 i=e.splice(r-2);e.push(i.join(" ")),--r}let n=pe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ar(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zr=new Uint8Array(64),gs=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);zr[t]=e,gs[e]=t}function Ce(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(zr[o])}while(n>0);return e}var Pr=1024*16,Vr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},St=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Pr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Pr&&(this.out+=Vr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Vr.decode(e.subarray(0,n)):r}};function Mr(t){let e=new St,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(44),a=Ce(e,f[0],a),f.length!==1&&(r=Ce(e,f[1],r),n=Ce(e,f[2],n),o=Ce(e,f[3],o),f.length!==4&&(i=Ce(e,f[4],i)))}}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),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,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(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 bs(){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 xs=bs(),vt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Mr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+xs(this.toString())}};function ys(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.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 l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function ws(t,e){let r=t.split(/[/\\]/),n=e.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 $s=Object.prototype.toString;function Ss(t){return $s.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let l=i-1,a=o-r[l];return{line:l,column:a}}}var vs=/\w/,Ct=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,o){if(r.length){let i=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.1.0-beta.11",
4
+ "version": "66.1.0-beta.12",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "66.1.0-beta.11",
39
- "@unocss/preset-uno": "66.1.0-beta.11",
40
- "@unocss/preset-attributify": "66.1.0-beta.11"
38
+ "@unocss/core": "66.1.0-beta.12",
39
+ "@unocss/preset-uno": "66.1.0-beta.12",
40
+ "@unocss/preset-attributify": "66.1.0-beta.12"
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 Bu=Object.defineProperty;var Du=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})};var Je="default",It="preflights",Iu="shortcuts",Nu="imports",Vo={[Nu]:-200,[It]:-100,[Iu]:-10,[Je]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Ku(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ku(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function xn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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=Q;function Mo(){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 Gu=/[\w\u00A0-\uFFFF%-?]/;function Fo(e=""){return Gu.test(e)}function _o(e){return typeof e=="function"?{match:e}:e}function yn(e){return e.length===3}function qt(e){return e!=null}function Lo(){}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 tt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $n(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function Hu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":Hu(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 vn(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]=vn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(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"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Wo(e){return V(e[0])}function Uo(e){return V(e[0])}var Jt={};function qu(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 Yu(e,t=["-",":"],r=5){let n=qu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,p,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(p+d);let g=m+p.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let C=g+$.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:$[0].length,className:$[0]}];for(let T of v)T.className=T.className==="~"?p:T.className.replace(/^(!?)(.*)/,`$1${p}${d}$2`),b.items.push(T)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,d]of a)c+=e.slice(l,p),c+=d.items.map(h=>h.className).join(" "),l=p+d.length;c+=e.slice(l)}else{c=e;for(let[l,p]of a)c.overwrite(l,l+p.length,p.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=Yu(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function Io(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Go(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Xu(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=R(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 Xu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(Ho))).flat();return[t,...r]}function Zu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Ko(...t)),exclude:ne(Ko(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function wn(e={},t={}){let r=Object.assign({},t,e),n=xn((await Promise.all((r.presets||[]).flatMap(R).flatMap(Ho))).flat(),(y,x)=>y.name===x.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({},Vo,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>R(x[y]||[])))}let l=c("extractors"),p=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=Kt),p&&!l.includes(p)&&l.unshift(p),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Wo(y)?(R(y[2]?.prefix||"").forEach(w=>{h[w+y[0]]=y}),!1):!0).reverse(),b=Ju(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let C={templates:ne(i.flatMap(y=>R(y.autocomplete?.templates))),extractors:i.flatMap(y=>R(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:Qu(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let T=c("content"),H=Zu(T),P={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(_o).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:H,transformers:xn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(P);return P}function Ju(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>vn(t,r),{})}function Qu(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(ef)}function ef(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.1.0-beta.11";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"},kn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Mo();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 wn(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 wn(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=t;for(let c of this.config.preprocess)o=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 p=await this.expandShortcut(l.currentSelector,l);return p?await this.stringifyShortcuts(l.variantMatch,l,p[0],p[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,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=V(t)?await this.applyExtractors(t,n,c?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(x):w).forEach(w=>{let S=w.trim();S&&!l.has(S)&&l.add(S)})}let p=a?"":`
1
+ "use strict";(()=>{var Bu=Object.defineProperty;var Du=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})};var Je="default",It="preflights",Iu="shortcuts",Nu="imports",Vo={[Nu]:-200,[It]:-100,[Iu]:-10,[Je]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Ku(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ku(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function xn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function V(e){return typeof e=="string"}var Qe=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 Qe}function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(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=Q;function Mo(){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 Gu=/[\w\u00A0-\uFFFF%-?]/;function Fo(e=""){return Gu.test(e)}function _o(e){return typeof e=="function"?{match:e}:e}function yn(e){return e.length===3}function qt(e){return e!=null}function Lo(){}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 tt(e){return V(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $n(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function Hu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":Hu(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 vn(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]=vn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(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"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Wo(e){return V(e[0])}function Uo(e){return V(e[0])}var Jt={};function qu(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 Yu(e,t=["-",":"],r=5){let n=qu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,p,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(p+d);let g=m+p.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let C=g+$.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:$[0].length,className:$[0]}];for(let T of v)T.className=T.className==="~"?p:T.className.replace(/^(!?)(.*)/,`$1${p}${d}$2`),b.items.push(T)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,d]of a)c+=e.slice(l,p),c+=d.items.map(h=>h.className).join(" "),l=p+d.length;c+=e.slice(l)}else{c=e;for(let[l,p]of a)c.overwrite(l,l+p.length,p.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=Yu(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function Io(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Go(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Xu(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=R(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 Xu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(Ho))).flat();return[t,...r]}function Zu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(Ko(...t)),exclude:ne(Ko(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function wn(e={},t={}){let r=Object.assign({},t,e),n=xn((await Promise.all((r.presets||[]).flatMap(R).flatMap(Ho))).flat(),(y,x)=>y.name===x.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({},Vo,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>R(x[y]||[])))}let l=c("extractors"),p=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=Kt),p&&!l.includes(p)&&l.unshift(p),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Wo(y)?(R(y[2]?.prefix||"").forEach(w=>{h[w+y[0]]=y}),!1):!0).reverse(),b=Ju(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let C={templates:ne(i.flatMap(y=>R(y.autocomplete?.templates))),extractors:i.flatMap(y=>R(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:Qu(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let T=c("content"),H=Zu(T),P={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(_o).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:H,transformers:xn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(P);return P}function Ju(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>vn(t,r),{})}function Qu(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(ef)}function ef(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.1.0-beta.12";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"},kn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Mo();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 wn(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 wn(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=t;for(let c of this.config.preprocess)o=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 p=await this.expandShortcut(l.currentSelector,l);return p?await this.stringifyShortcuts(l.variantMatch,l,p[0],p[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,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=V(t)?await this.applyExtractors(t,n,c?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(x):w).forEach(w=>{let S=w.trim();S&&!l.has(S)&&l.add(S)})}let p=a?"":`
2
2
  `,d=new Set([Je]),h=c?new Map:new Set,m=new Map,g={},b=Array.from(l).map(async x=>{if(h.has(x))return;let w=await this.parseToken(x);if(w!=null){h instanceof Map?h.set(x,{data:w,count:Gt(l)?l.getCount(x):-1}):h.add(x);for(let S of w){let Z=S[3]||"",J=S[4]?.layer;m.has(Z)||m.set(Z,[]),m.get(Z).push(S),J&&d.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let x={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:S=It})=>{d.add(S),w.add(S)}),g=Object.fromEntries(await Promise.all(Array.from(w).map(async S=>{let J=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||It)===S).map(async ce=>await ce.getCSS(x)))).filter(Boolean).join(p);return[S,J]})))})();let $=this.config.sortLayers(Array.from(d).sort((x,w)=>(this.config.layers[x]??0)-(this.config.layers[w]??0)||x.localeCompare(w))),C={},v=this.config.outputToCssLayers,T=x=>{let w=x;return typeof v=="object"&&(w=v.cssLayerName?.(x)),w===null?null:w??x},H=(x=Je)=>{if(C[x])return C[x];let w=Array.from(m).sort((J,ce)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(ce[0])??0)||J[0]?.localeCompare(ce[0]||"")||0).map(([J,ce])=>{let E=ce.length,A=ce.filter(B=>(B[4]?.layer||Je)===x).sort((B,le)=>B[0]-le[0]||(B[4]?.sort||0)-(le[4]?.sort||0)||B[5]?.currentSelector?.localeCompare(le[5]?.currentSelector??"")||B[1]?.localeCompare(le[1]||"")||B[2]?.localeCompare(le[2]||"")||0).map(([,B,le,,Dt,,gn])=>[[[(B&&nf(B,o))??"",Dt?.sort??0]],le,!!(gn??Dt?.noMerge)]);if(!A.length)return;let U=A.reverse().map(([B,le,Dt],gn)=>{if(!Dt&&this.config.mergeSelectors)for(let Re=gn+1;Re<E;Re++){let me=A[Re];if(me&&!me[2]&&(B&&me[0]||B==null&&me[0]==null)&&me[1]===le)return B&&me[0]&&me[0].push(...B),null}let bn=B?ne(B.sort((Re,me)=>Re[1]-me[1]||Re[0]?.localeCompare(me[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return bn.length?`${bn.join(`,${p}`)}{${le}}`:le}).filter(Boolean),D=Array.from(new Set(U)).reverse().join(p);if(!J)return D;let X=J.split(" $$ ");return`${X.join("{")}{${p}${D}${p}${"}".repeat(X.length)}`}).filter(Boolean).join(p);i&&(w=[g[x],w].filter(Boolean).join(p));let S;v&&w&&(S=T(x),S!==null&&(w=`@layer ${S}{${p}${w}${p}}`));let Z=a?"":`/* layer: ${x}${S&&S!==x?`, alias: ${S}`:""} */${p}`;return C[x]=w?Z+w:""},P=(x=$,w)=>{let S=x.filter(Z=>!w?.includes(Z));return[v&&S.length>0?`@layer ${S.map(T).filter(qt).join(", ")};`:void 0,...S.map(Z=>H(Z)||"")].filter(Boolean).join(p)};return{get css(){return P()},layers:$,matched:h,getLayers:P,getLayer:H,setLayer:async(x,w)=>{let S=await w(H(x));return C[x]=S,S}}}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 p of this.config.variants){if(!p.multiPass&&c.has(p))continue;let d=await p.match(l,n);if(d){if(V(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(p.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=d.map(m=>{let g=m.matcher??l,b=[m,...a],$=new Set(c);return $.add(p),[i[0],g,b,$]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(p),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,p)=>(l.order||0)-(p.order||0)).reduceRight((l,p)=>d=>{let h=p.body?.(d.entries)||d.entries,m=Array.isArray(p.parent)?p.parent:[p.parent,void 0],g=p.selector?.(d.selector,h);return(p.handle??sf)({...d,entries:h,selector:g||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:p.layer||d.layer,sort:p.sort||d.sort},l)},l=>l)({prefix:"",selector:of(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=tt(r);if(V(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${We(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=V(t)?await this.matchVariants(t):[t],s=async([c,l,p])=>{this.config.details&&(r.rules=r.rules??[]);let d=this.config.rulesStaticMap[l];if(d&&d[1]&&(n||!d[2]?.internal)){this.config.details&&r.rules.push(d);let m=this.config.rules.indexOf(d),g=$n(d[1]).filter($=>$.length),b=d[2];if(g.length)return r.generator.activatedRules.add(d),g.map($=>V($)?[m,$,b]:[m,c,$,b,p])}r.variantHandlers=p;let{rulesDynamic:h}=this.config;for(let m of h){let[g,b,$]=m;if($?.internal&&!n)continue;let C=l;if($?.prefix){let P=R($.prefix);if(o){let y=R(o);if(!P.some(x=>y.includes(x)))continue}else{let y=P.find(x=>l.startsWith(x));if(y==null)continue;C=l.slice(y.length)}}let v=C.match(g);if(!v)continue;let T=await b(v,r);if(!T)continue;if(this.config.details&&r.rules.push(m),typeof T!="string")if(Symbol.asyncIterator in T){let P=[];for await(let y of T)y&&P.push(y);T=P}else Symbol.iterator in T&&!Array.isArray(T)&&(T=Array.from(T).filter(qt));let H=$n(T).filter(P=>P.length);if(H.length){r.generator.activatedRules.add(m);let P=this.config.rules.indexOf(m);return H.map(y=>{if(V(y))return[P,y,$];let x=p,w=$;for(let S of y)S[0]===$e.variants?typeof S[1]=="function"?x=S[1](x)||x:x=[...R(S[1]),...x]:S[0]===$e.parent?x=[{parent:S[1]},...x]:S[0]===$e.selector?x=[{selector:S[1]},...x]:S[0]===$e.layer?x=[{layer:S[1]},...x]:S[0]===$e.sort?w={...w,sort:S[1]}:S[0]===$e.noMerge&&(w={...w,noMerge:S[1]});return[P,c,y,w,x]})}}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(yn(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=We(o);if(!l)return;let{layer:p,sort:d,...h}=t[3]??{},m={...h,layer:s??p,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)}:Lo,i,s,a,c;for(let l of this.config.shortcuts){let p=t;if(l[2]?.prefix){let h=R(l[2].prefix).find(m=>t.startsWith(m));if(h==null)continue;p=t.slice(h.length)}if(Uo(l)){if(l[0]===p){i=i||l[2],s=l[1],o(l);break}}else{let d=p.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(R(s).filter(V).map(l=>Bo(l.trim()).split(/\s+/g)).flat()),c=R(s).filter(l=>!V(l)).map(l=>({handles:[],value:l}))),!s){let l=V(t)?await this.matchVariants(t):[t];for(let p of l){let[d,h,m]=p;if(d!==h){let g=await this.expandShortcut(h,r,n-1);g&&(a=g[0].filter(V).map(b=>d.replace(h,b)),c=g[0].filter(b=>!V(b)).map(b=>({handles:[...b.handles,...m],value:b.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(R(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(ne(n).map(async p=>{let d=V(p)?await this.parseUtil(p,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",tt(p.value),void 0,p.handles]];return!d&&this.config.warn&&Io(`unmatched utility "${p}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((p,d)=>p[0]-d[0]),[a,,c]=t,l=[];for(let p of s){if(yn(p)){l.push([p[0],void 0,p[1],void 0,p[2],r,void 0]);continue}let{selector:d,entries:h,parent:m,sort:g,noMerge:b,layer:$}=this.applyVariants(p,[...p[4],...c],a);i.getFallback($??o.layer,new Yt).getFallback(d,m,[[],p[0]])[0].push([h,!!(b??p[3]?.noMerge),g??0])}return l.concat(i.flatMap((p,d)=>p.map(([h,m],g,b)=>{let $=(v,T,H)=>{let P=Math.max(...H.map(x=>x[1])),y=H.map(x=>x[0]);return(v?[y.flat(1)]:y).map(x=>{let w=We(x);if(w)return[m,g,w,b,{...o,noMerge:T,sort:P,layer:d},r,void 0]})};return[[h.filter(([,v])=>v).map(([v,,T])=>[v,T]),!0],[h.filter(([,v])=>!v).map(([v,,T])=>[v,T]),!1]].map(([v,T])=>[...$(!1,T,v.filter(([H])=>H.some(P=>P[0]===$e.shortcutsNoMerge))),...$(!0,T,v.filter(([H])=>H.every(P=>P[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):V(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):V(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Xo(e,t){return await kn.create(e,t)}var Zo=/\s\$\$\s+/g;function rf(e){return Zo.test(e)}function nf(e,t){return rf(e)?e.replace(Zo,t?` ${t} `:" "):t?`${t} ${e}`:e}var Yo=/^\[(.+?)(~?=)"(.*)"\]$/;function of(e){return Yo.test(e)?e.replace(Yo,(t,r,n,o)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(e)}`}function sf(e,t){return t(e)}function af(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}${af(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 cf=/\/\/#\s*sourceMappingURL=.*\n?/g;function ei(e){return e.includes("sourceMappingURL=")?e.replace(cf,""):e}var lf=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,uf=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ff=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function pf(e){let t=[];for(let o of e.matchAll(uf))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(lf))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Jo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Nt).forEach(o=>{o.includes(n)&&(o=Qo(o,r)),Fo(o)&&!ff.test(o)&&t.push(o)}),t}function ti(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return pf(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=We(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),R(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ve(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function fe(e,t,r,n){if(e===""||(V(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){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=fe(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var Sn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],ni=["%alpha","<alpha-value>"],df=new RegExp(ni.map(e=>ue(e)).join("|"),"g");function q(e=""){let t=mf(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Sn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&ni.includes(t)?1:t}function z(e,t){if(typeof e=="string")return e.replace(df,`${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}`,Sn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function mf(e){if(!e)return;let t=hf(e);if(t!=null||(t=gf(e),t!=null)||(t=bf(e),t!=null)||(t=yf(e),t!=null)||(t=$f(e),t!=null))return t}function hf(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function gf(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function bf(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 xf=new RegExp(`^(${Sn.join("|")})\\((.+)\\)$`,"i");function yf(e){let t=e.match(xf);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 $f(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}}function Qt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci=new Uint8Array(64),vf=new Uint8Array(128);for(let e=0;e<ii.length;e++){let t=ii.charCodeAt(e);ci[e]=t,vf[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(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}},Cn=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 Cn,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 p=a[l];l>0&&t.write(44),c=rt(t,p[0],c),p.length!==1&&(r=rt(t,p[1],r),n=rt(t,p[2],n),o=rt(t,p[3],o),p.length!==4&&(i=rt(t,p[4],i)))}}return t.flush()}var er=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))}},tr=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 wf(){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 kf=wf(),Rn=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,"+kf(this.toString())}};function Sf(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 Cf(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 Rf=Object.prototype.toString;function Ef(e){return Rf.call(e)==="[object Object]"}function ui(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 Tf=/\w/,En=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(`