@unocss/runtime 66.5.7 → 66.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Nt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Nt]:-100,[Yf]:-10,[Xe]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function $n(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ht(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var qt=J;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Yt(e){return e!=null}function Bo(){}var Xt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Zt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var kn="__virtual_key__";function Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==kn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Jt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return 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]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return F(e[0])}function No(e){return F(e[0])}var Qt={};function tu(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 ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let h=m+f.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(g=>g.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=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,R)=>v.name===R.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(R=>S(R[v]||[])))}let l=c("extractors"),f=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((v,R)=>(v.order||0)-(R.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[v,R]of d.entries()){let k=R[2]??(R[2]={});k.__index=v,Do(R)?S(k.prefix??"").forEach(A=>{m[A+R[0]]=R}):h.unshift(R)}let x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,R)=>(v.order||0)-(R.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,R)=>(v.order||0)-(R.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:$n(c("transformers"),(v,R)=>v.name===R.name)},j=c("extendTheme");for(let v of j)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.5.7";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Yt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(k):E).forEach(E=>{let A=E.trim();A&&!l.has(A)&&l.add(A)})}let f=a?"":`
|
|
1
|
+
"use strict";(()=>{var Hf=Object.defineProperty;var qf=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})};var Xe="default",Nt="preflights",Yf="shortcuts",Xf="imports",_o={[Xf]:-200,[Nt]:-100,[Yf]:-10,[Xe]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function Zf(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Zf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function $n(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ht(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var qt=J;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Jf=/^\[(.+?)~?="(.*)"\]$/;var Qf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(Jf)}function Je(e=""){return Qf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Yt(e){return e!=null}function Bo(){}var Xt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Zt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Io(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function eu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var kn="__virtual_key__";function Le(e){return e==null?"":eu(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==kn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Jt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Sn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return 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]=Sn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Do(e){return F(e[0])}function No(e){return F(e[0])}var Qt={};function tu(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 ru(e,t=["-",":"],r=5){let n=tu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let h=m+f.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let $ of[...g.matchAll(/\S+/g)]){let C=h+$.index,y=a.get(C)?.items;y?a.delete(C):y=[{offset:C,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(g=>g.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=ru(e,t,r);return typeof e=="string"?n.expanded:e}var Go=new Set;function Ho(e){Go.has(e)||(console.warn("[unocss]",e),Go.add(e))}function Xo(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var qo="_uno_resolved";async function nu(e){let t=typeof e=="function"?await e():await e;if(qo in t)return t;t={...t},Object.defineProperty(t,qo,{value:!0,enumerable:!1});let r=t.shortcuts?Xo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Zo(e){let t=await nu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Zo))).flat();return[t,...r]}function ou(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Yo(...t)),exclude:ue(Yo(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Cn(e={},t={}){let r=Object.assign({},t,e),n=$n((await Promise.all((r.presets||[]).flatMap(S).flatMap(Zo))).flat(),(v,R)=>v.name===R.name),o=[...n.filter(v=>v.enforce==="pre"),...n.filter(v=>!v.enforce),...n.filter(v=>v.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(v=>v.layers));function c(v){return ue(i.flatMap(R=>S(R[v]||[])))}let l=c("extractors"),f=s.find(v=>v.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!l.includes(f)&&l.unshift(f),l.sort((v,R)=>(v.order||0)-(R.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[v,R]of d.entries()){let k=R[2]??(R[2]={});k.__index=v,Do(R)?S(k.prefix??"").forEach(A=>{m[A+R[0]]=R}):h.unshift(R)}let x={templates:ue(i.flatMap(v=>S(v.autocomplete?.templates))),extractors:i.flatMap(v=>S(v.autocomplete?.extractors)).sort((v,R)=>(v.order||0)-(R.order||0)),shorthands:su(i.map(v=>v.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let C=c("content"),y=ou(C),b={mergeSelectors:!0,warn:!0,sortLayers:v=>v,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:iu(i.map(v=>v.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Uo).sort((v,R)=>(v.order||0)-(R.order||0)),shortcuts:Xo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:y,transformers:$n(c("transformers"),(v,R)=>v.name===R.name)},j=c("extendTheme");for(let v of j)b.theme=v(b.theme,b)||b.theme;for(let v of i)v?.configResolved?.(b);return b}function iu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>Sn(t,r),{})}function su(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Yo(...e){return e.flatMap(au)}function au(e){return Array.isArray(e)?e:e?[e]:[]}var Jo="66.5.9";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Rn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Jo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Cn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Cn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(Yt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(k):E).forEach(E=>{let A=E.trim();A&&!l.has(A)&&l.add(A)})}let f=a?"":`
|
|
2
2
|
`,d=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async k=>{if(g.has(k))return;let E=await this.parseToken(k);if(E!=null){g instanceof Map?g.set(k,{data:E,count:Ht(l)?l.getCount(k):-1}):g.add(k);for(let A of E){let ee=A[3]||"",te=A[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(A),te&&d.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},E=new Set([]);this.config.preflights.forEach(({layer:A=Nt})=>{d.add(A),E.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(E).map(async A=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Nt)===A).map(async le=>await le.getCSS(k)))).filter(Boolean).join(f);return[A,te]})))})();let $=this.config.sortLayers(Array.from(d).sort((k,E)=>(this.config.layers[k]??0)-(this.config.layers[E]??0)||k.localeCompare(E))),C={},y=this.config.outputToCssLayers,b=k=>{let E=k;return typeof y=="object"&&(E=y.cssLayerName?.(k)),E===null?null:E??k},j=(k=Xe)=>{if(C[k])return C[k];let E=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let T=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===k).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,Dt,,yn])=>[[[(I&&fu(I,o))??"",Dt?.sort??0]],fe,!!(yn??Dt?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,Dt],yn)=>{if(!Dt&&this.config.mergeSelectors)for(let Re=yn+1;Re<T;Re++){let ge=V[Re];if(ge&&!ge[2]&&(I&&ge[0]||I==null&&ge[0]==null)&&ge[1]===fe)return I&&ge[0]&&ge[0].push(...I),null}let vn=I?ue(I.sort((Re,ge)=>Re[1]-ge[1]||Re[0]?.localeCompare(ge[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return vn.length?`${vn.join(`,${f}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(f);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${f}${D}${f}${"}".repeat(Q.length)}`}).filter(Boolean).join(f);i&&(E=[h[k],E].filter(Boolean).join(f));let A;y&&E&&(A=b(k),A!==null&&(E=`@layer ${A}{${f}${E}${f}}`));let ee=a?"":`/* layer: ${k}${A&&A!==k?`, alias: ${A}`:""} */${f}`;return C[k]=E?ee+E:""},v=(k=$,E)=>{let A=k.filter(ee=>!E?.includes(ee));return[y&&A.length>0?`@layer ${A.map(b).filter(Yt).join(", ")};`:void 0,...A.map(ee=>j(ee)||"")].filter(Boolean).join(f)};return{get css(){return v()},layers:$,matched:g,getLayers:v,getLayer:j,setLayer:async(k,E)=>{let A=await E(j(k));return C[k]=A,A}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let f of this.config.variants){if(!f.multiPass&&c.has(f))continue;let d=await f.match(l,n);if(d){if(F(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=d.map(m=>{let h=m.matcher??l,x=[m,...a],$=new Set(c);return $.add(f),[i[0],h,x,$]});return(await Promise.all(g.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 g=f.body?.(d.entries)||d.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0],h=f.selector?.(d.selector,g);return(f.handle??pu)({...d,entries:g,selector:h||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:uu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=et(r);if(F(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=F(t)?await this.matchVariants(t):[t],s=async([c,l,f])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:f},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,d);for(let m of this.config.rulesDynamic){let[h,x,$]=m;if($?.internal&&!n)continue;let C=l;if($?.prefix){let v=S($.prefix);if(o){let R=S(o);if(!v.some(k=>R.includes(k)))continue}else{let R=v.find(k=>l.startsWith(k));if(R==null)continue;C=l.slice(R.length)}}let y=C.match(h);if(!y)continue;let b=await x(y,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let v=[];for await(let R of b)R&&v.push(R);b=v}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(Yt));let j=this.resolveCSSResult(c,b,m,d);if(j)return j}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Io(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=n[2];return i.map(a=>{if(F(a))return[s.__index,a,s];let c=o.variantHandlers,l=s;for(let f of a)f[0]===pe.variants?typeof f[1]=="function"?c=f[1](c)||c:c=[...S(f[1]),...c]:f[0]===pe.parent?c=[{parent:f[1]},...c]:f[0]===pe.selector?c=[{selector:f[1]},...c]:f[0]===pe.layer?c=[{layer:f[1]},...c]:f[0]===pe.sort?l={...l,sort:f[1]}:f[0]===pe.noMerge?l={...l,noMerge:f[1]}:f[0]===pe.body&&(f[0]=kn);return[s.__index,t,a,l,c]})}};stringifyUtil(t,r){if(!t)return;if(wn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:f,sort:d,...g}=t[3]??{},m={...g,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)}:Bo,i,s,a,c;for(let l of this.config.shortcuts){let f=t;if(l[2]?.prefix){let g=S(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;f=t.slice(g.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=ue(S(s).filter(F).map(l=>Ko(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let f of l){let[d,g,m]=f;if(d!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(F).map(x=>d.replace(g,x)),c=h[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(S(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Zt,s=(await Promise.all(ue(n).map(async f=>{let d=F(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(f.value),void 0,f.handles]];return!d&&this.config.warn&&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(wn(f)){l.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let d=Object.fromEntries(f[2])[pe.shortcutsNoMerge],g=[...f[4],...d?[]:c],{selector:m,entries:h,parent:x,sort:$,noMerge:C,layer:y}=this.applyVariants(f,g,a);i.getFallback(y??o.layer,new Xt).getFallback(m,x,[[],f[0]])[0].push([h,!!(C??f[3]?.noMerge),$??0])}return l.concat(i.flatMap((f,d)=>f.map(([g,m],h,x)=>{let $=(y,b,j)=>{let v=Math.max(...j.map(k=>k[1])),R=j.map(k=>k[0]);return(y?[R.flat(1)]:R).map(k=>{let E=Le(k);if(E)return[m,h,E,x,{...o,noMerge:b,sort:v,layer:d},r,void 0]})};return[[g.filter(([,y])=>y).map(([y,,b])=>[y,b]),!0],[g.filter(([,y])=>!y).map(([y,,b])=>[y,b]),!1]].map(([y,b])=>[...$(!1,b,y.filter(([j])=>j.some(v=>v[0]===pe.shortcutsNoMerge))),...$(!0,b,y.filter(([j])=>j.every(v=>v[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):F(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):F(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ei(e,t){return await Rn.create(e,t)}var ti=/\s\$\$\s+/g;function lu(e){return ti.test(e)}function fu(e,t){return lu(e)?e.replace(ti,t?` ${t} `:" "):t?`${t} ${e}`:e}var Qo=/^\[(.+?)(~?=)"(.*)"\]$/;function uu(e){return Qo.test(e)?e.replace(Qo,(t,r,n,o)=>`[${qt(r)}${n}"${qt(o)}"]`):`.${qt(e)}`}function pu(e,t){return t(e)}var En=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ri(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Wo(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=a[2],[,f="",d=l]=l.match(En)||[];if(d==="~"||n&&d==="true"||!d)return`${f}${c}`;if(o==null){let g=s?.config?.separators?.join("|");g?o=new RegExp(`^(.*\\](?:${g}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,g,m]=l.match(o)||[];if(m)return`${g}${f}${c}-${m}`}if(f&&d.match(/^[\d.]+$/)){let g=f.split(/([^:]*:)/g).filter(Boolean),m=g.pop()+d,h=g.join("");return[{matcher:`${f}${c}-${d}`},{matcher:`${h}${c}-${m}`}]}return`${f}${c}-${d}`}}}var du=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,mu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ni=/[\s'"`;>]+/;function oi(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(du),o,i=0;for(let y of n){let[,b,j]=y,v=y.index+b.length;if(r>v&&r<=v+j.length){i=v,o=j;break}}if(!o)return null;let s=o.matchAll(mu),a=0,c,l;for(let y of s){let[b,j,v]=y,R=i+y.index;if(r>R&&r<=R+b.length){a=R,c=j,l=v?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let f=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let d=f?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(y){let b=f?e.prefix.length:0;return{start:a+b,end:a+c.length,replacement:y}}};let g=a+c.length+2,m=ni.exec(l),h=0,x;for(;m;){let[y]=m;if(r>g+h&&r<=g+h+m.index){x=l.slice(h,h+m.index);break}h+=m.index+y.length,m=ni.exec(l.slice(h))}x===void 0&&(x=l.slice(h));let[,$="",C]=x.match(En)||[];return{extracted:`${$}${d}-${C}`,transformSuggestions(y){return y.filter(b=>b.startsWith(`${$}${d}-`)).map(b=>$+b.slice($.length+d.length+1))},resolveReplacement(y){return{start:h+g,end:h+g+x.length,replacement:$+y.slice($.length+d.length+1)}}}}}}var hu=["v-bind:",":"],ii=/[\s'"`;]+/g,Tn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,gu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,jn=["placeholder","fill","opacity","stroke-opacity"];function si(e){let t=e?.ignoreAttributes??jn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Tn)).flatMap(i=>Array.from((i[1]||"").matchAll(gu))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of hu)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(Je(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(ii).filter(Je):Tn.test(a)?(Tn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(ii).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var bu=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??jn;let t=[ri(e)],r=[si(e)],n=[oi(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},ai=bu;function xu(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ci(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${xu(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function li(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var yu=/\/\/#\s*sourceMappingURL=.*\n?/g;function fi(e){return e.includes("sourceMappingURL=")?e.replace(yu,""):e}var vu=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,$u=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,wu=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ku(e){let t=[];for(let o of e.matchAll($u))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(vu))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ci(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Kt).forEach(o=>{o.includes(n)&&(o=li(o,r)),Je(o)&&!wu.test(o)&&t.push(o)}),t}function ui(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ku(fi(e))}}}function pi(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function de(e,t,r,n){if(e===""||(F(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=de(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var zn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var di=["%alpha","<alpha-value>"],Su=new RegExp(di.map(e=>K(e)).join("|"),"g");function Y(e=""){let t=Cu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(zn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ie(e){let t=e.alpha??1;return typeof t=="string"&&di.includes(t)?1:t}function O(e,t){if(typeof e=="string")return e.replace(Su,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,zn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Cu(e){if(!e)return;let t=Ru(e);if(t!=null||(t=Eu(e),t!=null)||(t=Tu(e),t!=null)||(t=zu(e),t!=null)||(t=Au(e),t!=null))return t}function Ru(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Eu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Tu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var ju=new RegExp(`^(${zn.join("|")})\\((.+)\\)$`,"i");function zu(e){let t=e.match(ju);if(!t)return;let[,r,n]=t,o=mi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Au(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function mi(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var Ou=44,Pu=59,hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xi=new Uint8Array(64),Vu=new Uint8Array(128);for(let e=0;e<hi.length;e++){let t=hi.charCodeAt(e);xi[e]=t,Vu[t]=e}function tt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(xi[o])}while(n>0);return t}var gi=1024*16,bi=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Mu=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gi)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===gi&&(this.out+=bi.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+bi.decode(e.subarray(0,r)):t}};function yi(e){let t=new Mu,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(Pu),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let f=a[l];l>0&&t.write(Ou),c=tt(t,f[0],c),f.length!==1&&(r=tt(t,f[1],r),n=tt(t,f[2],n),o=tt(t,f[3],o),f.length!==4&&(i=tt(t,f[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 Fu(){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 _u=Fu(),An=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,"+_u(this.toString())}};function Lu(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 Wu(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 Uu=Object.prototype.toString;function Bu(e){return Uu.call(e)==="[object Object]"}function vi(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Iu=/\w/,On=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",Le="imports",pe={[Le]:-200,[W]:-100,[ke]:-10,[G]:0};var de=/[\\:]?[\s'"`;{}]+/g;function De(n){return n.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return De(n)}};function V(n=[]){return Array.isArray(n)?n:[n]}function D(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function Fe(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=Fe;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,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function B(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function ye(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>B(e)):[n]:[B(n)]}function Ie(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})}var ae="__virtual_key__";function te(n){return n==null?"":Ie(n).map(([e,t])=>t!=null&&typeof t!="function"?e!==ae?`${e}:${t};`: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 o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=le(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function N(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"?N(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:N(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?N(r):r;return t}return n}function Se(n){return P(n[0])}function xe(n){return P(n[0])}var ne={};function Ke(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 Ge(n,e=["-",":"],t=5){let r=Ke(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(a,i,c,d,h)=>{if(!e.includes(c))return a;s=!0,u.add(i+c);let R=h+i.length+c.length+1,v={length:a.length,items:[]};f.set(h,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let y of x)y.className=y.className==="~"?i:y.className.replace(/^(!?)(.*)/,`$1${i}${c}$2`),v.items.push(y)}return"$".repeat(a.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let a=0;for(let[i,c]of f)l+=n.slice(a,i),l+=c.items.map(d=>d.className).join(" "),a=i+c.length;l+=n.slice(a)}else{l=n;for(let[a,i]of f)l.overwrite(a,a+i.length,i.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return l.toString()}}}function be(n,e=["-",":"],t=5){let r=Ge(n,e,t);return typeof n=="string"?r.expanded:n}var Ce=new Set;function Te(n){Ce.has(n)||(console.warn("[unocss]",n),Ce.add(n))}function ve(n){return V(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Re="_uno_resolved";async function He(n){let e=typeof n=="function"?await n():await n;if(Re in e)return e;e={...e},Object.defineProperty(e,Re,{value:!0,enumerable:!1});let t=e.shortcuts?ve(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=V(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function we(n){let e=await He(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(V).flatMap(we))).flat();return[e,...t]}function Ne(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Ee(...e)),exclude:D(Ee(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}async function ce(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(V).flatMap(we))).flat(),(p,b)=>p.name===b.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},pe,...o.map(p=>p.layers));function l(p){return D(o.flatMap(b=>V(b[p]||[])))}let a=l("extractors"),i=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;i===void 0&&(i=Y),i&&!a.includes(i)&&a.unshift(i),a.sort((p,b)=>(p.order||0)-(b.order||0));let c=l("rules"),d=c.length,h={},R=[];for(let[p,b]of c.entries()){let m=b[2]??(b[2]={});m.__index=p,Se(b)?V(m.prefix??"").forEach(C=>{h[C+b[0]]=b}):R.unshift(b)}let v={templates:D(o.flatMap(p=>V(p.autocomplete?.templates))),extractors:o.flatMap(p=>V(p.autocomplete?.extractors)).sort((p,b)=>(p.order||0)-(b.order||0)),shorthands:ze(o.map(p=>p.autocomplete?.shorthands||{}))},E=l("separators");E.length||(E=[":","-"]);let $=l("content"),x=Ne($),y={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:c,rulesSize:d,rulesDynamic:R,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(ge).sort((p,b)=>(p.order||0)-(b.order||0)),shortcuts:ve(l("shortcuts")).reverse(),extractors:a,safelist:l("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(l("transformers"),(p,b)=>p.name===b.name)},U=l("extendTheme");for(let p of U)y.theme=p(y.theme,y)||y.theme;for(let p of o)p?.configResolved?.(y);return y}function Be(n){return n.map(e=>e?N(e):{}).reduce((e,t)=>le(e,t),{})}function ze(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Ee(...n){return n.flatMap(We)}function We(n){return Array.isArray(n)?n:n?[n]:[]}var Me="66.5.7";var F={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ue=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=Me;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 o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:F,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((l,a)=>a(l)??l,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async l=>{let a=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(a.variants=[...l[3]]);let i=await this.expandShortcut(a.currentSelector,a);return i?await this.stringifyShortcuts(a.variantMatch,a,i[0],i[1]):(await this.parseUtil(a.variantMatch,a))?.map(d=>this.stringifyUtil(d,a)).filter(J)},f=(await Promise.all(o.map(l=>u(l)))).flat().filter(l=>!!l);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:l=!1}=t,a=P(e)?await this.applyExtractors(e,r,l?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let C=g.trim();C&&!a.has(C)&&a.add(C)})}let i=f?"":`
|
|
1
|
+
"use strict";(()=>{var G="default",W="preflights",ke="shortcuts",Le="imports",pe={[Le]:-200,[W]:-100,[ke]:-10,[G]:0};var de=/[\\:]?[\s'"`;{}]+/g;function De(n){return n.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return De(n)}};function V(n=[]){return Array.isArray(n)?n:[n]}function D(n){return Array.from(new Set(n))}function ie(n,e){return n.reduce((t,r)=>(t.findIndex(o=>e(r,o))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var H=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function q(n){return n instanceof H}function Fe(n){let e=n.length,t=-1,r,s="",o=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&o===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var Z=Fe;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,o])=>e(o,t,s)))}},X=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function B(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function ye(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>B(e)):[n]:[B(n)]}function Ie(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})}var ae="__virtual_key__";function te(n){return n==null?"":Ie(n).map(([e,t])=>t!=null&&typeof t!="function"?e!==ae?`${e}:${t};`: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 o={...r};return ee(r)&&ee(s)&&Object.keys(s).forEach(u=>{ee(r[u])&&ee(s[u])||Array.isArray(r[u])&&Array.isArray(s[u])?o[u]=le(r[u],s[u],t):Object.assign(o,{[u]:s[u]})}),o}function N(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"?N(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:N(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?N(r):r;return t}return n}function Se(n){return P(n[0])}function xe(n){return P(n[0])}var ne={};function Ke(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 Ge(n,e=["-",":"],t=5){let r=Ke(e),s,o=n.toString(),u=new Set,f=new Map;do s=!1,o=o.replace(r,(a,i,c,d,h)=>{if(!e.includes(c))return a;s=!0,u.add(i+c);let R=h+i.length+c.length+1,v={length:a.length,items:[]};f.set(h,v);for(let E of[...d.matchAll(/\S+/g)]){let $=R+E.index,x=f.get($)?.items;x?f.delete($):x=[{offset:$,length:E[0].length,className:E[0]}];for(let y of x)y.className=y.className==="~"?i:y.className.replace(/^(!?)(.*)/,`$1${i}${c}$2`),v.items.push(y)}return"$".repeat(a.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let a=0;for(let[i,c]of f)l+=n.slice(a,i),l+=c.items.map(d=>d.className).join(" "),a=i+c.length;l+=n.slice(a)}else{l=n;for(let[a,i]of f)l.overwrite(a,a+i.length,i.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:f,get expanded(){return l.toString()}}}function be(n,e=["-",":"],t=5){let r=Ge(n,e,t);return typeof n=="string"?r.expanded:n}var Ce=new Set;function Te(n){Ce.has(n)||(console.warn("[unocss]",n),Ce.add(n))}function ve(n){return V(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Re="_uno_resolved";async function He(n){let e=typeof n=="function"?await n():await n;if(Re in e)return e;e={...e},Object.defineProperty(e,Re,{value:!0,enumerable:!1});let t=e.shortcuts?ve(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let o=s[2];o.prefix==null&&e.prefix&&(o.prefix=V(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function we(n){let e=await He(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(V).flatMap(we))).flat();return[e,...t]}function Ne(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],o=[];for(let f of n){if(f.pipeline===!1){r=!0;break}else f.pipeline?.include&&e.push(f.pipeline.include),f.pipeline?.exclude&&t.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&o.push(f.inline)}let u={pipeline:r?!1:{include:D(Ee(...e)),exclude:D(Ee(...t))}};return s.length&&(u.filesystem=D(s.flat())),o.length&&(u.inline=D(o.flat())),u}async function ce(n={},e={}){let t=Object.assign({},e,n),r=ie((await Promise.all((t.presets||[]).flatMap(V).flatMap(we))).flat(),(p,b)=>p.name===b.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],o=[...s,t],u=[...o].reverse(),f=Object.assign({},pe,...o.map(p=>p.layers));function l(p){return D(o.flatMap(b=>V(b[p]||[])))}let a=l("extractors"),i=u.find(p=>p.extractorDefault!==void 0)?.extractorDefault;i===void 0&&(i=Y),i&&!a.includes(i)&&a.unshift(i),a.sort((p,b)=>(p.order||0)-(b.order||0));let c=l("rules"),d=c.length,h={},R=[];for(let[p,b]of c.entries()){let m=b[2]??(b[2]={});m.__index=p,Se(b)?V(m.prefix??"").forEach(C=>{h[C+b[0]]=b}):R.unshift(b)}let v={templates:D(o.flatMap(p=>V(p.autocomplete?.templates))),extractors:o.flatMap(p=>V(p.autocomplete?.extractors)).sort((p,b)=>(p.order||0)-(b.order||0)),shorthands:ze(o.map(p=>p.autocomplete?.shorthands||{}))},E=l("separators");E.length||(E=[":","-"]);let $=l("content"),x=Ne($),y={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:f,theme:Be(o.map(p=>p.theme)),rules:c,rulesSize:d,rulesDynamic:R,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(ge).sort((p,b)=>(p.order||0)-(b.order||0)),shortcuts:ve(l("shortcuts")).reverse(),extractors:a,safelist:l("safelist"),separators:E,details:t.details??t.envMode==="dev",content:x,transformers:ie(l("transformers"),(p,b)=>p.name===b.name)},U=l("extendTheme");for(let p of U)y.theme=p(y.theme,y)||y.theme;for(let p of o)p?.configResolved?.(y);return y}function Be(n){return n.map(e=>e?N(e):{}).reduce((e,t)=>le(e,t),{})}function ze(n){return n.reduce((e,t)=>{let r={};for(let s in t){let o=t[s];Array.isArray(o)?r[s]=`(${o.join("|")})`:r[s]=o}return{...e,...r}},{})}function Ee(...n){return n.flatMap(We)}function We(n){return Array.isArray(n)?n:n?[n]:[]}var Me="66.5.9";var F={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ue=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=Me;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 o of this.config.extractors){let u=await o.extract?.(s);if(u)if(q(u)&&q(r))for(let f of u)r.setCount(f,r.getCount(f)+u.getCount(f));else for(let f of u)r.add(f)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:F,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((l,a)=>a(l)??l,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let o=await this.matchVariants(e,s);if(o.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let u=async l=>{let a=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(a.variants=[...l[3]]);let i=await this.expandShortcut(a.currentSelector,a);return i?await this.stringifyShortcuts(a.variantMatch,a,i[0],i[1]):(await this.parseUtil(a.variantMatch,a))?.map(d=>this.stringifyUtil(d,a)).filter(J)},f=(await Promise.all(o.map(l=>u(l)))).flat().filter(l=>!!l);if(f?.length)return this.cache.set(r,f),f;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:o=!0,safelist:u=!0,minify:f=!1,extendedInfo:l=!1}=t,a=P(e)?await this.applyExtractors(e,r,l?new H:new Set):Array.isArray(e)?new Set(e):e;if(u){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap(g=>typeof g=="function"?g(m):g).forEach(g=>{let C=g.trim();C&&!a.has(C)&&a.add(C)})}let i=f?"":`
|
|
2
2
|
`,c=new Set([G]),d=l?new Map:new Set,h=new Map,R={},v=Array.from(a).map(async m=>{if(d.has(m))return;let g=await this.parseToken(m);if(g!=null){d instanceof Map?d.set(m,{data:g,count:q(a)?a.getCount(m):-1}):d.add(m);for(let C of g){let O=C[3]||"",_=C[4]?.layer;h.has(O)||h.set(O,[]),h.get(O).push(C),_&&c.add(_)}}});await Promise.all(v),await(async()=>{if(!o)return;let m={generator:this,theme:this.config.theme},g=new Set([]);this.config.preflights.forEach(({layer:C=W})=>{c.add(C),g.add(C)}),R=Object.fromEntries(await Promise.all(Array.from(g).map(async C=>{let _=(await Promise.all(this.config.preflights.filter(k=>(k.layer||W)===C).map(async k=>await k.getCSS(m)))).filter(Boolean).join(i);return[C,_]})))})();let E=this.config.sortLayers(Array.from(c).sort((m,g)=>(this.config.layers[m]??0)-(this.config.layers[g]??0)||m.localeCompare(g))),$={},x=this.config.outputToCssLayers,y=m=>{let g=m;return typeof x=="object"&&(g=x.cssLayerName?.(m)),g===null?null:g??m},U=(m=G)=>{if($[m])return $[m];let g=Array.from(h).sort((_,k)=>(this.parentOrders.get(_[0])??0)-(this.parentOrders.get(k[0])??0)||_[0]?.localeCompare(k[0]||"")||0).map(([_,k])=>{let S=k.length,T=k.filter(M=>(M[4]?.layer||G)===m).sort((M,L)=>M[0]-L[0]||(M[4]?.sort||0)-(L[4]?.sort||0)||M[5]?.currentSelector?.localeCompare(L[5]?.currentSelector??"")||M[1]?.localeCompare(L[1]||"")||M[2]?.localeCompare(L[2]||"")||0).map(([,M,L,,z,,re])=>[[[(M&&Ze(M,s))??"",z?.sort??0]],L,!!(re??z?.noMerge)]);if(!T.length)return;let w=T.reverse().map(([M,L,z],re)=>{if(!z&&this.config.mergeSelectors)for(let K=re+1;K<S;K++){let I=T[K];if(I&&!I[2]&&(M&&I[0]||M==null&&I[0]==null)&&I[1]===L)return M&&I[0]&&I[0].push(...M),null}let se=M?D(M.sort((K,I)=>K[1]-I[1]||K[0]?.localeCompare(I[0]||"")||0).map(K=>K[0]).filter(Boolean)):[];return se.length?`${se.join(`,${i}`)}{${L}}`:L}).filter(Boolean),A=Array.from(new Set(w)).reverse().join(i);if(!_)return A;let j=_.split(" $$ ");return`${j.join("{")}{${i}${A}${i}${"}".repeat(j.length)}`}).filter(Boolean).join(i);o&&(g=[R[m],g].filter(Boolean).join(i));let C;x&&g&&(C=y(m),C!==null&&(g=`@layer ${C}{${i}${g}${i}}`));let O=f?"":`/* layer: ${m}${C&&C!==m?`, alias: ${C}`:""} */${i}`;return $[m]=g?O+g:""},p=(m=E,g)=>{let C=m.filter(O=>!g?.includes(O));return[x&&C.length>0?`@layer ${C.map(y).filter(J).join(", ")};`:void 0,...C.map(O=>U(O)||"")].filter(Boolean).join(i)};return{get css(){return p()},layers:E,matched:d,getLayers:p,getLayer:U,setLayer:async(m,g)=>{let C=await g(U(m));return $[m]=C,C}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async o=>{let u=!0,[,,f,l]=o;for(;u;){u=!1;let a=o[1];for(let i of this.config.variants){if(!i.multiPass&&l.has(i))continue;let c=await i.match(a,r);if(c){if(P(c)){if(c===a)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(i.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=c.map(h=>{let R=h.matcher??a,v=[h,...f],E=new Set(l);return E.add(i),[o[0],R,v,E]});return(await Promise.all(d.map(h=>s(h)))).flat()}}o[1]=c.matcher??a,f.unshift(c),l.add(i),u=!0;break}}if(!u)break;if(f.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let o=t.slice().sort((a,i)=>(a.order||0)-(i.order||0)).reduceRight((a,i)=>c=>{let d=i.body?.(c.entries)||c.entries,h=Array.isArray(i.parent)?i.parent:[i.parent,void 0],R=i.selector?.(c.selector,d);return(i.handle??Qe)({...c,entries:d,selector:R||c.selector,parent:h[0]||c.parent,parentOrder:h[1]||c.parentOrder,layer:i.layer||c.layer,sort:i.sort||c.sort},a)},a=>a)({prefix:"",selector:Je(r),pseudo:"",entries:e[2]}),{parent:u,parentOrder:f}=o;u!=null&&f!=null&&this.parentOrders.set(u,f);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:u,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let a of this.config.postprocess)a(l);return l}constructCustomCSS(e,t,r){let s=B(t);if(P(s))return s;let{selector:o,entries:u,parent:f}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),l=`${o}{${te(u)}}`;return f?`${f}{${l}}`:l}async parseUtil(e,t,r=!1,s){let o=P(e)?await this.matchVariants(e):[e],u=async([l,a,i])=>{this.config.details&&(t.rules=t.rules??[]);let c={...t,variantHandlers:i},d=this.config.rulesStaticMap[a];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(l,d[1],d,c);for(let h of this.config.rulesDynamic){let[R,v,E]=h;if(E?.internal&&!r)continue;let $=a;if(E?.prefix){let p=V(E.prefix);if(s){let b=V(s);if(!p.some(m=>b.includes(m)))continue}else{let b=p.find(m=>a.startsWith(m));if(b==null)continue;$=a.slice(b.length)}}let x=$.match(R);if(!x)continue;let y=await v(x,c);if(!y)continue;if(typeof y!="string")if(Symbol.asyncIterator in y){let p=[];for await(let b of y)b&&p.push(b);y=p}else Symbol.iterator in y&&!Array.isArray(y)&&(y=Array.from(y).filter(J));let U=this.resolveCSSResult(l,y,h,c);if(U)return U}},f=(await Promise.all(o.map(l=>u(l)))).flat().filter(l=>!!l);if(f.length)return f}resolveCSSResult=(e,t,r,s)=>{let o=ye(t).filter(u=>u.length);if(o.length){this.config.details&&s.rules.push(r),s.generator.activatedRules.add(r);let u=r[2];return o.map(f=>{if(P(f))return[u.__index,f,u];let l=s.variantHandlers,a=u;for(let i of f)i[0]===F.variants?typeof i[1]=="function"?l=i[1](l)||l:l=[...V(i[1]),...l]:i[0]===F.parent?l=[{parent:i[1]},...l]:i[0]===F.selector?l=[{selector:i[1]},...l]:i[0]===F.layer?l=[{layer:i[1]},...l]:i[0]===F.sort?a={...a,sort:i[1]}:i[0]===F.noMerge?a={...a,noMerge:i[1]}:i[0]===F.body&&(i[0]=ae);return[u.__index,e,f,a,l]})}};stringifyUtil(e,t){if(!e)return;if(oe(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0];let{selector:r,entries:s,parent:o,layer:u,sort:f,noMerge:l}=this.applyVariants(e),a=te(s);if(!a)return;let{layer:i,sort:c,...d}=e[3]??{},h={...d,layer:u??i,sort:f??c};return[e[0],r,a,o,h,this.config.details?t:void 0,l]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?a=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(a)}:he,o,u,f,l;for(let a of this.config.shortcuts){let i=e;if(a[2]?.prefix){let d=V(a[2].prefix).find(h=>e.startsWith(h));if(d==null)continue;i=e.slice(d.length)}if(xe(a)){if(a[0]===i){o=o||a[2],u=a[1],s(a);break}}else{let c=i.match(a[0]);if(c&&(u=a[1](c,t)),u){o=o||a[2],s(a);break}}}if(u&&(f=D(V(u).filter(P).map(a=>be(a.trim()).split(/\s+/g)).flat()),l=V(u).filter(a=>!P(a)).map(a=>({handles:[],value:a}))),!u){let a=P(e)?await this.matchVariants(e):[e];for(let i of a){let[c,d,h]=i;if(c!==d){let R=await this.expandShortcut(d,t,r-1);R&&(f=R[0].filter(P).map(v=>c.replace(d,v)),l=R[0].filter(v=>!P(v)).map(v=>({handles:[...v.handles,...h],value:v.value})))}}}if(!(!f?.length&&!l?.length))return[[await Promise.all(V(f).map(async a=>(await this.expandShortcut(a,t,r-1))?.[0]||[a])),l].flat(2).filter(a=>!!a),o]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let o=new X,u=(await Promise.all(D(r).map(async i=>{let c=P(i)?await this.parseUtil(i,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",B(i.value),void 0,i.handles]];return!c&&this.config.warn&&Te(`unmatched utility "${i}" in shortcut "${e[1]}"`),c||[]}))).flat(1).filter(Boolean).sort((i,c)=>i[0]-c[0]),[f,,l]=e,a=[];for(let i of u){if(oe(i)){a.push([i[0],void 0,i[1],void 0,i[2],t,void 0]);continue}let c=Object.fromEntries(i[2])[F.shortcutsNoMerge],d=[...i[4],...c?[]:l],{selector:h,entries:R,parent:v,sort:E,noMerge:$,layer:x}=this.applyVariants(i,d,f);o.getFallback(x??s.layer,new Q).getFallback(h,v,[[],i[0]])[0].push([R,!!($??i[3]?.noMerge),E??0])}return a.concat(o.flatMap((i,c)=>i.map(([d,h],R,v)=>{let E=(x,y,U)=>{let p=Math.max(...U.map(m=>m[1])),b=U.map(m=>m[0]);return(x?[b.flat(1)]:b).map(m=>{let g=te(m);if(g)return[h,R,g,v,{...s,noMerge:y,sort:p,layer:c},t,void 0]})};return[[d.filter(([,x])=>x).map(([x,,y])=>[x,y]),!0],[d.filter(([,x])=>!x).map(([x,,y])=>[x,y]),!1]].map(([x,y])=>[...E(!1,y,x.filter(([U])=>U.some(p=>p[0]===F.shortcutsNoMerge))),...E(!0,y,x.filter(([U])=>U.every(p=>p[0]!==F.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 Pe(n,e){return await ue.create(n,e)}var Ue=/\s\$\$\s+/g;function qe(n){return Ue.test(n)}function Ze(n,e){return qe(n)?n.replace(Ue,e?` ${e} `:" "):e?`${e} ${n}`:n}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Je(n){return Ae.test(n)?n.replace(Ae,(e,t,r,s)=>`[${Z(t)}${r}"${Z(s)}"]`):`.${Z(n)}`}function Qe(n,e){return e(n)}function Xe(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Ve(n){return n.charAt(0).toUpperCase()+n.slice(1)}function $e(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var je=["Webkit","Moz","ms"];function Oe(n){let e={};function t(r){let s=e[r];if(s)return s;let o=Xe(r);if(o!=="filter"&&o in n)return e[r]=$e(o);o=Ve(o);for(let u=0;u<je.length;u++){let f=`${je[u]}${o}`;if(f in n)return e[r]=$e(Ve(f))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function _e(n){return n.replace(/&/g,"&").replace(/>/g,">").replace(/</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||{},o=Object.assign({},n,s.runtime),u=o.defaults||{},f=o.cloakAttribute??"un-cloak";o.autoPrefix&&(u.postprocess=V(u.postprocess)).unshift(Oe(t.createElement("div").style)),o.configResolved?.(s,u);let l=await Pe(s,u),a=S=>o.inject?o.inject(S):r().prepend(S),i=()=>o.rootElement?o.rootElement():t.body,c=new Map,d=!0,h=new Set,R,v,E=[],$=()=>new Promise(S=>{E.push(S),v!=null&&clearTimeout(v),v=setTimeout(()=>U().then(()=>{let T=E;E=[],T.forEach(w=>w())}),0)});function x(S,T=!1){if(S.nodeType!==1)return;let w=S;w.hasAttribute(f)&&w.removeAttribute(f),T&&w.querySelectorAll(`[${f}]`).forEach(A=>{A.removeAttribute(f)})}function y(S,T){let w=c.get(S);if(!w)if(w=t.createElement("style"),w.setAttribute("data-unocss-runtime-layer",S),c.set(S,w),T==null)a(w);else{let A=y(T),j=A.parentNode;j?j.insertBefore(w,A.nextSibling):a(w)}return w}async function U(){let S=[...h],T=await l.generate(S);return T.layers.reduce((A,j)=>(y(j,A).innerHTML=T.getLayer(j)??"",j),void 0),S.filter(A=>!T.matched.has(A)).forEach(A=>h.delete(A)),{...T,getStyleElement:A=>c.get(A),getStyleElements:()=>c}}async function p(S){let T=h.size;await l.applyExtractors(S,void 0,h),T!==h.size&&await $()}async function b(S=i()){let T=S&&S.outerHTML;T&&(await p(`${T} ${_e(T)}`),x(r()),x(S,!0))}let m=new MutationObserver(S=>{d||S.forEach(async T=>{if(T.target.nodeType!==1)return;let w=T.target;for(let A of c)if(w===A[1])return;if(T.type==="childList")T.addedNodes.forEach(async A=>{if(A.nodeType!==1)return;let j=A;R&&!R(j)||(await p(j.outerHTML),x(j))});else{if(R&&!R(w))return;if(T.attributeName!==f){let A=Array.from(w.attributes).map(M=>M.value?`${M.name}="${M.value}"`:M.name).join(" "),j=`<${w.tagName.toLowerCase()} ${A}>`;await p(j)}x(w)}})}),g=!1;function C(){if(g)return;let S=o.observer?.target?o.observer.target():i();S&&(m.observe(S,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),g=!0)}function O(){o.bypassDefined&&et(l.blocked),b(),C()}function _(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",O):O()}let k=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(S){P(S)||(S.forEach(T=>h.add(T)),S=""),await p(S)},extractAll:b,inspect(S){R=S},toggleObserver(S){S===void 0?d=!d:d=!!S,!g&&!d&&_()},update:U,presets:e.__unocss_runtime?.presets??{}};o.ready?.(k)!==!1&&(d=!1,_())}function et(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 cu=Object.defineProperty;var fu=(e,t)=>{for(var r in t)cu(e,r,{get:t[r],enumerable:!0})};var tt="default",Yt="preflights",uu="shortcuts",pu="imports",Ko={[pu]:-200,[Yt]:-100,[uu]:-10,[tt]:0};var Xt=/[\\:]?[\s'"`;{}]+/g;function du(e){return e.split(Xt)}var Zt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return du(e)}};function T(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function jn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function L(e){return typeof e=="string"}var rt=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 Jt(e){return e instanceof rt}function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===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=te;function Go(){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 mu=/^\[(.+?)~?="(.*)"\]$/;var gu=/[\w\u00A0-\uFFFF%-?]/;function qo(e){return e.match(mu)}function nt(e=""){return gu.test(e)}function Ho(e){return typeof e=="function"?{match:e}:e}function zn(e){return e.length===3}function er(e){return e!=null}function Yo(){}var tr=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)))}},rr=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 ot(e){return L(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Xo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ot(t)):[e]:[ot(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})}var An="__virtual_key__";function De(e){return e==null?"":hu(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==An?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function nr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ze(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 nr(n)&&nr(o)&&Object.keys(o).forEach(a=>{nr(n[a])&&nr(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=ze(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Fe(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"?Fe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Fe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Fe(n):n;return r}return e}function Zo(e){return L(e[0])}function Jo(e){return L(e[0])}var or={};function bu(e=["-",":"]){let t=e.join("|");return or[t]||(or[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),or[t].lastIndex=0,or[t]}function xu(e,t=["-",":"],r=5){let n=bu(t),o,i=e.toString(),a=new Set,l=new Map;do o=!1,i=i.replace(n,(f,u,d,b,h)=>{if(!t.includes(d))return f;o=!0,a.add(u+d);let g=h+u.length+d.length+1,y={length:f.length,items:[]};l.set(h,y);for(let w of[...b.matchAll(/\S+/g)]){let R=g+w.index,v=l.get(R)?.items;v?l.delete(R):v=[{offset:R,length:w[0].length,className:w[0]}];for(let x of v)x.className=x.className==="~"?u:x.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),y.items.push(x)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,d]of l)c+=e.slice(f,u),c+=d.items.map(b=>b.className).join(" "),f=u+d.length;c+=e.slice(f)}else{c=e;for(let[f,u]of l)c.overwrite(f,f+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:l,get expanded(){return c.toString()}}}function Qo(e,t=["-",":"],r=5){let n=xu(e,t,r);return typeof e=="string"?n.expanded:e}var ei=new Set;function ti(e){ei.has(e)||(console.warn("[unocss]",e),ei.add(e))}function oi(e){return T(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ri="_uno_resolved";async function yu(e){let t=typeof e=="function"?await e():await e;if(ri in t)return t;t={...t},Object.defineProperty(t,ri,{value:!0,enumerable:!1});let r=t.shortcuts?oi(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=T(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ii(e){let t=await yu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(T).flatMap(ii))).flat();return[t,...r]}function vu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];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)}let a={pipeline:n?!1:{include:ge(ni(...t)),exclude:ge(ni(...r))}};return o.length&&(a.filesystem=ge(o.flat())),i.length&&(a.inline=ge(i.flat())),a}async function On(e={},t={}){let r=Object.assign({},t,e),n=jn((await Promise.all((r.presets||[]).flatMap(T).flatMap(ii))).flat(),($,j)=>$.name===j.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],a=[...i].reverse(),l=Object.assign({},Ko,...i.map($=>$.layers));function c($){return ge(i.flatMap(j=>T(j[$]||[])))}let f=c("extractors"),u=a.find($=>$.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Zt),u&&!f.includes(u)&&f.unshift(u),f.sort(($,j)=>($.order||0)-(j.order||0));let d=c("rules"),b=d.length,h={},g=[];for(let[$,j]of d.entries()){let k=j[2]??(j[2]={});k.__index=$,Zo(j)?T(k.prefix??"").forEach(O=>{h[O+j[0]]=j}):g.unshift(j)}let y={templates:ge(i.flatMap($=>T($.autocomplete?.templates))),extractors:i.flatMap($=>T($.autocomplete?.extractors)).sort(($,j)=>($.order||0)-(j.order||0)),shorthands:wu(i.map($=>$.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let R=c("content"),v=vu(R),x={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:$u(i.map($=>$.theme)),rules:d,rulesSize:b,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:y,variants:c("variants").map(Ho).sort(($,j)=>($.order||0)-(j.order||0)),shortcuts:oi(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:v,transformers:jn(c("transformers"),($,j)=>$.name===j.name)},z=c("extendTheme");for(let $ of z)x.theme=$(x.theme,x)||x.theme;for(let $ of i)$?.configResolved?.(x);return x}function $u(e){return e.map(t=>t?Fe(t):{}).reduce((t,r)=>ze(t,r),{})}function wu(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 ni(...e){return e.flatMap(ku)}function ku(e){return Array.isArray(e)?e:e?[e]:[]}var ai="66.5.7";var ae={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Pn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ai;events=Go();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 On(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 On(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 a=await i.extract?.(o);if(a)if(Jt(a)&&Jt(n))for(let l of a)n.setCount(l,n.getCount(l)+a.getCount(l));else for(let l of a)n.add(l)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ae,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,f)=>f(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let a=async c=>{let f=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);let u=await this.expandShortcut(f.currentSelector,f);return u?await this.stringifyShortcuts(f.variantMatch,f,u[0],u[1]):(await this.parseUtil(f.variantMatch,f))?.map(b=>this.stringifyUtil(b,f)).filter(er)},l=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:l=!1,extendedInfo:c=!1}=r,f=L(t)?await this.applyExtractors(t,n,c?new rt:new Set):Array.isArray(t)?new Set(t):t;if(a){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(k):E).forEach(E=>{let O=E.trim();O&&!f.has(O)&&f.add(O)})}let u=l?"":`
|
|
1
|
+
"use strict";(()=>{var cu=Object.defineProperty;var fu=(e,t)=>{for(var r in t)cu(e,r,{get:t[r],enumerable:!0})};var tt="default",Yt="preflights",uu="shortcuts",pu="imports",Ko={[pu]:-200,[Yt]:-100,[uu]:-10,[tt]:0};var Xt=/[\\:]?[\s'"`;{}]+/g;function du(e){return e.split(Xt)}var Zt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return du(e)}};function T(e=[]){return Array.isArray(e)?e:[e]}function ge(e){return Array.from(new Set(e))}function jn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function L(e){return typeof e=="string"}var rt=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 Jt(e){return e instanceof rt}function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===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=te;function Go(){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 mu=/^\[(.+?)~?="(.*)"\]$/;var gu=/[\w\u00A0-\uFFFF%-?]/;function qo(e){return e.match(mu)}function nt(e=""){return gu.test(e)}function Ho(e){return typeof e=="function"?{match:e}:e}function zn(e){return e.length===3}function er(e){return e!=null}function Yo(){}var tr=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)))}},rr=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 ot(e){return L(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Xo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ot(t)):[e]:[ot(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})}var An="__virtual_key__";function De(e){return e==null?"":hu(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==An?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function nr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ze(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 nr(n)&&nr(o)&&Object.keys(o).forEach(a=>{nr(n[a])&&nr(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=ze(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Fe(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"?Fe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Fe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Fe(n):n;return r}return e}function Zo(e){return L(e[0])}function Jo(e){return L(e[0])}var or={};function bu(e=["-",":"]){let t=e.join("|");return or[t]||(or[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),or[t].lastIndex=0,or[t]}function xu(e,t=["-",":"],r=5){let n=bu(t),o,i=e.toString(),a=new Set,l=new Map;do o=!1,i=i.replace(n,(f,u,d,b,h)=>{if(!t.includes(d))return f;o=!0,a.add(u+d);let g=h+u.length+d.length+1,y={length:f.length,items:[]};l.set(h,y);for(let w of[...b.matchAll(/\S+/g)]){let R=g+w.index,v=l.get(R)?.items;v?l.delete(R):v=[{offset:R,length:w[0].length,className:w[0]}];for(let x of v)x.className=x.className==="~"?u:x.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),y.items.push(x)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,d]of l)c+=e.slice(f,u),c+=d.items.map(b=>b.className).join(" "),f=u+d.length;c+=e.slice(f)}else{c=e;for(let[f,u]of l)c.overwrite(f,f+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:l,get expanded(){return c.toString()}}}function Qo(e,t=["-",":"],r=5){let n=xu(e,t,r);return typeof e=="string"?n.expanded:e}var ei=new Set;function ti(e){ei.has(e)||(console.warn("[unocss]",e),ei.add(e))}function oi(e){return T(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var ri="_uno_resolved";async function yu(e){let t=typeof e=="function"?await e():await e;if(ri in t)return t;t={...t},Object.defineProperty(t,ri,{value:!0,enumerable:!1});let r=t.shortcuts?oi(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=T(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ii(e){let t=await yu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(T).flatMap(ii))).flat();return[t,...r]}function vu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];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)}let a={pipeline:n?!1:{include:ge(ni(...t)),exclude:ge(ni(...r))}};return o.length&&(a.filesystem=ge(o.flat())),i.length&&(a.inline=ge(i.flat())),a}async function On(e={},t={}){let r=Object.assign({},t,e),n=jn((await Promise.all((r.presets||[]).flatMap(T).flatMap(ii))).flat(),($,j)=>$.name===j.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],a=[...i].reverse(),l=Object.assign({},Ko,...i.map($=>$.layers));function c($){return ge(i.flatMap(j=>T(j[$]||[])))}let f=c("extractors"),u=a.find($=>$.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Zt),u&&!f.includes(u)&&f.unshift(u),f.sort(($,j)=>($.order||0)-(j.order||0));let d=c("rules"),b=d.length,h={},g=[];for(let[$,j]of d.entries()){let k=j[2]??(j[2]={});k.__index=$,Zo(j)?T(k.prefix??"").forEach(O=>{h[O+j[0]]=j}):g.unshift(j)}let y={templates:ge(i.flatMap($=>T($.autocomplete?.templates))),extractors:i.flatMap($=>T($.autocomplete?.extractors)).sort(($,j)=>($.order||0)-(j.order||0)),shorthands:wu(i.map($=>$.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let R=c("content"),v=vu(R),x={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:$u(i.map($=>$.theme)),rules:d,rulesSize:b,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:y,variants:c("variants").map(Ho).sort(($,j)=>($.order||0)-(j.order||0)),shortcuts:oi(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:v,transformers:jn(c("transformers"),($,j)=>$.name===j.name)},z=c("extendTheme");for(let $ of z)x.theme=$(x.theme,x)||x.theme;for(let $ of i)$?.configResolved?.(x);return x}function $u(e){return e.map(t=>t?Fe(t):{}).reduce((t,r)=>ze(t,r),{})}function wu(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 ni(...e){return e.flatMap(ku)}function ku(e){return Array.isArray(e)?e:e?[e]:[]}var ai="66.5.9";var ae={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Pn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ai;events=Go();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 On(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 On(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 a=await i.extract?.(o);if(a)if(Jt(a)&&Jt(n))for(let l of a)n.setCount(l,n.getCount(l)+a.getCount(l));else for(let l of a)n.add(l)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ae,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,f)=>f(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let a=async c=>{let f=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);let u=await this.expandShortcut(f.currentSelector,f);return u?await this.stringifyShortcuts(f.variantMatch,f,u[0],u[1]):(await this.parseUtil(f.variantMatch,f))?.map(b=>this.stringifyUtil(b,f)).filter(er)},l=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:l=!1,extendedInfo:c=!1}=r,f=L(t)?await this.applyExtractors(t,n,c?new rt:new Set):Array.isArray(t)?new Set(t):t;if(a){let k={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(k):E).forEach(E=>{let O=E.trim();O&&!f.has(O)&&f.add(O)})}let u=l?"":`
|
|
2
2
|
`,d=new Set([tt]),b=c?new Map:new Set,h=new Map,g={},y=Array.from(f).map(async k=>{if(b.has(k))return;let E=await this.parseToken(k);if(E!=null){b instanceof Map?b.set(k,{data:E,count:Jt(f)?f.getCount(k):-1}):b.add(k);for(let O of E){let q=O[3]||"",re=O[4]?.layer;h.has(q)||h.set(q,[]),h.get(q).push(O),re&&d.add(re)}}});await Promise.all(y),await(async()=>{if(!i)return;let k={generator:this,theme:this.config.theme},E=new Set([]);this.config.preflights.forEach(({layer:O=Yt})=>{d.add(O),E.add(O)}),g=Object.fromEntries(await Promise.all(Array.from(E).map(async O=>{let re=(await Promise.all(this.config.preflights.filter(ie=>(ie.layer||Yt)===O).map(async ie=>await ie.getCSS(k)))).filter(Boolean).join(u);return[O,re]})))})();let w=this.config.sortLayers(Array.from(d).sort((k,E)=>(this.config.layers[k]??0)-(this.config.layers[E]??0)||k.localeCompare(E))),R={},v=this.config.outputToCssLayers,x=k=>{let E=k;return typeof v=="object"&&(E=v.cssLayerName?.(k)),E===null?null:E??k},z=(k=tt)=>{if(R[k])return R[k];let E=Array.from(h).sort((re,ie)=>(this.parentOrders.get(re[0])??0)-(this.parentOrders.get(ie[0])??0)||re[0]?.localeCompare(ie[0]||"")||0).map(([re,ie])=>{let A=ie.length,F=ie.filter(N=>(N[4]?.layer||tt)===k).sort((N,me)=>N[0]-me[0]||(N[4]?.sort||0)-(me[4]?.sort||0)||N[5]?.currentSelector?.localeCompare(me[5]?.currentSelector??"")||N[1]?.localeCompare(me[1]||"")||N[2]?.localeCompare(me[2]||"")||0).map(([,N,me,,Ht,,Tn])=>[[[(N&&Ru(N,o))??"",Ht?.sort??0]],me,!!(Tn??Ht?.noMerge)]);if(!F.length)return;let D=F.reverse().map(([N,me,Ht],Tn)=>{if(!Ht&&this.config.mergeSelectors)for(let je=Tn+1;je<A;je++){let ye=F[je];if(ye&&!ye[2]&&(N&&ye[0]||N==null&&ye[0]==null)&&ye[1]===me)return N&&ye[0]&&ye[0].push(...N),null}let En=N?ge(N.sort((je,ye)=>je[1]-ye[1]||je[0]?.localeCompare(ye[0]||"")||0).map(je=>je[0]).filter(Boolean)):[];return En.length?`${En.join(`,${u}`)}{${me}}`:me}).filter(Boolean),K=Array.from(new Set(D)).reverse().join(u);if(!re)return K;let ne=re.split(" $$ ");return`${ne.join("{")}{${u}${K}${u}${"}".repeat(ne.length)}`}).filter(Boolean).join(u);i&&(E=[g[k],E].filter(Boolean).join(u));let O;v&&E&&(O=x(k),O!==null&&(E=`@layer ${O}{${u}${E}${u}}`));let q=l?"":`/* layer: ${k}${O&&O!==k?`, alias: ${O}`:""} */${u}`;return R[k]=E?q+E:""},$=(k=w,E)=>{let O=k.filter(q=>!E?.includes(q));return[v&&O.length>0?`@layer ${O.map(x).filter(er).join(", ")};`:void 0,...O.map(q=>z(q)||"")].filter(Boolean).join(u)};return{get css(){return $()},layers:w,matched:b,getLayers:$,getLayer:z,setLayer:async(k,E)=>{let O=await E(z(k));return R[k]=O,O}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let a=!0,[,,l,c]=i;for(;a;){a=!1;let f=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(f,n);if(d){if(L(d)){if(d===f)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let b=d.map(h=>{let g=h.matcher??f,y=[h,...l],w=new Set(c);return w.add(u),[i[0],g,y,w]});return(await Promise.all(b.map(h=>o(h)))).flat()}}i[1]=d.matcher??f,l.unshift(d),c.add(u),a=!0;break}}if(!a)break;if(l.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((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>d=>{let b=u.body?.(d.entries)||d.entries,h=Array.isArray(u.parent)?u.parent:[u.parent,void 0],g=u.selector?.(d.selector,b);return(u.handle??Eu)({...d,entries:b,selector:g||d.selector,parent:h[0]||d.parent,parentOrder:h[1]||d.parentOrder,layer:u.layer||d.layer,sort:u.sort||d.sort},f)},f=>f)({prefix:"",selector:Tu(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:l}=i;a!=null&&l!=null&&this.parentOrders.set(a,l);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(c);return c}constructCustomCSS(t,r,n){let o=ot(r);if(L(o))return o;let{selector:i,entries:a,parent:l}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${De(a)}}`;return l?`${l}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=L(t)?await this.matchVariants(t):[t],a=async([c,f,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},b=this.config.rulesStaticMap[f];if(b&&b[1]&&(n||!b[2]?.internal))return this.resolveCSSResult(c,b[1],b,d);for(let h of this.config.rulesDynamic){let[g,y,w]=h;if(w?.internal&&!n)continue;let R=f;if(w?.prefix){let $=T(w.prefix);if(o){let j=T(o);if(!$.some(k=>j.includes(k)))continue}else{let j=$.find(k=>f.startsWith(k));if(j==null)continue;R=f.slice(j.length)}}let v=R.match(g);if(!v)continue;let x=await y(v,d);if(!x)continue;if(typeof x!="string")if(Symbol.asyncIterator in x){let $=[];for await(let j of x)j&&$.push(j);x=$}else Symbol.iterator in x&&!Array.isArray(x)&&(x=Array.from(x).filter(er));let z=this.resolveCSSResult(c,x,h,d);if(z)return z}},l=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(l.length)return l}resolveCSSResult=(t,r,n,o)=>{let i=Xo(r).filter(a=>a.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let a=n[2];return i.map(l=>{if(L(l))return[a.__index,l,a];let c=o.variantHandlers,f=a;for(let u of l)u[0]===ae.variants?typeof u[1]=="function"?c=u[1](c)||c:c=[...T(u[1]),...c]:u[0]===ae.parent?c=[{parent:u[1]},...c]:u[0]===ae.selector?c=[{selector:u[1]},...c]:u[0]===ae.layer?c=[{layer:u[1]},...c]:u[0]===ae.sort?f={...f,sort:u[1]}:u[0]===ae.noMerge?f={...f,noMerge:u[1]}:u[0]===ae.body&&(u[0]=An);return[a.__index,t,l,f,c]})}};stringifyUtil(t,r){if(!t)return;if(zn(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:a,sort:l,noMerge:c}=this.applyVariants(t),f=De(o);if(!f)return;let{layer:u,sort:d,...b}=t[3]??{},h={...b,layer:a??u,sort:l??d};return[t[0],n,f,i,h,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?f=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(f)}:Yo,i,a,l,c;for(let f of this.config.shortcuts){let u=t;if(f[2]?.prefix){let b=T(f[2].prefix).find(h=>t.startsWith(h));if(b==null)continue;u=t.slice(b.length)}if(Jo(f)){if(f[0]===u){i=i||f[2],a=f[1],o(f);break}}else{let d=u.match(f[0]);if(d&&(a=f[1](d,r)),a){i=i||f[2],o(f);break}}}if(a&&(l=ge(T(a).filter(L).map(f=>Qo(f.trim()).split(/\s+/g)).flat()),c=T(a).filter(f=>!L(f)).map(f=>({handles:[],value:f}))),!a){let f=L(t)?await this.matchVariants(t):[t];for(let u of f){let[d,b,h]=u;if(d!==b){let g=await this.expandShortcut(b,r,n-1);g&&(l=g[0].filter(L).map(y=>d.replace(b,y)),c=g[0].filter(y=>!L(y)).map(y=>({handles:[...y.handles,...h],value:y.value})))}}}if(!(!l?.length&&!c?.length))return[[await Promise.all(T(l).map(async f=>(await this.expandShortcut(f,r,n-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new rr,a=(await Promise.all(ge(n).map(async u=>{let d=L(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ot(u.value),void 0,u.handles]];return!d&&this.config.warn&&ti(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[l,,c]=t,f=[];for(let u of a){if(zn(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let d=Object.fromEntries(u[2])[ae.shortcutsNoMerge],b=[...u[4],...d?[]:c],{selector:h,entries:g,parent:y,sort:w,noMerge:R,layer:v}=this.applyVariants(u,b,l);i.getFallback(v??o.layer,new tr).getFallback(h,y,[[],u[0]])[0].push([g,!!(R??u[3]?.noMerge),w??0])}return f.concat(i.flatMap((u,d)=>u.map(([b,h],g,y)=>{let w=(v,x,z)=>{let $=Math.max(...z.map(k=>k[1])),j=z.map(k=>k[0]);return(v?[j.flat(1)]:j).map(k=>{let E=De(k);if(E)return[h,g,E,y,{...o,noMerge:x,sort:$,layer:d},r,void 0]})};return[[b.filter(([,v])=>v).map(([v,,x])=>[v,x]),!0],[b.filter(([,v])=>!v).map(([v,,x])=>[v,x]),!1]].map(([v,x])=>[...w(!1,x,v.filter(([z])=>z.some($=>$[0]===ae.shortcutsNoMerge))),...w(!0,x,v.filter(([z])=>z.every($=>$[0]!==ae.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):L(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):L(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function li(e,t){return await Pn.create(e,t)}var ci=/\s\$\$\s+/g;function Cu(e){return ci.test(e)}function Ru(e,t){return Cu(e)?e.replace(ci,t?` ${t} `:" "):t?`${t} ${e}`:e}var si=/^\[(.+?)(~?=)"(.*)"\]$/;function Tu(e){return si.test(e)?e.replace(si,(t,r,n,o)=>`[${Qt(r)}${n}"${Qt(o)}"]`):`.${Qt(e)}`}function Eu(e,t){return t(e)}var Vn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function fi(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:a}){let l=qo(i);if(!l)return;let c=l[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let f=l[2],[,u="",d=f]=f.match(Vn)||[];if(d==="~"||n&&d==="true"||!d)return`${u}${c}`;if(o==null){let b=a?.config?.separators?.join("|");b?o=new RegExp(`^(.*\\](?:${b}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,b,h]=f.match(o)||[];if(h)return`${b}${u}${c}-${h}`}if(u&&d.match(/^[\d.]+$/)){let b=u.split(/([^:]*:)/g).filter(Boolean),h=b.pop()+d,g=b.join("");return[{matcher:`${u}${c}-${d}`},{matcher:`${g}${c}-${h}`}]}return`${u}${c}-${d}`}}}var ju=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,zu=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ui=/[\s'"`;>]+/;function pi(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(ju),o,i=0;for(let v of n){let[,x,z]=v,$=v.index+x.length;if(r>$&&r<=$+z.length){i=$,o=z;break}}if(!o)return null;let a=o.matchAll(zu),l=0,c,f;for(let v of a){let[x,z,$]=v,j=i+v.index;if(r>j&&r<=j+x.length){l=j,c=z,f=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let u=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!u)return null;let d=u?c.slice(e.prefix.length):c;if(f===void 0)return{extracted:d,resolveReplacement(v){let x=u?e.prefix.length:0;return{start:l+x,end:l+c.length,replacement:v}}};let b=l+c.length+2,h=ui.exec(f),g=0,y;for(;h;){let[v]=h;if(r>b+g&&r<=b+g+h.index){y=f.slice(g,g+h.index);break}g+=h.index+v.length,h=ui.exec(f.slice(g))}y===void 0&&(y=f.slice(g));let[,w="",R]=y.match(Vn)||[];return{extracted:`${w}${d}-${R}`,transformSuggestions(v){return v.filter(x=>x.startsWith(`${w}${d}-`)).map(x=>w+x.slice(w.length+d.length+1))},resolveReplacement(v){return{start:g+b,end:g+b+y.length,replacement:w+v.slice(w.length+d.length+1)}}}}}}var Au=["v-bind:",":"],di=/[\s'"`;]+/g,Mn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Ou=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Fn=["placeholder","fill","opacity","stroke-opacity"];function mi(e){let t=e?.ignoreAttributes??Fn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Mn)).flatMap(i=>Array.from((i[1]||"").matchAll(Ou))).flatMap(([,i,...a])=>{let l=a.filter(Boolean).join("");if(t.includes(i))return[];for(let c of Au)if(i.startsWith(c)){i=i.slice(c.length);break}if(!l){if(nt(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?l.split(di).filter(nt):Mn.test(l)?(Mn.lastIndex=0,this.extract({code:l})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:l.split(di).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var Pu=(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??Fn;let t=[fi(e)],r=[mi(e)],n=[pi(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},gi=Pu;var ir="__TAGIFY__",Vu=/<([\w:-]+)/g;function hi(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Vu)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.lastIndex=0,i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${ir}${o}`)}}}function bi(e){let{extraProperties:t}=e,r=`${ir}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;let o=n.slice(r.length),i={matcher:o,selector:a=>a.slice(ir.length+1)};return t&&(typeof t=="function"?i.body=a=>[...a,...Object.entries(t(o)??{})]:i.body=a=>[...a,...Object.entries(t)]),i}}}var Mu=(e={})=>{let{defaultExtractor:t=!0}=e,r=[bi(e)],n=[hi(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},xi=Mu;function se(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let l=0;l<n;l++)switch(e[l]){case t:i||(i=!0,a=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,l+1),e.slice(l+1),e.slice(0,a)];break}}function he(e,t,r,n){if(e===""||(L(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let c=l.length;if(c&&l===e.slice(a,a+c)&&i===0)return a===0||a===o-c?void 0:[e.slice(0,a),e.slice(a+c)]}}return[e,""]}function Ae(e,t,r,n="(",o=")"){r=r??10;let i=[],a=0;for(;e!=="";){if(++a>r)return;let l=he(e,n,o,t);if(!l)return;let[c,f]=l;i.push(c),e=f}if(i.length>0)return i}var _n=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var ar=["%alpha","<alpha-value>"],Fu=new RegExp(ar.map(e=>H(e)).join("|"),"g");function J(e=""){let t=_u(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(_n.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function fe(e){let t=e.alpha??1;return typeof t=="string"&&ar.includes(t)?1:t}function P(e,t){if(typeof e=="string")return e.replace(Fu,`${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}`,_n.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function _u(e){if(!e)return;let t=Lu(e);if(t!=null||(t=Wu(e),t!=null)||(t=Uu(e),t!=null)||(t=Iu(e),t!=null)||(t=Du(e),t!=null))return t}function Lu(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function Wu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Uu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ae(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 Bu=new RegExp(`^(${_n.join("|")})\\((.+)\\)$`,"i");function Iu(e){let t=e.match(Bu);if(!t)return;let[,r,n]=t,o=yi(`${r} ${n}`);if(o){let{alpha:i,components:[a,...l]}=o;return{type:a,components:l,alpha:i}}}function Du(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=yi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function yi(e){let t=Ae(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=Ae(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var Nu=44,Ku=59,vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ki=new Uint8Array(64),Gu=new Uint8Array(128);for(let e=0;e<vi.length;e++){let t=vi.charCodeAt(e);ki[e]=t,Gu[t]=e}function it(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(ki[o])}while(n>0);return t}var $i=1024*16,wi=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}},qu=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array($i)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===$i&&(this.out+=wi.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+wi.decode(e.subarray(0,r)):t}};function Si(e){let t=new qu,r=0,n=0,o=0,i=0;for(let a=0;a<e.length;a++){let l=e[a];if(a>0&&t.write(Ku),l.length===0)continue;let c=0;for(let f=0;f<l.length;f++){let u=l[f];f>0&&t.write(Nu),c=it(t,u[0],c),u.length!==1&&(r=it(t,u[1],r),n=it(t,u[2],n),o=it(t,u[3],o),u.length!==4&&(i=it(t,u[4],i)))}}return t.flush()}var sr=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},lr=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 Hu(){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 Yu=Hu(),Ln=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Si(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,"+Yu(this.toString())}};function Xu(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,a)=>{let l=/^ +/.exec(a)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function Zu(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 Ju=Object.prototype.toString;function Qu(e){return Ju.call(e)==="[object Object]"}function Ci(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,a=r.length;for(;i<a;){let f=i+a>>1;o<r[f]?a=f:i=f+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var ep=/\w/,Wn=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,a=r.indexOf(`
|
package/mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Uo=Object.defineProperty;var Fo=(t,e)=>{for(var r in e)Uo(t,r,{get:e[r],enumerable:!0})};var xe="default",Fe="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[Fe]:-100,[_o]:-10,[xe]:0};var _e=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(_e)}var Ie={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function Y(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function We(t){return t instanceof ye}function _(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Be=X;function er(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Bo=/^\[(.+?)~?="(.*)"\]$/;var Do=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Bo)}function we(t=""){return Do.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function 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 i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ke=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function $e(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ir(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function No(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}var ht="__virtual_key__";function ue(t){return t==null?"":No(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==ht?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function Ge(t){return t&&typeof t=="object"&&!Array.isArray(t)}function mt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Ge(n)&&Ge(i)&&Object.keys(i).forEach(s=>{Ge(n[s])&&Ge(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=mt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function Se(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Se(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}return t}function or(t){return z(t[0])}function sr(t){return z(t[0])}var He={};function Ko(t=["-",":"]){let e=t.join("|");return He[e]||(He[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),He[e].lastIndex=0,He[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,u,p,d,m)=>{if(!e.includes(p))return c;i=!0,s.add(u+p);let h=m+u.length+p.length+1,y={length:c.length,items:[]};a.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let R=h+w.index,x=a.get(R)?.items;x?a.delete(R):x=[{offset:R,length:w[0].length,className:w[0]}];for(let g of x)g.className=g.className==="~"?u:g.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),y.items.push(g)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[u,p]of a)l+=t.slice(c,u),l+=p.items.map(d=>d.className).join(" "),c=u+p.length;l+=t.slice(c)}else{l=t;for(let[c,u]of a)l.overwrite(c,c+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function ar(t,e=["-",":"],r=5){let n=Go(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return T(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ho(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=T(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ho(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(T).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&i.push(a.filesystem),a.inline&&o.push(a.inline)}let s={pipeline:n?!1:{include:Y(fr(...e)),exclude:Y(fr(...r))}};return i.length&&(s.filesystem=Y(i.flat())),o.length&&(s.inline=Y(o.flat())),s}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(dr))).flat(),(b,$)=>b.name===$.name),i=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Qt,...o.map(b=>b.layers));function l(b){return Y(o.flatMap($=>T($[b]||[])))}let c=l("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Ie),u&&!c.includes(u)&&c.unshift(u),c.sort((b,$)=>(b.order||0)-($.order||0));let p=l("rules"),d=p.length,m={},h=[];for(let[b,$]of p.entries()){let S=$[2]??($[2]={});S.__index=b,or($)?T(S.prefix??"").forEach(E=>{m[E+$[0]]=$}):h.unshift($)}let y={templates:Y(o.flatMap(b=>T(b.autocomplete?.templates))),extractors:o.flatMap(b=>T(b.autocomplete?.extractors)).sort((b,$)=>(b.order||0)-($.order||0)),shorthands:Xo(o.map(b=>b.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let R=l("content"),x=qo(R),g={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:Yo(o.map(b=>b.theme)),rules:p,rulesSize:d,rulesDynamic:h,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:y,variants:l("variants").map(rr).sort((b,$)=>(b.order||0)-($.order||0)),shortcuts:pr(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:x,transformers:pt(l("transformers"),(b,$)=>b.name===$.name)},k=l("extendTheme");for(let b of k)g.theme=b(g.theme,g)||g.theme;for(let b of o)b?.configResolved?.(g);return g}function Yo(t){return t.map(e=>e?Se(e):{}).reduce((e,r)=>mt(e,r),{})}function Xo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function fr(...t){return t.flatMap(Zo)}function Zo(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.5.7";var Z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=er();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await 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 i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(We(s)&&We(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Z,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let i=this.config.preprocess.reduce((l,c)=>c(l)??l,e);if(this.isBlocked(i)){this.blocked.add(e),this.cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let u=await this.expandShortcut(c.currentSelector,c);return u?await this.stringifyShortcuts(c.variantMatch,c,u[0],u[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(De)},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(S):v).forEach(v=>{let E=v.trim();E&&!c.has(E)&&c.add(E)})}let u=a?"":`
|
|
1
|
+
"use strict";(()=>{var Uo=Object.defineProperty;var Fo=(t,e)=>{for(var r in e)Uo(t,r,{get:e[r],enumerable:!0})};var xe="default",Fe="preflights",_o="shortcuts",Io="imports",Qt={[Io]:-200,[Fe]:-100,[_o]:-10,[xe]:0};var _e=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(_e)}var Ie={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function Y(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function We(t){return t instanceof ye}function _(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Be=X;function er(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Bo=/^\[(.+?)~?="(.*)"\]$/;var Do=/[\w\u00A0-\uFFFF%-?]/;function tr(t){return t.match(Bo)}function we(t=""){return Do.test(t)}function rr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function 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 i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ke=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function $e(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ir(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function No(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}var ht="__virtual_key__";function ue(t){return t==null?"":No(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==ht?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function Ge(t){return t&&typeof t=="object"&&!Array.isArray(t)}function mt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Ge(n)&&Ge(i)&&Object.keys(i).forEach(s=>{Ge(n[s])&&Ge(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=mt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function Se(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Se(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}return t}function or(t){return z(t[0])}function sr(t){return z(t[0])}var He={};function Ko(t=["-",":"]){let e=t.join("|");return He[e]||(He[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),He[e].lastIndex=0,He[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,u,p,d,m)=>{if(!e.includes(p))return c;i=!0,s.add(u+p);let h=m+u.length+p.length+1,y={length:c.length,items:[]};a.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let R=h+w.index,x=a.get(R)?.items;x?a.delete(R):x=[{offset:R,length:w[0].length,className:w[0]}];for(let g of x)g.className=g.className==="~"?u:g.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),y.items.push(g)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[u,p]of a)l+=t.slice(c,u),l+=p.items.map(d=>d.className).join(" "),c=u+p.length;l+=t.slice(c)}else{l=t;for(let[c,u]of a)l.overwrite(c,c+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function ar(t,e=["-",":"],r=5){let n=Go(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return T(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ho(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=T(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ho(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(T).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&i.push(a.filesystem),a.inline&&o.push(a.inline)}let s={pipeline:n?!1:{include:Y(fr(...e)),exclude:Y(fr(...r))}};return i.length&&(s.filesystem=Y(i.flat())),o.length&&(s.inline=Y(o.flat())),s}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(dr))).flat(),(b,$)=>b.name===$.name),i=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Qt,...o.map(b=>b.layers));function l(b){return Y(o.flatMap($=>T($[b]||[])))}let c=l("extractors"),u=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Ie),u&&!c.includes(u)&&c.unshift(u),c.sort((b,$)=>(b.order||0)-($.order||0));let p=l("rules"),d=p.length,m={},h=[];for(let[b,$]of p.entries()){let S=$[2]??($[2]={});S.__index=b,or($)?T(S.prefix??"").forEach(E=>{m[E+$[0]]=$}):h.unshift($)}let y={templates:Y(o.flatMap(b=>T(b.autocomplete?.templates))),extractors:o.flatMap(b=>T(b.autocomplete?.extractors)).sort((b,$)=>(b.order||0)-($.order||0)),shorthands:Xo(o.map(b=>b.autocomplete?.shorthands||{}))},w=l("separators");w.length||(w=[":","-"]);let R=l("content"),x=qo(R),g={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:Yo(o.map(b=>b.theme)),rules:p,rulesSize:d,rulesDynamic:h,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:y,variants:l("variants").map(rr).sort((b,$)=>(b.order||0)-($.order||0)),shortcuts:pr(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev",content:x,transformers:pt(l("transformers"),(b,$)=>b.name===$.name)},k=l("extendTheme");for(let b of k)g.theme=b(g.theme,g)||g.theme;for(let b of o)b?.configResolved?.(g);return g}function Yo(t){return t.map(e=>e?Se(e):{}).reduce((e,r)=>mt(e,r),{})}function Xo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function fr(...t){return t.flatMap(Zo)}function Zo(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.5.9";var Z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=er();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await 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 i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(We(s)&&We(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Z,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let i=this.config.preprocess.reduce((l,c)=>c(l)??l,e);if(this.isBlocked(i)){this.blocked.add(e),this.cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let u=await this.expandShortcut(c.currentSelector,c);return u?await this.stringifyShortcuts(c.variantMatch,c,u[0],u[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(De)},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(v=>typeof v=="function"?v(S):v).forEach(v=>{let E=v.trim();E&&!c.has(E)&&c.add(E)})}let u=a?"":`
|
|
2
2
|
`,p=new Set([xe]),d=l?new Map:new Set,m=new Map,h={},y=Array.from(c).map(async S=>{if(d.has(S))return;let v=await this.parseToken(S);if(v!=null){d instanceof Map?d.set(S,{data:v,count:We(c)?c.getCount(S):-1}):d.add(S);for(let E of v){let I=E[3]||"",W=E[4]?.layer;m.has(I)||m.set(I,[]),m.get(I).push(E),W&&p.add(W)}}});await Promise.all(y),await(async()=>{if(!o)return;let S={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:E=Fe})=>{p.add(E),v.add(E)}),h=Object.fromEntries(await Promise.all(Array.from(v).map(async E=>{let W=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Fe)===E).map(async H=>await H.getCSS(S)))).filter(Boolean).join(u);return[E,W]})))})();let w=this.config.sortLayers(Array.from(p).sort((S,v)=>(this.config.layers[S]??0)-(this.config.layers[v]??0)||S.localeCompare(v))),R={},x=this.config.outputToCssLayers,g=S=>{let v=S;return typeof x=="object"&&(v=x.cssLayerName?.(S)),v===null?null:v??S},k=(S=xe)=>{if(R[S])return R[S];let v=Array.from(m).sort((W,H)=>(this.parentOrders.get(W[0])??0)-(this.parentOrders.get(H[0])??0)||W[0]?.localeCompare(H[0]||"")||0).map(([W,H])=>{let C=H.length,j=H.filter(V=>(V[4]?.layer||xe)===S).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,,Ue,,ut])=>[[[(V&&es(V,i))??"",Ue?.sort??0]],q,!!(ut??Ue?.noMerge)]);if(!j.length)return;let O=j.reverse().map(([V,q,Ue],ut)=>{if(!Ue&&this.config.mergeSelectors)for(let ie=ut+1;ie<C;ie++){let Q=j[ie];if(Q&&!Q[2]&&(V&&Q[0]||V==null&&Q[0]==null)&&Q[1]===q)return V&&Q[0]&&Q[0].push(...V),null}let ft=V?Y(V.sort((ie,Q)=>ie[1]-Q[1]||ie[0]?.localeCompare(Q[0]||"")||0).map(ie=>ie[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${u}`)}{${q}}`:q}).filter(Boolean),M=Array.from(new Set(O)).reverse().join(u);if(!W)return M;let F=W.split(" $$ ");return`${F.join("{")}{${u}${M}${u}${"}".repeat(F.length)}`}).filter(Boolean).join(u);o&&(v=[h[S],v].filter(Boolean).join(u));let E;x&&v&&(E=g(S),E!==null&&(v=`@layer ${E}{${u}${v}${u}}`));let I=a?"":`/* layer: ${S}${E&&E!==S?`, alias: ${E}`:""} */${u}`;return R[S]=v?I+v:""},b=(S=w,v)=>{let E=S.filter(I=>!v?.includes(I));return[x&&E.length>0?`@layer ${E.map(g).filter(De).join(", ")};`:void 0,...E.map(I=>k(I)||"")].filter(Boolean).join(u)};return{get css(){return b()},layers:w,matched:d,getLayers:b,getLayer:k,setLayer:async(S,v)=>{let E=await v(k(S));return R[S]=E,E}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},i=async o=>{let s=!0,[,,a,l]=o;for(;s;){s=!1;let c=o[1];for(let u of this.config.variants){if(!u.multiPass&&l.has(u))continue;let p=await u.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(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(m=>{let h=m.matcher??c,y=[m,...a],w=new Set(l);return w.add(u),[o[0],h,y,w]});return(await Promise.all(d.map(m=>i(m)))).flat()}}o[1]=p.matcher??c,a.unshift(p),l.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await i([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,u)=>(c.order||0)-(u.order||0)).reduceRight((c,u)=>p=>{let d=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(p.selector,d);return(u.handle??rs)({...p,entries:d,selector:h||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},c)},c=>c)({prefix:"",selector:ts(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=$e(r);if(z(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${ue(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let o=z(e)?await this.matchVariants(e):[e],s=async([l,c,u])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:u},d=this.config.rulesStaticMap[c];if(d&&d[1]&&(n||!d[2]?.internal))return this.resolveCSSResult(l,d[1],d,p);for(let m of this.config.rulesDynamic){let[h,y,w]=m;if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let b=T(w.prefix);if(i){let $=T(i);if(!b.some(S=>$.includes(S)))continue}else{let $=b.find(S=>c.startsWith(S));if($==null)continue;R=c.slice($.length)}}let x=R.match(h);if(!x)continue;let g=await y(x,p);if(!g)continue;if(typeof g!="string")if(Symbol.asyncIterator in g){let b=[];for await(let $ of g)$&&b.push($);g=b}else Symbol.iterator in g&&!Array.isArray(g)&&(g=Array.from(g).filter(De));let k=this.resolveCSSResult(l,g,m,p);if(k)return k}},a=(await Promise.all(o.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}resolveCSSResult=(e,r,n,i)=>{let o=ir(r).filter(s=>s.length);if(o.length){this.config.details&&i.rules.push(n),i.generator.activatedRules.add(n);let s=n[2];return o.map(a=>{if(z(a))return[s.__index,a,s];let l=i.variantHandlers,c=s;for(let u of a)u[0]===Z.variants?typeof u[1]=="function"?l=u[1](l)||l:l=[...T(u[1]),...l]:u[0]===Z.parent?l=[{parent:u[1]},...l]:u[0]===Z.selector?l=[{selector:u[1]},...l]:u[0]===Z.layer?l=[{layer:u[1]},...l]:u[0]===Z.sort?c={...c,sort:u[1]}:u[0]===Z.noMerge?c={...c,noMerge:u[1]}:u[0]===Z.body&&(u[0]=ht);return[s.__index,e,a,c,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:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=ue(i);if(!c)return;let{layer:u,sort:p,...d}=e[3]??{},m={...d,layer:s??u,sort:a??p};return[e[0],n,c,o,m,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:nr,o,s,a,l;for(let c of this.config.shortcuts){let u=e;if(c[2]?.prefix){let d=T(c[2].prefix).find(m=>e.startsWith(m));if(d==null)continue;u=e.slice(d.length)}if(sr(c)){if(c[0]===u){o=o||c[2],s=c[1],i(c);break}}else{let p=u.match(c[0]);if(p&&(s=c[1](p,r)),s){o=o||c[2],i(c);break}}}if(s&&(a=Y(T(s).filter(z).map(c=>ar(c.trim()).split(/\s+/g)).flat()),l=T(s).filter(c=>!z(c)).map(c=>({handles:[],value:c}))),!s){let c=z(e)?await this.matchVariants(e):[e];for(let u of c){let[p,d,m]=u;if(p!==d){let h=await this.expandShortcut(d,r,n-1);h&&(a=h[0].filter(z).map(y=>p.replace(d,y)),l=h[0].filter(y=>!z(y)).map(y=>({handles:[...y.handles,...m],value:y.value})))}}}if(!(!a?.length&&!l?.length))return[[await Promise.all(T(a).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),l].flat(2).filter(c=>!!c),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Ke,s=(await Promise.all(Y(n).map(async u=>{let p=z(u)?await this.parseUtil(u,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(u.value),void 0,u.handles]];return!p&&this.config.warn&&cr(`unmatched utility "${u}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,l]=e,c=[];for(let u of s){if(dt(u)){c.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let p=Object.fromEntries(u[2])[Z.shortcutsNoMerge],d=[...u[4],...p?[]:l],{selector:m,entries:h,parent:y,sort:w,noMerge:R,layer:x}=this.applyVariants(u,d,a);o.getFallback(x??i.layer,new Ne).getFallback(m,y,[[],u[0]])[0].push([h,!!(R??u[3]?.noMerge),w??0])}return c.concat(o.flatMap((u,p)=>u.map(([d,m],h,y)=>{let w=(x,g,k)=>{let b=Math.max(...k.map(S=>S[1])),$=k.map(S=>S[0]);return(x?[$.flat(1)]:$).map(S=>{let v=ue(S);if(v)return[m,h,v,y,{...i,noMerge:g,sort:b,layer:p},r,void 0]})};return[[d.filter(([,x])=>x).map(([x,,g])=>[x,g]),!0],[d.filter(([,x])=>!x).map(([x,,g])=>[x,g]),!1]].map(([x,g])=>[...w(!1,g,x.filter(([k])=>k.some(b=>b[0]===Z.shortcutsNoMerge))),...w(!0,g,x.filter(([k])=>k.every(b=>b[0]!==Z.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let i=Array.isArray(n)?n[0]:n;return typeof i=="function"?i(e):z(i)?i===e:i.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function gr(t,e){return await bt.create(t,e)}var br=/\s\$\$\s+/g;function Qo(t){return br.test(t)}function es(t,e){return Qo(t)?t.replace(br,e?` ${e} `:" "):e?`${e} ${t}`:t}var mr=/^\[(.+?)(~?=)"(.*)"\]$/;function ts(t){return mr.test(t)?t.replace(mr,(e,r,n,i)=>`[${Be(r)}${n}"${Be(i)}"]`):`.${Be(t)}`}function rs(t,e){return e(t)}var xt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function xr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let a=tr(o);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,u="",p=c]=c.match(xt)||[];if(p==="~"||n&&p==="true"||!p)return`${u}${l}`;if(i==null){let d=s?.config?.separators?.join("|");d?i=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,d,m]=c.match(i)||[];if(m)return`${d}${u}${l}-${m}`}if(u&&p.match(/^[\d.]+$/)){let d=u.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+p,h=d.join("");return[{matcher:`${u}${l}-${p}`},{matcher:`${h}${l}-${m}`}]}return`${u}${l}-${p}`}}}var ns=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,is=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,yr=/[\s'"`;>]+/;function wr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(ns),i,o=0;for(let x of n){let[,g,k]=x,b=x.index+g.length;if(r>b&&r<=b+k.length){o=b,i=k;break}}if(!i)return null;let s=i.matchAll(is),a=0,l,c;for(let x of s){let[g,k,b]=x,$=o+x.index;if(r>$&&r<=$+g.length){a=$,l=k,c=b?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let u=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!u)return null;let p=u?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let g=u?t.prefix.length:0;return{start:a+g,end:a+l.length,replacement:x}}};let d=a+l.length+2,m=yr.exec(c),h=0,y;for(;m;){let[x]=m;if(r>d+h&&r<=d+h+m.index){y=c.slice(h,h+m.index);break}h+=m.index+x.length,m=yr.exec(c.slice(h))}y===void 0&&(y=c.slice(h));let[,w="",R]=y.match(xt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(x){return x.filter(g=>g.startsWith(`${w}${p}-`)).map(g=>w+g.slice(w.length+p.length+1))},resolveReplacement(x){return{start:h+d,end:h+d+y.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var os=["v-bind:",":"],Sr=/[\s'"`;]+/g,yt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ss=/(\?|(?!\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:i}){return Array.from(i.matchAll(yt)).flatMap(o=>Array.from((o[1]||"").matchAll(ss))).flatMap(([,o,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(o))return[];for(let l of os)if(o.startsWith(l)){o=o.slice(l.length);break}if(!a){if(we(o)&&r!==!1){let l=[`[${o}=""]`];return n&&l.push(`[${o}="true"]`),l}return[]}return["class","className"].includes(o)?a.split(Sr).filter(we):yt.test(a)?(yt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:a.split(Sr).filter(l=>!!l&&l!==":").map(l=>`[${o}~="${l}"]`)})}}}var as=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??wt;let e=[xr(t)],r=[$r(t)],n=[wr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},vr=as;function ls(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Cr(t,e,r,n){for(let i of Array.from(t.matchAll(r)))if(i!=null){let o=i[0],s=`${n}${ls(o)}`;e.set(s,o),t=t.replace(o,s)}return t}function kr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var cs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Rr(t){return t.includes("sourceMappingURL=")?t.replace(cs,""):t}var us=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,fs=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ps=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ds(t){let e=[];for(let i of t.matchAll(fs))i.index!==0&&!/^[\s'"`]/.test(t[i.index-1]??"")||e.push(i[0]);for(let i of t.matchAll(us))e.push(i[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=Cr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(_e).forEach(i=>{i.includes(n)&&(i=kr(i,r)),we(i)&&!ps.test(i)&&e.push(i)}),e}function Tr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return ds(Rr(t))}}}function Er(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let i=new Set(Array.from(r.activatedRules).map(o=>o[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([o])=>i.has(o))}if(n.length>0){let i=ue(n);return t.variablePrefix!=="un-"&&(i=i.replace(/--un-/g,`--${t.variablePrefix}`)),T(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${i}}`).join("")}}}}]}function oe(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function pe(t,e,r,n="(",i=")"){r=r??10;let o=[],s=0;for(;t!=="";){if(++s>r)return;let a=fe(t,n,i,e);if(!a)return;let[l,c]=a;o.push(l),t=c}if(o.length>0)return o}var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var jr=["%alpha","<alpha-value>"],hs=new RegExp(jr.map(t=>_(t)).join("|"),"g");function se(t=""){let e=ms(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(St.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function ve(t){let e=t.alpha??1;return typeof e=="string"&&jr.includes(e)?1:e}function B(t,e){if(typeof t=="string")return t.replace(hs,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,St.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ms(t){if(!t)return;let e=gs(t);if(e!=null||(e=bs(t),e!=null)||(e=xs(t),e!=null)||(e=ws(t),e!=null)||(e=Ss(t),e!=null))return e}function gs(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:{let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:e.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function bs(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=pe(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var ys=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function ws(t){let e=t.match(ys);if(!e)return;let[,r,n]=e,i=Ar(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function Ss(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Ar(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function Ar(t){let e=pe(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=pe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}var $s=44,vs=59,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr=new Uint8Array(64),Cs=new Uint8Array(128);for(let t=0;t<Pr.length;t++){let e=Pr.charCodeAt(t);Mr[t]=e,Cs[e]=t}function Ce(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),t.write(Mr[i])}while(n>0);return e}var Or=1024*16,Vr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},ks=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Or)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===Or&&(this.out+=Vr.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:r}=this;return r>0?e+Vr.decode(t.subarray(0,r)):e}};function zr(t){let e=new ks,r=0,n=0,i=0,o=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(vs),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let u=a[c];c>0&&e.write($s),l=Ce(e,u[0],l),u.length!==1&&(r=Ce(e,u[1],r),n=Ce(e,u[2],n),i=Ce(e,u[3],i),u.length!==4&&(o=Ce(e,u[4],o)))}}return e.flush()}var qe=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))}},Ye=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function Rs(){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 Ts=Rs(),$t=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=zr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Ts(this.toString())}};function Es(t){let e=t.split(`
|
|
3
3
|
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function js(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var As=Object.prototype.toString;function Ps(t){return As.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
|
|
4
4
|
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var Os=/\w/,vt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.length-1,s=r.indexOf(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.5.
|
|
4
|
+
"version": "66.5.9",
|
|
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.5.
|
|
39
|
-
"@unocss/preset-
|
|
40
|
-
"@unocss/preset-
|
|
38
|
+
"@unocss/core": "66.5.9",
|
|
39
|
+
"@unocss/preset-uno": "66.5.9",
|
|
40
|
+
"@unocss/preset-attributify": "66.5.9"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
|
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Wf="shortcuts",Uf="imports",Oo={[Uf]:-200,[Dt]:-100,[Wf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function vn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=J;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var If=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return If.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function $n(e){return e.length===3}function qt(e){return e!=null}function _o(){}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 Qe(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Lo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function Df(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var wn="__virtual_key__";function Le(e){return e==null?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==wn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function kn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return 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]=kn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Wo(e){return F(e[0])}function Uo(e){return F(e[0])}var Jt={};function Nf(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 Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let C=h+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Bo(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Io=new Set;function Do(e){Io.has(e)||(console.warn("[unocss]",e),Io.add(e))}function Go(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(No in t)return t;t={...t},Object.defineProperty(t,No,{value:!0,enumerable:!1});let r=t.shortcuts?Go(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Ho(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Ko(...t)),exclude:ue(Ko(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=vn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Ho))).flat(),(y,T)=>y.name===T.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Oo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(T=>S(T[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,T)=>(y.order||0)-(T.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[y,T]of d.entries()){let w=T[2]??(T[2]={});w.__index=y,Wo(T)?S(w.prefix??"").forEach(A=>{m[A+T[0]]=T}):h.unshift(T)}let x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,T)=>(y.order||0)-(T.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((y,T)=>(y.order||0)-(T.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:vn(c("transformers"),(y,T)=>y.name===T.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>kn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Ko(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.5.7";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(w):R).forEach(R=>{let A=R.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
|
|
1
|
+
"use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Wf="shortcuts",Uf="imports",Oo={[Uf]:-200,[Dt]:-100,[Wf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function vn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=J;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var If=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return If.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function $n(e){return e.length===3}function qt(e){return e!=null}function _o(){}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 Qe(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Lo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function Df(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var wn="__virtual_key__";function Le(e){return e==null?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==wn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function kn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return 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]=kn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Wo(e){return F(e[0])}function Uo(e){return F(e[0])}var Jt={};function Nf(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 Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let C=h+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Bo(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Io=new Set;function Do(e){Io.has(e)||(console.warn("[unocss]",e),Io.add(e))}function Go(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var No="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(No in t)return t;t={...t},Object.defineProperty(t,No,{value:!0,enumerable:!1});let r=t.shortcuts?Go(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Ho(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(Ho))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Ko(...t)),exclude:ue(Ko(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=vn((await Promise.all((r.presets||[]).flatMap(S).flatMap(Ho))).flat(),(y,T)=>y.name===T.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Oo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(T=>S(T[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,T)=>(y.order||0)-(T.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[y,T]of d.entries()){let w=T[2]??(T[2]={});w.__index=y,Wo(T)?S(w.prefix??"").forEach(A=>{m[A+T[0]]=T}):h.unshift(T)}let x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,T)=>(y.order||0)-(T.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(Fo).sort((y,T)=>(y.order||0)-(T.order||0)),shortcuts:Go(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:vn(c("transformers"),(y,T)=>y.name===T.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>kn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Ko(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var qo="66.5.9";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=qo;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(w):R).forEach(R=>{let A=R.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
|
|
2
2
|
`,d=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async w=>{if(g.has(w))return;let R=await this.parseToken(w);if(R!=null){g instanceof Map?g.set(w,{data:R,count:Gt(l)?l.getCount(w):-1}):g.add(w);for(let A of R){let ee=A[3]||"",te=A[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(A),te&&d.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let w={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:A=Dt})=>{d.add(A),R.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(R).map(async A=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Dt)===A).map(async le=>await le.getCSS(w)))).filter(Boolean).join(u);return[A,te]})))})();let k=this.config.sortLayers(Array.from(d).sort((w,R)=>(this.config.layers[w]??0)-(this.config.layers[R]??0)||w.localeCompare(R))),C={},v=this.config.outputToCssLayers,b=w=>{let R=w;return typeof v=="object"&&(R=v.cssLayerName?.(w)),R===null?null:R??w},z=(w=Xe)=>{if(C[w])return C[w];let R=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===w).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,It,,xn])=>[[[(I&&Qf(I,o))??"",It?.sort??0]],fe,!!(xn??It?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,It],xn)=>{if(!It&&this.config.mergeSelectors)for(let Re=xn+1;Re<E;Re++){let ge=V[Re];if(ge&&!ge[2]&&(I&&ge[0]||I==null&&ge[0]==null)&&ge[1]===fe)return I&&ge[0]&&ge[0].push(...I),null}let yn=I?ue(I.sort((Re,ge)=>Re[1]-ge[1]||Re[0]?.localeCompare(ge[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return yn.length?`${yn.join(`,${u}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${u}${D}${u}${"}".repeat(Q.length)}`}).filter(Boolean).join(u);i&&(R=[h[w],R].filter(Boolean).join(u));let A;v&&R&&(A=b(w),A!==null&&(R=`@layer ${A}{${u}${R}${u}}`));let ee=a?"":`/* layer: ${w}${A&&A!==w?`, alias: ${A}`:""} */${u}`;return C[w]=R?ee+R:""},y=(w=k,R)=>{let A=w.filter(ee=>!R?.includes(ee));return[v&&A.length>0?`@layer ${A.map(b).filter(qt).join(", ")};`:void 0,...A.map(ee=>z(ee)||"")].filter(Boolean).join(u)};return{get css(){return y()},layers:k,matched:g,getLayers:y,getLayer:z,setLayer:async(w,R)=>{let A=await R(z(w));return C[w]=A,A}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(F(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=d.map(m=>{let h=m.matcher??l,x=[m,...a],k=new Set(c);return k.add(u),[i[0],h,x,k]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,u)=>(l.order||0)-(u.order||0)).reduceRight((l,u)=>d=>{let g=u.body?.(d.entries)||d.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(d.selector,g);return(u.handle??tu)({...d,entries:g,selector:h||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:u.layer||d.layer,sort:u.sort||d.sort},l)},l=>l)({prefix:"",selector:eu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=Qe(r);if(F(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=F(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,d);for(let m of this.config.rulesDynamic){let[h,x,k]=m;if(k?.internal&&!n)continue;let C=l;if(k?.prefix){let y=S(k.prefix);if(o){let T=S(o);if(!y.some(w=>T.includes(w)))continue}else{let T=y.find(w=>l.startsWith(w));if(T==null)continue;C=l.slice(T.length)}}let v=C.match(h);if(!v)continue;let b=await x(v,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let y=[];for await(let T of b)T&&y.push(T);b=y}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(qt));let z=this.resolveCSSResult(c,b,m,d);if(z)return z}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Lo(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=n[2];return i.map(a=>{if(F(a))return[s.__index,a,s];let c=o.variantHandlers,l=s;for(let u of a)u[0]===pe.variants?typeof u[1]=="function"?c=u[1](c)||c:c=[...S(u[1]),...c]:u[0]===pe.parent?c=[{parent:u[1]},...c]:u[0]===pe.selector?c=[{selector:u[1]},...c]:u[0]===pe.layer?c=[{layer:u[1]},...c]:u[0]===pe.sort?l={...l,sort:u[1]}:u[0]===pe.noMerge?l={...l,noMerge:u[1]}:u[0]===pe.body&&(u[0]=wn);return[s.__index,t,a,l,c]})}};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=Le(o);if(!l)return;let{layer:u,sort:d,...g}=t[3]??{},m={...g,layer:s??u,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:_o,i,s,a,c;for(let l of this.config.shortcuts){let u=t;if(l[2]?.prefix){let g=S(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;u=t.slice(g.length)}if(Uo(l)){if(l[0]===u){i=i||l[2],s=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ue(S(s).filter(F).map(l=>Bo(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let u of l){let[d,g,m]=u;if(d!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(F).map(x=>d.replace(g,x)),c=h[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(S(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xt,s=(await Promise.all(ue(n).map(async u=>{let d=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Qe(u.value),void 0,u.handles]];return!d&&this.config.warn&&Do(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[a,,c]=t,l=[];for(let u of s){if($n(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let d=Object.fromEntries(u[2])[pe.shortcutsNoMerge],g=[...u[4],...d?[]:c],{selector:m,entries:h,parent:x,sort:k,noMerge:C,layer:v}=this.applyVariants(u,g,a);i.getFallback(v??o.layer,new Yt).getFallback(m,x,[[],u[0]])[0].push([h,!!(C??u[3]?.noMerge),k??0])}return l.concat(i.flatMap((u,d)=>u.map(([g,m],h,x)=>{let k=(v,b,z)=>{let y=Math.max(...z.map(w=>w[1])),T=z.map(w=>w[0]);return(v?[T.flat(1)]:T).map(w=>{let R=Le(w);if(R)return[m,h,R,x,{...o,noMerge:b,sort:y,layer:d},r,void 0]})};return[[g.filter(([,v])=>v).map(([v,,b])=>[v,b]),!0],[g.filter(([,v])=>!v).map(([v,,b])=>[v,b]),!1]].map(([v,b])=>[...k(!1,b,v.filter(([z])=>z.some(y=>y[0]===pe.shortcutsNoMerge))),...k(!0,b,v.filter(([z])=>z.every(y=>y[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):F(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):F(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Xo(e,t){return await Cn.create(e,t)}var Zo=/\s\$\$\s+/g;function Jf(e){return Zo.test(e)}function Qf(e,t){return Jf(e)?e.replace(Zo,t?` ${t} `:" "):t?`${t} ${e}`:e}var Yo=/^\[(.+?)(~?=)"(.*)"\]$/;function eu(e){return Yo.test(e)?e.replace(Yo,(t,r,n,o)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(e)}`}function tu(e,t){return t(e)}function ru(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Jo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ru(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function Qo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var nu=/\/\/#\s*sourceMappingURL=.*\n?/g;function ei(e){return e.includes("sourceMappingURL=")?e.replace(nu,""):e}var ou=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,iu=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,su=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function au(e){let t=[];for(let o of e.matchAll(iu))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(ou))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Jo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Nt).forEach(o=>{o.includes(n)&&(o=Qo(o,r)),Mo(o)&&!su.test(o)&&t.push(o)}),t}function ti(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return au(ei(e))}}}function ri(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function de(e,t,r,n){if(e===""||(F(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=de(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var Rn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var ni=["%alpha","<alpha-value>"],cu=new RegExp(ni.map(e=>K(e)).join("|"),"g");function Y(e=""){let t=lu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Rn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ie(e){let t=e.alpha??1;return typeof t=="string"&&ni.includes(t)?1:t}function P(e,t){if(typeof e=="string")return e.replace(cu,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Rn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function lu(e){if(!e)return;let t=fu(e);if(t!=null||(t=uu(e),t!=null)||(t=pu(e),t!=null)||(t=mu(e),t!=null)||(t=hu(e),t!=null))return t}function fu(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function uu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function pu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var du=new RegExp(`^(${Rn.join("|")})\\((.+)\\)$`,"i");function mu(e){let t=e.match(du);if(!t)return;let[,r,n]=t,o=oi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function hu(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=oi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function oi(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var gu=44,bu=59,ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci=new Uint8Array(64),xu=new Uint8Array(128);for(let e=0;e<ii.length;e++){let t=ii.charCodeAt(e);ci[e]=t,xu[t]=e}function et(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(ci[o])}while(n>0);return t}var si=1024*16,ai=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},yu=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(si)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===si&&(this.out+=ai.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+ai.decode(e.subarray(0,r)):t}};function li(e){let t=new yu,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(bu),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(gu),c=et(t,u[0],c),u.length!==1&&(r=et(t,u[1],r),n=et(t,u[2],n),o=et(t,u[3],o),u.length!==4&&(i=et(t,u[4],i)))}}return t.flush()}var Qt=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},er=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function vu(){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 $u=vu(),En=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,"+$u(this.toString())}};function wu(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 ku(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 Su=Object.prototype.toString;function Cu(e){return Su.call(e)==="[object Object]"}function fi(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Ru=/\w/,Tn=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(`
|