@unocss/runtime 0.65.0 → 0.65.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mini.global.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{var Ri=Object.defineProperty;var Ei=(t,e)=>{for(var r in e)Ri(t,r,{get:e[r],enumerable:!0})};var be="default",Ue="preflights",Ti="shortcuts",ji="imports",Jt={[ji]:-200,[Ue]:-100,[Ti]:-10,[be]:0};var _e=/[\\:]?[\s'"`;{}]+/g;function Ai(t){return t.split(_e)}var Ie={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ai(t)}};function O(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function ht(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var xe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}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 xe}function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oe(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var De=oe;var Oi=/^\[(.+?)~?="(.*)"\]$/;var Vi=/[\w\u00A0-\uFFFF%-?]/;function Qt(t){return t.match(Oi)}function ye(t=""){return Vi.test(t)}function er(t){return typeof t=="function"?{match:t}:t}function mt(t){return t.length===3}function Ne(t){return t!=null}function tr(){}var Be=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},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,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ae(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function rr(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ae(e)):[t]:[ae(t)]}function Pi(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function le(t){return t==null?"":Pi(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ge(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ge(n)&&Ge(o)&&Object.keys(o).forEach(s=>{Ge(n[s])&&Ge(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=gt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function we(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"?we(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:we(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}return t}function nr(t){return z(t[0])}function or(t){return z(t[0])}var He={};function Mi(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 zi(t,e=["-",":"],r=5){let n=Mi(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let b=h+f.length+p.length+1,y={length:c.length,items:[]};a.set(h,y);for(let w of[...d.matchAll(/\S+/g)]){let R=b+w.index,x=a.get(R)?.items;x?a.delete(R):x=[{offset:R,length:w[0].length,className:w[0]}];for(let S of x)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(d=>d.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function ir(t,e=["-",":"],r=5){let n=zi(t,e,r);return typeof t=="string"?n.expanded:t}var sr=new Set;function ar(t){sr.has(t)||(console.warn("[unocss]",t),sr.add(t))}function ur(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var lr="_uno_resolved";async function Li(t){let e=typeof t=="function"?await t():await t;if(lr in e)return e;e={...e},Object.defineProperty(e,lr,{value:!0,enumerable:!1});let r=e.shortcuts?ur(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=O(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function fr(t){let e=await Li(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(O).flatMap(fr))).flat();return[e,...r]}function Fi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:H(cr(...e)),exclude:H(cr(...r))}};return o.length&&(a.filesystem=H(o.flat())),i.length&&(a.inline=H(i.flat())),s.length&&(a.plain=H(s.flat())),a}async function bt(t={},e={}){let r=Object.assign({},e,t),n=ht((await Promise.all((r.presets||[]).flatMap(O).flatMap(fr))).flat(),(g,m)=>g.name===m.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Jt,...i.map(g=>g.layers));function l(g){return H(i.flatMap(m=>O(m[g]||[])))}let c=l("extractors"),f=s.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ie),f&&!c.includes(f)&&c.unshift(f),c.sort((g,m)=>(g.order||0)-(m.order||0));let p=l("rules"),d={},h=p.length,b=p.filter(g=>nr(g)?(O(g[2]?.prefix||"").forEach($=>{d[$+g[0]]=g}),!1):!0).reverse(),y=Ui(i.map(g=>g.theme)),w=l("extendTheme");for(let g of w)y=g(y)||y;let R={templates:H(i.flatMap(g=>O(g.autocomplete?.templates))),extractors:i.flatMap(g=>O(g.autocomplete?.extractors)).sort((g,m)=>(g.order||0)-(m.order||0)),shorthands:_i(i.map(g=>g.autocomplete?.shorthands||{}))},x=l("separators");x.length||(x=[":","-"]);let S=l("content"),P=Fi(S),k={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rules:p,rulesSize:h,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(er).sort((g,m)=>(g.order||0)-(m.order||0)),shortcuts:ur(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:x,details:r.details??r.envMode==="dev",content:P,transformers:ht(l("transformers"),(g,m)=>g.name===m.name)};for(let g of i)g?.configResolved?.(k);return k}function Ui(t){return t.map(e=>e?we(e):{}).reduce((e,r)=>gt(e,r),{})}function _i(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function cr(...t){return t.flatMap(Ii)}function Ii(t){return Array.isArray(t)?t:t?[t]:[]}var pr="0.65.0";function dr(){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 ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},xt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=pr;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=dr();static async create(e={},r={}){let n=new t(e,r);return n.config=await bt(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 bt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:ee,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let l of this.config.preprocess)o=l(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this._cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(Ne)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new xe:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(m):$).forEach($=>{c.has($)||c.add($)})}let f=a?"":`
2
- `,p=new Set([be]),d=l?new Map:new Set,h=new Map,b={},y=Array.from(c).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:We(c)?c.getCount(m):-1}):d.add(m);for(let C of $){let _=C[3]||"",I=C[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(C),I&&p.add(I)}}});await Promise.all(y),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:C=Ue})=>{p.add(C),$.add(C)}),b=Object.fromEntries(await Promise.all(Array.from($).map(async C=>{let I=(await Promise.all(this.config.preflights.filter(G=>(G.layer||Ue)===C).map(async G=>await G.getCSS(m)))).filter(Boolean).join(f);return[C,I]})))})();let w=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),R={},x=this.config.outputToCssLayers,S=m=>{let $=m;return typeof x=="object"&&($=x.cssLayerName?.(m)),$===null?null:$??m},P=(m=be)=>{if(R[m])return R[m];let $=Array.from(h).sort((I,G)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(G[0])??0)||I[0]?.localeCompare(G[0]||"")||0).map(([I,G])=>{let v=G.length,T=G.filter(E=>(E[4]?.layer||be)===m).sort((E,F)=>E[0]-F[0]||(E[4]?.sort||0)-(F[4]?.sort||0)||E[5]?.currentSelector?.localeCompare(F[5]?.currentSelector??"")||E[1]?.localeCompare(F[1]||"")||E[2]?.localeCompare(F[2]||"")||0).map(([,E,F,,Fe,,pt])=>[[[(E&&Ni(E,o))??"",Fe?.sort??0]],F,!!(pt??Fe?.noMerge)]);if(!T.length)return;let A=T.reverse().map(([E,F,Fe],pt)=>{if(!Fe&&this.config.mergeSelectors)for(let J=pt+1;J<v;J++){let Y=T[J];if(Y&&!Y[2]&&(E&&Y[0]||E==null&&Y[0]==null)&&Y[1]===F)return E&&Y[0]&&Y[0].push(...E),null}let dt=E?H(E.sort((J,Y)=>J[1]-Y[1]||J[0]?.localeCompare(Y[0]||"")||0).map(J=>J[0]).filter(Boolean)):[];return dt.length?`${dt.join(`,${f}`)}{${F}}`:F}).filter(Boolean).reverse().join(f);if(!I)return A;let M=I.split(" $$ ");return`${M.join("{")}{${f}${A}${f}${"}".repeat(M.length)}`}).filter(Boolean).join(f);i&&($=[b[m],$].filter(Boolean).join(f));let C;x&&$&&(C=S(m),C!==null&&($=`@layer ${C}{${f}${$}${f}}`));let _=a?"":`/* layer: ${m}${C&&C!==m?`, alias: ${C}`:""} */${f}`;return R[m]=$?_+$:""},k=(m=w,$)=>{let C=m.filter(_=>!$?.includes(_));return[x&&C.length>0?`@layer ${C.map(S).filter(Ne).join(", ")};`:void 0,...C.map(_=>P(_)||"")].filter(Boolean).join(f)};return{get css(){return k()},layers:w,matched:d,getLayers:k,getLayer:P,setLayer:async(m,$)=>{let C=await $(P(m));return R[m]=C,C}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let b=h.matcher??c,y=[h,...a],w=new Set(l);return w.add(f),[i[0],b,y,w]});return(await Promise.all(d.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Ki)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Bi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let o=ae(r);if(z(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),l=`${i}{${le(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,o){let i=z(e)?await this.matchVariants(e):[e],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),b=ae(p[1]),y=p[2];return z(b)?[[h,b,y]]:[[h,l,b,y,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[b,y,w]=h;if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let k=O(w.prefix);if(o){let g=O(o);if(!k.some(m=>g.includes(m)))continue}else{let g=k.find(m=>c.startsWith(m));if(g==null)continue;R=c.slice(g.length)}}let x=R.match(b);if(!x)continue;let S=await y(x,r);if(!S)continue;if(r.generator.activatedRules.add(h),this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let k=[];for await(let g of S)g&&k.push(g);S=k}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(Ne));let P=rr(S).filter(k=>k.length);if(P.length){let k=this.config.rules.indexOf(h);return P.map(g=>{if(z(g))return[k,g,w];let m=f,$=w;for(let C of g)C[0]===ee.variants?m=[...O(C[1]),...m]:C[0]===ee.parent?m=[{parent:C[1]},...m]:C[0]===ee.selector?m=[{selector:C[1]},...m]:C[0]===ee.layer?m=[{layer:C[1]},...m]:C[0]===ee.sort&&($={...$,sort:C[1]});return[k,l,g,$,m]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(e,r){if(!e)return;if(mt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=le(o);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:a??p};return[e[0],n,c,i,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:tr,i,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=O(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(or(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=O(s).map(a=>z(a)?ir(a.trim()).split(/\s+/g):a).flat()),!s){let a=z(e)?await this.matchVariants(e):[e];for(let l of a){let[c,f]=l;if(c!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>z(d)?c.replace(f,d):d))}}}if(s)return[(await Promise.all(s.map(async a=>(z(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(a=>!!a),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ke,s=(await Promise.all(H(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ae(f),void 0,[]]];return!p&&this.config.warn&&ar(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(mt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:b,noMerge:y,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new Be).getFallback(p,h,[[],f[0]])[0].push([d,!!(y??f[3]?.noMerge),b??0])}return c.concat(i.flatMap((f,p)=>f.map(([d,h],b,y)=>{let w=(x,S,P)=>{let k=Math.max(...P.map(m=>m[1])),g=P.map(m=>m[0]);return(x?[g.flat(1)]:g).map(m=>{let $=le(m);if($)return[h,b,$,y,{...o,noMerge:S,sort:k,layer:p},r,void 0]})};return[[d.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[d.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...w(!1,S,x.filter(([P])=>P.some(k=>k[0]===ee.shortcutsNoMerge))),...w(!0,S,x.filter(([P])=>P.every(k=>k[0]!==ee.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):z(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function mr(t,e){return await xt.create(t,e)}var gr=/\s\$\$\s+/g;function Di(t){return gr.test(t)}function Ni(t,e){return Di(t)?t.replace(gr,e?` ${e} `:" "):e?`${e} ${t}`:t}var hr=/^\[(.+?)(~?=)"(.*)"\]$/;function Bi(t){return hr.test(t)?t.replace(hr,(e,r,n,o)=>`[${De(r)}${n}"${De(o)}"]`):`.${De(t)}`}function Ki(t,e){return e(t)}var yt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function br(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Qt(i);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(yt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,h]=c.match(o)||[];if(h)return`${d}${f}${l}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,b=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${b}${l}-${h}`}]}return`${f}${l}-${p}`}}}var Gi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Hi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,xr=/[\s'"`;>]+/;function yr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Gi),o,i=0;for(let x of n){let[,S,P]=x,k=x.index+S.length;if(r>k&&r<=k+P.length){i=k,o=P;break}}if(!o)return null;let s=o.matchAll(Hi),a=0,l,c;for(let x of s){let[S,P,k]=x,g=i+x.index;if(r>g&&r<=g+S.length){a=g,l=P,c=k?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let S=f?t.prefix.length:0;return{start:a+S,end:a+l.length,replacement:x}}};let d=a+l.length+2,h=xr.exec(c),b=0,y;for(;h;){let[x]=h;if(r>d+b&&r<=d+b+h.index){y=c.slice(b,b+h.index);break}b+=h.index+x.length,h=xr.exec(c.slice(b))}y===void 0&&(y=c.slice(b));let[,w="",R]=y.match(yt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(x){return x.filter(S=>S.startsWith(`${w}${p}-`)).map(S=>w+S.slice(w.length+p.length+1))},resolveReplacement(x){return{start:b+d,end:b+d+y.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var qi=["v-bind:",":"],wr=/[\s'"`;]+/g,wt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Yi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,$t=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??$t,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(wt)).flatMap(i=>Array.from((i[1]||"").matchAll(Yi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(i))return[];for(let l of qi)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(ye(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(wr).filter(ye):wt.test(a)?(wt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(wr).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Xi=(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??$t;let e=[br(t)],r=[$r(t)],n=[yr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Sr=Xi;function Zi(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function vr(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Zi(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function Cr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Ji=/\/\/#\s*sourceMappingURL=.*\n?/g;function kr(t){return t.includes("sourceMappingURL=")?t.replace(Ji,""):t}var Qi=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,es=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ts=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function rs(t){let e=[];for(let o of t.matchAll(es))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(Qi))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=vr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(_e).forEach(o=>{o.includes(n)&&(o=Cr(o,r)),ye(o)&&!ts.test(o)&&e.push(o)}),e}function Rr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return rs(kr(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 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 t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),O(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ce(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ue(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function fe(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=ue(t,"(",")",e);if(!i)return;let[s,a]=i;n.push(s),t=a}if(n.length>0)return n}var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Tr=["%alpha","<alpha-value>"],ns=new RegExp(Tr.map(t=>Q(t)).join("|"));function te(t=""){let e=os(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(St.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 $e(t){let e=t.alpha??1;return typeof e=="string"&&Tr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(ns,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,St.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function os(t){if(!t)return;let e=is(t);if(e!=null||(e=ss(t),e!=null)||(e=as(t),e!=null)||(e=cs(t),e!=null)||(e=us(t),e!=null))return e}function is(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ss(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function as(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=fe(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 ls=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function cs(t){let e=t.match(ls);if(!e)return;let[,r,n]=e,o=jr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function us(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=jr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function jr(t){let e=fe(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=fe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ar(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr=new Uint8Array(64),fs=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);Mr[t]=e,fs[e]=t}function Se(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Mr[o])}while(n>0);return e}var Vr=1024*16,Pr=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}},vt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Vr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Vr&&(this.out+=Pr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Pr.decode(e.subarray(0,n)):r}};function zr(t){let e=new vt,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&e.write(44),l=Se(e,f[0],l),f.length!==1&&(r=Se(e,f[1],r),n=Se(e,f[2],n),o=Se(e,f[3],o),f.length!==4&&(i=Se(e,f[4],i)))}}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),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function ps(){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 ds=ps(),Ct=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)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ds(this.toString())}};function hs(t){let e=t.split(`
1
+ "use strict";(()=>{var Ri=Object.defineProperty;var Ei=(t,e)=>{for(var r in e)Ri(t,r,{get:e[r],enumerable:!0})};var be="default",Ue="preflights",Ti="shortcuts",ji="imports",Jt={[ji]:-200,[Ue]:-100,[Ti]:-10,[be]:0};var _e=/[\\:]?[\s'"`;{}]+/g;function Ai(t){return t.split(_e)}var Ie={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ai(t)}};function O(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function ht(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var xe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}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 xe}function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oe(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var De=oe;var Oi=/^\[(.+?)~?="(.*)"\]$/;var Vi=/[\w\u00A0-\uFFFF%-?]/;function Qt(t){return t.match(Oi)}function ye(t=""){return Vi.test(t)}function er(t){return typeof t=="function"?{match:t}:t}function mt(t){return t.length===3}function Ne(t){return t!=null}function tr(){}var Be=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},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,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function ae(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function rr(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ae(e)):[t]:[ae(t)]}function Pi(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function le(t){return t==null?"":Pi(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ge(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ge(n)&&Ge(o)&&Object.keys(o).forEach(s=>{Ge(n[s])&&Ge(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=gt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function we(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"?we(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:we(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}return t}function nr(t){return z(t[0])}function or(t){return z(t[0])}var He={};function Mi(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 zi(t,e=["-",":"],r=5){let n=Mi(e),o,i=t.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let b=h+f.length+p.length+1,y={length:c.length,items:[]};a.set(h,y);for(let w of[...d.matchAll(/\S+/g)]){let R=b+w.index,x=a.get(R)?.items;x?a.delete(R):x=[{offset:R,length:w[0].length,className:w[0]}];for(let S of x)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),y.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(d=>d.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function ir(t,e=["-",":"],r=5){let n=zi(t,e,r);return typeof t=="string"?n.expanded:t}var sr=new Set;function ar(t){sr.has(t)||(console.warn("[unocss]",t),sr.add(t))}function ur(t){return O(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var lr="_uno_resolved";async function Li(t){let e=typeof t=="function"?await t():await t;if(lr in e)return e;e={...e},Object.defineProperty(e,lr,{value:!0,enumerable:!1});let r=e.shortcuts?ur(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=O(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function fr(t){let e=await Li(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(O).flatMap(fr))).flat();return[e,...r]}function Fi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:H(cr(...e)),exclude:H(cr(...r))}};return o.length&&(a.filesystem=H(o.flat())),i.length&&(a.inline=H(i.flat())),s.length&&(a.plain=H(s.flat())),a}async function bt(t={},e={}){let r=Object.assign({},e,t),n=ht((await Promise.all((r.presets||[]).flatMap(O).flatMap(fr))).flat(),(g,m)=>g.name===m.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Jt,...i.map(g=>g.layers));function l(g){return H(i.flatMap(m=>O(m[g]||[])))}let c=l("extractors"),f=s.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ie),f&&!c.includes(f)&&c.unshift(f),c.sort((g,m)=>(g.order||0)-(m.order||0));let p=l("rules"),d={},h=p.length,b=p.filter(g=>nr(g)?(O(g[2]?.prefix||"").forEach($=>{d[$+g[0]]=g}),!1):!0).reverse(),y=Ui(i.map(g=>g.theme)),w=l("extendTheme");for(let g of w)y=g(y)||y;let R={templates:H(i.flatMap(g=>O(g.autocomplete?.templates))),extractors:i.flatMap(g=>O(g.autocomplete?.extractors)).sort((g,m)=>(g.order||0)-(m.order||0)),shorthands:_i(i.map(g=>g.autocomplete?.shorthands||{}))},x=l("separators");x.length||(x=[":","-"]);let S=l("content"),P=Fi(S),k={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rules:p,rulesSize:h,rulesDynamic:b,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:R,variants:l("variants").map(er).sort((g,m)=>(g.order||0)-(m.order||0)),shortcuts:ur(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:x,details:r.details??r.envMode==="dev",content:P,transformers:ht(l("transformers"),(g,m)=>g.name===m.name)};for(let g of i)g?.configResolved?.(k);return k}function Ui(t){return t.map(e=>e?we(e):{}).reduce((e,r)=>gt(e,r),{})}function _i(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function cr(...t){return t.flatMap(Ii)}function Ii(t){return Array.isArray(t)?t:t?[t]:[]}var pr="0.65.1";function dr(){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 ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},xt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=pr;_cache=new Map;config=void 0;blocked=new Set;parentOrders=new Map;activatedRules=new Set;events=dr();static async create(e={},r={}){let n=new t(e,r);return n.config=await bt(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 bt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(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:ee,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let o=e;for(let l of this.config.preprocess)o=l(e);if(this.isBlocked(o)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this._cache.set(n,null);return}let s=async l=>{let c=this.makeContext(e,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(Ne)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this._cache.set(n,a),a;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=z(e)?await this.applyExtractors(e,n,l?new xe:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(m):$).forEach($=>{c.has($)||c.add($)})}let f=a?"":`
2
+ `,p=new Set([be]),d=l?new Map:new Set,h=new Map,b={},y=Array.from(c).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:We(c)?c.getCount(m):-1}):d.add(m);for(let C of $){let _=C[3]||"",I=C[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(C),I&&p.add(I)}}});await Promise.all(y),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:C=Ue})=>{p.add(C),$.add(C)}),b=Object.fromEntries(await Promise.all(Array.from($).map(async C=>{let I=(await Promise.all(this.config.preflights.filter(G=>(G.layer||Ue)===C).map(async G=>await G.getCSS(m)))).filter(Boolean).join(f);return[C,I]})))})();let w=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),R={},x=this.config.outputToCssLayers,S=m=>{let $=m;return typeof x=="object"&&($=x.cssLayerName?.(m)),$===null?null:$??m},P=(m=be)=>{if(R[m])return R[m];let $=Array.from(h).sort((I,G)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(G[0])??0)||I[0]?.localeCompare(G[0]||"")||0).map(([I,G])=>{let v=G.length,T=G.filter(E=>(E[4]?.layer||be)===m).sort((E,F)=>E[0]-F[0]||(E[4]?.sort||0)-(F[4]?.sort||0)||E[5]?.currentSelector?.localeCompare(F[5]?.currentSelector??"")||E[1]?.localeCompare(F[1]||"")||E[2]?.localeCompare(F[2]||"")||0).map(([,E,F,,Fe,,pt])=>[[[(E&&Ni(E,o))??"",Fe?.sort??0]],F,!!(pt??Fe?.noMerge)]);if(!T.length)return;let A=T.reverse().map(([E,F,Fe],pt)=>{if(!Fe&&this.config.mergeSelectors)for(let J=pt+1;J<v;J++){let Y=T[J];if(Y&&!Y[2]&&(E&&Y[0]||E==null&&Y[0]==null)&&Y[1]===F)return E&&Y[0]&&Y[0].push(...E),null}let dt=E?H(E.sort((J,Y)=>J[1]-Y[1]||J[0]?.localeCompare(Y[0]||"")||0).map(J=>J[0]).filter(Boolean)):[];return dt.length?`${dt.join(`,${f}`)}{${F}}`:F}).filter(Boolean).reverse().join(f);if(!I)return A;let M=I.split(" $$ ");return`${M.join("{")}{${f}${A}${f}${"}".repeat(M.length)}`}).filter(Boolean).join(f);i&&($=[b[m],$].filter(Boolean).join(f));let C;x&&$&&(C=S(m),C!==null&&($=`@layer ${C}{${f}${$}${f}}`));let _=a?"":`/* layer: ${m}${C&&C!==m?`, alias: ${C}`:""} */${f}`;return R[m]=$?_+$:""},k=(m=w,$)=>{let C=m.filter(_=>!$?.includes(_));return[x&&C.length>0?`@layer ${C.map(S).filter(Ne).join(", ")};`:void 0,...C.map(_=>P(_)||"")].filter(Boolean).join(f)};return{get css(){return k()},layers:w,matched:d,getLayers:k,getLayer:P,setLayer:async(m,$)=>{let C=await $(P(m));return R[m]=C,C}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let b=h.matcher??c,y=[h,...a],w=new Set(l);return w.add(f),[i[0],b,y,w]});return(await Promise.all(d.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Ki)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Bi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let o=ae(r);if(z(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),l=`${i}{${le(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,o){let i=z(e)?await this.matchVariants(e):[e],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){r.generator.activatedRules.add(p),this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),b=ae(p[1]),y=p[2];return z(b)?[[h,b,y]]:[[h,l,b,y,f]]}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[b,y,w]=h;if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let k=O(w.prefix);if(o){let g=O(o);if(!k.some(m=>g.includes(m)))continue}else{let g=k.find(m=>c.startsWith(m));if(g==null)continue;R=c.slice(g.length)}}let x=R.match(b);if(!x)continue;let S=await y(x,r);if(!S)continue;if(r.generator.activatedRules.add(h),this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let k=[];for await(let g of S)g&&k.push(g);S=k}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(Ne));let P=rr(S).filter(k=>k.length);if(P.length){let k=this.config.rules.indexOf(h);return P.map(g=>{if(z(g))return[k,g,w];let m=f,$=w;for(let C of g)C[0]===ee.variants?m=[...O(C[1]),...m]:C[0]===ee.parent?m=[{parent:C[1]},...m]:C[0]===ee.selector?m=[{selector:C[1]},...m]:C[0]===ee.layer?m=[{layer:C[1]},...m]:C[0]===ee.sort&&($={...$,sort:C[1]});return[k,l,g,$,m]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(e,r){if(!e)return;if(mt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=le(o);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:a??p};return[e[0],n,c,i,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:tr,i,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=O(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(or(a)){if(a[0]===l){i=i||a[2],s=a[1],o(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}}if(s&&(s=O(s).map(a=>z(a)?ir(a.trim()).split(/\s+/g):a).flat()),!s){let a=z(e)?await this.matchVariants(e):[e];for(let l of a){let[c,f]=l;if(c!==f){let p=await this.expandShortcut(f,r,n-1);p&&(s=p[0].map(d=>z(d)?c.replace(f,d):d))}}}if(s)return[(await Promise.all(s.map(async a=>(z(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(a=>!!a),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ke,s=(await Promise.all(H(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ae(f),void 0,[]]];return!p&&this.config.warn&&ar(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(mt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:b,noMerge:y,layer:w}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(w??o.layer,new Be).getFallback(p,h,[[],f[0]])[0].push([d,!!(y??f[3]?.noMerge),b??0])}return c.concat(i.flatMap((f,p)=>f.map(([d,h],b,y)=>{let w=(x,S,P)=>{let k=Math.max(...P.map(m=>m[1])),g=P.map(m=>m[0]);return(x?[g.flat(1)]:g).map(m=>{let $=le(m);if($)return[h,b,$,y,{...o,noMerge:S,sort:k,layer:p},r,void 0]})};return[[d.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[d.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...w(!1,S,x.filter(([P])=>P.some(k=>k[0]===ee.shortcutsNoMerge))),...w(!0,S,x.filter(([P])=>P.every(k=>k[0]!==ee.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):z(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function mr(t,e){return await xt.create(t,e)}var gr=/\s\$\$\s+/g;function Di(t){return gr.test(t)}function Ni(t,e){return Di(t)?t.replace(gr,e?` ${e} `:" "):e?`${e} ${t}`:t}var hr=/^\[(.+?)(~?=)"(.*)"\]$/;function Bi(t){return hr.test(t)?t.replace(hr,(e,r,n,o)=>`[${De(r)}${n}"${De(o)}"]`):`.${De(t)}`}function Ki(t,e){return e(t)}var yt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function br(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Qt(i);if(!a)return;let l=a[1];if(l.startsWith(e))l=l.slice(e.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(yt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,h]=c.match(o)||[];if(h)return`${d}${f}${l}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,b=d.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${b}${l}-${h}`}]}return`${f}${l}-${p}`}}}var Gi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Hi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,xr=/[\s'"`;>]+/;function yr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Gi),o,i=0;for(let x of n){let[,S,P]=x,k=x.index+S.length;if(r>k&&r<=k+P.length){i=k,o=P;break}}if(!o)return null;let s=o.matchAll(Hi),a=0,l,c;for(let x of s){let[S,P,k]=x,g=i+x.index;if(r>g&&r<=g+S.length){a=g,l=P,c=k?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!t?.prefix&&l.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?l.slice(t.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(x){let S=f?t.prefix.length:0;return{start:a+S,end:a+l.length,replacement:x}}};let d=a+l.length+2,h=xr.exec(c),b=0,y;for(;h;){let[x]=h;if(r>d+b&&r<=d+b+h.index){y=c.slice(b,b+h.index);break}b+=h.index+x.length,h=xr.exec(c.slice(b))}y===void 0&&(y=c.slice(b));let[,w="",R]=y.match(yt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(x){return x.filter(S=>S.startsWith(`${w}${p}-`)).map(S=>w+S.slice(w.length+p.length+1))},resolveReplacement(x){return{start:b+d,end:b+d+y.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var qi=["v-bind:",":"],wr=/[\s'"`;]+/g,wt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Yi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,$t=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??$t,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(wt)).flatMap(i=>Array.from((i[1]||"").matchAll(Yi))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(e.includes(i))return[];for(let l of qi)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(ye(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(wr).filter(ye):wt.test(a)?(wt.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(wr).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var Xi=(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??$t;let e=[br(t)],r=[$r(t)],n=[yr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},Sr=Xi;function Zi(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function vr(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${Zi(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function Cr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var Ji=/\/\/#\s*sourceMappingURL=.*\n?/g;function kr(t){return t.includes("sourceMappingURL=")?t.replace(Ji,""):t}var Qi=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,es=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ts=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function rs(t){let e=[];for(let o of t.matchAll(es))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(Qi))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=vr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(_e).forEach(o=>{o.includes(n)&&(o=Cr(o,r)),ye(o)&&!ts.test(o)&&e.push(o)}),e}function Rr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return rs(kr(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 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 t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),O(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ce(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ue(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function fe(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=ue(t,"(",")",e);if(!i)return;let[s,a]=i;n.push(s),t=a}if(n.length>0)return n}var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Tr=["%alpha","<alpha-value>"],ns=new RegExp(Tr.map(t=>Q(t)).join("|"));function te(t=""){let e=os(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(St.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 $e(t){let e=t.alpha??1;return typeof e=="string"&&Tr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(ns,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,St.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function os(t){if(!t)return;let e=is(t);if(e!=null||(e=ss(t),e!=null)||(e=as(t),e!=null)||(e=cs(t),e!=null)||(e=us(t),e!=null))return e}function is(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ss(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function as(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=fe(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 ls=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function cs(t){let e=t.match(ls);if(!e)return;let[,r,n]=e,o=jr(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function us(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=jr(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function jr(t){let e=fe(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=fe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function Ar(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mr=new Uint8Array(64),fs=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);Mr[t]=e,fs[e]=t}function Se(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Mr[o])}while(n>0);return e}var Vr=1024*16,Pr=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}},vt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Vr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Vr&&(this.out+=Pr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Pr.decode(e.subarray(0,n)):r}};function zr(t){let e=new vt,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let a=t[s];if(s>0&&e.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&e.write(44),l=Se(e,f[0],l),f.length!==1&&(r=Se(e,f[1],r),n=Se(e,f[2],n),o=Se(e,f[3],o),f.length!==4&&(i=Se(e,f[4],i)))}}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),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function ps(){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 ds=ps(),Ct=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,"+ds(this.toString())}};function hs(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function ms(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var gs=Object.prototype.toString;function bs(t){return gs.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var xs=/\w/,kt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
5
5
  `,0),a=-1;for(;s>=0&&i>s;){let c=[this.generatedCodeColumn,e,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "0.65.0",
4
+ "version": "0.65.1",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.65.0",
39
- "@unocss/preset-attributify": "0.65.0",
40
- "@unocss/preset-uno": "0.65.0"
38
+ "@unocss/preset-uno": "0.65.1",
39
+ "@unocss/preset-attributify": "0.65.1",
40
+ "@unocss/core": "0.65.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
@@ -2,4 +2,4 @@
2
2
  `).join(`
3
3
  `+i),e.push(r+"m+"+X.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=$t()+o+" "+e[0]}function $t(){return w.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Lt(...e){return process.stderr.write(Z.formatWithOptions(w.inspectOpts,...e)+`
4
4
  `)}function Rt(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function At(){return process.env.DEBUG}function _t(e){e.inspectOpts={};let o=Object.keys(w.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=w.inspectOpts[o[t]]}X.exports=ce()(w);var{formatters:ze}=X.exports;ze.o=function(e){return this.inspectOpts.colors=this.useColors,Z.inspect(e,this.inspectOpts).split(`
5
- `).map(o=>o.trim()).join(" ")};ze.O=function(e){return this.inspectOpts.colors=this.useColors,Z.inspect(e,this.inspectOpts)}});var D=N((ho,ue)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ue.exports=Ae():ue.exports=De()});async function fe(e,o,t,n){let r;Pt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await W(n?.customizations?.trimCustomSvg===!0?je(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var Me,Pt,Ue=F(()=>{"use strict";Me=T(D(),1);se();ke();Pt=(0,Me.default)("@iconify-loader:custom")});async function Q(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=Fe(e,c),r){Nt(`${o}:${c}`);let l={...q};typeof i=="function"&&(r=Object.assign({},r),l=i(l,r,`${o}:${c}`)??l);let{attributes:{width:m,height:h,...s},body:u}=Te(r,l),p=n?.scale;return await W(`<svg >${u}</svg>`,o,c,n,()=>({...s}),x=>{let I=(f,a)=>{let y=x[f],b;if(!z(y)){if(y)return;typeof p=="number"?p&&(b=E(a??"1em",p)):b=a}b?x[f]=b:delete x[f]};I("width",m),I("height",h)})}}var Ge,Nt,pe=F(()=>{"use strict";re();ve();B();se();Ge=T(D(),1);te();Nt=(0,Ge.default)("@iconify-loader:icon")});var Eo,M,me=F(()=>{"use strict";Ue();pe();Eo=T(D(),1),M=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await fe(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await Q(r,e,i,t)}}}else return await fe(n,e,o,t)}});function Ee(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ne(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ee(o)}me();var ko=T(D(),1);var Ve=new Set;function qe(e){Ve.has(e)||(console.warn("[unocss]",e),Ve.add(e))}me();pe();var de=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","proicons","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var Dt=3;function We(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,collections:c,extraProperties:l={},customizations:m={},autoInstall:h=!1,collectionsNodeResolvePath:s,layer:u="icons",unit:p,processor:x}=o,I=Mt(),f={addXmlNs:!0,scale:t,customCollections:c,autoInstall:h,cwd:s,warn:void 0,customizations:{...m,additionalProps:{...l},trimCustomSvg:!0,async iconCustomizer(y,b,C){await m.iconCustomizer?.(y,b,C),p&&(C.width||(C.width=`${t}${p}`),C.height||(C.height=`${t}${p}`))}}},a;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:ne,parseIconWithLoader:Be},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async y=>{let[b,C,g=n]=y;a=a||await e(o);let U={},O=await Be(C,a,{...f,usedProps:U});if(!O){i&&!I.isESLint&&qe(`failed to load icon "${b}"`);return}let k,_=`url("data:image/svg+xml;utf8,${ne(O.svg)}")`;return g==="auto"&&(g=O.svg.includes("currentColor")?"mask":"bg"),g==="mask"?k={"--un-icon":_,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...U}:k={background:`${_} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...U},x?.(k,{...O,icon:O.name,mode:g}),k},{layer:u,prefix:r}]]}}}function Ke(e,o){let t=new Map;function n(r){if(de.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let l=await M(r,i,c);if(l)return l;let m=await n(r);if(m){let h=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];l=await Q(m,r,h,c)}return l}}function Mt(){let e=typeof process<"u"&&process.stdout&&!process.versions.deno,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}async function Be(e,o,t={}){let n="",r="",i,c=[...de,...Object.keys(t.customCollections||{})];if(e.includes(":")){if([n,r]=e.split(":"),!c.includes(n))return;i=await o(n,r,t)}else{let l=e.split(/-/g);for(let m=Dt;m>=1&&(n=l.slice(0,m).join("-"),!(!!c.includes(n)&&(r=l.slice(m).join("-"),i=await o(n,r,t),i)));m--);}if(i)return{collection:n,name:r,svg:i}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=We(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Ke(t,n):M});return{presetIcons:o=>e(o)}})());})();
5
+ `).map(o=>o.trim()).join(" ")};ze.O=function(e){return this.inspectOpts.colors=this.useColors,Z.inspect(e,this.inspectOpts)}});var D=N((ho,ue)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ue.exports=Ae():ue.exports=De()});async function fe(e,o,t,n){let r;Pt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await W(n?.customizations?.trimCustomSvg===!0?je(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var Me,Pt,Ue=F(()=>{"use strict";Me=T(D(),1);se();ke();Pt=(0,Me.default)("@iconify-loader:custom")});async function Q(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=Fe(e,c),r){Nt(`${o}:${c}`);let l={...q};typeof i=="function"&&(r=Object.assign({},r),l=i(l,r,`${o}:${c}`)??l);let{attributes:{width:m,height:h,...s},body:u}=Te(r,l),p=n?.scale;return await W(`<svg >${u}</svg>`,o,c,n,()=>({...s}),x=>{let I=(f,a)=>{let y=x[f],b;if(!z(y)){if(y)return;typeof p=="number"?p&&(b=E(a??"1em",p)):b=a}b?x[f]=b:delete x[f]};I("width",m),I("height",h)})}}var Ge,Nt,pe=F(()=>{"use strict";re();ve();B();se();Ge=T(D(),1);te();Nt=(0,Ge.default)("@iconify-loader:icon")});var Eo,M,me=F(()=>{"use strict";Ue();pe();Eo=T(D(),1),M=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await fe(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await Q(r,e,i,t)}}}else return await fe(n,e,o,t)}});function Ee(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ne(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ee(o)}me();var ko=T(D(),1);var Ve=new Set;function qe(e){Ve.has(e)||(console.warn("[unocss]",e),Ve.add(e))}me();pe();var de=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var Dt=3;function We(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,collections:c,extraProperties:l={},customizations:m={},autoInstall:h=!1,collectionsNodeResolvePath:s,layer:u="icons",unit:p,processor:x}=o,I=Mt(),f={addXmlNs:!0,scale:t,customCollections:c,autoInstall:h,cwd:s,warn:void 0,customizations:{...m,additionalProps:{...l},trimCustomSvg:!0,async iconCustomizer(y,b,C){await m.iconCustomizer?.(y,b,C),p&&(C.width||(C.width=`${t}${p}`),C.height||(C.height=`${t}${p}`))}}},a;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:ne,parseIconWithLoader:Be},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async y=>{let[b,C,g=n]=y;a=a||await e(o);let U={},O=await Be(C,a,{...f,usedProps:U});if(!O){i&&!I.isESLint&&qe(`failed to load icon "${b}"`);return}let k,_=`url("data:image/svg+xml;utf8,${ne(O.svg)}")`;return g==="auto"&&(g=O.svg.includes("currentColor")?"mask":"bg"),g==="mask"?k={"--un-icon":_,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...U}:k={background:`${_} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...U},x?.(k,{...O,icon:O.name,mode:g}),k},{layer:u,prefix:r}]]}}}function Ke(e,o){let t=new Map;function n(r){if(de.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let l=await M(r,i,c);if(l)return l;let m=await n(r);if(m){let h=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];l=await Q(m,r,h,c)}return l}}function Mt(){let e=typeof process<"u"&&process.stdout&&!process.versions.deno,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}async function Be(e,o,t={}){let n="",r="",i,c=[...de,...Object.keys(t.customCollections||{})];if(e.includes(":")){if([n,r]=e.split(":"),!c.includes(n))return;i=await o(n,r,t)}else{let l=e.split(/-/g);for(let m=Dt;m>=1&&(n=l.slice(0,m).join("-"),!(!!c.includes(n)&&(r=l.slice(m).join("-"),i=await o(n,r,t),i)));m--);}if(i)return{collection:n,name:r,svg:i}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=We(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Ke(t,n):M});return{presetIcons:o=>e(o)}})());})();
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var io=Object.defineProperty;var so=(e,t)=>{for(var r in t)io(e,r,{get:t[r],enumerable:!0})};var Te=/[\\:]?[\s'"`;{}]+/g;function L(e=[]){return Array.isArray(e)?e:[e]}function ot(e){return typeof e=="string"}function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(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 lo=/[\w\u00A0-\uFFFF%-?]/;function it(e=""){return lo.test(e)}function co(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function st(e){return e==null?"":co(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function uo(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 at(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${uo(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function lt(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var fo=/\/\/#\s*sourceMappingURL=.*\n?/g;function ct(e){return e.includes("sourceMappingURL=")?e.replace(fo,""):e}var po=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,ho=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,mo=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function go(e){let t=[];for(let o of e.matchAll(ho))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(po))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=at(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Te).forEach(o=>{o.includes(n)&&(o=lt(o,r)),it(o)&&!mo.test(o)&&t.push(o)}),t}function ut(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return go(ct(e))}}}function ft(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=st(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),L(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function _(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(e[l]){case t:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,l+1),e.slice(l+1),e.slice(0,s)];break}}function N(e,t,r,n){if(e===""||(ot(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 l of n){let c=l.length;if(c&&l===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 U(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=N(e,"(",")",t);if(!i)return;let[s,l]=i;n.push(s),e=l}if(n.length>0)return n}var je=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],pt=["%alpha","<alpha-value>"],bo=new RegExp(pt.map(e=>z(e)).join("|"));function A(e=""){let t=xo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(je.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 G(e){let t=e.alpha??1;return typeof t=="string"&&pt.includes(t)?1:t}function $(e,t){if(typeof e=="string")return e.replace(bo,`${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}`,je.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function xo(e){if(!e)return;let t=yo(e);if(t!=null||(t=wo(e),t!=null)||(t=$o(e),t!=null)||(t=vo(e),t!=null)||(t=ko(e),t!=null))return t}function yo(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function wo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function $o(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=U(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 So=new RegExp(`^(${je.join("|")})\\((.+)\\)$`,"i");function vo(e){let t=e.match(So);if(!t)return;let[,r,n]=t,o=dt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function ko(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=dt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function dt(e){let t=U(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=U(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function ht(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xt=new Uint8Array(64),Co=new Uint8Array(128);for(let e=0;e<mt.length;e++){let t=mt.charCodeAt(e);xt[e]=t,Co[t]=e}function Y(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(xt[o])}while(n>0);return t}var gt=1024*16,bt=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}},Oe=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gt)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===gt&&(this.out+=bt.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+bt.decode(t.subarray(0,n)):r}};function yt(e){let t=new Oe,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let l=e[s];if(s>0&&t.write(59),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let p=l[u];u>0&&t.write(44),c=Y(t,p[0],c),p.length!==1&&(r=Y(t,p[1],r),n=Y(t,p[2],n),o=Y(t,p[3],o),p.length!==4&&(i=Y(t,p[4],i)))}}return t.flush()}var ue=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))}},fe=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 Ro(){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 Eo=Ro(),ze=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yt(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Eo(this.toString())}};function To(e){let t=e.split(`
1
+ "use strict";(()=>{var io=Object.defineProperty;var so=(e,t)=>{for(var r in t)io(e,r,{get:t[r],enumerable:!0})};var Te=/[\\:]?[\s'"`;{}]+/g;function L(e=[]){return Array.isArray(e)?e:[e]}function ot(e){return typeof e=="string"}function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(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 lo=/[\w\u00A0-\uFFFF%-?]/;function it(e=""){return lo.test(e)}function co(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function st(e){return e==null?"":co(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function uo(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 at(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${uo(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function lt(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var fo=/\/\/#\s*sourceMappingURL=.*\n?/g;function ct(e){return e.includes("sourceMappingURL=")?e.replace(fo,""):e}var po=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,ho=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,mo=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function go(e){let t=[];for(let o of e.matchAll(ho))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(po))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=at(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Te).forEach(o=>{o.includes(n)&&(o=lt(o,r)),it(o)&&!mo.test(o)&&t.push(o)}),t}function ut(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return go(ct(e))}}}function ft(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=st(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),L(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function _(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(e[l]){case t:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,l+1),e.slice(l+1),e.slice(0,s)];break}}function N(e,t,r,n){if(e===""||(ot(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 l of n){let c=l.length;if(c&&l===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 U(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=N(e,"(",")",t);if(!i)return;let[s,l]=i;n.push(s),e=l}if(n.length>0)return n}var je=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],pt=["%alpha","<alpha-value>"],bo=new RegExp(pt.map(e=>z(e)).join("|"));function A(e=""){let t=xo(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(je.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 G(e){let t=e.alpha??1;return typeof t=="string"&&pt.includes(t)?1:t}function $(e,t){if(typeof e=="string")return e.replace(bo,`${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}`,je.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function xo(e){if(!e)return;let t=yo(e);if(t!=null||(t=wo(e),t!=null)||(t=$o(e),t!=null)||(t=vo(e),t!=null)||(t=ko(e),t!=null))return t}function yo(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function wo(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function $o(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=U(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 So=new RegExp(`^(${je.join("|")})\\((.+)\\)$`,"i");function vo(e){let t=e.match(So);if(!t)return;let[,r,n]=t,o=dt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function ko(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=dt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function dt(e){let t=U(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=U(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function ht(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xt=new Uint8Array(64),Co=new Uint8Array(128);for(let e=0;e<mt.length;e++){let t=mt.charCodeAt(e);xt[e]=t,Co[t]=e}function Y(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(xt[o])}while(n>0);return t}var gt=1024*16,bt=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}},Oe=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gt)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===gt&&(this.out+=bt.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+bt.decode(t.subarray(0,n)):r}};function yt(e){let t=new Oe,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let l=e[s];if(s>0&&t.write(59),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){let p=l[u];u>0&&t.write(44),c=Y(t,p[0],c),p.length!==1&&(r=Y(t,p[1],r),n=Y(t,p[2],n),o=Y(t,p[3],o),p.length!==4&&(i=Y(t,p[4],i)))}}return t.flush()}var ue=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))}},fe=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 Ro(){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 Eo=Ro(),ze=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yt(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,"+Eo(this.toString())}};function To(e){let t=e.split(`
2
2
  `),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 l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function jo(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 Oo=Object.prototype.toString;function zo(e){return Oo.call(e)==="[object Object]"}function wt(e){let t=e.split(`
3
3
  `),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 u=i+s>>1;o<r[u]?s=u:i=u+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var Ao=/\w/,Ae=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(`
4
4
  `,0),l=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=s,s=r.indexOf(`