@vuebro/runtime 1.2.12 → 1.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuebro/runtime",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "Vue.js-based runtime for VueBro applications with dynamic loading, SEO optimization, and intersection observer tracking.",
5
5
  "keywords": [
6
6
  "vue",
@@ -38,12 +38,11 @@
38
38
  "@unhead/vue": "^2.0.19",
39
39
  "@unocss/runtime": "^66.5.6",
40
40
  "@vuebro/loader-sfc": "^2.3.28",
41
- "@vuebro/shared": "^1.2.3",
41
+ "@vuebro/shared": "^1.2.4",
42
42
  "@vueuse/components": "^14.0.0",
43
43
  "@vueuse/core": "^14.0.0",
44
44
  "consola": "^3.4.2",
45
45
  "ofetch": "^1.5.1",
46
- "pinia": "^3.0.4",
47
46
  "uuid-random": "^1.3.2",
48
47
  "vue": "^3.5.24",
49
48
  "vue-router": "^4.6.3"
@@ -1 +0,0 @@
1
- import{c as Ut,g as qt,u as U,f as nt,d as Wt,a as Bt,b as Ie,e as Gt,s as ot,h as Kt,t as Qt,i as st,j as Jt}from"./shared-8nG7PE5J.js";import{toValue as Zt,isRef as Xt,hasInjectionContext as Yt,inject as en,ref as A,watchEffect as rt,getCurrentInstance as tn,onBeforeUnmount as it,onDeactivated as nn,onActivated as on,defineComponent as E,shallowRef as ct,onMounted as sn,watch as ne,onUnmounted as at,h as Fe,nextTick as rn,computed as I,resolveComponent as cn,createBlock as R,openBlock as j,withCtx as me,resolveDynamicComponent as ge,unref as F,defineAsyncComponent as an,createElementBlock as Q,Fragment as lt,createVNode as ln,createElementVNode as L,renderList as un,withDirectives as fn,normalizeClass as ut,Suspense as dn,createCommentVNode as pn,createApp as hn}from"vue";import{d as mn,w as gn,_ as yn,p as wn,a as bn,b as vn,c as Cn,e as xn,i as kn,o as Sn}from"./unocss-GGiNT3_V.js";import{useRoute as In,createRouter as Fn,createWebHistory as Tn}from"vue-router";import $n from"@vuebro/loader-sfc";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();const _n=new Set(["link","style","script","noscript"]),An=new Set(["title","titleTemplate","script","style","noscript"]),Te=new Set(["base","meta","link","style","script","noscript"]),jn=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Mn=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),On=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),En=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ye=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Pn=["name","property","http-equiv"],Ln=new Set(["viewport","description","keywords","robots"]);function ft(e){const t=e.split(":");return t.length?ye.has(t[1]):!1}function le(e){const{props:t,tag:n}=e;if(Mn.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const s of Pn)if(t[s]!==void 0){const o=t[s],r=o.includes(":"),i=Ln.has(o),d=!(r||i)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${d}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(An.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function $e(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([s,o])=>`${s}:${String(o)}`).join(",")}`}function J(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(r=>J(r,t));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=J(o[i],t,i);return r}return o}function Hn(e,t){const n=e==="style"?new Map:new Set;function s(o){const r=o.trim();if(r)if(e==="style"){const[i,...c]=r.split(":").map(d=>d.trim());i&&c.length&&n.set(i,c.join(":"))}else r.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(o=>s(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,r])=>{r&&r!=="false"&&(e==="style"?n.set(o.trim(),r):s(o))}),n}function dt(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,s])=>{if(s===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Hn(n,s);return}if(On.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof s=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(s)}else e[n]=s;return}const o=String(s),r=n.startsWith("data-");o==="true"||o===""?e.props[n]=r?o:!0:!s&&r&&o==="false"?e.props[n]="false":s!==void 0&&(e.props[n]=s)}),e):e}function Nn(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=dt({tag:e,props:{}},n);return s.key&&_n.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function Dn(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,r)=>{for(let i=0;i<t.length;i++)r=t[i](o,r);return r};e=n(void 0,e);const s=[];return e=J(e,n),Object.entries(e||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(Nn(o,i))}),s.flat()}const _e=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ae={base:-10,title:10},Rn={critical:-8,high:-1,low:2},je={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},zn=/@import/,H=e=>e===""||e===!0;function Vn(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Rn[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:je;if(t.tag in Ae)n=Ae[t.tag];else if(t.tag==="meta"){const r=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;r&&(n=je.meta[r])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?H(t.props.async)?n=o.script.async:t.props.src&&!H(t.props.defer)&&!H(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:H(t.props.defer)&&t.props.src&&!H(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&zn.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+s}function Me(e,t){const n=typeof t=="function"?t(e):t,s=n.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,n),e.hooks.addHooks(n.hooks||{}))}function Un(e={}){const t=Ut();t.addHooks(e.hooks||{});const n=!e.document,s=new Map,o=new Map,r=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:s,headEntries(){return[...s.values()]},use:c=>Me(i,c),push(c,d){const a={...d||{}};delete a.head;const l=a._index??i._entryCount++,p={_i:l,input:c,options:a},f={_poll(u=!1){i.dirty=!0,!u&&r.add(l),t.callHook("entries:updated",i)},dispose(){s.delete(l)&&i.invalidate()},patch(u){(!a.mode||a.mode==="server"&&n||a.mode==="client"&&!n)&&(p.input=u,s.set(l,p),f._poll())}};return f.patch(c),f},async resolveTags(){const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);r.size;){const f=r.values().next().value;r.delete(f);const u=s.get(f);if(u){const m={tags:Dn(u.input,e.propResolvers||[]).map(h=>Object.assign(h,u.options)),entry:u};await t.callHook("entries:normalize",m),u._tags=m.tags.map((h,g)=>(h._w=Vn(i,h),h._p=(u._i<<10)+g,h._d=le(h),h))}}let d=!1;c.entries.flatMap(f=>(f._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(_e).reduce((f,u)=>{const m=String(u._d||u._p);if(!f.has(m))return f.set(m,u);const h=f.get(m);if((u?.tagDuplicateStrategy||(En.has(u.tag)?"merge":null)||(u.key&&u.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(u.props).forEach(([w,v])=>y[w]=w==="style"?new Map([...h.props.style||new Map,...v]):w==="class"?new Set([...h.props.class||new Set,...v]):v),f.set(m,{...u,props:y})}else u._p>>10===h._p>>10&&u.tag==="meta"&&ft(m)?(f.set(m,Object.assign([...Array.isArray(h)?h:[h],u],u)),d=!0):(u._w===h._w?u._p>h._p:u?._w<h?._w)&&f.set(m,u);return f},c.tagMap);const a=c.tagMap.get("title"),l=c.tagMap.get("titleTemplate");if(i._title=a?.textContent,l){const f=l?.textContent;if(i._titleTemplate=f,f){let u=typeof f=="function"?f(a?.textContent):f;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",a?.textContent||"")),a?u===null?c.tagMap.delete("title"):c.tagMap.set("title",{...a,textContent:u}):(l.tag="title",l.textContent=u)}}c.tags=Array.from(c.tagMap.values()),d&&(c.tags=c.tags.flat().sort(_e)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const p=[];for(const f of c.tags){const{innerHTML:u,tag:m,props:h}=f;if(jn.has(m)&&!(Object.keys(h).length===0&&!f.innerHTML&&!f.textContent)&&!(m==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(m==="script"&&u){if(h.type?.endsWith("json")){const g=typeof u=="string"?u:JSON.stringify(u);f.innerHTML=g.replace(/</g,"\\u003C")}else typeof u=="string"&&(f.innerHTML=u.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));f._d=le(f)}p.push(f)}}return p},invalidate(){for(const c of s.values())r.add(c._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(c=>Me(i,c)),i.hooks.callHook("init",i),e.init?.forEach(c=>c&&i.push(c)),i}async function pt(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{e.resolveTags().then(m=>{u(m.map(h=>{const g=r.get(h._d)||0,y={tag:h,id:(g?`${h._d}:${g}`:h._d)||$e(h),shouldRender:!0};return h._d&&ft(h._d)&&r.set(h._d,g+1),y}))})});let c=e._dom;if(!c){c={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const u of["body","head"]){const m=n[u]?.children;for(const h of m){const g=h.tagName.toLowerCase();if(!Te.has(g))continue;const y=dt({tag:g,props:{}},{innerHTML:h.innerHTML,...h.getAttributeNames().reduce((w,v)=>(w[v]=h.getAttribute(v),w),{})||{}});if(y.key=h.getAttribute("data-hid")||void 0,y._d=le(y)||$e(y),c.elMap.has(y._d)){let w=1,v=y._d;for(;c.elMap.has(v);)v=`${y._d}:${w++}`;c.elMap.set(v,h)}else c.elMap.set(y._d,h)}}}c.pendingSideEffects={...c.sideEffects},c.sideEffects={};function d(u,m,h){const g=`${u}:${m}`;c.sideEffects[g]=h,delete c.pendingSideEffects[g]}function a({id:u,$el:m,tag:h}){const g=h.tag.endsWith("Attrs");c.elMap.set(u,m),g||(h.textContent&&h.textContent!==m.textContent&&(m.textContent=h.textContent),h.innerHTML&&h.innerHTML!==m.innerHTML&&(m.innerHTML=h.innerHTML),d(u,"el",()=>{m?.remove(),c.elMap.delete(u)}));for(const y in h.props){if(!Object.prototype.hasOwnProperty.call(h.props,y))continue;const w=h.props[y];if(y.startsWith("on")&&typeof w=="function"){const b=m?.dataset;if(b&&b[`${y}fired`]){const k=y.slice(0,-5);w.call(m,new Event(k.substring(2)))}m.getAttribute(`data-${y}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:m).addEventListener(y.substring(2),w.bind(m)),m.setAttribute(`data-${y}`,""));continue}const v=`attr:${y}`;if(y==="class"){if(!w)continue;for(const b of w)g&&d(u,`${v}:${b}`,()=>m.classList.remove(b)),!m.classList.contains(b)&&m.classList.add(b)}else if(y==="style"){if(!w)continue;for(const[b,k]of w)d(u,`${v}:${b}`,()=>{m.style.removeProperty(b)}),m.style.setProperty(b,k)}else w!==!1&&w!==null&&(m.getAttribute(y)!==w&&m.setAttribute(y,w===!0?"":String(w)),g&&d(u,v,()=>m.removeAttribute(y)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await i;for(const u of f){const{tag:m,shouldRender:h,id:g}=u;if(h){if(m.tag==="title"){n.title=m.textContent,d("title","",()=>n.title=c.title);continue}u.$el=u.$el||c.elMap.get(g),u.$el?a(u):Te.has(m.tag)&&l.push(u)}}for(const u of l){const m=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),a(u),p[m]=p[m]||n.createDocumentFragment(),p[m].appendChild(u.$el)}for(const u of f)await e.hooks.callHook("dom:renderTag",u,n,d);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(const u in c.pendingSideEffects)c.pendingSideEffects[u]();e._dom=c,await e.hooks.callHook("dom:rendered",{renders:f}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function qn(e={}){const t=e.domOptions?.render||pt;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Un({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Wn(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}const z={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Bn={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},ht={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${_(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?_(e):`${_(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${_(e)} ${t}`}},charset:{}};function _(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:z.META.has(t.slice(0,n))||z.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function mt(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function ue(e){return Array.isArray(e)?e.map(ue):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[_(t),ue(n)]))}function gt(e,t={}){const{entrySeparator:n="",keyValueSeparator:s="",wrapValue:o,resolve:r}=t;return Object.entries(e).map(([i,c])=>{if(r){const a=r({key:i,value:c});if(a!==void 0)return a}const d=typeof c=="object"?gt(c,t):typeof c=="number"?c.toString():typeof c=="string"&&o?`${o}${c.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:c;return`${i}${s}${d}`}).join(n)}function Oe(e,t){const n=mt(t),s=_(e),o=yt(s);if(!ye.has(s))return[{[o]:s,...n}];const r=Object.fromEntries(Object.entries(n).map(([i,c])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,c]));return Z(r||{}).sort((i,c)=>(i[o]?.length||0)-(c[o]?.length||0))}function yt(e){if(ht[e]?.metaKey==="http-equiv"||z.HTTP_EQUIV.has(e))return"http-equiv";const t=_(e),n=t.indexOf(":");return n===-1?"name":z.OG.has(t.slice(0,n))?"property":"name"}function Gn(e){return Bn[e]||_(e)}function Kn(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:gt(ue(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:s})=>n===null?"":typeof n=="boolean"?s:void 0,...ht[t]?.unpack})}function Z(e){const t=[],n={};for(const[o,r]of Object.entries(e)){if(Array.isArray(r)){if(o==="themeColor"){r.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of r)if(typeof i=="object"&&i!==null){const c=[],d=[];for(const[a,l]of Object.entries(i)){const p=`${o}${a==="url"?"":`:${a}`}`,f=Z({[p]:l});(a==="url"?c:d).push(...f)}t.push(...c,...d)}else t.push(...typeof i=="string"?Z({[o]:i}):Oe(o,i));continue}if(typeof r=="object"&&r)if(z.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",c=o.replace(/^(og|twitter)/,"").toLowerCase(),d=i==="twitter"?"name":"property";r.url&&t.push({[d]:`${i}:${c}`,content:r.url}),r.secureUrl&&t.push({[d]:`${i}:${c}:secure_url`,content:r.secureUrl});for(const[a,l]of Object.entries(r))a!=="url"&&a!=="secureUrl"&&t.push({[d]:`${i}:${c}:${a}`,content:l})}else ye.has(_(o))?t.push(...Oe(o,r)):n[o]=mt(r);else n[o]=r}const s=Object.entries(n).map(([o,r])=>{if(o==="charset")return{charset:r===null?"_null":r};const i=yt(o),c=Gn(o),d=r===null?"_null":typeof r=="object"?Kn(r,o):typeof r=="number"?r.toString():r;return i==="http-equiv"?{"http-equiv":c,content:d}:{[i]:c,content:d}});return[...t,...s].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Qn={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(Z(n.props).map(s=>({...n,tag:"meta",props:s}))),!1)).filter(Boolean).concat(...t)}}},Jn=(e,t)=>Xt(t)?Zt(t):t,wt="usehead";function Zn(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(wt,e)}}.install}function bt(){if(Yt()){const e=en(wt);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function we(e,t={}){const n=t.head||bt();return n.ssr?n.push(e||{},t):Xn(n,e,t)}function Xn(e,t,n={}){const s=A(!1);let o;return rt(()=>{const i=s.value?{}:J(t,Jn);o?o.patch(i):o=e.push(i,n)}),tn()&&(it(()=>{o.dispose()}),nn(()=>{s.value=!0}),on(()=>{s.value=!1})),o}function Yn(e={},t={}){(t.head||bt()).use(Qn);const{title:s,titleTemplate:o,...r}=e;return we({title:s,titleTemplate:o,_flatMeta:r},t)}function eo(e={}){const t=qn({domOptions:{render:Wn(()=>pt(t),n=>setTimeout(n,0))},...e});return t.install=Zn(t),t}const to=Object.freeze({left:0,top:0,width:16,height:16}),X=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vt=Object.freeze({...to,...X}),no=Object.freeze({...vt,body:"",hidden:!1}),oo=Object.freeze({width:null,height:null}),Ct=Object.freeze({...oo,...X});function so(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Ee(e,t){const n=so(e,t);for(const s in no)s in X?s in e&&!(s in n)&&(n[s]=X[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function ro(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=s[i]&&s[i].parent,d=c&&r(c);d&&(o[i]=[c].concat(d))}return o[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Pe(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ee(s[c]||o[c],r)}return i(t),n.forEach(i),Ee(e,r)}function io(e,t){if(e.icons[t])return Pe(e,t,[]);const n=ro(e,[t])[t];return n?Pe(e,t,n):null}const co=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ao=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(co);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=ao.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function lo(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const o=e.indexOf(">",s),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function uo(e,t){return e?"<defs>"+e+"</defs>"+t:t}function fo(e,t,n){const s=lo(e);return uo(s.defs,t+s.content+n)}const be=e=>e==="unset"||e==="undefined"||e==="none";function xt(e,t){const n={...vt,...e},s={...Ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):w&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}v%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(r=fo(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,d=o.width,a=o.height;let l,p;i===null?(p=c===null?"1em":c==="auto"?a:c,l=Y(p,d/a)):(l=i==="auto"?d:i,p=c===null?Y(l,a/d):c==="auto"?a:c);const f={},u=(h,g)=>{be(g)||(f[h]=g.toString())};u("width",l),u("height",p);const m=[o.left,o.top,d,a];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const po=/\sid="(\S+)"/g,ho="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let mo=0;function go(e,t=ho){const n=[];let s;for(;s=po.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(mo++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function yo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Le(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),yo(t)}function wo(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}function bo(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const vo=/\swidth\s*=\s*["']([\w.]+)["']/,Co=/\sheight\s*=\s*["']([\w.]+)["']/,se=/<svg\s+/;function xo(e,t,n){const s=e.slice(0,e.indexOf(">")),o=(r,i)=>{const c=i.exec(s),d=c!=null,a=t[r];return!a&&!be(a)&&(typeof n=="number"?n>0&&(t[r]=Y(c?.[1]??"1em",n)):c&&(t[r]=c[1])),d};return[o("width",vo),o("height",Co)]}async function kt(e,t,n,s,o,r){const{scale:i,addXmlNs:c=!1}=s??{},{additionalProps:d={},iconCustomizer:a}=s?.customizations??{},l=await o?.()??{};await a?.(t,n,l),Object.keys(d).forEach(h=>{const g=d[h];g!=null&&(l[h]=g)}),r?.(l);const[p,f]=xo(e,l,i);c&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const u=Object.keys(l).map(h=>h==="width"&&p||h==="height"&&f?null:`${h}="${l[h]}"`).filter(h=>h!=null);if(u.length&&(e=e.replace(se,`<svg ${u.join(" ")} `)),s){const{defaultStyle:h,defaultClass:g}=s;g&&!e.includes("class=")&&(e=e.replace(se,`<svg class="${g}" `)),h&&!e.includes("style=")&&(e=e.replace(se,`<svg style="${h}" `))}const m=s?.usedProps;return m&&(Object.keys(d).forEach(h=>{const g=l[h];g!=null&&(m[h]=g)}),typeof l.width<"u"&&l.width!==null&&(m.width=l.width),typeof l.height<"u"&&l.height!==null&&(m.height=l.height)),e}var W={exports:{}},re,He;function ko(){if(He)return re;He=1;var e=1e3,t=e*60,n=t*60,s=n*24,o=s*7,r=s*365.25;re=function(l,p){p=p||{};var f=typeof l;if(f==="string"&&l.length>0)return i(l);if(f==="number"&&isFinite(l))return p.long?d(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(p){var f=parseFloat(p[1]),u=(p[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return f*r;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*s;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function c(l){var p=Math.abs(l);return p>=s?Math.round(l/s)+"d":p>=n?Math.round(l/n)+"h":p>=t?Math.round(l/t)+"m":p>=e?Math.round(l/e)+"s":l+"ms"}function d(l){var p=Math.abs(l);return p>=s?a(l,p,s,"day"):p>=n?a(l,p,n,"hour"):p>=t?a(l,p,t,"minute"):p>=e?a(l,p,e,"second"):l+" ms"}function a(l,p,f,u){var m=p>=f*1.5;return Math.round(l/f)+" "+u+(m?"s":"")}return re}var ie,Ne;function So(){if(Ne)return ie;Ne=1;function e(t){s.debug=s,s.default=s,s.coerce=a,s.disable=c,s.enable=r,s.enabled=d,s.humanize=ko(),s.destroy=l,Object.keys(t).forEach(p=>{s[p]=t[p]}),s.names=[],s.skips=[],s.formatters={};function n(p){let f=0;for(let u=0;u<p.length;u++)f=(f<<5)-f+p.charCodeAt(u),f|=0;return s.colors[Math.abs(f)%s.colors.length]}s.selectColor=n;function s(p){let f,u=null,m,h;function g(...y){if(!g.enabled)return;const w=g,v=Number(new Date),b=v-(f||v);w.diff=b,w.prev=f,w.curr=v,f=v,y[0]=s.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let k=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(x,S)=>{if(x==="%%")return"%";k++;const T=s.formatters[S];if(typeof T=="function"){const $=y[k];x=T.call(w,$),y.splice(k,1),k--}return x}),s.formatArgs.call(w,y),(w.log||s.log).apply(w,y)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=o,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(m!==s.namespaces&&(m=s.namespaces,h=s.enabled(p)),h),set:y=>{u=y}}),typeof s.init=="function"&&s.init(g),g}function o(p,f){const u=s(this.namespace+(typeof f>"u"?":":f)+p);return u.log=this.log,u}function r(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];const f=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const u of f)u[0]==="-"?s.skips.push(u.slice(1)):s.names.push(u)}function i(p,f){let u=0,m=0,h=-1,g=0;for(;u<p.length;)if(m<f.length&&(f[m]===p[u]||f[m]==="*"))f[m]==="*"?(h=m,g=u,m++):(u++,m++);else if(h!==-1)m=h+1,g++,u=g;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function c(){const p=[...s.names,...s.skips.map(f=>"-"+f)].join(",");return s.enable(""),p}function d(p){for(const f of s.skips)if(i(p,f))return!1;for(const f of s.names)if(i(p,f))return!0;return!1}function a(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}return ie=e,ie}var De;function Io(){return De||(De=1,(function(e,t){var n={};t.formatArgs=o,t.save=r,t.load=i,t.useColors=s,t.storage=c(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let p=0,f=0;a[0].replace(/%[a-zA-Z%]/g,u=>{u!=="%%"&&(p++,u==="%c"&&(f=p))}),a.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function r(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function i(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=n.DEBUG),a}function c(){try{return localStorage}catch{}}e.exports=So()(t);const{formatters:d}=e.exports;d.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(W,W.exports)),W.exports}var Fo=Io();const St=qt(Fo),To=St("@iconify-loader:custom");async function Re(e,t,n,s){let o;To(`${t}:${n}`);try{if(typeof e=="function")o=await e(n);else{const r=e[n];o=typeof r=="function"?await r():r}}catch(r){console.warn(`Failed to load custom icon "${n}" in "${t}":`,r);return}if(o){const r=o.indexOf("<svg");r>0&&(o=o.slice(r));const{transform:i}=s?.customizations??{};return o=typeof i=="function"?await i(o,t,n):o,o.startsWith("<svg")?await kt(s?.customizations?.trimCustomSvg===!0?wo(o):o,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),o)}}const $o=St("@iconify-loader:icon");async function It(e,t,n,s){let o;const{customize:r}=s?.customizations??{};for(const i of n)if(o=io(e,i),o){$o(`${t}:${i}`);let c={...Ct};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${i}`)??c);const{attributes:{width:d,height:a,...l},body:p}=xt(o,c),f=s?.scale;return await kt(`<svg >${p}</svg>`,t,i,s,()=>({...l}),u=>{const m=(h,g)=>{const y=u[h];let w;if(!be(y)){if(y)return;typeof f=="number"?f&&(w=Y(g??"1em",f)):w=g}w?u[h]=w:delete u[h]};m("width",d),m("height",a)})}}const Ft=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let o;try{o=await s(t)}catch(r){console.warn(`Failed to load custom icon "${t}" in "${e}":`,r);return}if(o){if(typeof o=="string")return await Re(()=>o,e,t,n);if("icons"in o){const r=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await It(o,e,r,n)}}}else return await Re(s,e,t,n)};var ze={};function _o(){const e=typeof process<"u"&&process.stdout,t=e&&!!ze.VSCODE_CWD,n=e&&!!ze.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}const Tt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","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","fa7-brands","fa7-regular","fa7-solid","fad","famicons","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","garden","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-icon-theme","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","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Ao=3;function jo(e){return mn((t={})=>{const{scale:n=1,mode:s="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:i,collections:c,extraProperties:d={},customizations:a={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:f="icons",unit:u,processor:m}=t,h=_o(),g={addXmlNs:!0,scale:n,customCollections:c,autoInstall:l,cwd:p,warn:void 0,customizations:{...a,additionalProps:{...d},trimCustomSvg:!0,async iconCustomizer(w,v,b){await a.iconCustomizer?.(w,v,b),u&&(b.width||(b.width=`${n}${u}`),b.height||(b.height=`${n}${u}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Le,parseIconWithLoader:Ve},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async w=>{let[v,b,k=s]=w;y=y||await e(t);const C={},x=await Ve(b,y,{...g,usedProps:C},i);if(!x){r&&!h.isESLint&&gn(`failed to load icon "${v}"`);return}let S;const T=`url("data:image/svg+xml;utf8,${Le(x.svg)}")`;return k==="auto"&&(k=x.svg.includes("currentColor")?"mask":"bg"),k==="mask"?S={"--un-icon":T,"-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",...C}:S={background:`${T} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C},m?.(S,{...x,icon:x.name,mode:k}),S},{layer:f,prefix:o}]]}})}function $t(e,t,n=new Map){function s(o){if(Tt.includes(o))return n.has(o)||n.set(o,e(`${t}@iconify-json/${o}/icons.json`)),n.get(o)}return async(o,r,i)=>{let c=await Ft(o,r,i);if(c)return c;const d=await s(o);if(d){const a=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await It(d,o,a,i)}return c}}async function Ve(e,t,n={},s=[]){let o="",r="",i;const c=new Set([...Tt,...s,...Object.keys(n.customCollections||{})]);if(e.includes(":")){if([o,r]=e.split(":"),!c.has(o))return;i=await t(o,r,n)}else{const d=e.split(/-/g);for(let a=Ao;a>=1&&(o=d.slice(0,a).join("-"),!(!!c.has(o)&&(r=d.slice(a).join("-"),i=await t(o,r,n),i)));a--);}if(i)return{collection:o,name:r,svg:i}}async function Mo(e){const{$fetch:t}=await yn(async()=>{const{$fetch:n}=await import("./unocss-GGiNT3_V.js").then(s=>s.f);return{$fetch:n}},[]);return $t(t,e)}const Oo=jo(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?$t(t,n):n?await Mo(n):Ft}),Eo=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:n,typographyOptions:s,webFontsOptions:o,wind4Options:r={preflights:{reset:!0}}}={})=>[wn(e),Oo(t),bn(n),vn(s),Cn(o),xn(r)],_t=/^[a-z0-9]+(-[a-z0-9]+)*$/,q=(e,t,n,s="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),d=o.pop(),a={provider:o.length>0?o[0]:s,prefix:d,name:c};return t&&!B(a)?null:a}const r=o[0],i=r.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!B(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:r};return t&&!B(c,n)?null:c}return null},B=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,At=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),P=Object.freeze({...At,...ee}),fe=Object.freeze({...P,body:"",hidden:!1});function Po(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Ue(e,t){const n=Po(e,t);for(const s in fe)s in ee?s in e&&!(s in n)&&(n[s]=ee[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Lo(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=s[i]&&s[i].parent,d=c&&r(c);d&&(o[i]=[c].concat(d))}return o[i]}return Object.keys(n).concat(Object.keys(s)).forEach(r),o}function Ho(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ue(s[c]||o[c],r)}return i(t),n.forEach(i),Ue(e,r)}function jt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const s=Lo(e);for(const o in s){const r=s[o];r&&(t(o,Ho(e,o,r)),n.push(o))}return n}const No={provider:"",aliases:{},not_found:{},...At};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,No))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!ce(r,fe))return null}const s=t.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o||typeof i!="string"||!n[i]&&!s[i]||!ce(r,fe))return null}return t}const qe=Object.create(null);function Do(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function O(e,t){const n=qe[e]||(qe[e]=Object.create(null));return n[t]||(n[t]=Do(e,t))}function Ot(e,t){return Mt(t)?jt(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Ro(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let V=!1;function Et(e){return typeof e=="boolean"&&(V=e),V}function oe(e){const t=typeof e=="string"?q(e,!0,V):e;if(t){const n=O(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function zo(e,t){const n=q(e,!0,V);if(!n)return!1;const s=O(n.provider,n.prefix);return t?Ro(s,n.name,t):(s.missing.add(n.name),!0)}function Vo(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),V&&!t&&!e.prefix){let o=!1;return Mt(e)&&(e.prefix="",jt(e,(r,i)=>{zo(r,i)&&(o=!0)})),o}const n=e.prefix;if(!B({prefix:n,name:"a"}))return!1;const s=O(t,n);return!!Ot(s,e)}function Uo(e){return!!oe(e)}function qo(e){const t=oe(e);return t&&{...P,...t}}const Pt=Object.freeze({width:null,height:null}),Lt=Object.freeze({...Pt,...ee}),Wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function We(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(Wo);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=Bo.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function Go(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const o=e.indexOf(">",s),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function Ko(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Qo(e,t,n){const s=Go(e);return Ko(s.defs,t+s.content+n)}const Jo=e=>e==="unset"||e==="undefined"||e==="none";function Zo(e,t){const n={...P,...e},s={...Lt,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):w&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}v%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(r=Qo(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,d=o.width,a=o.height;let l,p;i===null?(p=c===null?"1em":c==="auto"?a:c,l=We(p,d/a)):(l=i==="auto"?d:i,p=c===null?We(l,a/d):c==="auto"?a:c);const f={},u=(h,g)=>{Jo(g)||(f[h]=g.toString())};u("width",l),u("height",p);const m=[o.left,o.top,d,a];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Xo=/\sid="(\S+)"/g,Yo="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let es=0;function ts(e,t=Yo){const n=[];let s;for(;s=Xo.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(es++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const de=Object.create(null);function ns(e,t){de[e]=t}function pe(e){return de[e]||de[""]}function ve(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ce=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;N.length>0;)N.length===1||Math.random()>.5?G.push(N.shift()):G.push(N.pop());Ce[""]=ve({resources:["https://api.iconify.design"].concat(G)});function os(e,t){const n=ve(t);return n===null?!1:(Ce[e]=n,!0)}function xe(e){return Ce[e]}const ss=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Be=ss();function rs(e,t){const n=xe(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=t+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function is(e){return e===404}const cs=(e,t,n)=>{const s=[],o=rs(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,a)=>{c+=d.length+1,c>=o&&a>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=d.length),i.icons.push(d)}),s.push(i),s};function as(e){if(typeof e=="string"){const t=xe(e);if(t)return t.path}return"/"}const ls=(e,t,n)=>{if(!Be){n("abort",424);return}let s=as(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});s+=r+".json?"+d.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Be(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(is(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},us={prepare:cs,send:ls};function fs(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return e.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,c=o.name,d=n[r]||(n[r]=Object.create(null)),a=d[i]||(d[i]=O(r,i));let l;c in a.icons?l=t.loaded:i===""||a.missing.has(c)?l=t.missing:l=t.pending;const p={provider:r,prefix:i,name:c};l.push(p)}),t}function Ht(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function ds(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,o=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(d=>{if(d.prefix!==o)return!0;const a=d.name;if(e.icons[a])i.loaded.push({provider:s,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||Ht([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let ps=0;function hs(e,t,n){const s=ps++,o=Ht.bind(null,n,s);if(!t.pending.length)return o;const r={id:s,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function ms(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?q(o,t,n):o;r&&s.push(r)}),s}var gs={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ys(e,t,n,s){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let C=e.resources.slice(0);for(i=[];C.length>1;){const x=Math.floor(Math.random()*C.length);i.push(C[x]),C=C.slice(0,x).concat(C.slice(x+1))}i=i.concat(C)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let d="pending",a=0,l,p=null,f=[],u=[];typeof s=="function"&&u.push(s);function m(){p&&(clearTimeout(p),p=null)}function h(){d==="pending"&&(d="aborted"),m(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function g(C,x){x&&(u=[]),typeof C=="function"&&u.push(C)}function y(){return{startTime:c,payload:t,status:d,queriesSent:a,queriesPending:f.length,subscribe:g,abort:h}}function w(){d="failed",u.forEach(C=>{C(void 0,l)})}function v(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,x,S){const T=x!=="success";switch(f=f.filter($=>$!==C),d){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){l=S,w();return}if(T){l=S,f.length||(i.length?k():w());return}if(m(),v(),!e.random){const $=e.resources.indexOf(C.resource);$!==-1&&$!==e.index&&(e.index=$)}d="completed",u.forEach($=>{$(S)})}function k(){if(d!=="pending")return;m();const C=i.shift();if(C===void 0){if(f.length){p=setTimeout(()=>{m(),d==="pending"&&(v(),w())},e.timeout);return}w();return}const x={status:"pending",resource:C,callback:(S,T)=>{b(x,S,T)}};f.push(x),a++,p=setTimeout(k,e.rotate),n(C,t,x.callback)}return setTimeout(k),y}function Nt(e){const t={...gs,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,d,a){const l=ys(t,c,d,(p,f)=>{s(),a&&a(p,f)});return n.push(l),l}function r(c){return n.find(d=>c(d))||null}return{query:o,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function Ge(){}const ae=Object.create(null);function ws(e){if(!ae[e]){const t=xe(e);if(!t)return;const n=Nt(t),s={config:t,redundancy:n};ae[e]=s}return ae[e]}function bs(e,t,n){let s,o;if(typeof e=="string"){const r=pe(e);if(!r)return n(void 0,424),Ge;o=r.send;const i=ws(e);i&&(s=i.redundancy)}else{const r=ve(e);if(r){s=Nt(r);const i=e.resources?e.resources[0]:"",c=pe(i);c&&(o=c.send)}}return!s||!o?(n(void 0,424),Ge):s.query(t,o,n)().abort}function Ke(){}function vs(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ds(e)}))}function Cs(e){const t=[],n=[];return e.forEach(s=>{(s.match(_t)?t:n).push(s)}),{valid:t,invalid:n}}function D(e,t,n){function s(){const o=e.pendingIcons;t.forEach(r=>{o&&o.delete(r),e.icons[r]||e.missing.add(r)})}if(n&&typeof n=="object")try{if(!Ot(e,n).length){s();return}}catch(o){console.error(o)}s(),vs(e)}function Qe(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function xs(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const r=e.loadIcon;if(e.loadIcons&&(o.length>1||!r)){Qe(e.loadIcons(o,s,n),l=>{D(e,o,l)});return}if(r){o.forEach(l=>{const p=r(l,s,n);Qe(p,f=>{const u=f?{prefix:s,icons:{[l]:f}}:null;D(e,[l],u)})});return}const{valid:i,invalid:c}=Cs(o);if(c.length&&D(e,c,null),!i.length)return;const d=s.match(_t)?pe(n):null;if(!d){D(e,i,null);return}d.prepare(n,s,i).forEach(l=>{bs(n,l,p=>{D(e,l.icons,p)})})}))}const Dt=(e,t)=>{const n=ms(e,!0,Et()),s=fs(n);if(!s.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(s.loaded,s.missing,s.pending,Ke)}),()=>{d=!1}}const o=Object.create(null),r=[];let i,c;return s.pending.forEach(d=>{const{provider:a,prefix:l}=d;if(l===c&&a===i)return;i=a,c=l,r.push(O(a,l));const p=o[a]||(o[a]=Object.create(null));p[l]||(p[l]=[])}),s.pending.forEach(d=>{const{provider:a,prefix:l,name:p}=d,f=O(a,l),u=f.pendingIcons||(f.pendingIcons=new Set);u.has(p)||(u.add(p),o[a][l].push(p))}),r.forEach(d=>{const a=o[d.provider][d.prefix];a.length&&xs(d,a)}),t?hs(t,s,r):Ke},ks=e=>new Promise((t,n)=>{const s=typeof e=="string"?q(e,!0):e;if(!s){n(e);return}Dt([s||e],o=>{if(o.length&&s){const r=oe(s);if(r){t({...P,...r});return}}n(e)})});function Ss(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in Pt?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const Is=/[\s,]+/;function Fs(e,t){t.split(Is).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ts(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:s(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return t}function $s(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function _s(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function As(e){return"data:image/svg+xml,"+_s(e)}function js(e){return'url("'+As(e)+'")'}const Je={...Lt,inline:!1},Ms={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Os={display:"inline-block"},he={backgroundColor:"currentColor"},Rt={backgroundColor:"transparent"},Ze={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xe={webkitMask:he,mask:he,background:Rt};for(const e in Xe){const t=Xe[e];for(const n in Ze)t[e+n]=Ze[n]}const K={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";K[e+"-flip"]=t,K[e.slice(0,1)+"-flip"]=t,K[e+"Flip"]=t});function Ye(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const et=(e,t)=>{const n=Ss(Je,t),s={...Ms},o=t.mode||"svg",r={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const g=t[h];if(g!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[h]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Fs(n,g);break;case"color":r.color=g;break;case"rotate":typeof g=="string"?n[h]=Ts(g):typeof g=="number"&&(n[h]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete s["aria-hidden"];break;default:{const y=K[h];y?(g===!0||g==="true"||g===1)&&(n[y]=!0):Je[h]===void 0&&(s[h]=g)}}}const d=Zo(e,n),a=d.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...c},Object.assign(s,a);let h=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),s.innerHTML=ts(d.body,g?()=>g+"ID"+h++:"iconifyVue"),Fe("svg",s)}const{body:l,width:p,height:f}=e,u=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),m=$s(l,{...a,width:p+"",height:f+""});return s.style={...r,"--svg":js(m),width:Ye(a.width),height:Ye(a.height),...Os,...u?he:Rt,...c},Fe("span",s)};Et(!0);ns("",us);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Vo(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;os(n,o)||console.error(s)}catch{console.error(s)}}}}const Es={...P,body:""};E((e,{emit:t})=>{const n=A(null);function s(){n.value&&(n.value.abort?.(),n.value=null)}const o=A(!!e.ssr),r=A(""),i=ct(null);function c(){const a=e.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string")return r.value="",{data:a};let l;if(typeof a!="string"||(l=q(a,!1,!0))===null)return null;let p=oe(l);if(!p){const m=n.value;return(!m||m.name!==a)&&(p===null?n.value={name:a}:n.value={name:a,abort:Dt([l],d)}),null}s(),r.value!==a&&(r.value=a,rn(()=>{t("load",a)}));const f=e.customise;if(f){p=Object.assign({},p);const m=f(p.body,l.name,l.prefix,l.provider);typeof m=="string"&&(p.body=m)}const u=["iconify"];return l.prefix!==""&&u.push("iconify--"+l.prefix),l.provider!==""&&u.push("iconify--"+l.provider),{data:p,classes:u}}function d(){const a=c();a?a.data!==i.value?.data&&(i.value=a):i.value=null}return o.value?d():sn(()=>{o.value=!0,d()}),ne(()=>e.icon,d),at(s),()=>{const a=i.value;if(!a)return et(Es,e);let l=e;return a.classes&&(l={...e,class:a.classes.join(" ")}),et({...P,...a.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const Ps=E({__name:"App",setup(e){const t=In(),n=U(),s=I(()=>n.kvNodes[t.name]),o=I(()=>s.value?.description),r=A(""),i=A(""),c=I(()=>s.value?.keywords.join()),d=I(()=>s.value?.images.filter(({url:f})=>f).map(({alt:f="",url:u})=>({alt:f,url:`${window.location.origin}/${u}`}))??[]),a=I(()=>s.value?.type),l=I(()=>s.value?.to&&`${window.location.origin}${s.value.to==="/"?"":s.value.to}`),p=I(()=>s.value?.title);return ne(s,async f=>{if(f){let u="/favicon.ico";if(f.icon){const m=Uo(f.icon)?qo(f.icon):await ks(f.icon);if(m){const{attributes:h,body:g}=xt(m,{height:16,width:16});u=`data:image/svg+xml,${encodeURIComponent(bo(go(g),h))}`}}r.value=u,i.value=JSON.stringify(await nt(`./pages/${f.id}.jsonld`)??{"@context":"https://schema.org"})}}),we({link:[[r,"icon","icon"],[l,"canonical"]].map(([f,u,m])=>({href:f,key:m,rel:u})),script:[{id:"application/ld+json",innerHTML:i,type:"application/ld+json"}]}),Yn({description:o,keywords:c,ogDescription:o,ogImage:d,ogTitle:p,ogType:a,ogUrl:l,title:p}),(f,u)=>{const m=cn("router-view");return j(),R(m,null,{default:me(({Component:h})=>[(j(),R(ge(h),{id:F(n).nodes[0]?.id},null,8,["id"]))]),_:1})}}}),zt=e=>an(async()=>$n(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}})),Vt=()=>{let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),reject:t,resolve:e}},ke=Wt("main",()=>{const e=A(),t=U(),n=I(()=>e.value===t.nodes[0]?.id?t.nodes[0]?.$children[0]:t.kvNodes[e.value]),s=I(()=>n.value===void 0||n.value.parent?.flat?n.value?.siblings??[]:[n.value]);return{$these:Bt(s,({enabled:o})=>o),intersecting:new Map,promises:new Map,root:Vt(),routeName:e,scrollLock:A(!1),that:n}});function tt(e,t){const n=e.type,s=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof s!="string"||!(s in t))return;const o=e.props||{};if(e.children){const r="children";o.children=Array.isArray(e.children)?e.children[0][r]:e[r]}Array.isArray(t[s])?t[s].push(o):s==="title"?t.title=o.children:t[s]=o}function Ls(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of e)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const s of n.children)tt(s,t);else tt(n,t);return t}const Hs=E({name:"Head",setup(e,{slots:t}){const n=A({}),s=we(n);return it(()=>{s.dispose()}),()=>(rt(()=>{t.default&&s.patch(Ls(t.default()))}),null)}}),Ns=E({__name:"NotFoundView",setup(e){return(t,n)=>(j(),Q(lt,null,[ln(F(Hs),null,{default:me(()=>[...n[0]||(n[0]=[L("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=L("div",{class:"absolute inset-0 grid place-items-center"},[L("div",{class:"text-center"},[L("div",{class:"text-9xl"},"404"),L("p",null,"Oops. Nothing here...")])],-1))],64))}}),Ds={mounted(e,t){typeof t.value=="function"?Ie(e,t.value):Ie(e,...t.value)}};function Rs(){let e=!1;const t=ct(!1);return(n,s)=>{if(t.value=s.value,e)return;e=!0;const o=Gt(n,s.value);ne(t,r=>o.value=r)}}Rs();const zs=["id"],Vs=E({__name:"PageView",setup(e){const t=ke(),n=U(),{$these:s}=ot(t),o=()=>{[t.intersecting,t.promises].forEach(i=>{i.clear()})},r=I(()=>new Map(s.value.map(({id:i})=>[i,zt(i)])));return ne(s,i=>{o(),i.forEach(({id:c})=>{t.intersecting.set(c,!1),t.promises.set(c,Vt())})},{immediate:!0}),at(()=>{o()}),(i,c)=>(j(!0),Q(lt,null,un(r.value,([d,a])=>fn((j(),Q("div",{id:d,key:d,"un-cloak":"",class:ut(F(n).kvNodes[d]?.class)},[(j(),R(ge(a),{id:d,onVnodeMounted:l=>F(t).promises.get(d)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,zs)),[[F(Ds),[([{isIntersecting:l}={}])=>{F(t).intersecting.set(d,l)},{threshold:.1}]]])),128))}}),Us=["id"],qs=E({__name:"RootView",setup(e){const t=U(),[n]=t.nodes,s=I(()=>n&&zt(n.id)),o=ke();return(r,i)=>(j(),R(dn,null,{default:me(()=>[F(n)?.enabled?(j(),Q("div",{key:0,id:F(n).id,class:ut(F(n).class),"un-cloak":""},[(j(),R(ge(s.value),{id:F(n).id,onVnodeMounted:i[0]||(i[0]=c=>F(o).root.resolve(void 0))},null,8,["id"]))],10,Us)):pn("",!0)]),_:1}))}}),[[Ws={}],Bs]=(await Promise.all(["index","fonts"].map(e=>nt(`${e}.json`)))).map(e=>e??[]),Se=hn(Ps),{pathname:Gs}=new URL(document.baseURI);Se.use(Kt());const M=ke(),te=U(),{kvNodes:Ks}=ot(te);te.tree.push(Ws);await kn({defaults:{presets:Eo({webFontsOptions:{customFetch:Sn,fonts:Object.fromEntries(Bs.map(e=>[e.toLowerCase().replace(/ /g,"_"),e]))}})},ready:({extractAll:e,toggleObserver:t})=>{let n=!1;const s=Fn({history:Tn(Gs),routes:[...te.nodes.filter(({path:i})=>i!==void 0).map(i=>{const{id:c,loc:d,path:a}=i,l=d?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");return{...l&&{alias:l},children:[{component:Vs,name:c,path:""}],component:qs,path:a.replace(/^\/?/,"/").replace(/\/?$/,"/")}}),{component:Ns,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:i,name:c})=>{if(c)if(M.routeName=c,n)n=!1;else{const{index:d,parent:{flat:a}={}}=M.that??{};return t(!0),await M.root.promise,await Promise.all([...M.promises.values()].map(({promise:l})=>l)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(l=>requestIdleCallback(l)):(await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>setTimeout(l))),{behavior:"smooth",...i||a&&d?{el:i||`#${String(c)}`}:{left:0,top:0}}}return!1}}),{x:o,y:r}=Jt(window,{onStop:()=>{const[i]=M.$these,[c]=te.nodes;if(c&&i){const{$children:[{id:d}={}]=[]}=c,a=!Math.floor(o.value)&&!Math.floor(r.value)&&i.id===d?c.id:[...M.intersecting.entries()].find(([,l])=>l)?.[0]??i.id;a!==M.routeName&&(n=!0,s.push({name:a}).catch(st.error))}}});return s.beforeEach(({path:i})=>i!==decodeURI(i)?decodeURI(i):void 0),Se.use(s),!1},rootElement:()=>document.getElementById("app")??void 0});Se.use(eo()).provide("pages",Qt(Ks)).mount("#app");st.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.2.12");